Selected Client Works


Got a project in mind?

[email protected]

If you would like to enquire about bookings or just say hi, email me

Washington Post - "RELENTLESS"

Full Credits

Production Company: @blinkink
Director: Sabih Mahmood @svbih
Executive Producer: Josef Byrne
Head of Production: Alex Halley
Producer: Calum O'Toole @calum.otoole
Brand: @washingtonpost
Agency: @uncommon.creative.studio
Graphic Designer: @yoffdog0
Graphic Designer: Martin Uhrecky @martinuhrecky
Design Assist: Cat Wong @drawnshort
Motion Graphics: Tammy Truong @aotishe
Motion Graphics: Maksymilian Ojster @ramarro
Motion Graphics: Mikhail P. @kiuzr
Motion Graphics: Andrew Khosravani @andrew
khosravani
Motion Graphics: Michos @m.ichos
Lead Compositor: John Malcolm Moore

Next project → Valorant Champions Tour '25

VALORANT Champions '26 / Intro and Outro Sequences

Worked w/ Worship Studio for Riot Games (full credits here)

Next project → Washington Post "Relentless"

OWCS 2026 | Midseason Championship

2D LED MOTION WORK

Next project → Parallel Prime Championship

DUOLINGO YEAR IN REVIEW

MOTION + ANIMATION BY ME

instagram post
youtube post

Next project → Duolingo "Revive Your Streak" '26

RETURN OF DUOLINGO X KIUZR

MOTION + ANIMATION BY ME

instagram post (archived)
youtube post
tiktok post

Next project → Amazon Audible "Cultura"

100 THIEVES X YFP

View Behance post here

Motion Design by yours truly

After Effects Viewport

Next project → Duo "Year in Review" '24

ESPORTS WORLD CUP MOTION GRAPHICS

ENC Marketing Showreel

ENC National Team Partner Announcement

Next project → girl in red "Hemingway"

“LAST SHOT” by templuv ft 347aidan (Official Lyric Video)

Created with ROSEWOOD for Riot Games / VALORANT / VALORANT Esports

Sequences

Next project → Valorant Game Changers Championship

Amazon "Audible" - Cultura [SEP. 2025]

Created with MAKINE STUDIOS for Amazon / Amazon Audible

Next project → EWC '26 // Esports Nations Cup

girl in red - Hemingway (Official Lyric Video)

Created with Columbia Records for Girl in Red

Handwritten texts

Frames

Next project → Overwatch World Cup '26

GO OFF | Game Changers Championship Seoul Opening Tease

Created with GOOD BOY CREATIVE for Riot Games / Valorant Esports

Sequences

Next project → 100 Thieves x YFP

Parallel Prime League

Viewport

Created with Worship Studio for Parallel Prime TCG

Full credits on Worship page, HERE!

Next project → Canes 2025 Recap

Raising Canes 2025 Recap

Created with Avilon Studios for Raising Canes

Next project → Valorant Champs '26

INFO

Mikhail P. // @kiuzr

Motion designer and 3D artist making openers, broadcast & LED visuals and lyric videos for games, esports, brands and music.Based in the Philippines (GMT+8).Selected clients & studios:
Riot Games (w/ Worship, Rosewood and Goodboy Creative) / Duolingo / The Washington Post / Amazon Audible / Columbia Records / 100 Thieves / Esports World Cup / Overwatch World Cup / Raising Cane's / Worship / Blinkink / Rosewood / Good Boy Creative / Makine Studios
Open for freelance projects & collaborations: [email protected]

CONTACT

