PageSourceSearch

https://textkits.org/_next/static/chunks/8361.726cf674eb973629.js

js textkits.org collected 2026-09-24 10:23:09 UTC 42,316 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8361],{13804:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},27209:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]])},39867:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},56367:(e,t,a)=>{a.d(t,{T:()=>i});var l=a(95155),r=a(12115),n=a(65229),s=a(49498);let o="flex min-h-[120px] w-full rounded-[1.8rem] border border-slate-200 bg-white px-5 py-4 text-base text-slate-900 shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] outline-none transition placeholder:text-slate-400 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20 disabled:cursor-not-allowed disabled:opacity-50",i=r.forwardRef((e,t)=>{var a;let{className:i,value:d,defaultValue:c,onChange:m,onFocus:u,readOnly:x,disabled:h,placeholder:p,"data-mobile-full-height":b,...f}=e,[g,y]=r.useState(!1),v=r.useRef(null),w=r.useRef(null),j=!x&&!h&&!b,k=null!=(a=null!=d?d:c)?a:"",N="string"==typeof i&&i.includes("convert-normal-input-attention");function A(){return window.matchMedia("(max-width: 639px)").matches}return(r.useImperativeHandle(t,()=>({get element(){return v.current},focus:()=>{var e;if(j&&A())return void y(!0);null==(e=v.current)||e.focus()},blur:()=>{var e;return null==(e=v.current)?void 0:e.blur()},select:()=>{var e;return null==(e=v.current)?void 0:e.select()},setSelectionRange:function(){for(var e,t,a=arguments.length,l=Array(a),r=0;r<a;r++)l[r]=arguments[r];return null==(t=v.current)||null==(e=t.setSelectionRange)?void 0:e.call(t,...l)},get selectionStart(){var e,t;return null!=(t=null==(e=v.current)?void 0:e.selectionStart)?t:0},get selectionEnd(){var a,l;return null!=(l=null==(a=v.current)?void 0:a.selectionEnd)?l:0},get value(){var r;return null==(r=v.current)?void 0:r.value}})),r.useEffect(()=>{if(!g)return;let e=document.body.style.overflow;function t(e){"Escape"===e.key&&y(!1)}return document.body.style.overflow="hidden",window.requestAnimationFrame(()=>{var e;null==(e=w.current)||e.focus()}),window.addEventListener("keydown",t),()=>{document.body.style.overflow=e,window.removeEventListener("keydown",t)}},[g]),j)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{type:"button",onClick:()=>y(!0),className:(0,s.cn)("block min-h-40 w-full rounded-[1.4rem] border border-slate-200 bg-white px-4 py-4 text-left shadow-[0_8px_24px_-18px_rgba(15,23,42,0.28)] sm:hidden",N?"convert-normal-input-attention border-emerald-500":""),"aria-label":"Open text editor",children:(0,l.jsx)("span",{className:(0,s.cn)("line-clamp-5 block text-xl font-black leading-tight",k?"text-slate-900":"text-slate-300"),children:k||p||"Tap to enter text..."})}),(0,l.jsx)("textarea",{ref:v,value:d,defaultValue:c,onChange:m,onFocus:function(e){null==u||u(e),j&&A()&&(e.currentTarget.blur(),y(!0))},readOnly:x,disabled:h,placeholder:p,className:(0,s.cn)(o,"hidden sm:flex",i),...f}),g?(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end bg-slate-950/55 px-3 py-4 backdrop-blur-sm sm:hidden",role:"dialog","aria-modal":"true","aria-label":"Text input editor",children:[(0,l.jsx)("button",{type:"button",className:"absolute inset-0","aria-label":"Close text editor",onClick:()=>y(!1)}),(0,l.jsxs)("div",{className:"relative w-full rounded-[2rem] border-4 border-slate-100 bg-white p-4 shadow-2xl",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.08em] text-slate-500",children:"Text"}),(0,l.jsx)("p",{className:"text-lg font-black tracking-tight text-slate-950",children:"Edit input"})]}),(0,l.jsx)("button",{type:"button",onClick:()=>y(!1),className:"inline-flex size-10 items-center justify-center rounded-full border-2 border-slate-100 bg-white text-slate-700","aria-label":"Close text editor",children:(0,l.jsx)(n.A,{className:"size-5"})})]}),(0,l.jsx)("textarea",{ref:w,value:d,defaultValue:c,onChange:m,onFocus:u,placeholder:p,maxLength:f.maxLength,className:(0,s.cn)(o,"mt-3 min-h-[45vh] resize-none rounded-[1.4rem] border-2 border-slate-100 bg-slate-50 p-4 text-xl font-bold leading-tight text-slate-900 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-200 focus-visible:ring-2 focus-visible:ring-emerald-500/20"),"data-mobile-full-height":"true"}),(0,l.jsxs)("div",{className:"mt-3 grid grid-cols-[1fr_auto] gap-2",children:[(0,l.jsx)("button",{type:"button",onClick:()=>y(!1),className:"inline-flex h-12 items-center justify-center rounded-full border-4 border-emerald-800 bg-emerald-700 px-6 text-base font-black text-white shadow-[0_6px_0_0_#065f46] active:translate-y-1.5 active:shadow-none",children:"Done"}),(0,l.jsx)("button",{type:"button",onClick:()=>{null==m||m({target:{value:""},currentTarget:{value:""}})},className:"inline-flex h-12 items-center justify-center rounded-full border-2 border-slate-200 bg-white px-5 text-base font-black text-slate-700",children:"Clear"})]})]})]}):null]}):(0,l.jsx)("textarea",{ref:v,value:d,defaultValue:c,onChange:m,onFocus:u,readOnly:x,disabled:h,placeholder:p,"data-mobile-full-height":b,className:(0,s.cn)(o,i),...f})});i.displayName="Textarea"},65229:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},75426:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(19904).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},98361:(e,t,a)=>{a.r(t),a.d(t,{default:()=>er});var l=a(95155),r=a(12115),n=a(52987),s=a(5917),o=a(75426),i=a(19904);let d=(0,i.A)("radio",[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var c=a(39867),m=a(27209),u=a(13804);let x=(0,i.A)("satellite",[["path",{d:"m13.5 6.5-3.148-3.148a1.205 1.205 0 0 0-1.704 0L6.352 5.648a1.205 1.205 0 0 0 0 1.704L9.5 10.5",key:"dzhfyz"}],["path",{d:"M16.5 7.5 19 5",key:"1ltcjm"}],["path",{d:"m17.5 10.5 3.148 3.148a1.205 1.205 0 0 1 0 1.704l-2.296 2.296a1.205 1.205 0 0 1-1.704 0L13.5 14.5",key:"nfoymv"}],["path",{d:"M9 21a6 6 0 0 0-6-6",key:"1iajcf"}],["path",{d:"M9.352 10.648a1.205 1.205 0 0 0 0 1.704l2.296 2.296a1.205 1.205 0 0 0 1.704 0l4.296-4.296a1.205 1.205 0 0 0 0-1.704l-2.296-2.296a1.205 1.205 0 0 0-1.704 0z",key:"nv9zqy"}]]);var h=a(71360),p=a(95740),b=a(24033),f=a(73161),g=a(56367),y=a(49498),v=a(27329);let w={a:"⏃",b:"⏚",c:"☊",d:"⎅",e:"⟒",f:"⎎",g:"☌",h:"⊑",i:"⟟",j:"⟊",k:"☍",l:"⌰",m:"⋔",n:"⋏",o:"⍜",p:"⌿",q:"⍾",r:"⍀",s:"⌇",t:"⏁",u:"⎍",v:"⎐",w:"⍵",x:"⌖",y:"⊬",z:"⋉",0:"⍜",1:"⟟",2:"⟊",3:"⟒",4:"⌰",5:"⌇",6:"⎐",7:"⏁",8:"⍾",9:"☌"},j={a:"\xe5",b:"ƀ",c:"\xe7",d:"đ",e:"ē",f:"ƒ",g:"ğ",h:"ħ",i:"\xed",j:"ĵ",k:"ķ",l:"ļ",m:"ṁ",n:"\xf1",o:"\xf8",p:"\xfe",q:"ʠ",r:"ŕ",s:"ş",t:"ŧ",u:"ū",v:"ṽ",w:"ẅ",x:"\xd7",y:"\xa5",z:"ž"},k=[["⟊","⟊"],["⌁","⌁"],["⟐","⟐"],["⋇","⋇"]],N=["᚛","⟦","༺","⟬"],A=["᚜","⟧","༻","⟭"],S=["̷","̴","̶","̸"],C=new Set(k.flat()),_=new Set([...N,...A]);function M(e){return Object.entries(e).sort((e,t)=>{let[a]=e,[l]=t,r=/^\d$/u.test(a),n=/^\d$/u.test(l);return Number(r)-Number(n)}).reduce((e,t)=>{var a;let[l,r]=t,n=null!=(a=e.get(r))?a:[];return n.push(l),e.set(r,n),e},new Map)}let E=M(w),T=M(j),z=[["A","⏃"],["E","⟒"],["O","⍜"],["S","⌇"],["T","⏁"],["W","⍵"]],R=[{key:"alphabet",label:"Alien Alphabet",description:"Geometric glyphs for the strongest alien-language look."},{key:"cipher",label:"Galactic Cipher",description:"A sharper code-like row for clues and short messages."},{key:"signal",label:"Signal Noise",description:"A transmission-style effect that keeps the source visible."},{key:"rune",label:"Rune Orbit",description:"Wrapped symbols for decorative sci-fi captions."},{key:"readable",label:"Readable Alien",description:"Accent-heavy output that stays easier to scan."}];function I(e){return String(null!=e?e:"").replace(/\r\n?/g,"\n").slice(0,180)}function F(e){let t=0x811c9dc5;for(let a of e)t^=a.codePointAt(0),t=Math.imul(t,0x1000193);return t>>>0||1}function G(e){let t=e>>>0||1;return()=>{let e=t+=0x6d2b79f5;return e=Math.imul(e^e>>>15,1|e),(((e^=e+Math.imul(e^e>>>7,61|e))^e>>>14)>>>0)/0x100000000}}function L(e,t){var a;return null!=(a=e[Math.floor(t()*e.length)])?a:e[0]}function D(e,t){return Array.from(e,e=>{var a;return null!=(a=t[e.toLowerCase()])?a:e}).join("")}function O(){let{text:e="textkits signal",readable:t=!0,seed:a=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=I(e);if(!l.trim())return R.map(e=>({...e,output:""}));let r={alphabet:D(l,w),cipher:function(e,t){let[a,l]=L(k,G(F("cipher:".concat(t,":").concat(e))));return e.split(/(\s+)/).map(e=>/^\s+$/u.test(e)||!e?e:"".concat(a).concat(D(e,w)).concat(l)).join("")}(l,a),signal:function(e,t,a){let l=G(F("signal:".concat(t,":").concat(e))),r=a?.54:.86;return Array.from(e,e=>!RegExp("[\\p{L}\\p{N}]","u").test(e)||l()>r?e:"".concat(e).concat(L(S,l))).join("")}(l,a,t),rune:function(e,t){let a=G(F("rune:".concat(t,":").concat(e))),l=L(N,a),r=L(A,a),n=String(null!=e?e:"").split("\n").map(e=>Array.from(D(e,w)).map(e=>/\s/u.test(e)?"  ":e).join(" ")).join("\n");return"".concat(l," ").concat(n," ").concat(r)}(l,a),readable:D(l,j)};return R.map(e=>{var t;return{...e,output:null!=(t=r[e.key])?t:l}})}function P(e,t){let a=[];return{output:Array.from(e,(e,l)=>{let r=t.get(e);return(null==r?void 0:r.length)?(r.length>1&&a.push({index:l,glyph:e,candidates:r}),r[0]):e}).join(""),ambiguities:a}}function q(e,t){return Array.from(e).filter(e=>t.has(e)).length}let U=[{key:"type-reveal",label:"Type Reveal"},{key:"signal-flicker",label:"Signal Flicker"},{key:"glow-pulse",label:"Glow Pulse"}];function B(e){let t=0x811c9dc5;for(let a of String(null!=e?e:""))t^=a.codePointAt(0),t=Math.imul(t,0x1000193);return t>>>0}function V(e){let{text:t,animation:a="glow-pulse",textColor:l="#6ee7b7",backgroundColor:r="#07111f",frameIndex:n=17,totalFrames:s=18}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.canvas.width||960,i=e.canvas.height||540,d=n/Math.max(1,s)*Math.PI*2,c="signal-flicker"===a,m="glow-pulse"===a,u=n%9==3?.48:n%11==7?.66:1,x=c?(.64+.36*Math.abs(Math.sin(3.2*d)))*u:1,h=.5+.5*Math.abs(Math.sin(d)),p=m?.5+.5*Math.sin(d):h,b=m?18+82*p:c?20+18*h:16,f=c?Math.round(8*Math.sin(5.3*d)):0,g=c?Math.round(3*Math.cos(3.7*d)):0,y=function(e,t,a,l){if("type-reveal"!==t)return e;let r=Array.from(e),n=Math.max(1,Math.ceil(r.length*(a+1)/l));return r.slice(0,n).join("")}(t,a,n,s),v=B(t);for(let a of(e.clearRect(0,0,o,i),e.fillStyle=r,e.fillRect(0,0,o,i),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:960,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:540,l=B(e);return Array.from({length:34},(e,r)=>({x:34+(l+83*r)%Math.max(1,t-68),y:28+(l*(r+3)+47*r)%Math.max(1,a-56),radius:r%9==0?1.8:1,alpha:.18+13*r%45/100}))}(t,o,i)))e.globalAlpha=a.alpha,e.fillStyle=l,e.beginPath(),e.arc(a.x,a.y,a.radius,0,2*Math.PI),e.fill();if(m){let t=e.createRadialGradient(o/2,i/2,10+34*p,o/2,i/2,o*(.22+.34*p)),a=Math.round((.1+.2*p)*255).toString(16).padStart(2,"0"),r=Math.round((.04+.1*p)*255).toString(16).padStart(2,"0");t.addColorStop(0,"".concat(l).concat(a)),t.addColorStop(.48,"".concat(l).concat(r)),t.addColorStop(1,"".concat(l,"00")),e.fillStyle=t,e.fillRect(0,0,o,i)}c&&function(e,t){let{frameIndex:a,seed:l,textColor:r}=t,{width:n,height:s}=e.canvas;e.save();for(let t=0;t<28;t+=1){var o;let i=(o="noise:".concat(t),B("".concat(l,":").concat(a,":").concat(o))),d=i%n,c=(i>>>8)%s,m=16+(i>>>16)%96,u=.05+(i>>>24)%16/100;e.fillStyle="".concat(r).concat(Math.round(255*u).toString(16).padStart(2,"0")),e.fillRect(d,c,m,2)}
1e.restore()}(e,{frameIndex:n,seed:v,textColor:l}),e.globalAlpha=x,e.textAlign="center",e.textBaseline="middle",e.font="700 62px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";let w=function(e,t,a){let l=[];for(let r of String(null!=t?t:"").replace(/\r\n?/g,"\n").split("\n")){if(l.length>=4)break;if(!r){l.push("");continue}let t=r.split(/(\s+)/u),n="";for(let r of t){let t="".concat(n).concat(r);if(n&&e.measureText(t).width>a){if(l.push(n.trimEnd()),n=r.trimStart(),l.length>=4)break}else n=t}n&&l.length<4&&l.push(n.trimEnd())}return l.slice(0,4)}(e,y,o-140),j=i/2-(w.length-1)*82/2;c&&(e.shadowColor="transparent",e.shadowBlur=0,e.globalAlpha=.46*x,e.fillStyle="#ff1744",w.forEach((t,a)=>e.fillText(t,o/2+f-7,j+82*a+g)),e.fillStyle="#00e5ff",w.forEach((t,a)=>e.fillText(t,o/2+f+7,j+82*a-g)),e.globalAlpha=x),e.fillStyle=l,e.shadowColor=l,e.shadowBlur=b,m&&(e.globalAlpha=.18+.42*p,w.forEach((t,a)=>e.fillText(t,o/2,j+82*a)),e.shadowBlur=b*(.42+.36*p),e.globalAlpha=.72+.28*p),w.forEach((t,a)=>e.fillText(t,o/2+f,j+82*a+g)),e.shadowBlur=0,e.globalAlpha=1,c&&function(e,t){let{frameIndex:a,textColor:l}=t,{width:r,height:n}=e.canvas;e.save(),e.globalAlpha=.42;for(let t=a%8;t<n;t+=8)e.fillStyle=t%16==0?"rgba(0,0,0,0.24)":"rgba(255,255,255,0.045)",e.fillRect(0,t,r,2);e.fillStyle="".concat(l,"26"),e.fillRect(0,31*a%(n+80)-40,r,20),e.restore()}(e,{frameIndex:n,textColor:l})}var K=a(70517);let W="#6ee7b7",$="#07111f",H=["WE COME IN PEACE","GALAXY CODE","SECRET TRANSMISSION","ORBITAL SIGNAL","OPEN THE AIRLOCK","ALIEN BEACON ACTIVE","MISSION TO NEBULA"],Y="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),X=[{href:"/",label:"All Text Tools"},{href:"/aurebesh-text-generator/",label:"Aurebesh Text Generator"},{href:"/deltarune-text-generator/",label:"Deltarune Text Generator"},{href:"/curve-text-generator-free/",label:"Curve Text Generator Free"},{href:"/small-text-generator/",label:"Small Text Generator"}];function Z(e){let{className:t,children:a,...r}=e;return(0,l.jsx)(f.$,{...r,className:(0,y.cn)("h-11 rounded-[1.15rem] border-2 px-4 text-sm font-black tracking-tight shadow-[0_8px_24px_-18px_rgba(15,23,42,0.22)] sm:h-14 sm:px-5 sm:text-base",t),children:a})}function J(e){let{className:t,headingId:a,linkGridClassName:r}=e;return(0,l.jsx)("nav",{className:(0,y.cn)("rounded-[1.5rem] border-2 border-sky-100 bg-sky-50/75 p-4",t),"aria-labelledby":a,children:(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("div",{id:a,className:"text-sm font-black uppercase tracking-[0.14em] text-slate-500",children:"Related Tools"}),(0,l.jsx)("div",{className:r,children:X.map(e=>{let t=(0,v.rz)(e.href);return(0,l.jsxs)("a",{href:e.href,className:"group flex min-h-12 min-w-0 items-center justify-between gap-3 rounded-[1rem] border-2 border-slate-100 bg-white/95 px-3 py-2 text-sm font-black text-slate-800 shadow-[0_8px_28px_-26px_rgba(15,23,42,0.24)] transition-all duration-200 hover:-translate-y-0.5 hover:border-emerald-200 hover:bg-emerald-50 hover:text-emerald-800 hover:shadow-[0_18px_38px_-28px_rgba(15,23,42,0.32)]",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-2.5",children:[(0,l.jsx)("span",{className:"flex size-8 shrink-0 items-center justify-center rounded-[0.85rem] border-2 border-sky-100 bg-sky-50 text-sky-700 transition group-hover:border-emerald-100 group-hover:bg-white group-hover:text-emerald-700",children:(0,l.jsx)(t,{className:"size-4","aria-hidden":"true"})}),(0,l.jsx)("span",{className:"min-w-0 truncate",children:e.label})]}),(0,l.jsx)(n.A,{className:"size-4 shrink-0 transition group-hover:translate-x-0.5","aria-hidden":"true"})]},e.href)})})]})})}function Q(e){let{row:t,copiedKey:a,onCopy:r,onPreview:n}=e,i=a===t.key;return(0,l.jsxs)("article",{className:"group min-w-0 overflow-hidden rounded-[1.45rem] border-2 border-slate-100 bg-white p-3 shadow-[0_16px_42px_-34px_rgba(15,23,42,0.24)] transition hover:border-emerald-300 hover:shadow-[0_18px_46px_-34px_rgba(16,185,129,0.26)] focus-within:border-emerald-400 sm:rounded-[1.65rem] sm:p-4",onMouseEnter:()=>n(t.key),onFocusCapture:()=>n(t.key),children:[(0,l.jsxs)("div",{className:"flex min-w-0 items-center justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"truncate text-sm font-black text-slate-950 sm:text-base",children:t.label}),(0,l.jsx)("p",{className:"mt-0.5 text-[0.7rem] font-bold text-slate-500 sm:text-xs",children:"Copy-paste Unicode text"})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>r(t.key,t.output),disabled:!t.output,"aria-label":"Copy ".concat(t.label),className:(0,y.cn)("inline-flex h-10 shrink-0 items-center justify-center gap-2 rounded-full border-2 px-3.5 text-sm font-black transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",i?"border-emerald-700 bg-emerald-700 text-white":"border-emerald-200 bg-emerald-50 text-emerald-800 hover:border-emerald-700 hover:bg-emerald-700 hover:text-white"),children:[i?(0,l.jsx)(s.A,{className:"size-4"}):(0,l.jsx)(o.A,{className:"size-4"}),i?"Copied":"Copy"]})]}),t.output?(0,l.jsx)("div",{className:"scrollbar-hide mt-3 min-h-[4.5rem] max-h-[12rem] overflow-y-auto whitespace-pre-wrap break-words rounded-[1.1rem] border-2 border-slate-100 bg-slate-50/70 px-3 py-3 font-mono text-[1.05rem] font-black leading-relaxed text-slate-950 sm:min-h-[5rem] sm:px-4 sm:py-4 sm:text-[1.12rem]",children:t.output}):(0,l.jsx)("p",{className:"mt-3 min-h-[5rem] rounded-[1.1rem] border-2 border-slate-100 bg-slate-50/70 px-4 py-4 text-sm font-bold leading-relaxed text-slate-400",children:"Enter text to generate this alien style."})]})}function ee(e,t){let a=URL.createObjectURL(e),l=document.createElement("a");l.href=a,l.download=t,document.body.append(l),l.click(),l.remove(),window.setTimeout(()=>URL.revokeObjectURL(a),1e3)}function et(e){let{text:t,rowLabel:n,onStatus:s}=e,o=(0,r.useRef)(null),[i,u]=(0,r.useState)("type-reveal"),[x,h]=(0,r.useState)(!1),[p,b]=(0,r.useState)(0);async function f(){if(!t)return;let e=document.createElement("canvas");e.width=960,e.height=540;let a=e.getContext("2d",{willReadFrequently:!0});if(!a)return;V(a,{text:t,animation:i,textColor:W,backgroundColor:$,frameIndex:17});let l=await new Promise(t=>e.toBlob(t,"image/png"));if(!l)return void s("PNG export failed.");ee(l,"alien-text-generator.png"),s("PNG downloaded."),(0,K.nj)({action:"download",path:"/alien-text-generator/",text:t})}async function g(){if(t&&!x){h(!0),b(1),s("Encoding animated GIF...");try{let e=(await a.e(45).then(a.t.bind(a,40045,23))).default,l=document.createElement("canvas");l.width=960,l.height=540;let r=l.getContext("2d",{willReadFrequently:!0});if(!r)throw Error("Canvas context unavailable.");let n=new e({workers:2,quality:8,width:960,height:540,workerScript:"/gif.worker.js"});for(let e=0;e<18;e+=1)V(r,{text:t,animation:i,textColor:W,backgroundColor:$,frameIndex:e}),n.addFrame(r,{delay:120,copy:!0}),b(Math.round(e/18*50));n.on("progress",e=>b(50+Math.round(50*e))),n.on("finished",e=>{ee(e,"alien-text-generator.gif"),h(!1),b(100),s("GIF downloaded."),(0,K.nj)({action:"download",path:"/alien-text-generator/",text:t}),window.setTimeout(()=>b(0),2400)}),n.on("error",e=>
1{h(!1),b(0),s("GIF export failed: ".concat(String(e)))}),n.render()}catch(e){h(!1),b(0),s("GIF export failed: ".concat(String(e)))}}}return(0,r.useEffect)(()=>{let e=o.current,a=null==e?void 0:e.getContext("2d",{willReadFrequently:!0});if(!a)return;let l=0,r=0,n=0,s=e=>{(!n||e-n>=120)&&(V(a,{text:t,animation:i,textColor:W,backgroundColor:$,frameIndex:l}),l=(l+1)%18,n=e),r=window.requestAnimationFrame(s)};return V(a,{text:t,animation:i,textColor:W,backgroundColor:$,frameIndex:17}),r=window.requestAnimationFrame(s),()=>{r&&window.cancelAnimationFrame(r)}},[i,t]),(0,l.jsxs)("section",{className:"h-full overflow-hidden rounded-[1.75rem] border-2 border-slate-100 bg-white p-4 shadow-[0_18px_42px_-34px_rgba(15,23,42,0.28)] sm:p-5",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-emerald-700",children:"Visual Preview"}),(0,l.jsx)("h3",{className:"mt-1 text-xl font-black tracking-tighter text-slate-950 sm:text-2xl",children:"PNG or animated GIF"})]}),(0,l.jsx)(d,{className:"size-5 text-emerald-600","aria-hidden":"true"})]}),(0,l.jsxs)("div",{className:"mt-4 grid gap-4",children:[(0,l.jsx)("canvas",{ref:o,width:960,height:540,className:"h-auto w-full rounded-[1.3rem] border-2 border-slate-800 bg-slate-950","aria-label":"".concat(n," animated alien text preview")}),(0,l.jsxs)("div",{className:"space-y-4 rounded-[1.35rem] border-2 border-slate-100 bg-slate-50/80 p-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-slate-500",children:"Animation"}),(0,l.jsx)("div",{className:"mt-2 grid grid-cols-3 gap-2",children:U.map(e=>(0,l.jsx)("button",{type:"button",onClick:()=>u(e.key),className:(0,y.cn)("min-w-0 rounded-full border-2 px-2 py-2 text-center text-[0.72rem] font-black leading-tight sm:px-3 sm:text-sm",i===e.key?"border-emerald-700 bg-emerald-700 text-white":"border-slate-200 bg-white text-slate-700"),children:e.label},e.key))})]}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,l.jsxs)(Z,{type:"button",onClick:f,disabled:!t,className:"border-emerald-800 bg-emerald-700 text-white hover:bg-emerald-800",children:[(0,l.jsx)(c.A,{className:"size-5"})," PNG"]}),(0,l.jsxs)(Z,{type:"button",variant:"outline",onClick:g,disabled:!t||x,className:"border-slate-950 bg-white text-slate-950",children:[(0,l.jsx)(m.A,{className:"size-5"})," GIF"]})]}),p>0?(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"h-2 overflow-hidden rounded-full bg-slate-100",children:(0,l.jsx)("div",{className:"h-full bg-emerald-600 transition-[width]",style:{width:"".concat(p,"%")}})}),(0,l.jsx)("p",{className:"mt-2 text-xs font-bold text-slate-500",children:p>=100?"GIF ready.":"Encoding GIF... ".concat(p,"%")})]}):null]})]})]})}function ea(e){let t=Math.floor(e/60);return"".concat(String(t).padStart(2,"0"),":").concat(String(e%60).padStart(2,"0"))}function el(e){var t,a;let{copiedKey:n,onCopyAchievement:i,onStatus:d}=e,[c,m]=(0,r.useState)(0),[x,h]=(0,r.useState)(()=>Date.now()),[p,b]=(0,r.useState)(0),[f,g]=(0,r.useState)(null),[v,w]=(0,r.useState)(null),[j,k]=(0,r.useState)(()=>new Set),[N,A]=(0,r.useState)(null),[S,C]=(0,r.useState)(""),_=null!=(t=H[c])?t:H[0],M=(0,r.useMemo)(()=>(function(e){var t;let a=String(null!=e?e:"").toUpperCase(),l=O({text:a,readable:!0,seed:0}).find(e=>"alphabet"===e.key),r=Array.from(null!=(t=null==l?void 0:l.output)?t:a);return Array.from(a,(e,t)=>{var a;return{id:"".concat(t,"-").concat(e),target:e,symbol:null!=(a=r[t])?a:e,isSolvable:/^[A-Z]$/u.test(e)}})})(_),[_]),E=M.filter((e,t)=>e.isSolvable&&j.has(t)).length,T=M.filter(e=>e.isSolvable).length,z=T>0&&M.every((e,t)=>!e.isSolvable||j.has(t)),R=null===v||j.has(v)?null:M[v],I=null!=f?f:p;return(0,r.useEffect)(()=>{m(function(){let e=new Date;return Number("".concat(e.getUTCFullYear()).concat(String(e.getUTCMonth()+1).padStart(2,"0")).concat(String(e.getUTCDate()).padStart(2,"0")))%H.length}()),h(Date.now()),b(0),g(null),w(null),k(new Set)},[]),(0,r.useEffect)(()=>
1{if(null!==f)return;let e=window.setInterval(()=>{b(Math.max(0,Math.floor((Date.now()-x)/1e3)))},1e3);return()=>window.clearInterval(e)},[f,x]),(0,r.useEffect)(()=>{if(!z||null!==f)return;let e=Math.max(0,Math.floor((Date.now()-x)/1e3));b(e),g(e),w(null),d("Cipher challenge decoded.")},[z,f,d,x]),(0,l.jsxs)("section",{className:"overflow-hidden rounded-[2rem] border-2 border-slate-900 bg-slate-950 p-4 text-white shadow-[0_28px_80px_-44px_rgba(15,23,42,0.7)] sm:p-5 lg:p-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.16em] text-cyan-300",children:"Cipher Challenge"}),(0,l.jsx)("h2",{className:"mt-2 text-2xl font-black tracking-tighter text-white sm:text-3xl",children:"Decode the alien transmission"})]}),(0,l.jsxs)("div",{className:"grid grid-cols-3 gap-2 text-center sm:min-w-[24rem]",children:[(0,l.jsxs)("div",{className:"rounded-[1.15rem] border border-emerald-400/30 bg-emerald-400/10 px-3 py-2",children:[(0,l.jsx)("p",{className:"text-[0.68rem] font-black uppercase tracking-[0.12em] text-emerald-200",children:"Timer"}),(0,l.jsx)("p",{className:"mt-1 font-mono text-lg font-black text-emerald-100",children:ea(I)})]}),(0,l.jsxs)("div",{className:"rounded-[1.15rem] border border-cyan-400/30 bg-cyan-400/10 px-3 py-2",children:[(0,l.jsx)("p",{className:"text-[0.68rem] font-black uppercase tracking-[0.12em] text-cyan-200",children:"Solved"}),(0,l.jsxs)("p",{className:"mt-1 font-mono text-lg font-black text-cyan-100",children:[E,"/",T]})]}),(0,l.jsxs)("button",{type:"button",onClick:()=>{m(function(e){if(H.length<2)return 0;let t=Math.floor(Math.random()*H.length);return t===e&&(t=(t+1)%H.length),t}(c)),h(Date.now()),b(0),g(null),w(null),k(new Set),A(null),C(""),d("New transmission loaded.")},className:"rounded-[1.15rem] border border-white/15 bg-white/10 px-3 py-2 text-sm font-black text-white transition hover:border-emerald-300/60 hover:bg-emerald-400/15",children:[(0,l.jsx)(u.A,{className:"mx-auto size-5","aria-hidden":"true"}),(0,l.jsx)("span",{className:"mt-1 block text-[0.68rem] uppercase tracking-[0.12em]",children:"Refresh"})]})]})]}),(0,l.jsx)("div",{className:"mt-5 rounded-[1.5rem] border border-white/10 bg-slate-900/70 p-3 sm:p-4",children:(0,l.jsx)("div",{className:"flex flex-wrap justify-center gap-2 sm:gap-2.5",children:M.map((e,t)=>e.isSolvable?(0,l.jsxs)("button",{type:"button",onClick:()=>(function(e){let t=M[e];!(null==t?void 0:t.isSolvable)||j.has(e)||z||(w(e),C(""))})(t),disabled:j.has(t)||z,"aria-label":"Alien symbol ".concat(e.symbol,", slot ").concat(t+1),className:(0,y.cn)("grid h-[5.35rem] w-[3.05rem] shrink-0 grid-rows-[1fr_1fr] overflow-hidden rounded-[1rem] border font-mono transition sm:h-[5.65rem] sm:w-[3.35rem]",v===t?"border-cyan-300 bg-cyan-300/15 shadow-[0_0_24px_-8px_rgba(103,232,249,0.95)]":"border-white/10 bg-slate-950/70 hover:border-emerald-300/50 hover:bg-emerald-300/10",j.has(t)?"border-emerald-300/60 bg-emerald-300/15 text-emerald-100":"text-slate-200",N===t?"scale-105 shadow-[0_0_30px_-8px_rgba(16,185,129,1)]":""),children:[(0,l.jsx)("span",{className:"flex items-center justify-center border-b border-white/10 text-xl font-black",children:j.has(t)?e.target:"_"}),(0,l.jsx)("span",{className:"flex items-center justify-center text-2xl font-black text-emerald-200",children:e.symbol})]},e.id):(0,l.jsx)("span",{className:"flex h-[5.35rem] w-4 shrink-0 items-center justify-center font-mono text-2xl font-black text-slate-500 sm:h-[5.65rem]","aria-hidden":"true",children:e.target.trim()?e.target:""},e.id))})}),(0,l.jsxs)("div",{className:"mt-5 grid gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(16rem,0.42fr)]",children:[(0,l.jsx)("div",{className:"rounded-[1.5rem] border border-white/10 bg-slate-900/60 p-3 sm:p-4",children:(0,l.jsx)("div",{className:"grid grid-cols-7 gap-2 sm:grid-cols-[repeat(13,minmax(0,1fr))]",children:Y.map(e=>(0,l.jsx)("button",{type:"button",onClick:()=>(function(e){if(z)return;let t=M.findIndex((e,t)=>e.isSolvable&&!j.has(t)),a=R&&null!==v?v:t,l=M[a];if(null==l?void 0:l.isSolvable){if(e===l.target){let e=new Set(j);e.add(a);let t=M.findIndex((t,a)=>t.isSolvable&&!e.has(a));k(e),w(-1===t?null:t),A(a),C(""),d("Glyph solved."),window.setTimeout(()=>A(null),520);return}w(a),C(e),d("Try another letter."),window.setTimeout(()=>C(""),420)}})(e),disabled:z,className:(0,y.cn)("h-11 rounded-[0.9rem] border font-mono text-sm font-black transition sm:h-12 sm:text-base",S===e?"border-rose-300 bg-rose-400/20 text-rose-100":"border-white/10 bg-white/10 text-slate-100 hover:border-cyan-300/60 hover:bg-cyan-300/15 hover:text-white",z?"opacity-60":""),children:e},e))})}),(0,l.jsx)("div",{className:"rounded-[1.5rem] border border-white/10 bg-slate-900/60 p-4",children:z?(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-emerald-300",children:"Transmission decoded"}),(0,l.jsx)("p",{className:"mt-3 font-mono text-lg font-black leading-snug text-white",children:_}),(0,l.jsxs)("p",{className:"mt-2 text-sm font-bold text-slate-300",children:["Total time: ",ea(I)]}),(0,l.jsxs)("button",{type:"button",onClick:()=>i('I decoded "'.concat(_,'" in ').concat(ea(I)," on TextKits Alien Text Generator.")),className:"mt-4 inline-flex w-full items-center justify-center gap-2 rounded-[1.1rem] border-2 border-emerald-500 bg-emerald-400 px-4 py-3 text-sm font-black text-slate-950 transition hover:bg-emerald-300",children:["challenge-achievement"===n?(0,l.jsx)(s.A,{className:"size-5"}):(0,l.jsx)(o.A,{className:"size-5"}),"Copy Achievement"]})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-xs font-black uppercase tracking-[0.14em] text-cyan-300",children:"Active slot"}),(0,l.jsx)("p",{className:"mt-3 font-mono text-4xl font-black text-emerald-200",children:null!=(a=null==R?void 0:R.symbol)?a:"--"}),(0,l.jsx)("p",{className:"mt-2 text-sm font-bold leading-relaxed text-slate-300",children:"Select an unsolved glyph, then tap the matching English letter."})]})})]})]})}function er(){var e,t,a,i;let d=(0,r.useRef)(null),[c,f]=(0,r.useState)("encode"),[v,w]=(0,r.useState)("WE COME IN PEACE"),[j,k]=(0,r.useState)(""),[N,A]=(0,r.useState)("alphabet"),[M,R]=(0,r.useState)(!1),[F,G]=(0,r.useState)(""),[L,D]=(0,r.useState)(""),[U,B]=(0,r.useState)(""),V=O({text:(0,r.useDeferredValue)(v),readable:!0,seed:0}),W=function(e){let t=I(e);if(!t.trim())return{output:"",style:"unknown",styleLabel:"Unknown style",confidence:0,ambiguities:[]};if(S.some(e=>t.includes(e)))return{output:S.reduce((e,t)=>
1e.replaceAll(t,""),t),style:"signal",styleLabel:"Signal Noise",confidence:1,ambiguities:[]};let a=Array.from(t.trim())[0],l=_.has(a),r=Array.from(t).some(e=>C.has(e)),n=q(t,T);if(n>q(t,E))return{...P(t,T),style:"readable",styleLabel:"Readable Alien",confidence:n/Math.max(1,Array.from(t).filter(e=>!/\s/u.test(e)).length)};let s=t,o="alphabet",i="Alien Alphabet";l?(s=function(e){let t=Array.from(e.trim());return _.has(t[0])&&t.shift(),_.has(t.at(-1))&&t.pop(),t.join("").trim().split(/\s{2,}/u).map(e=>e.replaceAll(" ","")).join(" ")}(t),o="rune",i="Rune Orbit"):r&&(s=Array.from(t).filter(e=>!C.has(e)).join(""),o="cipher",i="Galactic Cipher");let d=P(s,E),c=q(s,E),m=Array.from(s).filter(e=>!/\s|[.,!?;:'"()\[\]{}\-]/u.test(e)).length;return{...d,style:o,styleLabel:i,confidence:c/Math.max(1,m)}}(j),$=null!=(e=V.find(e=>e.key===N))?e:V[0];async function H(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Alien text copied. Decode can restore copied TextKits styles later.";if(t)try{await navigator.clipboard.writeText(t),"encode"===c&&G(t),D(e),B(a),d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{D(""),B("")},1800),(0,K.nj)({action:"copy",path:"/alien-text-generator/",text:t})}catch(e){B("Copy failed in this browser. You can still select the output manually.")}}function Y(){"decode"===c?k(""):w(""),G(""),D(""),B("Input cleared.")}return(0,r.useEffect)(()=>{let e=(0,K.wF)();e&&w(I(e))},[]),(0,r.useEffect)(()=>()=>{d.current&&window.clearTimeout(d.current)},[]),(0,l.jsx)("section",{className:"mx-auto mt-4 w-full max-w-6xl sm:mt-6",id:"tool",children:(0,l.jsxs)("div",{className:"rounded-[2rem] border-4 border-slate-950 bg-white/90 p-3 shadow-[0_28px_90px_-48px_rgba(15,23,42,0.3)] backdrop-blur sm:rounded-[2.5rem] sm:p-5 lg:rounded-[3rem] lg:border-[6px] lg:p-6",children:[(0,l.jsx)("div",{className:"mb-3 sm:mb-4",children:(0,l.jsx)("div",{className:"grid max-w-full grid-cols-3 rounded-[1.25rem] border-2 border-slate-200 bg-slate-100 p-1 sm:rounded-[1.35rem] sm:p-1.5",role:"tablist","aria-label":"Alien text mode",children:[["encode","Encode"],["decode","Decode"],["challenge","Cipher Challenge"]].map(e=>{let[t,a]=e;return(0,l.jsx)("button",{type:"button",role:"tab","aria-selected":c===t,onClick:()=>f(t),className:(0,y.cn)("min-w-0 rounded-[0.95rem] px-2 py-2 text-center text-[0.78rem] font-black leading-tight transition sm:rounded-[1rem] sm:px-5 sm:py-2.5 sm:text-base",c===t?"bg-slate-950 text-white shadow-sm":"text-slate-600 hover:text-slate-950"),children:a},t)})})}),"challenge"===c?(0,l.jsx)(el,{copiedKey:L,onCopyAchievement:e=>H("challenge-achievement",e,"Cipher achievement copied."),onStatus:B}):(0,l.jsxs)("div",{className:"grid min-w-0 grid-cols-1 gap-4 lg:grid-cols-[minmax(17rem,0.62fr)_minmax(0,1.38fr)] lg:gap-5",children:[(0,l.jsxs)("section",{className:"min-w-0 overflow-hidden rounded-[2rem] border-2 border-slate-100 bg-white p-4 shadow-[0_18px_50px_-40px_rgba(15,23,42,0.24)] sm:p-6",children:[(0,l.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-3 sm:gap-4",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("label",{htmlFor:"alien-text-input",className:"block text-2xl font-black tracking-tighter text-slate-950 sm:text-3xl",children:"encode"===c?"Type your text":"Paste Alien Text"}),(0,l.jsx)("p",{className:"mt-2 text-sm font-bold leading-relaxed text-slate-500",children:"encode"===c?"Results update instantly. Copy any style.":"Paste a style created here to turn it back into readable text."})]}),(0,l.jsx)("span",{className:"hidden size-12 shrink-0 items-center justify-center rounded-[1.2rem] border-2 border-emerald-100 bg-emerald-50 text-emerald-700 sm:inline-flex",children:(0,l.jsx)(x,{className:"size-6"})})]}),(0,l.jsxs)("div",{className:"relative mt-4",children:[(0,l.jsx)(g.T,{id:"alien-text-input",name:"alienTextInput",value:"encode"===c?v:j,maxLength:180,onChange:"encode"===c?function(e){w(I(e.target.value))}:e=>k(I(e.target.value)),placeholder:"encode"===c?"Type your alien message":"Paste TextKits alien symbols","data-mobile-full-height":"true",className:"min-h-[116px] resize-none rounded-[1.5rem] border-2 border-emerald-500 px-5 py-4 pb-12 font-mono text-[1.1rem] font-bold leading-[1.45] text-slate-950 shadow-none placeholder:text-slate-300 focus-visible:border-emerald-600 focus-visible:ring-0 sm:min-h-[188px] sm:pb-14 sm:text-[1.6rem] sm:leading-[1.3]"}),(0,l.jsxs)("div",{className:"pointer-events-none absolute bottom-4 right-4 text-sm font-bold text-slate-500",children:[("encode"===c?v:j).length," /"," ",180]})]}),(0,l.jsx)("div",{className:(0,y.cn)("mt-3 grid gap-3 sm:mt-5","encode"===c?"grid-cols-1":"grid-cols-1 sm:grid-cols-2"),children:"encode"===c?(0,l.jsxs)("button",{type:"button",onClick:Y,className:"inline-flex min-h-10 items-center justify-center gap-2 rounded-full border-2 border-slate-200 bg-white px-4 text-sm font-black text-slate-600 transition hover:border-slate-400 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-500 focus-visible:ring-offset-2 sm:min-h-11",children:[(0,l.jsx)(h.A,{className:"size-4"}),"Clear input"]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(Z,{type:"button",onClick:function(){W.output&&(w(I(W.output)),f("encode"),B("Decoded text moved to Encode."))},disabled:!W.output,className:"border-emerald-800 bg-emerald-700 text-white hover:bg-emerald-800",children:[(0,l.jsx)(u.A,{className:"size-5"}),"Re-encode"]}),(0,l.jsxs)(Z,{type:"button",onClick:()=>H("decoded",W.output),disabled:!W.output,className:"border-emerald-800 bg-emerald-700 text-white shadow-[0_8px_0_0_#065f46] hover:bg-emerald-800 hover:shadow-[0_8px_0_0_#064e3b] active:translate-y-2 active:shadow-none",children:["decoded"===L?(0,l.jsx)(s.A,{className:"size-5"}):(0,l.jsx)(o.A,{className:"size-5"}),"Copy"]}),(0,l.jsxs)(Z,{type:"button",variant:"outline",onClick:Y,className:"border-slate-950 bg-white text-slate-950 hover:bg-slate-50 sm:col-span-2",children:[(0,l.jsx)(h.A,{className:"size-5"}),"Clear input"]})]})}),(0,l.jsx)("div",{"data-tool-settings-saver-mount":!0,className:"mt-3 flex flex-wrap items-center gap-2"})]}),(0,l.jsxs)("section",{"aria-live":"polite","aria-label":"encode"===c?"Alien text results":"Decoded message",className:"min-w-0 overflow-hidden rounded-[2rem] border-2 border-slate-100 bg-slate-50/70 p-4 shadow-[0_18px_50px_-40px_rgba(15,23,42,0.24)] sm:p-6",children:[(0,l.jsxs)("div",{className:"flex min-w-0 items-start justify-between gap-3 sm:gap-4",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("p",{className:"text-2xl font-black tracking-tighter text-slate-950 sm:text-3xl",children:"encode"===c?"Choose and copy a style":"Decoded Message"}),"encode"===c?(0,l.jsxs)("p",{className:"mt-2 text-sm font-bold leading-relaxed text-slate-500",children:[(0,l.jsx)("span",{className:"sm:hidden",children:"Five styles are ready to copy."}),(0,l.jsx)("span",{className:"hidden sm:inline",children:"All five results are ready to copy. Focus or hover a style to use it for image export."})]}):null]}),(0,l.jsx)(p.A,{className:"mt-1 hidden size-7 shrink-0 text-emerald-600 sm:block"})]}),"encode"===c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mt-4 grid gap-3 sm:mt-5 sm:grid-cols-2",children:V.map(e=>(0,l.jsx)(Q,{row:e,copiedKey:L,onCopy:H,onPreview:A},e.key))}),F?(0,l.jsxs)("div",{className:"mt-4 rounded-[1.35rem] border-2 border-emerald-100 bg-emerald-50 px-4 py-3",children:[(0,l.jsx)("p",{className:"text-sm font-bold leading-relaxed text-emerald-950",children:"Copied. If you need to see what this alien text means later, use Decode on this page."}),(0,l.jsxs)("button",{type:"button",onClick:function(){k(I(F)),f("decode"),B("Copied alien text moved to Decode.")},className:"mt-3 inline-flex items-center gap-2 rounded-full border-2 border-emerald-700 bg-white px-3 py-2 text-sm font-black text-emerald-800 transition hover:bg-emerald-700 hover:text-white",children:["Open Decode",(0,l.jsx)(n.A,{className:"size-4","aria-hidden":"true"})]})]}):null,(0,l.jsxs)("div",{className:"mt-5 overflow-hidden rounded-[1.45rem] border-2 border-slate-200 bg-white",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>R(e=>!e),"aria-expanded":M,"aria-controls":"alien-visual-export-panel",className:"flex w-full items-center justify-between gap-4 px-4 py-4 text-left transition hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500 sm:px-5",children:[(0,l.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[(0,l.jsx)("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-[1rem] border-2 border-emerald-100 bg-emerald-50 text-emerald-700",children:(0,l.jsx)(m.A,{className:"size-5","aria-hidden":"true"})}),(0,l.jsxs)("span",{className:"min-w-0",children:[(0,l.jsx)("span",{className:"block font-black text-slate-950",children:"Create a PNG or animated GIF"}),(0,l.jsxs)("span",{className:"mt-0.5 block text-sm font-bold text-slate-500",children:["Optional image export for ",null!=(t=null==$?void 0:$.label)?t:"your selected style"]})]})]}),(0,l.jsx)(b.A,{className:(0,y.cn)("size-5 shrink-0 text-slate-500 transition-transform",M?"rotate-180":""),"aria-hidden":"true"})]}),M?(0,l.jsx)("div",{id:"alien-visual-export-panel",className:"border-t-2 border-slate-100 p-3 sm:p-4",children:(0,l.jsx)(et,{text:null!=(a=null==$?void 0:$.output)?a:"",rowLabel:null!=(i=null==$?void 0:$.label)?i:"Alien Alphabet",onStatus:B})}):null]}),(0,l.jsxs)("div",{className:"mt-5 rounded-[1.4rem] border-2 border-slate-100 bg-white px-4 py-4",children:[(0,l.jsx)("p",{className:"text-sm font-black uppercase tracking-[0.14em] text-slate-500",children:"Map preview"}),(0,l.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:z.map(e=>
1{let[t,a]=e;return(0,l.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-full border border-slate-200 bg-slate-50 px-3 py-1.5 font-mono text-sm font-black text-slate-800",children:[t,(0,l.jsx)("span",{className:"text-slate-400",children:"->"}),a]},t)})})]})]}):(0,l.jsxs)("div",{className:"mt-5 space-y-4",children:[(0,l.jsxs)("div",{className:"rounded-[1.5rem] border-2 border-emerald-100 bg-white p-5",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,l.jsx)("span",{className:"rounded-full border border-emerald-200 bg-emerald-50 px-3 py-1.5 text-xs font-black uppercase tracking-[0.12em] text-emerald-800",children:W.styleLabel}),(0,l.jsxs)("span",{className:"text-sm font-bold text-slate-500",children:[Math.round(100*W.confidence),"% known glyphs"]})]}),(0,l.jsx)("div",{className:"mt-4 min-h-28 whitespace-pre-wrap break-words rounded-[1.2rem] border-2 border-slate-100 bg-slate-50 px-4 py-4 font-mono text-xl font-black leading-relaxed text-slate-950 sm:text-2xl",children:W.output||"Decoded text appears here."})]}),W.ambiguities.length>0?(0,l.jsxs)("div",{className:"rounded-[1.4rem] border-2 border-amber-200 bg-amber-50 p-4 text-sm font-bold leading-relaxed text-amber-950",children:[(0,l.jsx)("p",{className:"font-black",children:"Ambiguous symbols"}),(0,l.jsx)("p",{className:"mt-1",children:Array.from(new Map(W.ambiguities.map(e=>[e.glyph,"".concat(e.glyph," may mean ").concat(e.candidates.map(e=>e.toUpperCase()).join(" or "))])).values()).join("; ")})]}):null]}),(0,l.jsx)(J,{className:"mt-5",headingId:"alien-related-preview-heading",linkGridClassName:"grid gap-2 sm:grid-cols-3"})]})]}),(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"sr-only",children:U})]})})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.