smbls 3.14.49 → 3.14.51
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/CHANGELOG.md +12 -0
- package/dist/smbls.cjs +54 -54
- package/dist/smbls.embed.iife.js +13 -13
- package/dist/smbls.esm.js +22 -22
- package/dist/smbls.iife-string.js +1 -1
- package/dist/smbls.iife.js +56 -56
- package/package.json +3 -3
package/dist/smbls.cjs
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";var GP=Object.create;var tl=Object.defineProperty;var KP=Object.getOwnPropertyDescriptor;var XP=Object.getOwnPropertyNames;var YP=Object.getPrototypeOf,ZP=Object.prototype.hasOwnProperty;var
|
|
2
|
-
`),n=-1,o=-1,
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),n2=/[^a-zA-Z0-9\s]/g,
|
|
4
|
-
`;for(let
|
|
5
|
-
`;for(let c of
|
|
1
|
+
"use strict";var GP=Object.create;var tl=Object.defineProperty;var KP=Object.getOwnPropertyDescriptor;var XP=Object.getOwnPropertyNames;var YP=Object.getPrototypeOf,ZP=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ed=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),G=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},C0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of XP(t))!ZP.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=KP(t,o))||n.enumerable});return e};var Od=(e,t,r)=>(r=e!=null?GP(YP(e)):{},C0(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e)),JP=e=>C0(tl({},"__esModule",{value:!0}),e);var Fd,jd,C,pe,Zo=q(()=>{"use strict";Fd=globalThis,jd=globalThis,C=globalThis,pe=C.document});var tr,Jo,We,Qo=q(()=>{"use strict";Zo();tr=e=>(typeof Node=="object"?e instanceof C.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Jo=e=>(typeof HTMLElement=="object"?e instanceof C.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,We=e=>typeof C<"u"&&(C.Node&&e instanceof C.Node||C.Window&&e instanceof C.Window||e===C||e===document)});var S,A,zt,O,sl,al,$,ll,re,He,Pe,ei,qe,Dd,$e=q(()=>{"use strict";Qo();S=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,A=e=>typeof e=="string",zt=e=>typeof e=="number",O=e=>typeof e=="function",sl=e=>e===!0||e===!1,al=e=>e===null,$=e=>Array.isArray(e),ll=e=>e instanceof Date,re=e=>e===null?!1:typeof e=="object",He=e=>e!==void 0,Pe=e=>e===void 0,ei={boolean:sl,array:$,object:S,string:A,date:ll,number:zt,null:al,function:O,objectLike:re,node:tr,htmlElement:Jo,defined:He},qe=e=>(...t)=>t.some(r=>ei[r](e)),Dd=e=>(...t)=>!t.some(r=>ei[r](e))});var Ld,Md,Nd,Bd,Mn,ti,Vd,zd,ri,Ud,Wd,Hd,qd,Gd,Kd,Xd,Nn,ni,Bn=q(()=>{"use strict";rr();$e();Ld=(e,t)=>t.every(r=>e.includes(r)),Md=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Nd=(e,t)=>{if(A(t)&&(t=parseInt(t)),zt(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Bd=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},Mn=(...e)=>[].concat(...e),ti=(e,t=[])=>e.reduce((r,n)=>fe(r,ge(n,{exclude:t}),t),{}),Vd=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},zd=(e,t)=>{if(!$(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},ri=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Ud=(e,t)=>e.filter(r=>r!==t),Wd=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Hd=(e,t,r)=>{let n=[...e],o=n.indexOf(t),i=n.indexOf(r);if(o!==-1&&i!==-1){let s=n.splice(o,1)[0],a=i<o?i:i+1;n.splice(a,0,s)}return n},qd=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Gd=(e,t)=>e.filter(r=>!t.includes(r)),Kd=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Xd=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Nn=e=>$(e)?[...new Set(e)]:e,ni=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function Jr(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let i=t2[n],s=t||this.state||{},a=this;return e.replace(i,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=s;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=oi(h,f);return String(g??"")}else{let p=oi(s,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=s?.root?.lang||s?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=oi(m,f);if(b!=null&&typeof b!="object")return String(b);for(let v in m){let x=m[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let _=oi(x,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=oi(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ii,Yd,t2,oi,Qr,Zd,r2,Jd,Qd,ep,n2,tp,rp,si=q(()=>{"use strict";ii=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Yd=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},t2={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},oi=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e);Qr=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Zd=(e,t)=>{let r=e.split(`
|
|
2
|
+
`),n=-1,o=-1,i=-1,s=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,i=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,s=r[u].indexOf("{}")+3;break}let d=r[u].slice(i+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,s=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,s=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:i,endColumn:s,startLineNumber:n,endLineNumber:o}},r2=/\\([0-7]{1,3})/g,Jd=e=>e.replace(r2,(t,r)=>String.fromCharCode(parseInt(r,8))),Qd=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),ep=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),n2=/[^a-zA-Z0-9\s]/g,tp=e=>e.replace(n2,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),rp=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))});var xr,ai,np,en,vr,Vn,li,op,zn=q(()=>{"use strict";xr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),ai=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),np=["ref","parent","__element","__depends","__ref","__children","root"],en=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),vr=new Set(["update","__element"]),Vn=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),li=new Set(["node","context","extends","__element","__ref",...Vn,...en,...vr]),op=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var P0,tn,de,ip,ye,fe,I0,sp,ge,ci,o2,ui,i2,s2,a2,Un,l2,c2,$0,Ut,u2,f2,d2,fi,ap,lp,cl,cp,up,di,rn,Ge,ul,p2,fp,dp,fl,pp,hp,gp,mp,yp,bp,xp,rr=q(()=>{"use strict";Zo();$e();Bn();si();Qo();zn();P0="production",tn=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,de=(e,t,r,n)=>{if(O(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&($(e)||S(e)&&!We(e))){let o=t.context.plugins;for(let i of o)if(i.resolveHandler){let s=i.resolveHandler(e,t);if(typeof s=="function")return de(s,t,r,n)}}return e},ip=(e,t,r)=>{for(let n in t)e[n]=de(t[n],r)},ye=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(tn(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},fe=(e,t,r=li)=>I0(e,t,r,null),I0=(e,t,r,n)=>{if(e===t)return e;if(n){for(let i=0;i<n.length;i+=2)if(n[i]===e&&n[i+1]===t)return e}let o=r instanceof Set;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||tn(i)||i==="constructor"||i==="prototype"||(o?r.has(i):r.includes(i)))continue;let s=e[i],a=t[i];if(re(s)&&re(a)){let l=n||[];l.push(e,t),I0(s,a,r,l),l.length-=2}else s===void 0&&(e[i]=a)}return e},sp=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(tn(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},ge=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:i=new WeakMap,handleExtends:s=!1}=t;if(!re(e)||We(e))return e;if(i.has(e))return i.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=$(e)?[]:{};i.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||tn(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(We(h)){f[p]=h;continue}if(s&&p==="extends"&&$(h)){f[p]=ti(h,r);continue}if(O(h)){f[p]=h;continue}if(re(h))if(i.has(h))f[p]=i.get(h);else{let g=$(h)?[]:{};i.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},ci=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(O(n))t[r]=n.toString();else if(S(n))t[r]={},ci(n,t[r]);else if($(n)){let o=t[r]=[];for(let i=0;i<n.length;i++){let s=n[i];S(s)?(o[i]={},ci(s,o[i])):O(s)?o[i]=s.toString():o[i]=s}}else t[r]=n}return t},o2=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),ui=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let i in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
4
|
+
`;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let s=e[i],a=!1;for(let c=0;c<i.length;c++)if(o2.has(i[c])){a=!0;break}let l=a?`'${i}'`:i;if(o+=`${n} ${l}: `,$(s)){o+=`[
|
|
5
|
+
`;for(let c of s)re(c)&&c!==null?o+=`${n} ${ui(c,t+2)},
|
|
6
6
|
`:A(c)?o+=`${n} '${c}',
|
|
7
7
|
`:o+=`${n} ${c},
|
|
8
|
-
`;o+=`${n} ]`}else re(
|
|
9
|
-
`,"'"])?`\`${
|
|
10
|
-
`}return o+=`${n}}`,o},
|
|
11
|
-
`,
|
|
12
|
-
`)){h++;break}h++}o.push([f,h]),
|
|
13
|
-
First 200 chars of source: `+String(e).slice(0,200)),e)}},Ut=(e,t={},r={window:{eval:l2}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,
|
|
14
|
-
`);t[n]=C.eval(`(function(__gs__) { ${
|
|
15
|
-
return (${o}); })`)(t)}catch{try{t[n]=C.eval(`(${o})`)}catch{t[n]=o}}return t},lp=(e,t={verbose:!0})=>{try{return e?C.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},cp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),cl=e=>{for(let t in e)return!1;return!0},up=e=>S(e)&&cl(e),fp=()=>Object.create(null),us=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&en(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},tn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)en(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ke=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||He(e)||He(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&en(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];He(c)?e[a]=c:re(l)&&re(c)?e[a]=Ke(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ul=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!ul(e[i],t[i],r))return!1}return!0},p2=new Set(["node","__ref"]),dp=(e,t,r=p2)=>{if(e===t)return!0;if(!re(e)||!re(t)||He(e)||He(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(He(c)||He(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},pp=(e,t)=>{if(t==null)return e;if(Ge(t)("string","number"))delete e[t];else if(P(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},fl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=fl(e[r]));return t},hp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},gp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},mp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},yp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},bp=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Ix==="test"||Ix==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},vp=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},xp=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var fs,ds,ps,dl=G(()=>{rr();fs=(function(){let e=0;function t(){return e++,e}return t})(),ds=fs,ps=(e,t,r)=>(de(r,e)||r||e.key||fs()).toString()});var St,wp,wr,pl,_p,Sp,kp,_r,Cp,rn,Ap=G(()=>{St="production",wp=St,wr=(e=St)=>e==="production",pl=(e=St)=>e==="testing"||e==="test",_p=pl,Sp=(e=St)=>e==="staging",kp=(e=St)=>e==="local",_r=(e=St)=>e==="development"||e==="dev"||e==="local",Cp=(e,t=St)=>t[e],rn=(e=St)=>!wr(e)});function hs(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function Rp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ep,Op,h2,Tp,Un,Wn,Hn,hl=G(()=>{Ep=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Op=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},h2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Tp=e=>h2.test(e),Un=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Wn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Hn=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}});var Pp,Dx=G(()=>{Ie();rr();Pp=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var $p,Ip,Lx=G(()=>{$p=(e,...t)=>{e&&t.map(r=>console.log(r))},Ip=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Mp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Bp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var jp,Fp,Dp,Lp,Mx=G(()=>{Ie();Xo();jp=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Fp=(e,t,r=365)=>{if($e(pe)||$e(pe.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;pe.cookie=`${e}=${t};${o};path=/`},Dp=e=>{if($e(pe)||$e(pe.cookie))return;let t=`${e}=`,r=decodeURIComponent(pe.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Lp=e=>{$e(pe)||$e(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var qn,Bx,Np,zp=G(()=>{qn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Bx=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Np=e=>qn.body.has(e)});var Vp,Nx,Gn,ys,Xe,Up,gl,bs,Wp,vs,ml,yl,xs,bl,Kn,g2,Wt,zx,gs,ws,Hp,ms,qp,Gp,vl,xl,wl,_l,Sl,kl,Vx,Cl=G(()=>{Bn();Kp();rr();Ie();Vp="production",Nx=e=>e.sourcemap!==!1&&Vp!=="production",Gn=e=>{if(e.includes("+"))return e.split("+").filter(Ht);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Ht(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ys=(e,t,r)=>{let n=[],o=Gn(r);o&&(n=[...o]);let s=e.extends;return s&&(n=P(s)?[...n,...s]:[...n,s]),n},Xe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Up=(e,t)=>{if(!e)return t;let{extends:r}=t,n=P(r)?r:[r],o=P(e)?e:[e];return{...t,extends:Ln(o,n)}},gl=()=>Math.random().toString(36).substring(2),bs={},Wp={},vs=e=>bs[e.__hash],ml=(e,t)=>{let r=gl();return A(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(bs[r]=t),t},yl=(e,t)=>e.__hash?t.concat(vs(e)):ml(e,t),xs=(e,t,r,n=new Set,o,s)=>{for(let i of e)P(i)?xs(i,t,r,n,o,s):Kn(i,t,r,n,o,void 0,s);return t},bl=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Kn(a,t,r,n,o,s,i),t},Kn=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(P(e))return xs(e,t,r,n,o,i);let a=s;return A(e)?(a=e,e=ws(e,r)):i&&S(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?bl(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},g2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Wt=(e,t,r,n,o)=>{t=ge(t);for(let s in t){if(g2.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?S(a)&&!P(a)?(r[s]=r[s]||{},zx(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(S(i)&&S(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];Ht(s)?e[s]=Wt(i,a,l,n,c):Wt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(P(i)&&P(a))e[s]=i.concat(a);else if(P(i)&&S(a)){let l=Wt({},i);e[s]=Wt(l,a)}}}}return e},zx=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];S(s)&&!P(s)?(e[o]=e[o]||{},zx(e[o],s,r,n)):e[o]=r}}},gs=(e,t,r)=>e.reduce((n,o,s)=>{let i=ge(o),a=r?r[s]:void 0;return Wt(n,i,t,a)},{}),ws=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(A(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Vp==="test"||Vp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Hp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),ms=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return vs(e)||[];let o=Kn(e,[],t,new Set,r,void 0,n);return r?o:yl(e,o)},qp=(e,t)=>{if(!e)return t;let r=P(e)?e:[e];return Ln(r,t)},Gp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ht(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},vl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Xe([l,...a],e):Xe(e.extends,e)}else Xe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Xe(i,e):Xe(e.extends,e)}else Xe(e.extends,e);return xl(e,t,r),wl(e,t,r),_l(e,t,r),e.component&&Xe(de(e.component,e),e),o.defaultExtends&&Xe(o.defaultExtends,e),Mn(n.__extends)},xl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Xe(t.childProps.extends,e),n.__extends},wl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Xe(s,e),n.__extends},_l=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Xe(o,e),n.__extends},Sl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=Nx(r),a=i?[...n.__extends]:null,l=Mn(n.__extends.map((c,u)=>ws(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&S(p)&&A(h)&&c.set(p,h)}let u=[],d=ms(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=ms(l,o);n.__extendsStack=c}return n.__extendsStack},kl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Nx(r)){let s={},i=n.__extendsNames||[],a=gs(o,s,i),l={};Wt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=gs(o);Wt(e,s)}return e},Vx=(e,t,r={})=>(vl(e,t,r),Sl(e,t,r),kl(e,t,r),e)});function Xp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Yp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Zp(e,t,r){let{context:n}=t||{},[o]=Gn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Ht,Kp=G(()=>{Cl();Ie();Ht=e=>{if(!A(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Ux(e,t){let{props:r,on:n}=t,o=Jr(e.split("on")[1]),s=n[o],i=r[e];O(s)?n[o]=(...a)=>{if(s(...a)!==!1&&O(i))return i(...a)}:n[o]=i}var Wx=G(()=>{os();Ie()});function Al(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&Un(this.context))){let f=Jr(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=S(s)||O(s),l=S(i)||O(i);if(a||l)continue;let c=n.charAt(0);if(qx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=Jp.test(n)||Hx.test(n)||y2(o),d=vr.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function El(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=O(o)||o!=null&&Un(this.context);if(s&&i){Ux(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(qx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=S(l)||O(l),d=S(c)||O(c),f=Jp.test(n)||Hx.test(n),p=vr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Ol(e=this){let t=[];return Al.call(this,e,{cachedKeys:t}),El.call(this,e,{cachedKeys:t}),e}function Qp(e={}){return e.on||(e.on={}),e.props||(e.props={}),Ol.call(this,e)}function th(e,t){this.__element.update({props:e},t)}function As(e){let t={update:th.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Jp,Hx,qx,m2,y2,ks,_s,eh,Cs,Es,Os,Tl,Ss,rh,nh,oh=G(()=>{zn();Wx();rr();Ie();os();hl();Jp=/^[A-Z]/,Hx=/^\d+$/,qx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),m2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),y2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(m2.has(t)||Jp.test(t))return!0;return!1},ks=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};_s=e=>Ge(e)("string","number")?{inheritedString:e}:e,eh=(e,t)=>!e||!t.length?!1:t.includes(e),Cs=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=_s(i);n.unshift(l)}if(s){let l=_s(s);n.unshift(l)}return n};Es=e=>{let t=new Set;return e.filter(r=>!r||xr.has(r)||t.has(r)?!1:(t.add(r),!0))},Os=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(xr.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,ge(o,{exclude:xr}))},{}),As(t),t.props),Tl=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Cs(e,t)]),S(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),P(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Es(o),n.__propsStack},Ss=(e,t)=>{let{__ref:r}=e,n=Tl(e,t);n.length?Os(n,e):(r.__propsStack=[],e.props={})},rh=function(e,t,r){let{__ref:n}=e;if(n.__if)Ss(e,t);else try{Ss(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return As(e),e},nh=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Cs(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=Es(o),n.__propsStack.length&&Os(n.__propsStack,t),t}});var Gx,Rl,Pl,$l,Il,sh,jl,Fl,Dl,ih,Kx=G(()=>{Cl();dl();Zo();oh();zp();Ie();Gx="production",Rl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=qn.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},Pl=(e,t,r)=>{if(e===void 0)return(Gx==="test"||Gx==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Ge(e)("string","number")?Rl(e,t,r):O(e)?{props:e}:e},$l=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Il=(e,t,r,n,o)=>{if(!t)return o;if(tr(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},sh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},jl=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Fl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Dl=(e,t,r)=>{let n=$l(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ys(e,t,r),n.path=jl(e,t,r),n},ih=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Pl(e,t,r);if(!s)return;let i=Il(s,t,r,n,o),a=ps(s,i,r);Dl(s,i,a);let l=ks(s,i,a),c=Fl(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}});var ah,Ll,Ml,Bl,Nl,lh,zl,ch,uh,fh,dh,Xx=G(()=>{Bn();zn();rr();Ie();ah=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Ge(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Ll=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Ml=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Bl=(e,t,r={})=>{let n=A(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Nl=(e,t,r={})=>{let n=e.__ref.__state;if(!zl(e))return;let o=Ll(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Ml(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Bl(n,s,r)},lh=(e,t)=>{let r=e.__ref,n=Nl(e,t);if(n===void 0)return e.state;if(Ge(n)("object","array"))return ge(n);if(Ge(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},zl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Ge(r)("number","string","boolean"))},ch=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},uh=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},fh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ge(n,Qr),s={[e.key]:o},i=S(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?ts(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},dh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,Qr);return}(o?tn:Ke)(e,t,Qr)}});var ph,Yx=G(()=>{ph=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}});var Zx,Vl,Sr,Ul,hh,gh=G(()=>{Ie();hl();Zx=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Vl=(e,t,r,n,o)=>{if(e=Wn(e,t),!!O(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Sr=(e,t,r)=>{if(!t)throw new Error("Element is required");Hn(e,t,r);let n=Zx(e,t);if(n){let{state:o,context:s}=t;return Vl(n,t,o,s,r)}},Ul=(e,t,r,n,o,s)=>{if(e=Wn(e,r),!!O(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},hh=(e,t,r,n)=>{Hn(e,r,t,n);let o=Zx(e,r);if(o){let{state:s,context:i}=r;return Ul(o,t,r,s,i,n)}}});var mh,Ts,yh=G(()=>{mh={},Ts={}});var ew={};K(ew,{setup:()=>v2,supabaseAdapter:()=>Qx});var Jx,b2,v2,bh,x2,Qx,tw=G(()=>{"use strict";Jx=new Map,b2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,v2=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=b2(l,t,o===!1),u=Jx.get(c);return u||(u=await n(l,t,a),u?.auth&&Jx.set(c,u)),!u||!u.auth?null:Qx(u)},bh=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},x2=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Qx=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let l=(r?e.schema(r):e).from(t).select(n||"*");if(l=bh(l,o),l=x2(l,i),s)try{for(let c in s)l.setHeader?l=l.setHeader(c,s[c]):e.rest&&(e.rest.headers[c]=s[c])}catch(c){console.warn("[supabase] setHeader failed:",c.message)}return l},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let a=(r?e.schema(r):e).from(t).update(n);return a=bh(a,o),a.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=bh(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var nw={};K(nw,{restAdapter:()=>rw,setup:()=>_2});var w2,kr,_2,rw,ow=G(()=>{"use strict";w2=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},kr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},_2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return rw(e,t,r,n)},rw=(e,t={},r,n={})=>{let o=r?.token||null,s=u=>{let d={...t,...u};return o&&(d.Authorization=`Bearer ${o}`),d},i=u=>({...s(u),"Content-Type":"application/json"}),a=u=>({...n,...u}),l=(u,d)=>{let f=d||e;if(u&&(u.startsWith("http://")||u.startsWith("https://")))return u;let p=u&&!u.startsWith("/")?"/":"";return`${f}${p}${u||""}`};return{name:"rest",setToken:u=>{o=u},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let u=await kr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return u.error?null:u.data},signIn:async u=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let d=await kr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(u)}));return d.data?.token&&(o=d.data.token),d},signOut:async()=>(r?.signOutUrl&&await kr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:u,params:d,select:f,limit:p,offset:h,order:g,single:m,headers:y,baseUrl:b})=>{let x={...d};return f&&(x.select=f),p&&(x.limit=p),h&&(x.offset=h),m&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),kr(w2(b||e,u||"",x),a({headers:s(y)}))},rpc:({from:u,params:d,headers:f,baseUrl:p})=>kr(l(`rpc/${u}`,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),insert:({from:u,data:d,headers:f,baseUrl:p})=>kr(l(u,p),a({method:"POST",headers:i(f),body:JSON.stringify(d)})),update:({from:u,data:d,params:f,method:p,headers:h,baseUrl:g})=>{let m=f?.id||d?.id,y=m?`${u}/${m}`:u;return kr(l(y,g),a({method:p||"PATCH",headers:i(h),body:JSON.stringify(d)}))},delete:({from:u,params:d,headers:f,baseUrl:p})=>{let h=d?.id,g=h?`${u}/${h}`:u;return kr(l(g,p),a({method:"DELETE",headers:s(f)}))}}}});var iw={};K(iw,{localAdapter:()=>sw,setup:()=>k2});var vh,S2,k2,sw,aw=G(()=>{"use strict";vh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},S2=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},k2=async({data:e,...t})=>sw(e,t),sw=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let h=i(u).filter(g=>vh(g,d));return S2(h,f)},insert:async({from:u,data:d})=>{let f=i(u),h=(Array.isArray(d)?d:[d]).map(g=>{let m={id:g.id||++c,...g};return f.push(m),m});a(u);for(let g of h)l(u,"INSERT",g,null);return{data:Array.isArray(d)?h:h[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(vh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)vh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var Ls={};K(Ls,{createAdapter:()=>E2,default:()=>L2,executeFetch:()=>Ds,fetchPlugin:()=>kh,initAdapterAuth:()=>Gl,parseDuration:()=>Ps,queryClient:()=>D2,registerAdapter:()=>A2,resolveDb:()=>dw});var C2,Wl,fw,A2,E2,dw,Ps,Ne,pw,Rs,O2,Fs,$s,Is,Hl,_h,ql,T2,lw,xh,hw,gw,Xn,cw,R2,uw,P2,Kl,mw,Gl,Sh,ct,kt,js,nn,qt,Cr,$2,I2,j2,wh,F2,Ds,D2,kh,L2,on=G(()=>{"use strict";D();C2=["select","rpc","insert","update","delete","subscribe"],Wl=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),fw=(()=>{if(typeof globalThis<"u"&&globalThis[Wl])return globalThis[Wl];let e={supabase:()=>Promise.resolve().then(()=>(tw(),ew)),rest:()=>Promise.resolve().then(()=>(ow(),nw)),local:()=>Promise.resolve().then(()=>(aw(),iw))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Wl,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Wl]}catch{}return e})(),A2=(e,t)=>{fw[e]=t},E2=e=>{let t={};for(let r of C2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},dw=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=fw[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},Ps=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Ne=new Map,pw=new Map,Rs=new Map,O2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=P2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Fs=e=>Ne.get(e)||null,$s=(e,t,r)=>{let n=Ne.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Ne.set(e,o);let s=pw.get(e);if(s)for(let i of s)O(i)&&i(o);return o},Is=e=>{if(e){let t=Ne.get(e);t&&(t.stale=!0);return}for(let[,t]of Ne)t.stale=!0},Hl=e=>{if(e){Ne.delete(e);return}Ne.clear()},_h=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:A(e)?{staleTime:Ps(e),gcTime:3e5}:{staleTime:Ps(e.stale||e.staleTime)||6e4,gcTime:Ps(e.gc||e.gcTime||e.expire)||3e5,key:e.key},ql=null,T2=()=>{ql||(ql=setInterval(()=>{let e=Date.now();for(let[t,r]of Ne){let n=pw.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Ne.delete(t)}},3e4),ql.unref&&ql.unref())};T2();lw=3,xh=e=>Math.min(1e3*2**e,3e4),hw=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:lw,delay:xh}:typeof t=="number"?{count:t,delay:xh}:{count:t.count??lw,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:xh}},gw=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=O(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=O(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},Xn={focus:new Set,online:new Set},cw=!1,R2=()=>{if(cw||typeof window>"u")return;cw=!0;let e=()=>{for(let r of Xn.focus)r()},t=()=>{for(let r of Xn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},uw=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(A(e))return{from:e,method:"select",query:!0,on:"create"};if(S(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},P2=e=>(!e||O(e),e),Kl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},mw=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=O(s)?s(t,t.state):s}}return n},Gl=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Sh=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await Gl(e,t),e;if(e.__resolved)return e.auth!==!1&&await Gl(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=dw(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await Gl(r,t),r):null},ct=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},kt=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},js=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},nn=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},qt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Cr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let s=await Sh(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:w,page:k,cursor:E,getNextPageParam:j,getPreviousPageParam:_,infinite:$,placeholderData:q,initialData:te,select:F,keepPreviousData:I}=e,Q=A(F)?F:void 0;if(c&&O(t.getQuery)){let z=t.getQuery(s.name||"paths");z&&(Q=z.select||z.length&&z.join(",")||Q)}let oe=mw(u,t,r),ie=_h(d),Nt=hw(e),Kr=Kl(t,r),Ad=Kr?`:${Kr}`:"",Z=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${k?":p"+JSON.stringify(k):""}${Ad}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,te!==void 0)){let z=O(te)?te():te;$s(Z,z,null)}if((l==="select"||l==="rpc")&&Z&&ie){let z=Fs(Z);if(z&&!z.error){let V=Date.now()-z.time,N=z.stale||V>(ie.staleTime||0),U=z.data;if(O(F)&&(U=F(U,t,t.state)),f&&(U=f(U,t,t.state)),nn(t,U,m),!N){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let V=O(q)?q(t,t.state):q;V!==void 0&&nn(t,V,m)}}if(Z&&Rs.has(Z)&&!n.force){let z=Rs.get(Z);try{let V=await Promise.race([z,new Promise((N,U)=>setTimeout(()=>U("DEDUP_TIMEOUT"),15e3))]);if(V?.data!==void 0){let N=V.data;O(F)&&(N=F(N,t,t.state)),f&&(N=f(N,t,t.state)),nn(t,N,m),ct(t,"onFetchComplete",N),kt(e,t,"onFetchComplete",N)}}catch{}return}let Ed=!Fs(Z)?.data;qt(t,{isFetching:!0,isLoading:Ed,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),kt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Xr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Kr});let ue=gw(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let Ae={message:"Not authenticated"};return qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Ae,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Ae),kt(e,t,"onFetchError",Ae),{data:null,error:Ae}}}let z=s[l];if(!O(z))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let V={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},N=Kl(t,r);if(N&&(V.headers={...V.headers,"Accept-Language":N}),k!==void 0){if(S(k))k.offset!==void 0&&(V.offset=k.offset),k.limit!==void 0&&(V.limit=k.limit),k.cursor!==void 0&&(V.params={...V.params,cursor:k.cursor});else if(typeof k=="number"){let U=e.pageSize||y||20;V.offset=(k-1)*U,V.limit=U}}if(E!==void 0&&(V.params={...V.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let U;if(g===!0||e.on==="submit")U=js(t);else if(P(g)){let Ae=js(t);U={};for(let el of g)U[el]=Ae[el]}else t.state?.parse?U=t.state.parse():S(t.state)&&(U={...t.state});f&&(U=f(U,t,t.state)),V.data=U}if(l==="rpc"){let U=oe;if(e.on==="submit"){let Ae=js(t);U=e.transformParams?e.transformParams(Ae,t,t.state):Ae}V.params=U}if(l==="subscribe"){let U=s.subscribe({from:a,params:oe,on:e.subscribeOn},(Ae,el,xN)=>{nn(t,Ae,m),ct(t,"onFetchComplete",Ae),kt(e,t,"onFetchComplete",Ae)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return z(V)},Nt);Z&&Rs.set(Z,ue);try{let z=await ue;if(z?.subscribed)return;let{data:V,error:N}=z||{};if(N){Z&&$s(Z,null,N),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:N,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",N),kt(e,t,"onFetchError",N),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:N.message||N,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr});return}if(V!==void 0){if((l==="select"||l==="rpc")&&Z){let Ae=$s(Z,V,null);Ae.gcTime=ie?.gcTime||3e5}let U=V;$&&P(V)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(V):i.__pages.push(V),U=i.__pages.flat(),j&&(i.__nextPageParam=j(V,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),_&&(i.__prevPageParam=_(V,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),O(F)&&(U=F(U,t,t.state)),f&&(U=f(U,t,t.state)),(!I||U!==void 0)&&nn(t,U,m),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",U),kt(e,t,"onFetchComplete",U),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}}catch(z){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",z),kt(e,t,"onFetchError",z),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}finally{Z&&Rs.delete(Z)}},$2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||Cr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},I2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),R2();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:Ps(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Cr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Kl(t,r),a=O2(e,i),l=Fs(a),c=_h(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Xn.focus.add(s),n.__fetchCleanups.push(()=>Xn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>Cr(e,t,r,{force:!0});Xn.online.add(s),n.__fetchCleanups.push(()=>Xn.online.delete(s))}},j2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():S(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=O(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&nn(e,i,o),s},wh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(nn(e,n,t.as),delete r.__optimisticSnapshot)},F2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Sh(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=js(t);else if(P(l)){let _=js(t);w={};for(let $ of l)w[$]=_[$]}else t.state?.parse?w=t.state.parse():S(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),O(y)&&y(w,t,t.state);let k=m?j2(t,e,w):null;s.__fetching=!0,qt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ct(t,"onFetchStart"),kt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,j=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&wh(t,e);let ie={message:"Not authenticated"};ct(t,"onFetchError",ie),kt(e,t,"onFetchError",ie);return}}let _=o[i];if(!O(_))return;let $={from:a,data:w,headers:p,baseUrl:h};e.params&&($.params=mw(e.params,t,r));let q=Kl(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=hw(e),F=await gw(()=>_($),te),{data:I,error:Q}=F||{};if(Q){k!==void 0&&wh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",Q),O(x)&&x(Q,w,t),O(v)&&v(null,Q,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-j});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ct(t,"onFetchComplete",I),kt(e,t,"onFetchComplete",I),O(b)&&b(I,w,t),O(v)&&v(I,null,w,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-j}),g){let oe=P(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Nt]of Ne)Nt.startsWith(a+":")&&Is(Nt);else Is(ie)}}catch(_){k!==void 0&&wh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:_,status:"error",fetchStatus:"idle"}),ct(t,"onFetchError",_),kt(e,t,"onFetchError",_),O(x)&&x(_,w,t),O(v)&&v(null,_,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:_.message||String(_),durationMs:(typeof performance<"u"?performance.now():Date.now())-j})}finally{s.__fetching=!1}},Ds=(e,t,r,n)=>{if(!e||!n?.fetch)return;let s=de(e,t);if(!s)return;let i=P(s)?s.map(l=>uw(de(l,t),t)).filter(Boolean):[uw(s,t)].filter(Boolean);for(let l of i){let c=l.method==="insert"||l.method==="update"||l.method==="upsert"||l.method==="delete",u=c?F2:Cr;l.on==="create"?u(l,t,n):Promise.resolve().then(()=>{$2({...l,__runner:u},t,n)}),!c&&l.on==="create"&&(l.refetchInterval||l.refetchOnWindowFocus!==!1||l.refetchOnReconnect!==!1)&&I2(l,t,n)}let a=t.__ref;a.refetch=l=>{for(let c of i)Cr(c,t,n,{force:!0,...l})},a.fetchNextPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__nextPageParam;if(c==null)return;let u={...l,cursor:c};Cr(u,t,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let l=i[0];if(!l||!l.infinite)return;let c=a.__prevPageParam;if(c==null)return;let u={...l,cursor:c};Cr(u,t,n,{direction:"previous",force:!0})}},D2={invalidateQueries:e=>{if(!e){Is();return}if(A(e))for(let[t]of Ne)(t.startsWith(e)||t.includes(e))&&Is(t);else if(P(e)){let t=e.join(":");for(let[r]of Ne)r.includes(t)&&Is(r)}},removeQueries:e=>{if(!e){Hl();return}if(A(e))for(let[t]of Ne)(t.startsWith(e)||t.includes(e))&&Hl(t)},getQueryData:e=>Fs(e)?.data??void 0,setQueryData:(e,t)=>{let r=Fs(e),n=O(t)?t(r?.data):t;$s(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Sh(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!O(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=$s(o,i.data,null);a.gcTime=_h(e.cache)?.gcTime||3e5}return i},getCache:()=>Ne,clear:()=>Hl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Ne)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Hl(r))}},kh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Rs.clear(),Ds(t,e,e.state,e.context))}},L2=Ds});function Bs(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Ah(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Eh(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(O(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function Oh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Xl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(S(n)&&o)Xl.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function bw(e){let t=this;if(Sr("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():wr()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=es(t.parent.__ref.__children,t.key)),Sr("remove",t,e)}function Th(e){return this[e]}function Rh(e,t){let r=this;if(e)return r.update(e,t),r}function Ph(e){return e?this.__ref&&this.__ref[e]:this.__ref}function Ns(){return this.getRef("__children").map(e=>this[e])}function zs(){return this.getRef().path}function Us(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=yw();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=yw()),e?t?.[e]:t}function Ws(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Hs(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function qs(e){let t=this.getRoot()?.context;return e?t[e]:t}function Gs(e){let t=this.context;return e?t[e]:t}function Yl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||vr.has(r)&&!ss.has(r)||t.push(r);return t}function Zl(e=[]){let t=this,r={},n=Yl.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else qe(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Ms(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Zl.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>re(a)?Ms.call(a,e,t):a):re(i)&&(n[s]=Ms.call(i,e,t))}return n}function Yn(...e){if(Ar!=="test"&&Ar!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
16
|
-
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(
|
|
17
|
-
${
|
|
8
|
+
`;o+=`${n} ]`}else re(s)?o+=ui(s,t+1):A(s)?o+=ii(s,[`
|
|
9
|
+
`,"'"])?`\`${s}\``:`'${s}'`:o+=s;o+=`,
|
|
10
|
+
`}return o+=`${n}}`,o},i2=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],s2=/^["[{]/,a2=/^(export|import)\s/,Un=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||a2.test(t)||!i2.some(i=>i.test(t)))return!1;let n=t.charCodeAt(0),o=t.includes("=>");return!(n===123&&!o||n===91||s2.test(t)&&!o)},l2=e=>(0,eval)(e),c2=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],i=n,s=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;i<l&&s>0;){let d=e[i];if(d==="/"&&e[i+1]==="/"){let f=e.indexOf(`
|
|
11
|
+
`,i);i=f===-1?l:f;continue}if(d==="/"&&e[i+1]==="*"){let f=e.indexOf("*/",i+2);i=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(i++;i<l;){if(e[i]==="\\"){i+=2;continue}if(e[i]===f){i++;break}if(f==="`"&&e[i]==="$"&&e[i+1]==="{"){i+=2;let p=1;for(;i<l&&p>0;)e[i]==="{"?p++:e[i]==="}"&&p--,i++;continue}i++}continue}if(d==="{"){s++,i++;continue}if(d==="}"){s--,i++;continue}if(s===1&&c.test(e.slice(i))){let f=i,p=0,h=i;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
|
|
12
|
+
`)){h++;break}h++}o.push([f,h]),i=h;continue}i++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},$0=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),i=/await is only valid in async/.test(o),s=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(i){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(s){let l=String(e),c=s[1];for(let u=0;u<5;u++){let d=c2(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
|
|
13
|
+
First 200 chars of source: `+String(e).slice(0,200)),e)}},Ut=(e,t={},r={window:{eval:l2}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,i]=n.pop();for(let s in o){if(!Object.prototype.hasOwnProperty.call(o,s))continue;let a=o[s];if(A(a))Un(a)?i[s]=$0(a,`"${s}"`,r):i[s]=a;else if($(a)){let l=i[s]=[];for(let c=0;c<a.length;c++){let u=a[c];if(A(u))l.push(Un(u)?$0(u,`array index ${c} (prop "${s}")`,r):u);else if(S(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(S(a)){let l=i[s]&&typeof i[s]=="object"&&!$(i[s])?i[s]:i[s]={};n.push([a,l])}else i[s]=a}}return t},u2="Set",f2="Map",d2=e=>!e||typeof e!="object"?e:e.__type===u2&&Array.isArray(e.values)?new Set(e.values):e.__type===f2&&Array.isArray(e.entries)?new Map(e.entries):e,fi=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];A(o)&&Un(o)?r.push([n,o]):t[n]=d2(o)}for(let[n,o]of r)try{let i=Object.keys(t).map(s=>`var ${s} = __gs__[${JSON.stringify(s)}];`).join(`
|
|
14
|
+
`);t[n]=C.eval(`(function(__gs__) { ${i}
|
|
15
|
+
return (${o}); })`)(t)}catch{try{t[n]=C.eval(`(${o})`)}catch{t[n]=o}}return t},ap=(e,t={verbose:!0})=>{try{return e?C.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},lp=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),cl=e=>{for(let t in e)return!1;return!0},cp=e=>S(e)&&cl(e),up=()=>Object.create(null),di=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let i in t)n.includes(i)||!o&&tn(i)||i==="constructor"||i==="prototype"||t[i]!==void 0&&(e[i]=t[i]);return e},rn=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)tn(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Ge=(e,t,r={},n=new WeakMap)=>{if(!re(e)||!re(t)||We(e)||We(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,i=o?o instanceof Set?o:new Set(o):null,s=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||i&&i.has(a)||s&&tn(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];We(c)?e[a]=c:re(l)&&re(c)?e[a]=Ge(l,c,r,n):c!==void 0&&(e[a]=c)}return e},ul=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let i=0;i<n.length;i++){let s=n[i];if(!Object.prototype.hasOwnProperty.call(t,s)||!ul(e[s],t[s],r))return!1}return!0},p2=new Set(["node","__ref"]),fp=(e,t,r=p2)=>{if(e===t)return!0;if(!re(e)||!re(t)||We(e)||We(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function i(s,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(s,l))return!1;let c=a[l],u=s[l];if(We(c)||We(u)){if(c!==u)return!1}else if(re(c)&&re(u)){if(!i(u,c))return!1}else if(c!==u)return!1}return!0}return i(e,t)},dp=(e,t)=>{if(t==null)return e;if(qe(t)("string","number"))delete e[t];else if($(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},fl=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=fl(e[r]));return t},pp=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},hp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},gp=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},mp=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},yp=e=>{let r=[],n=0;for(let o=0;o<e.length;o++)if(r.length<2)r.push(e[o]);else if(e[o]===r[o%2]?n++:(r=[e[o-1],e[o]],n=1),n>=20)return(P0==="test"||P0==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},bp=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},xp=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}});var pi,hi,gi,dl=q(()=>{"use strict";rr();pi=(function(){let e=0;function t(){return e++,e}return t})(),hi=pi,gi=(e,t,r)=>(de(r,e)||r||e.key||pi()).toString()});var wt,vp,_r,pl,_p,wp,Sp,wr,kp,nn,Cp=q(()=>{"use strict";wt="production",vp=wt,_r=(e=wt)=>e==="production",pl=(e=wt)=>e==="testing"||e==="test",_p=pl,wp=(e=wt)=>e==="staging",Sp=(e=wt)=>e==="local",wr=(e=wt)=>e==="development"||e==="dev"||e==="local",kp=(e,t=wt)=>t[e],nn=(e=wt)=>!_r(e)});function mi(e,t,r){let n;return function(){let o=this,i=arguments,s=function(){n=null,r||e.apply(o,i)},a=r&&!n;clearTimeout(n),n=setTimeout(s,t),a&&e.apply(o,i)}}function Tp(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ap,Ep,h2,Op,Wn,Hn,St,qn=q(()=>{"use strict";Ap=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Ep=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},h2=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Op=e=>h2.test(e),Wn=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Hn=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},St=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let i of n)typeof i[e]=="function"&&(i[e](t,...r),o=!0);return o}});var Rp,F0=q(()=>{"use strict";$e();rr();Rp=(e,t)=>{let{__ref:r}=e,n=e.if;if(O(n)){let o;try{o=n(e,e.state,e.context)}catch(i){typeof console<"u"&&console.warn("[DOMQL] if condition error:",i),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?de(n,e)?r.__if=!0:delete r.__if:r.__if=!0}});var Pp,$p,j0=q(()=>{"use strict";Pp=(e,...t)=>{e&&t.map(r=>console.log(r))},$p=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function Lp(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function Mp(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var Ip,Fp,jp,Dp,D0=q(()=>{"use strict";$e();Zo();Ip=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Fp=(e,t,r=365)=>{if(Pe(pe)||Pe(pe.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;pe.cookie=`${e}=${t};${o};path=/`},jp=e=>{if(Pe(pe)||Pe(pe.cookie))return;let t=`${e}=`,n=decodeURIComponent(pe.cookie).split(";");for(let o=0;o<n.length;o++){let i=n[o];for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return""},Dp=e=>{Pe(pe)||Pe(pe.cookie)||(pe.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Gn,L0,Np,Bp=q(()=>{"use strict";Gn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},L0=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Np=e=>Gn.body.has(e)});var Vp,M0,Kn,xi,Ke,zp,hl,vi,Up,_i,gl,ml,wi,yl,Xn,g2,Wt,N0,yi,Si,Wp,bi,Hp,qp,bl,xl,vl,_l,wl,Sl,B0,kl=q(()=>{"use strict";Bn();Gp();rr();$e();Vp="production",M0=e=>e.sourcemap!==!1&&Vp!=="production",Kn=e=>{if(e.includes("+"))return e.split("+").filter(Ht);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!Ht(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},xi=(e,t,r)=>{let n=[],o=Kn(r);o&&(n=[...o]);let i=e.extends;return i&&(n=$(i)?[...n,...i]:[...n,i]),n},Ke=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,i=t.context;if(o&&i?.components&&!Array.isArray(e)&&typeof e=="string"){let s=`${e}.${o}`;i.components[s]&&(e=s)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},zp=(e,t)=>{if(!e)return t;let{extends:r}=t,n=$(r)?r:[r],o=$(e)?e:[e];return{...t,extends:Mn(o,n)}},hl=()=>Math.random().toString(36).substring(2),vi={},Up={},_i=e=>vi[e.__hash],gl=(e,t)=>{let r=hl();return A(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(vi[r]=t),t},ml=(e,t)=>e.__hash?t.concat(_i(e)):gl(e,t),wi=(e,t,r,n=new Set,o,i)=>{for(let s of e)$(s)?wi(s,t,r,n,o,i):Xn(s,t,r,n,o,void 0,i);return t},yl=(e,t,r,n=new Set,o,i,s)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(i)),a&&Xn(a,t,r,n,o,i,s),t},Xn=(e,t,r,n=new Set,o,i,s)=>{if(!e||n.has(e))return t;if($(e))return wi(e,t,r,n,o,s);let a=i;return A(e)?(a=e,e=Si(e,r)):s&&S(e)&&s.has(e)&&(a=s.get(e)),n.add(e),e?.extends?yl(e,t,r,n,o,a,s):e&&(t.push(e),o&&o.push(a)),t},g2=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Wt=(e,t,r,n,o)=>{t=ge(t);for(let i in t){if(g2.has(i))continue;let s=e[i],a=t[i];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,i)&&i!=="__proto__"&&i!=="constructor"&&i!=="prototype"){if(s===void 0)e[i]=a,r&&n?S(a)&&!$(a)?(r[i]=r[i]||{},N0(r[i],a,n)):r[i]=n:r&&o?.[i]&&(r[i]=o[i]);else if(S(s)&&S(a)){let l=r?r[i]=r[i]||{}:void 0,c=o?.[i];Ht(i)?e[i]=Wt(s,a,l,n,c):Wt(s,a,l,n,c)}if(i==="extends"||i==="childExtends"||i==="childExtendsRecursive"){if($(s)&&$(a))e[i]=s.concat(a);else if($(s)&&S(a)){let l=Wt({},s);e[i]=Wt(l,a)}}}}return e},N0=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let i=t[o];S(i)&&!$(i)?(e[o]=e[o]||{},N0(e[o],i,r,n)):e[o]=r}}},yi=(e,t,r)=>e.reduce((n,o,i)=>{let s=ge(o),a=r?r[i]:void 0;return Wt(n,s,t,a)},{}),Si=(e,t,r={},n)=>{let o=t?.components||r.components,i=t?.pages||r.pages;if(A(e)){let s=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=i&&e.charCodeAt(0)===47&&i[e];if(s)return s;if(a)return a;r.verbose&&(Vp==="test"||Vp==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},Wp=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),bi=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return _i(e)||[];let i=Xn(e,[],t,new Set,r,void 0,n);return r?i:ml(e,i)},Hp=(e,t)=>{if(!e)return t;let r=$(e)?e:[e];return Mn(r,t)},qp=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Ht(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},bl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[s,...a]=e.extends;if(typeof s=="string"&&i&&o?.components){let l=`${s}.${i}`;o.components[l]?Ke([l,...a],e):Ke(e.extends,e)}else Ke(e.extends,e)}else if(typeof e.extends=="string"&&i&&o?.components){let s=`${e.extends}.${i}`;o.components[s]?Ke(s,e):Ke(e.extends,e)}else Ke(e.extends,e);return xl(e,t,r),vl(e,t,r),_l(e,t,r),e.component&&Ke(de(e.component,e),e),o.defaultExtends&&Ke(o.defaultExtends,e),Nn(n.__extends)},xl=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Ke(t.childProps.extends,e),n.__extends},vl=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,i=t.childExtends;return!o&&i&&Ke(i,e),n.__extends},_l=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,i=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,s=e.key==="__text";return o&&!s&&!i&&Ke(o,e),n.__extends},wl=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant,s=M0(r),a=s?[...n.__extends]:null,l=Nn(n.__extends.map((c,u)=>Si(c,o,r,u===0&&i)));if(s){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&S(p)&&A(h)&&c.set(p,h)}let u=[],d=bi(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=bi(l,o);n.__extendsStack=c}return n.__extendsStack},Sl=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(M0(r)){let i={},s=n.__extendsNames||[],a=yi(o,i,s),l={};Wt(e,a,l,void 0,i),n.__sourcemap=l}else{let i=yi(o);Wt(e,i)}return e},B0=(e,t,r={})=>(bl(e,t,r),wl(e,t,r),Sl(e,t,r),e)});function Kp(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function Xp(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function Yp(e,t,r){let{context:n}=t||{},[o]=Kn(r),i=r||o;return n?.components?.[i]||n?.pages?.[i]}var Ht,Gp=q(()=>{"use strict";kl();$e();Ht=e=>{if(!A(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function V0(e,t){let{props:r,on:n}=t,o=Qr(e.split("on")[1]),i=n[o],s=r[e];O(i)?n[o]=(...a)=>{if(i(...a)!==!1&&O(s))return s(...a)}:n[o]=s}var z0=q(()=>{"use strict";si();$e()});function Cl(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(O(o)||o!=null&&Wn(this.context))){let h=Qr(n.slice(2));e.on&&(e.on[h]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let a=this.define?.[n],l=this.context?.define?.[n],c=S(a)||O(a),u=S(l)||O(l);if(c||u)continue;let d=n.charAt(0);if(W0.has(d)){e.props[n]=o,delete e[n],r.push(n);continue}let f=Zp.test(n)||U0.test(n)||y2(o),p=xr.has(n);!f&&!p&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Al(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],i=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,s=O(o)||o!=null&&Wn(this.context);if(i&&s){V0(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(W0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=S(l)||O(l),d=S(c)||O(c),f=Zp.test(n)||U0.test(n),p=xr.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function El(e=this){let t=[];return Cl.call(this,e,{cachedKeys:t}),Al.call(this,e,{cachedKeys:t}),e}function Jp(e={}){return e.on||(e.on={}),e.props||(e.props={}),El.call(this,e)}function eh(e,t){this.__element.update({props:e},t)}function Oi(e){let t={update:eh.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var Zp,U0,W0,m2,y2,Ai,ki,Qp,Ei,Ti,Ri,Ol,Ci,th,rh,nh=q(()=>{"use strict";zn();z0();rr();$e();si();qn();Zp=/^[A-Z]/,U0=/^\d+$/,W0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),m2=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),y2=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(m2.has(t)||Zp.test(t))return!0;return!1},Ai=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return re(n)?{...n}:(o.__propsStack.push(n),{})};ki=e=>qe(e)("string","number")?{inheritedString:e}:e,Qp=(e,t)=>!e||!t.length?!1:t.includes(e),Ei=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let i=o[e.key],s=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(s&&!a){let l=ki(s);n.unshift(l)}if(i){let l=ki(i);n.unshift(l)}return n};Ti=e=>{let t=new Set;return e.filter(r=>!r||vr.has(r)||t.has(r)?!1:(t.add(r),!0))},Ri=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(vr.has(o))return n;for(;O(o);)o=de(o,t);return fe(n,ge(o,{exclude:vr}))},{}),Oi(t),t.props),Ol=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Ei(e,t)]),S(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),$(n.__extendsStack))for(let i=0;i<n.__extendsStack.length;i++){let s=n.__extendsStack[i];s.props&&s.props!==r&&o.push(s.props)}return n.__propsStack=Ti(o),n.__propsStack},Ci=(e,t)=>{let{__ref:r}=e,n=Ol(e,t);n.length?Ri(n,e):(r.__propsStack=[],e.props={})},th=function(e,t,r){let{__ref:n}=e;if(n.__if)Ci(e,t);else try{Ci(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return Oi(e),e},rh=(e,t,r)=>{let{__ref:n}=t,i=[...n.__propsStack||[]],s=Ei(t,r);return s.length&&(i=[...s,...i]),e&&(i=[e,...i]),n.__propsStack=Ti(i),n.__propsStack.length&&Ri(n.__propsStack,t),t}});var H0,Tl,Rl,Pl,$l,oh,Il,Fl,jl,ih,q0=q(()=>{"use strict";kl();dl();Qo();nh();Bp();$e();H0="production",Tl=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,i=Gn.body.has(r)&&r;return{text:e,tag:n||o||i||"string"}},Rl=(e,t,r)=>{if(e===void 0)return(H0==="test"||H0==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:qe(e)("string","number")?Tl(e,t,r):O(e)?{props:e}:e},Pl=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},$l=(e,t,r,n,o)=>{if(!t)return o;if(tr(t)){let i={key:":root",node:t};return o[`${r}_parent`]=i,i}return t},oh=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Il=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Fl=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),jl=(e,t,r)=>{let n=Pl(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=xi(e,t,r),n.path=Il(e,t,r),n},ih=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:Rl(e,t,r);if(!s)return;let a=$l(s,t,r,n,o),l=gi(s,a,r);jl(s,a,l);let c=Ai(s,a,l),u=Fl(s,a,l,n,o),d=s.on||{};return{...s,key:l,props:c,parent:a,context:u,on:d}}});var sh,Dl,Ll,Ml,Nl,ah,Bl,lh,ch,uh,fh,G0=q(()=>{"use strict";Bn();zn();rr();$e();sh=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return qe(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Dl=(e,t)=>{if(!e.includes("~/"))return;if(e.split("~/").length>1)return t.root},Ll=(e,t)=>{if(!e.includes("../"))return;let n=e.split("../").length-1;for(let o=0;o<n;o++){if(!t.parent)return null;t=t.parent}return t},Ml=(e,t,r={})=>{let n=A(e)?e.split("/"):[e],o=n.length-1;for(let i=0;i<o;i++){let s=n[i],a=n[i+1];if(s==="__proto__"||a==="__proto__")return;let l=t[s];l||(l=t[s]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Nl=(e,t,r={})=>{let o=e.__ref.__state;if(!Bl(e))return;let i=Dl(o,t.state),s=t.state;if(i)s=i,o=o.replaceAll("~/","");else{let a=Ll(o,t.state);a&&(s=a,o=o.replaceAll("../",""))}if(s)return Ml(o,s,r)},ah=(e,t)=>{let r=e.__ref,n=Nl(e,t);if(n===void 0)return e.state;if(qe(n)("object","array"))return ge(n);if(qe(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Bl=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&qe(r)("number","string","boolean"))},lh=function(e){return re(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},ch=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,i=r.length-1;for(let s=0;s<=i;s++)o[r[s]]=s===i?t||{}:{},o=o[r[s]];return n},uh=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=ge(n,en),i={[e.key]:o},s=S(n.__depends)?{...n.__depends,...i}:i;return Array.isArray(n)?ni(n,{...Object.getPrototypeOf(n),__depends:s}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:s}),o},fh=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){fe(e,t,en);return}(o?rn:Ge)(e,t,en)}});var dh,K0=q(()=>{"use strict";dh=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,i=n?.globalScope;if(!e.scope)o?e.scope=o:i?e.scope=Object.create(i):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let s=o||i;s&&Object.setPrototypeOf(e.scope,s)}}});var X0,Vl,Sr,zl,ph,hh=q(()=>{"use strict";$e();qn();X0=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Vl=(e,t,r,n,o)=>{if(e=Hn(e,t),!!O(e))try{let i=e.call(t,t,r||t.state,n||t.context,o);return i&&typeof i.then=="function"&&i.catch(s=>{t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",s.message):console.error("[DOMQL] Async event error:",s)}),i}catch(i){if(t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",i.message):console.error("[DOMQL] Event handler error:",i),t.context?.strictMode)throw i}},Sr=(e,t,r)=>{if(!t)throw new Error("Element is required");St(e,t,r);let n=X0(e,t);if(n){let{state:o,context:i}=t;return Vl(n,t,o,i,r)}},zl=(e,t,r,n,o,i)=>{if(e=Hn(e,r),!!O(e))try{let s=e.call(r,t,r,n||r.state,o||r.context,i);return s&&typeof s.then=="function"&&s.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),s}catch(s){if(r.error=s,console.error("[DOMQL] Event update error:",s),r.context?.strictMode)throw s}},ph=(e,t,r,n)=>{St(e,r,t,n);let o=X0(e,r);if(o){let{state:i,context:s}=r;return zl(o,t,r,i,s,n)}}});var gh,Pi,mh=q(()=>{"use strict";gh={},Pi={}});var J0={};G(J0,{setup:()=>x2,supabaseAdapter:()=>Z0});var Y0,b2,x2,yh,v2,Z0,Q0=q(()=>{Y0=new Map,b2=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,x2=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:i,adapter:s,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=b2(l,t,o===!1),u=Y0.get(c);return u||(u=await n(l,t,a),u?.auth&&Y0.set(c,u)),!u||!u.auth?null:Z0(u)},yh=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},v2=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let i of n){let s=typeof i=="string"?i:i.by;e=e.order(s,{ascending:i.asc!==!1})}else{let i=typeof n=="string"?n:n.by;e=e.order(i,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},Z0=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:i,...s})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=yh(a,o),a=v2(a,s),i)try{for(let l in i)a.setHeader?a=a.setHeader(l,i[l]):e.rest&&(e.rest.headers[l]=i[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:i})=>{let s=(r?e.schema(r):e).from(t).update(n);return s=yh(s,o),s.select(i||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=yh(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let i=n||"*",s=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:i,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(s)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})});var t_={};G(t_,{restAdapter:()=>e_,setup:()=>w2});var _2,kr,w2,e_,r_=q(()=>{_2=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let i in r){let s=r[i];s!=null&&o.searchParams.set(i,typeof s=="object"?JSON.stringify(s):s)}return o.toString()},kr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},w2=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return e_(e,t,r,n)},e_=(e,t={},r,n={})=>{let o=r?.token||null,i=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},s=c=>({...i(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await kr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await kr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:s(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await kr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:i()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),kr(_2(y||e,c||"",b),a({headers:i(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>kr(l(`rpc/${c}`,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>kr(l(c,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return kr(l(m,h),a({method:f||"PATCH",headers:s(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return kr(l(h,f),a({method:"DELETE",headers:i(d)}))}}}});var o_={};G(o_,{localAdapter:()=>n_,setup:()=>k2});var bh,S2,k2,n_,i_=q(()=>{bh=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},S2=(e,{order:t,limit:r,offset:n,single:o})=>{let i=[...e];if(t){let s=typeof t=="string"?t:t.by,a=t.asc!==!1;i.sort((l,c)=>l[s]<c[s]?a?-1:1:l[s]>c[s]?a?1:-1:0)}return n&&(i=i.slice(n)),r&&(i=i.slice(0,r)),o?{data:i[0]||null,error:null}:{data:i,error:null}},k2=async({data:e,...t})=>n_(e,t),n_=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",i=t.prefix||"smbls_db_",s=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(i+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(i+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=s(u).filter(h=>bh(h,d));return S2(p,f)},insert:async({from:u,data:d})=>{let f=s(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=s(u),h=[];for(let g=0;g<p.length;g++)if(bh(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=s(u),p=[];for(let h=f.length-1;h>=0;h--)bh(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}});var Ni={};G(Ni,{createAdapter:()=>O2,default:()=>M2,executeFetch:()=>Mi,fetchPlugin:()=>Sh,initAdapterAuth:()=>ql,parseDuration:()=>Ii,queryClient:()=>L2,registerAdapter:()=>E2,resolveDb:()=>u_});var C2,A2,Ul,c_,E2,O2,u_,Ii,Ne,f_,$i,T2,Li,Fi,ji,Wl,_h,Hl,R2,s_,xh,d_,p_,Yn,a_,P2,l_,$2,Gl,h_,ql,wh,lt,kt,Di,on,qt,Cr,I2,F2,j2,vh,D2,Mi,L2,Sh,M2,sn=q(()=>{M();C2=["select","rpc","insert","update","delete","subscribe"],A2={supabase:()=>Promise.resolve().then(()=>(Q0(),J0)),rest:()=>Promise.resolve().then(()=>(r_(),t_)),local:()=>Promise.resolve().then(()=>(i_(),o_))},Ul=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),c_=(()=>{if(typeof globalThis<"u"&&globalThis[Ul])return globalThis[Ul];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ul,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ul]}catch{}return e})(),E2=(e,t)=>{c_[e]=t},O2=e=>{let t={};for(let r of C2)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},u_=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=c_[n]||A2[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let i=await o();if(!i||typeof i.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(i||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return i.setup(r)},Ii=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Ne=new Map,f_=new Map,$i=new Map,T2=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=$2(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Li=e=>Ne.get(e)||null,Fi=(e,t,r)=>{let n=Ne.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Ne.set(e,o);let i=f_.get(e);if(i)for(let s of i)O(s)&&s(o);return o},ji=e=>{if(e){let t=Ne.get(e);t&&(t.stale=!0);return}for(let[,t]of Ne)t.stale=!0},Wl=e=>{if(e){Ne.delete(e);return}Ne.clear()},_h=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:A(e)?{staleTime:Ii(e),gcTime:3e5}:{staleTime:Ii(e.stale||e.staleTime)||6e4,gcTime:Ii(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Hl=null,R2=()=>{Hl||(Hl=setInterval(()=>{let e=Date.now();for(let[t,r]of Ne){let n=f_.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Ne.delete(t)}},3e4),Hl.unref&&Hl.unref())};R2();s_=3,xh=e=>Math.min(1e3*2**e,3e4),d_=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:s_,delay:xh}:typeof t=="number"?{count:t,delay:xh}:{count:t.count??s_,delay:O(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:xh}},p_=async(e,t)=>{let{count:r,delay:n}=t,o;for(let i=0;i<=r;i++)try{let s=await e();if(s?.error){if(o=s.error,i<r){let a=O(n)?n(i,o):n;await new Promise(l=>setTimeout(l,a));continue}return s}return s}catch(s){if(o=s,i<r){let a=O(n)?n(i,s):n;await new Promise(l=>setTimeout(l,a));continue}throw s}return{data:null,error:o}},Yn={focus:new Set,online:new Set},a_=!1,P2=()=>{if(a_||typeof window>"u")return;a_=!0;let e=()=>{for(let r of Yn.focus)r()},t=()=>{for(let r of Yn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},l_=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(A(e))return{from:e,method:"select",query:!0,on:"create"};if(S(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},$2=e=>(!e||O(e),e),Gl=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},h_=(e,t,r)=>{let n;if(!e)n=void 0;else if(O(e))n=e(t,t.state);else{n={};for(let o in e){let i=e[o];n[o]=O(i)?i(t,t.state):i}}return n},ql=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let i=t.state?.root;i?.update&&i.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},wh=async(e,t)=>{if(O(e.select))return e.auth!==!1&&await ql(e,t),e;if(e.__resolved)return e.auth!==!1&&await ql(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=u_(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await ql(r,t),r):null},lt=(e,t,...r)=>{let n=O(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},kt=(e,t,r,...n)=>{let o=e&&O(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Di=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[i,s]of o.entries())t[i]=s;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let i=n[o],s=i.name||i.getAttribute("name");s&&(i.type==="checkbox"?t[s]=i.checked:i.type==="file"?t[s]=i.files:t[s]=i.value)}return t},on=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),i=o&&e.state?.root||e.state;if(i?.update)if(o){let s=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&s in t?i.update(t,{preventFetch:!0,...n}):i.update({[s]:t},{preventFetch:!0,...n})}else{let s=r?{[r]:t}:t;i.update(s,{preventFetch:!0,...n})}},qt=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},Cr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||O(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||O(e.skip)&&e.skip(t,t.state))return;let i=await wh(o,r);if(!i||!t.__ref)return;let s=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:k,cursor:E,getNextPageParam:j,getPreviousPageParam:w,infinite:I,placeholderData:H,initialData:te,select:D,keepPreviousData:F}=e,Q=A(D)?D:void 0;if(c&&O(t.getQuery)){let z=t.getQuery(i.name||"paths");z&&(Q=z.select||z.length&&z.join(",")||Q)}let oe=h_(u,t,r),se=_h(d),Bt=d_(e),Kr=Gl(t,r),Cd=Kr?`:${Kr}`:"",Z=se?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${I?":infinite":""}${k?":p"+JSON.stringify(k):""}${Cd}`:null;if(!s.__fetchInitialized&&Z&&(s.__fetchInitialized=!0,te!==void 0)){let z=O(te)?te():te;Fi(Z,z,null)}if((l==="select"||l==="rpc")&&Z&&se){let z=Li(Z);if(z&&!z.error){let L=Date.now()-z.time,X=z.stale||L>(se.staleTime||0),R=z.data;if(O(D)&&(R=D(R,t,t.state)),f&&(R=f(R,t,t.state)),on(t,R,m),!X){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(H!==void 0){let L=O(H)?H(t,t.state):H;L!==void 0&&on(t,L,m)}}if(Z&&$i.has(Z)&&!n.force){let z=$i.get(Z);try{let L=await Promise.race([z,new Promise((X,R)=>setTimeout(()=>R("DEDUP_TIMEOUT"),15e3))]);if(L?.data!==void 0){let X=L.data;O(D)&&(X=D(X,t,t.state)),f&&(X=f(X,t,t.state)),on(t,X,m),lt(t,"onFetchComplete",X),kt(e,t,"onFetchComplete",X)}}catch{}return}let Ad=!Li(Z)?.data;qt(t,{isFetching:!0,isLoading:Ad,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),lt(t,"onFetchStart"),kt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Xr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Kr});let Yo=p_(async()=>{if(h!==!1&&i.auth!==!1&&i.getSession){let R=await i.getSession();if(h===!0&&!R){let ae={message:"Not authenticated"};return qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ae,status:"error",fetchStatus:"idle"}),lt(t,"onFetchError",ae),kt(e,t,"onFetchError",ae),{data:null,error:ae}}}let z=i[l];if(!O(z))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let L={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},X=Gl(t,r);if(X&&(L.headers={...L.headers,"Accept-Language":X}),k!==void 0){if(S(k))k.offset!==void 0&&(L.offset=k.offset),k.limit!==void 0&&(L.limit=k.limit),k.cursor!==void 0&&(L.params={...L.params,cursor:k.cursor});else if(typeof k=="number"){let R=e.pageSize||y||20;L.offset=(k-1)*R,L.limit=R}}if(E!==void 0&&(L.params={...L.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let R;if(g===!0||e.on==="submit")R=Di(t);else if($(g)){let ae=Di(t);R={};for(let Yr of g)R[Yr]=ae[Yr]}else t.state?.parse?R=t.state.parse():S(t.state)&&(R={...t.state});f&&(R=f(R,t,t.state)),L.data=R}if(l==="rpc"){let R=oe;if(e.on==="submit"){let ae=Di(t);R=e.transformParams?e.transformParams(ae,t,t.state):ae}L.params=R}if(l==="subscribe"){let R=i.subscribe({from:a,params:oe,on:e.subscribeOn},(ae,Yr,qP)=>{on(t,ae,m),lt(t,"onFetchComplete",ae),kt(e,t,"onFetchComplete",ae)});return s.__unsubscribe=R,{data:null,error:null,subscribed:!0}}return z(L)},Bt);Z&&$i.set(Z,Yo);try{let z=await Yo;if(z?.subscribed)return;let{data:L,error:X}=z||{};if(X){Z&&Fi(Z,null,X),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:X,status:"error",fetchStatus:"idle"}),lt(t,"onFetchError",X),kt(e,t,"onFetchError",X),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:X.message||X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr});return}if(L!==void 0){if((l==="select"||l==="rpc")&&Z){let ae=Fi(Z,L,null);ae.gcTime=se?.gcTime||3e5}let R=L;I&&$(L)&&(s.__pages||(s.__pages=[]),n.direction==="previous"?s.__pages.unshift(L):s.__pages.push(L),R=s.__pages.flat(),j&&(s.__nextPageParam=j(L,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),w&&(s.__prevPageParam=w(L,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),O(D)&&(R=D(R,t,t.state)),f&&(R=f(R,t,t.state)),(!F||R!==void 0)&&on(t,R,m),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),lt(t,"onFetchComplete",R),kt(e,t,"onFetchComplete",R),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}}catch(z){qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),lt(t,"onFetchError",z),kt(e,t,"onFetchError",z),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}finally{Z&&$i.delete(Z)}},I2=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let i=e.__runner||Cr;if(n==="submit"){let s=l=>{l.preventDefault(),i(e,t,r)},a=t.node;a&&(a.addEventListener("submit",s),o.__fetchListeners.push(()=>a.removeEventListener("submit",s)))}else if(n==="click"){let s=()=>i(e,t,r),a=t.node;a&&(a.addEventListener("click",s),o.__fetchListeners.push(()=>a.removeEventListener("click",s)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>i(e,t,r))},F2=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),P2();let o=e.refetchInterval;if(o){let i=typeof o=="number"?o:Ii(o);if(i>0){let s=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Cr(e,t,r,{force:!0})},i);n.__fetchCleanups.push(()=>clearInterval(s))}}if(e.refetchOnWindowFocus!==!1){let i=()=>{let s=Gl(t,r),a=T2(e,s),l=Li(a),c=_h(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&Cr(e,t,r,{force:!0})};Yn.focus.add(i),n.__fetchCleanups.push(()=>Yn.focus.delete(i))}if(e.refetchOnReconnect!==!1){let i=()=>Cr(e,t,r,{force:!0});Yn.online.add(i),n.__fetchCleanups.push(()=>Yn.online.delete(i))}},j2=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,i=e.state?.parse?e.state.parse():S(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=i;let s=O(t.optimistic)?t.optimistic(r,i,e):t.optimistic;return s!==void 0&&on(e,s,o),i},vh=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(on(e,n,t.as),delete r.__optimisticSnapshot)},D2=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await wh(n,r);if(!o)return;let i=t.__ref,{method:s,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=Di(t);else if($(l)){let w=Di(t);_={};for(let I of l)_[I]=w[I]}else t.state?.parse?_=t.state.parse():S(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),O(y)&&y(_,t,t.state);let k=m?j2(t,e,_):null;i.__fetching=!0,qt(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),lt(t,"onFetchStart"),kt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,j=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:s});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&vh(t,e);let se={message:"Not authenticated"};lt(t,"onFetchError",se),kt(e,t,"onFetchError",se);return}}let w=o[s];if(!O(w))return;let I={from:a,data:_,headers:p,baseUrl:h};e.params&&(I.params=h_(e.params,t,r));let H=Gl(t,r);H&&(I.headers={...I.headers,"Accept-Language":H});let te=d_(e),D=await p_(()=>w(I),te),{data:F,error:Q}=D||{};if(Q){k!==void 0&&vh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),lt(t,"onFetchError",Q),O(v)&&v(Q,_,t),O(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-j});return}if(delete i.__optimisticSnapshot,F!==void 0){let oe=u?{[u]:F}:F;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),lt(t,"onFetchComplete",F),kt(e,t,"onFetchComplete",F),O(b)&&b(F,_,t),O(x)&&x(F,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:s,durationMs:(typeof performance<"u"?performance.now():Date.now())-j}),g){let oe=$(g)?g:[g];for(let se of oe)if(se===!0||se==="*")for(let[Bt]of Ne)Bt.startsWith(a+":")&&ji(Bt);else ji(se)}}catch(w){k!==void 0&&vh(t,e),qt(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),lt(t,"onFetchError",w),kt(e,t,"onFetchError",w),O(v)&&v(w,_,t),O(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-j})}finally{i.__fetching=!1}},Mi=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=de(e,t);if(!o)return;let i=$(o)?o.map(a=>l_(de(a,t),t)).filter(Boolean):[l_(o,t)].filter(Boolean);for(let a of i){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?D2:Cr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{I2({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&F2(a,t,n)}let s=t.__ref;s.refetch=a=>{for(let l of i)Cr(l,t,n,{force:!0,...a})},s.fetchNextPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__nextPageParam;if(l==null)return;let c={...a,cursor:l};Cr(c,t,n,{direction:"next",force:!0})},s.fetchPreviousPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__prevPageParam;if(l==null)return;let c={...a,cursor:l};Cr(c,t,n,{direction:"previous",force:!0})}},L2={invalidateQueries:e=>{if(!e){ji();return}if(A(e))for(let[t]of Ne)(t.startsWith(e)||t.includes(e))&&ji(t);else if($(e)){let t=e.join(":");for(let[r]of Ne)r.includes(t)&&ji(r)}},removeQueries:e=>{if(!e){Wl();return}if(A(e))for(let[t]of Ne)(t.startsWith(e)||t.includes(e))&&Wl(t)},getQueryData:e=>Li(e)?.data??void 0,setQueryData:(e,t)=>{let r=Li(e),n=O(t)?t(r?.data):t;Fi(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await wh(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,i=n[e.method||"select"];if(!O(i))return;let s=await i({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(s?.data!==void 0&&!s?.error){let a=Fi(o,s.data,null);a.gcTime=_h(e.cache)?.gcTime||3e5}return s},getCache:()=>Ne,clear:()=>Wl(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Ne)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||Wl(r))}},Sh={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||$i.clear(),Mi(t,e,e.state,e.context))}},M2=Mi});function Vi(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Ch(e){let t=this,{parent:r}=t;if(O(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function Ah(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let i=n[o],s=t[i];if(i===e)return s;if(O(e)){let l=e(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(e);if(a)return a}}function Eh(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let i=0;i<o.length;i++){let s=o[i],a=r[s];if(s===e)t.push(a);else if(O(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function Kl(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(S(n)&&o)Kl.call(o,n);else if(n!=null){let i=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(i,s,"important")}}return t}}function m_(e){let t=this;if(Sr("beforeRemove",t,e)===!1)return t;O(t.node.remove)?t.node.remove():_r()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=ri(t.parent.__ref.__children,t.key)),Sr("remove",t,e)}function Oh(e){return this[e]}function Th(e,t){let r=this;if(e)return r.update(e,t),r}function Rh(e){return e?this.__ref&&this.__ref[e]:this.__ref}function zi(){return this.getRef("__children").map(t=>this[t])}function Ui(){return this.getRef().path}function Hi(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=g_();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=O(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=g_()),e?t?.[e]:t}function qi(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function Gi(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Ki(e){let t=this.getRoot()?.context;return e?t[e]:t}function Xi(e){let t=this.context;return e?t[e]:t}function Xl(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||xr.has(r)&&!ai.has(r)||t.push(r);return t}function Yl(e=[]){let t=this,r={},n=Xl.call(t),o=n.includes("children"),i=e.length?new Set(e):null;for(let s=0;s<n.length;s++){let a=n[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=O(l&&l.parse)?l.parse():l;r[a]=O(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else He(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function Bi(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=Yl.call(r,e),o=e.length?new Set(e):null;for(let i in n){if(o&&o.has(i)||!Object.prototype.hasOwnProperty.call(r,i))continue;let s=n[i];Array.isArray(s)?n[i]=s.map(a=>re(a)?Bi.call(a,e,t):a):re(s)&&(n[i]=Bi.call(s,e,t))}return n}function Zn(...e){if(Ar!=="test"&&Ar!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
16
|
+
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function $h(...e){(Ar==="test"||Ar==="development")&&console.log(...e)}function Yi(...e){(Ar==="test"||Ar==="development")&&console.warn(...e)}function an(...e){if(Ar==="test"||Ar==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&Zn.call(this),new Error(...e)}}function Zi(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),i=n[o+1];return r[i]}function Ji(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let i=o.indexOf(r);return n[o[i-1]]}function Qi(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let i in e)e[i]!==r[i]&&(o=!0,n[i]=e[i]);return{changed:i=>{if(!o)return;let s=i(n,ge(r));for(let a in n)r[a]=n[a];return s},timeout:(i,s)=>{if(!o)return;let a=setTimeout(()=>{i(n),clearTimeout(a)},s)}}}function Ih(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(i=>{an.call(this,i)}),o}catch(o){if(an.call(this,o),r?.strictMode)throw o}}async function es(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ni));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ni));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(sn(),Ni)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(sn(),Ni));await o(n,e.context)}return n}function ts(e){let t=this,r=e||Pi.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(kh(t,n),r===!0)return n;let o=q2[r];return o?o(n):n}function Fh(e,t){return!!(Vn.has(e)||t?.context?.methods?.[e])}var Ar,y_,Wi,g_,Ph,kh,N2,b_,B2,V2,z2,U2,W2,H2,q2,x_=q(()=>{"use strict";hh();zn();$e();rr();Cp();Bn();mh();Ar="production";y_=null,Wi=e=>{y_=e||null},g_=()=>y_||null;Ph=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n});kh=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&N2(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&kh(l,t)}let i=r.contentElementKey||"content",s=e[i];s&&s.__ref&&kh(s,t)},N2=(e,t)=>{let n=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;for(let i=0;i<n.length;i++){let s=n[i];i===n.length-1?o[s]||(o[s]=!0):(o[s]===!0&&(o[s]={}),o[s]||(o[s]={}),o=o[s])}},b_=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([i,s])=>s===!0?`${r}${i}`:`${r}${i} {
|
|
17
|
+
${b_(s,t+1)}
|
|
18
18
|
${r}}`).join(`
|
|
19
19
|
`):""},B2=e=>`{
|
|
20
|
-
${
|
|
21
|
-
}`,
|
|
20
|
+
${b_(e,1)}
|
|
21
|
+
}`,V2=e=>{let t={fields:{},include:[]},r=(n,o)=>{let i=[];for(let s in n)if(n[s]===!0)i.push(s);else{let a=o?`${o}.${s}`:s;t.include.push(a),r(n[s],a)}i.length&&(t.fields[o||"_root"]=i)};return r(e,""),t},z2=e=>{let t=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=t(i[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},U2=(e,t)=>{let r=[],n=[],o=new Set,i=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):i(u[p],p,d)},s=Object.keys(e);s.length===1&&e[s[0]]!==!0?i(e[s[0]],s[0],null):i(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
22
22
|
`+n.join(`
|
|
23
23
|
`):"";return`SELECT ${l}
|
|
24
|
-
FROM ${a}${c}`},
|
|
24
|
+
FROM ${a}${c}`},W2=e=>{let t=[],r=(n,o)=>{for(let i in n){let s=o?`${o}/${i}`:i;n[i]===!0?t.push(s):r(n[i],s)}};return r(e,""),t},H2=e=>{let t=n=>{let o=[];for(let i in n)n[i]===!0?o.push(i):o.push(`${i}(${t(n[i])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},q2={graphql:B2,"json-api":V2,odata:z2,sql:U2,supabase:H2,paths:W2}});var G2,jh,v_=q(()=>{"use strict";dl();G2={snapshotId:hi},jh=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let a=G2.snapshotId();return r.__currentSnapshot=a,[a,e]}let s=o.__ref.__currentSnapshot;return n<s?[s,o,!0]:[s,o]}});var Zl,Dh,__=q(()=>{Zl=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Dh=e=>typeof e=="string"&&Zl.has(e)});async function Lh(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var w_=q(()=>{"use strict"});function K2(e){return/^[0-9.]+$/.test(e)&&e!==""}var Ct,Er,Jn,At,Mh,S_=q(()=>{"use strict";Ct={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Ct.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Ct.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Ct.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Ct.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!K2(t)?`${Ct.symbols.url}/${e}`:`${Ct.symbols.url}/${e}/${t}.js`}},Er={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Jn=(e={})=>{let{packageManager:t}=e;return Er[t]||null},At=(e,t="latest",r="esmsh")=>(Ct[r]||Ct.esmsh).formatUrl(e,t),Mh=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let i of n){let s=r[i]||"latest";o[i]=At(i,s,t)}return`<script type="importmap">{
|
|
25
25
|
"imports": ${JSON.stringify(o,null,2)}
|
|
26
|
-
}<\/script>`}});var Nh,
|
|
27
|
-
`)),X2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var ec,Jh,Iw=G(()=>{Ie();ec=(e,t)=>(P(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Jh=(e,t)=>(e=parseFloat(e),S(t)&&(t=Object.values(t)),ec(e,t))});function Qn(e){let t=String(e||"").trim();if(!t)return{owner:jw,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=jw);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function tc(e,t={}){return(t.provider||"kv")==="api"?Fw(e,t):await e$(e,t)||Fw(e,t)}async function e$(e,t={}){let r=t.kvBaseUrl||J2,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Fw(e,t={}){let r=t.apiBaseUrl||Q2,{key:n}=Qn(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=Qn(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function Qh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(S(r))return r;if(A(r)){let{full:n}=Qn(r);if(!n)return null;try{let o=await tc(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var jw,J2,Q2,ei,ti,Dw=G(()=>{Ie();jw="system",J2="https://smbls-kv.nika-980.workers.dev",Q2="https://api.symbols.app";ei=(e,t)=>{for(let r in t)r in e?S(e[r])&&S(t[r])&&ei(e[r],t[r]):e[r]=t[r]},ti=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(S(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(S(n[o])&&S(e[o]))if(o==="designSystem")ei(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}});var eg,tg,rg,ri,ng,ni,og,an,Lw=G(()=>{Ie();eg=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},tg=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},rg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),ri=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),ng=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),ni=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),og=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},an=e=>{if(P(e))return e;if(A(e))return e.split(" ");if(S(e))return Object.values(e);if(Vt(e))return[e]}});var sg,Mw=G(()=>{sg=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Ye,eo,oi,si,Bw=G(()=>{Ye=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},eo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},oi=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return eo(t,{keepOneX:!1})},si=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:eo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=eo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var Nw={};K(Nw,{CDN_PROVIDERS:()=>Ct,DOMQL_EVENTS:()=>sp,DOMQ_PROPERTIES:()=>vr,ENV:()=>wp,HTML_TAGS:()=>qn,METHODS:()=>Nn,METHODS_EXL:()=>is,NODE_ENV:()=>St,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,PROPS_METHODS:()=>xr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>op,SVG_TAGS:()=>Bx,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>Dl,addContext:()=>Fl,addExtend:()=>qp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Hd,addProtoToArray:()=>ts,addRef:()=>$l,applyDependentState:()=>fh,applyEvent:()=>Vl,applyEventUpdate:()=>Ul,applyExtends:()=>Vx,applyProps:()=>Ss,arrayContainsOtherArray:()=>Md,arraysEqual:()=>Gd,arrayzeValue:()=>an,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>mh,call:()=>jh,captureSnapshot:()=>Dh,checkForStateTypes:()=>ah,checkIfInherits:()=>zl,checkIfStringIsInArray:()=>Yd,clone:()=>ap,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Rp,concatAddExtends:()=>Up,copyJavaScriptToClipboard:()=>tg,copyStringToClipboard:()=>eg,createBasedOnType:()=>Pl,createElement:()=>ih,createElementExtends:()=>vl,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>Sl,createIfConditionFlag:()=>Pp,createInheritedState:()=>lh,createKey:()=>ps,createNestedObject:()=>hp,createNestedObjectByKeyPath:()=>uh,createObjectWithoutPrototype:()=>fl,createParent:()=>Il,createPath:()=>jl,createProps:()=>ks,createPropsStack:()=>Tl,createRoot:()=>sh,createScope:()=>ph,createSnapshotId:()=>ds,customDecodeURIComponent:()=>np,customEncodeURIComponent:()=>rp,cutArrayAfterValue:()=>Ud,cutArrayBeforeValue:()=>Vd,debounce:()=>hs,debounceOnContext:()=>Ep,decodeNewlines:()=>tp,deepClone:()=>ge,deepContains:()=>dp,deepDefaults:()=>ei,deepDestringifyFunctions:()=>Ut,deepExtend:()=>bl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>as,defineSetter:()=>$h,destringifyGlobalScope:()=>cs,detectHeightOnInit:()=>zh,detectInfiniteLoop:()=>bp,document:()=>pe,encodeNewlines:()=>ep,error:()=>sn,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Wp,extendStackRegistry:()=>bs,extractArrayExtend:()=>xs,fetchLibraryData:()=>tc,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Kd,filterArraysFast:()=>Xd,finalizeExtends:()=>kl,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>Jh,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Kn,formatDate:()=>Nh,generateHash:()=>gl,generateKey:()=>fs,generateMetaTags:()=>Yh,get:()=>Th,getCDNUrl:()=>At,getCapitalCaseKeys:()=>Xp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Bl,getChildren:()=>Ns,getContext:()=>Gs,getCookie:()=>Dp,getDB:()=>Js,getEmotionStylesheet:()=>sg,getExtendsInElement:()=>Gp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>yl,getFrequencyInArray:()=>Bd,getHashedExtend:()=>vs,getImportMapScript:()=>Bh,getInObjectByPath:()=>yp,getLocalStorage:()=>Mp,getNev:()=>Cp,getPageMetadata:()=>Zh,getParentStateInKey:()=>Ml,getPath:()=>zs,getQuery:()=>Qs,getRef:()=>Ph,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Ll,getSpreadChildren:()=>Yp,global:()=>Fd,hasFunction:()=>Vn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>cp,inheritChildExtends:()=>wl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>_l,initProps:()=>rh,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isContextComponent:()=>Zp,isCyclic:()=>vp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>up,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Yo,isLocal:()=>kp,isMethod:()=>Fh,isMobile:()=>jp,isNode:()=>tr,isNot:()=>Ld,isNotProduction:()=>rn,isNull:()=>al,isNumber:()=>Vt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>Uh,isProduction:()=>wr,isStaging:()=>Sp,isState:()=>ch,isString:()=>A,isStringFunction:()=>Tp,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>$e,isUniversallyReservedKey:()=>Lh,isValidHtmlTag:()=>Np,joinArrays:()=>Ln,jointStacks:()=>Hp,keys:()=>Yl,loadCssFile:()=>Gh,loadJavascript:()=>Kh,loadJavascriptFile:()=>Wh,loadJavascriptFileEmbedSync:()=>qh,loadJavascriptFileSync:()=>Hh,loadRemoteCSS:()=>Xh,loadRemoteScript:()=>Jn,log:()=>Ih,logGroupIf:()=>Ip,logIf:()=>$p,lookdown:()=>Eh,lookdownAll:()=>Oh,lookup:()=>Ah,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>fp,map:()=>ip,mapStringsWithContextComponents:()=>ws,matchesComponentNaming:()=>Ht,memoize:()=>Op,merge:()=>ye,mergeSharedLibraries:()=>ti,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,objectToString:()=>ls,objectizeStringProperty:()=>_s,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>dh,parse:()=>Zl,parseDeep:()=>Ms,pickupElementFromProps:()=>El,pickupPropsFromElement:()=>Al,previousElement:()=>Ys,propExists:()=>eh,propertizeElement:()=>Ol,propertizeUpdate:()=>Qp,remove:()=>bw,removeChars:()=>rg,removeCookie:()=>Lp,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>Nd,removeFromObject:()=>pp,removeNestedKeyByPath:()=>gp,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Wd,reorderArrayByValues:()=>qd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Qd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>Qh,returnValueAsText:()=>Rl,runPluginHook:()=>Hn,self:()=>Dd,setActiveRootState:()=>Vs,setCookie:()=>Fp,setHashedExtend:()=>ml,setInObjectByPath:()=>mp,setLocalStorage:()=>Bp,setNodeStyles:()=>Xl,setProps:()=>Rh,setPropsPrototype:()=>As,spotByPath:()=>Bs,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>lp,swapItemsInArray:()=>zd,syncProps:()=>Os,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>og,toTitleCase:()=>ng,toggleFullscreen:()=>Mh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>hh,trimStringFromSymbols:()=>Zd,unstackArrayOfObjects:()=>Qo,update:()=>th,updateProps:()=>nh,variables:()=>Zs,verbose:()=>Yn,warn:()=>Ks,window:()=>C});var D=G(()=>{dl();Ap();Ie();rr();hl();Bn();Zo();Dx();Lx();os();Xo();Mx();zp();Kp();oh();Cl();Kx();Xx();zn();Yx();ww();yh();_w();gh();Sw();kw();Cw();Aw();Ew();Ow();Tw();Rw();$w();Iw();Dw();Lw();Mw();Bw()});var LC=Td((A7,DC)=>{var wo=1e3,_o=wo*60,So=_o*60,_n=So*24,_F=_n*7,SF=_n*365.25;DC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return kF(e);if(r==="number"&&isFinite(e))return t.long?AF(e):CF(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function kF(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*SF;case"weeks":case"week":case"w":return r*_F;case"days":case"day":case"d":return r*_n;case"hours":case"hour":case"hrs":case"hr":case"h":return r*So;case"minutes":case"minute":case"mins":case"min":case"m":return r*_o;case"seconds":case"second":case"secs":case"sec":case"s":return r*wo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function CF(e){var t=Math.abs(e);return t>=_n?Math.round(e/_n)+"d":t>=So?Math.round(e/So)+"h":t>=_o?Math.round(e/_o)+"m":t>=wo?Math.round(e/wo)+"s":e+"ms"}function AF(e){var t=Math.abs(e);return t>=_n?Ou(e,t,_n,"day"):t>=So?Ou(e,t,So,"hour"):t>=_o?Ou(e,t,_o,"minute"):t>=wo?Ou(e,t,wo,"second"):e+" ms"}function Ou(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var BC=Td((E7,MC)=>{function EF(e){r.debug=r,r.default=r,r.coerce=l,r.disable=i,r.enable=o,r.enabled=a,r.humanize=LC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),x=b-(d||b);y.diff=x,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let v=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(k,E)=>{if(k==="%%")return"%";v++;let j=r.formatters[E];if(typeof j=="function"){let _=m[v];k=j.call(y,_),m.splice(v,1),v--}return k}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function s(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function i(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(s(u,d))return!1;for(let d of r.names)if(s(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}MC.exports=EF});var NC=Td((Je,Tu)=>{Je.formatArgs=TF;Je.save=RF;Je.load=PF;Je.useColors=OF;Je.storage=$F();Je.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Je.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function OF(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function TF(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Tu.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Je.log=console.debug||console.log||(()=>{});function RF(e){try{e?Je.storage.setItem("debug",e):Je.storage.removeItem("debug")}catch{}}function PF(){let e;try{e=Je.storage.getItem("debug")||Je.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function $F(){try{return localStorage}catch{}}Tu.exports=BC()(Je);var{formatters:IF}=Tu.exports;IF.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var vN={};K(vN,{ANIMATION_PROPS:()=>Wg,ARIA_ROLES:()=>mI,ATTR_TRANSFORMS:()=>sm,BLOCK_PROPS:()=>Hg,CDN_PROVIDERS:()=>Ct,CONFIG:()=>lc,CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_PROPS_REGISTRY:()=>Se,CSS_UNITS:()=>Dn,DEFAULT_CONFIG:()=>Ri,DEFAULT_CSS_PROPERTIES_LIST:()=>Le,DELEGATED_EVENTS:()=>wi,DESIGN_SYSTEM_OPTIONS:()=>fy,DOMQL_EVENTS:()=>sp,DOMQ_PROPERTIES:()=>vr,DOM_EVENTS:()=>aS,ENV:()=>wp,FACTORY:()=>sr,FLEX_PROPS:()=>Yg,FONT_PROPS:()=>qg,GRID_PROPS:()=>Zg,HTML_ATTRIBUTES:()=>Uc,HTML_TAGS:()=>qn,LIFECYCLE_EVENTS:()=>vn,METHODS:()=>Nn,METHODS_EXL:()=>is,MISC_PROPS:()=>Gg,MIXINS:()=>Ng,NODE_ENV:()=>St,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,POSITION_PROPS:()=>Kg,PROPS_METHODS:()=>xr,REGISTRY:()=>Ze,ROUTER_OPTIONS:()=>nu,STATE_PROPERTIES:()=>op,SVG_TAGS:()=>vi,THEME_PROPS:()=>Xg,TIMING_PROPS:()=>Ei,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Jl,VALUE_TRANSFORMERS:()=>jg,activateConfig:()=>l$,addCaching:()=>Dl,addContext:()=>Fl,addDelegatedEvent:()=>zc,addExtend:()=>qp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Hd,addMethods:()=>Ti,addProtoToArray:()=>ts,addRef:()=>$l,animation:()=>f_,appendSVGSprite:()=>Pc,appendSvgIconsSprite:()=>Ic,applyAttrTransforms:()=>lm,applyCSS:()=>ay,applyDependentState:()=>fh,applyDocument:()=>Rc,applyEvent:()=>Vl,applyEventUpdate:()=>Ul,applyExtends:()=>Si,applyHeadings:()=>Ag,applyInitialState:()=>nm,applyMediaSequenceVars:()=>fn,applyProps:()=>Ss,applyReset:()=>jc,applySequenceGlobalVars:()=>gc,applySequenceVars:()=>Pr,applySpacingSequence:()=>Ac,applyStateMethods:()=>gt,applyTimingSequence:()=>Tc,applyTrueProps:()=>Qg,applyTypographySequence:()=>Sc,arrayContainsOtherArray:()=>Md,arraysEqual:()=>Gd,arrayzeValue:()=>an,batch:()=>br,breakpoints:()=>c_,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>mh,cacheNode:()=>bn,call:()=>jh,captureSnapshot:()=>Dh,changeGlobalTheme:()=>Fg,changeLightness:()=>qw,checkAttributeByTagName:()=>jr,checkEventFunctions:()=>am,checkForStateTypes:()=>ah,checkIfBoxSize:()=>Cc,checkIfInherits:()=>zl,checkIfStringIsInArray:()=>Yd,class:()=>m_,clone:()=>ap,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Rp,color:()=>r_,colorStringToRgbaArray:()=>nr,components:()=>co,concatAddExtends:()=>Up,convertSvgToSymbol:()=>mc,copyJavaScriptToClipboard:()=>tg,copyStringToClipboard:()=>eg,create:()=>Cx,createAsync:()=>mN,createBasedOnType:()=>Pl,createComputed:()=>Tx,createConfig:()=>bg,createDefine:()=>C1,createEffect:()=>Ee,createElement:()=>ih,createElementExtends:()=>vl,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>Sl,createHTMLNode:()=>bi,createIfConditionFlag:()=>Pp,createInheritedState:()=>lh,createKey:()=>ps,createNestedObject:()=>hp,createNestedObjectByKeyPath:()=>uh,createObjectWithoutPrototype:()=>fl,createParent:()=>Il,createPath:()=>jl,createProps:()=>ks,createPropsStack:()=>Tl,createRoot:()=>sh,createScope:()=>ph,createScopeStore:()=>sl,createSignal:()=>zt,createSkeleton:()=>bN,createSnapshotId:()=>ds,createState:()=>tS,createStore:()=>lt,createSync:()=>yN,css:()=>$r,cssMediaVars:()=>mg,cssVars:()=>gg,customDecodeURIComponent:()=>np,customEncodeURIComponent:()=>rp,cutArrayAfterValue:()=>Ud,cutArrayBeforeValue:()=>Vd,debounce:()=>hs,debounceOnContext:()=>Ep,decodeNewlines:()=>tp,deepClone:()=>ge,deepContains:()=>dp,deepDefaults:()=>ei,deepDestringifyFunctions:()=>Ut,deepExtend:()=>bl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>as,defaultDefine:()=>po,defineSetter:()=>$h,destringifyGlobalScope:()=>cs,destroy:()=>Fi,detectHeightOnInit:()=>zh,detectInfiniteLoop:()=>bp,detectTag:()=>yn,devices:()=>u_,dispose:()=>xn,encodeNewlines:()=>ep,error:()=>sn,excludeKeysFromObject:()=>xp,exec:()=>de,executeAttr:()=>bI,exetuteClassPerComponent:()=>sI,extendCachedRegistry:()=>Wp,extendStackRegistry:()=>bs,extractArrayExtend:()=>xs,extractConditionalAttrs:()=>wI,fetchLibraryData:()=>tc,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Kd,filterArraysFast:()=>Xd,filterAttributesByTagName:()=>yI,finalizeExtends:()=>kl,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>Jh,findHeadingLetter:()=>_g,findHeadings:()=>hc,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Kn,font:()=>Yw,fontFace:()=>Qw,fontFamily:()=>Zw,fontFamilyTypes:()=>Jw,formatDate:()=>Nh,generateHash:()=>gl,generateKey:()=>fs,generateMetaTags:()=>Yh,generateSequence:()=>et,generateSequencePosition:()=>w_,generateSprite:()=>fi,generateSubSequence:()=>dc,get:()=>Th,getActiveConfig:()=>T,getActiveDocument:()=>Mg,getActiveLang:()=>Li,getCDNUrl:()=>At,getCacheSize:()=>B_,getCapitalCaseKeys:()=>Xp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Bl,getChildren:()=>Ns,getColor:()=>me,getColorShade:()=>ug,getContext:()=>Gs,getCookie:()=>Dp,getDB:()=>Js,getDefaultOrFirstKey:()=>to,getEmotionStylesheet:()=>sg,getExtendsInElement:()=>Gp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>yl,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Kw,getFontFaceEach:()=>ro,getFontFaceEachString:()=>hg,getFontFaceString:()=>nc,getFontFamily:()=>_c,getFontFormat:()=>dg,getFontSizeByKey:()=>kc,getFrequencyInArray:()=>Bd,getHashedExtend:()=>vs,getImportMapScript:()=>Bh,getInObjectByPath:()=>yp,getLanguages:()=>iu,getLocalStateLang:()=>fu,getLocalStorage:()=>Mp,getMediaColor:()=>De,getMediaTheme:()=>Ot,getNev:()=>Cp,getObserver:()=>jn,getPageMetadata:()=>Zh,getParentStateInKey:()=>Ml,getPath:()=>zs,getQuery:()=>Qs,getRef:()=>Ph,getRgbTone:()=>cn,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Ll,getSequenceValue:()=>pc,getSequenceValueBySymbols:()=>wg,getSequenceValuePropertyPair:()=>ar,getShadow:()=>Oc,getSignals:()=>$x,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Te,getSpreadChildren:()=>Yp,getSubratio:()=>fc,getSubratioDifference:()=>uc,getSystemGlobalTheme:()=>ht,getTheme:()=>bc,getTimingByKey:()=>ft,getTimingFunction:()=>Tt,global:()=>Fd,gradient:()=>n_,grid:()=>g_,hasFunction:()=>Vn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>cp,hexToRgb:()=>Vw,hexToRgbArray:()=>ig,hexToRgba:()=>Ww,hslToRgb:()=>cg,icons:()=>i_,inheritChildExtends:()=>wl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>_l,init:()=>fo,initPolyglot:()=>dy,initProps:()=>rh,injectGlobal:()=>_e,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isCSSVar:()=>ve,isContextComponent:()=>Zp,isCyclic:()=>vp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>up,isEqualDeep:()=>ul,isFunction:()=>O,isGoogleFontsUrl:()=>ai,isHtmlElement:()=>Yo,isLocal:()=>kp,isMethod:()=>Fh,isMobile:()=>jp,isNode:()=>tr,isNot:()=>Ld,isNotProduction:()=>rn,isNull:()=>al,isNumber:()=>Vt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>Uh,isProduction:()=>wr,isResolvedColor:()=>or,isScalingUnit:()=>Fn,isStaging:()=>Sp,isState:()=>ch,isStore:()=>Fe,isString:()=>A,isStringFunction:()=>Tp,isSvgTag:()=>xi,isTest:()=>pl,isTesting:()=>_p,isTracking:()=>sS,isUndefined:()=>$e,isUniversallyReservedKey:()=>Lh,isValidHtmlTag:()=>Np,isValidTag:()=>yi,isWasmLoaded:()=>p1,joinArrays:()=>Ln,jointStacks:()=>Hp,keyframes:()=>mi,keys:()=>Yl,loadCssFile:()=>Gh,loadJavascript:()=>Kh,loadJavascriptFile:()=>Wh,loadJavascriptFileEmbedSync:()=>qh,loadJavascriptFileSync:()=>Hh,loadRemoteCSS:()=>Xh,loadRemoteScript:()=>Jn,loadTranslations:()=>lu,loadWasm:()=>d1,log:()=>Ih,logGroupIf:()=>Ip,logIf:()=>$p,lookdown:()=>Eh,lookdownAll:()=>Oh,lookup:()=>Ah,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>fp,map:()=>ip,mapStringsWithContextComponents:()=>ws,matchesComponentNaming:()=>Ht,media:()=>e_,memoize:()=>Op,merge:()=>ye,mergeSharedLibraries:()=>ti,mixTwoColors:()=>zw,mixTwoRgb:()=>Hw,mixTwoRgba:()=>fg,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,numToLetterMap:()=>ir,objectToString:()=>ls,objectizeStringProperty:()=>_s,opacify:()=>ii,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>dh,parse:()=>Zl,parseColorToken:()=>Or,parseDeep:()=>Ms,pickupElementFromProps:()=>El,pickupPropsFromElement:()=>Al,polyglotFunctions:()=>Mi,polyglotPlugin:()=>du,popConfig:()=>we,previousElement:()=>Ys,propExists:()=>eh,propertizeElement:()=>Ol,propertizeUpdate:()=>Qp,pushConfig:()=>Oe,registerEvent:()=>_i,reinit:()=>iy,remove:()=>Ai,removeChars:()=>rg,removeCookie:()=>Lp,removeDelegatedEvent:()=>Vc,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>Nd,removeFromObject:()=>pp,removeNestedKeyByPath:()=>gp,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Wd,reorderArrayByValues:()=>qd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Qd,resolveAsset:()=>Ye,resolveColorsInGradient:()=>Dc,resolveFileSource:()=>om,resolveFileUrl:()=>Et,resolveHandler:()=>Wn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>Qh,returnSubThemeOrDefault:()=>Gw,returnValueAsText:()=>Rl,rgbArrayToHex:()=>ag,rgbToHSL:()=>lg,rgbToHex:()=>Uw,runPluginHook:()=>Hn,runThroughMedia:()=>Cg,scratchDefaultConfig:()=>ci,scratchSystem:()=>gi,scratchUtils:()=>dn,self:()=>Dd,semanticIcons:()=>a_,sequence:()=>Tr,set:()=>no,setActiveConfig:()=>yg,setActiveDocument:()=>L_,setActiveRootState:()=>Vs,setClass:()=>YI,setClassname:()=>iI,setColor:()=>pn,setCookie:()=>Fp,setCssEngineHook:()=>Qc,setCustomFont:()=>rc,setCustomFontMedia:()=>un,setEach:()=>I_,setFont:()=>wc,setFontFamily:()=>pi,setFontImport:()=>li,setGradient:()=>hn,setHashedExtend:()=>ml,setInCustomFontMedia:()=>pg,setInObjectByPath:()=>mp,setLang:()=>cu,setLocalStorage:()=>Bp,setMediaTheme:()=>xc,setNodeStyles:()=>Xl,setObserver:()=>Ox,setProps:()=>Rh,setPropsPrototype:()=>As,setSVG:()=>hi,setScalingVar:()=>cc,setShadow:()=>gn,setSubScalingVar:()=>xg,setSvgIcon:()=>$c,setTheme:()=>vc,setValue:()=>$_,setVariables:()=>__,setWasmEngine:()=>Nc,shadow:()=>s_,spacing:()=>t_,splitSpacedValue:()=>Ec,splitTopLevelCommas:()=>ln,splitTransition:()=>Ig,spotByPath:()=>Bs,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>lp,svg:()=>d_,svgData:()=>p_,swapItemsInArray:()=>zd,syncProps:()=>Os,templates:()=>h_,theme:()=>o_,timing:()=>l_,toCamel:()=>ac,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>og,toTitleCase:()=>ng,toggleFullscreen:()=>Mh,transformBackgroundImage:()=>Pg,transformBorder:()=>lr,transformBorderRadius:()=>Mc,transformBoxShadow:()=>Fc,transformClassname:()=>Z_,transformDuration:()=>Lc,transformShadow:()=>Rg,transformSize:()=>xe,transformSizeRatio:()=>ne,transformTextStroke:()=>Tg,transformTransition:()=>P_,transformersByPrefix:()=>em,transfromGap:()=>$g,translate:()=>au,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>hh,trimStringFromSymbols:()=>Zd,typography:()=>oc,unit:()=>Xw,unstackArrayOfObjects:()=>Qo,update:()=>Ci,updateProps:()=>nh,updateVars:()=>XI,upsertTranslation:()=>uu,useCssInProps:()=>tt,useHostState:()=>oS,usePropsAsCSS:()=>X_,useSelectorsAsCSS:()=>Y_,variables:()=>Zs,vars:()=>y_,verbose:()=>Yn,warn:()=>Ks,window:()=>C});module.exports=JP(vN);var We=null,rl=0,nl=[],jn=()=>We,Ox=e=>{We=e};function zt(e){let t=new Set;function r(){return We&&(t.add(We),We._sources.add(s)),e}function n(i){i!==e&&(e=i,Px(t))}function o(){return e}let s={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return s}function Tx(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){$d(o);let s=We;We=o;try{let i=e();i!==t?(t=i,r=!1,Px(n)):r=!1}finally{We=s}},_notify(){r=!0,n.size>0&&o._execute()},get(){return We&&(n.add(We),We._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Rd=new Set,Pd=!1;function Ee(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;$d(n);let o=We;We=n;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{We=o}},_notify(){n._disposed||(rl>0?nl.push(n):Rx(n))},dispose(){n._disposed=!0,$d(n)}};return n._execute(),n}function br(e){rl++;try{e()}finally{rl--,rl===0&&e2()}}function Rx(e){Rd.add(e),Pd||(Pd=!0,queueMicrotask(QP))}function QP(){Pd=!1;let e=Array.from(Rd).sort((t,r)=>t._depth-r._depth);Rd=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function e2(){for(let e=0;e<nl.length;e++)Rx(nl[e]);nl.length=0}function Px(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function $d(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Yr=Symbol("store"),ol=Symbol("signals"),Id=e=>!e||typeof e!="object"||Array.isArray(e)||e[Yr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function lt(e,t,r){r===void 0&&(r=0);let n={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<s&&b&&typeof b=="object"&&!Id(b)?(o[y]=b,n[y]=zt(lt(b,t,r+1))):(o[y]=b,n[y]=zt(b))}let i=new Proxy(o,{get(y,b){if(b===Yr)return!0;if(b===ol)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==i)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&jn()!=null)return n[b]=zt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Id(x)?n[b].set(lt(x,t,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Id(x)?n[b]=zt(lt(x,t,r+1)):n[b]=zt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){br(()=>{for(let v in y)v!=="__proto__"&&(i[v]=y[v])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let v=n[x].peek();v&&v[Yr]?b[x]=v.parse(y):b[x]=v}return b}function u(){return br(()=>{for(let y in n)delete i[y]}),i}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return br(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function h(y,b){return i[y]=b,i}function g(y){return delete i[y],i}function m(){u(),o.__element=null,o.parent=null}return i}function Fe(e){return e&&e[Yr]===!0}function $x(e){return e[ol]}function sl(e,t){let r={},n={};if(e&&typeof e=="object")for(let i in e)n[i]=e[i],r[i]=zt(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=t;for(;a;){let l=a[ol];if(l&&Object.prototype.hasOwnProperty.call(l,i))return l;a=a[Yr]?a[jd]:null}return null};return new Proxy(n,{get(i,a){return a===Yr?!0:a===ol?r:a===jd?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,l){let c=o(a);return c?(c===r&&(i[a]=l),c[a].set(l),!0):(i[a]=l,r[a]=zt(l),!0)},has(i,a){if(a in r||a in i)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[Yr]?l[jd]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var jd=Symbol("scope.parent");var dn={};K(dn,{CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_UNITS:()=>Dn,applyMediaSequenceVars:()=>fn,applySequenceGlobalVars:()=>gc,applySequenceVars:()=>Pr,changeLightness:()=>qw,colorStringToRgbaArray:()=>nr,convertSvgToSymbol:()=>mc,findHeadingLetter:()=>_g,findHeadings:()=>hc,generateSequence:()=>et,generateSequencePosition:()=>w_,generateSprite:()=>fi,generateSubSequence:()=>dc,getColorShade:()=>ug,getDefaultOrFirstKey:()=>to,getFnPrefixAndValue:()=>Rr,getFontFace:()=>Kw,getFontFaceEach:()=>ro,getFontFaceEachString:()=>hg,getFontFaceString:()=>nc,getFontFormat:()=>dg,getRgbTone:()=>cn,getSequenceValue:()=>pc,getSequenceValueBySymbols:()=>wg,getSequenceValuePropertyPair:()=>ar,getSubratio:()=>fc,getSubratioDifference:()=>uc,hexToRgb:()=>Vw,hexToRgbArray:()=>ig,hexToRgba:()=>Ww,hslToRgb:()=>cg,isCSSVar:()=>ve,isGoogleFontsUrl:()=>ai,isResolvedColor:()=>or,isScalingUnit:()=>Fn,mixTwoColors:()=>zw,mixTwoRgb:()=>Hw,mixTwoRgba:()=>fg,numToLetterMap:()=>ir,opacify:()=>ii,parseColorToken:()=>Or,resolveFileUrl:()=>Et,returnSubThemeOrDefault:()=>Gw,rgbArrayToHex:()=>ag,rgbToHSL:()=>lg,rgbToHex:()=>Uw,setCustomFont:()=>rc,setCustomFontMedia:()=>un,setFontImport:()=>li,setInCustomFontMedia:()=>pg,setScalingVar:()=>cc,setSubScalingVar:()=>xg,setVariables:()=>__,splitTopLevelCommas:()=>ln});var Fn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Dn=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];D();var nr=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&pe&&C){let t=pe.body.appendChild(pe.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){pe.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return pe.body.removeChild(t),[0,0,0,0];e=C.getComputedStyle(t).color,pe.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},zw=(e,t,r=.5)=>(e=nr(e),t=nr(t),fg(e,t,r)),Vw=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},ig=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Uw=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),ag=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),Ww=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},Hw=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},qw=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},lg=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},cg=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],ug=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},fg=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},ii=(e,t)=>{let r=nr(e);if(!r){rn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},ve=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Gt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,t$=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Or=e=>{if(!A(e))return null;if(Gt.test(e))return{passthrough:e};if(ve(e))return{cssVar:e};let t=e.match(t$);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},or=e=>A(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),ln=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},cn=(e,t)=>{A(e)&&e.includes("rgb")&&(e=nr(e).join(", ")),A(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Vt(t)&&(t+="");let r=ag(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=ug(r,parseFloat(t));return ig(o).join(", ")}else{let[o,s,i]=e,a=lg(o,s,i),[l,c,u]=a;return cg(l,c,parseFloat(t)/100*255)}};var Gw=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Et=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},to=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},dg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},ai=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),li=e=>`@import url('${e}');`,pg=e=>`@font-face { ${e} }`,rc=(e,t,r,n={})=>{let i=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=dg(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
26
|
+
}<\/script>`}});var Nh,k_=q(()=>{"use strict";Nh=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}});var Bh,C_=q(()=>{"use strict";Bh=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Vh,A_=q(()=>{"use strict";Vh=function(t){let r=[0,1];for(let n=2;n<=t;n++)r[n]=r[n-1]+r[n-2];return r[t]}});var zh,E_=q(()=>{"use strict";zh=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function Qn(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`script[src="${e}"]`);if(s)return o(s);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function Kh(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`link[href="${e}"]`);if(s)return o(s);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Uh,Wh,Hh,qh,Gh,O_=q(()=>{"use strict";Uh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.src=e,s.addEventListener("load",a=>{o({status:!0})}),s.addEventListener("error",a=>{i(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(s)}catch(s){i(s)}}),Wh=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let i=t.createElement("script");i.type=r,i.src=e;let s=t.createElement("div");s.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(s),i.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(s),n()},i.onerror=()=>{t.body.removeChild(s),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(i)}),Hh=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let i=t.createElement("script");i.type=n,i.text=o.responseText,t.body.appendChild(i),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},qh=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("link");s.rel="stylesheet",s.href=e,s.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(s)}catch(s){i(s)}}),Gh=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.id=o,i.innerHTML=e,r.body.appendChild(i)}catch(i){console.warn(i)}}});function Z2(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!Y2(o))return o;let i=t[o];return i?.src?i.src:o},n={...e};for(let[o,i]of Object.entries(n))typeof i=="string"?n[o]=r(i):Array.isArray(i)&&(n[o]=i.map(s=>typeof s=="string"?r(s):s));return n}function Jl(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function J2(e,t,r){let o=(t.config||t.settings||{}).polyglot||t.polyglot,i=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[i]||{},l=r?.state||{},c={...e};for(let[u,d]of Object.entries(c))typeof d!="string"||!d.includes("{{")||(c[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(f,p,h)=>{let g=p.trim();if(h==="polyglot")return a[g]??Jl(a,g)??f;if(h==="getLocalStateLang")return Jl(l,g+i)??f;let m=Jl(l,g);return m!==void 0?m:a[g]??Jl(a,g)??f}));return c}function T_(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),i=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let s=n.match(/s\.(\w+(?:\.\w+)+)/);if(s){t[r]=`{{ ${s[1]} }}`;continue}}}return t}function Yh(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let i=e.pages?.[t],s=S(i?.state)&&i?.state,a=i?.metadata||i?.helmet||s||{},l=T_(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=T_(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=J2(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=Z2(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var ct,X2,Xh,Y2,R_=q(()=>{"use strict";$e();ct=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},X2=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${ct(r)}"`).join(" "),Xh=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((n,[o,i])=>{if(!i&&i!==0&&i!==!1)return n;if(o==="title")return n.push(`<title>${ct(i)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${ct(i)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${ct(i)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(i)?i:[i]).forEach(u=>{if(typeof u=="string")n.push(`<link rel="icon" href="${ct(u)}">`);else if(typeof u=="object"){let d=X2(u);/rel=/.test(d)?n.push(`<link ${d}>`):n.push(`<link rel="icon" ${d}>`)}}),n;if(o==="alternate")return(Array.isArray(i)?i:[i]).forEach(u=>{if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${ct(p)}"`).join(" ");n.push(`<link rel="alternate" ${d}>`)}}),n;let s=(c,u,d="name")=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")n.push(`<meta ${d}="${ct(c)}" content="${ct(u)}">`);else if(Array.isArray(u))u.forEach(f=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")n.push(`<meta ${d}="${ct(c)}" content="${ct(f)}">`);else if(typeof f=="object"){let p=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}="${ct(g)}"`).join(" ");n.push(`<meta ${p}>`)}});else if(typeof u=="object"){let f=Object.entries(u).filter(([p,h])=>h!==void 0).map(([p,h])=>`${p}="${ct(h)}"`).join(" ");n.push(`<meta ${f}>`)}};if(o.startsWith("http-equiv:")){let c=o.replace("http-equiv:","");return s(c,i,"http-equiv"),n}if(o.startsWith("itemprop:")){let c=o.replace("itemprop:","");return s(c,i,"itemprop"),n}let l=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(c=>o.startsWith(c));if(l){let c=o.replace(l,"");return s(`${l.replace(":","")}:${c}`,i,l==="twitter:"||l==="DC:"||l==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let c=o.startsWith("apple:")?"apple-":"msapplication-",u=o.replace(/^apple:|^msapplication:/,"");return s(`${c}${u}`,i,"name"),n}return s(o,i),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
27
|
+
`)),Y2=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")});var Ql,Zh,P_=q(()=>{"use strict";$e();Ql=(e,t)=>($(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Zh=(e,t)=>(e=parseFloat(e),S(t)&&(t=Object.values(t)),Ql(e,t))});function eo(e){let t=String(e||"").trim();if(!t)return{owner:$_,key:"",full:""};let r=null,n=t;if(t.includes("/")){let i=t.indexOf("/");r=t.slice(0,i),n=t.slice(i+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=$_);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function ec(e,t={}){if((t.provider||"kv")==="api")return I_(e,t);let n=await t$(e,t);return n||I_(e,t)}async function t$(e,t={}){let r=t.kvBaseUrl||Q2,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let i=await fetch(o,{method:"GET"});return i.ok&&(await i.json())?.value||null}catch{return null}}async function I_(e,t={}){let r=t.apiBaseUrl||e$,{key:n}=eo(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,i=await fetch(o,{method:"GET"});if(!i.ok)return null;let s=await i.json(),l=(s?.items||s?.data||(Array.isArray(s)?s:[])).find(p=>{let{key:h}=eo(p?.key);return h.toLowerCase()===n.toLowerCase()});if(!l?.id&&!l?._id)return null;let c=l.id||l._id,u=`${r}/core/projects/${encodeURIComponent(c)}/data?branch=main`,d=await fetch(u,{method:"GET"});if(!d.ok)return null;let f=await d.json();return f?.data||f||null}catch{return null}}async function Jh(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async n=>{if(S(n))return n;if(A(n)){let{full:o}=eo(n);if(!o)return null;try{let i=await ec(o,t);return i||console.warn(`[smbls] Shared library "${o}" not found`),i}catch(i){return console.warn(`[smbls] Failed to fetch shared library "${o}":`,i.message),null}}return null}))).filter(Boolean)}var $_,Q2,e$,rs,ns,F_=q(()=>{"use strict";$e();$_="system",Q2="https://smbls-kv.nika-980.workers.dev",e$="https://api.symbols.app";rs=(e,t)=>{for(let r in t)r in e?S(e[r])&&S(t[r])&&rs(e[r],t[r]):e[r]=t[r]},ns=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(S(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(S(n[o])&&S(e[o]))if(o==="designSystem")rs(e[o],n[o]);else for(let i in n[o])i in e[o]||(e[o][i]=n[o][i]);else o in e||(e[o]=n[o])}}}});var Qh,eg,tg,os,rg,is,ng,ln,j_=q(()=>{"use strict";$e();Qh=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},eg=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},tg=e=>e.replace(/[^a-zA-Z0-9_]/g,""),os=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),rg=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),is=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),ng=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},ln=e=>{if($(e))return e;if(A(e))return e.split(" ");if(S(e))return Object.values(e);if(zt(e))return[e]}});var og,D_=q(()=>{"use strict";og=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}});var Xe,to,ss,as,L_=q(()=>{"use strict";Xe=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},to=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},ss=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return to(t,{keepOneX:!1})},as=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:to(l,{keepOneX:!0})}});let o=r.get(e.type)||[],i=to(o,{keepOneX:!1}),s={src:e.src,alt:t||""};return i&&(s.srcset=i),[...n,{tag:"img",attr:s}]}});var M_={};G(M_,{CDN_PROVIDERS:()=>Ct,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>xr,ENV:()=>vp,HTML_TAGS:()=>Gn,METHODS:()=>Vn,METHODS_EXL:()=>li,NODE_ENV:()=>wt,OPTIONS:()=>Pi,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ai,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>L0,TYPES:()=>ei,UNIVERSAL_RESERVED_KEYS:()=>Zl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Hp,addExtends:()=>Ke,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>ni,addRef:()=>Pl,applyDependentState:()=>uh,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>B0,applyProps:()=>Ci,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>as,cache:()=>gh,call:()=>Ih,captureSnapshot:()=>jh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,clone:()=>sp,cloneAndMergeArrayExtend:()=>yi,cloneFunction:()=>Tp,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,createBasedOnType:()=>Rl,createElement:()=>ih,createElementExtends:()=>bl,createExtends:()=>xi,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>gi,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Ai,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createSnapshotId:()=>hi,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>mi,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>rs,deepDestringifyFunctions:()=>Ut,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>ci,defineSetter:()=>Ph,destringifyGlobalScope:()=>fi,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,document:()=>pe,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Up,extendStackRegistry:()=>vi,extractArrayExtend:()=>wi,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Zh,findInheritedState:()=>Nl,findKeyPosition:()=>Zd,flattenExtend:()=>Xn,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>pi,generateMetaTags:()=>Xh,get:()=>Oh,getCDNUrl:()=>At,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zi,getContext:()=>Xi,getCookie:()=>jp,getDB:()=>es,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>bi,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Md,getHashedExtend:()=>_i,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLocalStorage:()=>Lp,getNev:()=>kp,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>Ui,getQuery:()=>ts,getRef:()=>Rh,getRoot:()=>qi,getRootContext:()=>Ki,getRootData:()=>Gi,getRootState:()=>Hi,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Xp,global:()=>Fd,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Ei,inheritRecursiveChildExtends:()=>_l,initProps:()=>th,is:()=>qe,isArray:()=>$,isBoolean:()=>sl,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>We,isDate:()=>ll,isDefined:()=>He,isDevelopment:()=>wr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>tr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>zt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>_r,isStaging:()=>wp,isState:()=>lh,isString:()=>A,isStringFunction:()=>Op,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>ip,mapStringsWithContextComponents:()=>Si,matchesComponentNaming:()=>Ht,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ns,nextElement:()=>Zi,normalizeLibraryKey:()=>eo,objectToString:()=>ui,objectizeStringProperty:()=>ki,overwrite:()=>di,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseDeep:()=>Bi,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Ji,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,remove:()=>m_,removeChars:()=>tg,removeCookie:()=>Dp,removeDuplicateProps:()=>Ti,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ri,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Xe,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Jh,returnValueAsText:()=>Tl,runPluginHook:()=>St,self:()=>jd,setActiveRootState:()=>Wi,setCookie:()=>Fp,setHashedExtend:()=>gl,setInObjectByPath:()=>gp,setLocalStorage:()=>Mp,setNodeStyles:()=>Kl,setProps:()=>Th,setPropsPrototype:()=>Oi,spotByPath:()=>Vi,srcsetFor:()=>to,stringIncludesAny:()=>ii,stringToObject:()=>ap,swapItemsInArray:()=>Bd,syncProps:()=>Ri,toCamelCase:()=>os,toDashCase:()=>is,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,unstackArrayOfObjects:()=>ti,update:()=>eh,updateProps:()=>rh,variables:()=>Qi,verbose:()=>Zn,warn:()=>Yi,window:()=>C});var M=q(()=>{"use strict";dl();Cp();$e();rr();qn();Bn();Qo();F0();j0();si();Zo();D0();Bp();Gp();nh();kl();q0();G0();zn();K0();x_();mh();v_();hh();__();w_();S_();k_();C_();A_();E_();O_();R_();P_();F_();j_();D_();L_()});var jC=Ed((C7,FC)=>{var wo=1e3,So=wo*60,ko=So*60,Sn=ko*24,Sj=Sn*7,kj=Sn*365.25;FC.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Cj(e);if(r==="number"&&isFinite(e))return t.long?Ej(e):Aj(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Cj(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*kj;case"weeks":case"week":case"w":return r*Sj;case"days":case"day":case"d":return r*Sn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ko;case"minutes":case"minute":case"mins":case"min":case"m":return r*So;case"seconds":case"second":case"secs":case"sec":case"s":return r*wo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Aj(e){var t=Math.abs(e);return t>=Sn?Math.round(e/Sn)+"d":t>=ko?Math.round(e/ko)+"h":t>=So?Math.round(e/So)+"m":t>=wo?Math.round(e/wo)+"s":e+"ms"}function Ej(e){var t=Math.abs(e);return t>=Sn?Eu(e,t,Sn,"day"):t>=ko?Eu(e,t,ko,"hour"):t>=So?Eu(e,t,So,"minute"):t>=wo?Eu(e,t,wo,"second"):e+" ms"}function Eu(e,t,r,n){var o=t>=r*1.5;return Math.round(e/r)+" "+n+(o?"s":"")}});var LC=Ed((A7,DC)=>{function Oj(e){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=o,r.enabled=a,r.humanize=jC(),r.destroy=c,Object.keys(e).forEach(u=>{r[u]=e[u]}),r.names=[],r.skips=[],r.formatters={};function t(u){let d=0;for(let f=0;f<u.length;f++)d=(d<<5)-d+u.charCodeAt(f),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=t;function r(u){let d,f=null,p,h;function g(...m){if(!g.enabled)return;let y=g,b=Number(new Date),v=b-(d||b);y.diff=v,y.prev=d,y.curr=b,d=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(k,E)=>{if(k==="%%")return"%";x++;let j=r.formatters[E];if(typeof j=="function"){let w=m[x];k=j.call(y,w),m.splice(x,1),x--}return k}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return g.namespace=u,g.useColors=r.useColors(),g.color=r.selectColor(u),g.extend=n,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(p!==r.namespaces&&(p=r.namespaces,h=r.enabled(u)),h),set:m=>{f=m}}),typeof r.init=="function"&&r.init(g),g}function n(u,d){let f=r(this.namespace+(typeof d>"u"?":":d)+u);return f.log=this.log,f}function o(u){r.save(u),r.namespaces=u,r.names=[],r.skips=[];let d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let f of d)f[0]==="-"?r.skips.push(f.slice(1)):r.names.push(f)}function i(u,d){let f=0,p=0,h=-1,g=0;for(;f<u.length;)if(p<d.length&&(d[p]===u[f]||d[p]==="*"))d[p]==="*"?(h=p,g=f,p++):(f++,p++);else if(h!==-1)p=h+1,g++,f=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function s(){let u=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),u}function a(u){for(let d of r.skips)if(i(u,d))return!1;for(let d of r.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}DC.exports=Oj});var MC=Ed((Ze,Ou)=>{Ze.formatArgs=Rj;Ze.save=Pj;Ze.load=$j;Ze.useColors=Tj;Ze.storage=Ij();Ze.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ze.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Tj(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Rj(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ou.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(r++,o==="%c"&&(n=r))}),e.splice(n,0,t)}Ze.log=console.debug||console.log||(()=>{});function Pj(e){try{e?Ze.storage.setItem("debug",e):Ze.storage.removeItem("debug")}catch{}}function $j(){let e;try{e=Ze.storage.getItem("debug")||Ze.storage.getItem("DEBUG")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Ij(){try{return localStorage}catch{}}Ou.exports=LC()(Ze);var{formatters:Fj}=Ou.exports;Fj.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var vB={};G(vB,{ANIMATION_PROPS:()=>Ug,ARIA_ROLES:()=>yI,ATTR_TRANSFORMS:()=>om,BLOCK_PROPS:()=>Wg,CDN_PROVIDERS:()=>Ct,CONFIG:()=>ac,CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_PROPS_REGISTRY:()=>Se,CSS_UNITS:()=>Ln,DEFAULT_CONFIG:()=>Ps,DEFAULT_CSS_PROPERTIES_LIST:()=>De,DELEGATED_EVENTS:()=>Ss,DESIGN_SYSTEM_OPTIONS:()=>uy,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>xr,DOM_EVENTS:()=>iS,ENV:()=>vp,FACTORY:()=>ir,FLEX_PROPS:()=>Xg,FONT_PROPS:()=>Hg,GRID_PROPS:()=>Yg,HTML_ATTRIBUTES:()=>zc,HTML_TAGS:()=>Gn,LIFECYCLE_EVENTS:()=>vn,METHODS:()=>Vn,METHODS_EXL:()=>li,MISC_PROPS:()=>qg,MIXINS:()=>Ng,NODE_ENV:()=>wt,OPTIONS:()=>Pi,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ai,POSITION_PROPS:()=>Gg,PROPS_METHODS:()=>vr,REGISTRY:()=>Ye,ROUTER_OPTIONS:()=>ru,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>_s,THEME_PROPS:()=>Kg,TIMING_PROPS:()=>Os,TYPES:()=>ei,UNIVERSAL_RESERVED_KEYS:()=>Zl,VALUE_TRANSFORMERS:()=>Ig,activateConfig:()=>c$,addCaching:()=>jl,addContext:()=>Fl,addDelegatedEvent:()=>Bc,addExtend:()=>Hp,addExtends:()=>Ke,addItemAfterEveryElement:()=>Wd,addMethods:()=>Rs,addProtoToArray:()=>ni,addRef:()=>Pl,animation:()=>cw,appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyAttrTransforms:()=>am,applyCSS:()=>sy,applyDependentState:()=>uh,applyDocument:()=>Tc,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>Cs,applyHeadings:()=>Cg,applyInitialState:()=>rm,applyMediaSequenceVars:()=>dn,applyProps:()=>Ci,applyReset:()=>Ic,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,applySpacingSequence:()=>Cc,applyStateMethods:()=>ht,applyTimingSequence:()=>Oc,applyTrueProps:()=>Jg,applyTypographySequence:()=>wc,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,batch:()=>br,breakpoints:()=>aw,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>as,cache:()=>gh,cacheNode:()=>xn,call:()=>Ih,captureSnapshot:()=>jh,changeGlobalTheme:()=>Fg,changeLightness:()=>W_,checkAttributeByTagName:()=>Fr,checkEventFunctions:()=>sm,checkForStateTypes:()=>sh,checkIfBoxSize:()=>kc,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,class:()=>hw,clone:()=>sp,cloneAndMergeArrayExtend:()=>yi,cloneFunction:()=>Tp,color:()=>ew,colorStringToRgbaArray:()=>nr,components:()=>uo,concatAddExtends:()=>zp,convertSvgToSymbol:()=>gc,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,create:()=>k0,createAsync:()=>yB,createBasedOnType:()=>Rl,createComputed:()=>E0,createConfig:()=>yg,createDefine:()=>S1,createEffect:()=>Ae,createElement:()=>ih,createElementExtends:()=>bl,createExtends:()=>xi,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createHTMLNode:()=>vs,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>gi,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Ai,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createScopeStore:()=>il,createSignal:()=>Vt,createSkeleton:()=>xB,createSnapshotId:()=>hi,createState:()=>Qw,createStore:()=>at,createSync:()=>bB,css:()=>$r,cssMediaVars:()=>gg,cssVars:()=>hg,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>mi,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>rs,deepDestringifyFunctions:()=>Ut,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>ci,defaultDefine:()=>ho,defineSetter:()=>Ph,destringifyGlobalScope:()=>fi,destroy:()=>Ds,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,detectTag:()=>bn,devices:()=>lw,dispose:()=>_n,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,executeAttr:()=>xI,exetuteClassPerComponent:()=>sI,extendCachedRegistry:()=>Up,extendStackRegistry:()=>vi,extractArrayExtend:()=>wi,extractConditionalAttrs:()=>wI,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,filterAttributesByTagName:()=>bI,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Zh,findHeadingLetter:()=>_g,findHeadings:()=>pc,findInheritedState:()=>Nl,findKeyPosition:()=>Zd,flattenExtend:()=>Xn,font:()=>K_,fontFace:()=>Z_,fontFamily:()=>X_,fontFamilyTypes:()=>Y_,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>pi,generateMetaTags:()=>Xh,generateSequence:()=>Qe,generateSequencePosition:()=>xw,generateSprite:()=>ps,generateSubSequence:()=>fc,get:()=>Oh,getActiveConfig:()=>T,getActiveDocument:()=>Lg,getActiveLang:()=>Ms,getCDNUrl:()=>At,getCacheSize:()=>Lw,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zi,getColor:()=>me,getColorShade:()=>cg,getContext:()=>Xi,getCookie:()=>jp,getDB:()=>es,getDefaultOrFirstKey:()=>ro,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>bi,getExtendsStackRegistry:()=>ml,getFnPrefixAndValue:()=>Rr,getFontFace:()=>q_,getFontFaceEach:()=>no,getFontFaceEachString:()=>pg,getFontFaceString:()=>rc,getFontFamily:()=>_c,getFontFormat:()=>fg,getFontSizeByKey:()=>Sc,getFrequencyInArray:()=>Md,getHashedExtend:()=>_i,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLanguages:()=>iu,getLocalStateLang:()=>uu,getLocalStorage:()=>Lp,getMediaColor:()=>je,getMediaTheme:()=>Ot,getNev:()=>kp,getObserver:()=>jn,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>Ui,getQuery:()=>ts,getRef:()=>Rh,getRgbTone:()=>un,getRoot:()=>qi,getRootContext:()=>Ki,getRootData:()=>Gi,getRootState:()=>Hi,getRootStateInKey:()=>Dl,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>vg,getSequenceValuePropertyPair:()=>ar,getShadow:()=>Ec,getSignals:()=>R0,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Oe,getSpreadChildren:()=>Xp,getSubratio:()=>uc,getSubratioDifference:()=>cc,getSystemGlobalTheme:()=>pt,getTheme:()=>yc,getTimingByKey:()=>ut,getTimingFunction:()=>Tt,global:()=>Fd,gradient:()=>tw,grid:()=>pw,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,hexToRgb:()=>B_,hexToRgbArray:()=>ig,hexToRgba:()=>z_,hslToRgb:()=>lg,icons:()=>ow,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Ei,inheritRecursiveChildExtends:()=>_l,init:()=>po,initPolyglot:()=>fy,initProps:()=>th,injectGlobal:()=>we,is:()=>qe,isArray:()=>$,isBoolean:()=>sl,isCSSVar:()=>xe,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>We,isDate:()=>ll,isDefined:()=>He,isDevelopment:()=>wr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isGoogleFontsUrl:()=>cs,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>tr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>zt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>_r,isResolvedColor:()=>or,isScalingUnit:()=>Dn,isStaging:()=>wp,isState:()=>lh,isStore:()=>Fe,isString:()=>A,isStringFunction:()=>Op,isSvgTag:()=>ws,isTest:()=>pl,isTesting:()=>_p,isTracking:()=>nS,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,isValidTag:()=>xs,isWasmLoaded:()=>f1,joinArrays:()=>Mn,jointStacks:()=>Wp,keyframes:()=>bs,keys:()=>Xl,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,loadTranslations:()=>au,loadWasm:()=>u1,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>ip,mapStringsWithContextComponents:()=>Si,matchesComponentNaming:()=>Ht,media:()=>J_,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ns,mixTwoColors:()=>N_,mixTwoRgb:()=>U_,mixTwoRgba:()=>ug,nextElement:()=>Zi,normalizeLibraryKey:()=>eo,numToLetterMap:()=>sr,objectToString:()=>ui,objectizeStringProperty:()=>ki,opacify:()=>ls,overwrite:()=>di,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseColorToken:()=>Or,parseDeep:()=>Bi,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,polyglotFunctions:()=>Ns,polyglotPlugin:()=>fu,popConfig:()=>_e,previousElement:()=>Ji,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,pushConfig:()=>Ee,registerEvent:()=>ks,reinit:()=>iy,remove:()=>Es,removeChars:()=>tg,removeCookie:()=>Dp,removeDelegatedEvent:()=>Vc,removeDuplicateProps:()=>Ti,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ri,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Xe,resolveColorsInGradient:()=>jc,resolveFileSource:()=>nm,resolveFileUrl:()=>Et,resolveHandler:()=>Hn,resolvePropValue:()=>Ir,resolveSharedLibraries:()=>Jh,returnSubThemeOrDefault:()=>H_,returnValueAsText:()=>Tl,rgbArrayToHex:()=>sg,rgbToHSL:()=>ag,rgbToHex:()=>V_,runPluginHook:()=>St,runThroughMedia:()=>kg,scratchDefaultConfig:()=>fs,scratchSystem:()=>ys,scratchUtils:()=>pn,self:()=>jd,semanticIcons:()=>iw,sequence:()=>Tr,set:()=>oo,setActiveConfig:()=>mg,setActiveDocument:()=>jw,setActiveRootState:()=>Wi,setClass:()=>ZI,setClassname:()=>aI,setColor:()=>hn,setCookie:()=>Fp,setCssEngineHook:()=>Jc,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setEach:()=>Pw,setFont:()=>vc,setFontFamily:()=>gs,setFontImport:()=>us,setGradient:()=>gn,setHashedExtend:()=>gl,setInCustomFontMedia:()=>dg,setInObjectByPath:()=>gp,setLang:()=>lu,setLocalStorage:()=>Mp,setMediaTheme:()=>xc,setNodeStyles:()=>Kl,setObserver:()=>A0,setProps:()=>Th,setPropsPrototype:()=>Oi,setSVG:()=>ms,setScalingVar:()=>lc,setShadow:()=>mn,setSubScalingVar:()=>xg,setSvgIcon:()=>Pc,setTheme:()=>bc,setValue:()=>Rw,setVariables:()=>vw,setWasmEngine:()=>Nc,shadow:()=>nw,spacing:()=>Q_,splitSpacedValue:()=>Ac,splitTopLevelCommas:()=>cn,splitTransition:()=>$g,spotByPath:()=>Vi,srcsetFor:()=>to,stringIncludesAny:()=>ii,stringToObject:()=>ap,svg:()=>uw,svgData:()=>fw,swapItemsInArray:()=>Bd,syncProps:()=>Ri,templates:()=>dw,theme:()=>rw,timing:()=>sw,toCamel:()=>sc,toCamelCase:()=>os,toDashCase:()=>is,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,transformBackgroundImage:()=>Rg,transformBorder:()=>lr,transformBorderRadius:()=>Lc,transformBoxShadow:()=>Fc,transformClassname:()=>Xw,transformDuration:()=>Dc,transformShadow:()=>Tg,transformSize:()=>ve,transformSizeRatio:()=>ne,transformTextStroke:()=>Og,transformTransition:()=>Tw,transformersByPrefix:()=>Qg,transfromGap:()=>Pg,translate:()=>su,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,typography:()=>nc,unit:()=>G_,unstackArrayOfObjects:()=>ti,update:()=>As,updateProps:()=>rh,updateVars:()=>YI,upsertTranslation:()=>cu,useCssInProps:()=>et,useHostState:()=>rS,usePropsAsCSS:()=>Gw,useSelectorsAsCSS:()=>Kw,variables:()=>Qi,vars:()=>gw,verbose:()=>Zn,warn:()=>Yi,window:()=>C});module.exports=JP(vB);var Ue=null,rl=0,nl=[],jn=()=>Ue,A0=e=>{Ue=e};function Vt(e){let t=new Set;function r(){return Ue&&(t.add(Ue),Ue._sources.add(i)),e}function n(s){s!==e&&(e=s,T0(t))}function o(){return e}let i={get:r,set:n,peek:o,_subscribers:t,_type:"signal"};return i}function E0(e){let t,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Pd(o);let i=Ue;Ue=o;try{let s=e();s!==t?(t=s,r=!1,T0(n)):r=!1}finally{Ue=i}},_notify(){r=!0,n.size>0&&o._execute()},get(){return Ue&&(n.add(Ue),Ue._sources.add(o)),r&&o._execute(),t},peek(){return r&&o._execute(),t}};return o._execute(),o}var Td=new Set,Rd=!1;function Ae(e,t){let r=t?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Pd(n);let o=Ue;Ue=n;try{e()}catch(i){console.error("[smbls] effect error:",i)}finally{Ue=o}},_notify(){n._disposed||(rl>0?nl.push(n):O0(n))},dispose(){n._disposed=!0,Pd(n)}};return n._execute(),n}function br(e){rl++;try{e()}finally{rl--,rl===0&&e2()}}function O0(e){Td.add(e),Rd||(Rd=!0,queueMicrotask(QP))}function QP(){Rd=!1;let e=Array.from(Td).sort((t,r)=>t._depth-r._depth);Td=new Set;for(let t=0;t<e.length;t++){let r=e[t];r._disposed||r._execute()}}function e2(){for(let e=0;e<nl.length;e++)O0(nl[e]);nl.length=0}function T0(e){let t=Array.from(e);for(let r=0;r<t.length;r++)t[r]._notify()}function Pd(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Zr=Symbol("store"),ol=Symbol("signals"),$d=e=>!e||typeof e!="object"||Array.isArray(e)||e[Zr]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function at(e,t,r){r===void 0&&(r=0);let n={},o={},i=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let b=e[y];r<i&&b&&typeof b=="object"&&!$d(b)?(o[y]=b,n[y]=Vt(at(b,t,r+1))):(o[y]=b,n[y]=Vt(b))}let s=new Proxy(o,{get(y,b){if(b===Zr)return!0;if(b===ol)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return c;if(b==="clean")return u;if(b==="keys")return d;if(b==="values")return f;if(b==="replace")return p;if(b==="add")return h;if(b==="remove")return g;if(b==="destroy")return m;if(b==="quietUpdate")return l;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b))return n[b].get();if(y[b]!==void 0)return y[b];if(b!=="root"&&y.root&&y.root!==s)return y.root[b];if(typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&jn()!=null)return n[b]=Vt(void 0),n[b].get()},set(y,b,v){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=v,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=v,v&&typeof v=="object"&&!$d(v)?n[b].set(at(v,t,r+1)):n[b].set(v)):(y[b]=v,v&&typeof v=="object"&&!$d(v)?n[b]=Vt(at(v,t,r+1)):n[b]=Vt(v)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){br(()=>{for(let x in y)x!=="__proto__"&&(s[x]=y[x])});let v=o.__element;return v&&v.onUpdate&&!b?.quiet&&v.onUpdate(v,s,v.context),s}function l(y){return a(y,{quiet:!0})}function c(y){if(y||(y=new Set),y.has(s))return"[Circular]";y.add(s);let b={};for(let v in n){if(v==="parent"||v==="root"||v.startsWith("__"))continue;let x=n[v].peek();x&&x[Zr]?b[v]=x.parse(y):b[v]=x}return b}function u(){return br(()=>{for(let y in n)delete s[y]}),s}function d(){return Object.keys(n)}function f(){return Object.keys(n).map(y=>n[y].peek())}function p(y){return br(()=>{for(let b in n)b in y||delete s[b];for(let b in y)b!=="__proto__"&&(s[b]=y[b])}),s}function h(y,b){return s[y]=b,s}function g(y){return delete s[y],s}function m(){u(),o.__element=null,o.parent=null}return s}function Fe(e){return e&&e[Zr]===!0}function R0(e){return e[ol]}function il(e,t){let r={},n={};if(e&&typeof e=="object")for(let s in e)n[s]=e[s],r[s]=Vt(e[s]);let o=s=>{if(Object.prototype.hasOwnProperty.call(r,s))return r;let a=t;for(;a;){let l=a[ol];if(l&&Object.prototype.hasOwnProperty.call(l,s))return l;a=a[Zr]?a[Id]:null}return null};return new Proxy(n,{get(s,a){return a===Zr?!0:a===ol?r:a===Id?t:a==="__raw"?s:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:s[a]},set(s,a,l){let c=o(a);return c?(c===r&&(s[a]=l),c[a].set(l),!0):(s[a]=l,r[a]=Vt(l),!0)},has(s,a){if(a in r||a in s)return!0;let l=t;for(;l;){if(a in l)return!0;l=l[Zr]?l[Id]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(s,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(s,a)}})}var Id=Symbol("scope.parent");var pn={};G(pn,{CSS_NATIVE_COLOR_REGEX:()=>Gt,CSS_UNITS:()=>Ln,applyMediaSequenceVars:()=>dn,applySequenceGlobalVars:()=>hc,applySequenceVars:()=>Pr,changeLightness:()=>W_,colorStringToRgbaArray:()=>nr,convertSvgToSymbol:()=>gc,findHeadingLetter:()=>_g,findHeadings:()=>pc,generateSequence:()=>Qe,generateSequencePosition:()=>xw,generateSprite:()=>ps,generateSubSequence:()=>fc,getColorShade:()=>cg,getDefaultOrFirstKey:()=>ro,getFnPrefixAndValue:()=>Rr,getFontFace:()=>q_,getFontFaceEach:()=>no,getFontFaceEachString:()=>pg,getFontFaceString:()=>rc,getFontFormat:()=>fg,getRgbTone:()=>un,getSequenceValue:()=>dc,getSequenceValueBySymbols:()=>vg,getSequenceValuePropertyPair:()=>ar,getSubratio:()=>uc,getSubratioDifference:()=>cc,hexToRgb:()=>B_,hexToRgbArray:()=>ig,hexToRgba:()=>z_,hslToRgb:()=>lg,isCSSVar:()=>xe,isGoogleFontsUrl:()=>cs,isResolvedColor:()=>or,isScalingUnit:()=>Dn,mixTwoColors:()=>N_,mixTwoRgb:()=>U_,mixTwoRgba:()=>ug,numToLetterMap:()=>sr,opacify:()=>ls,parseColorToken:()=>Or,resolveFileUrl:()=>Et,returnSubThemeOrDefault:()=>H_,rgbArrayToHex:()=>sg,rgbToHSL:()=>ag,rgbToHex:()=>V_,setCustomFont:()=>tc,setCustomFontMedia:()=>fn,setFontImport:()=>us,setInCustomFontMedia:()=>dg,setScalingVar:()=>lc,setSubScalingVar:()=>xg,setVariables:()=>vw,splitTopLevelCommas:()=>cn});var Dn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Ln=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];M();var nr=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&pe&&C){let t=pe.body.appendChild(pe.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){pe.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return pe.body.removeChild(t),[0,0,0,0];e=C.getComputedStyle(t).color,pe.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},N_=(e,t,r=.5)=>(e=nr(e),t=nr(t),ug(e,t,r)),B_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgb(${r},${n},${o})`},ig=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return[r,n,o]},V_=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),sg=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),z_=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgba(${r},${n},${o},${t})`},U_=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},W_=(e,t)=>{let[r,n,o]=t,i=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,i]},ag=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),i=1-Math.abs(n+n-o-1),s=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),i?o/i:0,(n+n-o)/2]},lg=(e,t,r,n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1))=>[o(0),o(8),o(4)],cg=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let i=(r&255)+t;return i>255?i=255:i<0&&(i=0),((i|o<<8|n<<16)+16777216).toString(16).slice(1)},ug=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let i=o===3?s=>s:Math.round;n[o]=i(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},ls=(e,t)=>{let r=nr(e);if(!r){nn()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},xe=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Gt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,r$=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Or=e=>{if(!A(e))return null;if(Gt.test(e))return{passthrough:e};if(xe(e))return{cssVar:e};let t=e.match(r$);if(!t)return null;let[,r,n,o]=t,i=n!==void 0?`0.${n}`:void 0,s=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:i,tone:s}},or=e=>A(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),cn=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},un=(e,t)=>{A(e)&&e.includes("rgb")&&(e=nr(e).join(", ")),A(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),zt(t)&&(t+="");let r=sg(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=cg(r,parseFloat(t));return ig(o).join(", ")}else{let[o,i,s]=e,a=ag(o,i,s),[l,c,u]=a;return lg(l,c,parseFloat(t)/100*255)}};var H_=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e};var Et=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},ro=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},fg=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},cs=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),us=e=>`@import url('${e}');`,dg=e=>`@font-face { ${e} }`,tc=(e,t,r,n={})=>{let s=(Array.isArray(t)?t:[t]).filter(a=>typeof a=="string"&&a).map(a=>{let l=fg(a),c=l?` format('${l}')`:"";return`url('${a}')${c}`}).join(`,
|
|
28
28
|
`);return`
|
|
29
29
|
font-family: '${e}';
|
|
30
30
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
31
31
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
32
32
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
33
33
|
font-display: ${n.fontDisplay};`:""}
|
|
34
|
-
src: ${
|
|
35
|
-
}`,ro=(e,t,r)=>Object.keys(t).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(s)?s.map(d=>Et(d,r)||d):Et(s,r)||s;return rc(e,u,i,{fontStyle:a,fontDisplay:l,fontStretch:c})}),Kw=e=>Object.keys(e).map(r=>ro(r,e[r].value)),hg=(e,t,r)=>{if(t&&t.isVariable){let s=Et(t.url,r)||t.url;return ai(s)?li(s):un(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return ro(e,t,r).map(pg);let o=Array.isArray(t.url)?t.url.map(s=>Et(s,r)||s):Et(t.url,r)||t.url;return un(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},nc=(e,t)=>Object.keys(e).map(n=>hg(n,e[n].value,t));D();D();D();var ci={};K(ci,{animation:()=>f_,breakpoints:()=>c_,class:()=>m_,color:()=>r_,devices:()=>u_,document:()=>s$,font:()=>Yw,fontFace:()=>Qw,fontFamily:()=>Zw,fontFamilyTypes:()=>Jw,gradient:()=>n_,grid:()=>g_,icons:()=>i_,media:()=>e_,reset:()=>a$,semanticIcons:()=>a_,sequence:()=>Tr,shadow:()=>s_,spacing:()=>t_,svg:()=>d_,svgData:()=>p_,templates:()=>h_,theme:()=>o_,timing:()=>l_,typography:()=>oc,unit:()=>Xw,vars:()=>y_});var Tr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var Xw={default:"em"};var r$={browserDefault:16,base:16,type:"font-size",ratio:Tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},oc=r$;var Yw={};var Zw={},Jw={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Qw={};var e_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var n$={base:oc.base,type:"spacing",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},t_=n$;var r_={},n_={};var o_={};var s_={};var i_={},a_={};var o$={default:150,base:150,type:"timing",ratio:Tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},l_=o$;var s$={};var c_={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},u_={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var f_={};var d_={},p_={};var h_={};var i$={},g_=i$;var m_={};var a$={},y_={};var gg={},mg={},sc=ci,ic={},ac=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in sc){let t=e.toLowerCase();ic[t]=sc[e];let r=ac(t);r!==t&&(ic[r]=sc[e]),t!==e&&(ic[e]=sc[e])}var lc={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:gg,cssMediaVars:mg,CSS_VARS:gg,CSS_MEDIA_VARS:mg,_scratchConfig:!0,...ic},b_=ge(lc),sr={active:"0",0:lc},l$=e=>(qe(e)&&(sr.active=e),sr[e||sr.active]),ui=[],Oe=e=>{e&&e._scratchConfig&&ui.push(e)},we=()=>{ui.pop()},T=e=>ui.length?ui[ui.length-1]:sr[e||sr.active]||lc,yg=e=>{if(S(e))return sr.active="1",sr[1]=fe(e,ge(b_)),e},c$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],u$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],f$=e=>{for(let t of u$){let r;for(let n of t){let o=e[n];S(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)S(e[n])&&(e[n]=r)}},bg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=ge(!r&&n&&n._scratchConfig?n:b_);for(let i of c$)delete o[i];let s=fe(t||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,f$(s),e&&(sr[e]=s),s};var ir={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},vg=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=v_.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Rr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},v_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),cc=(e,t)=>{let{base:r,type:n,unit:o}=t,s=v_.has(o)?"rem":o,i=(Fn(s)?1:r)+s;if(e===0)return i;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=ir[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=ir[e+1],d=Math.abs(e),f=Math.pow(x_,2*d),p=ir[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},xg=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},uc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,s=e+n,i=(o+s)/2;return[o,i,s]},fc=(e,t)=>uc(e,t).map(r=>r/e),dc=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,c=~~(o*s)-~~o,u,[d,f,p]=uc(o,s);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=i+(g+1),b=a+(g+1)/10,x=xg(g+1,u,i,t),v={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:x,index:b};vg(v,t)})},x_=1.618,d$=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(x_,2*n);return Math.max(o,s)},et=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=i;c++){let u=o[1]-c,d=ir[u],f=d$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=cc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};vg(m,e),s&&dc(m,e)}return e},w_=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=A(t)?t:ir[t],a=A(t)?Object.entries(ir).find(([,m])=>m===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,h=cc(a,e),g={key:i,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return vg(g,l),s&&dc(g,l),l},pc=(e="A",t)=>{let r=T(),{unit:n}=r;if(A(e)&&ve(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Dn.some(x=>e.includes(x))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${ni(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=x=>a.test(x)?`var(${f}${x}${m})`:x;if(g.includes("+")){let[x,v]=g.split("+"),w=`${y(x)} + ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("*")){let[x,v]=g.split("*"),w=`${y(x)} * ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}else if(g.includes("-")){let[x,v]=g.split("-"),w=`${y(x)} - ${y(v)}`;return h?`calc((${w}) * -1)`:`calc(${w})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let x=`var(${f}${g}${m})`;return h?`calc(${x} * -1)`:x}let b=o?o[g]:null;return b?s==="ms"||s==="s"?h+b.val+s:h+b.scaling+s:console.warn("can't find",o,g)},wg=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:pc(i,t)}).join("")},ar=(e,t,r,n)=>{if(typeof e!="string")return T().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let s=Rr(e);n=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=wg(e,r):e=pc(e,r),{[t]:n?`${n}(${e})`:e}},_g=(e,t)=>ir[e-t],hc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=_g(t,o);return r[s]})};D();var __=(e,t)=>{let r=T(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},gc=(e,t,r)=>{let n=T(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=i,e[`${u}-unit`]=s;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=fc(i,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},S_=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pr=(e,t={})=>{let r=T(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=S_.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||gc(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},fn=(e,t,r={})=>{let n=T(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=S_.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),gc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Fn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};D();var C_=rn(),fi=e=>{let t=T(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},p$=e=>{let t=e&&(e.default||e);if(!A(t))return C_&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((s,i)=>{let[a,l]=i.split("=");return s[a]=l.replace(/['"]/g,""),s},{}):{}},h$=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},k_=new Set,mc=(e,t)=>{let r=t&&t.default?t.default:t;if(!A(r))return C_&&!k_.has(e)&&(k_.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=p$(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,c=h$(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=y$(c),c},g$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",m$=new RegExp(`<(${g$})\\b([^>]*?)\\s*/>`,"g"),y$=e=>e.replace(m$,"<$1$2></$1>");var gi={};K(gi,{appendSVGSprite:()=>Pc,appendSvgIconsSprite:()=>Ic,applyDocument:()=>Rc,applyHeadings:()=>Ag,applyReset:()=>jc,applySpacingSequence:()=>Ac,applyTimingSequence:()=>Tc,applyTypographySequence:()=>Sc,checkIfBoxSize:()=>Cc,getColor:()=>me,getFontFamily:()=>_c,getFontSizeByKey:()=>kc,getMediaColor:()=>De,getMediaTheme:()=>Ot,getShadow:()=>Oc,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Te,getTheme:()=>bc,getTimingByKey:()=>ft,getTimingFunction:()=>Tt,runThroughMedia:()=>Cg,setColor:()=>pn,setFont:()=>wc,setFontFamily:()=>pi,setGradient:()=>hn,setMediaTheme:()=>xc,setSVG:()=>hi,setShadow:()=>gn,setSvgIcon:()=>$c,setTheme:()=>vc,splitSpacedValue:()=>Ec});D();var me=(e,t,r)=>{let n=r||T();if(!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(ve(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(P(e))[o,s,i]=e;else{let d=Or(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=cn(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},De=(e,t,r)=>{let n=r||T();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(ve(e))return`var(${e})`;let o;if(P(e))o=e[0];else{let c=Or(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=S(a);if(l&&a.value)return me(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return me(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=me(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},pn=(e,t,r)=>{let n=T();if(A(e)&&ve(e)){let g=e.slice(2);if(e=me(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(A(y)||P(y)||S(y))&&(n.color[m[0]]=pn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",v=m[2];v&&(b=cn(b,v)),e=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let v=nr(m[0]);v&&v.length>=3?e=`rgba(${cn(v.slice(0,3).join(", "),b)}, ${x})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if(P(e)&&(e={"@light":e[0],"@dark":e[1]}),S(e)){let g={};for(let m in e)g[m]=pn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,x={};for(let v in g){if(v.charCodeAt(0)!==64)continue;let w=v.slice(1),k=g[v],E=k&&(k.value||k);!E||typeof E!="string"||(x[w]=E,(w==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let v in x){let w=`[data-theme="${v}"]`;if(n.cssMediaVars[w]||(n.cssMediaVars[w]={}),n.cssMediaVars[w][y]=x[v],v==="light"||v==="dark"){let k=`@media (prefers-color-scheme: ${v})`;n.cssMediaVars[k]||(n.cssMediaVars[k]={}),n.cssMediaVars[k][y]=x[v]}}g.var=y}}return g}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(A(i)&&i.includes(".")&&!i.includes("(")){let[g,m]=i.split("."),y=n.color[g];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(A(i)&&!i.includes("(")&&!i.startsWith("#")){let g=Or(i);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(A(m)||P(m)||S(m))&&(n.color[g.name]=pn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=cn(b,g.tone));let x=g.alpha?parseFloat(g.alpha):1;i=`rgba(${b}, ${x})`}}}let a=nr(i),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[s]=h),{var:s,rgb:p,alpha:f,value:h}},hn=(e,t,r)=>{let n=T();if(A(e)&&ve(e)&&(e=me(e.slice(2))),P(e))return{"@light":hn(e[0],t,"light"),"@dark":hn(e[0],t,"dark")};if(S(e)){let i={};for(let a in e)i[a]=hn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return i}let s=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[s]=e.value||e),{var:s,value:e.value||e}};D();var b$=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),A_=["color","Color","background","Background","fill","Fill","stroke","Stroke"],v$=e=>{for(let t=0;t<A_.length;t++)if(e.includes(A_[t]))return!0;return!1},yc=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?me(e[a]):e[a]}),t},di=e=>(e.value||(e.value=yc(e)),e.value),bc=(e,t)=>{let r=T();if(r.useVariable)return Ot(e,t);let n=r.theme;if(A(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return di(i);e=[o,s||t]}}if(re(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return di(a[s]);if(i&&i[s])return di(i[s]);if(l&&l[s])return di(l[s])}else if(S(e))return yc(e)},x$=(e,t,r)=>{if(S(t))e.variants.inverse.value=yc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},w$=(e,t,r,n)=>{let o=bc(r);n[`&:${t}`]=o,S(r)&&!r.value&&(r.value=o)},_$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return w$(e,o,s,t),e}),e):void 0},S$=(e,t,r,n)=>{let o=bc(r);n[`@media (prefers-color-scheme: ${t})`]=o,S(r)&&!r.value&&(r.value=o)},k$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&S$(e,o,s,t),o==="inverse"&&x$(e,s,t),e}),e):void 0},C$=(e,t)=>{let r=T(),{helpers:n}=e;return n?(Object.keys(n).map(s=>{let i=n[s];return A(i)?n[s]=r.theme[i]:di(n[s]),e}),e):void 0},vc=(e,t)=>{let r=T();if(r.useVariable)return xc(e,t);let{state:n,media:o,helpers:s}=e,i=yc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return _$(e,i),k$(e,i),C$(e,i),{var:l,value:i,state:n,media:o,helpers:s}};var Sg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&v$(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=me(f,`@${d}`);p!==void 0&&A(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!b$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sg(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=me(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][p]=b,m==="dark"||m==="light"){let v=`@media (prefers-color-scheme: ${m})`;o[v]||(o[v]={}),o[v][p]=b}}g!==void 0&&(n[p]=g),i[c]=`var(${p})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},xc=(e,t,r,n)=>{let o=T(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Sg(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=xc(u,t,l,n||d)}else if(!a){let d=me(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[g]=d),i[l]=`var(${g})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(A(e)&&ve(e)){let c=o.theme[e.slice(2)];return Ot(c,n)}return i},kg=e=>{let t=T(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=kg(e[n]):o==="."&&(r[`&${n}`]=kg(e[n]))}else r[n]=e[n]}return r},O_=(e,t)=>{let r=t.shift();return e[r]?O_(e[r],t):e},E_=(e,t)=>P(t)?O_(e,t):A(t)&&e[t]?e[t]:e;var Ot=(e,t)=>{let r=T();if(A(e)&&ve(e)&&(e=Ot(e.slice(2))),!e||!A(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=P(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=E_(s,o):s&&t&&(s=E_(s,t)),kg(s)};D();D();var wc=(e,t)=>{let r=T(),n=`--font-${t}`;if(!e||P(e)&&!e[0])return;let o;if(e.isVariable){let s=Et(e.url,r.files)||e.url;ai(s)?o=li(s):o=un(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=ro(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>Et(i,r.files)||i):Et(e.url,r.files)||e.url;o=un(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},_c=(e,t)=>{let r=T(),{fontFamily:n}=r;return to(t||n,e)},pi=(e,t)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),S(s)&&(s=an(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};D();var Cg=e=>{let t=T(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ye(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){ye(i,{sequence:{},scales:{},vars:{}}),et(i),fn(e,o);continue}ye(i,{sequence:{},scales:{},templates:{},vars:{}}),et(i),fn(e,o)}},Ag=e=>{let t=T();if(e.h1Matches){let r=e.unit,n=hc(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Sc=()=>{let e=T(),{typography:t}=e;et(t),Ag(t),Pr(t),Cg(t)},kc=e=>{let t=T(),{typography:r}=t;return ar(e,"fontSize",r)};D();D();var A$=e=>{let r=T().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return et(o),o},E$=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u}=e;ye(r,{type:o,base:s,ratio:i,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),et(r),fn(e,t)}},Cc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Ac=()=>{let e=T(),{spacing:t}=e;et(t),Pr(t),E$(t)},O$=e=>{let t=T(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:et(e)},Te=(e,t="padding",r,n)=>{let o=O$(r);if(A(e)&&!n&&e.includes("(")){let i=Rr(e);n=i[0],e=i[1]}let s=n?[e]:an(e);if(P(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>ar(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return ar(e,t,o,n)}},Kt=(e,t,r,n)=>{let o=T(),{spacing:s}=o,i=r||e[t];if(!n&&A(i)&&i.includes("(")){let a=Rr(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=A$(e);return Te(i,t,a,n)}return Te(i,t,s,n)},Ec=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Dn.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var gn=(e,t,r,n)=>{let o=T();if(P(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[1],t,"dark")};if(S(e)){let a={};for(let l in e)a[l]=gn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}A(e)&&!Gt.test(e)&&(e=ln(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=me(l);if(or(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Te(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},Oc=(e,t)=>{let r=T();if(t||(t=r.globalTheme),!A(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(ve(e))return`var(${e})`;let[n]=P(e)?e:e.split(" "),s=r.shadow[n],i=S(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(s[t])return s[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let l in s){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=s.value}return a}return r.verbose&&console.warn("Can't find color",e),e};D();var Tc=()=>{let e=T(),{timing:t}=e;et(t),Pr(t)},Tt=e=>{let t=T(),{timing:r}=t;return r[e]||r[ri(e)]||e},ft=(e,t="timing")=>{let r=T(),{timing:n}=r;return ar(e,t,n)};D();var Rc=()=>{let e=T(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:to(r),fontSize:o.base,lineHeight:o.lineHeight})};D();var Og={document:pe},hi=(e,t)=>{let r=T();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?mc(t,e):e},Pc=(e,t=Og)=>{let r=T(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];R_(n,t)},$c=(e,t)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[t]?hi(e,t):e},Ic=(e,t=Og)=>{let r=T(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];R_(n,t)},Eg=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},T$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,s=new r().parseFromString(n,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},T_=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},R_=(e,t=Og)=>{let r=T(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),fi(e);let o=n.querySelector("#svgSprite"),s=fi(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=T$(n,s);if(o)if(a)T_(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=Eg(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=Eg(n);l&&l.nodeType&&(T_(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=Eg(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};D();var jc=(e={})=>{let t=T(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Ot("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Ot("document"):{};if(r.html&&Ke(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(ye(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};D();var R$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),P$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),$$=e=>R$.has(e),lr=e=>{let t=e+"";if(Gt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(ve(o))return`var(${o})`;if($$(o)||/^\d/.test(o)||o==="0")return o;let s=me(o);if(or(s))return s;let i=Te(o,"border");return i&&i.border?i.border:o}).join(" ")},Tg=e=>Gt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(ve(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=me(t);return or(r)?r:t}).join(" "),Rg=(e,t)=>Oc(e,t),Fc=(e,t)=>Gt.test(e)?e:ln(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ve(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=me(n);if(or(o)){let i=De(n,t);return S(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Te(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Dc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",a=ln(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||P$.has(u)||u==="transparent"||Gt.test(u))return u;let d=me(u);return or(d)?d:u}).join(" ")));return n+a.join(", ")+s},Pg=(e,t)=>{let r=T();return e.split(", ").map(n=>ve(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Dc(n,t):r.gradient[e]?{backgroundImage:De(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Or(n)?`url(${n})`:n).join(" ")},$g=e=>A(e)&&e.split(" ").map(t=>Te(t,"gap").gap).join(" "),P_=e=>{let t=e.split(" ");return t.length?t.map(r=>ve(r)?`var(${r})`:r.length<3||r.includes("ms")?ft(r).timing||r:Tt(r)?Tt(r):r).join(" "):e},Lc=(e,t,r)=>{if(A(e))return e.split(",").map(n=>ft(n).timing||n).join(",")},Ig=e=>{let t=e.split(",");if(t.length)return t.map(P_).join(",")};function xe(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let s;if(A(o)){if(o.includes("(")){let l=Rr(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=Cc(e);!i&&a&&!n.ratio&&(o=Ec(o))}return n.ratio?Kt(r,e,o,s):Te(o,e,void 0,s)}var ne=(e,t=null,r)=>xe(e,t,r,{ratio:!0}),Mc=(e,t,r)=>{if(A(e))return{borderRadius:e.split(" ").map((n,o)=>Kt(t,r,n)[r]).join(" ")}};D();var I$=(e,t)=>{let r=T(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},dt=e=>e,jg={color:pn,gradient:hn,font:wc,fontFamily:pi,fontfamily:pi,theme:vc,icons:$c,semanticIcons:dt,semanticicons:dt,svg:hi,svgData:dt,typography:dt,shadow:gn,spacing:dt,media:dt,grid:dt,class:dt,timing:dt,reset:dt,unit:dt,animation:dt,vars:I$},$_=(e,t,r)=>{let n=T(),o=ac(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=jg[o]||jg[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},I_=(e,t)=>{let r=T(),n=e.toLowerCase();return Object.keys(t).sort((s,i)=>{let a=S(t[s])||P(t[s])?1:0,l=S(t[i])||P(t[i])?1:0;return a-l}).forEach(s=>{try{return $_(n,t[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[s],s,i)}}),r[n]||r[e]},Fg=(e,t)=>{let r=t||T();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=s.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},j$={},no=(e,t=j$)=>{let r=t.config||T(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=yg(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=x&&x.defaultView||(typeof window<"u"?window:null),w=x&&(r.themeRoot||x.documentElement);if(w&&typeof w.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")w.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?w.style.colorScheme=r.globalTheme:w.style.colorScheme="light dark";else if(v&&v.matchMedia){let $=te=>{w.setAttribute("data-theme",te.matches?"dark":"light")},q=v.matchMedia("(prefers-color-scheme: dark)");if($(q),w.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{q.addEventListener("change",$)}catch{q.addListener($)}}}else w.setAttribute("data-theme","light"),w.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let k=Object.keys(y),E=new Set(k);if(k.forEach(_=>{let $=_.toLowerCase();$!==_&&E.has($)&&fe(y[$],y[_])}),k.map(_=>{let $=_.toLowerCase();if(!($!==_&&E.has($)))return I_(_,y[_])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{Sc()}catch(_){r.verbose&&console.warn("Error applying typography sequence",_)}if(y.spacing)try{Ac()}catch(_){r.verbose&&console.warn("Error applying spacing sequence",_)}if(y.timing)try{Tc()}catch(_){r.verbose&&console.warn("Error applying timing sequence",_)}Rc();let j=jc();return j&&(r.reset=j),r};var oo=new Map,F$=null,Lg=null,D$=null;function Nc(e){e.batchAtomicCss&&(Lg=e.batchAtomicCss),e.compoundCssClass&&(D$=e.compoundCssClass)}var L$=new Set;function L_(e){try{let t=T();t&&(t.document=e)}catch{}e&&L$.add(e)}function Mg(){try{let e=T();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var M$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function mn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Bc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function B$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Bc(t)}function j_(e,t,r){let n=(r?r+"":"")+e+":"+t,o=oo.get(n),s=o?null:mn(e);if(!o){let a=M$[e]||Bc(e),l=B$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,oo.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||mn(e)}:${t}}`;return pt(i),o}var F_=new WeakMap;function pt(e,t){let r=M_(t);if(!r)return;let n=F_.get(r);if(n||(n=new Set,F_.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var D_=new WeakMap;function M_(e){let t=e||Mg();if(!t||!t.head)return null;let r=D_.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return D_.set(t,o),F$=o,o}var N$=8;function $r(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,s=[],i=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?i.push([l,c]):Lg?(n||(n=[]),n.push(l,String(c)),o++):s.push(j_(l,String(c),r)))}if(n&&o>=N$){let l=n.join("\0"),c=Lg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
36
|
-
`);for(let h=0;h<p.length;h++)p[h]&&pt(p[h])}s.push(d)}else if(n)for(let l=0;l<n.length;l+=2)s.push(j_(n[l],n[l+1],r));let a=[];for(let l=0;l<i.length;l++)a.push(z$(i[l][0],i[l][1],r));return s.concat(a).join(" ").trim()}var Dg=new Map;function z$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=oo.get(n);if(o){let f=Dg.get(o);if(f)for(let p=0;p<f.length;p++)pt(f[p]);return o}o=r?`_${r}_c${Bc(n)}`:`_c${Bc(n)}`;let s="",i=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${mn(g)}:${m};`}}h&&(f.length===0?s+=h:i.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let f=`${e}{.${o}{${s}}}`;u.push(f),pt(f)}for(let f of i){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),pt(h)}return Dg.set(o,u),oo.set(n,o),o}let d=c([e]);if(s){let f=`${d}{${s}}`;u.push(f),pt(f)}for(let f of i){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),pt(h)}return Dg.set(o,u),oo.set(n,o),o}function _e(e){if(M_(),typeof e=="string"){pt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:mn(l);a+=`${c}:${i[l]};`}pt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:mn(s);pt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:mn(a);s+=`${c}:${l};`}}if(s&&pt(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)_e({[`${n} ${c}`]:o[c]});for(let c of a)_e({[c]:{[n]:o[c]}})}}}}function mi(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${mn(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return pt(`@keyframes ${e}{${r}}`),e}function B_(){return oo.size}D();var Bg="http://www.w3.org/2000/svg",vi=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),V$=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function yi(e){return V$.has(e)||vi.has(e)}function xi(e){return vi.has(e)}function yn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&yi(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),yi(o)&&!n.has(o)?o:"div"}var N_={};function bi(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(xi(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Bg)return r.createElementNS(Bg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function bn(e){let t=e.tag=yn(e),n=xi(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Bg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,s=N_[n];if(s||(s=N_[n]=bi(t,e)),!s)return null;let i=o&&s.ownerDocument!==o?bi(t,e):s.cloneNode(!0);return t==="string"&&(i.nodeValue=e.text||""),i}var Ze=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Ng={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),z_=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),wi=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var zg=new WeakMap,U$={passive:!0},W$={passive:!0,capture:!0},Vg=(e,t)=>z_.has(e)?t?W$:U$:t||!1;function U_(e){let t=zg.get(e);return t||(t={handlers:new Map,installed:new Set},zg.set(e,t)),t}function H$(e,t){let r=U_(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=r.handlers.get(e);if(a){let l=a.get(i);if(l){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(l(s),s.cancelBubble)return}}i=i.parentNode}},Vg(e,n))}function zc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=U_(n);H$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Vc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=zg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function V_(e){return wi.has(e)&&!vn.has(e)}function _i(e,t,r){let{node:n,context:o}=t;if(!n)return;let s=o?.designSystem,i=a=>{s&&Oe(s);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{s&&we()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&we()};if(V_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;zc(e,n,i,a)}else n.addEventListener(e,i,Vg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(V_(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Vc(e,n,a)}else n.removeEventListener(e,i,Vg(e,!1))})}function W_(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Si(e,t,r){let n=W_(t);if(!n.length)return;let s=(e.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=H_(n[i],s);a&&a!==t&&q_(e,a,r,new Set([t]))}}function H_(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function q_(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=W_(t);if(o.length){let i=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=H_(o[a],i);l&&q_(e,l,r,n)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=G_(e[s],i):e[s]=i}}function G_(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=G_(o,s):r[n]=s}return r}var ki=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o};function Ci(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(br(()=>{if(e.state&&Fe(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Ze.has(o)||o==="state")continue;let s=e[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Rt(s,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return ki("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function xn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&xn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Ai(){xn(this)}D();D();var q$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],G$=["none","forwards","backwards","both"],K$=["normal","reverse","alternate","alternate-reverse"],X$=["running","paused"],Y$=e=>/^[\d.]+m?s$/.test(e),Z$=0,Ug=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(S(e)){let o=`smbls-anim-${Z$++}`;return{animationName:mi(o,e)}}let n=r&&r[e];return S(n)?mi(e,n):e},J$=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:Y$(d)?s.push(d):q$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):K$.includes(d)?l=d:G$.includes(d)?c=d:X$.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},Wg={animation:(e,t)=>{if(A(e)&&e.includes(" ")){let r=J$(e,t);return{animationName:Ug(r.name||e,t),animationDuration:r.durations[0]||ft(t.animationDuration||"A").timing,animationDelay:r.durations[1]||ft(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Tt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:Ug(e,t),animationDuration:ft(t.animationDuration||"A").timing,animationDelay:ft(t.animationDelay||"0s").timing,animationTimingFunction:Tt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Ug(e,t)}),animationDuration:e=>({animationDuration:ft(e).timing}),animationDelay:e=>({animationDelay:ft(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Tt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var Hg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>$e(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("height",t),...xe("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("minWidth",t),...xe("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("minHeight",t),...xe("maxHeight",r||t)}},size:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("minInlineSize",t),...xe("minBlockSize",r||t)}},maxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("maxInlineSize",t),...xe("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("paddingInlineStart",t),...xe("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("paddingBlockStart",t),...xe("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...xe("marginInlineStart",t),...xe("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!A(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...xe("marginBlockStart",r),...xe("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:$g(e)}),columnGap:(e,t)=>Kt(t,"columnGap",e),rowGap:(e,t)=>Kt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Mc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Mc(e??t.round,t,"borderRadius")};var qg={fontSize:e=>kc(e)||e,fontFamily:e=>({fontFamily:_c(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var Gg={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var Kg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Te(r,"k").k).join(" ")}},left:e=>Te(e,"left"),top:e=>Te(e,"top"),right:e=>Te(e,"right"),bottom:e=>Te(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Te(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var ht=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Xg={theme:(e,t)=>{if(e)return t.themeModifier?Ot(e,`@${t.themeModifier}`):Ot(e)},color:(e,t)=>{let r=ht(t);if(e)return{color:De(e,r)}},background:(e,t)=>{let r=ht(t);if(e)return A(e)&&e.includes("gradient")?{background:Dc(e,r)}:{background:De(e,r)}},backgroundColor:(e,t)=>{let r=ht(t);if(e)return{backgroundColor:De(e,r)}},backgroundImage:(e,t,r,n)=>{let o=ht(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Pg(e,o)}},textStroke:e=>({WebkitTextStroke:Tg(e)}),outline:e=>({outline:lr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:lr(e)}),borderColor:(e,t)=>{let r=ht(t);if(e)return{borderColor:De(e,r)}},borderTopColor:(e,t)=>{let r=ht(t);if(e)return{borderTopColor:De(e,r)}},borderBottomColor:(e,t)=>{let r=ht(t);if(e)return{borderBottomColor:De(e,r)}},borderLeftColor:(e,t)=>{let r=ht(t);if(e)return{borderLeftColor:De(e,r)}},borderRightColor:(e,t)=>{let r=ht(t);if(e)return{borderRightColor:De(e,r)}},borderLeft:e=>({borderLeft:lr(e)}),borderTop:e=>({borderTop:lr(e)}),borderRight:e=>({borderRight:lr(e)}),borderBottom:e=>({borderBottom:lr(e)}),shadow:(e,t)=>{let r=ht(t);if(e)return{boxShadow:Rg(e,r)}},boxShadow:(e,t)=>{if(!A(e))return;let[r,n]=e.split("!importan"),o=ht(t),s=n?" !important":"";return{boxShadow:Fc(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:Fc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:lr(e)})};var Ei={transition:e=>({transition:Ig(e)}),transitionDuration:e=>({transitionDuration:Lc(e)}),transitionDelay:e=>({transitionDelay:Lc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Tt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var Yg={flow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Zg={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Se={...Wg,...Hg,...qg,...Gg,...Kg,...Xg,...Ei,...Yg,...Zg};var Le=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();var Q$=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,eI=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=tt(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(Q$),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},K_=(e,t,r)=>({[e]:tt(t,r)}),Oi=(e,t,r)=>{let n=`&${e}`,o=tt(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},Jg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},tI=(e,t,r)=>{let n=e.slice(1),o=Jg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return tt(t,r)},rI=(e,t,r)=>({[e]:t}),nI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Jg(n,r);s!==void 0&&(o=s)}if(o)return tt(t,r)},oI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=Jg(n,r);s!==void 0&&(o=s)}if(!o)return tt(t,r)},Qg=(e,t)=>tt(e,t),em={"@":eI,":":Oi,"[":Oi,"*":Oi,"+":Oi,"~":Oi,"&":K_,">":K_,$:tI,"-":rI,".":nI,"!":oI};var tm=wr(),X_=(e,t,r)=>{let n=t?.context?.designSystem;n&&Oe(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ye(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);ye(o,Qg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&i(a,u),!tm&&S(o[a])&&(o[a].label=a)}else if(Se[a]){let c=de(l,t);P(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Se[a](c,t,t.state,t.context);P(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&i(a,u),!tm&&S(o[a])&&(o[a].label=a)}else if(Le.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!tm&&S(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&we()}},Y_=(e,t)=>{let r={};for(let n in e){let o=em[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Ke(r[i],s[i]):r[i]=s[i])}}return r},tt=(e,t,r={unpack:!0})=>{let[n,o]=X_(e,t,r),s=Y_(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return us(n,s);n._selectors=s}return n},sI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};D();var Z_=e=>{if(S(e))return tt(e,e)},iI=(e,t)=>{let r=Z_(e);return typeof t=="function"?t(r):$r(r)};D();function eS(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function aI(...e){return eS(this,"warn",e),Ks.apply(this,e)}function lI(...e){return eS(this,"error",e),sn.apply(this,e)}var J_={update:Ci,remove:Ai,getDB:Js,getQuery:Qs,getRootData:Hs,getChildren:Ns,getPath:zs,nextElement:Xs,previousElement:Ys,verbose:Yn,warn:aI,error:lI,variables:Zs,spotByPath:Bs,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Ws,getRootState:Us,getRootContext:qs,getContext:Gs,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Q_=new WeakMap;function cI(e){if(!e)return J_;let t=Q_.get(e);if(t)return t;t=Object.create(J_);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Q_.set(e,t),t}function Ti(e){let t=cI(e.context);Object.setPrototypeOf(e,t)}D();var uI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},gt=(e,t)=>{if(Fe(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let l=s.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let l=0;l<i.length;l++){if(a==null)return;a=a[i[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&Fe(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t;for(;s?.parent&&Fe(s.parent);)s=s.parent;return s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&uI(t,o,n[o])};var tS=function(e,t,r){return e.state=nm(e,t,r),e.state},nm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let s=t?.state||{};return gt(e,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",fI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=lt({value:o});return s.__element=e,t?.state&&(s.parent=t.state),gt(e,s),s}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Fe(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=lt({...o});if(s.__element=e,!Object.getOwnPropertyDescriptor(s,"root")){let i=t?.state?.root||t?.state||s;Object.defineProperty(s,"root",{get:()=>i,enumerable:!1,configurable:!0})}return t?.state&&(s.parent=t.state,t.state.__children&&(t.state.__children[e.key]=s)),gt(e,s),typeof e.onStateCreated=="function"&&e.onStateCreated(e,s,e.context,r),s}return Fe(o)?(o.__element=e,o):t?.state||{}};function rm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function fI(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),s=r.state?.parent;return o&&s?rm(s,o):s??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let s=e.slice(2);return s?rm(o,s):o??{}}let n=rm(r.state,e);if(n&&typeof n=="object"&&!Fe(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var oS=(e,t)=>{if(!e)return nS;let r=pI(e,t);return!r||!r.state?nS:gI(r.state)},sS=()=>jn()!=null,dI=128;function pI(e,t){let r=typeof t=="function"?t:typeof t=="string"?s=>!!s?.[t]:s=>!!s?.state,n=e,o=null;for(let s=0;s<dI&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var hI={get(e,t){return e[t]}},rS=new WeakMap,gI=e=>{let t=rS.get(e);return t||(t=new Proxy(e,hI),rS.set(e,t)),t},nS=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var mI=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],Uc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},aS=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],im=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,jr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||im(t)||Uc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Uc,e)?Uc[e].includes(t):!1,am=e=>{if(!A(e))return!1;let t=e.toLowerCase();return aS.includes(t)},yI=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])qe(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(qe(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let s=jr(e,o),i=am(o);if(qe(t[o])&&(s||i)){let a=im(o)||o;n[a]=t[o]}}return n},bI=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let s=n.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());r["data-"+s]=o(t,t.state,t.context)}}return r},Ir=(e,t)=>{let r=e.call("exec",t,e);if(r)return A(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},om=(e,t)=>{let r=(e.preSrc||"")+(Ir(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},sm={src:e=>om(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>om(e,e.poster),data:e=>Ir(e,e.data)},lm=e=>{let t=e.tag||"div",r={};for(let n in sm)if(e[n]!==void 0&&jr(t,n)){let o=sm[n](e);o!==void 0&&(r[n]=o)}return r},iS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},vI=(e,t,r)=>{if(e==="$"){let o=iS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=iS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},xI=new Set(["$",".","!"]),wI=(e,t,r)=>{let n={},o=(s,i,a,l)=>{let c=i;n[s]=u=>{if(vI(a,l,u))return O(c)?c(u):c}};for(let s in e){let i=s.charAt(0);if(!xI.has(i))continue;let a=e[s];if(!a||typeof a!="object")continue;let l=s.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],i,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],i,l)}continue}let u=jr(t,c),d=am(c);if(!u&&!d)continue;let f=im(c)||c;o(f,a[c],i,l)}}return n};var _I=1;function io(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function SI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function kI(e){return e.toLowerCase()}function fm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=fm(o,s):r[n]=s}return r}function Rt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=r||e.key||`_${_I++}`,s.parent=t||null,s.context=e.context||t?.context||n.context||{},s.context.__create||(s.context.__create=Rt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Si(s,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=s[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=fm(y,m):b&&a.has(g)?s[g]={...y,...m}:s[g]=m}function c(g){for(let m in g){let y=g[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=fm(b,y):x&&a.has(m)?s[m]={...b,...y}:s[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let u=s.scope&&typeof s.scope=="object"?s.scope:null,d=t?.scope,f=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=sl(g,p)}else p&&(s.scope=p);if(e.if!==void 0&&(s.if=e.if),Ti(s),CI(s,t,e),s.if!=null){let g=typeof s.if=="function"?s.if(s,s.state,s.context):s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&dm(s,{if:e.if}),s;s.tag||(s.tag=yn(s)),Fr("Init",s,n);let h=s.node=bn(s);if(!h)return s;Fr("AttachNode",s,n),h.setAttribute&&s.key&&h.setAttribute("data-key",s.key),h.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&h.setAttribute("data-smbls-app",s.context.key),s.id&&h.setAttribute&&(h.id=s.id),dm(s,e),pm(s),cS(s),uS(s,n);try{fS(s,n)}catch(g){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
34
|
+
src: ${s};`},fn=(e,t,r,n)=>`@font-face {${tc(e,t,r,n)}
|
|
35
|
+
}`,no=(e,t,r)=>Object.keys(t).map(o=>{let{url:i,fontWeight:s,fontStyle:a,fontDisplay:l,fontStretch:c}=t[o],u=Array.isArray(i)?i.map(d=>Et(d,r)||d):Et(i,r)||i;return tc(e,u,s,{fontStyle:a,fontDisplay:l,fontStretch:c})}),q_=e=>Object.keys(e).map(r=>no(r,e[r].value)),pg=(e,t,r)=>{if(t&&t.isVariable){let i=Et(t.url,r)||t.url;return cs(i)?us(i):fn(e,i,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return no(e,t,r).map(dg);let o=Array.isArray(t.url)?t.url.map(i=>Et(i,r)||i):Et(t.url,r)||t.url;return fn(e,o,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},rc=(e,t)=>Object.keys(e).map(n=>pg(n,e[n].value,t));M();M();M();var fs={};G(fs,{animation:()=>cw,breakpoints:()=>aw,class:()=>hw,color:()=>ew,devices:()=>lw,document:()=>s$,font:()=>K_,fontFace:()=>Z_,fontFamily:()=>X_,fontFamilyTypes:()=>Y_,gradient:()=>tw,grid:()=>pw,icons:()=>ow,media:()=>J_,reset:()=>l$,semanticIcons:()=>iw,sequence:()=>Tr,shadow:()=>nw,spacing:()=>Q_,svg:()=>uw,svgData:()=>fw,templates:()=>dw,theme:()=>rw,timing:()=>sw,typography:()=>nc,unit:()=>G_,vars:()=>gw});var Tr={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var G_={default:"em"};var n$={browserDefault:16,base:16,type:"font-size",ratio:Tr["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},nc=n$;var K_={};var X_={},Y_={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Z_={};var J_={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var o$={base:nc.base,type:"spacing",ratio:Tr.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Q_=o$;var ew={},tw={};var rw={};var nw={};var ow={},iw={};var i$={default:150,base:150,type:"timing",ratio:Tr["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},sw=i$;var s$={};var aw={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},lw={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var cw={};var uw={},fw={};var dw={};var a$={},pw=a$;var hw={};var l$={},gw={};var hg={},gg={},oc=fs,ic={},sc=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in oc){let t=e.toLowerCase();ic[t]=oc[e];let r=sc(t);r!==t&&(ic[r]=oc[e]),t!==e&&(ic[e]=oc[e])}var ac={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:hg,cssMediaVars:gg,CSS_VARS:hg,CSS_MEDIA_VARS:gg,_scratchConfig:!0,...ic},mw=ge(ac),ir={active:"0",0:ac},c$=e=>(He(e)&&(ir.active=e),ir[e||ir.active]),ds=[],Ee=e=>{e&&e._scratchConfig&&ds.push(e)},_e=()=>{ds.pop()},T=e=>ds.length?ds[ds.length-1]:ir[e||ir.active]||ac,mg=e=>{if(S(e))return ir.active="1",ir[1]=fe(e,ge(mw)),e},u$=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],f$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],d$=e=>{for(let t of f$){let r;for(let n of t){let o=e[n];S(o)&&(r=r?fe(o,r):o)}if(r)for(let n of t)S(e[n])&&(e[n]=r)}},yg=(e,t,{cleanBase:r=!1}={})=>{let n=r?null:T(),o=ge(!r&&n&&n._scratchConfig?n:mw);for(let s of u$)delete o[s];let i=fe(t||{},o);return i.cssVars={},i.cssMediaVars={},i.CSS_VARS=i.cssVars,i.CSS_MEDIA_VARS=i.cssMediaVars,i._scratchConfig=!0,d$(i),e&&(ir[e]=i),i};var sr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},bg=(e,t)=>{let{key:r,variable:n,value:o,scaling:i,index:s,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:i,index:s,scalingVariable:a,variable:n},t.scales[r]=i;let l=yw.has(t.unit)?"rem":t.unit;t.vars[n]=i+l},Rr=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},yw=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),lc=(e,t)=>{let{base:r,type:n,unit:o}=t,i=yw.has(o)?"rem":o,s=(Dn(i)?1:r)+i;if(e===0)return s;let l="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),c=`${l}-ratio`;if(e>0){let u=sr[e-1];return`calc(var(${l}-${u}) * var(${c}))`}if(e<0){let u=sr[e+1],d=Math.abs(e),f=Math.pow(bw,2*d),p=sr[d];return p?`max(calc(var(${l}-${u}) / var(${c})), calc(var(${l}-${p}) / ${f.toFixed(4)}))`:`calc(var(${l}-${u}) / var(${c}))`}},xg=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,c=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+s}))`},cc=(e,t)=>{let n=(e*t-e)/1.618,o=e*t-n,i=e+n,s=(o+i)/2;return[o,s,i]},uc=(e,t)=>cc(e,t).map(r=>r/e),fc=(e,t)=>{let{key:r,base:n,value:o,ratio:i,variable:s,index:a}=e,c=~~(o*i)-~~o,u,[d,f,p]=cc(o,i);c>16?u=[d,f,p]:u=[d,p],u.forEach((h,g)=>{let m=~~(h/n*1e3)/1e3,y=s+(g+1),b=a+(g+1)/10,v=xg(g+1,u,s,t),x={key:r+(g+1),variable:y,value:h,scaling:m,scalingVariable:v,index:b};bg(x,t)})},bw=1.618,p$=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),i=t*Math.pow(r,n)/Math.pow(bw,2*n);return Math.max(o,i)},Qe=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:i}=e,s=Math.abs(o[0])+Math.abs(o[1]),l="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let c=0;c<=s;c++){let u=o[1]-c,d=sr[u],f=p$(u,r,n),p=~~(f/r*100)/100,h=l+d,g=lc(u,e),m={key:d,variable:h,value:f,base:r,scaling:p,scalingVariable:g,ratio:n,index:u};bg(m,e),i&&fc(m,e)}return e},xw=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:i}=e,s=A(t)?t:sr[t],a=A(t)?Object.entries(sr).find(([,m])=>m===t)?.[0]:t;if(!s)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,p="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+s,h=lc(a,e),g={key:s,variable:p,value:c,base:n,scaling:u,scalingVariable:h,ratio:o,index:a};return bg(g,l),i&&fc(g,l),l},dc=(e="A",t)=>{let r=T(),{unit:n}=r;if(A(e)&&xe(e))return`var(${e})`;let{sequence:o,unit:i=n.default,useVariable:s}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Ln.some(v=>e.includes(v))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let f=`--${t.varPrefix?t.varPrefix+"-":""}${is(t.type.replace(".","-"))}-`,p=e.toUpperCase(),h=p.slice(0,1)==="-"?"-":"",g=h?p.slice(1):p,m="";g.includes("_")&&(m="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=v=>a.test(v)?`var(${f}${v}${m})`:v;if(g.includes("+")){let[v,x]=g.split("+"),_=`${y(v)} + ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("*")){let[v,x]=g.split("*"),_=`${y(v)} * ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}else if(g.includes("-")){let[v,x]=g.split("-"),_=`${y(v)} - ${y(x)}`;return h?`calc((${_}) * -1)`:`calc(${_})`}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),s||r.useVariable){let v=`var(${f}${g}${m})`;return h?`calc(${v} * -1)`:v}let b=o?o[g]:null;return b?i==="ms"||i==="s"?h+b.val+i:h+b.scaling+i:console.warn("can't find",o,g)},vg=(e,t)=>{if(!["+","-","*","/",","].filter(i=>e.includes(i+" ")).length)return e;let n=/(\s*[+\-*/,]\s*)/;return e.split(n).map(i=>{let s=i.trim();return!s||["+","-","*","/",","].includes(s)?i:dc(s,t)}).join("")},ar=(e,t,r,n)=>{if(typeof e!="string")return T().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let i=Rr(e);n=i[0],e=i[1]}return["+","-","*","/",","].filter(i=>e.includes(i+" ")).length?e=vg(e,r):e=dc(e,r),{[t]:n?`${n}(${e})`:e}},_g=(e,t)=>sr[e-t],pc=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let i=_g(t,o);return r[i]})};M();var vw=(e,t)=>{let r=T(),{cssVars:n}=r;re(e.value)||(n[e.var]=e.value)},hc=(e,t,r)=>{let n=T(),{unit:o}=n,i=t.unit||o.default,{base:s,ratio:a,type:l}=t,u="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${u}-base`]=s,e[`${u}-unit`]=i;let d=`${u}-ratio`;e[d]=a;let[f,p,h]=uc(s,a);e[`${u}-sub-ratio-1`]=`calc(var(${u}-ratio) * ${f/a})`,e[`${u}-sub-ratio-2`]=`calc(var(${u}-ratio) * ${p/a})`,e[`${u}-sub-ratio-3`]=`calc(var(${u}-ratio) * ${h/a})`},_w=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Pr=(e,t={})=>{let r=T(),{unit:n,timing:o,cssVars:i}=r,s=e.unit||n.default,a=_w.has(s)?"rem":s,{mediaRegenerate:l,sequence:c,scales:u}=e;l||hc(i,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){i[f.variable+"_default"]=p,i[f.variable]=f.scalingVariable;continue}t.useDefault===!1?i[f.variable]=p:(i[f.variable+"_default"]=p,i[f.variable]=`var(${f.variable+"_default"})`)}},dn=(e,t,r={})=>{let n=T(),{unit:o,media:i,cssVars:s}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=_w.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=i[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=s[`@media ${h}`];g||(g=s[`@media ${h}`]={}),hc(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Dn(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=s[`@media ${h}`];b||(b=s[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,s[m.variable+"_"+a]=y}};M();var Sw=nn(),ps=e=>{let t=T(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},h$=e=>{let t=e&&(e.default||e);if(!A(t))return Sw&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return o?o.reduce((i,s)=>{let[a,l]=s.split("=");return i[a]=l.replace(/['"]/g,""),i},{}):{}},g$=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,i)=>(r.push(i),o)),!r.length)return e;let n=e;for(let o of r){let i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=`${t}-${o}`;n=n.replace(new RegExp(`id="${i}"`,"g"),`id="${s}"`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${s})`).replace(new RegExp(`xlink:href="#${i}"`,"g"),`xlink:href="#${s}"`).replace(new RegExp(`href="#${i}"`,"g"),`href="#${s}"`)}return n},ww=new Set,gc=(e,t)=>{let r=t&&t.default?t.default:t;if(!A(r))return Sw&&!ww.has(e)&&(ww.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=h$(t),{width:o,height:i}=n,s=n.viewBox||`0 0 ${o||24} ${i||24}`,c=g$(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c=b$(c),c},m$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",y$=new RegExp(`<(${m$})\\b([^>]*?)\\s*/>`,"g"),b$=e=>e.replace(y$,"<$1$2></$1>");var ys={};G(ys,{appendSVGSprite:()=>Rc,appendSvgIconsSprite:()=>$c,applyDocument:()=>Tc,applyHeadings:()=>Cg,applyReset:()=>Ic,applySpacingSequence:()=>Cc,applyTimingSequence:()=>Oc,applyTypographySequence:()=>wc,checkIfBoxSize:()=>kc,getColor:()=>me,getFontFamily:()=>_c,getFontSizeByKey:()=>Sc,getMediaColor:()=>je,getMediaTheme:()=>Ot,getShadow:()=>Ec,getSpacingBasedOnRatio:()=>Kt,getSpacingByKey:()=>Oe,getTheme:()=>yc,getTimingByKey:()=>ut,getTimingFunction:()=>Tt,runThroughMedia:()=>kg,setColor:()=>hn,setFont:()=>vc,setFontFamily:()=>gs,setGradient:()=>gn,setMediaTheme:()=>xc,setSVG:()=>ms,setShadow:()=>mn,setSvgIcon:()=>Pc,setTheme:()=>bc,splitSpacedValue:()=>Ac});M();var me=(e,t,r)=>{let n=r||T();if(!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,i,s;if($(e))[o,i,s]=e;else{let d=Or(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,i=d.alpha,s=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(s&&!c[s]&&(u=un(u,s),c[s]={rgb:u,var:`${c.var}-${s}`}),c[s]&&(u=c[s].rgb),i?`rgba(${u}, ${i})`:s?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},je=(e,t,r)=>{let n=r||T();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!A(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let o;if($(e))o=e[0];else{let c=Or(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:i,gradient:s}=n,a=i[o]||s[o],l=S(a);if(l&&a.value)return me(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return me(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=me(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},hn=(e,t,r)=>{let n=T();if(A(e)&&xe(e)){let g=e.slice(2);if(e=me(g),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let m=g.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(A(y)||$(y)||S(y))&&(n.color[m[0]]=hn(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,v=m[1]!==void 0?m[1]:"1",x=m[2];x&&(b=un(b,x)),e=`rgba(${b}, ${v})`}else{let b=m[2],v=m[1]!==void 0?m[1]:"1";if(b)try{let x=nr(m[0]);x&&x.length>=3?e=`rgba(${un(x.slice(0,3).join(", "),b)}, ${v})`:e=m[0]}catch{e=m[0]}else e=m[0]}}}if($(e)&&(e={"@light":e[0],"@dark":e[1]}),S(e)){let g={};for(let m in e)g[m]=hn(e[m],t,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,b,v={};for(let x in g){if(x.charCodeAt(0)!==64)continue;let _=x.slice(1),k=g[x],E=k&&(k.value||k);!E||typeof E!="string"||(v[_]=E,(_==="light"||b===void 0)&&(b=E))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let x in v){let _=`[data-theme="${x}"]`;if(n.cssMediaVars[_]||(n.cssMediaVars[_]={}),n.cssMediaVars[_][y]=v[x],x==="light"||x==="dark"){let k=`@media (prefers-color-scheme: ${x})`;n.cssMediaVars[k]||(n.cssMediaVars[k]={}),n.cssMediaVars[k][y]=v[x]}}g.var=y}}return g}let i=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(A(s)&&s.includes(".")&&!s.includes("(")){let[g,m]=s.split("."),y=n.color[g];y&&y.rgb&&(s=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(A(s)&&!s.includes("(")&&!s.startsWith("#")){let g=Or(s);if(g&&g.name&&!g.passthrough&&!g.cssVar){let m=n.color[g.name];m&&!m.value&&!m.rgb&&(A(m)||$(m)||S(m))&&(n.color[g.name]=hn(m,g.name));let y=n.color[g.name];if(y&&y.rgb){let b=y.rgb;g.tone&&(b=un(b,g.tone));let v=g.alpha?parseFloat(g.alpha):1;s=`rgba(${b}, ${v})`}}}let a=nr(s),[l,c,u,d=1]=a,f=parseFloat(d.toFixed(2)),p=`${l}, ${c}, ${u}`,h=`rgba(${p}, ${f})`;return n.useVariable&&(n.cssVars[i]=h),{var:i,rgb:p,alpha:f,value:h}},gn=(e,t,r)=>{let n=T();if(A(e)&&xe(e)&&(e=me(e.slice(2))),$(e))return{"@light":gn(e[0],t,"light"),"@dark":gn(e[0],t,"dark")};if(S(e)){let s={};for(let a in e)s[a]=gn(e[a],t,a.slice(0,1)==="@"?a.slice(1):a);return s}let i=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[i]=e.value||e),{var:i,value:e.value||e}};M();var x$=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),kw=["color","Color","background","Background","fill","Fill","stroke","Stroke"],v$=e=>{for(let t=0;t<kw.length;t++)if(e.includes(kw[t]))return!0;return!1},mc=e=>{let t={},{state:r,media:n,helpers:o,...i}=e;return Object.keys(i).map(a=>{let c=["color","Color","background","border"].some(u=>a.includes(u));return t[a]=c?me(e[a]):e[a]}),t},hs=e=>(e.value||(e.value=mc(e)),e.value),yc=(e,t)=>{let r=T();if(r.useVariable)return Ot(e,t);let n=r.theme;if(A(e)){let[o,i]=e.split(" "),s=n[o];if(s){if(!i&&!t)return hs(s);e=[o,i||t]}}if(re(e)&&e[1]){let o=e[0],i=e[1],{helpers:s,media:a,state:l}=n[o];if(a&&a[i])return hs(a[i]);if(s&&s[i])return hs(s[i]);if(l&&l[i])return hs(l[i])}else if(S(e))return mc(e)},_$=(e,t,r)=>{if(S(t))e.variants.inverse.value=mc(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},w$=(e,t,r,n)=>{let o=yc(r);n[`&:${t}`]=o,S(r)&&!r.value&&(r.value=o)},S$=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(o=>{let i=r[o];return w$(e,o,i,t),e}),e):void 0},k$=(e,t,r,n)=>{let o=yc(r);n[`@media (prefers-color-scheme: ${t})`]=o,S(r)&&!r.value&&(r.value=o)},C$=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(o=>{let i=r[o];return(o==="dark"||o==="light")&&k$(e,o,i,t),o==="inverse"&&_$(e,i,t),e}),e):void 0},A$=(e,t)=>{let r=T(),{helpers:n}=e;return n?(Object.keys(n).map(i=>{let s=n[i];return A(s)?n[i]=r.theme[s]:hs(n[i]),e}),e):void 0},bc=(e,t)=>{let r=T();if(r.useVariable)return xc(e,t);let{state:n,media:o,helpers:i}=e,s=mc(e,t),l=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return S$(e,s),C$(e,s),A$(e,s),{var:l,value:s,state:n,media:o,helpers:i}};var wg=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:"auto",s={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&v$(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=me(f,`@${d}`);p!==void 0&&A(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!x$.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>re(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=wg(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)re(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=wg(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let p=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,h=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,g;for(let m in e){if(l.has(m))continue;let y=e[m]?.[c];if(y===void 0)continue;let b=me(y,`@${m}`);if(b===void 0)continue;(h&&m===h||!h&&(m==="light"||g===void 0))&&(g=b);let v=`[data-theme="${m}"]`;if(o[v]||(o[v]={}),o[v][p]=b,m==="dark"||m==="light"){let x=`@media (prefers-color-scheme: ${m})`;o[x]||(o[x]={}),o[x][p]=b}}g!==void 0&&(n[p]=g),s[c]=`var(${p})`,s[`.${c}`]={[c]:s[c]}}}return(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color}),s},xc=(e,t,r,n)=>{let o=T(),{cssVars:i}=o,s={value:e},a=!r&&!n;if(re(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&re(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wg(l,t,o);Object.assign(s,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;s[l]=xc(u,t,l,n||d)}else if(!a){let d=me(u,n),f=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],p=f.length?"-"+f.join("-"):"",g=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(i[g]=d),s[l]=`var(${g})`):s[l]=d,s[`.${l}`]={[l]:s[l]}}}!s[".inversed"]&&(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color})}if(A(e)&&xe(e)){let c=o.theme[e.slice(2)];return Ot(c,n)}return s},Sg=e=>{let t=T(),r={};for(let n in e){let o=n.slice(0,1);if(re(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Sg(e[n]):o==="."&&(r[`&${n}`]=Sg(e[n]))}else r[n]=e[n]}return r},Aw=(e,t)=>{let r=t.shift();return e[r]?Aw(e[r],t):e},Cw=(e,t)=>$(t)?Aw(e,t):A(t)&&e[t]?e[t]:e;var Ot=(e,t)=>{let r=T();if(A(e)&&xe(e)&&(e=Ot(e.slice(2))),!e||!A(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=$(e)?e:e.split(" "),i=r.theme[n];return i&&o.length?i=Cw(i,o):i&&t&&(i=Cw(i,t)),Sg(i)};M();M();var vc=(e,t)=>{let r=T(),n=`--font-${t}`;if(!e||$(e)&&!e[0])return;let o;if(e.isVariable){let i=Et(e.url,r.files)||e.url;cs(i)?o=us(i):o=fn(t,i,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=no(t,e,r.files);else{let i=Array.isArray(e.url)?e.url.map(s=>Et(s,r.files)||s):Et(e.url,r.files)||e.url;o=fn(t,i,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},_c=(e,t)=>{let r=T(),{fontFamily:n}=r;return ro(t||n,e)},gs=(e,t)=>{let r=T(),{fontFamily:n,fontFamilyTypes:o}=r,{value:i,type:s}=e;e.isDefault&&(n.default=t),S(i)&&(i=ln(i));let a=`--font-family-${t}`,l=`${i.join(", ")}, ${o[s]}`;return{var:a,value:l,arr:i,type:s}};M();var kg=e=>{let t=T(),{typography:r,media:n}=t;for(let o in e){let i=o.slice(0,1)==="@",s=e[o];if(!i)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;ye(s,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=s.unit||g,b=!s.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:s.base/r.browserDefault+b},!a){ye(s,{sequence:{},scales:{},vars:{}}),Qe(s),dn(e,o);continue}ye(s,{sequence:{},scales:{},templates:{},vars:{}}),Qe(s),dn(e,o)}},Cg=e=>{let t=T();if(e.h1Matches){let r=e.unit,n=pc(e),{templates:o}=e;for(let i in n){let s=`h${parseInt(i)+1}`,a=o[s];o[s]={fontSize:t.useVariable?`var(${n[i]?.variable})`:`${n[i]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-i*100}}}},wc=()=>{let e=T(),{typography:t}=e;Qe(t),Cg(t),Pr(t),kg(t)},Sc=e=>{let t=T(),{typography:r}=t;return ar(e,"fontSize",r)};M();M();var E$=e=>{let r=T().spacing||{},n=parseFloat(e.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Qe(o),o},O$=e=>{for(let t in e){let r=e[t];if(!(t.slice(0,1)==="@"))continue;let{type:o,base:i,ratio:s,range:a,subSequence:l,h1Matches:c,unit:u}=e;ye(r,{type:o,base:i,ratio:s,range:a,subSequence:l,h1Matches:c,unit:u,sequence:{},scales:{},templates:{},vars:{}}),Qe(r),dn(e,t)}},kc=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},Cc=()=>{let e=T(),{spacing:t}=e;Qe(t),Pr(t),O$(t)},T$=e=>{let t=T(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:Qe(e)},Oe=(e,t="padding",r,n)=>{let o=T$(r);if(A(e)&&!n&&e.includes("(")){let s=Rr(e);n=s[0],e=s[1]}let i=n?[e]:ln(e);if($(i)){if(i.length>1){let s="";t==="borderWidth"&&(t="border",s="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>ar(i[u],t+c+s,o,n);return a[i.length].map((c,u)=>l(c,u))}return ar(e,t,o,n)}},Kt=(e,t,r,n)=>{let o=T(),{spacing:i}=o,s=r||e[t];if(!n&&A(s)&&s.includes("(")){let a=Rr(s);n=a[0],s=a[1]}if(e.spacingRatio){let a=E$(e);return Oe(s,t,a,n)}return Oe(s,t,i,n)},Ac=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Ln.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};M();var mn=(e,t,r,n)=>{let o=T();if($(e))return{"@light":mn(e[0],t,"light"),"@dark":mn(e[1],t,"dark")};if(S(e)){let a={};for(let l in e)a[l]=mn(e[l],t,l.startsWith("@")?l.slice(1):l);return a}A(e)&&!Gt.test(e)&&(e=cn(e).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(l=l.trim(),!l)return"";if(l.startsWith("--"))return`var(${l})`;let c=me(l);if(or(c))return c;if(/^\d/.test(l)||l==="0"||l.includes("px")||l.slice(-2)==="em"||l==="inset"||l==="none")return l;let u=Oe(l,"shadow");return u&&u.shadow?u.shadow:l}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},Ec=(e,t)=>{let r=T();if(t||(t=r.globalTheme),!A(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(xe(e))return`var(${e})`;let[n]=$(e)?e:e.split(" "),i=r.shadow[n],s=S(i);if(!i)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(i[t])return i[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&i.value)return i.value;if(s){let a={};for(let l in i){let c=r.media[l.slice(1)],u="@media "+(c==="print"?`${c}`:`screen and ${c}`);a[u]=i.value}return a}return r.verbose&&console.warn("Can't find color",e),e};M();var Oc=()=>{let e=T(),{timing:t}=e;Qe(t),Pr(t)},Tt=e=>{let t=T(),{timing:r}=t;return r[e]||r[os(e)]||e},ut=(e,t="timing")=>{let r=T(),{timing:n}=r;return ar(e,t,n)};M();var Tc=()=>{let e=T(),{document:t,fontFamily:r,theme:n,typography:o}=e;return ye(t,{theme:n.document,fontFamily:ro(r),fontSize:o.base,lineHeight:o.lineHeight})};M();var Eg={document:pe},ms=(e,t)=>{let r=T();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?gc(t,e):e},Rc=(e,t=Eg)=>{let r=T(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];Ow(n,t)},Pc=(e,t)=>{let r=T();return r.useIconSprite&&!r.semanticIcons?.[t]?ms(e,t):e},$c=(e,t=Eg)=>{let r=T(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];Ow(n,t)},Ag=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},R$=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,i=new r().parseFromString(n,"image/svg+xml");return i.querySelector("parsererror")?null:i.documentElement}return null},Ew=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},Ow=(e,t=Eg)=>{let r=T(),n=t.document||pe;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),ps(e);let o=n.querySelector("#svgSprite"),i=ps(e),s=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${i}</svg>`,a=R$(n,i);if(o)if(a)Ew(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",i);else{let l=Ag(n,{isRoot:!1});l.innerHTML=i,o.append(...l.children)}else if(a){let l=Ag(n);l&&l.nodeType&&(Ew(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",s);else{let l=Ag(n);l&&l.nodeType&&(l.innerHTML=i,n.body.prepend(l))}};M();var Ic=(e={})=>{let t=T(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Ot("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:i,...s}=n.templates,a=t.useDocumentTheme?Ot("document"):{};if(r.html&&Ge(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return fe(ye(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...s,...i},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};M();var P$=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),$$=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),I$=e=>P$.has(e),lr=e=>{let t=e+"";if(Gt.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(xe(o))return`var(${o})`;if(I$(o)||/^\d/.test(o)||o==="0")return o;let i=me(o);if(or(i))return i;let s=Oe(o,"border");return s&&s.border?s.border:o}).join(" ")},Og=e=>Gt.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(xe(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=me(t);return or(r)?r:t}).join(" "),Tg=(e,t)=>Ec(e,t),Fc=(e,t)=>Gt.test(e)?e:cn(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(xe(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=me(n);if(or(o)){let s=je(n,t);return S(s)?Object.values(s).filter(a=>a.includes(": "+t))[0]:s}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let i=Oe(n,"shadow");return i&&i.shadow?i.shadow:n}).join(" "):"")).join(", "),jc=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),i=")",a=cn(o).map(l=>(l=l.trim(),l.split(/\s+/).map(u=>{if(!u||/^\d/.test(u)||u==="0"||$$.has(u)||u==="transparent"||Gt.test(u))return u;let d=me(u);return or(d)?d:u}).join(" ")));return n+a.join(", ")+i},Rg=(e,t)=>{let r=T();return e.split(", ").map(n=>xe(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?jc(n,t):r.gradient[e]?{backgroundImage:je(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Or(n)?`url(${n})`:n).join(" ")},Pg=e=>A(e)&&e.split(" ").map(t=>Oe(t,"gap").gap).join(" "),Tw=e=>{let t=e.split(" ");return t.length?t.map(r=>xe(r)?`var(${r})`:r.length<3||r.includes("ms")?ut(r).timing||r:Tt(r)?Tt(r):r).join(" "):e},Dc=(e,t,r)=>{if(A(e))return e.split(",").map(n=>ut(n).timing||n).join(",")},$g=e=>{let t=e.split(",");if(t.length)return t.map(Tw).join(",")};function ve(e,t,r={},n={}){let o=de.call(this,t||r[e]);if(o==null)return;let i;if(A(o)){if(o.includes("(")){let l=Rr(o);i=l[0],o=l[1]}let s=r.scaleBoxSize,a=kc(e);!s&&a&&!n.ratio&&(o=Ac(o))}return n.ratio?Kt(r,e,o,i):Oe(o,e,void 0,i)}var ne=(e,t=null,r)=>ve(e,t,r,{ratio:!0}),Lc=(e,t,r)=>{if(A(e))return{borderRadius:e.split(" ").map((n,o)=>Kt(t,r,n)[r]).join(" ")}};M();var F$=(e,t)=>{let r=T(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},ft=e=>e,Ig={color:hn,gradient:gn,font:vc,fontFamily:gs,fontfamily:gs,theme:bc,icons:Pc,semanticIcons:ft,semanticicons:ft,svg:ms,svgData:ft,typography:ft,shadow:mn,spacing:ft,media:ft,grid:ft,class:ft,timing:ft,reset:ft,unit:ft,animation:ft,vars:F$},Rw=(e,t,r)=>{let n=T(),o=sc(e),i=o.toLowerCase(),s=n[o]||n[i]||n[e],a=Ig[o]||Ig[i];if(a)try{let l=a(t,r);return s&&(s[r]=l),s}catch(l){n.verbose&&console.warn("Error setting",i,"value",t,r,l)}n.verbose&&console.warn("Can not find",i,"method in scratch")},Pw=(e,t)=>{let r=T(),n=e.toLowerCase();return Object.keys(t).sort((i,s)=>{let a=S(t[i])||$(t[i])?1:0,l=S(t[s])||$(t[s])?1:0;return a-l}).forEach(i=>{try{return Rw(n,t[i],i)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[i],i,s)}}),r[n]||r[e]},Fg=(e,t)=>{let r=t||T();r.globalTheme=e;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),i=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(e&&e!=="auto")a.setAttribute("data-theme",e),e==="dark"||e==="light"?a.style.colorScheme=e:a.style.colorScheme="light dark";else if(i&&i.matchMedia){let c=d=>{a.setAttribute("data-theme",d.matches?"dark":"light")},u=i.matchMedia("(prefers-color-scheme: dark)");if(c(u),a.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=c;try{u.addEventListener("change",c)}catch{u.addListener(c)}}}else a.setAttribute("data-theme","light"),a.style.colorScheme="light"}let s=r.varPrefix?`--${r.varPrefix}-theme-`:"--theme-";for(let a in r.cssVars)a.startsWith(s)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||":root",l=o.styleSheets;for(let c=0;c<l.length;c++)try{let u=l[c].cssRules;for(let d=0;d<u.length;d++)if(u[d].selectorText===a){for(let f in r.cssVars)u[d].style.setProperty(f,r.cssVars[f]);return r}}catch{}}return r},j$={},oo=(e,t=j$)=>{let r=t.config||T(),{version:n,verbose:o,useVariable:i,useReset:s,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=mg(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),i!==void 0&&(r.useVariable=i),s!==void 0&&(r.useReset=s),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let v=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=v&&v.defaultView||(typeof window<"u"?window:null),_=v&&(r.themeRoot||v.documentElement);if(_&&typeof _.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")_.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?_.style.colorScheme=r.globalTheme:_.style.colorScheme="light dark";else if(x&&x.matchMedia){let I=te=>{_.setAttribute("data-theme",te.matches?"dark":"light")},H=x.matchMedia("(prefers-color-scheme: dark)");if(I(H),_.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=I;try{H.addEventListener("change",I)}catch{H.addListener(I)}}}else _.setAttribute("data-theme","light"),_.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let k=Object.keys(y),E=new Set(k);if(k.forEach(w=>{let I=w.toLowerCase();I!==w&&E.has(I)&&fe(y[I],y[w])}),k.map(w=>{let I=w.toLowerCase();if(!(I!==w&&E.has(I)))return Pw(w,y[w])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{wc()}catch(w){r.verbose&&console.warn("Error applying typography sequence",w)}if(y.spacing)try{Cc()}catch(w){r.verbose&&console.warn("Error applying spacing sequence",w)}if(y.timing)try{Oc()}catch(w){r.verbose&&console.warn("Error applying timing sequence",w)}Tc();let j=Ic();return j&&(r.reset=j),r};var io=new Map,D$=null,Dg=null,L$=null;function Nc(e){e.batchAtomicCss&&(Dg=e.batchAtomicCss),e.compoundCssClass&&(L$=e.compoundCssClass)}var M$=new Set;function jw(e){try{let t=T();t&&(t.document=e)}catch{}e&&M$.add(e)}function Lg(){try{let e=T();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var N$={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk"};function yn(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Mc(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function B$(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Mc(t)}function $w(e,t,r){let n=(r?r+"":"")+e+":"+t,o=io.get(n),i=o?null:yn(e);if(!o){let a=N$[e]||Mc(e),l=B$(t);o=r?`_${r}_${a}-${l}`:`_${a}-${l}`,io.set(n,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let s=`.${o}{${i||yn(e)}:${t}}`;return dt(s),o}var Iw=new WeakMap;function dt(e,t){let r=Dw(t);if(!r)return;let n=Iw.get(r);if(n||(n=new Set,Iw.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var Fw=new WeakMap;function Dw(e){let t=e||Lg();if(!t||!t.head)return null;let r=Fw.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return Fw.set(t,o),D$=o,o}var V$=8;function $r(e,t,r){if(!e||typeof e!="object")return"";let n=null,o=0,i=[],s=[];for(let l in e){let c=e[l];c==null||c===!1||c===""||(typeof c=="object"?s.push([l,c]):Dg?(n||(n=[]),n.push(l,String(c)),o++):i.push($w(l,String(c),r)))}if(n&&o>=V$){let l=n.join("\0"),c=Dg(l),u=c.indexOf("\0"),d=c.substring(0,u),f=c.substring(u+1);if(f){let p=f.split(`
|
|
36
|
+
`);for(let h=0;h<p.length;h++)p[h]&&dt(p[h])}i.push(d)}else if(n)for(let l=0;l<n.length;l+=2)i.push($w(n[l],n[l+1],r));let a=[];for(let l=0;l<s.length;l++)a.push(z$(s[l][0],s[l][1],r));return i.concat(a).join(" ").trim()}var jg=new Map;function z$(e,t,r){let n=(r?r+"":"")+e+JSON.stringify(t),o=io.get(n);if(o){let f=jg.get(o);if(f)for(let p=0;p<f.length;p++)dt(f[p]);return o}o=r?`_${r}_c${Mc(n)}`:`_c${Mc(n)}`;let i="",s=[],a=f=>typeof f=="string"&&(f.indexOf("{")!==-1||f.indexOf("}")!==-1),l=(f,p)=>{let h="";for(let g in p){let m=p[g];if(m!=null)if(typeof m=="object")l([...f,g],m);else{if(a(m))continue;h+=`${yn(g)}:${m};`}}h&&(f.length===0?i+=h:s.push({chain:f,body:h}))};l([],t);let c=f=>{if(!f.length)return`.${o}`;let p=f[0].split(",").map(h=>h.trim()).map(h=>h.includes("&")?h.replace(/&/g,`.${o}`):h.startsWith(":")?`.${o}${h}`:`.${o} ${h}`);for(let h=1;h<f.length;h++){let g=f[h].split(",").map(y=>y.trim()),m=[];for(let y of p)for(let b of g)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);p=m}return p.join(", ")},u=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(i){let f=`${e}{.${o}{${i}}}`;u.push(f),dt(f)}for(let f of s){let p=c(f.chain),h=`${e}{${p}{${f.body}}}`;u.push(h),dt(h)}return jg.set(o,u),io.set(n,o),o}let d=c([e]);if(i){let f=`${d}{${i}}`;u.push(f),dt(f)}for(let f of s){let h=`${c([e,...f.chain])}{${f.body}}`;u.push(h),dt(h)}return jg.set(o,u),io.set(n,o),o}function we(e){if(Dw(),typeof e=="string"){dt(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let i=n.startsWith("@media"),s=o.startsWith("@media");return!i&&!s?0:i?s?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let i in o){let s=o[i];if(typeof s=="object"&&s!==null){let a="";for(let l in s){let c=l.startsWith("--")?l:yn(l);a+=`${c}:${s[l]};`}dt(`${n}{${i}{${a}}}`)}else{let a=i.startsWith("--")?i:yn(i);dt(`${n}{${a}:${s};}`)}}else{let i="",s=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)s=!0;else{let c=a.startsWith("--")?a:yn(a);i+=`${c}:${l};`}}if(i&&dt(`${n}{${i}}`),s){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)we({[`${n} ${c}`]:o[c]});for(let c of a)we({[c]:{[n]:o[c]}})}}}}function bs(e,t){let r="";for(let n in t){let o="";for(let i in t[n])o+=`${yn(i)}:${t[n][i]};`;r+=`${n}{${o}}`}return dt(`@keyframes ${e}{${r}}`),e}function Lw(){return io.size}M();var Mg="http://www.w3.org/2000/svg",_s=new Set(["svg","path","circle","ellipse","line","polyline","polygon","rect","g","defs","use","symbol","clipPath","mask","pattern","image","text","tspan","textPath","marker","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateMotion","animateTransform","set","foreignObject","desc","title","metadata"]),U$=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","string","fragment","shadow"]);function xs(e){return U$.has(e)||_s.has(e)}function ws(e){return _s.has(e)}function bn(e){let{tag:t,key:r}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=r),typeof t=="string"&&xs(t))return t;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),xs(o)&&!n.has(o)?o:"div"}var Mw={};function vs(e,t){let r=t?.context?.document||globalThis.document;if(!r)return null;if(e==="string")return r.createTextNode(t?.text||"");if(e==="fragment")return r.createDocumentFragment();if(ws(e)){let n=t?.parent;if(e==="svg"||n?.node?.namespaceURI===Mg)return r.createElementNS(Mg,e);if(e!=="svg")return r.createElement("div")}return r.createElement(e)}function xn(e){let t=e.tag=bn(e),n=ws(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Mg)?"svg:"+t:t,o=e?.context?.document||globalThis.document,i=Mw[n];if(i||(i=Mw[n]=vs(t,e)),!i)return null;let s=o&&i.ownerDocument!==o?vs(t,e):i.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var Ye=new Set(["extends","children","content","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","__name","__ref","__hash","__text","parent","node"]),Ng={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},vn=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","error","beforeRemove","remove"]),Nw=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ss=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Bg=new WeakMap,W$={passive:!0},H$={passive:!0,capture:!0},Vg=(e,t)=>Nw.has(e)?t?H$:W$:t||!1;function Vw(e){let t=Bg.get(e);return t||(t={handlers:new Map,installed:new Set},Bg.set(e,t)),t}function q$(e,t){let r=Vw(t);if(r.installed.has(e))return;r.installed.add(e);let n=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,i=>{let s=i.target;for(;s&&s!==t;){let a=r.handlers.get(e);if(a){let l=a.get(s);if(l){if(o&&i.relatedTarget&&s.contains(i.relatedTarget)){s=s.parentNode;continue}if(l(i),i.cancelBubble)return}}s=s.parentNode}},Vg(e,n))}function Bc(e,t,r,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let o=Vw(n);q$(e,n),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,r)}function Vc(e,t,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let n=Bg.get(r);if(!n)return;let o=n.handlers.get(e);o&&o.delete(t)}function Bw(e){return Ss.has(e)&&!vn.has(e)}function ks(e,t,r){let{node:n,context:o}=t;if(!n)return;let i=o?.designSystem,s=a=>{i&&Ee(i);try{let l=r.call(t,a,t,t.state,o);if(l&&typeof l.then=="function"){l.catch(c=>{t.error=c,console.error("[DOMQL] Async event error:",c)}).finally(()=>{i&&_e()});return}}catch(l){if(t.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}i&&_e()};if(Bw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Bc(e,n,s,a)}else n.addEventListener(e,s,Vg(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(Bw(e)){let a=o?.rootNode||n.ownerDocument?.documentElement;Vc(e,n,a)}else n.removeEventListener(e,s,Vg(e,!1))})}function zw(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function Cs(e,t,r){let n=zw(t);if(!n.length)return;let i=(e.context||r?.context||{}).components||{};for(let s=0;s<n.length;s++){let a=Uw(n[s],i);a&&a!==t&&Ww(e,a,r,new Set([t]))}}function Uw(e,t){if(typeof e=="string"){if(e.includes(">")){let r=e.split(">").map(o=>o.trim()),n=t[r[0]]||t[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function Ww(e,t,r,n=new Set){if(n.has(t))return;n.add(t);let o=zw(t);if(o.length){let s=(e.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let l=Uw(o[a],s);l&&Ww(e,l,r,n)}}for(let i in t){if(i==="extends"||i==="extend")continue;let s=t[i];e[i]===void 0?s&&typeof s=="object"&&!Array.isArray(s)&&typeof s!="function"?e[i]={...s}:e[i]=s:typeof e[i]=="object"&&typeof s=="object"&&!Array.isArray(e[i])&&!Array.isArray(s)&&e[i]!==null&&s!==null?e[i]=Hw(e[i],s):e[i]=s}}function Hw(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=Hw(o,i):r[n]=i}return r}qn();function As(e={},t={}){let r=this,n=r.__ref;if(n){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,t)===!1)return r;if(br(()=>{if(e.state&&Fe(r.state)&&r.state.update(e.state),e.text!==void 0&&(r.text=e.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=e.text??"":r.node.textContent=e.text??"")),e.html!==void 0&&(r.html=e.html,!n.__exec.html&&r.node&&(r.node.innerHTML=e.html)),e.style&&r.node?.style){if(!n.__exec.style)for(let o in e.style){let i=e.style[o];if(i==null)continue;let s=o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=String(i).replace(/\s*!important\s*$/,"");r.node.style.setProperty(s,a,"important")}r.style||(r.style={}),Object.assign(r.style,e.style)}if(e.attr&&r.node?.setAttribute){for(let o in e.attr){let i=e.attr[o];i==null||i===!1?r.node.removeAttribute(o):typeof i!="function"&&typeof i!="object"&&r.node.setAttribute(o,i===!0?"":i)}r.attr||(r.attr={}),Object.assign(r.attr,e.attr)}if(e.data&&r.node?.dataset){for(let o in e.data)r.node.dataset[o]=e.data[o];r.data||(r.data={}),Object.assign(r.data,e.data)}for(let o in e){if(Ye.has(o)||o==="state")continue;let i=e[o],s=r[o];if(s&&s.__ref&&typeof s.update=="function")s.update(i,t);else if(typeof i=="object"&&i!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&Rt(i,r,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=i)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return St("update",r),!t.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,t),r}}function _n(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(t.__effects){for(let r=0;r<t.__effects.length;r++)t.__effects[r].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let r=0;r<t.__eventCleanup.length;r++)t.__eventCleanup[r]();t.__eventCleanup.length=0}if(t.__children){for(let r=0;r<t.__children.length;r++){let n=t.__children[r],o=e[n];o&&o.__ref&&_n(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let r=e.parent.__ref.__children.indexOf(e.key);r!==-1&&e.parent.__ref.__children.splice(r,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(r){console.error("[smbls] onRemove error:",r)}e.node=null,e.parent=null,e.__ref=null}}function Es(){_n(this)}M();M();var G$=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],K$=["none","forwards","backwards","both"],X$=["normal","reverse","alternate","alternate-reverse"],Y$=["running","paused"],Z$=e=>/^[\d.]+m?s$/.test(e),J$=0,zg=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(S(e)){let o=`smbls-anim-${J$++}`;return{animationName:bs(o,e)}}let n=r&&r[e];return S(n)?bs(e,n):e},Q$=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,i=[],s=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:Z$(d)?i.push(d):G$.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?s=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):X$.includes(d)?l=d:K$.includes(d)?c=d:Y$.includes(d)?u=d:o||(o=d);return{name:o,durations:i,timingFunction:s,iterationCount:a,direction:l,fillMode:c,playState:u}},Ug={animation:(e,t)=>{if(A(e)&&e.includes(" ")){let r=Q$(e,t);return{animationName:zg(r.name||e,t),animationDuration:r.durations[0]||ut(t.animationDuration||"A").timing,animationDelay:r.durations[1]||ut(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Tt(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:zg(e,t),animationDuration:ut(t.animationDuration||"A").timing,animationDelay:ut(t.animationDelay||"0s").timing,animationTimingFunction:Tt(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:zg(e,t)}),animationDuration:e=>({animationDuration:ut(e).timing}),animationDelay:e=>({animationDelay:ut(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Tt(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};M();var Wg={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ne("height",e,t),width:(e,t)=>ne("width",e,t),boxSizing:e=>Pe(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("height",t),...ve("width",r||t)}},inlineSize:(e,t)=>ne("inlineSize",e,t),blockSize:(e,t)=>ne("blockSize",e,t),minWidth:(e,t)=>ne("minWidth",e,t),maxWidth:(e,t)=>ne("maxWidth",e,t),widthRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("minWidth",t),...ve("maxWidth",r||t)}},minHeight:(e,t)=>ne("minHeight",e,t),maxHeight:(e,t)=>ne("maxHeight",e,t),heightRange:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("minHeight",t),...ve("maxHeight",r||t)}},size:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ne("inlineSize",t),...ne("blockSize",r||t)}},minBlockSize:(e,t)=>ne("minBlockSize",e,t),minInlineSize:(e,t)=>ne("minInlineSize",e,t),maxBlockSize:(e,t)=>ne("maxBlockSize",e,t),maxInlineSize:(e,t)=>ne("maxInlineSize",e,t),minSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("minInlineSize",t),...ve("minBlockSize",r||t)}},maxSize:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("maxInlineSize",t),...ve("maxBlockSize",r||t)}},borderWidth:(e,t)=>ne("borderWidth",e,t),padding:(e,t)=>ne("padding",e,t),scrollPadding:(e,t)=>ne("scrollPadding",e,t),paddingInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("paddingInlineStart",t),...ve("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("paddingBlockStart",t),...ve("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ne("paddingBlockStart",e,t),paddingBottom:(e,t)=>ne("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ne("paddingInlineStart",e,t),paddingRight:(e,t)=>ne("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ne("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ne("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ne("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ne("paddingInlineEnd",e,t),margin:(e,t)=>ne("margin",e,t),marginInline:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{...ve("marginInlineStart",t),...ve("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!A(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...ve("marginBlockStart",r),...ve("marginBlockEnd",n||r)}},marginTop:(e,t)=>ne("marginBlockStart",e,t),marginBottom:(e,t)=>ne("marginBlockEnd",e,t),marginLeft:(e,t)=>ne("marginInlineStart",e,t),marginRight:(e,t)=>ne("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ne("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ne("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ne("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ne("marginBlockEnd",e,t),gap:e=>({gap:Pg(e)}),columnGap:(e,t)=>Kt(t,"columnGap",e),rowGap:(e,t)=>Kt(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!A(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>Lc(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Lc(e??t.round,t,"borderRadius")};var Hg={fontSize:e=>Sc(e)||e,fontFamily:e=>({fontFamily:_c(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var qg={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let i=n.files&&n.files[e];i&&i.content&&(e=`url(${i.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var Gg={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Oe(r,"k").k).join(" ")}},left:e=>Oe(e,"left"),top:e=>Oe(e,"top"),right:e=>Oe(e,"right"),bottom:e=>Oe(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Oe(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Oe(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};M();var pt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},Kg={theme:(e,t)=>{if(e)return t.themeModifier?Ot(e,`@${t.themeModifier}`):Ot(e)},color:(e,t)=>{let r=pt(t);if(e)return{color:je(e,r)}},background:(e,t)=>{let r=pt(t);if(e)return A(e)&&e.includes("gradient")?{background:jc(e,r)}:{background:je(e,r)}},backgroundColor:(e,t)=>{let r=pt(t);if(e)return{backgroundColor:je(e,r)}},backgroundImage:(e,t,r,n)=>{let o=pt(t);if(!e)return;let i=n.assets&&n.assets[e];if(i&&i.content)e=i.content.src;else{let s=n.files&&n.files[e];s&&s.content&&(e=s.content.src)}return{backgroundImage:Rg(e,o)}},textStroke:e=>({WebkitTextStroke:Og(e)}),outline:e=>({outline:lr(e)}),outlineOffset:(e,t)=>ne("outlineOffset",e,t),border:e=>({border:lr(e)}),borderColor:(e,t)=>{let r=pt(t);if(e)return{borderColor:je(e,r)}},borderTopColor:(e,t)=>{let r=pt(t);if(e)return{borderTopColor:je(e,r)}},borderBottomColor:(e,t)=>{let r=pt(t);if(e)return{borderBottomColor:je(e,r)}},borderLeftColor:(e,t)=>{let r=pt(t);if(e)return{borderLeftColor:je(e,r)}},borderRightColor:(e,t)=>{let r=pt(t);if(e)return{borderRightColor:je(e,r)}},borderLeft:e=>({borderLeft:lr(e)}),borderTop:e=>({borderTop:lr(e)}),borderRight:e=>({borderRight:lr(e)}),borderBottom:e=>({borderBottom:lr(e)}),shadow:(e,t)=>{let r=pt(t);if(e)return{boxShadow:Tg(e,r)}},boxShadow:(e,t)=>{if(!A(e))return;let[r,n]=e.split("!importan"),o=pt(t),i=n?" !important":"";return{boxShadow:Fc(r.trim(),o)+i}},textShadow:(e,{context:t})=>({textShadow:Fc(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:lr(e)})};var Os={transition:e=>({transition:$g(e)}),transitionDuration:e=>({transitionDuration:Dc(e)}),transitionDelay:e=>({transitionDelay:Dc(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Tt(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};M();var Xg={flow:(e,t)=>{let r=t.reverse;if(!A(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Yg={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var Se={...Ug,...Wg,...Hg,...qg,...Gg,...Kg,...Os,...Xg,...Yg};var De=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();var eI=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,tI=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),i=n.designSystem.media[o],s=et(t,r);if(!i)return{[e]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(eI),l=a?a[1]||a[2]:o,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:s}}return c},qw=(e,t,r)=>({[e]:et(t,r)}),Ts=(e,t,r)=>{let n=`&${e}`,o=et(t,r);if(e.includes(",")&&o){let i={},s={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?s[a]=o[a]:i[a]=o[a];if(Object.keys(s).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[n]=i);for(let c in s){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=s[c]}return l}}return{[n]:o}},Zg=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},rI=(e,t,r)=>{let n=e.slice(1),o=Zg(n,r);if(o===void 0&&(o=!!r[n]),!!o)return et(t,r)},nI=(e,t,r)=>({[e]:t}),oI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=Zg(n,r);i!==void 0&&(o=i)}if(o)return et(t,r)},iI=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=Zg(n,r);i!==void 0&&(o=i)}if(!o)return et(t,r)},Jg=(e,t)=>et(e,t),Qg={"@":tI,":":Ts,"[":Ts,"*":Ts,"+":Ts,"~":Ts,"&":qw,">":qw,$:rI,"-":nI,".":oI,"!":iI};var em=_r(),Gw=(e,t,r)=>{let n=t?.context?.designSystem;n&&Ee(n);try{let o={},i={},s=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>ye(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=de(l,t);ye(o,Jg(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=O(c)?c(t,t.state,t.context):c;u&&s(a,u),!em&&S(o[a])&&(o[a].label=a)}else if(Se[a]){let c=de(l,t);$(c)&&(c=c.reduce((d,f)=>ye(d,f),{}));let u=Se[a](c,t,t.state,t.context);$(u)&&(u=u.reduce((d,f)=>ye(d,f),{})),u&&s(a,u),!em&&S(o[a])&&(o[a].label=a)}else if(De.has(a)){let c=de(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(a,{[a]:c}),!em&&S(o[a])&&(o[a].label=a)}else i[a]=l}return[o,i]}finally{n&&_e()}},Kw=(e,t)=>{let r={};for(let n in e){let o=Qg[n.slice(0,1)];if(o){let i=o(n,e[n],t);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]&&typeof r[s]=="object"&&typeof i[s]=="object"?Ge(r[s],i[s]):r[s]=i[s])}}return r},et=(e,t,r={unpack:!0})=>{let[n,o]=Gw(e,t,r),i=Kw(o,t),s=!1;for(let a in i){s=!0;break}if(s){if(r.unpack)return di(n,i);n._selectors=i}return n},sI=(e,t)=>{let r={};if(e.class)for(let n in e.class)r[n]=e.class[n](t);return r};M();var Xw=e=>{if(S(e))return et(e,e)},aI=(e,t)=>{let r=Xw(e);return typeof t=="function"?t(r):$r(r)};M();function Jw(e,t,r){let n=e?.context?.analyze;if(!n||!n.emit||t==="warn"&&!n.shouldCapture("warnings")||t==="error"&&!n.shouldCapture("errors"))return;let o=r.map(i=>i?.message||(typeof i=="string"?i:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:r})}function lI(...e){return Jw(this,"warn",e),Yi.apply(this,e)}function cI(...e){return Jw(this,"error",e),an.apply(this,e)}var Yw={update:As,remove:Es,getDB:es,getQuery:ts,getRootData:Gi,getChildren:zi,getPath:Ui,nextElement:Zi,previousElement:Ji,verbose:Zn,warn:lI,error:cI,variables:Qi,spotByPath:Vi,set(e,t){if(this.removeContent(),e!=null){let r=this.context?.__create;r&&r(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),t(o,r,n,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let r of t.__children){let n=this[r];if(!n)continue;if(typeof e=="function"){if(e(n))return n}else if(typeof e=="string"&&n.key===e)return n;let o=n.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let r=this.__ref;if(!r?.__children)return t;for(let n of r.__children){let o=this[n];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:qi,getRootState:Hi,getRootContext:Ki,getContext:Xi,parse(e){let t={},r=e?new Set(e):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){t[o]=n[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(t[n]=this[n].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let r of e)t[r]=this[r];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let r=e[t];if(r==null)continue;let n=t.replace(/[A-Z]/g,i=>"-"+i.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(e,...t){let r=this.context,n=r?.methods?.[e]||r?.functions?.[e]||r?.utils?.[e]||this[e];if(typeof n=="function")return n.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let r=e.__children.indexOf("content");r!==-1&&e.__children.splice(r,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},Zw=new WeakMap;function uI(e){if(!e)return Yw;let t=Zw.get(e);if(t)return t;t=Object.create(Yw);let r=e.methods;if(r)for(let n in r)t[n]=r[n];return Zw.set(e,t),t}function Rs(e){let t=uI(e.context);Object.setPrototypeOf(e,t)}M();qn();var fI=(e,t,r)=>{Object.defineProperty(e,t,{value:r,enumerable:!1,configurable:!0,writable:!0})},ht=(e,t)=>{if(Fe(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(i,s={}){t[i]=!t[i]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(i,s={}){return t.clean({preventStateUpdate:!0}),typeof i=="object"&&i!==null&&t.update(i,s),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(i,s,a={}){let l=i.split("."),c=t;for(let u=0;u<l.length-1;u++)c[l[u]]===void 0&&(c[l[u]]={}),c=c[l[u]];return c[l[l.length-1]]=s,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(i){let s=i.split("."),a=t;for(let l=0;l<s.length;l++){if(a==null)return;a=a[s[l]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(i,s={}){let a=i.split("."),l=t;for(let c=0;c<a.length-1;c++){if(l==null)return t;l=l[a[c]]}return l&&delete l[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(i={}){let s=t.parse();return t.set(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(i,s={}){if(typeof i=="function"){let a=i(t);return t.update(a,s)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(i,s={}){if(typeof i=="function")return i(t),t.update(t.parse(),s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(i,s={}){let a=t;for(;a?.parent&&Fe(a.parent);)a=a.parent;return a.update(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(i,s={}){if(t.parent)return t.parent.update(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(i,s={}){return t.replace(i,{quiet:!0,...s})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let i=t;for(;i?.parent&&Fe(i.parent);)i=i.parent;return i},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let r=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},n={update(o){if(!o||typeof o!="object")return t;for(let i in o)t[i]=o[i];return t},apply(o){if(typeof o!="function")return t;let i=o(t);return i?t.update(i):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;r();for(let i in o)t[i]=o[i];return t},replace(o){return t.set(o)},clean(){return r(),t}};for(let o in n)typeof t[o]!="function"&&fI(t,o,n[o])};var Qw=function(e,t,r){return e.state=rm(e,t,r),e.state},rm=function(e,t,r){let{__ref:n}=e,o=e.state;if(o==null||o===!1){let i=t?.state||{};return ht(e,i),i}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",dI(o,e,t);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let i=at({value:o});return i.__element=e,t?.state&&(i.parent=t.state),ht(e,i),i}if(typeof o=="function"&&(o=o(e,t?.state)||{}),typeof o=="object"&&!Fe(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let i=at({...o});if(i.__element=e,!Object.getOwnPropertyDescriptor(i,"root")){let s=t?.state?.root||t?.state||i;Object.defineProperty(i,"root",{get:()=>s,enumerable:!1,configurable:!0})}return t?.state&&(i.parent=t.state,t.state.__children&&(t.state.__children[e.key]=i)),ht(e,i),typeof e.onStateCreated=="function"&&e.onStateCreated(e,i,e.context,r),i}return Fe(o)?(o.__element=e,o):t?.state||{}};function tm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function dI(e,t,r){if(!r?.state)return{};if(e===".")return r.state;if(e.startsWith("../")){let o=e.slice(3),i=r.state?.parent;return o&&i?tm(i,o):i??r.state??{}}if(e.startsWith("~/")){let o=r.state;for(;o?.parent;)o=o.parent;let i=e.slice(2);return i?tm(o,i):o??{}}let n=tm(r.state,e);if(n&&typeof n=="object"&&!Fe(n)&&!Object.getOwnPropertyDescriptor(n,"root")){let o=r.state?.root||r.state;Object.defineProperty(n,"root",{get:()=>o,enumerable:!1,configurable:!0})}return n}var rS=(e,t)=>{if(!e)return tS;let r=hI(e,t);return!r||!r.state?tS:mI(r.state)},nS=()=>jn()!=null,pI=128;function hI(e,t){let r=typeof t=="function"?t:typeof t=="string"?i=>!!i?.[t]:i=>!!i?.state,n=e,o=null;for(let i=0;i<pI&&n;i++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var gI={get(e,t){return e[t]}},eS=new WeakMap,mI=e=>{let t=eS.get(e);return t||(t=new Proxy(e,gI),eS.set(e,t)),t},tS=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var yI=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],zc={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},iS=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],im=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,Fr=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||im(t)||zc.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(zc,e)?zc[e].includes(t):!1,sm=e=>{if(!A(e))return!1;let t=e.toLowerCase();return iS.includes(t)},bI=(e,t,r)=>{let n={};for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(r&&o in r)continue;if(o==="aria"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])He(t[o][a])&&(n["aria-"+a]=t[o][a]);continue}if(o==="data"&&t[o]&&typeof t[o]=="object"){for(let a in t[o])if(He(t[o][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());n["data-"+l]=t[o][a]}continue}let i=Fr(e,o),s=sm(o);if(He(t[o])&&(i||s)){let a=im(o)||o;n[a]=t[o]}}return n},xI=(e,t)=>{let r={};if(e.attr)for(let n in e.attr)r[n]=e.attr[n](t,t.state,t.context);if(e.aria&&typeof e.aria=="object")for(let n in e.aria){let o=e.aria[n];typeof o=="function"&&(r["aria-"+n]=o(t,t.state,t.context))}if(e.data&&typeof e.data=="object")for(let n in e.data){let o=e.data[n];if(typeof o=="function"){let i=n.replace(/([A-Z])/g,s=>"-"+s.toLowerCase());r["data-"+i]=o(t,t.state,t.context)}}return r},Ir=(e,t)=>{let r=e.call("exec",t,e);if(r)return A(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r},nm=(e,t)=>{let r=(e.preSrc||"")+(Ir(e,t)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=e;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),i=n.assets&&(n.assets[r]||n.assets[o]);return i&&i.content?i.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),i=n.files&&(n.files[r]||n.files[o]);return i&&i.content?i.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},om={src:e=>nm(e,e.src),href:e=>Ir(e,e.href),action:e=>Ir(e,e.action),poster:e=>nm(e,e.poster),data:e=>Ir(e,e.data)},am=e=>{let t=e.tag||"div",r={};for(let n in om)if(e[n]!==void 0&&Fr(t,n)){let o=om[n](e);o!==void 0&&(r[n]=o)}return r},oS=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return O(r)?r.call(t,t):!!r},vI=(e,t,r)=>{if(e==="$"){let o=oS(t,r);return o===void 0&&(o=!!r[t]),o}let n=r[t]===!0||r.state[t];if(!n){let o=oS(t,r);o!==void 0&&(n=o)}return e==="."?!!n:!n},_I=new Set(["$",".","!"]),wI=(e,t,r)=>{let n={},o=(i,s,a,l)=>{let c=s;n[i]=u=>{if(vI(a,l,u))return O(c)?c(u):c}};for(let i in e){let s=i.charAt(0);if(!_I.has(s))continue;let a=e[i];if(!a||typeof a!="object")continue;let l=i.slice(1);for(let c in a){if(r&&c in r)continue;if(c==="aria"&&a[c]&&typeof a[c]=="object"){for(let p in a[c])o("aria-"+p,a[c][p],s,l);continue}if(c==="data"&&a[c]&&typeof a[c]=="object"){for(let p in a[c]){let h=p.replace(/([A-Z])/g,g=>"-"+g.toLowerCase());o("data-"+h,a[c][p],s,l)}continue}let u=Fr(t,c),d=sm(c);if(!u&&!d)continue;let f=im(c)||c;o(f,a[c],s,l)}}return n};var SI=1;function ao(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function kI(e){return e.charAt(2).toLowerCase()+e.slice(3)}function CI(e){return e.toLowerCase()}function um(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=um(o,i):r[n]=i}return r}function Rt(e,t,r,n={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let i=Object.create(null);i.key=r||e.key||`_${SI++}`,i.parent=t||null,i.context=e.context||t?.context||n.context||{},i.context.__create||(i.context.__create=Rt);let s=i.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||i,path:t?.__ref?.path?[...t.__ref.path,i.key]:[i.key]};if(r&&!e.extends&&!e.extend){let g=r.indexOf("_");if(g>0){let m=r.substring(0,g),y=i.context?.components;y&&(y[m]||y["smbls."+m])&&(e={extends:m,...e})}}Cs(i,e,n);let a=new Set(["childProps","attr","style","scope","data"]),l=i.props&&typeof i.props=="object"?i.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let m=e[g],y=i[g],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?i[g]=um(y,m):b&&a.has(g)?i[g]={...y,...m}:i[g]=m}function c(g){for(let m in g){let y=g[m],b=i[m],v=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";v&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?i[m]=um(b,y):v&&a.has(m)?i[m]={...b,...y}:i[m]=y}}l&&c(l),e.props&&typeof e.props=="object"&&c(e.props),e.data!==void 0&&(i.data=e.data),e.classlist!==void 0&&(i.classlist=e.classlist),e.text!==void 0&&(i.text=e.text),e.html!==void 0&&(i.html=e.html);let u=i.scope&&typeof i.scope=="object"?i.scope:null,d=t?.scope,f=i.context&&typeof i.context.globalScope=="object"&&i.context.globalScope||null,p=d||f||null;if(e.scope!==void 0||u){let g={};u&&Object.assign(g,u),e.scope!==void 0&&Object.assign(g,e.scope),i.scope=il(g,p)}else p&&(i.scope=p);if(e.if!==void 0&&(i.if=e.if),Rs(i),AI(i,t,e),i.if!=null){let g=typeof i.if=="function"?i.if(i,i.state,i.context):i.if;s.__if=!!g}if(s.__if)typeof e.if=="function"&&(s.__ifInitialized=!0);else return t&&(t[i.key]=i),typeof e.if=="function"&&fm(i,{if:e.if}),i;i.tag||(i.tag=bn(i)),jr("Init",i,n);let h=i.node=xn(i);if(!h)return i;jr("AttachNode",i,n),h.setAttribute&&i.key&&h.setAttribute("data-key",i.key),h.setAttribute&&i.context?.scopeSelector&&i.context.scopeSelector!==":root"&&i.context.key&&i.key===i.context.key&&h.setAttribute("data-smbls-app",i.context.key),i.id&&h.setAttribute&&(h.id=i.id),fm(i,e),dm(i),aS(i),lS(i,n);try{cS(i,n)}catch(g){if(typeof console<"u"&&console.error){let m=i.__ref?.path?.join(".")||i.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,g?.message||g,g?.stack?`
|
|
37
37
|
`+g.stack.split(`
|
|
38
38
|
`).slice(0,6).join(`
|
|
39
|
-
`):"")}}if(mm(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&Oe(g);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{g&&we()}}if(Fr("Create",s,n),Fr("Complete",s,n),Fr("Render",s,n),Fr("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&Oe(m);try{g(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&we()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function CI(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&e.context?.state,i=r.state!==void 0&&!s?r.state:e.state&&!Fe(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,gt(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=Fe(l)?l:lt(l),e.state.__element=e,e.state.root=e.state,gt(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),gt(e,e.state);return}if(typeof i=="string"){if(e.state=lS(i,t),e.state&&typeof e.state=="object"&&!Fe(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}gt(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=lt(a||{})}else e.state=lt({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,gt(e,e.state)}function cm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function lS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?cm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?cm(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=cm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[e]!==void 0)return s[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function AI(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||Ze.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||io(a)||Se[a]||Le&&Le.has(a)||jr(r,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:l}=o[i];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Oe(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&we()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function dm(e,t){let r=e.__ref;if(AI(e),typeof e.text=="function"){let o=e.text,s=Ee(()=>{if(!r.contentManaged)try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=Zr.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=Ee(()=>{if(r.contentManaged)return;let i=Zr.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Ze.has(o)&&!io(o)&&!r.__exec[o]){if(Se[o]){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context),u=Se[i](c,e,e.state,e.context);u&&e.node?so(e.node,u):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(Le&&Le.has(o)){let s=e[o],i=o,a=Ee(()=>{let l=e.context?.designSystem;l&&Oe(l);try{let c=s(e,e.state,e.context);e.node&&(c!=null?so(e.node,{[i]:c}):e.node.style[i]="")}finally{l&&we()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=Ee(()=>{let i=e.context?.designSystem;i&&Oe(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&we()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=Ee(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s=Ee(()=>{let i=o(e,e.state,e.context);so(e.node,i)},{depth:r.path.length});r.__effects.push(s),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=Ee(()=>{try{let a=s(e,e.state,e.context);e.node&&so(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=Ee(()=>{try{let l=s(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Ee(()=>{try{let l=s(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(i):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(i,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let a="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),l=Ee(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(a,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(l)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=Ee(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=Ee(()=>{let i=o(e,e.state,e.context),a=r.__if;if(r.__if=!!i,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=bn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else mm(e,e.parent);pm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=yn(e)),Fr("Init",e,{}),e.node||(e.node=bn(e)),!e.node)return;Fr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{dm(e,t)}finally{t.if=l}pm(e),cS(e),uS(e,{}),fS(e,{}),mm(e,e.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ze.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||io(o))continue;let i=e[o];r.__exec[o]=i;let a=e.tag||"div";if(jr(a,o)&&!Se[o]&&!(Le&&Le.has(o))){let l=o,c=Ee(()=>{try{let u=i(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}TI(e)}function pm(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),RI(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&so(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function so(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=s.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,c,l?"important":"")}catch{}}}r&&OI(e,r)}var EI=0;function OI(e,t){let r=`_ds${EI++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in t){let a="."+r,l=i.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[i];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
|
|
40
|
-
`}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(
|
|
41
|
-
`),d&&(s+=d)}}s&&(o.textContent+=s)}function TI(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=e[r];if(!s||typeof s!="object")continue;let i=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=i?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Oe(p);try{if(f){let h={};for(let m in s){if(!Object.prototype.hasOwnProperty.call(s,m))continue;let y=typeof s[m]=="function"?s[m](e,e.state,e.context):s[m];if(y!=null)if(Se[m]){let b=Se[m](y,e,e.state,e.context);if(b){let x=Array.isArray(b)?b:[b];for(let v of x)v&&Object.assign(h,v)}}else Le&&Le.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(so(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&we()}};t.__conditionalRunners.push(l);let c=Ee(l,{depth:t.path.length});t.__effects.push(c)}}var um=new WeakSet;function RI(e){let{node:t}=e;if(!t)return;if(um.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}um.add(e);let r=e.context?.designSystem;r&&Oe(r);try{let n={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||Ze.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!io(s)){if(Se[s]){let a=e[s],l=Se[s](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(Le&&Le.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(n[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Se[c]){let d=Se[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let u={};for(let f in l){let p=l[f];u[f]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let d=s.slice(1);n[`[data-theme="${d}"] &`]=u}else{let u=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let f=s.slice(1),p=e.context?.designSystem?.media?.[f]||e.context?.designSystem?.media?.[f];p&&(u=`@media ${p}`)}let d={};for(let f in l){let p=l[f];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let m in p)if(Se[m]){let y=Se[m](p[m],e,e.state,e.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=p[m];let g=f.startsWith(":")?"":" ";if(u.includes(",")){let m=u.split(",").map(y=>`${y.trim()}${g}${f}`).join(", ");n[m]=h}else n[`${u}${g}${f}`]=h}else d[f]=p}Object.keys(d).length&&(n[u]=d)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=$r(n,null,e.context?.cssPrefix);s&&t.classList&&s.split(" ").forEach(a=>a&&t.classList.add(a));let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&we(),um.delete(e)}}function cS(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let r=lm(e);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Ze.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!io(o)&&!(Se[o]||Le&&Le.has(o))&&jr(n,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Zr(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function uS(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!io(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(a){return e.call(s,a)}}if(typeof n!="function")continue;let o=SI(r);vn.has(o)||_i(kI(o),e,n)}}function hm(e,t){let r={...e};for(let n in t){let o=r[n],s=t[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=hm(o,s):r[n]=s}return r}function gm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let s=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=e.childProps,a=e.childrenAs;for(let l=0;l<t.length;l++){let c=t[l],u=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let d=i;if(typeof i=="function")try{d=i(e,c)}catch{d=null}if(a==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),c=d?{...d,state:h}:{state:h}}else d&&(c=hm(d,c));if(n&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],g=Array.isArray(n)?n:[n];c={...c,extends:[...g,...h]}}else c={extends:n,...c};let f=c?.key||`${l}`,p=Rt(c,e,f,r);p?.node&&s.appendChild(p.node)}e.node.appendChild(s);return}if(typeof t=="string"){let o=lS(t,e);if(Array.isArray(o)){gm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Ze.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=hm(e.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={extends:n,...s};Rt(s,e,o,r)}}}function fS(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let i=r;r=i(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ee(()=>{let u=i(e,e.state,e.context);if(!l){l=!0;return}if(u===e.children)return;if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let p=e.childProps,h=[],g=new Map;for(let w=0;w<u.length;w++){let k=u[w],E=p;if(typeof p=="function")try{E=p(e,k)}catch{E=null}let j=E&&E.key||k&&k.key||`${w}`;h.push(j),g.set(j,{rawChild:k,childProps:E})}let m=new Set(h),y=a.__children.slice();for(let w of y)if(!m.has(w)){let k=e[w];k?.remove&&k.remove(),delete e[w]}let b=e.childExtends,v=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let w of h){let k=g.get(w),E=k.rawChild,j=e[w];if(j&&j.state){if(E&&typeof E=="object"){let F=j.state;if(typeof F.replace=="function")F.replace(E);else if(typeof F.update=="function"){for(let I in F)if(!(I==="__element"||I==="root"||I==="parent"||I==="update")&&!Object.prototype.hasOwnProperty.call(E,I))try{F[I]=void 0}catch{}F.update(E)}else for(let I in E)F[I]=E[I]}continue}let _=E;(typeof E=="string"||typeof E=="number")&&(_={value:E,text:E});let $=k.childProps,q=$?{...$,state:_}:{state:_};if(b&&!q.ignoreChildExtends)if(q.extends){let F=Array.isArray(q.extends)?q.extends:[q.extends],I=Array.isArray(b)?b:[b];q={...q,extends:[...I,...F]}}else q={extends:b,...q};let te=Rt(q,e,w,t);te?.node&&v&&v.appendChild(te.node)}v&&v.childNodes.length&&e.node&&e.node.appendChild(v),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],gm(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(gm(e,r||n,t),r||n)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let l=i[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<i.length;d++){let f=i[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Ze.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||Ze.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let l=e[i];if(!l.__ref){if(!l.extends&&!l.extend){let c=s[i]||s[`smbls.${i}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};Rt(l,e,i,t)}}}function mm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function Fr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&ki(n,t,r);let o="on"+e,s=t[o];if(typeof s=="function"){let i=t.context?.designSystem;i&&Oe(i);try{if(s(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&ki("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{i&&we()}}return!0}var dS={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},pS={"gradient-blue-light":`linear-gradient(to right,
|
|
39
|
+
`):"")}}if(gm(i,t,o),t&&(t[i.key]=i,t.__ref?.__children&&(t.__ref.__children.includes(i.key)||t.__ref.__children.push(i.key))),typeof i.html=="function"&&i.node&&!i.node.innerHTML){let g=i.context?.designSystem;g&&Ee(g);try{let m=i.html(i,i.state,i.context);m!=null&&typeof m!="function"&&(i.node.innerHTML=m)}catch{}finally{g&&_e()}}if(jr("Create",i,n),jr("Complete",i,n),jr("Render",i,n),jr("RenderRouter",i,n),typeof i.onFrame=="function"){let g=i.onFrame,m=i.context?.designSystem,y=()=>{if(i.node){if(i.node.isConnected){m&&Ee(m);try{g(i,i.state,i.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&_e()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return i}function AI(e,t,r){let n=!t,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,i=n&&o&&e.context?.state,s=r.state!==void 0&&!i?r.state:e.state&&!Fe(e.state)?e.state:void 0;if(s==null){if(t?.state)e.state=t.state,ht(e,e.state);else if(e.context?.state){let a=e.context.state,l={...a},c=e.context?.polyglot;if(c?.translations){let u=a.lang||c.defaultLang||"en",d=c.translations[u];if(d&&typeof d=="object")for(let p in d)l[p]===void 0&&(l[p]=d[p]);let f=new Set(c.languages||[]);for(let p in c.translations)!f.has(p)&&l[p]===void 0&&(l[p]=c.translations[p])}e.state=Fe(l)?l:at(l),e.state.__element=e,e.state.root=e.state,ht(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),ht(e,e.state);return}if(typeof s=="string"){if(e.state=sS(s,t),e.state&&typeof e.state=="object"&&!Fe(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}ht(e,e.state);return}if(typeof s=="function"){let a=s(e,t?.state);e.state=at(a||{})}else e.state=at({...s});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,ht(e,e.state)}function lm(e,t){if(!t)return e;let r=t.split("/"),n=e;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function sS(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?lm(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,i=e.slice(2);return i?lm(o,i):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let r=lm(t.state,e);if(r!=null&&Object.keys(r).length>0)return r;let n=t.context?.polyglot;if(n?.translations){let o=t.state?.root?.lang||n.defaultLang||"en",i=n.translations[o];if(i?.[e]!==void 0)return i[e];if(n.translations[e]!==void 0)return n.translations[e]}return{}}function EI(e){let t=e.__ref,r=e.tag||"div",n=e.context?.designSystem,o=[],i=Object.keys(e);for(let s=0;s<i.length;s++){let a=i[s];if(typeof e[a]!="function"||Ye.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||ao(a)||Se[a]||De&&De.has(a)||Fr(r,a)||o.push({prop:a,fn:e[a]})}for(let s=0;s<o.length;s++){let{prop:a,fn:l}=o[s];t.__exec[a]=l,Object.defineProperty(e,a,{get(){n&&Ee(n);try{return l(e,e.state,e.context)}catch{return}finally{n&&_e()}},set(c){delete t.__exec[a],Object.defineProperty(e,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function fm(e,t){let r=e.__ref;if(EI(e),typeof e.text=="function"){let o=e.text,i=Ae(()=>{if(!r.contentManaged)try{let s=o(e,e.state,e.context);e.node&&s!=null&&typeof s!="function"&&typeof s!="object"&&(typeof s=="string"&&s.includes("{{")&&(s=Jr.call(e,s,e.state)),e.tag==="string"?e.node.nodeValue=s:e.node.textContent=s)}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,i=Ae(()=>{if(r.contentManaged)return;let s=Jr.call(e,o,e.state);s!=null&&(e.text=s),e.node&&(e.tag==="string"?e.node.nodeValue=s??"":e.node.textContent=s??"")},{depth:r.path.length});r.__effects.push(i),r.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!Ye.has(o)&&!ao(o)&&!r.__exec[o]){if(Se[o]){let i=e[o],s=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ee(l);try{let c=i(e,e.state,e.context),u=Se[s](c,e,e.state,e.context);u&&e.node?so(e.node,u):e.node&&(s==="show"||s==="hide")&&(e.node.style.display="")}finally{l&&_e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=i}else if(De&&De.has(o)){let i=e[o],s=o,a=Ae(()=>{let l=e.context?.designSystem;l&&Ee(l);try{let c=i(e,e.state,e.context);e.node&&(c!=null?so(e.node,{[s]:c}):e.node.style[s]="")}finally{l&&_e()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=i}}if(typeof t.html=="function"){let o=t.html,i=Ae(()=>{let s=e.context?.designSystem;s&&Ee(s);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{s&&_e()}},{depth:r.path.length});r.__effects.push(i),r.__exec.html=o}if(typeof t.value=="function"){let o=t.value,i=Ae(()=>{try{let s=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=s==null?"":String(s);if(e.node.value===a)return;let l=typeof document<"u"&&document.activeElement===e.node,c=l&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,u=l&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,l&&c!=null&&u!=null)try{e.node.setSelectionRange(c,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.value=o}if(typeof t.style=="function"){let o=t.style,i=Ae(()=>{let s=o(e,e.state,e.context);so(e.node,s)},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let i=e.style[o];if(typeof i!="function")continue;let s=Ae(()=>{try{let a=i(e,e.state,e.context);e.node&&so(e.node,{[o]:a})}catch{}},{depth:r.path.length});r.__effects.push(s)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let i=e.attr[o],s=o,a=Ae(()=>{try{let l=i(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(s,l===!0?"":l))}catch{}},{depth:r.path.length});r.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let i=e.aria[o];if(typeof i!="function")continue;let s="aria-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=Ae(()=>{try{let l=i(e,e.state,e.context);if(!e.node?.setAttribute)return;l==null||l===!1?e.node.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&e.node.setAttribute(s,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let i=e.data[o];if(typeof i!="function")continue;let a="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),l=Ae(()=>{try{let c=i(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(a,c===!0?"":c)}catch{}},{depth:r.path.length});r.__effects.push(l)}let n=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(n)for(let o in n){let i=n[o];if(typeof i!="function")continue;let s=Ae(()=>{try{let a=i(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(s)}if(typeof t.if=="function"){let o=t.if,i=Ae(()=>{let s=o(e,e.state,e.context),a=r.__if;if(r.__if=!!s,a&&!r.__if&&e.node)e.node.remove();else if(!a&&r.__if)if(r.__ifInitialized){e.node||(e.node=xn(e));let l=e.parent,c=l?.node;if(c&&e.node){let u=null,d=Object.keys(l),f=d.indexOf(e.key);for(let p=f+1;p<d.length;p++){let h=l[d[p]];if(h?.node?.parentNode===c){u=h.node;break}}u?c.insertBefore(e.node,u):c.appendChild(e.node)}else gm(e,e.parent);dm(e)}else{if(r.__ifInitialized=!0,e.tag||(e.tag=bn(e)),jr("Init",e,{}),e.node||(e.node=xn(e)),!e.node)return;jr("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id);let l=t.if;delete t.if;try{fm(e,t)}finally{t.if=l}dm(e),aS(e),lS(e,{}),cS(e,{}),gm(e,e.parent)}},{depth:r.path.length});r.__effects.push(i)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ye.has(o)||typeof e[o]!="function")continue;let i=o.charCodeAt(0);if(i>=65&&i<=90||ao(o))continue;let s=e[o];r.__exec[o]=s;let a=e.tag||"div";if(Fr(a,o)&&!Se[o]&&!(De&&De.has(o))){let l=o,c=Ae(()=>{try{let u=s(e,e.state,e.context);e.node?.setAttribute&&(u==null||u===!1?e.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in e.node?e.node.src=u:e.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(c)}}RI(e)}function dm(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),PI(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let r=String(e.value);t.value!==r&&(t.value=r)}if(e.style&&typeof e.style=="object"&&so(t,e.style),e.attr&&typeof e.attr=="object")for(let r in e.attr){let n=e.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.setAttribute&&t.setAttribute(r,n===!0?"":n)}if(e.data&&typeof e.data=="object")for(let r in e.data){let n=e.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||t.dataset&&(t.dataset[r]=n===!0?"":n)}if(e.classlist||e.class){let r=e.classlist||e.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&t.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](e,e.state,e.context):r[n];o&&t.classList.add(typeof o=="string"?o:n)}}}}function so(e,t){if(!e||!t||!e.style)return;let r=null;for(let n in t){let o=t[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let i=String(o),s=n.replace(/[A-Z]/g,u=>"-"+u.toLowerCase()),a=i.trim(),l=/\s*!important\s*$/.test(a),c=a.replace(/\s*!important\s*$/,"");e.style.setProperty(s,c,l?"important":"")}catch{}}}r&&TI(e,r)}var OI=0;function TI(e,t){let r=`_ds${OI++}`;e.classList.add(r);let n=e.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let i="";for(let s in t){let a="."+r,l=s.replace(/&/g,a).split(",").map(u=>{let d=u.trim();return d.includes(a)?d:a+d}).join(", "),c=t[s];if(typeof c=="object"){let u="",d="";for(let f in c){let p=c[f];if(typeof p=="object"){let h=f.includes("&")?l.split(", ").map(m=>f.replace(/&/g,m)).join(", "):l.split(", ").map(m=>`${m} ${f}`).join(", "),g="";for(let m in p)g+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${p[m]};`;d+=`${h} { ${g} }
|
|
40
|
+
`}else u+=`${f.replace(/[A-Z]/g,h=>"-"+h.toLowerCase())}: ${p};`}u&&(i+=`${l} { ${u} }
|
|
41
|
+
`),d&&(i+=d)}}i&&(o.textContent+=i)}function RI(e){let t=e.__ref;t.__conditionalRunners=[];for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let i=e[r];if(!i||typeof i!="object")continue;let s=n==="!",a={lastMatch:!1,appliedKeys:null},l=()=>{if(!e.node)return;let u,d=e[o];if(d===void 0)if(e.state&&o in e.state)u=e.state[o];else{let h=e.context?.cases?.[o];if(h===void 0)return;u=typeof h=="function"?h.call(e,e):h}else typeof d=="function"?u=d(e,e.state,e.context):u=d;let f=s?!u:!!u;if(f===a.lastMatch)return;a.lastMatch=f;let p=e.context?.designSystem;p&&Ee(p);try{if(f){let h={};for(let m in i){if(!Object.prototype.hasOwnProperty.call(i,m))continue;let y=typeof i[m]=="function"?i[m](e,e.state,e.context):i[m];if(y!=null)if(Se[m]){let b=Se[m](y,e,e.state,e.context);if(b){let v=Array.isArray(b)?b:[b];for(let x of v)x&&Object.assign(h,x)}}else De&&De.has(m)&&(h[m]=y)}let g=Object.keys(h);g.length?(so(e.node,h),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let h of a.appliedKeys)e.node.style[h]="";a.appliedKeys=null}}finally{p&&_e()}};t.__conditionalRunners.push(l);let c=Ae(l,{depth:t.path.length});t.__effects.push(c)}}var cm=new WeakSet;function PI(e){let{node:t}=e;if(!t)return;if(cm.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}cm.add(e);let r=e.context?.designSystem;r&&Ee(r);try{let n={},o=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||typeof e[i]=="function"||Ye.has(i))continue;let s=i.charCodeAt(0);if(!(s>=65&&s<=90)&&!ao(i)){if(Se[i]){let a=e[i],l=Se[i](a,e,e.state,e.context);if(l){if(Array.isArray(l))for(let c of l)c&&Object.assign(n,c);else Object.assign(n,l);o=!0}}else if(De&&De.has(i)){let a=e[i];a!=null&&typeof a!="object"&&(n[i]=a,o=!0)}else if(i.charCodeAt(0)===45){let a=e[i];a!=null&&typeof a!="object"&&(n[i]=a,o=!0)}else if(i.charAt(0)==="&"){let a=e[i];a&&typeof a=="object"&&(n[i]=a,o=!0)}else if(i.charAt(0)==="@"||i.charAt(0)===":"){let a=e[i];if(a&&typeof a=="object"){let l={};for(let c in a){let u=a[c];if(typeof u=="function"&&(u=u(e,e.state,e.context)),!(u==null||typeof u=="function"))if(Se[c]){let d=Se[c](u,e,e.state,e.context);if(d)if(Array.isArray(d))for(let f of d)f&&Object.assign(l,f);else Object.assign(l,d)}else l[c]=u}if(Object.keys(l).length){if(i.length>1&&i.charAt(0)==="@"&&!i.startsWith("@media")&&!i.startsWith("@keyframes")&&!i.startsWith("@supports")&&(i==="@dark"||i==="@light"||!e.context?.designSystem?.media?.[i.slice(1)])){let u={};for(let f in l){let p=l[f];u[f]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let d=i.slice(1);n[`[data-theme="${d}"] &`]=u}else{let u=i;if(i.charAt(0)==="@"&&!i.startsWith("@media")&&!i.startsWith("@keyframes")){let f=i.slice(1),p=e.context?.designSystem?.media?.[f]||e.context?.designSystem?.media?.[f];p&&(u=`@media ${p}`)}let d={};for(let f in l){let p=l[f];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let m in p)if(Se[m]){let y=Se[m](p[m],e,e.state,e.context);if(y)if(Array.isArray(y))for(let b of y)b&&Object.assign(h,b);else Object.assign(h,y)}else h[m]=p[m];let g=f.startsWith(":")?"":" ";if(u.includes(",")){let m=u.split(",").map(y=>`${y.trim()}${g}${f}`).join(", ");n[m]=h}else n[`${u}${g}${f}`]=h}else d[f]=p}Object.keys(d).length&&(n[u]=d)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(t.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let i=$r(n,null,e.context?.cssPrefix);if(i&&t.classList){let a=i.split(" ").filter(Boolean),l=!1;for(let c of a)t.classList.add(c),l||(c.charCodeAt(0)===95&&c.charCodeAt(1)===99||c.charCodeAt(0)===95&&c.indexOf("_c",1)!==-1)&&(l=!0);l&&typeof t.offsetWidth=="number"&&t.offsetWidth}let s=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(s!=null){let a=n.display;if(a&&a!==s)if(s==="none"){let l=[];for(let c of t.classList)c.startsWith("_d-")&&c!=="_d-none"&&l.push(c);for(let c of l)t.classList.remove(c);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{r&&_e(),cm.delete(e)}}function aS(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let i=e.aria[o];if(typeof i=="function"||typeof i=="object"||i==null||i===!1)continue;let s="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(s,i===!0?"":i)}let r=am(e);for(let o in r){let i=r[o];i!=null&&i!==!1&&typeof i!="function"&&typeof i!="object"&&t.setAttribute(o,i===!0?"":i)}let n=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||Ye.has(o)||o==="on"||r[o]!==void 0)continue;let i=o.charCodeAt(0);if(!(i>=65&&i<=90)&&!ao(o)&&!(Se[o]||De&&De.has(o))&&Fr(n,o)){let s=e[o];if(s==null||s===!1||(typeof s=="string"&&s.includes("{{")&&(s=Jr(s,e,e.state,e.context),e[o]=s),s==null||s===!1||typeof s=="function"||typeof s=="object"))continue;t.setAttribute(o,s===!0?"":s)}}}function lS(e,t){for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||!ao(r))continue;let n=e[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let i=n;n=function(a){return e.call(i,a)}}if(typeof n!="function")continue;let o=kI(r);vn.has(o)||ks(CI(o),e,n)}}function pm(e,t){let r={...e};for(let n in t){let o=r[n],i=t[n];o&&i&&typeof o=="object"&&typeof i=="object"&&!Array.isArray(o)&&!Array.isArray(i)&&typeof o!="function"&&typeof i!="function"?r[n]=pm(o,i):r[n]=i}return r}function hm(e,t,r){if(!t||!e.node)return;let n=e.childExtends;if(Array.isArray(t)){let i=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!i)return;let s=e.childProps,a=e.childrenAs;for(let l=0;l<t.length;l++){let c=t[l],u=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let d=s;if(typeof s=="function")try{d=s(e,c)}catch{d=null}if(a==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),c=d?{...d,state:h}:{state:h}}else d&&(c=pm(d,c));if(n&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],g=Array.isArray(n)?n:[n];c={...c,extends:[...g,...h]}}else c={extends:n,...c};let f=c?.key||`${l}`,p=Rt(c,e,f,r);p?.node&&i.appendChild(p.node)}e.node.appendChild(i);return}if(typeof t=="string"){let o=sS(t,e);if(Array.isArray(o)){hm(e,o,r);return}}if(typeof t=="object")for(let o in t){if(Ye.has(o))continue;let i=t[o];if(!(i==null||i===!1)){if((typeof i=="string"||typeof i=="number")&&(i={text:i}),e.childProps&&(i=pm(e.childProps,i)),n&&!i.ignoreChildExtends)if(i.extends){let s=Array.isArray(i.extends)?i.extends:[i.extends],a=Array.isArray(n)?n:[n];i={...i,extends:[...a,...s]}}else i={extends:n,...i};Rt(i,e,o,r)}}}function cS(e,t){let{children:r,content:n}=e,o=e.childExtends;if(typeof r=="function"){let s=r;r=s(e,e.state,e.context),e.children=r;let a=e.__ref,l=!1,c=Ae(()=>{let u=s(e,e.state,e.context);if(!l){l=!0;return}if(u===e.children)return;if(e.children=u,Array.isArray(u)&&e.childrenAs==="state"){let p=e.childProps,h=[],g=new Map;for(let _=0;_<u.length;_++){let k=u[_],E=p;if(typeof p=="function")try{E=p(e,k)}catch{E=null}let j=E&&E.key||k&&k.key||`${_}`;h.push(j),g.set(j,{rawChild:k,childProps:E})}let m=new Set(h),y=a.__children.slice();for(let _ of y)if(!m.has(_)){let k=e[_];k?.remove&&k.remove(),delete e[_]}let b=e.childExtends,x=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let _ of h){let k=g.get(_),E=k.rawChild,j=e[_];if(j&&j.state){if(E&&typeof E=="object"){let D=j.state;if(typeof D.replace=="function")D.replace(E);else if(typeof D.update=="function"){for(let F in D)if(!(F==="__element"||F==="root"||F==="parent"||F==="update")&&!Object.prototype.hasOwnProperty.call(E,F))try{D[F]=void 0}catch{}D.update(E)}else for(let F in E)D[F]=E[F]}continue}let w=E;(typeof E=="string"||typeof E=="number")&&(w={value:E,text:E});let I=k.childProps,H=I?{...I,state:w}:{state:w};if(b&&!H.ignoreChildExtends)if(H.extends){let D=Array.isArray(H.extends)?H.extends:[H.extends],F=Array.isArray(b)?b:[b];H={...H,extends:[...F,...D]}}else H={extends:b,...H};let te=Rt(H,e,_,t);te?.node&&x&&x.appendChild(te.node)}x&&x.childNodes.length&&e.node&&e.node.appendChild(x),a.__children=h;return}for(let p of[...a.__children]){let h=e[p];h?.remove&&h.remove(),delete e[p]}a.__children=[],hm(e,u,t)},{depth:a.path.length});a.__effects.push(c)}if(hm(e,r||n,t),r||n)return;let i=e.context?.components||{};{let s=Object.keys(e);for(let a=0;a<s.length;a++){let l=s[a];if(!l.endsWith("Extends")||typeof e[l]!="string")continue;let c=l.slice(0,-7);if(!c||c.charCodeAt(0)<65||c.charCodeAt(0)>90)continue;let u={extends:e[l]};delete e[l];for(let d=a+1;d<s.length;d++){let f=s[d],p=f.charCodeAt(0);if(p>=65&&p<=90||Ye.has(f)||typeof e[f]=="function"&&(f.startsWith("on")||f.startsWith(".")))break;let h=e[f];h!==void 0&&(u[f]=h,delete e[f])}e[c]&&typeof e[c]=="object"?e[c]={...u,...e[c]}:e[c]=u}}for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Ye.has(s)||typeof e[s]!="object"||e[s]===null)continue;let a=s.charCodeAt(0);if(a<65||a>90)continue;let l=e[s];if(!l.__ref){if(!l.extends&&!l.extend){let c=i[s]||i[`smbls.${s}`];c&&(l={extends:c,...l})}if(e.childProps&&(l={...e.childProps,...l}),o&&!l.ignoreChildExtends)if(l.extends){let c=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...c]}}else l={extends:o,...l};Rt(l,e,s,t)}}}function gm(e,t,r){let{node:n}=e;if(!n)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let i=r.node.nextSibling;i?o.insertBefore(n,i):o.appendChild(n)}else o.appendChild(n)}function jr(e,t,r){let n=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&St(n,t,r);let o="on"+e,i=t[o];if(typeof i=="function"){let s=t.context?.designSystem;s&&Ee(s);try{if(i(t,t.state,t.context,r)===!1)return!1}catch(a){if(t.context?.plugins?.length&&St("error",t,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),t.context?.strictMode)throw a}finally{s&&_e()}}return!0}var uS={blue:"#213eb0",green:"#389d34",red:"#e15c55",yellow:"#EDCB38",orange:"#e97c16",transparent:"rgba(0, 0, 0, 0)",black:"black",gray:"#4e4e50",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},fS={"gradient-blue-light":`linear-gradient(to right,
|
|
42
42
|
rgba(4, 116, 242, 1),
|
|
43
43
|
rgba(0, 48, 103, 1)
|
|
44
44
|
)`,"gradient-blue-dark":`linear-gradient(to right,
|
|
@@ -64,49 +64,49 @@ FROM ${a}${c}`},U2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
|
|
|
64
64
|
#1E54F0 36%,
|
|
65
65
|
#8B4CCA 69%,
|
|
66
66
|
#C66894 100%
|
|
67
|
-
)`};var PI={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},$I={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},II={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},hS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...PI,...$I,...II,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var gS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var mS={ratio:1.618,subSequence:!0};var yS={SourceSans:[{url:""}]},bS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var vS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var xS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var wS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:dS,gradient:pS,theme:hS,typography:gS,spacing:mS,font:yS,fontFamily:bS,timing:wS,icons:vS,media:xS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var co={};K(co,{A:()=>Fk,AssetPicture:()=>BS,Audio:()=>VS,Avatar:()=>Yk,B:()=>ak,Block:()=>_S,Box:()=>Gc,Br:()=>fk,Button:()=>Mk,ButtonSet:()=>Vk,COMPONENTS:()=>lo,Caption:()=>JS,Checkbox:()=>wk,CheckboxHgroup:()=>_k,Circle:()=>DS,CircleButton:()=>Nk,Clickable:()=>IS,Data:()=>ck,Dialog:()=>Wk,DialogFooter:()=>qk,DialogHeader:()=>Hk,Dropdown:()=>Jk,DropdownList:()=>Qk,DropdownParent:()=>e1,DropdownParentFocus:()=>t1,DropdownSiblingFocus:()=>r1,FileIcon:()=>Pk,Flex:()=>kS,Focusable:()=>jS,FocusableComponent:()=>FS,Footnote:()=>ik,Form:()=>RS,Grid:()=>AS,Gutter:()=>OS,H1:()=>HS,H2:()=>qS,H3:()=>GS,H4:()=>KS,H5:()=>XS,H6:()=>YS,Headline:()=>ok,Hgroup:()=>mk,HgroupButton:()=>bk,HgroupRows:()=>yk,Hoverable:()=>$S,Hr:()=>uk,I:()=>lk,Icon:()=>Tk,IconButton:()=>Uk,IconText:()=>Rk,Iframe:()=>PS,Img:()=>TS,Inline:()=>SS,InlineFlex:()=>CS,InlineGrid:()=>ES,Input:()=>vk,Italic:()=>rk,KangorooButton:()=>zk,Li:()=>dk,Link:()=>qm,Notification:()=>n1,NumberInput:()=>xk,Ol:()=>hk,P:()=>ZS,Picture:()=>MS,Radio:()=>Sk,RadioHgroup:()=>kk,Range:()=>Zk,RouteLink:()=>Dk,RouterLink:()=>Gm,SHAPES:()=>Hc,Select:()=>Lk,Shape:()=>_m,Span:()=>WS,SquareButton:()=>Bk,Strong:()=>QS,Subhead:()=>sk,Svg:()=>NS,Text:()=>US,Textarea:()=>Ek,TextareaWithButton:()=>Ok,Theme:()=>LS,Title:()=>nk,Toggle:()=>Ck,ToggleHgroup:()=>Ak,Tooltip:()=>Gk,TooltipHidden:()=>Kk,TooltipParent:()=>Xk,U:()=>ek,Ul:()=>pk,Underline:()=>tk,Video:()=>zS,depth:()=>qc,getSystemGlobalTheme:()=>Pi});var ym={};K(ym,{Block:()=>_S,Flex:()=>kS,Grid:()=>AS,Gutter:()=>OS,Inline:()=>SS,InlineFlex:()=>CS,InlineGrid:()=>ES});var _S={display:"block"},SS={display:"inline"},kS={display:"flex"},CS={display:"inline-flex"},AS={display:"grid"},ES={display:"inline-grid"},OS={boxSize:"C1"};var bm={};K(bm,{Img:()=>TS});D();var TS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?oi(t):"")||e.srcset}}};var vm={};K(vm,{Form:()=>RS});var RS={tag:"form"};var xm={};K(xm,{Iframe:()=>PS});var PS={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var wm={};K(wm,{Clickable:()=>IS,Focusable:()=>jS,FocusableComponent:()=>FS,Hoverable:()=>$S});var jI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},$S={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},IS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},jS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},FS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:jI};var Cm={};K(Cm,{Picture:()=>MS});var km={};K(km,{Theme:()=>LS,getSystemGlobalTheme:()=>Pi});var Sm={};K(Sm,{Circle:()=>DS,SHAPES:()=>Hc,Shape:()=>_m,default:()=>FI,depth:()=>qc});D();var mt=T(),qc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${mt.unit.default} 4${mt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${mt.unit.default} 6${mt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${mt.unit.default} 10${mt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${mt.unit.default} 16${mt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${mt.unit.default} 26${mt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${mt.unit.default} 42${mt.unit.default}`}},ao=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Wc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Hc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:ao(e),transition:Wc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:ao(e),transition:Wc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:ao(e),transition:Wc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Wc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${ao(e)} 25%, transparent 25%), linear-gradient(315deg, ${ao(e)} 25%, transparent 25%)`},"&:after":{background:ao(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},_m={deps:{exec:de,getSpacingBasedOnRatio:Kt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Hc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Hc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},DS={round:"100%"},FI=_m;D();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},LS={deps:{depth:qc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var MS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Am={};K(Am,{AssetPicture:()=>BS});D();var BS={tag:"picture",children:e=>{let t=Ye(e);if(t)return si(t,e.alt)}};var Em={};K(Em,{Svg:()=>NS});var NS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Om={};K(Om,{Video:()=>zS});D();var zS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Tm={};K(Tm,{Audio:()=>VS});D();var VS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Rm={};K(Rm,{B:()=>ak,Caption:()=>JS,Data:()=>ck,Footnote:()=>ik,H1:()=>HS,H2:()=>qS,H3:()=>GS,H4:()=>KS,H5:()=>XS,H6:()=>YS,Headline:()=>ok,I:()=>lk,Italic:()=>rk,P:()=>ZS,Span:()=>WS,Strong:()=>QS,Subhead:()=>sk,Text:()=>US,Title:()=>nk,U:()=>ek,Underline:()=>tk});var US={},WS={tag:"span"},HS={tag:"h1"},qS={tag:"h2"},GS={tag:"h3"},KS={tag:"h4"},XS={tag:"h5"},YS={tag:"h6"},ZS={tag:"p"},JS={tag:"caption"},QS={tag:"strong",fontWeight:"700"},ek={tag:"u"},tk={tag:"u"},rk={tag:"i"},nk={},ok={tag:"h6",fontSize:"B",fontWeight:500},sk={tag:"span",fontSize:"Z1"},ik={tag:"span",fontSize:"Z"},ak={tag:"b"},lk={tag:"i"},ck={tag:"data"};var Pm={};K(Pm,{Box:()=>Gc,Br:()=>fk,Hr:()=>uk,Li:()=>dk,Ol:()=>hk,Ul:()=>pk});var DI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=tt(t,e,{unpack:!1});r.__class=n},Gc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:DI},uk={tag:"hr",margin:"C1 0"},fk={tag:"br"},dk={tag:"li"},pk={tag:"ul",childExtends:{extends:"Li"}},hk={tag:"ol",childExtends:{extends:"Li"}};var $m={};K($m,{Hgroup:()=>mk,HgroupButton:()=>bk,HgroupRows:()=>yk});var gk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},mk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:gk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:gk,margin:"0",color:"paragraph"}},yk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},bk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Im={};K(Im,{Input:()=>vk});var vk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var jm={};K(jm,{NumberInput:()=>xk});var xk={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Fm={};K(Fm,{Checkbox:()=>wk,CheckboxHgroup:()=>_k});var wk={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},_k={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Dm={};K(Dm,{Radio:()=>Sk,RadioHgroup:()=>kk});var Sk={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},kk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Lm={};K(Lm,{Toggle:()=>Ck,ToggleHgroup:()=>Ak});var Ck={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},Ak={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Mm={};K(Mm,{Textarea:()=>Ek,TextareaWithButton:()=>Ok});var Ek={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},Ok={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Bm={};K(Bm,{FileIcon:()=>Pk,Icon:()=>Tk,IconText:()=>Rk});var Tk={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:j}=k&&k.utils,_=u(v,w),q=j(_).split(/([a-z])([A-Z])/g),te=q[1]?q[0]:_.split(".")[0].split(" ")[0],F=E&&E[te];if(F){let I=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=F[I]||F[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Rk={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Pk={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Km={};K(Km,{A:()=>Fk,Link:()=>qm,RouteLink:()=>Dk,RouterLink:()=>Gm});var Hm={};K(Hm,{default:()=>zI,getActiveRoute:()=>Wm,lastLevel:()=>Xc,lastPathname:()=>Kc,matchRoute:()=>zm,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,router:()=>Xt,runGuards:()=>Um});D();var Ik=/^:(.+)/,jk=/^\*$/,$k=new Map,Nm=e=>{let t=$k.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Ik);a?n.push({index:i,name:a[1]}):jk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return $k.set(e,s),s},zm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Nm(c),d=LI(o,u);d>a&&(a=d,i=c,l=MI(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},LI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(Ik.test(r[i]))o+=1;else if(jk.test(r[i]))o+=.5;else return-1;return o},MI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Vm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},Um=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Wm=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Kc,Xc=0,BI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,NI={level:Xc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Xt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||C,i=o?.context?.document||pe,a={...NI,...o.context.routerOptions,...n};Xc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=BI(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=Vm(h),y=o.node,b=g&&g!==s.location.hash.slice(1),x=p!==Kc;Kc=p;let v,w,k,E;if(a.useParamsMatching){let _=zm(p,o.routes,a.level);v=_.key,w=_.routePath,k=_.content,E=_.params}else{v=Wm(a.level,p),w=v;let _=o.routes;k=_?_[v||"/"]||_["/*"]:null,E={}}let j=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:v,params:E,query:m,hash:g,element:o,state:r},$=await Um(a.guards,_);if($===!1)return;if(typeof $=="string")return Xt($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(x||!b){let _={route:v,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let F in $){let I=$[F];F==="__ref"||F==="props"||F==="node"||F==="parent"||F==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[F]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(F){console.error("[smbls/router] failed to render route content",p,F)}}if(a.scrollToTop&&j?.scrollTo&&j.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&j?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);j.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Sr("routeChanged",o,a)},zI=Xt;var VI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},qm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Ir(e,e.href)||Ir(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:VI},Fk={extends:"Link"},Gm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Dk={extends:[qm,Gm]};var Xm={};K(Xm,{Select:()=>Lk});var Lk={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Ym={};K(Ym,{Button:()=>Mk,ButtonSet:()=>Vk,CircleButton:()=>Nk,IconButton:()=>Uk,KangorooButton:()=>zk,SquareButton:()=>Bk});var Mk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},Bk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Nk={extends:"SquareButton",round:"C"},zk={extends:"Button",childExtends:"IconText"},Vk={tag:"nav",display:"flex",childExtends:"SquareButton"},Uk={extends:["SquareButton","ClickableItem"],round:"Z"};var Zm={};K(Zm,{Dialog:()=>Wk,DialogFooter:()=>qk,DialogHeader:()=>Hk});var Wk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Hk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},qk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Jm={};K(Jm,{Tooltip:()=>Gk,TooltipHidden:()=>Kk,TooltipParent:()=>Xk});D();var Gk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>qe(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},Kk={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Xk={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Qm={};K(Qm,{Avatar:()=>Yk});var Yk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var ey={};K(ey,{Range:()=>Zk});var Zk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ii("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ii("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ty={};K(ty,{Dropdown:()=>Jk,DropdownList:()=>Qk,DropdownParent:()=>e1,DropdownParentFocus:()=>t1,DropdownSiblingFocus:()=>r1});var Jk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Qk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},e1={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},t1={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},r1={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ry={};K(ry,{Notification:()=>n1});var n1={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var lo=Object.assign({},ym,bm,vm,xm,wm,Cm,Am,Em,Sm,Om,Tm,km,Rm,Pm,$m,Im,jm,Fm,Dm,Lm,Mm,Bm,Km,Xm,Ym,Zm,Jm,Qm,ey,ty,ry);function Yc(e){if(e==null)return 0;if(typeof e!="object")return o1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Yc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^o1(r[n]))*16777619,t=(t^Yc(e[r[n]]))*16777619;return t>>>0}function o1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Zc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Zc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Zc(e[s],t[s]))return!1}return!0}function ny(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ny(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function oy(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?oy(e[n],o,r):e[n]=o}return e}function Dr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function uo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(t)}function s1(e){return e.split(`
|
|
67
|
+
)`};var $I={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},II={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},FI={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},dS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...$I,...II,...FI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var pS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var hS={ratio:1.618,subSequence:!0};var gS={SourceSans:[{url:""}]},mS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var yS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var bS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var xS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ps={version:"0.0.1",color:uS,gradient:fS,theme:dS,typography:pS,spacing:hS,font:gS,fontFamily:mS,timing:xS,icons:yS,media:bS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};G(uo,{A:()=>Ik,AssetPicture:()=>LS,Audio:()=>BS,Avatar:()=>Kk,B:()=>ik,Block:()=>vS,Box:()=>qc,Br:()=>ck,Button:()=>Dk,ButtonSet:()=>Bk,COMPONENTS:()=>co,Caption:()=>YS,Checkbox:()=>xk,CheckboxHgroup:()=>vk,Circle:()=>FS,CircleButton:()=>Mk,Clickable:()=>PS,Data:()=>ak,Dialog:()=>zk,DialogFooter:()=>Wk,DialogHeader:()=>Uk,Dropdown:()=>Yk,DropdownList:()=>Zk,DropdownParent:()=>Jk,DropdownParentFocus:()=>Qk,DropdownSiblingFocus:()=>e1,FileIcon:()=>Tk,Flex:()=>wS,Focusable:()=>$S,FocusableComponent:()=>IS,Footnote:()=>ok,Form:()=>OS,Grid:()=>kS,Gutter:()=>AS,H1:()=>US,H2:()=>WS,H3:()=>HS,H4:()=>qS,H5:()=>GS,H6:()=>KS,Headline:()=>rk,Hgroup:()=>hk,HgroupButton:()=>mk,HgroupRows:()=>gk,Hoverable:()=>RS,Hr:()=>lk,I:()=>sk,Icon:()=>Ek,IconButton:()=>Vk,IconText:()=>Ok,Iframe:()=>TS,Img:()=>ES,Inline:()=>_S,InlineFlex:()=>SS,InlineGrid:()=>CS,Input:()=>yk,Italic:()=>ek,KangorooButton:()=>Nk,Li:()=>uk,Link:()=>Hm,Notification:()=>t1,NumberInput:()=>bk,Ol:()=>dk,P:()=>XS,Picture:()=>DS,Radio:()=>_k,RadioHgroup:()=>wk,Range:()=>Xk,RouteLink:()=>Fk,RouterLink:()=>qm,SHAPES:()=>Wc,Select:()=>jk,Shape:()=>_m,Span:()=>zS,SquareButton:()=>Lk,Strong:()=>ZS,Subhead:()=>nk,Svg:()=>MS,Text:()=>VS,Textarea:()=>Ck,TextareaWithButton:()=>Ak,Theme:()=>jS,Title:()=>tk,Toggle:()=>Sk,ToggleHgroup:()=>kk,Tooltip:()=>Hk,TooltipHidden:()=>qk,TooltipParent:()=>Gk,U:()=>JS,Ul:()=>fk,Underline:()=>QS,Video:()=>NS,depth:()=>Hc,getSystemGlobalTheme:()=>$s});var mm={};G(mm,{Block:()=>vS,Flex:()=>wS,Grid:()=>kS,Gutter:()=>AS,Inline:()=>_S,InlineFlex:()=>SS,InlineGrid:()=>CS});var vS={display:"block"},_S={display:"inline"},wS={display:"flex"},SS={display:"inline-flex"},kS={display:"grid"},CS={display:"inline-grid"},AS={boxSize:"C1"};var ym={};G(ym,{Img:()=>ES});M();var ES={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Xe(e);return t&&t.src||e.src},srcset:e=>{let t=Xe(e);return(t?ss(t):"")||e.srcset}}};var bm={};G(bm,{Form:()=>OS});var OS={tag:"form"};var xm={};G(xm,{Iframe:()=>TS});var TS={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var vm={};G(vm,{Clickable:()=>PS,Focusable:()=>$S,FocusableComponent:()=>IS,Hoverable:()=>RS});var jI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},RS={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},PS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},$S={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},IS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:jI};var km={};G(km,{Picture:()=>DS});var Sm={};G(Sm,{Theme:()=>jS,getSystemGlobalTheme:()=>$s});var wm={};G(wm,{Circle:()=>FS,SHAPES:()=>Wc,Shape:()=>_m,default:()=>DI,depth:()=>Hc});M();var gt=T(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${gt.unit.default} 4${gt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${gt.unit.default} 6${gt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${gt.unit.default} 10${gt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${gt.unit.default} 16${gt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${gt.unit.default} 26${gt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${gt.unit.default} 42${gt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Uc=e=>{let t=Os.transition(e.transition,e);return t&&t.transition},Wc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:lo(e),transition:Uc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:lo(e),transition:Uc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:lo(e),transition:Uc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Uc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},_m={deps:{exec:de,getSpacingBasedOnRatio:Kt,getMediaColor:je},classlist:{shape:e=>e.deps.exec(Wc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Wc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},FS={round:"100%"},DI=_m;M();var $s=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},jS={deps:{depth:Hc},classlist:{depth:e=>!Pe(e.depth)&&e.deps.depth[e.depth]}};var DS={deps:{getSystemGlobalTheme:$s},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:$s},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Cm={};G(Cm,{AssetPicture:()=>LS});M();var LS={tag:"picture",children:e=>{let t=Xe(e);if(t)return as(t,e.alt)}};var Am={};G(Am,{Svg:()=>MS});var MS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}};var Em={};G(Em,{Video:()=>NS});M();var NS={tag:"video",controls:!0,attr:{src:e=>{let t=Xe(e);return t&&t.src||e.src}},children:e=>{let t=Xe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Om={};G(Om,{Audio:()=>BS});M();var BS={tag:"audio",controls:!0,attr:{src:e=>{let t=Xe(e);return t&&t.src||e.src}},children:e=>{let t=Xe(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Tm={};G(Tm,{B:()=>ik,Caption:()=>YS,Data:()=>ak,Footnote:()=>ok,H1:()=>US,H2:()=>WS,H3:()=>HS,H4:()=>qS,H5:()=>GS,H6:()=>KS,Headline:()=>rk,I:()=>sk,Italic:()=>ek,P:()=>XS,Span:()=>zS,Strong:()=>ZS,Subhead:()=>nk,Text:()=>VS,Title:()=>tk,U:()=>JS,Underline:()=>QS});var VS={},zS={tag:"span"},US={tag:"h1"},WS={tag:"h2"},HS={tag:"h3"},qS={tag:"h4"},GS={tag:"h5"},KS={tag:"h6"},XS={tag:"p"},YS={tag:"caption"},ZS={tag:"strong",fontWeight:"700"},JS={tag:"u"},QS={tag:"u"},ek={tag:"i"},tk={},rk={tag:"h6",fontSize:"B",fontWeight:500},nk={tag:"span",fontSize:"Z1"},ok={tag:"span",fontSize:"Z"},ik={tag:"b"},sk={tag:"i"},ak={tag:"data"};var Rm={};G(Rm,{Box:()=>qc,Br:()=>ck,Hr:()=>lk,Li:()=>uk,Ol:()=>dk,Ul:()=>fk});var LI=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=et(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:LI},lk={tag:"hr",margin:"C1 0"},ck={tag:"br"},uk={tag:"li"},fk={tag:"ul",childExtends:{extends:"Li"}},dk={tag:"ol",childExtends:{extends:"Li"}};var Pm={};G(Pm,{Hgroup:()=>hk,HgroupButton:()=>mk,HgroupRows:()=>gk});var pk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},hk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:pk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:pk,margin:"0",color:"paragraph"}},gk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},mk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var $m={};G($m,{Input:()=>yk});var yk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Im={};G(Im,{NumberInput:()=>bk});var bk={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Fm={};G(Fm,{Checkbox:()=>xk,CheckboxHgroup:()=>vk});var xk={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},vk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var jm={};G(jm,{Radio:()=>_k,RadioHgroup:()=>wk});var _k={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},wk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Dm={};G(Dm,{Toggle:()=>Sk,ToggleHgroup:()=>kk});var Sk={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},kk={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Lm={};G(Lm,{Textarea:()=>Ck,TextareaWithButton:()=>Ak});var Ck={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},Ak={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Mm={};G(Mm,{FileIcon:()=>Tk,Icon:()=>Ek,IconText:()=>Ok});var Ek={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:j}=k&&k.utils,w=u(x,_),H=j(w).split(/([a-z])([A-Z])/g),te=H[1]?H[0]:w.split(".")[0].split(" ")[0],D=E&&E[te];if(D){let F=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=D[F]||D[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Ok={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Tk={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Gm={};G(Gm,{A:()=>Ik,Link:()=>Hm,RouteLink:()=>Fk,RouterLink:()=>qm});var Wm={};G(Wm,{default:()=>zI,getActiveRoute:()=>Um,lastLevel:()=>Kc,lastPathname:()=>Gc,matchRoute:()=>Bm,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,router:()=>Xt,runGuards:()=>zm});M();var Pk=/^:(.+)/,$k=/^\*$/,Rk=new Map,Nm=e=>{let t=Rk.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let s=0;s<r.length;s++){let a=r[s].match(Pk);a?n.push({index:s,name:a[1]}):$k.test(r[s])&&(o=!0)}let i={segments:r,params:n,hasWildcard:o,pattern:e};return Rk.set(e,i),i},Bm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),i="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:i};let s=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Nm(c),d=MI(o,u);d>a&&(a=d,s=c,l=NI(o,u))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:l,routePath:i}},MI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,i=Math.min(r.length,e.length);for(let s=0;s<i;s++)if(r[s]===e[s])o+=3;else if(Pk.test(r[s]))o+=1;else if($k.test(r[s]))o+=.5;else return-1;return o},NI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Vm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},zm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Um=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Gc,Kc=0,BI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,VI={level:Kc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Xt=async(e,t,r={},n={})=>{let o=t||void 0,i=o?.context?.window||C,s=o?.context?.document||pe,a={...VI,...o.context.routerOptions,...n};Kc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";e=BI(e);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=Vm(h),y=o.node,b=g&&g!==i.location.hash.slice(1),v=p!==Gc;Gc=p;let x,_,k,E;if(a.useParamsMatching){let w=Bm(p,o.routes,a.level);x=w.key,_=w.routePath,k=w.content,E=w.params}else{x=Um(a.level,p),_=x;let w=o.routes;k=w?w[x||"/"]||w["/*"]:null,E={}}let j=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},I=await zm(a.guards,w);if(I===!1)return;if(typeof I=="string")return Xt(I,t,r,{...n,guards:[]})}if(a.pushState)try{i.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let I=o.__ref?.origin?.content,H={};if(I)for(let D in I){let F=I[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="object"&&F!==null&&!F.node&&!F.__ref)&&(H[D]=F)}let te={...H,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(D){console.error("[smbls/router] failed to render route content",p,D)}}if(a.scrollToTop&&j?.scrollTo&&j.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=s.getElementById(g);if(w&&j?.scrollTo){let I=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);j.scrollTo({...a.scrollToOptions||{},top:I,left:0})}}Sr("routeChanged",o,a)},zI=Xt;var UI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Hm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Ir(e,e.href)||Ir(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:UI},Ik={extends:"Link"},qm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Xt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},Fk={extends:[Hm,qm]};var Km={};G(Km,{Select:()=>jk});var jk={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Xm={};G(Xm,{Button:()=>Dk,ButtonSet:()=>Bk,CircleButton:()=>Mk,IconButton:()=>Vk,KangorooButton:()=>Nk,SquareButton:()=>Lk});var Dk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},Lk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Mk={extends:"SquareButton",round:"C"},Nk={extends:"Button",childExtends:"IconText"},Bk={tag:"nav",display:"flex",childExtends:"SquareButton"},Vk={extends:["SquareButton","ClickableItem"],round:"Z"};var Ym={};G(Ym,{Dialog:()=>zk,DialogFooter:()=>Wk,DialogHeader:()=>Uk});var zk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Uk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Wk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Zm={};G(Zm,{Tooltip:()=>Hk,TooltipHidden:()=>qk,TooltipParent:()=>Gk});M();var Hk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>He(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},qk={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Gk={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Jm={};G(Jm,{Avatar:()=>Kk});var Kk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Qm={};G(Qm,{Range:()=>Xk});var Xk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ls("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ls("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ey={};G(ey,{Dropdown:()=>Yk,DropdownList:()=>Zk,DropdownParent:()=>Jk,DropdownParentFocus:()=>Qk,DropdownSiblingFocus:()=>e1});var Yk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Zk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Jk={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Qk={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},e1={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ty={};G(ty,{Notification:()=>t1});var t1={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},mm,ym,bm,xm,vm,km,Cm,Am,wm,Em,Om,Sm,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,Mm,Gm,Km,Xm,Ym,Zm,Jm,Qm,ey,ty);function Xc(e){if(e==null)return 0;if(typeof e!="object")return r1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^r1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function r1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let i=r[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!Yc(e[i],t[i]))return!1}return!0}function ry(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let i=ry(e[o],t[o]);n[o]=i,i!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ny(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ny(e[n],o,r):e[n]=o}return e}function Dr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Is(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Dr(t)}function n1(e){return e.split(`
|
|
68
68
|
`).map(Dr).join(`
|
|
69
|
-
`)}var
|
|
70
|
-
${
|
|
71
|
-
`)}function
|
|
72
|
-
${i}`}var sy=null;function Qc(e){sy=e}var Pt={structuralHash:Yc,deepEqual:Zc,mergeStructural:ny,overwriteDeep:oy,shortHash:Dr,toKebab:uo,sanitizeValue:$i,batchShortHash:s1,atomicCssClass:a1,batchAtomicCss:c1,compoundCssClass:u1},f1=!1,Jc=null;function d1(e){return Jc||(Jc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Pt.structuralHash=t.structuralHash),t.deepEqual&&(Pt.deepEqual=t.deepEqual),t.mergeStructural&&(Pt.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Pt.overwriteDeep=t.overwriteDeep),t.shortHash&&(Pt.shortHash=t.shortHash),t.toKebab&&(Pt.toKebab=t.toKebab),t.sanitizeValue&&(Pt.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Pt.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Pt.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Pt.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Pt.compoundCssClass=t.compoundCssClass),f1=!0,sy&&t.batchAtomicCss&&sy({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Jc)}function p1(){return f1}D();var Ii={};K(Ii,{CDN_PROVIDERS:()=>Ct,DOMQL_EVENTS:()=>sp,DOMQ_PROPERTIES:()=>vr,ENV:()=>wp,HTML_TAGS:()=>qn,METHODS:()=>Nn,METHODS_EXL:()=>is,NODE_ENV:()=>St,OPTIONS:()=>Ts,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ss,PROPS_METHODS:()=>xr,STATE_METHODS:()=>Qr,STATE_PROPERTIES:()=>op,SVG_TAGS:()=>Bx,TYPES:()=>Jo,UNIVERSAL_RESERVED_KEYS:()=>Jl,addCaching:()=>Dl,addContext:()=>Fl,addExtend:()=>qp,addExtends:()=>Xe,addItemAfterEveryElement:()=>Hd,addProtoToArray:()=>ts,addRef:()=>$l,applyCSS:()=>ay,applyDependentState:()=>fh,applyEvent:()=>Vl,applyEventUpdate:()=>Ul,applyExtends:()=>Vx,applyProps:()=>Ss,arrayContainsOtherArray:()=>Md,arraysEqual:()=>Gd,arrayzeValue:()=>an,buildImgSrcset:()=>oi,buildSourcesAndImg:()=>si,cache:()=>mh,call:()=>jh,captureSnapshot:()=>Dh,checkForStateTypes:()=>ah,checkIfInherits:()=>zl,checkIfStringIsInArray:()=>Yd,clone:()=>ap,cloneAndMergeArrayExtend:()=>gs,cloneFunction:()=>Rp,concatAddExtends:()=>Up,copyJavaScriptToClipboard:()=>tg,copyStringToClipboard:()=>eg,createBasedOnType:()=>Pl,createElement:()=>ih,createElementExtends:()=>vl,createExtends:()=>ys,createExtendsFromKeys:()=>Gn,createExtendsStack:()=>Sl,createIfConditionFlag:()=>Pp,createInheritedState:()=>lh,createKey:()=>ps,createNestedObject:()=>hp,createNestedObjectByKeyPath:()=>uh,createObjectWithoutPrototype:()=>fl,createParent:()=>Il,createPath:()=>jl,createProps:()=>ks,createPropsStack:()=>Tl,createRoot:()=>sh,createScope:()=>ph,createSnapshotId:()=>ds,customDecodeURIComponent:()=>np,customEncodeURIComponent:()=>rp,cutArrayAfterValue:()=>Ud,cutArrayBeforeValue:()=>Vd,debounce:()=>hs,debounceOnContext:()=>Ep,decodeNewlines:()=>tp,deepClone:()=>ge,deepContains:()=>dp,deepDefaults:()=>ei,deepDestringifyFunctions:()=>Ut,deepExtend:()=>bl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>as,defineSetter:()=>$h,destringifyGlobalScope:()=>cs,detectHeightOnInit:()=>zh,detectInfiniteLoop:()=>bp,document:()=>pe,encodeNewlines:()=>ep,error:()=>sn,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Wp,extendStackRegistry:()=>bs,extractArrayExtend:()=>xs,fetchLibraryData:()=>tc,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Kd,filterArraysFast:()=>Xd,finalizeExtends:()=>kl,findClosestNumber:()=>ec,findClosestNumberInFactory:()=>Jh,findInheritedState:()=>Nl,findKeyPosition:()=>Jd,flattenExtend:()=>Kn,formatDate:()=>Nh,generateHash:()=>gl,generateKey:()=>fs,generateMetaTags:()=>Yh,get:()=>Th,getActiveRoute:()=>Wm,getCDNUrl:()=>At,getCapitalCaseKeys:()=>Xp,getCdnProviderFromConfig:()=>Zn,getChildStateInKey:()=>Bl,getChildren:()=>Ns,getContext:()=>Gs,getCookie:()=>Dp,getDB:()=>Js,getEmotionStylesheet:()=>sg,getExtendsInElement:()=>Gp,getExtendsStack:()=>ms,getExtendsStackRegistry:()=>yl,getFrequencyInArray:()=>Bd,getHashedExtend:()=>vs,getImportMapScript:()=>Bh,getInObjectByPath:()=>yp,getLocalStorage:()=>Mp,getNev:()=>Cp,getPageMetadata:()=>Zh,getParentStateInKey:()=>Ml,getPath:()=>zs,getQuery:()=>Qs,getRef:()=>Ph,getRoot:()=>Ws,getRootContext:()=>qs,getRootData:()=>Hs,getRootState:()=>Us,getRootStateInKey:()=>Ll,getSpreadChildren:()=>Yp,global:()=>Fd,hasFunction:()=>Vn,hasHandlerPlugin:()=>Un,hasOwnProperty:()=>cp,inheritChildExtends:()=>wl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Cs,inheritRecursiveChildExtends:()=>_l,init:()=>fo,initProps:()=>rh,is:()=>Ge,isArray:()=>P,isBoolean:()=>il,isContextComponent:()=>Zp,isCyclic:()=>vp,isDOMNode:()=>He,isDate:()=>ll,isDefined:()=>qe,isDevelopment:()=>_r,isEmpty:()=>cl,isEmptyObject:()=>up,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Yo,isLocal:()=>kp,isMethod:()=>Fh,isMobile:()=>jp,isNode:()=>tr,isNot:()=>Ld,isNotProduction:()=>rn,isNull:()=>al,isNumber:()=>Vt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>Uh,isProduction:()=>wr,isStaging:()=>Sp,isState:()=>ch,isString:()=>A,isStringFunction:()=>Tp,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>$e,isUniversallyReservedKey:()=>Lh,isValidHtmlTag:()=>Np,joinArrays:()=>Ln,jointStacks:()=>Hp,keys:()=>Yl,lastLevel:()=>Xc,lastPathname:()=>Kc,loadCssFile:()=>Gh,loadJavascript:()=>Kh,loadJavascriptFile:()=>Wh,loadJavascriptFileEmbedSync:()=>qh,loadJavascriptFileSync:()=>Hh,loadRemoteCSS:()=>Xh,loadRemoteScript:()=>Jn,log:()=>Ih,logGroupIf:()=>Ip,logIf:()=>$p,lookdown:()=>Eh,lookdownAll:()=>Oh,lookup:()=>Ah,lowercaseFirstLetter:()=>Jr,makeObjectWithoutPrototype:()=>fp,map:()=>ip,mapStringsWithContextComponents:()=>ws,matchRoute:()=>zm,matchesComponentNaming:()=>Ht,memoize:()=>Op,merge:()=>ye,mergeSharedLibraries:()=>ti,nextElement:()=>Xs,normalizeLibraryKey:()=>Qn,objectToString:()=>ls,objectizeStringProperty:()=>_s,overwrite:()=>us,overwriteDeep:()=>Ke,overwriteShallow:()=>tn,overwriteState:()=>dh,parse:()=>Zl,parseDeep:()=>Ms,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,pickupElementFromProps:()=>El,pickupPropsFromElement:()=>Al,previousElement:()=>Ys,propExists:()=>eh,propertizeElement:()=>Ol,propertizeUpdate:()=>Qp,reinit:()=>iy,remove:()=>bw,removeChars:()=>rg,removeCookie:()=>Lp,removeDuplicateProps:()=>Es,removeDuplicatesInArray:()=>Mn,removeFromArray:()=>Nd,removeFromObject:()=>pp,removeNestedKeyByPath:()=>gp,removeValueFromArray:()=>es,removeValueFromArrayAll:()=>Wd,reorderArrayByValues:()=>qd,replaceLiteralsWithObjectFields:()=>Zr,replaceOctalEscapeSequences:()=>Qd,resolveAsset:()=>Ye,resolveHandler:()=>Wn,resolveSharedLibraries:()=>Qh,returnValueAsText:()=>Rl,router:()=>Xt,runGuards:()=>Um,runPluginHook:()=>Hn,scratchSystem:()=>gi,scratchUtils:()=>dn,self:()=>Dd,set:()=>no,setActiveRootState:()=>Vs,setCookie:()=>Fp,setHashedExtend:()=>ml,setInObjectByPath:()=>mp,setLocalStorage:()=>Bp,setNodeStyles:()=>Xl,setProps:()=>Rh,setPropsPrototype:()=>As,spotByPath:()=>Bs,srcsetFor:()=>eo,stringIncludesAny:()=>ns,stringToObject:()=>lp,swapItemsInArray:()=>zd,syncProps:()=>Os,toCamelCase:()=>ri,toDashCase:()=>ni,toDescriptionCase:()=>og,toTitleCase:()=>ng,toggleFullscreen:()=>Mh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>hh,trimStringFromSymbols:()=>Zd,unstackArrayOfObjects:()=>Qo,update:()=>th,updateProps:()=>nh,variables:()=>Zs,verbose:()=>Yn,warn:()=>Ks,window:()=>C});D();D();var GI=T(),h1=(e=GI,t)=>{let r=S(t.localFile)?t.localFile:{},n=ge(r.designSystem||{});return fe(e,n)},KI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},fo=(e,t=KI)=>{let r=h1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=no({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=nc(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&_e(a),c&&(_e({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];_e(m)}l&&_e(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];_e(m)}return(f||d)&&Pc(i.svg,{document:t.document}),(h||p)&&Ic(i.icons,{document:t.document}),i},eu={},iy=(e,t=eu)=>{let r=h1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=no({verbose:!1,...r});if(!t.preventInject){if(_e({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];_e(i)}_e(s.reset)}return s},ay=(e,t=eu)=>{_e(e)},XI=(e,t=eu)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(_e({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let s in e.CSS_MEDIA_VARS)s.startsWith("@media")?o[s]={[n]:e.CSS_MEDIA_VARS[s]}:o[s]=e.CSS_MEDIA_VARS[s];_e(o)}};var YI=(e,t=eu)=>{};D();var g1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,ly={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},ji=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},m1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ly:t.router=ye(t.router||{},ly);let r=t.router,n=async(s,i)=>{let a=s.context?.window||C;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=g1(l);let d=l+c+u,f=s;if(r.customRouterElement){let p=ji(s,r.customRouterElement);p&&(f=p,s.routes&&(f.routes=s.routes))}f.routes&&await Xt(d,f,{},{initialRender:!0,pushState:!1})},o=!$e(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),ZI(t,r),r},cy=(e,t)=>{if(t.router===!1)return;let r=t.router||ly;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Xt,o=t.window||C,s=async i=>{let{pathname:a,search:l,hash:c}=o.location;a=g1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=ji(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",s))},ZI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};D();var uy=C&&C.location?C.location.host.includes("dev."):_r(),y1=uy?"http://localhost:8080/get":"https://api.symbols.app/get",JI={endpoint:y1},b1=async(e,t=JI)=>{let r=t.endpoint||y1,n=t.serviceRoute?P(t.serviceRoute)?t.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(s){if(O(t.onError))return t.onError(s);console.error(s)}},QI=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await b1(e,r),o=uy||t.isDevelopment?Ut(n):Ut(n.releases[0]);r.serviceRoute?P(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ke(t[s],o[s.toLowerCase()])}):Ke(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Ke(t[s],o[s.toLowerCase()])})}return t},ej=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await b1(e,n),s=uy||t.isDevelopment?Ut(o):Ut(o.releases[0]);r(s)}},v1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await QI(e,t)}catch(r){console.error(r)}},x1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&ej(t,r,n||(o=>{let s=o.designSystem;S(s)&&r.utils.init(s),S(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Fi=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{xn(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};D();var tj={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},rj=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},tu=(e,t,r)=>{if(!e)return{};let n=O(e)?de(e,t,r):{...e};if(!S(n))return{};for(let o in n){let s=n[o];O(s)&&(s=de(s,t,r)),A(s)&&s.includes("{{")&&t?.call&&(s=t.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var nj=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},ru=(e,t)=>{if(!(!S(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=tj[r];if(!o)continue;let s=rj(o),i=t.querySelector(s)||nj(o,t);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var w1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=tu(t,e,e.state);ru(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=tu(t,e,e.state);ru(n,r)}};on();var _1=(e,t,r,n)=>{e&&Ds(e,t,r,n)},S1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=tu(e,t,r);ru(o,n)},k1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},po={routes:e=>e,metadata:S1,fetch:_1,$router:k1},C1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=S1),e.fetch!==!1&&(t.fetch=_1),e.router!==!1&&(t.$router=k1),t};var fy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},nu={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},ou={...fy,router:nu},oj={state:{},pages:{},components:{},router:nu,define:po},Lr=oj;D();D();var A1=(e,t)=>re(e.extends)?e.extends:[];D();var R1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},E1=(e="smbls")=>{let t={};for(let r in lo)Object.prototype.hasOwnProperty.call(lo,r)&&(Ht(r)?t[`smbls.${r}`]=lo[r]:t[r]=lo[r]);return t},P1=e=>e.components?{...E1(),...e.components}:E1(),$1=e=>({...Ii,...Hm,...dn,...e.utils,...e.snippets,...e.functions}),I1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),O1={},j1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Er[s]||Zn(i)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=_r()&&n?`?${Math.random()}`:"",d=At(l,c,o)+u;try{if(O1[l])continue;O1[l]=!0,await Promise.race([Jn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=At(l,c,"symbols")+u;await Promise.race([Jn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},F1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Zn(t.symbolsConfig)||"esmsh",o=async i=>async(a,l)=>{let u=(i.window||window).packages[a];return typeof u=="function"?u():u},s=async i=>async(a,l=n)=>{let{dependenciesOnDemand:c}=i,u=i.document||document,d=i.window||window;if(!d.packages[a]){let f=_r()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=At(a,p,l)+f;try{await i.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=At(a,p,"symbols")+f;await i.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=At(a,"latest",l)+f;try{await i.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=At(a,"latest","symbols")+f;await i.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ye(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await s(t),r.requireOnDemand=t.utils.requireOnDemand)},sj=/\s+/g,D1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,ij=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${D1(o,t)}`)}return r},aj=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=ij(e,t));let o=e.replace(sj," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},lj=()=>(e,t,r)=>{let n=D1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}L1()(t.classlist,t,t.state,!0)},L1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:s,__classNames:i}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(i.classProps=t.class),t.attr?.class&&(i.class=t.attr.class);for(let a in s){let l=s[a];if(!l){delete i[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=$r(l),i[a]=c}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];t.node&&aj(i,t,t.node)}},cj=()=>({style:lj(),classlist:L1()}),uj=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],T1=!1,M1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||cj(),s=t.designSystem?fe(ge(t.designSystem),Ri):ge(Ri),i={};for(let p of uj)t[p]!==void 0&&(i[p]=t[p]);let a,l=T1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=T(e)||T(),a&&(a.document=r),a?.CSS_VARS){Oe(a);try{if(_e({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];_e(p)}}finally{we()}}}else if(l){let p=bg(e,s,{cleanBase:!0});for(let g in i)p[g]=i[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Oe(p);try{a=fo(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...ou,...i,...n})}finally{we()}}else{let p=T();p&&(p.document=r),a=fo(s,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...ou,...i,...n}),a&&a!==p&&(a.document=r),T1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Oe(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&_e(`@font-face { ${m} }`)}}finally{we()}}return[a,o]},B1=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i=="object")for(let l in i)r[l]=i[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,ge(r)},N1=(e,t)=>{S(e.routes)&&S(t.pages)&&ye(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},z1=e=>{ti(e,e.sharedLibraries)};D();var U1="smbls_lang",fj="smbls_t_",dj="smbls_tv_",ho={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Di={};function Li(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function iu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var su=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},V1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=su(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function au(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),s=this?.state;if(s){let c=V1(s,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=su(c,e);if(u!==void 0)return u}}let a=(s?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=su(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(s){let c=V1(s,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=su(c,e);if(u!==void 0)return u}}return e}async function lu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||fj,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):dj);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=ho.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let i=(r.storagePrefix||"smbls")+":"+e;if(Di[i])return Di[i];let a=this;return Di[i]=(async()=>{try{let l=r.fetch,c=parseInt(ho.get(s+e),10)||0,u,d,f;if(O(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(S(l)){let h=a.getDB||(()=>t.fetch),g=O(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let x=b.data;if(!x||!x.changed)return;u=x.translations||{},d=x.version||0,f=!0}else return;if(!f||!u)return;ho.set(o+e,JSON.stringify(u)),d&&ho.set(s+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Di[i]}})(),Di[i]}async function cu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||U1;ho.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let s=r?.translations?.[e],i={lang:e};if(s&&typeof s=="object")for(let l in s){let c=s[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(i[l]=c)}if(n.update&&n.update(i),s&&typeof s=="object")for(let l in s){let c=s[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&s){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function uu(e,t,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[t]&&(s.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&S(o.fetch)){let i=this.getDB||(()=>n.fetch),a=O(i)?await i.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function dy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||U1,s=ho.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),t.fetch&&!(t.translations&&t.translations[s])&&await this.call("loadTranslations",s)}function fu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let s=e.lastIndexOf(".");if(s===-1)return o[e+n]??"";let i=e.substring(0,s).split("."),a=o;for(let l=0;l<i.length;l++){if(a==null)return"";a=a[i[l]]}return a==null?"":a[e.substring(s+1)+n]??""}catch{return""}}var du={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,dy.call(e))}};var Mi={polyglot:au,getLocalStateLang:fu,getActiveLang:Li,getLang:Li,setLang:cu,getLanguages:iu,loadTranslations:lu,upsertTranslation:uu};on();var pu={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},hu=e=>parseFloat(e.toFixed(4)),pj=(e,t,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=t,l=Math.abs(o),c=n+l+s,u=r!==void 0?r:c/i*e,d=u/e,f=c/i,p=(n-a+s/2)/i-(d-f)/2,h=(l+s/2)/i-(d-f)/2;return{fontSize:`${hu(e/16)}rem`,lineHeight:`${hu(u)}px`,capHeightTrim:`${hu(-p)}em`,baselineTrim:`${hu(-h)}em`}},hj=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(e).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},gj=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let s=n[e];if(s?.metrics)return s.metrics;let i=String(e).toLowerCase().replace(/['"]/g,"").trim();if(pu[i])return pu[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['"]/g,"").trim();if(pu[a])return pu[a]}}return null},W1=(e,t,r,n)=>{if(!e)return;let o=hj(t.fontSize,n);if(!o)return;let s=gj(t.fontFamily,n);if(!s)return;let i=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=pj(o,s,i),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},H1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Bi={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},yt=Object.create(null);for(let e in Bi)yt[Bi[e]]=e;var py=Object.create(null);for(let e in Bi){let t=Bi[e];if(py[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${py[t]}"`);py[t]=e}var Mr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Ni(e){return/^[A-Z]/.test(e)}function zi(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function mj(e){return e.trim().split(/\s+/).filter(Boolean)}function q1(e){return e.replace(/_/g," ")}function yj(e){if(!e||typeof e!="string")return{};let t={},r=mj(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=yt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=yt[n]||n;t[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=yt[s]||s;if(i.includes(",")){t[a]=i.split(",").map(q1);continue}t[a]=q1(i)}return t}function Vi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Vi(r):r});let t={};for(let r in e){let n=e[r];if(Ni(r)){t[r]=hy(n);continue}let o=yt[r]||r;if(zi(r)&&o===r){t[r]=hy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=hy(n)}return t}function hy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Vi(t):t}):typeof e=="object"?Vi(e):e}function Ui(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Ui(r):r});let t={};if(typeof e.in=="string"){let r=yj(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){t[r]=gy(n);continue}let o=yt[r]||r;if(zi(r)&&o===r){t[r]=gy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=gy(n)}return t}function gy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Ui(t):t}):typeof e=="object"?Ui(e):e}function bj(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function vj(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function G1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):bj(e)}function my(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=yt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=yt[n]||n;t[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=yt[s]||s,l=vj(i);if(l.length>1){t[a]=l.map(G1);continue}t[a]=G1(i)}return t}function Wi(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Wi(r):r});let t={};if(typeof e.in=="string"){let r=my(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Ni(r)){typeof n=="string"?t[r]=my(n):t[r]=yy(n);continue}let o=yt[r]||r;if(zi(r)&&o===r){typeof n=="string"?t[r]=my(n):t[r]=yy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=yy(n)}return t}function yy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Wi(t):t}):typeof e=="object"?Wi(e):e}var xj={shorten:Vi,stringify:Ui,stringifyFurther:Wi};function wj(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var _j=["components","pages","snippets"],gu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=xj[t===!0?"shorten":t];if(n){for(let o of _j)e[o]&&(e[o]=wj(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var Sj=0,kj=()=>`${Date.now().toString(36)}-${(Sj++).toString(36)}`,ae=(e,t,r={})=>({id:kj(),ts:Date.now(),type:e,level:t,...r}),Cj=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},go=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:Cj(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var mo=e=>e?.context?.analyze,Aj={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},Ej=(e,{category:t,type:r,level:n})=>o=>{let s=mo(o);!s||!s.shouldCapture(t)||s.emit(ae(r,n,{hook:e,element:go(o)}))},K1=e=>(t,r)=>{let n=mo(t);!n||!n.shouldCapture("state")||n.emit(ae("state","debug",{hook:e,element:go(t),changedKeys:r?.changedKeys||null}))},Hi={name:"analyze",error(e,t){let r=mo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(ae("error","error",{hook:t?.hook||"error",element:go(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=mo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(ae("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=mo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=mo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(ae("update","debug",{hook:"update",element:go(e),durationMs:r}))},beforeStateUpdate:K1("beforeStateUpdate"),stateUpdate:K1("stateUpdate")};for(let[e,t]of Object.entries(Aj))Hi[e]=Ej(e,t);D();var mu={error:0,warn:1,info:2,debug:3,trace:4};var by=(e,t)=>{let r=mu[e],n=mu[t];return r==null||n==null?!0:r<=n},yu=e=>mu[e]!=null?e:"warn";D();var bu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var Oj=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},Tj=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},vy=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(s=>vy(s,t,r,n+1));let o={};for(let s of Object.keys(e))if(Oj(s,t)||bu.test(s)){let a=Tj(e[s],r);a!==void 0&&(o[s]=a)}else o[s]=vy(e[s],t,r,n+1);return o},xy=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=vy(h,r,t,0);return{id:o,ts:s,type:i,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var X1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return s=>{if(!s)return s;let i=e.context?.routerOptions?.currentRoute||null,a=C,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:t,app:{id:o,build:n,route:i},meta:{ua:r,viewport:l}}}},Y1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},Z1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<e)return null;if(r.set(o,i),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},J1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},Q1={redact:e=>xy(e.config.redact||[],e.config.maskStrategy),enrich:e=>X1(e),summarize:()=>Y1(),dedupe:e=>Z1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>J1(e.config.sample||{})},Rj=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=Q1[e];return r?r(t):null}return null},wy=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(s=>s==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(Q1.redact(e));for(let s of r){let i=Rj(s,e);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let l=a(i);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}i=l}return i}};D();D();var vu=typeof C<"u"&&typeof C.document<"u",Pj=5e3,$j=50,Ij=3,jj=1500,Fj=1e3,eC=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",Dj=e=>{try{return JSON.stringify(e)}catch{return null}},Lj=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Mj=e=>{if(!e)return null;let t=String(e),r;return(r=t.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=t.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=t.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(t)&&/Safari\//.test(t)?(r=t.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=t.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},Bj=()=>{if(!vu)return null;try{let e=C.document?.documentElement?.getAttribute("data-theme")||null,t=typeof C.matchMedia=="function"?C.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:e||(t?"dark":t===!1?"light":null),forced:e||null,prefers:t==null?null:t?"dark":"light"}}catch{return null}},Nj=()=>{if(!vu)return null;let e=C.location,t=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:e?.href||null,path:e?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:t?.userAgent||null,browser:Mj(t?.userAgent),language:t?.language||null,languages:t?.languages||null,timezone:Lj(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:Bj()}},_y=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,s=e.tenantKey||e.tenant||null,i=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:eC,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:Pj,h=e.maxBatch||$j,g=e.maxRetries!=null?e.maxRetries:Ij,m=e.backoffMs||jj,y=e.queueLimit||Fj,b=e.sampleRate!=null?e.sampleRate:1,x=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),v=[],w=[],k=null,E=null,j=()=>{k||!v.length||(k=setTimeout(te,p))},_=I=>{if(E)return;let Q=m*Math.pow(2,Math.max(0,I-1));E=setTimeout(()=>{if(E=null,!w.length)return;let oe=w.shift();q(oe.envelope,oe.attempt)},Q)},$=I=>{let Q=u?zj(u):null,oe={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:l,page:Nj(),user:Q?.user||null,traits:Q?.traits||null,tags:Q?.tags||null,events:I};if(f)try{return f(oe)||null}catch{return oe}return oe},q=async(I,Q=1)=>{if(I)try{let oe=!0;if(r){let ie=await r(I);oe=ie!==!1&&ie?.ok!==!1}else oe=await Vj(t,I,{apiKey:n,getAuth:c});!oe&&Q<g&&(w.push({envelope:I,attempt:Q+1}),_(Q+1))}catch{Q<g&&(w.push({envelope:I,attempt:Q+1}),_(Q+1))}},te=(I=!1)=>{if(k&&(clearTimeout(k),k=null),!v.length)return;let Q=v;v=[];let oe=$(Q);if(oe){if(I&&vu&&navigator.sendBeacon&&t){let ie=Dj(oe);if(ie)try{navigator.sendBeacon(t,new C.Blob([ie],{type:"application/json"}));return}catch{}}q(oe)}};vu&&(C.addEventListener("pagehide",()=>te(!0),{passive:!0}),C.addEventListener("beforeunload",()=>te(!0),{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&te(!0)},{passive:!0}));let F=I=>{if(!I||b<1&&Math.random()>b)return;let Q={...I,log_type:d(I)};v.push(Q),v.length>y&&(v=v.slice(-y)),v.length>=h?te():j()};return F.flush=()=>te(!1),F.sessionId=x,F},zj=e=>{try{return e()}catch{return null}},Vj=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var Uj={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},Wj="\x1B[0m",xu=typeof C<"u"&&typeof C.document<"u",rC=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?r:s.level==="warn"?n:o,a=`[analyze:${s.type}]`;if(xu)i(a,s);else{let l=Uj[s.level]||"";i(`${l}${a}${Wj}`,s)}}},nC=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return e.__memory={push:i,snapshot:()=>{let a=new Array(s),l=(o-s+r)%r;for(let c=0;c<s;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,s=0}},i},oC=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=xu?new C.Blob([l],{type:"application/json"}):l;if(xu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};xu&&(C.addEventListener("pagehide",i,{passive:!0}),C.addEventListener("beforeunload",i,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},tC={console:rC,memory:nC,beacon:oC,remote:_y},Sy=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=tC[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=tC[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};D();var Hj=typeof C<"u"&&typeof C.document<"u",qj=new Set(["password","hidden"]),sC=(e,t)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=t?(r=i,e(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(i-r))))}},ky="__analyzeKeyPath",yo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[ky])return t[ky];let r=[],n=t,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";i={selector:`${a}${l}${c}`,key:null,path:null}}try{t[ky]=i}catch{}return i},Gj=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},Kj=e=>!!(!e||e.tagName==="INPUT"&&qj.has(e.type)||bu.test(e.name||"")||bu.test(e.id||"")||e.dataset?.analyze==="skip"),Cy=e=>{if(!Hj)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(s,i,a,l)=>{s.addEventListener(i,a,l),n.push(()=>s.removeEventListener(i,a,l))};if(t.errors&&(o(C,"error",s=>{e.emit(ae("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(C,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;e.emit(ae("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),t.pointer){o(C,"click",i=>{e.emit(ae("pointer","info",{hook:"click",target:yo(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:iC(i)}))},{passive:!0,capture:!0}),o(C,"dblclick",i=>{e.emit(ae("pointer","info",{hook:"dblclick",target:yo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",i=>{e.emit(ae("pointer","info",{hook:"contextmenu",target:yo(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=sC(i=>{e.emit(ae("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},r.pointermove);o(C,"pointermove",s,{passive:!0})}if(t.keyboard&&o(C,"keydown",s=>{e.emit(ae("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:iC(s),target:yo(s)}))},{passive:!0,capture:!0}),t.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=Kj(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=Gj(a.value,e.config.maskStrategy)),e.emit(ae("forms","info",{hook:i.type,target:yo(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(C,"input",s,{passive:!0,capture:!0}),o(C,"change",s,{passive:!0,capture:!0}),o(C,"submit",i=>{e.emit(ae("forms","info",{hook:"submit",target:yo(i)}))},{passive:!0,capture:!0})}if(t.scroll){let s=sC(()=>{e.emit(ae("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,"scroll",s,{passive:!0,capture:!0})}if(t.viewport){let s=hs(()=>{e.emit(ae("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,"resize",s,{passive:!0}),o(C,"orientationchange",()=>{e.emit(ae("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{e.emit(ae("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),e.emit(ae("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(t.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{e.emit(ae("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(aC)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(t.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(ae("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),i=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},iC=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),Xj=e=>{let t={name:e.name||"Error",message:typeof e.message=="string"?e.message:String(e),stack:typeof e.stack=="string"?e.stack:null};return e.cause!==void 0&&(t.cause=aC(e.cause)),t},aC=e=>{if(e==null)return e;if(e instanceof Error)return Xj(e);if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};D();var Yj=typeof C<"u"&&typeof C.document<"u";var Ay=e=>{if(Yj&&e.config.capture.network){if(typeof C.fetch=="function"){let t=C.fetch.bind(C),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let s=typeof n=="string"?n:n&&n.url||"",i=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(ae("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(ae("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:s,method:i,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(ae("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:l,durationMs:c})),l})};C.fetch=r,e.__teardown.push(()=>{C.fetch=t})}if(typeof C.XMLHttpRequest=="function"){let t=C.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},t.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();e.emit(ae("network","info",{hook:"xhr.start",source:"xhr",url:s.url,method:s.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i,u=this.status>=200&&this.status<400;e.emit(ae("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:s.url,method:s.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-i;e.emit(ae("network","error",{hook:"xhr.error",source:"xhr",url:s.url,method:s.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var Zj={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},Jj={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},Qj={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},eF={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},tF=e=>{let t={...Zj,...e};return t.replay&&Object.assign(t,Jj),t.telemetry&&Object.assign(t,Qj),t.remote&&Object.assign(t,eF),t},rF=64,nF=()=>{if(typeof C>"u"||!C.location)return null;try{let t=new URLSearchParams(C.location.search).get("analyze");return t||null}catch{return null}},Ey=(e={})=>{let t=e===!0?{}:{...e};t.capture=tF(t.capture||{});let r=nF();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=yu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=wy(n),n.__sinks=Sy(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&by(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<rF&&n.__preBuffer.push(s);return}o(),lC(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)lC(n,a)}try{Cy(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Ay(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=yu(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${i||"unknown"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush=="function"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},lC=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let s of e.__sinks)try{s(o)}catch(i){console.error("[analyze] sink error:",i)}}};var $t=Object.create(null);$t.open="0";$t.close="1";$t.ping="2";$t.pong="3";$t.message="4";$t.upgrade="5";$t.noop="6";var qi=Object.create(null);Object.keys($t).forEach(e=>{qi[$t[e]]=e});var Gi={type:"error",data:"parser error"};var fC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",dC=typeof ArrayBuffer=="function",pC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Ki=({type:e,data:t},r,n)=>fC&&t instanceof Blob?r?n(t):cC(t,n):dC&&(t instanceof ArrayBuffer||pC(t))?r?n(t):cC(new Blob([t]),n):n($t[e]+(t||"")),cC=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function uC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Oy;function hC(e,t){if(fC&&e.data instanceof Blob)return e.data.arrayBuffer().then(uC).then(t);if(dC&&(e.data instanceof ArrayBuffer||pC(e.data)))return t(uC(e.data));Ki(e,!1,r=>{Oy||(Oy=new TextEncoder),t(Oy.encode(r))})}var gC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<gC.length;e++)Xi[gC.charCodeAt(e)]=e;var mC=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=Xi[e.charCodeAt(n)],i=Xi[e.charCodeAt(n+1)],a=Xi[e.charCodeAt(n+2)],l=Xi[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var oF=typeof ArrayBuffer=="function",Yi=(e,t)=>{if(typeof e!="string")return{type:"message",data:yC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:sF(e.substring(1),t)}:qi[r]?e.length>1?{type:qi[r],data:e.substring(1)}:{type:qi[r]}:Gi},sF=(e,t)=>{if(oF){let r=mC(e);return yC(r,t)}else return{base64:!0,data:e}},yC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var bC="",vC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{Ki(s,!1,a=>{n[i]=a,++o===r&&t(n.join(bC))})})},xC=(e,t)=>{let r=e.split(bC),n=[];for(let o=0;o<r.length;o++){let s=Yi(r[o],t);if(n.push(s),s.type==="error")break}return n};function wC(){return new TransformStream({transform(e,t){hC(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Ty;function wu(e){return e.reduce((t,r)=>t+r.length,0)}function _u(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function _C(e,t){Ty||(Ty=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(wu(r)<1)break;let l=_u(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(wu(r)<2)break;let l=_u(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(wu(r)<8)break;let l=_u(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Gi);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(wu(r)<o)break;let l=_u(r,o);a.enqueue(Yi(s?l:Ty.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Gi);break}}}})}var Ry=4;function he(e){if(e)return iF(e)}function iF(e){for(var t in he.prototype)e[t]=he.prototype[t];return e}he.prototype.on=he.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};he.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};he.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};he.prototype.emitReserved=he.prototype.emit;he.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};he.prototype.hasListeners=function(e){return!!this.listeners(e).length};var cr=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),ze=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),SC="arraybuffer";function Su(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var aF=ze.setTimeout,lF=ze.clearTimeout;function ur(e,t){t.useNativeTimers?(e.setTimeoutFn=aF.bind(ze),e.clearTimeoutFn=lF.bind(ze)):(e.setTimeoutFn=ze.setTimeout.bind(ze),e.clearTimeoutFn=ze.clearTimeout.bind(ze))}var cF=1.33;function kC(e){return typeof e=="string"?uF(e):Math.ceil((e.byteLength||e.size)*cF)}function uF(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function ku(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function CC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function AC(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var Cu=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},fr=class extends he{constructor(t){super(),this.writable=!1,ur(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Cu(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Yi(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=CC(t);return r.length?"?"+r:""}};var Zi=class extends fr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};xC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,vC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=ku()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var EC=!1;try{EC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var OC=EC;function fF(){}var Py=class extends Zi{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Br=class e extends he{constructor(t,r,n){super(),this.createRequest=t,ur(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=Su(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=fF,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Br.requestsCount=0;Br.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",TC);else if(typeof addEventListener=="function"){let e="onpagehide"in ze?"pagehide":"unload";addEventListener(e,TC,!1)}}function TC(){for(let e in Br.requests)Br.requests.hasOwnProperty(e)&&Br.requests[e].abort()}var dF=(function(){let e=RC({xdomain:!1});return e&&e.responseType!==null})(),Nr=class extends Py{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=dF&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Br(RC,this.uri(),t)}};function RC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||OC))return new XMLHttpRequest}catch{}if(!t)try{return new ze[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var PC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Iy=class extends fr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=PC?{}:Su(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Ki(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=ku()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},$y=ze.WebSocket||ze.MozWebSocket,zr=class extends Iy{createSocket(t,r,n){return PC?new $y(t,r,n):r?new $y(t,r):new $y(t)}doWrite(t,r){this.ws.send(r)}};var bo=class extends fr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=_C(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=wC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var jy={websocket:zr,webtransport:bo,polling:Nr};var pF=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,hF=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vo(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=pF.exec(e||""),s={},i=14;for(;i--;)s[hF[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=gF(s,s.path),s.queryKey=mF(s,s.query),s}function gF(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function mF(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Fy=typeof addEventListener=="function"&&typeof removeEventListener=="function",Au=[];Fy&&addEventListener("offline",()=>{Au.forEach(e=>e())},!1);var wn=class e extends he{constructor(t,r){if(super(),this.binaryType=SC,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=vo(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vo(r.host).host);ur(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=AC(this.opts.query)),Fy&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Au.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Ry,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=kC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Au.indexOf(this._offlineEventListener);n!==-1&&Au.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};wn.protocol=Ry;var Eu=class extends wn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;wn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;wn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function s(){n||(n=!0,u(),r.close(),r=null)}let i=d=>{let f=new Error("probe error: "+d);f.transport=r.name,s(),this.emitReserved("upgradeError",f)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&s()}let u=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},xo=class extends Eu{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>jy[o]).filter(o=>!!o)),super(t,n)}};var a7=xo.protocol;function $C(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=vo(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+t,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Vy={};K(Vy,{Decoder:()=>Ny,Encoder:()=>By,PacketType:()=>J,isPacketValid:()=>LF,protocol:()=>UC});var bF=typeof ArrayBuffer=="function",vF=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,IC=Object.prototype.toString,xF=typeof Blob=="function"||typeof Blob<"u"&&IC.call(Blob)==="[object BlobConstructor]",wF=typeof File=="function"||typeof File<"u"&&IC.call(File)==="[object FileConstructor]";function Qi(e){return bF&&(e instanceof ArrayBuffer||vF(e))||xF&&e instanceof Blob||wF&&e instanceof File}function Ji(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ji(e[r]))return!0;return!1}if(Qi(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ji(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ji(e[r]))return!0;return!1}function jC(e){let t=[],r=e.data,n=e;return n.data=Dy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Dy(e,t){if(!e)return e;if(Qi(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Dy(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Dy(e[n],t));return r}return e}function FC(e,t){return e.data=Ly(e.data,t),delete e.attachments,e}function Ly(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ly(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ly(e[r],t));return e}var zC=Ex(NC(),1),My=(0,zC.default)("socket.io-parser"),VC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],UC=5,J;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(J||(J={}));var By=class{constructor(t){this.replacer=t}encode(t){return My("encoding packet %j",t),(t.type===J.EVENT||t.type===J.ACK)&&Ji(t)?this.encodeAsBinary({type:t.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===J.BINARY_EVENT||t.type===J.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),My("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=jC(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Ny=class e extends he{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new zy(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Qi(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!WC(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return My("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case J.CONNECT:return Ru(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||Ru(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&VC.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},zy=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=FC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function jF(e){return typeof e=="string"}var WC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function FF(e){return e===void 0||WC(e)}function Ru(e){return Object.prototype.toString.call(e)==="[object Object]"}function DF(e,t){switch(e){case J.CONNECT:return t===void 0||Ru(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&VC.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||Ru(t);default:return!1}}function LF(e){return jF(e.nsp)&&FF(e.id)&&DF(e.type,e.data)}function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var MF=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),ko=class extends he{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,s;if(MF.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:J.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:J.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function Sn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Sn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Sn.prototype.reset=function(){this.attempts=0};Sn.prototype.setMin=function(e){this.ms=e};Sn.prototype.setMax=function(e){this.max=e};Sn.prototype.setJitter=function(e){this.jitter=e};var Co=class extends he{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ur(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Sn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Vy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new xo(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=rt(r,"open",function(){n.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=rt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){cr(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new ko(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var ea={};function Ao(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=$C(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ea[o]&&s in ea[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Co(n,t):(ea[o]||(ea[o]=new Co(n,t)),l=ea[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Ao,{Manager:Co,Socket:ko,io:Ao,connect:Ao});D();var BF=new Set(["__proto__","constructor","prototype"]),HC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(BF.has(e[t]))return!1;return!0},NF=(e,t)=>{!e||!HC(t)||t.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},e)},zF=(e,t,r,n=!1)=>{!e||!HC(t)||t.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},e)},qC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,s]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":NF(e,o);break;case"update":case"set":zF(e,o,s,!0);break;default:break}return r};var VF=Object.create,Ib=Object.defineProperty,UF=Object.getOwnPropertyDescriptor,WF=Object.getOwnPropertyNames,HF=Object.getPrototypeOf,qF=Object.prototype.hasOwnProperty,X=(e,t)=>()=>(e&&(t=e(e=0)),t),jb=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)Ib(e,r,{get:t[r],enumerable:!0})},GF=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of WF(t))!qF.call(e,o)&&o!==r&&Ib(e,o,{get:()=>t[o],enumerable:!(n=UF(t,o))||n.enumerable});return e},KF=(e,t,r)=>(r=e!=null?VF(HF(e)):{},GF(t||!e||!e.__esModule?Ib(r,"default",{value:e,enumerable:!0}):r,e)),Fb,Db,le,be,Kf=X(()=>{"use strict";Fb=globalThis,Db=globalThis,le=globalThis,be=le.document}),Wa,Xf,st,Yf=X(()=>{"use strict";Kf(),Wa=e=>(typeof Node=="object"?e instanceof le.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Xf=e=>(typeof HTMLElement=="object"?e instanceof le.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,st=e=>typeof le<"u"&&(le.Node&&e instanceof le.Node||le.Window&&e instanceof le.Window||e===le||e===document)}),M,R,Rn,L,Qu,ef,W,tf,ce,zo,Mt,da,Zt,Lb,je=X(()=>{"use strict";Yf(),M=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,R=e=>typeof e=="string",Rn=e=>typeof e=="number",L=e=>typeof e=="function",Qu=e=>e===!0||e===!1,ef=e=>e===null,W=e=>Array.isArray(e),tf=e=>e instanceof Date,ce=e=>e===null?!1:typeof e=="object",zo=e=>e!==void 0,Mt=e=>e===void 0,da={boolean:Qu,array:W,object:M,string:R,date:tf,number:Rn,null:ef,function:L,objectLike:ce,node:Wa,htmlElement:Xf,defined:zo},Zt=e=>(...t)=>t.some(r=>da[r](e)),Lb=e=>(...t)=>!t.some(r=>da[r](e))}),Mb,Bb,Nb,zb,ja,Zf,Vb,Ub,Jf,Wb,Hb,qb,Gb,Kb,Xb,Yb,Fa,Qf,Ha=X(()=>{"use strict";qr(),je(),Mb=(e,t)=>t.every(r=>e.includes(r)),Bb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Nb=(e,t)=>{if(R(t)&&(t=parseInt(t)),Rn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},zb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},ja=(...e)=>[].concat(...e),Zf=(e,t=[])=>e.reduce((r,n)=>er(r,at(n,{exclude:t}),t),{}),Vb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},Ub=(e,t)=>{if(!W(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Jf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Wb=(e,t)=>e.filter(r=>r!==t),Hb=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},qb=(e,t,r)=>{let n=[...e],o=n.indexOf(t),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},Gb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Kb=(e,t)=>e.filter(r=>!t.includes(r)),Xb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Yb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Fa=e=>W(e)?[...new Set(e)]:e,Qf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function tE(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let s=rE[n],i=t||this.state||{},a=this;return e.replace(s,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=i;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Io(h,f);return String(g??"")}else{let p=Io(i,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Io(m,f);if(b!=null&&typeof b!="object")return String(b);for(let x in m){let v=m[x];if(v&&typeof v=="object"&&!Array.isArray(v)){let w=Io(v,f);if(w!=null&&typeof w!="object")return String(w)}}}let y=Io(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var ed,Zb,rE,Io,qa,Jb,GC,Qb,e0,t0,KC,r0,n0,td=X(()=>{"use strict";ed=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Zb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},rE={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Io=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),qa=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Jb=(e,t)=>{let r=e.split(`
|
|
73
|
-
`),n=-1,o=-1,
|
|
74
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
75
|
-
`;for(let
|
|
76
|
-
`;for(let c of
|
|
77
|
-
`:
|
|
69
|
+
`)}var o1={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function i1(e,t){let r=o1[e]||Dr(e),n=Is(t),o=`_${r}-${n}`,i=fo(e),s=`.${o}{${i}: ${t}}`;return`${o}
|
|
70
|
+
${s}`}var s1=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function a1(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let i=t[o],s=t[o+1];if(!s||s1(s))continue;let a=o1[i]||Dr(i),l=Is(s),c=`_${a}-${l}`,u=fo(i);r.push(c),n.push(`.${c}{${u}:${s}}`)}return r.join(" ")+"\0"+n.join(`
|
|
71
|
+
`)}function l1(e,t){let r=e+t,n=`_c${Dr(r)}`,o=t.split("\0"),i="";for(let a=0;a+1<o.length;a+=2){let l=o[a],c=o[a+1];c&&(s1(c)||(i+=`${fo(l)}:${c};`))}let s;if(e.startsWith("@media"))s=`${e}{.${n}{${i}}}`;else if(e.startsWith(":")||e.startsWith("&")){let a=e.startsWith("&")?e.slice(1):e;s=`.${n}${a}{${i}}`}else e.includes("&")?s=`${e.replace("&",`.${n}`)}{${i}}`:s=`.${n} ${e}{${i}}`;return`${n}
|
|
72
|
+
${s}`}var oy=null;function Jc(e){oy=e}var Pt={structuralHash:Xc,deepEqual:Yc,mergeStructural:ry,overwriteDeep:ny,shortHash:Dr,toKebab:fo,sanitizeValue:Is,batchShortHash:n1,atomicCssClass:i1,batchAtomicCss:a1,compoundCssClass:l1},c1=!1,Zc=null;function u1(e){return Zc||(Zc=import(e||"@symbo.ls/wasm/pkg").then(t=>(t.structuralHash&&(Pt.structuralHash=t.structuralHash),t.deepEqual&&(Pt.deepEqual=t.deepEqual),t.mergeStructural&&(Pt.mergeStructural=t.mergeStructural),t.overwriteDeep&&(Pt.overwriteDeep=t.overwriteDeep),t.shortHash&&(Pt.shortHash=t.shortHash),t.toKebab&&(Pt.toKebab=t.toKebab),t.sanitizeValue&&(Pt.sanitizeValue=t.sanitizeValue),t.batchShortHash&&(Pt.batchShortHash=t.batchShortHash),t.atomicCssClass&&(Pt.atomicCssClass=t.atomicCssClass),t.batchAtomicCss&&(Pt.batchAtomicCss=t.batchAtomicCss),t.compoundCssClass&&(Pt.compoundCssClass=t.compoundCssClass),c1=!0,oy&&t.batchAtomicCss&&oy({batchAtomicCss:t.batchAtomicCss,compoundCssClass:t.compoundCssClass}),!0)).catch(t=>(console.debug("[smbls] WASM not available, using JS fallbacks:",t.message),!1)),Zc)}function f1(){return c1}M();var Fs={};G(Fs,{CDN_PROVIDERS:()=>Ct,DOMQL_EVENTS:()=>op,DOMQ_PROPERTIES:()=>xr,ENV:()=>vp,HTML_TAGS:()=>Gn,METHODS:()=>Vn,METHODS_EXL:()=>li,NODE_ENV:()=>wt,OPTIONS:()=>Pi,PACKAGE_MANAGER_TO_CDN:()=>Er,PARSED_DOMQ_PROPERTIES:()=>ai,PROPS_METHODS:()=>vr,STATE_METHODS:()=>en,STATE_PROPERTIES:()=>np,SVG_TAGS:()=>L0,TYPES:()=>ei,UNIVERSAL_RESERVED_KEYS:()=>Zl,addCaching:()=>jl,addContext:()=>Fl,addExtend:()=>Hp,addExtends:()=>Ke,addItemAfterEveryElement:()=>Wd,addProtoToArray:()=>ni,addRef:()=>Pl,applyCSS:()=>sy,applyDependentState:()=>uh,applyEvent:()=>Vl,applyEventUpdate:()=>zl,applyExtends:()=>B0,applyProps:()=>Ci,arrayContainsOtherArray:()=>Ld,arraysEqual:()=>qd,arrayzeValue:()=>ln,buildImgSrcset:()=>ss,buildSourcesAndImg:()=>as,cache:()=>gh,call:()=>Ih,captureSnapshot:()=>jh,checkForStateTypes:()=>sh,checkIfInherits:()=>Bl,checkIfStringIsInArray:()=>Xd,clone:()=>sp,cloneAndMergeArrayExtend:()=>yi,cloneFunction:()=>Tp,concatAddExtends:()=>zp,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>Qh,createBasedOnType:()=>Rl,createElement:()=>ih,createElementExtends:()=>bl,createExtends:()=>xi,createExtendsFromKeys:()=>Kn,createExtendsStack:()=>wl,createIfConditionFlag:()=>Rp,createInheritedState:()=>ah,createKey:()=>gi,createNestedObject:()=>pp,createNestedObjectByKeyPath:()=>ch,createObjectWithoutPrototype:()=>fl,createParent:()=>$l,createPath:()=>Il,createProps:()=>Ai,createPropsStack:()=>Ol,createRoot:()=>oh,createScope:()=>dh,createSnapshotId:()=>hi,customDecodeURIComponent:()=>rp,customEncodeURIComponent:()=>tp,cutArrayAfterValue:()=>zd,cutArrayBeforeValue:()=>Vd,debounce:()=>mi,debounceOnContext:()=>Ap,decodeNewlines:()=>ep,deepClone:()=>ge,deepContains:()=>fp,deepDefaults:()=>rs,deepDestringifyFunctions:()=>Ut,deepExtend:()=>yl,deepMerge:()=>fe,deepMergeExtends:()=>Wt,deepStringifyFunctions:()=>ci,defineSetter:()=>Ph,destringifyGlobalScope:()=>fi,detectHeightOnInit:()=>Bh,detectInfiniteLoop:()=>yp,document:()=>pe,encodeNewlines:()=>Qd,error:()=>an,excludeKeysFromObject:()=>xp,exec:()=>de,extendCachedRegistry:()=>Up,extendStackRegistry:()=>vi,extractArrayExtend:()=>wi,fetchLibraryData:()=>ec,fibonacciNumberByIndex:()=>Vh,filterArrays:()=>Gd,filterArraysFast:()=>Kd,finalizeExtends:()=>Sl,findClosestNumber:()=>Ql,findClosestNumberInFactory:()=>Zh,findInheritedState:()=>Nl,findKeyPosition:()=>Zd,flattenExtend:()=>Xn,formatDate:()=>Nh,generateHash:()=>hl,generateKey:()=>pi,generateMetaTags:()=>Xh,get:()=>Oh,getActiveRoute:()=>Um,getCDNUrl:()=>At,getCapitalCaseKeys:()=>Kp,getCdnProviderFromConfig:()=>Jn,getChildStateInKey:()=>Ml,getChildren:()=>zi,getContext:()=>Xi,getCookie:()=>jp,getDB:()=>es,getEmotionStylesheet:()=>og,getExtendsInElement:()=>qp,getExtendsStack:()=>bi,getExtendsStackRegistry:()=>ml,getFrequencyInArray:()=>Md,getHashedExtend:()=>_i,getImportMapScript:()=>Mh,getInObjectByPath:()=>mp,getLocalStorage:()=>Lp,getNev:()=>kp,getPageMetadata:()=>Yh,getParentStateInKey:()=>Ll,getPath:()=>Ui,getQuery:()=>ts,getRef:()=>Rh,getRoot:()=>qi,getRootContext:()=>Ki,getRootData:()=>Gi,getRootState:()=>Hi,getRootStateInKey:()=>Dl,getSpreadChildren:()=>Xp,global:()=>Fd,hasFunction:()=>Un,hasHandlerPlugin:()=>Wn,hasOwnProperty:()=>lp,inheritChildExtends:()=>vl,inheritChildPropsExtends:()=>xl,inheritParentProps:()=>Ei,inheritRecursiveChildExtends:()=>_l,init:()=>po,initProps:()=>th,is:()=>qe,isArray:()=>$,isBoolean:()=>sl,isContextComponent:()=>Yp,isCyclic:()=>bp,isDOMNode:()=>We,isDate:()=>ll,isDefined:()=>He,isDevelopment:()=>wr,isEmpty:()=>cl,isEmptyObject:()=>cp,isEqualDeep:()=>ul,isFunction:()=>O,isHtmlElement:()=>Jo,isLocal:()=>Sp,isMethod:()=>Fh,isMobile:()=>Ip,isNode:()=>tr,isNot:()=>Dd,isNotProduction:()=>nn,isNull:()=>al,isNumber:()=>zt,isObject:()=>S,isObjectLike:()=>re,isPhoto:()=>zh,isProduction:()=>_r,isStaging:()=>wp,isState:()=>lh,isString:()=>A,isStringFunction:()=>Op,isTest:()=>pl,isTesting:()=>_p,isUndefined:()=>Pe,isUniversallyReservedKey:()=>Dh,isValidHtmlTag:()=>Np,joinArrays:()=>Mn,jointStacks:()=>Wp,keys:()=>Xl,lastLevel:()=>Kc,lastPathname:()=>Gc,loadCssFile:()=>qh,loadJavascript:()=>Gh,loadJavascriptFile:()=>Uh,loadJavascriptFileEmbedSync:()=>Hh,loadJavascriptFileSync:()=>Wh,loadRemoteCSS:()=>Kh,loadRemoteScript:()=>Qn,log:()=>$h,logGroupIf:()=>$p,logIf:()=>Pp,lookdown:()=>Ah,lookdownAll:()=>Eh,lookup:()=>Ch,lowercaseFirstLetter:()=>Qr,makeObjectWithoutPrototype:()=>up,map:()=>ip,mapStringsWithContextComponents:()=>Si,matchRoute:()=>Bm,matchesComponentNaming:()=>Ht,memoize:()=>Ep,merge:()=>ye,mergeSharedLibraries:()=>ns,nextElement:()=>Zi,normalizeLibraryKey:()=>eo,objectToString:()=>ui,objectizeStringProperty:()=>ki,overwrite:()=>di,overwriteDeep:()=>Ge,overwriteShallow:()=>rn,overwriteState:()=>fh,parse:()=>Yl,parseDeep:()=>Bi,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,pickupElementFromProps:()=>Al,pickupPropsFromElement:()=>Cl,previousElement:()=>Ji,propExists:()=>Qp,propertizeElement:()=>El,propertizeUpdate:()=>Jp,reinit:()=>iy,remove:()=>m_,removeChars:()=>tg,removeCookie:()=>Dp,removeDuplicateProps:()=>Ti,removeDuplicatesInArray:()=>Nn,removeFromArray:()=>Nd,removeFromObject:()=>dp,removeNestedKeyByPath:()=>hp,removeValueFromArray:()=>ri,removeValueFromArrayAll:()=>Ud,reorderArrayByValues:()=>Hd,replaceLiteralsWithObjectFields:()=>Jr,replaceOctalEscapeSequences:()=>Jd,resolveAsset:()=>Xe,resolveHandler:()=>Hn,resolveSharedLibraries:()=>Jh,returnValueAsText:()=>Tl,router:()=>Xt,runGuards:()=>zm,runPluginHook:()=>St,scratchSystem:()=>ys,scratchUtils:()=>pn,self:()=>jd,set:()=>oo,setActiveRootState:()=>Wi,setCookie:()=>Fp,setHashedExtend:()=>gl,setInObjectByPath:()=>gp,setLocalStorage:()=>Mp,setNodeStyles:()=>Kl,setProps:()=>Th,setPropsPrototype:()=>Oi,spotByPath:()=>Vi,srcsetFor:()=>to,stringIncludesAny:()=>ii,stringToObject:()=>ap,swapItemsInArray:()=>Bd,syncProps:()=>Ri,toCamelCase:()=>os,toDashCase:()=>is,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Lh,triggerEventOn:()=>Sr,triggerEventOnUpdate:()=>ph,trimStringFromSymbols:()=>Yd,unstackArrayOfObjects:()=>ti,update:()=>eh,updateProps:()=>rh,variables:()=>Qi,verbose:()=>Zn,warn:()=>Yi,window:()=>C});M();M();var KI=T(),d1=(e=KI,t)=>{let r=S(t.localFile)?t.localFile:{},n=ge(r.designSystem||{});return fe(e,n)},XI={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},po=(e,t=XI)=>{let r=d1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(i=m)}let s=oo({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:i,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});s&&(s.scopeSelector=n);let a=rc(s.font,s.files),l=s.useReset,c=s.useVariable,u=s.useFontImport,d=s.useSvgSprite,f=e.svg,p=s.useIconSprite,h=e.icons;if(u&&we(a),c&&(we({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS)){let m={};for(let y in s.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:s.CSS_MEDIA_VARS[y]}:m[y]=s.CSS_MEDIA_VARS[y];we(m)}l&&we(s.reset);let g=s.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];we(m)}return(f||d)&&Rc(s.svg,{document:t.document}),(h||p)&&$c(s.icons,{document:t.document}),s},Qc={},iy=(e,t=Qc)=>{let r=d1(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=oo({verbose:!1,...r});if(!t.preventInject){if(we({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS){let s={};for(let a in i.CSS_MEDIA_VARS)a.startsWith("@media")?s[a]={[o]:i.CSS_MEDIA_VARS[a]}:s[a]=i.CSS_MEDIA_VARS[a];we(s)}we(i.reset)}return i},sy=(e,t=Qc)=>{we(e)},YI=(e,t=Qc)=>{let r=t.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(we({[r]:e.CSS_VARS}),e.CSS_MEDIA_VARS){let o={};for(let i in e.CSS_MEDIA_VARS)i.startsWith("@media")?o[i]={[n]:e.CSS_MEDIA_VARS[i]}:o[i]=e.CSS_MEDIA_VARS[i];we(o)}};var ZI=(e,t=Qc)=>{};M();var p1=e=>!e||e==="srcdoc"||e==="about:srcdoc"||e==="blank"||e==="about:blank"?"/":e,ay={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},js=(e,t)=>{if(!t)return e;let r=Array.isArray(t)?t:t.split("."),n=e;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},h1=(e,t)=>{if(t.router===!1)return;t.router===!0?t.router=ay:t.router=ye(t.router||{},ay);let r=t.router,n=async(i,s)=>{let a=i.context?.window||C;if(!a.location)return;let{pathname:l,search:c,hash:u}=a.location;l=p1(l);let d=l+c+u,f=i;if(r.customRouterElement){let p=js(i,r.customRouterElement);p&&(f=p,i.routes&&(f.routes=i.routes))}f.routes&&await Xt(d,f,{},{initialRender:!0,pushState:!1})},o=!Pe(e.onRenderRouter);return r&&r.initRouter&&!o&&(e.onRenderRouter=n),JI(t,r),r},ly=(e,t)=>{if(t.router===!1)return;let r=t.router||ay;if(!r.popState)return;let n=t.utils&&t.utils.router?t.utils.router:Xt,o=t.window||C,i=async s=>{let{pathname:a,search:l,hash:c}=o.location;a=p1(a);let u=a+l+c,d=e;if(r.customRouterElement){let f=js(e,r.customRouterElement);f&&(d=f,e.routes&&(d.routes=e.routes))}await d.call("router",u,d,{},{pushState:!1,scrollToTop:!1,level:0,event:s})};o.addEventListener("popstate",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>o.removeEventListener("popstate",i))},JI=(e,t)=>{let{components:r}=e;if(t&&t.injectRouterInLinkComponent)return fe(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};M();var cy=C&&C.location?C.location.host.includes("dev."):wr(),g1=cy?"http://localhost:8080/get":"https://api.symbols.app/get",QI={endpoint:g1},m1=async(e,t=QI)=>{let r=t.endpoint||g1,n=t.serviceRoute?$(t.serviceRoute)?t.serviceRoute.map(i=>i.toLowerCase()+"=true").join("&"):t.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":e,"X-Metadata":t.metadata}}),await o.json()}catch(i){if(O(t.onError))return t.onError(i);console.error(i)}},eF=async(e,t)=>{let{editor:r}=t;if(r&&r.remote){let n=await m1(e,r),o=cy||t.isDevelopment?Ut(n):Ut(n.releases[0]);r.serviceRoute?$(r.serviceRoute)?r.serviceRoute.forEach(i=>{Ge(t[i],o[i.toLowerCase()])}):Ge(t[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(i=>{Ge(t[i],o[i.toLowerCase()])})}return t},tF=async(e,t,r)=>{let{editor:n}=t;if(n&&n.remote){let o=await m1(e,n),i=cy||t.isDevelopment?Ut(o):Ut(o.releases[0]);r(i)}},y1=async(e,t)=>{if(e&&t.editor)try{t.editor.async||await eF(e,t)}catch(r){console.error(r)}},b1=(e,t,r,n)=>{if(t&&r.editor)try{r.editor.async&&tF(t,r,n||(o=>{let i=o.designSystem;S(i)&&r.utils.init(i),S(o.state)&&e.state.set(o.state)}))}catch(o){console.error(o)}};var Ds=e=>{if(!e||e.__destroyed)return!1;let t=e.context;if(!t)return e.__destroyed=!0,!1;if(Array.isArray(t.__teardowns)){for(let r of t.__teardowns)try{r()}catch(n){console.error("[smbls] destroy teardown error:",n)}t.__teardowns.length=0}try{_n(e)}catch(r){console.error("[smbls] dispose error:",r)}if(t.fetch&&t.fetch.__resolved&&delete t.fetch.__resolved,t.fetch&&t.fetch.__resolving&&delete t.fetch.__resolving,t.db&&t.db.__resolved&&delete t.db.__resolved,t.db&&t.db.__resolving&&delete t.db.__resolving,t.analyze?.destroy)try{t.analyze.destroy()}catch(r){console.error("[analyze] destroy error:",r)}return e.__destroyed=!0,!0};M();var rF={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},nF=e=>{if(e.tag==="link")return`link[${e.attr}="${e.key}"]`;if(e.tag&&!e.attr&&!e.key)return e.tag;if(e.tag&&e.attr&&e.key)return`${e.tag}[${e.attr}="${e.key}"]`},eu=(e,t,r)=>{if(!e)return{};let n=O(e)?de(e,t,r):{...e};if(!S(n))return{};for(let o in n){let i=n[o];O(i)&&(i=de(i,t,r)),A(i)&&i.includes("{{")&&t?.call&&(i=t.call("replaceLiteralsWithObjectFields",i,r)),n[o]=i}return n};var oF=(e,t)=>{let r=t.createElement(e.tag);return e.attr&&r.setAttribute(e.attr,e.key),(t.head||t.querySelector("head")).appendChild(r),r},tu=(e,t)=>{if(!(!S(e)||!t))for(let r in e){let n=e[r];if(n==null)continue;let o=rF[r];if(!o)continue;let i=nF(o),s=t.querySelector(i)||oF(o,t);s&&(r==="title"?s.textContent=n:o.valueAttr?s.setAttribute(o.valueAttr,n):s.setAttribute("content",n))}};var x1={name:"helmet",create(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)},update(e){let t=e.metadata;if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let n=eu(t,e,e.state);tu(n,r)}};sn();var v1=(e,t,r,n)=>{e&&Mi(e,t,r,n)},_1=(e,t,r)=>{if(!e)return;let n=t.context?.document||typeof document<"u"&&document;if(!n)return;let o=eu(e,t,r);tu(o,n)},w1=async(e,t)=>{if(!e)return;let r={tag:"fragment",...e},n=async()=>{await t.set(r,{preventDefineUpdate:"$router"})};return t.lazyLoad?window.requestAnimationFrame(n):await n(),r},ho={routes:e=>e,metadata:_1,fetch:v1,$router:w1},S1=(e={})=>{let t={routes:r=>r};return e.metadata!==!1&&(t.metadata=_1),e.fetch!==!1&&(t.fetch=v1),e.router!==!1&&(t.$router=w1),t};var uy={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ru={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},nu={...uy,router:ru},iF={state:{},pages:{},components:{},router:ru,define:ho},Lr=iF;M();M();var k1=(e,t)=>re(e.extends)?e.extends:[];M();var O1=e=>{let t=typeof window<"u"?window:globalThis||{};t.document||(t.document={body:{}});let r=typeof document<"u"?document:t.document;e.document=e.document||r;let n=e.window;return n&&n!==t&&typeof n.URL!="function"?(typeof console<"u"&&console.warn&&console.warn("[smbls/router] context.window lacks URL, falling back to globalThis \u2014 passed-in window may be a stub"),e.window=t):e.window=n||t,e.window},C1=(e="smbls")=>{let t={};for(let r in co)Object.prototype.hasOwnProperty.call(co,r)&&(Ht(r)?t[`smbls.${r}`]=co[r]:t[r]=co[r]);return t},T1=e=>e.components?{...C1(),...e.components}:C1(),R1=e=>({...Fs,...Wm,...pn,...e.utils,...e.snippets,...e.functions}),P1=e=>({...e.methods||{},require:e.utils.require,requireOnDemand:e.utils.requireOnDemand,router:e.utils.router}),A1={},$1=async({dependencies:e,dependenciesOnDemand:t,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:i,symbolsConfig:s})=>{if(o||(o=Er[i]||Jn(s)||"esmsh"),!e)return null;let a=!1;for(let l in e){a=!0;break}if(!a)return null;for(let l in e){let c=e[l];if(t&&t[l])continue;let u=wr()&&n?`?${Math.random()}`:"",d=At(l,c,o)+u;try{if(A1[l])continue;A1[l]=!0,await Promise.race([Qn(d,{document:r,type:"module"}),new Promise((f,p)=>setTimeout(()=>p(new Error(`Timeout loading ${l}`)),1e4))])}catch(f){if(console.error(`Failed to load ${l} from ${o}:`,f),o!=="symbols")try{let p=At(l,c,"symbols")+u;await Promise.race([Qn(p,{document:r}),new Promise((h,g)=>setTimeout(()=>g(new Error(`Timeout fallback ${l}`)),2e4))]),console.log(`Successfully loaded ${l} from fallback (symbols.ls)`)}catch(p){console.error(`Failed to load ${l} from fallback:`,p)}}}return e},I1=async(e,t)=>{let r=t.window||window,n=t.cdnProvider||Jn(t.symbolsConfig)||"esmsh",o=async s=>async(a,l)=>{let u=(s.window||window).packages[a];return typeof u=="function"?u():u},i=async s=>async(a,l=n)=>{let{dependenciesOnDemand:c}=s,u=s.document||document,d=s.window||window;if(!d.packages[a]){let f=wr()?`?${Math.random()}`:"";if(c&&c[a]){let p=c[a],h=At(a,p,l)+f;try{await s.utils.loadRemoteScript(h,{window:d,document:u})}catch(g){if(console.error(`Failed to load ${a} from ${l}:`,g),l!=="symbols"){let m=At(a,p,"symbols")+f;await s.utils.loadRemoteScript(m,{window:d,document:u})}}}else{let p=At(a,"latest",l)+f;try{await s.utils.loadRemoteScript(p,{window:d,document:u})}catch(h){if(console.error(`Failed to load ${a} from ${l}:`,h),l!=="symbols"){let g=At(a,"latest","symbols")+f;await s.utils.loadRemoteScript(g,{window:d,document:u})}}d.packages[a]="loadedOnDeman"}}return await d.require(a,l)};r.packages?r.packages=ye(r.packages,e):r.packages=e,r.require||(t.utils.require=await o(t),r.require=t.utils.require),r.requireOnDemand||(t.utils.requireOnDemand=await i(t),r.requireOnDemand=t.utils.requireOnDemand)},sF=/\s+/g,F1=(e,t)=>typeof e=="function"?e(t,t?.state,t?.context):e,aF=(e,t)=>{let r="";for(let n in e){let o=e[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${F1(o,t)}`)}return r},lF=(e,t,r)=>{if(!e)return;let{key:n}=t;e===!0&&(e=t.classlist={key:n}),typeof e=="string"&&(e=t.classlist={default:e}),e!==null&&typeof e=="object"&&!Array.isArray(e)&&(e=aF(e,t));let o=e.replace(sF," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},cF=()=>(e,t,r)=>{let n=F1(e,t);if(e){let{__ref:o}=t;o.__class.style=n}j1()(t.classlist,t,t.state,!0)},j1=()=>(e,t,r,n)=>{if(t.style&&!n)return;let{__ref:o}=t,{__class:i,__classNames:s}=o;if(!(e===null||typeof e!="object"||Array.isArray(e))){t.class&&(s.classProps=t.class),t.attr?.class&&(s.class=t.attr.class);for(let a in i){let l=i[a];if(!l){delete s[a];continue}let c;typeof l=="string"||typeof l=="number"?c=l:typeof l=="boolean"?c=t.key:c=$r(l),s[a]=c}for(let a in s)a==="classProps"||a==="class"||i[a]===void 0&&delete s[a];t.node&&lF(s,t,t.node)}},uF=()=>({style:cF(),classlist:j1()}),fF=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],E1=!1,D1=(e,t)=>{let r=t.document||(t.parent&&t.parent.documentElement?t.parent:null)||document,n=t.initOptions||{},o=t.registry||uF(),i=t.designSystem?fe(ge(t.designSystem),Ps):ge(Ps),s={};for(let p of fF)t[p]!==void 0&&(s[p]=t[p]);let a,l=E1&&!t.skipDesignSystemInit,c=l?`[data-smbls-app="${e}"]`:":root";t.scopeSelector=c;let u=c===":root"?":root:not([data-theme])":`${c}:not([data-theme])`;if(t.skipDesignSystemInit){if(a=T(e)||T(),a&&(a.document=r),a?.CSS_VARS){Ee(a);try{if(we({[c]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let p={};for(let h in a.CSS_MEDIA_VARS)h.startsWith("@media")?p[h]={[u]:a.CSS_MEDIA_VARS[h]}:p[h]=a.CSS_MEDIA_VARS[h];we(p)}}finally{_e()}}}else if(l){let p=yg(e,i,{cleanBase:!0});for(let g in s)p[g]=s[g];p.document=r;let h=e.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);t.cssPrefix=h,p.varPrefix=h,Ee(p);try{a=po(p,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...s,...n})}finally{_e()}}else{let p=T();p&&(p.document=r),a=po(i,{key:e,document:r,files:t.files,assets:t.assets,scopeSelector:c,...nu,...s,...n}),a&&a!==p&&(a.document=r),E1=!0}let d=a?.CONFIG||a,f=d?.font;if(f){Ee(d);try{for(let p in f){let h=f[p];if(!h?.fontFace)continue;let g=Array.isArray(h.fontFace)?h.fontFace:[h.fontFace];for(let m of g)typeof m=="string"&&m.includes("font-family")&&we(`@font-face { ${m} }`)}}finally{_e()}}return[a,o]},L1=(e,t)=>{let r={};t.state&&fe(r,t.state),e&&e.state&&fe(r,e.state);let n=t.polyglot;if(n?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(n.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let i=o||r.lang||n.defaultLang||"en";o&&o!==r.lang&&(r.lang=o);let s=n.translations[i];if(s&&typeof s=="object")for(let l in s)r[l]=s[l];let a=new Set(n.languages||[]);for(let l in n.translations)!a.has(l)&&r[l]===void 0&&(r[l]=n.translations[l])}return r.isRootState=!0,ge(r)},M1=(e,t)=>{S(e.routes)&&S(t.pages)&&ye(e.routes,t.pages);let r=e.routes||t.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},N1=e=>{ns(e,e.sharedLibraries)};M();var V1="smbls_lang",dF="smbls_t_",pF="smbls_tv_",go={get(e){try{return window?.localStorage.getItem(e)}catch{return null}},set(e,t){try{window?.localStorage.setItem(e,t)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(e){try{window?.localStorage.removeItem(e)}catch(t){console.warn("[polyglot] localStorage unavailable:",t.message)}}},Ls={};function Ms(){let e=this?.context,t=e?.polyglot;return(this?.state?.root||e?.state?.root)?.lang||t?.defaultLang||"en"}function iu(){let e=this?.context?.polyglot;return e?e.languages?e.languages:e.translations?Object.keys(e.translations):[]:[]}var ou=(e,t)=>{if(!e||!t)return;if(e[t]!==void 0)return e[t];if(t.indexOf(".")===-1)return;let r=t.split("."),n=e;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},B1=(e,t,r)=>{let n=t.lastIndexOf(".");if(n===-1)return e[t+"_"+r];let o=ou(e,t.substring(0,n));if(o!=null)return o[t.substring(n+1)+"_"+r]};function su(e,t){if(!e)return"";let r=this?.context,n=r?.polyglot,o=t||this.call("getActiveLang"),i=this?.state;if(i){let c=B1(i,e,o);if(c!==void 0)return c}if(n?.translations){let c=n.translations[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let a=(i?.root||r?.state?.root)?.translations;if(a){let c=a[o];if(c){let u=ou(c,e);if(u!==void 0)return u}}let l=n?.defaultLang||"en";if(i){let c=B1(i,e,l);if(c!==void 0)return c}if(n?.translations){let c=n.translations[l];if(c){let u=ou(c,e);if(u!==void 0)return u}}return e}async function au(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!r||!n)return;let o=r.storagePrefix||dF,i=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):pF);if(r.translations&&r.translations[e]&&!r.fetch||!r.fetch||r._fetchFailed?.[e])return;if(!n.translations?.[e]){let l=go.get(o+e);if(l)try{let c=JSON.parse(l),u={translations:{...n.translations||{}}};u.translations[e]=c,n.update&&n.update(u)}catch(c){console.warn("[polyglot] Failed to apply language update:",c.message)}}let s=(r.storagePrefix||"smbls")+":"+e;if(Ls[s])return Ls[s];let a=this;return Ls[s]=(async()=>{try{let l=r.fetch,c=parseInt(go.get(i+e),10)||0,u,d,f;if(O(l)){let h=await l(e,c,a);if(!h||h.changed===!1)return;u=h.translations||h.data||h,d=h.version||0,f=!0}else if(S(l)){let h=a.getDB||(()=>t.fetch),g=O(h)?await h.call(a):t.fetch;if(!g)return;let m=l.rpc||l.from||"get_translations_if_changed",y={p_lang:e,p_cached_version:c,...l.params||{}},b=await g.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[e]=!0,b.error;let v=b.data;if(!v||!v.changed)return;u=v.translations||{},d=v.version||0,f=!0}else return;if(!f||!u)return;go.set(o+e,JSON.stringify(u)),d&&go.set(i+e,String(d));let p={translations:{...n.translations||{}}};p.translations[e]=u,n.update&&n.update(p)}catch(l){if(r.verbose!==!1){let c=l?.message||l?.details||(typeof l=="object"?JSON.stringify(l):String(l));console.warn("[polyglot] Failed to load translations for",e,"-",c)}}finally{delete Ls[s]}})(),Ls[s]}async function lu(e){let t=this?.context,r=t?.polyglot,n=this?.state?.root||t?.state?.root;if(!n||this.call("getActiveLang")===e)return;let o=r?.storageLangKey||V1;go.set(o,e),r?.fetch&&await this.call("loadTranslations",e),t?.state&&(t.state.lang=e);let i=r?.translations?.[e],s={lang:e};if(i&&typeof i=="object")for(let l in i){let c=i[l];(Array.isArray(c)||typeof c=="string"||typeof c=="number")&&(s[l]=c)}if(n.update&&n.update(s),i&&typeof i=="object")for(let l in i){let c=i[l];if(c&&typeof c=="object"&&!Array.isArray(c)&&n[l]&&typeof n[l]=="object"&&!Array.isArray(n[l]))for(let u in c)n[l][u]=c[u]}let a=this?.context?.document||globalThis.document;if(a&&i){let l=a.querySelectorAll("[data-key]");for(let c of l){let u=c.ref;if(!u)continue;let d=u.__ref?.__exec?.text;if(typeof d=="string"&&d.includes("{{"))try{let f=u.call("replaceLiteralsWithObjectFields",d,u.state);f!=null&&c.textContent!==f&&(c.textContent=f)}catch{}}}}async function cu(e,t,r){let n=this?.context,o=n?.polyglot,i=this?.state?.root||n?.state?.root;if(i?.translations?.[t]&&(i.translations[t][e]=r),o?.translations?.[t]&&(o.translations[t][e]=r),o?.fetch&&S(o.fetch)){let s=this.getDB||(()=>n.fetch),a=O(s)?await s.call(this):n.fetch;if(!a)return;let l=o.fetch.table||"translations",c=await a.upsert({from:l,data:{key:e,lang:t,text:r}});if(c?.error)throw c.error;return c.data}}async function fy(){let e=this?.context,t=e?.polyglot;if(!t)return;let r=this?.state?.root||e?.state?.root;if(!r)return;let n=t.storageLangKey||V1,i=go.get(n)||t.defaultLang||r.lang||"en";r.update&&r.lang!==i&&r.update({lang:i}),t.fetch&&!(t.translations&&t.translations[i])&&await this.call("loadTranslations",i)}function uu(e){try{let t=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||t?.defaultLang||"en",o=this?.state;if(!o)return"";let i=e.lastIndexOf(".");if(i===-1)return o[e+n]??"";let s=e.substring(0,i).split("."),a=o;for(let l=0;l<s.length;l++){if(a==null)return"";a=a[s[l]]}return a==null?"":a[e.substring(i+1)+n]??""}catch{return""}}var fu={name:"polyglot",render(e){e.parent&&e.parent.parent||e.__polyglotInitialized||(e.__polyglotInitialized=!0,fy.call(e))}};var Ns={polyglot:su,getLocalStateLang:uu,getActiveLang:Ms,getLang:Ms,setLang:lu,getLanguages:iu,loadTranslations:au,upsertTranslation:cu};sn();var du={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},"helvetica neue":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},"times new roman":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},"courier new":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},"open sans":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},"source sans":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans pro":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},"source sans 3":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},"dm sans":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},"work sans":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},"ibm plex sans":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},"plus jakarta sans":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},pu=e=>parseFloat(e.toFixed(4)),hF=(e,t,r)=>{let{ascent:n,descent:o,lineGap:i,unitsPerEm:s,capHeight:a}=t,l=Math.abs(o),c=n+l+i,u=r!==void 0?r:c/s*e,d=u/e,f=c/s,p=(n-a+i/2)/s-(d-f)/2,h=(l+i/2)/s-(d-f)/2;return{fontSize:`${pu(e/16)}rem`,lineHeight:`${pu(u)}px`,capHeightTrim:`${pu(-p)}em`,baselineTrim:`${pu(-h)}em`}},gF=(e,t)=>{if(typeof e=="number")return e;let r=t?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let i=String(e).toUpperCase(),s=n.sequence[i];if(s)return s.decimal||s.val}let o=parseFloat(e);return isNaN(o)?null:typeof e=="string"&&e.endsWith("rem")?o*(r.typography?.browserDefault||16):o},mF=(e,t)=>{let n=t?.designSystem?.font_family||{};if(e){let i=n[e];if(i?.metrics)return i.metrics;let s=String(e).toLowerCase().replace(/['"]/g,"").trim();if(du[s])return du[s]}let o=n.default||Object.keys(n)[0];if(o){let i=n[o];if(i?.metrics)return i.metrics;if(i?.value&&Array.isArray(i.value))for(let s of i.value){let a=s.toLowerCase().replace(/['"]/g,"").trim();if(du[a])return du[a]}}return null},z1=(e,t,r,n)=>{if(!e)return;let o=gF(t.fontSize,n);if(!o)return;let i=mF(t.fontFamily,n);if(!i)return;let s=t.lineHeight?parseFloat(t.lineHeight):void 0,{lineHeight:a,capHeightTrim:l,baselineTrim:c}=hF(o,i,s),u={};return t.lineHeight||(u.lineHeight=a),u["::before"]={content:'""',marginBottom:l,display:"table"},u["::after"]={content:'""',marginTop:c,display:"table"},u},U1={name:"capsize",init(e){e.useCapsize===void 0&&e.fontSize&&(e.useCapsize=!0)}};var Bs={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},mt=Object.create(null);for(let e in Bs)mt[Bs[e]]=e;var dy=Object.create(null);for(let e in Bs){let t=Bs[e];if(dy[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${dy[t]}"`);dy[t]=e}var Mr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Vs(e){return/^[A-Z]/.test(e)}function zs(e){return/^[:@.!$>&]/.test(e)||e.startsWith("> ")}function yF(e){return e.trim().split(/\s+/).filter(Boolean)}function W1(e){return e.replace(/_/g," ")}function bF(e){if(!e||typeof e!="string")return{};let t={},r=yF(e);for(let n of r){if(n.startsWith("!")){let l=n.slice(1),c=mt[l]||l;t[c]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=mt[n]||n;t[l]=!0;continue}let i=n.slice(0,o),s=n.slice(o+1),a=mt[i]||i;if(s.includes(",")){t[a]=s.split(",").map(W1);continue}t[a]=W1(s)}return t}function Us(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Us(r):r});let t={};for(let r in e){let n=e[r];if(Vs(r)){t[r]=py(n);continue}let o=mt[r]||r;if(zs(r)&&o===r){t[r]=py(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=py(n)}return t}function py(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Us(t):t}):typeof e=="object"?Us(e):e}function Ws(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Ws(r):r});let t={};if(typeof e.in=="string"){let r=bF(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Vs(r)){t[r]=hy(n);continue}let o=mt[r]||r;if(zs(r)&&o===r){t[r]=hy(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=hy(n)}return t}function hy(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Ws(t):t}):typeof e=="object"?Ws(e):e}function xF(e){let t="",r=0;for(;r<e.length;){if(e[r]==="\\"&&r+1<e.length){let n=e[r+1];if(n===","||n==="_"||n==="\\"){t+=n,r+=2;continue}}e[r]==="_"?t+=" ":t+=e[r],r++}return t}function vF(e){let t=[],r="",n=0;for(;n<e.length;){if(e[n]==="\\"&&n+1<e.length){r+=e[n]+e[n+1],n+=2;continue}if(e[n]===","){t.push(r),r="",n++;continue}r+=e[n],n++}return t.push(r),t}function H1(e){return e.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(e)?Number(e.slice(1)):xF(e)}function gy(e){if(!e||typeof e!="string")return{};let t={},r=e.trim().split(/\s+/).filter(Boolean);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),u=mt[c]||c;t[u]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=mt[n]||n;t[c]=!0;continue}let i=n.slice(0,o),s=n.slice(o+1),a=mt[i]||i,l=vF(s);if(l.length>1){t[a]=l.map(H1);continue}t[a]=H1(s)}return t}function Hs(e){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(function(r){return r!==null&&typeof r=="object"?Hs(r):r});let t={};if(typeof e.in=="string"){let r=gy(e.in);for(let n in r)t[n]=r[n]}for(let r in e){if(r==="in")continue;let n=e[r];if(Vs(r)){typeof n=="string"?t[r]=gy(n):t[r]=my(n);continue}let o=mt[r]||r;if(zs(r)&&o===r){typeof n=="string"?t[r]=gy(n):t[r]=my(n);continue}if(Mr.has(o)||Mr.has(r)){t[o]=n;continue}t[o]=my(n)}return t}function my(e){return e==null||typeof e=="function"?e:Array.isArray(e)?e.map(function(t){return t!==null&&typeof t=="object"?Hs(t):t}):typeof e=="object"?Hs(e):e}var _F={shorten:Us,stringify:Ws,stringifyFurther:Hs};function wF(e,t){if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>t(n));let r={};for(let n in e){let o=e[n];r[n]=o&&typeof o=="object"?t(o):o}return r}var SF=["components","pages","snippets"],hu={name:"shorthand",prepareContext(e){let t=e.shorthand;if(!t)return;let n=_F[t===!0?"shorten":t];if(n){for(let o of SF)e[o]&&(e[o]=wF(e[o],n));e.app&&typeof e.app=="object"&&(e.app=n(e.app))}}};var kF=0,CF=()=>`${Date.now().toString(36)}-${(kF++).toString(36)}`,le=(e,t,r={})=>({id:CF(),ts:Date.now(),type:e,level:t,...r}),AF=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},mo=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:AF(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null;var yo=e=>e?.context?.analyze,EF={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},OF=(e,{category:t,type:r,level:n})=>o=>{let i=yo(o);!i||!i.shouldCapture(t)||i.emit(le(r,n,{hook:e,element:mo(o)}))},q1=e=>(t,r)=>{let n=yo(t);!n||!n.shouldCapture("state")||n.emit(le("state","debug",{hook:e,element:mo(t),changedKeys:r?.changedKeys||null}))},qs={name:"analyze",error(e,t){let r=yo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(le("error","error",{hook:t?.hook||"error",element:mo(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=yo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(le("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=yo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=yo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(le("update","debug",{hook:"update",element:mo(e),durationMs:r}))},beforeStateUpdate:q1("beforeStateUpdate"),stateUpdate:q1("stateUpdate")};for(let[e,t]of Object.entries(EF))qs[e]=OF(e,t);M();var gu={error:0,warn:1,info:2,debug:3,trace:4};var yy=(e,t)=>{let r=gu[e],n=gu[t];return r==null||n==null?!0:r<=n},mu=e=>gu[e]!=null?e:"warn";M();var yu=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var TF=(e,t)=>{for(let r of t)if(r instanceof RegExp){if(r.test(e))return!0}else if(typeof r=="string"&&e.toLowerCase().includes(r.toLowerCase()))return!0;return!1},RF=(e,t)=>{if(t!=="redact"){if(t==="hash"){let r=0,n=String(e);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},by=(e,t,r,n)=>{if(n>6||e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>by(i,t,r,n+1));let o={};for(let i of Object.keys(e))if(TF(i,t)||yu.test(i)){let a=RF(e[i],r);a!==void 0&&(o[i]=a)}else o[i]=by(e[i],t,r,n+1);return o},xy=(e=[],t="mask")=>{let r=Array.isArray(e)?e:[e];return n=>{if(!n)return n;let{id:o,ts:i,type:s,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...h}=n,g=by(h,r,t,0);return{id:o,ts:i,type:s,level:a,hook:l,error:c,message:u,durationMs:d,element:f,target:p,...g}}};var G1=e=>{let t=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<"u"?navigator.userAgent:null,n=e.config.buildHash||null,o=e.config.appId||null;return i=>{if(!i)return i;let s=e.context?.routerOptions?.currentRoute||null,a=C,l=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...i,session:t,app:{id:o,build:n,route:s},meta:{ua:r,viewport:l}}}},K1=()=>e=>{if(!e)return e;if(e.element&&typeof e.element=="object"){let t=e.element;(t.node||t.parent||t.__ref)&&(e={...e,element:{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,tag:t.tag||null,component:t.component||null}})}return e.error instanceof Error&&(e={...e,error:{name:e.error.name,message:e.error.message,stack:e.error.stack}}),e},X1=(e=1e3,t=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||""}:${n.error?.message||""}`,i=r.get(o),s=n.ts||Date.now();if(i&&s-i<e)return null;if(r.set(o,s),r.size>t){let a=Math.ceil(t/10),l=0;for(let c of r.keys()){if(l++>=a)break;r.delete(c)}}return n}},Y1=e=>t=>{if(!t)return t;let r=e[t.type];return r==null||r>=1?t:Math.random()>r?null:t},Z1={redact:e=>xy(e.config.redact||[],e.config.maskStrategy),enrich:e=>G1(e),summarize:()=>K1(),dedupe:e=>X1(e.config.cache?.dedupeWindowMs||1e3),sample:e=>Y1(e.config.sample||{})},PF=(e,t)=>{if(typeof e=="function")return e;if(typeof e=="string"){let r=Z1[e];return r?r(t):null}return null},vy=e=>{let t=e.config,r=Array.isArray(t.transformers)?t.transformers.slice():[],n=r.findIndex(i=>i==="redact");n>=0&&r.splice(n,1);let o=[];t.redact!==!1&&o.push(Z1.redact(e));for(let i of r){let s=PF(i,e);s&&o.push(s)}return i=>{let s=i;for(let a of o){if(s==null)return null;let l=a(s);if(l==null)return null;if(Array.isArray(l)){let c=o.slice(o.indexOf(a)+1),u=[];for(let d of l){let f=d,p=!1;for(let h of c)if(f=h(f),f==null){p=!0;break}!p&&f!=null&&u.push(f)}return u}s=l}return s}};M();M();var bu=typeof C<"u"&&typeof C.document<"u",$F=5e3,IF=50,FF=3,jF=1500,DF=1e3,J1=e=>e?e.level==="error"||e.type==="error"?"bug":e.type==="network"?"network":e.type==="console"?e.level==="error"||e.level==="warn"?"bug":"log":e.level==="warn"?"bug":e.level==="info"?"log":"verbose":"verbose",LF=e=>{try{return JSON.stringify(e)}catch{return null}},MF=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},NF=e=>{if(!e)return null;let t=String(e),r;return(r=t.match(/Edg\/([\d.]+)/))?{name:"Edge",version:r[1]}:(r=t.match(/OPR\/([\d.]+)/))?{name:"Opera",version:r[1]}:(r=t.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:r[1]}:/Chrome\/([\d.]+)/.test(t)&&/Safari\//.test(t)?(r=t.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:r[1]}):(r=t.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:r[1]}:{name:null,version:null}},BF=()=>{if(!bu)return null;try{let e=C.document?.documentElement?.getAttribute("data-theme")||null,t=typeof C.matchMedia=="function"?C.matchMedia("(prefers-color-scheme: dark)").matches:null;return{active:e||(t?"dark":t===!1?"light":null),forced:e||null,prefers:t==null?null:t?"dark":"light"}}catch{return null}},VF=()=>{if(!bu)return null;let e=C.location,t=typeof navigator<"u"?navigator:null,r=typeof screen<"u"?screen:null;return{url:e?.href||null,path:e?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:t?.userAgent||null,browser:NF(t?.userAgent),language:t?.language||null,languages:t?.languages||null,timezone:MF(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:BF()}},_y=(e={})=>{let t=e.url,r=typeof e.transport=="function"?e.transport:null;if(!t&&!r)return()=>{};let n=e.apiKey||null,o=e.appKey||e.appId||null,i=e.tenantKey||e.tenant||null,s=e.release||null,a=e.env||null,l=e.sdk||null,c=typeof e.getAuth=="function"?e.getAuth:null,u=typeof e.getContext=="function"?e.getContext:null,d=typeof e.classify=="function"?e.classify:J1,f=typeof e.beforeSend=="function"?e.beforeSend:null,p=e.batchMs!=null?e.batchMs:$F,h=e.maxBatch||IF,g=e.maxRetries!=null?e.maxRetries:FF,m=e.backoffMs||jF,y=e.queueLimit||DF,b=e.sampleRate!=null?e.sampleRate:1,v=e.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),x=[],_=[],k=null,E=null,j=()=>{k||!x.length||(k=setTimeout(te,p))},w=F=>{if(E)return;let Q=m*Math.pow(2,Math.max(0,F-1));E=setTimeout(()=>{if(E=null,!_.length)return;let oe=_.shift();H(oe.envelope,oe.attempt)},Q)},I=F=>{let Q=u?zF(u):null,oe={v:1,session:{id:v,sentAt:Date.now()},app:{key:o,release:s,env:a},tenant:i,sdk:l,page:VF(),user:Q?.user||null,traits:Q?.traits||null,tags:Q?.tags||null,events:F};if(f)try{return f(oe)||null}catch{return oe}return oe},H=async(F,Q=1)=>{if(F)try{let oe=!0;if(r){let se=await r(F);oe=se!==!1&&se?.ok!==!1}else oe=await UF(t,F,{apiKey:n,getAuth:c});!oe&&Q<g&&(_.push({envelope:F,attempt:Q+1}),w(Q+1))}catch{Q<g&&(_.push({envelope:F,attempt:Q+1}),w(Q+1))}},te=(F=!1)=>{if(k&&(clearTimeout(k),k=null),!x.length)return;let Q=x;x=[];let oe=I(Q);if(oe){if(F&&bu&&navigator.sendBeacon&&t){let se=LF(oe);if(se)try{navigator.sendBeacon(t,new C.Blob([se],{type:"application/json"}));return}catch{}}H(oe)}};bu&&(C.addEventListener("pagehide",()=>te(!0),{passive:!0}),C.addEventListener("beforeunload",()=>te(!0),{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&te(!0)},{passive:!0}));let D=F=>{if(!F||b<1&&Math.random()>b)return;let Q={...F,log_type:d(F)};x.push(Q),x.length>y&&(x=x.slice(-y)),x.length>=h?te():j()};return D.flush=()=>te(!1),D.sessionId=v,D},zF=e=>{try{return e()}catch{return null}},UF=async(e,t,{apiKey:r,getAuth:n})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(r&&(o["X-Analyze-Key"]=r),n)try{let i=await n();i&&(o.Authorization=`Bearer ${i}`)}catch{}try{return(await fetch(e,{method:"POST",headers:o,body:JSON.stringify(t),keepalive:!0,credentials:"omit",mode:"cors"})).ok}catch{return!1}};var WF={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},HF="\x1B[0m",xu=typeof C<"u"&&typeof C.document<"u",eC=(e={})=>{let t=e.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return i=>{if(!i)return;let s=i.level==="error"?r:i.level==="warn"?n:o,a=`[analyze:${i.type}]`;if(xu)s(a,i);else{let l=WF[i.level]||"";s(`${l}${a}${HF}`,i)}}},tC=(e,t={})=>{let r=t.max||e.config.cache?.max||500,n=new Array(r),o=0,i=0,s=a=>{n[o]=a,o=(o+1)%r,i<r&&i++};return e.__memory={push:s,snapshot:()=>{let a=new Array(i),l=(o-i+r)%r;for(let c=0;c<i;c++)a[c]=n[(l+c)%r];return a},query:(a={})=>{let l=e.__memory.snapshot(),c=a.sinceMs?Date.now()-a.sinceMs:0;return l.filter(u=>!(!u||a.level&&u.level!==a.level||a.type&&u.type!==a.type||c&&u.ts<c))},clear:()=>{o=0,i=0}},s},rC=(e={})=>{let t=e.url,r=e.batchMs!=null?e.batchMs:5e3,n=e.maxBatch||50;if(!t)return()=>{};let o=[],i=null,s=()=>{if(i&&(clearTimeout(i),i=null),!o.length)return;let l=JSON.stringify({events:o});o=[];let c=xu?new C.Blob([l],{type:"application/json"}):l;if(xu&&navigator.sendBeacon)try{navigator.sendBeacon(t,c);return}catch{}typeof fetch<"u"&&fetch(t,{method:"POST",headers:{"Content-Type":"application/json","X-Analyze-Beacon":"1"},body:l,keepalive:!0}).catch(()=>{})};xu&&(C.addEventListener("pagehide",s,{passive:!0}),C.addEventListener("beforeunload",s,{passive:!0}));let a=l=>{l&&(o.push(l),o.length>=n?s():i||(i=setTimeout(s,r)))};return a.flush=s,a},Q1={console:eC,memory:tC,beacon:rC,remote:_y},wy=e=>{let t=Array.isArray(e.config.sinks)?e.config.sinks:["console"],r=[];for(let n of t)if(typeof n=="function")r.push(n);else if(typeof n=="string"){let o=Q1[n];if(!o)continue;r.push(n==="memory"?o(e,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=Q1[n.type];if(!o)continue;r.push(n.type==="memory"?o(e,n):o(n))}return r};M();var qF=typeof C<"u"&&typeof C.document<"u",GF=new Set(["password","hidden"]),nC=(e,t)=>{let r=0,n=null,o=null;return(...i)=>{let s=Date.now();s-r>=t?(r=s,e(...i)):(o=i,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(e(...o),o=null)},t-(s-r))))}},Sy="__analyzeKeyPath",bo=e=>{let t=e.target;if(!t)return{selector:null,key:null,path:null};if(t[Sy])return t[Sy];let r=[],n=t,o=0,i=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute("data-key");a&&(i==null&&(i=a),r.unshift(a))}n=n.parentNode,o++}let s;if(r.length)s={selector:null,key:i,path:r.join(" > "),tag:t.tagName?.toLowerCase()||null};else{let a=(t.tagName||"unknown").toLowerCase(),l=t.id?`#${t.id}`:"",c=t.className&&typeof t.className=="string"?"."+t.className.trim().split(/\s+/).slice(0,2).join("."):"";s={selector:`${a}${l}${c}`,key:null,path:null}}try{t[Sy]=s}catch{}return s},KF=(e,t)=>{if(t==="mask")return"***";if(t!=="redact"){if(t==="hash"){let r=0,n=String(e||"");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return"***"}},XF=e=>!!(!e||e.tagName==="INPUT"&&GF.has(e.type)||yu.test(e.name||"")||yu.test(e.id||"")||e.dataset?.analyze==="skip"),ky=e=>{if(!qF)return;let t=e.config.capture,r=e.config.throttle,n=e.__teardown,o=(i,s,a,l)=>{i.addEventListener(s,a,l),n.push(()=>i.removeEventListener(s,a,l))};if(t.errors&&(o(C,"error",i=>{e.emit(le("error","error",{hook:"window.onerror",message:i.message||null,error:i.error||null,source:i.filename||null,line:i.lineno||null,col:i.colno||null}))}),o(C,"unhandledrejection",i=>{let s=i.reason,a=s instanceof Error?s:null;e.emit(le("error","error",{hook:"unhandledrejection",message:a?.message||(typeof s=="string"?s:"Unhandled promise rejection"),error:a}))})),t.pointer){o(C,"click",s=>{e.emit(le("pointer","info",{hook:"click",target:bo(s),button:s.button,x:s.clientX,y:s.clientY,modifiers:oC(s)}))},{passive:!0,capture:!0}),o(C,"dblclick",s=>{e.emit(le("pointer","info",{hook:"dblclick",target:bo(s),x:s.clientX,y:s.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",s=>{e.emit(le("pointer","info",{hook:"contextmenu",target:bo(s),x:s.clientX,y:s.clientY}))},{passive:!0,capture:!0});let i=nC(s=>{e.emit(le("pointer","trace",{hook:"pointermove",x:s.clientX,y:s.clientY}))},r.pointermove);o(C,"pointermove",i,{passive:!0})}if(t.keyboard&&o(C,"keydown",i=>{e.emit(le("keyboard","info",{hook:"keydown",code:i.code,key:i.key&&i.key.length===1?"\xB7":i.key,modifiers:oC(i),target:bo(i)}))},{passive:!0,capture:!0}),t.forms){let i=s=>{let a=s.target;if(!a||!a.tagName||!["INPUT","TEXTAREA","SELECT"].includes(a.tagName))return;let c=XF(a),u=a.dataset?.analyze==="track",d=null;u&&!c?d=a.value:e.config.maskFormValues!==!1&&(d=KF(a.value,e.config.maskStrategy)),e.emit(le("forms","info",{hook:s.type,target:bo(s),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:d}))};o(C,"input",i,{passive:!0,capture:!0}),o(C,"change",i,{passive:!0,capture:!0}),o(C,"submit",s=>{e.emit(le("forms","info",{hook:"submit",target:bo(s)}))},{passive:!0,capture:!0})}if(t.scroll){let i=nC(()=>{e.emit(le("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},r.scroll);o(C,"scroll",i,{passive:!0,capture:!0})}if(t.viewport){let i=mi(()=>{e.emit(le("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},r.resize);o(C,"resize",i,{passive:!0}),o(C,"orientationchange",()=>{e.emit(le("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{e.emit(le("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),e.emit(le("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(t.console)for(let i of["log","warn","error","debug"]){let s=console[i];console[i]=function(...a){try{e.emit(le("console",i==="error"?"error":i==="warn"?"warn":"debug",{hook:`console.${i}`,args:a.map(iC)}))}catch{}return s.apply(console,a)},n.push(()=>{console[i]=s})}if(t.performance&&typeof PerformanceObserver<"u")try{let i=new PerformanceObserver(a=>{for(let l of a.getEntries())e.emit(le("performance","info",{hook:l.entryType,name:l.name,startTime:l.startTime,duration:l.duration,value:l.value!=null?l.value:null}))}),s=["largest-contentful-paint","layout-shift","longtask","paint","first-input","event"];for(let a of s)try{i.observe({type:a,buffered:!0})}catch{}n.push(()=>i.disconnect())}catch{}},oC=e=>({shift:!!e.shiftKey,ctrl:!!e.ctrlKey,alt:!!e.altKey,meta:!!e.metaKey}),YF=e=>{let t={name:e.name||"Error",message:typeof e.message=="string"?e.message:String(e),stack:typeof e.stack=="string"?e.stack:null};return e.cause!==void 0&&(t.cause=iC(e.cause)),t},iC=e=>{if(e==null)return e;if(e instanceof Error)return YF(e);if(typeof e=="object")try{return JSON.parse(JSON.stringify(e))}catch{return String(e)}return e};M();var ZF=typeof C<"u"&&typeof C.document<"u";var Cy=e=>{if(ZF&&e.config.capture.network){if(typeof C.fetch=="function"){let t=C.fetch.bind(C),r=function(n,o){if(o?.headers?.["X-Analyze-Beacon"])return t(n,o);let i=typeof n=="string"?n:n&&n.url||"",s=(o?.method||typeof n=="object"&&n?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return e.emit(le("network","info",{hook:"fetch.start",source:"window.fetch",url:i,method:s})),t(n,o).then(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;return e.emit(le("network",l.ok?"info":"warn",{hook:"fetch.success",source:"window.fetch",url:i,method:s,status:l.status,ok:l.ok,durationMs:c})),l}).catch(l=>{let c=(typeof performance<"u"?performance.now():Date.now())-a;throw e.emit(le("network","error",{hook:"fetch.error",source:"window.fetch",url:i,method:s,error:l,durationMs:c})),l})};C.fetch=r,e.__teardown.push(()=>{C.fetch=t})}if(typeof C.XMLHttpRequest=="function"){let t=C.XMLHttpRequest,r=t.prototype.open,n=t.prototype.send;t.prototype.open=function(o,i){return this.__analyze={method:String(o).toUpperCase(),url:String(i)},r.apply(this,arguments)},t.prototype.send=function(o){let i=this.__analyze;if(!i)return n.apply(this,arguments);let s=typeof performance<"u"?performance.now():Date.now();e.emit(le("network","info",{hook:"xhr.start",source:"xhr",url:i.url,method:i.method}));let a=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-s,u=this.status>=200&&this.status<400;e.emit(le("network",u?"info":"warn",{hook:"xhr.success",source:"xhr",url:i.url,method:i.method,status:this.status,ok:u,durationMs:c}))},l=()=>{let c=(typeof performance<"u"?performance.now():Date.now())-s;e.emit(le("network","error",{hook:"xhr.error",source:"xhr",url:i.url,method:i.method,status:this.status,durationMs:c}))};return this.addEventListener("loadend",a),this.addEventListener("error",l),n.apply(this,arguments)},e.__teardown.push(()=>{t.prototype.open=r,t.prototype.send=n})}}};var JF={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},QF={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},ej={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},tj={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},rj=e=>{let t={...JF,...e};return t.replay&&Object.assign(t,QF),t.telemetry&&Object.assign(t,ej),t.remote&&Object.assign(t,tj),t},nj=64,oj=()=>{if(typeof C>"u"||!C.location)return null;try{let t=new URLSearchParams(C.location.search).get("analyze");return t||null}catch{return null}},Ay=(e={})=>{let t=e===!0?{}:{...e};t.capture=rj(t.capture||{});let r=oj();(r==="debug"||t.debug)&&(t.level="debug",t.debug=!0,t.capture={...t.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r==="off"&&(t.enabled=!1),t.level=mu(t.level||"warn"),t.cache={max:500,dedupeWindowMs:1e3,...t.cache||{}},t.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...t.throttle||{}},t.maskFormValues==null&&(t.maskFormValues=!0),t.maskStrategy||(t.maskStrategy="mask"),Array.isArray(t.sinks)||(t.sinks=["console","memory"]),Array.isArray(t.transformers)||(t.transformers=["enrich","summarize"]);let n={config:t,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=vy(n),n.__sinks=wy(n))};return n.shouldCapture=i=>n.config.enabled===!1?!1:!!n.config.capture[i],n.emit=i=>{if(i&&n.config.enabled!==!1&&!n.__paused&&yy(i.level,n.config.level)){if(!n.__ready){if(i.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<nj&&n.__preBuffer.push(i);return}o(),sC(n,i)}},n.activate=i=>{if(n.context==null&&(n.context=i||null),n.__ready)return;n.__ready=!0;let s=n.__preBuffer;if(n.__preBuffer=[],s.length){o();for(let a of s)sC(n,a)}try{ky(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{Cy(n)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of n.__onActivate||[])try{a(n)}catch(l){console.error("[analyze] onActivate error:",l)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=i=>{n.config.level=mu(i)},n.setCapture=(i,s)=>{n.config.capture[i]=!!s},n.query=i=>n.__memory?n.__memory.query(i):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=i=>{if(!n.shouldCapture("network"))return;let s=i?.phase,a=s==="error"?"error":s==="success"&&i.ok===!1?"warn":"info";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:"network",level:a,hook:`fetch.${s||"unknown"}`,...i})},n.flush=()=>{if(n.__sinks)for(let i of n.__sinks)typeof i.flush=="function"&&i.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let i of n.__teardown)try{i()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=i=>{n.__onActivate.push(i)},n},sC=(e,t)=>{let r=e.__pipeline(t);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof e.config.onEvent=="function")try{e.config.onEvent(o)}catch{}for(let i of e.__sinks)try{i(o)}catch(s){console.error("[analyze] sink error:",s)}}};var $t=Object.create(null);$t.open="0";$t.close="1";$t.ping="2";$t.pong="3";$t.message="4";$t.upgrade="5";$t.noop="6";var Gs=Object.create(null);Object.keys($t).forEach(e=>{Gs[$t[e]]=e});var Ks={type:"error",data:"parser error"};var cC=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",uC=typeof ArrayBuffer=="function",fC=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Xs=({type:e,data:t},r,n)=>cC&&t instanceof Blob?r?n(t):aC(t,n):uC&&(t instanceof ArrayBuffer||fC(t))?r?n(t):aC(new Blob([t]),n):n($t[e]+(t||"")),aC=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function lC(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Ey;function dC(e,t){if(cC&&e.data instanceof Blob)return e.data.arrayBuffer().then(lC).then(t);if(uC&&(e.data instanceof ArrayBuffer||fC(e.data)))return t(lC(e.data));Xs(e,!1,r=>{Ey||(Ey=new TextEncoder),t(Ey.encode(r))})}var pC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ys=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<pC.length;e++)Ys[pC.charCodeAt(e)]=e;var hC=e=>{let t=e.length*.75,r=e.length,n,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)i=Ys[e.charCodeAt(n)],s=Ys[e.charCodeAt(n+1)],a=Ys[e.charCodeAt(n+2)],l=Ys[e.charCodeAt(n+3)],u[o++]=i<<2|s>>4,u[o++]=(s&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c};var ij=typeof ArrayBuffer=="function",Zs=(e,t)=>{if(typeof e!="string")return{type:"message",data:gC(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:sj(e.substring(1),t)}:Gs[r]?e.length>1?{type:Gs[r],data:e.substring(1)}:{type:Gs[r]}:Ks},sj=(e,t)=>{if(ij){let r=hC(e);return gC(r,t)}else return{base64:!0,data:e}},gC=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer;var mC="",yC=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,s)=>{Xs(i,!1,a=>{n[s]=a,++o===r&&t(n.join(mC))})})},bC=(e,t)=>{let r=e.split(mC),n=[];for(let o=0;o<r.length;o++){let i=Zs(r[o],t);if(n.push(i),i.type==="error")break}return n};function xC(){return new TransformStream({transform(e,t){dC(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var Oy;function vu(e){return e.reduce((t,r)=>t+r.length,0)}function _u(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function vC(e,t){Oy||(Oy=new TextDecoder);let r=[],n=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(n===0){if(vu(r)<1)break;let l=_u(r,1);i=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(vu(r)<2)break;let l=_u(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(vu(r)<8)break;let l=_u(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ks);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(vu(r)<o)break;let l=_u(r,o);a.enqueue(Zs(i?l:Oy.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ks);break}}}})}var Ty=4;function he(e){if(e)return aj(e)}function aj(e){for(var t in he.prototype)e[t]=he.prototype[t];return e}he.prototype.on=he.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};he.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};he.prototype.off=he.prototype.removeListener=he.prototype.removeAllListeners=he.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};he.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};he.prototype.emitReserved=he.prototype.emit;he.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};he.prototype.hasListeners=function(e){return!!this.listeners(e).length};var cr=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Be=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),_C="arraybuffer";function wu(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var lj=Be.setTimeout,cj=Be.clearTimeout;function ur(e,t){t.useNativeTimers?(e.setTimeoutFn=lj.bind(Be),e.clearTimeoutFn=cj.bind(Be)):(e.setTimeoutFn=Be.setTimeout.bind(Be),e.clearTimeoutFn=Be.clearTimeout.bind(Be))}var uj=1.33;function wC(e){return typeof e=="string"?fj(e):Math.ceil((e.byteLength||e.size)*uj)}function fj(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Su(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function SC(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function kC(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var ku=class extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}},fr=class extends he{constructor(t){super(),this.writable=!1,ur(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new ku(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let r=Zs(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let r=SC(t);return r.length?"?"+r:""}};var Js=class extends fr{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};bC(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,yC(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Su()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}};var CC=!1;try{CC=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var AC=CC;function dj(){}var Ry=class extends Js{constructor(t){if(super(t),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){let n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}},Nr=class e extends he{constructor(t,r,n){super(),this.createRequest=t,ur(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=wu(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=dj,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Nr.requestsCount=0;Nr.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",EC);else if(typeof addEventListener=="function"){let e="onpagehide"in Be?"pagehide":"unload";addEventListener(e,EC,!1)}}function EC(){for(let e in Nr.requests)Nr.requests.hasOwnProperty(e)&&Nr.requests[e].abort()}var pj=(function(){let e=OC({xdomain:!1});return e&&e.responseType!==null})(),Br=class extends Ry{constructor(t){super(t);let r=t&&t.forceBase64;this.supportsBinary=pj&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Nr(OC,this.uri(),t)}};function OC(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||AC))return new XMLHttpRequest}catch{}if(!t)try{return new Be[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var TC=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",$y=class extends fr{get name(){return"websocket"}doOpen(){let t=this.uri(),r=this.opts.protocols,n=TC?{}:wu(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;Xs(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Su()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}},Py=Be.WebSocket||Be.MozWebSocket,Vr=class extends $y{createSocket(t,r,n){return TC?new Py(t,r,n):r?new Py(t,r):new Py(t)}doWrite(t,r){this.ws.send(r)}};var xo=class extends fr{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let r=vC(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=xC();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){let n=t[r],o=r===t.length-1;this._writer.write(n).then(()=>{o&&cr(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Iy={websocket:Vr,webtransport:xo,polling:Br};var hj=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,gj=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function vo(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=hj.exec(e||""),i={},s=14;for(;s--;)i[gj[s]]=o[s]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=mj(i,i.path),i.queryKey=yj(i,i.query),i}function mj(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function yj(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var Fy=typeof addEventListener=="function"&&typeof removeEventListener=="function",Cu=[];Fy&&addEventListener("offline",()=>{Cu.forEach(e=>e())},!1);var wn=class e extends he{constructor(t,r){if(super(),this.binaryType=_C,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=vo(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=vo(r.host).host);ur(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=kC(this.opts.query)),Fy&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Cu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=Ty,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=wC(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cr(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fy&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Cu.indexOf(this._offlineEventListener);n!==-1&&Cu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};wn.protocol=Ty;var Au=class extends wn{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;wn.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;wn.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=r.name,this.emitReserved("upgradeError",f)}}))};function i(){n||(n=!0,u(),r.close(),r=null)}let s=d=>{let f=new Error("probe error: "+d);f.transport=r.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function c(d){r&&d.name!==r.name&&i()}let u=()=>{r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",o),r.once("error",s),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}},_o=class extends Au{constructor(t,r={}){let n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Iy[o]).filter(o=>!!o)),super(t,n)}};var s7=_o.protocol;function RC(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=vo(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}var Vy={};G(Vy,{Decoder:()=>Ny,Encoder:()=>My,PacketType:()=>J,isPacketValid:()=>Mj,protocol:()=>VC});var xj=typeof ArrayBuffer=="function",vj=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,PC=Object.prototype.toString,_j=typeof Blob=="function"||typeof Blob<"u"&&PC.call(Blob)==="[object BlobConstructor]",wj=typeof File=="function"||typeof File<"u"&&PC.call(File)==="[object FileConstructor]";function ea(e){return xj&&(e instanceof ArrayBuffer||vj(e))||_j&&e instanceof Blob||wj&&e instanceof File}function Qs(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Qs(e[r]))return!0;return!1}if(ea(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Qs(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Qs(e[r]))return!0;return!1}function $C(e){let t=[],r=e.data,n=e;return n.data=jy(r,t),n.attachments=t.length,{packet:n,buffers:t}}function jy(e,t){if(!e)return e;if(ea(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=jy(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=jy(e[n],t));return r}return e}function IC(e,t){return e.data=Dy(e.data,t),delete e.attachments,e}function Dy(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Dy(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Dy(e[r],t));return e}var NC=Od(MC(),1),Ly=(0,NC.default)("socket.io-parser"),BC=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],VC=5,J;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(J||(J={}));var My=class{constructor(t){this.replacer=t}encode(t){return Ly("encoding packet %j",t),(t.type===J.EVENT||t.type===J.ACK)&&Qs(t)?this.encodeAsBinary({type:t.type===J.EVENT?J.BINARY_EVENT:J.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===J.BINARY_EVENT||t.type===J.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),Ly("encoded %j as %s",t,r),r}encodeAsBinary(t){let r=$C(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Ny=class e extends he{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===J.BINARY_EVENT;n||r.type===J.BINARY_ACK?(r.type=n?J.EVENT:J.ACK,this.reconstructor=new By(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(ea(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(J[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===J.BINARY_EVENT||n.type===J.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let s=t.substring(i,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(s);if(!zC(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let i=r+1;for(;++r;){let s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(e.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return Ly("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case J.CONNECT:return Tu(r);case J.DISCONNECT:return r===void 0;case J.CONNECT_ERROR:return typeof r=="string"||Tu(r);case J.EVENT:case J.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&BC.indexOf(r[0])===-1);case J.ACK:case J.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},By=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let r=IC(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function jj(e){return typeof e=="string"}var zC=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function Dj(e){return e===void 0||zC(e)}function Tu(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lj(e,t){switch(e){case J.CONNECT:return t===void 0||Tu(t);case J.DISCONNECT:return t===void 0;case J.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&BC.indexOf(t[0])===-1);case J.ACK:return Array.isArray(t);case J.CONNECT_ERROR:return typeof t=="string"||Tu(t);default:return!1}}function Mj(e){return jj(e.nsp)&&Dj(e.id)&&Lj(e.type,e.data)}function tt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var Nj=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Co=class extends he{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[tt(t,"open",this.onopen.bind(this)),tt(t,"packet",this.onpacket.bind(this)),tt(t,"error",this.onerror.bind(this)),tt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,o,i;if(Nj.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let s={type:J.EVENT,data:r};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let u=this.ids++,d=r.pop();this._registerAckCallback(u,d),s.id=u}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,l=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(i),r.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...r){return new Promise((n,o)=>{let i=(s,a)=>s?o(s):n(a);i.withError=!0,r.push(i),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){let n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();let n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){let r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:J.ACK,id:t,data:o}))}}onack(t){let r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,t.data)}}};function kn(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}kn.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};kn.prototype.reset=function(){this.attempts=0};kn.prototype.setMin=function(e){this.ms=e};kn.prototype.setMax=function(e){this.max=e};kn.prototype.setJitter=function(e){this.jitter=e};var Ao=class extends he{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ur(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;let o=r.parser||Vy;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new _o(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=tt(r,"open",function(){n.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=tt(r,"error",i);if(this._timeout!==!1){let a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tt(t,"ping",this.onping.bind(this)),tt(t,"data",this.ondata.bind(this)),tt(t,"error",this.onerror.bind(this)),tt(t,"close",this.onclose.bind(this)),tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){cr(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Co(this,t,r),this.nsps[t]=n),n}_destroy(t){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(t){let r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var ta={};function Eo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=RC(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=ta[o]&&i in ta[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s,l;return a?l=new Ao(n,t):(ta[o]||(ta[o]=new Ao(n,t)),l=ta[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(Eo,{Manager:Ao,Socket:Co,io:Eo,connect:Eo});M();var Bj=new Set(["__proto__","constructor","prototype"]),UC=e=>{if(!Array.isArray(e))return!1;for(let t=0;t<e.length;t++)if(Bj.has(e[t]))return!1;return!0},Vj=(e,t)=>{!e||!UC(t)||t.reduce((r,n,o,i)=>{if(r&&n in r){if(o!==i.length-1)return r[n];delete r[n]}},e)},zj=(e,t,r,n=!1)=>{!e||!UC(t)||t.reduce((o,i,s,a)=>{if(o){if(s!==a.length-1)return!o[i]&&n&&(o[i]={}),o[i];o[i]=r}},e)},WC=(e,t)=>{let r=new Set;if(!Array.isArray(t))return r;for(let[n,o,i]of t)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":Vj(e,o);break;case"update":case"set":zj(e,o,i,!0);break;default:break}return r};var Uj=Object.create,$b=Object.defineProperty,Wj=Object.getOwnPropertyDescriptor,Hj=Object.getOwnPropertyNames,qj=Object.getPrototypeOf,Gj=Object.prototype.hasOwnProperty,K=(e,t)=>()=>(e&&(t=e(e=0)),t),Ib=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Y=(e,t)=>{for(var r in t)$b(e,r,{get:t[r],enumerable:!0})},Kj=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Hj(t))!Gj.call(e,o)&&o!==r&&$b(e,o,{get:()=>t[o],enumerable:!(n=Wj(t,o))||n.enumerable});return e},Xj=(e,t,r)=>(r=e!=null?Uj(qj(e)):{},Kj(t||!e||!e.__esModule?$b(r,"default",{value:e,enumerable:!0}):r,e)),Fb,jb,ce,be,Gf=K(()=>{"use strict";Fb=globalThis,jb=globalThis,ce=globalThis,be=ce.document}),Ha,Kf,ot,Xf=K(()=>{"use strict";Gf(),Ha=e=>(typeof Node=="object"?e instanceof ce.Node:e&&typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string")||!1,Kf=e=>(typeof HTMLElement=="object"?e instanceof ce.HTMLElement:e&&typeof e=="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string")||!1,ot=e=>typeof ce<"u"&&(ce.Node&&e instanceof ce.Node||ce.Window&&e instanceof ce.Window||e===ce||e===document)}),B,P,Pn,N,Ju,Qu,U,ef,ue,zo,Mt,pa,Zt,Db,Ie=K(()=>{"use strict";Xf(),B=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,P=e=>typeof e=="string",Pn=e=>typeof e=="number",N=e=>typeof e=="function",Ju=e=>e===!0||e===!1,Qu=e=>e===null,U=e=>Array.isArray(e),ef=e=>e instanceof Date,ue=e=>e===null?!1:typeof e=="object",zo=e=>e!==void 0,Mt=e=>e===void 0,pa={boolean:Ju,array:U,object:B,string:P,date:ef,number:Pn,null:Qu,function:N,objectLike:ue,node:Ha,htmlElement:Kf,defined:zo},Zt=e=>(...t)=>t.some(r=>pa[r](e)),Db=e=>(...t)=>!t.some(r=>pa[r](e))}),Lb,Mb,Nb,Bb,ja,Yf,Vb,zb,Zf,Ub,Wb,Hb,qb,Gb,Kb,Xb,Da,Jf,qa=K(()=>{"use strict";qr(),Ie(),Lb=(e,t)=>t.every(r=>e.includes(r)),Mb=(e,t)=>{let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r},Nb=(e,t)=>{if(P(t)&&(t=parseInt(t)),Pn(t)){if(t<0||t>=e.length||isNaN(t))throw new Error("Invalid index");e.splice(t,1)}else throw new Error("Invalid index");return e},Bb=(e,t,r)=>{t<0||r<0||t>=e.length||r>=e.length||([e[t],e[r]]=[e[r],e[t]])},ja=(...e)=>[].concat(...e),Yf=(e,t=[])=>e.reduce((r,n)=>er(r,st(n,{exclude:t}),t),{}),Vb=(e,t)=>{let r=e.indexOf(t);return r!==-1?e.slice(0,r):e},zb=(e,t)=>{if(!U(e))return;let r=e.indexOf(t);return r!==-1?e.slice(r+1):e},Zf=(e,t)=>{let r=e.indexOf(t);if(r>-1){let n=[...e];return n.splice(r,1),n}return e},Ub=(e,t)=>e.filter(r=>r!==t),Wb=(e,t)=>{let r=[];for(let n=0;n<e.length;n++)r.push(e[n]),n<e.length-1&&r.push(t);return r},Hb=(e,t,r)=>{let n=[...e],o=n.indexOf(t),i=n.indexOf(r);if(o!==-1&&i!==-1){let s=n.splice(o,1)[0],a=i<o?i:i+1;n.splice(a,0,s)}return n},qb=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Gb=(e,t)=>e.filter(r=>!t.includes(r)),Kb=(e,t)=>{let r=new Set(t);return e.filter(n=>!r.has(n))},Xb=(e,t)=>{if(!e)return 0;let r=0;for(let n=0;n<t.length;n++)e.includes(t[n])&&r++;return r},Da=e=>U(e)?[...new Set(e)]:e,Jf=(e,t)=>{for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!1,configurable:!0,writable:!0})}});function eE(e,t,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!e.includes(o))return e;let i=tE[n],s=t||this.state||{},a=this;return e.replace(i,(l,c,u,d)=>{let f=u.trim();if(d){let p=a?.context,h=p?.functions?.[d]||p?.utils?.[d]||p?.methods?.[d]||p?.snippets?.[d]||a?.[d];if(h&&typeof h=="function")try{return String(h.call(a,f)??"")}catch{return""}return""}if(c){let p=(c.match(/\.\.\//g)||[]).length,h=s;for(let m=0;m<p;m++){if(!h||!h.parent)return"";h=h.parent}if(f==="parent")return String(h.value??"");let g=Fo(h,f);return String(g??"")}else{let p=Fo(s,f);if(p!=null)return String(p);let h=a?.context?.polyglot;if(h?.translations){let g=s?.root?.lang||s?.lang||a?.context?.state?.lang||h.defaultLang||"en",m=h.translations[g];if(m){let b=Fo(m,f);if(b!=null&&typeof b!="object")return String(b);for(let v in m){let x=m[v];if(x&&typeof x=="object"&&!Array.isArray(x)){let _=Fo(x,f);if(_!=null&&typeof _!="object")return String(_)}}}let y=Fo(h.translations,f);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Qf,Yb,tE,Fo,Ga,Zb,HC,Jb,Qb,ex,qC,tx,rx,ed=K(()=>{"use strict";Qf=(e,t)=>{for(let r of t)if(e.includes(r))return!0;return!1},Yb=(e,t)=>{let r=new RegExp(`[${t.join("\\")}]`,"g");return e.replace(r,"")},tE={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Fo=(e,t)=>t.split(".").reduce((r,n)=>r?.[n],e),Ga=e=>`${e.charAt(0).toLowerCase()}${e.slice(1)}`,Zb=(e,t)=>{let r=e.split(`
|
|
73
|
+
`),n=-1,o=-1,i=-1,s=-1,a=new RegExp(`\\b${t}\\b\\s*:\\s*`),l=0,c=!1;for(let u=0;u<r.length;u++)if(a.test(r[u])&&!c){if(c=!0,n=u+1,i=r[u].indexOf(t)+1,r[u].includes("{}")){o=n,s=r[u].indexOf("{}")+3;break}let d=r[u].slice(i+t.length);if(d.includes("{")||d.includes("["))l=1;else{o=u+1,s=r[u].length+1;break}}else if(c&&(l+=(r[u].match(/{/g)||[]).length,l+=(r[u].match(/\[/g)||[]).length,l-=(r[u].match(/}/g)||[]).length,l-=(r[u].match(/]/g)||[]).length,l===0)){o=u+1,s=r[u].lastIndexOf("}")!==-1?r[u].lastIndexOf("}")+2:r[u].length+1;break}return{startColumn:i,endColumn:s,startLineNumber:n,endLineNumber:o}},HC=/\\([0-7]{1,3})/g,Jb=e=>e.replace(HC,(t,r)=>String.fromCharCode(parseInt(r,8))),Qb=e=>e.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),ex=e=>e.replace(/\/\/\/\/\/n/g,`
|
|
74
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),qC=/[^a-zA-Z0-9\s]/g,tx=e=>e.replace(qC,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()),rx=e=>e.replace(/%[0-9A-Fa-f]{2}/g,t=>String.fromCharCode(parseInt(t.slice(1),16)))}),qo,td,nx,On,Tn,La,rd,ox,Ka=K(()=>{"use strict";qo=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),td=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),nx=["ref","parent","__element","__depends","__ref","__children","root"],On=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Tn=new Set(["update","__element"]),La=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),rd=new Set(["node","context","extends","__element","__ref",...La,...On,...Tn]),ox=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])}),zy,zr,Me,ix,it,er,Uy,sx,st,ha,GC,ga,KC,XC,YC,Do,ZC,JC,Wy,ax,QC,eA,tA,lx,cx,ux,tf,fx,dx,nd,od,$n,rf,rA,px,hx,nf,gx,mx,yx,bx,xx,vx,_x,qr=K(()=>{"use strict";Gf(),Ie(),qa(),ed(),Xf(),Ka(),zy="production",zr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Me=(e,t,r,n)=>{if(N(e))return t?typeof e.call!="function"?e:e.call(t,t,r||t.state,n||t.context):void 0;if(e!=null&&t?.context?.plugins&&(U(e)||B(e)&&!ot(e))){let o=t.context.plugins;for(let i of o)if(i.resolveHandler){let s=i.resolveHandler(e,t);if(typeof s=="function")return Me(s,t,r,n)}}return e},ix=(e,t,r)=>{for(let n in t)e[n]=Me(t[n],r)},it=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(zr(o)||(n?r.has(o):r.includes(o))||e[o]===void 0&&(e[o]=t[o]));return e},er=(e,t,r=rd)=>Uy(e,t,r,null),Uy=(e,t,r,n)=>{if(e===t)return e;if(n){for(let i=0;i<n.length;i+=2)if(n[i]===e&&n[i+1]===t)return e}let o=r instanceof Set;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||zr(i)||i==="constructor"||i==="prototype"||(o?r.has(i):r.includes(i)))continue;let s=e[i],a=t[i];if(ue(s)&&ue(a)){let l=n||[];l.push(e,t),Uy(s,a,r,l),l.length-=2}else s===void 0&&(e[i]=a)}return e},sx=(e,t=[])=>{let r=t instanceof Set,n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(zr(o)||(r?t.has(o):t.includes(o))||(n[o]=e[o]));return n},st=(e,t={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:i=new WeakMap,handleExtends:s=!1}=t;if(!ue(e)||ot(e))return e;if(i.has(e))return i.get(e);let a=r instanceof Set?r:r.length>3?new Set(r):null,l=d=>a?a.has(d):r.includes(d),c=U(e)?[]:{};i.set(e,c);let u=[[e,c]];for(;u.length;){let[d,f]=u.pop();for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p)||zr(p)||p==="__proto__"||l(p))continue;let h=d[p];if(!(n&&h===void 0)&&!(o&&h===null)){if(ot(h)){f[p]=h;continue}if(s&&p==="extends"&&U(h)){f[p]=Yf(h,r);continue}if(N(h)){f[p]=h;continue}if(ue(h))if(i.has(h))f[p]=i.get(h);else{let g=U(h)?[]:{};i.set(h,g),f[p]=g,u.push([h,g])}else f[p]=h}}}return c},ha=(e,t={})=>{(e.node||e.__ref||e.parent||e.__element||e.parse)&&((e.__element||e.parent?.__element).warn("Trying to clone element or state at",e),e=e.parse?.());for(let r in e){let n=e[r];if(N(n))t[r]=n.toString();else if(B(n))t[r]={},ha(n,t[r]);else if(U(n)){let o=t[r]=[];for(let i=0;i<n.length;i++){let s=n[i];B(s)?(o[i]={},ha(s,o[i])):N(s)?o[i]=s.toString():o[i]=s}}else t[r]=n}return t},GC=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),ga=(e={},t=0)=>{if(e===null||typeof e!="object")return String(e);let r=!1;for(let i in e){r=!0;break}if(!r)return"{}";let n=" ".repeat(t),o=`{
|
|
75
|
+
`;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let s=e[i],a=!1;for(let c=0;c<i.length;c++)if(GC.has(i[c])){a=!0;break}let l=a?`'${i}'`:i;if(o+=`${n} ${l}: `,U(s)){o+=`[
|
|
76
|
+
`;for(let c of s)ue(c)&&c!==null?o+=`${n} ${ga(c,t+2)},
|
|
77
|
+
`:P(c)?o+=`${n} '${c}',
|
|
78
78
|
`:o+=`${n} ${c},
|
|
79
|
-
`;o+=`${n} ]`}else
|
|
80
|
-
`,"'"])?`\`${
|
|
81
|
-
`}return o+=`${n}}`,o},
|
|
82
|
-
`,
|
|
83
|
-
`)){h++;break}h++}o.push([f,h]),
|
|
84
|
-
First 200 chars of source: `+String(e).slice(0,200)),e)}},
|
|
85
|
-
`);t[n]=
|
|
86
|
-
return (${o}); })`)(t)}catch{try{t[n]=le.eval(`(${o})`)}catch{t[n]=o}}return t},u0=(e,t={verbose:!0})=>{try{return e?le.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},f0=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),rf=e=>{for(let t in e)return!1;return!0},d0=e=>M(e)&&rf(e),p0=()=>Object.create(null),od=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in t)n.includes(s)||!o&&Vr(s)||s==="constructor"||s==="prototype"||t[s]!==void 0&&(e[s]=t[s]);return e},sd=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)Vr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},Pn=(e,t,r={},n=new WeakMap)=>{if(!ce(e)||!ce(t)||st(e)||st(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||s&&s.has(a)||i&&Vr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];st(c)?e[a]=c:ce(l)&&ce(c)?e[a]=Pn(l,c,r,n):c!==void 0&&(e[a]=c)}return e},nf=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(t,i)||!nf(e[i],t[i],r))return!1}return!0},oA=new Set(["node","__ref"]),h0=(e,t,r=oA)=>{if(e===t)return!0;if(!ce(e)||!ce(t)||st(e)||st(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(i,l))return!1;let c=a[l],u=i[l];if(st(c)||st(u)){if(c!==u)return!1}else if(ce(c)&&ce(u)){if(!s(u,c))return!1}else if(c!==u)return!1}return!0}return s(e,t)},g0=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(W(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},of=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=of(e[r]));return t},m0=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},y0=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},b0=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},v0=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},x0=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(Uy==="test"||Uy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},w0=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},_0=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),ga,id,ad,S0=X(()=>{"use strict";qr(),ga=(function(){let e=0;function t(){return e++,e}return t})(),id=ga,ad=(e,t,r)=>(Be(r,e)||r||e.key||ga()).toString()}),Ft,k0,Vo,sf,C0,A0,E0,ld,O0,Ka,nE=X(()=>{"use strict";Ft="production",k0=Ft,Vo=(e=Ft)=>e==="production",sf=(e=Ft)=>e==="testing"||e==="test",C0=sf,A0=(e=Ft)=>e==="staging",E0=(e=Ft)=>e==="local",ld=(e=Ft)=>e==="development"||e==="dev"||e==="local",O0=(e,t=Ft)=>t[e],Ka=(e=Ft)=>!Vo(e)});function oE(e,t,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||e.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,t),a&&e.apply(o,s)}}function sE(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var T0,R0,sA,P0,Xa,La,Ma,Ya=X(()=>{"use strict";T0=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},R0=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},sA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,P0=e=>sA.test(e),Xa=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},La=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Ma=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[e]=="function"&&(s[e](t,...r),o=!0);return o}}),$0,XF=X(()=>{"use strict";je(),qr(),$0=(e,t)=>{let{__ref:r}=e,n=e.if;if(L(n)){let o;try{o=n(e,e.state,e.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Be(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),I0,j0,YF=X(()=>{"use strict";I0=(e,...t)=>{e&&t.map(r=>console.log(r))},j0=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function iE(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function aE(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var F0,D0,L0,M0,ZF=X(()=>{"use strict";je(),Kf(),F0=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),D0=(e,t,r=365)=>{if(Mt(be)||Mt(be.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;be.cookie=`${e}=${t};${o};path=/`},L0=e=>{if(Mt(be)||Mt(be.cookie))return;let t=`${e}=`,r=decodeURIComponent(be.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},M0=e=>{Mt(be)||Mt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Ba,B0,N0,lE=X(()=>{"use strict";Ba={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},B0=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),N0=e=>Ba.body.has(e)}),Pu,qy,Na,cd,Qe,z0,af,ma,V0,ya,lf,cf,ba,uf,Do,iA,Yt,Gy,va,xa,U0,wa,W0,H0,ff,df,pf,hf,gf,mf,q0,G0=X(()=>{"use strict";Ha(),dE(),qr(),je(),Pu="production",qy=e=>e.sourcemap!==!1&&Pu!=="production",Na=e=>{if(e.includes("+"))return e.split("+").filter(An);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!An(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},cd=(e,t,r)=>{let n=[],o=Na(r);o&&(n=[...o]);let s=e.extends;return s&&(n=W(s)?[...n,...s]:[...n,s]),n},Qe=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,s=t.context;if(o&&s?.components&&!Array.isArray(e)&&typeof e=="string"){let i=`${e}.${o}`;s.components[i]&&(e=i)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},z0=(e,t)=>{if(!e)return t;let{extends:r}=t,n=W(r)?r:[r],o=W(e)?e:[e];return{...t,extends:ja(o,n)}},af=()=>Math.random().toString(36).substring(2),ma={},V0={},ya=e=>ma[e.__hash],lf=(e,t)=>{let r=af();return R(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ma[r]=t),t},cf=(e,t)=>e.__hash?t.concat(ya(e)):lf(e,t),ba=(e,t,r,n=new Set,o,s)=>{for(let i of e)W(i)?ba(i,t,r,n,o,s):Do(i,t,r,n,o,void 0,s);return t},uf=(e,t,r,n=new Set,o,s,i)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(s)),a&&Do(a,t,r,n,o,s,i),t},Do=(e,t,r,n=new Set,o,s,i)=>{if(!e||n.has(e))return t;if(W(e))return ba(e,t,r,n,o,i);let a=s;return R(e)?(a=e,e=xa(e,r)):i&&M(e)&&i.has(e)&&(a=i.get(e)),n.add(e),e?.extends?uf(e,t,r,n,o,a,i):e&&(t.push(e),o&&o.push(a)),t},iA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Yt=(e,t,r,n,o)=>{t=at(t);for(let s in t){if(iA.has(s))continue;let i=e[s],a=t[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)e[s]=a,r&&n?M(a)&&!W(a)?(r[s]=r[s]||{},Gy(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(M(i)&&M(a)){let l=r?r[s]=r[s]||{}:void 0,c=o?.[s];An(s)?e[s]=Yt(i,a,l,n,c):Yt(i,a,l,n,c)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(W(i)&&W(a))e[s]=i.concat(a);else if(W(i)&&M(a)){let l=Yt({},i);e[s]=Yt(l,a)}}}}return e},Gy=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=t[o];M(s)&&!W(s)?(e[o]=e[o]||{},Gy(e[o],s,r,n)):e[o]=r}}},va=(e,t,r)=>e.reduce((n,o,s)=>{let i=at(o),a=r?r[s]:void 0;return Yt(n,i,t,a)},{}),xa=(e,t,r={},n)=>{let o=t?.components||r.components,s=t?.pages||r.pages;if(R(e)){let i=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=s&&e.charCodeAt(0)===47&&s[e];if(i)return i;if(a)return a;r.verbose&&(Pu==="test"||Pu==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},U0=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),wa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ya(e)||[];let o=Do(e,[],t,new Set,r,void 0,n);return r?o:cf(e,o)},W0=(e,t)=>{if(!e)return t;let r=W(e)?e:[e];return ja(r,t)},H0=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(An(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},ff=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[i,...a]=e.extends;if(typeof i=="string"&&s&&o?.components){let l=`${i}.${s}`;o.components[l]?Qe([l,...a],e):Qe(e.extends,e)}else Qe(e.extends,e)}else if(typeof e.extends=="string"&&s&&o?.components){let i=`${e.extends}.${s}`;o.components[i]?Qe(i,e):Qe(e.extends,e)}else Qe(e.extends,e);return df(e,t,r),pf(e,t,r),hf(e,t,r),e.component&&Qe(Be(e.component,e),e),o.defaultExtends&&Qe(o.defaultExtends,e),Fa(n.__extends)},df=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Qe(t.childProps.extends,e),n.__extends},pf=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,s=t.childExtends;return!o&&s&&Qe(s,e),n.__extends},hf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,i=e.key==="__text";return o&&!i&&!s&&Qe(o,e),n.__extends},gf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,s=e.variant,i=qy(r),a=i?[...n.__extends]:null,l=Fa(n.__extends.map((c,u)=>xa(c,o,r,u===0&&s)));if(i){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&M(p)&&R(h)&&c.set(p,h)}let u=[],d=wa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=wa(l,o);n.__extendsStack=c}return n.__extendsStack},mf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(qy(r)){let s={},i=n.__extendsNames||[],a=va(o,s,i),l={};Yt(e,a,l,void 0,s),n.__sourcemap=l}else{let s=va(o);Yt(e,s)}return e},q0=(e,t,r={})=>(ff(e,t,r),gf(e,t,r),mf(e,t,r),e)});function cE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function uE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function fE(e,t,r){let{context:n}=t||{},[o]=Na(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var An,dE=X(()=>{"use strict";G0(),je(),An=e=>{if(!R(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function JF(e,t){let{props:r,on:n}=t,o=qa(e.split("on")[1]),s=n[o],i=r[e];L(s)?n[o]=(...a)=>{if(s(...a)!==!1&&L(i))return i(...a)}:n[o]=i}var QF=X(()=>{"use strict";td(),je()});function K0(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(L(o)||o!=null&&Xa(this.context))){let f=qa(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let s=this.define?.[n],i=this.context?.define?.[n],a=M(s)||L(s),l=M(i)||L(i);if(a||l)continue;let c=n.charAt(0);if(Q0.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=bf.test(n)||J0.test(n)||hE(o),d=Ho.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function X0(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=L(o)||o!=null&&Xa(this.context);if(s&&i){JF(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Q0.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=M(l)||L(l),d=M(c)||L(c),f=bf.test(n)||J0.test(n),p=Ho.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Y0(e=this){let t=[];return K0.call(this,e,{cachedKeys:t}),X0.call(this,e,{cachedKeys:t}),e}function pE(e={}){return e.on||(e.on={}),e.props||(e.props={}),Y0.call(this,e)}function Z0(e,t){this.__element.update({props:e},t)}function yf(e){let t={update:Z0.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var bf,J0,Q0,aA,hE,ud,_a,ev,Sa,ka,Ca,vf,Aa,tv,rv,gE=X(()=>{"use strict";Ga(),QF(),qr(),je(),td(),Ya(),bf=/^[A-Z]/,J0=/^\d+$/,Q0=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),aA=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),hE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(aA.has(t)||bf.test(t))return!0;return!1},ud=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ce(n)?{...n}:(o.__propsStack.push(n),{})},_a=e=>Zt(e)("string","number")?{inheritedString:e}:e,ev=(e,t)=>!e||!t.length?!1:t.includes(e),Sa=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let s=o[e.key],i=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(i&&!a){let l=_a(i);n.unshift(l)}if(s){let l=_a(s);n.unshift(l)}return n},ka=e=>{let t=new Set;return e.filter(r=>!r||On.has(r)||t.has(r)?!1:(t.add(r),!0))},Ca=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(On.has(o))return n;for(;L(o);)o=Be(o,t);return er(n,at(o,{exclude:On}))},{}),yf(t),t.props),vf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...Sa(e,t)]),M(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),W(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=ka(o),n.__propsStack},Aa=(e,t)=>{let{__ref:r}=e,n=vf(e,t);n.length?Ca(n,e):(r.__propsStack=[],e.props={})},tv=function(e,t,r){let{__ref:n}=e;if(n.__if)Aa(e,t);else try{Aa(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return yf(e),e},rv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],s=Sa(t,r);return s.length&&(o=[...s,...o]),e&&(o=[e,...o]),n.__propsStack=ka(o),n.__propsStack.length&&Ca(n.__propsStack,t),t}}),Ky,xf,wf,_f,Sf,nv,kf,Cf,Af,ov,eD=X(()=>{"use strict";G0(),S0(),Yf(),gE(),lE(),je(),Ky="production",xf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,s=Ba.body.has(r)&&r;return{text:e,tag:n||o||s||"string"}},wf=(e,t,r)=>{if(e===void 0)return(Ky==="test"||Ky==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?xf(e,t,r):L(e)?{props:e}:e},_f=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},Sf=(e,t,r,n,o)=>{if(!t)return o;if(Wa(t)){let s={key:":root",node:t};return o[`${r}_parent`]=s,s}return t},nv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},kf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},Cf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Af=(e,t,r)=>{let n=_f(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=cd(e,t,r),n.path=kf(e,t,r),n},ov=(e,t,r,n,o)=>{let s=e?.__hash?{extends:[e]}:wf(e,t,r);if(!s)return;let i=Sf(s,t,r,n,o),a=ad(s,i,r);Af(s,i,a);let l=ud(s,i,a),c=Cf(s,i,a,n,o),u=s.on||{};return{...s,key:a,props:l,parent:i,context:c,on:u}}}),sv,Ef,Of,Tf,Rf,iv,Pf,av,lv,cv,uv,tD=X(()=>{"use strict";Ha(),Ga(),qr(),je(),sv=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Zt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Ef=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Of=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Tf=(e,t,r={})=>{let n=R(e)?e.split("/"):[e],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let l=t[i];l||(l=t[i]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Rf=(e,t,r={})=>{let n=e.__ref.__state;if(!Pf(e))return;let o=Ef(n,t.state),s=t.state;if(o)s=o,n=n.replaceAll("~/","");else{let i=Of(n,t.state);i&&(s=i,n=n.replaceAll("../",""))}if(s)return Tf(n,s,r)},iv=(e,t)=>{let r=e.__ref,n=Rf(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return at(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Pf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},av=function(e){return ce(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},lv=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?t||{}:{},o=o[r[i]];return n},cv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=at(n,En),s={[e.key]:o},i=M(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Qf(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},uv=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){er(e,t,En);return}(o?sd:Pn)(e,t,En)}}),fv,rD=X(()=>{"use strict";fv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,s=n?.globalScope;if(!e.scope)o?e.scope=o:s?e.scope=Object.create(s):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(e.scope,i)}}}),Xy,$f,Uo,If,dv,mE=X(()=>{"use strict";je(),Ya(),Xy=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},$f=(e,t,r,n,o)=>{if(e=La(e,t),!!L(e))try{let s=e.call(t,t,r||t.state,n||t.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",i.message):console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s),t.context?.strictMode)throw s}},Uo=(e,t,r)=>{if(!t)throw new Error("Element is required");Ma(e,t,r);let n=Xy(e,t);if(n){let{state:o,context:s}=t;return $f(n,t,o,s,r)}},If=(e,t,r,n,o,s)=>{if(e=La(e,r),!!L(e))try{let i=e.call(r,t,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},dv=(e,t,r,n)=>{Ma(e,r,t,n);let o=Xy(e,r);if(o){let{state:s,context:i}=r;return If(o,t,r,s,i,n)}}}),pv,fd,yE=X(()=>{"use strict";pv={},fd={}}),bE={};Y(bE,{setup:()=>vE,supabaseAdapter:()=>gb});var Yy,lA,vE,$u,cA,gb,nD=X(()=>{"use strict";Yy=new Map,lA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,vE=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=lA(l,t,o===!1),u=Yy.get(c);return u||(u=await n(l,t,a),u?.auth&&Yy.set(c,u)),!u||!u.auth?null:gb(u)},$u=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},cA=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;e=e.order(s,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},gb=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=$u(a,o),a=cA(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):e.rest&&(e.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:s})=>{let i=(r?e.schema(r):e).from(t).update(n);return i=$u(i,o),i.select(s||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=$u(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let s=n||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),xE={};Y(xE,{restAdapter:()=>mb,setup:()=>wE});var uA,dr,wE,mb,oD=X(()=>{"use strict";uA=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},dr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},wE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return mb(e,t,r,n)},mb=(e,t={},r,n={})=>{let o=r?.token||null,s=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},i=c=>({...s(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await dr(l(r.sessionUrl,r.baseUrl),a({headers:s()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await dr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await dr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(x=>`${x.by}:${x.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),dr(uA(y||e,c||"",b),a({headers:s(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>dr(l(`rpc/${c}`,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>dr(l(c,f),a({method:"POST",headers:i(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return dr(l(m,h),a({method:f||"PATCH",headers:i(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return dr(l(h,f),a({method:"DELETE",headers:s(d)}))}}}}),_E={};Y(_E,{localAdapter:()=>yb,setup:()=>SE});var Iu,fA,SE,yb,sD=X(()=>{"use strict";Iu=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},fA=(e,{order:t,limit:r,offset:n,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((l,c)=>l[i]<c[i]?a?-1:1:l[i]>c[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},SE=async({data:e,...t})=>yb(e,t),yb=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(s+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(s+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=i(u).filter(h=>Iu(h,d));return fA(p,f)},insert:async({from:u,data:d})=>{let f=i(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=i(u),h=[];for(let g=0;g<p.length;g++)if(Iu(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=i(u),p=[];for(let h=f.length-1;h>=0;h--)Iu(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),aa={};Y(aa,{createAdapter:()=>CE,default:()=>OE,executeFetch:()=>Uu,fetchPlugin:()=>EE,initAdapterAuth:()=>la,parseDuration:()=>jo,queryClient:()=>AE,registerAdapter:()=>kE,resolveDb:()=>bb});var dA,ta,Zy,kE,CE,bb,jo,Me,Jy,Eo,pA,Oo,To,Ro,ra,ju,na,hA,Qy,Fu,eb,tb,kn,rb,gA,nb,mA,oa,ob,la,Du,nt,bt,Po,Ur,It,pr,yA,bA,vA,Lu,xA,Uu,AE,EE,OE,Lo=X(()=>{"use strict";B(),dA=["select","rpc","insert","update","delete","subscribe"],ta=Symbol.for("@symbo.ls/fetch:BUILTIN_ADAPTERS"),Zy=(()=>{if(typeof globalThis<"u"&&globalThis[ta])return globalThis[ta];let e={supabase:()=>Promise.resolve().then(()=>(nD(),bE)),rest:()=>Promise.resolve().then(()=>(oD(),xE)),local:()=>Promise.resolve().then(()=>(sD(),_E))};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ta,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ta]}catch{}return e})(),kE=(e,t)=>{Zy[e]=t},CE=e=>{let t={};for(let r of dA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},bb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Zy[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},jo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Me=new Map,Jy=new Map,Eo=new Map,pA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=mA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},Oo=e=>Me.get(e)||null,To=(e,t,r)=>{let n=Me.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Me.set(e,o);let s=Jy.get(e);if(s)for(let i of s)L(i)&&i(o);return o},Ro=e=>{if(e){let t=Me.get(e);t&&(t.stale=!0);return}for(let[,t]of Me)t.stale=!0},ra=e=>{if(e){Me.delete(e);return}Me.clear()},ju=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:R(e)?{staleTime:jo(e),gcTime:3e5}:{staleTime:jo(e.stale||e.staleTime)||6e4,gcTime:jo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},na=null,hA=()=>{na||(na=setInterval(()=>{let e=Date.now();for(let[t,r]of Me){let n=Jy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Me.delete(t)}},3e4),na.unref&&na.unref())},hA(),Qy=3,Fu=e=>Math.min(1e3*2**e,3e4),eb=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Qy,delay:Fu}:typeof t=="number"?{count:t,delay:Fu}:{count:t.count??Qy,delay:L(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Fu}},tb=async(e,t)=>{let{count:r,delay:n}=t,o;for(let s=0;s<=r;s++)try{let i=await e();if(i?.error){if(o=i.error,s<r){let a=L(n)?n(s,o):n;await new Promise(l=>setTimeout(l,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=L(n)?n(s,i):n;await new Promise(l=>setTimeout(l,a));continue}throw i}return{data:null,error:o}},kn={focus:new Set,online:new Set},rb=!1,gA=()=>{if(rb||typeof window>"u")return;rb=!0;let e=()=>{for(let r of kn.focus)r()},t=()=>{for(let r of kn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},nb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(R(e))return{from:e,method:"select",query:!0,on:"create"};if(M(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},mA=e=>(!e||L(e),e),oa=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},ob=(e,t,r)=>{let n;if(!e)n=void 0;else if(L(e))n=e(t,t.state);else{n={};for(let o in e){let s=e[o];n[o]=L(s)?s(t,t.state):s}}return n},la=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},Du=async(e,t)=>{if(L(e.select))return e.auth!==!1&&await la(e,t),e;if(e.__resolved)return e.auth!==!1&&await la(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=bb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await la(r,t),r):null},nt=(e,t,...r)=>{let n=L(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},bt=(e,t,r,...n)=>{let o=e&&L(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},Po=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())t[s]=i;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Ur=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...n}):s.update({[i]:t},{preventFetch:!0,...n})}else{let i=r?{[r]:t}:t;s.update(i,{preventFetch:!0,...n})}},It=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},pr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||L(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||L(e.skip)&&e.skip(t,t.state))return;let s=await Du(o,r);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:x,headers:v,baseUrl:w,page:k,cursor:E,getNextPageParam:j,getPreviousPageParam:_,infinite:$,placeholderData:q,initialData:te,select:F,keepPreviousData:I}=e,Q=R(F)?F:void 0;if(c&&L(t.getQuery)){let ue=t.getQuery(s.name||"paths");ue&&(Q=ue.select||ue.length&&ue.join(",")||Q)}let oe=ob(u,t,r),ie=ju(d),Nt=eb(e),Kr=oa(t,r),Ad=Kr?`:${Kr}`:"",Z=ie?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${$?":infinite":""}${k?":p"+JSON.stringify(k):""}${Ad}`:null;if(!i.__fetchInitialized&&Z&&(i.__fetchInitialized=!0,te!==void 0)){let ue=L(te)?te():te;To(Z,ue,null)}if((l==="select"||l==="rpc")&&Z&&ie){let ue=Oo(Z);if(ue&&!ue.error){let z=Date.now()-ue.time,V=ue.stale||z>(ie.staleTime||0),N=ue.data;if(L(F)&&(N=F(N,t,t.state)),f&&(N=f(N,t,t.state)),Ur(t,N,m),!V){It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(q!==void 0){let z=L(q)?q(t,t.state):q;z!==void 0&&Ur(t,z,m)}}if(Z&&Eo.has(Z)&&!n.force){let ue=Eo.get(Z);try{let z=await Promise.race([ue,new Promise((V,N)=>setTimeout(()=>N("DEDUP_TIMEOUT"),15e3))]);if(z?.data!==void 0){let V=z.data;L(F)&&(V=F(V,t,t.state)),f&&(V=f(V,t,t.state)),Ur(t,V,m),nt(t,"onFetchComplete",V),bt(e,t,"onFetchComplete",V)}}catch{}return}let Ed=!Oo(Z)?.data;It(t,{isFetching:!0,isLoading:Ed,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),bt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Xr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Kr});let Od=tb(async()=>{if(h!==!1&&s.auth!==!1&&s.getSession){let N=await s.getSession();if(h===!0&&!N){let U={message:"Not authenticated"};return It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:U,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",U),bt(e,t,"onFetchError",U),{data:null,error:U}}}let ue=s[l];if(!L(ue))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let z={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:x,headers:v,baseUrl:w},V=oa(t,r);if(V&&(z.headers={...z.headers,"Accept-Language":V}),k!==void 0){if(M(k))k.offset!==void 0&&(z.offset=k.offset),k.limit!==void 0&&(z.limit=k.limit),k.cursor!==void 0&&(z.params={...z.params,cursor:k.cursor});else if(typeof k=="number"){let N=e.pageSize||y||20;z.offset=(k-1)*N,z.limit=N}}if(E!==void 0&&(z.params={...z.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let N;if(g===!0||e.on==="submit")N=Po(t);else if(W(g)){let U=Po(t);N={};for(let Ae of g)N[Ae]=U[Ae]}else t.state?.parse?N=t.state.parse():M(t.state)&&(N={...t.state});f&&(N=f(N,t,t.state)),z.data=N}if(l==="rpc"){let N=oe;if(e.on==="submit"){let U=Po(t);N=e.transformParams?e.transformParams(U,t,t.state):U}z.params=N}if(l==="subscribe"){let N=s.subscribe({from:a,params:oe,on:e.subscribeOn},(U,Ae,el)=>{Ur(t,U,m),nt(t,"onFetchComplete",U),bt(e,t,"onFetchComplete",U)});return i.__unsubscribe=N,{data:null,error:null,subscribed:!0}}return ue(z)},Nt);Z&&Eo.set(Z,Od);try{let ue=await Od;if(ue?.subscribed)return;let{data:z,error:V}=ue||{};if(V){Z&&To(Z,null,V),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",V),bt(e,t,"onFetchError",V),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:V.message||V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr});return}if(z!==void 0){if((l==="select"||l==="rpc")&&Z){let U=To(Z,z,null);U.gcTime=ie?.gcTime||3e5}let N=z;$&&W(z)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(z):i.__pages.push(z),N=i.__pages.flat(),j&&(i.__nextPageParam=j(z,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),_&&(i.__prevPageParam=_(z,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),L(F)&&(N=F(N,t,t.state)),f&&(N=f(N,t,t.state)),(!I||N!==void 0)&&Ur(t,N,m),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",N),bt(e,t,"onFetchComplete",N),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}}catch(ue){It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ue,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",ue),bt(e,t,"onFetchError",ue),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:ue.message||String(ue),durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}finally{Z&&Eo.delete(Z)}},yA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||pr;if(n==="submit"){let i=l=>{l.preventDefault(),s(e,t,r)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(e,t,r),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,r))},bA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),gA();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:jo(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&pr(e,t,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=oa(t,r),a=pA(e,i),l=Oo(a),c=ju(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&pr(e,t,r,{force:!0})};kn.focus.add(s),n.__fetchCleanups.push(()=>kn.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>pr(e,t,r,{force:!0});kn.online.add(s),n.__fetchCleanups.push(()=>kn.online.delete(s))}},vA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():M(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=s;let i=L(t.optimistic)?t.optimistic(r,s,e):t.optimistic;return i!==void 0&&Ur(e,i,o),s},Lu=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ur(e,n,t.as),delete r.__optimisticSnapshot)},xA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await Du(n,r);if(!o)return;let s=t.__ref,{method:i,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:v}=e,w;if(l===!0||d==="submit")w=Po(t);else if(W(l)){let _=Po(t);w={};for(let $ of l)w[$]=_[$]}else t.state?.parse?w=t.state.parse():M(t.state)&&(w={...t.state});c&&(w=c(w,t,t.state)),L(y)&&y(w,t,t.state);let k=m?vA(t,e,w):null;s.__fetching=!0,It(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),nt(t,"onFetchStart"),bt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,j=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:i});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&Lu(t,e);let ie={message:"Not authenticated"};nt(t,"onFetchError",ie),bt(e,t,"onFetchError",ie);return}}let _=o[i];if(!L(_))return;let $={from:a,data:w,headers:p,baseUrl:h};e.params&&($.params=ob(e.params,t,r));let q=oa(t,r);q&&($.headers={...$.headers,"Accept-Language":q});let te=eb(e),F=await tb(()=>_($),te),{data:I,error:Q}=F||{};if(Q){k!==void 0&&Lu(t,e),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",Q),L(x)&&x(Q,w,t),L(v)&&v(null,Q,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-j});return}if(delete s.__optimisticSnapshot,I!==void 0){let oe=u?{[u]:I}:I;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),nt(t,"onFetchComplete",I),bt(e,t,"onFetchComplete",I),L(b)&&b(I,w,t),L(v)&&v(I,null,w,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-j}),g){let oe=W(g)?g:[g];for(let ie of oe)if(ie===!0||ie==="*")for(let[Nt]of Me)Nt.startsWith(a+":")&&Ro(Nt);else Ro(ie)}}catch(_){k!==void 0&&Lu(t,e),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:_,status:"error",fetchStatus:"idle"}),nt(t,"onFetchError",_),bt(e,t,"onFetchError",_),L(x)&&x(_,w,t),L(v)&&v(null,_,w,t),E&&E({phase:"error",mode:"mutation",from:a,method:i,error:_.message||String(_),durationMs:(typeof performance<"u"?performance.now():Date.now())-j})}finally{s.__fetching=!1}},Uu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Be(e,t);if(!o)return;let s=W(o)?o.map(a=>nb(Be(a,t),t)).filter(Boolean):[nb(o,t)].filter(Boolean);for(let a of s){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?xA:pr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{yA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&bA(a,t,n)}let i=t.__ref;i.refetch=a=>{for(let l of s)pr(l,t,n,{force:!0,...a})},i.fetchNextPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__nextPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"next",force:!0})},i.fetchPreviousPage=()=>{let a=s[0];if(!a||!a.infinite)return;let l=i.__prevPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"previous",force:!0})}},AE={invalidateQueries:e=>{if(!e){Ro();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&Ro(t);else if(W(e)){let t=e.join(":");for(let[r]of Me)r.includes(t)&&Ro(r)}},removeQueries:e=>{if(!e){ra();return}if(R(e))for(let[t]of Me)(t.startsWith(e)||t.includes(e))&&ra(t)},getQueryData:e=>Oo(e)?.data??void 0,setQueryData:(e,t)=>{let r=Oo(e),n=L(t)?t(r?.data):t;To(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await Du(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=n[e.method||"select"];if(!L(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=To(o,i.data,null);a.gcTime=ju(e.cache)?.gcTime||3e5}return i},getCache:()=>Me,clear:()=>ra(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Me)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||ra(r))}},EE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Eo.clear(),Uu(t,e,e.state,e.context))}},OE=Uu});function TE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function RE(e){let t=this,{parent:r}=t;if(L(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function PE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=t[s];if(s===e)return i;if(L(e)){let l=e(i,i.state,i.context);if(i.state&&l)return i}let a=i?.lookdown?.(e);if(a)return a}}function $E(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===e)t.push(a);else if(L(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function hv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(M(n)&&o)hv.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(s,i,"important")}}return t}}function IE(e){let t=this;if(Uo("beforeRemove",t,e)===!1)return t;L(t.node.remove)?t.node.remove():Vo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Jf(t.parent.__ref.__children,t.key)),Uo("remove",t,e)}function jE(e){return this[e]}function FE(e,t){let r=this;if(e)return r.update(e,t),r}function DE(e){return e?this.__ref&&this.__ref[e]:this.__ref}function LE(){return this.getRef("__children").map(e=>this[e])}function ME(){return this.getRef().path}function BE(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=vb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=L(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=vb()),e?t?.[e]:t}function NE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function zE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function VE(e){let t=this.getRoot()?.context;return e?t[e]:t}function UE(e){let t=this.context;return e?t[e]:t}function gv(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||Ho.has(r)&&!rd.has(r)||t.push(r);return t}function mv(e=[]){let t=this,r={},n=gv.call(t),o=n.includes("children"),s=e.length?new Set(e):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=L(l&&l.parse)?l.parse():l;r[a]=L(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else zo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function jf(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=mv.call(r,e),o=e.length?new Set(e):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>ce(a)?jf.call(a,e,t):a):ce(i)&&(n[s]=jf.call(i,e,t))}return n}function yv(...e){if(mr!=="test"&&mr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
87
|
-
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function
|
|
88
|
-
${ib(
|
|
79
|
+
`;o+=`${n} ]`}else ue(s)?o+=ga(s,t+1):P(s)?o+=Qf(s,[`
|
|
80
|
+
`,"'"])?`\`${s}\``:`'${s}'`:o+=s;o+=`,
|
|
81
|
+
`}return o+=`${n}}`,o},KC=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],XC=/^["[{]/,YC=/^(export|import)\s/,Do=e=>{if(!e)return!1;let t=e.trim().replace(/\n\s*/g," ").trim();if(t===""||t==="{}"||t==="[]"||YC.test(t)||!KC.some(o=>o.test(t)))return!1;let r=t.charCodeAt(0),n=t.includes("=>");return!(r===123&&!n||r===91||XC.test(t)&&!n)},ZC=e=>(0,eval)(e),JC=(e,t)=>{let r=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(e);if(!r)return null;let n=r[0].length,o=[],i=n,s=1,a=null,l=e.length,c=new RegExp("^(?:const|let|var)\\s+"+t+"\\b");for(;i<l&&s>0;){let d=e[i];if(d==="/"&&e[i+1]==="/"){let f=e.indexOf(`
|
|
82
|
+
`,i);i=f===-1?l:f;continue}if(d==="/"&&e[i+1]==="*"){let f=e.indexOf("*/",i+2);i=f===-1?l:f+2;continue}if(d==='"'||d==="'"||d==="`"){let f=d;for(i++;i<l;){if(e[i]==="\\"){i+=2;continue}if(e[i]===f){i++;break}if(f==="`"&&e[i]==="$"&&e[i+1]==="{"){i+=2;let p=1;for(;i<l&&p>0;)e[i]==="{"?p++:e[i]==="}"&&p--,i++;continue}i++}continue}if(d==="{"){s++,i++;continue}if(d==="}"){s--,i++;continue}if(s===1&&c.test(e.slice(i))){let f=i,p=0,h=i;for(;h<l;){let g=e[h];if(g==='"'||g==="'"||g==="`"){let m=g;for(h++;h<l;){if(e[h]==="\\"){h+=2;continue}if(e[h]===m){h++;break}h++}continue}if(g==="("||g==="["||g==="{"){p++,h++;continue}if(g===")"||g==="]"||g==="}"){if(p===0)break;p--,h++;continue}if(p===0&&(g===";"||g===`
|
|
83
|
+
`)){h++;break}h++}o.push([f,h]),i=h;continue}i++}if(!o.length)return null;let u=e;for(let d=o.length-1;d>=0;d--)u=u.slice(0,o[d][0])+u.slice(o[d][1]);return u},Wy=(e,t,r)=>{try{return r.window.eval(`(${e})`)}catch(n){let o=n&&n.message?n.message:String(n),i=/await is only valid in async/.test(o),s=/Identifier '([^']+)' has already been declared/.exec(o),a=null;if(i){let l=String(e).trim();if(/^function[\s(]/.test(l))try{a=r.window.eval("(async "+l+")")}catch{}}else if(s){let l=String(e),c=s[1];for(let u=0;u<5;u++){let d=JC(l,c);if(!d||d===l)break;l=d;try{a=r.window.eval("("+l+")");break}catch(f){let p=/Identifier '([^']+)' has already been declared/.exec(f&&f.message||String(f));if(!p||p[1]!==c)break}}}return a||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${t} \u2014 value will be left as a string. Reason: `+o+`.
|
|
84
|
+
First 200 chars of source: `+String(e).slice(0,200)),e)}},ax=(e,t={},r={window:{eval:ZC}})=>{if(!e||typeof e!="object")return t;let n=[[e,t]];for(;n.length;){let[o,i]=n.pop();for(let s in o){if(!Object.prototype.hasOwnProperty.call(o,s))continue;let a=o[s];if(P(a))Do(a)?i[s]=Wy(a,`"${s}"`,r):i[s]=a;else if(U(a)){let l=i[s]=[];for(let c=0;c<a.length;c++){let u=a[c];if(P(u))l.push(Do(u)?Wy(u,`array index ${c} (prop "${s}")`,r):u);else if(B(u)){let d={};l.push(d),n.push([u,d])}else l.push(u)}}else if(B(a)){let l=i[s]&&typeof i[s]=="object"&&!U(i[s])?i[s]:i[s]={};n.push([a,l])}else i[s]=a}}return t},QC="Set",eA="Map",tA=e=>!e||typeof e!="object"?e:e.__type===QC&&Array.isArray(e.values)?new Set(e.values):e.__type===eA&&Array.isArray(e.entries)?new Map(e.entries):e,lx=e=>{if(!e||typeof e!="object")return e;let t={},r=[];for(let n of Object.keys(e)){let o=e[n];P(o)&&Do(o)?r.push([n,o]):t[n]=tA(o)}for(let[n,o]of r)try{let i=Object.keys(t).map(s=>`var ${s} = __gs__[${JSON.stringify(s)}];`).join(`
|
|
85
|
+
`);t[n]=ce.eval(`(function(__gs__) { ${i}
|
|
86
|
+
return (${o}); })`)(t)}catch{try{t[n]=ce.eval(`(${o})`)}catch{t[n]=o}}return t},cx=(e,t={verbose:!0})=>{try{return e?ce.eval("("+e+")"):{}}catch(r){t.verbose&&console.warn(r)}},ux=(e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),tf=e=>{for(let t in e)return!1;return!0},fx=e=>B(e)&&tf(e),dx=()=>Object.create(null),nd=(e,t,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let i in t)n.includes(i)||!o&&zr(i)||i==="constructor"||i==="prototype"||t[i]!==void 0&&(e[i]=t[i]);return e},od=(e,t,r=[])=>{let n=r instanceof Set;for(let o in t)zr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(e[o]=t[o]);return e},$n=(e,t,r={},n=new WeakMap)=>{if(!ue(e)||!ue(t)||ot(e)||ot(t))return t;if(n.has(e))return n.get(e);n.set(e,e);let o=r.exclude,i=o?o instanceof Set?o:new Set(o):null,s=!r.preventForce;for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||i&&i.has(a)||s&&zr(a)||a==="constructor"||a==="prototype")continue;let l=e[a],c=t[a];ot(c)?e[a]=c:ue(l)&&ue(c)?e[a]=$n(l,c,r,n):c!==void 0&&(e[a]=c)}return e},rf=(e,t,r=new Set)=>{if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e===t;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let i=0;i<n.length;i++){let s=n[i];if(!Object.prototype.hasOwnProperty.call(t,s)||!rf(e[s],t[s],r))return!1}return!0},rA=new Set(["node","__ref"]),px=(e,t,r=rA)=>{if(e===t)return!0;if(!ue(e)||!ue(t)||ot(e)||ot(t))return e===t;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function i(s,a){if(o.has(a))return!0;o.add(a);for(let l in a){if(!Object.prototype.hasOwnProperty.call(a,l)||n.has(l))continue;if(!Object.prototype.hasOwnProperty.call(s,l))return!1;let c=a[l],u=s[l];if(ot(c)||ot(u)){if(c!==u)return!1}else if(ue(c)&&ue(u)){if(!i(u,c))return!1}else if(c!==u)return!1}return!0}return i(e,t)},hx=(e,t)=>{if(t==null)return e;if(Zt(t)("string","number"))delete e[t];else if(U(t))for(let r=0;r<t.length;r++)delete e[t[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return e},nf=e=>{if(e===null||typeof e!="object")return e;let t=Object.create(null);for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=nf(e[r]));return t},gx=(e,t)=>{if(e.length===0)return t;let r={},n=r;for(let o=0;o<e.length;o++)o===e.length-1&&t?n[e[o]]=t:(n[e[o]]={},n=n[e[o]]);return r},mx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let o=0;o<t.length-1;o++){if(r[t[o]]===void 0)return;r=r[t[o]]}let n=t[t.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},yx=(e,t,r)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let n=e;for(let o=0;o<t.length-1;o++)(!n[t[o]]||typeof n[t[o]]!="object")&&(n[t[o]]={}),n=n[t[o]];return n[t[t.length-1]]=r,e},bx=(e,t)=>{if(!Array.isArray(t))throw new Error("Path must be an array.");let r=e;for(let n=0;n<t.length;n++){if(r==null)return;r=r[t[n]]}return r},xx=e=>{let t=[],r=0;for(let n=0;n<e.length;n++)if(t.length<2)t.push(e[n]);else if(e[n]===t[n%2]?r++:(t=[e[n-1],e[n]],r=1),r>=20)return(zy==="test"||zy==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",t),!0},vx=e=>{let t=new WeakSet;function r(n){if(n&&typeof n=="object"){if(t.has(n))return!0;t.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(e)},_x=(e,t)=>{let r=t instanceof Set?t:new Set(t),n={};for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&!r.has(o)&&(n[o]=e[o]);return n}}),ma,id,sd,wx=K(()=>{"use strict";qr(),ma=(function(){let e=0;function t(){return e++,e}return t})(),id=ma,sd=(e,t,r)=>(Me(r,e)||r||e.key||ma()).toString()}),jt,Sx,Uo,of,kx,Cx,Ax,ad,Ex,Xa,rE=K(()=>{"use strict";jt="production",Sx=jt,Uo=(e=jt)=>e==="production",of=(e=jt)=>e==="testing"||e==="test",kx=of,Cx=(e=jt)=>e==="staging",Ax=(e=jt)=>e==="local",ad=(e=jt)=>e==="development"||e==="dev"||e==="local",Ex=(e,t=jt)=>t[e],Xa=(e=jt)=>!Uo(e)});function nE(e,t,r){let n;return function(){let o=this,i=arguments,s=function(){n=null,r||e.apply(o,i)},a=r&&!n;clearTimeout(n),n=setTimeout(s,t),a&&e.apply(o,i)}}function oE(e,t=window){let r=function(){return e.apply(t,arguments)};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var Ox,Tx,nA,Rx,Ya,Ma,Na,Za=K(()=>{"use strict";Ox=(e,t,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{t.apply(e,o)},r)}},Tx=e=>{let t={};return(...r)=>{let n=r[0];if(n in t)return t[n];{let o=e(n);return t[n]=o,o}}},nA=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Rx=e=>nA.test(e),Ya=e=>{let t=e?.plugins;if(!t||!t.length)return!1;for(let r of t)if(r.resolveHandler)return!0;return!1},Ma=(e,t)=>{if(typeof e=="function")return e;let r=t?.context?.plugins;if(!r)return e;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(e,t);if(typeof o=="function")return o}return e},Na=(e,t,...r)=>{let n=t?.context?.plugins;if(!n)return!1;let o=!1;for(let i of n)typeof i[e]=="function"&&(i[e](t,...r),o=!0);return o}}),Px,Yj=K(()=>{"use strict";Ie(),qr(),Px=(e,t)=>{let{__ref:r}=e,n=e.if;if(N(n)){let o;try{o=n(e,e.state,e.context)}catch(i){typeof console<"u"&&console.warn("[DOMQL] if condition error:",i),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n=="object"?Me(n,e)?r.__if=!0:delete r.__if:r.__if=!0}}),$x,Ix,Zj=K(()=>{"use strict";$x=(e,...t)=>{e&&t.map(r=>console.log(r))},Ix=(e,t,...r)=>{e&&(console.group(t),r.map(n=>console.log(n)),console.groupEnd(t))}});function iE(e){let t;try{if(!window.localStorage)return;t=window.localStorage.getItem(e)}catch{return}if(t!==null)try{return JSON.parse(t)}catch{return}}function sE(e,t){if(t!=null)try{if(!window.localStorage)return;let r=typeof t=="object"?JSON.stringify(t):t;window.localStorage.setItem(e,r)}catch{}}var Fx,jx,Dx,Lx,Jj=K(()=>{"use strict";Ie(),Gf(),Fx=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),jx=(e,t,r=365)=>{if(Mt(be)||Mt(be.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;be.cookie=`${e}=${t};${o};path=/`},Dx=e=>{if(Mt(be)||Mt(be.cookie))return;let t=`${e}=`,r=decodeURIComponent(be.cookie).split(";");for(let n=0;n<r.length;n++){let o=r[n];for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return""},Lx=e=>{Mt(be)||Mt(be.cookie)||(be.cookie=e+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}}),Ba,Mx,Nx,aE=K(()=>{"use strict";Ba={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Mx=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),Nx=e=>Ba.body.has(e)}),Ru,Hy,Va,ld,Je,Bx,sf,ya,Vx,ba,af,lf,xa,cf,Lo,oA,Yt,qy,va,_a,zx,wa,Ux,Wx,uf,ff,df,pf,hf,gf,Hx,qx=K(()=>{"use strict";qa(),fE(),qr(),Ie(),Ru="production",Hy=e=>e.sourcemap!==!1&&Ru!=="production",Va=e=>{if(e.includes("+"))return e.split("+").filter(En);if(e.includes("_")){let[t]=e.split("_");return[t]}if(e.includes(".")&&!En(e.split(".")[1])){let[t]=e.split(".");return[t]}return[e]},ld=(e,t,r)=>{let n=[],o=Va(r);o&&(n=[...o]);let i=e.extends;return i&&(n=U(i)?[...n,...i]:[...n,i]),n},Je=(e,t)=>{let{__ref:r}=t,{__extends:n}=r;if(!e)return n;let o=t.variant,i=t.context;if(o&&i?.components&&!Array.isArray(e)&&typeof e=="string"){let s=`${e}.${o}`;i.components[s]&&(e=s)}return n.includes(e)||(n=Array.isArray(e)?[...n,...e]:[...n,e],r.__extends=n),n},Bx=(e,t)=>{if(!e)return t;let{extends:r}=t,n=U(r)?r:[r],o=U(e)?e:[e];return{...t,extends:ja(o,n)}},sf=()=>Math.random().toString(36).substring(2),ya={},Vx={},ba=e=>ya[e.__hash],af=(e,t)=>{let r=sf();return P(e)||(e.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ya[r]=t),t},lf=(e,t)=>e.__hash?t.concat(ba(e)):af(e,t),xa=(e,t,r,n=new Set,o,i)=>{for(let s of e)U(s)?xa(s,t,r,n,o,i):Lo(s,t,r,n,o,void 0,i);return t},cf=(e,t,r,n=new Set,o,i,s)=>{let a=e.extends,l={...e};delete l.extends;let c=!1;for(let u in l){c=!0;break}return c&&(t.push(l),o&&o.push(i)),a&&Lo(a,t,r,n,o,i,s),t},Lo=(e,t,r,n=new Set,o,i,s)=>{if(!e||n.has(e))return t;if(U(e))return xa(e,t,r,n,o,s);let a=i;return P(e)?(a=e,e=_a(e,r)):s&&B(e)&&s.has(e)&&(a=s.get(e)),n.add(e),e?.extends?cf(e,t,r,n,o,a,s):e&&(t.push(e),o&&o.push(a)),t},oA=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),Yt=(e,t,r,n,o)=>{t=st(t);for(let i in t){if(oA.has(i))continue;let s=e[i],a=t[i];if(a!==void 0&&Object.prototype.hasOwnProperty.call(t,i)&&i!=="__proto__"&&i!=="constructor"&&i!=="prototype"){if(s===void 0)e[i]=a,r&&n?B(a)&&!U(a)?(r[i]=r[i]||{},qy(r[i],a,n)):r[i]=n:r&&o?.[i]&&(r[i]=o[i]);else if(B(s)&&B(a)){let l=r?r[i]=r[i]||{}:void 0,c=o?.[i];En(i)?e[i]=Yt(s,a,l,n,c):Yt(s,a,l,n,c)}if(i==="extends"||i==="childExtends"||i==="childExtendsRecursive"){if(U(s)&&U(a))e[i]=s.concat(a);else if(U(s)&&B(a)){let l=Yt({},s);e[i]=Yt(l,a)}}}}return e},qy=(e,t,r,n)=>{if(n||(n=new WeakSet),!n.has(t)){n.add(t);for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let i=t[o];B(i)&&!U(i)?(e[o]=e[o]||{},qy(e[o],i,r,n)):e[o]=r}}},va=(e,t,r)=>e.reduce((n,o,i)=>{let s=st(o),a=r?r[i]:void 0;return Yt(n,s,t,a)},{}),_a=(e,t,r={},n)=>{let o=t?.components||r.components,i=t?.pages||r.pages;if(P(e)){let s=o&&(o[e+"."+n]||o[e]||o["smbls."+e]),a=i&&e.charCodeAt(0)===47&&i[e];if(s)return s;if(a)return a;r.verbose&&(Ru==="test"||Ru==="development")&&console.warn("Extend is string but component was not found:",e);return}return e},zx=(e,t)=>[].concat(e.slice(0,1)).concat(t.slice(0,1)).concat(e.slice(1)).concat(t.slice(1)),wa=(e,t,r,n)=>{if(!e)return[];if(e.__hash)return ba(e)||[];let o=Lo(e,[],t,new Set,r,void 0,n);return r?o:lf(e,o)},Ux=(e,t)=>{if(!e)return t;let r=U(e)?e:[e];return ja(r,t)},Wx=e=>{let t=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(En(o)&&t.push(o),o==="extends"&&(typeof n[o]=="string"?t.push(n[o]):Array.isArray(n[o])&&(t=t.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(e),t},uf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant;if(e.extends)if(Array.isArray(e.extends)&&e.extends.length>0){let[s,...a]=e.extends;if(typeof s=="string"&&i&&o?.components){let l=`${s}.${i}`;o.components[l]?Je([l,...a],e):Je(e.extends,e)}else Je(e.extends,e)}else if(typeof e.extends=="string"&&i&&o?.components){let s=`${e.extends}.${i}`;o.components[s]?Je(s,e):Je(e.extends,e)}else Je(e.extends,e);return ff(e,t,r),df(e,t,r),pf(e,t,r),e.component&&Je(Me(e.component,e),e),o.defaultExtends&&Je(o.defaultExtends,e),Da(n.__extends)},ff=(e,t,r={})=>{let{__ref:n}=e;return r.ignoreChildExtends||e.ignoreChildExtends||t.childProps?.extends&&Je(t.childProps.extends,e),n.__extends},df=(e,t,r={})=>{let{__ref:n}=e,o=r.ignoreChildExtends||e.ignoreChildExtends,i=t.childExtends;return!o&&i&&Je(i,e),n.__extends},pf=(e,t,r={})=>{let{__ref:n}=e,o=t.childExtendsRecursive,i=r.ignoreChildExtendsRecursive||e.ignoreChildExtendsRecursive,s=e.key==="__text";return o&&!s&&!i&&Je(o,e),n.__extends},hf=(e,t,r={})=>{let{__ref:n}=e,o=e.context||t.context,i=e.variant,s=Hy(r),a=s?[...n.__extends]:null,l=Da(n.__extends.map((c,u)=>_a(c,o,r,u===0&&i)));if(s){let c=new WeakMap;for(let f=0;f<l.length;f++){let p=l[f],h=a[f];p&&B(p)&&P(h)&&c.set(p,h)}let u=[],d=wa(l,o,u,c);n.__extendsStack=d,n.__extendsNames=u}else{let c=wa(l,o);n.__extendsStack=c}return n.__extendsStack},gf=(e,t,r={})=>{let{__ref:n}=e,{__extendsStack:o}=n;if(Hy(r)){let i={},s=n.__extendsNames||[],a=va(o,i,s),l={};Yt(e,a,l,void 0,i),n.__sourcemap=l}else{let i=va(o);Yt(e,i)}return e},Hx=(e,t,r={})=>(uf(e,t,r),hf(e,t,r),gf(e,t,r),e)});function lE(e){return Object.keys(e).filter(t=>/^[A-Z]/.test(t))}function cE(e){return Object.keys(e).filter(t=>/^\d+$/.test(t))}function uE(e,t,r){let{context:n}=t||{},[o]=Va(r),i=r||o;return n?.components?.[i]||n?.pages?.[i]}var En,fE=K(()=>{"use strict";qx(),Ie(),En=e=>{if(!P(e)||!e.length)return!1;let t=e.charCodeAt(0);return t>=65&&t<=90}});function Qj(e,t){let{props:r,on:n}=t,o=Ga(e.split("on")[1]),i=n[o],s=r[e];N(i)?n[o]=(...a)=>{if(i(...a)!==!1&&N(s))return s(...a)}:n[o]=s}var eD=K(()=>{"use strict";ed(),Ie()});function Gx(e,t={}){let r=t.cachedKeys||[];for(let n in e){let o=e[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(N(o)||o!=null&&Ya(this.context))){let f=Ga(n.slice(2));e.on&&(e.on[f]=o),delete e[n];continue}if(n==="childProps"){e.props[n]=o,delete e[n],r.push(n);continue}let i=this.define?.[n],s=this.context?.define?.[n],a=B(i)||N(i),l=B(s)||N(s);if(a||l)continue;let c=n.charAt(0);if(Jx.has(c)){e.props[n]=o,delete e[n],r.push(n);continue}let u=yf.test(n)||Zx.test(n)||pE(o),d=qo.has(n);!u&&!d&&(n in e.props||(e.props[n]=o),delete e[n],r.push(n))}return e}function Kx(e=this,t){let r=t.cachedKeys||[];for(let n in e.props){let o=e.props[n],i=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,s=N(o)||o!=null&&Ya(this.context);if(i&&s){Qj(n,e),delete e.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Jx.has(a))continue;let l=this.define?.[n],c=this.context?.define?.[n],u=B(l)||N(l),d=B(c)||N(c),f=yf.test(n)||Zx.test(n),p=qo.has(n);(f||p||u||d)&&(e[n]===void 0||o===null)&&(e[n]=o,e.props&&delete e.props[n])}return e}function Xx(e=this){let t=[];return Gx.call(this,e,{cachedKeys:t}),Kx.call(this,e,{cachedKeys:t}),e}function dE(e={}){return e.on||(e.on={}),e.props||(e.props={}),Xx.call(this,e)}function Yx(e,t){this.__element.update({props:e},t)}function mf(e){let t={update:Yx.bind(e.props),__element:e};Object.setPrototypeOf(e.props,t)}var yf,Zx,Jx,iA,pE,cd,Sa,Qx,ka,Ca,Aa,bf,Ea,ev,tv,hE=K(()=>{"use strict";Ka(),eD(),qr(),Ie(),ed(),Za(),yf=/^[A-Z]/,Zx=/^\d+$/,Jx=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),iA=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),pE=e=>{if(!e||typeof e!="object"||Array.isArray(e))return!1;for(let t in e)if(iA.has(t)||yf.test(t))return!0;return!1},cd=(e,t,r)=>{let{props:n,__ref:o}=e;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return ue(n)?{...n}:(o.__propsStack.push(n),{})},Sa=e=>Zt(e)("string","number")?{inheritedString:e}:e,Qx=(e,t)=>!e||!t.length?!1:t.includes(e),ka=(e,t)=>{let{__ref:r}=e,n=r.__propsStack||[],o=t.props;if(!o)return n;let i=o[e.key],s=o.childProps||t.childProps,a=e.props?.ignoreChildProps;if(s&&!a){let l=Sa(s);n.unshift(l)}if(i){let l=Sa(i);n.unshift(l)}return n},Ca=e=>{let t=new Set;return e.filter(r=>!r||Tn.has(r)||t.has(r)?!1:(t.add(r),!0))},Aa=(e,t,r)=>(t.props=e.reduce((n,o)=>{if(Tn.has(o))return n;for(;N(o);)o=Me(o,t);return er(n,st(o,{exclude:Tn}))},{}),mf(t),t.props),bf=(e,t)=>{let{props:r,__ref:n}=e,o=n.__propsStack||[];if(t?.props&&(o=[...ka(e,t)]),B(r)?o.push(r):r==="inherit"&&t?.props?o.push(t.props):r&&o.push(r),U(n.__extendsStack))for(let i=0;i<n.__extendsStack.length;i++){let s=n.__extendsStack[i];s.props&&s.props!==r&&o.push(s.props)}return n.__propsStack=Ca(o),n.__propsStack},Ea=(e,t)=>{let{__ref:r}=e,n=bf(e,t);n.length?Aa(n,e):(r.__propsStack=[],e.props={})},ev=function(e,t,r){let{__ref:n}=e;if(n.__if)Ea(e,t);else try{Ea(e,t)}catch(o){e.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),e.props={},n.__propsStack=[]}return mf(e),e},tv=(e,t,r)=>{let{__ref:n}=t,o=[...n.__propsStack||[]],i=ka(t,r);return i.length&&(o=[...i,...o]),e&&(o=[e,...o]),n.__propsStack=Ca(o),n.__propsStack.length&&Aa(n.__propsStack,t),t}}),Gy,xf,vf,_f,wf,rv,Sf,kf,Cf,nv,tD=K(()=>{"use strict";qx(),wx(),Xf(),hE(),aE(),Ie(),Gy="production",xf=(e,t,r)=>{let n=t.childExtends&&t.childExtends.tag,o=t.childProps&&t.childProps.tag,i=Ba.body.has(r)&&r;return{text:e,tag:n||o||i||"string"}},vf=(e,t,r)=>{if(e===void 0)return(Gy==="test"||Gy==="development")&&console.warn(r,"element is undefined in",t?.__ref?.path),{};if(e!==null)return e===!0?{}:Zt(e)("string","number")?xf(e,t,r):N(e)?{props:e}:e},_f=(e,t)=>{let r={};return r.origin=e,r.parent=t,r},wf=(e,t,r,n,o)=>{if(!t)return o;if(Ha(t)){let i={key:":root",node:t};return o[`${r}_parent`]=i,i}return t},rv=(e,t)=>{let{__ref:r}=e,{__ref:n}=t,o=t&&t.key===":root";r?.root||(r.root=o?e:n?.root)},Sf=(e,t,r)=>{let{__ref:n}=t;return n||(n=t.ref={}),n.path||(n.path=[]),n.path.concat(r)},kf=(e,t,r,n,o)=>(n.context&&!o.context&&!e.context&&(o.context=n.context),n.context||t.context||o.context||e.context),Cf=(e,t,r)=>{let n=_f(e,t);return e.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=ld(e,t,r),n.path=Sf(e,t,r),n},nv=(e,t,r,n,o)=>{let i=e?.__hash?{extends:[e]}:vf(e,t,r);if(!i)return;let s=wf(i,t,r,n,o),a=sd(i,s,r);Cf(i,s,a);let l=cd(i,s,a),c=kf(i,s,a,n,o),u=i.on||{};return{...i,key:a,props:l,parent:s,context:c,on:u}}}),ov,Af,Ef,Of,Tf,iv,Rf,sv,av,lv,cv,rD=K(()=>{"use strict";qa(),Ka(),qr(),Ie(),ov=e=>{let{state:t,props:r,__ref:n}=e,o=r?.state||t;return Zt(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=e.key,{}):o?(n.__hasRootState=!0,o):!1},Af=(e,t)=>{if(e.includes("~/")&&e.split("~/").length>1)return t.root},Ef=(e,t)=>{if(!e.includes("../"))return;let r=e.split("../").length-1;for(let n=0;n<r;n++){if(!t.parent)return null;t=t.parent}return t},Of=(e,t,r={})=>{let n=P(e)?e.split("/"):[e],o=n.length-1;for(let i=0;i<o;i++){let s=n[i],a=n[i+1];if(s==="__proto__"||a==="__proto__")return;let l=t[s];l||(l=t[s]={}),l[a]||(l[a]={}),e=a,t=l}return r.returnParent?t:t[e]},Tf=(e,t,r={})=>{let n=e.__ref.__state;if(!Rf(e))return;let o=Af(n,t.state),i=t.state;if(o)i=o,n=n.replaceAll("~/","");else{let s=Ef(n,t.state);s&&(i=s,n=n.replaceAll("../",""))}if(i)return Of(n,i,r)},iv=(e,t)=>{let r=e.__ref,n=Tf(e,t);if(n===void 0)return e.state;if(Zt(n)("object","array"))return st(n);if(Zt(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Rf=e=>{let{__ref:t}=e,r=t?.__state;return!!(r&&Zt(r)("number","string","boolean"))},sv=function(e){return ue(e)?!!(e.update&&e.parse&&e.clean&&e.create&&e.parent&&e.destroy&&e.rootUpdate&&e.parentUpdate&&e.keys&&e.values&&e.toggle&&e.replace&&e.quietUpdate&&e.quietReplace&&e.add&&e.apply&&e.applyReplace&&e.setByPath&&e.setPathCollection&&e.removeByPath&&e.removePathCollection&&e.getByPath&&e.applyFunction&&e.__element&&e.__children):!1},av=(e,t)=>{if(!e)return t||{};let r=e.split("/"),n={},o=n,i=r.length-1;for(let s=0;s<=i;s++)o[r[s]]=s===i?t||{}:{},o=o[r[s]];return n},lv=(e,t)=>{let{__element:r}=t,n=r?.state;if(!n)return;let o=st(n,On),i={[e.key]:o},s=B(n.__depends)?{...n.__depends,...i}:i;return Array.isArray(n)?Jf(n,{...Object.getPrototypeOf(n),__depends:s}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:s}),o},cv=(e,t,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){er(e,t,On);return}(o?od:$n)(e,t,On)}}),uv,nD=K(()=>{"use strict";uv=(e,t)=>{let{__ref:r}=e,n=e.context||t.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=t.scope||r.root?.scope,i=n?.globalScope;if(!e.scope)o?e.scope=o:i?e.scope=Object.create(i):e.scope={};else if(typeof e.scope=="object"&&e.scope!==null&&Object.getPrototypeOf(e.scope)===Object.prototype){let s=o||i;s&&Object.setPrototypeOf(e.scope,s)}}}),Ky,Pf,Wo,$f,fv,gE=K(()=>{"use strict";Ie(),Za(),Ky=(e,t)=>{let r="on"+e.charAt(0).toUpperCase()+e.slice(1);return t[r]},Pf=(e,t,r,n,o)=>{if(e=Ma(e,t),!!N(e))try{let i=e.call(t,t,r||t.state,n||t.context,o);return i&&typeof i.then=="function"&&i.catch(s=>{t.error=s,s instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",s.message):console.error("[DOMQL] Async event error:",s)}),i}catch(i){if(t.error=i,i instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",i.message):console.error("[DOMQL] Event handler error:",i),t.context?.strictMode)throw i}},Wo=(e,t,r)=>{if(!t)throw new Error("Element is required");Na(e,t,r);let n=Ky(e,t);if(n){let{state:o,context:i}=t;return Pf(n,t,o,i,r)}},$f=(e,t,r,n,o,i)=>{if(e=Ma(e,r),!!N(e))try{let s=e.call(r,t,r,n||r.state,o||r.context,i);return s&&typeof s.then=="function"&&s.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),s}catch(s){if(r.error=s,console.error("[DOMQL] Event update error:",s),r.context?.strictMode)throw s}},fv=(e,t,r,n)=>{Na(e,r,t,n);let o=Ky(e,r);if(o){let{state:i,context:s}=r;return $f(o,t,r,i,s,n)}}}),dv,ud,mE=K(()=>{"use strict";dv={},ud={}}),yE={};Y(yE,{setup:()=>bE,supabaseAdapter:()=>hb});var Xy,sA,bE,Pu,aA,hb,oD=K(()=>{Xy=new Map,sA=(e,t,r)=>`${e}|${t}|${r?"off":"on"}`,bE=async({url:e,key:t,projectId:r,createClient:n,auth:o,retry:i,adapter:s,...a})=>{let l=e||r&&`https://${r}.supabase.co`;if(!l||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let c=sA(l,t,o===!1),u=Xy.get(c);return u||(u=await n(l,t,a),u?.auth&&Xy.set(c,u)),!u||!u.auth?null:hb(u)},Pu=(e,t)=>{if(!t)return e;for(let r in t){let n=t[r];if(n===null)e=e.is(r,null);else if(Array.isArray(n))e=e.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?e=e.gt(r,n[o]):o==="gte"?e=e.gte(r,n[o]):o==="lt"?e=e.lt(r,n[o]):o==="lte"?e=e.lte(r,n[o]):o==="neq"?e=e.neq(r,n[o]):o==="like"?e=e.like(r,n[o]):o==="ilike"?e=e.ilike(r,n[o]):o==="in"?e=e.in(r,n[o]):o==="is"?e=e.is(r,n[o]):o==="contains"?e=e.contains(r,n[o]):o==="containedBy"?e=e.containedBy(r,n[o]):o==="textSearch"&&(e=e.textSearch(r,n[o]));else e=e.eq(r,n)}return e},aA=(e,{limit:t,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let i of n){let s=typeof i=="string"?i:i.by;e=e.order(s,{ascending:i.asc!==!1})}else{let i=typeof n=="string"?n:n.by;e=e.order(i,{ascending:n.asc!==!1})}return t&&(e=e.limit(t)),r&&(e=e.range(r,r+(t||20)-1)),o&&(e=e.single()),e},hb=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:r}}=e.auth.onAuthStateChange((n,o)=>t(n,o));return()=>r.unsubscribe()},select:async({from:t,schema:r,select:n,params:o,headers:i,...s})=>{let a=(r?e.schema(r):e).from(t).select(n||"*");if(a=Pu(a,o),a=aA(a,s),i)try{for(let l in i)a.setHeader?a=a.setHeader(l,i[l]):e.rest&&(e.rest.headers[l]=i[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:t,params:r})=>e.rpc(t,r),insert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).insert(n).select(o||"*"),update:({from:t,schema:r,data:n,params:o,select:i})=>{let s=(r?e.schema(r):e).from(t).update(n);return s=Pu(s,o),s.select(i||"*")},upsert:({from:t,schema:r,data:n,select:o})=>(r?e.schema(r):e).from(t).upsert(n).select(o||"*"),delete:({from:t,params:r})=>{let n=e.from(t).delete();return n=Pu(n,r),n},subscribe:({from:t,params:r,on:n},o)=>{let i=n||"*",s=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:i,schema:"public",table:t,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(s)},upload:({bucket:t,path:r,file:n,options:o})=>e.storage.from(t).upload(r,n,o),download:({bucket:t,path:r})=>e.storage.from(t).download(r),getPublicUrl:({bucket:t,path:r})=>e.storage.from(t).getPublicUrl(r)})}),xE={};Y(xE,{restAdapter:()=>gb,setup:()=>vE});var lA,dr,vE,gb,iD=K(()=>{lA=(e,t,r)=>{let n=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${n}${t}`);if(r)for(let i in r){let s=r[i];s!=null&&o.searchParams.set(i,typeof s=="object"?JSON.stringify(s):s)}return o.toString()},dr=async(e,t)=>{let r=await globalThis.fetch(e,t),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},vE=async({url:e,headers:t,auth:r,fetchOptions:n})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return gb(e,t,r,n)},gb=(e,t={},r,n={})=>{let o=r?.token||null,i=c=>{let u={...t,...c};return o&&(u.Authorization=`Bearer ${o}`),u},s=c=>({...i(c),"Content-Type":"application/json"}),a=c=>({...n,...c}),l=(c,u)=>{let d=u||e;if(c&&(c.startsWith("http://")||c.startsWith("https://")))return c;let f=c&&!c.startsWith("/")?"/":"";return`${d}${f}${c||""}`};return{name:"rest",setToken:c=>{o=c},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let c=await dr(l(r.sessionUrl,r.baseUrl),a({headers:i()}));return c.error?null:c.data},signIn:async c=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await dr(l(r.signInUrl,r.baseUrl),a({method:"POST",headers:s(),body:JSON.stringify(c)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await dr(l(r.signOutUrl,r.baseUrl),a({method:"POST",headers:i()})),o=null,{error:null}),select:({from:c,params:u,select:d,limit:f,offset:p,order:h,single:g,headers:m,baseUrl:y})=>{let b={...u};return d&&(b.select=d),f&&(b.limit=f),p&&(b.offset=p),g&&(b.single=!0),h&&(typeof h=="string"?b.order=h:Array.isArray(h)?b.order=h.map(v=>`${v.by}:${v.asc===!1?"desc":"asc"}`).join(","):h.by&&(b.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),dr(lA(y||e,c||"",b),a({headers:i(m)}))},rpc:({from:c,params:u,headers:d,baseUrl:f})=>dr(l(`rpc/${c}`,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),insert:({from:c,data:u,headers:d,baseUrl:f})=>dr(l(c,f),a({method:"POST",headers:s(d),body:JSON.stringify(u)})),update:({from:c,data:u,params:d,method:f,headers:p,baseUrl:h})=>{let g=d?.id||u?.id,m=g?`${c}/${g}`:c;return dr(l(m,h),a({method:f||"PATCH",headers:s(p),body:JSON.stringify(u)}))},delete:({from:c,params:u,headers:d,baseUrl:f})=>{let p=u?.id,h=p?`${c}/${p}`:c;return dr(l(h,f),a({method:"DELETE",headers:i(d)}))}}}}),_E={};Y(_E,{localAdapter:()=>mb,setup:()=>wE});var $u,cA,wE,mb,sD=K(()=>{$u=(e,t)=>{if(!t)return!0;for(let r in t){let n=t[r];if(n===null){if(e[r]!==null&&e[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(e[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(e[r]>n[o])||o==="gte"&&!(e[r]>=n[o])||o==="lt"&&!(e[r]<n[o])||o==="lte"&&!(e[r]<=n[o])||o==="neq"&&e[r]===n[o]||o==="like"&&!String(e[r]).includes(n[o]))return!1}else if(e[r]!==n)return!1}return!0},cA=(e,{order:t,limit:r,offset:n,single:o})=>{let i=[...e];if(t){let s=typeof t=="string"?t:t.by,a=t.asc!==!1;i.sort((l,c)=>l[s]<c[s]?a?-1:1:l[s]>c[s]?a?1:-1:0)}return n&&(i=i.slice(n)),r&&(i=i.slice(0,r)),o?{data:i[0]||null,error:null}:{data:i,error:null}},wE=async({data:e,...t})=>mb(e,t),mb=(e={},t={})=>{let r={},n={},o=t.persist!==!1&&typeof localStorage<"u",i=t.prefix||"smbls_db_",s=u=>{if(!r[u])if(o)try{let d=localStorage.getItem(i+u);r[u]=d?JSON.parse(d):e[u]||[]}catch{r[u]=e[u]||[]}else r[u]=e[u]||[];return r[u]},a=u=>{if(o)try{localStorage.setItem(i+u,JSON.stringify(r[u]))}catch{}},l=(u,d,f,p)=>{let h=n[u];if(h)for(let g of h)g(f,p,{event:d,table:u})},c=Date.now();return{name:"local",store:r,select:async({from:u,params:d,...f})=>{let p=s(u).filter(h=>$u(h,d));return cA(p,f)},insert:async({from:u,data:d})=>{let f=s(u),p=(Array.isArray(d)?d:[d]).map(h=>{let g={id:h.id||++c,...h};return f.push(g),g});a(u);for(let h of p)l(u,"INSERT",h,null);return{data:Array.isArray(d)?p:p[0],error:null}},update:async({from:u,data:d,params:f})=>{let p=s(u),h=[];for(let g=0;g<p.length;g++)if($u(p[g],f)){let m={...p[g]};Object.assign(p[g],d),h.push(p[g]),l(u,"UPDATE",p[g],m)}return a(u),{data:h,error:null}},delete:async({from:u,params:d})=>{let f=s(u),p=[];for(let h=f.length-1;h>=0;h--)$u(f[h],d)&&(p.push(f[h]),f.splice(h,1),l(u,"DELETE",null,p[p.length-1]));return a(u),{data:p,error:null}},subscribe:({from:u,on:d},f)=>{n[u]||(n[u]=[]);let p=(h,g,m)=>{d&&d!=="*"&&d!==m.event||f(h,g,m)};return n[u].push(p),()=>{let h=n[u].indexOf(p);h>-1&&n[u].splice(h,1)}}}}}),la={};Y(la,{createAdapter:()=>kE,default:()=>EE,executeFetch:()=>zu,fetchPlugin:()=>AE,initAdapterAuth:()=>ca,parseDuration:()=>jo,queryClient:()=>CE,registerAdapter:()=>SE,resolveDb:()=>yb});var uA,fA,ra,Yy,SE,kE,yb,jo,Le,Zy,Oo,dA,To,Ro,Po,na,Iu,oa,pA,Jy,Fu,Qy,eb,Cn,tb,hA,rb,gA,ia,nb,ca,ju,rt,yt,$o,Ur,It,pr,mA,yA,bA,Du,xA,zu,CE,AE,EE,Mo=K(()=>{V(),uA=["select","rpc","insert","update","delete","subscribe"],fA={supabase:()=>Promise.resolve().then(()=>(oD(),yE)),rest:()=>Promise.resolve().then(()=>(iD(),xE)),local:()=>Promise.resolve().then(()=>(sD(),_E))},ra=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Yy=(()=>{if(typeof globalThis<"u"&&globalThis[ra])return globalThis[ra];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ra,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[ra]}catch{}return e})(),SE=(e,t)=>{Yy[e]=t},kE=e=>{let t={};for(let r of uA)e[r]&&(t[r]=e[r]);return t.name=e.name||"custom",t},yb=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...r}=e,n=typeof t=="string"?t:typeof e=="string"?e:null;if(!n)return null;let o=Yy[n]||fA[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let i=await o();if(!i||typeof i.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(i||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return i.setup(r)},jo=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let r=parseInt(t[1]),n=t[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},Le=new Map,Zy=new Map,Oo=new Map,dA=(e,t)=>{if(e.cache?.key)return e.cache.key;let r=gA(e.params),n=`${e.from}:${e.method}:${JSON.stringify(r||"")}`;return t?`${n}:${t}`:n},To=e=>Le.get(e)||null,Ro=(e,t,r)=>{let n=Le.get(e),o={data:t,error:r,time:Date.now(),stale:!1};Le.set(e,o);let i=Zy.get(e);if(i)for(let s of i)N(s)&&s(o);return o},Po=e=>{if(e){let t=Le.get(e);t&&(t.stale=!0);return}for(let[,t]of Le)t.stale=!0},na=e=>{if(e){Le.delete(e);return}Le.clear()},Iu=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:P(e)?{staleTime:jo(e),gcTime:3e5}:{staleTime:jo(e.stale||e.staleTime)||6e4,gcTime:jo(e.gc||e.gcTime||e.expire)||3e5,key:e.key},oa=null,pA=()=>{oa||(oa=setInterval(()=>{let e=Date.now();for(let[t,r]of Le){let n=Zy.get(t);!(n&&n.size>0)&&e-r.time>(r.gcTime||3e5)&&Le.delete(t)}},3e4),oa.unref&&oa.unref())},pA(),Jy=3,Fu=e=>Math.min(1e3*2**e,3e4),Qy=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Jy,delay:Fu}:typeof t=="number"?{count:t,delay:Fu}:{count:t.count??Jy,delay:N(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:Fu}},eb=async(e,t)=>{let{count:r,delay:n}=t,o;for(let i=0;i<=r;i++)try{let s=await e();if(s?.error){if(o=s.error,i<r){let a=N(n)?n(i,o):n;await new Promise(l=>setTimeout(l,a));continue}return s}return s}catch(s){if(o=s,i<r){let a=N(n)?n(i,s):n;await new Promise(l=>setTimeout(l,a));continue}throw s}return{data:null,error:o}},Cn={focus:new Set,online:new Set},tb=!1,hA=()=>{if(tb||typeof window>"u")return;tb=!0;let e=()=>{for(let r of Cn.focus)r()},t=()=>{for(let r of Cn.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},rb=(e,t)=>{let r=t.__ref;if(e===!0)return{from:r.__state||t.key,method:"select",query:!0,on:"create"};if(P(e))return{from:e,method:"select",query:!0,on:"create"};if(B(e)){let n={...e};return n.from=n.from||r.__state||t.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},gA=e=>(!e||N(e),e),ia=(e,t)=>{let r=e?.state?.root||t?.state?.root;if(r?.lang)return r.lang},nb=(e,t,r)=>{let n;if(!e)n=void 0;else if(N(e))n=e(t,t.state);else{n={};for(let o in e){let i=e[o];n[o]=N(i)?i(t,t.state):i}}return n},ca=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let r=(n,o)=>{let i=t.state?.root;i?.update&&i.update({auth:{user:n,session:o,loading:!1}})};try{let n=await e.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}e.onAuthStateChange&&e.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ju=async(e,t)=>{if(N(e.select))return e.auth!==!1&&await ca(e,t),e;if(e.__resolved)return e.auth!==!1&&await ca(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=yb(e);let r=await e.__resolving;return delete e.__resolving,r?(r.auth=e.auth,r.url=e.url,r.key=e.key,e.__resolved=r,t.fetch=r,e.auth!==!1&&await ca(r,t),r):null},rt=(e,t,...r)=>{let n=N(e[t])?e[t]:null;n&&n.call(e,...r,e,e.state,e.context)},yt=(e,t,r,...n)=>{let o=e&&N(e[r])?e[r]:null;o&&o.call(t,...n,t,t.state,t.context)},$o=e=>{let t={},r=e.node;if(!r)return t;if(r.tagName==="FORM"){let o=new FormData(r);for(let[i,s]of o.entries())t[i]=s;return t}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let i=n[o],s=i.name||i.getAttribute("name");s&&(i.type==="checkbox"?t[s]=i.checked:i.type==="file"?t[s]=i.files:t[s]=i.value)}return t},Ur=(e,t,r,n={})=>{let o=r&&r.startsWith("~/"),i=o&&e.state?.root||e.state;if(i?.update)if(o){let s=r.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&s in t?i.update(t,{preventFetch:!0,...n}):i.update({[s]:t},{preventFetch:!0,...n})}else{let s=r?{[r]:t}:t;i.update(s,{preventFetch:!0,...n})}},It=(e,t)=>{let r=e?.__ref;r&&(r.__fetchStatus=t,r.__fetching=t.isFetching,r.__fetchError=t.error)},pr=async(e,t,r,n={})=>{let o=r?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||N(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||N(e.skip)&&e.skip(t,t.state))return;let i=await ju(o,r);if(!i||!t.__ref)return;let s=t.__ref,{from:a,method:l,query:c,params:u,cache:d,transform:f,single:p,auth:h,fields:g,as:m,limit:y,offset:b,order:v,headers:x,baseUrl:_,page:k,cursor:E,getNextPageParam:j,getPreviousPageParam:w,infinite:I,placeholderData:H,initialData:te,select:D,keepPreviousData:F}=e,Q=P(D)?D:void 0;if(c&&N(t.getQuery)){let z=t.getQuery(i.name||"paths");z&&(Q=z.select||z.length&&z.join(",")||Q)}let oe=nb(u,t,r),se=Iu(d),Bt=Qy(e),Kr=ia(t,r),Cd=Kr?`:${Kr}`:"",Z=se?d?.key||`${a}:${l}:${JSON.stringify(oe||"")}${I?":infinite":""}${k?":p"+JSON.stringify(k):""}${Cd}`:null;if(!s.__fetchInitialized&&Z&&(s.__fetchInitialized=!0,te!==void 0)){let z=N(te)?te():te;Ro(Z,z,null)}if((l==="select"||l==="rpc")&&Z&&se){let z=To(Z);if(z&&!z.error){let L=Date.now()-z.time,X=z.stale||L>(se.staleTime||0),R=z.data;if(N(D)&&(R=D(R,t,t.state)),f&&(R=f(R,t,t.state)),Ur(t,R,m),!X){It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(H!==void 0){let L=N(H)?H(t,t.state):H;L!==void 0&&Ur(t,L,m)}}if(Z&&Oo.has(Z)&&!n.force){let z=Oo.get(Z);try{let L=await Promise.race([z,new Promise((X,R)=>setTimeout(()=>R("DEDUP_TIMEOUT"),15e3))]);if(L?.data!==void 0){let X=L.data;N(D)&&(X=D(X,t,t.state)),f&&(X=f(X,t,t.state)),Ur(t,X,m),rt(t,"onFetchComplete",X),yt(e,t,"onFetchComplete",X)}}catch{}return}let Ad=!To(Z)?.data;It(t,{isFetching:!0,isLoading:Ad,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),rt(t,"onFetchStart"),yt(e,t,"onFetchStart");let Ce=r?.analyze?.emitNetwork,Xr=Ce?typeof performance<"u"?performance.now():Date.now():0;Ce&&Ce({phase:"start",mode:"query",from:a,method:l,cacheKey:Z,lang:Kr});let Yo=eb(async()=>{if(h!==!1&&i.auth!==!1&&i.getSession){let R=await i.getSession();if(h===!0&&!R){let ae={message:"Not authenticated"};return It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ae,status:"error",fetchStatus:"idle"}),rt(t,"onFetchError",ae),yt(e,t,"onFetchError",ae),{data:null,error:ae}}}let z=i[l];if(!N(z))return{data:null,error:{message:`Method "${l}" not found on adapter`}};let L={from:a,select:Q,params:oe,single:p,limit:y,offset:b,order:v,headers:x,baseUrl:_},X=ia(t,r);if(X&&(L.headers={...L.headers,"Accept-Language":X}),k!==void 0){if(B(k))k.offset!==void 0&&(L.offset=k.offset),k.limit!==void 0&&(L.limit=k.limit),k.cursor!==void 0&&(L.params={...L.params,cursor:k.cursor});else if(typeof k=="number"){let R=e.pageSize||y||20;L.offset=(k-1)*R,L.limit=R}}if(E!==void 0&&(L.params={...L.params,cursor:E}),l==="insert"||l==="update"||l==="upsert"){let R;if(g===!0||e.on==="submit")R=$o(t);else if(U(g)){let ae=$o(t);R={};for(let Yr of g)R[Yr]=ae[Yr]}else t.state?.parse?R=t.state.parse():B(t.state)&&(R={...t.state});f&&(R=f(R,t,t.state)),L.data=R}if(l==="rpc"){let R=oe;if(e.on==="submit"){let ae=$o(t);R=e.transformParams?e.transformParams(ae,t,t.state):ae}L.params=R}if(l==="subscribe"){let R=i.subscribe({from:a,params:oe,on:e.subscribeOn},(ae,Yr,qP)=>{Ur(t,ae,m),rt(t,"onFetchComplete",ae),yt(e,t,"onFetchComplete",ae)});return s.__unsubscribe=R,{data:null,error:null,subscribed:!0}}return z(L)},Bt);Z&&Oo.set(Z,Yo);try{let z=await Yo;if(z?.subscribed)return;let{data:L,error:X}=z||{};if(X){Z&&Ro(Z,null,X),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:X,status:"error",fetchStatus:"idle"}),rt(t,"onFetchError",X),yt(e,t,"onFetchError",X),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:X.message||X,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr});return}if(L!==void 0){if((l==="select"||l==="rpc")&&Z){let ae=Ro(Z,L,null);ae.gcTime=se?.gcTime||3e5}let R=L;I&&U(L)&&(s.__pages||(s.__pages=[]),n.direction==="previous"?s.__pages.unshift(L):s.__pages.push(L),R=s.__pages.flat(),j&&(s.__nextPageParam=j(L,s.__pages),s.__hasNextPage=s.__nextPageParam!=null),w&&(s.__prevPageParam=w(L,s.__pages),s.__hasPreviousPage=s.__prevPageParam!=null)),N(D)&&(R=D(R,t,t.state)),f&&(R=f(R,t,t.state)),(!F||R!==void 0)&&Ur(t,R,m),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),rt(t,"onFetchComplete",R),yt(e,t,"onFetchComplete",R),Ce&&Ce({phase:"success",mode:"query",ok:!0,from:a,method:l,cacheKey:Z,durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}}catch(z){It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),rt(t,"onFetchError",z),yt(e,t,"onFetchError",z),Ce&&Ce({phase:"error",mode:"query",from:a,method:l,cacheKey:Z,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Xr})}finally{Z&&Oo.delete(Z)}},mA=(e,t,r)=>{let n=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let i=e.__runner||pr;if(n==="submit"){let s=l=>{l.preventDefault(),i(e,t,r)},a=t.node;a&&(a.addEventListener("submit",s),o.__fetchListeners.push(()=>a.removeEventListener("submit",s)))}else if(n==="click"){let s=()=>i(e,t,r),a=t.node;a&&(a.addEventListener("click",s),o.__fetchListeners.push(()=>a.removeEventListener("click",s)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>i(e,t,r))},yA=(e,t,r)=>{let n=t.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),hA();let o=e.refetchInterval;if(o){let i=typeof o=="number"?o:jo(o);if(i>0){let s=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&pr(e,t,r,{force:!0})},i);n.__fetchCleanups.push(()=>clearInterval(s))}}if(e.refetchOnWindowFocus!==!1){let i=()=>{let s=ia(t,r),a=dA(e,s),l=To(a),c=Iu(e.cache);(!l||l.stale||Date.now()-l.time>(c?.staleTime||0))&&pr(e,t,r,{force:!0})};Cn.focus.add(i),n.__fetchCleanups.push(()=>Cn.focus.delete(i))}if(e.refetchOnReconnect!==!1){let i=()=>pr(e,t,r,{force:!0});Cn.online.add(i),n.__fetchCleanups.push(()=>Cn.online.delete(i))}},bA=(e,t,r)=>{if(!t.optimistic)return null;let n=e.__ref,o=t.as,i=e.state?.parse?e.state.parse():B(e.state)?{...e.state}:e.state;n.__optimisticSnapshot=i;let s=N(t.optimistic)?t.optimistic(r,i,e):t.optimistic;return s!==void 0&&Ur(e,s,o),i},Du=(e,t)=>{let r=e.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Ur(e,n,t.as),delete r.__optimisticSnapshot)},xA=async(e,t,r)=>{let n=r?.fetch;if(!n)return;let o=await ju(n,r);if(!o)return;let i=t.__ref,{method:s,from:a,fields:l,transform:c,as:u,on:d,auth:f,headers:p,baseUrl:h,invalidates:g,optimistic:m,onMutate:y,onSuccess:b,onError:v,onSettled:x}=e,_;if(l===!0||d==="submit")_=$o(t);else if(U(l)){let w=$o(t);_={};for(let I of l)_[I]=w[I]}else t.state?.parse?_=t.state.parse():B(t.state)&&(_={...t.state});c&&(_=c(_,t,t.state)),N(y)&&y(_,t,t.state);let k=m?bA(t,e,_):null;i.__fetching=!0,It(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),rt(t,"onFetchStart"),yt(e,t,"onFetchStart");let E=r?.analyze?.emitNetwork,j=E?typeof performance<"u"?performance.now():Date.now():0;E&&E({phase:"start",mode:"mutation",from:a,method:s});try{if(f!==!1&&o.auth!==!1&&o.getSession){let oe=await o.getSession();if(f===!0&&!oe){k!==void 0&&Du(t,e);let se={message:"Not authenticated"};rt(t,"onFetchError",se),yt(e,t,"onFetchError",se);return}}let w=o[s];if(!N(w))return;let I={from:a,data:_,headers:p,baseUrl:h};e.params&&(I.params=nb(e.params,t,r));let H=ia(t,r);H&&(I.headers={...I.headers,"Accept-Language":H});let te=Qy(e),D=await eb(()=>w(I),te),{data:F,error:Q}=D||{};if(Q){k!==void 0&&Du(t,e),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),rt(t,"onFetchError",Q),N(v)&&v(Q,_,t),N(x)&&x(null,Q,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-j});return}if(delete i.__optimisticSnapshot,F!==void 0){let oe=u?{[u]:F}:F;t.state?.update&&t.state.update(oe,{preventFetch:!0})}if(It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),rt(t,"onFetchComplete",F),yt(e,t,"onFetchComplete",F),N(b)&&b(F,_,t),N(x)&&x(F,null,_,t),E&&E({phase:"success",mode:"mutation",ok:!0,from:a,method:s,durationMs:(typeof performance<"u"?performance.now():Date.now())-j}),g){let oe=U(g)?g:[g];for(let se of oe)if(se===!0||se==="*")for(let[Bt]of Le)Bt.startsWith(a+":")&&Po(Bt);else Po(se)}}catch(w){k!==void 0&&Du(t,e),It(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:w,status:"error",fetchStatus:"idle"}),rt(t,"onFetchError",w),yt(e,t,"onFetchError",w),N(v)&&v(w,_,t),N(x)&&x(null,w,_,t),E&&E({phase:"error",mode:"mutation",from:a,method:s,error:w.message||String(w),durationMs:(typeof performance<"u"?performance.now():Date.now())-j})}finally{i.__fetching=!1}},zu=(e,t,r,n)=>{if(!e||!n?.fetch)return;let o=Me(e,t);if(!o)return;let i=U(o)?o.map(a=>rb(Me(a,t),t)).filter(Boolean):[rb(o,t)].filter(Boolean);for(let a of i){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",c=l?xA:pr;a.on==="create"?c(a,t,n):Promise.resolve().then(()=>{mA({...a,__runner:c},t,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&yA(a,t,n)}let s=t.__ref;s.refetch=a=>{for(let l of i)pr(l,t,n,{force:!0,...a})},s.fetchNextPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__nextPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"next",force:!0})},s.fetchPreviousPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=s.__prevPageParam;if(l==null)return;let c={...a,cursor:l};pr(c,t,n,{direction:"previous",force:!0})}},CE={invalidateQueries:e=>{if(!e){Po();return}if(P(e))for(let[t]of Le)(t.startsWith(e)||t.includes(e))&&Po(t);else if(U(e)){let t=e.join(":");for(let[r]of Le)r.includes(t)&&Po(r)}},removeQueries:e=>{if(!e){na();return}if(P(e))for(let[t]of Le)(t.startsWith(e)||t.includes(e))&&na(t)},getQueryData:e=>To(e)?.data??void 0,setQueryData:(e,t)=>{let r=To(e),n=N(t)?t(r?.data):t;Ro(e,n,null)},prefetchQuery:async(e,t)=>{let r=t?.fetch;if(!r)return;let n=await ju(r,t);if(!n)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,i=n[e.method||"select"];if(!N(i))return;let s=await i({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(s?.data!==void 0&&!s?.error){let a=Ro(o,s.data,null);a.gcTime=Iu(e.cache)?.gcTime||3e5}return s},getCache:()=>Le,clear:()=>na(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[r]of Le)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(t)||na(r))}},AE={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Oo.clear(),zu(t,e,e.state,e.context))}},EE=zu});function OE(e){let t=this,{__ref:r}=t,n=[].concat(e),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",t.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function TE(e){let t=this,{parent:r}=t;if(N(e))return r.state&&e(r,r.state,r.context)?r:r.parent?r.lookup(e):void 0;if(t[e])return t[e];for(;r.param!==e;){if(r[e])return r[e];if(r=r.parent,!r)return}return r}function RE(e){let t=this,{__ref:r}=t,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let i=n[o],s=t[i];if(i===e)return s;if(N(e)){let l=e(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(e);if(a)return a}}function PE(e,t=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let i=0;i<o.length;i++){let s=o[i],a=r[s];if(s===e)t.push(a);else if(N(e)){let l=e(a,a.state,a.context);a.state&&l&&t.push(a)}a?.lookdownAll?.(e,t)}return t.length?t:void 0}}function pv(e={}){let t=this;if(t.node?.style){for(let r in e){let n=e[r],o=t[r];if(B(n)&&o)pv.call(o,n);else if(n!=null){let i=r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(n).replace(/\s*!important\s*$/,"");t.node.style.setProperty(i,s,"important")}}return t}}function $E(e){let t=this;if(Wo("beforeRemove",t,e)===!1)return t;N(t.node.remove)?t.node.remove():Uo()||(console.warn("This item cant be removed"),t.log()),delete t.parent[t.key],t.parent.__ref&&(t.parent.__ref.__children=Zf(t.parent.__ref.__children,t.key)),Wo("remove",t,e)}function IE(e){return this[e]}function FE(e,t){let r=this;if(e)return r.update(e,t),r}function jE(e){return e?this.__ref&&this.__ref[e]:this.__ref}function DE(){return this.getRef("__children").map(e=>this[e])}function LE(){return this.getRef().path}function ME(e){let t=null,r=n=>n.__element&&n.root?.isRootState;if(!this)t=bb();else if(r(this))t=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=N(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=bb()),e?t?.[e]:t}function NE(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function BE(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function VE(e){let t=this.getRoot()?.context;return e?t[e]:t}function zE(e){let t=this.context;return e?t[e]:t}function hv(){let e=this,t=[];for(let r in e)!Object.prototype.hasOwnProperty.call(e,r)||qo.has(r)&&!td.has(r)||t.push(r);return t}function gv(e=[]){let t=this,r={},n=hv.call(t),o=n.includes("children"),i=e.length?new Set(e):null;for(let s=0;s<n.length;s++){let a=n[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(t,a)||o&&a==="content")continue;let l=t[a];if(a==="state"){if(t.__ref&&!t.__ref.__hasRootState)continue;let c=N(l&&l.parse)?l.parse():l;r[a]=N(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(t.__ref&&!t.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:u,...d}=t[a];r[a]=d}else zo(l)&&Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=l)}return r}function If(e=[],t=new WeakSet){let r=this;if(t.has(r))return;t.add(r);let n=gv.call(r,e),o=e.length?new Set(e):null;for(let i in n){if(o&&o.has(i)||!Object.prototype.hasOwnProperty.call(r,i))continue;let s=n[i];Array.isArray(s)?n[i]=s.map(a=>ue(a)?If.call(a,e,t):a):ue(s)&&(n[i]=If.call(s,e,t))}return n}function mv(...e){if(mr!=="test"&&mr!=="development")return;let t=this,{__ref:r}=t;return console.groupCollapsed(t.key),e.length?e.forEach(n=>console.log(`%c${n}:
|
|
87
|
+
`,"font-weight: bold",t[n])):(console.log(r.path),t.keys().forEach(n=>console.log(`%c${n}:`,"font-weight: bold",t[n]))),console.log(t),console.groupEnd(t.key),t}function UE(...e){(mr==="test"||mr==="development")&&console.log(...e)}function WE(...e){(mr==="test"||mr==="development")&&console.warn(...e)}function Ff(...e){if(mr==="test"||mr==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&mv.call(this),new Error(...e)}}function HE(){let e=this,{key:t,parent:r}=e,{__children:n}=r.__ref,o=n.indexOf(t),i=n[o+1];return r[i]}function qE(e){let t=e||this,{key:r,parent:n}=t,{__children:o}=n.__ref;if(!o)return;let i=o.indexOf(r);return n[o[i-1]]}function GE(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let r=t.data.varCaches,n={},o;for(let i in e)e[i]!==r[i]&&(o=!0,n[i]=e[i]);return{changed:i=>{if(!o)return;let s=i(n,st(r));for(let a in n)r[a]=n[a];return s},timeout:(i,s)=>{if(!o)return;let a=setTimeout(()=>{i(n),clearTimeout(a)},s)}}}function KE(e,...t){let r=this.context,n=r.utils?.[e]||r.functions?.[e]||r.methods?.[e]||r.snippets?.[e];if(n)try{let o=n.call(this,...t);return o&&typeof o.then=="function"&&o.catch(i=>{Ff.call(this,i)}),o}catch(o){if(Ff.call(this,o),r?.strictMode)throw o}}async function XE(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),la));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),la));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let r=Promise.resolve().then(()=>(Mo(),la)).then(({resolveDb:o})=>o(t));t.__resolving=r;let n=await r;if(t.__resolved=n,e.context.fetch=n,delete t.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Mo(),la));await o(n,e.context)}return n}function YE(e){let t=this,r=e||ud.useStateQuery||t.context?.useStateQuery;if(!r)return null;let n={};if(Uu(t,n),r===!0)return n;let o=JE[r];return o?o(n):n}function ZE(e,t){return!!(La.has(e)||t?.context?.methods?.[e])}var mr,ob,yv,bb,bv,Uu,vA,ib,_A,wA,SA,kA,CA,AA,JE,aD=K(()=>{"use strict";gE(),Ka(),Ie(),qr(),rE(),qa(),mE(),mr="production",ob=null,yv=e=>{ob=e||null},bb=()=>ob||null,bv=(e,t,r,n)=>Object.defineProperty(e,t,{get:r,set:n}),Uu=(e,t)=>{let r=e.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&vA(t,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let l=e[o[a]];l&&l.__ref&&Uu(l,t)}let i=r.contentElementKey||"content",s=e[i];s&&s.__ref&&Uu(s,t)},vA=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),n=e;for(let o=0;o<r.length;o++){let i=r[o];o===r.length-1?n[i]||(n[i]=!0):(n[i]===!0&&(n[i]={}),n[i]||(n[i]={}),n=n[i])}},ib=(e,t=0)=>{let r=" ".repeat(t),n=Object.entries(e);return n.length?n.map(([o,i])=>i===!0?`${r}${o}`:`${r}${o} {
|
|
88
|
+
${ib(i,t+1)}
|
|
89
89
|
${r}}`).join(`
|
|
90
90
|
`):""},_A=e=>`{
|
|
91
91
|
${ib(e,1)}
|
|
92
|
-
}`,
|
|
92
|
+
}`,wA=e=>{let t={fields:{},include:[]},r=(n,o)=>{let i=[];for(let s in n)if(n[s]===!0)i.push(s);else{let a=o?`${o}.${s}`:s;t.include.push(a),r(n[s],a)}i.length&&(t.fields[o||"_root"]=i)};return r(e,""),t},SA=e=>{let t=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=t(i[l]),u=[];c.select&&u.push(`$select=${c.select}`),c.expand&&u.push(`$expand=${c.expand}`),a.push(u.length?`${l}(${u.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=t(e),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},kA=(e,t)=>{let r=[],n=[],o=new Set,i=(u,d,f)=>{o.add(d),f&&n.push(`LEFT JOIN ${d} ON ${d}.${f}_id = ${f}.id`);for(let p in u)u[p]===!0?r.push(`${d}.${p}`):i(u[p],p,d)},s=Object.keys(e);s.length===1&&e[s[0]]!==!0?i(e[s[0]],s[0],null):i(e,"_root",null);let a=[...o][0]||"_root",l=r.length?r.join(", "):"*",c=n.length?`
|
|
93
93
|
`+n.join(`
|
|
94
94
|
`):"";return`SELECT ${l}
|
|
95
|
-
FROM ${a}${c}`},
|
|
95
|
+
FROM ${a}${c}`},CA=e=>{let t=[],r=(n,o)=>{for(let i in n){let s=o?`${o}/${i}`:i;n[i]===!0?t.push(s):r(n[i],s)}};return r(e,""),t},AA=e=>{let t=n=>{let o=[];for(let i in n)n[i]===!0?o.push(i):o.push(`${i}(${t(n[i])})`);return o.join(", ")},r=Object.keys(e);return r.length===1&&e[r[0]]!==!0?{from:r[0],select:t(e[r[0]])}:{from:null,select:t(e)}},JE={graphql:_A,"json-api":wA,odata:SA,sql:kA,supabase:AA,paths:CA}}),EA,xv,lD=K(()=>{"use strict";wx(),EA={snapshotId:id},xv=(e,t)=>{let r=e.__ref,{currentSnapshot:n,calleeElement:o}=t;if(!o||o===e){let s=EA.snapshotId();return r.__currentSnapshot=s,[s,e]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}}),jf,vv,cD=K(()=>{jf=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),vv=e=>typeof e=="string"&&jf.has(e)});async function QE(e){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(t){console.warn(`Error attempting to enable fullscreen mode: ${t.message} (${t.name})`)}}var uD=K(()=>{"use strict"});function fD(e){return/^[0-9.]+$/.test(e)&&e!==""}var Dt,Df,_v,Lf,wv,dD=K(()=>{"use strict";Dt={skypack:{url:"https://cdn.skypack.dev",formatUrl:(e,t)=>`${Dt.skypack.url}/${e}${t!=="latest"?`@${t}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(e,t)=>`${Dt.esmsh.url}/${e}${t!=="latest"?`@${t}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(e,t)=>`${Dt.unpkg.url}/${e}${t!=="latest"?`@${t}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(e,t)=>`${Dt.jsdelivr.url}/${e}${t!=="latest"?`@${t}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(e,t)=>e.split("/").length>2||!fD(t)?`${Dt.symbols.url}/${e}`:`${Dt.symbols.url}/${e}/${t}.js`}},Df={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},_v=(e={})=>{let{packageManager:t}=e;return Df[t]||null},Lf=(e,t="latest",r="esmsh")=>(Dt[r]||Dt.esmsh).formatUrl(e,t),wv=(e,t="skypack")=>{let r=e.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let i of n){let s=r[i]||"latest";o[i]=Lf(i,s,t)}return`<script type="importmap">{
|
|
96
96
|
"imports": ${JSON.stringify(o,null,2)}
|
|
97
|
-
}<\/script>`}}),
|
|
98
|
-
`)),oO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Bf,jv,xD=X(()=>{"use strict";je(),Bf=(e,t)=>(W(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),jv=(e,t)=>(e=parseFloat(e),M(t)&&(t=Object.values(t)),Bf(e,t))});function za(e){let t=String(e||"").trim();if(!t)return{owner:xb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let s=t.indexOf("/");r=t.slice(0,s),n=t.slice(s+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=xb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Fv(e,t={}){return(t.provider||"kv")==="api"?PA(e,t):await wD(e,t)||PA(e,t)}async function wD(e,t={}){let r=t.kvBaseUrl||iO,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function PA(e,t={}){let r=t.apiBaseUrl||aO,{key:n}=za(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:"GET"});if(!s.ok)return null;let i=await s.json(),a=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(f=>{let{key:p}=za(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function sO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(M(r))return r;if(R(r)){let{full:n}=za(r);if(!n)return null;try{let o=await Fv(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var xb,iO,aO,Ea,Dv,_D=X(()=>{"use strict";je(),xb="system",iO="https://smbls-kv.nika-980.workers.dev",aO="https://api.symbols.app",Ea=(e,t)=>{for(let r in t)r in e?M(e[r])&&M(t[r])&&Ea(e[r],t[r]):e[r]=t[r]},Dv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(M(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(M(n[o])&&M(e[o]))if(o==="designSystem")Ea(e[o],n[o]);else for(let s in n[o])s in e[o]||(e[o][s]=n[o][s]);else o in e||(e[o]=n[o])}}}}),Lv,Mv,Bv,dd,Nv,pd,zv,Za,SD=X(()=>{"use strict";je(),Lv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Mv=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Bv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),dd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Nv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),pd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),zv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Za=e=>{if(W(e))return e;if(R(e))return e.split(" ");if(M(e))return Object.values(e);if(Rn(e))return[e]}}),Vv,kD=X(()=>{"use strict";Vv=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Jt,Mo,hd,gd,CD=X(()=>{"use strict";Jt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},Mo=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},hd=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return Mo(t,{keepOneX:!1})},gd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:Mo(l,{keepOneX:!0})}});let o=r.get(e.type)||[],s=Mo(o,{keepOneX:!1}),i={src:e.src,alt:t||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}}),AD={};Y(AD,{CDN_PROVIDERS:()=>Dt,DOMQL_EVENTS:()=>s0,DOMQ_PROPERTIES:()=>Ho,ENV:()=>k0,HTML_TAGS:()=>Ba,METHODS:()=>Da,METHODS_EXL:()=>nd,NODE_ENV:()=>Ft,OPTIONS:()=>fd,PACKAGE_MANAGER_TO_CDN:()=>Lf,PARSED_DOMQ_PROPERTIES:()=>rd,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>o0,SVG_TAGS:()=>B0,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>Df,addCaching:()=>Af,addContext:()=>Cf,addExtend:()=>W0,addExtends:()=>Qe,addItemAfterEveryElement:()=>Hb,addProtoToArray:()=>Qf,addRef:()=>_f,applyDependentState:()=>cv,applyEvent:()=>$f,applyEventUpdate:()=>If,applyExtends:()=>q0,applyProps:()=>Aa,arrayContainsOtherArray:()=>Mb,arraysEqual:()=>Gb,arrayzeValue:()=>Za,buildImgSrcset:()=>hd,buildSourcesAndImg:()=>gd,cache:()=>pv,call:()=>XE,captureSnapshot:()=>xv,checkForStateTypes:()=>sv,checkIfInherits:()=>Pf,checkIfStringIsInArray:()=>Yb,clone:()=>a0,cloneAndMergeArrayExtend:()=>va,cloneFunction:()=>sE,concatAddExtends:()=>z0,copyJavaScriptToClipboard:()=>Mv,copyStringToClipboard:()=>Lv,createBasedOnType:()=>wf,createElement:()=>ov,createElementExtends:()=>ff,createExtends:()=>cd,createExtendsFromKeys:()=>Na,createExtendsStack:()=>gf,createIfConditionFlag:()=>$0,createInheritedState:()=>iv,createKey:()=>ad,createNestedObject:()=>m0,createNestedObjectByKeyPath:()=>lv,createObjectWithoutPrototype:()=>of,createParent:()=>Sf,createPath:()=>kf,createProps:()=>ud,createPropsStack:()=>vf,createRoot:()=>nv,createScope:()=>fv,createSnapshotId:()=>id,customDecodeURIComponent:()=>n0,customEncodeURIComponent:()=>r0,cutArrayAfterValue:()=>Ub,cutArrayBeforeValue:()=>Vb,debounce:()=>oE,debounceOnContext:()=>T0,decodeNewlines:()=>t0,deepClone:()=>at,deepContains:()=>h0,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>l0,deepExtend:()=>uf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>pa,defineSetter:()=>vv,destringifyGlobalScope:()=>c0,detectHeightOnInit:()=>Cv,detectInfiniteLoop:()=>x0,document:()=>be,encodeNewlines:()=>e0,error:()=>Ff,excludeKeysFromObject:()=>_0,exec:()=>Be,extendCachedRegistry:()=>V0,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>Fv,fibonacciNumberByIndex:()=>Av,filterArrays:()=>Kb,filterArraysFast:()=>Xb,finalizeExtends:()=>mf,findClosestNumber:()=>Bf,findClosestNumberInFactory:()=>jv,findInheritedState:()=>Rf,findKeyPosition:()=>Jb,flattenExtend:()=>Do,formatDate:()=>kv,generateHash:()=>af,generateKey:()=>ga,generateMetaTags:()=>Iv,get:()=>jE,getCDNUrl:()=>Mf,getCapitalCaseKeys:()=>cE,getCdnProviderFromConfig:()=>_v,getChildStateInKey:()=>Tf,getChildren:()=>LE,getContext:()=>UE,getCookie:()=>L0,getDB:()=>YE,getEmotionStylesheet:()=>Vv,getExtendsInElement:()=>H0,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>cf,getFrequencyInArray:()=>Bb,getHashedExtend:()=>ya,getImportMapScript:()=>Sv,getInObjectByPath:()=>v0,getLocalStorage:()=>iE,getNev:()=>O0,getPageMetadata:()=>nO,getParentStateInKey:()=>Of,getPath:()=>ME,getQuery:()=>ZE,getRef:()=>DE,getRoot:()=>NE,getRootContext:()=>VE,getRootData:()=>zE,getRootState:()=>BE,getRootStateInKey:()=>Ef,getSpreadChildren:()=>uE,global:()=>Fb,hasFunction:()=>Fo,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>f0,inheritChildExtends:()=>pf,inheritChildPropsExtends:()=>df,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>hf,initProps:()=>tv,is:()=>Zt,isArray:()=>W,isBoolean:()=>Qu,isContextComponent:()=>fE,isCyclic:()=>w0,isDOMNode:()=>st,isDate:()=>tf,isDefined:()=>zo,isDevelopment:()=>ld,isEmpty:()=>rf,isEmptyObject:()=>d0,isEqualDeep:()=>nf,isFunction:()=>L,isHtmlElement:()=>Xf,isLocal:()=>E0,isMethod:()=>JE,isMobile:()=>F0,isNode:()=>Wa,isNot:()=>Lb,isNotProduction:()=>Ka,isNull:()=>ef,isNumber:()=>Rn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Ev,isProduction:()=>Vo,isStaging:()=>A0,isState:()=>av,isString:()=>R,isStringFunction:()=>P0,isTest:()=>sf,isTesting:()=>C0,isUndefined:()=>Mt,isUniversallyReservedKey:()=>wv,isValidHtmlTag:()=>N0,joinArrays:()=>ja,jointStacks:()=>U0,keys:()=>gv,loadCssFile:()=>Pv,loadJavascript:()=>$v,loadJavascriptFile:()=>Ov,loadJavascriptFileEmbedSync:()=>Rv,loadJavascriptFileSync:()=>Tv,loadRemoteCSS:()=>rO,loadRemoteScript:()=>tO,log:()=>WE,logGroupIf:()=>j0,logIf:()=>I0,lookdown:()=>PE,lookdownAll:()=>$E,lookup:()=>RE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>p0,map:()=>i0,mapStringsWithContextComponents:()=>xa,matchesComponentNaming:()=>An,memoize:()=>R0,merge:()=>it,mergeSharedLibraries:()=>Dv,nextElement:()=>qE,normalizeLibraryKey:()=>za,objectToString:()=>ha,objectizeStringProperty:()=>_a,overwrite:()=>od,overwriteDeep:()=>Pn,overwriteShallow:()=>sd,overwriteState:()=>uv,parse:()=>mv,parseDeep:()=>jf,pickupElementFromProps:()=>X0,pickupPropsFromElement:()=>K0,previousElement:()=>GE,propExists:()=>ev,propertizeElement:()=>Y0,propertizeUpdate:()=>pE,remove:()=>IE,removeChars:()=>Bv,removeCookie:()=>M0,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>Fa,removeFromArray:()=>Nb,removeFromObject:()=>g0,removeNestedKeyByPath:()=>y0,removeValueFromArray:()=>Jf,removeValueFromArrayAll:()=>Wb,reorderArrayByValues:()=>qb,replaceLiteralsWithObjectFields:()=>tE,replaceOctalEscapeSequences:()=>Qb,resolveAsset:()=>Jt,resolveHandler:()=>La,resolveSharedLibraries:()=>sO,returnValueAsText:()=>xf,runPluginHook:()=>Ma,self:()=>Db,setActiveRootState:()=>bv,setCookie:()=>D0,setHashedExtend:()=>lf,setInObjectByPath:()=>b0,setLocalStorage:()=>aE,setNodeStyles:()=>hv,setProps:()=>FE,setPropsPrototype:()=>yf,spotByPath:()=>TE,srcsetFor:()=>Mo,stringIncludesAny:()=>ed,stringToObject:()=>u0,swapItemsInArray:()=>zb,syncProps:()=>Ca,toCamelCase:()=>dd,toDashCase:()=>pd,toDescriptionCase:()=>zv,toTitleCase:()=>Nv,toggleFullscreen:()=>eO,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>dv,trimStringFromSymbols:()=>Zb,unstackArrayOfObjects:()=>Zf,update:()=>Z0,updateProps:()=>rv,variables:()=>KE,verbose:()=>yv,warn:()=>HE,window:()=>le});var B=X(()=>{"use strict";S0(),nE(),je(),qr(),Ya(),Ha(),Yf(),XF(),YF(),td(),Kf(),ZF(),lE(),dE(),gE(),G0(),eD(),tD(),Ga(),rD(),iD(),yE(),aD(),mE(),lD(),cD(),fD(),dD(),pD(),hD(),gD(),mD(),vD(),xD(),_D(),SD(),kD(),CD()}),ED=jb((e,t)=>{var r=1e3,n=r*60,o=n*60,s=o*24,i=s*7,a=s*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*i;case"days":case"day":case"d":return h*s;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=s?Math.round(f/s)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=s?d(f,p,s,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),OD=jb((e,t)=>{function r(n){s.debug=s,s.default=s,s.coerce=d,s.disable=c,s.enable=a,s.enabled=u,s.humanize=ED(),s.destroy=f,Object.keys(n).forEach(p=>{s[p]=n[p]}),s.names=[],s.skips=[],s.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return s.colors[Math.abs(h)%s.colors.length]}s.selectColor=o;function s(p){let h,g=null,m,y;function b(...x){if(!b.enabled)return;let v=b,w=Number(new Date),k=w-(h||w);v.diff=k,v.prev=h,v.curr=w,h=w,x[0]=s.coerce(x[0]),typeof x[0]!="string"&&x.unshift("%O");let E=0;x[0]=x[0].replace(/%([a-zA-Z%])/g,(j,_)=>{if(j==="%%")return"%";E++;let $=s.formatters[_];if(typeof $=="function"){let q=x[E];j=$.call(v,q),x.splice(E,1),E--}return j}),s.formatArgs.call(v,x),(v.log||s.log).apply(v,x)}return b.namespace=p,b.useColors=s.useColors(),b.color=s.selectColor(p),b.extend=i,b.destroy=s.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==s.namespaces&&(m=s.namespaces,y=s.enabled(p)),y),set:x=>{g=x}}),typeof s.init=="function"&&s.init(b),b}function i(p,h){let g=s(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){s.save(p),s.namespaces=p,s.names=[],s.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?s.skips.push(g.slice(1)):s.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...s.names,...s.skips.map(h=>"-"+h)].join(",");return s.enable(""),p}function u(p){for(let h of s.skips)if(l(p,h))return!1;for(let h of s.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return s.enable(s.load()),s}t.exports=r}),TD=jb((e,t)=>{e.formatArgs=n,e.save=o,e.load=s,e.useColors=r,e.storage=i(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function i(){try{return localStorage}catch{}}t.exports=OD()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var lO={};Y(lO,{CSS_NATIVE_COLOR_REGEX:()=>In,CSS_UNITS:()=>Wv,applyMediaSequenceVars:()=>zf,applySequenceGlobalVars:()=>tx,applySequenceVars:()=>vd,changeLightness:()=>FD,colorStringToRgbaArray:()=>$n,convertSvgToSymbol:()=>PO,findHeadingLetter:()=>EO,findHeadings:()=>OO,generateSequence:()=>yr,generateSequencePosition:()=>vL,generateSprite:()=>_b,generateSubSequence:()=>Qv,getColorShade:()=>pO,getDefaultOrFirstKey:()=>Hv,getFnPrefixAndValue:()=>Qa,getFontFace:()=>MD,getFontFaceEach:()=>yd,getFontFaceEachString:()=>yO,getFontFaceString:()=>bO,getFontFormat:()=>gO,getRgbTone:()=>Oa,getSequenceValue:()=>ex,getSequenceValueBySymbols:()=>AO,getSequenceValuePropertyPair:()=>Ua,getSubratio:()=>kO,getSubratioDifference:()=>Jv,hexToRgb:()=>PD,hexToRgbArray:()=>cO,hexToRgba:()=>ID,hslToRgb:()=>dO,isCSSVar:()=>Ue,isGoogleFontsUrl:()=>qv,isResolvedColor:()=>qo,isScalingUnit:()=>Uv,mixTwoColors:()=>RD,mixTwoRgb:()=>jD,mixTwoRgba:()=>hO,numToLetterMap:()=>Wr,opacify:()=>wb,parseColorToken:()=>Ja,resolveFileUrl:()=>gr,returnSubThemeOrDefault:()=>LD,rgbArrayToHex:()=>uO,rgbToHSL:()=>fO,rgbToHex:()=>$D,setCustomFont:()=>Kv,setCustomFontMedia:()=>Va,setFontImport:()=>Gv,setInCustomFontMedia:()=>mO,setScalingVar:()=>Zv,setSubScalingVar:()=>SO,setVariables:()=>xL,splitTopLevelCommas:()=>md});var Uv=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Wv=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];B();var $n=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&be&&le){let t=be.body.appendChild(be.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){be.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return be.body.removeChild(t),[0,0,0,0];e=le.getComputedStyle(t).color,be.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},RD=(e,t,r=.5)=>(e=$n(e),t=$n(t),hO(e,t,r)),PD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},cO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},$D=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),uO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),ID=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${t})`},jD=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},FD=(e,t)=>{let[r,n,o]=t,s=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,s]},fO=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),s=1-Math.abs(n+n-o-1),i=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},dO=(e,t,r,n=t*Math.min(r,1-r),o=(s,i=(s+e/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],pO=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(r&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},hO=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},wb=(e,t)=>{let r=$n(e);if(!r){Ka()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},Ue=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,In=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,DD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ja=e=>{if(!R(e))return null;if(In.test(e))return{passthrough:e};if(Ue(e))return{cssVar:e};let t=e.match(DD);if(!t)return null;let[,r,n,o]=t,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},qo=e=>R(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),md=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Oa=(e,t)=>{R(e)&&e.includes("rgb")&&(e=$n(e).join(", ")),R(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Rn(t)&&(t+="");let r=uO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=pO(r,parseFloat(t));return cO(o).join(", ")}else{let[o,s,i]=e,a=fO(o,s,i),[l,c,u]=a;return dO(l,c,parseFloat(t)/100*255)}},LD=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},gr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Hv=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},gO=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},qv=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),Gv=e=>`@import url('${e}');`,mO=e=>`@font-face { ${e} }`,Kv=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(s=>typeof s=="string"&&s).map(s=>{let i=gO(s),a=i?` format('${i}')`:"";return`url('${s}')${a}`}).join(`,
|
|
97
|
+
}<\/script>`}}),Sv,pD=K(()=>{"use strict";Sv=e=>{if(!e)return"";let t=new Date(e),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(t),n=new Intl.DateTimeFormat("en",{month:"short"}).format(t);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(t)} ${n}, ${r}`}}),kv,hD=K(()=>{"use strict";kv=(e,t)=>{let r=setTimeout(()=>{let{props:n}=e;if(!t.clientHeight){let{node:{clientHeight:o}}=e;o&&(t.clientHeight=o)}if(t.active){if(n.height==="auto")return;e.update({height:t.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{e.update({height:"auto"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else e.update({height:"0"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}}),Cv,gD=K(()=>{"use strict";Cv=function(e){let t=[0,1];for(let r=2;r<=e;r++)t[r]=t[r-1]+t[r-2];return t[e]}}),Av,mD=K(()=>{"use strict";Av=e=>["jpeg","gif","jpg","png","tiff","woff"].includes(e)});function eO(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`script[src="${e}"]`);if(s)return o(s);let a=n.createElement("script");a.src=e,a.async=t.async===!0,a.type=t.type||"text/javascript",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load script: ${e}`))},n.head.appendChild(a)})}async function tO(e,t={}){let{window:r=globalThis}=t,{document:n=r.document}=t;return new Promise((o,i)=>{let s=n.querySelector(`link[href="${e}"]`);if(s)return o(s);let a=n.createElement("link");a.href=e,a.rel=t.rel||"stylesheet",a.type="text/css",a.media=t.media||"all",t.id&&(a.id=t.id),t.integrity&&(a.integrity=t.integrity),t.crossOrigin&&(a.crossOrigin=t.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,i(new Error(`Failed to load stylesheet: ${e}`))},n.head.appendChild(a)})}var Ev,Ov,Tv,Rv,Pv,yD=K(()=>{"use strict";Ev=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("script");s.type=n,s.async=t,s.src=e,s.addEventListener("load",a=>{o({status:!0})}),s.addEventListener("error",a=>{i(new Error({status:!1,message:`Failed to load the script ${e}`}))}),r.body.appendChild(s)}catch(s){i(s)}}),Ov=(e,t=document,r="text/javascript")=>new Promise((n,o)=>{let i=t.createElement("script");i.type=r,i.src=e;let s=t.createElement("div");s.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",t.body.appendChild(s),i.onload=()=>{console.log(`Successfully loaded: ${e}`),t.body.removeChild(s),n()},i.onerror=()=>{t.body.removeChild(s),o(new Error(`Failed to load: ${e}`))},t.body.appendChild(i)}),Tv=(e,t=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",e,!1),o.send(),o.status===200){let i=t.createElement("script");i.type=n,i.text=o.responseText,t.body.appendChild(i),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${e}`)},Rv=(e,t=!1,r=document,n="text/javascript")=>new Promise((o,i)=>{try{let s=r.createElement("link");s.rel="stylesheet",s.href=e,s.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(s)}catch(s){i(s)}}),Pv=(e,t=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let i=r.createElement("script");i.type=n,i.async=t,i.id=o,i.innerHTML=e,r.body.appendChild(i)}catch(i){console.warn(i)}}});function bD(e,t){if(!t||typeof t!="object")return e;let r=o=>{if(!nO(o))return o;let i=t[o];return i?.src?i.src:o},n={...e};for(let[o,i]of Object.entries(n))typeof i=="string"?n[o]=r(i):Array.isArray(i)&&(n[o]=i.map(s=>typeof s=="string"?r(s):s));return n}function Lu(e,t){if(!e||!t)return;let r=t.split("."),n=e;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function xD(e,t,r){let n=(t.config||t.settings||{}).polyglot||t.polyglot,o=r?.lang||n?.defaultLang||"en",i=(n?.translations||{})[o]||{},s=r?.state||{},a={...e};for(let[l,c]of Object.entries(a))typeof c!="string"||!c.includes("{{")||(a[l]=c.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(u,d,f)=>{let p=d.trim();if(f==="polyglot")return i[p]??Lu(i,p)??u;if(f==="getLocalStateLang")return Lu(s,p+o)??u;let h=Lu(s,p);return h!==void 0?h:i[p]??Lu(i,p)??u}));return a}function OA(e){let t={...e};for(let[r,n]of Object.entries(t))if(typeof n=="function"){let o=n.toString(),i=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | getLocalStateLang }}`;continue}let s=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){t[r]=`{{ ${s[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){t[r]=`{{ ${a[1]} }}`;continue}delete t[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){t[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let i=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){t[r]=`{{ ${i[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let s=n.match(/s\.(\w+(?:\.\w+)+)/);if(s){t[r]=`{{ ${s[1]} }}`;continue}}}return t}function rO(e,t,r,{isProduction:n=!1,channel:o="production"}={}){let i=e.pages?.[t],s=B(i?.state)&&i?.state,a=i?.metadata||i?.helmet||s||{},l=OA(a),c=new Set(Object.keys(l)),u=e.app?.metadata||{},d=OA(u),f={};if(e.integrations?.seo?f={...e.integrations.seo,...d,...l}:Object.keys(d).length?f={...d,...l}:f={...l},!f.title){let g=e.name||e.key;g?n?f.title=g:o==="development"?f.title=`${g} / dev:symbo.ls`:o==="staging"?f.title=`${g} / staging:symbo.ls`:f.title=`${g} / symbo.ls`:f.title="Symbols demo"}f=xD(f,e,r),f.title&&(c.has("title")||!f["og:title"])&&(c.has("og:title")||(f["og:title"]=f.title)),f.description&&(c.has("description")||!f["og:description"])&&(c.has("og:description")||(f["og:description"]=f.description)),f.title&&!f["twitter:title"]&&(f["twitter:title"]=f.title),f.description&&!f["twitter:description"]&&(f["twitter:description"]=f.description);let p=r?.actualPathname||t;if(f["og:url"]||f.url){let g=(f["og:url"]||f.url||"").replace(/\/$/,"");if(g&&p&&p!=="/"){let m=p.startsWith("/")?p:"/"+p;f["og:url"]=g+m}}f=bD(f,e.files);let h=e.name||e.app?.metadata?.title||e.app?.name||"";for(let[g,m]of Object.entries(f))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?f[g]=y:g==="title"?f[g]=h:delete f[g]}return f}var nt,TA,$v,nO,vD=K(()=>{"use strict";Ie(),nt=e=>{if(e==null)return"";let t={"&":"&","<":"<",">":">",'"':""","'":"'"};return e.toString().replace(/[&<>"']/g,r=>t[r])},TA=e=>Object.entries(e||{}).filter(([t,r])=>r!==void 0).map(([t,r])=>`${t}="${nt(r)}"`).join(" "),$v=(e,t)=>(t||(e={...e,robots:"noindex"}),Object.entries(e).reduce((r,[n,o])=>{if(!o&&o!==0&&o!==!1)return r;if(n==="title")return r.push(`<title>${nt(o)}</title>`),r;if(n==="canonical")return r.push(`<link rel="canonical" href="${nt(o)}">`),r;if(n==="manifest")return r.push(`<link rel="manifest" href="${nt(o)}">`),r;if(n==="favicon"||n==="favicons"||n==="icon"||n==="icons")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="string")r.push(`<link rel="icon" href="${nt(a)}">`);else if(typeof a=="object"){let l=TA(a);/rel=/.test(l)?r.push(`<link ${l}>`):r.push(`<link rel="icon" ${l}>`)}}),r;if(n==="alternate")return(Array.isArray(o)?o:[o]).forEach(a=>{if(typeof a=="object"){let l=Object.entries(a).filter(([c,u])=>u!==void 0).map(([c,u])=>`${c}="${nt(u)}"`).join(" ");r.push(`<link rel="alternate" ${l}>`)}}),r;let i=(a,l,c="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")r.push(`<meta ${c}="${nt(a)}" content="${nt(l)}">`);else if(Array.isArray(l))l.forEach(u=>{if(typeof u=="string"||typeof u=="number"||typeof u=="boolean")r.push(`<meta ${c}="${nt(a)}" content="${nt(u)}">`);else if(typeof u=="object"){let d=Object.entries(u).filter(([f,p])=>p!==void 0).map(([f,p])=>`${f}="${nt(p)}"`).join(" ");r.push(`<meta ${d}>`)}});else if(typeof l=="object"){let u=Object.entries(l).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d}="${nt(f)}"`).join(" ");r.push(`<meta ${u}>`)}};if(n.startsWith("http-equiv:")){let a=n.replace("http-equiv:","");return i(a,o,"http-equiv"),r}if(n.startsWith("itemprop:")){let a=n.replace("itemprop:","");return i(a,o,"itemprop"),r}let s=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(a=>n.startsWith(a));if(s){let a=n.replace(s,"");return i(`${s.replace(":","")}:${a}`,o,s==="twitter:"||s==="DC:"||s==="DCTERMS:"?"name":"property"),r}if(n.startsWith("apple:")||n.startsWith("msapplication:")){let a=n.startsWith("apple:")?"apple-":"msapplication-",l=n.replace(/^apple:|^msapplication:/,"");return i(`${a}${l}`,o,"name"),r}return i(n,o),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
|
|
98
|
+
`)),nO=e=>typeof e=="string"&&e.length>0&&!e.startsWith("/")&&!e.startsWith("http")}),Mf,Iv,_D=K(()=>{"use strict";Ie(),Mf=(e,t)=>(U(t)?t:Object.values(t)).reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r),Iv=(e,t)=>(e=parseFloat(e),B(t)&&(t=Object.values(t)),Mf(e,t))});function za(e){let t=String(e||"").trim();if(!t)return{owner:xb,key:"",full:""};let r=null,n=t;if(t.includes("/")){let i=t.indexOf("/");r=t.slice(0,i),n=t.slice(i+1)}n=n.replace(/\.symbo\.ls$/iu,""),r||(r=xb);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function Fv(e,t={}){return(t.provider||"kv")==="api"?RA(e,t):await wD(e,t)||RA(e,t)}async function wD(e,t={}){let r=t.kvBaseUrl||iO,n=t.env||"production",o=`${r}/kv/${encodeURIComponent(e)}?env=${n}`;try{let i=await fetch(o,{method:"GET"});return i.ok&&(await i.json())?.value||null}catch{return null}}async function RA(e,t={}){let r=t.apiBaseUrl||sO,{key:n}=za(e);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,i=await fetch(o,{method:"GET"});if(!i.ok)return null;let s=await i.json(),a=(s?.items||s?.data||(Array.isArray(s)?s:[])).find(f=>{let{key:p}=za(f?.key);return p.toLowerCase()===n.toLowerCase()});if(!a?.id&&!a?._id)return null;let l=a.id||a._id,c=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(c,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function oO(e,t={}){return!e||!e.length?[]:(await Promise.all(e.map(async r=>{if(B(r))return r;if(P(r)){let{full:n}=za(r);if(!n)return null;try{let o=await Fv(n,t);return o||console.warn(`[smbls] Shared library "${n}" not found`),o}catch(o){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,o.message),null}}return null}))).filter(Boolean)}var xb,iO,sO,Oa,jv,SD=K(()=>{"use strict";Ie(),xb="system",iO="https://smbls-kv.nika-980.workers.dev",sO="https://api.symbols.app",Oa=(e,t)=>{for(let r in t)r in e?B(e[r])&&B(t[r])&&Oa(e[r],t[r]):e[r]=t[r]},jv=(e,t)=>{if(!(!t||!t.length))for(let r=0;r<t.length;r++){let n=t[r];if(B(n)){for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(B(n[o])&&B(e[o]))if(o==="designSystem")Oa(e[o],n[o]);else for(let i in n[o])i in e[o]||(e[o][i]=n[o][i]);else o in e||(e[o]=n[o])}}}}),Dv,Lv,Mv,fd,Nv,dd,Bv,Ja,kD=K(()=>{"use strict";Ie(),Dv=async e=>{try{await navigator.clipboard.writeText(e)}catch(t){console.warn("Failed to copy text: ",t)}},Lv=async e=>{try{let t=new Blob([e],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":t});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(t){console.error("Failed to copy JavaScript code: ",t)}},Mv=e=>e.replace(/[^a-zA-Z0-9_]/g,""),fd=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,r){return r===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),Nv=e=>e&&e.replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()),dd=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Bv=(e="")=>{if(typeof e!="string")return;let t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)},Ja=e=>{if(U(e))return e;if(P(e))return e.split(" ");if(B(e))return Object.values(e);if(Pn(e))return[e]}}),Vv,CD=K(()=>{"use strict";Vv=()=>{let e=document.styleSheets[0],t="";if(e)try{let r=e.cssRules||e.rules;for(let n=0;n<r.length;n++)t+=r[n].cssText}catch(r){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",r)}else console.log("No stylesheets found in document.styleSheets[0].");return t}}),Jt,No,pd,hd,AD=K(()=>{"use strict";Jt=e=>{let t=e&&e.src;if(!t||typeof t!="string")return null;let r=e.context;if(!r)return null;let n=r.assets&&r.assets[t]||r.files&&r.files[t];return n?typeof n=="string"?{src:n,type:null,variants:null}:typeof n=="object"&&typeof n.src=="string"?n:null:null},No=(e,{keepOneX:t=!0}={})=>{if(!Array.isArray(e)||!e.length)return"";let r=e.some(o=>typeof o.width=="number"),n=[];for(let o of e)r&&typeof o.width=="number"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&t?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(", ")},pd=e=>{if(!e||!Array.isArray(e.variants))return"";let t=e.variants.filter(r=>r.format===e.type);return No(t,{keepOneX:!1})},hd=(e,t)=>{if(!e||typeof e!="object"||typeof e.src!="string")return[];if(!Array.isArray(e.variants)||!e.variants.length)return[{tag:"img",attr:{src:e.src,alt:t||""}}];let r=new Map;for(let a of e.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,l]of r)a!==e.type&&n.push({tag:"source",attr:{type:a,srcset:No(l,{keepOneX:!0})}});let o=r.get(e.type)||[],i=No(o,{keepOneX:!1}),s={src:e.src,alt:t||""};return i&&(s.srcset=i),[...n,{tag:"img",attr:s}]}}),ED={};Y(ED,{CDN_PROVIDERS:()=>Dt,DOMQL_EVENTS:()=>ox,DOMQ_PROPERTIES:()=>qo,ENV:()=>Sx,HTML_TAGS:()=>Ba,METHODS:()=>La,METHODS_EXL:()=>rd,NODE_ENV:()=>jt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>nx,SVG_TAGS:()=>Mx,TYPES:()=>pa,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Ux,addExtends:()=>Je,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Jf,addRef:()=>_f,applyDependentState:()=>lv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>Hx,applyProps:()=>Ea,arrayContainsOtherArray:()=>Lb,arraysEqual:()=>qb,arrayzeValue:()=>Ja,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>dv,call:()=>KE,captureSnapshot:()=>xv,checkForStateTypes:()=>ov,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Xb,clone:()=>sx,cloneAndMergeArrayExtend:()=>va,cloneFunction:()=>oE,concatAddExtends:()=>Bx,copyJavaScriptToClipboard:()=>Lv,copyStringToClipboard:()=>Dv,createBasedOnType:()=>vf,createElement:()=>nv,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Va,createExtendsStack:()=>hf,createIfConditionFlag:()=>Px,createInheritedState:()=>iv,createKey:()=>sd,createNestedObject:()=>gx,createNestedObjectByKeyPath:()=>av,createObjectWithoutPrototype:()=>nf,createParent:()=>wf,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>rv,createScope:()=>uv,createSnapshotId:()=>id,customDecodeURIComponent:()=>rx,customEncodeURIComponent:()=>tx,cutArrayAfterValue:()=>zb,cutArrayBeforeValue:()=>Vb,debounce:()=>nE,debounceOnContext:()=>Ox,decodeNewlines:()=>ex,deepClone:()=>st,deepContains:()=>px,deepDefaults:()=>Oa,deepDestringifyFunctions:()=>ax,deepExtend:()=>cf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>ha,defineSetter:()=>bv,destringifyGlobalScope:()=>lx,detectHeightOnInit:()=>kv,detectInfiniteLoop:()=>xx,document:()=>be,encodeNewlines:()=>Qb,error:()=>Ff,excludeKeysFromObject:()=>_x,exec:()=>Me,extendCachedRegistry:()=>Vx,extendStackRegistry:()=>ya,extractArrayExtend:()=>xa,fetchLibraryData:()=>Fv,fibonacciNumberByIndex:()=>Cv,filterArrays:()=>Gb,filterArraysFast:()=>Kb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Iv,findInheritedState:()=>Tf,findKeyPosition:()=>Zb,flattenExtend:()=>Lo,formatDate:()=>Sv,generateHash:()=>sf,generateKey:()=>ma,generateMetaTags:()=>$v,get:()=>IE,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>lE,getCdnProviderFromConfig:()=>_v,getChildStateInKey:()=>Of,getChildren:()=>DE,getContext:()=>zE,getCookie:()=>Dx,getDB:()=>XE,getEmotionStylesheet:()=>Vv,getExtendsInElement:()=>Wx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Mb,getHashedExtend:()=>ba,getImportMapScript:()=>wv,getInObjectByPath:()=>bx,getLocalStorage:()=>iE,getNev:()=>Ex,getPageMetadata:()=>rO,getParentStateInKey:()=>Ef,getPath:()=>LE,getQuery:()=>YE,getRef:()=>jE,getRoot:()=>NE,getRootContext:()=>VE,getRootData:()=>BE,getRootState:()=>ME,getRootStateInKey:()=>Af,getSpreadChildren:()=>cE,global:()=>Fb,hasFunction:()=>Do,hasHandlerPlugin:()=>Ya,hasOwnProperty:()=>ux,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>ka,inheritRecursiveChildExtends:()=>pf,initProps:()=>ev,is:()=>Zt,isArray:()=>U,isBoolean:()=>Ju,isContextComponent:()=>uE,isCyclic:()=>vx,isDOMNode:()=>ot,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>fx,isEqualDeep:()=>rf,isFunction:()=>N,isHtmlElement:()=>Kf,isLocal:()=>Ax,isMethod:()=>ZE,isMobile:()=>Fx,isNode:()=>Ha,isNot:()=>Db,isNotProduction:()=>Xa,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>B,isObjectLike:()=>ue,isPhoto:()=>Av,isProduction:()=>Uo,isStaging:()=>Cx,isState:()=>sv,isString:()=>P,isStringFunction:()=>Rx,isTest:()=>of,isTesting:()=>kx,isUndefined:()=>Mt,isUniversallyReservedKey:()=>vv,isValidHtmlTag:()=>Nx,joinArrays:()=>ja,jointStacks:()=>zx,keys:()=>hv,loadCssFile:()=>Rv,loadJavascript:()=>Pv,loadJavascriptFile:()=>Ev,loadJavascriptFileEmbedSync:()=>Tv,loadJavascriptFileSync:()=>Ov,loadRemoteCSS:()=>tO,loadRemoteScript:()=>eO,log:()=>UE,logGroupIf:()=>Ix,logIf:()=>$x,lookdown:()=>RE,lookdownAll:()=>PE,lookup:()=>TE,lowercaseFirstLetter:()=>Ga,makeObjectWithoutPrototype:()=>dx,map:()=>ix,mapStringsWithContextComponents:()=>_a,matchesComponentNaming:()=>En,memoize:()=>Tx,merge:()=>it,mergeSharedLibraries:()=>jv,nextElement:()=>HE,normalizeLibraryKey:()=>za,objectToString:()=>ga,objectizeStringProperty:()=>Sa,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>cv,parse:()=>gv,parseDeep:()=>If,pickupElementFromProps:()=>Kx,pickupPropsFromElement:()=>Gx,previousElement:()=>qE,propExists:()=>Qx,propertizeElement:()=>Xx,propertizeUpdate:()=>dE,remove:()=>$E,removeChars:()=>Mv,removeCookie:()=>Lx,removeDuplicateProps:()=>Ca,removeDuplicatesInArray:()=>Da,removeFromArray:()=>Nb,removeFromObject:()=>hx,removeNestedKeyByPath:()=>mx,removeValueFromArray:()=>Zf,removeValueFromArrayAll:()=>Ub,reorderArrayByValues:()=>Hb,replaceLiteralsWithObjectFields:()=>eE,replaceOctalEscapeSequences:()=>Jb,resolveAsset:()=>Jt,resolveHandler:()=>Ma,resolveSharedLibraries:()=>oO,returnValueAsText:()=>xf,runPluginHook:()=>Na,self:()=>jb,setActiveRootState:()=>yv,setCookie:()=>jx,setHashedExtend:()=>af,setInObjectByPath:()=>yx,setLocalStorage:()=>sE,setNodeStyles:()=>pv,setProps:()=>FE,setPropsPrototype:()=>mf,spotByPath:()=>OE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>cx,swapItemsInArray:()=>Bb,syncProps:()=>Aa,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Bv,toTitleCase:()=>Nv,toggleFullscreen:()=>QE,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>fv,trimStringFromSymbols:()=>Yb,unstackArrayOfObjects:()=>Yf,update:()=>Yx,updateProps:()=>tv,variables:()=>GE,verbose:()=>mv,warn:()=>WE,window:()=>ce});var V=K(()=>{"use strict";wx(),rE(),Ie(),qr(),Za(),qa(),Xf(),Yj(),Zj(),ed(),Gf(),Jj(),aE(),fE(),hE(),qx(),tD(),rD(),Ka(),nD(),aD(),mE(),lD(),gE(),cD(),uD(),dD(),pD(),hD(),gD(),mD(),yD(),vD(),_D(),SD(),kD(),CD(),AD()}),OD=Ib((e,t)=>{var r=1e3,n=r*60,o=n*60,i=o*24,s=i*7,a=i*365.25;t.exports=function(f,p){p=p||{};var h=typeof f;if(h==="string"&&f.length>0)return l(f);if(h==="number"&&isFinite(f))return p.long?u(f):c(f);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(f))};function l(f){if(f=String(f),!(f.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(f);if(p){var h=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return h*a;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function c(f){var p=Math.abs(f);return p>=i?Math.round(f/i)+"d":p>=o?Math.round(f/o)+"h":p>=n?Math.round(f/n)+"m":p>=r?Math.round(f/r)+"s":f+"ms"}function u(f){var p=Math.abs(f);return p>=i?d(f,p,i,"day"):p>=o?d(f,p,o,"hour"):p>=n?d(f,p,n,"minute"):p>=r?d(f,p,r,"second"):f+" ms"}function d(f,p,h,g){var m=p>=h*1.5;return Math.round(f/h)+" "+g+(m?"s":"")}}),TD=Ib((e,t)=>{function r(n){i.debug=i,i.default=i,i.coerce=d,i.disable=c,i.enable=a,i.enabled=u,i.humanize=OD(),i.destroy=f,Object.keys(n).forEach(p=>{i[p]=n[p]}),i.names=[],i.skips=[],i.formatters={};function o(p){let h=0;for(let g=0;g<p.length;g++)h=(h<<5)-h+p.charCodeAt(g),h|=0;return i.colors[Math.abs(h)%i.colors.length]}i.selectColor=o;function i(p){let h,g=null,m,y;function b(...v){if(!b.enabled)return;let x=b,_=Number(new Date),k=_-(h||_);x.diff=k,x.prev=h,x.curr=_,h=_,v[0]=i.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let E=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(j,w)=>{if(j==="%%")return"%";E++;let I=i.formatters[w];if(typeof I=="function"){let H=v[E];j=I.call(x,H),v.splice(E,1),E--}return j}),i.formatArgs.call(x,v),(x.log||i.log).apply(x,v)}return b.namespace=p,b.useColors=i.useColors(),b.color=i.selectColor(p),b.extend=s,b.destroy=i.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(m!==i.namespaces&&(m=i.namespaces,y=i.enabled(p)),y),set:v=>{g=v}}),typeof i.init=="function"&&i.init(b),b}function s(p,h){let g=i(this.namespace+(typeof h>"u"?":":h)+p);return g.log=this.log,g}function a(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let h=(typeof p=="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let g of h)g[0]==="-"?i.skips.push(g.slice(1)):i.names.push(g)}function l(p,h){let g=0,m=0,y=-1,b=0;for(;g<p.length;)if(m<h.length&&(h[m]===p[g]||h[m]==="*"))h[m]==="*"?(y=m,b=g,m++):(g++,m++);else if(y!==-1)m=y+1,b++,g=b;else return!1;for(;m<h.length&&h[m]==="*";)m++;return m===h.length}function c(){let p=[...i.names,...i.skips.map(h=>"-"+h)].join(",");return i.enable(""),p}function u(p){for(let h of i.skips)if(l(p,h))return!1;for(let h of i.names)if(l(p,h))return!0;return!1}function d(p){return p instanceof Error?p.stack||p.message:p}function f(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.enable(i.load()),i}t.exports=r}),RD=Ib((e,t)=>{e.formatArgs=n,e.save=o,e.load=i,e.useColors=r,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=TD()(e);var{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}});var aO={};Y(aO,{CSS_NATIVE_COLOR_REGEX:()=>Fn,CSS_UNITS:()=>Uv,applyMediaSequenceVars:()=>Bf,applySequenceGlobalVars:()=>e0,applySequenceVars:()=>bd,changeLightness:()=>DD,colorStringToRgbaArray:()=>In,convertSvgToSymbol:()=>RO,findHeadingLetter:()=>AO,findHeadings:()=>EO,generateSequence:()=>yr,generateSequencePosition:()=>vL,generateSprite:()=>_b,generateSubSequence:()=>Jv,getColorShade:()=>dO,getDefaultOrFirstKey:()=>Wv,getFnPrefixAndValue:()=>el,getFontFace:()=>ND,getFontFaceEach:()=>md,getFontFaceEachString:()=>mO,getFontFaceString:()=>yO,getFontFormat:()=>hO,getRgbTone:()=>Ta,getSequenceValue:()=>Qv,getSequenceValueBySymbols:()=>CO,getSequenceValuePropertyPair:()=>Wa,getSubratio:()=>SO,getSubratioDifference:()=>Zv,hexToRgb:()=>$D,hexToRgbArray:()=>lO,hexToRgba:()=>FD,hslToRgb:()=>fO,isCSSVar:()=>ze,isGoogleFontsUrl:()=>Hv,isResolvedColor:()=>Go,isScalingUnit:()=>zv,mixTwoColors:()=>PD,mixTwoRgb:()=>jD,mixTwoRgba:()=>pO,numToLetterMap:()=>Wr,opacify:()=>vb,parseColorToken:()=>Qa,resolveFileUrl:()=>gr,returnSubThemeOrDefault:()=>MD,rgbArrayToHex:()=>cO,rgbToHSL:()=>uO,rgbToHex:()=>ID,setCustomFont:()=>Gv,setCustomFontMedia:()=>Ua,setFontImport:()=>qv,setInCustomFontMedia:()=>gO,setScalingVar:()=>Yv,setSubScalingVar:()=>wO,setVariables:()=>_L,splitTopLevelCommas:()=>gd});var zv=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",Uv=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];V();var In=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&be&&ce){let t=be.body.appendChild(be.createElement("fictum")),r="rgb(1, 2, 3)";if(t.style.color=r,t.style.color!==r){be.body.removeChild(t);return}if(t.style.color=e,t.style.color===r||t.style.color==="")return be.body.removeChild(t),[0,0,0,0];e=ce.getComputedStyle(t).color,be.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]},PD=(e,t,r=.5)=>(e=In(e),t=In(t),pO(e,t,r)),$D=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgb(${r},${n},${o})`},lO=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return[r,n,o]},ID=(e,t,r)=>"#"+(1<<24|e<<16|t<<8|r).toString(16).slice(1),cO=([e,t,r])=>((1<<24)+(e<<16)+(t<<8)+r).toString(16).slice(1),FD=(e,t=1)=>{let[r,n,o]=e.match(/\w\w/g).map(i=>parseInt(i,16));return`rgba(${r},${n},${o},${t})`},jD=(e,t,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(e[o]+(t[o]-e[o])*r);return`rgb(${n})`},DD=(e,t)=>{let[r,n,o]=t,i=Math.max(0,Math.min(100,o+parseFloat(e)));return[r,n,i]},uO=(e,t,r)=>{let n=Math.max(e,t,r),o=n-Math.min(e,t,r),i=1-Math.abs(n+n-o-1),s=o&&(n==e?(t-r)/o:n==t?2+(r-e)/o:4+(e-t)/o);return[60*(s<0?s+6:s),i?o/i:0,(n+n-o)/2]},fO=(e,t,r,n=t*Math.min(r,1-r),o=(i,s=(i+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1))=>[o(0),o(8),o(4)],dO=(e,t)=>{let r=parseInt(e,16),n=(r>>16)+t;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+t;o>255?o=255:o<0&&(o=0);let i=(r&255)+t;return i>255?i=255:i<0&&(i=0),((i|o<<8|n<<16)+16777216).toString(16).slice(1)},pO=(e,t,r=.5)=>{let n=[];for(let o=0;o<4;o++){let i=o===3?s=>s:Math.round;n[o]=i(e[o]+(t[o]-e[o])*r)}return`rgba(${n})`},vb=(e,t)=>{let r=In(e);if(!r){Xa()&&console.warn(e+" color is not rgba");return}return r[3]=t,`rgba(${r})`},ze=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,Fn=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,LD=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Qa=e=>{if(!P(e))return null;if(Fn.test(e))return{passthrough:e};if(ze(e))return{cssVar:e};let t=e.match(LD);if(!t)return null;let[,r,n,o]=t,i=n!==void 0?`0.${n}`:void 0,s=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:i,tone:s}},Go=e=>P(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),gd=e=>{let t=[],r="",n=0;for(let o of e){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){t.push(r),r="";continue}r+=o}return(r.length||!t.length)&&t.push(r),t},Ta=(e,t)=>{P(e)&&e.includes("rgb")&&(e=In(e).join(", ")),P(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),Pn(t)&&(t+="");let r=cO(e),n=t.slice(0,1);if(n==="-"||n==="+"){let o=dO(r,parseFloat(t));return lO(o).join(", ")}else{let[o,i,s]=e,a=uO(o,i,s),[l,c,u]=a;return fO(l,c,parseFloat(t)/100*255)}},MD=(e,t)=>{if(e)return e.themes&&e.themes[t]?e.themes[t]:e[t]?[e,e[t]]:e},gr=(e,t)=>{if(!e||!t)return null;try{return new URL(e),null}catch{}let r=t[e];return r?r.content&&r.content.src:null},Wv=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let r=Object.keys(e)[0];return r&&e[r]&&e[r].value},hO=e=>{if(typeof e!="string"||!e)return null;let t=e.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(t)?t:null},Hv=e=>e&&(e.includes("fonts.googleapis.com")||e.includes("fonts.gstatic.com")),qv=e=>`@import url('${e}');`,gO=e=>`@font-face { ${e} }`,Gv=(e,t,r,n={})=>{let o=(Array.isArray(t)?t:[t]).filter(i=>typeof i=="string"&&i).map(i=>{let s=hO(i),a=s?` format('${s}')`:"";return`url('${i}')${a}`}).join(`,
|
|
99
99
|
`);return`
|
|
100
100
|
font-family: '${e}';
|
|
101
101
|
font-style: ${n.fontStyle||"normal"};${r?`
|
|
102
102
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
103
103
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
104
104
|
font-display: ${n.fontDisplay};`:""}
|
|
105
|
-
src: ${o};`},
|
|
106
|
-
}`,yd=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>gr(u,r)||u):gr(o,r)||o;return Kv(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),MD=e=>Object.keys(e).map(t=>yd(t,e[t].value)),yO=(e,t,r)=>{if(t&&t.isVariable){let o=gr(t.url,r)||t.url;return qv(o)?Gv(o):Va(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return yd(e,t,r).map(mO);let n=Array.isArray(t.url)?t.url.map(o=>gr(o,r)||o):gr(t.url,r)||t.url;return Va(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},bO=(e,t)=>Object.keys(e).map(r=>yO(r,e[r].value,t));B();B();B();var vO={};Y(vO,{animation:()=>sL,breakpoints:()=>nL,class:()=>fL,color:()=>KD,devices:()=>oL,document:()=>rL,font:()=>zD,fontFace:()=>WD,fontFamily:()=>VD,fontFamilyTypes:()=>UD,gradient:()=>XD,grid:()=>uL,icons:()=>JD,media:()=>HD,reset:()=>dL,semanticIcons:()=>QD,sequence:()=>bd,shadow:()=>ZD,spacing:()=>GD,svg:()=>iL,svgData:()=>aL,templates:()=>lL,theme:()=>YD,timing:()=>tL,typography:()=>xO,unit:()=>BD,vars:()=>pL});var bd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},BD={default:"em"},ND={browserDefault:16,base:16,type:"font-size",ratio:bd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},xO=ND,zD={},VD={},UD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},WD={},HD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},qD={base:xO.base,type:"spacing",ratio:bd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},GD=qD,KD={},XD={},YD={},ZD={},JD={},QD={},eL={default:150,base:150,type:"timing",ratio:bd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},tL=eL,rL={},nL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},oL={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},sL={},iL={},aL={},lL={},cL={},uL=cL,fL={},dL={},pL={},$A={},IA={},Bu=vO,Hu={},wO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Bu){let t=e.toLowerCase();Hu[t]=Bu[e];let r=wO(t);r!==t&&(Hu[r]=Bu[e]),t!==e&&(Hu[e]=Bu[e])}var Xv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:$A,cssMediaVars:IA,CSS_VARS:$A,CSS_MEDIA_VARS:IA,_scratchConfig:!0,...Hu},hL=at(Xv),Nf={active:"0",0:Xv};var Ta=[],gL=e=>{e&&e._scratchConfig&&Ta.push(e)},mL=()=>{Ta.pop()},H=e=>Ta.length?Ta[Ta.length-1]:Nf[e||Nf.active]||Xv,yL=e=>{if(M(e))return Nf.active="1",Nf[1]=er(e,at(hL)),e};var Wr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Yv=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=_O.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},_O=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Zv=(e,t)=>{let{base:r,type:n,unit:o}=t,s=_O.has(o)?"rem":o,i=(Uv(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Wr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Wr[e+1],u=Math.abs(e),d=Math.pow(CO,2*u),f=Wr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},SO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Jv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},kO=(e,t)=>Jv(e,t).map(r=>r/e),Qv=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Jv(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=SO(h+1,c,i,t),x={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Yv(x,t)})},CO=1.618,bL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(CO,2*n);return Math.max(o,s)},yr=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Wr[c],d=bL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Zv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Yv(g,e),s&&Qv(g,e)}return e},vL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Wr[t],a=R(t)?Object.entries(Wr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=Zv(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Yv(p,l),s&&Qv(p,l),l},ex=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Wv.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${pd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},AO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:ex(o,t)}).join("")},Ua=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=AO(e,r):e=ex(e,r),{[t]:n?`${n}(${e})`:e}},EO=(e,t)=>Wr[e-t],OO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=EO(t,o);return r[s]})};B();var xL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},tx=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=kO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},TO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),vd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=TO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||tx(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},zf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=TO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),tx(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],x=p[y]+u;g[b.variable+"_default"]=x,g[b.variable]=x}return}for(let g in f){let m=f[g],y=(Uv(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};B();var RO=Ka(),_b=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},wL=e=>{let t=e&&(e.default||e);if(!R(t))return RO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},_L=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},jA=new Set,PO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return RO&&!jA.has(e)&&(jA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=wL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=_L(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=CL(a),a},SL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",kL=new RegExp(`<(${SL})\\b([^>]*?)\\s*/>`,"g"),CL=e=>e.replace(kL,"<$1$2></$1>"),$O={};Y($O,{appendSVGSprite:()=>GO,appendSvgIconsSprite:()=>XO,applyDocument:()=>qO,applyHeadings:()=>MO,applyReset:()=>ZO,applySpacingSequence:()=>VO,applyTimingSequence:()=>HO,applyTypographySequence:()=>BO,checkIfBoxSize:()=>zO,getColor:()=>Pe,getFontFamily:()=>DO,getFontSizeByKey:()=>NO,getMediaColor:()=>wt,getMediaTheme:()=>Hr,getShadow:()=>WO,getSpacingBasedOnRatio:()=>Wo,getSpacingByKey:()=>Ve,getTheme:()=>rx,getTimingByKey:()=>hr,getTimingFunction:()=>Tn,runThroughMedia:()=>LO,setColor:()=>Ra,setFont:()=>FO,setFontFamily:()=>Cb,setGradient:()=>Pa,setMediaTheme:()=>nx,setSVG:()=>sx,setShadow:()=>$a,setSvgIcon:()=>KO,setTheme:()=>IO,splitSpacedValue:()=>UO});B();var Pe=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=Ja(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Oa(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},wt=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=Ja(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=M(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",x=g[2];x&&(y=Oa(y,x)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let x=$n(g[0]);x&&x.length>=3?e=`rgba(${Oa(x.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=Ra(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let x=b.slice(1),v=h[b],w=v&&(v.value||v);!w||typeof w!="string"||(y[x]=w,(x==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let x=`[data-theme="${b}"]`;if(n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b],b==="light"||b==="dark"){let v=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Ja(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=$n(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Pa=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=Pe(e.slice(2))),W(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Pa(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};B();var AL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),FA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],EL=e=>{for(let t=0;t<FA.length;t++)if(e.includes(FA[t]))return!0;return!1},xd=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Pe(e[i]):e[i]}),t},ca=e=>(e.value||(e.value=xd(e)),e.value),rx=(e,t)=>{let r=H();if(r.useVariable)return Hr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return ca(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return ca(a[s]);if(i&&i[s])return ca(i[s]);if(l&&l[s])return ca(l[s])}else if(M(e))return xd(e)},OL=(e,t,r)=>{if(M(t))e.variants.inverse.value=xd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},TL=(e,t,r,n)=>{let o=rx(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},RL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return TL(e,n,o,t),e}),e):void 0},PL=(e,t,r,n)=>{let o=rx(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},$L=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&PL(e,n,o,t),n==="inverse"&&OL(e,o,t),e}),e):void 0},IL=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:ca(n[o]),e}),e):void 0},IO=(e,t)=>{let r=H();if(r.useVariable)return nx(e,t);let{state:n,media:o,helpers:s}=e,i=xd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return RL(e,i),$L(e,i),IL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},Sb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&EL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!AL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=Sb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Pe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let x=`@media (prefers-color-scheme: ${g})`;o[x]||(o[x]={}),o[x][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},nx=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=Sb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=nx(u,t,l,n||d)}else if(!a){let d=Pe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return Hr(l,n)}return i},kb=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=kb(e[n]):o==="."&&(r[`&${n}`]=kb(e[n]))}else r[n]=e[n]}return r},jO=(e,t)=>{let r=t.shift();return e[r]?jO(e[r],t):e},DA=(e,t)=>W(t)?jO(e,t):R(t)&&e[t]?e[t]:e,Hr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=Hr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=DA(s,o):s&&t&&(s=DA(s,t)),kb(s)};B();B();var FO=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=gr(e.url,r.files)||e.url;qv(s)?o=Gv(s):o=Va(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=yd(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>gr(i,r.files)||i):gr(e.url,r.files)||e.url;o=Va(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},DO=(e,t)=>{let r=H(),{fontFamily:n}=r;return Hv(t||n,e)},Cb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=Za(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};B();var LO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;it(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,x=n[l],v="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[v]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),yr(i),zf(e,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),yr(i),zf(e,o)}},MO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=OO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},BO=()=>{let e=H(),{typography:t}=e;yr(t),MO(t),vd(t),LO(t)},NO=e=>{let t=H(),{typography:r}=t;return Ua(e,"fontSize",r)};B();B();var jL=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return yr(n),n},FL=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;it(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),yr(r),zf(e,t)}},zO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},VO=()=>{let e=H(),{spacing:t}=e;yr(t),vd(t),FL(t)},DL=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:yr(e)},Ve=(e,t="padding",r,n)=>{let o=DL(r);if(R(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Za(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ua(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ua(e,t,o,n)}},Wo=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=jL(e);return Ve(i,t,a,n)}return Ve(i,t,s,n)},UO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Wv.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};B();var $a=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!In.test(e)&&(e=md(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Pe(a);if(qo(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=Ve(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},WO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};B();var HO=()=>{let e=H(),{timing:t}=e;yr(t),vd(t)},Tn=e=>{let t=H(),{timing:r}=t;return r[e]||r[dd(e)]||e},hr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ua(e,t,n)};B();var qO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:Hv(r),fontSize:o.base,lineHeight:o.lineHeight})};B();var ox={document:be},sx=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?PO(t,e):e},GO=(e,t=ox)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];YO(n,t)},KO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?sx(e,t):e},XO=(e,t=ox)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];YO(n,t)},ab=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},LL=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},LA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},YO=(e,t=ox)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),_b(e);let o=n.querySelector("#svgSprite"),s=_b(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=LL(n,s);if(o)if(a)LA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=ab(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=ab(n);l&&l.nodeType&&(LA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=ab(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};B();var ZO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Hr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?Hr("document"):{};if(r.html&&Pn(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return er(it(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};B();var ML=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),BL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),NL=e=>ML.has(e),Cn=e=>{let t=e+"";if(In.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(NL(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(qo(o))return o;let s=Ve(n,"border");return s&&s.border?s.border:n}).join(" ")},zL=e=>In.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return qo(r)?r:t}).join(" "),VL=(e,t)=>WO(e,t),MA=(e,t)=>In.test(e)?e:md(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(qo(o)){let i=wt(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=Ve(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),JO=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=md(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||BL.has(l)||l==="transparent"||In.test(l))return l;let c=Pe(l);return qo(c)?c:l}).join(" ")));return n+i.join(", ")+s},UL=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?JO(n,t):r.gradient[e]?{backgroundImage:wt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ja(n)?`url(${n})`:n).join(" ")},WL=e=>R(e)&&e.split(" ").map(t=>Ve(t,"gap").gap).join(" "),HL=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?hr(r).timing||r:Tn(r)?Tn(r):r).join(" "):e},BA=(e,t,r)=>{if(R(e))return e.split(",").map(n=>hr(n).timing||n).join(",")},qL=e=>{let t=e.split(",");if(t.length)return t.map(HL).join(",")};function Re(e,t,r={},n={}){let o=Be.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=zO(e);!i&&a&&!n.ratio&&(o=UO(o))}return n.ratio?Wo(r,e,o,s):Ve(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),NA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Wo(t,r,n)[r]).join(" ")}};B();var GL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,zA={color:Ra,gradient:Pa,font:FO,fontFamily:Cb,fontfamily:Cb,theme:IO,icons:KO,semanticIcons:vt,semanticicons:vt,svg:sx,svgData:vt,typography:vt,shadow:$a,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:GL},KL=(e,t,r)=>{let n=H(),o=wO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=zA[o]||zA[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},XL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return KL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var YL={},ix=(e,t=YL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=yL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),x=b&&b.defaultView||(typeof window<"u"?window:null),v=b&&(r.themeRoot||b.documentElement);if(v&&typeof v.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")v.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?v.style.colorScheme=r.globalTheme:v.style.colorScheme="light dark";else if(x&&x.matchMedia){let j=$=>{v.setAttribute("data-theme",$.matches?"dark":"light")},_=x.matchMedia("(prefers-color-scheme: dark)");if(j(_),v.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=j;try{_.addEventListener("change",j)}catch{_.addListener(j)}}}else v.setAttribute("data-theme","light"),v.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),k=new Set(w);if(w.forEach(j=>{let _=j.toLowerCase();_!==j&&k.has(_)&&er(y[_],y[j])}),w.map(j=>{let _=j.toLowerCase();if(!(_!==j&&k.has(_)))return XL(j,y[j])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{BO()}catch(j){r.verbose&&console.warn("Error applying typography sequence",j)}if(y.spacing)try{VO()}catch(j){r.verbose&&console.warn("Error applying spacing sequence",j)}if(y.timing)try{HO()}catch(j){r.verbose&&console.warn("Error applying timing sequence",j)}qO();let E=ZO();return E&&(r.reset=E),r};var ZL=null,JL=null,QL=null;function eM(e){e.batchAtomicCss&&(JL=e.batchAtomicCss),e.compoundCssClass&&(QL=e.compoundCssClass)}function tM(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function qu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var VA=new WeakMap;function ua(e,t){let r=QO(t);if(!r)return;let n=VA.get(r);if(n||(n=new Set,VA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var UA=new WeakMap;function QO(e){let t=e||tM();if(!t||!t.head)return null;let r=UA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return UA.set(t,o),ZL=o,o}function Bt(e){if(QO(),typeof e=="string"){ua(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:qu(l);a+=`${c}:${i[l]};`}ua(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:qu(s);ua(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:qu(a);s+=`${c}:${l};`}}if(s&&ua(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Bt({[`${n} ${c}`]:o[c]});for(let c of a)Bt({[c]:{[n]:o[c]}})}}}}function WA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${qu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ua(`@keyframes ${e}{${r}}`),e}B();Ya();B();B();var rM=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],nM=["none","forwards","backwards","both"],oM=["normal","reverse","alternate","alternate-reverse"],sM=["running","paused"],iM=e=>/^[\d.]+m?s$/.test(e),aM=0,lb=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=`smbls-anim-${aM++}`;return{animationName:WA(o,e)}}let n=r&&r[e];return M(n)?WA(e,n):e},lM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:iM(d)?s.push(d):rM.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):oM.includes(d)?l=d:nM.includes(d)?c=d:sM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},cM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=lM(e,t);return{animationName:lb(r.name||e,t),animationDuration:r.durations[0]||hr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||hr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Tn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:lb(e,t),animationDuration:hr(t.animationDuration||"A").timing,animationDelay:hr(t.animationDelay||"0s").timing,animationTimingFunction:Tn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:lb(e,t)}),animationDuration:e=>({animationDuration:hr(e).timing}),animationDelay:e=>({animationDelay:hr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Tn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};B();var uM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Mt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:WL(e)}),columnGap:(e,t)=>Wo(t,"columnGap",e),rowGap:(e,t)=>Wo(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>NA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>NA(e??t.round,t,"borderRadius")},fM={fontSize:e=>NO(e)||e,fontFamily:e=>({fontFamily:DO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},dM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},pM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Ve(r,"k").k).join(" ")}},left:e=>Ve(e,"left"),top:e=>Ve(e,"top"),right:e=>Ve(e,"right"),bottom:e=>Ve(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ve(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ve(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};B();var jt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},hM={theme:(e,t)=>{if(e)return t.themeModifier?Hr(e,`@${t.themeModifier}`):Hr(e)},color:(e,t)=>{let r=jt(t);if(e)return{color:wt(e,r)}},background:(e,t)=>{let r=jt(t);if(e)return R(e)&&e.includes("gradient")?{background:JO(e,r)}:{background:wt(e,r)}},backgroundColor:(e,t)=>{let r=jt(t);if(e)return{backgroundColor:wt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=jt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:UL(e,o)}},textStroke:e=>({WebkitTextStroke:zL(e)}),outline:e=>({outline:Cn(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:Cn(e)}),borderColor:(e,t)=>{let r=jt(t);if(e)return{borderColor:wt(e,r)}},borderTopColor:(e,t)=>{let r=jt(t);if(e)return{borderTopColor:wt(e,r)}},borderBottomColor:(e,t)=>{let r=jt(t);if(e)return{borderBottomColor:wt(e,r)}},borderLeftColor:(e,t)=>{let r=jt(t);if(e)return{borderLeftColor:wt(e,r)}},borderRightColor:(e,t)=>{let r=jt(t);if(e)return{borderRightColor:wt(e,r)}},borderLeft:e=>({borderLeft:Cn(e)}),borderTop:e=>({borderTop:Cn(e)}),borderRight:e=>({borderRight:Cn(e)}),borderBottom:e=>({borderBottom:Cn(e)}),shadow:(e,t)=>{let r=jt(t);if(e)return{boxShadow:VL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=jt(t),s=n?" !important":"";return{boxShadow:MA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:MA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:Cn(e)})},eT={transition:e=>({transition:qL(e)}),transitionDuration:e=>({transitionDuration:BA(e)}),transitionDelay:e=>({transitionDelay:BA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Tn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};B();var gM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},mM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},HA={...cM,...uM,...fM,...dM,...pM,...hM,...eT,...gM,...mM},yM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);B();var bM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,vM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Gr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(bM),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},qA=(e,t,r)=>({[e]:Gr(t,r)}),sa=(e,t,r)=>{let n=`&${e}`,o=Gr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},ax=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},xM=(e,t,r)=>{let n=e.slice(1),o=ax(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Gr(t,r)},wM=(e,t,r)=>({[e]:t}),_M=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=ax(n,r);s!==void 0&&(o=s)}if(o)return Gr(t,r)},SM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=ax(n,r);s!==void 0&&(o=s)}if(!o)return Gr(t,r)},kM=(e,t)=>Gr(e,t),CM={"@":vM,":":sa,"[":sa,"*":sa,"+":sa,"~":sa,"&":qA,">":qA,$:xM,"-":wM,".":_M,"!":SM},cb=Vo(),AM=(e,t,r)=>{let n=t?.context?.designSystem;n&&gL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Be(l,t);it(o,kM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!cb&&M(o[a])&&(o[a].label=a)}else if(HA[a]){let c=Be(l,t);W(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=HA[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&i(a,u),!cb&&M(o[a])&&(o[a].label=a)}else if(yM.has(a)){let c=Be(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!cb&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&mL()}},EM=(e,t)=>{let r={};for(let n in e){let o=CM[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?Pn(r[i],s[i]):r[i]=s[i])}}return r},Gr=(e,t,r={unpack:!0})=>{let[n,o]=AM(e,t,r),s=EM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return od(n,s);n._selectors=s}return n};B();B();B();Ya();var Y7=new Proxy(Object.create(null),{get(){},has(){return!1}});B();var GA=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var OM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},TM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},RM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Z7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...OM,...TM,...RM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var PM={};Y(PM,{A:()=>DR,AssetPicture:()=>ET,Audio:()=>IT,Avatar:()=>rP,B:()=>QT,Block:()=>rT,Box:()=>nR,Br:()=>sR,Button:()=>zR,ButtonSet:()=>HR,COMPONENTS:()=>VM,Caption:()=>WT,Checkbox:()=>bR,CheckboxHgroup:()=>vR,Circle:()=>ST,CircleButton:()=>UR,Clickable:()=>yT,Data:()=>tR,Dialog:()=>KR,DialogFooter:()=>YR,DialogHeader:()=>XR,Dropdown:()=>iP,DropdownList:()=>aP,DropdownParent:()=>lP,DropdownParentFocus:()=>cP,DropdownSiblingFocus:()=>uP,FileIcon:()=>$R,Flex:()=>oT,Focusable:()=>bT,FocusableComponent:()=>vT,Footnote:()=>JT,Form:()=>dT,Grid:()=>iT,Gutter:()=>lT,H1:()=>LT,H2:()=>MT,H3:()=>BT,H4:()=>NT,H5:()=>zT,H6:()=>VT,Headline:()=>YT,Hgroup:()=>uR,HgroupButton:()=>dR,HgroupRows:()=>fR,Hoverable:()=>mT,Hr:()=>oR,I:()=>eR,Icon:()=>RR,IconButton:()=>qR,IconText:()=>PR,Iframe:()=>hT,Img:()=>uT,Inline:()=>nT,InlineFlex:()=>sT,InlineGrid:()=>aT,Input:()=>hR,Italic:()=>KT,KangorooButton:()=>WR,Li:()=>iR,Link:()=>gx,Notification:()=>dP,NumberInput:()=>mR,Ol:()=>lR,P:()=>UT,Picture:()=>CT,Radio:()=>wR,RadioHgroup:()=>_R,Range:()=>oP,RouteLink:()=>LR,RouterLink:()=>mx,SHAPES:()=>Vf,Select:()=>BR,Shape:()=>cx,Span:()=>DT,SquareButton:()=>VR,Strong:()=>HT,Subhead:()=>ZT,Svg:()=>TT,Text:()=>FT,Textarea:()=>ER,TextareaWithButton:()=>OR,Theme:()=>kT,Title:()=>XT,Toggle:()=>kR,ToggleHgroup:()=>CR,Tooltip:()=>JR,TooltipHidden:()=>QR,TooltipParent:()=>eP,U:()=>qT,Ul:()=>aR,Underline:()=>GT,Video:()=>PT,depth:()=>lx,getSystemGlobalTheme:()=>Uf});var tT={};Y(tT,{Block:()=>rT,Flex:()=>oT,Grid:()=>iT,Gutter:()=>lT,Inline:()=>nT,InlineFlex:()=>sT,InlineGrid:()=>aT});var rT={display:"block"},nT={display:"inline"},oT={display:"flex"},sT={display:"inline-flex"},iT={display:"grid"},aT={display:"inline-grid"},lT={boxSize:"C1"},cT={};Y(cT,{Img:()=>uT});B();var uT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Jt(e);return t&&t.src||e.src},srcset:e=>{let t=Jt(e);return(t?hd(t):"")||e.srcset}}},fT={};Y(fT,{Form:()=>dT});var dT={tag:"form"},pT={};Y(pT,{Iframe:()=>hT});var hT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},gT={};Y(gT,{Clickable:()=>yT,Focusable:()=>bT,FocusableComponent:()=>vT,Hoverable:()=>mT});var $M={appearance:"none",cursor:"pointer",fontFamily:"inherit"},mT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},yT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},bT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},vT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:$M},xT={};Y(xT,{Picture:()=>CT});var wT={};Y(wT,{Theme:()=>kT,getSystemGlobalTheme:()=>Uf});var _T={};Y(_T,{Circle:()=>ST,SHAPES:()=>Vf,Shape:()=>cx,default:()=>IM,depth:()=>lx});B();var xt=H(),lx={4:{boxShadow:`rgba(0,0,0,.10) 0 2${xt.unit.default} 4${xt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${xt.unit.default} 6${xt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${xt.unit.default} 10${xt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${xt.unit.default} 16${xt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${xt.unit.default} 26${xt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${xt.unit.default} 42${xt.unit.default}`}},$o=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Nu=e=>{let t=eT.transition(e.transition,e);return t&&t.transition},Vf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:$o(e),transition:Nu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:$o(e),transition:Nu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:$o(e),transition:Nu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${$o(e)} 25%, transparent 25%), linear-gradient(315deg, ${$o(e)} 25%, transparent 25%)`},"&:after":{background:$o(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},cx={deps:{exec:Be,getSpacingBasedOnRatio:Wo,getMediaColor:wt},classlist:{shape:e=>e.deps.exec(Vf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Vf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},ST={round:"100%"},IM=cx;B();var Uf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},kT={deps:{depth:lx},classlist:{depth:e=>!Mt(e.depth)&&e.deps.depth[e.depth]}},CT={deps:{getSystemGlobalTheme:Uf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Uf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},AT={};Y(AT,{AssetPicture:()=>ET});B();var ET={tag:"picture",children:e=>{let t=Jt(e);if(t)return gd(t,e.alt)}},OT={};Y(OT,{Svg:()=>TT});var TT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},RT={};Y(RT,{Video:()=>PT});B();var PT={tag:"video",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},$T={};Y($T,{Audio:()=>IT});B();var IT={tag:"audio",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},jT={};Y(jT,{B:()=>QT,Caption:()=>WT,Data:()=>tR,Footnote:()=>JT,H1:()=>LT,H2:()=>MT,H3:()=>BT,H4:()=>NT,H5:()=>zT,H6:()=>VT,Headline:()=>YT,I:()=>eR,Italic:()=>KT,P:()=>UT,Span:()=>DT,Strong:()=>HT,Subhead:()=>ZT,Text:()=>FT,Title:()=>XT,U:()=>qT,Underline:()=>GT});var FT={},DT={tag:"span"},LT={tag:"h1"},MT={tag:"h2"},BT={tag:"h3"},NT={tag:"h4"},zT={tag:"h5"},VT={tag:"h6"},UT={tag:"p"},WT={tag:"caption"},HT={tag:"strong",fontWeight:"700"},qT={tag:"u"},GT={tag:"u"},KT={tag:"i"},XT={},YT={tag:"h6",fontSize:"B",fontWeight:500},ZT={tag:"span",fontSize:"Z1"},JT={tag:"span",fontSize:"Z"},QT={tag:"b"},eR={tag:"i"},tR={tag:"data"},rR={};Y(rR,{Box:()=>nR,Br:()=>sR,Hr:()=>oR,Li:()=>iR,Ol:()=>lR,Ul:()=>aR});var jM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Gr(t,e,{unpack:!1});r.__class=n},nR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:jM},oR={tag:"hr",margin:"C1 0"},sR={tag:"br"},iR={tag:"li"},aR={tag:"ul",childExtends:{extends:"Li"}},lR={tag:"ol",childExtends:{extends:"Li"}},cR={};Y(cR,{Hgroup:()=>uR,HgroupButton:()=>dR,HgroupRows:()=>fR});var KA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},uR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:KA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:KA,margin:"0",color:"paragraph"}},fR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},dR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},pR={};Y(pR,{Input:()=>hR});var hR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},gR={};Y(gR,{NumberInput:()=>mR});var mR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},yR={};Y(yR,{Checkbox:()=>bR,CheckboxHgroup:()=>vR});var bR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},vR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},xR={};Y(xR,{Radio:()=>wR,RadioHgroup:()=>_R});var wR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},_R={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},SR={};Y(SR,{Toggle:()=>kR,ToggleHgroup:()=>CR});var kR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},CR={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},AR={};Y(AR,{Textarea:()=>ER,TextareaWithButton:()=>OR});var ER={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},OR={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},TR={};Y(TR,{FileIcon:()=>$R,Icon:()=>RR,IconText:()=>PR});var RR={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=v=>{let w=v[".isActive"];if(w)return v.call("exec",w.name||w.icon)},c=(v,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:j}=k&&k.utils,_=u(v,w),$=j(_).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:_.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let F=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=te[F]||te[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(v,w)=>{let{key:k}=v,E=v.call("exec",v.name||v.icon||k,v);return v.call("isString",E)&&E.includes("{{")&&(E=v.call("replaceLiteralsWithObjectFields",E)),v.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let v=d.split(" ");d=v[0]+v.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],x=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||x||o.noIcon})},attr:{viewBox:"0 0 24 24"}},PR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},$R={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},IR={};Y(IR,{A:()=>DR,Link:()=>gx,RouteLink:()=>LR,RouterLink:()=>mx});var FM={};Y(FM,{default:()=>NM,getActiveRoute:()=>hx,lastLevel:()=>wd,lastPathname:()=>Wf,matchRoute:()=>fx,parseQuery:()=>dx,parseRoutePattern:()=>ux,router:()=>Go,runGuards:()=>px});B();var jR=/^:(.+)/,FR=/^\*$/,XA=new Map,ux=e=>{let t=XA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(jR);a?n.push({index:i,name:a[1]}):FR.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return XA.set(e,s),s},fx=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=ux(l),u=DM(n,c);u>i&&(i=u,s=l,a=LM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},DM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(jR.test(r[i]))o+=1;else if(FR.test(r[i]))o+=.5;else return-1;return o},LM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},dx=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},px=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},hx=(e=0,t)=>{t||(t=typeof le<"u"?le.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Wf,wd=0,MM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,BM={level:wd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Go=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||le,i=o?.context?.document||be,a={...BM,...o.context.routerOptions,...n};wd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=MM(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=dx(h),y=o.node,b=g&&g!==s.location.hash.slice(1),x=p!==Wf;Wf=p;let v,w,k,E;if(a.useParamsMatching){let _=fx(p,o.routes,a.level);v=_.key,w=_.routePath,k=_.content,E=_.params}else{v=hx(a.level,p),w=v;let _=o.routes;k=_?_[v||"/"]||_["/*"]:null,E={}}let j=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:v,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:v,params:E,query:m,hash:g,element:o,state:r},$=await px(a.guards,_);if($===!1)return;if(typeof $=="string")return Go($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(x||!b){let _={route:v,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let F in $){let I=$[F];F==="__ref"||F==="props"||F==="node"||F==="parent"||F==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[F]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(F){console.error("[smbls/router] failed to render route content",p,F)}}if(a.scrollToTop&&j?.scrollTo&&j.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&j?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);j.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Uo("routeChanged",o,a)},NM=Go,zM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Go)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},gx={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>GA(e,e.href)||GA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:zM},DR={extends:"Link"},mx={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Go)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},LR={extends:[gx,mx]},MR={};Y(MR,{Select:()=>BR});var BR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},NR={};Y(NR,{Button:()=>zR,ButtonSet:()=>HR,CircleButton:()=>UR,IconButton:()=>qR,KangorooButton:()=>WR,SquareButton:()=>VR});var zR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},VR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},UR={extends:"SquareButton",round:"C"},WR={extends:"Button",childExtends:"IconText"},HR={tag:"nav",display:"flex",childExtends:"SquareButton"},qR={extends:["SquareButton","ClickableItem"],round:"Z"},GR={};Y(GR,{Dialog:()=>KR,DialogFooter:()=>YR,DialogHeader:()=>XR});var KR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},XR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},YR={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},ZR={};Y(ZR,{Tooltip:()=>JR,TooltipHidden:()=>QR,TooltipParent:()=>eP});B();var JR={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>zo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},QR={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},eP={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},tP={};Y(tP,{Avatar:()=>rP});var rP={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},nP={};Y(nP,{Range:()=>oP});var oP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:wb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:wb("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},sP={};Y(sP,{Dropdown:()=>iP,DropdownList:()=>aP,DropdownParent:()=>lP,DropdownParentFocus:()=>cP,DropdownSiblingFocus:()=>uP});var iP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},aP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},lP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},cP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},uP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},fP={};Y(fP,{Notification:()=>dP});var dP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},VM=Object.assign({},tT,cT,fT,pT,gT,xT,AT,OT,_T,RT,$T,wT,jT,rR,cR,pR,gR,yR,xR,SR,AR,TR,IR,MR,NR,GR,ZR,tP,nP,sP,fP);var UM=null;function WM(e){UM=e}B();var HM={};Y(HM,{CDN_PROVIDERS:()=>Dt,DOMQL_EVENTS:()=>s0,DOMQ_PROPERTIES:()=>Ho,ENV:()=>k0,HTML_TAGS:()=>Ba,METHODS:()=>Da,METHODS_EXL:()=>nd,NODE_ENV:()=>Ft,OPTIONS:()=>fd,PACKAGE_MANAGER_TO_CDN:()=>Lf,PARSED_DOMQ_PROPERTIES:()=>rd,PROPS_METHODS:()=>On,STATE_METHODS:()=>En,STATE_PROPERTIES:()=>o0,SVG_TAGS:()=>B0,TYPES:()=>da,UNIVERSAL_RESERVED_KEYS:()=>Df,addCaching:()=>Af,addContext:()=>Cf,addExtend:()=>W0,addExtends:()=>Qe,addItemAfterEveryElement:()=>Hb,addProtoToArray:()=>Qf,addRef:()=>_f,applyCSS:()=>XM,applyDependentState:()=>cv,applyEvent:()=>$f,applyEventUpdate:()=>If,applyExtends:()=>q0,applyProps:()=>Aa,arrayContainsOtherArray:()=>Mb,arraysEqual:()=>Gb,arrayzeValue:()=>Za,buildImgSrcset:()=>hd,buildSourcesAndImg:()=>gd,cache:()=>pv,call:()=>XE,captureSnapshot:()=>xv,checkForStateTypes:()=>sv,checkIfInherits:()=>Pf,checkIfStringIsInArray:()=>Yb,clone:()=>a0,cloneAndMergeArrayExtend:()=>va,cloneFunction:()=>sE,concatAddExtends:()=>z0,copyJavaScriptToClipboard:()=>Mv,copyStringToClipboard:()=>Lv,createBasedOnType:()=>wf,createElement:()=>ov,createElementExtends:()=>ff,createExtends:()=>cd,createExtendsFromKeys:()=>Na,createExtendsStack:()=>gf,createIfConditionFlag:()=>$0,createInheritedState:()=>iv,createKey:()=>ad,createNestedObject:()=>m0,createNestedObjectByKeyPath:()=>lv,createObjectWithoutPrototype:()=>of,createParent:()=>Sf,createPath:()=>kf,createProps:()=>ud,createPropsStack:()=>vf,createRoot:()=>nv,createScope:()=>fv,createSnapshotId:()=>id,customDecodeURIComponent:()=>n0,customEncodeURIComponent:()=>r0,cutArrayAfterValue:()=>Ub,cutArrayBeforeValue:()=>Vb,debounce:()=>oE,debounceOnContext:()=>T0,decodeNewlines:()=>t0,deepClone:()=>at,deepContains:()=>h0,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>l0,deepExtend:()=>uf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>pa,defineSetter:()=>vv,destringifyGlobalScope:()=>c0,detectHeightOnInit:()=>Cv,detectInfiniteLoop:()=>x0,document:()=>be,encodeNewlines:()=>e0,error:()=>Ff,excludeKeysFromObject:()=>_0,exec:()=>Be,extendCachedRegistry:()=>V0,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>Fv,fibonacciNumberByIndex:()=>Av,filterArrays:()=>Kb,filterArraysFast:()=>Xb,finalizeExtends:()=>mf,findClosestNumber:()=>Bf,findClosestNumberInFactory:()=>jv,findInheritedState:()=>Rf,findKeyPosition:()=>Jb,flattenExtend:()=>Do,formatDate:()=>kv,generateHash:()=>af,generateKey:()=>ga,generateMetaTags:()=>Iv,get:()=>jE,getActiveRoute:()=>hx,getCDNUrl:()=>Mf,getCapitalCaseKeys:()=>cE,getCdnProviderFromConfig:()=>_v,getChildStateInKey:()=>Tf,getChildren:()=>LE,getContext:()=>UE,getCookie:()=>L0,getDB:()=>YE,getEmotionStylesheet:()=>Vv,getExtendsInElement:()=>H0,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>cf,getFrequencyInArray:()=>Bb,getHashedExtend:()=>ya,getImportMapScript:()=>Sv,getInObjectByPath:()=>v0,getLocalStorage:()=>iE,getNev:()=>O0,getPageMetadata:()=>nO,getParentStateInKey:()=>Of,getPath:()=>ME,getQuery:()=>ZE,getRef:()=>DE,getRoot:()=>NE,getRootContext:()=>VE,getRootData:()=>zE,getRootState:()=>BE,getRootStateInKey:()=>Ef,getSpreadChildren:()=>uE,global:()=>Fb,hasFunction:()=>Fo,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>f0,inheritChildExtends:()=>pf,inheritChildPropsExtends:()=>df,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>hf,init:()=>_d,initProps:()=>tv,is:()=>Zt,isArray:()=>W,isBoolean:()=>Qu,isContextComponent:()=>fE,isCyclic:()=>w0,isDOMNode:()=>st,isDate:()=>tf,isDefined:()=>zo,isDevelopment:()=>ld,isEmpty:()=>rf,isEmptyObject:()=>d0,isEqualDeep:()=>nf,isFunction:()=>L,isHtmlElement:()=>Xf,isLocal:()=>E0,isMethod:()=>JE,isMobile:()=>F0,isNode:()=>Wa,isNot:()=>Lb,isNotProduction:()=>Ka,isNull:()=>ef,isNumber:()=>Rn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>Ev,isProduction:()=>Vo,isStaging:()=>A0,isState:()=>av,isString:()=>R,isStringFunction:()=>P0,isTest:()=>sf,isTesting:()=>C0,isUndefined:()=>Mt,isUniversallyReservedKey:()=>wv,isValidHtmlTag:()=>N0,joinArrays:()=>ja,jointStacks:()=>U0,keys:()=>gv,lastLevel:()=>wd,lastPathname:()=>Wf,loadCssFile:()=>Pv,loadJavascript:()=>$v,loadJavascriptFile:()=>Ov,loadJavascriptFileEmbedSync:()=>Rv,loadJavascriptFileSync:()=>Tv,loadRemoteCSS:()=>rO,loadRemoteScript:()=>tO,log:()=>WE,logGroupIf:()=>j0,logIf:()=>I0,lookdown:()=>PE,lookdownAll:()=>$E,lookup:()=>RE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>p0,map:()=>i0,mapStringsWithContextComponents:()=>xa,matchRoute:()=>fx,matchesComponentNaming:()=>An,memoize:()=>R0,merge:()=>it,mergeSharedLibraries:()=>Dv,nextElement:()=>qE,normalizeLibraryKey:()=>za,objectToString:()=>ha,objectizeStringProperty:()=>_a,overwrite:()=>od,overwriteDeep:()=>Pn,overwriteShallow:()=>sd,overwriteState:()=>uv,parse:()=>mv,parseDeep:()=>jf,parseQuery:()=>dx,parseRoutePattern:()=>ux,pickupElementFromProps:()=>X0,pickupPropsFromElement:()=>K0,previousElement:()=>GE,propExists:()=>ev,propertizeElement:()=>Y0,propertizeUpdate:()=>pE,reinit:()=>KM,remove:()=>IE,removeChars:()=>Bv,removeCookie:()=>M0,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>Fa,removeFromArray:()=>Nb,removeFromObject:()=>g0,removeNestedKeyByPath:()=>y0,removeValueFromArray:()=>Jf,removeValueFromArrayAll:()=>Wb,reorderArrayByValues:()=>qb,replaceLiteralsWithObjectFields:()=>tE,replaceOctalEscapeSequences:()=>Qb,resolveAsset:()=>Jt,resolveHandler:()=>La,resolveSharedLibraries:()=>sO,returnValueAsText:()=>xf,router:()=>Go,runGuards:()=>px,runPluginHook:()=>Ma,scratchSystem:()=>$O,scratchUtils:()=>lO,self:()=>Db,set:()=>ix,setActiveRootState:()=>bv,setCookie:()=>D0,setHashedExtend:()=>lf,setInObjectByPath:()=>b0,setLocalStorage:()=>aE,setNodeStyles:()=>hv,setProps:()=>FE,setPropsPrototype:()=>yf,spotByPath:()=>TE,srcsetFor:()=>Mo,stringIncludesAny:()=>ed,stringToObject:()=>u0,swapItemsInArray:()=>zb,syncProps:()=>Ca,toCamelCase:()=>dd,toDashCase:()=>pd,toDescriptionCase:()=>zv,toTitleCase:()=>Nv,toggleFullscreen:()=>eO,triggerEventOn:()=>Uo,triggerEventOnUpdate:()=>dv,trimStringFromSymbols:()=>Zb,unstackArrayOfObjects:()=>Zf,update:()=>Z0,updateProps:()=>rv,variables:()=>KE,verbose:()=>yv,warn:()=>HE,window:()=>le});B();B();var qM=H(),pP=(e=qM,t)=>{let r=M(t.localFile)?t.localFile:{},n=at(r.designSystem||{});return er(e,n)},GM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},_d=(e,t=GM)=>{let r=pP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=ix({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=bO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Bt(a),c&&(Bt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Bt(m)}l&&Bt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Bt(m)}return(f||d)&&GO(i.svg,{document:t.document}),(h||p)&&XO(i.icons,{document:t.document}),i},hP={},KM=(e,t=hP)=>{let r=pP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=ix({verbose:!1,...r});if(!t.preventInject){if(Bt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Bt(i)}Bt(s.reset)}return s},XM=(e,t=hP)=>{Bt(e)};B();B();var J7=le&&le.location?le.location.host.includes("dev."):ld();B();Lo();var YM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},ZM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Q7={...YM,router:ZM};B();B();B();B();Lo();var Hf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},JM=Object.create(null);for(let e in Hf)JM[Hf[e]]=e;var ub=Object.create(null);for(let e in Hf){let t=Hf[e];if(ub[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${ub[t]}"`);ub[t]=e}var QM=0,eB=()=>`${Date.now().toString(36)}-${(QM++).toString(36)}`,Ia=(e,t,r={})=>({id:eB(),ts:Date.now(),type:e,level:t,...r}),tB=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},qf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:tB(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,rB={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},nB=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:qf(o)}))},YA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:qf(t),changedKeys:r?.changedKeys||null}))},oB={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:qf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ia("update","debug",{hook:"update",element:qf(e),durationMs:r}))},beforeStateUpdate:YA("beforeStateUpdate"),stateUpdate:YA("stateUpdate")};for(let[e,t]of Object.entries(rB))oB[e]=nB(e,t);B();B();B();B();var e8=typeof le<"u"&&typeof le.document<"u";var t8=typeof le<"u"&&typeof le.document<"u";B();var r8=typeof le<"u"&&typeof le.document<"u";B();var n8=typeof le<"u"&&typeof le.document<"u";var Qt=Object.create(null);Qt.open="0";Qt.close="1";Qt.ping="2";Qt.pong="3";Qt.message="4";Qt.upgrade="5";Qt.noop="6";var Gu=Object.create(null);Object.keys(Qt).forEach(e=>{Gu[Qt[e]]=e});var Ab={type:"error",data:"parser error"},gP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mP=typeof ArrayBuffer=="function",yP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,yx=({type:e,data:t},r,n)=>gP&&t instanceof Blob?r?n(t):ZA(t,n):mP&&(t instanceof ArrayBuffer||yP(t))?r?n(t):ZA(new Blob([t]),n):n(Qt[e]+(t||"")),ZA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function JA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var fb;function sB(e,t){if(gP&&e.data instanceof Blob)return e.data.arrayBuffer().then(JA).then(t);if(mP&&(e.data instanceof ArrayBuffer||yP(e.data)))return t(JA(e.data));yx(e,!1,r=>{fb||(fb=new TextEncoder),t(fb.encode(r))})}var QA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fa=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<QA.length;e++)fa[QA.charCodeAt(e)]=e;var iB=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=fa[e.charCodeAt(n)],i=fa[e.charCodeAt(n+1)],a=fa[e.charCodeAt(n+2)],l=fa[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},aB=typeof ArrayBuffer=="function",bx=(e,t)=>{if(typeof e!="string")return{type:"message",data:bP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:lB(e.substring(1),t)}:Gu[r]?e.length>1?{type:Gu[r],data:e.substring(1)}:{type:Gu[r]}:Ab},lB=(e,t)=>{if(aB){let r=iB(e);return bP(r,t)}else return{base64:!0,data:e}},bP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,vP="",cB=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{yx(s,!1,a=>{n[i]=a,++o===r&&t(n.join(vP))})})},uB=(e,t)=>{let r=e.split(vP),n=[];for(let o=0;o<r.length;o++){let s=bx(r[o],t);if(n.push(s),s.type==="error")break}return n};function fB(){return new TransformStream({transform(e,t){sB(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var db;function zu(e){return e.reduce((t,r)=>t+r.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function dB(e,t){db||(db=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(zu(r)<1)break;let l=Vu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(zu(r)<2)break;let l=Vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(zu(r)<8)break;let l=Vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Ab);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(zu(r)<o)break;let l=Vu(r,o);a.enqueue(bx(s?l:db.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Ab);break}}}})}var xP=4;function ke(e){if(e)return pB(e)}function pB(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var Sd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),_t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),hB="arraybuffer";function wP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var gB=_t.setTimeout,mB=_t.clearTimeout;function kd(e,t){t.useNativeTimers?(e.setTimeoutFn=gB.bind(_t),e.clearTimeoutFn=mB.bind(_t)):(e.setTimeoutFn=_t.setTimeout.bind(_t),e.clearTimeoutFn=_t.clearTimeout.bind(_t))}var yB=1.33;function bB(e){return typeof e=="string"?vB(e):Math.ceil((e.byteLength||e.size)*yB)}function vB(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function _P(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function xB(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function wB(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var _B=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},vx=class extends ke{constructor(e){super(),this.writable=!1,kd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new _B(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=bx(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=xB(e);return t.length?"?"+t:""}},SB=class extends vx{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};uB(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,cB(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=_P()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},SP=!1;try{SP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var kB=SP;function CB(){}var AB=class extends SB{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},No=class Ku extends ke{constructor(t,r,n){super(),this.createRequest=t,kd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=wP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Ku.requestsCount++,Ku.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=CB,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ku.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};No.requestsCount=0;No.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",eE);else if(typeof addEventListener=="function"){let e="onpagehide"in _t?"pagehide":"unload";addEventListener(e,eE,!1)}}function eE(){for(let e in No.requests)No.requests.hasOwnProperty(e)&&No.requests[e].abort()}var EB=(function(){let e=kP({xdomain:!1});return e&&e.responseType!==null})(),OB=class extends AB{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=EB&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new No(kP,this.uri(),e)}};function kP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||kB))return new XMLHttpRequest}catch{}if(!t)try{return new _t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var CP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",TB=class extends vx{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=CP?{}:wP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;yx(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&Sd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=_P()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},pb=_t.WebSocket||_t.MozWebSocket,RB=class extends TB{createSocket(e,t,r){return CP?new pb(e,t,r):t?new pb(e,t):new pb(e)}doWrite(e,t){this.ws.send(t)}},PB=class extends vx{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=dB(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=fB();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&Sd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},$B={websocket:RB,webtransport:PB,polling:OB},IB=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jB=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Eb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=IB.exec(e||""),s={},i=14;for(;i--;)s[jB[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=FB(s,s.path),s.queryKey=DB(s,s.query),s}function FB(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function DB(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ob=typeof addEventListener=="function"&&typeof removeEventListener=="function",Xu=[];Ob&&addEventListener("offline",()=>{Xu.forEach(e=>e())},!1);var Yu=class Zu extends ke{constructor(t,r){if(super(),this.binaryType=hB,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Eb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Eb(r.host).host);kd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wB(this.opts.query)),Ob&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Xu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=xP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Zu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Zu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=bB(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Sd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Zu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ob&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Xu.indexOf(this._offlineEventListener);n!==-1&&Xu.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Yu.protocol=xP;var LB=class extends Yu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Yu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Yu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},AP=class extends LB{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>$B[n]).filter(n=>!!n)),super(e,r)}},o8=AP.protocol;function MB(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Eb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var EP={};Y(EP,{Decoder:()=>KB,Encoder:()=>GB,PacketType:()=>ee,isPacketValid:()=>QB,protocol:()=>qB});var BB=typeof ArrayBuffer=="function",NB=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,OP=Object.prototype.toString,zB=typeof Blob=="function"||typeof Blob<"u"&&OP.call(Blob)==="[object BlobConstructor]",VB=typeof File=="function"||typeof File<"u"&&OP.call(File)==="[object FileConstructor]";function xx(e){return BB&&(e instanceof ArrayBuffer||NB(e))||zB&&e instanceof Blob||VB&&e instanceof File}function Ju(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Ju(e[r]))return!0;return!1}if(xx(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Ju(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Ju(e[r]))return!0;return!1}function UB(e){let t=[],r=e.data,n=e;return n.data=Tb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Tb(e,t){if(!e)return e;if(xx(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Tb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Tb(e[n],t));return r}return e}function WB(e,t){return e.data=Rb(e.data,t),delete e.attachments,e}function Rb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Rb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Rb(e[r],t));return e}var HB=KF(TD(),1),Pb=(0,HB.default)("socket.io-parser"),TP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],qB=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var GB=class{constructor(e){this.replacer=e}encode(e){return Pb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Ju(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),Pb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=UB(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},KB=class RP extends ke{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new XB(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(xx(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!PP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(RP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Pb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return Gf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||Gf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&TP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},XB=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=WB(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function YB(e){return typeof e=="string"}var PP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function ZB(e){return e===void 0||PP(e)}function Gf(e){return Object.prototype.toString.call(e)==="[object Object]"}function JB(e,t){switch(e){case ee.CONNECT:return t===void 0||Gf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&TP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||Gf(t);default:return!1}}function QB(e){return YB(e.nsp)&&ZB(e.id)&&JB(e.type,e.data)}function Lt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var eN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),$P=class extends ke{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Lt(e,"open",this.onopen.bind(this)),Lt(e,"packet",this.onpacket.bind(this)),Lt(e,"error",this.onerror.bind(this)),Lt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(eN.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Ko(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ko.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Ko.prototype.reset=function(){this.attempts=0};Ko.prototype.setMin=function(e){this.ms=e};Ko.prototype.setMax=function(e){this.max=e};Ko.prototype.setJitter=function(e){this.jitter=e};var $b=class extends ke{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,kd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Ko({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||EP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new AP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Lt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Lt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Lt(e,"ping",this.onping.bind(this)),Lt(e,"data",this.ondata.bind(this)),Lt(e,"error",this.onerror.bind(this)),Lt(e,"close",this.onclose.bind(this)),Lt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){Sd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new $P(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},ia={};function hb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=MB(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ia[o]&&s in ia[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new $b(n,t):(ia[o]||(ia[o]=new $b(n,t)),l=ia[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(hb,{Manager:$b,Socket:$P,io:hb,connect:hb});B();B();B();WM(eM);D();var IP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?_d(a):tn(r[i],a):r[i]=a}),s&&(r.schema=s))},jP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=qC(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&_d(r.designSystem)};var tN={success:"green",error:"red",warning:"yellow"},FP=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},DP={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:tN[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var rN=!1,nN=()=>rN?"http://localhost:8080":"https://api.symbols.app",oN=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},sN=async e=>{try{let t=e||nN(),r=await C.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},BP=(e,t,r,n)=>{e.on("snapshot",IP(t,r,n)),e.on("ops",jP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&FP(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},iN=async(e,t,r,n)=>{let o=await sN(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Ao(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),BP(a,e,t,r),a},aN=(e,t,r)=>{let n=Ao({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),BP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},lN=async(e,t,r)=>{let{mode:n,baseUrl:o}=oN(r);return n?n==="collab"?iN(e,t,r,o):n==="runner"?aN(e,t,r):null:null},cN={onInit:lN};var NP=e=>typeof e>"u",LP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),MP=e=>e?.editor?.runtime==="runner",zP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},VP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!NP(r.liveSync)?r.liveSync:LP(t)||MP(t))&&(LP(t)&&!MP(t)&&!t?.key||zP(e,cN))}},UP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=NP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&zP(e,DP)}};D();function WP(e){return A(e)?e:P(e)?e.find(t=>A(t)):""}function _x(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&WP(e.extends),n=e.parent&&e.parent.childExtends&&WP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Cd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=_x(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?Cd(e.parent):o&&(t[o]||r[o])?e:Cd(e.parent)}var uN=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},wx={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:uN,onMousemove:(e,t,r)=>{let n=e.target.ref,o=Cd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=_x(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=Cd(n);if(!o)return;let s=_x(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)co[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
|
|
105
|
+
src: ${o};`},Ua=(e,t,r,n)=>`@font-face {${Gv(e,t,r,n)}
|
|
106
|
+
}`,md=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:i,fontStyle:s,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>gr(u,r)||u):gr(o,r)||o;return Gv(e,c,i,{fontStyle:s,fontDisplay:a,fontStretch:l})}),ND=e=>Object.keys(e).map(t=>md(t,e[t].value)),mO=(e,t,r)=>{if(t&&t.isVariable){let o=gr(t.url,r)||t.url;return Hv(o)?qv(o):Ua(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return md(e,t,r).map(gO);let n=Array.isArray(t.url)?t.url.map(o=>gr(o,r)||o):gr(t.url,r)||t.url;return Ua(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},yO=(e,t)=>Object.keys(e).map(r=>mO(r,e[r].value,t));V();V();V();var bO={};Y(bO,{animation:()=>sL,breakpoints:()=>oL,class:()=>dL,color:()=>XD,devices:()=>iL,document:()=>nL,font:()=>zD,fontFace:()=>HD,fontFamily:()=>UD,fontFamilyTypes:()=>WD,gradient:()=>YD,grid:()=>fL,icons:()=>QD,media:()=>qD,reset:()=>pL,semanticIcons:()=>eL,sequence:()=>yd,shadow:()=>JD,spacing:()=>KD,svg:()=>aL,svgData:()=>lL,templates:()=>cL,theme:()=>ZD,timing:()=>rL,typography:()=>xO,unit:()=>BD,vars:()=>hL});var yd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},BD={default:"em"},VD={browserDefault:16,base:16,type:"font-size",ratio:yd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},xO=VD,zD={},UD={},WD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},HD={},qD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},GD={base:xO.base,type:"spacing",ratio:yd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},KD=GD,XD={},YD={},ZD={},JD={},QD={},eL={},tL={default:150,base:150,type:"timing",ratio:yd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},rL=tL,nL={},oL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},iL={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},sL={},aL={},lL={},cL={},uL={},fL=uL,dL={},pL={},hL={},PA={},$A={},Mu=bO,Wu={},vO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Mu){let t=e.toLowerCase();Wu[t]=Mu[e];let r=vO(t);r!==t&&(Wu[r]=Mu[e]),t!==e&&(Wu[e]=Mu[e])}var Kv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:PA,cssMediaVars:$A,CSS_VARS:PA,CSS_MEDIA_VARS:$A,_scratchConfig:!0,...Wu},gL=st(Kv),Nf={active:"0",0:Kv};var Ra=[],mL=e=>{e&&e._scratchConfig&&Ra.push(e)},yL=()=>{Ra.pop()},W=e=>Ra.length?Ra[Ra.length-1]:Nf[e||Nf.active]||Kv,bL=e=>{if(B(e))return Nf.active="1",Nf[1]=er(e,st(gL)),e};var Wr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Xv=(e,t)=>{let{key:r,variable:n,value:o,scaling:i,index:s,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:i,index:s,scalingVariable:a,variable:n},t.scales[r]=i;let l=_O.has(t.unit)?"rem":t.unit;t.vars[n]=i+l},el=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},_O=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Yv=(e,t)=>{let{base:r,type:n,unit:o}=t,i=_O.has(o)?"rem":o,s=(zv(i)?1:r)+i;if(e===0)return s;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Wr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Wr[e+1],u=Math.abs(e),d=Math.pow(kO,2*u),f=Wr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},wO=(e,t,r,n)=>{let{type:o}=n,i=e===2&&t.length===2?e+1:e,s=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${s+i}))`},Zv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,i=(n+o)/2;return[n,i,o]},SO=(e,t)=>Zv(e,t).map(r=>r/e),Jv=(e,t)=>{let{key:r,base:n,value:o,ratio:i,variable:s,index:a}=e,l=~~(o*i)-~~o,c,[u,d,f]=Zv(o,i);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=s+(h+1),y=a+(h+1)/10,b=wO(h+1,c,s,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Xv(v,t)})},kO=1.618,xL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),i=t*Math.pow(r,n)/Math.pow(kO,2*n);return Math.max(o,i)},yr=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:i}=e,s=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=s;l++){let c=o[1]-l,u=Wr[c],d=xL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Yv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Xv(g,e),i&&Jv(g,e)}return e},vL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:i}=e,s=P(t)?t:Wr[t],a=P(t)?Object.entries(Wr).find(([,h])=>h===t)?.[0]:t;if(!s)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+s,f=Yv(a,e),p={key:s,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Xv(p,l),i&&Jv(p,l),l},Qv=(e="A",t)=>{let r=W(),{unit:n}=r;if(P(e)&&ze(e))return`var(${e})`;let{sequence:o,unit:i=n.default,useVariable:s}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Uv.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${dd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),s||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?i==="ms"||i==="s"?d+g.val+i:d+g.scaling+i:console.warn("can't find",o,f)},CO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:Qv(o,t)}).join("")},Wa=(e,t,r,n)=>{if(typeof e!="string")return W().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=el(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=CO(e,r):e=Qv(e,r),{[t]:n?`${n}(${e})`:e}},AO=(e,t)=>Wr[e-t],EO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let i=AO(t,o);return r[i]})};V();var _L=(e,t)=>{let r=W(),{cssVars:n}=r;ue(e.value)||(n[e.var]=e.value)},e0=(e,t,r)=>{let n=W(),{unit:o}=n,i=t.unit||o.default,{base:s,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=s,e[`${c}-unit`]=i;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=SO(s,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},OO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bd=(e,t={})=>{let r=W(),{unit:n,timing:o,cssVars:i}=r,s=e.unit||n.default,a=OO.has(s)?"rem":s,{mediaRegenerate:l,sequence:c,scales:u}=e;l||e0(i,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){i[f.variable+"_default"]=p,i[f.variable]=f.scalingVariable;continue}t.useDefault===!1?i[f.variable]=p:(i[f.variable+"_default"]=p,i[f.variable]=`var(${f.variable+"_default"})`)}},Bf=(e,t,r={})=>{let n=W(),{unit:o,media:i,cssVars:s}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=OO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=i[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=s[`@media ${h}`];g||(g=s[`@media ${h}`]={}),e0(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(zv(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=s[`@media ${h}`];b||(b=s[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,s[m.variable+"_"+a]=y}};V();var TO=Xa(),_b=e=>{let t=W(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},wL=e=>{let t=e&&(e.default||e);if(!P(t))return TO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,i)=>{let[s,a]=i.split("=");return o[s]=a.replace(/['"]/g,""),o},{}):{}},SL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,i)=>(r.push(i),o)),!r.length)return e;let n=e;for(let o of r){let i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=`${t}-${o}`;n=n.replace(new RegExp(`id="${i}"`,"g"),`id="${s}"`).replace(new RegExp(`url\\(#${i}\\)`,"g"),`url(#${s})`).replace(new RegExp(`xlink:href="#${i}"`,"g"),`xlink:href="#${s}"`).replace(new RegExp(`href="#${i}"`,"g"),`href="#${s}"`)}return n},IA=new Set,RO=(e,t)=>{let r=t&&t.default?t.default:t;if(!P(r))return TO&&!IA.has(e)&&(IA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=wL(t),{width:o,height:i}=n,s=n.viewBox||`0 0 ${o||24} ${i||24}`,a=SL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=AL(a),a},kL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",CL=new RegExp(`<(${kL})\\b([^>]*?)\\s*/>`,"g"),AL=e=>e.replace(CL,"<$1$2></$1>"),PO={};Y(PO,{appendSVGSprite:()=>qO,appendSvgIconsSprite:()=>KO,applyDocument:()=>HO,applyHeadings:()=>LO,applyReset:()=>YO,applySpacingSequence:()=>VO,applyTimingSequence:()=>WO,applyTypographySequence:()=>MO,checkIfBoxSize:()=>BO,getColor:()=>Re,getFontFamily:()=>jO,getFontSizeByKey:()=>NO,getMediaColor:()=>vt,getMediaTheme:()=>Hr,getShadow:()=>UO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>Ve,getTheme:()=>t0,getTimingByKey:()=>hr,getTimingFunction:()=>Rn,runThroughMedia:()=>DO,setColor:()=>Pa,setFont:()=>FO,setFontFamily:()=>kb,setGradient:()=>$a,setMediaTheme:()=>r0,setSVG:()=>o0,setShadow:()=>Ia,setSvgIcon:()=>GO,setTheme:()=>$O,splitSpacedValue:()=>zO});V();var Re=(e,t,r)=>{let n=r||W();if(!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(ze(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,i,s;if(U(e))[o,i,s]=e;else{let d=Qa(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,i=d.alpha,s=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(s&&!c[s]&&(u=Ta(u,s),c[s]={rgb:u,var:`${c.var}-${s}`}),c[s]&&(u=c[s].rgb),i?`rgba(${u}, ${i})`:s?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},vt=(e,t,r)=>{let n=r||W();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!P(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(ze(e))return`var(${e})`;let o;if(U(e))o=e[0];else{let c=Qa(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:i,gradient:s}=n,a=i[o]||s[o],l=B(a);if(l&&a.value)return Re(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Re(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Re(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Pa=(e,t,r)=>{let n=W();if(P(e)&&ze(e)){let h=e.slice(2);if(e=Re(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(P(m)||U(m)||B(m))&&(n.color[g[0]]=Pa(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Ta(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=In(g[0]);v&&v.length>=3?e=`rgba(${Ta(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(U(e)&&(e={"@light":e[0],"@dark":e[1]}),B(e)){let h={};for(let g in e)h[g]=Pa(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],_=x&&(x.value||x);!_||typeof _!="string"||(y[v]=_,(v==="light"||m===void 0)&&(m=_))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),i=e.value||e;if(P(i)&&i.includes(".")&&!i.includes("(")){let[h,g]=i.split("."),m=n.color[h];m&&m.rgb&&(i=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(P(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Qa(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(P(g)||U(g)||B(g))&&(n.color[h.name]=Pa(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Ta(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;i=`rgba(${y}, ${b})`}}}let s=In(i),[a,l,c,u=1]=s,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},$a=(e,t,r)=>{let n=W();if(P(e)&&ze(e)&&(e=Re(e.slice(2))),U(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[0],t,"dark")};if(B(e)){let i={};for(let s in e)i[s]=$a(e[s],t,s.slice(0,1)==="@"?s.slice(1):s);return i}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};V();var EL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),FA=["color","Color","background","Background","fill","Fill","stroke","Stroke"],OL=e=>{for(let t=0;t<FA.length;t++)if(e.includes(FA[t]))return!0;return!1},xd=e=>{let t={},{state:r,media:n,helpers:o,...i}=e;return Object.keys(i).map(s=>{let a=["color","Color","background","border"].some(l=>s.includes(l));return t[s]=a?Re(e[s]):e[s]}),t},ua=e=>(e.value||(e.value=xd(e)),e.value),t0=(e,t)=>{let r=W();if(r.useVariable)return Hr(e,t);let n=r.theme;if(P(e)){let[o,i]=e.split(" "),s=n[o];if(s){if(!i&&!t)return ua(s);e=[o,i||t]}}if(ue(e)&&e[1]){let o=e[0],i=e[1],{helpers:s,media:a,state:l}=n[o];if(a&&a[i])return ua(a[i]);if(s&&s[i])return ua(s[i]);if(l&&l[i])return ua(l[i])}else if(B(e))return xd(e)},TL=(e,t,r)=>{if(B(t))e.variants.inverse.value=xd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},RL=(e,t,r,n)=>{let o=t0(r);n[`&:${t}`]=o,B(r)&&!r.value&&(r.value=o)},PL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return RL(e,n,o,t),e}),e):void 0},$L=(e,t,r,n)=>{let o=t0(r);n[`@media (prefers-color-scheme: ${t})`]=o,B(r)&&!r.value&&(r.value=o)},IL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&$L(e,n,o,t),n==="inverse"&&TL(e,o,t),e}),e):void 0},FL=(e,t)=>{let r=W(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let i=n[o];return P(i)?n[o]=r.theme[i]:ua(n[o]),e}),e):void 0},$O=(e,t)=>{let r=W();if(r.useVariable)return r0(e,t);let{state:n,media:o,helpers:i}=e,s=xd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return PL(e,s),IL(e,s),FL(e,s),{var:a,value:s,state:n,media:o,helpers:i}},wb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,i=r.globalTheme!==void 0?r.globalTheme:"auto",s={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&OL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Re(f,`@${d}`);p!==void 0&&P(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!EL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ue(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ue(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=wb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ue(e[h]?.[c])&&(p[h]=e[h][c]);s[c]=wb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Re(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),s[c]=`var(${f})`,s[`.${c}`]={[c]:s[c]}}}return(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color}),s},r0=(e,t,r,n)=>{let o=W(),{cssVars:i}=o,s={value:e},a=!r&&!n;if(ue(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ue(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wb(l,t,o);Object.assign(s,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;s[l]=r0(u,t,l,n||d)}else if(!a){let d=Re(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(i[h]=d),s[l]=`var(${h})`):s[l]=d,s[`.${l}`]={[l]:s[l]}}}!s[".inversed"]&&(s.background||s.color||s.backgroundColor)&&(s[".inversed"]={color:s.background||s.backgroundColor,background:s.color})}if(P(e)&&ze(e)){let l=o.theme[e.slice(2)];return Hr(l,n)}return s},Sb=e=>{let t=W(),r={};for(let n in e){let o=n.slice(0,1);if(ue(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Sb(e[n]):o==="."&&(r[`&${n}`]=Sb(e[n]))}else r[n]=e[n]}return r},IO=(e,t)=>{let r=t.shift();return e[r]?IO(e[r],t):e},jA=(e,t)=>U(t)?IO(e,t):P(t)&&e[t]?e[t]:e,Hr=(e,t)=>{let r=W();if(P(e)&&ze(e)&&(e=Hr(e.slice(2))),!e||!P(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=U(e)?e:e.split(" "),i=r.theme[n];return i&&o.length?i=jA(i,o):i&&t&&(i=jA(i,t)),Sb(i)};V();V();var FO=(e,t)=>{let r=W(),n=`--font-${t}`;if(!e||U(e)&&!e[0])return;let o;if(e.isVariable){let i=gr(e.url,r.files)||e.url;Hv(i)?o=qv(i):o=Ua(t,i,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=md(t,e,r.files);else{let i=Array.isArray(e.url)?e.url.map(s=>gr(s,r.files)||s):gr(e.url,r.files)||e.url;o=Ua(t,i,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},jO=(e,t)=>{let r=W(),{fontFamily:n}=r;return Wv(t||n,e)},kb=(e,t)=>{let r=W(),{fontFamily:n,fontFamilyTypes:o}=r,{value:i,type:s}=e;e.isDefault&&(n.default=t),B(i)&&(i=Ja(i));let a=`--font-family-${t}`,l=`${i.join(", ")}, ${o[s]}`;return{var:a,value:l,arr:i,type:s}};V();var DO=e=>{let t=W(),{typography:r,media:n}=t;for(let o in e){let i=o.slice(0,1)==="@",s=e[o];if(!i)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;it(s,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=s.unit||g,b=!s.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:s.base/r.browserDefault+b},!a){it(s,{sequence:{},scales:{},vars:{}}),yr(s),Bf(e,o);continue}it(s,{sequence:{},scales:{},templates:{},vars:{}}),yr(s),Bf(e,o)}},LO=e=>{let t=W();if(e.h1Matches){let r=e.unit,n=EO(e),{templates:o}=e;for(let i in n){let s=`h${parseInt(i)+1}`,a=o[s];o[s]={fontSize:t.useVariable?`var(${n[i]?.variable})`:`${n[i]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-i*100}}}},MO=()=>{let e=W(),{typography:t}=e;yr(t),LO(t),bd(t),DO(t)},NO=e=>{let t=W(),{typography:r}=t;return Wa(e,"fontSize",r)};V();V();var jL=e=>{let t=W().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return yr(n),n},DL=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c}=e;it(r,{type:n,base:o,ratio:i,range:s,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),yr(r),Bf(e,t)}},BO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},VO=()=>{let e=W(),{spacing:t}=e;yr(t),bd(t),DL(t)},LL=e=>{let t=W(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:yr(e)},Ve=(e,t="padding",r,n)=>{let o=LL(r);if(P(e)&&!n&&e.includes("(")){let s=el(e);n=s[0],e=s[1]}let i=n?[e]:Ja(e);if(U(i)){if(i.length>1){let s="";t==="borderWidth"&&(t="border",s="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Wa(i[u],t+c+s,o,n);return a[i.length].map((c,u)=>l(c,u))}return Wa(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=W(),{spacing:i}=o,s=r||e[t];if(!n&&P(s)&&s.includes("(")){let a=el(s);n=a[0],s=a[1]}if(e.spacingRatio){let a=jL(e);return Ve(s,t,a,n)}return Ve(s,t,i,n)},zO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Uv.some(i=>e.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};V();var Ia=(e,t,r,n)=>{let o=W();if(U(e))return{"@light":Ia(e[0],t,"light"),"@dark":Ia(e[1],t,"dark")};if(B(e)){let s={};for(let a in e)s[a]=Ia(e[a],t,a.startsWith("@")?a.slice(1):a);return s}P(e)&&!Fn.test(e)&&(e=gd(e).map(s=>(s=s.trim(),s.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Re(a);if(Go(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=Ve(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[i]=e),{var:i,value:e}},UO=(e,t)=>{let r=W();if(t||(t=r.globalTheme),!P(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(ze(e))return`var(${e})`;let[n]=U(e)?e:e.split(" "),o=r.shadow[n],i=B(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(i&&o.value)return o.value;if(i){let s={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);s[c]=o.value}return s}return r.verbose&&console.warn("Can't find color",e),e};V();var WO=()=>{let e=W(),{timing:t}=e;yr(t),bd(t)},Rn=e=>{let t=W(),{timing:r}=t;return r[e]||r[fd(e)]||e},hr=(e,t="timing")=>{let r=W(),{timing:n}=r;return Wa(e,t,n)};V();var HO=()=>{let e=W(),{document:t,fontFamily:r,theme:n,typography:o}=e;return it(t,{theme:n.document,fontFamily:Wv(r),fontSize:o.base,lineHeight:o.lineHeight})};V();var n0={document:be},o0=(e,t)=>{let r=W();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?RO(t,e):e},qO=(e,t=n0)=>{let r=W(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];XO(n,t)},GO=(e,t)=>{let r=W();return r.useIconSprite&&!r.semanticIcons?.[t]?o0(e,t):e},KO=(e,t=n0)=>{let r=W(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];XO(n,t)},sb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},ML=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},DA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},XO=(e,t=n0)=>{let r=W(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),_b(e);let o=n.querySelector("#svgSprite"),i=_b(e),s=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${i}</svg>`,a=ML(n,i);if(o)if(a)DA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",i);else{let l=sb(n,{isRoot:!1});l.innerHTML=i,o.append(...l.children)}else if(a){let l=sb(n);l&&l.nodeType&&(DA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",s);else{let l=sb(n);l&&l.nodeType&&(l.innerHTML=i,n.body.prepend(l))}};V();var YO=(e={})=>{let t=W(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?Hr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:i,...s}=n.templates,a=t.useDocumentTheme?Hr("document"):{};if(r.html&&$n(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return er(it(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...s,...i},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};V();var NL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),BL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),VL=e=>NL.has(e),An=e=>{let t=e+"";if(Fn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ze(n))return`var(${n})`;if(VL(n)||/^\d/.test(n)||n==="0")return n;let o=Re(n);if(Go(o))return o;let i=Ve(n,"border");return i&&i.border?i.border:n}).join(" ")},zL=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(ze(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Re(t);return Go(r)?r:t}).join(" "),UL=(e,t)=>UO(e,t),LA=(e,t)=>Fn.test(e)?e:gd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(ze(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Re(n);if(Go(o)){let s=vt(n,t);return B(s)?Object.values(s).filter(a=>a.includes(": "+t))[0]:s}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let i=Ve(n,"shadow");return i&&i.shadow?i.shadow:n}).join(" "):"")).join(", "),ZO=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),i=")",s=gd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||BL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Re(l);return Go(c)?c:l}).join(" ")));return n+s.join(", ")+i},WL=(e,t)=>{let r=W();return e.split(", ").map(n=>ze(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?ZO(n,t):r.gradient[e]?{backgroundImage:vt(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Qa(n)?`url(${n})`:n).join(" ")},HL=e=>P(e)&&e.split(" ").map(t=>Ve(t,"gap").gap).join(" "),qL=e=>{let t=e.split(" ");return t.length?t.map(r=>ze(r)?`var(${r})`:r.length<3||r.includes("ms")?hr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},MA=(e,t,r)=>{if(P(e))return e.split(",").map(n=>hr(n).timing||n).join(",")},GL=e=>{let t=e.split(",");if(t.length)return t.map(qL).join(",")};function Te(e,t,r={},n={}){let o=Me.call(this,t||r[e]);if(o==null)return;let i;if(P(o)){if(o.includes("(")){let l=el(o);i=l[0],o=l[1]}let s=r.scaleBoxSize,a=BO(e);!s&&a&&!n.ratio&&(o=zO(o))}return n.ratio?Ho(r,e,o,i):Ve(o,e,void 0,i)}var ie=(e,t=null,r)=>Te(e,t,r,{ratio:!0}),NA=(e,t,r)=>{if(P(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};V();var KL=(e,t)=>{let r=W(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},bt=e=>e,BA={color:Pa,gradient:$a,font:FO,fontFamily:kb,fontfamily:kb,theme:$O,icons:GO,semanticIcons:bt,semanticicons:bt,svg:o0,svgData:bt,typography:bt,shadow:Ia,spacing:bt,media:bt,grid:bt,class:bt,timing:bt,reset:bt,unit:bt,animation:bt,vars:KL},XL=(e,t,r)=>{let n=W(),o=vO(e),i=o.toLowerCase(),s=n[o]||n[i]||n[e],a=BA[o]||BA[i];if(a)try{let l=a(t,r);return s&&(s[r]=l),s}catch(l){n.verbose&&console.warn("Error setting",i,"value",t,r,l)}n.verbose&&console.warn("Can not find",i,"method in scratch")},YL=(e,t)=>{let r=W(),n=e.toLowerCase();return Object.keys(t).sort((o,i)=>{let s=B(t[o])||U(t[o])?1:0,a=B(t[i])||U(t[i])?1:0;return s-a}).forEach(o=>{try{return XL(n,t[o],o)}catch(i){r.verbose&&console.warn("Error setting",n,"value",t[o],o,i)}}),r[n]||r[e]};var ZL={},i0=(e,t=ZL)=>{let r=t.config||W(),{version:n,verbose:o,useVariable:i,useReset:s,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=bL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),i!==void 0&&(r.useVariable=i),s!==void 0&&(r.useReset=s),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let j=I=>{x.setAttribute("data-theme",I.matches?"dark":"light")},w=v.matchMedia("(prefers-color-scheme: dark)");if(j(w),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=j;try{w.addEventListener("change",j)}catch{w.addListener(j)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let _=Object.keys(y),k=new Set(_);if(_.forEach(j=>{let w=j.toLowerCase();w!==j&&k.has(w)&&er(y[w],y[j])}),_.map(j=>{let w=j.toLowerCase();if(!(w!==j&&k.has(w)))return YL(j,y[j])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{MO()}catch(j){r.verbose&&console.warn("Error applying typography sequence",j)}if(y.spacing)try{VO()}catch(j){r.verbose&&console.warn("Error applying spacing sequence",j)}if(y.timing)try{WO()}catch(j){r.verbose&&console.warn("Error applying timing sequence",j)}HO();let E=YO();return E&&(r.reset=E),r};var JL=null,QL=null,eM=null;function tM(e){e.batchAtomicCss&&(QL=e.batchAtomicCss),e.compoundCssClass&&(eM=e.compoundCssClass)}function rM(){try{let e=W();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Hu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var VA=new WeakMap;function fa(e,t){let r=JO(t);if(!r)return;let n=VA.get(r);if(n||(n=new Set,VA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var zA=new WeakMap;function JO(e){let t=e||rM();if(!t||!t.head)return null;let r=zA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return zA.set(t,o),JL=o,o}function Nt(e){if(JO(),typeof e=="string"){fa(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let i=n.startsWith("@media"),s=o.startsWith("@media");return!i&&!s?0:i?s?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let i in o){let s=o[i];if(typeof s=="object"&&s!==null){let a="";for(let l in s){let c=l.startsWith("--")?l:Hu(l);a+=`${c}:${s[l]};`}fa(`${n}{${i}{${a}}}`)}else{let a=i.startsWith("--")?i:Hu(i);fa(`${n}{${a}:${s};}`)}}else{let i="",s=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)s=!0;else{let c=a.startsWith("--")?a:Hu(a);i+=`${c}:${l};`}}if(i&&fa(`${n}{${i}}`),s){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Nt({[`${n} ${c}`]:o[c]});for(let c of a)Nt({[c]:{[n]:o[c]}})}}}}function UA(e,t){let r="";for(let n in t){let o="";for(let i in t[n])o+=`${Hu(i)}:${t[n][i]};`;r+=`${n}{${o}}`}return fa(`@keyframes ${e}{${r}}`),e}V();Za();V();V();var nM=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],oM=["none","forwards","backwards","both"],iM=["normal","reverse","alternate","alternate-reverse"],sM=["running","paused"],aM=e=>/^[\d.]+m?s$/.test(e),lM=0,ab=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(B(e)){let o=`smbls-anim-${lM++}`;return{animationName:UA(o,e)}}let n=r&&r[e];return B(n)?UA(e,n):e},cM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,i=[],s=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:aM(d)?i.push(d):nM.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?s=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):iM.includes(d)?l=d:oM.includes(d)?c=d:sM.includes(d)?u=d:o||(o=d);return{name:o,durations:i,timingFunction:s,iterationCount:a,direction:l,fillMode:c,playState:u}},uM={animation:(e,t)=>{if(P(e)&&e.includes(" ")){let r=cM(e,t);return{animationName:ab(r.name||e,t),animationDuration:r.durations[0]||hr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||hr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:ab(e,t),animationDuration:hr(t.animationDuration||"A").timing,animationDelay:hr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:ab(e,t)}),animationDuration:e=>({animationDuration:hr(e).timing}),animationDelay:e=>({animationDelay:hr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};V();var fM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>ie("height",e,t),width:(e,t)=>ie("width",e,t),boxSizing:e=>Mt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("height",t),...Te("width",r||t)}},inlineSize:(e,t)=>ie("inlineSize",e,t),blockSize:(e,t)=>ie("blockSize",e,t),minWidth:(e,t)=>ie("minWidth",e,t),maxWidth:(e,t)=>ie("maxWidth",e,t),widthRange:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("minWidth",t),...Te("maxWidth",r||t)}},minHeight:(e,t)=>ie("minHeight",e,t),maxHeight:(e,t)=>ie("maxHeight",e,t),heightRange:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("minHeight",t),...Te("maxHeight",r||t)}},size:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...ie("inlineSize",t),...ie("blockSize",r||t)}},minBlockSize:(e,t)=>ie("minBlockSize",e,t),minInlineSize:(e,t)=>ie("minInlineSize",e,t),maxBlockSize:(e,t)=>ie("maxBlockSize",e,t),maxInlineSize:(e,t)=>ie("maxInlineSize",e,t),minSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("minInlineSize",t),...Te("minBlockSize",r||t)}},maxSize:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("maxInlineSize",t),...Te("maxBlockSize",r||t)}},borderWidth:(e,t)=>ie("borderWidth",e,t),padding:(e,t)=>ie("padding",e,t),scrollPadding:(e,t)=>ie("scrollPadding",e,t),paddingInline:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("paddingInlineStart",t),...Te("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("paddingBlockStart",t),...Te("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>ie("paddingBlockStart",e,t),paddingBottom:(e,t)=>ie("paddingBlockEnd",e,t),paddingLeft:(e,t)=>ie("paddingInlineStart",e,t),paddingRight:(e,t)=>ie("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>ie("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>ie("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>ie("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>ie("paddingInlineEnd",e,t),margin:(e,t)=>ie("margin",e,t),marginInline:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{...Te("marginInlineStart",t),...Te("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!P(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Te("marginBlockStart",r),...Te("marginBlockEnd",n||r)}},marginTop:(e,t)=>ie("marginBlockStart",e,t),marginBottom:(e,t)=>ie("marginBlockEnd",e,t),marginLeft:(e,t)=>ie("marginInlineStart",e,t),marginRight:(e,t)=>ie("marginInlineEnd",e,t),marginInlineStart:(e,t)=>ie("marginInlineStart",e,t),marginInlineEnd:(e,t)=>ie("marginInlineEnd",e,t),marginBlockStart:(e,t)=>ie("marginBlockStart",e,t),marginBlockEnd:(e,t)=>ie("marginBlockEnd",e,t),gap:e=>({gap:HL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!P(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!P(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>NA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>NA(e??t.round,t,"borderRadius")},dM={fontSize:e=>NO(e)||e,fontFamily:e=>({fontFamily:jO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},pM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let i=n.files&&n.files[e];i&&i.content&&(e=`url(${i.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},hM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>Ve(r,"k").k).join(" ")}},left:e=>Ve(e,"left"),top:e=>Ve(e,"top"),right:e=>Ve(e,"right"),bottom:e=>Ve(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ve(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>Ve(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};V();var Ft=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},gM={theme:(e,t)=>{if(e)return t.themeModifier?Hr(e,`@${t.themeModifier}`):Hr(e)},color:(e,t)=>{let r=Ft(t);if(e)return{color:vt(e,r)}},background:(e,t)=>{let r=Ft(t);if(e)return P(e)&&e.includes("gradient")?{background:ZO(e,r)}:{background:vt(e,r)}},backgroundColor:(e,t)=>{let r=Ft(t);if(e)return{backgroundColor:vt(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Ft(t);if(!e)return;let i=n.assets&&n.assets[e];if(i&&i.content)e=i.content.src;else{let s=n.files&&n.files[e];s&&s.content&&(e=s.content.src)}return{backgroundImage:WL(e,o)}},textStroke:e=>({WebkitTextStroke:zL(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>ie("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=Ft(t);if(e)return{borderColor:vt(e,r)}},borderTopColor:(e,t)=>{let r=Ft(t);if(e)return{borderTopColor:vt(e,r)}},borderBottomColor:(e,t)=>{let r=Ft(t);if(e)return{borderBottomColor:vt(e,r)}},borderLeftColor:(e,t)=>{let r=Ft(t);if(e)return{borderLeftColor:vt(e,r)}},borderRightColor:(e,t)=>{let r=Ft(t);if(e)return{borderRightColor:vt(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=Ft(t);if(e)return{boxShadow:UL(e,r)}},boxShadow:(e,t)=>{if(!P(e))return;let[r,n]=e.split("!importan"),o=Ft(t),i=n?" !important":"";return{boxShadow:LA(r.trim(),o)+i}},textShadow:(e,{context:t})=>({textShadow:LA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},QO={transition:e=>({transition:GL(e)}),transitionDuration:e=>({transitionDuration:MA(e)}),transitionDelay:e=>({transitionDelay:MA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};V();var mM={flow:(e,t)=>{let r=t.reverse;if(!P(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},yM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},WA={...uM,...fM,...dM,...pM,...hM,...gM,...QO,...mM,...yM},bM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);V();var xM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,vM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),i=n.designSystem.media[o],s=Gr(t,r);if(!i)return{[e]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(xM),l=a?a[1]||a[2]:o,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:s}}return c},HA=(e,t,r)=>({[e]:Gr(t,r)}),sa=(e,t,r)=>{let n=`&${e}`,o=Gr(t,r);if(e.includes(",")&&o){let i={},s={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?s[a]=o[a]:i[a]=o[a];if(Object.keys(s).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[n]=i);for(let c in s){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=s[c]}return l}}return{[n]:o}},s0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return N(r)?r.call(t,t):!!r},_M=(e,t,r)=>{let n=e.slice(1),o=s0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Gr(t,r)},wM=(e,t,r)=>({[e]:t}),SM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=s0(n,r);i!==void 0&&(o=i)}if(o)return Gr(t,r)},kM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let i=s0(n,r);i!==void 0&&(o=i)}if(!o)return Gr(t,r)},CM=(e,t)=>Gr(e,t),AM={"@":vM,":":sa,"[":sa,"*":sa,"+":sa,"~":sa,"&":HA,">":HA,$:_M,"-":wM,".":SM,"!":kM},lb=Uo(),EM=(e,t,r)=>{let n=t?.context?.designSystem;n&&mL(n);try{let o={},i={},s=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>it(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Me(l,t);it(o,CM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=N(c)?c(t,t.state,t.context):c;u&&s(a,u),!lb&&B(o[a])&&(o[a].label=a)}else if(WA[a]){let c=Me(l,t);U(c)&&(c=c.reduce((d,f)=>it(d,f),{}));let u=WA[a](c,t,t.state,t.context);U(u)&&(u=u.reduce((d,f)=>it(d,f),{})),u&&s(a,u),!lb&&B(o[a])&&(o[a].label=a)}else if(bM.has(a)){let c=Me(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(a,{[a]:c}),!lb&&B(o[a])&&(o[a].label=a)}else i[a]=l}return[o,i]}finally{n&&yL()}},OM=(e,t)=>{let r={};for(let n in e){let o=AM[n.slice(0,1)];if(o){let i=o(n,e[n],t);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]&&typeof r[s]=="object"&&typeof i[s]=="object"?$n(r[s],i[s]):r[s]=i[s])}}return r},Gr=(e,t,r={unpack:!0})=>{let[n,o]=EM(e,t,r),i=OM(o,t),s=!1;for(let a in i){s=!0;break}if(s){if(r.unpack)return nd(n,i);n._selectors=i}return n};V();V();V();Za();var X7=new Proxy(Object.create(null),{get(){},has(){return!1}});V();var qA=(e,t)=>{let r=e.call("exec",t,e);if(r)return P(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var TM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},RM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},PM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},Y7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...TM,...RM,...PM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var $M={};Y($M,{A:()=>jR,AssetPicture:()=>AT,Audio:()=>$T,Avatar:()=>tP,B:()=>JT,Block:()=>tT,Box:()=>rR,Br:()=>oR,Button:()=>BR,ButtonSet:()=>WR,COMPONENTS:()=>UM,Caption:()=>UT,Checkbox:()=>yR,CheckboxHgroup:()=>bR,Circle:()=>wT,CircleButton:()=>zR,Clickable:()=>mT,Data:()=>eR,Dialog:()=>GR,DialogFooter:()=>XR,DialogHeader:()=>KR,Dropdown:()=>iP,DropdownList:()=>sP,DropdownParent:()=>aP,DropdownParentFocus:()=>lP,DropdownSiblingFocus:()=>cP,FileIcon:()=>PR,Flex:()=>nT,Focusable:()=>yT,FocusableComponent:()=>bT,Footnote:()=>ZT,Form:()=>fT,Grid:()=>iT,Gutter:()=>aT,H1:()=>DT,H2:()=>LT,H3:()=>MT,H4:()=>NT,H5:()=>BT,H6:()=>VT,Headline:()=>XT,Hgroup:()=>cR,HgroupButton:()=>fR,HgroupRows:()=>uR,Hoverable:()=>gT,Hr:()=>nR,I:()=>QT,Icon:()=>TR,IconButton:()=>HR,IconText:()=>RR,Iframe:()=>pT,Img:()=>cT,Inline:()=>rT,InlineFlex:()=>oT,InlineGrid:()=>sT,Input:()=>pR,Italic:()=>GT,KangorooButton:()=>UR,Li:()=>iR,Link:()=>h0,Notification:()=>fP,NumberInput:()=>gR,Ol:()=>aR,P:()=>zT,Picture:()=>kT,Radio:()=>vR,RadioHgroup:()=>_R,Range:()=>nP,RouteLink:()=>DR,RouterLink:()=>g0,SHAPES:()=>Vf,Select:()=>MR,Shape:()=>l0,Span:()=>jT,SquareButton:()=>VR,Strong:()=>WT,Subhead:()=>YT,Svg:()=>OT,Text:()=>FT,Textarea:()=>AR,TextareaWithButton:()=>ER,Theme:()=>ST,Title:()=>KT,Toggle:()=>SR,ToggleHgroup:()=>kR,Tooltip:()=>ZR,TooltipHidden:()=>JR,TooltipParent:()=>QR,U:()=>HT,Ul:()=>sR,Underline:()=>qT,Video:()=>RT,depth:()=>a0,getSystemGlobalTheme:()=>zf});var eT={};Y(eT,{Block:()=>tT,Flex:()=>nT,Grid:()=>iT,Gutter:()=>aT,Inline:()=>rT,InlineFlex:()=>oT,InlineGrid:()=>sT});var tT={display:"block"},rT={display:"inline"},nT={display:"flex"},oT={display:"inline-flex"},iT={display:"grid"},sT={display:"inline-grid"},aT={boxSize:"C1"},lT={};Y(lT,{Img:()=>cT});V();var cT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Jt(e);return t&&t.src||e.src},srcset:e=>{let t=Jt(e);return(t?pd(t):"")||e.srcset}}},uT={};Y(uT,{Form:()=>fT});var fT={tag:"form"},dT={};Y(dT,{Iframe:()=>pT});var pT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},hT={};Y(hT,{Clickable:()=>mT,Focusable:()=>yT,FocusableComponent:()=>bT,Hoverable:()=>gT});var IM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},gT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},mT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},yT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},bT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:IM},xT={};Y(xT,{Picture:()=>kT});var vT={};Y(vT,{Theme:()=>ST,getSystemGlobalTheme:()=>zf});var _T={};Y(_T,{Circle:()=>wT,SHAPES:()=>Vf,Shape:()=>l0,default:()=>FM,depth:()=>a0});V();var xt=W(),a0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${xt.unit.default} 4${xt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${xt.unit.default} 6${xt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${xt.unit.default} 10${xt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${xt.unit.default} 16${xt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${xt.unit.default} 26${xt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${xt.unit.default} 42${xt.unit.default}`}},Io=e=>Re(e.shapeDirectionColor)||Re(e.borderColor)||Re(e.backgroundColor)||Re(e.background),Nu=e=>{let t=QO.transition(e.transition,e);return t&&t.transition},Vf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Io(e),transition:Nu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Io(e),transition:Nu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Io(e),transition:Nu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},l0={deps:{exec:Me,getSpacingBasedOnRatio:Ho,getMediaColor:vt},classlist:{shape:e=>e.deps.exec(Vf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Vf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},wT={round:"100%"},FM=l0;V();var zf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},ST={deps:{depth:a0},classlist:{depth:e=>!Mt(e.depth)&&e.deps.depth[e.depth]}},kT={deps:{getSystemGlobalTheme:zf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:zf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,i=n.getSystemGlobalTheme(e),s=(e.media||t).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":o[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},CT={};Y(CT,{AssetPicture:()=>AT});V();var AT={tag:"picture",children:e=>{let t=Jt(e);if(t)return hd(t,e.alt)}},ET={};Y(ET,{Svg:()=>OT});var OT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,i=e.spriteId||r&&r.useSvgSprite,s=e.call("exec",e.src,e);if(!i&&s)return s;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[s])return a(s);let c=Symbol.for(s),u=o[c];if(u&&o[u])return a(u);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<s.length;f++)d=(d<<5)-d+s.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:s}},{document:t.document,emotion:t.emotion}),a(u)}},TT={};Y(TT,{Video:()=>RT});V();var RT={tag:"video",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},PT={};Y(PT,{Audio:()=>$T});V();var $T={tag:"audio",controls:!0,attr:{src:e=>{let t=Jt(e);return t&&t.src||e.src}},children:e=>{let t=Jt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},IT={};Y(IT,{B:()=>JT,Caption:()=>UT,Data:()=>eR,Footnote:()=>ZT,H1:()=>DT,H2:()=>LT,H3:()=>MT,H4:()=>NT,H5:()=>BT,H6:()=>VT,Headline:()=>XT,I:()=>QT,Italic:()=>GT,P:()=>zT,Span:()=>jT,Strong:()=>WT,Subhead:()=>YT,Text:()=>FT,Title:()=>KT,U:()=>HT,Underline:()=>qT});var FT={},jT={tag:"span"},DT={tag:"h1"},LT={tag:"h2"},MT={tag:"h3"},NT={tag:"h4"},BT={tag:"h5"},VT={tag:"h6"},zT={tag:"p"},UT={tag:"caption"},WT={tag:"strong",fontWeight:"700"},HT={tag:"u"},qT={tag:"u"},GT={tag:"i"},KT={},XT={tag:"h6",fontSize:"B",fontWeight:500},YT={tag:"span",fontSize:"Z1"},ZT={tag:"span",fontSize:"Z"},JT={tag:"b"},QT={tag:"i"},eR={tag:"data"},tR={};Y(tR,{Box:()=>rR,Br:()=>oR,Hr:()=>nR,Li:()=>iR,Ol:()=>aR,Ul:()=>sR});var jM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Gr(t,e,{unpack:!1});r.__class=n},rR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:jM},nR={tag:"hr",margin:"C1 0"},oR={tag:"br"},iR={tag:"li"},sR={tag:"ul",childExtends:{extends:"Li"}},aR={tag:"ol",childExtends:{extends:"Li"}},lR={};Y(lR,{Hgroup:()=>cR,HgroupButton:()=>fR,HgroupRows:()=>uR});var GA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},cR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:GA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:GA,margin:"0",color:"paragraph"}},uR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},fR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},dR={};Y(dR,{Input:()=>pR});var pR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},hR={};Y(hR,{NumberInput:()=>gR});var gR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},mR={};Y(mR,{Checkbox:()=>yR,CheckboxHgroup:()=>bR});var yR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},bR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},xR={};Y(xR,{Radio:()=>vR,RadioHgroup:()=>_R});var vR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},_R={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},wR={};Y(wR,{Toggle:()=>SR,ToggleHgroup:()=>kR});var SR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},kR={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},CR={};Y(CR,{Textarea:()=>AR,TextareaWithButton:()=>ER});var AR={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},ER={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},OR={};Y(OR,{FileIcon:()=>PR,Icon:()=>TR,IconText:()=>RR});var TR={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:i,verbose:s}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let _=x[".isActive"];if(_)return x.call("exec",_.name||_.icon)},c=(x,_,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:j}=k&&k.utils,w=u(x,_),I=j(w).split(/([a-z])([A-Z])/g),H=I[1]?I[0]:w.split(".")[0].split(" ")[0],te=E&&E[H];if(te){let D=w.includes(".")?"sfsymbols."+w.split(".").slice(1).join("."):"sfsymbols";return w=te[D]||te[w.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${w}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,_)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(_=>_.charAt(0).toUpperCase()+_.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:s&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:i&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},RR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},PR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},$R={};Y($R,{A:()=>jR,Link:()=>h0,RouteLink:()=>DR,RouterLink:()=>g0});var DM={};Y(DM,{default:()=>VM,getActiveRoute:()=>p0,lastLevel:()=>vd,lastPathname:()=>Uf,matchRoute:()=>u0,parseQuery:()=>f0,parseRoutePattern:()=>c0,router:()=>Ko,runGuards:()=>d0});V();var IR=/^:(.+)/,FR=/^\*$/,KA=new Map,c0=e=>{let t=KA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let s=0;s<r.length;s++){let a=r[s].match(IR);a?n.push({index:s,name:a[1]}):FR.test(r[s])&&(o=!0)}let i={segments:r,params:n,hasWildcard:o,pattern:e};return KA.set(e,i),i},u0=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let i=null,s=-1,a={};for(let l in t){if(l==="/*")continue;let c=c0(l),u=LM(n,c);u>s&&(s=u,i=l,a=MM(n,c))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:a,routePath:o}},LM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,i=Math.min(r.length,e.length);for(let s=0;s<i;s++)if(r[s]===e[s])o+=3;else if(IR.test(r[s]))o+=1;else if(FR.test(r[s]))o+=.5;else return-1;return o},MM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},f0=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},d0=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},p0=(e=0,t)=>{t||(t=typeof ce<"u"?ce.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Uf,vd=0,NM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,BM={level:vd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ko=async(e,t,r={},n={})=>{let o=t||void 0,i=o?.context?.window||ce,s=o?.context?.document||be,a={...BM,...o.context.routerOptions,...n};vd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";e=NM(e);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=f0(h),y=o.node,b=g&&g!==i.location.hash.slice(1),v=p!==Uf;Uf=p;let x,_,k,E;if(a.useParamsMatching){let w=u0(p,o.routes,a.level);x=w.key,_=w.routePath,k=w.content,E=w.params}else{x=p0(a.level,p),_=x;let w=o.routes;k=w?w[x||"/"]||w["/*"]:null,E={}}let j=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let w={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},I=await d0(a.guards,w);if(I===!1)return;if(typeof I=="string")return Ko(I,t,r,{...n,guards:[]})}if(a.pushState)try{i.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let w={route:x,routePath:_,hash:g,debugging:!1};Object.keys(E).length&&(w.params=E),Object.keys(m).length&&(w.query=m),a.updateState&&o.state.update(w,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let I=o.__ref?.origin?.content,H={};if(I)for(let D in I){let F=I[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof F=="string"||typeof F=="number"||typeof F=="boolean"||typeof F=="object"&&F!==null&&!F.node&&!F.__ref)&&(H[D]=F)}let te={...H,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(D){console.error("[smbls/router] failed to render route content",p,D)}}if(a.scrollToTop&&j?.scrollTo&&j.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let w=s.getElementById(g);if(w&&j?.scrollTo){let I=w.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);j.scrollTo({...a.scrollToOptions||{},top:I,left:0})}}Wo("routeChanged",o,a)},VM=Ko,zM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},h0={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>qA(e,e.href)||qA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:zM},jR={extends:"Link"},g0={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:i,stopPropagation:s}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),s&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",i)?i:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},DR={extends:[h0,g0]},LR={};Y(LR,{Select:()=>MR});var MR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},NR={};Y(NR,{Button:()=>BR,ButtonSet:()=>WR,CircleButton:()=>zR,IconButton:()=>HR,KangorooButton:()=>UR,SquareButton:()=>VR});var BR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},VR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},zR={extends:"SquareButton",round:"C"},UR={extends:"Button",childExtends:"IconText"},WR={tag:"nav",display:"flex",childExtends:"SquareButton"},HR={extends:["SquareButton","ClickableItem"],round:"Z"},qR={};Y(qR,{Dialog:()=>GR,DialogFooter:()=>XR,DialogHeader:()=>KR});var GR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},KR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},XR={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},YR={};Y(YR,{Tooltip:()=>ZR,TooltipHidden:()=>JR,TooltipParent:()=>QR});V();var ZR={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>zo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},JR={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},QR={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},eP={};Y(eP,{Avatar:()=>tP});var tP={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},rP={};Y(rP,{Range:()=>nP});var nP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:vb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:vb("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},oP={};Y(oP,{Dropdown:()=>iP,DropdownList:()=>sP,DropdownParent:()=>aP,DropdownParentFocus:()=>lP,DropdownSiblingFocus:()=>cP});var iP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},sP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},aP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},lP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},cP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},uP={};Y(uP,{Notification:()=>fP});var fP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},UM=Object.assign({},eT,lT,uT,dT,hT,xT,CT,ET,_T,TT,PT,vT,IT,tR,lR,dR,hR,mR,xR,wR,CR,OR,$R,LR,NR,qR,YR,eP,rP,oP,uP);var WM=null;function HM(e){WM=e}V();var qM={};Y(qM,{CDN_PROVIDERS:()=>Dt,DOMQL_EVENTS:()=>ox,DOMQ_PROPERTIES:()=>qo,ENV:()=>Sx,HTML_TAGS:()=>Ba,METHODS:()=>La,METHODS_EXL:()=>rd,NODE_ENV:()=>jt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>nx,SVG_TAGS:()=>Mx,TYPES:()=>pa,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Ux,addExtends:()=>Je,addItemAfterEveryElement:()=>Wb,addProtoToArray:()=>Jf,addRef:()=>_f,applyCSS:()=>YM,applyDependentState:()=>lv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>Hx,applyProps:()=>Ea,arrayContainsOtherArray:()=>Lb,arraysEqual:()=>qb,arrayzeValue:()=>Ja,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>dv,call:()=>KE,captureSnapshot:()=>xv,checkForStateTypes:()=>ov,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Xb,clone:()=>sx,cloneAndMergeArrayExtend:()=>va,cloneFunction:()=>oE,concatAddExtends:()=>Bx,copyJavaScriptToClipboard:()=>Lv,copyStringToClipboard:()=>Dv,createBasedOnType:()=>vf,createElement:()=>nv,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Va,createExtendsStack:()=>hf,createIfConditionFlag:()=>Px,createInheritedState:()=>iv,createKey:()=>sd,createNestedObject:()=>gx,createNestedObjectByKeyPath:()=>av,createObjectWithoutPrototype:()=>nf,createParent:()=>wf,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>rv,createScope:()=>uv,createSnapshotId:()=>id,customDecodeURIComponent:()=>rx,customEncodeURIComponent:()=>tx,cutArrayAfterValue:()=>zb,cutArrayBeforeValue:()=>Vb,debounce:()=>nE,debounceOnContext:()=>Ox,decodeNewlines:()=>ex,deepClone:()=>st,deepContains:()=>px,deepDefaults:()=>Oa,deepDestringifyFunctions:()=>ax,deepExtend:()=>cf,deepMerge:()=>er,deepMergeExtends:()=>Yt,deepStringifyFunctions:()=>ha,defineSetter:()=>bv,destringifyGlobalScope:()=>lx,detectHeightOnInit:()=>kv,detectInfiniteLoop:()=>xx,document:()=>be,encodeNewlines:()=>Qb,error:()=>Ff,excludeKeysFromObject:()=>_x,exec:()=>Me,extendCachedRegistry:()=>Vx,extendStackRegistry:()=>ya,extractArrayExtend:()=>xa,fetchLibraryData:()=>Fv,fibonacciNumberByIndex:()=>Cv,filterArrays:()=>Gb,filterArraysFast:()=>Kb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Iv,findInheritedState:()=>Tf,findKeyPosition:()=>Zb,flattenExtend:()=>Lo,formatDate:()=>Sv,generateHash:()=>sf,generateKey:()=>ma,generateMetaTags:()=>$v,get:()=>IE,getActiveRoute:()=>p0,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>lE,getCdnProviderFromConfig:()=>_v,getChildStateInKey:()=>Of,getChildren:()=>DE,getContext:()=>zE,getCookie:()=>Dx,getDB:()=>XE,getEmotionStylesheet:()=>Vv,getExtendsInElement:()=>Wx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Mb,getHashedExtend:()=>ba,getImportMapScript:()=>wv,getInObjectByPath:()=>bx,getLocalStorage:()=>iE,getNev:()=>Ex,getPageMetadata:()=>rO,getParentStateInKey:()=>Ef,getPath:()=>LE,getQuery:()=>YE,getRef:()=>jE,getRoot:()=>NE,getRootContext:()=>VE,getRootData:()=>BE,getRootState:()=>ME,getRootStateInKey:()=>Af,getSpreadChildren:()=>cE,global:()=>Fb,hasFunction:()=>Do,hasHandlerPlugin:()=>Ya,hasOwnProperty:()=>ux,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>ka,inheritRecursiveChildExtends:()=>pf,init:()=>_d,initProps:()=>ev,is:()=>Zt,isArray:()=>U,isBoolean:()=>Ju,isContextComponent:()=>uE,isCyclic:()=>vx,isDOMNode:()=>ot,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>fx,isEqualDeep:()=>rf,isFunction:()=>N,isHtmlElement:()=>Kf,isLocal:()=>Ax,isMethod:()=>ZE,isMobile:()=>Fx,isNode:()=>Ha,isNot:()=>Db,isNotProduction:()=>Xa,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>B,isObjectLike:()=>ue,isPhoto:()=>Av,isProduction:()=>Uo,isStaging:()=>Cx,isState:()=>sv,isString:()=>P,isStringFunction:()=>Rx,isTest:()=>of,isTesting:()=>kx,isUndefined:()=>Mt,isUniversallyReservedKey:()=>vv,isValidHtmlTag:()=>Nx,joinArrays:()=>ja,jointStacks:()=>zx,keys:()=>hv,lastLevel:()=>vd,lastPathname:()=>Uf,loadCssFile:()=>Rv,loadJavascript:()=>Pv,loadJavascriptFile:()=>Ev,loadJavascriptFileEmbedSync:()=>Tv,loadJavascriptFileSync:()=>Ov,loadRemoteCSS:()=>tO,loadRemoteScript:()=>eO,log:()=>UE,logGroupIf:()=>Ix,logIf:()=>$x,lookdown:()=>RE,lookdownAll:()=>PE,lookup:()=>TE,lowercaseFirstLetter:()=>Ga,makeObjectWithoutPrototype:()=>dx,map:()=>ix,mapStringsWithContextComponents:()=>_a,matchRoute:()=>u0,matchesComponentNaming:()=>En,memoize:()=>Tx,merge:()=>it,mergeSharedLibraries:()=>jv,nextElement:()=>HE,normalizeLibraryKey:()=>za,objectToString:()=>ga,objectizeStringProperty:()=>Sa,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>cv,parse:()=>gv,parseDeep:()=>If,parseQuery:()=>f0,parseRoutePattern:()=>c0,pickupElementFromProps:()=>Kx,pickupPropsFromElement:()=>Gx,previousElement:()=>qE,propExists:()=>Qx,propertizeElement:()=>Xx,propertizeUpdate:()=>dE,reinit:()=>XM,remove:()=>$E,removeChars:()=>Mv,removeCookie:()=>Lx,removeDuplicateProps:()=>Ca,removeDuplicatesInArray:()=>Da,removeFromArray:()=>Nb,removeFromObject:()=>hx,removeNestedKeyByPath:()=>mx,removeValueFromArray:()=>Zf,removeValueFromArrayAll:()=>Ub,reorderArrayByValues:()=>Hb,replaceLiteralsWithObjectFields:()=>eE,replaceOctalEscapeSequences:()=>Jb,resolveAsset:()=>Jt,resolveHandler:()=>Ma,resolveSharedLibraries:()=>oO,returnValueAsText:()=>xf,router:()=>Ko,runGuards:()=>d0,runPluginHook:()=>Na,scratchSystem:()=>PO,scratchUtils:()=>aO,self:()=>jb,set:()=>i0,setActiveRootState:()=>yv,setCookie:()=>jx,setHashedExtend:()=>af,setInObjectByPath:()=>yx,setLocalStorage:()=>sE,setNodeStyles:()=>pv,setProps:()=>FE,setPropsPrototype:()=>mf,spotByPath:()=>OE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>cx,swapItemsInArray:()=>Bb,syncProps:()=>Aa,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Bv,toTitleCase:()=>Nv,toggleFullscreen:()=>QE,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>fv,trimStringFromSymbols:()=>Yb,unstackArrayOfObjects:()=>Yf,update:()=>Yx,updateProps:()=>tv,variables:()=>GE,verbose:()=>mv,warn:()=>WE,window:()=>ce});V();V();var GM=W(),dP=(e=GM,t)=>{let r=B(t.localFile)?t.localFile:{},n=st(r.designSystem||{});return er(e,n)},KM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},_d=(e,t=KM)=>{let r=dP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(i=m)}let s=i0({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:i,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});s&&(s.scopeSelector=n);let a=yO(s.font,s.files),l=s.useReset,c=s.useVariable,u=s.useFontImport,d=s.useSvgSprite,f=e.svg,p=s.useIconSprite,h=e.icons;if(u&&Nt(a),c&&(Nt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS)){let m={};for(let y in s.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:s.CSS_MEDIA_VARS[y]}:m[y]=s.CSS_MEDIA_VARS[y];Nt(m)}l&&Nt(s.reset);let g=s.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Nt(m)}return(f||d)&&qO(s.svg,{document:t.document}),(h||p)&&KO(s.icons,{document:t.document}),s},pP={},XM=(e,t=pP)=>{let r=dP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,i=i0({verbose:!1,...r});if(!t.preventInject){if(Nt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS){let s={};for(let a in i.CSS_MEDIA_VARS)a.startsWith("@media")?s[a]={[o]:i.CSS_MEDIA_VARS[a]}:s[a]=i.CSS_MEDIA_VARS[a];Nt(s)}Nt(i.reset)}return i},YM=(e,t=pP)=>{Nt(e)};V();V();var Z7=ce&&ce.location?ce.location.host.includes("dev."):ad();V();Mo();var ZM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},JM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},J7={...ZM,router:JM};V();V();V();V();Mo();var Wf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},QM=Object.create(null);for(let e in Wf)QM[Wf[e]]=e;var cb=Object.create(null);for(let e in Wf){let t=Wf[e];if(cb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${cb[t]}"`);cb[t]=e}var eN=0,tN=()=>`${Date.now().toString(36)}-${(eN++).toString(36)}`,Fa=(e,t,r={})=>({id:tN(),ts:Date.now(),type:e,level:t,...r}),rN=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Hf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:rN(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,nN={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},oN=(e,{category:t,type:r,level:n})=>o=>{let i=Bo(o);!i||!i.shouldCapture(t)||i.emit(Fa(r,n,{hook:e,element:Hf(o)}))},XA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Fa("state","debug",{hook:e,element:Hf(t),changedKeys:r?.changedKeys||null}))},iN={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Fa("error","error",{hook:t?.hook||"error",element:Hf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Fa("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Fa("update","debug",{hook:"update",element:Hf(e),durationMs:r}))},beforeStateUpdate:XA("beforeStateUpdate"),stateUpdate:XA("stateUpdate")};for(let[e,t]of Object.entries(nN))iN[e]=oN(e,t);V();V();V();V();var Q7=typeof ce<"u"&&typeof ce.document<"u";var eG=typeof ce<"u"&&typeof ce.document<"u";V();var tG=typeof ce<"u"&&typeof ce.document<"u";V();var rG=typeof ce<"u"&&typeof ce.document<"u";var Qt=Object.create(null);Qt.open="0";Qt.close="1";Qt.ping="2";Qt.pong="3";Qt.message="4";Qt.upgrade="5";Qt.noop="6";var qu=Object.create(null);Object.keys(Qt).forEach(e=>{qu[Qt[e]]=e});var Cb={type:"error",data:"parser error"},hP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",gP=typeof ArrayBuffer=="function",mP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,m0=({type:e,data:t},r,n)=>hP&&t instanceof Blob?r?n(t):YA(t,n):gP&&(t instanceof ArrayBuffer||mP(t))?r?n(t):YA(new Blob([t]),n):n(Qt[e]+(t||"")),YA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function ZA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ub;function sN(e,t){if(hP&&e.data instanceof Blob)return e.data.arrayBuffer().then(ZA).then(t);if(gP&&(e.data instanceof ArrayBuffer||mP(e.data)))return t(ZA(e.data));m0(e,!1,r=>{ub||(ub=new TextEncoder),t(ub.encode(r))})}var JA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",da=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<JA.length;e++)da[JA.charCodeAt(e)]=e;var aN=e=>{let t=e.length*.75,r=e.length,n,o=0,i,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)i=da[e.charCodeAt(n)],s=da[e.charCodeAt(n+1)],a=da[e.charCodeAt(n+2)],l=da[e.charCodeAt(n+3)],u[o++]=i<<2|s>>4,u[o++]=(s&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},lN=typeof ArrayBuffer=="function",y0=(e,t)=>{if(typeof e!="string")return{type:"message",data:yP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:cN(e.substring(1),t)}:qu[r]?e.length>1?{type:qu[r],data:e.substring(1)}:{type:qu[r]}:Cb},cN=(e,t)=>{if(lN){let r=aN(e);return yP(r,t)}else return{base64:!0,data:e}},yP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,bP="",uN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((i,s)=>{m0(i,!1,a=>{n[s]=a,++o===r&&t(n.join(bP))})})},fN=(e,t)=>{let r=e.split(bP),n=[];for(let o=0;o<r.length;o++){let i=y0(r[o],t);if(n.push(i),i.type==="error")break}return n};function dN(){return new TransformStream({transform(e,t){sN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var fb;function Bu(e){return e.reduce((t,r)=>t+r.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function pN(e,t){fb||(fb=new TextDecoder);let r=[],n=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(n===0){if(Bu(r)<1)break;let l=Vu(r,1);i=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Bu(r)<2)break;let l=Vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Bu(r)<8)break;let l=Vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Cb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Bu(r)<o)break;let l=Vu(r,o);a.enqueue(y0(i?l:fb.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(Cb);break}}}})}var xP=4;function ke(e){if(e)return hN(e)}function hN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var wd=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),_t=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gN="arraybuffer";function vP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var mN=_t.setTimeout,yN=_t.clearTimeout;function Sd(e,t){t.useNativeTimers?(e.setTimeoutFn=mN.bind(_t),e.clearTimeoutFn=yN.bind(_t)):(e.setTimeoutFn=_t.setTimeout.bind(_t),e.clearTimeoutFn=_t.clearTimeout.bind(_t))}var bN=1.33;function xN(e){return typeof e=="string"?vN(e):Math.ceil((e.byteLength||e.size)*bN)}function vN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function _P(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function _N(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function wN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let i=r[n].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var SN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},b0=class extends ke{constructor(e){super(),this.writable=!1,Sd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new SN(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=y0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=_N(e);return t.length?"?"+t:""}},kN=class extends b0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};fN(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,uN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=_P()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},wP=!1;try{wP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var CN=wP;function AN(){}var EN=class extends kN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Vo=class Gu extends ke{constructor(t,r,n){super(),this.createRequest=t,Sd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=vP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Gu.requestsCount++,Gu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=AN,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gu.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Vo.requestsCount=0;Vo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",QA);else if(typeof addEventListener=="function"){let e="onpagehide"in _t?"pagehide":"unload";addEventListener(e,QA,!1)}}function QA(){for(let e in Vo.requests)Vo.requests.hasOwnProperty(e)&&Vo.requests[e].abort()}var ON=(function(){let e=SP({xdomain:!1});return e&&e.responseType!==null})(),TN=class extends EN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=ON&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Vo(SP,this.uri(),e)}};function SP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||CN))return new XMLHttpRequest}catch{}if(!t)try{return new _t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var kP=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",RN=class extends b0{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=kP?{}:vP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;m0(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=_P()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},db=_t.WebSocket||_t.MozWebSocket,PN=class extends RN{createSocket(e,t,r){return kP?new db(e,t,r):t?new db(e,t):new db(e)}doWrite(e,t){this.ws.send(t)}},$N=class extends b0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=pN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=dN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:s,value:a})=>{s||(this.onPacket(a),o())}).catch(s=>{})};o();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&wd(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},IN={websocket:PN,webtransport:$N,polling:TN},FN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,jN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ab(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=FN.exec(e||""),i={},s=14;for(;s--;)i[jN[s]]=o[s]||"";return r!=-1&&n!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=DN(i,i.path),i.queryKey=LN(i,i.query),i}function DN(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function LN(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,i){o&&(r[o]=i)}),r}var Eb=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ku=[];Eb&&addEventListener("offline",()=>{Ku.forEach(e=>e())},!1);var Xu=class Yu extends ke{constructor(t,r){if(super(),this.binaryType=gN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Ab(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Ab(r.host).host);Sd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wN(this.opts.query)),Eb&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=xP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Yu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Yu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=xN(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,wd(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let i={type:t,data:r,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Yu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Eb&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ku.indexOf(this._offlineEventListener);n!==-1&&Ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Xu.protocol=xP;var MN=class extends Xu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Xu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function s(){i("transport closed")}function a(){i("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",i),t.removeListener("close",s),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",i),t.once("close",s),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},CP=class extends MN{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>IN[n]).filter(n=>!!n)),super(e,r)}},nG=CP.protocol;function NN(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Ab(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var AP={};Y(AP,{Decoder:()=>XN,Encoder:()=>KN,PacketType:()=>ee,isPacketValid:()=>eB,protocol:()=>GN});var BN=typeof ArrayBuffer=="function",VN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,EP=Object.prototype.toString,zN=typeof Blob=="function"||typeof Blob<"u"&&EP.call(Blob)==="[object BlobConstructor]",UN=typeof File=="function"||typeof File<"u"&&EP.call(File)==="[object FileConstructor]";function x0(e){return BN&&(e instanceof ArrayBuffer||VN(e))||zN&&e instanceof Blob||UN&&e instanceof File}function Zu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Zu(e[r]))return!0;return!1}if(x0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Zu(e[r]))return!0;return!1}function WN(e){let t=[],r=e.data,n=e;return n.data=Ob(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Ob(e,t){if(!e)return e;if(x0(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Ob(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Ob(e[n],t));return r}return e}function HN(e,t){return e.data=Tb(e.data,t),delete e.attachments,e}function Tb(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Tb(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Tb(e[r],t));return e}var qN=Xj(RD(),1),Rb=(0,qN.default)("socket.io-parser"),OP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],GN=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var KN=class{constructor(e){this.replacer=e}encode(e){return Rb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Zu(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),Rb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=WN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},XN=class TP extends ke{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new YN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(x0(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let i=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let s=t.substring(i,r);if(s!=Number(s)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(s);if(!RP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let i=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(i,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let i=r+1;for(;++r;){let s=t.charAt(r);if(s==null||Number(s)!=s){--r;break}if(r===t.length)break}n.id=Number(t.substring(i,r+1))}if(t.charAt(++r)){let i=this.tryParse(t.substr(r));if(TP.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return Rb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return qf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||qf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&OP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},YN=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=HN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function ZN(e){return typeof e=="string"}var RP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function JN(e){return e===void 0||RP(e)}function qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function QN(e,t){switch(e){case ee.CONNECT:return t===void 0||qf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&OP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||qf(t);default:return!1}}function eB(e){return ZN(e.nsp)&&JN(e.id)&&QN(e.type,e.data)}function Lt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var tB=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),PP=class extends ke{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Lt(e,"open",this.onopen.bind(this)),Lt(e,"packet",this.onpacket.bind(this)),Lt(e,"error",this.onerror.bind(this)),Lt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(tB.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let i={type:ee.EVENT,data:t};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),i.id=l}let s=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!s||(a?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let s=0;s<this.sendBuffer.length;s++)this.sendBuffer[s].id===e&&this.sendBuffer.splice(s,1);t.call(this,new Error("operation has timed out"))},n),i=(...s)=>{this.io.clearTimeoutFn(o),t.apply(this,s)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(i,s)=>i?n(i):r(s);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Xo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var Pb=class extends ke{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Sd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||AP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new CP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Lt(t,"open",function(){r.onopen(),e&&e()}),o=s=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",s),e?e(s):this.maybeReconnectOnOpen()},i=Lt(t,"error",o);if(this._timeout!==!1){let s=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},s);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Lt(e,"ping",this.onping.bind(this)),Lt(e,"data",this.ondata.bind(this)),Lt(e,"error",this.onerror.bind(this)),Lt(e,"close",this.onclose.bind(this)),Lt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){wd(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new PP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},aa={};function pb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=NN(e,t.path||"/socket.io"),n=r.source,o=r.id,i=r.path,s=aa[o]&&i in aa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s,l;return a?l=new Pb(n,t):(aa[o]||(aa[o]=new Pb(n,t)),l=aa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(pb,{Manager:Pb,Socket:PP,io:pb,connect:pb});V();V();V();HM(tM);M();var $P=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:i}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([s,a])=>{r[s]&&typeof r[s]=="object"?s==="designSystem"?_d(a):rn(r[s],a):r[s]=a}),i&&(r.schema=i))},IP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let i=WC(r,o);if(i.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(s=>i.has(s))){let{pathname:s,search:a,hash:l}=r.window.location;e.call("router",s+a+l,e.__ref.root,{},{scrollToTop:!1})}i.has("designSystem")&&_d(r.designSystem)};var rB={success:"green",error:"red",warning:"yellow"},FP=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},jP={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:rB[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var nB=!1,oB=()=>nB?"http://localhost:8080":"https://api.symbols.app",iB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},sB=async e=>{try{let t=e||oB(),r=await C.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},MP=(e,t,r,n)=>{e.on("snapshot",$P(t,r,n)),e.on("ops",IP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&FP(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},aB=async(e,t,r,n)=>{let o=await sB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=r.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let s=r.editor?.projectId||null,a=Eo(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:s,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),MP(a,e,t,r),a},lB=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),MP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},cB=async(e,t,r)=>{let{mode:n,baseUrl:o}=iB(r);return n?n==="collab"?aB(e,t,r,o):n==="runner"?lB(e,t,r):null:null},uB={onInit:cB};var NP=e=>typeof e>"u",DP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),LP=e=>e?.editor?.runtime==="runner",BP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},VP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!NP(r.liveSync)?r.liveSync:DP(t)||LP(t))&&(DP(t)&&!LP(t)&&!t?.key||BP(e,uB))}},zP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=NP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&BP(e,jP)}};M();function UP(e){return A(e)?e:$(e)?e.find(t=>A(t)):""}function _0(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&UP(e.extends),n=e.parent&&e.parent.childExtends&&UP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function kd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=_0(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?kd(e.parent):o&&(t[o]||r[o])?e:kd(e.parent)}var fB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},v0={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:fB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=kd(n),i=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return i.update({area:!1});let s=_0(o),a=c=>{i.update({area:c,focusKey:s})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!i.area)return a(p);i.area.x!==p.x&&a(p)}else i.area&&i.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=kd(n);if(!o)return;let i=_0(o);if(!i)return;let s=n.context.editor;if(s&&s.onInspect)return s.onInspect(i,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${i}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)uo[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,i;if(!o)i="display: none !important";else if(n){let{x:s,y:a,width:l,height:c}=n;i=`
|
|
107
107
|
display: block !important;
|
|
108
108
|
top: ${a-6}px;
|
|
109
|
-
left: ${
|
|
109
|
+
left: ${s-6}px;
|
|
110
110
|
width: ${l+12}px;
|
|
111
111
|
height: ${c+12}px;
|
|
112
|
-
`}return t.node.style=
|
|
112
|
+
`}return t.node.style=i,t.Span.node.innerText=r.focusKey,!1}}},WP={name:"inspect",beforeCreate(e,t){Array.isArray(e.extends)?e.extends.push(v0):e.extends?e.extends=[e.extends,v0]:e.extends=[v0]}};var dB=async(e,t={})=>{let r=t.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=t.key=t.key||n||(A(e)?e:"smblsapp");if(t.define=t.define||ho,t.cssPropsRegistry=Se,t.window=O1(t),t.sharedLibraries&&t.sharedLibraries.length){if(t.sharedLibraries.some(p=>typeof p=="string")){let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(M(),M_));t.sharedLibraries=await p(t.sharedLibraries)}N1(t)}let[i,s]=D1(o,t);t.designSystem=i,t.registry=s,t.cases||(t.cases={}),t.shorthand&&hu.prepareContext(t);let a=L1(e,t);t.state=a,Wi(a),t.pages=M1(e,t),t.components=T1(t),t.utils=R1(t),Er[t.packageManager]&&(t.dependencies=await $1(t)),t.methods=P1(t),t.routerOptions=h1(e,t),t.defaultExtends=[qc],t.snippets=t.snippets||{},t.functions=t.functions||{},t.plugins=t.plugins||[],t.globalScope&&S(t.globalScope)&&(t.globalScope=fi(t.globalScope));let l=(f,p)=>{let h=p?f[p]:f;if(!S(h))return;let g=Ut(h);try{Object.assign(h,g)}catch(m){if(p)f[p]=g;else throw m}};l(e),l(t,"components"),l(t,"pages"),l(t,"functions"),l(t,"methods"),l(t,"snippets"),l(t,"app");let c=f=>f&&typeof f.select=="function";t.fetch?.__resolved&&!c(t.fetch.__resolved)&&delete t.fetch.__resolved,t.db?.__resolved&&!c(t.db.__resolved)&&delete t.db.__resolved;let u=f=>t.plugins.some(p=>p.name===f);if(t.polyglot&&!u("polyglot")){t.plugins.push(fu);for(let f in Ns)f in t.functions||(t.functions[f]=Ns[f])}if(u("helmet")||t.plugins.push(x1),t.fetch&&!u("fetch")&&t.plugins.push(Sh),t.designSystem?.typography?.useCapsize!==!1&&!u("capsize")&&(t.plugins.push(U1),t.cssPropsRegistry.useCapsize=z1),t.shorthand&&!u("shorthand")&&t.plugins.push(hu),t.analyze&&!u("analyze")){let f=t.analyze===!0?{}:t.analyze;t.analyze=Ay(f),t.plugins.push(qs)}return t.sync!==!1&&!u("sync")&&t.plugins.push(VP),t.inspect&&!u("inspect")&&t.plugins.push(WP),(t.notifications===!0||t.editor&&t.editor.verbose===!0)&&t.notifications!==!1&&!u("notifications")&&t.plugins.push(zP),t},w0=async(e,t)=>{S(t)||(t={}),tr(e)?(e={},t.parent=e):A(e)?(e={},t.key=e):S(e)||(e={});let r=t.window||(typeof window<"u"?window:null),n=r?.__BRENDER__,o=null;if(n){let l=t.document||(typeof document<"u"?document:null);l&&(o=Array.from(l.head.querySelectorAll("style")))}if(await dB(e,t),t.useReset!==!1){let l=t.document||(typeof document<"u"?document:null);if(l){let c=l.head.querySelector("style[data-smbls]");c||(c=l.createElement("style"),c.setAttribute("data-smbls",""),l.head.appendChild(c));let u=c.sheet;if(u){try{u.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{u.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(t.app&&S(t.app))for(let l in t.app)e[l]===void 0&&(e[l]=t.app[l]);e.extends=k1(e,t),t.router!==!1&&(e.routes=t.pages),e.state=t.state,e.context=t,e.data=e.data||{},t.skipDesignSystemInit||await I1({functions:t.functions,utils:t.utils,snippets:t.snippets,...t.files},t);for(let l of t.plugins)if(typeof l.beforeCreate=="function")try{l.beforeCreate(e,t)}catch(c){console.error(`[smbls] plugin "${l.name||"?"}" beforeCreate error:`,c)}let i=t.document;if(!i||!i.createElement)return e;let s=t.parent||i.body;if(n)return pB(Rt,e,s,t,r,o);let a=Rt(e,s,t.key,{verbose:t.verbose,context:t,...t.domqlOptions});return typeof window<"u"&&!t.document&&(window.__smblsApp=a),a},pB=async(e,t,r,n,o,i)=>{let s=r.ownerDocument||document;i&&i.forEach(c=>{c.parentNode&&c.remove()});let a=[];for(let c of r.childNodes){if(c.nodeType===1){let u=c.tagName.toLowerCase();if(u==="script"||u==="link"||u==="style"||u==="svg"&&c.id)continue}a.push(c)}a.forEach(c=>c.remove()),s.querySelectorAll("[data-br]").forEach(c=>c.removeAttribute("data-br"));let l=e(t,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return hB(o),l},hB=e=>{e&&(delete e.__BRENDER__,delete e.__BR_REGISTRY__)};var S0=(e,t)=>fe(e,S(t)?t:{}),gB=e=>{if(typeof document>"u")return;let t=e.themeRoot||e.document&&e.document.documentElement||document.documentElement;if(!t||typeof t.setAttribute!="function")return;let r=e.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let i=new URLSearchParams(window.location.search).get("globalTheme");i&&(r=i)}}catch{}let n=e.themeStorageKey;if(r==="auto"&&n&&typeof localStorage<"u")try{let i=localStorage.getItem(n);i&&(r=i)}catch{}let o=r==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():r;t.setAttribute("data-theme",o),e.globalTheme=r,e.themeRoot=t},mB=()=>{if(typeof document>"u")return null;try{let e=document.querySelector('meta[name="symbols-runtime"]'),t=e&&e.getAttribute("content");return typeof t=="string"&&t?t:null}catch{return null}},HP=e=>{let t=mB();t&&(e.editor||(e.editor={}),e.editor.runtime||(e.editor.runtime=t),t==="runner"&&typeof e.editor.livesync>"u"&&(e.editor.livesync=!0))},k0=(e,t=Lr,r)=>{let n={...Lr,...S0(t,r)};return HP(n),gB(n),w0(e,n).then(i=>{if(ly(i,n),i.destroy=()=>Ds(i),i.navigate=(s,a={})=>{let l=i,c=i.context&&i.context.routerOptions;if(c&&c.customRouterElement){let u=js(i,c.customRouterElement);u&&(l=u)}return l.call("router",s,l,a.state||{},{pushState:!0,...a})},i.onCreate&&i.onCreate(i,i.state,i.context,n),i.context?.analyze?.activate)try{i.context.analyze.activate(i.context)}catch(s){console.error("[analyze] activate error:",s)}return i}).catch(i=>{throw console.error("[smbls] create error:",i),i})},yB=(e,t=Lr,r)=>{let n=k0(e,t,r),o={...Lr,...S0(t,r)},i=o.key;return b1(n,i,{utils:Fs,...o}),n},bB=async(e,t=Lr,r)=>{let n={...Lr,...S0(t,r)};HP(n);let o=t.key;await y1(o,n);let i=await w0(e,n);return ly(i,n),i.destroy=()=>Ds(i),i.navigate=(s,a={})=>{let l=i,c=i.context&&i.context.routerOptions;if(c&&c.customRouterElement){let u=js(i,c.customRouterElement);u&&(l=u)}return l.call("router",s,l,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(i,i.state,i.context,n),i},xB=(e={},t=Lr,r)=>k0({deps:{isUndefined:Pe},...e},fe({domqlOptions:{onlyResolveExtends:!0}},t),r);Jc(Nc);
|