lecodes-cli 2.8.2 → 2.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +10 -10
- package/runtime/sdk-types.json +1 -1
- package/runtime/web/VERSION.json +3 -3
- package/runtime/web/player.js +8 -8
- package/runtime/web-lite/lite.js +1 -1
package/runtime/web-lite/lite.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var Zn=Object.defineProperty;var er=(e,t,n)=>t in e?Zn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qe=(e,t,n)=>er(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const tr=e=>{if(typeof e=="string")return e;if(e instanceof Error)return e.stack?`${String(e)}
|
|
2
|
-
${e.stack}`:String(e);try{return JSON.stringify(e)}catch{return String(e)}},nr=(e,t)=>{const n=s=>{fetch(`${e}/log`,{method:"POST",body:JSON.stringify(s),headers:{"content-type":"application/json"},keepalive:!0}).catch(()=>{})};let r=-1;const o=async()=>{try{const{v:s}=await(await fetch(`${e}/version`,{cache:"no-store"})).json();typeof s=="number"&&t(s)}catch{}setTimeout(o,2500)};setTimeout(o,2500);const i=()=>{let s;try{s=new WebSocket(e.replace(/^http/,"ws")+"/ws")}catch{return}s.onopen=()=>s.send(JSON.stringify({type:"hello",v:r})),s.onmessage=l=>{let d={};try{d=JSON.parse(String(l.data))}catch{return}d.type==="reload"&&typeof d.v=="number"&&t(d.v)},s.onclose=()=>{setTimeout(i,2e3)}};return i(),{bundleUrl:s=>`${e}/bundle.js?t=web&v=${s}`,versionOf(s,l){const d=Number(s.headers.get("x-lecodes-v"));return s.headers.has("x-lecodes-v")&&Number.isFinite(d)?d:l},ran(s){r=s},log:(s,l)=>n({type:"log",level:s,text:l.map(tr).join(" ")}),error:s=>n({type:"error",text:s})}},rr=(e,t)=>{try{const n=new URL(e,t);return n.origin===new URL(t).origin&&(n.protocol==="http:"||n.protocol==="https:")?n.href:null}catch{return null}},mn=(e,t)=>{const n=[];for(const r of t){const o=r.halves[e];for(const i of typeof o=="string"?[o]:Array.isArray(o)?o:[]){if(typeof i!="string"||!i)continue;const s=new URL(i,r.url).href;n.includes(s)||n.push(s)}}return n},or="modulepreload",sr=function(e,t){return new URL(e,t).href},Tt={},ce=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(E){return Promise.all(E.map(_=>Promise.resolve(_).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};const l=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),u=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=s(n.map(E=>{if(E=sr(E,r),E in Tt)return;Tt[E]=!0;const _=E.endsWith(".css"),A=_?'[rel="stylesheet"]':"";if(!!r)for(let y=l.length-1;y>=0;y--){const v=l[y];if(v.href===E&&(!_||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${E}"]${A}`))return;const p=document.createElement("link");if(p.rel=_?"stylesheet":or,_||(p.as="script"),p.crossOrigin="",p.href=E,u&&p.setAttribute("nonce",u),document.head.appendChild(p),_)return new Promise((y,v)=>{p.addEventListener("load",y),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${E}`)))})}))}function i(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Lt="2.8.2",Xe=e=>{const t=e==null?void 0:e.match(/^(\d+)\.\d+\.\d+/);return t?Number(t[1]):null},ir=(e,t)=>Xe(e)!==null&&Xe(e)===Xe(t),ar=(e,t="woff2")=>{const n=/^\/\/ fonts: (.+)$/m.exec(e);if(!n)return[];const r=[];for(const o of n[1].split(";")){const i=o.indexOf("=");if(i===-1)continue;const s=/^(.+)@(\d+)(i?)$/.exec(o.slice(0,i));s&&r.push({family:s[1],weight:parseInt(s[2],10),italic:s[3]==="i",url:o.slice(i+1).replace("{fmt}",t)})}return r},lr=async(e,t,n=2e3)=>{const r=t??(typeof document>"u"?void 0:document);if(!(r!=null&&r.fonts)||e.length===0)return;const o=[];for(const i of e)try{const s=new FontFace(i.family,`url("${i.url}")`,{weight:String(i.weight),style:i.italic?"italic":"normal"});r.fonts.add(s),o.push(s.load().catch(()=>{}))}catch{}await Promise.race([Promise.all(o),new Promise(i=>setTimeout(i,n))])},cr=e=>{var d,u,E,_;const t=e.slice(0,2e3),n=new Set,r=t.match(/\/\/ preload: (.+)/);if(r)for(const A of r[1].split(";"))n.add(A);const o=t.includes("// gl: disable")?"off":t.includes("// gl: defer")?"defer":"on",i=((d=t.match(/^\/\/ sdk: (\d+\.\d+\.\d+\S*)/m))==null?void 0:d[1])??null,s=((E=(u=t.match(/^\/\/ name: (.+)$/m))==null?void 0:u[1])==null?void 0:E.trim())??null,l=new Set((((_=t.match(/^\/\/ plugins: (.+)$/m))==null?void 0:_[1])??"").split(";").map(A=>A.trim()).filter(Boolean));return{sdk:i,name:s,preloads:n,gl:o,is2d:t.includes("// 2d: enable"),plugins:l,bootFonts:ar(t)}},ur=1,fr=2,dr=3,pr=4,hr=5,mr=6,xt=7,gr=8,Rt=9,br=10,yr=11,vr=12,Er=13,wr=14,Sr=15,_r=16,At=17,kr=18,Tr=19,Ue=20,xi=21,Ri=22,Ai=23,Ci=24,$i=25,Lr=26,xr=27,Rr=28,Ar=29,Ct=30,$t=31,Cr=32,$r=33,Ot=34,Ut=35,Mt=36,Ie=1,Or=2,Ur=4,he=8,Mr=16,Je=32,Pr=64,Qe=128,Nr=256,Fr=512,Ir=1024,Dr=2048,Br=4096,Pt=8192,Oi=16384,Vr=32768,Wr=1<<18,zr=255,Nt=256,Ft=512,Gr=1024,te=0,jr=1,Hr=2,Kr=3,We=4,ve=255,gn=e=>{const t=e.clientWidth;if(!t)return 1;const n=e.getBoundingClientRect().width;return n>0?n/t:1},It={text:{type:"text"},password:{type:"password"},search:{type:"search"},tel:{type:"tel"},email:{type:"email"},url:{type:"url"},number:{type:"text",mode:"numeric"},decimal:{type:"text",mode:"decimal"},date:{type:"date"},time:{type:"time"}},Dt=(e,t)=>e==null?t:e===!0||e==="true"||e==="1"||typeof e=="number"&&e>.5,oe=(e,t,n)=>{n===null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)},Yr=(e,t)=>{if(e.type!=="input"&&e.type!=="textarea")return;const n=e.el,r=t("placeholder");if(oe(n,"placeholder",r==null?null:String(r)),e.type==="input"){const l=It[String(t("type")??"text")]??It.text,d=n;d.type!==l.type&&(d.type=l.type),oe(n,"inputmode",l.mode??null);const u=t("enterKey");oe(n,"enterkeyhint",u==null?null:String(u))}const o=t("autocapitalize");oe(n,"autocapitalize",o==null?null:String(o));const i=t("autocorrect");i==null?(oe(n,"autocorrect",null),oe(n,"spellcheck",null)):(oe(n,"autocorrect",Dt(i,!0)?"on":"off"),oe(n,"spellcheck",Dt(i,!0)?"true":"false"));const s=Number(t("maxLength")??0);oe(n,"maxlength",s>0?String(Math.round(s)):null)},ze={width:"layout",height:"layout",minWidth:"layout",minHeight:"layout",maxWidth:"layout",maxHeight:"layout",flexBasis:"layout",flexGrow:"layout",flexShrink:"layout",aspectRatio:"layout",gap:"layout",rowGap:"layout",columnGap:"layout",padding:"layout",paddingTop:"layout",paddingRight:"layout",paddingBottom:"layout",paddingLeft:"layout",paddingHorizontal:"layout",paddingVertical:"layout",paddingStart:"layout",paddingEnd:"layout",margin:"layout",marginTop:"layout",marginRight:"layout",marginBottom:"layout",marginLeft:"layout",marginHorizontal:"layout",marginVertical:"layout",marginStart:"layout",marginEnd:"layout",left:"layout",right:"layout",top:"layout",bottom:"layout",start:"layout",end:"layout",inset:"layout",flexDirection:"enum",justifyContent:"enum",alignItems:"enum",alignSelf:"enum",position:"enum",flexWrap:"enum",boxSizing:"enum",display:"enum",overflow:"enum",scrollDirection:"enum",borderWidth:"len",borderTopWidth:"len",borderRightWidth:"len",borderBottomWidth:"len",borderLeftWidth:"len",borderHorizontalWidth:"len",borderVerticalWidth:"len",borderStartWidth:"len",borderEndWidth:"len",color:"color",backgroundColor:"color",borderColor:"color",borderTopColor:"color",borderRightColor:"color",borderBottomColor:"color",borderLeftColor:"color",placeholderColor:"color",refreshControlColor:"color",tintColor:"color",rippleColor:"color",overlayColor:"color",backgroundImage:"str",backgroundSize:"enum",backgroundGradient:"str",borderRadius:"len",borderTopLeftRadius:"len",borderTopRightRadius:"len",borderBottomRightRadius:"len",borderBottomLeftRadius:"len",opacity:"num",transform:"str",transformOrigin:"str",pointerEvents:"enum",fontSize:"len",fontWeight:"num",fontStyle:"enum",fontFamily:"str",lineHeight:"len",letterSpacing:"len",textAlign:"enum",textDecoration:"enum",lineClamp:"num",textOverflow:"enum",textWrap:"enum",objectFit:"enum",placeholder:"str",type:"enum",enterKey:"enum",autocapitalize:"enum",autocorrect:"num",maxLength:"num",keyboardShrink:"num",keyboardDismiss:"num",showScrollbar:"num",overscrollMode:"enum",keyboardDismissMode:"enum",snap:"enum",sheetDetents:"str",sheetDetent:"num",sheetDismissible:"num",dim:"num"},qr={p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingHorizontal",py:"paddingVertical",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginHorizontal",my:"marginVertical",bgColor:"backgroundColor",bgImage:"backgroundImage",bgSize:"backgroundSize",bgGradient:"backgroundGradient"},Xr=["placeholderColor","refreshControlColor","tintColor","rippleColor","overlayColor","backgroundGradient"],Jr={display:"flex",overflow:"visible",scrollDirection:"vertical",borderWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderHorizontalWidth:0,borderVerticalWidth:0,borderStartWidth:0,borderEndWidth:0,backgroundColor:0,borderColor:0,borderTopColor:0,borderRightColor:0,borderBottomColor:0,borderLeftColor:0,backgroundImage:"",backgroundSize:"cover",borderRadius:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomRightRadius:0,borderBottomLeftRadius:0,opacity:1,transform:"identity",transformOrigin:"50% 50%",pointerEvents:"all",fontSize:14,fontWeight:400,fontStyle:"normal",lineHeight:"normal",letterSpacing:0,textAlign:"start",textDecoration:"none",lineClamp:0,textOverflow:"ellipsis",textWrap:"wrap",objectFit:"cover",placeholder:"",type:"text",enterKey:"done",autocapitalize:"sentences",autocorrect:1,maxLength:0,keyboardShrink:1,keyboardDismiss:1,showScrollbar:1,overscrollMode:"default",keyboardDismissMode:"interactive",snap:"none",sheetDetents:"",sheetDetent:0,sheetDismissible:1,dim:0},Qr=["duration","delay","layer","commit","loop","loopMode","name"];function bn(e){let t=e.trim();/\sxmlns\s*=/.test(t)||(t=t.replace(/<svg\b/,'<svg xmlns="http://www.w3.org/2000/svg"'));const n=new TextEncoder().encode(t);let r="";for(const o of n)r+=String.fromCharCode(o);return`data:image/svg+xml;base64,${btoa(r)}`}function Zr(e){const t=e.match(/viewBox\s*=\s*["']([^"']+)["']/);return t?t[1]:null}const eo=/\b(?:calc|min|max|clamp)\(/,to=e=>{if(!eo.test(e))return e;let t="";for(let n=0;n<e.length;n++){if(e.startsWith("var(",n)){let o=0;const i=n;for(;n<e.length;n++)if(e[n]==="(")o++;else if(e[n]===")"&&--o===0)break;t+=e.slice(i,Math.min(n+1,e.length));continue}const r=e[n];if(r==="+"||r==="-"){const o=t[t.length-1]??"";if(!(r==="-"&&(o==="e"&&"btlr".includes(e[n+1]??"")||e.slice(Math.max(0,n-7),n)==="comfort"))&&/[\w%.)]/.test(o)){for(t=t.trimEnd()+" "+r+" ";e[n+1]===" ";)n++;continue}}t+=r}return t.replace(/\d*\.\d+|\d+/g,(n,r,o)=>{const i=o.slice(0,r).trimEnd(),s=o.slice(r+n.length).trimStart();return/[\w.%]$/.test(i)||/^[\w.%]/.test(s)||/[*/]$/.test(i)||/^[*/]/.test(s)?n:n+"px"})},no={top:"12px",bottom:"4px",left:"16px",right:"16px"},yn=e=>`max(var(--safe-${e}, 0px), calc(var(--safe-${e}-bar, 0px) + var(--comfort-${e}, ${no[e]})))`,ro={vw:"cqw",vh:"cqh",vmin:"cqmin",vmax:"cqmax"},Ae=e=>to(e).replace(new RegExp("(?<![-\\w])comfort-(top|bottom|left|right)\\b","g"),(t,n)=>yn(n)).replace(new RegExp("(?<![-\\w])safe-(top|bottom|left|right)\\b","g"),(t,n)=>`var(--safe-${n}, 0px)`).replace(/(\d)(vmin|vmax|vw|vh)\b/g,(t,n,r)=>n+ro[r]),yt=/^-?\d*\.?\d+$/,se=e=>{if(typeof e=="number")return e+"px";const t=String(e).trim();return yt.test(t)?t+"px":Ae(t)},Ce=e=>{if(typeof e=="number")return"#"+(e>>>0).toString(16).padStart(e<=16777215?6:8,"0");const t=String(e);return t==="clear"?"transparent":t},oo=/^(rotate|skew)/,so=/^translate/,io=e=>{const t=String(e).trim();return t===""||t==="identity"?"none":t.replace(/([a-zA-Z0-9]+)\s*\(([^)]*)\)/g,(n,r,o)=>{const i=so.test(r)?"px":oo.test(r)?"deg":null;return i===null?n:`${r}(${o.split(",").map(s=>{const l=s.trim();return yt.test(l)?l+i:Ae(l)}).join(", ")})`})},vn=e=>typeof e=="number"?e+"px":String(e).trim().split(/\s+/).map(t=>yt.test(t)?t+"px":Ae(t)).join(" "),ee=0,re=1,ke=2,De=["top","right","bottom","left"],ao=(e,t)=>e==="safe-all"?`var(--safe-${t}, 0px)`:e==="comfort-all"||e==="comfort-x"||e==="comfort-y"?yn(t):se(e),ft=(e,t)=>{const n=(o,i)=>({rank:i,to:s=>o.map(l=>[t(l),ao(s,l)])}),r=o=>({rank:re,to:i=>[[t(o),se(i)]]});return{[e]:n(De,ee),[`${e}Horizontal`]:n(["left","right"],re),[`${e}Vertical`]:n(["top","bottom"],re),[`${e}Start`]:r("inline-start"),[`${e}End`]:r("inline-end"),[`${e}Top`]:n(["top"],ke),[`${e}Right`]:n(["right"],ke),[`${e}Bottom`]:n(["bottom"],ke),[`${e}Left`]:n(["left"],ke)}},lo=()=>{const e=ft("border",n=>`border-${n}-width`),t={};for(const n of Object.keys(e))t[`${n}Width`]=e[n];return t},vt=e=>{const t=[];let n=0,r="";for(const o of e.trim()){if(o==="("&&n++,o===")"&&n--,/\s/.test(o)&&n===0){r&&t.push(r),r="";continue}r+=o}return r&&t.push(r),t},co=new Set(["none","solid","dashed","dotted","double","hidden"]),uo=/^-?\d*\.?\d+([a-z%]*)$|^(calc|min|max|clamp)\(/,Se=(e,t)=>({rank:t,to:n=>{let r=null,o=null,i=null;if(typeof n=="number")r=n+"px";else for(const l of vt(String(n)))co.has(l)?i=l:uo.test(l)?r=se(l):o=Ce(l);const s=[];for(const l of e)s.push([`border-${l}-width`,r??(o?"1px":"0px")]),s.push([`border-${l}-color`,o??"transparent"]),i&&s.push([`border-${l}-style`,i]);return s}}),fo=e=>{const t=String(e).trim(),n=(i,s,l)=>[["flex-grow",i],["flex-shrink",s],["flex-basis",l]];if(t==="none")return n("0","0","auto");if(t==="auto")return n("1","1","auto");if(t==="initial")return n("0","1","auto");const r=vt(t),o=i=>i!==void 0&&/^-?\d*\.?\d+$/.test(i);return o(r[0])?r.length===1?n(r[0],"1","0%"):o(r[1])?n(r[0],r[1],r[2]!==void 0?se(r[2]):"0%"):n(r[0],"1",se(r[1])):n("1","1",se(r[0]??"auto"))},En=e=>{var t;return typeof e=="object"&&e!==null&&"_h"in e&&typeof((t=e._h)==null?void 0:t.id)=="number"},po=e=>e.replace(/<svg\b[^>]*>/,t=>t.replace(/\spreserveAspectRatio\s*=\s*("[^"]*"|'[^']*')/,"").replace(/^<svg\b/,'<svg preserveAspectRatio="none"')),wn=(e,t)=>{if(En(e))return`url("${t.bufferUrl(e._h.id)}")`;const n=String(e??"");return n===""?"none":n.startsWith("id:")?`url("${t.bufferUrl(Number(n.slice(3)))}")`:n.startsWith("svg:")?`url("${bn(po(n.slice(4)))}")`:`url("${n.replace(/["\\\n]/g,r=>"\\"+r)}")`},ho=/^\s*(repeating-)?(linear|radial|conic)-gradient\(/,Sn=e=>{const t=String(e??"").trim();return t===""?"none":Ae(t)},mo=(e,t)=>{const n=typeof e=="string"&&ho.test(e),r=En(e)||typeof e=="string"&&/^(id:|https?:|data:|blob:|\.{0,2}\/)/.test(e);return[["--lc-bg-grad",n?Sn(e):"none"],["--lc-bg-img",r?wn(e,t):"none"],["background-color",n||r?"transparent":Ce(e)]]},go=e=>{const t=typeof e=="number"?[e+"px"]:vt(String(e)).map(s=>vn(s)),[n,r=n,o=n,i=r]=t;return[["border-top-left-radius",n??"0px"],["border-top-right-radius",r??"0px"],["border-bottom-right-radius",o??"0px"],["border-bottom-left-radius",i??"0px"]]},bo=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-monospace","ui-sans-serif","ui-serif","inherit"]),yo=e=>{const t=String(e).trim();return t==="monospaced"?"monospace":t.startsWith("var(")||t.includes(",")||/^["']/.test(t)||bo.has(t)?t:`"${t.replace(/"/g,'\\"')}"`},vo=e=>e===!0||e==="true"||typeof e=="number"&&e>.5||e==="1",Eo=e=>t=>e[String(t)]??String(t),$e={width:{css:"width",as:"len"},height:{css:"height",as:"len"},minWidth:{css:"min-width",as:"len"},minHeight:{css:"min-height",as:"len"},maxWidth:{css:"max-width",as:"len"},maxHeight:{css:"max-height",as:"len"},flexBasis:{css:"flex-basis",as:"len"},flexGrow:{css:"flex-grow",as:"num"},flexShrink:{css:"flex-shrink",as:"num"},aspectRatio:{css:"aspect-ratio",as:"num"},gap:{css:["row-gap","column-gap"],as:"len",rank:ee},rowGap:{css:"row-gap",as:"len"},columnGap:{css:"column-gap",as:"len"},...ft("padding",e=>`padding-${e}`),...ft("margin",e=>`margin-${e}`),inset:{css:De,as:"len",rank:ee},top:{css:"top",as:"len"},right:{css:"right",as:"len"},bottom:{css:"bottom",as:"len"},left:{css:"left",as:"len"},start:{css:"inset-inline-start",as:"len",rank:re},end:{css:"inset-inline-end",as:"len",rank:re},flexDirection:{css:"flex-direction",as:"raw"},justifyContent:{css:"justify-content",as:"raw"},alignItems:{css:"align-items",as:"raw"},alignSelf:{css:"align-self",as:"raw"},position:{css:"position",as:"raw"},flexWrap:{css:"flex-wrap",as:"raw"},boxSizing:{css:"box-sizing",as:"raw"},display:{css:"display",as:"raw"},overflow:{rank:ee,to:e=>{const t=e==="scroll"?"auto":String(e);return[["overflow-x",t],["overflow-y",t]]}},scrollDirection:{to:e=>e==="horizontal"?[["overflow-x","auto"],["overflow-y","hidden"],["flex-direction","row"]]:e==="all"?[["overflow-x","auto"],["overflow-y","auto"]]:[["overflow-x","hidden"],["overflow-y","auto"],["flex-direction","column"]],rank:re},...lo(),color:{css:"color"},backgroundColor:{css:"background-color"},borderColor:{css:De.map(e=>`border-${e}-color`),rank:ee},borderTopColor:{css:"border-top-color"},borderRightColor:{css:"border-right-color"},borderBottomColor:{css:"border-bottom-color"},borderLeftColor:{css:"border-left-color"},placeholderColor:{css:"--lc-placeholder"},refreshControlColor:{css:"--lc-refresh"},tintColor:{css:"--lc-tint"},overlayColor:{css:"--lc-overlay"},rippleColor:{none:"a browser has no ripple: the press feedback of a page is `$pressed`"},backgroundImage:{to:(e,t)=>[["--lc-bg-img",wn(e,t)]]},backgroundGradient:{to:e=>[["--lc-bg-grad",Sn(e)]]},backgroundSize:{to:e=>e==="tile"?[["background-size","auto"],["background-repeat","repeat"],["background-position","0 0"]]:[["background-size",e==="fill"?"100% 100%":String(e)],["background-repeat","no-repeat"],["background-position","center"]]},borderRadius:{to:go,rank:ee},borderTopLeftRadius:{css:"border-top-left-radius"},borderTopRightRadius:{css:"border-top-right-radius"},borderBottomRightRadius:{css:"border-bottom-right-radius"},borderBottomLeftRadius:{css:"border-bottom-left-radius"},opacity:{css:"opacity"},transform:{to:e=>[["transform",io(e)]]},transformOrigin:{css:"transform-origin",as:"lens"},pointerEvents:{to:e=>[["pointer-events",e==="none"?"none":"auto"]]},dim:{css:"--lc-dim"},fontSize:{css:"font-size"},fontWeight:{css:"font-weight",as:"raw"},fontStyle:{to:e=>[["font-style",e===2?"italic":e===0?"normal":String(e)]]},fontFamily:{to:e=>[["font-family",yo(e)]]},lineHeight:{to:e=>[["line-height",e==="normal"?"1.2":se(e)]]},letterSpacing:{css:"letter-spacing"},textAlign:{css:"text-align"},textDecoration:{css:"text-decoration-line"},lineClamp:{rank:ee,to:e=>Number(e)>0?[["display","-webkit-box"],["-webkit-box-orient","vertical"],["-webkit-line-clamp",String(Math.round(Number(e)))],["overflow-x","hidden"],["overflow-y","hidden"]]:[["-webkit-line-clamp","none"]]},textOverflow:{css:"text-overflow"},textWrap:{rank:ee,to:e=>e==="nowrap"?[["white-space","pre"],["max-width","none"],["overflow-x","hidden"],["overflow-y","hidden"],["text-overflow","ellipsis"]]:[["white-space","pre-wrap"],["max-width","100%"],["text-wrap",String(e)]]},objectFit:{to:e=>[["object-fit",String(e)],["--lc-fit",e==="fill"?"100% 100%":String(e)]]},placeholder:{attr:!0},type:{attr:!0},enterKey:{attr:!0},autocapitalize:{attr:!0},autocorrect:{attr:!0},maxLength:{attr:!0},keyboardShrink:{attr:!0},keyboardDismiss:{attr:!0},showScrollbar:{to:e=>[["scrollbar-width",vo(e)?"thin":"none"]]},overscrollMode:{to:e=>[["overscroll-behavior",Eo({default:"auto",none:"none",absorb:"contain"})(e)]]},keyboardDismissMode:{attr:!0},snap:{to:e=>e==="none"?[["scroll-snap-type","none"],["--lc-snap","none"]]:[["scroll-snap-type","both mandatory"],["--lc-snap",String(e)]]},sheetDetents:{attr:!0},sheetDetent:{attr:!0},sheetDismissible:{attr:!0},background:{to:mo,rank:ee},border:Se(De,ee),borderTop:Se(["top"],re),borderRight:Se(["right"],re),borderBottom:Se(["bottom"],re),borderLeft:Se(["left"],re),flex:{to:fo,rank:ee}},Ze=e=>qr[e]??e,wo=e=>e in $e,_n=e=>{const t=$e[e];return!!t&&"attr"in t},So={overflow:"overflow-x",pointerEvents:"pointer-events",fontFamily:"font-family",fontStyle:"font-style",lineHeight:"line-height",objectFit:"object-fit",transform:"transform",borderRadius:"border-top-left-radius",borderWidth:"border-top-width",borderColor:"border-top-color",backgroundImage:"--lc-bg-img",backgroundGradient:"--lc-bg-grad",backgroundSize:"background-size",showScrollbar:"scrollbar-width",overscrollMode:"overscroll-behavior",snap:"--lc-snap",lineClamp:"-webkit-line-clamp",textWrap:"text-wrap",borderTopWidth:"border-top-width",borderRightWidth:"border-right-width",borderBottomWidth:"border-bottom-width",borderLeftWidth:"border-left-width",borderHorizontalWidth:"border-left-width",borderVerticalWidth:"border-top-width",borderStartWidth:"border-inline-start-width",borderEndWidth:"border-inline-end-width"},_o=e=>{const t=$e[e];return t&&"css"in t&&typeof t.css=="string"?t.css:So[e]??null},ko={len:se,lens:vn,num:e=>String(e),raw:e=>String(e),color:Ce},To={color:"color",len:"len",enum:"raw",num:"num",str:"raw",layout:"raw"},Bt=e=>{const t=$e[e];return t&&"rank"in t&&t.rank!==void 0?t.rank:ke},et=(e,t,n)=>{const r=[...e].filter(([,i])=>i!=null);r.sort((i,s)=>Bt(i[0])-Bt(s[0]));const o=new Map;for(const[i,s]of r){const l=$e[i];if(!l){n==null||n(i);continue}if("attr"in l||"none"in l)continue;if("to"in l){for(const[E,_]of l.to(s,t))o.set(E,_);continue}const d=ko[l.as??To[ze[i]??"layout"]],u=d(s);if(typeof l.css=="string")o.set(l.css,u);else for(const E of l.css)o.set(E,u)}return o},Vt=e=>[...e].sort((t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0).map(([t,n])=>`${t}:${n}`).join(";"),kn=0,Tn=1,Le=2,xe=3,Ln=4,be=65,Ge=1.70158,Me=Ge*1.525,Wt=Ge+1,zt=2*Math.PI/3,Gt=2*Math.PI/4.5,Pe=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,dt=[["linear",e=>e],["inSine",e=>1-Math.cos(e*Math.PI/2)],["outSine",e=>Math.sin(e*Math.PI/2)],["inOutSine",e=>-(Math.cos(Math.PI*e)-1)/2],["inQuad",e=>e*e],["outQuad",e=>1-(1-e)*(1-e)],["inOutQuad",e=>e<.5?2*e*e:1-(-2*e+2)**2/2],["inCubic",e=>e*e*e],["outCubic",e=>1-(1-e)**3],["inOutCubic",e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2],["inQuart",e=>e**4],["outQuart",e=>1-(1-e)**4],["inOutQuart",e=>e<.5?8*e**4:1-(-2*e+2)**4/2],["inExpo",e=>e===0?0:2**(10*e-10)],["outExpo",e=>e===1?1:1-2**(-10*e)],["inOutExpo",e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2],["inCirc",e=>1-Math.sqrt(1-e*e)],["outCirc",e=>Math.sqrt(1-(e-1)**2)],["inOutCirc",e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2],["inBack",e=>Wt*e*e*e-Ge*e*e],["outBack",e=>1+Wt*(e-1)**3+Ge*(e-1)**2],["inOutBack",e=>e<.5?(2*e)**2*((Me+1)*2*e-Me)/2:((2*e-2)**2*((Me+1)*(e*2-2)+Me)+2)/2],["inElastic",e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*zt)],["outElastic",e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*zt)+1],["inOutElastic",e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*Gt))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*Gt)/2+1],["inBounce",e=>1-Pe(1-e)],["outBounce",Pe],["inOutBounce",e=>e<.5?(1-Pe(1-2*e))/2:(1+Pe(2*e-1))/2],["smoothstep",e=>e*e*(3-2*e)]],Lo={in:"inQuad",out:"outQuad",inOut:"inOutQuad",easeIn:"inQuad",easeOut:"outQuad",easeInOut:"inOutQuad","ease-in":"inQuad","ease-out":"outQuad","ease-in-out":"inOutQuad"},xo=e=>{const t=Lo[e]??e;for(let n=0;n<dt.length;n++)if(dt[n][0]===t)return n;return-1},Ro=[.25,.1,.25,1],Ne={kind:kn,p:[0,0,0,0]},Ao=e=>{const t=new Float32Array(be);for(let n=0;n<be;n++)t[n]=e(n/(be-1));return t[0]=0,t[be-1]=1,t},Co=e=>{if(e===void 0)return Ne;if(typeof e=="function")return{kind:Ln,p:[0,0,0,0],table:Ao(e)};if(Array.isArray(e)){const[o,i,s,l]=e;return{kind:Le,p:[o,i,s,l]}}const t=e.trim();if(t==="linear")return Ne;if(t==="ease")return{kind:Le,p:Ro};if(t==="steps")return{kind:xe,p:[1,0,0,0]};let n=/^steps\(\s*(\d+)\s*(?:,\s*(start|end|jump-start|jump-end)\s*)?\)$/.exec(t);if(n)return{kind:xe,p:[Math.max(1,parseInt(n[1],10)),n[2]==="start"||n[2]==="jump-start"?1:0,0,0]};if(n=/^cubic-bezier\(\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*\)$/.exec(t),n)return{kind:Le,p:[parseFloat(n[1]),parseFloat(n[2]),parseFloat(n[3]),parseFloat(n[4])]};const r=xo(t);return r===0?Ne:r>0?{kind:Tn,p:[r,0,0,0]}:(console.warn(`[tween] unknown easing "${t}" — using linear`),Ne)},$o=(e,t,n,r,o)=>{const i=1-3*r+3*t,s=3*r-6*t,l=3*t,d=1-3*o+3*n,u=3*o-6*n,E=3*n;let _=e;for(let A=0;A<8;A++){const g=((i*_+s)*_+l)*_-e,p=(3*i*_+2*s)*_+l;if(Math.abs(g)<1e-6||Math.abs(p)<1e-6)break;_-=g/p}return _=Math.min(1,Math.max(0,_)),((d*_+u)*_+E)*_},Oo=(e,t)=>{if(t<=0)return e.kind===xe&&e.p[1]===1?1/e.p[0]:0;if(t>=1)return 1;switch(e.kind){case Tn:return dt[e.p[0]][1](t);case Le:return $o(t,e.p[0],e.p[1],e.p[2],e.p[3]);case xe:{const n=e.p[0];return e.p[1]===1?Math.min(1,Math.ceil(t*n)/n):Math.floor(t*n)/n}case Ln:{const n=e.table,r=t*(be-1),o=Math.floor(r),i=n[o],s=n[Math.min(o+1,be-1)];return i+(s-i)*(r-o)}default:return t}},jt=24,Ht=e=>String(Math.round(e*1e4)/1e4),Uo="cubic-bezier(0.3333, 0, 0.6667, 1)",Mo=e=>{switch(e.kind){case kn:return"linear";case Le:return`cubic-bezier(${e.p.map(Ht).join(", ")})`;case xe:return`steps(${e.p[0]}, ${e.p[1]===1?"jump-start":"jump-end"})`}const t=[];for(let n=0;n<=jt;n++)t.push(Ht(Oo(e,n/jt)));return`linear(${t.join(", ")})`},Po=e=>e===void 0||e==="smoothstep"?Uo:Mo(Co(e)),xn=["lc-base","lc-bag","lc-own","lc-orient","lc-class","lc-hover","lc-press","lc-focus"],No=["--lc-bg-grad","--lc-bg-img","--lc-tint","--lc-overlay","--lc-refresh","--lc-fit","--lc-src","--lc-src-tint","--lc-iw","--lc-ih","--lc-ir","--lc-crop-size","--lc-crop-pos"],Rn="lc-app",Fo=`
|
|
2
|
+
${e.stack}`:String(e);try{return JSON.stringify(e)}catch{return String(e)}},nr=(e,t)=>{const n=s=>{fetch(`${e}/log`,{method:"POST",body:JSON.stringify(s),headers:{"content-type":"application/json"},keepalive:!0}).catch(()=>{})};let r=-1;const o=async()=>{try{const{v:s}=await(await fetch(`${e}/version`,{cache:"no-store"})).json();typeof s=="number"&&t(s)}catch{}setTimeout(o,2500)};setTimeout(o,2500);const i=()=>{let s;try{s=new WebSocket(e.replace(/^http/,"ws")+"/ws")}catch{return}s.onopen=()=>s.send(JSON.stringify({type:"hello",v:r})),s.onmessage=l=>{let d={};try{d=JSON.parse(String(l.data))}catch{return}d.type==="reload"&&typeof d.v=="number"&&t(d.v)},s.onclose=()=>{setTimeout(i,2e3)}};return i(),{bundleUrl:s=>`${e}/bundle.js?t=web&v=${s}`,versionOf(s,l){const d=Number(s.headers.get("x-lecodes-v"));return s.headers.has("x-lecodes-v")&&Number.isFinite(d)?d:l},ran(s){r=s},log:(s,l)=>n({type:"log",level:s,text:l.map(tr).join(" ")}),error:s=>n({type:"error",text:s})}},rr=(e,t)=>{try{const n=new URL(e,t);return n.origin===new URL(t).origin&&(n.protocol==="http:"||n.protocol==="https:")?n.href:null}catch{return null}},mn=(e,t)=>{const n=[];for(const r of t){const o=r.halves[e];for(const i of typeof o=="string"?[o]:Array.isArray(o)?o:[]){if(typeof i!="string"||!i)continue;const s=new URL(i,r.url).href;n.includes(s)||n.push(s)}}return n},or="modulepreload",sr=function(e,t){return new URL(e,t).href},Tt={},ce=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let s=function(E){return Promise.all(E.map(_=>Promise.resolve(_).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};const l=document.getElementsByTagName("link"),d=document.querySelector("meta[property=csp-nonce]"),u=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=s(n.map(E=>{if(E=sr(E,r),E in Tt)return;Tt[E]=!0;const _=E.endsWith(".css"),A=_?'[rel="stylesheet"]':"";if(!!r)for(let y=l.length-1;y>=0;y--){const v=l[y];if(v.href===E&&(!_||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${E}"]${A}`))return;const p=document.createElement("link");if(p.rel=_?"stylesheet":or,_||(p.as="script"),p.crossOrigin="",p.href=E,u&&p.setAttribute("nonce",u),document.head.appendChild(p),_)return new Promise((y,v)=>{p.addEventListener("load",y),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${E}`)))})}))}function i(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return o.then(s=>{for(const l of s||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Lt="2.8.3",Xe=e=>{const t=e==null?void 0:e.match(/^(\d+)\.\d+\.\d+/);return t?Number(t[1]):null},ir=(e,t)=>Xe(e)!==null&&Xe(e)===Xe(t),ar=(e,t="woff2")=>{const n=/^\/\/ fonts: (.+)$/m.exec(e);if(!n)return[];const r=[];for(const o of n[1].split(";")){const i=o.indexOf("=");if(i===-1)continue;const s=/^(.+)@(\d+)(i?)$/.exec(o.slice(0,i));s&&r.push({family:s[1],weight:parseInt(s[2],10),italic:s[3]==="i",url:o.slice(i+1).replace("{fmt}",t)})}return r},lr=async(e,t,n=2e3)=>{const r=t??(typeof document>"u"?void 0:document);if(!(r!=null&&r.fonts)||e.length===0)return;const o=[];for(const i of e)try{const s=new FontFace(i.family,`url("${i.url}")`,{weight:String(i.weight),style:i.italic?"italic":"normal"});r.fonts.add(s),o.push(s.load().catch(()=>{}))}catch{}await Promise.race([Promise.all(o),new Promise(i=>setTimeout(i,n))])},cr=e=>{var d,u,E,_;const t=e.slice(0,2e3),n=new Set,r=t.match(/\/\/ preload: (.+)/);if(r)for(const A of r[1].split(";"))n.add(A);const o=t.includes("// gl: disable")?"off":t.includes("// gl: defer")?"defer":"on",i=((d=t.match(/^\/\/ sdk: (\d+\.\d+\.\d+\S*)/m))==null?void 0:d[1])??null,s=((E=(u=t.match(/^\/\/ name: (.+)$/m))==null?void 0:u[1])==null?void 0:E.trim())??null,l=new Set((((_=t.match(/^\/\/ plugins: (.+)$/m))==null?void 0:_[1])??"").split(";").map(A=>A.trim()).filter(Boolean));return{sdk:i,name:s,preloads:n,gl:o,is2d:t.includes("// 2d: enable"),plugins:l,bootFonts:ar(t)}},ur=1,fr=2,dr=3,pr=4,hr=5,mr=6,xt=7,gr=8,Rt=9,br=10,yr=11,vr=12,Er=13,wr=14,Sr=15,_r=16,At=17,kr=18,Tr=19,Ue=20,xi=21,Ri=22,Ai=23,Ci=24,$i=25,Lr=26,xr=27,Rr=28,Ar=29,Ct=30,$t=31,Cr=32,$r=33,Ot=34,Ut=35,Mt=36,Ie=1,Or=2,Ur=4,he=8,Mr=16,Je=32,Pr=64,Qe=128,Nr=256,Fr=512,Ir=1024,Dr=2048,Br=4096,Pt=8192,Oi=16384,Vr=32768,Wr=1<<18,zr=255,Nt=256,Ft=512,Gr=1024,te=0,jr=1,Hr=2,Kr=3,We=4,ve=255,gn=e=>{const t=e.clientWidth;if(!t)return 1;const n=e.getBoundingClientRect().width;return n>0?n/t:1},It={text:{type:"text"},password:{type:"password"},search:{type:"search"},tel:{type:"tel"},email:{type:"email"},url:{type:"url"},number:{type:"text",mode:"numeric"},decimal:{type:"text",mode:"decimal"},date:{type:"date"},time:{type:"time"}},Dt=(e,t)=>e==null?t:e===!0||e==="true"||e==="1"||typeof e=="number"&&e>.5,oe=(e,t,n)=>{n===null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)},Yr=(e,t)=>{if(e.type!=="input"&&e.type!=="textarea")return;const n=e.el,r=t("placeholder");if(oe(n,"placeholder",r==null?null:String(r)),e.type==="input"){const l=It[String(t("type")??"text")]??It.text,d=n;d.type!==l.type&&(d.type=l.type),oe(n,"inputmode",l.mode??null);const u=t("enterKey");oe(n,"enterkeyhint",u==null?null:String(u))}const o=t("autocapitalize");oe(n,"autocapitalize",o==null?null:String(o));const i=t("autocorrect");i==null?(oe(n,"autocorrect",null),oe(n,"spellcheck",null)):(oe(n,"autocorrect",Dt(i,!0)?"on":"off"),oe(n,"spellcheck",Dt(i,!0)?"true":"false"));const s=Number(t("maxLength")??0);oe(n,"maxlength",s>0?String(Math.round(s)):null)},ze={width:"layout",height:"layout",minWidth:"layout",minHeight:"layout",maxWidth:"layout",maxHeight:"layout",flexBasis:"layout",flexGrow:"layout",flexShrink:"layout",aspectRatio:"layout",gap:"layout",rowGap:"layout",columnGap:"layout",padding:"layout",paddingTop:"layout",paddingRight:"layout",paddingBottom:"layout",paddingLeft:"layout",paddingHorizontal:"layout",paddingVertical:"layout",paddingStart:"layout",paddingEnd:"layout",margin:"layout",marginTop:"layout",marginRight:"layout",marginBottom:"layout",marginLeft:"layout",marginHorizontal:"layout",marginVertical:"layout",marginStart:"layout",marginEnd:"layout",left:"layout",right:"layout",top:"layout",bottom:"layout",start:"layout",end:"layout",inset:"layout",flexDirection:"enum",justifyContent:"enum",alignItems:"enum",alignSelf:"enum",position:"enum",flexWrap:"enum",boxSizing:"enum",display:"enum",overflow:"enum",scrollDirection:"enum",borderWidth:"len",borderTopWidth:"len",borderRightWidth:"len",borderBottomWidth:"len",borderLeftWidth:"len",borderHorizontalWidth:"len",borderVerticalWidth:"len",borderStartWidth:"len",borderEndWidth:"len",color:"color",backgroundColor:"color",borderColor:"color",borderTopColor:"color",borderRightColor:"color",borderBottomColor:"color",borderLeftColor:"color",placeholderColor:"color",refreshControlColor:"color",tintColor:"color",rippleColor:"color",overlayColor:"color",backgroundImage:"str",backgroundSize:"enum",backgroundGradient:"str",borderRadius:"len",borderTopLeftRadius:"len",borderTopRightRadius:"len",borderBottomRightRadius:"len",borderBottomLeftRadius:"len",opacity:"num",transform:"str",transformOrigin:"str",pointerEvents:"enum",fontSize:"len",fontWeight:"num",fontStyle:"enum",fontFamily:"str",lineHeight:"len",letterSpacing:"len",textAlign:"enum",textDecoration:"enum",lineClamp:"num",textOverflow:"enum",textWrap:"enum",objectFit:"enum",placeholder:"str",type:"enum",enterKey:"enum",autocapitalize:"enum",autocorrect:"num",maxLength:"num",keyboardShrink:"num",keyboardDismiss:"num",showScrollbar:"num",overscrollMode:"enum",keyboardDismissMode:"enum",snap:"enum",sheetDetents:"str",sheetDetent:"num",sheetDismissible:"num",dim:"num"},qr={p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingHorizontal",py:"paddingVertical",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginHorizontal",my:"marginVertical",bgColor:"backgroundColor",bgImage:"backgroundImage",bgSize:"backgroundSize",bgGradient:"backgroundGradient"},Xr=["placeholderColor","refreshControlColor","tintColor","rippleColor","overlayColor","backgroundGradient"],Jr={display:"flex",overflow:"visible",scrollDirection:"vertical",borderWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftWidth:0,borderHorizontalWidth:0,borderVerticalWidth:0,borderStartWidth:0,borderEndWidth:0,backgroundColor:0,borderColor:0,borderTopColor:0,borderRightColor:0,borderBottomColor:0,borderLeftColor:0,backgroundImage:"",backgroundSize:"cover",borderRadius:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomRightRadius:0,borderBottomLeftRadius:0,opacity:1,transform:"identity",transformOrigin:"50% 50%",pointerEvents:"all",fontSize:14,fontWeight:400,fontStyle:"normal",lineHeight:"normal",letterSpacing:0,textAlign:"start",textDecoration:"none",lineClamp:0,textOverflow:"ellipsis",textWrap:"wrap",objectFit:"cover",placeholder:"",type:"text",enterKey:"done",autocapitalize:"sentences",autocorrect:1,maxLength:0,keyboardShrink:1,keyboardDismiss:1,showScrollbar:1,overscrollMode:"default",keyboardDismissMode:"interactive",snap:"none",sheetDetents:"",sheetDetent:0,sheetDismissible:1,dim:0},Qr=["duration","delay","layer","commit","loop","loopMode","name"];function bn(e){let t=e.trim();/\sxmlns\s*=/.test(t)||(t=t.replace(/<svg\b/,'<svg xmlns="http://www.w3.org/2000/svg"'));const n=new TextEncoder().encode(t);let r="";for(const o of n)r+=String.fromCharCode(o);return`data:image/svg+xml;base64,${btoa(r)}`}function Zr(e){const t=e.match(/viewBox\s*=\s*["']([^"']+)["']/);return t?t[1]:null}const eo=/\b(?:calc|min|max|clamp)\(/,to=e=>{if(!eo.test(e))return e;let t="";for(let n=0;n<e.length;n++){if(e.startsWith("var(",n)){let o=0;const i=n;for(;n<e.length;n++)if(e[n]==="(")o++;else if(e[n]===")"&&--o===0)break;t+=e.slice(i,Math.min(n+1,e.length));continue}const r=e[n];if(r==="+"||r==="-"){const o=t[t.length-1]??"";if(!(r==="-"&&(o==="e"&&"btlr".includes(e[n+1]??"")||e.slice(Math.max(0,n-7),n)==="comfort"))&&/[\w%.)]/.test(o)){for(t=t.trimEnd()+" "+r+" ";e[n+1]===" ";)n++;continue}}t+=r}return t.replace(/\d*\.\d+|\d+/g,(n,r,o)=>{const i=o.slice(0,r).trimEnd(),s=o.slice(r+n.length).trimStart();return/[\w.%]$/.test(i)||/^[\w.%]/.test(s)||/[*/]$/.test(i)||/^[*/]/.test(s)?n:n+"px"})},no={top:"12px",bottom:"4px",left:"16px",right:"16px"},yn=e=>`max(var(--safe-${e}, 0px), calc(var(--safe-${e}-bar, 0px) + var(--comfort-${e}, ${no[e]})))`,ro={vw:"cqw",vh:"cqh",vmin:"cqmin",vmax:"cqmax"},Ae=e=>to(e).replace(new RegExp("(?<![-\\w])comfort-(top|bottom|left|right)\\b","g"),(t,n)=>yn(n)).replace(new RegExp("(?<![-\\w])safe-(top|bottom|left|right)\\b","g"),(t,n)=>`var(--safe-${n}, 0px)`).replace(/(\d)(vmin|vmax|vw|vh)\b/g,(t,n,r)=>n+ro[r]),yt=/^-?\d*\.?\d+$/,se=e=>{if(typeof e=="number")return e+"px";const t=String(e).trim();return yt.test(t)?t+"px":Ae(t)},Ce=e=>{if(typeof e=="number")return"#"+(e>>>0).toString(16).padStart(e<=16777215?6:8,"0");const t=String(e);return t==="clear"?"transparent":t},oo=/^(rotate|skew)/,so=/^translate/,io=e=>{const t=String(e).trim();return t===""||t==="identity"?"none":t.replace(/([a-zA-Z0-9]+)\s*\(([^)]*)\)/g,(n,r,o)=>{const i=so.test(r)?"px":oo.test(r)?"deg":null;return i===null?n:`${r}(${o.split(",").map(s=>{const l=s.trim();return yt.test(l)?l+i:Ae(l)}).join(", ")})`})},vn=e=>typeof e=="number"?e+"px":String(e).trim().split(/\s+/).map(t=>yt.test(t)?t+"px":Ae(t)).join(" "),ee=0,re=1,ke=2,De=["top","right","bottom","left"],ao=(e,t)=>e==="safe-all"?`var(--safe-${t}, 0px)`:e==="comfort-all"||e==="comfort-x"||e==="comfort-y"?yn(t):se(e),ft=(e,t)=>{const n=(o,i)=>({rank:i,to:s=>o.map(l=>[t(l),ao(s,l)])}),r=o=>({rank:re,to:i=>[[t(o),se(i)]]});return{[e]:n(De,ee),[`${e}Horizontal`]:n(["left","right"],re),[`${e}Vertical`]:n(["top","bottom"],re),[`${e}Start`]:r("inline-start"),[`${e}End`]:r("inline-end"),[`${e}Top`]:n(["top"],ke),[`${e}Right`]:n(["right"],ke),[`${e}Bottom`]:n(["bottom"],ke),[`${e}Left`]:n(["left"],ke)}},lo=()=>{const e=ft("border",n=>`border-${n}-width`),t={};for(const n of Object.keys(e))t[`${n}Width`]=e[n];return t},vt=e=>{const t=[];let n=0,r="";for(const o of e.trim()){if(o==="("&&n++,o===")"&&n--,/\s/.test(o)&&n===0){r&&t.push(r),r="";continue}r+=o}return r&&t.push(r),t},co=new Set(["none","solid","dashed","dotted","double","hidden"]),uo=/^-?\d*\.?\d+([a-z%]*)$|^(calc|min|max|clamp)\(/,Se=(e,t)=>({rank:t,to:n=>{let r=null,o=null,i=null;if(typeof n=="number")r=n+"px";else for(const l of vt(String(n)))co.has(l)?i=l:uo.test(l)?r=se(l):o=Ce(l);const s=[];for(const l of e)s.push([`border-${l}-width`,r??(o?"1px":"0px")]),s.push([`border-${l}-color`,o??"transparent"]),i&&s.push([`border-${l}-style`,i]);return s}}),fo=e=>{const t=String(e).trim(),n=(i,s,l)=>[["flex-grow",i],["flex-shrink",s],["flex-basis",l]];if(t==="none")return n("0","0","auto");if(t==="auto")return n("1","1","auto");if(t==="initial")return n("0","1","auto");const r=vt(t),o=i=>i!==void 0&&/^-?\d*\.?\d+$/.test(i);return o(r[0])?r.length===1?n(r[0],"1","0%"):o(r[1])?n(r[0],r[1],r[2]!==void 0?se(r[2]):"0%"):n(r[0],"1",se(r[1])):n("1","1",se(r[0]??"auto"))},En=e=>{var t;return typeof e=="object"&&e!==null&&"_h"in e&&typeof((t=e._h)==null?void 0:t.id)=="number"},po=e=>e.replace(/<svg\b[^>]*>/,t=>t.replace(/\spreserveAspectRatio\s*=\s*("[^"]*"|'[^']*')/,"").replace(/^<svg\b/,'<svg preserveAspectRatio="none"')),wn=(e,t)=>{if(En(e))return`url("${t.bufferUrl(e._h.id)}")`;const n=String(e??"");return n===""?"none":n.startsWith("id:")?`url("${t.bufferUrl(Number(n.slice(3)))}")`:n.startsWith("svg:")?`url("${bn(po(n.slice(4)))}")`:`url("${n.replace(/["\\\n]/g,r=>"\\"+r)}")`},ho=/^\s*(repeating-)?(linear|radial|conic)-gradient\(/,Sn=e=>{const t=String(e??"").trim();return t===""?"none":Ae(t)},mo=(e,t)=>{const n=typeof e=="string"&&ho.test(e),r=En(e)||typeof e=="string"&&/^(id:|https?:|data:|blob:|\.{0,2}\/)/.test(e);return[["--lc-bg-grad",n?Sn(e):"none"],["--lc-bg-img",r?wn(e,t):"none"],["background-color",n||r?"transparent":Ce(e)]]},go=e=>{const t=typeof e=="number"?[e+"px"]:vt(String(e)).map(s=>vn(s)),[n,r=n,o=n,i=r]=t;return[["border-top-left-radius",n??"0px"],["border-top-right-radius",r??"0px"],["border-bottom-right-radius",o??"0px"],["border-bottom-left-radius",i??"0px"]]},bo=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-monospace","ui-sans-serif","ui-serif","inherit"]),yo=e=>{const t=String(e).trim();return t==="monospaced"?"monospace":t.startsWith("var(")||t.includes(",")||/^["']/.test(t)||bo.has(t)?t:`"${t.replace(/"/g,'\\"')}"`},vo=e=>e===!0||e==="true"||typeof e=="number"&&e>.5||e==="1",Eo=e=>t=>e[String(t)]??String(t),$e={width:{css:"width",as:"len"},height:{css:"height",as:"len"},minWidth:{css:"min-width",as:"len"},minHeight:{css:"min-height",as:"len"},maxWidth:{css:"max-width",as:"len"},maxHeight:{css:"max-height",as:"len"},flexBasis:{css:"flex-basis",as:"len"},flexGrow:{css:"flex-grow",as:"num"},flexShrink:{css:"flex-shrink",as:"num"},aspectRatio:{css:"aspect-ratio",as:"num"},gap:{css:["row-gap","column-gap"],as:"len",rank:ee},rowGap:{css:"row-gap",as:"len"},columnGap:{css:"column-gap",as:"len"},...ft("padding",e=>`padding-${e}`),...ft("margin",e=>`margin-${e}`),inset:{css:De,as:"len",rank:ee},top:{css:"top",as:"len"},right:{css:"right",as:"len"},bottom:{css:"bottom",as:"len"},left:{css:"left",as:"len"},start:{css:"inset-inline-start",as:"len",rank:re},end:{css:"inset-inline-end",as:"len",rank:re},flexDirection:{css:"flex-direction",as:"raw"},justifyContent:{css:"justify-content",as:"raw"},alignItems:{css:"align-items",as:"raw"},alignSelf:{css:"align-self",as:"raw"},position:{css:"position",as:"raw"},flexWrap:{css:"flex-wrap",as:"raw"},boxSizing:{css:"box-sizing",as:"raw"},display:{css:"display",as:"raw"},overflow:{rank:ee,to:e=>{const t=e==="scroll"?"auto":String(e);return[["overflow-x",t],["overflow-y",t]]}},scrollDirection:{to:e=>e==="horizontal"?[["overflow-x","auto"],["overflow-y","hidden"],["flex-direction","row"]]:e==="all"?[["overflow-x","auto"],["overflow-y","auto"]]:[["overflow-x","hidden"],["overflow-y","auto"],["flex-direction","column"]],rank:re},...lo(),color:{css:"color"},backgroundColor:{css:"background-color"},borderColor:{css:De.map(e=>`border-${e}-color`),rank:ee},borderTopColor:{css:"border-top-color"},borderRightColor:{css:"border-right-color"},borderBottomColor:{css:"border-bottom-color"},borderLeftColor:{css:"border-left-color"},placeholderColor:{css:"--lc-placeholder"},refreshControlColor:{css:"--lc-refresh"},tintColor:{css:"--lc-tint"},overlayColor:{css:"--lc-overlay"},rippleColor:{none:"a browser has no ripple: the press feedback of a page is `$pressed`"},backgroundImage:{to:(e,t)=>[["--lc-bg-img",wn(e,t)]]},backgroundGradient:{to:e=>[["--lc-bg-grad",Sn(e)]]},backgroundSize:{to:e=>e==="tile"?[["background-size","auto"],["background-repeat","repeat"],["background-position","0 0"]]:[["background-size",e==="fill"?"100% 100%":String(e)],["background-repeat","no-repeat"],["background-position","center"]]},borderRadius:{to:go,rank:ee},borderTopLeftRadius:{css:"border-top-left-radius"},borderTopRightRadius:{css:"border-top-right-radius"},borderBottomRightRadius:{css:"border-bottom-right-radius"},borderBottomLeftRadius:{css:"border-bottom-left-radius"},opacity:{css:"opacity"},transform:{to:e=>[["transform",io(e)]]},transformOrigin:{css:"transform-origin",as:"lens"},pointerEvents:{to:e=>[["pointer-events",e==="none"?"none":"auto"]]},dim:{css:"--lc-dim"},fontSize:{css:"font-size"},fontWeight:{css:"font-weight",as:"raw"},fontStyle:{to:e=>[["font-style",e===2?"italic":e===0?"normal":String(e)]]},fontFamily:{to:e=>[["font-family",yo(e)]]},lineHeight:{to:e=>[["line-height",e==="normal"?"1.2":se(e)]]},letterSpacing:{css:"letter-spacing"},textAlign:{css:"text-align"},textDecoration:{css:"text-decoration-line"},lineClamp:{rank:ee,to:e=>Number(e)>0?[["display","-webkit-box"],["-webkit-box-orient","vertical"],["-webkit-line-clamp",String(Math.round(Number(e)))],["overflow-x","hidden"],["overflow-y","hidden"]]:[["-webkit-line-clamp","none"]]},textOverflow:{css:"text-overflow"},textWrap:{rank:ee,to:e=>e==="nowrap"?[["white-space","pre"],["max-width","none"],["overflow-x","hidden"],["overflow-y","hidden"],["text-overflow","ellipsis"]]:[["white-space","pre-wrap"],["max-width","100%"],["text-wrap",String(e)]]},objectFit:{to:e=>[["object-fit",String(e)],["--lc-fit",e==="fill"?"100% 100%":String(e)]]},placeholder:{attr:!0},type:{attr:!0},enterKey:{attr:!0},autocapitalize:{attr:!0},autocorrect:{attr:!0},maxLength:{attr:!0},keyboardShrink:{attr:!0},keyboardDismiss:{attr:!0},showScrollbar:{to:e=>[["scrollbar-width",vo(e)?"thin":"none"]]},overscrollMode:{to:e=>[["overscroll-behavior",Eo({default:"auto",none:"none",absorb:"contain"})(e)]]},keyboardDismissMode:{attr:!0},snap:{to:e=>e==="none"?[["scroll-snap-type","none"],["--lc-snap","none"]]:[["scroll-snap-type","both mandatory"],["--lc-snap",String(e)]]},sheetDetents:{attr:!0},sheetDetent:{attr:!0},sheetDismissible:{attr:!0},background:{to:mo,rank:ee},border:Se(De,ee),borderTop:Se(["top"],re),borderRight:Se(["right"],re),borderBottom:Se(["bottom"],re),borderLeft:Se(["left"],re),flex:{to:fo,rank:ee}},Ze=e=>qr[e]??e,wo=e=>e in $e,_n=e=>{const t=$e[e];return!!t&&"attr"in t},So={overflow:"overflow-x",pointerEvents:"pointer-events",fontFamily:"font-family",fontStyle:"font-style",lineHeight:"line-height",objectFit:"object-fit",transform:"transform",borderRadius:"border-top-left-radius",borderWidth:"border-top-width",borderColor:"border-top-color",backgroundImage:"--lc-bg-img",backgroundGradient:"--lc-bg-grad",backgroundSize:"background-size",showScrollbar:"scrollbar-width",overscrollMode:"overscroll-behavior",snap:"--lc-snap",lineClamp:"-webkit-line-clamp",textWrap:"text-wrap",borderTopWidth:"border-top-width",borderRightWidth:"border-right-width",borderBottomWidth:"border-bottom-width",borderLeftWidth:"border-left-width",borderHorizontalWidth:"border-left-width",borderVerticalWidth:"border-top-width",borderStartWidth:"border-inline-start-width",borderEndWidth:"border-inline-end-width"},_o=e=>{const t=$e[e];return t&&"css"in t&&typeof t.css=="string"?t.css:So[e]??null},ko={len:se,lens:vn,num:e=>String(e),raw:e=>String(e),color:Ce},To={color:"color",len:"len",enum:"raw",num:"num",str:"raw",layout:"raw"},Bt=e=>{const t=$e[e];return t&&"rank"in t&&t.rank!==void 0?t.rank:ke},et=(e,t,n)=>{const r=[...e].filter(([,i])=>i!=null);r.sort((i,s)=>Bt(i[0])-Bt(s[0]));const o=new Map;for(const[i,s]of r){const l=$e[i];if(!l){n==null||n(i);continue}if("attr"in l||"none"in l)continue;if("to"in l){for(const[E,_]of l.to(s,t))o.set(E,_);continue}const d=ko[l.as??To[ze[i]??"layout"]],u=d(s);if(typeof l.css=="string")o.set(l.css,u);else for(const E of l.css)o.set(E,u)}return o},Vt=e=>[...e].sort((t,n)=>t[0]<n[0]?-1:t[0]>n[0]?1:0).map(([t,n])=>`${t}:${n}`).join(";"),kn=0,Tn=1,Le=2,xe=3,Ln=4,be=65,Ge=1.70158,Me=Ge*1.525,Wt=Ge+1,zt=2*Math.PI/3,Gt=2*Math.PI/4.5,Pe=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,dt=[["linear",e=>e],["inSine",e=>1-Math.cos(e*Math.PI/2)],["outSine",e=>Math.sin(e*Math.PI/2)],["inOutSine",e=>-(Math.cos(Math.PI*e)-1)/2],["inQuad",e=>e*e],["outQuad",e=>1-(1-e)*(1-e)],["inOutQuad",e=>e<.5?2*e*e:1-(-2*e+2)**2/2],["inCubic",e=>e*e*e],["outCubic",e=>1-(1-e)**3],["inOutCubic",e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2],["inQuart",e=>e**4],["outQuart",e=>1-(1-e)**4],["inOutQuart",e=>e<.5?8*e**4:1-(-2*e+2)**4/2],["inExpo",e=>e===0?0:2**(10*e-10)],["outExpo",e=>e===1?1:1-2**(-10*e)],["inOutExpo",e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2],["inCirc",e=>1-Math.sqrt(1-e*e)],["outCirc",e=>Math.sqrt(1-(e-1)**2)],["inOutCirc",e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2],["inBack",e=>Wt*e*e*e-Ge*e*e],["outBack",e=>1+Wt*(e-1)**3+Ge*(e-1)**2],["inOutBack",e=>e<.5?(2*e)**2*((Me+1)*2*e-Me)/2:((2*e-2)**2*((Me+1)*(e*2-2)+Me)+2)/2],["inElastic",e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*zt)],["outElastic",e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*zt)+1],["inOutElastic",e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*Gt))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*Gt)/2+1],["inBounce",e=>1-Pe(1-e)],["outBounce",Pe],["inOutBounce",e=>e<.5?(1-Pe(1-2*e))/2:(1+Pe(2*e-1))/2],["smoothstep",e=>e*e*(3-2*e)]],Lo={in:"inQuad",out:"outQuad",inOut:"inOutQuad",easeIn:"inQuad",easeOut:"outQuad",easeInOut:"inOutQuad","ease-in":"inQuad","ease-out":"outQuad","ease-in-out":"inOutQuad"},xo=e=>{const t=Lo[e]??e;for(let n=0;n<dt.length;n++)if(dt[n][0]===t)return n;return-1},Ro=[.25,.1,.25,1],Ne={kind:kn,p:[0,0,0,0]},Ao=e=>{const t=new Float32Array(be);for(let n=0;n<be;n++)t[n]=e(n/(be-1));return t[0]=0,t[be-1]=1,t},Co=e=>{if(e===void 0)return Ne;if(typeof e=="function")return{kind:Ln,p:[0,0,0,0],table:Ao(e)};if(Array.isArray(e)){const[o,i,s,l]=e;return{kind:Le,p:[o,i,s,l]}}const t=e.trim();if(t==="linear")return Ne;if(t==="ease")return{kind:Le,p:Ro};if(t==="steps")return{kind:xe,p:[1,0,0,0]};let n=/^steps\(\s*(\d+)\s*(?:,\s*(start|end|jump-start|jump-end)\s*)?\)$/.exec(t);if(n)return{kind:xe,p:[Math.max(1,parseInt(n[1],10)),n[2]==="start"||n[2]==="jump-start"?1:0,0,0]};if(n=/^cubic-bezier\(\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*,\s*([-\d.e]+)\s*\)$/.exec(t),n)return{kind:Le,p:[parseFloat(n[1]),parseFloat(n[2]),parseFloat(n[3]),parseFloat(n[4])]};const r=xo(t);return r===0?Ne:r>0?{kind:Tn,p:[r,0,0,0]}:(console.warn(`[tween] unknown easing "${t}" — using linear`),Ne)},$o=(e,t,n,r,o)=>{const i=1-3*r+3*t,s=3*r-6*t,l=3*t,d=1-3*o+3*n,u=3*o-6*n,E=3*n;let _=e;for(let A=0;A<8;A++){const g=((i*_+s)*_+l)*_-e,p=(3*i*_+2*s)*_+l;if(Math.abs(g)<1e-6||Math.abs(p)<1e-6)break;_-=g/p}return _=Math.min(1,Math.max(0,_)),((d*_+u)*_+E)*_},Oo=(e,t)=>{if(t<=0)return e.kind===xe&&e.p[1]===1?1/e.p[0]:0;if(t>=1)return 1;switch(e.kind){case Tn:return dt[e.p[0]][1](t);case Le:return $o(t,e.p[0],e.p[1],e.p[2],e.p[3]);case xe:{const n=e.p[0];return e.p[1]===1?Math.min(1,Math.ceil(t*n)/n):Math.floor(t*n)/n}case Ln:{const n=e.table,r=t*(be-1),o=Math.floor(r),i=n[o],s=n[Math.min(o+1,be-1)];return i+(s-i)*(r-o)}default:return t}},jt=24,Ht=e=>String(Math.round(e*1e4)/1e4),Uo="cubic-bezier(0.3333, 0, 0.6667, 1)",Mo=e=>{switch(e.kind){case kn:return"linear";case Le:return`cubic-bezier(${e.p.map(Ht).join(", ")})`;case xe:return`steps(${e.p[0]}, ${e.p[1]===1?"jump-start":"jump-end"})`}const t=[];for(let n=0;n<=jt;n++)t.push(Ht(Oo(e,n/jt)));return`linear(${t.join(", ")})`},Po=e=>e===void 0||e==="smoothstep"?Uo:Mo(Co(e)),xn=["lc-base","lc-bag","lc-own","lc-orient","lc-class","lc-hover","lc-press","lc-focus"],No=["--lc-bg-grad","--lc-bg-img","--lc-tint","--lc-overlay","--lc-refresh","--lc-fit","--lc-src","--lc-src-tint","--lc-iw","--lc-ih","--lc-ir","--lc-crop-size","--lc-crop-pos"],Rn="lc-app",Fo=`
|
|
3
3
|
@layer ${xn.join(", ")};
|
|
4
4
|
|
|
5
5
|
@layer lc-base {
|