Got a project in mind, or just curious about what I do?Hit me up through the form or reach me directly:Email: [email protected]
Instagram/TikTok: @kiuzr
Discord: kiuzr
Twitter/X: @spikecrush (DMs may be slow — email's fastest)

(function(){var N=7,t=setInterval(go,60);function go(){var h=document.getElementById("kts-host"),a=window.__kts;if(!h||!a)return;for(var i=0;i!==N;i++)if(typeof a[i]!=="string")return;clearInterval(t);if(h.getAttribute("data-done"))return;h.setAttribute("data-done","1");var d=document.createElement("div");d.innerHTML=a.join("");var sc=[].slice.call(d.querySelectorAll("script"));sc.forEach(function(x){x.parentNode.removeChild(x)});while(d.firstChild)h.appendChild(d.firstChild);sc.forEach(function(x){var n=document.createElement("script");n.textContent=x.textContent;h.appendChild(n)})}go()})();
(window.__kts=window.__kts||[])[0]="\u003clink rel=\"preconnect\" href=\"https://fonts.googleapis.com\"\u003e\u003clink rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin\u003e\u003clink href=\"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=Fredoka:wght@500;700&family=Permanent+Marker&family=Pinyon+Script&family=Titan+One&display=block\" rel=\"stylesheet\"\u003e\u003cstyle\u003e#kts{color-scheme:dark;--bg:#000;--card:#1c1c1e;--card2:#2c2c2e;--line:#38383a;--ink:#fff;--dim:#8e8e93;--acc:#0a84ff;--on:#30d158;--r:22px;--track:#3a3a3c;--tgoff:#39393d;--hover:#242426;--fill:#2c2c2e;--chev:#5a5a5f;--swatch:#48484a;--hink:#c7c7cc;--chk1:#1c1c1f;--chk2:#121214;--opt:#1c1c1e}#kts.light{color-scheme:light;--bg:#f2f2f7;--card:#fff;--card2:#e9e9ee;--line:#c6c6c8;--ink:#000;--dim:#8a8a8e;--acc:#007aff;--on:#34c759;--track:#e3e3e8;--tgoff:#e9e9ea;--hover:#f5f5f7;--fill:#ececf0;--chev:#c4c4c7;--swatch:#d1d1d6;--hink:#3c3c43;--chk1:#fff;--chk2:#e5e5ea;--opt:#fff}#kts.light .ic{background:linear-gradient(180deg,#303033,#131315);color:var(--c,#8e8e93);box-shadow:inset 0 0 0 .5px rgba(255,255,255,.07)}#kts.light .ic.dot{background:linear-gradient(180deg,#303033,#131315)}#kts.light .cell.tog input::before{box-shadow:0 3px 8px rgba(0,0,0,.15),0 0 0 .5px rgba(0,0,0,.04)}#kts.theming,#kts.theming *{transition:background-color .35s,color .35s,border-color .35s,transform .22s cubic-bezier(.3,.7,.4,1)!important}#kts,#kts *{box-sizing:border-box;min-width:0}#kts [hidden]{display:none!important}#kts{margin:0;background:var(--bg);color:var(--ink);font:16px/1.35 -apple-system,BlinkMacSystemFont,\"SF Pro Text\",\"SF Pro Display\",Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:clip}#kts .wrap{max-width:1240px;margin:0 auto;padding:28px max(2vw,14px) 60px}#kts header{margin:0 6px 18px}#kts h1{font-size:34px;line-height:1.1;margin:0;font-weight:700;letter-spacing:.01em}#kts header p{margin:6px 0 0;color:var(--dim);font-size:15px}#kts .hero{background:var(--card);border-radius:var(--r);overflow:hidden;margin-bottom:14px}#kts .stage{position:relative;background:#000;display:grid;place-items:center;margin:10px 10px 0;border-radius:14px;overflow:hidden}#kts .stage.alpha{background:repeating-conic-gradient(var(--chk1) 0 25%,var(--chk2) 0 50%) 0 0/24px 24px}#kts .stage.drop{outline:2px dashed var(--acc);outline-offset:-6px}#kts #kts-cv{display:block;width:100%;height:auto;max-height:64vh;object-fit:contain}#kts .transport{display:flex;gap:10px;align-items:center;padding:12px 16px 14px;flex-wrap:wrap}#kts .transport input[type=range]{flex:1 1 240px}#kts #kts-fr{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--dim);font-size:14px;white-space:nowrap;min-width:116px;text-align:right}#kts .pill{font:inherit;font-size:15px;font-weight:600;border:0;border-radius:999px;height:36px;padding:0 16px;cursor:pointer;background:var(--card2);color:var(--acc)}#kts .pill.pri{background:var(--acc);color:#fff}#kts .prevsel{background-color:var(--card2);border-radius:999px;height:36px;padding:0 26px 0 14px;font-size:14px;background-position:right 10px center;color:var(--ink)}#kts .pill:hover{filter:brightness(1.12)}#kts .search{display:flex;align-items:center;gap:10px;background:var(--card);border-radius:28px;padding:0 8px 0 18px;min-height:56px;margin-bottom:8px}#kts .search+.foot{margin-bottom:24px}#kts .search svg{flex:none;width:22px;height:22px;color:var(--dim)}#kts #kts-txt{flex:1;font:600 21px/1.3 -apple-system,BlinkMacSystemFont,\"SF Pro Display\",Inter,sans-serif;background:0 0;border:0;color:var(--ink);outline:0;resize:none;padding:14px 0;margin:0;overflow:hidden}#kts .layout{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:22px 18px;align-items:start}#kts .grp h2.sub{margin-top:16px}#kts .grp h2{font-size:13px;font-weight:400;text-transform:uppercase;letter-spacing:.02em;color:var(--dim);margin:0 16px 7px}#kts .card{background:var(--card);border-radius:var(--r);overflow:hidden}#kts .card+.card,#kts .foot+.card,#kts .foot+input+.card{margin-top:14px}#kts .foot{color:var(--dim);font-size:13px;margin:7px 16px 0;line-height:1.4}#kts #kts-status{color:var(--acc)}#kts .cell{display:grid;grid-template-columns:30px auto minmax(0,1fr) auto;align-items:center;column-gap:12px;min-height:52px;padding:6px 16px;position:relative;width:100%;font:inherit;color:var(--ink);background:0 0;border:0;text-align:left}#kts .cell+.cell::before{content:'';position:absolute;top:0;left:58px;right:0;height:1px;transform:scaleY(.5);transform-origin:top;background:var(--line)}#kts .cell\u003e.lb,#kts .cell\u003elabel{grid-column:2;white-space:nowrap;font-size:16px}#kts .cell output{grid-column:4;font-variant-numeric:tabular-nums;font-size:15px;color:var(--dim);min-width:44px;text-align:right}#kts .cell\u003einput[type=range]{grid-column:3}#kts .cell:not(.val):not(.tog)\u003elabel{min-width:86px}#kts .col{display:grid;gap:22px;align-content:start}#kts .ic{width:30px;height:30px;border-radius:7px;background:var(--c,#8e8e93);display:grid;place-items:center;color:#fff}#kts .ic svg{width:19px;height:19px}#kts .ic.dot{background:var(--fill)}#kts .ic.dot::after{content:'';width:12px;height:12px;border-radius:50%;background:var(--c)}#kts .cell.val\u003e:is(select,input,.wh,.fx){grid-column:3/5;justify-self:end}#kts select{appearance:none;-webkit-appearance:none;font:inherit;font-size:16px;color:var(--dim);background:transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6l3-3 3 3M2 10l3 3 3-3'/%3E%3C/svg%3E\") right center/10px 16px no-repeat;border:0;padding:6px 18px 6px 4px;text-align:right;text-align-last:right;cursor:pointer;max-width:100%}#kts select:hover{color:var(--hink)}#kts select optgroup,#kts select option{background:var(--opt);color:var(--ink);text-align:left}#kts .cell input[type=text],#kts input[type=number]{font:inherit;font-size:16px;color:var(--dim);background:0 0;border:0;text-align:right;width:120px;padding:6px 0;outline:0}#kts .cell input[type=text]{width:100%;max-width:220px}#kts .cell input[type=text]:focus,#kts input[type=number]:focus{color:var(--ink)}#kts .wh{display:flex;align-items:center;gap:4px;color:var(--dim)}#kts .wh input{width:64px!important}#kts .fx{display:flex;align-items:center;gap:6px;width:100%;justify-content:flex-end}#kts .hex{color:var(--dim);font-size:15px;font-variant-numeric:tabular-nums;letter-spacing:.02em}#kts .cell output{cursor:text;border-radius:6px;padding:2px 4px;margin-right:-4px}#kts .cell output:hover{background:var(--fill);color:var(--ink)}#kts .numedit{grid-column:4;width:70px;font:inherit;font-size:15px;text-align:right;color:var(--ink);background:var(--fill);border:0;border-radius:6px;padding:3px 6px;outline:0;-moz-appearance:textfield}#kts .numedit::-webkit-inner-spin-button{display:none}#kts .fx button{font:inherit;font-size:16px;color:var(--acc);background:0 0;border:0;cursor:pointer;padding:6px 2px}#kts input[type=color]{-webkit-appearance:none;appearance:none;width:30px;height:30px;border:0;border-radius:50%;padding:0;background:0 0;cursor:pointer}#kts input[type=color]::-webkit-color-swatch-wrapper{padding:0}#kts input[type=color]::-webkit-color-swatch{border:2px solid var(--swatch);border-radius:50%}#kts input[type=color]::-moz-color-swatch{border:2px solid var(--swatch);border-radius:50%}#kts .cell.tog{cursor:pointer}#kts .cell.tog\u003espan:not(.ic){grid-column:2/4;font-size:16px}#kts .cell.tog input{grid-column:4;appearance:none;-webkit-appearance:none;width:51px;height:31px;border-radius:16px;background:var(--tgoff);position:relative;margin:0;cursor:pointer;transition:background .2s}#kts .cell.tog input::before{content:'';position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.25);transition:transform .22s cubic-bezier(.3,.7,.4,1)}#kts .cell.tog input:checked{background:var(--on)}#kts .cell.tog input:checked::before{transform:translateX(20px)}#kts button.cell{cursor:pointer}#kts button.cell:hover{background:var(--hover)}#kts button.cell .lb{grid-column:2/4}#kts button.cell.blue .lb{color:var(--acc)}#kts button.cell.red .lb{color:#ff453a}#kts .chev{grid-column:4;width:8px;height:14px;color:var(--chev)}#kts button.cell:disabled{opacity:.35;cursor:default}#kts button.cell:disabled:hover{background:0 0}#kts .prog{height:4px;border-radius:2px;background:var(--track);margin:10px 16px 0;overflow:hidden}#kts .prog i{display:block;height:100%;width:0;background:var(--acc);transition:width .12s}#kts [inert]{opacity:.4;transition:opacity .2s}#kts input[type=range]{-webkit-appearance:none;appearance:none;background:0 0;height:30px;width:100%;margin:0;cursor:pointer}#kts input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--track) var(--a,0),var(--acc) var(--a,0),var(--acc) var(--b,50%),var(--track) var(--b,50%))}#kts input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:#fff;margin-top:-11px;box-shadow:0 3px 8px rgba(0,0,0,.3),0 0 0 .5px rgba(0,0,0,.04)}#kts input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--track)}#kts input[type=range]::-moz-range-progress{height:4px;border-radius:2px;background:var(--acc)}#kts input[type=range]::-moz-range-thumb{width:26px;height:26px;border:0;border-radius:50%;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.3)}#kts .styles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}#kts .styles .cell::before{content:'';position:absolute;top:0;left:58px;right:0;height:1px;transform:scaleY(.5);transform-origin:top;background:var(--line)}#kts :focus-visible{outline:2px solid var(--acc);outline-offset:2px;border-radius:8px}@media(max-width:600px){#kts h1{font-size:30px}#kts #kts-txt{font-size:18px}#kts .cell input[type=text]{max-width:150px}}#kts{position:relative;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);text-align:left;letter-spacing:normal;text-transform:none;isolation:isolate;z-index:1}#kts h1,#kts h2,#kts p{text-align:left}\u003c/style\u003e\u003cdiv id=\"kts\"\u003e\u003cdiv class=\"wrap\"\u003e\u003cheader\u003e\u003ch1\u003eType Scramble\u003c/h1\u003e\u003cp\u003eEach letter flips through looks, then settles into clean type.\u003c/p\u003e\u003c/header\u003e\u003cdiv class=\"hero\"\u003e\u003cdiv class=\"stage\" id=\"kts-stage\"\u003e\u003ccanvas id=\"kts-cv\" width=\"1920\" height=\"1080\"\u003e\u003c/canvas\u003e\u003c/div\u003e\u003cdiv class=\"transport\"\u003e\u003cbutton class=\"pill pri\" id=\"kts-play\"\u003ePause\u003c/button\u003e \u003cbutton class=\"pill\" id=\"kts-restart\"\u003eRestart\u003c/button\u003e \u003cinput type=\"range\" id=\"kts-scrub\" min=\"0\" max=\"100\" value=\"0\" aria-label=\"Scrub timeline\"\u003e \u003cspan id=\"kts-fr\"\u003e0 / 0\u003c/span\u003e \u003cselect id=\"kts-prev\" class=\"prevsel\" aria-label=\"Preview resolution\" title=\"Preview resolution — exports are always full resolution\"\u003e\u003coption value=\"auto\" selected=\"selected\"\u003eAuto\u003c/option\u003e\u003coption value=\"1\"\u003eFull\u003c/option\u003e\u003coption value=\"0.5\"\u003eHalf\u003c/option\u003e\u003coption value=\"0.25\"\u003eQuarter\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"search\"\u003e\u003csvg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"\u003e\u003cpath d=\"M4 7V5h16v2M12 5v14M9 19h6\"/\u003e\u003c/svg\u003e \u003ctextarea id=\"kts-txt\" rows=\"1\" aria-label=\"Text (Enter for a new line)\" spellcheck=\"false\"\u003eKiuzr Scramble\u003c/textarea\u003e \u003cbutton class=\"pill\" id=\"kts-shuffle\"\u003eShuffle\u003c/button\u003e\u003c/div\u003e\u003cp class=\"foot\"\u003eEnter adds a new line · Space play/pause · ← → step a frame (Shift ×10) · Home / End jump to first / last frame · Drop a font file anywhere to use it.\u003c/p\u003e\u003cdiv class=\"layout\"\u003e\u003cdiv class=\"col\"\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003eTiming\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"hourglass\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-dur\"\u003eScramble\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-dur\" min=\"0.5\" max=\"4\" step=\"0.05\" value=\"1\"\u003e\u003coutput id=\"kts-durO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"pause\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-hold\"\u003eEnd hold\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-hold\" min=\"0\" max=\"4\" step=\"0.25\" value=\"1.5\"\u003e\u003coutput id=\"kts-holdO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"swap\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-hmin\"\u003eSwap min\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-hmin\" min=\"1\" max=\"10\" step=\"1\" value=\"3\"\u003e\u003coutput id=\"kts-hminO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"swap\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-hmax\"\u003eSwap max\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-hmax\" min=\"1\" max=\"12\" step=\"1\" value=\"6\"\u003e\u003coutput id=\"kts-hmaxO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"ease\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003clabel for=\"kts-ein\"\u003eEase in\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-ein\" min=\"0\" max=\"8\" step=\"1\" value=\"3\"\u003e\u003coutput id=\"kts-einO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"fade\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003clabel for=\"kts-xf\"\u003eCrossfade\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-xf\" min=\"0\" max=\"6\" step=\"1\" value=\"2\"\u003e\u003coutput id=\"kts-xfO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"pop\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-pop\"\u003ePop from\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-pop\" min=\"0\" max=\"100\" step=\"5\" value=\"55\"\u003e\u003coutput id=\"kts-popO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"check\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-resf\"\u003eResolve\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-resf\" min=\"0\" max=\"12\" step=\"1\" value=\"5\"\u003e\u003coutput id=\"kts-resO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"settle\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-settle\"\u003eSettle\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-settle\" min=\"0\" max=\"30\" step=\"1\" value=\"10\"\u003e\u003coutput id=\"kts-settleO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"bars\" style=\"--c:#5e5ce6\"\u003e\u003c/span\u003e\u003clabel for=\"kts-spread\"\u003eStagger\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-spread\" min=\"0\" max=\"1\" step=\"0.05\" value=\"0.6\"\u003e\u003coutput id=\"kts-spreadO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"film\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003clabel for=\"kts-fps\"\u003eFrame rate\u003c/label\u003e\u003cselect id=\"kts-fps\"\u003e\u003coption\u003e5\u003c/option\u003e\u003coption";
(window.__kts=window.__kts||[])[1]="\u003e8\u003c/option\u003e\u003coption\u003e10\u003c/option\u003e\u003coption\u003e12\u003c/option\u003e\u003coption\u003e23.976\u003c/option\u003e\u003coption selected=\"selected\"\u003e24\u003c/option\u003e\u003coption\u003e25\u003c/option\u003e\u003coption\u003e30\u003c/option\u003e\u003coption\u003e60\u003c/option\u003e\u003coption value=\"custom\"\u003eCustom…\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\" id=\"kts-fpsRow\" hidden\u003e\u003cspan class=\"ic\" data-ic=\"film\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003clabel for=\"kts-fpsC\"\u003eCustom fps\u003c/label\u003e\u003cinput type=\"number\" id=\"kts-fpsC\" min=\"1\" max=\"120\" step=\"any\" value=\"15\"\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"order\" style=\"--c:#5e5ce6\"\u003e\u003c/span\u003e\u003clabel for=\"kts-order\"\u003eOrder\u003c/label\u003e\u003cselect id=\"kts-order\"\u003e\u003coption value=\"ltr\" selected=\"selected\"\u003eLeft → right\u003c/option\u003e\u003coption value=\"rtl\"\u003eRight → left\u003c/option\u003e\u003coption value=\"center\"\u003eCenter out\u003c/option\u003e\u003coption value=\"edges\"\u003eEdges in\u003c/option\u003e\u003coption value=\"random\"\u003eRandom\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"pulse\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-rhythm\"\u003eSwap rhythm\u003c/label\u003e\u003cselect id=\"kts-rhythm\"\u003e\u003coption value=\"even\" selected=\"selected\"\u003eEven\u003c/option\u003e\u003coption value=\"accel\"\u003eSpeed up\u003c/option\u003e\u003coption value=\"decel\"\u003eSlow down\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"anchor\" style=\"--c:#64d2ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-anchor\"\u003ePop anchor\u003c/label\u003e\u003cselect id=\"kts-anchor\"\u003e\u003coption value=\"0\"\u003eBottom\u003c/option\u003e\u003coption value=\"1\"\u003eCenter\u003c/option\u003e\u003coption value=\"2\"\u003eTop\u003c/option\u003e\u003coption value=\"3\"\u003eLeft\u003c/option\u003e\u003coption value=\"4\"\u003eRight\u003c/option\u003e\u003coption value=\"5\"\u003eRandom per letter\u003c/option\u003e\u003coption value=\"6\" selected=\"selected\"\u003eRandom per look\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"loop\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003cspan\u003eLoop playback\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-loop\" checked=\"checked\"\u003e\u003c/label\u003e\u003c/div\u003e\u003c/section\u003e\u003csection class=\"grp\" id=\"kts-motionGrp\"\u003e\u003ch2\u003eMotion\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"wave\" style=\"--c:#64d2ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvPreset\"\u003eMovement\u003c/label\u003e\u003cselect id=\"kts-mvPreset\"\u003e\u003coption value=\"none\" selected=\"selected\"\u003eNone\u003c/option\u003e\u003coption value=\"wave\"\u003eWave\u003c/option\u003e\u003coption value=\"float\"\u003eFloat\u003c/option\u003e\u003coption value=\"jelly\"\u003eJelly\u003c/option\u003e\u003coption value=\"swing\"\u003eSwing\u003c/option\u003e\u003coption value=\"drop\"\u003eDrop in\u003c/option\u003e\u003coption value=\"rise\"\u003eRise up\u003c/option\u003e\u003coption value=\"scatter\"\u003eScatter in\u003c/option\u003e\u003coption value=\"spin\"\u003eSpin in\u003c/option\u003e\u003coption value=\"sweep\"\u003eSweep lift\u003c/option\u003e\u003coption value=\"domino\"\u003eDomino\u003c/option\u003e\u003coption value=\"custom\"\u003eCustom\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"sliders\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003cspan\u003eEdit behaviours\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-mvOpen\"\u003e\u003c/label\u003e\u003c/div\u003e\u003cp class=\"foot\"\u003eCavalry-style behaviours layered on every letter: oscillators with index stagger, a falloff that letters react to, and a spring arrive.\u003c/p\u003e\u003cdiv id=\"kts-mvBody\" hidden\u003e\u003ch2 class=\"sub\"\u003eOscillators\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"gauge\" style=\"--c:#64d2ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvSpeed\"\u003eSpeed\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvSpeed\" min=\"0.1\" max=\"4\" step=\"0.05\" value=\"1\"\u003e\u003coutput id=\"kts-mvSpeedO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"bars\" style=\"--c:#5e5ce6\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvPhase\"\u003eStagger\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvPhase\" min=\"0\" max=\"180\" step=\"5\" value=\"30\"\u003e\u003coutput id=\"kts-mvPhaseO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"wave\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvWave\"\u003eWave\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvWave\" min=\"0\" max=\"60\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvWaveO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"sway\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvSway\"\u003eSway\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvSway\" min=\"0\" max=\"45\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvSwayO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"pop\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvPulse\"\u003ePulse\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvPulse\" min=\"0\" max=\"50\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvPulseO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"noise\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvNoise\"\u003eNoise\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvNoise\" min=\"0\" max=\"40\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvNoiseO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003c/div\u003e\u003ch2 class=\"sub\"\u003eFalloff\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"falloff\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvFall\"\u003eFalloff\u003c/label\u003e\u003cselect id=\"kts-mvFall\"\u003e\u003coption value=\"even\" selected=\"selected\"\u003eEven\u003c/option\u003e\u003coption value=\"ramp\"\u003eIndex ramp\u003c/option\u003e\u003coption value=\"center\"\u003eCenter out\u003c/option\u003e\u003coption value=\"sweep\"\u003eMoving sweep\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell\" id=\"kts-mvRadRow\"\u003e\u003cspan class=\"ic\" data-ic=\"radius\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvRad\"\u003eRadius\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvRad\" min=\"10\" max=\"100\" step=\"5\" value=\"35\"\u003e\u003coutput id=\"kts-mvRadO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"lift\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvLift\"\u003eLift\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvLift\" min=\"-100\" max=\"100\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvLiftO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"grow\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvGrow\"\u003eGrow\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvGrow\" min=\"-100\" max=\"100\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvGrowO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"tilt\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvTilt\"\u003eTilt\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvTilt\" min=\"-90\" max=\"90\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-mvTiltO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"coil\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003cspan\u003eReactive spring\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-mvReact\"\u003e\u003c/label\u003e\u003c/div\u003e\u003ch2 class=\"sub\"\u003eArrive\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"arrive\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvFrom\"\u003eArrive from\u003c/label\u003e\u003cselect id=\"kts-mvFrom\"\u003e\u003coption value=\"off\" selected=\"selected\"\u003eOff\u003c/option\u003e\u003coption value=\"below\"\u003eBelow\u003c/option\u003e\u003coption value=\"above\"\u003eAbove\u003c/option\u003e\u003coption value=\"left\"\u003eLeft\u003c/option\u003e\u003coption value=\"right\"\u003eRight\u003c/option\u003e\u003coption value=\"scatter\"\u003eScatter\u003c/option\u003e\u003coption value=\"depth\"\u003eDepth (scale up)\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"track\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvDist\"\u003eDistance\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvDist\" min=\"0\" max=\"200\" step=\"5\" value=\"60\"\u003e\u003coutput id=\"kts-mvDistO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"reset\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvSpin\"\u003eSpin\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvSpin\" min=\"-360\" max=\"360\" step=\"5\" value=\"0\"\u003e\u003coutput id=\"kts-mvSpinO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"hourglass\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvDur\"\u003eDuration\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvDur\" min=\"0.1\" max=\"2\" step=\"0.05\" value=\"0.6\"\u003e\u003coutput id=\"kts-mvDurO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"bounce\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvBounce\"\u003eBounce\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-mvBounce\" min=\"0\" max=\"90\" step=\"5\" value=\"30\"\u003e\u003coutput id=\"kts-mvBounceO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"pivot\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003clabel for=\"kts-mvPivot\"\u003ePivot\u003c/label\u003e\u003cselect id=\"kts-mvPivot\"\u003e\u003coption value=\"center\" selected=\"selected\"\u003eCenter\u003c/option\u003e\u003coption value=\"base\"\u003eBaseline\u003c/option\u003e\u003coption value=\"top\"\u003eTop\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"loop\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003cspan\u003eKeep moving on final text\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-mvKeep\" checked=\"checked\"\u003e\u003c/label\u003e\u003c/div\u003e\u003cp class=\"foot\"\u003eBounce also sets how springy the Reactive spring is. Lift / Grow / Tilt follow the falloff, so try them with Moving sweep.\u003c/p\u003e\u003c/div\u003e\u003c/section\u003e\u003c/div\u003e\u003cdiv class=\"col\"\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003eType\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"font\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-font\"\u003eFont\u003c/label\u003e\u003cselect id=\"kts-font\"\u003e\u003coptgroup label=\"Suggested\" id=\"kts-grpSuggest\"\u003e\u003coption value=\"SF Pro Display\" selected=\"selected\"\u003eSF Pro Display\u003c/option\u003e\u003coption value=\"Arial\"\u003eArial\u003c/option\u003e\u003coption value=\"Helvetica\"\u003eHelvetica\u003c/option\u003e\u003coption value=\"Inter\"\u003eInter\u003c/option\u003e\u003c/optgroup\u003e\u003coptgroup label=\"Imported\" id=\"kts-grpImported\" hidden\u003e\u003c/optgroup\u003e\u003coptgroup label=\"Installed on this computer\" id=\"kts-grpInstalled\"\u003e\u003c/optgroup\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"bold\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003clabel for=\"kts-wt\"\u003eWeight\u003c/label\u003e\u003cselect id=\"kts-wt\"\u003e\u003coption value=\"100\"\u003e100 · Thin\u003c/option\u003e\u003coption value=\"200\"\u003e200 · Extra Light\u003c/option\u003e\u003coption value=\"300\"\u003e300 · Light\u003c/option\u003e\u003coption value=\"400\"\u003e400 · Regular\u003c/option\u003e\u003coption value=\"500\"\u003e500 · Medium\u003c/option\u003e\u003coption value=\"600\"\u003e600 · Semibold\u003c/option\u003e\u003coption value=\"700\" selected=\"selected\"\u003e700 · Bold\u003c/option\u003e\u003coption value=\"800\"\u003e800 · Heavy\u003c/option\u003e\u003coption value=\"900\"\u003e900 · Black\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cbutton class=\"cell blue\" id=\"kts-fontBtn\" title=\"Import .ttf, .otf, .woff or .woff2\"\u003e\u003cspan class=\"ic\" data-ic=\"import\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eImport font…\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell blue\" id=\"kts-allFontsBtn\" title=\"Ask the browser for every font on this computer\" hidden\u003e\u003cspan class=\"ic\" data-ic=\"list\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eList all installed fonts\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"keyboard\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003clabel for=\"kts-sysfont\"\u003eBy name\u003c/label\u003e\u003cdiv class=\"fx\"\u003e\u003cinput type=\"text\" id=\"kts-sysfont\" placeholder=\"Helvetica Neue\" spellcheck=\"false\"\u003e\u003cbutton id=\"kts-sysBtn\"\u003eUse\u003c/button\u003e\u003c/div\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"sparkle\" style=\"--c:#bf5af2\"\u003e\u003c/span\u003e\u003cspan\u003eUse font in the looks too\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-fontLooks\"\u003e\u003c/label\u003e\u003c/div\u003e\u003cp class=\"foot\" id=\"kts-fontStatus\" role=\"status\"\u003eYou can also drop font files onto the canvas.\u003c/p\u003e\u003cinput type=\"file\" id=\"kts-fontFile\" accept=\".ttf,.otf,.woff,.woff2\" multiple=\"multiple\" hidden\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"size\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-size\"\u003eSize\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-size\" min=\"40\" max=\"400\" step=\"2\" value=\"190\"\u003e\u003coutput id=\"kts-sizeO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=";
(window.__kts=window.__kts||[])[2]="\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"track\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-track\"\u003eTracking\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-track\" min=\"-20\" max=\"60\" step=\"1\" value=\"0\"\u003e\u003coutput id=\"kts-trackO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell\"\u003e\u003cspan class=\"ic\" data-ic=\"lead\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-lead\"\u003eLeading\u003c/label\u003e\u003cinput type=\"range\" id=\"kts-lead\" min=\"70\" max=\"200\" step=\"5\" value=\"110\"\u003e\u003coutput id=\"kts-leadO\"\u003e\u003c/output\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"align\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-align\"\u003eAlign\u003c/label\u003e\u003cselect id=\"kts-align\"\u003e\u003coption value=\"left\"\u003eLeft\u003c/option\u003e\u003coption value=\"center\" selected=\"selected\"\u003eCenter\u003c/option\u003e\u003coption value=\"right\"\u003eRight\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"drop\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-fcol\"\u003eFinal color\u003c/label\u003e\u003cdiv class=\"fx\"\u003e\u003cspan class=\"hex\" id=\"kts-fcolH\"\u003e\u003c/span\u003e\u003cinput type=\"color\" id=\"kts-fcol\" value=\"#ffffff\"\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"square\" style=\"--c:#636366\"\u003e\u003c/span\u003e\u003clabel for=\"kts-bg\"\u003eBackground\u003c/label\u003e\u003cdiv class=\"fx\"\u003e\u003cspan class=\"hex\" id=\"kts-bgH\"\u003e\u003c/span\u003e\u003cinput type=\"color\" id=\"kts-bg\" value=\"#000000\"\u003e\u003c/div\u003e\u003c/div\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"checker\" style=\"--c:#636366\"\u003e\u003c/span\u003e\u003cspan\u003eTransparent background\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-alpha\"\u003e\u003c/label\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"crop\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-res\"\u003eCanvas\u003c/label\u003e\u003cselect id=\"kts-res\"\u003e\u003coption value=\"1920x1080\"\u003e1920 × 1080\u003c/option\u003e\u003coption value=\"3840x2160\"\u003e3840 × 2160\u003c/option\u003e\u003coption value=\"1080x1080\"\u003e1080 × 1080\u003c/option\u003e\u003coption value=\"1080x1920\"\u003e1080 × 1920\u003c/option\u003e\u003coption value=\"custom\"\u003eCustom…\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\" id=\"kts-resRow\" hidden\u003e\u003cspan class=\"ic\" data-ic=\"crop\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-resW\"\u003eSize (px)\u003c/label\u003e\u003cdiv class=\"wh\"\u003e\u003cinput type=\"number\" id=\"kts-resW\" min=\"16\" max=\"8192\" step=\"1\" value=\"1920\" aria-label=\"Width\"\u003e\u003cspan\u003e×\u003c/span\u003e\u003cinput type=\"number\" id=\"kts-resH\" min=\"16\" max=\"8192\" step=\"1\" value=\"1080\" aria-label=\"Height\"\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/section\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003eExport\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"dice\" style=\"--c:#5e5ce6\"\u003e\u003c/span\u003e\u003clabel for=\"kts-seed\"\u003eSeed\u003c/label\u003e\u003cinput type=\"number\" id=\"kts-seed\" value=\"7\"\u003e\u003c/div\u003e\u003c/div\u003e\u003cdiv class=\"card\" id=\"kts-expCard\"\u003e\u003cbutton class=\"cell blue\" id=\"kts-expZip\"\u003e\u003cspan class=\"ic\" data-ic=\"stack\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003ePNG sequence (.zip)\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell blue\" id=\"kts-expWebm\"\u003e\u003cspan class=\"ic\" data-ic=\"video\" style=\"--c:#ff453a\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eWebM video\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell blue\" id=\"kts-expPng\"\u003e\u003cspan class=\"ic\" data-ic=\"photo\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eThis frame (.png)\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e\u003c/div\u003e\u003cdiv class=\"prog\" id=\"kts-prog\" hidden\u003e\u003ci\u003e\u003c/i\u003e\u003c/div\u003e\u003cp class=\"foot\" id=\"kts-status\" role=\"status\"\u003e\u003c/p\u003e\u003cp class=\"foot\"\u003ePNG sequence keeps alpha when the background is transparent — drop it straight into After Effects.\u003c/p\u003e\u003c/section\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003ePresets\u003c/h2\u003e\u003cdiv class=\"card\" id=\"kts-presetCard\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"bookmark\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-presetSel\"\u003eLoad preset\u003c/label\u003e\u003cselect id=\"kts-presetSel\"\u003e\u003coption value=\"\"\u003eNone saved\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"plus\" style=\"--c:#30d158\"\u003e\u003c/span\u003e\u003clabel for=\"kts-presetName\"\u003eSave as\u003c/label\u003e\u003cdiv class=\"fx\"\u003e\u003cinput type=\"text\" id=\"kts-presetName\" placeholder=\"Preset name\" spellcheck=\"false\"\u003e\u003cbutton id=\"kts-presetSave\"\u003eSave\u003c/button\u003e\u003c/div\u003e\u003c/div\u003e\u003cbutton class=\"cell red\" id=\"kts-presetDel\" disabled=\"disabled\"\u003e\u003cspan class=\"ic\" data-ic=\"trash\" style=\"--c:#ff453a\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eDelete selected preset\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell blue\" id=\"kts-presetOut\"\u003e\u003cspan class=\"ic\" data-ic=\"share\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eExport presets file\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell blue\" id=\"kts-presetIn\"\u003e\u003cspan class=\"ic\" data-ic=\"import\" style=\"--c:#0a84ff\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eImport presets file…\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e \u003cbutton class=\"cell red\" id=\"kts-resetAll\"\u003e\u003cspan class=\"ic\" data-ic=\"reset\" style=\"--c:#8e8e93\"\u003e\u003c/span\u003e\u003cspan class=\"lb\"\u003eReset to defaults\u003c/span\u003e\u003csvg class=\"chev\" viewBox=\"0 0 8 14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003cpath d=\"M1 1l6 6-6 6\"/\u003e\u003c/svg\u003e\u003c/button\u003e\u003c/div\u003e\u003cinput type=\"file\" id=\"kts-presetFile\" accept=\".json,application/json\" hidden\u003e\u003cp class=\"foot\" id=\"kts-presetNote\"\u003ePresets are saved in this browser. Export the file to move them between your Mac and PC.\u003c/p\u003e\u003c/section\u003e\u003c/div\u003e\u003cdiv class=\"col\"\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003eDisplay\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic\" data-ic=\"sun\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003cspan\u003eLight mode\u003c/span\u003e\u003cinput type=\"checkbox\" id=\"kts-uiLight\"\u003e\u003c/label\u003e\u003c/div\u003e\u003cp class=\"foot\"\u003eOnly changes this panel — your animation and exports keep their own colours.\u003c/p\u003e\u003c/section\u003e\u003csection class=\"grp\"\u003e\u003ch2\u003eLooks\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"cell val\"\u003e\u003cspan class=\"ic\" data-ic=\"sparkle\" style=\"--c:#ff375f\"\u003e\u003c/span\u003e\u003clabel for=\"kts-pack\"\u003eStyle\u003c/label\u003e\u003cselect id=\"kts-pack\"\u003e\u003coption value=\"tools\" selected=\"selected\"\u003eTools\u003c/option\u003e\u003coption value=\"emoji\"\u003eEmoji\u003c/option\u003e\u003coption value=\"doodle\"\u003eDoodles\u003c/option\u003e\u003coption value=\"keyboard\"\u003eKeyboard\u003c/option\u003e\u003coption value=\"all\"\u003eMix everything\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\" id=\"kts-keyRow\" hidden\u003e\u003cspan class=\"ic\" data-ic=\"keyboard\" style=\"--c:#636366\"\u003e\u003c/span\u003e\u003clabel for=\"kts-keyTheme\"\u003eKeycap theme\u003c/label\u003e\u003cselect id=\"kts-keyTheme\"\u003e\u003coption value=\"dark\" selected=\"selected\"\u003eDark\u003c/option\u003e\u003coption value=\"light\"\u003eLight\u003c/option\u003e\u003coption value=\"mixed\"\u003eMixed\u003c/option\u003e\u003c/select\u003e\u003c/div\u003e\u003cdiv class=\"cell val\" id=\"kts-lookRow\"\u003e\u003cspan class=\"ic\" data-ic=\"tag\" style=\"--c:#ff9f0a\"\u003e\u003c/span\u003e\u003clabel for=\"kts-lookLbl\"\u003ePhoto label\u003c/label\u003e\u003cinput type=\"text\" id=\"kts-lookLbl\" value=\"Character-{char}\" spellcheck=\"false\"\u003e\u003c/div\u003e\u003c/div\u003e\u003cp class=\"foot\" id=\"kts-lookNote\"\u003e{char} becomes the letter, e.g. Character-K.\u003c/p\u003e\u003ch2 style=\"margin-top:18px\"\u003eIn the mix\u003c/h2\u003e\u003cdiv class=\"card\"\u003e\u003cdiv class=\"styles\" id=\"kts-styles\"\u003e\u003c/div\u003e\u003c/div\u003e\u003c/section\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003c/div\u003e\u003cscript\u003e!function(){const e=document.getElementById(\"kts\"),t=e=\u003edocument.getElementById(String(e).startsWith(\"kts-\")?e:\"kts-\"+e),a=e=\u003ee.id.replace(/^kts-/,\"\");try{\"light\"===localStorage.getItem(\"kiuzr-scramble-ui\")&&e.classList.add(\"light\")}catch(e){}let o=!1;e.addEventListener(\"pointerenter\",()=\u003eo=!0),e.addEventListener(\"pointerleave\",()=\u003eo=!1);const n=t(\"cv\"),l=n.getContext(\"2d\"),r='Inter, \"SF Pro Display\", -apple-system, \"Helvetica Neue\", Arial, sans-serif',i='\"SF Pro Display\", -apple-system, Arial, Helvetica, Inter, sans-serif';let s=\"Character-{char}\",c=r,f='\"SF Pro Display\", '+i;const d='Fredoka, \"Arial Rounded MT Bold\", sans-serif',h='\"Permanent Marker\", cursive',p='\"Titan One\", \"Arial Black\", sans-serif',m=(e,t,a,o=\"\")=\u003e`${o}${e} ${t}px ${a}`;function u(e){return function(){e=(e|=0)+1831565813|0;let t=Math.imul(e^e\u003e\u003e\u003e15,1|e);return t=t+Math.imul(t^t\u003e\u003e\u003e7,61|t)^t,((t^t\u003e\u003e\u003e14)\u003e\u003e\u003e0)/4294967296}}const v=document.createElement(\"canvas\"),M=v.getContext(\"2d\"),g=document.createElement(\"canvas\"),b=g.getContext(\"2d\");function x(e,t,a,o,n){const l=Math.ceil(2.6*a),r=Math.ceil(2.2*a),i=t.cx-l/2,s=t.base-.72*r;v.width=l,v.height=r,M.setTransform(1,0,0,1,-i,-s),n(M),M.globalCompositeOperation=\"destination-in\",M.font=o,M.textAlign=\"center\",M.fillStyle=\"#000\",M.fillText(t.ch,t.cx,t.base),M.globalCompositeOperation=\"source-over\",e.drawImage(v,i,s)}function y(e,t,a,o,n=0,l=0){e.font=a,e.textAlign=\"center\",e.fillStyle=o,e.fillText(t.ch,t.cx+n,t.base+l)}function k(e,t,a,o,n,l){e.beginPath(),e.roundRect?e.roundRect(t,a,o,n,l):e.rect(t,a,o,n)}const w={neon:{name:\"Neon tube\",draw(e,t,a,o,n,l=1){const r=[[\"#ff7a18\",\"#ff3d6e\"],[\"#2fd5ff\",\"#a44dff\",\"#ffd23f\"],[\"#7cff6b\",\"#00c2ff\"],[\"#ff4fd8\",\"#ffb03a\"]],i=r[Math.floor(o()*r.length)],s=e.createLinearGradient(t.cx-.4*a,t.top,t.cx+.4*a,t.base);i.forEach((e,t)=\u003es.addColorStop(t/(i.length-1),e)),e.font=m(500,1.05*a,d),e.textAlign=\"center\",e.lineWidth=.075*a,e.lineJoin=\"round\",e.lineCap=\"round\",e.strokeStyle=s,l\u003c1&&e.setLineDash([7*a*l+.01,40*a]),e.strokeText(t.ch,t.cx,t.base),e.setLineDash([])}},brush:{name:\"Brush marker\",draw(e,t,a,o,n,l=1){const r=e.globalAlpha;e.shadowColor=\"#29dcff\",e.shadowBlur=.08*a;for(let n=2;n\u003e=0;n--)e.globalAlpha=r*(n?.4:1),y(e,t,m(400,1.05*a,h),\"#29dcff\",(o()-.5)*a*.05,(o()-.5)*a*.03);e.globalAlpha=r,o()\u003c.55&&(e.strokeStyle=\"#29dcff\",e.lineWidth=.065*a,e.lineCap=\"round\",e.beginPath(),e.moveTo(t.cx-.3*a,t.mid+.02*a),e.lineTo(t.cx-.3*a+.62*a*l,t.mid+.02*a-.08*a*l),e.stroke())}},ants:{name:\"Selection ants\",draw(e,t,a,o,n){y(e,t,m(800,a,c),\"#ff1f4b\"),e.setLineDash([.035*a,.025*a]),e.lineDashOffset=-n*a*.012,e.strokeStyle=\"#fff\",e.lineWidth=.018*a,e.strokeText(t.ch,t.cx,t.base),e.setLineDash([]),Y(e,t.cx-.35*t.w,t.top-.08*a,.032*a,\"#ff2a2a\"),Y(e,t.cx-.2*t.w,t.top+.06*a,.03*a,\"#37d64a\")}},knob:{name:\"Slider knob\",draw(e,t,a,o,n,l=1){y(e,t,m(700,a,d),\"#ff3fd8\");const r=e.createLinearGradient(0,t.mid,0,t.base+.3*a);r.addColorStop(0,\"#ff3fd8\"),r.addColorStop(1,\"#ffb3e6\"),e.strokeStyle=r,e.lineWidth=.06*a,e.lineCap=\"round\",l\u003c1&&e.setLineDash([.6*a*l+.01,5*a]),e.beginPath(),e.moveTo(t.cx-.06*a,t.mid+.1*a),e.quadraticCurveTo(t.cx-.24*a,t.base,t.cx-.24*a,t.base+.26*a),e.stroke(),e.setLineDash([]),e.fillStyle=\"#c437c9\",e.beginPath(),e.arc(t.cx,t.mid,.12*a,0,7),e.fill()}},grid:{name:\"Transform grid\",draw(e,t,a,o,n,l=1){y(e,t,m(800,a,c),\"#33d117\");const r=t.cx-.5*t.w,i=t.cx+.5*t.w,s=t.top-.02*a,f=t.base+.02*a;e.save(),e.beginPath(),e.rect(r-a,s-a,(i-r)*l+1.02*a,f-s+2*a),e.clip(),e.strokeStyle=\"rgba(255,255,255,.85)\",e.lineWidth=Math.max(1,.008*a),e.beginPath();for(let t=1;t\u003c3;t++){const a=r+(i-r)*t/3;e.moveTo(a,s),e.lineTo(a,f)}for(let t=1;t\u003c4;t++){const a=s+(f-s)*t/4;e.moveTo(r,a),e.lineTo(i,a)}e.rect(r,s,i-r,f-s),e.stroke();const d=.09*a;e.lineWidth=.025*a,e.strokeStyle=\"#fff\",e.beginPath(),[[r,s,1,1],[i,s,-1,1],[r,f,1,-1],[i,f,-1,-1]].forEach(([t,a,o,n])=\u003e{e.moveTo(t+o*d,a),e.lineTo(t,a),e.lineTo(t,a+n*d)}),e.stroke(),e.restore()}},sticker:{name:\"Burst sticker\",draw(e,t,a,o,n,l=1){const r=t.cx,i=t.base-.36*a,s=.3+.7*l;e.beginPath();for(let t=0;t\u003c26;t++){const n=t/26*Math.PI*2+o(),l=(t%2?.38*a:.52*a)*s*(.92+.16*o());e[t?\"lineTo\":\"moveTo\"](r+Math.cos(n)*l*1.08,i+Math.sin(n)*l)}e.closePath(),e.fillStyle=\"#ffe23d\",e.fill(),e.strokeStyle=\"#ff9b26\",e.lineWidth=.022*a,e.lineJoin=\"round\",e.stroke();const c=m(400,1.02*a,p,\"italic \");e.font=c,e.textAlign=\"center\",e.strokeStyle=\"#9b6bff\",e.lineWidth=.07*a,e.strokeText(t.ch,t.cx,t.base);const f=e.createLinearGradient(0,t.top,0,t.base);f.addColorStop(0,\"#3df2c4\"),f.addColorStop(1,\"#0aa889\"),y(e,t,c,f)}},blob:{name:\"Blob buddy\",draw(e,t,a){const o=e.createRadialGradient(t.cx-.12*a,t.top+.12*a,.02*a,t.cx,t.mid,.7*a);o.addColorStop(0,\"#fff59a\"),o.addColorStop(.45,\"#f5c816\"),o.addColorStop(1,\"#9a6c00\"),y(e,t,m(400,1.08*a,p),o);const n=t.top+.16*a;[[t.cx-.02*a,n],[t.cx+.13*a,n-.02*a]].forEach(([t,o])=\u003e{e.fillStyle=\"#fff\",e.beginPath(),e.ellipse(t,o,.06*a,.08*a,0,0,7),e.fill(),e.fillStyle=\"#111\",e.beginP";
(window.__kts=window.__kts||[])[3]="ath(),e.arc(t+.012*a,o+.01*a,.028*a,0,7),e.fill()}),e.fillStyle=\"#ff4a2a\",e.beginPath(),e.moveTo(t.cx+.02*a,n+.12*a),e.lineTo(t.cx+.12*a,n+.15*a),e.lineTo(t.cx+.03*a,n+.18*a),e.fill()}},calli:{name:\"Calligraphy\",draw(e,t,a,o,n,l=1){y(e,t,m(400,1.7*a,'\"Pinyon Script\", \"Snell Roundhand\", cursive'),\"#aaa4ff\",0,.08*a),o()\u003c.6&&(e.strokeStyle=\"#aaa4ff\",e.lineWidth=.018*a,e.lineCap=\"round\",l\u003c1&&e.setLineDash([1.6*a*l+.01,9*a]),e.beginPath(),e.moveTo(t.cx-.5*a,t.top+.2*a),e.bezierCurveTo(t.cx-.1*a,t.top-.45*a,t.cx+.5*a,t.top-.3*a,t.cx+.62*a,t.top+.05*a),e.stroke(),e.setLineDash([]))}},ring:{name:\"Color wheel\",draw(e,t,a,o,n,l=1){const r=t.cx,i=t.base-.33*a,s=.3*a,c=e.createRadialGradient(r,i,0,r,i,s);c.addColorStop(0,\"#000\"),c.addColorStop(1,\"#141418\"),e.fillStyle=c,e.beginPath(),e.arc(r,i,s,0,7),e.fill();const f=e.createConicGradient?e.createConicGradient(6*o(),r,i):\"#ff3d6e\";f.addColorStop&&[\"#ff3d6e\",\"#ffb23d\",\"#e9ff4a\",\"#3dff9b\",\"#33c9ff\",\"#8a5cff\",\"#ff3d6e\"].forEach((e,t,a)=\u003ef.addColorStop(t/(a.length-1),e)),e.strokeStyle=f,e.lineWidth=.055*a,e.beginPath(),e.arc(r,i,s,-Math.PI/2,-Math.PI/2+2*Math.PI*l+.001),e.stroke(),e.strokeStyle=\"#fff\",e.lineWidth=Math.max(1,.012*a),e.beginPath(),e.moveTo(r-.06*a,i),e.lineTo(r+.06*a,i),e.moveTo(r,i-.06*a),e.lineTo(r,i+.06*a),e.stroke();const d=.4*o()-.7;e.fillStyle=\"#fff\",e.beginPath(),e.arc(r+Math.cos(d)*s*.72,i+Math.sin(d)*s*.72,.04*a,0,7),e.fill()}},wave:{name:\"Audio waveform\",draw(e,t,a,o,n,l=1){const r=Math.max(t.w,.45*a),i=t.cx-r/2,s=t.mid,c=\"#5ab0ff\";e.fillStyle=c;for(let t=0;t\u003c17;t++){const c=t/16,f=Math.sin(c*Math.PI)**1.5,d=.85*a*f*l*(.35+.65*Math.abs(Math.sin(2.3*t+.9*n+3*o()))),h=r/17*.55;e.fillRect(i+c*(r-h),s-d/2,h,d)}e.strokeStyle=c,e.lineWidth=Math.max(1,.01*a),e.beginPath(),e.moveTo(i-.03*a,t.top-.12*a),e.lineTo(i-.03*a,t.base+.15*a),e.moveTo(i+r+.03*a,t.top-.12*a),e.lineTo(i+r+.03*a,t.base+.15*a),e.stroke(),[i-.03*a,i+r+.03*a].forEach(o=\u003e{e.fillStyle=c,e.beginPath(),e.arc(o,t.top-.15*a,.045*a,0,7),e.fill(),e.strokeStyle=\"#fff\",e.lineWidth=.01*a,e.beginPath(),e.arc(o,t.top-.15*a,.02*a,.6,5.6),e.stroke()})}},pencil:{name:\"Pencil\",draw(e,t,a,o,n,l=1){const r=Math.max(.42*t.w,.2*a),i=t.cx-r/2,s=t.base-(t.base-t.top-.12*a)*l,c=e.createLinearGradient(i,0,i+r,0);c.addColorStop(0,\"#24873a\"),c.addColorStop(.45,\"#8fe27a\"),c.addColorStop(1,\"#2e9e44\"),e.fillStyle=c,e.fillRect(i,s,r,t.base-s),e.fillStyle=\"#f2cf9d\",e.beginPath(),e.moveTo(i,s),e.lineTo(i+r,s),e.lineTo(t.cx,s-.3*a),e.fill(),e.fillStyle=\"#4a4a4a\",e.beginPath(),e.moveTo(t.cx-.17*r,s-.25*a),e.lineTo(t.cx+.17*r,s-.25*a),e.lineTo(t.cx,s-.3*a),e.fill()}},playhead:{name:\"Playhead\",draw(e,t,a,o,n,l=1){y(e,t,m(500,a,c),\"#c792ff\");const r=t.cx-t.w*(.15+.3*o());e.strokeStyle=\"#fff\",e.lineWidth=Math.max(1,.012*a),e.beginPath(),e.moveTo(r,t.top-.12*a),e.lineTo(r,t.top-.12*a+(t.base-t.top+.3*a)*l),e.stroke();const i=.04*a;e.beginPath(),e.moveTo(r-i,t.top-.25*a),e.lineTo(r+i,t.top-.25*a),e.lineTo(r+i,t.top-.17*a),e.lineTo(r,t.top-.12*a),e.lineTo(r-i,t.top-.17*a),e.closePath(),e.fillStyle=\"#000\",e.fill(),e.stroke()}},look:{name:\"Photo look\",draw(e,t,a,o,n){w.ants.draw(e,t,a,o,n);const l=.5*a,r=t.cx-.15*l,i=t.top-.1*a,f=t.base-i+.08*a;k(e,r,i,l,f,.02*a),e.fillStyle=\"#1d2340\",e.fill(),e.strokeStyle=\"#e7b93a\",e.lineWidth=.014*a,e.stroke();const d=(s||\"\").replace(/\\{char\\}/gi,t.ch),h=l-.06*a;let p=.1*a;e.font=m(500,p,c);const u=e.measureText(d).width;u\u003eh&&(p*=h/u,e.font=m(500,p,c)),e.fillStyle=\"#cfd6ff\",e.textAlign=\"left\",e.fillText(d,r+.03*a,i+.11*a);const v=r+.03*a,M=i+.15*a,g=l-.06*a,b=f-.21*a;e.fillStyle=\"#cfcfd2\",e.fillRect(v,M,g,b),e.save(),e.beginPath(),e.rect(v,M,g,b),e.clip(),e.fillStyle=\"#fff\";const x=v+g/2,y=.26*g;e.beginPath(),e.arc(x,M+.42*b,y,0,7),e.fill(),e.beginPath(),e.ellipse(x,M+b,.48*g,.34*b,0,0,7),e.fill(),e.restore()}},spray:{name:\"Spray dust\",draw(e,t,a,o,n){const l=m(800,1.05*a,c),r=u(977*n+31*t.i);x(e,t,a,l,e=\u003e{for(let o=0;o\u003c420;o++){e.fillStyle=`rgba(${30+40*r()|0},${190+60*r()|0},255,${.25+.75*r()})`;const o=t.cx+(r()-.5)*a*1.3,n=t.base-r()*a*1.05,l=.004*a+r()*a*.016;e.fillRect(o,n,l,l)}})}},iris:{name:\"Iridescent\",draw(e,t,a,o){const n=o()*Math.PI,l=e.createLinearGradient(t.cx-Math.cos(n)*a*.5,t.mid-Math.sin(n)*a*.5,t.cx+Math.cos(n)*a*.5,t.mid+Math.sin(n)*a*.5);[\"#ff3cac\",\"#784ba0\",\"#2b86c5\",\"#2bffb1\",\"#ffe53b\"].forEach((e,t)=\u003el.addColorStop(t/4,e)),y(e,t,m(700,a,d),l)}},ghost:{name:\"Ghost layer\",draw(e,t,a){y(e,t,m(500,a,c),\"#3b3b3e\")}},pixel:{name:\"Pixel\",draw(e,t,a,o){const n=Math.max(2,a/13),l=Math.ceil(2.4*a),r=Math.ceil(2*a),i=t.cx-l/2,s=t.base-.72*r;g.width=Math.ceil(l/n),g.height=Math.ceil(r/n),b.font=m(800,a/n,c),b.textAlign=\"center\",b.fillStyle=o()\u003c.5?\"#ff7a00\":\"#fff35c\",b.fillText(t.ch,(t.cx-i)/n,(t.base-s)/n),e.imageSmoothingEnabled=!1,e.drawImage(g,i,s,g.width*n,g.height*n),e.imageSmoothingEnabled=!0}},extrude:{name:\"3D extrude\",draw(e,t,a){const o=m(800,a,c);for(let n=9;n\u003e0;n--)y(e,t,o,\"#5b2bd1\",n*a*.007,n*a*.007);y(e,t,o,\"#ffd23f\")}}},S={neon:\"#ff7a18\",brush:\"#29dcff\",ants:\"#ff1f4b\",knob:\"#ff3fd8\",grid:\"#33d117\",sticker:\"#1ee8b8\",blob:\"#f5c816\",calli:\"#aaa4ff\",ring:\"#8a5cff\",wave:\"#5ab0ff\",pencil:\"#7ddc6a\",playhead:\"#c792ff\",look:\"#ff1f4b\",spray:\"#2fd5ff\",iris:\"#2bffb1\",ghost:\"#3b3b3e\",pixel:\"#ff7a00\",extrude:\"#ffd23f\"},T=[\"😀\",\"😎\",\"🤩\",\"😂\",\"🥳\",\"🤯\",\"😍\",\"🔥\",\"✨\",\"💥\",\"⭐\",\"🌈\",\"🍕\",\"🎉\",\"🚀\",\"💎\",\"🎨\",\"🎬\",\"🎧\",\"📸\",\"💡\",\"❤️\",\"👀\",\"🙌\",\"👾\",\"🍩\",\"🌸\",\"⚡\",\"🧠\",\"🦄\",\"🍓\",\"🎮\",\"🪩\",\"🫶\",\"💯\"],P=(e,t)=\u003et[Math.floor(e()*t.length)];function C(e,t,a,o,n){n\u003c=0||(e.font=`${n}px \"Apple Color Emoji\",\"Segoe UI Emoji\",\"Noto Color Emoji\",\"Segoe UI Symbol\",sans-serif`,e.textAlign=\"center\",e.textBaseline=\"middle\",e.fillText(t,a,o),e.textBaseline=\"alphabetic\")}Object.assign(w,{eswap:{pack:\"emoji\",name:\"Emoji swap\",draw(e,t,a,o){C(e,P(o,T),t.cx,t.mid,.9*a)}},efill:{pack:\"emoji\",name:\"Emoji fill\",draw(e,t,a,o,n){const l=P(o,T),r=P(o,[\"#ffd84d\",\"#ff8fb8\",\"#7fd8ff\",\"#a6f08a\",\"#c7a6ff\"]),i=.17*a,s=n*a*.012%i;x(e,t,a,m(800,1.08*a,c),e=\u003e{e.fillStyle=r,e.fillRect(t.cx-1.3*a,t.base-1.6*a,2.6*a,2.2*a);let o=0;for(let a=t.top-1.5*i;a\u003ct.base+i;a+=i,o++)for(let n=t.cx-.7*t.w-1.5*i;n\u003ct.cx+.7*t.w+i;n+=i)C(e,l,n+s+(o%2?i/2:0),a,.8*i)})}},esparkle:{pack:\"emoji\",name:\"Sparkles\",draw(e,t,a,o,n,l=1){const r=e.createLinearGradient(0,t.top,0,t.base);r.addColorStop(0,\"#ff9bd2\"),r.addColorStop(1,\"#ffd84d\"),y(e,t,m(700,1.05*a,d),r);for(let r=0;r\u003c3;r++){const i=6.283*o(),s=a*(.42+.2*o()),c=.7+.3*Math.sin(.8*n+2*r);C(e,P(o,[\"✨\",\"⭐\",\"💫\",\"🌟\"]),t.cx+Math.cos(i)*s*.9,t.mid+Math.sin(i)*s,.22*a*c*l)}}},ebubble:{pack:\"emoji\",name:\"Chat bubble\",draw(e,t,a,o,n,l=1){y(e,t,m(800,a,c),\"#ffffff\");const r=.42*a*l,i=.34*a*l,s=t.cx+.15*t.w,f=t.top-.1*a-i;e.fillStyle=\"#2b7cff\",k(e,s,f,r,i,.45*i),e.fill(),e.beginPath(),e.moveTo(s+.18*r,f+.7*i),e.lineTo(s-.04*a*l,f+i+.08*a*l),e.lineTo(s+.45*r,f+.9*i),e.fill(),C(e,P(o,T),s+r/2,f+i/2,.62*i)}},epill:{pack:\"emoji\",name:\"Reaction pill\",draw(e,t,a,o,n,l=1){y(e,t,m(800,a,c),\"#5865f2\");const r=2+Math.floor(97*o()),i=P(o,T),s=.2*a,f=.46*a,d=t.cx-f/2+.06*a,h=t.base+.05*a;k(e,d,h,f,s,s/2),e.fillStyle=\"rgba(88,101,242,.28)\",e.fill(),e.strokeStyle=\"#5865f2\",e.lineWidth=.012*a,e.stroke(),C(e,i,d+.58*s,h+s/2,.68*s),e.font=m(700,.58*s,c),e.fillStyle=\"#e3e6ff\",e.textAlign=\"left\",e.textBaseline=\"middle\",e.fillText(String(Math.max(1,Math.round(r*l))),d+1.08*s,h+.53*s),e.textBaseline=\"alphabetic\"}},esticker:{pack:\"emoji\",name:\"Emoji sticker\",draw(e,t,a,o){const n=P(o,T),l=.035*a;e.save(),e.shadowColor=\"#fff\",e.shadowBlur=0;for(let o=0;o\u003c8;o++){const r=o/8*6.283;e.shadowOffsetX=Math.cos(r)*l,e.shadowOffsetY=Math.sin(r)*l,C(e,n,t.cx,t.mid,.88*a)}e.restore(),e.save(),e.shadowColor=\"rgba(0,0,0,.45)\",e.shadowBlur=.05*a,e.shadowOffsetY=.025*a,C(e,n,t.cx,t.mid,.88*a),e.restore()}},epeek:{pack:\"emoji\",name:\"Peeking emoji\",draw(e,t,a,o){const n=P(o,[\"👀\",\"🫣\",\"🙈\",\"🐱\",\"🐶\",\"🐸\",\"🐵\",\"😳\",\"🐧\",\"🦊\"]),l=o()\u003c.5?-1:1;C(e,n,t.cx+l*t.w*.25,t.top+.02*a,.42*a),y(e,t,m(800,a,c),P(o,[\"#ff5a5f\",\"#00c2a8\",\"#ffb400\",\"#7b61ff\"]))}},ekey:{pack:\"emoji\",name:\"Letter keycap\",draw(e,t,a){const o=.86*a,n=t.cx-o/2,l=t.mid-o/2,r=e.createLinearGradient(0,l,0,l+o);r.addColorStop(0,\"#6fb6ff\"),r.addColorStop(1,\"#2a6fdb\"),k(e,n,l,o,o,.2*o),e.fillStyle=r,e.fill(),e.strokeStyle=\"rgba(255,255,255,.55)\",e.lineWidth=.02*a,k(e,n+.035*a,l+.035*a,o-.07*a,o-.07*a,.16*o),e.stroke(),e.font=m(800,.62*a,c),e.textAlign=\"center\",e.textBaseline=\"middle\",e.fillStyle=\"#fff\",e.fillText(t.ch.toUpperCase(),t.cx,t.mid+.03*a),e.textBaseline=\"alphabetic\"}},econfetti:{pack:\"emoji\",name:\"Emoji confetti\",draw(e,t,a,o,n,l=1){y(e,t,m(800,a,c),P(o,[\"#ffffff\",\"#ffe066\",\"#ff8fb8\"]));const r=[P(o,T),P(o,T)];for(let i=0;i\u003c6;i++){const s=6.283*o()+.06*n*(i%2?1:-1),c=a*(.38+.3*o())*(.5+.5*l);C(e,r[i%2],t.cx+Math.cos(s)*c,t.mid+Math.sin(s)*c*.9,a*(.11+.08*o()))}}},eoutline:{pack:\"emoji\",name:\"Emoji outline\",draw(e,t,a,o){const n=P(o,[\"#ffcc33\",\"#ff6fa8\",\"#47d7ff\",\"#8cf06b\"]);e.font=m(800,a,c),e.textAlign=\"center\",e.strokeStyle=n,e.lineWidth=.03*a,e.lineJoin=\"round\",e.strokeText(t.ch,t.cx,t.base),C(e,P(o,T),t.cx,t.mid,.34*a)}}}),Object.assign(S,{eswap:\"#ffcc33\",efill:\"#ffd84d\",esparkle:\"#ff9bd2\",ebubble:\"#2b7cff\",epill:\"#5865f2\",esticker:\"#ffcc33\",epeek:\"#ff5a5f\",ekey:\"#2a6fdb\",econfetti:\"#ffe066\",eoutline:\"#ffcc33\"});const E=[\"#ffffff\",\"#ffd84d\",\"#ff7eb6\",\"#7ad8ff\",\"#a8f07a\",\"#ffa14d\"],L=(e,t)=\u003eu((1e9*e()|0)+7919*Math.floor(t/2));function A(e,t){if(t.length\u003c2)return;e.beginPath(),e.moveTo(t[0][0],t[0][1]);for(let a=1;a\u003ct.length-1;a++){const o=(t[a][0]+t[a+1][0])/2,n=(t[a][1]+t[a+1][1])/2;e.quadraticCurveTo(t[a][0],t[a][1],o,n)}const a=t[t.length-1];e.lineTo(a[0],a[1]),e.stroke()}const F=(e,t)=\u003ee.slice(0,Math.max(2,Math.ceil(e.length*V(t))));function B(e,t,a){e.strokeStyle=t,e.lineWidth=a,e.lineCap=\"round\",e.lineJoin=\"round\"}function $(e,t,a,o,n,l,r,i=2){e.font=a,e.textAlign=\"center\",B(e,o,n);for(let a=0;a\u003ci;a++)e.strokeText(t.ch,t.cx+(l()-.5)*r,t.base+(l()-.5)*r)}function I(e,t,a,o,n,l,r){if(\"star\"===t){const t=[];for(let e=0;e\u003c=10;e++){const r=-Math.PI/2+e/10*6.283,i=(e%2?.42*n:n)*(1+.15*(l()-.5));t.push([a+Math.cos(r)*i,o+Math.sin(r)*i])}const i=F(t,r);e.beginPath(),i.forEach(([t,a],o)=\u003eo?e.lineTo(t,a):e.moveTo(t,a)),e.stroke()}else if(\"heart\"===t){const t=[];for(let e=0;e\u003c=30;e++){const r=e/30*6.283;t.push([a+.06*n*16*Math.sin(r)**3*(1+.05*(l()-.5)),o-.06*n*(13*Math.cos(r)-5*Math.cos(2*r)-2*Math.cos(3*r)-Math.cos(4*r))])}A(e,F(t,r))}else if(\"spiral\"===t){const t=[];for(let e=0;e\u003c=40;e++){const r=e/40,i=3*r*6.283;t.push([a+Math.cos(i)*n*r*(1+.1*(l()-.5)),o+Math.sin(i)*n*r])}A(e,F(t,r))}else{const t=n*r;e.beginPath(),e.moveTo(a-t,o+(l()-.5)*n*.1),e.lineTo(a+t,o),e.moveTo(a,o-t),e.lineTo(a+(l()-.5)*n*.1,o+t),e.stroke()}}Object.assign(w,{dsketch:{pack:\"doodle\",name:\"Sketch outline\",draw(e,t,a,o,n){const l=P(o,E),r=L(o,n);$(e,t,m(800,a,c),l,.014*a,r,.03*a,3)}},dscribble:{pack:\"doodle\",name:\"Scribble fill\",draw(e,t,a,o,n){const l=P(o,E),r=L(o,n),i=m(800,1.04*a,c);x(e,t,a,i,e=\u003e{B(e,l,.03*a),e.beginPath();let o=t.top-.1*a,n=1;const i=t.cx-.8*t.w,s=t.cx+.8*t.w;for(e.moveTo(i,o);o\u003ct.base+.1*a;)o+=.07*a,e.lineTo(n\u003e0?s:i,o+(r()-.5)*a*.04),n=-n;e.stroke()}),$(e,t,i,l,.01*a,r,.02*a,1)}},dhatch:{pack:\"doodle\",name:\"Cross-hatch\",draw(e,t,a,o,n){const l=P(o,E),r=L(o,n),i=m(800,1.04*a,c);x(e,t,a,i,e=\u003e{B(e,l,.011*a),e.beginPath();const o=.065*a;for(let n=1.4*-a;n\u003c1.4*a;n+=o){const l=(r()-.5)*a*.02;e.moveTo(t.cx+n-a,t.base+.2*a+l),e.lineTo(t.cx+n+.2*a,t.base-1*a+l),(n/o|0)%2==0&&(e.moveTo(t.cx+n-.2*a,t.base-1*a+l),e.lineTo(t.cx+n+a,t.base+.2*a+l))}e.stroke()}),$(e,t,i,l,.012*a,r,.025*a,2)}},dcircle:{pack:\"doodle\",name:\"Circled\",draw(e,t,a,o,n,l=1){const r=P(o,E);y(e,t,m(400,1.02*a,h),r);const i=L(o,n);B(e,\"#ff4d4d\",.03*a),A(e,F(function(e,t,a,o,n,l){const r=Math.ceil(26*n),i=6.28*l(),s=[];for(let c=0;c\u003c=r;c++){const f=i+c/r*n*6.283,d=1+.07*(l()-.5)+c/r*.07;s.push([e+Math.cos(f)*a*d,t+Math.sin(f)*o*d])}return s}(t.cx,t.mid+.02*a,Math.max(.75*t.w,.42*a),.55*a,1.35,i),l))}},darrow:{pack:\"doodle\",name:\"Arrow note\",draw(e,t,a,o,n,l=1){const r=P(o,E),i=P(o,[\"this!\",\"wow!\",\"yes!\",\"new!\",\"ooh\",\"hi!\"]),s=o()\u003c.5?-1:1,c=L(o,n);y(e,t,m(400,1.02*a,h),r);const f=t.cx+s*a*.62,d=t.top-.32*a,p=t.cx+s*t.w*.45,u=t.top+.05*a,v=[];for(let e=0;e\u003c=16;e++){const t=e/16;v.push([f+(p-f)*t+Math.sin(3.14*t)*s*a*.12+(c()-.5)*a*.012,d+(u-d)*t-Math.sin(3.14*t)*a*.08])}B(e,\"#ffd84d\",.022*a);if(A(e,F(v,l)),l\u003e=1){const t=Math.atan2(u-v[14][1],p-v[14][0]),o=.09*a;e.beginPath(),e.moveTo(p-Math.cos(t-.5)*o,u-Math.sin(t-.5)*o),e.lineTo(p,u),e.lineTo(p-Math.cos(t+.5)*o,u-Math.sin(t+.5)*o),e.stroke()}e.font=m(400,.2*a,h),e.fillStyle=\"#ffd84d\",e.textAlign=\"center\",e.fillText(i,f+s*a*.05,d-.04*a)}},dstars:{pack:\"doodle\",name:\"Doodle marks\",draw(e,t,a,o,n,l=1){y(e,t,m(800,a,c),P(o,E));const r=L(o,n);for(let n=0;n\u003c3;n++){const n=P(o,[\"star\",\"heart\",\"spiral\",\"plus\"]),i=6.283*o(),s=a*(.5+.15*o());B(e,P(o,E),.016*a),I(e,n,t.cx+Math.cos(i)*s*.95,t.mid+Math.sin(i)*s*.85,a*(.09+.05*o()),r,l)}}},dface:{pack:\"doodle\",name:\"Doodle face\",draw(e,t,a,o,n){const l=P(o,E),r=L(o,n);e.fillStyle=l,e.globalAlpha*=.25,y(e,t,m(800,a,c),l),e.globalAlpha/=.25,$(e,t,m(800,a,c),l,.014*a,r,.025*a,2);const i=t.mid-.08*a;B(e,\"#fff\",.018*a),e.fillStyle=\"#fff\",[-1,1].forEach(o=\u003e{e.beginPath(),e.arc(t.cx+o*a*.08+(r()-.5)*a*.01,i,.035*a,0,7),e.stroke(),e.beginPath(),e.arc(t.cx+o*a*.08+.01*a,i+.008*a,.014*a,0,7),e.fill()}),e.beginPath(),e.arc(t.cx,i+.06*a,.09*a,.35+.1*(r()-.5),Math.PI-.35),e.stroke()}},daction:{pack:\"doodle\",name:\"Action lines\",draw(e,t,a,o,n,l=1){y(e,t,m(400,1.05*a,h),P(o,E));const r=L(o,n);B(e,\"#fff\",.014*a),e.beginPath();for(let o=0;o\u003c9;o++){const n=o/9*6.283+.3*r(),i=.52*a,s=i+a*(.1+.1*r())*l;e.moveTo(t.cx+Math.cos(n)*i,t.mid+Math.sin(n)*i*.9),e.lineTo(t.cx+Math.cos(n)*s,t.mid+Math.sin(n)*s*.9)}e.stroke()}},dpostit:{pack:\"doodle\",name:\"Sticky note\",draw(e,t,a,o){const n=P(o,[\"#ffe66d\",\"#ff9ecb\",\"#8fe3ff\",\"#b7f28a\"]),l=.88*a,r=t.cx-l/2,i=t.mid-l/2;e.save(),e.shadowColor=\"rgba(0,0,0,.5)\",e.shadowBlur=.05*a,e.shadowOffsetY=.03*a,e.fillStyle=n,e.fillRect(r,i,l,l),e.restore(),e.fillStyle=\"rgba(0,0,0,.08)\",e.fillRect(r,i,l,.12*l),y(e,t,m(400,.72*a,h),\"#1d1d24\",0,.06*-a)}},dhighlight:{pack:\"doodle\",name:\"Highlighter\",draw(e,t,a,o,n,l=1){const r=P(o,[\"rgba(255,232,0,.6)\",\"rgba(255,92,180,.55)\",\"rgba(80,255,170,.5)\"]),i=1.2*Math.max(t.w,.5*a)*l,s=t.cx-.6*Math.max(t.w,.5*a),c=t.mid-.05*a,f=.36*a;e.fillStyle=r,e.beginPath(),e.moveTo(s,c-f/2+.03*a),e.lineTo(s+i,c-f/2),e.lineTo(s+i-.03*a,c+f/2),e.lineTo(s+.02*a,c+f/2+.02*a),e.closePath(),e.fill(),y(e,t,m(400,1.02*a,h),\"#ffffff\")}},dcrayon:{pack:\"doodle\",name:\"Crayon\",draw(e,t,a,o,n){const l=P(o,[\"#ff5a5f\",\"#ffb400\",\"#00c2a8\",\"#7b61ff\",\"#4da3ff\"]),r=L(o,n);x(e,t,a,m(800,1.04*a,c),e=\u003e{B(e,l,.018*a),e.globalAlpha=.9,e.beginPath();for(let o=0;o\u003c300;o++){const o=t.cx+(r()-.5)*t.w*1.3,n=t.base-r()*a*.85,l=.4*(r()-.5)-.9,i=a*(.05+.1*r());e.moveTo(o,n),e.lineTo(o+Math.cos(l)*i,n+Math.sin(l)*i)}e.stroke(),e.globalAlpha=1})}}}),Object.assign(S,{dsketch:\"#ffffff\",dscribble:\"#ffd84d\",dhatch:\"#7ad8ff\",dcircle:\"#ff4d4d\",darrow:\"#ffd84d\",dstars:\"#ff7eb6\",dface:\"#a8f07a\",daction:\"#ffffff\",dpostit:\"#ffe66d\",dhighlight:\"#ffe800\",dcrayon:\"#ffb400\"});let O=\"dark\";const D={dark:{face:[\"#2c2c2f\",\"#1c1c1e";
(window.__kts=window.__kts||[])[4]="\"],edge:\"#0b0b0c\",line:\"rgba(255,255,255,.08)\",ink:\"#ececee\",dim:\"#a1a1a6\",hole:\"#111113\"},light:{face:[\"#ffffff\",\"#f0f0f2\"],edge:\"#b4b4bb\",line:\"rgba(0,0,0,.14)\",ink:\"#1d1d1f\",dim:\"#6e6e73\",hole:\"#e6e6ea\"}};function N(e,t,a,o,n,l,r=\"center\",i=400){e.font=m(i,n,'-apple-system, BlinkMacSystemFont, \"SF Pro Text\", \"Helvetica Neue\", Arial, sans-serif'),e.textAlign=r,e.textBaseline=\"middle\",e.fillStyle=l,e.fillText(t,a,o),e.textBaseline=\"alphabetic\"}const j={};[[\"1234567890-=\",0],[\"qwertyuiop[]\",.5],[\"asdfghjkl;'\",.75],[\"zxcvbnm,./\",1.25]].forEach(([e,t],a)=\u003e[...e].forEach((e,o)=\u003ej[e]={x:o+t,y:a}));const R={1:\"!\",2:\"@\",3:\"#\",4:\"$\",5:\"%\",6:\"^\",7:\"&\",8:\"*\",9:\"(\",0:\")\",\"-\":\"_\",\"=\":\"+\",\"[\":\"{\",\"]\":\"}\",\";\":\":\",\"'\":'\"',\",\":\"\u003c\",\".\":\"\u003e\",\"/\":\"?\",\"\\\\\":\"|\",\"`\":\"~\"},U={};Object.entries(R).forEach(([e,t])=\u003eU[t]=e);const W=e=\u003e{const t=e.toLowerCase();return U[e]||t};const G=(e,t)=\u003eMath.min(.8*t,.92*e.adv);function z(e,t,a,o,n,l=0,r=0){const i=G(t,a),s=function(e,t,a,o,n,l,r=0){const i=.05*n,s=a-n/2+i*r,c=t-o/2,f=.14*Math.min(o,n);e.save(),e.shadowColor=\"rgba(0,0,0,.45)\",e.shadowBlur=.09*n,e.shadowOffsetY=.045*n*(1-r),k(e,c,s+i*(1-r),o,n,f),e.fillStyle=l.edge,e.fill(),e.restore();const d=e.createLinearGradient(0,s,0,s+n);return d.addColorStop(0,l.face[0]),d.addColorStop(1,l.face[1]),k(e,c,s,o,n,f),e.fillStyle=d,e.fill(),e.strokeStyle=l.line,e.lineWidth=Math.max(1,.012*n),e.stroke(),{x:c,y:s,w:o,h:n}}(e,t.kx,t.mid,i,i,n,l),c=W(o),f=s.y+s.h/2;return r&&(e.save(),e.shadowColor=\"rgba(255,255,255,\"+r+\")\",e.shadowBlur=.25*i),R[c]?(N(e,R[c],t.kx,s.y+.33*s.h,.21*i,n.ink),N(e,c,t.kx,s.y+.66*s.h,.29*i,n.ink)):N(e,c.toUpperCase(),t.kx,f-(\"f\"===c||\"j\"===c?.03*i:0),.37*i,r?\"#ffffff\":n.ink),r&&e.restore(),\"f\"!==c&&\"j\"!==c||(e.fillStyle=n.dim,k(e,t.kx-.08*i,s.y+.72*s.h,.16*i,.018*i,.009*i),e.fill()),s}Object.assign(w,{kkey:{pack:\"keyboard\",name:\"Keycap\",draw(e,t,a,o){const n=function(e){const t=e();return D[\"mixed\"===O?t\u003c.5?\"dark\":\"light\":O]}(o),l=t.tap||0;if(l&&(e.translate(t.kx,t.mid),e.scale(1-.07*l,1-.07*l),e.translate(-t.kx,-t.mid)),z(e,t,a,t.ch,n,l),l){const o=G(t,a);e.fillStyle=\"rgba(0,0,0,\"+.18*l+\")\",k(e,t.kx-o/2,t.mid-o/2+.05*o*l,o,o,.14*o),e.fill()}}}}),Object.assign(S,{kkey:\"#ececee\"});const H=e=\u003e[1,3,5].map(t=\u003eparseInt(e.substr(t,2),16)),q=(e,t,a)=\u003e{const o=H(e),n=H(t);return\"rgb(\"+o.map((e,t)=\u003eMath.round(e+(n[t]-e)*a)).join(\",\")+\")\"},V=e=\u003eMath.max(0,Math.min(1,e)),K=e=\u003e{const t=1.70158;return 1+2.70158*(e-1)**3+t*(e-1)**2},J=e=\u003e1-(1-e)**3;function Y(e,t,a,o,n){e.fillStyle=n,e.beginPath(),e.arc(t,a,o,0,7),e.fill(),e.strokeStyle=\"#111\",e.lineWidth=.45*o,e.stroke()}const _=Object.keys(w),Z=new Set(_),X=e=\u003e{const a=t(\"pack\").value,o=w[e].pack||\"tools\";return\"all\"===a||a===o};function Q(){t(\"styles\").innerHTML=_.filter(X).map(e=\u003e`\u003clabel class=\"cell tog\"\u003e\u003cspan class=\"ic dot\" style=\"--c:${S[e]||\"#8e8e93\"}\"\u003e\u003c/span\u003e\u003cspan\u003e${w[e].name}\u003c/span\u003e\u003cinput type=\"checkbox\" data-k=\"${e}\"${Z.has(e)?\" checked\":\"\"}\u003e\u003c/label\u003e`).join(\"\");const e=[\"tools\",\"all\"].includes(t(\"pack\").value);t(\"keyRow\").hidden=![\"keyboard\",\"all\"].includes(t(\"pack\").value),t(\"lookRow\").hidden=!e,t(\"lookNote\").hidden=!e}Q(),t(\"pack\").addEventListener(\"change\",()=\u003e{Q(),_.some(e=\u003eX(e)&&Z.has(e))||_.filter(X).forEach(e=\u003eZ.add(e)),Q(),ue()}),t(\"styles\").addEventListener(\"change\",e=\u003e{const t=e.target.dataset.k;t&&(e.target.checked?Z.add(t):Z.delete(t),_.some(e=\u003eX(e)&&Z.has(e))||(Z.add(t),e.target.checked=!0),ue())});let ee=[],te=0,ae=0,oe=24,ne=0,le=!0,re=0,ie=0;const se=e=\u003eparseFloat(t(e).value),ce=(()=\u003e{try{return new Intl.Segmenter(void 0,{granularity:\"grapheme\"})}catch(e){return null}})(),fe=e=\u003ece?[...ce.segment(e)].map(e=\u003ee.segment):[...e];let de=1,he=!1;function pe(){const[e,a]=function(){const e=t(\"res\").value;if(t(\"resRow\").hidden=\"custom\"!==e,\"custom\"!==e)return e.split(\"x\").map(Number);const a=e=\u003e(e=Math.round(parseFloat(e)),Math.min(8192,Math.max(16,isFinite(e)?e:1080)));return[a(t(\"resW\").value),a(t(\"resH\").value)]}();de=function(e,a){if(he)return 1;const o=t(\"prev\").value;return\"auto\"===o?e*a\u003e22e5?.5:1:+o}(e,a);const o=Math.max(16,Math.round(e*de)),r=Math.max(16,Math.round(a*de));n.width===o&&n.height===r||(n.width=o,n.height=r);let i=se(\"size\")*(o/1920);const s=se(\"wt\"),c=se(\"lead\")/100,d=t(\"align\").value,h=(t(\"txt\").value||\" \").replace(/\\r/g,\"\").split(\"\\n\").map(fe),p=()=\u003e{l.font=m(s,i,f);const e=se(\"track\")/100*i;return h.map(t=\u003el.measureText(t.join(\"\")).width+e*Math.max(0,t.length-1))};let u=p(),v=Math.max(1,...u);const M=Math.min(1,.92*o/v,.92*r/(i*(1+(h.length-1)*c)));M\u003c1&&(i*=M,u=p(),v=Math.max(1,...u));const g=se(\"track\")/100*i,b=i*c,x=r/2+.36*i-(h.length-1)*b/2;ee=[];let y=0;return h.forEach((e,t)=\u003e{const a=u[t],n=\"left\"===d?(o-v)/2:\"right\"===d?(o+v)/2-a:(o-a)/2,r=x+t*b;let s=\"\";e.forEach((o,c)=\u003e{const f=n+l.measureText(s).width+g*c,d=l.measureText(o).width;s+=o,ee.push({ch:o,i:y++,line:t,x:f,w:d,cx:f+d/2,base:r,top:r-.72*i,mid:r-.36*i,S:i,kx:n+a*(c+.5)/e.length,adv:a/e.length})})}),{S:i,wt:s}}let me={S:190,wt:700};function ue(){me=pe(),oe=function(){const e=t(\"fps\").value;t(\"fpsRow\").hidden=\"custom\"!==e;const a=\"custom\"===e?parseFloat(t(\"fpsC\").value):parseFloat(e);return Math.min(120,Math.max(1,isFinite(a)?a:24))}(),te=Math.max(4,Math.round(se(\"dur\")*oe)),ae=te+Math.round(se(\"hold\")*oe);const e=u(parseInt(t(\"seed\").value)||1),a=ee.length,o=se(\"spread\");let n=se(\"hmin\"),l=Math.max(n,se(\"hmax\"));const r=_.filter(e=\u003eX(e)&&Z.has(e)),i=t(\"order\").value,s=t(\"rhythm\").value,c=parseInt(t(\"seed\").value)||1;ee.forEach((f,d)=\u003e{const h=(e=\u003e{const t=a\u003e1?e/(a-1):0;return\"rtl\"===i?1-t:\"center\"===i?2*Math.abs(t-.5):\"edges\"===i?1-2*Math.abs(t-.5):\"random\"===i?u(13*c+101*e+7)():t})(d),p=Math.floor(te*(.03+.34*e()*o+.05*(1-o)));let m=Math.floor(te*(.5+.25*e()*o+.18*h*o));m=Math.min(te,Math.max(p+2,m));const v=u(31*(parseInt(t(\"seed\").value)||1)+977*d+5);f.a=p,f.r=m,f.segs=[],f.anc=Math.floor(5*v());let M=p,g=\"\";if(\"keyboard\"===t(\"pack\").value&&Z.has(\"kkey\"))f.segs.push({s:p,st:\"kkey\",seed:1e9*e()|0,sc:1,rot:0,dy:0,anc:f.anc});else for(;M\u003cm;){let t;do{t=r[Math.floor(e()*r.length)]}while(r.length\u003e1&&t===g);g=t,f.segs.push({s:M,st:t,seed:1e9*e()|0,sc:.9+.28*e(),rot:.14*(e()-.5),dy:.06*(e()-.5),anc:Math.floor(5*v())});const a=n+Math.floor(e()*(l-n+1));if(\"even\"===s)M+=a;else{const e=V((M-p)/Math.max(1,m-p)),t=\"accel\"===s?1.7-1.2*e:.5+1.2*e;M+=Math.max(1,Math.round(a*t))}}}),t(\"scrub\").max=ae-1,ne\u003e=ae&&(ne=0),Fe(),Pe(ne)}const ve=[\"mvSpeed\",\"mvPhase\",\"mvWave\",\"mvSway\",\"mvPulse\",\"mvNoise\",\"mvFall\",\"mvRad\",\"mvLift\",\"mvGrow\",\"mvTilt\",\"mvReact\",\"mvFrom\",\"mvDist\",\"mvSpin\",\"mvDur\",\"mvBounce\",\"mvPivot\",\"mvKeep\"],Me={mvSpeed:1,mvPhase:30,mvWave:0,mvSway:0,mvPulse:0,mvNoise:0,mvFall:\"even\",mvRad:35,mvLift:0,mvGrow:0,mvTilt:0,mvReact:!1,mvFrom:\"off\",mvDist:60,mvSpin:0,mvDur:.6,mvBounce:30,mvPivot:\"center\",mvKeep:!0},ge={none:{},wave:{mvSpeed:1,mvPhase:30,mvWave:10},float:{mvSpeed:.4,mvPhase:55,mvNoise:7,mvSway:3},jelly:{mvSpeed:1.2,mvPhase:35,mvWave:6,mvPulse:8,mvSway:4},swing:{mvSpeed:.7,mvPhase:25,mvSway:12,mvPivot:\"top\"},drop:{mvFrom:\"above\",mvDist:80,mvDur:.7,mvBounce:45},rise:{mvFrom:\"below\",mvDist:35,mvDur:.6,mvBounce:0},scatter:{mvFrom:\"scatter\",mvDist:140,mvSpin:120,mvDur:.8,mvBounce:25},spin:{mvFrom:\"depth\",mvSpin:180,mvDur:.7,mvBounce:35},sweep:{mvFall:\"sweep\",mvRad:35,mvLift:35,mvGrow:15,mvReact:!0,mvSpeed:.6,mvBounce:40},domino:{mvFall:\"sweep\",mvRad:25,mvTilt:25,mvLift:10,mvReact:!0,mvSpeed:.5,mvPivot:\"base\",mvBounce:50}};let be=!1;function xe(e){const a=Object.assign({},Me,ge[e]||{});be=!0,ve.forEach(e=\u003efunction(e,a){const o=t(e);\"checkbox\"!==o.type?(\"range\"===o.type&&(+a\u003e+o.max&&(o.max=a),+a\u003c+o.min&&(o.min=a)),o.value=a):o.checked=!!a}(e,a[e])),be=!1,ye(),Fe(),Pe(ne)}function ye(){t(\"mvBody\").hidden=!t(\"mvOpen\").checked,t(\"mvRadRow\").hidden=\"sweep\"!==t(\"mvFall\").value}function ke(){const e={};return ve.forEach(a=\u003ee[a.slice(2).toLowerCase()]=(e=\u003e{const a=t(e);return\"checkbox\"===a.type?a.checked:\"range\"===a.type?parseFloat(a.value):a.value})(a)),e.active=\"off\"!==e.from||[e.wave,e.sway,e.pulse,e.noise,e.lift,e.grow,e.tilt].some(e=\u003e0!==e),e}const we=(e,t)=\u003e.55*Math.sin(1.7*e+t)+.3*Math.sin(2.9*e+1.3*t)+.15*Math.sin(5.3*e+2.1*t);function Se(e,a,o,n,l){if(!o.active)return null;const r=e.S,i=a/oe,s=2*Math.PI,c=o.speed,f=e.i*o.phase*Math.PI/180,d=u(977*(parseInt(t(\"seed\").value)||1)+131*e.i+17),h=t=\u003e{if(\"even\"===o.fall)return 1;const a=n.w\u003e0?(e.cx-n.x0)/n.w:.5,l=n.h\u003e0?(e.mid-n.y0)/n.h:.5;if(\"ramp\"===o.fall)return a;if(\"center\"===o.fall)return V(1-2*Math.hypot(a-.5,(l-.5)*n.h/Math.max(1,n.w)));const r=Math.max(0,t-.6*te/oe),i=Math.max(1,n.w*o.rad/100),s=n.w+4*i,f=n.x0-2*i+s*(r*c*.5%1),d=Math.abs(e.cx-f)/i;return d\u003e=1?0:.5+.5*Math.cos(d*Math.PI)};let p=h(i);if(o.react&&\"even\"!==o.fall){const e=Math.max(0,Math.round(4*a)),t=1/(4*oe),n=1.6*s,l=Math.max(.06,1-o.bounce/100);let r=0,i=0;for(let a=0;a\u003ce;a++){i+=(n*n*(h(a*t)-r)-2*l*n*i)*t,r+=i*t}p=r}const m=o.keep||a\u003ce.r?1:1-J(V((a-e.r)/Math.max(1,l+.35*oe))),v=p*m,M=(\"sweep\"===o.fall?p:\"even\"===o.fall?1:p)*m,g=s*c*i-f;let b=0,x=0,y=0,k=1;if(x-=o.wave/100*r*Math.sin(g)*M,y+=o.sway*Math.PI/180*Math.sin(g+Math.PI/2)*M,k*=1+o.pulse/100*Math.sin(g)*M,o.noise){const e=50*d(),t=50*d(),a=50*d(),n=o.noise/100*M,l=i*c*2;b+=n*r*we(l,e),x+=n*r*we(l,t),y+=.7*n*we(l,a)}if(x-=o.lift/100*r*v,k*=1+o.grow/100*v,y+=o.tilt*Math.PI/180*v,\"off\"!==o.from){const t=function(e,t,a){if(e\u003c=0)return 0;const o=2*Math.PI/Math.max(.05,t),n=Math.max(.06,1-a);if(n\u003e=1)return 1-Math.exp(-o*e)*(1+o*e);const l=o*Math.sqrt(1-n*n);return 1-Math.exp(-n*o*e)*(Math.cos(l*e)+n*o/l*Math.sin(l*e))}((a-e.a)/oe,o.dur,o.bounce/100),n=1-t,l=o.dist/100*r,i=d()*s,c=d()-.5;\"below\"===o.from?x+=l*n:\"above\"===o.from?x-=l*n:\"left\"===o.from?b-=l*n:\"right\"===o.from?b+=l*n:\"scatter\"===o.from?(b+=Math.cos(i)*l*n,x+=Math.sin(i)*l*n):\"depth\"===o.from&&(k*=Math.max(0,t)),y+=o.spin*Math.PI/180*n*(\"scatter\"===o.from?2*c:1)}const w=\"base\"===o.pivot?e.base:\"top\"===o.pivot?e.top:e.mid;return{dx:b,dy:x,rot:y,sc:Math.max(0,k),px:e.cx,py:w}}let Te=-1;function Pe(e){Te=e;const a=n.width,o=n.height,r=t(\"alpha\").checked;l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,a,o),r||(l.fillStyle=t(\"bg\").value,l.fillRect(0,0,a,o));const i=m(me.wt,me.S,f),s=t(\"fcol\").value,c=se(\"ein\"),d=se(\"xf\"),h=se(\"pop\")/100,p=se(\"resf\"),v=se(\"settle\")/100,M=+t(\"anchor\").value,g=(e,t,a=e.cx,o=!0)=\u003e{const n=e.S,l=o?Math.max(.6*e.w,.45*n):e.w/2,r=e.base+(o?.12*n:0),i=e.base-n*(o?.95:.72),s=e.base-.36*n;return[[a,r],[a,s],[a,i],[a-l,s],[a+l,s]][t]},b=(e,t)=\u003eM\u003c5?M:5!==M&&t?t.anc:e.anc,x=(t,a,o,n,r)=\u003e{if(o\u003c=.001)return;const i=t.S,s=u(a.seed),c=a.sc*r;l.save(),l.globalAlpha=o;const[f,d]=g(t,b(t,a),\"keyboard\"===w[a.st].pack?t.kx:t.cx);l.translate(f,d+a.dy*i),l.rotate(a.rot),l.scale(c,c),l.translate(-f,-d),t.seg=a,w[a.st].draw(l,t,i,s,e,n),l.restore(),l.globalAlpha=1,l.shadowBlur=0,l.setLineDash([])},k=ke();let T=null;if(k.active){let e=1e9,t=-1e9,a=1e9,o=-1e9;for(const n of ee)\"\"!==n.ch.trim()&&(e=Math.min(e,n.x),t=Math.max(t,n.x+n.w),a=Math.min(a,n.top),o=Math.max(o,n.base));T={x0:e,y0:a,w:t-e,h:o-a}}for(const t of ee){if(\"\"===t.ch.trim()||e\u003ct.a)continue;const a=Se(t,e,k,T,p);a&&(l.save(),l.translate(a.px+a.dx,a.py+a.dy),l.rotate(a.rot),l.scale(a.sc,a.sc),l.translate(-a.px,-a.py));let o=0;for(let a=0;a\u003ct.segs.length;a++)t.segs[a].s\u003c=e&&t.segs[a].s\u003ct.r&&(o=a);const n=t.segs[o];if(e\u003ct.r){const a=e-n.s,l=c\u003e0?V(a/c):1,r=V((a+1)/(d+1));o\u003e0&&r\u003c1&&x(t,t.segs[o-1],1-r,1,1),x(t,n,r,J(l),h+(1-h)*K(l))}else{const a=e-t.r,o=p\u003e0?V(a/p):1,r=\"keyboard\"===w[n.st].pack,c=r?V((o-.45)/.55):o,f=J(c);t.tap=r?o\u003c.45?J(o/.45):1:0,x(t,n,1-f,1,r?1:1-.15*f),t.tap=0;const d=1+v*(1-f);l.save(),l.globalAlpha=V(3*c+(p\u003e0?0:1));const[h,m]=g(t,b(t,6===M?n:null),t.cx,!1);l.translate(h,m),l.scale(d,d),l.translate(-h,-m),y(l,t,i,o\u003c1?q(S[n.st]||s,s,f):s),l.restore()}a&&l.restore()}t(\"scrub\").value=e,Ee(t(\"scrub\")),t(\"fr\").textContent=`${e+1} / ${ae}\u0020\u0020·\u0020\u0020${(e/oe).toFixed(2)}s`}function Ce(a){if(le&&null!==e.offsetParent){ie+=Math.min(100,a-re);const e=1e3/oe;for(;ie\u003e=e;)ie-=e,ne++,ne\u003e=ae&&(t(\"loop\").checked?ne=0:(ne=ae-1,le=!1,t(\"play\").textContent=\"Play\"));ne!==Te&&Pe(ne)}re=a,requestAnimationFrame(Ce)}function Ee(e){const t=+e.min||0,a=+e.max||100,o=e=\u003e(e-t)/(a-t||1)*100+\"%\",n=+e.value,l=t\u003c0&&a\u003e0?0:t;e.style.setProperty(\"--a\",o(Math.min(l,n))),e.style.setProperty(\"--b\",o(Math.max(l,n)))}e.querySelectorAll(\"input[type=range]\").forEach(e=\u003ee.addEventListener(\"input\",()=\u003eEe(e)));const Le={sun:'\u003ccircle cx=\"12\" cy=\"12\" r=\"4\"/\u003e\u003cpath d=\"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4\"/\u003e',wave:'\u003cpath d=\"M2 12c2.5-6 5-6 7.5 0s5 6 7.5 0c1.2-3 3-4 5-3\"/\u003e',sliders:'\u003cpath d=\"M4 6h9M17 6h3M4 12h3M11 12h9M4 18h11M19 18h1\"/\u003e\u003ccircle cx=\"15\" cy=\"6\" r=\"2\"/\u003e\u003ccircle cx=\"9\" cy=\"12\" r=\"2\"/\u003e\u003ccircle cx=\"17\" cy=\"18\" r=\"2\"/\u003e',gauge:'\u003cpath d=\"M4 17a8 8 0 1 1 16 0\"/\u003e\u003cpath d=\"M12 17l4-6\"/\u003e',sway:'\u003cpath d=\"M12 3v3\"/\u003e\u003cpath d=\"M12 6l-5 13M12 6l5 13\"/\u003e\u003ccircle cx=\"12\" cy=\"20\" r=\"1\"/\u003e',noise:'\u003cpath d=\"M3 14l3-4 3 6 3-9 3 8 3-5 3 3\"/\u003e',falloff:'\u003cpath d=\"M3 19h18M3 19c6 0 6-14 9-14s3 14 9 14\"/\u003e',radius:'\u003ccircle cx=\"12\" cy=\"12\" r=\"8\"/\u003e\u003cpath d=\"M12 12h8\"/\u003e',lift:'\u003cpath d=\"M12 20V7M6 13l6-6 6 6M5 3h14\"/\u003e',grow:'\u003cpath d=\"M4 14v6h6M20 10V4h-6M4 20l7-7M20 4l-7 7\"/\u003e',tilt:'\u003cpath d=\"M6 20L17 5M6 20h12M6 20a6 6 0 0 0 6-1\"/\u003e',coil:'\u003cpath d=\"M12 2v3M12 19v3M7 5h10L7 9h10L7 13h10L7 17h10\"/\u003e',arrive:'\u003cpath d=\"M3 12h13M12 6l6 6-6 6M21 4v16\"/\u003e',bounce:'\u003cpath d=\"M3 20h18M6 16c1-8 3-10 4-10s3 2 4 10M15 16c.5-3 1.5-4 2.5-4s2 1 2.5 4\"/\u003e',pivot:'\u003ccircle cx=\"12\" cy=\"12\" r=\"2.5\"/\u003e\u003cpath d=\"M12 3v5M12 16v5M3 12h5M16 12h5\"/\u003e',bookmark:'\u003cpath d=\"M6 3h12v18l-6-4-6 4z\"/\u003e',plus:'\u003cpath d=\"M12 5v14M5 12h14\"/\u003e',trash:'\u003cpath d=\"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 11v6M14 11v6\"/\u003e',share:'\u003cpath d=\"M12 15V3M7 8l5-5 5 5M5 13v7h14v-7\"/\u003e',reset:'\u003cpath d=\"M4 4v6h6\"/\u003e\u003cpath d=\"M20 12a8 8 0 1 0-2.3 5.7M4.6 9A8 8 0 0 1 20 12\"/\u003e',order:'\u003cpath d=\"M4 12h15M14 6l6 6-6 6\"/\u003e',pulse:'\u003cpath d=\"M3 12h4l2-6 4 12 2-6h6\"/\u003e',lead:'\u003cpath d=\"M4 5h16M4 19h16M12 8v8M9 10.5L12 8l3 2.5M9 13.5l3 2.5 3-2.5\"/\u003e',align:'\u003cpath d=\"M4 6h16M7 12h10M4 18h16\"/\u003e',hourglass:'\u003cpath d=\"M7 3h10M7 21h10M8 3c0 6 8 6 8 9s-8 3-8 9M16 3c0 6-8 6-8 9s8 3 8 9\"/\u003e',pause:'\u003cpath d=\"M9 6v12M15 6v12\"/\u003e',swap:'\u003cpath d=\"M4 8h14l-3-3M20 16H6l3 3\"/\u003e',ease:'\u003cpath d=\"M4 19C11 19 12 5 20 5\"/\u003e',fade:'\u003ccircle cx=\"9\" cy=\"12\" r=\"5\"/\u003e\u003ccircle cx=\"15\" cy=\"12\" r=\"5\"/\u003e',pop:'\u003ccircle cx=\"12\" cy=\"12\" r=\"3\"/\u003e\u003cpath d=\"M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2 2M16.4 16.4l2 2M5.6 18.4l2-2M16.4 7.6l2-2\"/\u003e',check:'\u003cpath d=\"M5 12.5l4.5 4.5L19 7\"/\u003e',settle:'";
(window.__kts=window.__kts||[])[5]="\u003cpath d=\"M12 4v13M6 11l6 6 6-6M5 21h14\"/\u003e',bars:'\u003cpath d=\"M5 19v-6M10 19V9M15 19v-8M20 19V5\"/\u003e',film:'\u003crect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\"/\u003e\u003cpath d=\"M8 4v16M16 4v16M4 9h4M4 15h4M16 9h4M16 15h4\"/\u003e',anchor:'\u003ccircle cx=\"12\" cy=\"5\" r=\"2\"/\u003e\u003cpath d=\"M12 7v14M5 13a7 7 0 0 0 14 0M8 10h8\"/\u003e',loop:'\u003cpath d=\"M17 3l3 3-3 3M4 12V10a4 4 0 0 1 4-4h12M7 21l-3-3 3-3M20 12v2a4 4 0 0 1-4 4H4\"/\u003e',font:'\u003cpath d=\"M3 19L8 5l5 14M5 14h6M15 13.5a3 3 0 1 1 6 0V19M21 16.5a3 3 0 1 1-6 0\"/\u003e',bold:'\u003cpath d=\"M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z\"/\u003e',import:'\u003cpath d=\"M12 3v12M7 10l5 5 5-5M5 21h14\"/\u003e',list:'\u003cpath d=\"M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01\"/\u003e',keyboard:'\u003crect x=\"2\" y=\"6\" width=\"20\" height=\"12\" rx=\"2\"/\u003e\u003cpath d=\"M6 10h.01M10 10h.01M14 10h.01M18 10h.01M7 14h10\"/\u003e',sparkle:'\u003cpath d=\"M12 3l2 6.5L20 12l-6 2.5L12 21l-2-6.5L4 12l6-2.5z\"/\u003e',size:'\u003cpath d=\"M4 7V4h16v3M12 4v16M9 20h6\"/\u003e',track:'\u003cpath d=\"M3 12h18M6 9l-3 3 3 3M18 9l3 3-3 3\"/\u003e',drop:'\u003cpath d=\"M12 3s6 7 6 11a6 6 0 0 1-12 0c0-4 6-11 6-11z\"/\u003e',square:'\u003crect x=\"5\" y=\"5\" width=\"14\" height=\"14\" rx=\"2\"/\u003e',checker:'\u003crect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"1\"/\u003e\u003cpath d=\"M4 12h16M12 4v16\" /\u003e\u003cpath d=\"M4 4h8v8H4zM12 12h8v8h-8z\" fill=\"currentColor\"/\u003e',crop:'\u003cpath d=\"M6 2v16h16M2 6h16v16\"/\u003e',tag:'\u003cpath d=\"M3 12V3h9l9 9-9 9z\"/\u003e\u003ccircle cx=\"7.5\" cy=\"7.5\" r=\"1.5\"/\u003e',dice:'\u003crect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"3\"/\u003e\u003cpath d=\"M8.5 8.5h.01M15.5 15.5h.01M15.5 8.5h.01M8.5 15.5h.01M12 12h.01\" stroke-width=\"3\"/\u003e',stack:'\u003cpath d=\"M12 3l9 5-9 5-9-5z\"/\u003e\u003cpath d=\"M3 13l9 5 9-5\"/\u003e',video:'\u003crect x=\"3\" y=\"6\" width=\"13\" height=\"12\" rx=\"2\"/\u003e\u003cpath d=\"M16 10l5-3v10l-5-3\"/\u003e',photo:'\u003crect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/\u003e\u003ccircle cx=\"9\" cy=\"10\" r=\"2\"/\u003e\u003cpath d=\"M21 16l-5-5-8 8\"/\u003e'};e.querySelectorAll(\".ic[data-ic]\").forEach(e=\u003ee.innerHTML=`\u003csvg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e${Le[e.dataset.ic]||\"\"}\u003c/svg\u003e`);const Ae={spread:100};function Fe(){e.querySelectorAll(\"input[type=range]\").forEach(Ee),t(\"durO\").value=se(\"dur\").toFixed(2)+\"s\",t(\"holdO\").value=se(\"hold\")+\"s\",t(\"hminO\").value=se(\"hmin\")+\"f\",t(\"hmaxO\").value=se(\"hmax\")+\"f\",t(\"einO\").value=se(\"ein\")+\"f\",t(\"xfO\").value=se(\"xf\")+\"f\",t(\"popO\").value=se(\"pop\")+\"%\",t(\"resO\").value=se(\"resf\")+\"f\",t(\"settleO\").value=se(\"settle\")+\"%\",t(\"spreadO\").value=Math.round(100*se(\"spread\"))+\"%\",t(\"leadO\").value=se(\"lead\")+\"%\",[[\"mvSpeed\",e=\u003ee.toFixed(2)+\" Hz\"],[\"mvPhase\",e=\u003ee+\"°\"],[\"mvWave\",e=\u003ee+\"%\"],[\"mvSway\",e=\u003ee+\"°\"],[\"mvPulse\",e=\u003ee+\"%\"],[\"mvNoise\",e=\u003ee+\"%\"],[\"mvRad\",e=\u003ee+\"%\"],[\"mvLift\",e=\u003ee+\"%\"],[\"mvGrow\",e=\u003ee+\"%\"],[\"mvTilt\",e=\u003ee+\"°\"],[\"mvDist\",e=\u003ee+\"%\"],[\"mvSpin\",e=\u003ee+\"°\"],[\"mvDur\",e=\u003ee.toFixed(2)+\"s\"],[\"mvBounce\",e=\u003ee+\"%\"]].forEach(([e,a])=\u003et(e+\"O\").value=a(se(e))),t(\"sizeO\").value=se(\"size\"),t(\"trackO\").value=se(\"track\"),t(\"stage\").classList.toggle(\"alpha\",t(\"alpha\").checked),t(\"fcolH\").textContent=t(\"fcol\").value.toUpperCase(),t(\"bgH\").textContent=t(\"alpha\").checked?\"None\":t(\"bg\").value.toUpperCase()}e.querySelectorAll(\".cell output\").forEach(e=\u003e{const t=e.parentElement.querySelector(\"input[type=range]\");t&&(e.title=\"Click to type a value\",e.addEventListener(\"click\",()=\u003e{const o=Ae[a(t)]||1,n=document.createElement(\"input\");n.type=\"number\",n.step=\"any\",n.className=\"numedit\",n.value=+(t.value*o).toFixed(3),n.setAttribute(\"aria-label\",e.parentElement.querySelector(\"label\").textContent),e.hidden=!0,e.after(n),n.focus(),n.select();let l=!1;const r=a=\u003e{if(!l){if(l=!0,a){const e=parseFloat(n.value)/o;isFinite(e)&&(e\u003e+t.max&&(t.max=e),e\u003c+t.min&&(t.min=e),t.value=e,t.dispatchEvent(new Event(\"input\")))}n.remove(),e.hidden=!1,Fe()}};n.addEventListener(\"keydown\",e=\u003e{\"Enter\"===e.key&&r(!0),\"Escape\"===e.key&&r(!1),e.stopPropagation()}),n.addEventListener(\"blur\",()=\u003er(!0))}))}),[\"ein\",\"xf\",\"pop\",\"resf\",\"settle\",\"anchor\"].forEach(e=\u003et(e).addEventListener(\"input\",()=\u003e{Fe(),Pe(ne)})),[\"lead\",\"align\",\"order\",\"rhythm\",\"prev\",\"resW\",\"resH\",\"fpsC\",\"txt\",\"dur\",\"hold\",\"hmin\",\"hmax\",\"spread\",\"fps\",\"size\",\"track\",\"wt\",\"seed\",\"res\"].forEach(e=\u003et(e).addEventListener(\"input\",ue)),[\"fcol\",\"bg\",\"alpha\"].forEach(e=\u003et(e).addEventListener(\"input\",()=\u003e{Fe(),Pe(ne)})),t(\"play\").onclick=()=\u003e{le=!le,le&&ne\u003e=ae-1&&(ne=0),t(\"play\").textContent=le?\"Pause\":\"Play\"},t(\"restart\").onclick=()=\u003e{ne=0,ie=0,le=!0,t(\"play\").textContent=\"Pause\",Pe(0)},t(\"scrub\").addEventListener(\"input\",e=\u003e{le=!1,t(\"play\").textContent=\"Play\",ne=+e.target.value,Pe(ne)}),t(\"shuffle\").onclick=()=\u003e{t(\"seed\").value=Math.floor(9999*Math.random()),ne=0,ue()};const Be=()=\u003e{const e=t(\"txt\");e.rows=Math.min(6,Math.max(1,e.value.split(\"\\n\").length))};t(\"txt\").addEventListener(\"input\",Be),addEventListener(\"keydown\",a=\u003e{if(null===e.offsetParent||!o&&!e.contains(document.activeElement))return;const n=a.target.tagName;if(nt)return;if(\"TEXTAREA\"===n||\"SELECT\"===n||\"INPUT\"===n&&\"range\"!==a.target.type||a.metaKey||a.ctrlKey||a.altKey)return;const l=e=\u003e{a.preventDefault(),le=!1,t(\"play\").textContent=\"Play\",ne=Math.min(ae-1,Math.max(0,e)),Pe(ne)};\"Space\"===a.code?(a.preventDefault(),t(\"play\").click()):\"ArrowRight\"===a.key||\"ArrowLeft\"===a.key?l(ne+(\"ArrowRight\"===a.key?1:-1)*(a.shiftKey?10:1)):\"Home\"===a.key?l(0):\"End\"===a.key&&l(ae-1)});const $e=e=\u003et(\"fontStatus\").textContent=e,Ie=e=\u003ee.replace(/[\"'\\\\]/g,\"\").trim(),Oe=e=\u003e`\"${e}\", ${i}`;function De(){const e=t(\"font\"),a=t(\"wt\");[...e.options].forEach(e=\u003e{e.style.fontFamily=Oe(e.value),e.style.fontWeight=a.value}),e.style.fontFamily=f,e.style.fontWeight=a.value,[...a.options].forEach(e=\u003e{e.style.fontFamily=f,e.style.fontWeight=e.value}),a.style.fontFamily=f,a.style.fontWeight=a.value}function Ne(){f=Oe(t(\"font\").value),c=t(\"fontLooks\").checked?f:r,De(),ue()}t(\"wt\").addEventListener(\"change\",De);const je=document.createElement(\"canvas\").getContext(\"2d\"),Re=\"mmmmmmmmmlli WW@#0123 abcXYZ&?\",Ue=[\"monospace\",\"serif\",\"sans-serif\"],We={};function Ge(e){return Ue.some(t=\u003e(je.font=`60px \"${e}\", ${t}`,Math.abs(je.measureText(Re).width-We[t])\u003e.01))}Ue.forEach(e=\u003e{je.font=`60px ${e}`,We[e]=je.measureText(Re).width});const ze=new Set([\"Inter\",\"Fredoka\",\"Permanent Marker\",\"Pinyon Script\",\"Titan One\"]),He=\"Arial,Arial Black,Arial Narrow,Arial Rounded MT Bold,Bahnschrift,Calibri,Cambria,Candara,Comic Sans MS,Consolas,Constantia,Corbel,Courier New,Ebrima,Franklin Gothic Medium,Gabriola,Gadugi,Georgia,Impact,Ink Free,Javanese Text,Leelawadee UI,Lucida Console,Lucida Sans Unicode,Malgun Gothic,Microsoft YaHei,MV Boli,Nirmala UI,Palatino Linotype,Segoe Print,Segoe Script,Segoe UI,Segoe UI Black,Segoe UI Semibold,Segoe UI Light,Segoe UI Variable Display,Sitka Text,Sylfaen,Tahoma,Times New Roman,Trebuchet MS,Verdana,Yu Gothic,\\nHelvetica,Helvetica Neue,Avenir,Avenir Next,Avenir Next Condensed,Futura,Gill Sans,Optima,Didot,Baskerville,Bodoni 72,Charter,Cochin,Copperplate,Menlo,Monaco,SF Pro Text,SF Pro Rounded,SF Compact Display,SF Mono,New York,Rockwell,American Typewriter,Chalkboard SE,Chalkduster,Marker Felt,Noteworthy,Papyrus,Phosphate,Skia,Snell Roundhand,Zapfino,Trattatello,Herculanum,Big Caslon,Hoefler Text,Palatino,Times,Courier,Geneva,Lucida Grande,Apple Chancery,Bradley Hand,Brush Script MT,Luminari,Party LET,Silom,Superclarendon,Kailasa,Kefa,Sathu,\\nMyriad Pro,Minion Pro,Acumin Pro,Acumin Variable Concept,Proxima Nova,Futura PT,Gotham,Montserrat,Poppins,Roboto,Roboto Condensed,Open Sans,Lato,Oswald,Bebas Neue,Bebas Kai,Source Sans Pro,Source Sans 3,Source Code Pro,Helvetica Now Display,Helvetica Now Text,Neue Haas Grotesk Display Pro,Neue Haas Unica,Druk,Druk Wide,Druk Text,Tungsten,Knockout,Eurostile,Univers,Akzidenz-Grotesk Pro,DIN Pro,DIN Next LT Pro,DIN Condensed,DIN Alternate,Barlow,Barlow Condensed,Space Grotesk,Manrope,Archivo,Archivo Black,IBM Plex Sans,IBM Plex Mono,JetBrains Mono,Space Mono,Anton,Playfair Display,Recoleta,Cooper Black,Gilroy,Satoshi,Clash Display,General Sans,Neue Montreal,PP Neue Montreal,Aeonik,Graphik,Söhne,Circular Std,Product Sans,Google Sans,Mark Pro,Beaufort for LOL,Spiegel,Rubik,Nunito,Work Sans,Raleway,Ubuntu,Noto Sans,DM Sans,Outfit,Sora,Syne,Unbounded,Lexend,Kanit,Teko,Orbitron,Exo 2,Rajdhani,Russo One,Audiowide,Monument Extended,Obviously,Migra,Editorial New,Ogg,Canela,GT America,GT Walsheim,GT Flexa,Suisse Int'l,Haffer,Inter Display,Inter Tight\".split(\",\").map(e=\u003ee.trim()).filter(Boolean);function qe(e){const a=t(\"grpInstalled\"),o=new Set([...t(\"font\").options].map(e=\u003ee.value)),n=[...new Set([...[...a.children].map(e=\u003ee.value),...e.filter(e=\u003e!o.has(e)&&!ze.has(e))])].sort((e,t)=\u003ee.localeCompare(t)),l=t(\"font\").value;return a.innerHTML=\"\",n.forEach(e=\u003ea.append(new Option(e,e))),t(\"font\").value=l,De(),n.length}function Ve(e,a,o=\"grpImported\"){const n=t(\"font\");let l=[...n.options].find(t=\u003et.value===e);l||(l=new Option(a,e),t(o).append(l),t(o).hidden=!1),n.value=e,Ne()}t(\"allFontsBtn\").onclick=async()=\u003e{try{const e=await window.queryLocalFonts(),t=qe([...new Set(e.map(e=\u003ee.family))]);$e(`Loaded all ${t} installed font families.`)}catch(e){$e(\"The browser didn't allow the full font list (permission denied, or this page is inside a preview frame). Common fonts are still listed.\")}};let Ke=0;async function Je(e){const t=[...e].filter(e=\u003e/\\.(ttf|otf|woff2?)$/i.test(e.name));if(!t.length)return void $e(\"No .ttf, .otf, .woff or .woff2 files found.\");let a=0,o=[];for(const e of t){const t=e.name.replace(/\\.[^.]+$/,\"\"),n=`KS Import ${++Ke} ${Ie(t)}`;try{const o=new FontFace(n,await e.arrayBuffer(),{weight:\"1 1000\"});await o.load(),document.fonts.add(o),Ve(n,t),a++}catch(t){o.push(e.name)}}$e((a?`Loaded ${a} font${a\u003e1?\"s\":\"\"}.`:\"\")+(o.length?` Couldn't read: ${o.join(\", \")}.`:\"\"))}async function Ye(){const e=Ie(t(\"sysfont\").value);if(e){if(!Ge(e))try{await new FontFace(\"KS probe\",`local(\"${e}\")`).load()}catch(t){return void $e(`\"${e}\" isn't installed (or the browser can't see it). Try the exact family name, or import the file.`)}t(\"sysfont\").value=\"\",Ve(e,e,\"grpInstalled\"),$e(`Using installed font \"${e}\".`)}}t(\"mvPreset\").addEventListener(\"change\",e=\u003e{\"custom\"!==e.target.value&&xe(e.target.value)}),t(\"mvOpen\").addEventListener(\"change\",ye),ve.forEach(e=\u003et(e).addEventListener(\"SELECT\"===t(e).tagName||\"checkbox\"===t(e).type?\"change\":\"input\",()=\u003e{be||\"custom\"===t(\"mvPreset\").value||(t(\"mvPreset\").value=\"custom\"),ye(),Fe(),Pe(ne)})),t(\"keyTheme\").addEventListener(\"change\",e=\u003e{O=e.target.value,Pe(ne)}),t(\"lookLbl\").addEventListener(\"input\",e=\u003e{s=e.target.value,Pe(ne)}),t(\"fontBtn\").onclick=()=\u003et(\"fontFile\").click(),t(\"fontFile\").addEventListener(\"change\",e=\u003e{Je(e.target.files),e.target.value=\"\"}),t(\"font\").addEventListener(\"change\",Ne),t(\"fontLooks\").addEventListener(\"change\",Ne),t(\"sysBtn\").onclick=Ye,t(\"sysfont\").addEventListener(\"keydown\",e=\u003e{\"Enter\"===e.key&&Ye()});const _e=t(\"stage\"),Ze=e=\u003e[...e.dataTransfer&&e.dataTransfer.types||[]].includes(\"Files\");e.addEventListener(\"dragover\",e=\u003e{Ze(e)&&(e.preventDefault(),_e.classList.add(\"drop\"))}),e.addEventListener(\"dragleave\",t=\u003e{e.contains(t.relatedTarget)||_e.classList.remove(\"drop\")}),e.addEventListener(\"drop\",e=\u003e{if(!Ze(e))return;e.preventDefault(),_e.classList.remove(\"drop\");const t=[...e.dataTransfer.files],a=t.find(e=\u003e/\\.json$/i.test(e.name));a&&Mt(a),t.some(e=\u003e/\\.(ttf|otf|woff2?)$/i.test(e.name))?Je(t):a||$e(\"Drop .ttf, .otf, .woff or .woff2 font files (or a presets .json).\")});const Xe=e=\u003et(\"status\").textContent=e,Qe=()=\u003e(t(\"txt\").value||\"type\").trim().replace(/[^a-z0-9]+/gi,\"_\").toLowerCase()||\"type\";function et(e,t){const a=document.createElement(\"a\");a.href=URL.createObjectURL(e),a.download=t,document.body.appendChild(a),a.click(),a.remove(),setTimeout(()=\u003eURL.revokeObjectURL(a.href),4e3)}const tt=()=\u003enew Promise(e=\u003en.toBlob(e,\"image/png\")),at=(()=\u003e{const e=new Uint32Array(256);for(let t=0;t\u003c256;t++){let a=t;for(let e=0;e\u003c8;e++)a=1&a?3988292384^a\u003e\u003e\u003e1:a\u003e\u003e\u003e1;e[t]=a\u003e\u003e\u003e0}return e})();function ot(e){let t=4294967295;for(let a=0;a\u003ce.length;a++)t=at[255&(t^e[a])]^t\u003e\u003e\u003e8;return(4294967295^t)\u003e\u003e\u003e0}let nt=null;const lt=[\"expZip\",\"expWebm\",\"expPng\"],rt=e=\u003e{t(\"prog\").hidden=null==e,null!=e&&(t(\"prog\").firstElementChild.style.width=(100*e).toFixed(1)+\"%\")};function it(o,n){e.querySelectorAll(\".transport,.search,.layout .card\").forEach(e=\u003e{\"expCard\"!==a(e)&&(e.inert=o)}),lt.forEach(e=\u003e{const a=t(e),l=a.querySelector(\".lb\");a.disabled=o&&e!==n,o&&e===n&&(l.dataset.t=l.textContent,l.textContent=\"Cancel export\"),!o&&l.dataset.t&&(l.textContent=l.dataset.t,delete l.dataset.t)})}async function st(e,a){if(nt)return void(nt.btn===e&&(nt.cancel=!0));nt={cancel:!1,btn:e};const o=ne;le=!1,t(\"play\").textContent=\"Play\",it(!0,e),he=!0,ue();try{await a(nt)}catch(e){Xe(\"Export failed: \"+(e&&e.message||e))}finally{he=!1,ue(),ne=Math.min(o,ae-1),Pe(ne),it(!1),rt(null),nt=null}}t(\"expPng\").onclick=()=\u003est(\"expPng\",async()=\u003e{Pe(ne),et(await tt(),`${Qe()}_${String(ne).padStart(4,\"0\")}.png`),Xe(`Saved frame ${ne+1} at ${n.width}×${n.height}.`)}),t(\"expZip\").onclick=()=\u003est(\"expZip\",async e=\u003e{const t=[],a=Qe();for(let o=0;o\u003cae;o++){if(e.cancel)return void Xe(\"Export cancelled.\");Pe(o),Xe(`Rendering frame ${o+1} of ${ae}…`),rt((o+1)/ae),t.push({name:`${a}/${a}_${String(o).padStart(4,\"0\")}.png`,data:new Uint8Array(await(await tt()).arrayBuffer())})}Xe(\"Packing zip…\"),et(function(e){const t=[],a=[];let o=0;const n=new TextEncoder,l=new Date,r=l.getHours()\u003c\u003c11|l.getMinutes()\u003c\u003c5|l.getSeconds()\u003e\u003e1,i=l.getFullYear()-1980\u003c\u003c9|l.getMonth()+1\u003c\u003c5|l.getDate();for(const l of e){const e=n.encode(l.name),s=l.data,c=ot(s),f=new DataView(new ArrayBuffer(30));f.setUint32(0,67324752,!0),f.setUint16(4,20,!0),f.setUint16(10,r,!0),f.setUint16(12,i,!0),f.setUint32(14,c,!0),f.setUint32(18,s.length,!0),f.setUint32(22,s.length,!0),f.setUint16(26,e.length,!0),t.push(f.buffer,e,s);const d=new DataView(new ArrayBuffer(46));d.setUint32(0,33639248,!0),d.setUint16(4,20,!0),d.setUint16(6,20,!0),d.setUint16(12,r,!0),d.setUint16(14,i,!0),d.setUint32(16,c,!0),d.setUint32(20,s.length,!0),d.setUint32(24,s.length,!0),d.setUint16(28,e.length,!0),d.setUint32(42,o,!0),a.push(d.buffer,e),o+=30+e.length+s.length}const s=a.reduce((e,t)=\u003ee+(t.byteLength||t.length),0),c=new DataView(new ArrayBuffer(22));return c.setUint32(0,101010256,!0),c.setUint16(8,e.length,!0),c.setUint16(10,e.length,!0),c.setUint32(12,s,!0),c.setUint32(16,o,!0),new Blob([...t,...a,c.buffer],{type:\"application/zip\"})}(t),`${a}_${n.width}x${n.height}_${oe}fps.zip`),";
(window.__kts=window.__kts||[])[6]="Xe(`Done — ${ae} frames, ${n.width}×${n.height} at ${oe} fps.`)}),t(\"expWebm\").onclick=()=\u003est(\"expWebm\",async e=\u003e{if(!n.captureStream||!window.MediaRecorder)return void Xe(\"This browser cannot record video — use the PNG sequence.\");const t=n.captureStream(0),a=t.getVideoTracks()[0],o=[\"video/webm;codecs=vp9\",\"video/webm;codecs=vp8\",\"video/webm\"].find(e=\u003eMediaRecorder.isTypeSupported(e)),l=new MediaRecorder(t,{mimeType:o,videoBitsPerSecond:n.width\u003e2e3?6e7:25e6}),r=[];l.ondataavailable=e=\u003ee.data.size&&r.push(e.data);const i=new Promise(e=\u003el.onstop=e);l.start();const s=1e3/oe,c=performance.now();for(let t=0;t\u003cae&&!e.cancel;t++){Pe(t),a.requestFrame&&a.requestFrame(),Xe(`Recording ${t+1} / ${ae}…`),rt((t+1)/ae);const e=c+(t+1)*s-performance.now();await new Promise(t=\u003esetTimeout(t,Math.max(0,e)))}l.stop(),await i,e.cancel?Xe(\"Export cancelled.\"):(et(new Blob(r,{type:\"video/webm\"}),`${Qe()}.webm`),Xe(\"WebM saved (real-time capture; use the PNG sequence for frame-exact output).\"))});const ct=new Set([\"uiLight\",\"sysfont\",\"presetName\",\"presetSel\",\"presetFile\",\"fontFile\",\"prev\"]),ft={};function dt(){const t={app:\"kiuzr-scramble\",v:1,vals:{},looks:[...Z]};return e.querySelectorAll(\"#kts-txt,.layout input[id],.layout select[id]\").forEach(e=\u003e{ct.has(a(e))||\"file\"===e.type||(t.vals[a(e)]=\"checkbox\"===e.type?e.checked:e.value,\"range\"!==e.type||e.min===ft[a(e)][0]&&e.max===ft[a(e)][1]||((t.ranges=t.ranges||{})[a(e)]=[e.min,e.max]))}),t}function ht(e){const a=[];Object.entries(ft).forEach(([e,[a,o]])=\u003e{const n=t(e);n.min=a,n.max=o}),Object.entries(e.ranges||{}).forEach(([e,[a,o]])=\u003e{const n=t(e);n&&(n.min=a,n.max=o)});for(const[o,n]of Object.entries(e.vals||{})){const e=t(o);e&&!ct.has(o)&&(\"checkbox\"===e.type?e.checked=!!n:\"SELECT\"!==e.tagName||[...e.options].some(e=\u003ee.value===n)?e.value=n:a.push(\"font\"===o?`the font \"${n}\"`:o))}return Array.isArray(e.looks)&&(Z.clear(),e.looks.filter(e=\u003ew[e]).forEach(e=\u003eZ.add(e))),_.some(e=\u003eX(e)&&Z.has(e))||_.filter(X).forEach(e=\u003eZ.add(e)),O=t(\"keyTheme\").value,s=t(\"lookLbl\").value,Be(),Q(),ye(),ne=0,Ne(),a}e.querySelectorAll(\"input[type=range]\").forEach(e=\u003eft[a(e)]=[e.min,e.max]);const pt=\"kiuzr-scramble-presets\",mt={get(){try{return JSON.parse(localStorage.getItem(pt)||\"{}\")}catch(e){return null}},set(e){try{return localStorage.setItem(pt,JSON.stringify(e)),!0}catch(e){return!1}}},ut=e=\u003et(\"presetNote\").textContent=e;function vt(e=\"\"){const a=mt.get()||{},o=Object.keys(a).sort((e,t)=\u003ee.localeCompare(t)),n=t(\"presetSel\");n.innerHTML=o.length?'\u003coption value=\"\"\u003eChoose…\u003c/option\u003e'+o.map(e=\u003e\"\u003coption\u003e\u003c/option\u003e\").join(\"\"):'\u003coption value=\"\"\u003eNone saved\u003c/option\u003e',o.forEach((e,t)=\u003e{n.options[t+1].value=e,n.options[t+1].textContent=e}),n.value=o.includes(e)?e:\"\",t(\"presetDel\").disabled=!n.value}async function Mt(e){try{const t=JSON.parse(await e.text()),a=t.presets||(t.vals?{[e.name.replace(/\\.json$/i,\"\")]:t}:null);if(!a)throw 0;const o=mt.get();if(!o)return void ut(\"Presets can't be saved here — open this file directly in a browser.\");Object.assign(o,a),mt.set(o),vt(),ut(`Imported ${Object.keys(a).length} preset${Object.keys(a).length\u003e1?\"s\":\"\"}.`)}catch(e){ut(\"That file isn't a Kiuzr Scramble presets file.\")}}t(\"presetSave\").onclick=()=\u003e{const e=t(\"presetName\").value.trim();if(!e)return ut(\"Type a name for the preset first.\"),void t(\"presetName\").focus();const a=mt.get();if(!a)return void ut(\"Presets can't be saved here — open this file directly in a browser.\");const o=e in a;a[e]=dt(),mt.set(a)?(t(\"presetName\").value=\"\",vt(e),ut(`${o?\"Updated\":\"Saved\"} preset \"${e}\".`)):ut(\"Couldn't save — browser storage is full or blocked.\")},t(\"presetName\").addEventListener(\"keydown\",e=\u003e{\"Enter\"===e.key&&t(\"presetSave\").click()}),t(\"presetSel\").addEventListener(\"change\",e=\u003e{const a=e.target.value;if(t(\"presetDel\").disabled=!a,!a)return;const o=(mt.get()||{})[a];if(!o)return;const n=ht(o);ut(`Loaded \"${a}\".`+(n.length?` Not available on this computer: ${n.join(\", \")} — kept the current setting.`:\"\"))}),t(\"presetDel\").onclick=()=\u003e{const e=t(\"presetSel\").value;if(!e)return;const a=mt.get()||{};delete a[e],mt.set(a),vt(),ut(`Deleted preset \"${e}\".`)},t(\"resetAll\").onclick=()=\u003e{ht(gt),vt(),ut(\"Everything is back to the defaults.\")},t(\"presetOut\").onclick=()=\u003e{const e=mt.get()||{};Object.keys(e).length?(et(new Blob([JSON.stringify({app:\"kiuzr-scramble\",presets:e},null,2)],{type:\"application/json\"}),\"kiuzr-scramble-presets.json\"),ut(\"Presets file saved.\")):ut(\"No presets to export yet — save one first.\")},t(\"presetIn\").onclick=()=\u003et(\"presetFile\").click(),t(\"presetFile\").addEventListener(\"change\",e=\u003e{e.target.files[0]&&Mt(e.target.files[0]),e.target.value=\"\"}),t(\"uiLight\").checked=e.classList.contains(\"light\"),t(\"uiLight\").addEventListener(\"change\",t=\u003e{const a=e;a.classList.add(\"theming\"),a.classList.toggle(\"light\",t.target.checked);try{localStorage.setItem(\"kiuzr-scramble-ui\",t.target.checked?\"light\":\"dark\")}catch(e){}setTimeout(()=\u003ea.classList.remove(\"theming\"),400)}),ye(),Fe(),De(),function(){const e=/Mac/.test(navigator.platform);[...t(\"grpSuggest\").children].forEach(t=\u003e{\"Inter\"===t.value||Ge(t.value)||\"SF Pro Display\"===t.value&&e||(t.textContent=t.value+\" (not installed)\")});const a=qe(He.filter(Ge));\"queryLocalFonts\"in window&&(t(\"allFontsBtn\").hidden=!1),$e(`Found ${a} installed font${1===a?\"\":\"s\"} from a common list.`+(\"queryLocalFonts\"in window?' Tap \"List all installed fonts\" to load every one.':\"\"))}();const gt=dt();vt(),mt.get()||ut(\"Presets need this file opened directly in a browser (not inside a preview).\");const bt=[m(500,40,\"Inter\"),m(800,40,\"Inter\"),m(500,40,\"Fredoka\"),m(700,40,\"Fredoka\"),m(400,40,'\"Permanent Marker\"'),m(400,40,'\"Pinyon Script\"'),m(400,40,'\"Titan One\"')];Promise.race([Promise.all(bt.map(e=\u003edocument.fonts.load(e,\"Aa\"))),new Promise(e=\u003esetTimeout(e,2500))]).finally(()=\u003e{ue(),requestAnimationFrame(e=\u003e{re=e,Ce(e)})})}()\u003c/script\u003e";