smbls 3.7.5 → 3.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.js +22 -20
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/src/createDomql.js +3 -0
- package/dist/cjs/src/fetchOnCreate.js +2 -1
- package/dist/cjs/src/init.js +18 -0
- package/dist/esm/package.json +1 -1
- package/dist/esm/src/createDomql.js +4 -1
- package/dist/esm/src/fetchOnCreate.js +2 -1
- package/dist/esm/src/init.js +20 -1
- package/dist/iife/index.js +22 -20
- package/package.json +19 -18
- package/src/createDomql.js +8 -1
- package/src/fetchOnCreate.js +2 -1
- package/src/init.js +25 -1
package/dist/browser/index.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
var
|
|
2
|
-
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},
|
|
3
|
-
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),
|
|
4
|
-
`;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(
|
|
5
|
-
`;for(let f of i)N(f)&&f!==null?o+=`${n} ${
|
|
1
|
+
var ld=Object.defineProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Mt=(t,e)=>{for(var r in e)ld(t,r,{get:e[r],enumerable:!0})};var fd,ud,D,L,Nr=G(()=>{fd=globalThis,ud=globalThis,D=globalThis,L=D.document});var Ee,Zo,Bt,Dr=G(()=>{Nr();Ee=t=>(typeof Node=="object"?t instanceof D.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,Zo=t=>(typeof HTMLElement=="object"?t instanceof D.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Bt=t=>typeof D<"u"&&(D.Node&&t instanceof D.Node||D.Window&&t instanceof D.Window||t===D||t===document)});var g,y,ct,b,Pn,Cc,x,kc,N,Ot,K,ts,At,Fr,St=G(()=>{Dr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,y=t=>typeof t=="string",ct=t=>typeof t=="number",b=t=>typeof t=="function",Pn=t=>t===!0||t===!1,Cc=t=>t===null,x=t=>Array.isArray(t),kc=t=>t instanceof Date,N=t=>t===null?!1:typeof t=="object",Ot=t=>t!==void 0,K=t=>t===void 0,ts={boolean:Pn,array:x,object:g,string:y,date:kc,number:ct,null:Cc,function:b,objectLike:N,node:Ee,htmlElement:Zo,defined:Ot},At=t=>(...e)=>e.some(r=>ts[r](t)),Fr=t=>(...e)=>!e.some(r=>ts[r](t))});var pd,dd,es,hd,Nn,rs,md,gd,ns,yd,bd,Sd,xd,_d,wd,vd,Dn,$r,qe=G(()=>{ae();St();pd=(t,e)=>e.every(r=>t.includes(r)),dd=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},es=(t,e)=>{if(y(e)&&(e=parseInt(e)),ct(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},hd=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},Nn=(...t)=>[].concat(...t),rs=(t,e=[])=>t.reduce((r,n)=>U(r,z(n,{exclude:e}),e),{}),md=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},gd=(t,e)=>{if(!x(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},ns=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},yd=(t,e)=>t.filter(r=>r!==e),bd=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},Sd=(t,e,r)=>{let n=[...t],o=n.indexOf(e),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},xd=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},_d=(t,e)=>t.filter(r=>!e.includes(r)),wd=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},vd=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Dn=t=>x(t)?[...new Set(t)]:t,$r=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function kd(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Cd[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d)try{let h=os(i,p);return String(d.call(a,h??p)??"")}catch{return""}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let S=0;S<d;S++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=os(h,p);return String(m??"")}else{let d=os(i,p);return String(d??"")}})}var ss,Ed,Cd,os,ce,Od,Ad,Td,Rd,Id,Pd,Nd,Dd,Lr=G(()=>{ss=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Ed=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Cd={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},os=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);ce=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Od=(t,e)=>{let r=t.split(`
|
|
2
|
+
`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Ad=/\\([0-7]{1,3})/g,Td=t=>t.replace(Ad,(e,r)=>String.fromCharCode(parseInt(r,8))),Rd=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Id=t=>t.replace(/\/\/\/\/\/n/g,`
|
|
3
|
+
`).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Pd=/[^a-zA-Z0-9\s]/g,Nd=t=>t.replace(Pd,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Dd=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var He,is,Fd,Tt,We,Fn,as,cs,Ge=G(()=>{He=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"]),is=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Fd=["ref","parent","__element","__depends","__ref","__children","root"],Tt=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"]),We=new Set(["update","__element"]),Fn=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"]),as=new Set(["node","context","extends","__element","__ref",...Fn,...Tt,...We]),cs=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var Oc,Ce,O,$d,Y,U,Ld,z,ls,Md,fs,Bd,Ud,$n,le,us,Vd,jd,Ac,zd,qd,fe,Mr,it,Tc,Hd,ps,ds,Rc,hs,ms,gs,ys,bs,Wd,Gd,ae=G(()=>{Nr();St();qe();Lr();Dr();Ge();Oc=process.env.NODE_ENV,Ce=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,O=(t,e,r,n)=>{if(b(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},$d=(t,e,r)=>{for(let n in e)t[n]=O(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Ce(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},U=(t,e,r=as)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||Ce(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];N(s)&&N(i)?U(s,i,r):s===void 0&&(t[o]=i)}return t},Ld=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Ce(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},z=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||D||globalThis;if(!N(t)||Bt(t))return t;if(i.has(t))return i.get(t);let l=x(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||Ce(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Bt(d)){l[p]=d;continue}if(a&&p==="extends"&&x(d)){l[p]=rs(d,r);continue}if(b(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}N(d)?l[p]=z(d,{...e,visited:i}):l[p]=d}}return l},ls=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(b(n))e[r]=n.toString();else if(g(n))e[r]={},ls(n,e[r]);else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},ls(i,o[s])):b(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Md=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),fs=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
|
|
4
|
+
`;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(Md.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,x(i)){o+=`[
|
|
5
|
+
`;for(let f of i)N(f)&&f!==null?o+=`${n} ${fs(f,e+2)},
|
|
6
6
|
`:y(f)?o+=`${n} '${f}',
|
|
7
7
|
`:o+=`${n} ${f},
|
|
8
|
-
`;o+=`${n} ]`}else N(i)?o+=
|
|
8
|
+
`;o+=`${n} ]`}else N(i)?o+=fs(i,e+1):y(i)?o+=ss(i,[`
|
|
9
9
|
`,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
|
|
10
|
-
`}return o+=`${n}}`,o},Md=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Bd=/^["[{]/,fs=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!Md.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Bd.test(e)&&!o)},le=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if(fs(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(S(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(y(i))if(fs(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(le(i)):o.push(i)}}else g(n)?e[r]=le(n,e[r]):e[r]=n}return e},Ud=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Vd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Oc=t=>{for(let e in t)return!1;return!0},jd=t=>g(t)&&Oc(t),zd=()=>Object.create(null),fe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Ce(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Ce(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||Bt(t)||Bt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Ce(a))continue;let c=t[a],f=e[a];Bt(f)?t[a]=f:N(c)&&N(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},Ac=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Ac(t[i],e[i],r))return!1}return!0},qd=new Set(["node","__ref"]),us=(t,e,r=qd)=>{if(t===e)return!0;if(!N(t)||!N(e)||Bt(t)||Bt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Bt(f)||Bt(l)){if(f!==l)return!1}else if(N(f)&&N(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},ps=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(S(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Tc=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Tc(t[r]));return e},ds=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},hs=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},ms=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},gs=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},ys=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(kc==="test"||kc==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Hd=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},Wd=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var bs,xs,Ss,$n=G(()=>{ae();bs=(function(){let t=0;function e(){return t++,t}return e})(),xs=bs,Ss=(t,e,r)=>(O(r,t)||r||t.key||bs()).toString()});var Qt,Gd,Ke,Rc,Kd,Yd,Xd,Jt,Qd,Br,_s=G(()=>{Qt=process.env.NODE_ENV,Gd=Qt,Ke=(t=Qt)=>t==="production",Rc=(t=Qt)=>t==="testing"||t==="test",Kd=Rc,Yd=(t=Qt)=>t==="staging",Xd=(t=Qt)=>t==="local",Jt=(t=Qt)=>t==="development"||t==="dev"||t==="local",Qd=(t,e=Qt)=>e[t],Br=(t=Qt)=>!Ke(t)});function Jd(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function nh(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Zd,th,eh,rh,Ye,Xe,Ln,Mn=G(()=>{Zd=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},th=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},eh=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,rh=t=>eh.test(t),Ye=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Xe=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Ln=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var Ur,Ic=G(()=>{xt();Ur=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var oh,sh,Pc=G(()=>{oh=(t,...e)=>{t&&e.map(r=>console.log(r))},sh=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function fh(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function uh(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var ih,ah,ch,lh,Nc=G(()=>{xt();Nr();ih=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),ah=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},ch=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},lh=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Bn,Qe,ke,ws=G(()=>{Bn={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"])},Qe=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"]),ke=t=>Bn.body.has(t)});var vs,Dc,Un,ks,Rt,Os,Fc,As,ph,Ts,$c,Lc,Rs,Mc,Vn,dh,ue,Bc,Es,Is,hh,Cs,mh,gh,Uc,Vc,jc,zc,qc,Hc,Ps,jn=G(()=>{qe();Ns();ae();xt();vs=process.env.NODE_ENV,Dc=t=>t.sourcemap!==!1&&vs!=="production",Un=t=>{if(t.includes("+"))return t.split("+").filter(It);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!It(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},ks=(t,e,r)=>{let n=[],o=Un(r);o&&(n=[...o]);let s=t.extends;return s&&(n=S(s)?[...n,...s]:[...n,s]),n},Rt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},Os=(t,e)=>{if(!t)return e;let{extends:r}=e,n=S(r)?r:[r],o=S(t)?t:[t];return{...e,extends:Nn(o,n)}},Fc=()=>Math.random().toString(36).substring(2),As={},ph={},Ts=t=>As[t.__hash],$c=(t,e)=>{let r=Fc();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(As[r]=e),e},Lc=(t,e)=>t.__hash?e.concat(Ts(t)):$c(t,e),Rs=(t,e,r,n=new Set,o,s)=>{for(let i of t)S(i)?Rs(i,e,r,n,o,s):Vn(i,e,r,n,o,void 0,s);return e},Mc=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&Vn(a,e,r,n,o,s,i),e},Vn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(S(t))return Rs(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=Is(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Mc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},dh=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),ue=(t,e,r,n,o)=>{e=z(e);for(let s in e){if(dh.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!S(a)?(r[s]=r[s]||{},Bc(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];It(s)?t[s]=ue(i,a,c,n,f):ue(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(S(i)&&S(a))t[s]=i.concat(a);else if(S(i)&&g(a)){let c=ue({},i);t[s]=ue(c,a)}}}}return t},Bc=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];g(s)&&!S(s)?(t[o]=t[o]||{},Bc(t[o],s,r,n)):t[o]=r}}},Es=(t,e,r)=>t.reduce((n,o,s)=>{let i=z(o),a=r?r[s]:void 0;return ue(n,i,e,a)},{}),Is=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(y(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(vs==="test"||vs==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},hh=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Cs=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Ts(t)||[];let s=Vn(t,[],e,new Set,r,void 0,n);return r?s:Lc(t,s)},mh=(t,e)=>{if(!t)return e;let r=S(t)?t:[t];return Nn(r,e)},gh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(It(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Uc=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Rt([c,...a],t):Rt(t.extends,t)}else Rt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Rt(i,t):Rt(t.extends,t)}else Rt(t.extends,t);return Vc(t,e,r),jc(t,e,r),zc(t,e,r),t.component&&Rt(O(t.component,t),t),o.defaultExtends&&Rt(o.defaultExtends,t),Dn(n.__extends)},Vc=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Rt(e.props?.childProps.extends,t),o.__extends},jc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Rt(i,t),o.__extends},zc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Rt(s,t),o.__extends},qc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Dc(r),c=a?[...o.__extends]:null,f=Dn(o.__extends.map((l,u)=>Is(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&y(m)&&l.set(h,m)}let u=[],p=Cs(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Cs(f,s);o.__extendsStack=l}return o.__extendsStack},Hc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Dc(r)){let s={},i=n.__extendsNames||[],a=Es(o,s,i),c={};ue(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Es(o);ue(t,s)}return t},Ps=(t,e,r={})=>(Uc(t,e,r),qc(t,e,r),Hc(t,e,r),t)});function yh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function bh(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Ds(t,e,r){let{context:n}=e||{},[o]=Un(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var It,Ns=G(()=>{jn();xt();It=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Wc(t,e){let{props:r,on:n}=e,o=ce(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:n[o]=i}var Gc=G(()=>{Lr();xt()});function Xc(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(b(o)||o!=null&&Ye(this.context))){let h=ce(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||b(a),l=g(c)||b(c);if(f||l)continue;let u=n.charAt(0);if(Yc.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ls.test(n)||Kc.test(n)||Sh(o),d=He.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Vr(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=b(o)||o!=null&&Ye(this.context);if(s&&i){Wc(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Yc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=Ls.test(n)||Kc.test(n),d=He.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function zn(t=this){let e=[];return Xc.call(this,t,{cachedKeys:e}),Vr.call(this,t,{cachedKeys:e}),t}function Bs(t={}){return t.on||(t.on={}),t.props||(t.props={}),zn.call(this,t)}function Qc(t,e){this.__element.update({props:t},e)}function Vs(t){let e={update:Qc.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ls,Kc,Yc,xh,Sh,Ms,Fs,_h,Us,js,zs,Jc,$s,qn,qs,Hs=G(()=>{Ge();Gc();ae();xt();Lr();Mn();Ls=/^[A-Z]/,Kc=/^\d+$/,Yc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),xh=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Sh=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(xh.has(e)||Ls.test(e))return!0;return!1},Ms=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};Fs=t=>At(t)("string","number")?{inheritedString:t}:t,_h=(t,e)=>!t||!e.length?!1:e.includes(t),Us=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Fs(i);n.unshift(c)}if(s){let c=Fs(s);n.unshift(c)}return n};js=t=>{let e=new Set;return t.filter(r=>!r||We.has(r)||e.has(r)?!1:(e.add(r),!0))},zs=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(We.has(o))return n;for(;b(o);)o=O(o,e);return U(n,z(o,{exclude:We}))},{}),Vs(e),e.props),Jc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Us(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),S(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=js(o),n.__propsStack},$s=(t,e)=>{let{__ref:r}=t,n=Jc(t,e);n.length?zs(n,t):(r.__propsStack=[],t.props={})},qn=function(t,e,r){let{__ref:n}=t;if(n.__if)$s(t,e);else try{$s(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Vs(t),t},qs=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Us(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=js(s),n.__propsStack.length&&zs(n.__propsStack,e),e}});var Zc,tl,el,rl,nl,Ws,ol,sl,il,Gs,al=G(()=>{jn();$n();Dr();Hs();ws();xt();Zc=process.env.NODE_ENV,tl=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=Bn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},el=(t,e,r)=>{if(t===void 0)return(Zc==="test"||Zc==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?tl(t,e,r):b(t)?{props:t}:t},rl=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},nl=(t,e,r,n,o)=>{if(!e)return o;if(Ee(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Ws=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},ol=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},sl=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),il=(t,e,r)=>{let n=rl(t,e);return t.__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=ks(t,e,r),n.path=ol(t,e,r),n},Gs=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:el(t,e,r);if(!i)return;let a=nl(i,e,r,n,o),c=Ss(i,a,r);il(i,a,c);let f=Ms(i,a,c),l=sl(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Ks,Je,Ze,tr,er,Ys,rr,Hn,Xs,Qs,Js,cl=G(()=>{qe();Ge();ae();xt();Ks=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Je=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ze=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},tr=(t,e,r={})=>{let n=y(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},er=(t,e,r={})=>{let o=t.__ref.__state;if(!rr(t))return;let s=Je(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ze(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return tr(o,i,r)},Ys=(t,e)=>{let r=t.__ref,n=er(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return z(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},rr=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},Hn=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Xs=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},Qs=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=z(n,Tt),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?$r(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Js=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){U(t,e,Tt);return}(o?Mr:it)(t,e,Tt)}});var Wn,ll=G(()=>{Wn=(t,e)=>{let{__ref:r}=t;t.scope||(t.scope=e.scope||r.root?.scope||{})}});var fl,jr,W,Zs,vt,ti=G(()=>{xt();Mn();fl=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},jr=(t,e,r,n,o)=>{if(t=Xe(t,e),!!b(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},W=(t,e,r)=>{if(!e)throw new Error("Element is required");Ln(t,e,r);let n=fl(t,e);if(n){let{state:o,context:s}=e;return jr(n,e,o,s,r)}},Zs=(t,e,r,n,o,s)=>{if(t=Xe(t,r),!!b(t))try{let i=t.call(r,e,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}},vt=(t,e,r,n)=>{Ln(t,r,e,n);let o=fl(t,r);if(o){let{state:s,context:i}=r;return Zs(o,e,r,s,i,n)}}});var wh,ut,ei=G(()=>{wh={},ut={}});var pl={};Mt(pl,{setup:()=>vh,supabaseAdapter:()=>ul});var vh,ri,Eh,ul,dl=G(()=>{"use strict";vh=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient);let i=n(s,e,o);return!i||!i.auth?null:ul(i)},ri=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},Eh=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},ul=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=ri(s,n),s=Eh(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=ri(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=ri(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var ml={};Mt(ml,{restAdapter:()=>hl,setup:()=>kh});var Ch,pe,kh,hl,gl=G(()=>{"use strict";Ch=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},pe=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},kh=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return hl(t,e,r,n)},hl=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await pe(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pe(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pe(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:x,headers:_,baseUrl:w})=>{let E={...u};return p&&(E.select=p),d&&(E.limit=d),h&&(E.offset=h),x&&(E.single=!0),m&&(typeof m=="string"?E.order=m:Array.isArray(m)?E.order=m.map(R=>`${R.by}:${R.asc===!1?"desc":"asc"}`).join(","):m.by&&(E.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),pe(Ch(w||t,l||"",E),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>pe(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>pe(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let x=p?.id||u?.id,_=x?`${l}/${x}`:l;return pe(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return pe(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var bl={};Mt(bl,{localAdapter:()=>yl,setup:()=>Ah});var ni,Oh,Ah,yl,xl=G(()=>{"use strict";ni=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Oh=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},Ah=async({data:t,...e})=>yl(t,e),yl=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>ni(m,u));return Oh(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let x={id:m.id||++f,...m};return p.push(x),x});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(ni(d[m],p)){let x={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],x)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)ni(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,x)=>{u&&u!=="*"&&u!==x.event||p(h,m,x)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var Yr={};Mt(Yr,{createAdapter:()=>Ih,default:()=>Vh,executeFetch:()=>Kr,fetchPlugin:()=>li,initAdapterAuth:()=>Yn,parseDuration:()=>zr,queryClient:()=>Uh,registerAdapter:()=>Rh,resolveDb:()=>El});var Th,vl,Rh,Ih,El,zr,St,Cl,Gn,Ph,Gr,qr,Hr,oi,ai,Kn,Nh,Sl,si,kl,Ol,nr,_l,Dh,wl,Fh,Al,Tl,Yn,ci,Pt,Wr,Oe,qt,de,$h,Lh,Mh,ii,Bh,Kr,Uh,li,Vh,Ae=G(()=>{"use strict";v();Th=["select","rpc","insert","update","delete","subscribe"],vl={supabase:()=>Promise.resolve().then(()=>(dl(),pl)),rest:()=>Promise.resolve().then(()=>(gl(),ml)),local:()=>Promise.resolve().then(()=>(xl(),bl))},Rh=(t,e)=>{vl[t]=e},Ih=t=>{let e={};for(let r of Th)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},El=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=vl[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},zr=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},St=new Map,Cl=new Map,Gn=new Map,Ph=t=>{if(t.cache?.key)return t.cache.key;let e=Fh(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Gr=t=>St.get(t)||null,qr=(t,e,r)=>{let n=St.get(t),o={data:e,error:r,time:Date.now(),stale:!1};St.set(t,o);let s=Cl.get(t);if(s)for(let i of s)b(i)&&i(o);return o},Hr=t=>{if(t){let e=St.get(t);e&&(e.stale=!0);return}for(let[,e]of St)e.stale=!0},oi=t=>{if(t){St.delete(t);return}St.clear()},ai=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:y(t)?{staleTime:zr(t),gcTime:3e5}:{staleTime:zr(t.stale||t.staleTime)||6e4,gcTime:zr(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Kn=null,Nh=()=>{Kn||(Kn=setInterval(()=>{let t=Date.now();for(let[e,r]of St){let n=Cl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&St.delete(e)}},3e4),Kn.unref&&Kn.unref())};Nh();Sl=3,si=t=>Math.min(1e3*2**t,3e4),kl=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Sl,delay:si}:typeof e=="number"?{count:e,delay:si}:{count:e.count??Sl,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:si}},Ol=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=b(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=b(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},nr={focus:new Set,online:new Set},_l=!1,Dh=()=>{if(_l||typeof window>"u")return;_l=!0;let t=()=>{for(let r of nr.focus)r()},e=()=>{for(let r of nr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},wl=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(y(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Fh=t=>(!t||b(t),t),Al=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Tl=(t,e,r)=>{let n;if(!t)n=void 0;else if(b(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=b(s)?s(e,e.state):s}}return n},Yn=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},ci=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await Yn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Yn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=El(t);let r=await t.__resolving;return delete t.__resolving,r?(t.__resolved=r,e.fetch=r,t.auth!==!1&&await Yn(r,e),r):null},Pt=(t,e,...r)=>{let n=b(t[e])?t[e]:t.props&&b(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Wr=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Oe=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},de=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await ci(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:x,limit:_,offset:w,order:E,headers:R,baseUrl:T,page:A,cursor:k,getNextPageParam:$,getPreviousPageParam:P,infinite:D,placeholderData:j,initialData:Z,select:tt,keepPreviousData:pt}=t,_t;if(f&&b(e.getQuery)){let Q=e.getQuery(s.name||"paths");Q&&(_t=Q.select||Q.length&&Q.join(",")||void 0)}let Lt=Tl(l,e,r),Pr=ai(u),Ko=kl(t),st=Pr?u?.key||`${a}:${c}:${JSON.stringify(Lt||"")}${D?":infinite":""}${A?":p"+JSON.stringify(A):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let Q=b(Z)?Z():Z;qr(st,Q,null)}if((c==="select"||c==="rpc")&&st&&Pr){let Q=Gr(st);if(Q&&!Q.error){let H=Date.now()-Q.time,ft=Q.stale||H>(Pr.staleTime||0),B=Q.data;if(tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),Oe(e,B,x),!ft){qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(j!==void 0){let H=b(j)?j(e,e.state):j;H!==void 0&&Oe(e,H,x)}}if(st&&Gn.has(st)&&!n.force){let Q=Gn.get(st);try{let H=await Q;if(H?.data!==void 0){let ft=H.data;tt&&(ft=tt(ft,e,e.state)),p&&(ft=p(ft,e,e.state)),Oe(e,ft,x),Pt(e,"onFetchComplete",ft)}}catch{}return}let Yo=!Gr(st)?.data;qt(e,{isFetching:!0,isLoading:Yo,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");let vc=Ol(async()=>{if(h!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let wt={message:"Not authenticated"};return qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:wt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",wt),{data:null,error:wt}}}let Q=s[c];if(!b(Q))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:_t,params:Lt,single:d,limit:_,offset:w,order:E,headers:R,baseUrl:T},ft=Al(e,r);if(ft&&(H.headers={...H.headers,"Accept-Language":ft}),A!==void 0){if(g(A))A.offset!==void 0&&(H.offset=A.offset),A.limit!==void 0&&(H.limit=A.limit),A.cursor!==void 0&&(H.params={...H.params,cursor:A.cursor});else if(typeof A=="number"){let B=t.pageSize||_||20;H.offset=(A-1)*B,H.limit=B}}if(k!==void 0&&(H.params={...H.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let B;if(m===!0||t.on==="submit")B=Wr(e);else if(S(m)){let wt=Wr(e);B={};for(let Qo of m)B[Qo]=wt[Qo]}else e.state?.parse?B=e.state.parse():g(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),H.data=B}if(c==="rpc"){let B=Lt;if(t.on==="submit"){let wt=Wr(e);B=t.transformParams?t.transformParams(wt,e,e.state):wt}H.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Lt,on:t.subscribeOn},(wt,Qo,ZS)=>{Oe(e,wt,x),Pt(e,"onFetchComplete",wt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Q(H)},Ko);st&&Gn.set(st,vc);try{let Q=await vc;if(Q?.subscribed)return;let{data:H,error:ft}=Q||{};if(ft){st&&qr(st,null,ft),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",ft);return}if(H!==void 0){if((c==="select"||c==="rpc")&&st){let wt=qr(st,H,null);wt.gcTime=Pr?.gcTime||3e5}let B=H;D&&S(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),B=i.__pages.flat(),$&&(i.__nextPageParam=$(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),(!pt||B!==void 0)&&Oe(e,B,x),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B)}}catch(Q){qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",Q)}finally{st&&Gn.delete(st)}},$h=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||de;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Lh=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Dh();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:zr(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&de(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Ph(t),a=Gr(i),c=ai(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&de(t,e,r,{force:!0})};nr.focus.add(s),n.__fetchCleanups.push(()=>nr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>de(t,e,r,{force:!0});nr.online.add(s),n.__fetchCleanups.push(()=>nr.online.delete(s))}},Mh=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=b(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Oe(t,i,o),s},ii=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Oe(t,n,e.as),delete r.__optimisticSnapshot)},Bh=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await ci(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:x,onMutate:_,onSuccess:w,onError:E,onSettled:R}=t,T;if(c===!0||u==="submit")T=Wr(e);else if(S(c)){let k=Wr(e);T={};for(let $ of c)T[$]=k[$]}else e.state?.parse?T=e.state.parse():g(e.state)&&(T={...e.state});f&&(T=f(T,e,e.state)),b(_)&&_(T,e,e.state);let A=x?Mh(e,t,T):null;s.__fetching=!0,qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){A!==void 0&&ii(e,t),Pt(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!b(k))return;let $={from:a,data:T,headers:d,baseUrl:h};t.params&&($.params=Tl(t.params,e,r));let P=Al(e,r);P&&($.headers={...$.headers,"Accept-Language":P});let D=kl(t),j=await Ol(()=>k($),D),{data:Z,error:tt}=j||{};if(tt){A!==void 0&&ii(e,t),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",tt),b(E)&&E(tt,T,e),b(R)&&R(null,tt,T,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",Z),b(w)&&w(Z,T,e),b(R)&&R(Z,null,T,e),m){let pt=S(m)?m:[m];for(let _t of pt)if(_t===!0||_t==="*")for(let[Lt]of St)Lt.startsWith(a+":")&&Hr(Lt);else Hr(_t)}}catch(k){A!==void 0&&ii(e,t),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",k),b(E)&&E(k,T,e),b(R)&&R(null,k,T,e)}finally{s.__fetching=!1}},Kr=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=S(s)?s.map(c=>wl(O(c,e),e)).filter(Boolean):[wl(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Bh:de;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{$h({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Lh(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)de(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"previous",force:!0})}},Uh={invalidateQueries:t=>{if(!t){Hr();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&Hr(e);else if(S(t)){let e=t.join(":");for(let[r]of St)r.includes(e)&&Hr(r)}},removeQueries:t=>{if(!t){oi();return}if(y(t))for(let[e]of St)(e.startsWith(t)||e.includes(t))&&oi(e)},getQueryData:t=>Gr(t)?.data??void 0,setQueryData:(t,e)=>{let r=Gr(t),n=b(e)?e(r?.data):e;qr(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await ci(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!b(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=qr(o,i.data,null);a.gcTime=ai(t.cache)?.gcTime||3e5}return i},getCache:()=>St,clear:()=>oi()},li={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&Kr(e,t,t.state,t.context)}},Vh=Kr});function ui(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function pi(t){let e=this,{parent:r}=e;if(b(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function di(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(b(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function hi(t,e=[]){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===t)e.push(a);else if(b(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Xn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Xn.call(o,n):e.node.style[r]=n}return e}}function mi(t){let e=this;if(W("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():Ke()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=rs(e.parent.__ref.__children,e.key)),W("remove",e,t)}function jh(t){return this[t]}function gi(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function yi(t){return t?this.__ref&&this.__ref[t]:this.__ref}function zh(){return this.getRef("__children").map(e=>this[e])}function bi(){return this.getRef().path}function xi(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=b(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function Si(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function _i(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function wi(t){let e=this.getRoot()?.context;return t?e[t]:e}function vi(t){let e=this.context;return t?e[t]:e}function Qn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||He.has(r)&&!ss.has(r)||e.push(r);return e}function Jn(t=[]){let e=this,r={},n=Qn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=b(c&&c.parse)?c.parse():c;r[a]=b(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Xr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Jn.call(r,t),o=t.length?new Set(t):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=>N(a)?Xr.call(a,t,e):a):N(i)&&(n[s]=Xr.call(i,t,e))}return n}function Zn(...t){if(he!=="test"&&he!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
|
|
11
|
-
|
|
12
|
-
${Rl(i,e+1)}
|
|
10
|
+
`}return o+=`${n}}`,o},Bd=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Ud=/^["[{]/,$n=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!Bd.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Ud.test(e)&&!o)},le=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(y(n))if($n(n))try{e[r]=D.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(y(i))if($n(i))try{o.push(D.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(le(i)):o.push(i)}}else g(n)?e[r]=le(n,e[r]):e[r]=n}return e},us=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];y(o)&&$n(o)?r.push([n,o]):e[n]=o}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
|
|
11
|
+
`);e[n]=D.eval(`(function(__gs__) { ${s}
|
|
12
|
+
return (${o}); })`)(e)}catch{try{e[n]=D.eval(`(${o})`)}catch{e[n]=o}}return e},Vd=(t,e={verbose:!0})=>{try{return t?D.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},jd=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Ac=t=>{for(let e in t)return!1;return!0},zd=t=>g(t)&&Ac(t),qd=()=>Object.create(null),fe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Ce(s)||e[s]!==void 0&&(t[s]=e[s]);return t},Mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Ce(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!N(t)||!N(e)||Bt(t)||Bt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Ce(a))continue;let c=t[a],f=e[a];Bt(f)?t[a]=f:N(c)&&N(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},Tc=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Tc(t[i],e[i],r))return!1}return!0},Hd=new Set(["node","__ref"]),ps=(t,e,r=Hd)=>{if(t===e)return!0;if(!N(t)||!N(e)||Bt(t)||Bt(e))return t===e;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 c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Bt(f)||Bt(l)){if(f!==l)return!1}else if(N(f)&&N(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},ds=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(x(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Rc=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=Rc(t[r]));return e},hs=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},ms=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},gs=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},ys=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},bs=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(Oc==="test"||Oc==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Wd=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.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(t)},Gd=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Ss,xs,_s,Ln=G(()=>{ae();Ss=(function(){let t=0;function e(){return t++,t}return e})(),xs=Ss,_s=(t,e,r)=>(O(r,t)||r||t.key||Ss()).toString()});var Qt,Kd,Ke,Ic,Yd,Xd,Qd,Jt,Jd,Br,ws=G(()=>{Qt=process.env.NODE_ENV,Kd=Qt,Ke=(t=Qt)=>t==="production",Ic=(t=Qt)=>t==="testing"||t==="test",Yd=Ic,Xd=(t=Qt)=>t==="staging",Qd=(t=Qt)=>t==="local",Jt=(t=Qt)=>t==="development"||t==="dev"||t==="local",Jd=(t,e=Qt)=>e[t],Br=(t=Qt)=>!Ke(t)});function Zd(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function oh(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var th,eh,rh,nh,Ye,Xe,Mn,Bn=G(()=>{th=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},eh=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},rh=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,nh=t=>rh.test(t),Ye=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Xe=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},Mn=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var Ur,Pc=G(()=>{St();Ur=(t,e)=>{let{__ref:r}=t;b(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var sh,ih,Nc=G(()=>{sh=(t,...e)=>{t&&e.map(r=>console.log(r))},ih=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function uh(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function ph(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var ah,ch,lh,fh,Dc=G(()=>{St();Nr();ah=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),ch=(t,e,r=365)=>{if(K(L)||K(L.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;L.cookie=`${t}=${e};${o};path=/`},lh=t=>{if(K(L)||K(L.cookie))return;let e=`${t}=`,n=decodeURIComponent(L.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},fh=t=>{K(L)||K(L.cookie)||(L.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Un,Qe,ke,vs=G(()=>{Un={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"])},Qe=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"]),ke=t=>Un.body.has(t)});var Es,Fc,Vn,Os,Rt,As,$c,Ts,dh,Rs,Lc,Mc,Is,Bc,jn,hh,ue,Uc,Cs,Ps,mh,ks,gh,yh,Vc,jc,zc,qc,Hc,Wc,Ns,zn=G(()=>{qe();Ds();ae();St();Es=process.env.NODE_ENV,Fc=t=>t.sourcemap!==!1&&Es!=="production",Vn=t=>{if(t.includes("+"))return t.split("+").filter(It);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!It(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Os=(t,e,r)=>{let n=[],o=Vn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=x(s)?[...n,...s]:[...n,s]),n},Rt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},As=(t,e)=>{if(!t)return e;let{extends:r}=e,n=x(r)?r:[r],o=x(t)?t:[t];return{...e,extends:Nn(o,n)}},$c=()=>Math.random().toString(36).substring(2),Ts={},dh={},Rs=t=>Ts[t.__hash],Lc=(t,e)=>{let r=$c();return y(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Ts[r]=e),e},Mc=(t,e)=>t.__hash?e.concat(Rs(t)):Lc(t,e),Is=(t,e,r,n=new Set,o,s)=>{for(let i of t)x(i)?Is(i,e,r,n,o,s):jn(i,e,r,n,o,void 0,s);return e},Bc=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&jn(a,e,r,n,o,s,i),e},jn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(x(t))return Is(t,e,r,n,o,i);let a=s;return y(t)?(a=t,t=Ps(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Bc(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},hh=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),ue=(t,e,r,n,o)=>{e=z(e);for(let s in e){if(hh.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!x(a)?(r[s]=r[s]||{},Uc(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];It(s)?t[s]=ue(i,a,c,n,f):ue(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(x(i)&&x(a))t[s]=i.concat(a);else if(x(i)&&g(a)){let c=ue({},i);t[s]=ue(c,a)}}}}return t},Uc=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];g(s)&&!x(s)?(t[o]=t[o]||{},Uc(t[o],s,r,n)):t[o]=r}}},Cs=(t,e,r)=>t.reduce((n,o,s)=>{let i=z(o),a=r?r[s]:void 0;return ue(n,i,e,a)},{}),Ps=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(y(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(Es==="test"||Es==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},mh=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),ks=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Rs(t)||[];let s=jn(t,[],e,new Set,r,void 0,n);return r?s:Mc(t,s)},gh=(t,e)=>{if(!t)return e;let r=x(t)?t:[t];return Nn(r,e)},yh=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(It(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Vc=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Rt([c,...a],t):Rt(t.extends,t)}else Rt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Rt(i,t):Rt(t.extends,t)}else Rt(t.extends,t);return jc(t,e,r),zc(t,e,r),qc(t,e,r),t.component&&Rt(O(t.component,t),t),o.defaultExtends&&Rt(o.defaultExtends,t),Dn(n.__extends)},jc=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Rt(e.props?.childProps.extends,t),o.__extends},zc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Rt(i,t),o.__extends},qc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Rt(s,t),o.__extends},Hc=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Fc(r),c=a?[...o.__extends]:null,f=Dn(o.__extends.map((l,u)=>Ps(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&y(m)&&l.set(h,m)}let u=[],p=ks(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=ks(f,s);o.__extendsStack=l}return o.__extendsStack},Wc=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Fc(r)){let s={},i=n.__extendsNames||[],a=Cs(o,s,i),c={};ue(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Cs(o);ue(t,s)}return t},Ns=(t,e,r={})=>(Vc(t,e,r),Hc(t,e,r),Wc(t,e,r),t)});function bh(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Sh(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Fs(t,e,r){let{context:n}=e||{},[o]=Vn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var It,Ds=G(()=>{zn();St();It=t=>{if(!y(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Gc(t,e){let{props:r,on:n}=e,o=ce(t.split("on")[1]),s=n[o],i=r[t];b(s)?n[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:n[o]=i}var Kc=G(()=>{Lr();St()});function Qc(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(b(o)||o!=null&&Ye(this.context))){let h=ce(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||b(a),l=g(c)||b(c);if(f||l)continue;let u=n.charAt(0);if(Xc.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ms.test(n)||Yc.test(n)||_h(o),d=He.has(n);!p&&!d&&(t.props[n]=o,delete t[n],r.push(n))}return t}function Vr(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=b(o)||o!=null&&Ye(this.context);if(s&&i){Gc(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(Xc.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||b(c),u=g(f)||b(f),p=Ms.test(n)||Yc.test(n),d=He.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function qn(t=this){let e=[];return Qc.call(this,t,{cachedKeys:e}),Vr.call(this,t,{cachedKeys:e}),t}function Us(t={}){return t.on||(t.on={}),t.props||(t.props={}),qn.call(this,t)}function Jc(t,e){this.__element.update({props:t},e)}function js(t){let e={update:Jc.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ms,Yc,Xc,xh,_h,Bs,$s,wh,Vs,zs,qs,Zc,Ls,Hn,Hs,Ws=G(()=>{Ge();Kc();ae();St();Lr();Bn();Ms=/^[A-Z]/,Yc=/^\d+$/,Xc=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),xh=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),_h=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(xh.has(e)||Ms.test(e))return!0;return!1},Bs=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return N(n)?{...n}:(o.__propsStack.push(n),{})};$s=t=>At(t)("string","number")?{inheritedString:t}:t,wh=(t,e)=>!t||!e.length?!1:e.includes(t),Vs=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=$s(i);n.unshift(c)}if(s){let c=$s(s);n.unshift(c)}return n};zs=t=>{let e=new Set;return t.filter(r=>!r||We.has(r)||e.has(r)?!1:(e.add(r),!0))},qs=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(We.has(o))return n;for(;b(o);)o=O(o,e);return U(n,z(o,{exclude:We}))},{}),js(e),e.props),Zc=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Vs(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),x(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=zs(o),n.__propsStack},Ls=(t,e)=>{let{__ref:r}=t,n=Zc(t,e);n.length?qs(n,t):(r.__propsStack=[],t.props={})},Hn=function(t,e,r){let{__ref:n}=t;if(n.__if)Ls(t,e);else try{Ls(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return js(t),t},Hs=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Vs(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=zs(s),n.__propsStack.length&&qs(n.__propsStack,e),e}});var tl,el,rl,nl,ol,Gs,sl,il,al,Ks,cl=G(()=>{zn();Ln();Dr();Ws();vs();St();tl=process.env.NODE_ENV,el=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=Un.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},rl=(t,e,r)=>{if(t===void 0)return(tl==="test"||tl==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?el(t,e,r):b(t)?{props:t}:t},nl=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ol=(t,e,r,n,o)=>{if(!e)return o;if(Ee(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Gs=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},sl=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},il=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),al=(t,e,r)=>{let n=nl(t,e);return t.__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=Os(t,e,r),n.path=sl(t,e,r),n},Ks=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:rl(t,e,r);if(!i)return;let a=ol(i,e,r,n,o),c=_s(i,a,r);al(i,a,c);let f=Bs(i,a,c),l=il(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var Ys,Je,Ze,tr,er,Xs,rr,Wn,Qs,Js,Zs,ll=G(()=>{qe();Ge();ae();St();Ys=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Je=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ze=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},tr=(t,e,r={})=>{let n=y(t)?t.split("/"):[t],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 c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},er=(t,e,r={})=>{let o=t.__ref.__state;if(!rr(t))return;let s=Je(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ze(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return tr(o,i,r)},Xs=(t,e)=>{let r=t.__ref,n=er(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return z(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},rr=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},Wn=function(t){return N(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Qs=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},Js=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=z(n,Tt),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?$r(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Zs=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){U(t,e,Tt);return}(o?Mr:it)(t,e,Tt)}});var Gn,fl=G(()=>{Gn=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var ul,jr,W,ti,vt,ei=G(()=>{St();Bn();ul=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},jr=(t,e,r,n,o)=>{if(t=Xe(t,e),!!b(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},W=(t,e,r)=>{if(!e)throw new Error("Element is required");Mn(t,e,r);let n=ul(t,e);if(n){let{state:o,context:s}=e;return jr(n,e,o,s,r)}},ti=(t,e,r,n,o,s)=>{if(t=Xe(t,r),!!b(t))try{let i=t.call(r,e,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}},vt=(t,e,r,n)=>{Mn(t,r,e,n);let o=ul(t,r);if(o){let{state:s,context:i}=r;return ti(o,e,r,s,i,n)}}});var vh,ut,ri=G(()=>{vh={},ut={}});var dl={};Mt(dl,{setup:()=>Eh,supabaseAdapter:()=>pl});var Eh,ni,Ch,pl,hl=G(()=>{"use strict";Eh=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient);let i=n(s,e,o);return!i||!i.auth?null:pl(i)},ni=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},Ch=(t,{limit:e,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;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},pl=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=ni(s,n),s=Ch(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=ni(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=ni(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var gl={};Mt(gl,{restAdapter:()=>ml,setup:()=>Oh});var kh,pe,Oh,ml,yl=G(()=>{"use strict";kh=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);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()},pe=async(t,e)=>{let r=await globalThis.fetch(t,e),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}},Oh=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return ml(t,e,r,n)},ml=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await pe(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await pe(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await pe(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:S,headers:_,baseUrl:w})=>{let E={...u};return p&&(E.select=p),d&&(E.limit=d),h&&(E.offset=h),S&&(E.single=!0),m&&(typeof m=="string"?E.order=m:Array.isArray(m)?E.order=m.map(R=>`${R.by}:${R.asc===!1?"desc":"asc"}`).join(","):m.by&&(E.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),pe(kh(w||t,l||"",E),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>pe(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>pe(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let S=p?.id||u?.id,_=S?`${l}/${S}`:l;return pe(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return pe(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var Sl={};Mt(Sl,{localAdapter:()=>bl,setup:()=>Th});var oi,Ah,Th,bl,xl=G(()=>{"use strict";oi=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Ah=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},Th=async({data:t,...e})=>bl(t,e),bl=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>oi(m,u));return Ah(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let S={id:m.id||++f,...m};return p.push(S),S});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(oi(d[m],p)){let S={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],S)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)oi(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,S)=>{u&&u!=="*"&&u!==S.event||p(h,m,S)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var Yr={};Mt(Yr,{createAdapter:()=>Ph,default:()=>jh,executeFetch:()=>Kr,fetchPlugin:()=>fi,initAdapterAuth:()=>Xn,parseDuration:()=>zr,queryClient:()=>Vh,registerAdapter:()=>Ih,resolveDb:()=>Cl});var Rh,El,Ih,Ph,Cl,zr,xt,kl,Kn,Nh,Gr,qr,Hr,si,ci,Yn,Dh,_l,ii,Ol,Al,nr,wl,Fh,vl,$h,Tl,Rl,Xn,li,Pt,Wr,Oe,qt,de,Lh,Mh,Bh,ai,Uh,Kr,Vh,fi,jh,Ae=G(()=>{"use strict";v();Rh=["select","rpc","insert","update","delete","subscribe"],El={supabase:()=>Promise.resolve().then(()=>(hl(),dl)),rest:()=>Promise.resolve().then(()=>(yl(),gl)),local:()=>Promise.resolve().then(()=>(xl(),Sl))},Ih=(t,e)=>{El[t]=e},Ph=t=>{let e={};for(let r of Rh)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Cl=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=El[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},zr=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},xt=new Map,kl=new Map,Kn=new Map,Nh=t=>{if(t.cache?.key)return t.cache.key;let e=$h(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Gr=t=>xt.get(t)||null,qr=(t,e,r)=>{let n=xt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};xt.set(t,o);let s=kl.get(t);if(s)for(let i of s)b(i)&&i(o);return o},Hr=t=>{if(t){let e=xt.get(t);e&&(e.stale=!0);return}for(let[,e]of xt)e.stale=!0},si=t=>{if(t){xt.delete(t);return}xt.clear()},ci=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:y(t)?{staleTime:zr(t),gcTime:3e5}:{staleTime:zr(t.stale||t.staleTime)||6e4,gcTime:zr(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Yn=null,Dh=()=>{Yn||(Yn=setInterval(()=>{let t=Date.now();for(let[e,r]of xt){let n=kl.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&xt.delete(e)}},3e4),Yn.unref&&Yn.unref())};Dh();_l=3,ii=t=>Math.min(1e3*2**t,3e4),Ol=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:_l,delay:ii}:typeof e=="number"?{count:e,delay:ii}:{count:e.count??_l,delay:b(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ii}},Al=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=b(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=b(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},nr={focus:new Set,online:new Set},wl=!1,Fh=()=>{if(wl||typeof window>"u")return;wl=!0;let t=()=>{for(let r of nr.focus)r()},e=()=>{for(let r of nr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},vl=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(y(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},$h=t=>(!t||b(t),t),Tl=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Rl=(t,e,r)=>{let n;if(!t)n=void 0;else if(b(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=b(s)?s(e,e.state):s}}return n},Xn=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch{}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},li=async(t,e)=>{if(b(t.select))return t.auth!==!1&&await Xn(t,e),t;if(t.__resolved)return t.auth!==!1&&await Xn(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Cl(t);let r=await t.__resolving;return delete t.__resolving,r?(t.__resolved=r,e.fetch=r,t.auth!==!1&&await Xn(r,e),r):null},Pt=(t,e,...r)=>{let n=b(t[e])?t[e]:t.props&&b(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Wr=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}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"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},Oe=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},de=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||b(t.enabled)&&!t.enabled(e,e.state))return;let s=await li(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:S,limit:_,offset:w,order:E,headers:R,baseUrl:T,page:A,cursor:k,getNextPageParam:$,getPreviousPageParam:P,infinite:F,placeholderData:j,initialData:Z,select:tt,keepPreviousData:pt}=t,_t;if(f&&b(e.getQuery)){let Q=e.getQuery(s.name||"paths");Q&&(_t=Q.select||Q.length&&Q.join(",")||void 0)}let Lt=Rl(l,e,r),Pr=ci(u),Yo=Ol(t),st=Pr?u?.key||`${a}:${c}:${JSON.stringify(Lt||"")}${F?":infinite":""}${A?":p"+JSON.stringify(A):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let Q=b(Z)?Z():Z;qr(st,Q,null)}if((c==="select"||c==="rpc")&&st&&Pr){let Q=Gr(st);if(Q&&!Q.error){let H=Date.now()-Q.time,ft=Q.stale||H>(Pr.staleTime||0),B=Q.data;if(tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),Oe(e,B,S),!ft){qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(j!==void 0){let H=b(j)?j(e,e.state):j;H!==void 0&&Oe(e,H,S)}}if(st&&Kn.has(st)&&!n.force){let Q=Kn.get(st);try{let H=await Q;if(H?.data!==void 0){let ft=H.data;tt&&(ft=tt(ft,e,e.state)),p&&(ft=p(ft,e,e.state)),Oe(e,ft,S),Pt(e,"onFetchComplete",ft)}}catch{}return}let Xo=!Gr(st)?.data;qt(e,{isFetching:!0,isLoading:Xo,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");let Ec=Al(async()=>{if(h!==!1&&s.getSession){let B=await s.getSession();if(h===!0&&!B){let wt={message:"Not authenticated"};return qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:wt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",wt),{data:null,error:wt}}}let Q=s[c];if(!b(Q))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:_t,params:Lt,single:d,limit:_,offset:w,order:E,headers:R,baseUrl:T},ft=Tl(e,r);if(ft&&(H.headers={...H.headers,"Accept-Language":ft}),A!==void 0){if(g(A))A.offset!==void 0&&(H.offset=A.offset),A.limit!==void 0&&(H.limit=A.limit),A.cursor!==void 0&&(H.params={...H.params,cursor:A.cursor});else if(typeof A=="number"){let B=t.pageSize||_||20;H.offset=(A-1)*B,H.limit=B}}if(k!==void 0&&(H.params={...H.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let B;if(m===!0||t.on==="submit")B=Wr(e);else if(x(m)){let wt=Wr(e);B={};for(let Jo of m)B[Jo]=wt[Jo]}else e.state?.parse?B=e.state.parse():g(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),H.data=B}if(c==="rpc"){let B=Lt;if(t.on==="submit"){let wt=Wr(e);B=t.transformParams?t.transformParams(wt,e,e.state):wt}H.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Lt,on:t.subscribeOn},(wt,Jo,t_)=>{Oe(e,wt,S),Pt(e,"onFetchComplete",wt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Q(H)},Yo);st&&Kn.set(st,Ec);try{let Q=await Ec;if(Q?.subscribed)return;let{data:H,error:ft}=Q||{};if(ft){st&&qr(st,null,ft),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",ft);return}if(H!==void 0){if((c==="select"||c==="rpc")&&st){let wt=qr(st,H,null);wt.gcTime=Pr?.gcTime||3e5}let B=H;F&&x(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),B=i.__pages.flat(),$&&(i.__nextPageParam=$(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),P&&(i.__prevPageParam=P(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(B=tt(B,e,e.state)),p&&(B=p(B,e,e.state)),(!pt||B!==void 0)&&Oe(e,B,S),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",B)}}catch(Q){qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",Q)}finally{st&&Kn.delete(st)}},Lh=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||de;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Mh=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Fh();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:zr(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&de(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Nh(t),a=Gr(i),c=ci(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&de(t,e,r,{force:!0})};nr.focus.add(s),n.__fetchCleanups.push(()=>nr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>de(t,e,r,{force:!0});nr.online.add(s),n.__fetchCleanups.push(()=>nr.online.delete(s))}},Bh=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=b(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Oe(t,i,o),s},ai=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Oe(t,n,e.as),delete r.__optimisticSnapshot)},Uh=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await li(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:S,onMutate:_,onSuccess:w,onError:E,onSettled:R}=t,T;if(c===!0||u==="submit")T=Wr(e);else if(x(c)){let k=Wr(e);T={};for(let $ of c)T[$]=k[$]}else e.state?.parse?T=e.state.parse():g(e.state)&&(T={...e.state});f&&(T=f(T,e,e.state)),b(_)&&_(T,e,e.state);let A=S?Bh(e,t,T):null;s.__fetching=!0,qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Pt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){A!==void 0&&ai(e,t),Pt(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!b(k))return;let $={from:a,data:T,headers:d,baseUrl:h};t.params&&($.params=Rl(t.params,e,r));let P=Tl(e,r);P&&($.headers={...$.headers,"Accept-Language":P});let F=Ol(t),j=await Al(()=>k($),F),{data:Z,error:tt}=j||{};if(tt){A!==void 0&&ai(e,t),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",tt),b(E)&&E(tt,T,e),b(R)&&R(null,tt,T,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Pt(e,"onFetchComplete",Z),b(w)&&w(Z,T,e),b(R)&&R(Z,null,T,e),m){let pt=x(m)?m:[m];for(let _t of pt)if(_t===!0||_t==="*")for(let[Lt]of xt)Lt.startsWith(a+":")&&Hr(Lt);else Hr(_t)}}catch(k){A!==void 0&&ai(e,t),qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Pt(e,"onFetchError",k),b(E)&&E(k,T,e),b(R)&&R(null,k,T,e)}finally{s.__fetching=!1}},Kr=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=O(t,e);if(!s)return;let i=x(s)?s.map(c=>vl(O(c,e),e)).filter(Boolean):[vl(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?Uh:de;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Lh({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Mh(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)de(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};de(l,e,n,{direction:"previous",force:!0})}},Vh={invalidateQueries:t=>{if(!t){Hr();return}if(y(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&Hr(e);else if(x(t)){let e=t.join(":");for(let[r]of xt)r.includes(e)&&Hr(r)}},removeQueries:t=>{if(!t){si();return}if(y(t))for(let[e]of xt)(e.startsWith(t)||e.includes(t))&&si(e)},getQueryData:t=>Gr(t)?.data??void 0,setQueryData:(t,e)=>{let r=Gr(t),n=b(e)?e(r?.data):e;qr(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await li(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!b(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=qr(o,i.data,null);a.gcTime=ci(t.cache)?.gcTime||3e5}return i},getCache:()=>xt,clear:()=>si()},fi={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&Kr(e,t,t.state,t.context)}},jh=Kr});function pi(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function di(t){let e=this,{parent:r}=e;if(b(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function hi(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(b(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function mi(t,e=[]){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===t)e.push(a);else if(b(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Qn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?Qn.call(o,n):e.node.style[r]=n}return e}}function gi(t){let e=this;if(W("beforeRemove",e,t)===!1)return e;b(e.node.remove)?e.node.remove():Ke()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=ns(e.parent.__ref.__children,e.key)),W("remove",e,t)}function zh(t){return this[t]}function yi(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function bi(t){return t?this.__ref&&this.__ref[t]:this.__ref}function qh(){return this.getRef("__children").map(e=>this[e])}function Si(){return this.getRef().path}function xi(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=b(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function _i(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function wi(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function vi(t){let e=this.getRoot()?.context;return t?e[t]:e}function Ei(t){let e=this.context;return t?e[t]:e}function Jn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||He.has(r)&&!is.has(r)||e.push(r);return e}function Zn(t=[]){let e=this,r={},n=Jn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=b(c&&c.parse)?c.parse():c;r[a]=b(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else Ot(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Xr(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Zn.call(r,t),o=t.length?new Set(t):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=>N(a)?Xr.call(a,t,e):a):N(i)&&(n[s]=Xr.call(i,t,e))}return n}function to(...t){if(he!=="test"&&he!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
|
|
13
|
+
`,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Ci(...t){(he==="test"||he==="development")&&console.log(...t)}function ki(...t){(he==="test"||he==="development")&&console.warn(...t)}function Qr(...t){if(he==="test"||he==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&to.call(this),new Error(...t)}}function Oi(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Ai(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function Ti(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,z(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Ri(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{Qr.call(this,s)}),o}catch(o){if(Qr.call(this,o),r?.strictMode)throw o}}async function Ii(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ae(),Yr));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ae(),Yr));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ae(),Yr)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ae(),Yr));await o(n,t.context)}return n}function Pi(t){let e=this,r=t||ut.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(ui(e,n),r===!0)return n;let o=Zh[r];return o?o(n):n}function Ht(t,e){return!!(Fn.has(t)||e?.context?.methods?.[t])}var he,Hh,ui,Wh,Il,Gh,Kh,Yh,Xh,Qh,Jh,Zh,Ni=G(()=>{ei();Ge();St();ae();ws();qe();ri();he=process.env.NODE_ENV;Hh=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});ui=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&Wh(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ui(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ui(i,e)},Wh=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},Il=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
|
|
14
|
+
${Il(i,e+1)}
|
|
13
15
|
${r}}`).join(`
|
|
14
|
-
`):""},
|
|
15
|
-
${
|
|
16
|
-
}`,
|
|
16
|
+
`):""},Gh=t=>`{
|
|
17
|
+
${Il(t,1)}
|
|
18
|
+
}`,Kh=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},Yh=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=e(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},Xh=(t,e)=>{let r=[],n=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in l)l[d]===!0?r.push(`${u}.${d}`):s(l[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",f=n.length?`
|
|
17
19
|
`+n.join(`
|
|
18
20
|
`):"";return`SELECT ${c}
|
|
19
|
-
FROM ${a}${f}`},Xh=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},Qh=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Jh={graphql:Wh,"json-api":Gh,odata:Kh,sql:Yh,supabase:Qh,paths:Xh}});var Zh,Ni,Il=G(()=>{$n();Zh={snapshotId:xs},Ni=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Zh.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{$n();_s();xt();ae();Mn();qe();Dr();Ic();Pc();Lr();Nr();Nc();ws();Ns();Hs();jn();al();cl();Ge();ll();Pi();ei();Il();ti()});v();v();var Gw=["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"],Di={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"]},tm=["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"],Nl=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Di,t)){let r=Di[t];return r.includes(e)||r.includes("default")}else return Di.default.includes(e)},em=t=>{if(!y(t))return!1;let e=t.toLowerCase();return tm.includes(e)},Dl=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=Nl(t,o),i=em(o);Ot(e[o])&&(s||i)&&(n[o]=e[o])}return n},Kw=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},Wt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Pl={src:t=>Wt(t,t.props.src),href:t=>Wt(t,t.props.href),action:t=>Wt(t,t.props.action),poster:t=>Wt(t,t.props.poster),data:t=>Wt(t,t.props.data)},Yw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in Pl)if(r[o]!==void 0&&Nl(e,o)){let s=Pl[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var rm=!1;function nm(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function om(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Fl=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!rm:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(om(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=nm(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var lt="-ms-",Jr="-moz-",q="-webkit-",to="comm",or="rule",sr="decl";var $l="@import";var eo="@keyframes";var Ll="@layer";var Ml=Math.abs,Te=String.fromCharCode,Bl=Object.assign;function Ul(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function ro(t){return t.trim()}function Fi(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function Zr(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function me(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function ir(t){return t.length}function ar(t,e){return e.push(t),t}function $i(t,e){return t.map(e).join("")}var no=1,cr=1,Vl=0,ht=0,rt=0,fr="";function tn(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:no,column:cr,length:i,return:""}}function ur(t,e){return Bl(tn("",null,null,"",null,null,0),t,{length:-t.length},e)}function jl(){return rt}function zl(){return rt=ht>0?et(fr,--ht):0,cr--,rt===10&&(cr=1,no--),rt}function mt(){return rt=ht<Vl?et(fr,ht++):0,cr++,rt===10&&(cr=1,no++),rt}function Nt(){return et(fr,ht)}function en(){return ht}function pr(t,e){return me(fr,t,e)}function lr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oo(t){return no=cr=1,Vl=dt(fr=t),ht=0,[]}function so(t){return fr="",t}function dr(t){return ro(pr(ht-1,Li(t===91?t+2:t===40?t+1:t)))}function ql(t){for(;(rt=Nt())&&rt<33;)mt();return lr(t)>2||lr(rt)>3?"":" "}function Hl(t,e){for(;--e&&mt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return pr(t,en()+(e<6&&Nt()==32&&mt()==32))}function Li(t){for(;mt();)switch(rt){case t:return ht;case 34:case 39:t!==34&&t!==39&&Li(rt);break;case 40:t===41&&Li(t);break;case 92:mt();break}return ht}function Wl(t,e){for(;mt()&&t+rt!==57;)if(t+rt===84&&Nt()===47)break;return"/*"+pr(e,ht-1)+"*"+Te(t===47?t:mt())}function Gl(t){for(;!lr(Nt());)mt();return pr(t,ht)}function Xl(t){return so(io("",null,null,null,[""],t=oo(t),0,[0],t))}function io(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,x=1,_=1,w=0,E="",R=o,T=s,A=n,k=E;x;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){Zr(k+=M(dr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=dr(w);break;case 9:case 10:case 13:case 32:k+=ql(h);break;case 92:k+=Hl(en()-1,7);continue;case 47:switch(Nt()){case 42:case 47:ar(sm(Wl(mt(),en()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:x=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&dt(k)-u&&ar(d>32?Yl(k+";",n,r,u-1):Yl(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(ar(A=Kl(k,e,r,f,l,o,a,E,R=[],T=[],u),s),w===123)if(l===0)io(k,e,A,A,R,s,u,a,T);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:io(t,A,A,n&&ar(Kl(t,A,A,0,0,o,a,E,o,R=[],u),T),o,T,u,a,n?R:T);break;default:io(k,A,A,A,[""],T,0,a,T)}}f=l=d=0,m=_=1,E=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&zl()==125)continue}switch(k+=Te(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:Nt()===45&&(k+=dr(mt())),p=Nt(),l=u=dt(E=k+=Gl(en())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Kl(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=ir(p),h=0,m=0,x=0;h<n;++h)for(var _=0,w=me(t,u+1,u=Ml(m=i[h])),E=t;_<d;++_)(E=ro(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[x++]=E);return tn(t,e,r,o===0?or:a,c,f,l)}function sm(t,e,r){return tn(t,e,r,to,Te(jl()),me(t,2,-2),0)}function Yl(t,e,r,n){return tn(t,e,r,sr,me(t,0,n),me(t,n+1,-1),n)}function Re(t,e){for(var r="",n=ir(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Ql(t,e,r,n){switch(t.type){case Ll:if(t.children.length)break;case $l:case sr:return t.return=t.return||t.value;case to:return"";case eo:return t.return=t.value+"{"+Re(t.children,n)+"}";case or:t.value=t.props.join(",")}return dt(r=Re(t.children,n))?t.return=t.value+"{"+r+"}":""}function Jl(t){var e=ir(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function Zl(t){return function(e){e.root||(e=e.return)&&t(e)}}function tf(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var im=function(e,r,n){for(var o=0,s=0;o=s,s=Nt(),o===38&&s===12&&(r[n]=1),!lr(s);)mt();return pr(e,ht)},am=function(e,r){var n=-1,o=44;do switch(lr(o)){case 0:o===38&&Nt()===12&&(r[n]=1),e[n]+=im(ht-1,r,n);break;case 2:e[n]+=dr(o);break;case 4:if(o===44){e[++n]=Nt()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Te(o)}while(o=mt());return e},cm=function(e,r){return so(am(oo(e),r))},ef=new WeakMap,lm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!ef.get(n))&&!o){ef.set(e,!0);for(var s=[],i=cm(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},fm=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function rf(t,e){switch(Ul(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+Jr+t+lt+t+t;case 6828:case 4268:return q+t+lt+t+t;case 6165:return q+t+lt+"flex-"+t+t;case 5187:return q+t+M(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+lt+"flex-$1$2")+t;case 5443:return q+t+lt+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return q+t+lt+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+lt+M(t,"shrink","negative")+t;case 5292:return q+t+lt+M(t,"basis","preferred-size")+t;case 6060:return q+"box-"+M(t,"-grow","")+q+t+lt+M(t,"grow","positive")+t;case 4554:return q+M(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Jr+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zr(t,"stretch")?rf(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~Zr(t,"!important")&&10))){case 107:return M(t,":",":"+q)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(et(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+lt+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+lt+t+t}return t}var um=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=rf(e.value,e.length);break;case eo:return Re([ur(e,{value:M(e.value,"@","@"+q)})],o);case or:if(e.length)return $i(e.props,function(s){switch(Fi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([ur(e,{props:[M(s,/:(read-\w+)/,":"+Jr+"$1")]})],o);case"::placeholder":return Re([ur(e,{props:[M(s,/:(plac\w+)/,":"+q+"input-$1")]}),ur(e,{props:[M(s,/:(plac\w+)/,":"+Jr+"$1")]}),ur(e,{props:[M(s,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},pm=[um],nf=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var x=m.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||pm,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var x=m.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;a.push(m)});var c,f=[lm,fm];{var l,u=[Ql,Zl(function(m){l.insert(m)})],p=Jl(f.concat(o,u)),d=function(x){return Re(Xl(x),p)};c=function(x,_,w,E){l=w,d(x?x+"{"+_.styles+"}":_.styles),E&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new Fl({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function of(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var sf={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var dm=!1,hm=/[A-Z]|^ms/g,mm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ff=function(e){return e.charCodeAt(1)===45},af=function(e){return e!=null&&typeof e!="boolean"},Mi=tf(function(t){return ff(t)?t:t.replace(hm,"-$&").toLowerCase()}),cf=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(mm,function(n,o,s){return Gt={name:o,styles:s,next:Gt},o})}return sf[e]!==1&&!ff(e)&&typeof r=="number"&&r!==0?r+"px":r},gm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Gt={name:i.name,styles:i.styles,next:Gt},i=i.next;var a=s.styles+";";return a}return ym(t,e,r)}case"function":{if(t!==void 0){var c=Gt,f=r(t);return Gt=c,rn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function ym(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=rn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":af(a)&&(n+=Mi(s)+":"+cf(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&dm)throw new Error(gm);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)af(i[c])&&(n+=Mi(s)+":"+cf(s,i[c])+";");else{var f=rn(t,e,i);switch(s){case"animation":case"animationName":{n+=Mi(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var lf=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function ao(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Gt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=rn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=rn(r,e,t[a]),n){var c=s;o+=c[a]}lf.lastIndex=0;for(var f="",l;(l=lf.exec(o))!==null;)f+="-"+l[1];var u=of(o)+f;return{name:u,styles:o,next:Gt}}var bm=!0;function Bi(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var xm=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||bm===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},uf=function(e,r,n){xm(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function pf(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function df(t,e,r){var n=[],o=Bi(t,n,r);return n.length<2?r:o+e(n)}var Ui=function(e){var r=nf(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=ao(f,r.registered,void 0);return uf(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=ao(f,r.registered),p="animation-"+u.name;return pf(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=ao(f,r.registered);pf(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return df(r.registered,n,Sm(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Bi.bind(null,r.registered),merge:df.bind(null,r.registered,n)}},Sm=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var _m=/\s+/g,Rv=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},wm=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},vm=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=wm(t,e)),t.replace(_m," ").trim()},Vi=(t,e,r)=>{let n=vm(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Iv(t,e,r){Vi(t,e,r)}var Em=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return Ui({key:r,container:e})},Et=Em(),Cm=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}hf(t)(r.classlist,r,r.state,!0)},hf=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(N(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;y(f)||ct(f)?l=f:Pn(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Vi(a,r,r.node)}},mf=(t,e)=>(t||(t=Ui(e||{key:"smbls"})),{style:Cm(t),classlist:hf(t)});var xr={};Mt(xr,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>on,applyMediaSequenceVars:()=>br,applySequenceGlobalVars:()=>na,applySequenceVars:()=>$e,changeLightness:()=>Im,colorStringToRgbaArray:()=>ge,convertSvgToSymbol:()=>oa,findHeadingLetter:()=>Rf,findHeadings:()=>ra,generateSequence:()=>Kt,generateSequencePosition:()=>Ug,generateSprite:()=>mo,generateSubSequence:()=>ta,getColorShade:()=>Sf,getDefaultOrFirstKey:()=>an,getFnPrefixAndValue:()=>Fe,getFontFace:()=>Dm,getFontFaceEach:()=>cn,getFontFaceEachString:()=>Ef,getFontFaceString:()=>zi,getFontFormat:()=>wf,getRgbTone:()=>sn,getSequenceValue:()=>ea,getSequenceValueBySymbols:()=>Tf,getSequenceValuePropertyPair:()=>be,getSubratio:()=>Zi,getSubratioDifference:()=>Ji,hexToRgb:()=>Om,hexToRgbArray:()=>gf,hexToRgba:()=>Tm,hslToRgb:()=>xf,isCSSVar:()=>nt,isGoogleFontsUrl:()=>lo,isResolvedColor:()=>ye,isScalingUnit:()=>nn,mixTwoColors:()=>km,mixTwoRgb:()=>Rm,mixTwoRgba:()=>_f,numToLetterMap:()=>De,opacify:()=>co,parseColorToken:()=>hr,resolveFileUrl:()=>Ie,returnSubThemeOrDefault:()=>Nm,rgbArrayToHex:()=>yf,rgbToHSL:()=>bf,rgbToHex:()=>Am,setCustomFont:()=>ji,setCustomFontMedia:()=>gr,setFontImport:()=>fo,setInCustomFontMedia:()=>vf,setScalingVar:()=>Qi,setSubScalingVar:()=>Af,setVariables:()=>Vg,splitTopLevelCommas:()=>mr});var nn=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",on=["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 ge=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&L&&F){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,L.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},km=(t,e,r=.5)=>(t=ge(t),e=ge(e),_f(t,e,r)),Om=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},gf=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Am=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),yf=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Tm=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Rm=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Im=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},bf=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},xf=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Sf=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},_f=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},co=(t,e)=>{let r=ge(t);if(!r){Br()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},nt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Pm=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,hr=t=>{if(!y(t))return null;if(Zt.test(t))return{passthrough:t};if(nt(t))return{cssVar:t};let e=t.match(Pm);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ye=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),mr=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},sn=(t,e)=>{y(t)&&t.includes("rgb")&&(t=ge(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=yf(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Sf(r,parseFloat(e));return gf(o).join(", ")}else{let[o,s,i]=t,a=bf(o,s,i),[c,f,l]=a;return xf(c,f,parseFloat(e)/100*255)}};var Nm=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ie=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},an=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},wf=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},lo=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),fo=t=>`@import url('${t}');`,vf=t=>`@font-face { ${t} }`,ji=(t,e,r,n={})=>{let o=wf(e),s=o?` format('${o}')`:"";return`
|
|
21
|
+
FROM ${a}${f}`},Qh=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},Jh=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},Zh={graphql:Gh,"json-api":Kh,odata:Yh,sql:Xh,supabase:Jh,paths:Qh}});var tm,Di,Pl=G(()=>{Ln();tm={snapshotId:xs},Di=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=tm.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Ln();ws();St();ae();Bn();qe();Dr();Pc();Nc();Lr();Nr();Dc();vs();Ds();Ws();zn();cl();ll();Ge();fl();Ni();ri();Pl();ei()});v();v();var Kw=["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"],Fi={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"]},em=["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"],Dl=(t,e)=>{if(Object.prototype.hasOwnProperty.call(Fi,t)){let r=Fi[t];return r.includes(e)||r.includes("default")}else return Fi.default.includes(e)},rm=t=>{if(!y(t))return!1;let e=t.toLowerCase();return em.includes(e)},Fl=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;let s=Dl(t,o),i=rm(o);Ot(e[o])&&(s||i)&&(n[o]=e[o])}return n},Yw=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},Wt=(t,e)=>{let r=t.call("exec",e,t);if(r)return y(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Nl={src:t=>Wt(t,t.props.src),href:t=>Wt(t,t.props.href),action:t=>Wt(t,t.props.action),poster:t=>Wt(t,t.props.poster),data:t=>Wt(t,t.props.data)},Xw=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in Nl)if(r[o]!==void 0&&Dl(e,o)){let s=Nl[o](t);s!==void 0&&(n[o]=s)}return n};v();v();var nm=!1;function om(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function sm(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var $l=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!nm:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=om(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var lt="-ms-",Jr="-moz-",q="-webkit-",eo="comm",or="rule",sr="decl";var Ll="@import";var ro="@keyframes";var Ml="@layer";var Bl=Math.abs,Te=String.fromCharCode,Ul=Object.assign;function Vl(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function no(t){return t.trim()}function $i(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function Zr(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function me(t,e,r){return t.slice(e,r)}function dt(t){return t.length}function ir(t){return t.length}function ar(t,e){return e.push(t),t}function Li(t,e){return t.map(e).join("")}var oo=1,cr=1,jl=0,ht=0,rt=0,fr="";function tn(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:oo,column:cr,length:i,return:""}}function ur(t,e){return Ul(tn("",null,null,"",null,null,0),t,{length:-t.length},e)}function zl(){return rt}function ql(){return rt=ht>0?et(fr,--ht):0,cr--,rt===10&&(cr=1,oo--),rt}function mt(){return rt=ht<jl?et(fr,ht++):0,cr++,rt===10&&(cr=1,oo++),rt}function Nt(){return et(fr,ht)}function en(){return ht}function pr(t,e){return me(fr,t,e)}function lr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function so(t){return oo=cr=1,jl=dt(fr=t),ht=0,[]}function io(t){return fr="",t}function dr(t){return no(pr(ht-1,Mi(t===91?t+2:t===40?t+1:t)))}function Hl(t){for(;(rt=Nt())&&rt<33;)mt();return lr(t)>2||lr(rt)>3?"":" "}function Wl(t,e){for(;--e&&mt()&&!(rt<48||rt>102||rt>57&&rt<65||rt>70&&rt<97););return pr(t,en()+(e<6&&Nt()==32&&mt()==32))}function Mi(t){for(;mt();)switch(rt){case t:return ht;case 34:case 39:t!==34&&t!==39&&Mi(rt);break;case 40:t===41&&Mi(t);break;case 92:mt();break}return ht}function Gl(t,e){for(;mt()&&t+rt!==57;)if(t+rt===84&&Nt()===47)break;return"/*"+pr(e,ht-1)+"*"+Te(t===47?t:mt())}function Kl(t){for(;!lr(Nt());)mt();return pr(t,ht)}function Ql(t){return io(ao("",null,null,null,[""],t=so(t),0,[0],t))}function ao(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,S=1,_=1,w=0,E="",R=o,T=s,A=n,k=E;S;)switch(h=w,w=mt()){case 40:if(h!=108&&et(k,u-1)==58){Zr(k+=M(dr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=dr(w);break;case 9:case 10:case 13:case 32:k+=Hl(h);break;case 92:k+=Wl(en()-1,7);continue;case 47:switch(Nt()){case 42:case 47:ar(im(Gl(mt(),en()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=dt(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&dt(k)-u&&ar(d>32?Xl(k+";",n,r,u-1):Xl(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(ar(A=Yl(k,e,r,f,l,o,a,E,R=[],T=[],u),s),w===123)if(l===0)ao(k,e,A,A,R,s,u,a,T);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:ao(t,A,A,n&&ar(Yl(t,A,A,0,0,o,a,E,o,R=[],u),T),o,T,u,a,n?R:T);break;default:ao(k,A,A,A,[""],T,0,a,T)}}f=l=d=0,m=_=1,E=k="",u=i;break;case 58:u=1+dt(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&ql()==125)continue}switch(k+=Te(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(dt(k)-1)*_,_=1;break;case 64:Nt()===45&&(k+=dr(mt())),p=Nt(),l=u=dt(E=k+=Kl(en())),w++;break;case 45:h===45&&dt(k)==2&&(m=0)}}return s}function Yl(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=ir(p),h=0,m=0,S=0;h<n;++h)for(var _=0,w=me(t,u+1,u=Bl(m=i[h])),E=t;_<d;++_)(E=no(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[S++]=E);return tn(t,e,r,o===0?or:a,c,f,l)}function im(t,e,r){return tn(t,e,r,eo,Te(zl()),me(t,2,-2),0)}function Xl(t,e,r,n){return tn(t,e,r,sr,me(t,0,n),me(t,n+1,-1),n)}function Re(t,e){for(var r="",n=ir(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function Jl(t,e,r,n){switch(t.type){case Ml:if(t.children.length)break;case Ll:case sr:return t.return=t.return||t.value;case eo:return"";case ro:return t.return=t.value+"{"+Re(t.children,n)+"}";case or:t.value=t.props.join(",")}return dt(r=Re(t.children,n))?t.return=t.value+"{"+r+"}":""}function Zl(t){var e=ir(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function tf(t){return function(e){e.root||(e=e.return)&&t(e)}}function ef(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var am=function(e,r,n){for(var o=0,s=0;o=s,s=Nt(),o===38&&s===12&&(r[n]=1),!lr(s);)mt();return pr(e,ht)},cm=function(e,r){var n=-1,o=44;do switch(lr(o)){case 0:o===38&&Nt()===12&&(r[n]=1),e[n]+=am(ht-1,r,n);break;case 2:e[n]+=dr(o);break;case 4:if(o===44){e[++n]=Nt()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Te(o)}while(o=mt());return e},lm=function(e,r){return io(cm(so(e),r))},rf=new WeakMap,fm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!rf.get(n))&&!o){rf.set(e,!0);for(var s=[],i=lm(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},um=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function nf(t,e){switch(Vl(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+Jr+t+lt+t+t;case 6828:case 4268:return q+t+lt+t+t;case 6165:return q+t+lt+"flex-"+t+t;case 5187:return q+t+M(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+lt+"flex-$1$2")+t;case 5443:return q+t+lt+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return q+t+lt+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+lt+M(t,"shrink","negative")+t;case 5292:return q+t+lt+M(t,"basis","preferred-size")+t;case 6060:return q+"box-"+M(t,"-grow","")+q+t+lt+M(t,"grow","positive")+t;case 4554:return q+M(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+lt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dt(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+Jr+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Zr(t,"stretch")?nf(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,dt(t)-3-(~Zr(t,"!important")&&10))){case 107:return M(t,":",":"+q)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(et(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+lt+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+lt+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+lt+t+t}return t}var pm=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=nf(e.value,e.length);break;case ro:return Re([ur(e,{value:M(e.value,"@","@"+q)})],o);case or:if(e.length)return Li(e.props,function(s){switch($i(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Re([ur(e,{props:[M(s,/:(read-\w+)/,":"+Jr+"$1")]})],o);case"::placeholder":return Re([ur(e,{props:[M(s,/:(plac\w+)/,":"+q+"input-$1")]}),ur(e,{props:[M(s,/:(plac\w+)/,":"+Jr+"$1")]}),ur(e,{props:[M(s,/:(plac\w+)/,lt+"input-$1")]})],o)}return""})}},dm=[pm],of=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var S=m.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||dm,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var S=m.getAttribute("data-emotion").split(" "),_=1;_<S.length;_++)s[S[_]]=!0;a.push(m)});var c,f=[fm,um];{var l,u=[Jl,tf(function(m){l.insert(m)})],p=Zl(f.concat(o,u)),d=function(S){return Re(Ql(S),p)};c=function(S,_,w,E){l=w,d(S?S+"{"+_.styles+"}":_.styles),E&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new $l({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function sf(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var af={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var hm=!1,mm=/[A-Z]|^ms/g,gm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uf=function(e){return e.charCodeAt(1)===45},cf=function(e){return e!=null&&typeof e!="boolean"},Bi=ef(function(t){return uf(t)?t:t.replace(mm,"-$&").toLowerCase()}),lf=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(gm,function(n,o,s){return Gt={name:o,styles:s,next:Gt},o})}return af[e]!==1&&!uf(e)&&typeof r=="number"&&r!==0?r+"px":r},ym="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function rn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Gt={name:o.name,styles:o.styles,next:Gt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Gt={name:i.name,styles:i.styles,next:Gt},i=i.next;var a=s.styles+";";return a}return bm(t,e,r)}case"function":{if(t!==void 0){var c=Gt,f=r(t);return Gt=c,rn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function bm(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=rn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":cf(a)&&(n+=Bi(s)+":"+lf(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&hm)throw new Error(ym);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)cf(i[c])&&(n+=Bi(s)+":"+lf(s,i[c])+";");else{var f=rn(t,e,i);switch(s){case"animation":case"animationName":{n+=Bi(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var ff=/label:\s*([^\s;{]+)\s*(;|$)/g,Gt;function co(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Gt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=rn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=rn(r,e,t[a]),n){var c=s;o+=c[a]}ff.lastIndex=0;for(var f="",l;(l=ff.exec(o))!==null;)f+="-"+l[1];var u=sf(o)+f;return{name:u,styles:o,next:Gt}}var Sm=!0;function Ui(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var xm=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Sm===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},pf=function(e,r,n){xm(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function df(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function hf(t,e,r){var n=[],o=Ui(t,n,r);return n.length<2?r:o+e(n)}var Vi=function(e){var r=of(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=co(f,r.registered,void 0);return pf(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=co(f,r.registered),p="animation-"+u.name;return df(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=co(f,r.registered);df(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return hf(r.registered,n,_m(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:Ui.bind(null,r.registered),merge:hf.bind(null,r.registered,n)}},_m=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var wm=/\s+/g,Iv=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},vm=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},Em=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=vm(t,e)),t.replace(wm," ").trim()},ji=(t,e,r)=>{let n=Em(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Pv(t,e,r){ji(t,e,r)}var Cm=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return Vi({key:r,container:e})},Et=Cm(),km=t=>(e,r,n)=>{let o=O(e,r);if(e){let{__ref:s}=r;s.__class.style=o}mf(t)(r.classlist,r,r.state,!0)},mf=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(N(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;y(f)||ct(f)?l=f:Pn(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&ji(a,r,r.node)}},gf=(t,e)=>(t||(t=Vi(e||{key:"smbls"})),{style:km(t),classlist:mf(t)});var Sr={};Mt(Sr,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>on,applyMediaSequenceVars:()=>br,applySequenceGlobalVars:()=>oa,applySequenceVars:()=>$e,changeLightness:()=>Pm,colorStringToRgbaArray:()=>ge,convertSvgToSymbol:()=>sa,findHeadingLetter:()=>If,findHeadings:()=>na,generateSequence:()=>Kt,generateSequencePosition:()=>Vg,generateSprite:()=>go,generateSubSequence:()=>ea,getColorShade:()=>_f,getDefaultOrFirstKey:()=>an,getFnPrefixAndValue:()=>Fe,getFontFace:()=>Fm,getFontFaceEach:()=>cn,getFontFaceEachString:()=>Cf,getFontFaceString:()=>qi,getFontFormat:()=>vf,getRgbTone:()=>sn,getSequenceValue:()=>ra,getSequenceValueBySymbols:()=>Rf,getSequenceValuePropertyPair:()=>be,getSubratio:()=>ta,getSubratioDifference:()=>Zi,hexToRgb:()=>Am,hexToRgbArray:()=>yf,hexToRgba:()=>Rm,hslToRgb:()=>xf,isCSSVar:()=>nt,isGoogleFontsUrl:()=>fo,isResolvedColor:()=>ye,isScalingUnit:()=>nn,mixTwoColors:()=>Om,mixTwoRgb:()=>Im,mixTwoRgba:()=>wf,numToLetterMap:()=>De,opacify:()=>lo,parseColorToken:()=>hr,resolveFileUrl:()=>Ie,returnSubThemeOrDefault:()=>Dm,rgbArrayToHex:()=>bf,rgbToHSL:()=>Sf,rgbToHex:()=>Tm,setCustomFont:()=>zi,setCustomFontMedia:()=>gr,setFontImport:()=>uo,setInCustomFontMedia:()=>Ef,setScalingVar:()=>Ji,setSubScalingVar:()=>Tf,setVariables:()=>jg,splitTopLevelCommas:()=>mr});var nn=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",on=["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 ge=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&L&&D){let e=L.body.appendChild(L.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){L.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return L.body.removeChild(e),[0,0,0,0];t=D.getComputedStyle(e).color,L.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},Om=(t,e,r=.5)=>(t=ge(t),e=ge(e),wf(t,e,r)),Am=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},yf=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Tm=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),bf=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Rm=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Im=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Pm=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},Sf=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},xf=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],_f=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},wf=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},lo=(t,e)=>{let r=ge(t);if(!r){Br()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},nt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Nm=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,hr=t=>{if(!y(t))return null;if(Zt.test(t))return{passthrough:t};if(nt(t))return{cssVar:t};let e=t.match(Nm);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ye=t=>y(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),mr=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},sn=(t,e)=>{y(t)&&t.includes("rgb")&&(t=ge(t).join(", ")),y(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=bf(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=_f(r,parseFloat(e));return yf(o).join(", ")}else{let[o,s,i]=t,a=Sf(o,s,i),[c,f,l]=a;return xf(c,f,parseFloat(e)/100*255)}};var Dm=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Ie=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},an=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},vf=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},fo=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),uo=t=>`@import url('${t}');`,Ef=t=>`@font-face { ${t} }`,zi=(t,e,r,n={})=>{let o=vf(e),s=o?` format('${o}')`:"";return`
|
|
20
22
|
font-family: '${t}';
|
|
21
23
|
font-style: normal;${r?`
|
|
22
24
|
font-weight: ${r};`:""}${n.fontStretch?`
|
|
23
25
|
font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
|
|
24
26
|
font-display: ${n.fontDisplay};`:""}
|
|
25
|
-
src: url('${e}')${s};`},gr=(t,e,r,n)=>`@font-face {${
|
|
26
|
-
}`,cn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Ie(s,r)||s;return
|
|
27
|
+
src: url('${e}')${s};`},gr=(t,e,r,n)=>`@font-face {${zi(t,e,r,n)}
|
|
28
|
+
}`,cn=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i}=e[o],a=Ie(s,r)||s;return zi(t,a,i)}),Fm=t=>Object.keys(t).map(r=>cn(r,t[r].value)),Cf=(t,e,r)=>{if(e&&e.isVariable){let s=Ie(e.url,r)||e.url;return fo(s)?uo(s):gr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return cn(t,e,r).map(Ef);let o=Ie(e.url,r)||e.url;return gr(t,o)},qi=(t,e)=>Object.keys(t).map(n=>Cf(n,t[n].value,e));v();v();async function $m(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}v();var kf=(t,e)=>(x(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Lm=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),kf(t,e));var Mm=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`};var Bm=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]};var Um=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Vm=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),jm=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},zm=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),qm=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}};function po(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Hm(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var Wm=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function Gm(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Gm(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},yr={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},ho=(t={})=>{let{packageManager:e}=t;return yr[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),Km=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
|
|
27
29
|
"imports": ${JSON.stringify(o,null,2)}
|
|
28
|
-
}<\/script>`};v();var gt=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},
|
|
29
|
-
`):`<link ${
|
|
30
|
-
`)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="string")n.push(`<link rel="icon" href="${gt(l)}">`);else if(typeof l=="object"){let u=
|
|
31
|
-
`)},Ym=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Xm(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!Ym(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function ho(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function Qm(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},f={...t};for(let[l,u]of Object.entries(f))typeof u!="string"||!u.includes("{{")||(f[l]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let m=d.trim();if(h==="polyglot")return a[m]??ho(a,m)??p;if(h==="getLocalStateLang")return ho(c,m+s)??p;let x=ho(c,m);return x!==void 0?x:a[m]??ho(a,m)??p}));return f}function kf(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Jm(t,e,r){let n=t.pages?.[e],o=g(n?.state)&&n?.state,s=n?.metadata||n?.helmet||o||{},i=kf(s),a=new Set(Object.keys(i)),c=t.app?.metadata||{},f=kf(c),l={};t.integrations?.seo?l={...t.integrations.seo,...f,...i}:Object.keys(f).length?l={...f,...i}:l={...i},l.title||(l.title=t.name+" / symbo.ls"||"Symbols demo"),l=Qm(l,t,r),l.title&&(a.has("title")||!l["og:title"])&&(a.has("og:title")||(l["og:title"]=l.title)),l.description&&(a.has("description")||!l["og:description"])&&(a.has("og:description")||(l["og:description"]=l.description)),l.title&&!l["twitter:title"]&&(l["twitter:title"]=l.title),l.description&&!l["twitter:description"]&&(l["twitter:description"]=l.description);let u=r?.actualPathname||e;if(l["og:url"]||l.url){let d=(l["og:url"]||l.url||"").replace(/\/$/,"");if(d&&u&&u!=="/"){let h=u.startsWith("/")?u:"/"+u;l["og:url"]=d+h}}l=Xm(l,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[d,h]of Object.entries(l))if(typeof h=="string"&&h.includes("{{")){let m=h.replace(/\{\{[^}]*\}\}/g,"").trim();m?l[d]=m:d==="title"?l[d]=p:delete l[d]}return l}var Zm=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},tg=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},eg=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Hi=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),rg=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Wi=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),ng=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},ln=t=>{if(S(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Ki={};Mt(Ki,{CLASS:()=>Pg,animation:()=>Cg,breakpoints:()=>wg,cases:()=>Eg,color:()=>dg,devices:()=>vg,document:()=>_g,font:()=>ig,font_face:()=>lg,font_family:()=>ag,font_family_types:()=>cg,gradient:()=>hg,grid:()=>Rg,icons:()=>yg,media:()=>fg,reset:()=>Ng,semantic_icons:()=>bg,sequence:()=>Pe,shadow:()=>gg,spacing:()=>pg,svg:()=>kg,svg_data:()=>Og,templates:()=>Ag,theme:()=>mg,timing:()=>Sg,typography:()=>Gi,unit:()=>og});var Pe={"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 og={default:"em"};var sg={browserDefault:16,base:16,type:"font-size",ratio:Pe["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Gi=sg;var ig={};var ag={},cg={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},lg={};var fg={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var ug={base:Gi.base,type:"spacing",ratio:Pe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},pg=ug;var dg={},hg={};var mg={};var gg={};var yg={},bg={};var xg={default:150,base:150,type:"timing",ratio:Pe["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Sg=xg;var _g={};var wg={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},vg={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 Eg={};var Cg={};var kg={},Og={};var Ag={};var Tg={},Rg=Tg;var Ig={},Pg=Ig;var Ng={};var Dg={},Fg={},fn=Ki,un={},$g=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Lg=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in fn){let e=t.toLowerCase();un[e]=fn[t];let r=$g(e);r!==e&&(un[r]=fn[t]),e!==t&&(un[t]=fn[t]);let n=Lg(t);n!==t&&(un[n]=fn[t])}var Yi={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Dg,CSS_MEDIA_VARS:Fg,...un},Mg=z(Yi),Ne={active:"0",0:Yi},tE=t=>(Ot(t)&&(Ne.active=t),Ne[t||Ne.active]),C=t=>Ne[t||Ne.active]||Yi,Of=t=>{if(g(t))return Ne.active="1",Ne[1]=U(t,z(Mg)),t};var De={"-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"},Xi=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},Fe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Qi=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(nn(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=De[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=De[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},Af=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Ji=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Zi=(t,e)=>Ji(t,e).map(r=>r/t),ta=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Ji(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let x=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,E=Af(m+1,l,i,e),R={key:r+(m+1),variable:_,value:h,scaling:x,scalingVariable:E,index:w};Xi(R,e)})},Bg=(t,e,r)=>e*Math.pow(r,t),Kt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=De[f],u=Bg(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Qi(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Xi(m,t),s&&ta(m,t)}return t},Ug=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:De[e],a=y(e)?Object.entries(De).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Qi(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Xi(h,c),s&&ta(h,c),c},ea=(t="A",e)=>{let r=C(),{unit:n}=r;if(y(t)&&nt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(on.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Wi(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let x=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,E]=h.split("+"),R=`${x(w)} + ${x(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("*")){let[w,E]=h.split("*"),R=`${x(w)} * ${x(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("-")){let[w,E]=h.split("-"),R=`${x(w)} - ${x(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Tf=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ea(i,e)).join(" "+n+" ")).join(""):t},be=(t,e,r,n)=>{if(typeof t!="string")return C().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Fe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Tf(t,r):t=ea(t,r),{[e]:n?`${n}(${t})`:t}},Rf=(t,e)=>De[t-e],ra=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Rf(e,o);return r[s]})};v();var Vg=(t,e)=>{let r=C(),{CSS_VARS:n}=r;N(t.value)||(n[t.var]=t.value)},na=(t,e,r)=>{let n=C(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Zi(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},$e=(t,e={})=>{let r=C(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||na(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},br=(t,e,r={})=>{let n=C(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),na(d,t[e],r);return}for(let d in l){let h=l[d],m=(nn(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let x=i[`@media ${p}`];x||(x=i[`@media ${p}`]={}),x[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var jg=Br(),mo=t=>{let e=C(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},zg=t=>{let e=t.default||t;if(!y(e)){jg&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},qg=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return S(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},oa=(t,e)=>{let r=zg(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=qg(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var xo={};Mt(xo,{appendSVGSprite:()=>Sa,appendSvgIconsSprite:()=>wa,applyDocument:()=>ba,applyHeadings:()=>Ff,applyReset:()=>va,applySpacingSequence:()=>ha,applyTimingSequence:()=>ya,applyTypographySequence:()=>ua,checkIfBoxSize:()=>da,getColor:()=>J,getFontFamily:()=>fa,getFontSizeByKey:()=>pa,getMediaColor:()=>Ct,getMediaTheme:()=>Yt,getShadow:()=>ga,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>at,getTheme:()=>ia,getTimingByKey:()=>Ut,getTimingFunction:()=>Dt,runThroughMedia:()=>Df,setColor:()=>Sr,setFont:()=>la,setFontFamily:()=>yo,setGradient:()=>_r,setMediaTheme:()=>ca,setSVG:()=>bo,setShadow:()=>wr,setSvgIcon:()=>_a,setTheme:()=>aa,splitSpacedValue:()=>ma});v();var J=(t,e,r)=>{let n=r||C();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(S(t))[o,s,i]=t;else{let u=hr(t);if(!u)return t;if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=sn(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Ct=(t,e,r)=>{let n=r||C();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let o;if(S(t))o=t[0];else{let f=hr(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return J(t,`@${e}`,r);if(c){if(e)return J(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=J(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},Sr=(t,e,r)=>{let n=C();if(y(t)&&nt(t)){let d=t.slice(2);if(t=J(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let x=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(x=sn(x,w)),t=`rgba(${x}, ${_})`}else{let x=h[2],_=h[1]!==void 0?h[1]:"1";if(x)try{let w=ge(h[0]);w&&w.length>=3?t=`rgba(${sn(w.slice(0,3).join(", "),x)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(S(t))return{"@light":Sr(t[0],e,"light"),"@dark":Sr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=Sr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ge(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},_r=(t,e,r)=>{let n=C();if(y(t)&&nt(t)&&(t=J(t.slice(2))),S(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=_r(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var go=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?J(t[a]):t[a]}),e},pn=t=>(t.value||(t.value=go(t)),t.value),ia=(t,e)=>{let r=C();if(r.useVariable)return Yt(t,e);let n=r.theme;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return pn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return pn(a[s]);if(i&&i[s])return pn(i[s]);if(c&&c[s])return pn(c[s])}else if(g(t))return go(t)},Hg=(t,e,r)=>{if(g(e))t.variants.inverse.value=go(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Wg=(t,e,r,n)=>{let o=ia(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Gg=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Wg(t,o,s,e),t}),t):void 0},Kg=(t,e,r,n)=>{let o=ia(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Yg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Kg(t,o,s,e),o==="inverse"&&Hg(t,s,e),t}),t):void 0},Xg=(t,e)=>{let r=C(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.theme[i]:pn(n[s]),t}),t):void 0},aa=(t,e)=>{if(C().useVariable)return ca(t,e);let{state:n,media:o,helpers:s}=t,i=go(t,e),a=`--theme-${e}`;return Gg(t,i),Yg(t,i),Xg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var sa=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>N(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=sa(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=sa(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=J(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let x=`@media (prefers-color-scheme: ${p})`;o[x]||(o[x]={}),o[x][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=J(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},ca=(t,e,r,n)=>{let o=C(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&N(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=sa(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=ca(l,e,c,n||u)}else if(!a){let u=J(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(y(t)&&nt(t)){let f=o.theme[t.slice(2)];return Yt(f,n)}return i},Pf=t=>{let e=C(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=Pf(t[n]))}else r[n]=t[n]}return r},Nf=(t,e)=>{let r=e.shift();return t[r]?Nf(t[r],e):t},If=(t,e)=>S(e)?Nf(t,e):y(e)&&t[e]?t[e]:t;var Yt=(t,e)=>{let r=C();if(y(t)&&nt(t)&&(t=Yt(t.slice(2))),!t||!y(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=S(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=If(s,o):s&&e&&(s=If(s,e)),Pf(s)};v();var la=(t,e)=>{let r=C(),n=`--font-${e}`;if(!t||S(t)&&!t[0])return;let o;if(t.isVariable){let s=Ie(t.url,r.files)||t.url;lo(s)?o=fo(s):o=gr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=cn(e,t,r.files);else{let s=Ie(t.url,r.files)||t.url;o=gr(e,s)}return{var:n,value:t,fontFace:o}},fa=(t,e)=>{let r=C(),{font_family:n}=r;return an(e||n,t)},yo=(t,e)=>{let r=C(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=ln(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Df=t=>{let e=C(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){br(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Kt(i),br(t,o)}},Ff=t=>{let e=C();if(t.h1Matches){let r=t.unit,n=ra(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},ua=()=>{let t=C(),{typography:e}=t;Kt(e),Ff(e),$e(e),Df(e)},pa=t=>{let e=C(),{typography:r}=e;return be(t,"fontSize",r)};v();var Qg=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Kt(r),br(t,e)}},da=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},ha=()=>{let t=C(),{spacing:e}=t;Kt(e),$e(e),Qg(e)},Jg=t=>{let e=C(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Kt(t)},at=(t,e="padding",r,n)=>{let o=Jg(r);if(y(t)&&!n&&t.includes("(")){let i=Fe(t);n=i[0],t=i[1]}let s=n?[t]:ln(t);if(S(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>be(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return be(t,e,o,n)}},Le=(t,e,r,n)=>{let o=C(),{spacing:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=Fe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},ma=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=on.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var wr=(t,e,r,n)=>{let o=C();if(S(t))return{"@light":wr(t[0],e,"light"),"@dark":wr(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=wr(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Zt.test(t)&&(t=mr(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=J(a);if(ye(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},ga=(t,e)=>{let r=C();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let[n]=S(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ya=()=>{let t=C(),{timing:e}=t;Kt(e),$e(e)},Dt=t=>{let e=C(),{timing:r}=e;return r[t]||r[Hi(t)]||t},Ut=(t,e="timing")=>{let r=C(),{timing:n}=r;return be(t,e,n)};v();var ba=()=>{let t=C(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:an(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var xa={document:L},bo=(t,e)=>{let r=C();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?oa(e,t):t},Sa=(t,e=xa)=>{let r=C(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Lf(n,e)},_a=(t,e)=>{let r=C();return r.useIconSprite&&!r.semantic_icons?.[e]?bo(t,e):t},wa=(t,e=xa)=>{let r=C(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Lf(n,e)},$f=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Lf=(t,e=xa)=>{let r=C(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),mo(t);let o=n.querySelector("#svgSprite"),s=mo(t);if(o){let i=$f({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=$f();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var va=(t={})=>{let e=C(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Yt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Yt("document"):{};return r.html&&it(r.html,a),U(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize: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+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var Zg=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),ty=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),ey=t=>Zg.has(t),xe=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(nt(o))return`var(${o})`;if(ey(o)||/^\d/.test(o)||o==="0")return o;let s=J(o);if(ye(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Mf=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(nt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=J(e);return ye(r)?r:e}).join(" "),Bf=(t,e)=>ga(t,e),Ea=(t,e)=>Zt.test(t)?t:mr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(nt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=J(n);if(ye(o)){let i=Ct(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Ca=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=mr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||ty.has(l)||l==="transparent"||Zt.test(l))return l;let u=J(l);return ye(u)?u:l}).join(" ")));return n+a.join(", ")+s},Uf=(t,e)=>{let r=C();return t.split(", ").map(n=>nt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Ca(n,e):r.gradient[t]?{backgroundImage:Ct(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!hr(n)?`url(${n})`:n).join(" ")},Vf=t=>y(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),ry=t=>{let e=t.split(" ");return e.length?e.map(r=>nt(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:Dt(r)?Dt(r):r).join(" "):t},vr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},So=t=>{let e=t.split(",");if(e.length)return e.map(ry).join(",")};function ot(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(y(o)){if(o.includes("(")){let c=Fe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=da(t);!i&&a&&!n.ratio&&(o=ma(o))}return n.ratio?Le(r,t,o,s):at(o,t,void 0,s)}var V=(t,e=null,r)=>ot(t,e,r,{ratio:!0}),ka=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Le(e,r,n)[r]).join(" ")}};v();var ny=(t,e)=>b(t)?t():t,Ft=(t,e)=>t,jf={color:Sr,gradient:_r,font:la,font_family:yo,fontfamily:yo,theme:aa,icons:_a,semantic_icons:Ft,semanticicons:Ft,svg:bo,svg_data:Ft,typography:Ft,cases:ny,shadow:wr,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft},oy=(t,e,r)=>{let n=C(),o=t.toLowerCase(),s=n[o]||n[t];if(jf[o])try{let i=jf[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},sy=(t,e)=>{let r=C(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return oy(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},iy={},dn=(t,e=iy)=>{let r=C(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:x,..._}=t;e.newConfig&&(r=Of(e.newConfig)),x!==void 0&&(r.files=x),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let E=Object.keys(_),R=new Set(E);if(E.forEach(T=>{let A=T.toLowerCase();A!==T&&R.has(A)&&U(_[A],_[T])}),E.map(T=>{let A=T.toLowerCase();if(!(A!==T&&R.has(A)))return sy(T,_[T])}),_.typography||_.TYPOGRAPHY)try{ua()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(_.spacing||_.SPACING)try{ha()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(_.timing||_.TIMING)try{ya()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}return ba(),va(),r};var ay=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],cy=["none","forwards","backwards","both"],ly=["normal","reverse","alternate","alternate-reverse"],fy=["running","paused"],uy=t=>/^[\d.]+m?s$/.test(t),Oa=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||Et;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},py=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:uy(u)?s.push(u):ay.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):ly.includes(u)?c=u:cy.includes(u)?f=u:fy.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},zf={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=py(t,e);return{animationName:Oa(r.name||t,e),animationDuration:r.durations[0]||Ut(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dt(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Oa(t,e),animationDuration:Ut(e.props.animationDuration||"A").timing,animationDelay:Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:Dt(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Oa(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Dt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var qf={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>V("height",t,e),width:(t,{props:e})=>V("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("height",e),...ot("width",r||e)}},inlineSize:(t,{props:e})=>V("inlineSize",t,e),blockSize:(t,{props:e})=>V("blockSize",t,e),minWidth:(t,{props:e})=>V("minWidth",t,e),maxWidth:(t,{props:e})=>V("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minWidth",e),...ot("maxWidth",r||e)}},minHeight:(t,{props:e})=>V("minHeight",t,e),maxHeight:(t,{props:e})=>V("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minHeight",e),...ot("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...V("inlineSize",e),...V("blockSize",r||e)}},minBlockSize:(t,{props:e})=>V("minBlockSize",t,e),minInlineSize:(t,{props:e})=>V("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>V("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>V("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minInlineSize",e),...ot("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("maxInlineSize",e),...ot("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>V("borderWidth",t,e),padding:(t,{props:e})=>V("padding",t,e),scrollPadding:(t,{props:e})=>V("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>V("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>V("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>V("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>V("paddingInlineEnd",t,e),margin:(t,{props:e})=>V("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("marginInlineStart",e),...ot("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ot("marginBlockStart",r),...ot("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>V("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>V("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>V("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>V("marginBlockEnd",t,e),gap:t=>({gap:Vf(t)}),columnGap:(t,{props:e})=>Le(e,"columnGap",t),rowGap:(t,{props:e})=>Le(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!y(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>ka(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>ka(t||e.round,e,"borderRadius")};var Hf={fontSize:t=>pa(t)||t,fontFamily:t=>({fontFamily:fa(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Aa={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Wf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var Vt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Gf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Yt(t,`@${r.themeModifier}`):Yt(t)},color:(t,e)=>{let r=Vt(e);if(t)return{color:Ct(t,r)}},background:(t,e)=>{let r=Vt(e);if(t)return y(t)&&t.includes("gradient")?{background:Ca(t,r)}:{background:Ct(t,r)}},backgroundColor:(t,e)=>{let r=Vt(e);if(t)return{backgroundColor:Ct(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Vt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Uf(t,o)}},textStroke:t=>({WebkitTextStroke:Mf(t)}),outline:t=>({outline:xe(t)}),outlineOffset:(t,{props:e})=>V("outlineOffset",t,e),border:t=>({border:xe(t)}),borderColor:(t,e)=>{let r=Vt(e);if(t)return{borderColor:Ct(t,r)}},borderTopColor:(t,e)=>{let r=Vt(e);if(t)return{borderTopColor:Ct(t,r)}},borderBottomColor:(t,e)=>{let r=Vt(e);if(t)return{borderBottomColor:Ct(t,r)}},borderLeftColor:(t,e)=>{let r=Vt(e);if(t)return{borderLeftColor:Ct(t,r)}},borderRightColor:(t,e)=>{let r=Vt(e);if(t)return{borderRightColor:Ct(t,r)}},borderLeft:t=>({borderLeft:xe(t)}),borderTop:t=>({borderTop:xe(t)}),borderRight:t=>({borderRight:xe(t)}),borderBottom:t=>({borderBottom:xe(t)}),shadow:(t,e)=>{let r=Vt(e);if(t)return{boxShadow:Bf(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=Vt(e),s=n?" !important":"";return{boxShadow:Ea(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Ea(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:xe(t)})};var Kf={transition:t=>({transition:So(t)}),transitionDuration:t=>({transitionDuration:vr(t)}),transitionDelay:t=>({transitionDelay:vr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var Yf={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!y(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Xf={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var hn={...zf,...qf,...Hf,...Aa,...Aa,...Wf,...Gf,...Kf,...Yf,...Xf};var Qf=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"]);var dy=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Xt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Jf=(t,e,r)=>({[t]:Xt(e,r)}),mn=(t,e,r)=>({[`&${t}`]:Xt(e,r)}),hy=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Xt(e,r)},my=(t,e,r)=>({[t]:e}),gy=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Xt(e,r)},yy=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Xt(e,r)},Zf=(t,e)=>Xt(t,e),tu={"@":dy,":":mn,"[":mn,"*":mn,"+":mn,"~":mn,"&":Jf,">":Jf,$:hy,"-":my,".":gy,"!":yy};var Ta=Ke(),by=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,Zf(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=b(c)?c(e,e.state,e.context):c;f&&s(i,f),!Ta&&g(n[i])&&(n[i].label=i)}else if(hn[i]){let c=O(a,e);S(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=hn[i](c,e,e.state,e.context);S(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Ta&&g(n[i])&&(n[i].label=i)}else if(Qf.has(i)){let c=O(a,e);s(i,{[i]:c}),!Ta&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},xy=(t,e)=>{let r={};for(let n in t){let o=tu[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?it(r[i],s[i]):r[i]=s[i])}}return r},Xt=(t,e,r={unpack:!0})=>{let[n,o]=by(t,e,r),s=xy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fe(n,s);n._selectors=s}return n},Dk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:Sy}=Et,Mk=(t,e)=>b(e)?e(t):Sy(t);var eu={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},ru={};var _y={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},wy={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},vy={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},nu={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},..._y,...wy,...vy,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var ou={base:16,ratio:1.25,subSequence:!0,templates:{}};var su={ratio:1.618,subSequence:!0};var iu={},au={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var cu={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 lu={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ra={version:"0.0.1",color:eu,gradient:ru,theme:nu,typography:ou,spacing:su,font:iu,font_family:au,timing:lu,media:cu,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var Be={};Mt(Be,{A:()=>$x,Avatar:()=>Qx,B:()=>ab,Block:()=>Ey,Box:()=>Pa,Br:()=>pb,Button:()=>Bx,ButtonSet:()=>zx,Caption:()=>Jy,Checkbox:()=>_b,CheckboxHgroup:()=>wb,CircleButton:()=>Vx,Clickable:()=>$y,Data:()=>lb,Dialog:()=>Hx,DialogFooter:()=>Gx,DialogHeader:()=>Wx,DropdownList:()=>Zx,DropdownParent:()=>tS,DropdownParentFocus:()=>eS,DropdownSiblingFocus:()=>rS,FileIcon:()=>Ib,Flex:()=>ky,Focusable:()=>Ly,FocusableComponent:()=>My,Footnote:()=>ib,Form:()=>Py,Grid:()=>Ay,Gutter:()=>Ry,H1:()=>Hy,H2:()=>Wy,H3:()=>Gy,H4:()=>Ky,H5:()=>Yy,H6:()=>Xy,Headline:()=>ob,Hgroup:()=>gb,HgroupButton:()=>bb,HgroupRows:()=>yb,Hoverable:()=>Fy,Hr:()=>ub,I:()=>cb,Icon:()=>Tb,IconButton:()=>qx,IconText:()=>Rb,Iframe:()=>Ny,Img:()=>Iy,Inline:()=>Cy,InlineFlex:()=>Oy,InlineGrid:()=>Ty,Input:()=>xb,Italic:()=>rb,KangorooButton:()=>jx,Li:()=>db,Link:()=>Gu,Notification:()=>nS,NumberInput:()=>Sb,Ol:()=>mb,P:()=>Qy,Picture:()=>Vy,Radio:()=>vb,RadioHgroup:()=>Eb,Range:()=>Jx,RouteLink:()=>Lx,RouterLink:()=>Ku,SHAPES:()=>By,Select:()=>Mx,SquareButton:()=>Ux,Strong:()=>Zy,Subhead:()=>sb,Svg:()=>jy,Text:()=>qy,Textarea:()=>Ob,TextareaWithButton:()=>Ab,Theme:()=>Uy,Title:()=>nb,Toggle:()=>Cb,ToggleHgroup:()=>kb,Tooltip:()=>Kx,TooltipHidden:()=>Yx,TooltipParent:()=>Xx,U:()=>tb,Ul:()=>hb,Underline:()=>eb,Video:()=>zy,depth:()=>Ia,getSystemGlobalTheme:()=>wo});var Ey={display:"block"},Cy={display:"inline"},ky={display:"flex"},Oy={display:"inline-flex"},Ay={display:"grid"},Ty={display:"inline-grid"},Ry={boxSize:"C1"};var Iy={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+Wt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var Py={tag:"form"};var Ny={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var Dy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},Fy={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}}},$y={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},Ly={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},My={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Dy};var fu={transition:t=>({transition:So(t)}),transitionDuration:t=>({transitionDuration:vr(t)}),transitionDelay:t=>({transitionDelay:vr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var $t=C(),Ia={4:{boxShadow:`rgba(0,0,0,.10) 0 2${$t.UNIT.default} 4${$t.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${$t.UNIT.default} 6${$t.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${$t.UNIT.default} 10${$t.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${$t.UNIT.default} 16${$t.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${$t.UNIT.default} 26${$t.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${$t.UNIT.default} 42${$t.UNIT.default}`}},Er=({props:t})=>J(t.shapeDirectionColor)||J(t.borderColor)||J(t.backgroundColor)||J(t.background),_o=({props:t,deps:e})=>{let r=fu.transition(t.transition,{props:t,deps:e});return r&&r.transition},By={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Er({props:t,deps:e}),transition:_o({props:t,deps: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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Er({props:t,deps:e}),transition:_o({props:t,deps: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:({props:t,deps: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:Er({props:t,deps:e}),transition:_o({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:_o({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Er({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Er({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Er({props:t,deps: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)"}}}};v();var wo=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Uy={deps:{depth:Ia},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var Vy={deps:{getSystemGlobalTheme:wo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:wo},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var jy={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var zy={tag:"video",controls:!0,childExtends:{tag:"source"}};var qy={},Hy={tag:"h1"},Wy={tag:"h2"},Gy={tag:"h3"},Ky={tag:"h4"},Yy={tag:"h5"},Xy={tag:"h6"},Qy={tag:"p"},Jy={tag:"caption"},Zy={tag:"strong",fontWeight:"700"},tb={tag:"u"},eb={tag:"u"},rb={tag:"i"},nb={},ob={tag:"h6",fontSize:"B",fontWeight:500},sb={tag:"span",fontSize:"Z1"},ib={tag:"span",fontSize:"Z"},ab={tag:"b"},cb={tag:"i"},lb={tag:"data"};var fb=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Xt(e,t,{unpack:!1});r.__class=n},Pa={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:fb},ub={tag:"hr",margin:"C1 0"},pb={tag:"br"},db={tag:"li"},hb={tag:"ul",childExtends:{extends:"Li"}},mb={tag:"ol",childExtends:{extends:"Li"}};var gb={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},yb={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},bb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var xb={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var Sb={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var _b={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:t=>t.call("exec",t.parent.props.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"}}},wb={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var vb={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}},Eb={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Cb={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}},kb={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Ob={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Ab={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 Tb={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=A=>{let{props:k}=A,$=k[".isActive"];if($)return A.call("exec",$.name||$.icon)},l=(A,k,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:D}=$&&$.utils,j=u(A,k),tt=D(j).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:j.split(".")[0].split(" ")[0],_t=P&&P[pt];if(_t){let Lt=j.includes(".")?"sfsymbols."+j.split(".").slice(1).join("."):"sfsymbols";return j=_t[Lt]||_t[j.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${j}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(A,k)=>{let{key:$,props:P}=A,D=A.call("exec",P.name||P.icon||$,A);return A.call("isString",D)&&D.includes("{{")&&(D=A.call("replaceLiteralsWithObjectFields",D)),A.call("isString",D)?D:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let x;n.isActive&&(x=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(x=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",x)&&x.includes("{{")&&(x=t.call("replaceLiteralsWithObjectFields",x));let E;s[x]&&(E=x),s[d]?E=d:s[h[0]+h[1]]?E=h[0]+h[1]:s[h[0]]?E=h[0]:a&&t.warn("Can't find icon:",p,E);let R=s[E],T=o&&o.props&&o.props.src||n.src;return{spriteId:i&&E,src:R||T||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Rb={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Ib={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Ya={};Mt(Ya,{default:()=>Fx,getActiveRoute:()=>Ka,lastLevel:()=>Po,lastPathname:()=>Io,matchRoute:()=>Ha,parseQuery:()=>Wa,parseRoutePattern:()=>qa,router:()=>ne,runGuards:()=>Ga});v();v();v();v();v();var Pb=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Nb=(t,e,r,n)=>{let o=Xe(Pb(t,e),e);if(b(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},uu=(t,e)=>{let{node:r,on:n}=t;for(let o in n)as.has(o)||Nb(o,t,r,e)};var pu={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=pu.en[t]);let s=o?`
|
|
30
|
+
}<\/script>`};v();var gt=t=>{if(t==null)return"";let e={"&":"&","<":"<",">":">",'"':""","'":"'"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Hi=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${gt(r)}"`).join(" "),Ym=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${gt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${gt(s)}">`:`<link ${Hi({rel:"icon",...s})}>`).join(`
|
|
31
|
+
`):`<link ${Hi({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${gt(t.title||"Test")}</title>`,'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">','<meta name="robots" content="noindex">','<meta name="apple-mobile-web-app-capable" content="yes">',n].join(`
|
|
32
|
+
`)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${gt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${gt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${gt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="string")n.push(`<link rel="icon" href="${gt(l)}">`);else if(typeof l=="object"){let u=Hi(l);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="object"){let u=Object.entries(l).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${gt(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(f,l,u="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${gt(f)}" content="${gt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${gt(m)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof l=="object"){let p=Object.entries(l).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${gt(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");return i(f,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");return i(f,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>o.startsWith(f));if(c){let f=o.replace(c,"");return i(`${c.replace(":","")}:${f}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let f=o.startsWith("apple:")?"apple-":"msapplication-",l=o.replace(/^apple:|^msapplication:/,"");return i(`${f}${l}`,s,"name"),n}return i(o,s),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(`
|
|
33
|
+
`)},Xm=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Qm(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!Xm(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function mo(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function Jm(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},f={...t};for(let[l,u]of Object.entries(f))typeof u!="string"||!u.includes("{{")||(f[l]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let m=d.trim();if(h==="polyglot")return a[m]??mo(a,m)??p;if(h==="getLocalStateLang")return mo(c,m+s)??p;let S=mo(c,m);return S!==void 0?S:a[m]??mo(a,m)??p}));return f}function Of(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Zm(t,e,r){let n=t.pages?.[e],o=g(n?.state)&&n?.state,s=n?.metadata||n?.helmet||o||{},i=Of(s),a=new Set(Object.keys(i)),c=t.app?.metadata||{},f=Of(c),l={};t.integrations?.seo?l={...t.integrations.seo,...f,...i}:Object.keys(f).length?l={...f,...i}:l={...i},l.title||(l.title=t.name+" / symbo.ls"||"Symbols demo"),l=Jm(l,t,r),l.title&&(a.has("title")||!l["og:title"])&&(a.has("og:title")||(l["og:title"]=l.title)),l.description&&(a.has("description")||!l["og:description"])&&(a.has("og:description")||(l["og:description"]=l.description)),l.title&&!l["twitter:title"]&&(l["twitter:title"]=l.title),l.description&&!l["twitter:description"]&&(l["twitter:description"]=l.description);let u=r?.actualPathname||e;if(l["og:url"]||l.url){let d=(l["og:url"]||l.url||"").replace(/\/$/,"");if(d&&u&&u!=="/"){let h=u.startsWith("/")?u:"/"+u;l["og:url"]=d+h}}l=Qm(l,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[d,h]of Object.entries(l))if(typeof h=="string"&&h.includes("{{")){let m=h.replace(/\{\{[^}]*\}\}/g,"").trim();m?l[d]=m:d==="title"?l[d]=p:delete l[d]}return l}var tg=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},eg=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},rg=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Wi=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),ng=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Gi=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),og=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},ln=t=>{if(x(t))return t;if(y(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Yi={};Mt(Yi,{CLASS:()=>Ng,animation:()=>kg,breakpoints:()=>vg,cases:()=>Cg,color:()=>hg,devices:()=>Eg,document:()=>wg,font:()=>ag,font_face:()=>fg,font_family:()=>cg,font_family_types:()=>lg,gradient:()=>mg,grid:()=>Ig,icons:()=>bg,media:()=>ug,reset:()=>Dg,semantic_icons:()=>Sg,sequence:()=>Pe,shadow:()=>yg,spacing:()=>dg,svg:()=>Og,svg_data:()=>Ag,templates:()=>Tg,theme:()=>gg,timing:()=>_g,typography:()=>Ki,unit:()=>sg});var Pe={"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 sg={default:"em"};var ig={browserDefault:16,base:16,type:"font-size",ratio:Pe["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ki=ig;var ag={};var cg={},lg={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},fg={};var ug={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var pg={base:Ki.base,type:"spacing",ratio:Pe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},dg=pg;var hg={},mg={};var gg={};var yg={};var bg={},Sg={};var xg={default:150,base:150,type:"timing",ratio:Pe["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},_g=xg;var wg={};var vg={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Eg={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 Cg={};var kg={};var Og={},Ag={};var Tg={};var Rg={},Ig=Rg;var Pg={},Ng=Pg;var Dg={};var Fg={},$g={},fn=Yi,un={},Lg=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Mg=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in fn){let e=t.toLowerCase();un[e]=fn[t];let r=Lg(e);r!==e&&(un[r]=fn[t]),e!==t&&(un[t]=fn[t]);let n=Mg(t);n!==t&&(un[n]=fn[t])}var Xi={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Fg,CSS_MEDIA_VARS:$g,...un},Bg=z(Xi),Ne={active:"0",0:Xi},eE=t=>(Ot(t)&&(Ne.active=t),Ne[t||Ne.active]),C=t=>Ne[t||Ne.active]||Xi,Af=t=>{if(g(t))return Ne.active="1",Ne[1]=U(t,z(Bg)),t};var De={"-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"},Qi=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},Fe=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Ji=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(nn(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=De[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=De[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},Tf=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Zi=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},ta=(t,e)=>Zi(t,e).map(r=>r/t),ea=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Zi(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let S=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,E=Tf(m+1,l,i,e),R={key:r+(m+1),variable:_,value:h,scaling:S,scalingVariable:E,index:w};Qi(R,e)})},Ug=(t,e,r)=>e*Math.pow(r,t),Kt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=De[f],u=Ug(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Ji(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Qi(m,t),s&&ea(m,t)}return t},Vg=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=y(e)?e:De[e],a=y(e)?Object.entries(De).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Ji(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Qi(h,c),s&&ea(h,c),c},ra=(t="A",e)=>{let r=C(),{unit:n}=r;if(y(t)&&nt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(on.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Gi(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let S=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,E]=h.split("+"),R=`${S(w)} + ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("*")){let[w,E]=h.split("*"),R=`${S(w)} * ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("-")){let[w,E]=h.split("-"),R=`${S(w)} - ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},Rf=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ra(i,e)).join(" "+n+" ")).join(""):t},be=(t,e,r,n)=>{if(typeof t!="string")return C().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Fe(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Rf(t,r):t=ra(t,r),{[e]:n?`${n}(${t})`:t}},If=(t,e)=>De[t-e],na=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=If(e,o);return r[s]})};v();var jg=(t,e)=>{let r=C(),{CSS_VARS:n}=r;N(t.value)||(n[t.var]=t.value)},oa=(t,e,r)=>{let n=C(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=ta(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},$e=(t,e={})=>{let r=C(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||oa(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},br=(t,e,r={})=>{let n=C(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),oa(d,t[e],r);return}for(let d in l){let h=l[d],m=(nn(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let S=i[`@media ${p}`];S||(S=i[`@media ${p}`]={}),S[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var zg=Br(),go=t=>{let e=C(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},qg=t=>{let e=t.default||t;if(!y(e)){zg&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},Hg=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return x(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},sa=(t,e)=>{let r=qg(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=Hg(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var xo={};Mt(xo,{appendSVGSprite:()=>_a,appendSvgIconsSprite:()=>va,applyDocument:()=>Sa,applyHeadings:()=>$f,applyReset:()=>Ea,applySpacingSequence:()=>ma,applyTimingSequence:()=>ba,applyTypographySequence:()=>pa,checkIfBoxSize:()=>ha,getColor:()=>J,getFontFamily:()=>ua,getFontSizeByKey:()=>da,getMediaColor:()=>Ct,getMediaTheme:()=>Yt,getShadow:()=>ya,getSpacingBasedOnRatio:()=>Le,getSpacingByKey:()=>at,getTheme:()=>aa,getTimingByKey:()=>Ut,getTimingFunction:()=>Dt,runThroughMedia:()=>Ff,setColor:()=>xr,setFont:()=>fa,setFontFamily:()=>bo,setGradient:()=>_r,setMediaTheme:()=>la,setSVG:()=>So,setShadow:()=>wr,setSvgIcon:()=>wa,setTheme:()=>ca,splitSpacedValue:()=>ga});v();var J=(t,e,r)=>{let n=r||C();if(!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(x(t))[o,s,i]=t;else{let u=hr(t);if(!u)return t;if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=sn(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Ct=(t,e,r)=>{let n=r||C();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!y(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let o;if(x(t))o=t[0];else{let f=hr(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return J(t,`@${e}`,r);if(c){if(e)return J(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=J(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},xr=(t,e,r)=>{let n=C();if(y(t)&&nt(t)){let d=t.slice(2);if(t=J(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let S=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(S=sn(S,w)),t=`rgba(${S}, ${_})`}else{let S=h[2],_=h[1]!==void 0?h[1]:"1";if(S)try{let w=ge(h[0]);w&&w.length>=3?t=`rgba(${sn(w.slice(0,3).join(", "),S)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(x(t))return{"@light":xr(t[0],e,"light"),"@dark":xr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=xr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ge(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},_r=(t,e,r)=>{let n=C();if(y(t)&&nt(t)&&(t=J(t.slice(2))),x(t))return{"@light":_r(t[0],e,"light"),"@dark":_r(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=_r(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var yo=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?J(t[a]):t[a]}),e},pn=t=>(t.value||(t.value=yo(t)),t.value),aa=(t,e)=>{let r=C();if(r.useVariable)return Yt(t,e);let n=r.theme;if(y(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return pn(i);t=[o,s||e]}}if(N(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return pn(a[s]);if(i&&i[s])return pn(i[s]);if(c&&c[s])return pn(c[s])}else if(g(t))return yo(t)},Wg=(t,e,r)=>{if(g(e))t.variants.inverse.value=yo(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Gg=(t,e,r,n)=>{let o=aa(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},Kg=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Gg(t,o,s,e),t}),t):void 0},Yg=(t,e,r,n)=>{let o=aa(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},Xg=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Yg(t,o,s,e),o==="inverse"&&Wg(t,s,e),t}),t):void 0},Qg=(t,e)=>{let r=C(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return y(i)?n[s]=r.theme[i]:pn(n[s]),t}),t):void 0},ca=(t,e)=>{if(C().useVariable)return la(t,e);let{state:n,media:o,helpers:s}=t,i=yo(t,e),a=`--theme-${e}`;return Kg(t,i),Xg(t,i),Qg(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var ia=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>N(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=ia(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)N(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=ia(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=J(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let S=`@media (prefers-color-scheme: ${p})`;o[S]||(o[S]={}),o[S][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=J(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},la=(t,e,r,n)=>{let o=C(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(N(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&N(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=ia(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=la(l,e,c,n||u)}else if(!a){let u=J(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(y(t)&&nt(t)){let f=o.theme[t.slice(2)];return Yt(f,n)}return i},Nf=t=>{let e=C(),r={};for(let n in t){let o=n.slice(0,1);if(N(t[n])){if(o==="@")continue;o===":"&&(r[`&${n}`]=Nf(t[n]))}else r[n]=t[n]}return r},Df=(t,e)=>{let r=e.shift();return t[r]?Df(t[r],e):t},Pf=(t,e)=>x(e)?Df(t,e):y(e)&&t[e]?t[e]:t;var Yt=(t,e)=>{let r=C();if(y(t)&&nt(t)&&(t=Yt(t.slice(2))),!t||!y(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=x(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Pf(s,o):s&&e&&(s=Pf(s,e)),Nf(s)};v();var fa=(t,e)=>{let r=C(),n=`--font-${e}`;if(!t||x(t)&&!t[0])return;let o;if(t.isVariable){let s=Ie(t.url,r.files)||t.url;fo(s)?o=uo(s):o=gr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=cn(e,t,r.files);else{let s=Ie(t.url,r.files)||t.url;o=gr(e,s)}return{var:n,value:t,fontFace:o}},ua=(t,e)=>{let r=C(),{font_family:n}=r;return an(e||n,t)},bo=(t,e)=>{let r=C(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=ln(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Ff=t=>{let e=C(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let S=n[c],_="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){br(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Kt(i),br(t,o)}},$f=t=>{let e=C();if(t.h1Matches){let r=t.unit,n=na(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},pa=()=>{let t=C(),{typography:e}=t;Kt(e),$f(e),$e(e),Ff(e)},da=t=>{let e=C(),{typography:r}=e;return be(t,"fontSize",r)};v();var Jg=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Kt(r),br(t,e)}},ha=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},ma=()=>{let t=C(),{spacing:e}=t;Kt(e),$e(e),Jg(e)},Zg=t=>{let e=C(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Kt(t)},at=(t,e="padding",r,n)=>{let o=Zg(r);if(y(t)&&!n&&t.includes("(")){let i=Fe(t);n=i[0],t=i[1]}let s=n?[t]:ln(t);if(x(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>be(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return be(t,e,o,n)}},Le=(t,e,r,n)=>{let o=C(),{spacing:s}=o,i=r||t[e];if(!n&&y(i)&&i.includes("(")){let a=Fe(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},ga=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=on.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var wr=(t,e,r,n)=>{let o=C();if(x(t))return{"@light":wr(t[0],e,"light"),"@dark":wr(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=wr(t[a],e,a.startsWith("@")?a.slice(1):a);return i}y(t)&&!Zt.test(t)&&(t=mr(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=J(a);if(ye(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},ya=(t,e)=>{let r=C();if(e||(e=r.globalTheme),!y(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(nt(t))return`var(${t})`;let[n]=x(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var ba=()=>{let t=C(),{timing:e}=t;Kt(e),$e(e)},Dt=t=>{let e=C(),{timing:r}=e;return r[t]||r[Wi(t)]||t},Ut=(t,e="timing")=>{let r=C(),{timing:n}=r;return be(t,e,n)};v();var Sa=()=>{let t=C(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:an(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var xa={document:L},So=(t,e)=>{let r=C();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?sa(e,t):t},_a=(t,e=xa)=>{let r=C(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Mf(n,e)},wa=(t,e)=>{let r=C();return r.useIconSprite&&!r.semantic_icons?.[e]?So(t,e):t},va=(t,e=xa)=>{let r=C(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Mf(n,e)},Lf=(t={isRoot:!0})=>{if(!L||!L.createElementNS)return;let e=L.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Mf=(t,e=xa)=>{let r=C(),n=e.document||L;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),go(t);let o=n.querySelector("#svgSprite"),s=go(t);if(o){let i=Lf({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=Lf();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var Ea=(t={})=>{let e=C(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?Yt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Yt("document"):{};return r.html&&it(r.html,a),U(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize: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+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var ty=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),ey=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),ry=t=>ty.has(t),Se=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(nt(o))return`var(${o})`;if(ry(o)||/^\d/.test(o)||o==="0")return o;let s=J(o);if(ye(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Bf=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(nt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=J(e);return ye(r)?r:e}).join(" "),Uf=(t,e)=>ya(t,e),Ca=(t,e)=>Zt.test(t)?t:mr(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(nt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=J(n);if(ye(o)){let i=Ct(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),ka=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=mr(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||ey.has(l)||l==="transparent"||Zt.test(l))return l;let u=J(l);return ye(u)?u:l}).join(" ")));return n+a.join(", ")+s},Vf=(t,e)=>{let r=C();return t.split(", ").map(n=>nt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?ka(n,e):r.gradient[t]?{backgroundImage:Ct(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!hr(n)?`url(${n})`:n).join(" ")},jf=t=>y(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),ny=t=>{let e=t.split(" ");return e.length?e.map(r=>nt(r)?`var(${r})`:r.length<3||r.includes("ms")?Ut(r).timing||r:Dt(r)?Dt(r):r).join(" "):t},vr=(t,e,r)=>{if(y(t))return t.split(",").map(n=>Ut(n).timing||n).join(",")},_o=t=>{let e=t.split(",");if(e.length)return e.map(ny).join(",")};function ot(t,e,r={},n={}){let o=O.call(this,e||r[t]);if(o==null)return;let s;if(y(o)){if(o.includes("(")){let c=Fe(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=ha(t);!i&&a&&!n.ratio&&(o=ga(o))}return n.ratio?Le(r,t,o,s):at(o,t,void 0,s)}var V=(t,e=null,r)=>ot(t,e,r,{ratio:!0}),Oa=(t,e,r)=>{if(y(t))return{borderRadius:t.split(" ").map((n,o)=>Le(e,r,n)[r]).join(" ")}};v();var oy=(t,e)=>b(t)?t():t,Ft=(t,e)=>t,zf={color:xr,gradient:_r,font:fa,font_family:bo,fontfamily:bo,theme:ca,icons:wa,semantic_icons:Ft,semanticicons:Ft,svg:So,svg_data:Ft,typography:Ft,cases:oy,shadow:wr,spacing:Ft,media:Ft,grid:Ft,class:Ft,timing:Ft,reset:Ft,unit:Ft,animation:Ft},sy=(t,e,r)=>{let n=C(),o=t.toLowerCase(),s=n[o]||n[t];if(zf[o])try{let i=zf[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},iy=(t,e)=>{let r=C(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return sy(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]};var ay={},dn=(t,e=ay)=>{let r=C(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:S,..._}=t;e.newConfig&&(r=Af(e.newConfig)),S!==void 0&&(r.files=S),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let E=Object.keys(_),R=new Set(E);if(E.forEach(T=>{let A=T.toLowerCase();A!==T&&R.has(A)&&U(_[A],_[T])}),E.map(T=>{let A=T.toLowerCase();if(!(A!==T&&R.has(A)))return iy(T,_[T])}),_.typography||_.TYPOGRAPHY)try{pa()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(_.spacing||_.SPACING)try{ma()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(_.timing||_.TIMING)try{ba()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}return Sa(),Ea(),r};var cy=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],ly=["none","forwards","backwards","both"],fy=["normal","reverse","alternate","alternate-reverse"],uy=["running","paused"],py=t=>/^[\d.]+m?s$/.test(t),Aa=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||Et;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},dy=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:py(u)?s.push(u):cy.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):fy.includes(u)?c=u:ly.includes(u)?f=u:uy.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},qf={animation:(t,e)=>{if(y(t)&&t.includes(" ")){let r=dy(t,e);return{animationName:Aa(r.name||t,e),animationDuration:r.durations[0]||Ut(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Dt(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Aa(t,e),animationDuration:Ut(e.props.animationDuration||"A").timing,animationDelay:Ut(e.props.animationDelay||"0s").timing,animationTimingFunction:Dt(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Aa(t,e)}),animationDuration:t=>({animationDuration:Ut(t).timing}),animationDelay:t=>({animationDelay:Ut(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Dt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var Hf={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>V("height",t,e),width:(t,{props:e})=>V("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("height",e),...ot("width",r||e)}},inlineSize:(t,{props:e})=>V("inlineSize",t,e),blockSize:(t,{props:e})=>V("blockSize",t,e),minWidth:(t,{props:e})=>V("minWidth",t,e),maxWidth:(t,{props:e})=>V("maxWidth",t,e),widthRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minWidth",e),...ot("maxWidth",r||e)}},minHeight:(t,{props:e})=>V("minHeight",t,e),maxHeight:(t,{props:e})=>V("maxHeight",t,e),heightRange:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minHeight",e),...ot("maxHeight",r||e)}},size:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...V("inlineSize",e),...V("blockSize",r||e)}},minBlockSize:(t,{props:e})=>V("minBlockSize",t,e),minInlineSize:(t,{props:e})=>V("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>V("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>V("maxInlineSize",t,e),minSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("minInlineSize",e),...ot("minBlockSize",r||e)}},maxSize:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("maxInlineSize",e),...ot("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>V("borderWidth",t,e),padding:(t,{props:e})=>V("padding",t,e),scrollPadding:(t,{props:e})=>V("scrollPadding",t,e),paddingInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>V("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>V("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>V("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>V("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>V("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>V("paddingInlineEnd",t,e),margin:(t,{props:e})=>V("margin",t,e),marginInline:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{...ot("marginInlineStart",e),...ot("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!y(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ot("marginBlockStart",r),...ot("marginBlockEnd",n||r)}},marginInlineStart:(t,{props:e})=>V("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>V("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>V("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>V("marginBlockEnd",t,e),gap:t=>({gap:jf(t)}),columnGap:(t,{props:e})=>Le(e,"columnGap",t),rowGap:(t,{props:e})=>Le(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!y(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!y(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>Oa(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>Oa(t||e.round,e,"borderRadius")};var Wf={fontSize:t=>da(t)||t,fontFamily:t=>({fontFamily:ua(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ta={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Gf={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var Vt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Kf={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?Yt(t,`@${r.themeModifier}`):Yt(t)},color:(t,e)=>{let r=Vt(e);if(t)return{color:Ct(t,r)}},background:(t,e)=>{let r=Vt(e);if(t)return y(t)&&t.includes("gradient")?{background:ka(t,r)}:{background:Ct(t,r)}},backgroundColor:(t,e)=>{let r=Vt(e);if(t)return{backgroundColor:Ct(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Vt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Vf(t,o)}},textStroke:t=>({WebkitTextStroke:Bf(t)}),outline:t=>({outline:Se(t)}),outlineOffset:(t,{props:e})=>V("outlineOffset",t,e),border:t=>({border:Se(t)}),borderColor:(t,e)=>{let r=Vt(e);if(t)return{borderColor:Ct(t,r)}},borderTopColor:(t,e)=>{let r=Vt(e);if(t)return{borderTopColor:Ct(t,r)}},borderBottomColor:(t,e)=>{let r=Vt(e);if(t)return{borderBottomColor:Ct(t,r)}},borderLeftColor:(t,e)=>{let r=Vt(e);if(t)return{borderLeftColor:Ct(t,r)}},borderRightColor:(t,e)=>{let r=Vt(e);if(t)return{borderRightColor:Ct(t,r)}},borderLeft:t=>({borderLeft:Se(t)}),borderTop:t=>({borderTop:Se(t)}),borderRight:t=>({borderRight:Se(t)}),borderBottom:t=>({borderBottom:Se(t)}),shadow:(t,e)=>{let r=Vt(e);if(t)return{boxShadow:Uf(t,r)}},boxShadow:(t,e)=>{if(!y(t))return;let[r,n]=t.split("!importan"),o=Vt(e),s=n?" !important":"";return{boxShadow:Ca(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Ca(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:Se(t)})};var Yf={transition:t=>({transition:_o(t)}),transitionDuration:t=>({transitionDuration:vr(t)}),transitionDelay:t=>({transitionDelay:vr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var Xf={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!y(t))return;let[o,s]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var Qf={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var hn={...qf,...Hf,...Wf,...Ta,...Ta,...Gf,...Kf,...Yf,...Xf,...Qf};var Jf=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"]);var hy=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Xt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Zf=(t,e,r)=>({[t]:Xt(e,r)}),mn=(t,e,r)=>({[`&${t}`]:Xt(e,r)}),my=(t,e,r)=>{let{cases:n}=r.context?.designSystem||{},o=t.slice(1);if(!n?.[o]&&!r.props[o])return Xt(e,r)},gy=(t,e,r)=>({[t]:e}),yy=(t,e,r)=>{let n=t.slice(1);if(r.props[n]===!0||r.state[n]||r[n])return Xt(e,r)},by=(t,e,r)=>{let n=t.slice(1);if(!(r.props[n]===!0||r.state[n]||r[n]))return Xt(e,r)},tu=(t,e)=>Xt(t,e),eu={"@":hy,":":mn,"[":mn,"*":mn,"+":mn,"~":mn,"&":Zf,">":Zf,$:my,"-":gy,".":yy,"!":by};var Ra=Ke(),Sy=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=O(a,e);Y(n,tu(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=b(c)?c(e,e.state,e.context):c;f&&s(i,f),!Ra&&g(n[i])&&(n[i].label=i)}else if(hn[i]){let c=O(a,e);x(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=hn[i](c,e,e.state,e.context);x(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!Ra&&g(n[i])&&(n[i].label=i)}else if(Jf.has(i)){let c=O(a,e);s(i,{[i]:c}),!Ra&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},xy=(t,e)=>{let r={};for(let n in t){let o=eu[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?it(r[i],s[i]):r[i]=s[i])}}return r},Xt=(t,e,r={unpack:!0})=>{let[n,o]=Sy(t,e,r),s=xy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return fe(n,s);n._selectors=s}return n},Fk=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:_y}=Et,Bk=(t,e)=>b(e)?e(t):_y(t);var ru={transparent:"rgba(0, 0, 0, 0)",black:"black",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"]},nu={};var wy={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},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"},"@light":{color:"gray3",background:"gradient-dark"}}},vy={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Ey={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"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},ou={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...wy,...vy,...Ey,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var su={base:16,ratio:1.25,subSequence:!0,templates:{}};var iu={ratio:1.618,subSequence:!0};var au={},cu={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var lu={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 fu={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ia={version:"0.0.1",color:ru,gradient:nu,theme:ou,typography:su,spacing:iu,font:au,font_family:cu,timing:fu,media:lu,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},cases:{},class:{},svg:{},grid:{},shape:{}};var Be={};Mt(Be,{A:()=>LS,Avatar:()=>JS,B:()=>cb,Block:()=>Cy,Box:()=>Na,Br:()=>db,Button:()=>US,ButtonSet:()=>qS,Caption:()=>Zy,Checkbox:()=>wb,CheckboxHgroup:()=>vb,CircleButton:()=>jS,Clickable:()=>Ly,Data:()=>fb,Dialog:()=>WS,DialogFooter:()=>KS,DialogHeader:()=>GS,DropdownList:()=>tx,DropdownParent:()=>ex,DropdownParentFocus:()=>rx,DropdownSiblingFocus:()=>nx,FileIcon:()=>Pb,Flex:()=>Oy,Focusable:()=>My,FocusableComponent:()=>By,Footnote:()=>ab,Form:()=>Ny,Grid:()=>Ty,Gutter:()=>Iy,H1:()=>Wy,H2:()=>Gy,H3:()=>Ky,H4:()=>Yy,H5:()=>Xy,H6:()=>Qy,Headline:()=>sb,Hgroup:()=>yb,HgroupButton:()=>Sb,HgroupRows:()=>bb,Hoverable:()=>$y,Hr:()=>pb,I:()=>lb,Icon:()=>Rb,IconButton:()=>HS,IconText:()=>Ib,Iframe:()=>Dy,Img:()=>Py,Inline:()=>ky,InlineFlex:()=>Ay,InlineGrid:()=>Ry,Input:()=>xb,Italic:()=>nb,KangorooButton:()=>zS,Li:()=>hb,Link:()=>Ku,Notification:()=>ox,NumberInput:()=>_b,Ol:()=>gb,P:()=>Jy,Picture:()=>jy,Radio:()=>Eb,RadioHgroup:()=>Cb,Range:()=>ZS,RouteLink:()=>MS,RouterLink:()=>Yu,SHAPES:()=>Uy,Select:()=>BS,SquareButton:()=>VS,Strong:()=>tb,Subhead:()=>ib,Svg:()=>zy,Text:()=>Hy,Textarea:()=>Ab,TextareaWithButton:()=>Tb,Theme:()=>Vy,Title:()=>ob,Toggle:()=>kb,ToggleHgroup:()=>Ob,Tooltip:()=>YS,TooltipHidden:()=>XS,TooltipParent:()=>QS,U:()=>eb,Ul:()=>mb,Underline:()=>rb,Video:()=>qy,depth:()=>Pa,getSystemGlobalTheme:()=>vo});var Cy={display:"block"},ky={display:"inline"},Oy={display:"flex"},Ay={display:"inline-flex"},Ty={display:"grid"},Ry={display:"inline-grid"},Iy={boxSize:"C1"};var Py={tag:"img",attr:{src:t=>{let{props:e,context:r}=t,n=(e.preSrc||"")+Wt(t,e.src),o;try{o=new URL(n)}catch{}if(o)return n;let s=n&&n.startsWith("/files/")?n.slice(7):n,i=r.files&&(r.files[n]||r.files[s]);if(i)return i.content&&i.content.src},title:({props:t})=>t.title||t.alt}};var Ny={tag:"form"};var Dy={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var Fy={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},$y={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}}},Ly={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},My={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},By={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:Fy};var uu={transition:t=>({transition:_o(t)}),transitionDuration:t=>({transitionDuration:vr(t)}),transitionDelay:t=>({transitionDelay:vr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Dt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var $t=C(),Pa={4:{boxShadow:`rgba(0,0,0,.10) 0 2${$t.UNIT.default} 4${$t.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${$t.UNIT.default} 6${$t.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${$t.UNIT.default} 10${$t.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${$t.UNIT.default} 16${$t.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${$t.UNIT.default} 26${$t.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${$t.UNIT.default} 42${$t.UNIT.default}`}},Er=({props:t})=>J(t.shapeDirectionColor)||J(t.borderColor)||J(t.backgroundColor)||J(t.background),wo=({props:t,deps:e})=>{let r=uu.transition(t.transition,{props:t,deps:e});return r&&r.transition},Uy={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Er({props:t,deps:e}),transition:wo({props:t,deps: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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Er({props:t,deps:e}),transition:wo({props:t,deps: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:({props:t,deps: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:Er({props:t,deps:e}),transition:wo({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:wo({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Er({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Er({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Er({props:t,deps: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)"}}}};v();var vo=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},Vy={deps:{depth:Pa},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var jy={deps:{getSystemGlobalTheme:vo},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:vo},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var zy={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var qy={tag:"video",controls:!0,childExtends:{tag:"source"}};var Hy={},Wy={tag:"h1"},Gy={tag:"h2"},Ky={tag:"h3"},Yy={tag:"h4"},Xy={tag:"h5"},Qy={tag:"h6"},Jy={tag:"p"},Zy={tag:"caption"},tb={tag:"strong",fontWeight:"700"},eb={tag:"u"},rb={tag:"u"},nb={tag:"i"},ob={},sb={tag:"h6",fontSize:"B",fontWeight:500},ib={tag:"span",fontSize:"Z1"},ab={tag:"span",fontSize:"Z"},cb={tag:"b"},lb={tag:"i"},fb={tag:"data"};var ub=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Xt(e,t,{unpack:!1});r.__class=n},Na={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:ub},pb={tag:"hr",margin:"C1 0"},db={tag:"br"},hb={tag:"li"},mb={tag:"ul",childExtends:{extends:"Li"}},gb={tag:"ol",childExtends:{extends:"Li"}};var yb={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},bb={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Sb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var xb={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var _b={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:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var wb={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:t=>t.call("exec",t.parent.props.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"}}},vb={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Eb={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}},Cb={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var kb={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}},Ob={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Ab={tag:"textarea",extends:["Input","Flex"],variant:"outlined",fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",maxWidth:"G1_default",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",style:{resize:"none"},".simple":{theme:"field",round:"Z2",lineHeight:1.4},".outlined":{theme:"field",borderWidth:"1px",borderStyle:"solid",lineHeight:1.4,placeholder:"Leave us a message...",resize:"none"},html:(t,e)=>t.props.value},Tb={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 Rb={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=A=>{let{props:k}=A,$=k[".isActive"];if($)return A.call("exec",$.name||$.icon)},l=(A,k,$)=>{let{semanticIcons:P}=$&&$.designSystem,{toCamelCase:F}=$&&$.utils,j=u(A,k),tt=F(j).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:j.split(".")[0].split(" ")[0],_t=P&&P[pt];if(_t){let Lt=j.includes(".")?"sfsymbols."+j.split(".").slice(1).join("."):"sfsymbols";return j=_t[Lt]||_t[j.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${j}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(A,k)=>{let{key:$,props:P}=A,F=A.call("exec",P.name||P.icon||$,A);return A.call("isString",F)&&F.includes("{{")&&(F=A.call("replaceLiteralsWithObjectFields",F)),A.call("isString",F)?F:$},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let S;n.isActive&&(S=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(S=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",S)&&S.includes("{{")&&(S=t.call("replaceLiteralsWithObjectFields",S));let E;s[S]&&(E=S),s[d]?E=d:s[h[0]+h[1]]?E=h[0]+h[1]:s[h[0]]?E=h[0]:a&&t.warn("Can't find icon:",p,E);let R=s[E],T=o&&o.props&&o.props.src||n.src;return{spriteId:i&&E,src:R||T||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Ib={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Pb={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Xa={};Mt(Xa,{default:()=>$S,getActiveRoute:()=>Ya,lastLevel:()=>No,lastPathname:()=>Po,matchRoute:()=>Wa,parseQuery:()=>Ga,parseRoutePattern:()=>Ha,router:()=>ne,runGuards:()=>Ka});v();v();v();v();v();var Nb=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Db=(t,e,r,n)=>{let o=Xe(Nb(t,e),e);if(b(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},pu=(t,e)=>{let{node:r,on:n}=t;for(let o in n)cs.has(o)||Db(o,t,r,e)};var du={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},yt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=du.en[t]);let s=o?`
|
|
32
34
|
|
|
33
35
|
${o.description}`:"",i=r?`
|
|
34
36
|
|
|
35
|
-
${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var du=t=>ke(t||"div")||yt("HTMLInvalidTag");var Db=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},Fb=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},hu=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Na||!e)return;Na=!0;function r(){if(t.size===0){Na=!1;return}Fb(t),e(r)}e(r)},mu=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(Db(t),hu(o))},Na=!1,gu=()=>{let t=new Set;return hu(t),t};v();var yu=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ce(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:r[o]=i}},bu=t=>{let{on:e}=t,r=Ye(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!b(o)&&!(r&&o!=null))continue;let s=ce(n.slice(2)),i=e[s];b(i)?e[s]=(...a)=>{if(i(...a)!==!1&&b(o))return o(...a)}:e[s]=o}};v();var Da="http://www.w3.org/2000/svg",$b=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Qe.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Da)?n.createElementNS(Da,e):n.createElement(e):n.createElement("div")},Fa=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&ke(n.tag))return n.tag;if(y(e)){if(ke(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ke(o))return o}return"div"},xu=t=>{let{context:e}=t,r=e.window||window,n=t.tag=Fa(t);if(!du(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Qe.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Da)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=$b(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var Lb=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},Mb=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},Bb=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},$a=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?Bb:Mb)(t.node,n.node||e.node):Lb(t.node,e.node,t)),t};v();var vo=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!Ht(n,t)){r.__exec[n]=o;try{let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}).catch(i=>{console.warn("[DOMQL] Async exec error in",n,":",i?.message||i)}):t[n]=s}catch(s){console.warn("[DOMQL] Exec error in",n,":",s?.message||s)}}}},Su=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=y(a)||ct(a);if(s?.node&&c)fe(s,{text:a});else if(a!==s)if(It(o)){let{extends:f,...l}=Ds(a,t,o);fe(s,l)}else n[o]=s,t[o]=a}return n},Eo=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(b(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&b(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},Co=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(b(c)&&!Ht(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},_u=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function wu(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Fr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&U(i,o.attr);for(let a in i){let c=O(i[a],e);y(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var vu=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},Ub=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},Eu=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=Ub(t,e)),t.replace(/\s+/g," ").trim()};v();function Vb(t,e,r){if(t&&(e.props.data&&U(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var Cu=Vb;v();function jb(t,e,r){let n=O(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var ku=jb;v();function zb(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var Ou=zb;v();function qb(t,e,r){let n=O(e.props.text||t,e);if(y(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Qe.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else jt({tag:"string",text:n},e,"__text")}}var Au=qb;v();function Hb(t,e,r){let n=O(t,e);if(g(n))for(let o in n)Tt.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var Tu=Hb;v();function Wb(t,e,r){if(g(t))for(let n in t){let o=t[n];b(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Ru=Wb;var re={attr:wu,style:Ou,text:Au,html:ku,data:Cu,classlist:Eu,state:Tu,scope:Ru,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var ko=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=re[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){b(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var La=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(S(t)&&S(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!La(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!La(t[a],e[a]))return!1}return!0}return t===e},Iu=new Set([".","/","./"]),Gb=(t,e)=>{if(!y(t)||!e)return;if(Iu.has(t))return e.parse?e.parse():e;let r=Je(t,e);if(r){let o=t.replaceAll("~/","");return tr(o,r)}let n=Ze(t,e);if(n){let o=t.replaceAll("../","");return tr(o,n)}return tr(t,e)};function Kb(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(Hn(n)&&(i=i||"state",n=n.parse()),y(n)||ct(n)){let p=Gb(n,s);p!==void 0?(f=Iu.has(n)?"":n,n=Hn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return It(p)?Os(p,d):d})}}if(!n||Fr(n)("array","object"))return;if(S(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?La(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=z(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=z(n),o.__childrenCache=l),(g(n)||S(n))&&(n=l||z(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(Ot(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=N(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Oo=Kb;var Pu=process.env.NODE_ENV,Nu=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=xu(t),W("attachNode",t,e)),(Pu==="test"||Pu==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),Eo(t),Co(t),vo(t),yu(t),bu(t),uu(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||Ht(a,t)||g(re[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=ko(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{jt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||W("lazyLoad",t,e)}):p()}}}let i=t.children?Oo(t.children,t,e):t.children||t.content;return i&&gn(i,t,e),t};v();var Ma={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},Ba=Ma;v();v();v();v();var Du={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},Fu=function(t,e=Du){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,Du),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&vt("beforeStateUpdate",t,n,e)===!1?n:(Js(r,t,e),Yb(r,t,e)||(Xb(r,t,e),Qb(r,t,e),e.preventStateUpdateListener||vt("stateUpdate",t,n,e)),r)},Yb=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=rr(n),f=er(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Je(i,o.state),m=Ze(i,o.state),x=i.replaceAll("~/","").replaceAll("../",""),_=Xs(x,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let E=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&E&&vt("stateUpdate",e,n,r),!0},Xb=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Qb=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Jb=function(){let t=this;if(g(t)){let e={};for(let r in t)Tt.has(r)||(e[r]=t[r]);return e}else if(S(t))return t.filter(e=>!Tt.has(e))},Zb=function(t={}){let e=this;for(let r in e)!Tt.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},tx=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(y(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(S(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},ex=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},rx=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},nx=function(t,e={}){let r=this;if(S(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},ox=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},sx=function(t,e={}){let r=this;return S(r)?ts(r,t):g(r)&&ps(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},ix=function(t,e={}){let r=this,n=z(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},$u=function(t,e,r={}){let n=this,o=z(e);r.preventReplace||ms(n,t,e);let s=ds(t,o);return r.preventStateUpdate?s:n.update(s,r)},ax=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=$u.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&Ua.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Ua=function(t,e={}){let r=this;return hs(r,t),e.preventUpdate?t:r.update({},e)},cx=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Ua(t[n],{preventUpdate:!0});return r.update({},e)},lx=function(t,e={}){return gs(this,t)},fx=function(t={}){let e=this,r=z(e.parse());return e.set(r,{replace:!0,...t})},ux=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},px=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},dx=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},hx=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},mx=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},gx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},yx=function(t,e={}){return Object.keys(this)},bx=function(t,e={}){return Object.values(this)},Lu=t=>{let e=t.state,r=t.__ref,n={clean:Zb.bind(e),parse:Jb.bind(e),destroy:tx.bind(e),update:Fu.bind(e),rootUpdate:rx.bind(e),parentUpdate:ex.bind(e),create:Me.bind(e),add:nx.bind(e),toggle:ox.bind(e),remove:sx.bind(e),apply:ux.bind(e),applyReplace:px.bind(e),applyFunction:dx.bind(e),set:ix.bind(e),quietUpdate:hx.bind(e),replace:mx.bind(e),quietReplace:gx.bind(e),reset:fx.bind(e),parent:t.parent?.state||e,setByPath:$u.bind(e),setPathCollection:ax.bind(e),removeByPath:Ua.bind(e),removePathCollection:cx.bind(e),getByPath:lx.bind(e),keys:yx.bind(e),values:bx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};S(e)?$r(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var Me=function(t,e,r){return t.state=xx(t,e,r),t.state},xx=function(t,e,r){let n=Ks(t);if(n===!1)return e.state||{};if(t.state=n,W("stateInit",t,r)===!1)return t.state;if(rr(t)){let i=Ys(t,e);t.state=K(i)?{}:i}let s=Qs(t,t.state||e.state||{});return s&&(t.state=s),Lu(t),W("stateCreated",t),t.state};v();v();var Mu=[];var Ao={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:Mu},yn=function(t={},e){let r=g(e)?{...Ao,...e}:{...Ao},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Ni(n,r);if(a)return;r.preventListeners||vt("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,Ao),(y(t)||ct(t))&&(t={text:t}),t=Bs.call(n,t),wx(n,r)===!1)||_x(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let P=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(b),j=t.props||P||D;j&&qs(j,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),vt("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),Eo(n),Su(n,{ignore:Ao}),_u(n),!r.isForced&&!r.preventListeners&&W("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:x,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:E,preventUpdateListener:R,preventUpdateAfter:T,preventUpdateAfterCount:A}=r;if(T){if(ct(A)&&T<=A)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=S(m)?new Set(m):null,$=S(x)?new Set(x):null;for(let P in n){let D=n[P];if(!Object.prototype.hasOwnProperty.call(n,P))continue;let j=k&&k.has(P),Z=$&&$.has(P),tt=b(D)&&P.length>2&&P.charCodeAt(0)===111&&P.charCodeAt(1)===110&&P.charCodeAt(2)>=65&&P.charCodeAt(2)<=90;if(K(D)||j||Z||x===!0||x===P||w&&P==="state"||Ht(P,n)||tt||g(re[P]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=ko(P,n,r);if(pt){let{hasDefine:_t,hasContextDefine:Lt}=pt;if(!(g(D)&&!_t&&!Lt&&!E))continue;let Ko=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(P,n,n.state,n.context);let st=t[P];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(P!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Yo=r.onlyUpdate&&P===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Xo=()=>yn.call(D,st,Yo);Ko?F.requestAnimationFrame(()=>{Xo(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):Xo()}}if(!_){let P=o.contentElementKey||"content",D=n[P],j=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(j){let Z=Oo(j,n,e);if(Z&&!o.__noChildrenDifference)gn(Z,n,r);else if(D?.__ref&&b(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>yn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&b(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>yn.call(D,t[P],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&gn(Z,n,r)}}!R&&!r.preventListeners&&W("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Sx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},_x=(t,e,r)=>{if(!b(t.if)&&!b(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=Sx(t,e);delete t.__ref,delete t.parent;let c=jt(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&jr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},wx=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=er(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&vt("beforeStateUpdate",i,t,e)===!1)return t;let a=vx(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&vt("stateUpdate",a.parse(),t,e)},vx=(t,e,r)=>{let n=t.state.__children,o=Me(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};Pi();var Va=(t,e,r={})=>{let n={set:za,reset:Bu,update:yn,variables:Ai,remove:mi,updateContent:Uu,removeContent:ja,setProps:gi,lookup:pi,lookdown:di,lookdownAll:hi,getRef:yi,getDB:Ri,getPath:bi,getQuery:Ii,getRootState:xi,getRoot:Si,getRootData:_i,getRootContext:wi,getContext:vi,setNodeStyles:Xn,spotByPath:ui,parse:Jn,parseDeep:Xr,keys:Qn,nextElement:ki,previousElement:Oi,log:Ei,verbose:Zn,warn:Ci,error:Qr,call:Ti};t.context.methods&&(r.strict?Y:fe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var Ex=new Set(["class","style"]),Cx=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=Dl(e,r,n?.cssPropsRegistry),s={};for(let a in o)Ex.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},To=process.env.NODE_ENV,jt=(t,e,r,n=ut.create||{},o)=>{kx(n);let s=Gs(t,e,r,n,Ma);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Ws(s,a),Ps(s,a,n),n.onlyResolveExtends?Rx(s,a,i,n):(zn.call(s,s),W("start",s,n),Ox(s,a,n),Va(s,a,n),Wn(s,a),Me(s,a),s.scope==="state"&&(s.scope=s.state),Ur(s,a),qn(s,a,n),Vr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=Fa(s)),Cx(s),(s.scope==="props"||s.scope===!0)&&(s.scope=s.props),Ur(s,a),s.node&&c.__if?$a(s,a,i,o):(W("init",s,n)===!1||(W("beforeClassAssign",s,n),vu(s),Tx(s,a,n,o),ju(s,a),W("complete",s,n)),s))},kx=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},Ox=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},ju=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},Ax=1,Vu=new WeakMap,Tx=(t,e,r,n)=>{Vu.has(t)&&(To==="test"||To==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),Vu.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=ys(o.path);o.__uniqId||a||(Nu(t,r),o.__uniqId=Ax++)};if(To==="test"||To==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;$a(t,e,s,n),mu(t,r),W("render",t,r),W("renderRouter",t,r),W("done",t,r),W("create",t,r)},Rx=(t,e,r,n)=>{let{__ref:o}=t;if(Va(t,e,n),Wn(t,e),Me(t,e),t.scope==="state"&&(t.scope=t.state),Ur(t,e),qn(t,e,n),Vr.call(t,t,{cachedKeys:[]}),(t.scope==="props"||t.scope===!0)&&(t.scope=t.props),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),ju(t,e),t.tag!=="string"&&t.tag!=="fragment"){Co(t),vo(t);for(let s in t){if(K(t[s])||Ht(s,t)||g(re[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];if(!(!o.__skipCreate&&re[s]&&!c)&&t[s]&&!i&&!c&&!a)try{jt(O(t[s],t),t,s,n)}catch(f){console.warn("[DOMQL] onlyResolveExtends child error in",s,":",f?.message||f)}}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Ro=jt;var Cr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Bu(t){let e=this;jt(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var zu=(t,e,r)=>{let n=Cr(e,r);e[n]?.node&&ja(e,r);let o=jt(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Uu=function(t,e){let r=this,n=Cr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function gn(t,e,r){let n=O(t,e);n&&e&&za.call(e,n,r)}var ja=function(t,e={}){let r=t||this,n=Cr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),b(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),b(o.remove)&&o.remove();delete r[n]}},za=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return Ix(t,e,n)}finally{o.__settingContent=!1}},Ix=function(t,e,r){let{__ref:n}=r,o=Cr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&us(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&vt("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&W("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{zu(t,r,e),e.preventUpdateListener||W("lazyLoad",r,e)}):zu(t,r,e)};var Hu=/^:(.+)/,Wu=/^\*$/,qu=new Map,qa=t=>{let e=qu.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Hu);a?n.push({index:i,name:a[1]}):Wu.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return qu.set(t,s),s},Ha=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=qa(f),u=Px(o,l);u>a&&(a=u,i=f,c=Nx(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Px=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Hu.test(r[i]))o+=1;else if(Wu.test(r[i]))o+=.5;else return-1;return o},Nx=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Wa=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},Ga=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Ka=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Io,Po=0,Dx={level:Po,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ne=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||L,a={...Dx,...o.context.routerOptions,...n};Po=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Cr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=Wa(d),x=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Io;Io=p;let E,R,T;if(a.useParamsMatching){let k=Ha(p,o.routes,a.level);E=k.routePath,R=k.content,T=k.params}else E=Ka(a.level,p),R=o.routes[E||"/"]||o.routes["/*"],T={};let A=a.scrollToNode?x:a.scrollNode;if(!R||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:E,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:E,params:T,query:m,hash:h,element:o,state:r},$=Ga(a.guards,k);if($===!1)return;if(typeof $=="string")return ne($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:E,hash:h,debugging:!1};Object.keys(T).length&&(k.params=T),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,P={};if($)for(let D in $){let j=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(P[D]=j)}o.set({...P,tag:a.useFragment&&"fragment",extends:R},{contentElementKey:f})}if(a.scrollToTop&&A?.scrollTo&&A.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k&&A?.scrollTo){let $=k.getBoundingClientRect().top+x.scrollTop-(a.scrollToOffset||0);A.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}W("routeChanged",o,a)},Fx=ne;var Gu={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return Wt(t,e.href)||Wt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},$x={extends:"Link"},Ku={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let x=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of x){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ne)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Lx={extends:[Gu,Ku]};var Mx={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var Bx={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:t=>t.call("exec",t.props.disabled)},Ux={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Vx={extends:"SquareButton",round:"C"},jx={extends:"Button",childExtends:"IconText"},zx={tag:"nav",display:"flex",childExtends:"SquareButton"},qx={extends:["SquareButton","ClickableItem"],round:"Z"};var Hx={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Wx={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Gx={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"}};v();var Kx={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:({parent:t,props:e})=>Ot(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},Yx={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:({props:e})=>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"}}:{}})},Xx={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Qx={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Jx={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.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:co("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:co("#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:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var Zx={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:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},tS={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},eS={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},rS={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var nS={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}}}};v();var bn={};Mt(bn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>as,DOMQ_PROPERTIES:()=>He,ENV:()=>Gd,ERRORS_REGISTRY:()=>pu,HTML_TAGS:()=>Bn,METHODS:()=>Fn,METHODS_EXL:()=>is,NODE_ENV:()=>Qt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>yr,PARSED_DOMQ_PROPERTIES:()=>ss,PROPS_METHODS:()=>We,STATE_METHODS:()=>Tt,STATE_PROPERTIES:()=>Dd,SVG_TAGS:()=>Qe,TYPES:()=>Zo,addCaching:()=>il,addContext:()=>sl,addExtend:()=>mh,addExtends:()=>Rt,addItemAfterEveryElement:()=>yd,addProtoToArray:()=>$r,addRef:()=>rl,applyCSS:()=>Qu,applyDependentState:()=>Qs,applyEvent:()=>jr,applyEventUpdate:()=>Zs,applyExtends:()=>Ps,applyProps:()=>$s,arrayContainsOtherArray:()=>ud,arraysEqual:()=>xd,arrayzeValue:()=>ln,cache:()=>wh,call:()=>Ti,captureSnapshot:()=>Ni,checkForStateTypes:()=>Ks,checkIfInherits:()=>rr,checkIfStringIsInArray:()=>wd,clone:()=>$d,cloneAndMergeArrayExtend:()=>Es,cloneFunction:()=>nh,concatAddExtends:()=>Os,copyJavaScriptToClipboard:()=>tg,copyStringToClipboard:()=>Zm,createBasedOnType:()=>el,createElement:()=>Gs,createElementExtends:()=>Uc,createExtends:()=>ks,createExtendsFromKeys:()=>Un,createExtendsStack:()=>qc,createIfConditionFlag:()=>Ur,createInheritedState:()=>Ys,createKey:()=>Ss,createNestedObject:()=>ds,createNestedObjectByKeyPath:()=>Xs,createObjectWithoutPrototype:()=>Tc,createParent:()=>nl,createPath:()=>ol,createProps:()=>Ms,createPropsStack:()=>Jc,createRoot:()=>Ws,createScope:()=>Wn,createSnapshotId:()=>xs,customDecodeURIComponent:()=>Nd,customEncodeURIComponent:()=>Pd,cutArrayAfterValue:()=>md,cutArrayBeforeValue:()=>hd,debounce:()=>Jd,debounceOnContext:()=>Zd,decodeNewlines:()=>Rd,deepClone:()=>z,deepContains:()=>us,deepDestringifyFunctions:()=>le,deepExtend:()=>Mc,deepMerge:()=>U,deepMergeExtends:()=>ue,deepStringifyFunctions:()=>cs,defineSetter:()=>qh,detectInfiniteLoop:()=>ys,document:()=>L,encodeNewlines:()=>Td,error:()=>Qr,excludeKeysFromObject:()=>Wd,exec:()=>O,extendCachedRegistry:()=>ph,extendStackRegistry:()=>As,extractArrayExtend:()=>Rs,fibonacciNumberByIndex:()=>Mm,filterArrays:()=>Sd,filterArraysFast:()=>_d,finalizeExtends:()=>Hc,findClosestNumber:()=>Cf,findClosestNumberInFactory:()=>$m,findInheritedState:()=>er,findKeyPosition:()=>kd,flattenExtend:()=>Vn,formatDate:()=>Lm,generateHash:()=>Fc,generateKey:()=>bs,generateMetaTags:()=>Km,get:()=>jh,getActiveRoute:()=>Ka,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>yh,getCdnProviderFromConfig:()=>po,getChildStateInKey:()=>tr,getChildren:()=>zh,getContext:()=>vi,getCookie:()=>ch,getDB:()=>Ri,getExtendsInElement:()=>gh,getExtendsStack:()=>Cs,getExtendsStackRegistry:()=>Lc,getFrequencyInArray:()=>pd,getHashedExtend:()=>Ts,getImportMapScript:()=>Gm,getInObjectByPath:()=>gs,getLocalStorage:()=>fh,getNev:()=>Qd,getPageMetadata:()=>Jm,getParentStateInKey:()=>Ze,getPath:()=>bi,getQuery:()=>Ii,getRef:()=>yi,getRoot:()=>Si,getRootContext:()=>wi,getRootData:()=>_i,getRootState:()=>xi,getRootStateInKey:()=>Je,getSpreadChildren:()=>bh,global:()=>ld,hasFunction:()=>fs,hasHandlerPlugin:()=>Ye,hasOwnProperty:()=>Vd,inheritChildExtends:()=>jc,inheritChildPropsExtends:()=>Vc,inheritParentProps:()=>Us,inheritRecursiveChildExtends:()=>zc,init:()=>Ue,initProps:()=>qn,is:()=>At,isArray:()=>S,isBoolean:()=>Pn,isContextComponent:()=>Ds,isCyclic:()=>Hd,isDOMNode:()=>Bt,isDate:()=>Cc,isDefined:()=>Ot,isDevelopment:()=>Jt,isEmpty:()=>Oc,isEmptyObject:()=>jd,isEqualDeep:()=>Ac,isFunction:()=>b,isHtmlElement:()=>Jo,isLocal:()=>Xd,isMethod:()=>Ht,isMobile:()=>ih,isNode:()=>Ee,isNot:()=>Fr,isNotProduction:()=>Br,isNull:()=>Ec,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>N,isPhoto:()=>Hm,isProduction:()=>Ke,isStaging:()=>Yd,isState:()=>Hn,isString:()=>y,isStringFunction:()=>rh,isTest:()=>Rc,isTesting:()=>Kd,isUndefined:()=>K,isValidHtmlTag:()=>ke,joinArrays:()=>Nn,jointStacks:()=>hh,keys:()=>Qn,lastLevel:()=>Po,lastPathname:()=>Io,loadCssFile:()=>jm,loadJavascript:()=>zm,loadJavascriptFile:()=>Bm,loadJavascriptFileEmbedSync:()=>Vm,loadJavascriptFileSync:()=>Um,loadRemoteCSS:()=>qm,loadRemoteScript:()=>uo,log:()=>Ei,logGroupIf:()=>sh,logIf:()=>oh,lookdown:()=>di,lookdownAll:()=>hi,lookup:()=>pi,lowercaseFirstLetter:()=>ce,makeObjectWithoutPrototype:()=>zd,map:()=>Fd,mapStringsWithContextComponents:()=>Is,matchRoute:()=>Ha,matchesComponentNaming:()=>It,memoize:()=>th,merge:()=>Y,nextElement:()=>ki,objectToString:()=>ls,objectizeStringProperty:()=>Fs,overwrite:()=>fe,overwriteDeep:()=>it,overwriteShallow:()=>Mr,overwriteState:()=>Js,parse:()=>Jn,parseDeep:()=>Xr,parseQuery:()=>Wa,parseRoutePattern:()=>qa,pickupElementFromProps:()=>Vr,pickupPropsFromElement:()=>Xc,previousElement:()=>Oi,propExists:()=>_h,propertizeElement:()=>zn,propertizeUpdate:()=>Bs,reinit:()=>Xu,remove:()=>mi,removeChars:()=>eg,removeCookie:()=>lh,removeDuplicateProps:()=>js,removeDuplicatesInArray:()=>Dn,removeFromArray:()=>ts,removeFromObject:()=>ps,removeNestedKeyByPath:()=>hs,removeValueFromArray:()=>rs,removeValueFromArrayAll:()=>gd,reorderArrayByValues:()=>bd,replaceLiteralsWithObjectFields:()=>Cd,replaceOctalEscapeSequences:()=>Ad,report:()=>yt,resolveHandler:()=>Xe,returnValueAsText:()=>tl,router:()=>ne,runGuards:()=>Ga,runPluginHook:()=>Ln,scratchSystem:()=>xo,scratchUtils:()=>xr,self:()=>fd,set:()=>dn,setCookie:()=>ah,setHashedExtend:()=>$c,setInObjectByPath:()=>ms,setLocalStorage:()=>uh,setNodeStyles:()=>Xn,setProps:()=>gi,setPropsPrototype:()=>Vs,spotByPath:()=>ui,stringIncludesAny:()=>os,stringToObject:()=>Ud,swapItemsInArray:()=>dd,syncProps:()=>zs,toCamelCase:()=>Hi,toDashCase:()=>Wi,toDescriptionCase:()=>ng,toTitleCase:()=>rg,toggleFullscreen:()=>Fm,triggerEventOn:()=>W,triggerEventOnUpdate:()=>vt,trimStringFromSymbols:()=>vd,unstackArrayOfObjects:()=>es,update:()=>Qc,updateProps:()=>qs,variables:()=>Ai,verbose:()=>Zn,warn:()=>Ci,window:()=>F});v();v();var oS=C(),Yu=(t=oS,e)=>{let r=g(e.localFile)?e.localFile:{},n=z(r.designSystem||{});return U(t,n)},sS={emotion:Et,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ue=(t,e=sS)=>{let r=e.emotion||Et,n=Yu(t||{},e),o=dn({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=zi(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&Sa(o.svg,{document:e.document}),(p||u)&&wa(o.icons,{document:e.document}),o},No={emotion:Et},Xu=(t,e=No)=>{let r=e.emotion||Et,n=Yu(t||{},e),o=dn({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Qu=(t,e=No)=>{(e.emotion||Et).injectGlobal(t)},kT=(t,e=No)=>{let r=e.emotion||Et;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}},OT=(t,e=No)=>{};v();var Xa={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Zu=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},tp=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Xa:e.router=Y(e.router||{},Xa);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=Zu(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ne(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),iS(e,r),r},Ju,ep=(t,e)=>{if(Ju)return;Ju=!0;let r=e.router||Xa;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ne;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=Zu(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},iS=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return U(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Qa=F&&F.location?F.location.host.includes("dev."):Jt(),rp=Qa?"http://localhost:8080/get":"https://api.symbols.app/get",aS={endpoint:rp},np=async(t,e=aS)=>{let r=e.endpoint||rp,n=e.serviceRoute?S(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(b(e.onError))return e.onError(s);console.error(s)}},cS=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await np(t,r),o=Qa||e.isDevelopment?le(n):le(n.releases[0]);r.serviceRoute?S(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},lS=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await np(t,n),s=Qa||e.isDevelopment?le(o):le(o.releases[0]);r(s)}},op=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await cS(t,e)}catch(r){console.error(r)}},sp=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&lS(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var fS={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"}},uS=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Do=(t,e,r)=>{if(!t)return{};let n=b(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];b(s)&&(s=O(s,e,r)),y(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var pS=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Fo=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=fS[r];if(!o)continue;let s=uS(o),i=e.querySelector(s)||pS(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var ip={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Do(e,t,t.state);Fo(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Do(e,t,t.state);Fo(n,r)}};Ae();var ap=(t,e,r,n)=>{t&&Kr(t,e,r,n)},cp=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Do(t,e,r);Fo(o,n)},lp=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},xn={routes:t=>t,metadata:cp,fetch:ap,$router:lp},dS=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=cp),t.fetch!==!1&&(e.fetch=ap),t.router!==!1&&(e.$router=lp),e};var fp={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ja={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Za={...fp,router:Ja},hS={state:{},pages:{},components:{},router:Ja,define:xn},Se=hS;var mS=(t,e,r,n)=>{let o=(Ro.default||Ro)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},Ve={TREE:Ba,create:mS};v();v();var zt=Object.create(null);zt.open="0";zt.close="1";zt.ping="2";zt.pong="3";zt.message="4";zt.upgrade="5";zt.noop="6";var Sn=Object.create(null);Object.keys(zt).forEach(t=>{Sn[zt[t]]=t});var _n={type:"error",data:"parser error"};var dp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",hp=typeof ArrayBuffer=="function",mp=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,wn=({type:t,data:e},r,n)=>dp&&e instanceof Blob?r?n(e):up(e,n):hp&&(e instanceof ArrayBuffer||mp(e))?r?n(e):up(new Blob([e]),n):n(zt[t]+(e||"")),up=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function pp(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var tc;function gp(t,e){if(dp&&t.data instanceof Blob)return t.data.arrayBuffer().then(pp).then(e);if(hp&&(t.data instanceof ArrayBuffer||mp(t.data)))return e(pp(t.data));wn(t,!1,r=>{tc||(tc=new TextEncoder),e(tc.encode(r))})}var yp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<yp.length;t++)vn[yp.charCodeAt(t)]=t;var bp=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=vn[t.charCodeAt(n)],i=vn[t.charCodeAt(n+1)],a=vn[t.charCodeAt(n+2)],c=vn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var gS=typeof ArrayBuffer=="function",En=(t,e)=>{if(typeof t!="string")return{type:"message",data:xp(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:yS(t.substring(1),e)}:Sn[r]?t.length>1?{type:Sn[r],data:t.substring(1)}:{type:Sn[r]}:_n},yS=(t,e)=>{if(gS){let r=bp(t);return xp(r,e)}else return{base64:!0,data:t}},xp=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Sp="",_p=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{wn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Sp))})})},wp=(t,e)=>{let r=t.split(Sp),n=[];for(let o=0;o<r.length;o++){let s=En(r[o],e);if(n.push(s),s.type==="error")break}return n};function vp(){return new TransformStream({transform(t,e){gp(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var ec;function $o(t){return t.reduce((e,r)=>e+r.length,0)}function Lo(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Ep(t,e){ec||(ec=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if($o(r)<1)break;let c=Lo(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if($o(r)<2)break;let c=Lo(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if($o(r)<8)break;let c=Lo(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(_n);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if($o(r)<o)break;let c=Lo(r,o);a.enqueue(En(s?c:ec.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(_n);break}}}})}var rc=4;function X(t){if(t)return bS(t)}function bS(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var oe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Cp="arraybuffer";function Mo(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var xS=bt.setTimeout,SS=bt.clearTimeout;function se(t,e){e.useNativeTimers?(t.setTimeoutFn=xS.bind(bt),t.clearTimeoutFn=SS.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var _S=1.33;function kp(t){return typeof t=="string"?wS(t):Math.ceil((t.byteLength||t.size)*_S)}function wS(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Bo(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Op(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function Ap(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Uo=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},ie=class extends X{constructor(e){super(),this.writable=!1,se(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Uo(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=En(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=Op(e);return r.length?"?"+r:""}};var Cn=class extends ie{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};wp(e,this.socket.binaryType).forEach(r),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,_p(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Bo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Tp=!1;try{Tp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Rp=Tp;function vS(){}var nc=class extends Cn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},_e=class t extends X{constructor(e,r,n){super(),this.createRequest=e,se(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 e;let r=Mo(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=vS,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};_e.requestsCount=0;_e.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ip);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Ip,!1)}}function Ip(){for(let t in _e.requests)_e.requests.hasOwnProperty(t)&&_e.requests[t].abort()}var ES=(function(){let t=Pp({xdomain:!1});return t&&t.responseType!==null})(),we=class extends nc{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=ES&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _e(Pp,this.uri(),e)}};function Pp(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Rp))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Np=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",sc=class extends ie{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Np?{}:Mo(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;wn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&oe(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Bo()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},oc=bt.WebSocket||bt.MozWebSocket,ve=class extends sc{createSocket(e,r,n){return Np?new oc(e,r,n):r?new oc(e,r):new oc(e)}doWrite(e,r){this.ws.send(r)}};var kr=class extends ie{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 r=Ep(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=vp();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&oe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var ic={websocket:ve,webtransport:kr,polling:we};var CS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kS=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Or(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=CS.exec(t||""),s={},i=14;for(;i--;)s[kS[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,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=OS(s,s.path),s.queryKey=AS(s,s.query),s}function OS(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function AS(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var ac=typeof addEventListener=="function"&&typeof removeEventListener=="function",Vo=[];ac&&addEventListener("offline",()=>{Vo.forEach(t=>t())},!1);var je=class t extends X{constructor(e,r){if(super(),this.binaryType=Cp,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Or(e);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=Or(r.host).host);se(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=Ap(this.opts.query)),ac&&(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"})},Vo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=rc,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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+=kp(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,oe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),ac&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Vo.indexOf(this._offlineEventListener);n!==-1&&Vo.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};je.protocol=rc;var jo=class extends je{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 r=this.createTransport(e),n=!1;je.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Ar=class extends jo{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>ic[o]).filter(o=>!!o)),super(e,n)}};var oI=Ar.protocol;function Dp(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Or(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var dc={};Mt(dc,{Decoder:()=>uc,Encoder:()=>fc,PacketType:()=>I,isPacketValid:()=>MS,protocol:()=>Bp});var RS=typeof ArrayBuffer=="function",IS=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Fp=Object.prototype.toString,PS=typeof Blob=="function"||typeof Blob<"u"&&Fp.call(Blob)==="[object BlobConstructor]",NS=typeof File=="function"||typeof File<"u"&&Fp.call(File)==="[object FileConstructor]";function On(t){return RS&&(t instanceof ArrayBuffer||IS(t))||PS&&t instanceof Blob||NS&&t instanceof File}function kn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(kn(t[r]))return!0;return!1}if(On(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return kn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&kn(t[r]))return!0;return!1}function $p(t){let e=[],r=t.data,n=t;return n.data=cc(r,e),n.attachments=e.length,{packet:n,buffers:e}}function cc(t,e){if(!t)return t;if(On(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=cc(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=cc(t[n],e));return r}return t}function Lp(t,e){return t.data=lc(t.data,e),delete t.attachments,t}function lc(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=lc(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=lc(t[r],e));return t}var Mp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Bp=5,I;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(I||(I={}));var fc=class{constructor(e){this.replacer=e}encode(e){return(e.type===I.EVENT||e.type===I.ACK)&&kn(e)?this.encodeAsBinary({type:e.type===I.EVENT?I.BINARY_EVENT:I.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===I.BINARY_EVENT||e.type===I.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=$p(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},uc=class t extends X{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===I.BINARY_EVENT;n||r.type===I.BINARY_ACK?(r.type=n?I.EVENT:I.ACK,this.reconstructor=new pc(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(On(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(I[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===I.BINARY_EVENT||n.type===I.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case I.CONNECT:return zo(r);case I.DISCONNECT:return r===void 0;case I.CONNECT_ERROR:return typeof r=="string"||zo(r);case I.EVENT:case I.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Mp.indexOf(r[0])===-1);case I.ACK:case I.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},pc=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 r=Lp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function DS(t){return typeof t=="string"}var FS=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function $S(t){return t===void 0||FS(t)}function zo(t){return Object.prototype.toString.call(t)==="[object Object]"}function LS(t,e){switch(t){case I.CONNECT:return e===void 0||zo(e);case I.DISCONNECT:return e===void 0;case I.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Mp.indexOf(e[0])===-1);case I.ACK:return Array.isArray(e);case I.CONNECT_ERROR:return typeof e=="string"||zo(e);default:return!1}}function MS(t){return DS(t.nsp)&&$S(t.id)&&LS(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var BS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Tr=class extends X{constructor(e,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=e,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 e=this.io;this.subs=[kt(e,"open",this.onopen.bind(this)),kt(e,"packet",this.onpacket.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(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,...r){var n,o,s;if(BS.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:I.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:I.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case I.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 I.EVENT:case I.BINARY_EVENT:this.onevent(e);break;case I.ACK:case I.BINARY_ACK:this.onack(e);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:I.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:I.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function ze(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ze.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};ze.prototype.reset=function(){this.attempts=0};ze.prototype.setMin=function(t){this.ms=t};ze.prototype.setMax=function(t){this.max=t};ze.prototype.setJitter=function(t){this.jitter=t};var Rr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,se(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 ze({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||dc;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Ar(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=kt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=kt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),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(kt(e,"ping",this.onping.bind(this)),kt(e,"data",this.ondata.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(e,"close",this.onclose.bind(this)),kt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){oe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Tr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var An={};function Tn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Dp(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=An[o]&&s in An[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Rr(n,e):(An[o]||(An[o]=new Rr(n,e)),c=An[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Tn,{Manager:Rr,Socket:Tr,io:Tn,connect:Tn});v();var US={success:"green",error:"red",warning:"yellow"},Up=(t,e,r)=>{if(t.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,e.notifications.content.connected.setProps({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,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Rn={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:US[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Vp=process.env.NODE_ENV==="local",VS=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},jS=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},zS=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":VS(t,o);break;case"update":case"set":jS(t,o,s,!0);break;default:break}return r},qS=async()=>{try{let t=Vp?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},HS=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ue(a):Mr(r[i],a):r[i]=a}),s&&(r.schema=s))},WS=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=zS(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ue(r.designSystem)},GS=async(t,e,r)=>{let n=await qS();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=Tn(Vp?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",HS(t,e,r)),i.on("ops",WS(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Up(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},qo={onInitSync:GS};var jp=(t,e)=>N(t.extends)?t.extends:[],zp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Jt():r.liveSync)&&(S(t.extends)?t.extends.push(qo):t.extends?t.extends=[t.extends,qo]:t.extends=[qo])};var qp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Jt()||e.verbose:r.verbose)&&(S(t.extends)?t.extends.push(Rn):t.extends?t.extends=[t.extends,Rn]:t.extends=[Rn])};v();v();var KS=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Hp=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=Et);let s=e.registry||mf(n.emotion,e),i=e.designSystem?U(z(Ra),e.designSystem):z(Ra),a={};for(let f of KS)e[f]!==void 0&&(a[f]=e[f]);return[Ue(i,{key:t,emotion:o,document:r,files:e.files,...Za,...a,...n}),o,s]};var Kp=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Wp=(t="smbls")=>{let e={};for(let r in Be)Object.prototype.hasOwnProperty.call(Be,r)&&(It(r)?e[`smbls.${r}`]=Be[r]:e[r]=Be[r]);return e},Yp=t=>t.components?{...Wp(),...t.components}:Wp(),Xp=t=>({...bn,...Ya,...xr,...t.utils,...t.snippets,...t.functions}),Qp=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Gp={},Jp=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=yr[s]||po(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Jt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(Gp[c])return;Gp[c]=!0,await uo(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await uo(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},Zp=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||po(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Jt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let x=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(x,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},td=(t,e)=>{let[r,n,o]=Hp(t,e);return[r,n,o]},ed=(t,e)=>{let r={};return e.state&&U(r,e.state),t&&t.state&&U(r,t.state),r.isRootState=!0,z(r)},rd=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.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},nd=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),U(t,n,["designSystem"],1)):U(t,n,[],1)}};v();var sd="smbls_lang",YS="smbls_t_",XS="smbls_tv_",Ir={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},In={};function Wo(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function hc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Ho=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},od=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Ho(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function mc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=od(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=Ho(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=Ho(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=od(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=Ho(f,t);if(l!==void 0)return l}}return t}async function gc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||YS,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):XS);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Ir.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(In[i])return In[i];let a=this;return In[i]=(async()=>{try{let c=r.fetch,f=parseInt(Ir.get(s+t),10)||0,l,u,p;if(b(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=b(h)?await h.call(a):e.fetch;if(!m)return;let x=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:x,params:_});if(w.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,w.error;let E=w.data;if(!E||!E.changed)return;l=E.translations||{},u=E.version||0,p=!0}else return;if(!p||!l)return;Ir.set(o+t,JSON.stringify(l)),u&&Ir.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let f=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",f)}}finally{delete In[i]}})(),In[i]}async function yc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||sd;Ir.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function bc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=b(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function id(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||sd,s=Ir.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function xc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var Sc={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,id.call(t))}};var Go={polyglot:mc,getLocalStateLang:xc,getActiveLang:Wo,getLang:Wo,setLang:yc,getLanguages:hc,loadTranslations:gc,upsertTranslation:bc};Ae();var QS=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||xn,e.cssPropsRegistry=hn,e.window=Kp(e),e.sharedLibraries&&e.sharedLibraries.length&&nd(e);let[n,o,s]=td(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=ed(t,e);e.state=i,e.pages=rd(t,e),e.components=Yp(e),e.utils=Xp(e),yr[e.packageManager]&&(e.dependencies=await Jp(e)),e.methods=Qp(e),e.routerOptions=tp(t,e),e.defaultExtends=[Pa],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[];let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(Sc);for(let c in Go)c in e.functions||(e.functions[c]=Go[c])}return a("helmet")||e.plugins.push(ip),e.fetch&&!a("fetch")&&e.plugins.push(li),e},_c=async(t,e)=>{g(e)||(e={}),Ee(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await QS(t,e),t.extends=jp(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=gu(e),await Zp({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),zp(t,e),qp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.window||(typeof window<"u"?window:null);if(n?.__BRENDER__&&r.querySelector("[data-br]"))return JS(t,e,r,n);let s=e.parent||r.body;return await(Ve.default&&Ve.default.create||Ve.create)(t,s,e.key,{verbose:e.verbose,...e.domqlOptions})},JS=async(t,e,r,n)=>{let o=e.parent||r.body,s=Ve.default&&Ve.default.create||Ve.create,i=[];for(let c of o.childNodes){if(c.nodeType===1){let f=c.tagName.toLowerCase();if(f==="style"||f==="script"||f==="link")continue}i.push(c)}i.forEach(c=>c.remove());let a=await s(t,o,e.key,{verbose:e.verbose,...e.domqlOptions,onlyResolveExtends:!1});return delete n.__BRENDER__,a};var wc=(t,e)=>U(t,g(e)?e:{}),ad=(t,e=Se,r)=>{let n={...Se,...wc(e,r)},o=_c(t,n).then(s=>{ep(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},DP=(t,e=Se,r)=>{let n=ad(t,e,r),o={...Se,...wc(e,r)},s=o.key;return sp(n,s,{utils:bn,...o}),n},FP=async(t,e=Se,r)=>{let n={...Se,...wc(e,r)},o=e.key;await op(o,n);let s=await _c(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},$P=(t={},e=Se,r)=>ad({deps:{isUndefined:K},...t},U({domqlOptions:{onlyResolveExtends:!0}},e),r);export{$x as A,zf as ANIMATION_PROPS,Gw as ARIA_ROLES,Pl as ATTR_TRANSFORMS,Qx as Avatar,ab as B,qf as BLOCK_PROPS,Ey as Block,Pa as Box,pb as Br,Bx as Button,zx as ButtonSet,te as CDN_PROVIDERS,Pg as CLASS,Yi as CONFIG,Fg as CSS_MEDIA_VARS,Zt as CSS_NATIVE_COLOR_REGEX,hn as CSS_PROPS_REGISTRY,on as CSS_UNITS,Dg as CSS_VARS,Jy as Caption,_b as Checkbox,wb as CheckboxHgroup,Vx as CircleButton,$y as Clickable,Ra as DEFAULT_CONFIG,Za as DEFAULT_CONTEXT,Qf as DEFAULT_CSS_PROPERTIES_LIST,fp as DESIGN_SYSTEM_OPTIONS,as as DOMQL_EVENTS,He as DOMQ_PROPERTIES,tm as DOM_EVENTS,lb as Data,Hx as Dialog,Gx as DialogFooter,Wx as DialogHeader,Zx as DropdownList,tS as DropdownParent,eS as DropdownParentFocus,rS as DropdownSiblingFocus,Gd as ENV,Ne as FACTORY,Yf as FLEX_PROPS,Hf as FONT_PROPS,Ib as FileIcon,ky as Flex,Ly as Focusable,My as FocusableComponent,ib as Footnote,Py as Form,Xf as GRID_PROPS,Ay as Grid,Ry as Gutter,Hy as H1,Wy as H2,Gy as H3,Ky as H4,Yy as H5,Xy as H6,Di as HTML_ATTRIBUTES,Bn as HTML_TAGS,ob as Headline,gb as Hgroup,bb as HgroupButton,yb as HgroupRows,Fy as Hoverable,ub as Hr,cb as I,Tb as Icon,qx as IconButton,Rb as IconText,Ny as Iframe,Iy as Img,Cy as Inline,Oy as InlineFlex,Ty as InlineGrid,xb as Input,rb as Italic,jx as KangorooButton,db as Li,Gu as Link,Fn as METHODS,is as METHODS_EXL,Aa as MISC_PROPS,Qt as NODE_ENV,nS as Notification,Sb as NumberInput,ut as OPTIONS,mb as Ol,Qy as P,yr as PACKAGE_MANAGER_TO_CDN,ss as PARSED_DOMQ_PROPERTIES,Wf as POSITION_PROPS,We as PROPS_METHODS,Vy as Picture,Ja as ROUTER_OPTIONS,vb as Radio,Eb as RadioHgroup,Jx as Range,Lx as RouteLink,Ku as RouterLink,By as SHAPES,Tt as STATE_METHODS,Dd as STATE_PROPERTIES,Qe as SVG_TAGS,Mx as Select,Ux as SquareButton,Zy as Strong,sb as Subhead,jy as Svg,Gf as THEME_PROPS,Kf as TIMING_PROPS,Zo as TYPES,qy as Text,Ob as Textarea,Ab as TextareaWithButton,Uy as Theme,nb as Title,Cb as Toggle,kb as ToggleHgroup,Kx as Tooltip,Yx as TooltipHidden,Xx as TooltipParent,tb as U,hb as Ul,eb as Underline,jf as VALUE_TRANSFORMERS,zy as Video,tE as activateConfig,il as addCaching,sl as addContext,mh as addExtend,Rt as addExtends,yd as addItemAfterEveryElement,$r as addProtoToArray,rl as addRef,Cg as animation,Sa as appendSVGSprite,wa as appendSvgIconsSprite,Yw as applyAttrTransforms,Qu as applyCSS,Vi as applyClassListOnNode,Iv as applyClasslist,Qs as applyDependentState,ba as applyDocument,jr as applyEvent,Zs as applyEventUpdate,Ps as applyExtends,Ff as applyHeadings,br as applyMediaSequenceVars,$s as applyProps,va as applyReset,na as applySequenceGlobalVars,$e as applySequenceVars,ha as applySpacingSequence,ya as applyTimingSequence,Zf as applyTrueProps,ua as applyTypographySequence,ud as arrayContainsOtherArray,xd as arraysEqual,ln as arrayzeValue,Rv as assignKeyAsClassname,wg as breakpoints,wh as cache,Ti as call,Ni as captureSnapshot,Eg as cases,Im as changeLightness,Nl as checkAttributeByTagName,em as checkEventFunctions,Ks as checkForStateTypes,da as checkIfBoxSize,rr as checkIfInherits,wd as checkIfStringIsInArray,vm as classList,wm as classify,$d as clone,Es as cloneAndMergeArrayExtend,nh as cloneFunction,dg as color,ge as colorStringToRgbaArray,Os as concatAddExtends,oa as convertSvgToSymbol,tg as copyJavaScriptToClipboard,Zm as copyStringToClipboard,ad as create,DP as createAsync,el as createBasedOnType,dS as createDefine,Gs as createElement,Uc as createElementExtends,Em as createEmotion,ks as createExtends,Un as createExtendsFromKeys,qc as createExtendsStack,Ur as createIfConditionFlag,Ys as createInheritedState,Ss as createKey,ds as createNestedObject,Xs as createNestedObjectByKeyPath,Tc as createObjectWithoutPrototype,nl as createParent,ol as createPath,Ms as createProps,Jc as createPropsStack,Ws as createRoot,Wn as createScope,$P as createSkeleton,xs as createSnapshotId,FP as createSync,Nd as customDecodeURIComponent,Pd as customEncodeURIComponent,md as cutArrayAfterValue,hd as cutArrayBeforeValue,Jd as debounce,Zd as debounceOnContext,Rd as decodeNewlines,z as deepClone,us as deepContains,le as deepDestringifyFunctions,Mc as deepExtend,U as deepMerge,ue as deepMergeExtends,cs as deepStringifyFunctions,xn as defaultDefine,qh as defineSetter,Ia as depth,ys as detectInfiniteLoop,vg as devices,Et as emotion,Td as encodeNewlines,Qr as error,Wd as excludeKeysFromObject,O as exec,Kw as executeAttr,Dk as exetuteClassPerComponent,ph as extendCachedRegistry,As as extendStackRegistry,Rs as extractArrayExtend,Mm as fibonacciNumberByIndex,Sd as filterArrays,_d as filterArraysFast,Dl as filterAttributesByTagName,Hc as finalizeExtends,Cf as findClosestNumber,$m as findClosestNumberInFactory,Rf as findHeadingLetter,ra as findHeadings,er as findInheritedState,kd as findKeyPosition,Vn as flattenExtend,ig as font,lg as font_face,ag as font_family,cg as font_family_types,Lm as formatDate,Fc as generateHash,bs as generateKey,Km as generateMetaTags,Kt as generateSequence,Ug as generateSequencePosition,mo as generateSprite,ta as generateSubSequence,jh as get,C as getActiveConfig,Wo as getActiveLang,ee as getCDNUrl,yh as getCapitalCaseKeys,po as getCdnProviderFromConfig,tr as getChildStateInKey,zh as getChildren,J as getColor,Sf as getColorShade,vi as getContext,ch as getCookie,Ri as getDB,an as getDefaultOrFirstKey,gh as getExtendsInElement,Cs as getExtendsStack,Lc as getExtendsStackRegistry,Fe as getFnPrefixAndValue,Dm as getFontFace,cn as getFontFaceEach,Ef as getFontFaceEachString,zi as getFontFaceString,fa as getFontFamily,wf as getFontFormat,pa as getFontSizeByKey,pd as getFrequencyInArray,Ts as getHashedExtend,Gm as getImportMapScript,gs as getInObjectByPath,hc as getLanguages,xc as getLocalStateLang,fh as getLocalStorage,Ct as getMediaColor,Yt as getMediaTheme,Qd as getNev,Jm as getPageMetadata,Ze as getParentStateInKey,bi as getPath,Ii as getQuery,yi as getRef,sn as getRgbTone,Si as getRoot,wi as getRootContext,_i as getRootData,xi as getRootState,Je as getRootStateInKey,ea as getSequenceValue,Tf as getSequenceValueBySymbols,be as getSequenceValuePropertyPair,ga as getShadow,Le as getSpacingBasedOnRatio,at as getSpacingByKey,bh as getSpreadChildren,Zi as getSubratio,Ji as getSubratioDifference,ia as getTheme,Ut as getTimingByKey,Dt as getTimingFunction,ld as global,hg as gradient,Rg as grid,fs as hasFunction,Ye as hasHandlerPlugin,Vd as hasOwnProperty,Om as hexToRgb,gf as hexToRgbArray,Tm as hexToRgba,xf as hslToRgb,yg as icons,jc as inheritChildExtends,Vc as inheritChildPropsExtends,Us as inheritParentProps,zc as inheritRecursiveChildExtends,Ue as init,id as initPolyglot,qn as initProps,At as is,S as isArray,Pn as isBoolean,nt as isCSSVar,Ds as isContextComponent,Hd as isCyclic,Bt as isDOMNode,Cc as isDate,Ot as isDefined,Jt as isDevelopment,Oc as isEmpty,jd as isEmptyObject,Ac as isEqualDeep,b as isFunction,lo as isGoogleFontsUrl,Jo as isHtmlElement,Xd as isLocal,Ht as isMethod,ih as isMobile,Ee as isNode,Fr as isNot,Br as isNotProduction,Ec as isNull,ct as isNumber,g as isObject,N as isObjectLike,Hm as isPhoto,Ke as isProduction,ye as isResolvedColor,nn as isScalingUnit,Yd as isStaging,Hn as isState,y as isString,rh as isStringFunction,Rc as isTest,Kd as isTesting,K as isUndefined,ke as isValidHtmlTag,Nn as joinArrays,hh as jointStacks,Qn as keys,jm as loadCssFile,zm as loadJavascript,Bm as loadJavascriptFile,Vm as loadJavascriptFileEmbedSync,Um as loadJavascriptFileSync,qm as loadRemoteCSS,uo as loadRemoteScript,gc as loadTranslations,Ei as log,sh as logGroupIf,oh as logIf,di as lookdown,hi as lookdownAll,pi as lookup,ce as lowercaseFirstLetter,zd as makeObjectWithoutPrototype,Fd as map,Is as mapStringsWithContextComponents,It as matchesComponentNaming,fg as media,th as memoize,Y as merge,km as mixTwoColors,Rm as mixTwoRgb,_f as mixTwoRgba,ki as nextElement,De as numToLetterMap,ls as objectToString,Fs as objectizeStringProperty,co as opacify,fe as overwrite,it as overwriteDeep,Mr as overwriteShallow,Js as overwriteState,Jn as parse,hr as parseColorToken,Xr as parseDeep,Vr as pickupElementFromProps,Xc as pickupPropsFromElement,Go as polyglotFunctions,Sc as polyglotPlugin,Oi as previousElement,_h as propExists,zn as propertizeElement,Bs as propertizeUpdate,Xu as reinit,mi as remove,eg as removeChars,lh as removeCookie,js as removeDuplicateProps,Dn as removeDuplicatesInArray,ts as removeFromArray,ps as removeFromObject,hs as removeNestedKeyByPath,rs as removeValueFromArray,gd as removeValueFromArrayAll,bd as reorderArrayByValues,Cd as replaceLiteralsWithObjectFields,Ad as replaceOctalEscapeSequences,Ng as reset,Ca as resolveColorsInGradient,Ie as resolveFileUrl,Xe as resolveHandler,Wt as resolvePropValue,Nm as returnSubThemeOrDefault,tl as returnValueAsText,yf as rgbArrayToHex,bf as rgbToHSL,Am as rgbToHex,Ln as runPluginHook,Df as runThroughMedia,xo as scratchSystem,xr as scratchUtils,fd as self,bg as semantic_icons,Pe as sequence,dn as set,Of as setActiveConfig,OT as setClass,Sr as setColor,ah as setCookie,ji as setCustomFont,gr as setCustomFontMedia,sy as setEach,la as setFont,yo as setFontFamily,fo as setFontImport,_r as setGradient,$c as setHashedExtend,vf as setInCustomFontMedia,ms as setInObjectByPath,yc as setLang,uh as setLocalStorage,ca as setMediaTheme,Xn as setNodeStyles,gi as setProps,Vs as setPropsPrototype,bo as setSVG,Qi as setScalingVar,wr as setShadow,Af as setSubScalingVar,_a as setSvgIcon,aa as setTheme,oy as setValue,Vg as setVariables,gg as shadow,pg as spacing,ma as splitSpacedValue,mr as splitTopLevelCommas,So as splitTransition,ui as spotByPath,os as stringIncludesAny,Ud as stringToObject,kg as svg,Og as svg_data,dd as swapItemsInArray,zs as syncProps,Ag as templates,mg as theme,Sg as timing,Hi as toCamelCase,Wi as toDashCase,ng as toDescriptionCase,rg as toTitleCase,Fm as toggleFullscreen,Uf as transformBackgroundImage,xe as transformBorder,ka as transformBorderRadius,Ea as transformBoxShadow,mf as transformDOMQLEmotion,vr as transformDuration,Mk as transformEmotion,hf as transformEmotionClass,Cm as transformEmotionStyle,Bf as transformShadow,ot as transformSize,V as transformSizeRatio,Mf as transformTextStroke,ry as transformTransition,tu as transformersByPrefix,Vf as transfromGap,mc as translate,W as triggerEventOn,vt as triggerEventOnUpdate,vd as trimStringFromSymbols,Gi as typography,og as unit,es as unstackArrayOfObjects,Qc as update,qs as updateProps,kT as updateVars,bc as upsertTranslation,Xt as useCssInProps,by as usePropsAsCSS,xy as useSelectorsAsCSS,Ai as variables,Zn as verbose,Ci as warn,F as window};
|
|
37
|
+
${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var hu=t=>ke(t||"div")||yt("HTMLInvalidTag");var Fb=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},$b=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},mu=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(Da||!e)return;Da=!0;function r(){if(t.size===0){Da=!1;return}$b(t),e(r)}e(r)},gu=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(Fb(t),mu(o))},Da=!1,yu=()=>{let t=new Set;return mu(t),t};v();var bu=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=ce(n.slice(2)),s=r[o],i=e[n];b(s)?r[o]=(...a)=>{if(s(...a)!==!1&&b(i))return i(...a)}:r[o]=i}},Su=t=>{let{on:e}=t,r=Ye(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!b(o)&&!(r&&o!=null))continue;let s=ce(n.slice(2)),i=e[s];b(i)?e[s]=(...a)=>{if(i(...a)!==!1&&b(o))return o(...a)}:e[s]=o}};v();var Fa="http://www.w3.org/2000/svg",Lb=t=>{let{tag:e,context:r}=t,n=r.document||L;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Qe.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Fa)?n.createElementNS(Fa,e):n.createElement(e):n.createElement("div")},$a=t=>{let{tag:e,key:r,props:n}=t;if(e=O(e,t),e===!0&&(e=r),g(n)&&y(n.tag)&&ke(n.tag))return n.tag;if(y(e)){if(ke(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ke(o))return o}return"div"},xu=t=>{let{context:e}=t,r=e.window||window,n=t.tag=$a(t);if(!hu(n))return yt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Qe.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Fa)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=Lb(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var Mb=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},Bb=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},Ub=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},La=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?Ub:Bb)(t.node,n.node||e.node):Mb(t.node,e.node,t)),t};v();var Eo=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(b(o)&&!Ht(n,t)){r.__exec[n]=o;try{let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}).catch(i=>{console.warn("[DOMQL] Async exec error in",n,":",i?.message||i)}):t[n]=s}catch(s){console.warn("[DOMQL] Exec error in",n,":",s?.message||s)}}}},_u=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=y(a)||ct(a);if(s?.node&&c)fe(s,{text:a});else if(a!==s)if(It(o)){let{extends:f,...l}=Fs(a,t,o);fe(s,l)}else n[o]=s,t[o]=a}return n},Co=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(b(a)){let c=O(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&b(r[n])){e.__execProps[n]=r[n];let c=O(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},ko=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(b(c)&&!Ht(a,t)){n.__exec[a]=c;let l=O(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},wu=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=O(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function vu(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(Fr(t)("object")&&yt("HTMLInvalidAttr",t),t){let i=O(t,e);o.attr&&U(i,o.attr);for(let a in i){let c=O(i[a],e);y(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var Eu=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},Vb=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${O(o,e)}`)}return r},Cu=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),y(t)&&(t=e.classlist={default:t}),g(t)&&(t=Vb(t,e)),t.replace(/\s+/g," ").trim()};v();function jb(t,e,r){if(t&&(e.props.data&&U(t,e.props.data),t.showOnNode)){g(t)||yt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=O(t[n],e))}}var ku=jb;v();function zb(t,e,r){let n=O(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var Ou=zb;v();function qb(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=O(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else yt("HTMLInvalidStyles",t)}var Au=qb;v();function Hb(t,e,r){let n=O(e.props.text||t,e);if(y(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Qe.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else jt({tag:"string",text:n},e,"__text")}}var Tu=Hb;v();function Wb(t,e,r){let n=O(t,e);if(g(n))for(let o in n)Tt.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var Ru=Wb;v();function Gb(t,e,r){if(g(t))for(let n in t){let o=t[n];b(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Iu=Gb;var re={attr:vu,style:Au,text:Tu,html:Ou,data:ku,classlist:Cu,state:Ru,scope:Iu,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Oo=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=O(e[t],e),{onlyUpdate:a}=r,c=re[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){b(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var Ma=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(x(t)&&x(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Ma(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!Ma(t[a],e[a]))return!1}return!0}return t===e},Pu=new Set([".","/","./"]),Kb=(t,e)=>{if(!y(t)||!e)return;if(Pu.has(t))return e.parse?e.parse():e;let r=Je(t,e);if(r){let o=t.replaceAll("~/","");return tr(o,r)}let n=Ze(t,e);if(n){let o=t.replaceAll("../","");return tr(o,n)}return tr(t,e)};function Yb(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=O(t,e,s),c=O(n,e,s);n=a||c;let f;if(n){if(Wn(n)&&(i=i||"state",n=n.parse()),y(n)||ct(n)){let p=Kb(n,s);p!==void 0?(f=Pu.has(n)?"":n,n=Wn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return It(p)?As(p,d):d})}}if(!n||Fr(n)("array","object"))return;if(x(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?Ma(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=z(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=z(n),o.__childrenCache=l),(g(n)||x(n))&&(n=l||z(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(Ot(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=N(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Ao=Yb;var Nu=process.env.NODE_ENV,Du=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=xu(t),W("attachNode",t,e)),(Nu==="test"||Nu==="development"||e.alowRefReference)&&(r.ref=t,b(r.setAttribute)&&r.setAttribute("key",t.key)),Co(t),ko(t),Eo(t),bu(t),Su(t),pu(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||Ht(a,t)||g(re[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Oo(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{jt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||W("lazyLoad",t,e)}):p()}}}let i=t.children?Ao(t.children,t,e):t.children||t.content;return i&&gn(i,t,e),t};v();var Ba={key:":root",node:L?L.body:yt("DocumentNotDefined",L)},Ua=Ba;v();v();v();v();var Fu={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},$u=function(t,e=Fu){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,Fu),r.__element||yt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&vt("beforeStateUpdate",t,n,e)===!1?n:(Zs(r,t,e),Xb(r,t,e)||(Qb(r,t,e),Jb(r,t,e),e.preventStateUpdateListener||vt("stateUpdate",t,n,e)),r)},Xb=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=rr(n),f=er(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=Je(i,o.state),m=Ze(i,o.state),S=i.replaceAll("~/","").replaceAll("../",""),_=Qs(S,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let E=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&E&&vt("stateUpdate",e,n,r),!0},Qb=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},Jb=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var Zb=function(){let t=this;if(g(t)){let e={};for(let r in t)Tt.has(r)||(e[r]=t[r]);return e}else if(x(t))return t.filter(e=>!Tt.has(e))},tS=function(t={}){let e=this;for(let r in e)!Tt.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},eS=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(y(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(x(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},rS=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},nS=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},oS=function(t,e={}){let r=this;if(x(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},sS=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},iS=function(t,e={}){let r=this;return x(r)?es(r,t):g(r)&&ds(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},aS=function(t,e={}){let r=this,n=z(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},Lu=function(t,e,r={}){let n=this,o=z(e);r.preventReplace||gs(n,t,e);let s=hs(t,o);return r.preventStateUpdate?s:n.update(s,r)},cS=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=Lu.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&Va.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},Va=function(t,e={}){let r=this;return ms(r,t),e.preventUpdate?t:r.update({},e)},lS=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)Va(t[n],{preventUpdate:!0});return r.update({},e)},fS=function(t,e={}){return ys(this,t)},uS=function(t={}){let e=this,r=z(e.parse());return e.set(r,{replace:!0,...t})},pS=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},dS=function(t,e={}){let r=this;if(b(t)){let n=t(r);return r.replace(n,e)}},hS=function(t,e={}){let r=this;if(b(t))return t(r),r.update(r.parse(),{replace:!0,...e})},mS=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},gS=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},yS=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},bS=function(t,e={}){return Object.keys(this)},SS=function(t,e={}){return Object.values(this)},Mu=t=>{let e=t.state,r=t.__ref,n={clean:tS.bind(e),parse:Zb.bind(e),destroy:eS.bind(e),update:$u.bind(e),rootUpdate:nS.bind(e),parentUpdate:rS.bind(e),create:Me.bind(e),add:oS.bind(e),toggle:sS.bind(e),remove:iS.bind(e),apply:pS.bind(e),applyReplace:dS.bind(e),applyFunction:hS.bind(e),set:aS.bind(e),quietUpdate:mS.bind(e),replace:gS.bind(e),quietReplace:yS.bind(e),reset:uS.bind(e),parent:t.parent?.state||e,setByPath:Lu.bind(e),setPathCollection:cS.bind(e),removeByPath:Va.bind(e),removePathCollection:lS.bind(e),getByPath:fS.bind(e),keys:bS.bind(e),values:SS.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};x(e)?$r(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var Me=function(t,e,r){return t.state=xS(t,e,r),t.state},xS=function(t,e,r){let n=Ys(t);if(n===!1)return e.state||{};if(t.state=n,W("stateInit",t,r)===!1)return t.state;if(rr(t)){let i=Xs(t,e);t.state=K(i)?{}:i}let s=Js(t,t.state||e.state||{});return s&&(t.state=s),Mu(t),W("stateCreated",t),t.state};v();v();var Bu=[];var To={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:Bu},yn=function(t={},e){let r=g(e)?{...To,...e}:{...To},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Di(n,r);if(a)return;r.preventListeners||vt("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,To),(y(t)||ct(t))&&(t={text:t}),t=Us.call(n,t),vS(n,r)===!1)||wS(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let P=c.props&&(c.props[l]||c.props.childProps),F=o.__propsStack.some(b),j=t.props||P||F;j&&Hs(j,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let F={...t,...n};if(Object.setPrototypeOf(F,Object.getPrototypeOf(n)),vt("beforeUpdate",t,F,r)===!1)return n}if(it(n,t),Co(n),_u(n,{ignore:To}),wu(n),!r.isForced&&!r.preventListeners&&W("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:S,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:E,preventUpdateListener:R,preventUpdateAfter:T,preventUpdateAfterCount:A}=r;if(T){if(ct(A)&&T<=A)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=x(m)?new Set(m):null,$=x(S)?new Set(S):null;for(let P in n){let F=n[P];if(!Object.prototype.hasOwnProperty.call(n,P))continue;let j=k&&k.has(P),Z=$&&$.has(P),tt=b(F)&&P.length>2&&P.charCodeAt(0)===111&&P.charCodeAt(1)===110&&P.charCodeAt(2)>=65&&P.charCodeAt(2)<=90;if(K(F)||j||Z||S===!0||S===P||w&&P==="state"||Ht(P,n)||tt||g(re[P]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Oo(P,n,r);if(pt){let{hasDefine:_t,hasContextDefine:Lt}=pt;if(!(g(F)&&!_t&&!Lt&&!E))continue;let Yo=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(P,n,n.state,n.context);let st=t[P];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(P!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let Xo=r.onlyUpdate&&P===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},Qo=()=>yn.call(F,st,Xo);Yo?D.requestAnimationFrame(()=>{Qo(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):Qo()}}if(!_){let P=o.contentElementKey||"content",F=n[P],j=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(j){let Z=Ao(j,n,e);if(Z&&!o.__noChildrenDifference)gn(Z,n,r);else if(F?.__ref&&b(F.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>yn.call(F,t[P],{...r,currentSnapshot:s,calleeElement:i});tt?D.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):pt()}}else if(F?.__ref&&b(F.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>yn.call(F,t[P],{...r,currentSnapshot:s,calleeElement:i});Z?D.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&W("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&gn(Z,n,r)}}!R&&!r.preventListeners&&W("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},_S=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},wS=(t,e,r)=>{if(!b(t.if)&&!b(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=_S(t,e);delete t.__ref,delete t.parent;let c=jt(t,e,t.key,ut.create,a);return r.preventUpdate!==!0&&t.on&&b(t.on.update)&&jr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},vS=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=er(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&vt("beforeStateUpdate",i,t,e)===!1)return t;let a=ES(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&vt("stateUpdate",a.parse(),t,e)},ES=(t,e,r)=>{let n=t.state.__children,o=Me(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};Ni();var ja=(t,e,r={})=>{let n={set:qa,reset:Uu,update:yn,variables:Ti,remove:gi,updateContent:Vu,removeContent:za,setProps:yi,lookup:di,lookdown:hi,lookdownAll:mi,getRef:bi,getDB:Ii,getPath:Si,getQuery:Pi,getRootState:xi,getRoot:_i,getRootData:wi,getRootContext:vi,getContext:Ei,setNodeStyles:Qn,spotByPath:pi,parse:Zn,parseDeep:Xr,keys:Jn,nextElement:Oi,previousElement:Ai,log:Ci,verbose:to,warn:ki,error:Qr,call:Ri};t.context.methods&&(r.strict?Y:fe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var CS=new Set(["class","style"]),kS=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=Fl(e,r,n?.cssPropsRegistry),s={};for(let a in o)CS.has(a)||(s[a]=o[a]);let i=!1;for(let a in s){i=!0;break}i&&(t.attr?typeof t.attr=="object"&&(t.attr={...s,...t.attr}):t.attr=s)},Ro=process.env.NODE_ENV,jt=(t,e,r,n=ut.create||{},o)=>{OS(n);let s=Ks(t,e,r,n,Ba);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Gs(s,a),Ns(s,a,n),n.onlyResolveExtends?IS(s,a,i,n):(qn.call(s,s),W("start",s,n),AS(s,a,n),ja(s,a,n),Gn(s,a),Me(s,a),Ur(s,a),Hn(s,a,n),Vr.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=$a(s)),kS(s),Ur(s,a),s.node&&c.__if?La(s,a,i,o):(W("init",s,n)===!1||(W("beforeClassAssign",s,n),Eu(s),RS(s,a,n,o),zu(s,a),W("complete",s,n)),s))},OS=t=>{t&&!ut.create&&(ut.create=t,ut.create.context=t.context)},AS=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(ut.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},zu=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},TS=1,ju=new WeakMap,RS=(t,e,r,n)=>{ju.has(t)&&(Ro==="test"||Ro==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),ju.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=bs(o.path);o.__uniqId||a||(Du(t,r),o.__uniqId=TS++)};if(Ro==="test"||Ro==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;La(t,e,s,n),gu(t,r),W("render",t,r),W("renderRouter",t,r),W("done",t,r),W("create",t,r)},IS=(t,e,r,n)=>{let{__ref:o}=t;if(ja(t,e,n),Gn(t,e),Me(t,e),Ur(t,e),Hn(t,e,n),Vr.call(t,t,{cachedKeys:[]}),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),zu(t,e),t.tag!=="string"&&t.tag!=="fragment"){ko(t),Eo(t);for(let s in t){if(K(t[s])||Ht(s,t)||g(re[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];if(!(!o.__skipCreate&&re[s]&&!c)&&t[s]&&!i&&!c&&!a)try{jt(O(t[s],t),t,s,n)}catch(f){console.warn("[DOMQL] onlyResolveExtends child error in",s,":",f?.message||f)}}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Io=jt;var Cr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Uu(t){let e=this;jt(e,e.parent,void 0,{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...t})}var qu=(t,e,r)=>{let n=Cr(e,r);e[n]?.node&&za(e,r);let o=jt(t,e,n||"content",{ignoreChildExtends:!0,...ut.defaultOptions,...ut.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Vu=function(t,e){let r=this,n=Cr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function gn(t,e,r){let n=O(t,e);n&&e&&qa.call(e,n,r)}var za=function(t,e={}){let r=t||this,n=Cr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),b(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),b(o.remove)&&o.remove();delete r[n]}},qa=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return PS(t,e,n)}finally{o.__settingContent=!1}},PS=function(t,e,r){let{__ref:n}=r,o=Cr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&ps(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&vt("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&W("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{qu(t,r,e),e.preventUpdateListener||W("lazyLoad",r,e)}):qu(t,r,e)};var Wu=/^:(.+)/,Gu=/^\*$/,Hu=new Map,Ha=t=>{let e=Hu.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Wu);a?n.push({index:i,name:a[1]}):Gu.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Hu.set(t,s),s},Wa=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=Ha(f),u=NS(o,l);u>a&&(a=u,i=f,c=DS(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},NS=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Wu.test(r[i]))o+=1;else if(Gu.test(r[i]))o+=.5;else return-1;return o},DS=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Ga=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},Ka=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Ya=(t=0,e=D.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Po,No=0,FS={level:No,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:L&&L.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!1},ne=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||D,i=o.context.document||L,a={...FS,...o.context.routerOptions,...n};No=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Cr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=Ga(d),S=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Po;Po=p;let E,R,T;if(a.useParamsMatching){let k=Wa(p,o.routes,a.level);E=k.routePath,R=k.content,T=k.params}else E=Ya(a.level,p),R=o.routes[E||"/"]||o.routes["/*"],T={};let A=a.scrollToNode?S:a.scrollNode;if(!R||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:E,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:E,params:T,query:m,hash:h,element:o,state:r},$=Ka(a.guards,k);if($===!1)return;if(typeof $=="string")return ne($,e,r,{...n,guards:[]})}if(a.pushState&&s.history.pushState(r,null,p+(d||"")+(h||"")),w||!_){let k={route:E,hash:h,debugging:!1};Object.keys(T).length&&(k.params=T),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let $=o.__ref?.origin?.content,P={};if($)for(let F in $){let j=$[F];F==="__ref"||F==="props"||F==="node"||F==="parent"||F==="key"||(typeof j=="string"||typeof j=="number"||typeof j=="boolean"||typeof j=="object"&&j!==null&&!j.node&&!j.__ref)&&(P[F]=j)}o.set({...P,tag:a.useFragment&&"fragment",extends:R},{contentElementKey:f})}if(a.scrollToTop&&A?.scrollTo&&A.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k&&A?.scrollTo){let $=k.getBoundingClientRect().top+S.scrollTop-(a.scrollToOffset||0);A.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}W("routeChanged",o,a)},$S=ne;var Ku={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return Wt(t,e.href)||Wt(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},LS={extends:"Link"},Yu={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let S=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of S){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ne)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},MS={extends:[Ku,Yu]};var BS={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var US={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:t=>t.call("exec",t.props.disabled)},VS={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},jS={extends:"SquareButton",round:"C"},zS={extends:"Button",childExtends:"IconText"},qS={tag:"nav",display:"flex",childExtends:"SquareButton"},HS={extends:["SquareButton","ClickableItem"],round:"Z"};var WS={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},GS={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},KS={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"}};v();var YS={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:({parent:t,props:e})=>Ot(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},XS={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:({props:e})=>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"}}:{}})},QS={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var JS={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var ZS={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.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:lo("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:lo("#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:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var tx={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:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},ex={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},rx={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},nx={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var ox={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}}}};v();var bn={};Mt(bn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>cs,DOMQ_PROPERTIES:()=>He,ENV:()=>Kd,ERRORS_REGISTRY:()=>du,HTML_TAGS:()=>Un,METHODS:()=>Fn,METHODS_EXL:()=>as,NODE_ENV:()=>Qt,OPTIONS:()=>ut,PACKAGE_MANAGER_TO_CDN:()=>yr,PARSED_DOMQ_PROPERTIES:()=>is,PROPS_METHODS:()=>We,STATE_METHODS:()=>Tt,STATE_PROPERTIES:()=>Fd,SVG_TAGS:()=>Qe,TYPES:()=>ts,addCaching:()=>al,addContext:()=>il,addExtend:()=>gh,addExtends:()=>Rt,addItemAfterEveryElement:()=>bd,addProtoToArray:()=>$r,addRef:()=>nl,applyCSS:()=>Ju,applyDependentState:()=>Js,applyEvent:()=>jr,applyEventUpdate:()=>ti,applyExtends:()=>Ns,applyProps:()=>Ls,arrayContainsOtherArray:()=>pd,arraysEqual:()=>xd,arrayzeValue:()=>ln,cache:()=>vh,call:()=>Ri,captureSnapshot:()=>Di,checkForStateTypes:()=>Ys,checkIfInherits:()=>rr,checkIfStringIsInArray:()=>vd,clone:()=>Ld,cloneAndMergeArrayExtend:()=>Cs,cloneFunction:()=>oh,concatAddExtends:()=>As,copyJavaScriptToClipboard:()=>eg,copyStringToClipboard:()=>tg,createBasedOnType:()=>rl,createElement:()=>Ks,createElementExtends:()=>Vc,createExtends:()=>Os,createExtendsFromKeys:()=>Vn,createExtendsStack:()=>Hc,createIfConditionFlag:()=>Ur,createInheritedState:()=>Xs,createKey:()=>_s,createNestedObject:()=>hs,createNestedObjectByKeyPath:()=>Qs,createObjectWithoutPrototype:()=>Rc,createParent:()=>ol,createPath:()=>sl,createProps:()=>Bs,createPropsStack:()=>Zc,createRoot:()=>Gs,createScope:()=>Gn,createSnapshotId:()=>xs,customDecodeURIComponent:()=>Dd,customEncodeURIComponent:()=>Nd,cutArrayAfterValue:()=>gd,cutArrayBeforeValue:()=>md,debounce:()=>Zd,debounceOnContext:()=>th,decodeNewlines:()=>Id,deepClone:()=>z,deepContains:()=>ps,deepDestringifyFunctions:()=>le,deepExtend:()=>Bc,deepMerge:()=>U,deepMergeExtends:()=>ue,deepStringifyFunctions:()=>ls,defineSetter:()=>Hh,destringifyGlobalScope:()=>us,detectInfiniteLoop:()=>bs,document:()=>L,encodeNewlines:()=>Rd,error:()=>Qr,excludeKeysFromObject:()=>Gd,exec:()=>O,extendCachedRegistry:()=>dh,extendStackRegistry:()=>Ts,extractArrayExtend:()=>Is,fibonacciNumberByIndex:()=>Bm,filterArrays:()=>_d,filterArraysFast:()=>wd,finalizeExtends:()=>Wc,findClosestNumber:()=>kf,findClosestNumberInFactory:()=>Lm,findInheritedState:()=>er,findKeyPosition:()=>Od,flattenExtend:()=>jn,formatDate:()=>Mm,generateHash:()=>$c,generateKey:()=>Ss,generateMetaTags:()=>Ym,get:()=>zh,getActiveRoute:()=>Ya,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>bh,getCdnProviderFromConfig:()=>ho,getChildStateInKey:()=>tr,getChildren:()=>qh,getContext:()=>Ei,getCookie:()=>lh,getDB:()=>Ii,getExtendsInElement:()=>yh,getExtendsStack:()=>ks,getExtendsStackRegistry:()=>Mc,getFrequencyInArray:()=>dd,getHashedExtend:()=>Rs,getImportMapScript:()=>Km,getInObjectByPath:()=>ys,getLocalStorage:()=>uh,getNev:()=>Jd,getPageMetadata:()=>Zm,getParentStateInKey:()=>Ze,getPath:()=>Si,getQuery:()=>Pi,getRef:()=>bi,getRoot:()=>_i,getRootContext:()=>vi,getRootData:()=>wi,getRootState:()=>xi,getRootStateInKey:()=>Je,getSpreadChildren:()=>Sh,global:()=>fd,hasFunction:()=>$n,hasHandlerPlugin:()=>Ye,hasOwnProperty:()=>jd,inheritChildExtends:()=>zc,inheritChildPropsExtends:()=>jc,inheritParentProps:()=>Vs,inheritRecursiveChildExtends:()=>qc,init:()=>Ue,initProps:()=>Hn,is:()=>At,isArray:()=>x,isBoolean:()=>Pn,isContextComponent:()=>Fs,isCyclic:()=>Wd,isDOMNode:()=>Bt,isDate:()=>kc,isDefined:()=>Ot,isDevelopment:()=>Jt,isEmpty:()=>Ac,isEmptyObject:()=>zd,isEqualDeep:()=>Tc,isFunction:()=>b,isHtmlElement:()=>Zo,isLocal:()=>Qd,isMethod:()=>Ht,isMobile:()=>ah,isNode:()=>Ee,isNot:()=>Fr,isNotProduction:()=>Br,isNull:()=>Cc,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>N,isPhoto:()=>Wm,isProduction:()=>Ke,isStaging:()=>Xd,isState:()=>Wn,isString:()=>y,isStringFunction:()=>nh,isTest:()=>Ic,isTesting:()=>Yd,isUndefined:()=>K,isValidHtmlTag:()=>ke,joinArrays:()=>Nn,jointStacks:()=>mh,keys:()=>Jn,lastLevel:()=>No,lastPathname:()=>Po,loadCssFile:()=>zm,loadJavascript:()=>qm,loadJavascriptFile:()=>Um,loadJavascriptFileEmbedSync:()=>jm,loadJavascriptFileSync:()=>Vm,loadRemoteCSS:()=>Hm,loadRemoteScript:()=>po,log:()=>Ci,logGroupIf:()=>ih,logIf:()=>sh,lookdown:()=>hi,lookdownAll:()=>mi,lookup:()=>di,lowercaseFirstLetter:()=>ce,makeObjectWithoutPrototype:()=>qd,map:()=>$d,mapStringsWithContextComponents:()=>Ps,matchRoute:()=>Wa,matchesComponentNaming:()=>It,memoize:()=>eh,merge:()=>Y,nextElement:()=>Oi,objectToString:()=>fs,objectizeStringProperty:()=>$s,overwrite:()=>fe,overwriteDeep:()=>it,overwriteShallow:()=>Mr,overwriteState:()=>Zs,parse:()=>Zn,parseDeep:()=>Xr,parseQuery:()=>Ga,parseRoutePattern:()=>Ha,pickupElementFromProps:()=>Vr,pickupPropsFromElement:()=>Qc,previousElement:()=>Ai,propExists:()=>wh,propertizeElement:()=>qn,propertizeUpdate:()=>Us,reinit:()=>Qu,remove:()=>gi,removeChars:()=>rg,removeCookie:()=>fh,removeDuplicateProps:()=>zs,removeDuplicatesInArray:()=>Dn,removeFromArray:()=>es,removeFromObject:()=>ds,removeNestedKeyByPath:()=>ms,removeValueFromArray:()=>ns,removeValueFromArrayAll:()=>yd,reorderArrayByValues:()=>Sd,replaceLiteralsWithObjectFields:()=>kd,replaceOctalEscapeSequences:()=>Td,report:()=>yt,resolveHandler:()=>Xe,returnValueAsText:()=>el,router:()=>ne,runGuards:()=>Ka,runPluginHook:()=>Mn,scratchSystem:()=>xo,scratchUtils:()=>Sr,self:()=>ud,set:()=>dn,setCookie:()=>ch,setHashedExtend:()=>Lc,setInObjectByPath:()=>gs,setLocalStorage:()=>ph,setNodeStyles:()=>Qn,setProps:()=>yi,setPropsPrototype:()=>js,spotByPath:()=>pi,stringIncludesAny:()=>ss,stringToObject:()=>Vd,swapItemsInArray:()=>hd,syncProps:()=>qs,toCamelCase:()=>Wi,toDashCase:()=>Gi,toDescriptionCase:()=>og,toTitleCase:()=>ng,toggleFullscreen:()=>$m,triggerEventOn:()=>W,triggerEventOnUpdate:()=>vt,trimStringFromSymbols:()=>Ed,unstackArrayOfObjects:()=>rs,update:()=>Jc,updateProps:()=>Hs,variables:()=>Ti,verbose:()=>to,warn:()=>ki,window:()=>D});v();v();var sx=C(),Xu=(t=sx,e)=>{let r=g(e.localFile)?e.localFile:{},n=z(r.designSystem||{});return U(t,n)},ix={emotion:Et,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Ue=(t,e=ix)=>{let r=e.emotion||Et,n=Xu(t||{},e),o=dn({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=qi(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&_a(o.svg,{document:e.document}),(p||u)&&va(o.icons,{document:e.document}),o},Do={emotion:Et},Qu=(t,e=Do)=>{let r=e.emotion||Et,n=Xu(t||{},e),o=dn({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Ju=(t,e=Do)=>{(e.emotion||Et).injectGlobal(t)},AT=(t,e=Do)=>{let r=e.emotion||Et;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}};var TT=(t,e=Do)=>{};v();var Qa={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},tp=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},ep=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Qa:e.router=Y(e.router||{},Qa);let r=e.router,n=async(s,i)=>{if(!D.location)return;let{pathname:a,search:c,hash:f}=D.location,l=a+c+f,u=s;if(r.customRouterElement){let p=tp(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ne(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),ax(e,r),r},Zu,rp=(t,e)=>{if(Zu)return;Zu=!0;let r=e.router||Qa;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ne;D.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=D.location,c=s+i+a,f=t;if(r.customRouterElement){let l=tp(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},ax=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return U(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Ja=D&&D.location?D.location.host.includes("dev."):Jt(),np=Ja?"http://localhost:8080/get":"https://api.symbols.app/get",cx={endpoint:np},op=async(t,e=cx)=>{let r=e.endpoint||np,n=e.serviceRoute?x(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(b(e.onError))return e.onError(s);console.error(s)}},lx=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await op(t,r),o=Ja||e.isDevelopment?le(n):le(n.releases[0]);r.serviceRoute?x(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions","globalScope"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},fx=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await op(t,n),s=Ja||e.isDevelopment?le(o):le(o.releases[0]);r(s)}},sp=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await lx(t,e)}catch(r){console.error(r)}},ip=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&fx(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var ux={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"}},px=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Fo=(t,e,r)=>{if(!t)return{};let n=b(t)?O(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];b(s)&&(s=O(s,e,r)),y(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var dx=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},$o=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=ux[r];if(!o)continue;let s=px(o),i=e.querySelector(s)||dx(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var ap={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Fo(e,t,t.state);$o(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Fo(e,t,t.state);$o(n,r)}};Ae();var cp=(t,e,r,n)=>{t&&Kr(t,e,r,n)},lp=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Fo(t,e,r);$o(o,n)},fp=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},Sn={routes:t=>t,metadata:lp,fetch:cp,$router:fp},hx=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=lp),t.fetch!==!1&&(e.fetch=cp),t.router!==!1&&(e.$router=fp),e};var up={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Za={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},tc={...up,router:Za},mx={state:{},pages:{},components:{},router:Za,define:Sn},xe=mx;var gx=(t,e,r,n)=>{let o=(Io.default||Io)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},Ve={TREE:Ua,create:gx};v();v();var zt=Object.create(null);zt.open="0";zt.close="1";zt.ping="2";zt.pong="3";zt.message="4";zt.upgrade="5";zt.noop="6";var xn=Object.create(null);Object.keys(zt).forEach(t=>{xn[zt[t]]=t});var _n={type:"error",data:"parser error"};var hp=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",mp=typeof ArrayBuffer=="function",gp=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,wn=({type:t,data:e},r,n)=>hp&&e instanceof Blob?r?n(e):pp(e,n):mp&&(e instanceof ArrayBuffer||gp(e))?r?n(e):pp(new Blob([e]),n):n(zt[t]+(e||"")),pp=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function dp(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var ec;function yp(t,e){if(hp&&t.data instanceof Blob)return t.data.arrayBuffer().then(dp).then(e);if(mp&&(t.data instanceof ArrayBuffer||gp(t.data)))return e(dp(t.data));wn(t,!1,r=>{ec||(ec=new TextEncoder),e(ec.encode(r))})}var bp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<bp.length;t++)vn[bp.charCodeAt(t)]=t;var Sp=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=vn[t.charCodeAt(n)],i=vn[t.charCodeAt(n+1)],a=vn[t.charCodeAt(n+2)],c=vn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var yx=typeof ArrayBuffer=="function",En=(t,e)=>{if(typeof t!="string")return{type:"message",data:xp(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:bx(t.substring(1),e)}:xn[r]?t.length>1?{type:xn[r],data:t.substring(1)}:{type:xn[r]}:_n},bx=(t,e)=>{if(yx){let r=Sp(t);return xp(r,e)}else return{base64:!0,data:t}},xp=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var _p="",wp=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{wn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(_p))})})},vp=(t,e)=>{let r=t.split(_p),n=[];for(let o=0;o<r.length;o++){let s=En(r[o],e);if(n.push(s),s.type==="error")break}return n};function Ep(){return new TransformStream({transform(t,e){yp(t,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))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var rc;function Lo(t){return t.reduce((e,r)=>e+r.length,0)}function Mo(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Cp(t,e){rc||(rc=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Lo(r)<1)break;let c=Mo(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Lo(r)<2)break;let c=Mo(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Lo(r)<8)break;let c=Mo(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(_n);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(Lo(r)<o)break;let c=Mo(r,o);a.enqueue(En(s?c:rc.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(_n);break}}}})}var nc=4;function X(t){if(t)return Sx(t)}function Sx(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var oe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),bt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),kp="arraybuffer";function Bo(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var xx=bt.setTimeout,_x=bt.clearTimeout;function se(t,e){e.useNativeTimers?(t.setTimeoutFn=xx.bind(bt),t.clearTimeoutFn=_x.bind(bt)):(t.setTimeoutFn=bt.setTimeout.bind(bt),t.clearTimeoutFn=bt.clearTimeout.bind(bt))}var wx=1.33;function Op(t){return typeof t=="string"?vx(t):Math.ceil((t.byteLength||t.size)*wx)}function vx(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Uo(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ap(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function Tp(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Vo=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},ie=class extends X{constructor(e){super(),this.writable=!1,se(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Vo(e,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(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=En(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_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 r=Ap(e);return r.length?"?"+r:""}};var Cn=class extends ie{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};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(e){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)};vp(e,this.socket.binaryType).forEach(r),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,wp(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Uo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Rp=!1;try{Rp=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Ip=Rp;function Ex(){}var oc=class extends Cn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},_e=class t extends X{constructor(e,r,n){super(),this.createRequest=e,se(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 e;let r=Bo(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{}(e=this._opts.cookieJar)===null||e===void 0||e.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=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Ex,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};_e.requestsCount=0;_e.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Pp);else if(typeof addEventListener=="function"){let t="onpagehide"in bt?"pagehide":"unload";addEventListener(t,Pp,!1)}}function Pp(){for(let t in _e.requests)_e.requests.hasOwnProperty(t)&&_e.requests[t].abort()}var Cx=(function(){let t=Np({xdomain:!1});return t&&t.responseType!==null})(),we=class extends oc{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=Cx&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new _e(Np,this.uri(),e)}};function Np(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Ip))return new XMLHttpRequest}catch{}if(!e)try{return new bt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Dp=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",ic=class extends ie{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Dp?{}:Bo(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(e,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=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 r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;wn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&oe(()=>{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",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Uo()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},sc=bt.WebSocket||bt.MozWebSocket,ve=class extends ic{createSocket(e,r,n){return Dp?new sc(e,r,n):r?new sc(e,r):new sc(e)}doWrite(e,r){this.ws.send(r)}};var kr=class extends ie{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 r=Cp(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Ep();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),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(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&oe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var ac={websocket:ve,webtransport:kr,polling:we};var kx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ox=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Or(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=kx.exec(t||""),s={},i=14;for(;i--;)s[Ox[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,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=Ax(s,s.path),s.queryKey=Tx(s,s.query),s}function Ax(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Tx(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var cc=typeof addEventListener=="function"&&typeof removeEventListener=="function",jo=[];cc&&addEventListener("offline",()=>{jo.forEach(t=>t())},!1);var je=class t extends X{constructor(e,r){if(super(),this.binaryType=kp,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Or(e);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=Or(r.host).host);se(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=Tp(this.opts.query)),cc&&(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"})},jo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=nc,r.transport=e,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[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.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",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.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=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),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 e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.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+=Op(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,oe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,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:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},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():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,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(),cc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=jo.indexOf(this._offlineEventListener);n!==-1&&jo.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};je.protocol=nc;var zo=class extends je{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 r=this.createTransport(e),n=!1;je.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;je.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Ar=class extends zo{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>ac[o]).filter(o=>!!o)),super(e,n)}};var iI=Ar.protocol;function Fp(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Or(t)),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+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var hc={};Mt(hc,{Decoder:()=>pc,Encoder:()=>uc,PacketType:()=>I,isPacketValid:()=>Bx,protocol:()=>Up});var Ix=typeof ArrayBuffer=="function",Px=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,$p=Object.prototype.toString,Nx=typeof Blob=="function"||typeof Blob<"u"&&$p.call(Blob)==="[object BlobConstructor]",Dx=typeof File=="function"||typeof File<"u"&&$p.call(File)==="[object FileConstructor]";function On(t){return Ix&&(t instanceof ArrayBuffer||Px(t))||Nx&&t instanceof Blob||Dx&&t instanceof File}function kn(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(kn(t[r]))return!0;return!1}if(On(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return kn(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&kn(t[r]))return!0;return!1}function Lp(t){let e=[],r=t.data,n=t;return n.data=lc(r,e),n.attachments=e.length,{packet:n,buffers:e}}function lc(t,e){if(!t)return t;if(On(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=lc(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=lc(t[n],e));return r}return t}function Mp(t,e){return t.data=fc(t.data,e),delete t.attachments,t}function fc(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=fc(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=fc(t[r],e));return t}var Bp=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Up=5,I;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(I||(I={}));var uc=class{constructor(e){this.replacer=e}encode(e){return(e.type===I.EVENT||e.type===I.ACK)&&kn(e)?this.encodeAsBinary({type:e.type===I.EVENT?I.BINARY_EVENT:I.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===I.BINARY_EVENT||e.type===I.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=Lp(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},pc=class t extends X{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===I.BINARY_EVENT;n||r.type===I.BINARY_ACK?(r.type=n?I.EVENT:I.ACK,this.reconstructor=new dc(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(On(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),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: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(I[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===I.BINARY_EVENT||n.type===I.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case I.CONNECT:return qo(r);case I.DISCONNECT:return r===void 0;case I.CONNECT_ERROR:return typeof r=="string"||qo(r);case I.EVENT:case I.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&Bp.indexOf(r[0])===-1);case I.ACK:case I.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},dc=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 r=Mp(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Fx(t){return typeof t=="string"}var $x=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function Lx(t){return t===void 0||$x(t)}function qo(t){return Object.prototype.toString.call(t)==="[object Object]"}function Mx(t,e){switch(t){case I.CONNECT:return e===void 0||qo(e);case I.DISCONNECT:return e===void 0;case I.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&Bp.indexOf(e[0])===-1);case I.ACK:return Array.isArray(e);case I.CONNECT_ERROR:return typeof e=="string"||qo(e);default:return!1}}function Bx(t){return Fx(t.nsp)&&Lx(t.id)&&Mx(t.type,t.data)}function kt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var Ux=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Tr=class extends X{constructor(e,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=e,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 e=this.io;this.subs=[kt(e,"open",this.onopen.bind(this)),kt(e,"packet",this.onpacket.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(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,...r){var n,o,s;if(Ux.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:I.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&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[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.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(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.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:I.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,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case I.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 I.EVENT:case I.BINARY_EVENT:this.onevent(e);break;case I.ACK:case I.BINARY_ACK:this.onack(e);break;case I.DISCONNECT:this.ondisconnect();break;case I.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.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 r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:I.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,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:I.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 r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,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 r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function ze(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}ze.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};ze.prototype.reset=function(){this.attempts=0};ze.prototype.setMin=function(t){this.ms=t};ze.prototype.setMax=function(t){this.max=t};ze.prototype.setJitter=function(t){this.jitter=t};var Rr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,se(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 ze({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||hc;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.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 r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.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 Ar(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=kt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=kt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),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(kt(e,"ping",this.onping.bind(this)),kt(e,"data",this.ondata.bind(this)),kt(e,"error",this.onerror.bind(this)),kt(e,"close",this.onclose.bind(this)),kt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){oe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Tr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],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,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),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 r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var An={};function Tn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Fp(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=An[o]&&s in An[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Rr(n,e):(An[o]||(An[o]=new Rr(n,e)),c=An[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Tn,{Manager:Rr,Socket:Tr,io:Tn,connect:Tn});v();var Vx={success:"green",error:"red",warning:"yellow"},Vp=(t,e,r)=>{if(t.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,e.notifications.content.connected.setProps({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,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},Rn={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:Vx[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var jp=process.env.NODE_ENV==="local",jx=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},zx=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},qx=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":jx(t,o);break;case"update":case"set":zx(t,o,s,!0);break;default:break}return r},Hx=async()=>{try{let t=jp?"http://localhost:8080":"https://api.symbols.app",e=await D.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},Wx=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Ue(a):Mr(r[i],a):r[i]=a}),s&&(r.schema=s))},Gx=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=qx(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Ue(r.designSystem)},Kx=async(t,e,r)=>{let n=await Hx();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=Tn(jp?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",Wx(t,e,r)),i.on("ops",Gx(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Vp(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},Ho={onInitSync:Kx};var zp=(t,e)=>N(t.extends)?t.extends:[],qp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Jt():r.liveSync)&&(x(t.extends)?t.extends.push(Ho):t.extends?t.extends=[t.extends,Ho]:t.extends=[Ho])};var Hp=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Jt()||e.verbose:r.verbose)&&(x(t.extends)?t.extends.push(Rn):t.extends?t.extends=[t.extends,Rn]:t.extends=[Rn])};v();v();var Yx=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Wp=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=Et);let s=e.registry||gf(n.emotion,e),i=e.designSystem?U(z(Ia),e.designSystem):z(Ia),a={};for(let f of Yx)e[f]!==void 0&&(a[f]=e[f]);return[Ue(i,{key:t,emotion:o,document:r,files:e.files,...tc,...a,...n}),o,s]};var Yp=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Gp=(t="smbls")=>{let e={};for(let r in Be)Object.prototype.hasOwnProperty.call(Be,r)&&(It(r)?e[`smbls.${r}`]=Be[r]:e[r]=Be[r]);return e},Xp=t=>t.components?{...Gp(),...t.components}:Gp(),Qp=t=>({...bn,...Xa,...Sr,...t.utils,...t.snippets,...t.functions}),Jp=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Kp={},Zp=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=yr[s]||ho(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Jt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(Kp[c])return;Kp[c]=!0,await po(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await po(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},td=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||ho(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Jt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let S=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(S,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},ed=(t,e)=>{let[r,n,o]=Wp(t,e);return[r,n,o]},rd=(t,e)=>{let r={};return e.state&&U(r,e.state),t&&t.state&&U(r,t.state),r.isRootState=!0,z(r)},nd=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.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},od=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];t.type==="template"?(overwriteShallow(t.designSystem,n.designSystem),U(t,n,["designSystem"],1)):U(t,n,[],1)}};v();var id="smbls_lang",Xx="smbls_t_",Qx="smbls_tv_",Ir={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch{}},remove(t){try{window?.localStorage.removeItem(t)}catch{}}},In={};function Go(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function mc(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Wo=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},sd=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=Wo(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function gc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=sd(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=Wo(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=Wo(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=sd(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=Wo(f,t);if(l!==void 0)return l}}return t}async function yc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||Xx,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):Qx);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Ir.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch{}}let i=(r.storagePrefix||"smbls")+":"+t;if(In[i])return In[i];let a=this;return In[i]=(async()=>{try{let c=r.fetch,f=parseInt(Ir.get(s+t),10)||0,l,u,p;if(b(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=b(h)?await h.call(a):e.fetch;if(!m)return;let S=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:S,params:_});if(w.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,w.error;let E=w.data;if(!E||!E.changed)return;l=E.translations||{},u=E.version||0,p=!0}else return;if(!p||!l)return;Ir.set(o+t,JSON.stringify(l)),u&&Ir.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let f=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",f)}}finally{delete In[i]}})(),In[i]}async function bc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||id;Ir.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function Sc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=b(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function ad(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||id,s=Ir.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function xc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var _c={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,ad.call(t))}};var Ko={polyglot:gc,getLocalStateLang:xc,getActiveLang:Go,getLang:Go,setLang:bc,getLanguages:mc,loadTranslations:yc,upsertTranslation:Sc};Ae();var Jx=async(t,e={})=>{let r=e.key=e.key||(y(t)?t:"smblsapp");e.define=e.define||Sn,e.cssPropsRegistry=hn,e.window=Yp(e),e.sharedLibraries&&e.sharedLibraries.length&&od(e);let[n,o,s]=ed(r,e);e.designSystem=n,e.registry=s,e.emotion=o;let i=rd(t,e);e.state=i,e.pages=nd(t,e),e.components=Xp(e),e.utils=Qp(e),yr[e.packageManager]&&(e.dependencies=await Zp(e)),e.methods=Jp(e),e.routerOptions=ep(t,e),e.defaultExtends=[Na],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&g(e.globalScope)&&(e.globalScope=us(e.globalScope));let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(_c);for(let c in Ko)c in e.functions||(e.functions[c]=Ko[c])}return a("helmet")||e.plugins.push(ap),e.fetch&&!a("fetch")&&e.plugins.push(fi),e},wc=async(t,e)=>{g(e)||(e={}),Ee(t)?(t={},e.parent=t):y(t)?(t={},e.key=t):g(t)||(t={}),await Jx(t,e),t.extends=zp(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=yu(e),await td({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),qp(t,e),Hp(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.window||(typeof window<"u"?window:null);if(n?.__BRENDER__&&r.querySelector("[data-br]"))return Zx(t,e,r,n);let s=e.parent||r.body;return await(Ve.default&&Ve.default.create||Ve.create)(t,s,e.key,{verbose:e.verbose,...e.domqlOptions})},Zx=async(t,e,r,n)=>{let o=e.parent||r.body,s=Ve.default&&Ve.default.create||Ve.create,i=[];for(let c of o.childNodes){if(c.nodeType===1){let f=c.tagName.toLowerCase();if(f==="style"||f==="script"||f==="link")continue}i.push(c)}i.forEach(c=>c.remove());let a=await s(t,o,e.key,{verbose:e.verbose,...e.domqlOptions,onlyResolveExtends:!1});return delete n.__BRENDER__,a};var vc=(t,e)=>U(t,g(e)?e:{}),cd=(t,e=xe,r)=>{let n={...xe,...vc(e,r)},o=wc(t,n).then(s=>{rp(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},$P=(t,e=xe,r)=>{let n=cd(t,e,r),o={...xe,...vc(e,r)},s=o.key;return ip(n,s,{utils:bn,...o}),n},LP=async(t,e=xe,r)=>{let n={...xe,...vc(e,r)},o=e.key;await sp(o,n);let s=await wc(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},MP=(t={},e=xe,r)=>cd({deps:{isUndefined:K},...t},U({domqlOptions:{onlyResolveExtends:!0}},e),r);export{LS as A,qf as ANIMATION_PROPS,Kw as ARIA_ROLES,Nl as ATTR_TRANSFORMS,JS as Avatar,cb as B,Hf as BLOCK_PROPS,Cy as Block,Na as Box,db as Br,US as Button,qS as ButtonSet,te as CDN_PROVIDERS,Ng as CLASS,Xi as CONFIG,$g as CSS_MEDIA_VARS,Zt as CSS_NATIVE_COLOR_REGEX,hn as CSS_PROPS_REGISTRY,on as CSS_UNITS,Fg as CSS_VARS,Zy as Caption,wb as Checkbox,vb as CheckboxHgroup,jS as CircleButton,Ly as Clickable,Ia as DEFAULT_CONFIG,tc as DEFAULT_CONTEXT,Jf as DEFAULT_CSS_PROPERTIES_LIST,up as DESIGN_SYSTEM_OPTIONS,cs as DOMQL_EVENTS,He as DOMQ_PROPERTIES,em as DOM_EVENTS,fb as Data,WS as Dialog,KS as DialogFooter,GS as DialogHeader,tx as DropdownList,ex as DropdownParent,rx as DropdownParentFocus,nx as DropdownSiblingFocus,Kd as ENV,Ne as FACTORY,Xf as FLEX_PROPS,Wf as FONT_PROPS,Pb as FileIcon,Oy as Flex,My as Focusable,By as FocusableComponent,ab as Footnote,Ny as Form,Qf as GRID_PROPS,Ty as Grid,Iy as Gutter,Wy as H1,Gy as H2,Ky as H3,Yy as H4,Xy as H5,Qy as H6,Fi as HTML_ATTRIBUTES,Un as HTML_TAGS,sb as Headline,yb as Hgroup,Sb as HgroupButton,bb as HgroupRows,$y as Hoverable,pb as Hr,lb as I,Rb as Icon,HS as IconButton,Ib as IconText,Dy as Iframe,Py as Img,ky as Inline,Ay as InlineFlex,Ry as InlineGrid,xb as Input,nb as Italic,zS as KangorooButton,hb as Li,Ku as Link,Fn as METHODS,as as METHODS_EXL,Ta as MISC_PROPS,Qt as NODE_ENV,ox as Notification,_b as NumberInput,ut as OPTIONS,gb as Ol,Jy as P,yr as PACKAGE_MANAGER_TO_CDN,is as PARSED_DOMQ_PROPERTIES,Gf as POSITION_PROPS,We as PROPS_METHODS,jy as Picture,Za as ROUTER_OPTIONS,Eb as Radio,Cb as RadioHgroup,ZS as Range,MS as RouteLink,Yu as RouterLink,Uy as SHAPES,Tt as STATE_METHODS,Fd as STATE_PROPERTIES,Qe as SVG_TAGS,BS as Select,VS as SquareButton,tb as Strong,ib as Subhead,zy as Svg,Kf as THEME_PROPS,Yf as TIMING_PROPS,ts as TYPES,Hy as Text,Ab as Textarea,Tb as TextareaWithButton,Vy as Theme,ob as Title,kb as Toggle,Ob as ToggleHgroup,YS as Tooltip,XS as TooltipHidden,QS as TooltipParent,eb as U,mb as Ul,rb as Underline,zf as VALUE_TRANSFORMERS,qy as Video,eE as activateConfig,al as addCaching,il as addContext,gh as addExtend,Rt as addExtends,bd as addItemAfterEveryElement,$r as addProtoToArray,nl as addRef,kg as animation,_a as appendSVGSprite,va as appendSvgIconsSprite,Xw as applyAttrTransforms,Ju as applyCSS,ji as applyClassListOnNode,Pv as applyClasslist,Js as applyDependentState,Sa as applyDocument,jr as applyEvent,ti as applyEventUpdate,Ns as applyExtends,$f as applyHeadings,br as applyMediaSequenceVars,Ls as applyProps,Ea as applyReset,oa as applySequenceGlobalVars,$e as applySequenceVars,ma as applySpacingSequence,ba as applyTimingSequence,tu as applyTrueProps,pa as applyTypographySequence,pd as arrayContainsOtherArray,xd as arraysEqual,ln as arrayzeValue,Iv as assignKeyAsClassname,vg as breakpoints,vh as cache,Ri as call,Di as captureSnapshot,Cg as cases,Pm as changeLightness,Dl as checkAttributeByTagName,rm as checkEventFunctions,Ys as checkForStateTypes,ha as checkIfBoxSize,rr as checkIfInherits,vd as checkIfStringIsInArray,Em as classList,vm as classify,Ld as clone,Cs as cloneAndMergeArrayExtend,oh as cloneFunction,hg as color,ge as colorStringToRgbaArray,As as concatAddExtends,sa as convertSvgToSymbol,eg as copyJavaScriptToClipboard,tg as copyStringToClipboard,cd as create,$P as createAsync,rl as createBasedOnType,hx as createDefine,Ks as createElement,Vc as createElementExtends,Cm as createEmotion,Os as createExtends,Vn as createExtendsFromKeys,Hc as createExtendsStack,Ur as createIfConditionFlag,Xs as createInheritedState,_s as createKey,hs as createNestedObject,Qs as createNestedObjectByKeyPath,Rc as createObjectWithoutPrototype,ol as createParent,sl as createPath,Bs as createProps,Zc as createPropsStack,Gs as createRoot,Gn as createScope,MP as createSkeleton,xs as createSnapshotId,LP as createSync,Dd as customDecodeURIComponent,Nd as customEncodeURIComponent,gd as cutArrayAfterValue,md as cutArrayBeforeValue,Zd as debounce,th as debounceOnContext,Id as decodeNewlines,z as deepClone,ps as deepContains,le as deepDestringifyFunctions,Bc as deepExtend,U as deepMerge,ue as deepMergeExtends,ls as deepStringifyFunctions,Sn as defaultDefine,Hh as defineSetter,Pa as depth,us as destringifyGlobalScope,bs as detectInfiniteLoop,Eg as devices,Et as emotion,Rd as encodeNewlines,Qr as error,Gd as excludeKeysFromObject,O as exec,Yw as executeAttr,Fk as exetuteClassPerComponent,dh as extendCachedRegistry,Ts as extendStackRegistry,Is as extractArrayExtend,Bm as fibonacciNumberByIndex,_d as filterArrays,wd as filterArraysFast,Fl as filterAttributesByTagName,Wc as finalizeExtends,kf as findClosestNumber,Lm as findClosestNumberInFactory,If as findHeadingLetter,na as findHeadings,er as findInheritedState,Od as findKeyPosition,jn as flattenExtend,ag as font,fg as font_face,cg as font_family,lg as font_family_types,Mm as formatDate,$c as generateHash,Ss as generateKey,Ym as generateMetaTags,Kt as generateSequence,Vg as generateSequencePosition,go as generateSprite,ea as generateSubSequence,zh as get,C as getActiveConfig,Go as getActiveLang,ee as getCDNUrl,bh as getCapitalCaseKeys,ho as getCdnProviderFromConfig,tr as getChildStateInKey,qh as getChildren,J as getColor,_f as getColorShade,Ei as getContext,lh as getCookie,Ii as getDB,an as getDefaultOrFirstKey,yh as getExtendsInElement,ks as getExtendsStack,Mc as getExtendsStackRegistry,Fe as getFnPrefixAndValue,Fm as getFontFace,cn as getFontFaceEach,Cf as getFontFaceEachString,qi as getFontFaceString,ua as getFontFamily,vf as getFontFormat,da as getFontSizeByKey,dd as getFrequencyInArray,Rs as getHashedExtend,Km as getImportMapScript,ys as getInObjectByPath,mc as getLanguages,xc as getLocalStateLang,uh as getLocalStorage,Ct as getMediaColor,Yt as getMediaTheme,Jd as getNev,Zm as getPageMetadata,Ze as getParentStateInKey,Si as getPath,Pi as getQuery,bi as getRef,sn as getRgbTone,_i as getRoot,vi as getRootContext,wi as getRootData,xi as getRootState,Je as getRootStateInKey,ra as getSequenceValue,Rf as getSequenceValueBySymbols,be as getSequenceValuePropertyPair,ya as getShadow,Le as getSpacingBasedOnRatio,at as getSpacingByKey,Sh as getSpreadChildren,ta as getSubratio,Zi as getSubratioDifference,aa as getTheme,Ut as getTimingByKey,Dt as getTimingFunction,fd as global,mg as gradient,Ig as grid,$n as hasFunction,Ye as hasHandlerPlugin,jd as hasOwnProperty,Am as hexToRgb,yf as hexToRgbArray,Rm as hexToRgba,xf as hslToRgb,bg as icons,zc as inheritChildExtends,jc as inheritChildPropsExtends,Vs as inheritParentProps,qc as inheritRecursiveChildExtends,Ue as init,ad as initPolyglot,Hn as initProps,At as is,x as isArray,Pn as isBoolean,nt as isCSSVar,Fs as isContextComponent,Wd as isCyclic,Bt as isDOMNode,kc as isDate,Ot as isDefined,Jt as isDevelopment,Ac as isEmpty,zd as isEmptyObject,Tc as isEqualDeep,b as isFunction,fo as isGoogleFontsUrl,Zo as isHtmlElement,Qd as isLocal,Ht as isMethod,ah as isMobile,Ee as isNode,Fr as isNot,Br as isNotProduction,Cc as isNull,ct as isNumber,g as isObject,N as isObjectLike,Wm as isPhoto,Ke as isProduction,ye as isResolvedColor,nn as isScalingUnit,Xd as isStaging,Wn as isState,y as isString,nh as isStringFunction,Ic as isTest,Yd as isTesting,K as isUndefined,ke as isValidHtmlTag,Nn as joinArrays,mh as jointStacks,Jn as keys,zm as loadCssFile,qm as loadJavascript,Um as loadJavascriptFile,jm as loadJavascriptFileEmbedSync,Vm as loadJavascriptFileSync,Hm as loadRemoteCSS,po as loadRemoteScript,yc as loadTranslations,Ci as log,ih as logGroupIf,sh as logIf,hi as lookdown,mi as lookdownAll,di as lookup,ce as lowercaseFirstLetter,qd as makeObjectWithoutPrototype,$d as map,Ps as mapStringsWithContextComponents,It as matchesComponentNaming,ug as media,eh as memoize,Y as merge,Om as mixTwoColors,Im as mixTwoRgb,wf as mixTwoRgba,Oi as nextElement,De as numToLetterMap,fs as objectToString,$s as objectizeStringProperty,lo as opacify,fe as overwrite,it as overwriteDeep,Mr as overwriteShallow,Zs as overwriteState,Zn as parse,hr as parseColorToken,Xr as parseDeep,Vr as pickupElementFromProps,Qc as pickupPropsFromElement,Ko as polyglotFunctions,_c as polyglotPlugin,Ai as previousElement,wh as propExists,qn as propertizeElement,Us as propertizeUpdate,Qu as reinit,gi as remove,rg as removeChars,fh as removeCookie,zs as removeDuplicateProps,Dn as removeDuplicatesInArray,es as removeFromArray,ds as removeFromObject,ms as removeNestedKeyByPath,ns as removeValueFromArray,yd as removeValueFromArrayAll,Sd as reorderArrayByValues,kd as replaceLiteralsWithObjectFields,Td as replaceOctalEscapeSequences,Dg as reset,ka as resolveColorsInGradient,Ie as resolveFileUrl,Xe as resolveHandler,Wt as resolvePropValue,Dm as returnSubThemeOrDefault,el as returnValueAsText,bf as rgbArrayToHex,Sf as rgbToHSL,Tm as rgbToHex,Mn as runPluginHook,Ff as runThroughMedia,xo as scratchSystem,Sr as scratchUtils,ud as self,Sg as semantic_icons,Pe as sequence,dn as set,Af as setActiveConfig,TT as setClass,xr as setColor,ch as setCookie,zi as setCustomFont,gr as setCustomFontMedia,iy as setEach,fa as setFont,bo as setFontFamily,uo as setFontImport,_r as setGradient,Lc as setHashedExtend,Ef as setInCustomFontMedia,gs as setInObjectByPath,bc as setLang,ph as setLocalStorage,la as setMediaTheme,Qn as setNodeStyles,yi as setProps,js as setPropsPrototype,So as setSVG,Ji as setScalingVar,wr as setShadow,Tf as setSubScalingVar,wa as setSvgIcon,ca as setTheme,sy as setValue,jg as setVariables,yg as shadow,dg as spacing,ga as splitSpacedValue,mr as splitTopLevelCommas,_o as splitTransition,pi as spotByPath,ss as stringIncludesAny,Vd as stringToObject,Og as svg,Ag as svg_data,hd as swapItemsInArray,qs as syncProps,Tg as templates,gg as theme,_g as timing,Wi as toCamelCase,Gi as toDashCase,og as toDescriptionCase,ng as toTitleCase,$m as toggleFullscreen,Vf as transformBackgroundImage,Se as transformBorder,Oa as transformBorderRadius,Ca as transformBoxShadow,gf as transformDOMQLEmotion,vr as transformDuration,Bk as transformEmotion,mf as transformEmotionClass,km as transformEmotionStyle,Uf as transformShadow,ot as transformSize,V as transformSizeRatio,Bf as transformTextStroke,ny as transformTransition,eu as transformersByPrefix,jf as transfromGap,gc as translate,W as triggerEventOn,vt as triggerEventOnUpdate,Ed as trimStringFromSymbols,Ki as typography,sg as unit,rs as unstackArrayOfObjects,Jc as update,Hs as updateProps,AT as updateVars,Sc as upsertTranslation,Xt as useCssInProps,Sy as usePropsAsCSS,xy as useSelectorsAsCSS,Ti as variables,to as verbose,ki as warn,D as window};
|
|
36
38
|
// @preserve-env
|