smbls 3.14.721 → 3.14.722

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.
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by scripts/build-iife-string.mjs — do not edit.
2
- export const version = "3.14.721";
2
+ export const version = "3.14.722";
3
3
  export default "\"use strict\";var Smbls=(()=>{var FS=Object.create;var Mi=Object.defineProperty;var LS=Object.getOwnPropertyDescriptor;var MS=Object.getOwnPropertyNames;var NS=Object.getPrototypeOf,jS=Object.prototype.hasOwnProperty;var L=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var xl=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},D=(t,e)=>{for(var r in e)Mi(t,r,{get:e[r],enumerable:!0})},xg=(t,e,r,n)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let o of MS(e))!jS.call(t,o)&&o!==r&&Mi(t,o,{get:()=>e[o],enumerable:!(n=LS(e,o))||n.enumerable});return t};var BS=(t,e,r)=>(r=t!=null?FS(NS(t)):{},xg(e||!t||!t.__esModule?Mi(r,\"default\",{value:t,enumerable:!0}):r,t)),VS=t=>xg(Mi({},\"__esModule\",{value:!0}),t);var Fl,Ll,k,Y,oo=L(()=>{\"use strict\";Fl=globalThis,Ll=globalThis,k=globalThis,Y=k.document});var Re,so,At,io=L(()=>{\"use strict\";oo();Re=t=>(typeof Node==\"object\"?t instanceof k.Node:t&&typeof t==\"object\"&&typeof t.nodeType==\"number\"&&typeof t.nodeName==\"string\")||!1,so=t=>(typeof HTMLElement==\"object\"?t instanceof k.HTMLElement:t&&typeof t==\"object\"&&t!==null&&t.nodeType===1&&typeof t.nodeName==\"string\")||!1,At=t=>typeof k<\"u\"&&(k.Node&&t instanceof k.Node||k.Window&&t instanceof k.Window||t===k||Y!==void 0&&t===Y)});var w,S,he,C,Ui,zi,T,Wi,V,Et,gt,ao,Tt,Ml,mt=L(()=>{\"use strict\";io();w=t=>t===null?!1:typeof t==\"object\"&&t.constructor===Object,S=t=>typeof t==\"string\",he=t=>typeof t==\"number\",C=t=>typeof t==\"function\",Ui=t=>t===!0||t===!1,zi=t=>t===null,T=t=>Array.isArray(t),Wi=t=>t instanceof Date,V=t=>t===null?!1:typeof t==\"object\",Et=t=>t!==void 0,gt=t=>t===void 0,ao={boolean:Ui,array:T,object:w,string:S,date:Wi,number:he,null:zi,function:C,objectLike:V,node:Re,htmlElement:so,defined:Et},Tt=t=>(...e)=>e.some(r=>ao[r](t)),Ml=t=>(...e)=>!e.some(r=>ao[r](t))});var Nl,jl,Bl,Vl,Kr,co,Ul,zl,lo,Wl,Hl,ql,Kl,Gl,Yl,Xl,Gr,fo,Yr=L(()=>{\"use strict\";Pe();mt();Nl=(t,e)=>e.every(r=>t.includes(r)),jl=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},Bl=(t,e)=>{if(S(e)&&(e=parseInt(e)),he(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},Vl=(t,e,r)=>{e<0||r<0||e>=t.length||r>=t.length||([t[e],t[r]]=[t[r],t[e]])},Kr=(...t)=>[].concat(...t),co=(t,e=[])=>t.reduce((r,n)=>X(r,ot(n,{exclude:e}),e),{}),Ul=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},zl=(t,e)=>{if(!T(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},lo=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},Wl=(t,e)=>t.filter(r=>r!==e),Hl=(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},ql=(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},Kl=(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},Gl=(t,e)=>t.filter(r=>!e.includes(r)),Yl=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},Xl=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},Gr=t=>T(t)?[...new Set(t)]:t,fo=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function Cr(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?\"{{{\":\"{{\";if(!t.includes(o))return t;let s=YS[n],i=e||this.state||{},a=this;return t.replace(s,(c,l,f,u)=>{let d=f.trim();if(u){let h=a?.context,g=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||a?.[u];if(g&&typeof g==\"function\")try{return String(g.call(a,d)??\"\")}catch{return\"\"}return\"\"}if(l){let h=(l.match(/\\.\\.\\//g)||[]).length,g=i;for(let m=0;m<h;m++){if(!g||!g.parent)return\"\";g=g.parent}if(d===\"parent\")return String(g.value??\"\");let p=uo(g,d);return String(p??\"\")}else{let h=uo(i,d);if(h!=null)return String(h);let g=a?.context?.polyglot;if(g?.translations){let p=i?.root?.lang||i?.lang||a?.context?.state?.lang||g.defaultLang||\"en\",m=g.translations[p];if(m){let x=uo(m,d);if(x!=null&&typeof x!=\"object\")return String(x);for(let y in m){let _=m[y];if(_&&typeof _==\"object\"&&!Array.isArray(_)){let v=uo(_,d);if(v!=null&&typeof v!=\"object\")return String(v)}}}let b=uo(g.translations,d);if(b!=null&&typeof b!=\"object\")return String(b)}return\"\"}})}var po,Jl,YS,uo,Ar,Zl,XS,Ql,tf,ef,JS,rf,nf,ho=L(()=>{\"use strict\";po=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},Jl=(t,e)=>{let r=new RegExp(`[${e.join(\"\\\\\")}]`,\"g\");return t.replace(r,\"\")},YS={2:/{{\\s*((?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}/g,3:/{{{(\\s*(?:\\.\\.\\/)*)([\\w\\d.]+)\\s*(?:\\|\\s*([\\w\\d.]+))?\\s*}}}/g},uo=(t,e)=>e.split(\".\").reduce((r,n)=>r?.[n],t);Ar=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Zl=(t,e)=>{let r=t.split(`\n`),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\\\b${e}\\\\b\\\\s*:\\\\s*`),c=0,l=!1;for(let f=0;f<r.length;f++)if(a.test(r[f])&&!l){if(l=!0,n=f+1,s=r[f].indexOf(e)+1,r[f].includes(\"{}\")){o=n,i=r[f].indexOf(\"{}\")+3;break}let u=r[f].slice(s+e.length);if(u.includes(\"{\")||u.includes(\"[\"))c=1;else{o=f+1,i=r[f].length+1;break}}else if(l&&(c+=(r[f].match(/{/g)||[]).length,c+=(r[f].match(/\\[/g)||[]).length,c-=(r[f].match(/}/g)||[]).length,c-=(r[f].match(/]/g)||[]).length,c===0)){o=f+1,i=r[f].lastIndexOf(\"}\")!==-1?r[f].lastIndexOf(\"}\")+2:r[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},XS=/\\\\([0-7]{1,3})/g,Ql=t=>t.replace(XS,(e,r)=>String.fromCharCode(parseInt(r,8))),tf=t=>t.replace(/\\n/g,\"/////n\").replace(/`/g,\"/////tilde\").replace(/\\$/g,\"/////dlrsgn\"),ef=t=>t.replace(/\\/\\/\\/\\/\\/n/g,`\n`).replace(/\\/\\/\\/\\/\\/tilde/g,\"`\").replace(/\\/\\/\\/\\/\\/dlrsgn/g,\"$\"),JS=/[^a-zA-Z0-9\\s]/g,rf=t=>t.replace(JS,e=>\"%\"+e.charCodeAt(0).toString(16).toUpperCase()),nf=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var qe,go,of,Er,Ke,Xr,mo,sf,Jr=L(()=>{\"use strict\";qe=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"classlist\",\"state\",\"scope\",\"root\",\"deps\",\"extend\",\"extends\",\"$router\",\"routes\",\"children\",\"childExtend\",\"childExtends\",\"childExtendRecursive\",\"childExtendsRecursive\",\"props\",\"if\",\"define\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"key\",\"tag\",\"query\",\"parent\",\"node\",\"variables\",\"on\",\"fetch\",\"component\",\"context\",\"preventContentUpdate\",\"preventContentRecreate\"]),go=new Set([\"attr\",\"style\",\"text\",\"html\",\"content\",\"data\",\"class\",\"state\",\"scope\",\"children\",\"props\",\"if\",\"key\",\"tag\",\"query\",\"on\",\"context\"]),of=[\"ref\",\"parent\",\"__element\",\"__depends\",\"__ref\",\"__children\",\"root\"],Er=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\"]),Ke=new Set([\"update\",\"__element\"]),Xr=new Set([\"set\",\"reset\",\"update\",\"remove\",\"updateContent\",\"removeContent\",\"lookup\",\"lookdown\",\"lookdownAll\",\"getRef\",\"getPath\",\"setNodeStyles\",\"spotByPath\",\"keys\",\"parse\",\"setProps\",\"parseDeep\",\"variables\",\"if\",\"log\",\"verbose\",\"warn\",\"error\",\"call\",\"nextElement\",\"previousElement\",\"getRootState\",\"getRoot\",\"getRootData\",\"getRootContext\",\"getContext\",\"getQuery\",\"getDB\",\"getChildren\",\"preventContentUpdate\",\"preventContentRecreate\"]),mo=new Set([\"node\",\"context\",\"extends\",\"__element\",\"__ref\",...Xr,...Er,...Ke]),sf=new Set([\"init\",\"beforeClassAssign\",\"render\",\"renderRouter\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeStateUpdate\",\"stateUpdate\",\"beforeUpdate\",\"done\",\"create\",\"complete\",\"frame\",\"update\",\"fetchError\",\"fetchComplete\"])});var Ag,Tr,et,af,it,X,Tg,cf,ot,yo,ZS,bo,QS,tw,ew,ge,rw,nw,Eg,Ht,ow,sw,iw,xo,lf,ff,Hi,uf,df,_o,Or,Ot,qi,aw,pf,hf,Ki,gf,mf,yf,bf,xf,_f,Sf,Pe=L(()=>{\"use strict\";oo();mt();Yr();ho();io();Jr();Ag=\"production\",Tr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,et=(t,e,r,n)=>{if(C(t))return e?typeof t.call!=\"function\"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(T(t)||w(t)&&!At(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i==\"function\")return et(i,e,r,n)}}return t},af=(t,e,r)=>{for(let n in e)t[n]=et(e[n],r)},it=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Tr(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},X=(t,e,r=mo)=>Tg(t,e,r,null),Tg=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Tr(s)||s===\"constructor\"||s===\"prototype\"||(o?r.has(s):r.includes(s)))continue;let i=t[s],a=e[s];if(V(i)&&V(a)){let c=n||[];c.push(t,e),Tg(i,a,r,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},cf=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Tr(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},ot=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!V(t)||At(t))return t;if(s.has(t))return s.get(t);let a=r instanceof Set?r:r.length>3?new Set(r):null,c=u=>a?a.has(u):r.includes(u),l=T(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||Tr(h)||h===\"__proto__\"||c(h))continue;let g=u[h];if(!(n&&g===void 0)&&!(o&&g===null)){if(At(g)){d[h]=g;continue}if(i&&h===\"extends\"&&T(g)){d[h]=co(g,r);continue}if(C(g)){d[h]=g;continue}if(V(g))if(s.has(g))d[h]=s.get(g);else{let p=T(g)?[]:{};s.set(g,p),d[h]=p,f.push([g,p])}else d[h]=g}}}return l},yo=(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(C(n))e[r]=n.toString();else if(w(n))e[r]={},yo(n,e[r]);else if(T(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];w(i)?(o[s]={},yo(i,o[s])):C(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},ZS=new Set([\"&\",\"*\",\"-\",\":\",\"%\",\"{\",\"}\",\">\",\"<\",\"@\",\".\",\"/\",\"!\",\" \"]),bo=(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=`{\n`;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let l=0;l<s.length;l++)if(ZS.has(s[l])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,T(i)){o+=`[\n`;for(let l of i)V(l)&&l!==null?o+=`${n} ${bo(l,e+2)},\n`:S(l)?o+=`${n} '${l}',\n`:o+=`${n} ${l},\n`;o+=`${n} ]`}else V(i)?o+=bo(i,e+1):S(i)?o+=po(i,[`\n`,\"'\"])?`\\`${i}\\``:`'${i}'`:o+=i;o+=`,\n`}return o+=`${n}}`,o},QS=[/^\\(\\s*\\{[^}]*\\}\\s*\\)\\s*=>/,/^(\\([^)]*\\)|[^=]*)\\s*=>/,/^function[\\s(]/,/^async\\s+/,/^\\(\\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\\s*=>/],tw=/^[\"[{]/,ew=/^(export|import)\\s/,ge=t=>{if(!t)return!1;let e=t.trim().replace(/\\n\\s*/g,\" \").trim();if(e===\"\"||e===\"{}\"||e===\"[]\"||ew.test(e)||!QS.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes(\"=>\");return!(n===123&&!o||n===91||tw.test(e)&&!o)},rw=t=>(0,eval)(t),nw=(t,e)=>{let r=/^(\\s*(?:async\\s+)?function\\s*[\\w$]*\\s*\\([^)]*\\)\\s*)\\{/.exec(t);if(!r)return null;let n=r[0].length,o=[],s=n,i=1,a=null,c=t.length,l=new RegExp(\"^(?:const|let|var)\\\\s+\"+e+\"\\\\b\");for(;s<c&&i>0;){let u=t[s];if(u===\"/\"&&t[s+1]===\"/\"){let d=t.indexOf(`\n`,s);s=d===-1?c:d;continue}if(u===\"/\"&&t[s+1]===\"*\"){let d=t.indexOf(\"*/\",s+2);s=d===-1?c:d+2;continue}if(u==='\"'||u===\"'\"||u===\"`\"){let d=u;for(s++;s<c;){if(t[s]===\"\\\\\"){s+=2;continue}if(t[s]===d){s++;break}if(d===\"`\"&&t[s]===\"$\"&&t[s+1]===\"{\"){s+=2;let h=1;for(;s<c&&h>0;)t[s]===\"{\"?h++:t[s]===\"}\"&&h--,s++;continue}s++}continue}if(u===\"{\"){i++,s++;continue}if(u===\"}\"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,h=0,g=s;for(;g<c;){let p=t[g];if(p==='\"'||p===\"'\"||p===\"`\"){let m=p;for(g++;g<c;){if(t[g]===\"\\\\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(p===\"(\"||p===\"[\"||p===\"{\"){h++,g++;continue}if(p===\")\"||p===\"]\"||p===\"}\"){if(h===0)break;h--,g++;continue}if(h===0&&(p===\";\"||p===`\n`)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Eg=(t,e,r)=>{let n=String(t).trimStart();if(/^(export|import)\\s/.test(n))return t;try{return r.window.eval(`(${t})`)}catch(o){let s=o&&o.message?o.message:String(o),i=/await is only valid in async/.test(s),a=/Identifier '([^']+)' has already been declared/.exec(s),c=null;if(i){let l=String(t).trim();if(/^function[\\s(]/.test(l))try{c=r.window.eval(\"(async \"+l+\")\")}catch{}}else if(a){let l=String(t),f=a[1];for(let u=0;u<5;u++){let d=nw(l,f);if(!d||d===l)break;l=d;try{c=r.window.eval(\"(\"+l+\")\");break}catch(h){let g=/Identifier '([^']+)' has already been declared/.exec(h&&h.message||String(h));if(!g||g[1]!==f)break}}}return c||(typeof console<\"u\"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \\u2014 value will be left as a string. Reason: `+s+`.\nFirst 200 chars of source: `+String(t).slice(0,200)),t)}},Ht=(t,e={},r={window:{eval:rw}})=>{if(!t||typeof t!=\"object\")return e;let n=[[t,e]];for(;n.length;){let[o,s]=n.pop();for(let i in o){if(!Object.prototype.hasOwnProperty.call(o,i))continue;let a=o[i];if(S(a))ge(a)?s[i]=Eg(a,`\"${i}\"`,r):s[i]=a;else if(T(a)){let c=s[i]=[];for(let l=0;l<a.length;l++){let f=a[l];if(S(f))c.push(ge(f)?Eg(f,`array index ${l} (prop \"${i}\")`,r):f);else if(w(f)){let u={};c.push(u),n.push([f,u])}else c.push(f)}}else if(w(a)){let c=s[i]&&typeof s[i]==\"object\"&&!T(s[i])?s[i]:s[i]={};n.push([a,c])}else s[i]=a}}return e},ow=\"Set\",sw=\"Map\",iw=t=>!t||typeof t!=\"object\"?t:t.__type===ow&&Array.isArray(t.values)?new Set(t.values):t.__type===sw&&Array.isArray(t.entries)?new Map(t.entries):t,xo=t=>{if(!t||typeof t!=\"object\")return t;let e={},r=[];for(let i of Object.keys(t)){let a=t[i];S(a)&&ge(a)?r.push([i,a]):e[i]=iw(a)}if(r.length===0)return e;let n=i=>/^[A-Za-z_$][\\w$]*$/.test(i),o=r.filter(([i])=>n(i)),s=Object.keys(e).filter(n).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`\n`);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`\n`),a=\"{ \"+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(\", \")+\" }\",c=k.eval(`(function(__gs__) { ${s}\n${i}\n return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(n).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`\n`);e[a]=k.eval(`(function(__gs__) { ${l}\n return (${c}); })`)(e)}catch{try{e[a]=k.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of r)if(!n(i))try{e[i]=k.eval(`(${a})`)}catch{e[i]=a}return e},lf=(t,e={verbose:!0})=>{try{return t?k.eval(\"(\"+t+\")\"):{}}catch(r){e.verbose&&console.warn(r)}},ff=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Hi=t=>{for(let e in t)return!1;return!0},uf=t=>w(t)&&Hi(t),df=()=>Object.create(null),_o=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&Tr(s)||s===\"constructor\"||s===\"prototype\"||e[s]!==void 0&&(t[s]=e[s]);return t},Or=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Tr(o)||o===\"constructor\"||o===\"prototype\"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Ot=(t,e,r={},n=new WeakMap)=>{if(!V(t)||!V(e)||At(t)||At(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&&Tr(a)||a===\"constructor\"||a===\"prototype\")continue;let c=t[a],l=e[a];At(l)?t[a]=l:V(c)&&V(l)?t[a]=Ot(c,l,r,n):l!==void 0&&(t[a]=l)}return t},qi=(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)||!qi(t[i],e[i],r))return!1}return!0},aw=new Set([\"node\",\"__ref\"]),pf=(t,e,r=aw)=>{if(t===e)return!0;if(!V(t)||!V(e)||At(t)||At(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 l=a[c],f=i[c];if(At(l)||At(f)){if(l!==f)return!1}else if(V(l)&&V(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},hf=(t,e)=>{if(e==null)return t;if(Tt(e)(\"string\",\"number\"))delete t[e];else if(T(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},Ki=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]=Ki(t[r]));return e},gf=(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},mf=(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]},yf=(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},bf=(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},xf=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(Ag===\"test\"||Ag===\"development\")&&console.warn(\"Warning: Potential infinite loop detected due to repeated sequence:\",r),!0},_f=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)},Sf=(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 So,wo,ko,Gi=L(()=>{\"use strict\";Pe();So=(function(){let t=0;function e(){return t++,t}return e})(),wo=So,ko=(t,e,r)=>(et(r,t)||r||t.key||So()).toString()});var re,wf,Ge,Yi,kf,vf,Cf,Ye,Af,Rr,ne,Ef=L(()=>{\"use strict\";re=\"production\",wf=re,Ge=(t=re)=>t===\"production\",Yi=(t=re)=>t===\"testing\"||t===\"test\",kf=Yi,vf=(t=re)=>t===\"staging\",Cf=(t=re)=>t===\"local\",Ye=(t=re)=>t===\"development\"||t===\"dev\"||t===\"local\",Af=(t,e=re)=>e[t],Rr=(t=re)=>!Ge(t),ne=t=>{let e=t&&\"env\"in t?t.env:typeof process<\"u\"&&process.env?\"production\":void 0;if(e&&e!==\"production\")return!0;let r=t&&\"hostname\"in t?t.hostname:typeof location<\"u\"?location.hostname:void 0;return typeof r==\"string\"&&r?r===\"localhost\"||r===\"127.0.0.1\"||r.endsWith(\".localhost\"):!1}});function vo(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 Pf(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 Tf,Of,cw,Rf,Zr,Qr,xt,tn=L(()=>{\"use strict\";Tf=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Of=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}}},cw=/^((function\\s*\\([^)]*\\)\\s*\\{[^}]*\\})|(\\([^)]*\\)\\s*=>))/,Rf=t=>cw.test(t),Zr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Qr=(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},xt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]==\"function\"&&(s[t](e,...r),o=!0);return o}});var $f,Og=L(()=>{\"use strict\";mt();Pe();$f=(t,e)=>{let{__ref:r}=t,n=t.if;if(C(n)){let o;try{o=n(t,t.state,t.context)}catch(s){typeof console<\"u\"&&console.warn(\"[DOMQL] if condition error:\",s),delete r.__if;return}o?r.__if=!0:delete r.__if}else n!=null&&typeof n==\"object\"?et(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var If,Df,Rg=L(()=>{\"use strict\";If=(t,...e)=>{t&&e.map(r=>console.log(r))},Df=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function jf(t){let e;try{if(!window.localStorage)return;e=window.localStorage.getItem(t)}catch{return}if(e!==null)try{return JSON.parse(e)}catch{return}}function Bf(t,e){if(e!=null)try{if(!window.localStorage)return;let r=typeof e==\"object\"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}catch{}}var Ff,Lf,Mf,Nf,Pg=L(()=>{\"use strict\";mt();oo();Ff=typeof navigator>\"u\"?!1:/Mobi/.test(navigator.userAgent),Lf=(t,e,r=365)=>{if(gt(Y)||gt(Y.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;Y.cookie=`${t}=${e};${o};path=/`},Mf=t=>{if(gt(Y)||gt(Y.cookie))return;let e=`${t}=`,n=decodeURIComponent(Y.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\"\"},Nf=t=>{gt(Y)||gt(Y.cookie)||(Y.cookie=t+\"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;\")}});var en,$g,Vf,Uf=L(()=>{\"use strict\";en={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\"])},$g=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\"]),Vf=t=>en.body.has(t)});var zf,Ig,rn,Eo,Rt,Wf,Xi,To,Hf,Oo,Ji,Zi,Ro,Qi,nn,lw,me,Dg,Co,Po,qf,Ao,Kf,Gf,ta,ea,ra,na,oa,sa,Fg,ia=L(()=>{\"use strict\";Yr();Yf();Pe();mt();zf=\"production\",Ig=t=>t.sourcemap!==!1&&zf!==\"production\",rn=t=>{if(t.includes(\"+\"))return t.split(\"+\").filter(ye);if(t.includes(\"_\")){let[e]=t.split(\"_\");return[e]}if(t.includes(\".\")&&!ye(t.split(\".\")[1])){let[e]=t.split(\".\");return[e]}return[t]},Eo=(t,e,r)=>{let n=[],o=rn(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Rt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.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},Wf=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:Kr(o,n)}},Xi=()=>Math.random().toString(36).substring(2),To={},Hf={},Oo=t=>To[t.__hash],Ji=(t,e)=>{let r=Xi();return S(t)||(t.__hash=r),r!==\"__proto__\"&&r!==\"constructor\"&&r!==\"prototype\"&&(To[r]=e),e},Zi=(t,e)=>t.__hash?e.concat(Oo(t)):Ji(t,e),Ro=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?Ro(i,e,r,n,o,s):nn(i,e,r,n,o,void 0,s);return e},Qi=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends,c={...t};delete c.extends;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a&&nn(a,e,r,n,o,s,i),e},nn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return Ro(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=Po(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Qi(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},lw=new Set([\"parent\",\"node\",\"__ref\",\"__proto__\",\"extends\",\"childExtends\",\"childExtendsRecursive\"]),me=(t,e,r,n,o)=>{e=ot(e);for(let s in e){if(lw.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?w(a)&&!T(a)?(r[s]=r[s]||{},Dg(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(w(i)&&w(a)){let c=r?r[s]=r[s]||{}:void 0,l=o?.[s];ye(s)?t[s]=me(i,a,c,n,l):me(i,a,c,n,l)}if(s===\"extends\"||s===\"childExtends\"||s===\"childExtendsRecursive\"){if(T(i)&&T(a))t[s]=i.concat(a);else if(T(i)&&w(a)){let c=me({},i);t[s]=me(c,a)}}}}return t},Dg=(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];w(s)&&!T(s)?(t[o]=t[o]||{},Dg(t[o],s,r,n)):t[o]=r}}},Co=(t,e,r)=>t.reduce((n,o,s)=>{let i=ot(o),a=r?r[s]:void 0;return me(n,i,e,a)},{}),Po=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(S(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&&(zf===\"test\"||zf===\"development\")&&console.warn(\"Extend is string but component was not found:\",t);return}return t},qf=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Ao=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Oo(t)||[];let s=nn(t,[],e,new Set,r,void 0,n);return r?s:Zi(t,s)},Kf=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return Kr(r,e)},Gf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(ye(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},ta=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant;if(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 ea(t,e,r),ra(t,e,r),na(t,e,r),t.component&&Rt(et(t.component,t),t),o.defaultExtends&&Rt(o.defaultExtends,t),Gr(n.__extends)},ea=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Rt(e.childProps.extends,t),n.__extends},ra=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Rt(s,t),n.__extends},na=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key===\"__text\";return o&&!i&&!s&&Rt(o,t),n.__extends},oa=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Ig(r),a=i?[...n.__extends]:null,c=Gr(n.__extends.map((l,f)=>Po(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let h=c[d],g=a[d];h&&w(h)&&S(g)&&l.set(h,g)}let f=[],u=Ao(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=Ao(c,o);n.__extendsStack=l}return n.__extendsStack},sa=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Ig(r)){let s={},i=n.__extendsNames||[],a=Co(o,s,i),c={};me(t,a,c,void 0,s),n.__sourcemap=c}else{let s=Co(o);me(t,s)}return t},Fg=(t,e,r={})=>(ta(t,e,r),oa(t,e,r),sa(t,e,r),t)});function Xf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Jf(t){return Object.keys(t).filter(e=>/^\\d+$/.test(e))}function Zf(t,e,r){let{context:n}=e||{},[o]=rn(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var ye,Yf=L(()=>{\"use strict\";ia();mt();ye=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Lg(t,e){let{props:r,on:n}=e,o=Ar(t.split(\"on\")[1]),s=n[o],i=r[t];C(s)?n[o]=(...a)=>{if(s(...a)!==!1&&C(i))return i(...a)}:n[o]=i}var Mg=L(()=>{\"use strict\";ho();mt()});function aa(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()&&(C(o)||o!=null&&Zr(this.context))){let g=Ar(n.slice(2));t.on&&(t.on[g]=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],l=w(a)||C(a),f=w(c)||C(c);if(l||f)continue;let u=n.charAt(0);if(jg.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let d=Qf.test(n)||Ng.test(n)||uw(o),h=qe.has(n);!d&&!h&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function ca(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=C(o)||o!=null&&Zr(this.context);if(s&&i){Lg(n,t),delete t.props[n];continue}if(r.includes(n)||n===\"childProps\")continue;let a=n.charAt(0);if(jg.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||C(c),u=w(l)||C(l),d=Qf.test(n)||Ng.test(n),h=qe.has(n);(d||h||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function la(t=this){let e=[];return aa.call(this,t,{cachedKeys:e}),ca.call(this,t,{cachedKeys:e}),t}function tu(t={}){return t.on||(t.on={}),t.props||(t.props={}),la.call(this,t)}function ru(t,e){this.__element.update({props:t},e)}function Lo(t){let e={update:ru.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Qf,Ng,jg,fw,uw,Do,$o,eu,Fo,Mo,No,fa,Io,nu,ou,su=L(()=>{\"use strict\";Jr();Mg();Pe();mt();ho();tn();Qf=/^[A-Z]/,Ng=/^\\d+$/,jg=new Set([\":\",\"@\",\"[\",\"*\",\"+\",\"~\",\"&\",\">\",\"$\",\"-\",\".\",\"!\"]),fw=new Set([\"extend\",\"props\",\"text\",\"tag\",\"on\",\"if\",\"childExtend\",\"children\",\"childrenAs\",\"state\",\"html\",\"attr\",\"define\",\"content\"]),uw=t=>{if(!t||typeof t!=\"object\"||Array.isArray(t))return!1;for(let e in t)if(fw.has(e)||Qf.test(e))return!0;return!1},Do=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return V(n)?{...n}:(o.__propsStack.push(n),{})};$o=t=>Tt(t)(\"string\",\"number\")?{inheritedString:t}:t,eu=(t,e)=>!t||!e.length?!1:e.includes(t),Fo=(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=$o(i);n.unshift(c)}if(s){let c=$o(s);n.unshift(c)}return n};Mo=t=>{let e=new Set;return t.filter(r=>!r||Ke.has(r)||e.has(r)?!1:(e.add(r),!0))},No=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Ke.has(o))return n;for(;C(o);)o=et(o,e);return X(n,ot(o,{exclude:Ke}))},{}),Lo(e),e.props),fa=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Fo(t,e)]),w(r)?o.push(r):r===\"inherit\"&&e?.props?o.push(e.props):r&&o.push(r),T(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=Mo(o),n.__propsStack},Io=(t,e)=>{let{__ref:r}=t,n=fa(t,e);n.length?No(n,t):(r.__propsStack=[],t.props={})},nu=function(t,e,r){let{__ref:n}=t;if(n.__if)Io(t,e);else try{Io(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn(\"initProps error at\",n.path?.join(\".\"),o),t.props={},n.__propsStack=[]}return Lo(t),t},ou=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Fo(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Mo(s),n.__propsStack.length&&No(n.__propsStack,e),e}});var Bg,ua,da,pa,ha,iu,ga,ma,ya,au,Vg=L(()=>{\"use strict\";ia();Gi();io();su();Uf();mt();Bg=\"production\",ua=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=en.body.has(r)&&r;return{text:t,tag:n||o||s||\"string\"}},da=(t,e,r)=>{if(t===void 0)return(Bg===\"test\"||Bg===\"development\")&&console.warn(r,\"element is undefined in\",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Tt(t)(\"string\",\"number\")?ua(t,e,r):C(t)?{props:t}:t},pa=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},ha=(t,e,r,n,o)=>{if(!e)return o;if(Re(e)){let s={key:\":root\",node:e};return o[`${r}_parent`]=s,s}return e},iu=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===\":root\";r?.root||(r.root=o?t:n?.root)},ga=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},ma=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),ya=(t,e,r)=>{let n=pa(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=Eo(t,e,r),n.path=ga(t,e,r),n},au=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:da(t,e,r);if(!i)return;let a=ha(i,e,r,n,o),c=ko(i,a,r);ya(i,a,c);let l=Do(i,a,c),f=ma(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var cu,ba,xa,_a,Sa,lu,wa,fu,uu,du,pu,Ug=L(()=>{\"use strict\";Yr();Jr();Pe();mt();cu=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Tt(o)(\"string\",\"number\")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},ba=(t,e)=>{if(!t.includes(\"~/\"))return;if(t.split(\"~/\").length>1)return e.root},xa=(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},_a=(t,e,r={})=>{let n=S(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]},Sa=(t,e,r={})=>{let o=t.__ref.__state;if(!wa(t))return;let s=ba(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll(\"~/\",\"\");else{let a=xa(o,e.state);a&&(i=a,o=o.replaceAll(\"../\",\"\"))}if(i)return _a(o,i,r)},lu=(t,e)=>{let r=t.__ref,n=Sa(t,e);if(n===void 0)return t.state;if(Tt(n)(\"object\",\"array\"))return ot(n);if(Tt(n)(\"string\",\"number\",\"boolean\"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,\"is not present. Replacing with\",{})},wa=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Tt(r)(\"number\",\"string\",\"boolean\"))},fu=function(t){return V(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},uu=(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},du=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=ot(n,Er),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?fo(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},pu=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n===\"shallow\";if(n===\"merge\"){X(t,e,Er);return}(o?Or:Ot)(t,e,Er)}});var dw,hu,zg=L(()=>{\"use strict\";dw=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},hu=(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&&!dw(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var Wg,ka,Xe,va,gu,mu=L(()=>{\"use strict\";mt();tn();Wg=(t,e)=>{let r=\"on\"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},ka=(t,e,r,n,o)=>{if(t=Qr(t,e),!!C(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,i instanceof ReferenceError?console.warn(\"[DOMQL] Async event warning:\",i.message):console.error(\"[DOMQL] Async event error:\",i)}),s}catch(s){if(e.error=s,s instanceof ReferenceError?console.warn(\"[DOMQL] Event handler warning:\",s.message):console.error(\"[DOMQL] Event handler error:\",s),e.context?.strictMode)throw s}},Xe=(t,e,r)=>{if(!e)throw new Error(\"Element is required\");xt(t,e,r);let n=Wg(t,e);if(n){let{state:o,context:s}=e;return ka(n,e,o,s,r)}},va=(t,e,r,n,o,s)=>{if(t=Qr(t,r),!!C(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}},gu=(t,e,r,n)=>{xt(t,r,e,n);let o=Wg(t,r);if(o){let{state:s,context:i}=r;return va(o,e,r,s,i,n)}}});var yu,jo,bu=L(()=>{\"use strict\";yu={},jo={}});var qg={};D(qg,{restAdapter:()=>Hg,setup:()=>hw});var pw,$e,hw,Hg,Kg=L(()=>{\"use strict\";pw=(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()},$e=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}},hw=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error(\"@symbo.ls/fetch rest: url is required\");return Hg(t,e,r,n)},Hg=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),\"Content-Type\":\"application/json\"}),a=f=>({...n,...f}),c=(f,u)=>{let d=u||t;if(f&&(f.startsWith(\"http://\")||f.startsWith(\"https://\")))return f;let h=f&&!f.startsWith(\"/\")?\"/\":\"\";return`${d}${h}${f||\"\"}`};return{name:\"rest\",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await $e(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error(\"rest: auth.signInUrl not configured\");let u=await $e(c(r.signInUrl,r.baseUrl),a({method:\"POST\",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await $e(c(r.signOutUrl,r.baseUrl),a({method:\"POST\",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:d,limit:h,offset:g,order:p,single:m,headers:b,baseUrl:x})=>{let y={...u};return d&&(y.select=d),h&&(y.limit=h),g&&(y.offset=g),m&&(y.single=!0),p&&(typeof p==\"string\"?y.order=p:Array.isArray(p)?y.order=p.map(_=>`${_.by}:${_.asc===!1?\"desc\":\"asc\"}`).join(\",\"):p.by&&(y.order=`${p.by}:${p.asc===!1?\"desc\":\"asc\"}`)),$e(pw(x||t,f||\"\",y),a({headers:s(b)}))},rpc:({from:f,params:u,headers:d,baseUrl:h})=>$e(c(`rpc/${f}`,h),a({method:\"POST\",headers:i(d),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:d,baseUrl:h})=>$e(c(f,h),a({method:\"POST\",headers:i(d),body:JSON.stringify(u)})),update:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return $e(c(b,p),a({method:h||\"PATCH\",headers:i(g),body:JSON.stringify(u)}))},upsert:({from:f,data:u,params:d,method:h,headers:g,baseUrl:p})=>{let m=d?.id||u?.id,b=m?`${f}/${m}`:f;return $e(c(b,p),a({method:h||\"PUT\",headers:i(g),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:d,baseUrl:h})=>{let g=u?.id,p=g?`${f}/${g}`:f;return $e(c(p,h),a({method:\"DELETE\",headers:s(d)}))}}}});var Yg={};D(Yg,{localAdapter:()=>Gg,setup:()=>mw});var Ca,gw,mw,Gg,Xg=L(()=>{\"use strict\";Ca=(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},gw=(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,l)=>c[i]<l[i]?a?-1:1:c[i]>l[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}},mw=async({data:t,...e})=>Gg(t,e),Gg=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<\"u\",s=e.prefix||\"smbls_db_\",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},c=(f,u,d,h)=>{let g=n[f];if(g)for(let p of g)p(d,h,{event:u,table:f})},l=Date.now();return{name:\"local\",store:r,select:async({from:f,params:u,...d})=>{let g=i(f).filter(p=>Ca(p,u));return gw(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(p=>{let m={id:p.id||++l,...p};return d.push(m),m});a(f);for(let p of g)c(f,\"INSERT\",p,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:d})=>{let h=i(f),g=[];for(let p=0;p<h.length;p++)if(Ca(h[p],d)){let m={...h[p]};Object.assign(h[p],u),g.push(h[p]),c(f,\"UPDATE\",h[p],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let h=i(f),g=Array.isArray(u)?u:[u],p=[];for(let m of g){let b=d||(m.id!==void 0?{id:m.id}:null),x=b?h.findIndex(y=>Ca(y,b)):-1;if(x>-1){let y={...h[x]};Object.assign(h[x],m),p.push(h[x]),c(f,\"UPDATE\",h[x],y)}else{let y={id:m.id||++l,...m};h.push(y),p.push(y),c(f,\"INSERT\",y,null)}}return a(f),{data:Array.isArray(u)?p:p[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),h=[];for(let g=d.length-1;g>=0;g--)Ca(d[g],u)&&(h.push(d[g]),d.splice(g,1),c(f,\"DELETE\",null,h[h.length-1]));return a(f),{data:h,error:null}},subscribe:({from:f,on:u},d)=>{n[f]||(n[f]=[]);let h=(g,p,m)=>{u&&u!==\"*\"&&u!==m.event||d(g,p,m)};return n[f].push(h),()=>{let g=n[f].indexOf(h);g>-1&&n[f].splice(g,1)}}}}});var Yo={};D(Yo,{createAdapter:()=>ww,default:()=>$w,executeFetch:()=>Go,fetchPlugin:()=>ku,initAdapterAuth:()=>Ra,parseDuration:()=>zo,queryClient:()=>Pw,registerAdapter:()=>Sw,resolveDb:()=>tm});var yw,bw,Aa,Vo,Ea,Uo,xw,_w,Sw,ww,tm,zo,wt,em,Bo,kw,Ko,Wo,Ho,Ta,Su,Oa,vw,Jg,xu,rm,nm,on,Zg,Cw,Qg,Aw,Pa,om,sm,Ra,wu,qt,oe,qo,Pr,be,Je,Ew,Tw,Ow,_u,Rw,Go,Pw,ku,$w,$r=L(()=>{\"use strict\";O();yw=[\"select\",\"rpc\",\"insert\",\"update\",\"upsert\",\"delete\",\"subscribe\"],bw={rest:()=>Promise.resolve().then(()=>(Kg(),qg)),local:()=>Promise.resolve().then(()=>(Xg(),Yg))},Aa=Symbol.for(\"@symbo.ls/fetch:CUSTOM_ADAPTERS\"),Vo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Aa])return globalThis[Aa];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Aa,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Aa]}catch{}return t})(),Ea=Symbol.for(\"@symbo.ls/fetch:PENDING_ADAPTERS\"),Uo=(()=>{if(typeof globalThis<\"u\"&&globalThis[Ea])return globalThis[Ea];let t={};if(typeof globalThis<\"u\")try{return Object.defineProperty(globalThis,Ea,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ea]}catch{}return t})(),xw=5e3,_w=t=>new Promise(e=>{if(Vo[t])return e(Vo[t]);let r=Uo[t]||(Uo[t]=[]),n=!1,o=()=>{n||(n=!0,e(Vo[t]||null))};r.push(o),setTimeout(o,xw)}),Sw=(t,e)=>{Vo[t]=e;let r=Uo[t];if(r&&r.length){Uo[t]=[];for(let n of r)n()}},ww=t=>{let e={};for(let r of yw)t[r]&&(e[r]=t[r]);return e.name=t.name||\"custom\",e},tm=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=Vo[n]||bw[n];if(!o&&(o=await _w(n),!o))throw new Error(`Unknown db adapter: \"${n}\". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!=\"function\")throw new Error(`Adapter \"${n}\" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(\", \")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},zo=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},wt=new Map,em=new Map,Bo=new Map,kw=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=Aw(t.params),o=r?`${r}:`:\"\",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||\"\")}`;return e?`${s}:${e}`:s},Ko=t=>wt.get(t)||null,Wo=(t,e,r)=>{let n=wt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};wt.set(t,o);let s=em.get(t);if(s)for(let i of s)C(i)&&i(o);return o},Ho=t=>{if(t){let e=wt.get(t);e&&(e.stale=!0);return}for(let[,e]of wt)e.stale=!0},Ta=t=>{if(t){wt.delete(t);return}wt.clear()},Su=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)}:S(t)?{staleTime:zo(t),gcTime:3e5}:{staleTime:zo(t.stale||t.staleTime)||6e4,gcTime:zo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Oa=null,vw=()=>{Oa||(Oa=setInterval(()=>{let t=Date.now();for(let[e,r]of wt){let n=em.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&wt.delete(e)}},3e4),Oa.unref&&Oa.unref())};vw();Jg=3,xu=t=>Math.min(1e3*2**t,3e4),rm=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Jg,delay:xu}:typeof e==\"number\"?{count:e,delay:xu}:{count:e.count??Jg,delay:C(e.delay)?e.delay:typeof e.delay==\"number\"?()=>e.delay:xu}},nm=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=C(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=C(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},on={focus:new Set,online:new Set},Zg=!1,Cw=()=>{if(Zg||typeof window>\"u\")return;Zg=!0;let t=()=>{for(let r of on.focus)r()},e=()=>{for(let r of on.online)r()};window.addEventListener(\"visibilitychange\",()=>{document.visibilityState===\"visible\"&&t()}),window.addEventListener(\"focus\",t),window.addEventListener(\"online\",e)},Qg=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:\"select\",query:!0,on:\"create\"};if(S(t))return{from:t,method:\"select\",query:!0,on:\"create\"};if(w(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},Aw=t=>(!t||C(t),t),Pa=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},om=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},sm=(t,e,r)=>{let n;if(!t)n=void 0;else if(C(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=C(s)?s(e,e.state):s}}return n},Ra=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(n){console.warn(\"[fetch] Failed to restore auth session:\",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},wu=async(t,e)=>{if(C(t.select))return t.auth!==!1&&await Ra(t,e),t;if(t.__resolved)return t.auth!==!1&&await Ra(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=tm(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await Ra(r,e),r):null},qt=(t,e,...r)=>{let n=C(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},oe=(t,e,r,...n)=>{let o=t&&C(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},qo=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},Pr=(t,e,r,n={})=>{let o=r&&r.startsWith(\"~/\"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e==\"object\"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},be=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},Je=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||C(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||C(t.skip)&&t.skip(e,e.state))return;let s=await wu(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:d,single:h,auth:g,fields:p,as:m,limit:b,offset:x,order:y,headers:_,baseUrl:v,page:E,cursor:I,getNextPageParam:H,getPreviousPageParam:R,infinite:P,placeholderData:G,initialData:at,select:W,keepPreviousData:B}=t,$=S(W)?W:void 0;if(l&&C(e.getQuery)){let Q=e.getQuery(s.name||\"paths\");Q&&($=Q.select||Q.length&&Q.join(\",\")||$)}let j=sm(f,e,r),F=Su(u),_t=rm(t),_r=Pa(e,r),Qn=om(e,r),Ut=_r?`:${_r}`:\"\",to=Qn?`${Qn}:`:\"\",z=F?u?.key||`${a}:${c}:${to}${JSON.stringify(j||\"\")}${P?\":infinite\":\"\"}${E?\":p\"+JSON.stringify(E):\"\"}${Ut}`:null;if(!i.__fetchInitialized&&z&&(i.__fetchInitialized=!0,at!==void 0)){let Q=C(at)?at():at;Wo(z,Q,null)}if((c===\"select\"||c===\"rpc\")&&z&&F){let Q=Ko(z);if(Q&&!Q.error){let q=Date.now()-Q.time,ut=Q.stale||q>(F.staleTime||0),U=Q.data;if(C(W)&&(U=W(U,e,e.state)),d&&(U=d(U,e,e.state)),Pr(e,U,m),!ut){be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"});return}}else if(G!==void 0){let q=C(G)?G(e,e.state):G;q!==void 0&&Pr(e,q,m)}}if(z&&Bo.has(z)&&!n.force){let Q=Bo.get(z);try{let q=await Promise.race([Q,new Promise((ut,U)=>setTimeout(()=>U(\"DEDUP_TIMEOUT\"),15e3))]);if(q?.data!==void 0){let ut=q.data;C(W)&&(ut=W(ut,e,e.state)),d&&(ut=d(ut,e,e.state)),Pr(e,ut,m),qt(e,\"onFetchComplete\",ut),oe(t,e,\"onFetchComplete\",ut)}}catch{}return}let ze=!Ko(z)?.data;be(e,{isFetching:!0,isLoading:ze,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),qt(e,\"onFetchStart\"),oe(t,e,\"onFetchStart\");let zt=r?.analyze?.emitNetwork,Ft=zt?typeof performance<\"u\"?performance.now():Date.now():0;zt&&zt({phase:\"start\",mode:\"query\",from:a,method:c,cacheKey:z,lang:_r});let bg=nm(async()=>{if(g!==!1&&s.auth!==!1&&s.getSession){let U=await s.getSession();if(g===!0&&!U){let St={message:\"Not authenticated\"};return be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:St,status:\"error\",fetchStatus:\"idle\"}),qt(e,\"onFetchError\",St),oe(t,e,\"onFetchError\",St),{data:null,error:St}}}let Q=s[c];if(!C(Q))return{data:null,error:{message:`Method \"${c}\" not found on adapter`}};let q={from:a,select:$,params:j,single:h,limit:b,offset:x,order:y,headers:_,baseUrl:v},ut=Pa(e,r);if(ut&&(q.headers={...q.headers,\"Accept-Language\":ut}),E!==void 0){if(w(E))E.offset!==void 0&&(q.offset=E.offset),E.limit!==void 0&&(q.limit=E.limit),E.cursor!==void 0&&(q.params={...q.params,cursor:E.cursor});else if(typeof E==\"number\"){let U=t.pageSize||b||20;q.offset=(E-1)*U,q.limit=U}}if(I!==void 0&&(q.params={...q.params,cursor:I}),c===\"insert\"||c===\"update\"||c===\"upsert\"){let U;if(p===!0||t.on===\"submit\")U=qo(e);else if(T(p)){let St=qo(e);U={};for(let bl of p)U[bl]=St[bl]}else e.state?.parse?U=e.state.parse():w(e.state)&&(U={...e.state});d&&(U=d(U,e,e.state)),q.data=U}if(c===\"rpc\"){let U=j;if(t.on===\"submit\"){let St=qo(e);U=t.transformParams?t.transformParams(St,e,e.state):St}q.params=U}if(c===\"subscribe\"){let U=s.subscribe({from:a,params:j,on:t.subscribeOn},(St,bl,_A)=>{Pr(e,St,m),qt(e,\"onFetchComplete\",St),oe(t,e,\"onFetchComplete\",St)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return Q(q)},_t);z&&Bo.set(z,bg);try{let Q=await bg;if(Q?.subscribed)return;let{data:q,error:ut}=Q||{};if(ut){z&&Wo(z,null,ut),be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:\"error\",fetchStatus:\"idle\"}),qt(e,\"onFetchError\",ut),oe(t,e,\"onFetchError\",ut),zt&&zt({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:z,error:ut.message||ut,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Ft});return}if(q!==void 0){if((c===\"select\"||c===\"rpc\")&&z){let St=Wo(z,q,null);St.gcTime=F?.gcTime||3e5}let U=q;P&&T(q)&&(i.__pages||(i.__pages=[]),n.direction===\"previous\"?i.__pages.unshift(q):i.__pages.push(q),U=i.__pages.flat(),H&&(i.__nextPageParam=H(q,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),R&&(i.__prevPageParam=R(q,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(W)&&(U=W(U,e,e.state)),d&&(U=d(U,e,e.state)),(!B||U!==void 0)&&Pr(e,U,m),be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),qt(e,\"onFetchComplete\",U),oe(t,e,\"onFetchComplete\",U),zt&&zt({phase:\"success\",mode:\"query\",ok:!0,from:a,method:c,cacheKey:z,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Ft})}}catch(Q){be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:\"error\",fetchStatus:\"idle\"}),qt(e,\"onFetchError\",Q),oe(t,e,\"onFetchError\",Q),zt&&zt({phase:\"error\",mode:\"query\",from:a,method:c,cacheKey:z,error:Q.message||String(Q),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-Ft})}finally{z&&Bo.delete(z)}},Ew=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Je;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))},Tw=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Cw();let o=t.refetchInterval;if(o){let s=typeof o==\"number\"?o:zo(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>\"u\"||document.visibilityState===\"visible\")&&Je(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Pa(e,r),a=om(e,r),c=kw(t,i,a),l=Ko(c),f=Su(t.cache);(!l||l.stale||Date.now()-l.time>(f?.staleTime||0))&&Je(t,e,r,{force:!0})};on.focus.add(s),n.__fetchCleanups.push(()=>on.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>Je(t,e,r,{force:!0});on.online.add(s),n.__fetchCleanups.push(()=>on.online.delete(s))}},Ow=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():w(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=C(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&Pr(t,i,o),s},_u=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(Pr(t,n,e.as),delete r.__optimisticSnapshot)},Rw=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await wu(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:h,baseUrl:g,invalidates:p,optimistic:m,onMutate:b,onSuccess:x,onError:y,onSettled:_}=t,v;if(c===!0||u===\"submit\")v=qo(e);else if(T(c)){let R=qo(e);v={};for(let P of c)v[P]=R[P]}else e.state?.parse?v=e.state.parse():w(e.state)&&(v={...e.state});l&&(v=l(v,e,e.state)),C(b)&&b(v,e,e.state);let E=m?Ow(e,t,v):null;s.__fetching=!0,be(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:\"pending\",fetchStatus:\"fetching\"}),qt(e,\"onFetchStart\"),oe(t,e,\"onFetchStart\");let I=r?.analyze?.emitNetwork,H=I?typeof performance<\"u\"?performance.now():Date.now():0;I&&I({phase:\"start\",mode:\"mutation\",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let j=await o.getSession();if(d===!0&&!j){E!==void 0&&_u(e,t);let F={message:\"Not authenticated\"};qt(e,\"onFetchError\",F),oe(t,e,\"onFetchError\",F);return}}let R=o[i];if(!C(R))return;let P={from:a,data:v,headers:h,baseUrl:g};t.params&&(P.params=sm(t.params,e,r));let G=Pa(e,r);G&&(P.headers={...P.headers,\"Accept-Language\":G});let at=rm(t),W=await nm(()=>R(P),at),{data:B,error:$}=W||{};if($){E!==void 0&&_u(e,t),be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:$,status:\"error\",fetchStatus:\"idle\"}),qt(e,\"onFetchError\",$),C(y)&&y($,v,e),C(_)&&_(null,$,v,e),I&&I({phase:\"error\",mode:\"mutation\",from:a,method:i,error:$.message||String($),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-H});return}if(delete s.__optimisticSnapshot,B!==void 0){let j=f?{[f]:B}:B;e.state?.update&&e.state.update(j,{preventFetch:!0})}if(be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:\"success\",fetchStatus:\"idle\"}),qt(e,\"onFetchComplete\",B),oe(t,e,\"onFetchComplete\",B),C(x)&&x(B,v,e),C(_)&&_(B,null,v,e),I&&I({phase:\"success\",mode:\"mutation\",ok:!0,from:a,method:i,durationMs:(typeof performance<\"u\"?performance.now():Date.now())-H}),p){let j=T(p)?p:[p];for(let F of j)if(F===!0||F===\"*\")for(let[_t]of wt)_t.startsWith(a+\":\")&&Ho(_t);else Ho(F)}}catch(R){E!==void 0&&_u(e,t),be(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:R,status:\"error\",fetchStatus:\"idle\"}),qt(e,\"onFetchError\",R),oe(t,e,\"onFetchError\",R),C(y)&&y(R,v,e),C(_)&&_(null,R,v,e),I&&I({phase:\"error\",mode:\"mutation\",from:a,method:i,error:R.message||String(R),durationMs:(typeof performance<\"u\"?performance.now():Date.now())-H})}finally{s.__fetching=!1}},Go=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=et(t,e);if(!s)return;let i=T(s)?s.map(c=>Qg(et(c,e),e)).filter(Boolean):[Qg(s,e)].filter(Boolean);for(let c of i){let l=c.method===\"insert\"||c.method===\"update\"||c.method===\"upsert\"||c.method===\"delete\",f=l?Rw:Je;c.on===\"create\"?f(c,e,n):Promise.resolve().then(()=>{Ew({...c,__runner:f},e,n)}),!l&&c.on===\"create\"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Tw(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)Je(l,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__nextPageParam;if(l==null)return;let f={...c,cursor:l};Je(f,e,n,{direction:\"next\",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let l=a.__prevPageParam;if(l==null)return;let f={...c,cursor:l};Je(f,e,n,{direction:\"previous\",force:!0})}},Pw={invalidateQueries:t=>{if(!t){Ho();return}if(S(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&Ho(e);else if(T(t)){let e=t.join(\":\");for(let[r]of wt)r.includes(e)&&Ho(r)}},removeQueries:t=>{if(!t){Ta();return}if(S(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&Ta(e)},getQueryData:t=>Ko(t)?.data??void 0,setQueryData:(t,e)=>{let r=Ko(t),n=C(e)?e(r?.data):e;Wo(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await wu(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(!C(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=Wo(o,i.data,null);a.gcTime=Su(t.cache)?.gcTime||3e5}return i},getCache:()=>wt,clear:()=>Ta(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of wt)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Ta(r))}},ku={name:\"fetch\",create(t){let e=t.fetch;e&&(t.parent||Bo.clear(),Go(e,t,t.state,t.context))}},$w=Go});function Jo(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 Cu(t){let e=this,{parent:r}=e;if(C(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 Au(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(C(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 Eu(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(C(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 $a(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(w(n)&&o)$a.call(o,n);else if(n!=null){let s=r.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase()),i=String(n).replace(/\\s*!important\\s*$/,\"\");e.node.style.setProperty(s,i,\"important\")}}return e}}function am(t){let e=this;if(Xe(\"beforeRemove\",e,t)===!1)return e;C(e.node.remove)?e.node.remove():Ge()||(console.warn(\"This item cant be removed\"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=lo(e.parent.__ref.__children,e.key)),Xe(\"remove\",e,t)}function Tu(t){return this[t]}function Ou(t,e){let r=this;if(t)return r.update(t,e),r}function Ru(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Zo(){return this.getRef(\"__children\").map(e=>this[e])}function Qo(){return this.getRef().path}function es(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=im();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=C(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=im()),t?e?.[t]:e}function rs(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function ns(t){return this.getRoot(\"data\")&&Object.keys(this.getRoot(\"data\")).length>0&&t?this.getRoot(\"data\")[t]:this.getRoot(\"data\")}function os(t){let e=this.getRoot()?.context;return t?e[t]:e}function ss(t){let e=this.context;return t?e[t]:e}function Ia(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||qe.has(r)&&!go.has(r)||e.push(r);return e}function Da(t=[]){let e=this,r={},n=Ia.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 l=C(c&&c.parse)?c.parse():c;r[a]=C(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a===\"scope\"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a===\"props\"){let{__element:l,update:f,...u}=e[a];r[a]=u}else Et(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Xo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Da.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=>V(a)?Xo.call(a,t,e):a):V(i)&&(n[s]=Xo.call(i,t,e))}return n}function sn(...t){if(Ze!==\"test\"&&Ze!==\"development\")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:\n`,\"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 $u(...t){(Ze===\"test\"||Ze===\"development\")&&console.log(...t)}function is(...t){(Ze===\"test\"||Ze===\"development\")&&console.warn(...t)}function Ir(...t){if(Ze===\"test\"||Ze===\"development\"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&sn.call(this),new Error(...t)}}function as(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function cs(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 ls(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,ot(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 Iu(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=>{Ir.call(this,s)}),o}catch(o){if(Ir.call(this,o),r?.strictMode)throw o}}async function fs(){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(()=>($r(),Yo));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>($r(),Yo));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>($r(),Yo)).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(()=>($r(),Yo));await o(n,t.context)}return n}function us(t){let e=this,r=t||jo.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(vu(e,n),r===!0)return n;let o=jw[r];return o?o(n):n}function Du(t,e){return!!(Xr.has(t)||e?.context?.methods?.[t])}var Ze,cm,ts,im,Pu,vu,Iw,lm,Dw,Fw,Lw,Mw,Nw,jw,fm=L(()=>{\"use strict\";mu();Jr();mt();Pe();Ef();Yr();bu();Ze=\"production\";cm=null,ts=t=>{cm=t||null},im=()=>cm||null;Pu=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});vu=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n==\"string\"&&Iw(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&vu(c,e)}let s=r.contentElementKey||\"content\",i=t[s];i&&i.__ref&&vu(i,e)},Iw=(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])}},lm=(t,e=0)=>{let r=\" \".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {\n${lm(i,e+1)}\n${r}}`).join(`\n`):\"\"},Dw=t=>`{\n${lm(t,1)}\n}`,Fw=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},Lw=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.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(\"&\")},Mw=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&n.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,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(\", \"):\"*\",l=n.length?`\n`+n.join(`\n`):\"\";return`SELECT ${c}\nFROM ${a}${l}`},Nw=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},jw={graphql:Dw,\"json-api\":Fw,odata:Lw,sql:Mw,paths:Nw}});var Bw,Fu,um=L(()=>{\"use strict\";Gi();Bw={snapshotId:wo},Fu=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=Bw.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var Fa,Lu,dm=L(()=>{Fa=new Set([\"__proto__\",\"constructor\",\"prototype\",\"_id\",\"__v\",\"id\",\"createdAt\",\"updatedAt\",\"schema\"]),Lu=t=>typeof t==\"string\"&&Fa.has(t)});async function Mu(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})`)}}var pm=L(()=>{\"use strict\"});var xe,Qe,an,se,Nu,hm=L(()=>{\"use strict\";xe={skypack:{url:\"https://cdn.skypack.dev\",formatUrl:(t,e)=>`${xe.skypack.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},esmsh:{url:\"https://esm.sh\",formatUrl:(t,e)=>`${xe.esmsh.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}`},unpkg:{url:\"https://unpkg.com\",formatUrl:(t,e)=>`${xe.unpkg.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}?module`},jsdelivr:{url:\"https://cdn.jsdelivr.net/npm\",formatUrl:(t,e)=>`${xe.jsdelivr.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}/+esm`},symbols:{url:\"https://pkg.symbo.ls\",formatUrl:(t,e)=>`${xe.symbols.url}/${t}${e!==\"latest\"?`@${e}`:\"\"}/+esm`}},Qe={\"esm.sh\":\"esmsh\",unpkg:\"unpkg\",skypack:\"skypack\",jsdelivr:\"jsdelivr\",\"pkg.symbo.ls\":\"symbols\"},an=(t={})=>{let{packageManager:e}=t;return Qe[e]||null},se=(t,e=\"latest\",r=\"esmsh\")=>(xe[r]||xe.esmsh).formatUrl(t,e),Nu=(t,e=\"skypack\",r={})=>{let n=t.dependencies||{},o=Object.keys(n);if(!o.length)return\"\";let s=r.pin||{},i={};for(let f of o){let u=s[f]||n[f]||\"latest\";i[f]=se(f,u,e)}let a='<script type=\"importmap\">',c=\"<\\/script>\",l=`{\n \"imports\": ${JSON.stringify(i,null,2)}\n }`;return`${a}${l}${c}`}});var ju,gm=L(()=>{\"use strict\";ju=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 Bu,mm=L(()=>{\"use strict\";Bu=(t,e)=>{let r=setTimeout(()=>{let{props:n}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(n.height===\"auto\")return;t.update({height:e.clientHeight},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});let o=setTimeout(()=>{t.update({height:\"auto\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0}),clearTimeout(o)},450)}else t.update({height:\"0\"},{preventBeforeUpdateListener:!0,preventChildrenUpdate:!0});clearTimeout(r)})}});var Vu,ym=L(()=>{\"use strict\";Vu=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 Uu,bm=L(()=>{\"use strict\";Uu=t=>[\"jpeg\",\"gif\",\"jpg\",\"png\",\"tiff\",\"woff\"].includes(t)});function cn(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 Gu(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 zu,Wu,Hu,qu,Ku,xm=L(()=>{\"use strict\";zu=(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)}}),Wu=(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)}),Hu=(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}`)},qu=(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)}}),Ku=(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 Ww(t,e){if(!e||typeof e!=\"object\")return t;let r=o=>{if(!zw(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 La(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 Hw(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||{},l={...t};for(let[f,u]of Object.entries(l))typeof u!=\"string\"||!u.includes(\"{{\")||(l[f]=u.replace(/\\{\\{\\s*([^|{}]+?)\\s*(?:\\|\\s*(\\w+)\\s*)?\\}\\}/g,(d,h,g)=>{let p=h.trim();if(g===\"polyglot\")return a[p]??La(a,p)??d;if(g===\"getLocalStateLang\")return La(c,p+s)??d;let m=La(c,p);return m!==void 0?m:a[p]??La(a,p)??d}));return l}function _m(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 Xu(t,e,r,{isProduction:n=!1,channel:o=\"production\"}={}){let s=t.pages?.[e],i=w(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=_m(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=_m(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let p=t.name||t.key;p?n?d.title=p:o===\"development\"?d.title=`${p} / dev:symbo.ls`:o===\"staging\"?d.title=`${p} / staging:symbo.ls`:d.title=`${p} / symbo.ls`:d.title=\"Symbols demo\"}d=Hw(d,t,r),d.title&&(l.has(\"title\")||!d[\"og:title\"])&&(l.has(\"og:title\")||(d[\"og:title\"]=d.title)),d.description&&(l.has(\"description\")||!d[\"og:description\"])&&(l.has(\"og:description\")||(d[\"og:description\"]=d.description)),d.title&&!d[\"twitter:title\"]&&(d[\"twitter:title\"]=d.title),d.description&&!d[\"twitter:description\"]&&(d[\"twitter:description\"]=d.description);let h=r?.actualPathname||e;if(d[\"og:url\"]||d.url){let p=(d[\"og:url\"]||d.url||\"\").replace(/\\/$/,\"\");if(p&&h&&h!==\"/\"){let m=h.startsWith(\"/\")?h:\"/\"+h;d[\"og:url\"]=p+m}}d=Ww(d,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||\"\";for(let[p,m]of Object.entries(d))if(typeof m==\"string\"&&m.includes(\"{{\")){let b=m.replace(/\\{\\{[^}]*\\}\\}/g,\"\").trim();b?d[p]=b:p===\"title\"?d[p]=g:delete d[p]}return d}var yt,Vw,ln,Uw,Ma,Yu,zw,Sm=L(()=>{\"use strict\";mt();yt=t=>{if(t==null)return\"\";let e={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#039;\"};return t.toString().replace(/[&<>\"']/g,r=>e[r])},Vw=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}=\"${yt(r)}\"`).join(\" \"),ln=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},Uw=new Set([\"jsonLd\",\"styles\",\"scripts\"]),Ma=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let r of t.jsonLd){if(r==null)continue;let n=typeof r==\"string\"?r:JSON.stringify(r),o=String(n).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script type=\"application/ld+json\" data-smbls-jsonld=\"${ln(n)}\">${o}<\\/script>`)}if(Array.isArray(t.styles))for(let r of t.styles){if(r==null||!String(r).trim())continue;let n=String(r).replace(/<\\/style/gi,\"<\\\\/style\");e.push(`<style data-smbls-style=\"${ln(n)}\">${n}</style>`)}if(Array.isArray(t.scripts))for(let r of t.scripts){if(!r)continue;let n=typeof r==\"string\",o=n?r:r.src;if(!o&&!r.body)continue;let s=[];o&&s.push(`src=\"${yt(o)}\"`),n||(r.type&&s.push(`type=\"${yt(r.type)}\"`),r.async&&s.push(\"async\"),r.defer&&s.push(\"defer\"),r.integrity&&s.push(`integrity=\"${yt(r.integrity)}\"`),r.crossorigin&&s.push(`crossorigin=\"${yt(r.crossorigin)}\"`),r.referrerpolicy&&s.push(`referrerpolicy=\"${yt(r.referrerpolicy)}\"`),r.nomodule&&s.push(\"nomodule\"));let i=` data-smbls-script=\"${yt(o||ln(r.body||\"\"))}\"`;if(!n&&r.body){let a=String(r.body).replace(/<\\/script/gi,\"<\\\\/script\");e.push(`<script ${s.join(\" \")}${i}>${a}<\\/script>`)}else e.push(`<script ${s.join(\" \")}${i}><\\/script>`)}return e},Yu=(t,e)=>{e||(t={...t,robots:\"noindex\"});let r=Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1||Uw.has(o))return n;if(o===\"title\")return n.push(`<title>${yt(s)}</title>`),n;if(o===\"canonical\")return n.push(`<link rel=\"canonical\" href=\"${yt(s)}\">`),n;if(o===\"manifest\")return n.push(`<link rel=\"manifest\" href=\"${yt(s)}\">`),n;if(o===\"favicon\"||o===\"favicons\"||o===\"icon\"||o===\"icons\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"string\")n.push(`<link rel=\"icon\" href=\"${yt(f)}\">`);else if(typeof f==\"object\"){let u=Vw(f);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel=\"icon\" ${u}>`)}}),n;if(o===\"alternate\")return(Array.isArray(s)?s:[s]).forEach(f=>{if(typeof f==\"object\"){let u=Object.entries(f).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}=\"${yt(h)}\"`).join(\" \");n.push(`<link rel=\"alternate\" ${u}>`)}}),n;let i=(l,f,u=\"name\")=>{if(typeof f==\"string\"||typeof f==\"number\"||typeof f==\"boolean\")n.push(`<meta ${u}=\"${yt(l)}\" content=\"${yt(f)}\">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d==\"string\"||typeof d==\"number\"||typeof d==\"boolean\")n.push(`<meta ${u}=\"${yt(l)}\" content=\"${yt(d)}\">`);else if(typeof d==\"object\"){let h=Object.entries(d).filter(([g,p])=>p!==void 0).map(([g,p])=>`${g}=\"${yt(p)}\"`).join(\" \");n.push(`<meta ${h}>`)}});else if(typeof f==\"object\"){let d=Object.entries(f).filter(([h,g])=>g!==void 0).map(([h,g])=>`${h}=\"${yt(g)}\"`).join(\" \");n.push(`<meta ${d}>`)}};if(o.startsWith(\"http-equiv:\")){let l=o.replace(\"http-equiv:\",\"\");return i(l,s,\"http-equiv\"),n}if(o.startsWith(\"itemprop:\")){let l=o.replace(\"itemprop:\",\"\");return i(l,s,\"itemprop\"),n}let c=[\"og:\",\"twitter:\",\"fb:\",\"article:\",\"profile:\",\"book:\",\"business:\",\"music:\",\"product:\",\"video:\",\"DC:\",\"DCTERMS:\"].find(l=>o.startsWith(l));if(c){let l=o.replace(c,\"\");return i(`${c.replace(\":\",\"\")}:${l}`,s,c===\"twitter:\"||c===\"DC:\"||c===\"DCTERMS:\"?\"name\":\"property\"),n}if(o.startsWith(\"apple:\")||o.startsWith(\"msapplication:\")){let l=o.startsWith(\"apple:\")?\"apple-\":\"msapplication-\",f=o.replace(/^apple:|^msapplication:/,\"\");return i(`${l}${f}`,s,\"name\"),n}return i(o,s),n},['<meta charset=\"UTF-8\">','<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">']);return r.push(...Ma(t)),r.join(`\n`)},zw=t=>typeof t==\"string\"&&t.length>0&&!t.startsWith(\"/\")&&!t.startsWith(\"http\")});var Na,Ju,wm=L(()=>{\"use strict\";mt();Na=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Ju=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),Na(t,e))});function fn(t){let e=String(t||\"\").trim();if(!e)return{owner:km,key:\"\",full:\"\"};let r=null,n=e;if(e.includes(\"/\")){let s=e.indexOf(\"/\");r=e.slice(0,s),n=e.slice(s+1)}n=n.replace(/\\.symbo\\.ls$/iu,\"\"),r||(r=km);let o=n?`${r}/${n}`:\"\";return{owner:r,key:n,full:o}}async function ja(t,e={}){if((e.provider||\"kv\")===\"api\")return vm(t,e);let n=await Zw(t,e);return n||vm(t,e)}async function Zw(t,e={}){let r=e.kvBaseUrl||qw,n=e.env||\"production\",o=`${r}/kv/${encodeURIComponent(t)}?env=${n}`;try{let s=await fetch(o,{method:\"GET\"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function vm(t,e={}){let r=e.apiBaseUrl||Kw,{key:n}=fn(t);try{let o=`${r}/core/projects/libraries/available?search=${encodeURIComponent(n)}&limit=10`,s=await fetch(o,{method:\"GET\"});if(!s.ok)return null;let i=await s.json(),c=(i?.items||i?.data||(Array.isArray(i)?i:[])).find(h=>{let{key:g}=fn(h?.key);return g.toLowerCase()===n.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${r}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:\"GET\"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function Cm(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=fn(t);if(!r)return null;try{let n=await ja(r,e);return n||console.warn(`[smbls] Shared library \"${r}\" not found`),n}catch(n){return console.warn(`[smbls] Failed to fetch shared library \"${r}\":`,n.message),null}}return null}async function Qu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(hs(n)){let o=await Cm(Xw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return Cm(n,e)}))).filter(Boolean)}var km,qw,Kw,ds,Gw,Yw,ps,Zu,hs,Xw,Jw,gs,Am=L(()=>{\"use strict\";mt();km=\"system\",qw=\"https://smbls-kv.nika-980.workers.dev\",Kw=\"https://api.symbols.app\";ds=(t,e,r,n)=>{for(let o in e){let s=n?`${n}/${o}`:o;r&&r.has(s)||(o in t?w(t[o])&&w(e[o])&&ds(t[o],e[o],r,s):t[o]=e[o])}},Gw=new Set,Yw=t=>t.replace(/\\.js$/iu,\"\"),ps=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let r of t){if(!S(r))continue;let n=r.split(\"/\").map(o=>Yw(o.trim())).filter(Boolean).join(\"/\");n&&e.add(n)}return e},Zu=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),hs=t=>w(t)&&Array.isArray(t.ignoreList)&&(\"library\"in t||\"key\"in t||\"name\"in t),Xw=t=>t.library!==void 0?t.library:t.key??t.name,Jw=(t,e,r)=>{let n=ps(e.sharedLibIgnore);e.sharePages===!1&&n.add(\"pages\");let o=n.size?new Set([...r,...n]):r;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&!(s===\"sharePages\"||s===\"sharedLibIgnore\")&&!o.has(s))if(w(e[s])&&w(t[s]))if(s===\"designSystem\")ds(t[s],e[s],o,s);else for(let i in e[s])o.has(`${s}/${i}`)||i in t[s]||(t[s][i]=e[s][i]);else s in t||(t[s]=e[s])},gs=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=Gw;hs(n)&&(o=ps(n.ignoreList),n=n.library),w(n)&&Jw(t,n,o)}}});var td,ed,rd,ms,nd,ys,od,Dr,Em=L(()=>{\"use strict\";mt();td=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn(\"Failed to copy text: \",e)}},ed=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)}},rd=t=>t.replace(/[^a-zA-Z0-9_]/g,\"\"),ms=t=>(typeof t!=\"string\"&&(t=String(t||\"\")),t.replace(/(?:^\\w|[A-Z]|\\b\\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\\s+/g,\"\")),nd=t=>t&&t.replace(/\\w\\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),ys=t=>t.replace(/[^a-zA-Z0-9]/g,\" \").trim().toLowerCase().replace(/\\s+/g,\"-\").replace(/-+/g,\"-\").replace(/^-|-$/g,\"\"),od=(t=\"\")=>{if(typeof t!=\"string\")return;let e=t.replace(/([A-Z])/g,\" $1\");return e.charAt(0).toUpperCase()+e.slice(1)},Dr=t=>{if(T(t))return t;if(S(t))return t.split(\" \");if(w(t))return Object.values(t);if(he(t))return[t]}});var sd,Tm=L(()=>{\"use strict\";sd=()=>{let t=document.styleSheets[0],e=\"\";if(t)try{let r=t.cssRules||t.rules;for(let n=0;n<r.length;n++)e+=r[n].cssText}catch(r){console.error(\"Unable to access CSS rules. This may be due to CORS restrictions:\",r)}else console.log(\"No stylesheets found in document.styleSheets[0].\");return e}});var Pt,un,bs,xs,Om=L(()=>{\"use strict\";Pt=t=>{let e=t&&t.src;if(!e||typeof e!=\"string\")return null;let r=t.context;if(!r)return null;let n=r.assets&&r.assets[e]||r.files&&r.files[e];return n?typeof n==\"string\"?{src:n,type:null,variants:null}:typeof n==\"object\"&&typeof n.src==\"string\"?n:null:null},un=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return\"\";let r=t.some(o=>typeof o.width==\"number\"),n=[];for(let o of t)r&&typeof o.width==\"number\"?n.push(`${o.src} ${o.width}w`):r||(o.scale===1&&e?n.push(o.src):o.scale&&o.scale!==1&&n.push(`${o.src} ${o.scale}x`));return n.join(\", \")},bs=t=>{if(!t||!Array.isArray(t.variants))return\"\";let e=t.variants.filter(r=>r.format===t.type);return un(e,{keepOneX:!1})},xs=(t,e)=>{if(!t||typeof t!=\"object\"||typeof t.src!=\"string\")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:\"img\",attr:{src:t.src,alt:e||\"\"}}];let r=new Map;for(let a of t.variants)r.has(a.format)||r.set(a.format,[]),r.get(a.format).push(a);let n=[];for(let[a,c]of r)a!==t.type&&n.push({tag:\"source\",attr:{type:a,srcset:un(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=un(o,{keepOneX:!1}),i={src:t.src,alt:e||\"\"};return s&&(i.srcset=s),[...n,{tag:\"img\",attr:i}]}});var Ba={};D(Ba,{CDN_PROVIDERS:()=>xe,DOMQL_EVENTS:()=>sf,DOMQ_PROPERTIES:()=>qe,ENV:()=>wf,HTML_TAGS:()=>en,METHODS:()=>Xr,METHODS_EXL:()=>mo,NODE_ENV:()=>re,OPTIONS:()=>jo,PACKAGE_MANAGER_TO_CDN:()=>Qe,PARSED_DOMQ_PROPERTIES:()=>go,PROPS_METHODS:()=>Ke,STATE_METHODS:()=>Er,STATE_PROPERTIES:()=>of,SVG_TAGS:()=>$g,TYPES:()=>ao,UNIVERSAL_RESERVED_KEYS:()=>Fa,addCaching:()=>ya,addContext:()=>ma,addExtend:()=>Kf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Hl,addProtoToArray:()=>fo,addRef:()=>pa,applyDependentState:()=>du,applyEvent:()=>ka,applyEventUpdate:()=>va,applyExtends:()=>Fg,applyProps:()=>Io,arrayContainsOtherArray:()=>Nl,arraysEqual:()=>Kl,arrayzeValue:()=>Dr,buildImgSrcset:()=>bs,buildSourcesAndImg:()=>xs,cache:()=>yu,call:()=>Iu,captureSnapshot:()=>Fu,checkForStateTypes:()=>cu,checkIfInherits:()=>wa,checkIfStringIsInArray:()=>Xl,clone:()=>cf,cloneAndMergeArrayExtend:()=>Co,cloneFunction:()=>Pf,concatAddExtends:()=>Wf,copyJavaScriptToClipboard:()=>ed,copyStringToClipboard:()=>td,createBasedOnType:()=>da,createElement:()=>au,createElementExtends:()=>ta,createExtends:()=>Eo,createExtendsFromKeys:()=>rn,createExtendsStack:()=>oa,createIfConditionFlag:()=>$f,createInheritedState:()=>lu,createKey:()=>ko,createNestedObject:()=>gf,createNestedObjectByKeyPath:()=>uu,createObjectWithoutPrototype:()=>Ki,createParent:()=>ha,createPath:()=>ga,createProps:()=>Do,createPropsStack:()=>fa,createRoot:()=>iu,createScope:()=>hu,createSnapshotId:()=>wo,customDecodeURIComponent:()=>nf,customEncodeURIComponent:()=>rf,cutArrayAfterValue:()=>zl,cutArrayBeforeValue:()=>Ul,debounce:()=>vo,debounceOnContext:()=>Tf,decodeNewlines:()=>ef,deepClone:()=>ot,deepContains:()=>pf,deepDefaults:()=>ds,deepDestringifyFunctions:()=>Ht,deepExtend:()=>Qi,deepMerge:()=>X,deepMergeExtends:()=>me,deepStringifyFunctions:()=>yo,defineSetter:()=>Pu,destringifyGlobalScope:()=>xo,detectHeightOnInit:()=>Bu,detectInfiniteLoop:()=>xf,document:()=>Y,encodeNewlines:()=>tf,error:()=>Ir,excludeKeysFromObject:()=>Sf,exec:()=>et,extendCachedRegistry:()=>Hf,extendStackRegistry:()=>To,extractArrayExtend:()=>Ro,fetchLibraryData:()=>ja,fibonacciNumberByIndex:()=>Vu,filterArrays:()=>Gl,filterArraysFast:()=>Yl,finalizeExtends:()=>sa,findClosestNumber:()=>Na,findClosestNumberInFactory:()=>Ju,findInheritedState:()=>Sa,findKeyPosition:()=>Zl,flattenExtend:()=>nn,formatDate:()=>ju,generateHash:()=>Xi,generateHeadArrayTags:()=>Ma,generateKey:()=>So,generateMetaTags:()=>Yu,get:()=>Tu,getCDNUrl:()=>se,getCapitalCaseKeys:()=>Xf,getCdnProviderFromConfig:()=>an,getChildStateInKey:()=>_a,getChildren:()=>Zo,getContext:()=>ss,getCookie:()=>Mf,getDB:()=>fs,getEmotionStylesheet:()=>sd,getExtendsInElement:()=>Gf,getExtendsStack:()=>Ao,getExtendsStackRegistry:()=>Zi,getFrequencyInArray:()=>jl,getHashedExtend:()=>Oo,getImportMapScript:()=>Nu,getInObjectByPath:()=>bf,getLocalStorage:()=>jf,getNev:()=>Af,getPageMetadata:()=>Xu,getParentStateInKey:()=>xa,getPath:()=>Qo,getQuery:()=>us,getRef:()=>Ru,getRoot:()=>rs,getRootContext:()=>os,getRootData:()=>ns,getRootState:()=>es,getRootStateInKey:()=>ba,getSpreadChildren:()=>Jf,global:()=>Fl,hasFunction:()=>ge,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>ff,hashContent:()=>ln,inheritChildExtends:()=>ra,inheritChildPropsExtends:()=>ea,inheritParentProps:()=>Fo,inheritRecursiveChildExtends:()=>na,initProps:()=>nu,is:()=>Tt,isArray:()=>T,isBoolean:()=>Ui,isContextComponent:()=>Zf,isCyclic:()=>_f,isDOMNode:()=>At,isDate:()=>Wi,isDefined:()=>Et,isDevelopment:()=>Ye,isEmpty:()=>Hi,isEmptyObject:()=>uf,isEqualDeep:()=>qi,isFunction:()=>C,isHtmlElement:()=>so,isLocal:()=>Cf,isLoudDevRuntime:()=>ne,isMethod:()=>Du,isMobile:()=>Ff,isNode:()=>Re,isNot:()=>Ml,isNotProduction:()=>Rr,isNull:()=>zi,isNumber:()=>he,isObject:()=>w,isObjectLike:()=>V,isPhoto:()=>Uu,isProduction:()=>Ge,isStaging:()=>vf,isState:()=>fu,isString:()=>S,isStringFunction:()=>Rf,isTest:()=>Yi,isTesting:()=>kf,isUndefined:()=>gt,isUniversallyReservedKey:()=>Lu,isValidHtmlTag:()=>Vf,isWrappedLibrary:()=>hs,joinArrays:()=>Kr,jointStacks:()=>qf,keys:()=>Ia,loadCssFile:()=>qu,loadJavascript:()=>Ku,loadJavascriptFile:()=>zu,loadJavascriptFileEmbedSync:()=>Hu,loadJavascriptFileSync:()=>Wu,loadRemoteCSS:()=>Gu,loadRemoteScript:()=>cn,log:()=>$u,logGroupIf:()=>Df,logIf:()=>If,lookdown:()=>Au,lookdownAll:()=>Eu,lookup:()=>Cu,lowercaseFirstLetter:()=>Ar,makeObjectWithoutPrototype:()=>df,map:()=>af,mapStringsWithContextComponents:()=>Po,matchesComponentNaming:()=>ye,memoize:()=>Of,merge:()=>it,mergeSharedLibraries:()=>gs,nextElement:()=>as,normalizeIgnoreList:()=>ps,normalizeLibraryKey:()=>fn,objectToString:()=>bo,objectizeStringProperty:()=>$o,overwrite:()=>_o,overwriteDeep:()=>Ot,overwriteShallow:()=>Or,overwriteState:()=>pu,parse:()=>Da,parseDeep:()=>Xo,pickupElementFromProps:()=>ca,pickupPropsFromElement:()=>aa,previousElement:()=>cs,propExists:()=>eu,propertizeElement:()=>la,propertizeUpdate:()=>tu,remove:()=>am,removeChars:()=>rd,removeCookie:()=>Nf,removeDuplicateProps:()=>Mo,removeDuplicatesInArray:()=>Gr,removeFromArray:()=>Bl,removeFromObject:()=>hf,removeNestedKeyByPath:()=>mf,removeValueFromArray:()=>lo,removeValueFromArrayAll:()=>Wl,reorderArrayByValues:()=>ql,replaceLiteralsWithObjectFields:()=>Cr,replaceOctalEscapeSequences:()=>Ql,resolveAsset:()=>Pt,resolveHandler:()=>Qr,resolveSharedLibraries:()=>Qu,returnValueAsText:()=>ua,runPluginHook:()=>xt,self:()=>Ll,setActiveRootState:()=>ts,setCookie:()=>Lf,setHashedExtend:()=>Ji,setInObjectByPath:()=>yf,setLocalStorage:()=>Bf,setNodeStyles:()=>$a,setProps:()=>Ou,setPropsPrototype:()=>Lo,sharedLibrary:()=>Zu,spotByPath:()=>Jo,srcsetFor:()=>un,stringIncludesAny:()=>po,stringToObject:()=>lf,swapItemsInArray:()=>Vl,syncProps:()=>No,toCamelCase:()=>ms,toDashCase:()=>ys,toDescriptionCase:()=>od,toTitleCase:()=>nd,toggleFullscreen:()=>Mu,triggerEventOn:()=>Xe,triggerEventOnUpdate:()=>gu,trimStringFromSymbols:()=>Jl,unstackArrayOfObjects:()=>co,update:()=>ru,updateProps:()=>ou,variables:()=>ls,verbose:()=>sn,warn:()=>is,window:()=>k});var O=L(()=>{\"use strict\";Gi();Ef();mt();Pe();tn();Yr();io();Og();Rg();ho();oo();Pg();Uf();Yf();su();ia();Vg();Ug();Jr();zg();fm();bu();um();mu();dm();pm();hm();gm();mm();ym();bm();xm();Sm();wm();Am();Em();Tm();Om()});var iS=xl((LL,sS)=>{var Kn=1e3,Gn=Kn*60,Yn=Gn*60,Ur=Yn*24,FC=Ur*7,LC=Ur*365.25;sS.exports=function(t,e){e=e||{};var r=typeof t;if(r===\"string\"&&t.length>0)return MC(t);if(r===\"number\"&&isFinite(t))return e.long?jC(t):NC(t);throw new Error(\"val is not a non-empty string or a valid number. val=\"+JSON.stringify(t))};function MC(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||\"ms\").toLowerCase();switch(n){case\"years\":case\"year\":case\"yrs\":case\"yr\":case\"y\":return r*LC;case\"weeks\":case\"week\":case\"w\":return r*FC;case\"days\":case\"day\":case\"d\":return r*Ur;case\"hours\":case\"hour\":case\"hrs\":case\"hr\":case\"h\":return r*Yn;case\"minutes\":case\"minute\":case\"mins\":case\"min\":case\"m\":return r*Gn;case\"seconds\":case\"second\":case\"secs\":case\"sec\":case\"s\":return r*Kn;case\"milliseconds\":case\"millisecond\":case\"msecs\":case\"msec\":case\"ms\":return r;default:return}}}}function NC(t){var e=Math.abs(t);return e>=Ur?Math.round(t/Ur)+\"d\":e>=Yn?Math.round(t/Yn)+\"h\":e>=Gn?Math.round(t/Gn)+\"m\":e>=Kn?Math.round(t/Kn)+\"s\":t+\"ms\"}function jC(t){var e=Math.abs(t);return e>=Ur?hl(t,e,Ur,\"day\"):e>=Yn?hl(t,e,Yn,\"hour\"):e>=Gn?hl(t,e,Gn,\"minute\"):e>=Kn?hl(t,e,Kn,\"second\"):t+\" ms\"}function hl(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+\" \"+n+(o?\"s\":\"\")}});var cS=xl((ML,aS)=>{function BC(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=iS(),r.destroy=l,Object.keys(t).forEach(f=>{r[f]=t[f]}),r.names=[],r.skips=[],r.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,d=null,h,g;function p(...m){if(!p.enabled)return;let b=p,x=Number(new Date),y=x-(u||x);b.diff=y,b.prev=u,b.curr=x,u=x,m[0]=r.coerce(m[0]),typeof m[0]!=\"string\"&&m.unshift(\"%O\");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(E,I)=>{if(E===\"%%\")return\"%\";_++;let H=r.formatters[I];if(typeof H==\"function\"){let R=m[_];E=H.call(b,R),m.splice(_,1),_--}return E}),r.formatArgs.call(b,m),(b.log||r.log).apply(b,m)}return p.namespace=f,p.useColors=r.useColors(),p.color=r.selectColor(f),p.extend=n,p.destroy=r.destroy,Object.defineProperty(p,\"enabled\",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(f)),g),set:m=>{d=m}}),typeof r.init==\"function\"&&r.init(p),p}function n(f,u){let d=r(this.namespace+(typeof u>\"u\"?\":\":u)+f);return d.log=this.log,d}function o(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let u=(typeof f==\"string\"?f:\"\").trim().replace(/\\s+/g,\",\").split(\",\").filter(Boolean);for(let d of u)d[0]===\"-\"?r.skips.push(d.slice(1)):r.names.push(d)}function s(f,u){let d=0,h=0,g=-1,p=0;for(;d<f.length;)if(h<u.length&&(u[h]===f[d]||u[h]===\"*\"))u[h]===\"*\"?(g=h,p=d,h++):(d++,h++);else if(g!==-1)h=g+1,p++,d=p;else return!1;for(;h<u.length&&u[h]===\"*\";)h++;return h===u.length}function i(){let f=[...r.names,...r.skips.map(u=>\"-\"+u)].join(\",\");return r.enable(\"\"),f}function a(f){for(let u of r.skips)if(s(f,u))return!1;for(let u of r.names)if(s(f,u))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}function l(){console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\")}return r.enable(r.load()),r}aS.exports=BC});var lS=xl((Dt,gl)=>{Dt.formatArgs=UC;Dt.save=zC;Dt.load=WC;Dt.useColors=VC;Dt.storage=HC();Dt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn(\"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.\"))}})();Dt.colors=[\"#0000CC\",\"#0000FF\",\"#0033CC\",\"#0033FF\",\"#0066CC\",\"#0066FF\",\"#0099CC\",\"#0099FF\",\"#00CC00\",\"#00CC33\",\"#00CC66\",\"#00CC99\",\"#00CCCC\",\"#00CCFF\",\"#3300CC\",\"#3300FF\",\"#3333CC\",\"#3333FF\",\"#3366CC\",\"#3366FF\",\"#3399CC\",\"#3399FF\",\"#33CC00\",\"#33CC33\",\"#33CC66\",\"#33CC99\",\"#33CCCC\",\"#33CCFF\",\"#6600CC\",\"#6600FF\",\"#6633CC\",\"#6633FF\",\"#66CC00\",\"#66CC33\",\"#9900CC\",\"#9900FF\",\"#9933CC\",\"#9933FF\",\"#99CC00\",\"#99CC33\",\"#CC0000\",\"#CC0033\",\"#CC0066\",\"#CC0099\",\"#CC00CC\",\"#CC00FF\",\"#CC3300\",\"#CC3333\",\"#CC3366\",\"#CC3399\",\"#CC33CC\",\"#CC33FF\",\"#CC6600\",\"#CC6633\",\"#CC9900\",\"#CC9933\",\"#CCCC00\",\"#CCCC33\",\"#FF0000\",\"#FF0033\",\"#FF0066\",\"#FF0099\",\"#FF00CC\",\"#FF00FF\",\"#FF3300\",\"#FF3333\",\"#FF3366\",\"#FF3399\",\"#FF33CC\",\"#FF33FF\",\"#FF6600\",\"#FF6633\",\"#FF9900\",\"#FF9933\",\"#FFCC00\",\"#FFCC33\"];function VC(){if(typeof window<\"u\"&&window.process&&(window.process.type===\"renderer\"||window.process.__nwjs))return!0;if(typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/))return!1;let t;return typeof document<\"u\"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<\"u\"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<\"u\"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<\"u\"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/)}function UC(t){if(t[0]=(this.useColors?\"%c\":\"\")+this.namespace+(this.useColors?\" %c\":\" \")+t[0]+(this.useColors?\"%c \":\" \")+\"+\"+gl.exports.humanize(this.diff),!this.useColors)return;let e=\"color: \"+this.color;t.splice(1,0,e,\"color: inherit\");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!==\"%%\"&&(r++,o===\"%c\"&&(n=r))}),t.splice(n,0,e)}Dt.log=console.debug||console.log||(()=>{});function zC(t){try{t?Dt.storage.setItem(\"debug\",t):Dt.storage.removeItem(\"debug\")}catch{}}function WC(){let t;try{t=Dt.storage.getItem(\"debug\")||Dt.storage.getItem(\"DEBUG\")}catch{}return!t&&typeof process<\"u\"&&\"env\"in process&&(t=process.env.DEBUG),t}function HC(){try{return localStorage}catch{}}gl.exports=cS()(Dt);var{formatters:qC}=gl.exports;qC.j=function(t){try{return JSON.stringify(t)}catch(e){return\"[UnexpectedJSONParseError]: \"+e.message}}});var yg={};D(yg,{ANIMATION_PROPS:()=>lp,ARIA_ROLES:()=>H0,ATTR_TRANSFORMS:()=>sp,BLOCK_PROPS:()=>fp,CDN_PROVIDERS:()=>xe,CONFIG:()=>Cs,CSS_NATIVE_COLOR_REGEX:()=>ie,CSS_PROPS_REGISTRY:()=>ft,CSS_UNITS:()=>qr,DEFAULT_CONFIG:()=>ui,DEFAULT_CSS_PROPERTIES_LIST:()=>ht,DELEGATED_EVENTS:()=>En,DESIGN_SYSTEM_OPTIONS:()=>Ph,DOMQL_EVENTS:()=>sf,DOMQ_PROPERTIES:()=>qe,DOM_EVENTS:()=>sy,ENV:()=>wf,FACTORY:()=>we,FLEX_PROPS:()=>gp,FONT_PROPS:()=>up,GRID_PROPS:()=>mp,HTML_ATTRIBUTES:()=>Sc,HTML_TAGS:()=>en,LIFECYCLE_EVENTS:()=>lr,METHODS:()=>Xr,METHODS_EXL:()=>mo,MISC_PROPS:()=>dp,MIXINS:()=>xc,NODE_ENV:()=>re,OPTIONS:()=>jo,PACKAGE_MANAGER_TO_CDN:()=>Qe,PARSED_DOMQ_PROPERTIES:()=>go,POSITION_PROPS:()=>pp,PROPS_METHODS:()=>Ke,REGISTRY:()=>kt,RESERVED_STORE_METHODS:()=>wr,ROUTER_OPTIONS:()=>Uc,STANDARD_SCHEME_QUERIES:()=>ic,STATE_PROPERTIES:()=>of,STORE_METHOD_NAMES:()=>eo,SVG_TAGS:()=>Cn,THEME_PROPS:()=>hp,TIMING_PROPS:()=>ii,TYPES:()=>ao,UNIVERSAL_RESERVED_KEYS:()=>Fa,VALUE_TRANSFORMERS:()=>gc,__resetStateShadowWarnings:()=>Pl,activateConfig:()=>$m,addCaching:()=>ya,addContext:()=>ma,addDelegatedEvent:()=>ni,addExtend:()=>Kf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Hl,addMethods:()=>$n,addProtoToArray:()=>fo,addRef:()=>pa,animation:()=>Rd,appendSVGSprite:()=>Gs,appendSvgIconsSprite:()=>Xs,applyAttrTransforms:()=>ap,applyCSS:()=>Ah,applyDependentState:()=>du,applyDocument:()=>Ks,applyEvent:()=>ka,applyEventUpdate:()=>va,applyExtends:()=>On,applyHeadings:()=>lc,applyInitialState:()=>Cc,applyMediaSequenceVars:()=>rr,applyProps:()=>Io,applyReset:()=>Js,applySequenceGlobalVars:()=>$s,applySequenceVars:()=>Me,applySpacingSequence:()=>zs,applyStateMethods:()=>Bt,applyTimingSequence:()=>qs,applyTrueProps:()=>bp,applyTypographySequence:()=>Bs,arrayContainsOtherArray:()=>Nl,arraysEqual:()=>Kl,arrayzeValue:()=>Dr,batch:()=>Ee,breakpoints:()=>Td,buildImgSrcset:()=>bs,buildSourcesAndImg:()=>xs,cache:()=>yu,cacheNode:()=>cr,call:()=>Iu,callStateMethod:()=>ci,camelToAttr:()=>ur,camelToLowerAttr:()=>iy,captureSnapshot:()=>Fu,changeGlobalTheme:()=>mc,changeLightness:()=>ud,checkAttributeByTagName:()=>dr,checkEventFunctions:()=>ip,checkForStateTypes:()=>cu,checkIfBoxSize:()=>Us,checkIfInherits:()=>wa,checkIfStringIsInArray:()=>Xl,class:()=>Fd,clone:()=>cf,cloneAndMergeArrayExtend:()=>Co,cloneFunction:()=>Pf,color:()=>Sd,colorStringToRgbaArray:()=>_e,components:()=>Mn,concatAddExtends:()=>Wf,convertSvgToSymbol:()=>Is,copyJavaScriptToClipboard:()=>ed,copyStringToClipboard:()=>td,create:()=>mg,createAsync:()=>mA,createBasedOnType:()=>da,createComputed:()=>Cl,createConfig:()=>rc,createDefine:()=>Yx,createEffect:()=>tt,createElement:()=>au,createElementExtends:()=>ta,createExtends:()=>Eo,createExtendsFromKeys:()=>rn,createExtendsStack:()=>oa,createHTMLNode:()=>vn,createIfConditionFlag:()=>$f,createInheritedState:()=>lu,createKey:()=>ko,createNestedObject:()=>gf,createNestedObjectByKeyPath:()=>uu,createObjectWithoutPrototype:()=>Ki,createParent:()=>ha,createPath:()=>ga,createProps:()=>Do,createPropsStack:()=>fa,createRoot:()=>iu,createScope:()=>hu,createScopeStore:()=>ro,createSignal:()=>Wt,createSkeleton:()=>bA,createSnapshotId:()=>wo,createState:()=>vp,createStore:()=>Lt,createSync:()=>yA,css:()=>le,cssMediaVars:()=>tc,cssVars:()=>Qa,customDecodeURIComponent:()=>nf,customEncodeURIComponent:()=>rf,cutArrayAfterValue:()=>zl,cutArrayBeforeValue:()=>Ul,debounce:()=>vo,debounceOnContext:()=>Tf,decodeNewlines:()=>ef,deepClone:()=>ot,deepContains:()=>pf,deepDefaults:()=>ds,deepDestringifyFunctions:()=>Ht,deepExtend:()=>Qi,deepMerge:()=>X,deepMergeExtends:()=>me,deepStringifyFunctions:()=>yo,defaultDefine:()=>jn,defineSetter:()=>Pu,destringifyGlobalScope:()=>xo,destroy:()=>yi,detectHeightOnInit:()=>Bu,detectInfiniteLoop:()=>xf,detectTag:()=>ar,devices:()=>Od,dispose:()=>pr,encodeNewlines:()=>tf,error:()=>Ir,excludeKeysFromObject:()=>Sf,exec:()=>et,executeAttr:()=>Y0,exetuteClassPerComponent:()=>dk,extendCachedRegistry:()=>Hf,extendStackRegistry:()=>To,extractArrayExtend:()=>Ro,extractConditionalAttrs:()=>Z0,fetchLibraryData:()=>ja,fibonacciNumberByIndex:()=>Vu,filterArrays:()=>Gl,filterArraysFast:()=>Yl,filterAttributesByTagName:()=>G0,finalizeExtends:()=>sa,findClosestNumber:()=>Na,findClosestNumberInFactory:()=>Ju,findHeadingLetter:()=>sc,findHeadings:()=>Ps,findInheritedState:()=>Sa,findKeyPosition:()=>Zl,flattenExtend:()=>nn,font:()=>gd,fontFace:()=>bd,fontFamily:()=>md,fontFamilyTypes:()=>yd,formatDate:()=>ju,generateHash:()=>Xi,generateHeadArrayTags:()=>Ma,generateKey:()=>So,generateMetaTags:()=>Yu,generateSequence:()=>$t,generateSequencePosition:()=>jd,generateSprite:()=>mn,generateSubSequence:()=>Os,get:()=>Tu,getActiveConfig:()=>A,getActiveDocument:()=>bc,getActiveLang:()=>xi,getCDNUrl:()=>se,getCacheSize:()=>Qd,getCapitalCaseKeys:()=>Xf,getCdnProviderFromConfig:()=>an,getChildStateInKey:()=>_a,getChildren:()=>Zo,getColor:()=>Z,getColorShade:()=>Ha,getContext:()=>ss,getCookie:()=>Mf,getDB:()=>fs,getDefaultOrFirstKey:()=>Fr,getEmotionStylesheet:()=>sd,getExtendsInElement:()=>Gf,getExtendsStack:()=>Ao,getExtendsStackRegistry:()=>Zi,getFnPrefixAndValue:()=>Le,getFontFace:()=>pd,getFontFaceEach:()=>Lr,getFontFaceEachString:()=>Ya,getFontFaceString:()=>Ss,getFontFamily:()=>js,getFontFormat:()=>Ka,getFontSizeByKey:()=>Vs,getFrequencyInArray:()=>jl,getHashedExtend:()=>Oo,getImportMapScript:()=>Nu,getInObjectByPath:()=>bf,getLanguages:()=>Hc,getLocalStateLang:()=>Xc,getLocalStorage:()=>jf,getMediaColor:()=>bt,getMediaTheme:()=>Gt,getNev:()=>Af,getObserver:()=>Sr,getPageMetadata:()=>Xu,getParentStateInKey:()=>xa,getPath:()=>Qo,getQuery:()=>us,getRef:()=>Ru,getRgbTone:()=>tr,getRoot:()=>rs,getRootContext:()=>os,getRootData:()=>ns,getRootState:()=>es,getRootStateInKey:()=>ba,getSequenceValue:()=>Rs,getSequenceValueBySymbols:()=>oc,getSequenceValuePropertyPair:()=>ve,getShadow:()=>Hs,getSignals:()=>$l,getSpacingBasedOnRatio:()=>ae,getSpacingByKey:()=>pt,getSpreadChildren:()=>Jf,getSubratio:()=>Ts,getSubratioDifference:()=>Es,getSystemGlobalTheme:()=>Qt,getTheme:()=>Fs,getTimingByKey:()=>Mt,getTimingFunction:()=>Yt,global:()=>Fl,gradient:()=>wd,grid:()=>Dd,hasFunction:()=>ge,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>ff,hashContent:()=>ln,hexToRgb:()=>ad,hexToRgbArray:()=>Va,hexToRgba:()=>ld,hslToRgb:()=>Wa,icons:()=>Cd,inheritChildExtends:()=>ra,inheritChildPropsExtends:()=>ea,inheritParentProps:()=>Fo,inheritRecursiveChildExtends:()=>na,init:()=>je,initPolyglot:()=>Dh,initProps:()=>nu,injectGlobal:()=>dt,is:()=>Tt,isArray:()=>T,isBoolean:()=>Ui,isCSSVar:()=>ct,isContextComponent:()=>Zf,isCyclic:()=>_f,isDOMNode:()=>At,isDate:()=>Wi,isDefined:()=>Et,isDevelopment:()=>Ye,isDomDocument:()=>Te,isEmpty:()=>Hi,isEmptyObject:()=>uf,isEnumeratedTrueFalseAttr:()=>wc,isEqualDeep:()=>qi,isFunction:()=>C,isGoogleFontsUrl:()=>pn,isHostObject:()=>Oe,isHtmlElement:()=>so,isLocal:()=>Cf,isLoudDevRuntime:()=>ne,isMethod:()=>Du,isMobile:()=>Ff,isNode:()=>Re,isNot:()=>Ml,isNotProduction:()=>Rr,isNull:()=>zi,isNumber:()=>he,isObject:()=>w,isObjectLike:()=>V,isPhoto:()=>Uu,isProduction:()=>Ge,isRawUnitValue:()=>no,isResolvedColor:()=>Se,isScalingUnit:()=>vr,isStaging:()=>vf,isState:()=>fu,isStore:()=>st,isString:()=>S,isStringFunction:()=>Rf,isSvgTag:()=>An,isTest:()=>Yi,isTesting:()=>kf,isTracking:()=>Ap,isUndefined:()=>gt,isUniversallyReservedKey:()=>Lu,isValidHtmlTag:()=>Vf,isValidTag:()=>kn,isWasmLoaded:()=>Dx,isWrappedLibrary:()=>hs,isWritableFamilyBucket:()=>Dl,joinArrays:()=>Kr,jointStacks:()=>qf,keyframes:()=>wn,keys:()=>Ia,loadCssFile:()=>qu,loadJavascript:()=>Ku,loadJavascriptFile:()=>zu,loadJavascriptFileEmbedSync:()=>Hu,loadJavascriptFileSync:()=>Wu,loadRemoteCSS:()=>Gu,loadRemoteScript:()=>cn,loadTranslations:()=>Kc,loadWasm:()=>Ix,log:()=>$u,logGroupIf:()=>Df,logIf:()=>If,lookdown:()=>Au,lookdownAll:()=>Eu,lookup:()=>Cu,lowercaseFirstLetter:()=>Ar,makeObjectWithoutPrototype:()=>df,map:()=>af,mapStringsWithContextComponents:()=>Po,matchesComponentNaming:()=>ye,media:()=>xd,memoize:()=>Of,merge:()=>it,mergeSharedLibraries:()=>gs,mixTwoColors:()=>id,mixTwoRgb:()=>fd,mixTwoRgba:()=>qa,nextElement:()=>as,normalizeIgnoreList:()=>ps,normalizeLibraryKey:()=>fn,numToLetterMap:()=>ke,objectToString:()=>bo,objectizeStringProperty:()=>$o,opacify:()=>dn,overwrite:()=>_o,overwriteDeep:()=>Ot,overwriteShallow:()=>Or,overwriteState:()=>pu,parkHostObject:()=>He,parse:()=>Da,parseColorToken:()=>Ie,parseDeep:()=>Xo,pickupElementFromProps:()=>ca,pickupPropsFromElement:()=>aa,polyglotFunctions:()=>_i,polyglotPlugin:()=>Jc,popConfig:()=>J,previousElement:()=>cs,propExists:()=>eu,propertizeElement:()=>la,propertizeUpdate:()=>tu,pushConfig:()=>rt,refreshContextProto:()=>kc,registerEvent:()=>Tn,reinit:()=>Ch,remove:()=>Pn,removeChars:()=>rd,removeCookie:()=>Nf,removeDelegatedEvent:()=>oi,removeDuplicateProps:()=>Mo,removeDuplicatesInArray:()=>Gr,removeFromArray:()=>Bl,removeFromObject:()=>hf,removeNestedKeyByPath:()=>mf,removeValueFromArray:()=>lo,removeValueFromArrayAll:()=>Wl,reorderArrayByValues:()=>ql,replaceLiteralsWithObjectFields:()=>Cr,replaceOctalEscapeSequences:()=>Ql,resolveAsset:()=>Pt,resolveColorsInGradient:()=>Qs,resolveConfigDocument:()=>Hr,resolveFileSource:()=>op,resolveFileUrl:()=>Kt,resolveHandler:()=>Qr,resolvePropValue:()=>fr,resolveSharedLibraries:()=>Qu,returnSubThemeOrDefault:()=>dd,returnValueAsText:()=>ua,rgbArrayToHex:()=>Ua,rgbToHSL:()=>za,rgbToHex:()=>cd,runPluginHook:()=>xt,runThroughMedia:()=>cc,scratchDefaultConfig:()=>gn,scratchSystem:()=>_n,scratchUtils:()=>nr,self:()=>Ll,semanticIcons:()=>Ad,sequence:()=>Fe,serializeAttrValue:()=>si,set:()=>Mr,setActiveConfig:()=>ec,setActiveDocument:()=>Jd,setActiveRootState:()=>ts,setAdaptiveSchemeVar:()=>sr,setClass:()=>cv,setClassname:()=>pk,setColor:()=>or,setCookie:()=>Lf,setCssEngineHook:()=>Nc,setCustomFont:()=>_s,setCustomFontMedia:()=>er,setEach:()=>Kd,setFont:()=>Ns,setFontFamily:()=>bn,setFontImport:()=>hn,setGradient:()=>yn,setHashedExtend:()=>Ji,setInCustomFontMedia:()=>Ga,setInObjectByPath:()=>yf,setLang:()=>Gc,setLocalStorage:()=>Bf,setMediaTheme:()=>Ms,setNodeStyles:()=>$a,setObserver:()=>vl,setProps:()=>Ou,setPropsPrototype:()=>Lo,setSVG:()=>xn,setScalingVar:()=>As,setShadow:()=>ir,setSubScalingVar:()=>nc,setSvgIcon:()=>Ys,setTheme:()=>Ls,setValue:()=>qd,setVariables:()=>Bd,setWasmEngine:()=>ri,shadow:()=>vd,sharedLibrary:()=>Zu,sizes:()=>Md,spacing:()=>_d,splitSpacedValue:()=>Ws,splitTopLevelCommas:()=>De,splitTransition:()=>hc,spotByPath:()=>Jo,srcsetFor:()=>un,stringIncludesAny:()=>po,stringToObject:()=>lf,svg:()=>Pd,svgData:()=>$d,swapItemsInArray:()=>Vl,syncProps:()=>No,templates:()=>Id,theme:()=>kd,timing:()=>Ed,toCamel:()=>vs,toCamelCase:()=>ms,toDashCase:()=>ys,toDescriptionCase:()=>od,toTitleCase:()=>nd,toggleFullscreen:()=>Mu,transformBackgroundImage:()=>dc,transformBorder:()=>Ce,transformBorderRadius:()=>ei,transformBoxShadow:()=>Zs,transformClassname:()=>uy,transformDuration:()=>ti,transformShadow:()=>uc,transformSize:()=>lt,transformSizeRatio:()=>M,transformTextStroke:()=>fc,transformTransition:()=>Hd,transformersByPrefix:()=>xp,transfromGap:()=>pc,translate:()=>qc,triggerEventOn:()=>Xe,triggerEventOnUpdate:()=>gu,trimStringFromSymbols:()=>Jl,typography:()=>ws,unit:()=>hd,unstackArrayOfObjects:()=>co,update:()=>Rn,updateProps:()=>ou,updateVars:()=>av,upsertTranslation:()=>Yc,useCssInProps:()=>jt,useHostState:()=>Cp,usePropsAsCSS:()=>ly,useSelectorsAsCSS:()=>fy,variables:()=>ls,vars:()=>Ld,verbose:()=>sn,warn:()=>is,warnStateKeyShadowsMethod:()=>kr,window:()=>k,wrapHoverRule:()=>ce});var Il={};D(Il,{RESERVED_STORE_METHODS:()=>wr,STORE_METHOD_NAMES:()=>eo,__resetStateShadowWarnings:()=>Pl,batch:()=>Ee,createComputed:()=>Cl,createEffect:()=>tt,createScopeStore:()=>ro,createSignal:()=>Wt,createStore:()=>Lt,getObserver:()=>Sr,getSignals:()=>$l,isStore:()=>st,setObserver:()=>vl,warnStateKeyShadowsMethod:()=>kr});var Ct=null,Ni=0,ji=[],Sr=()=>Ct,vl=t=>{Ct=t},Bi=0,_l=[];function Wt(t){let e=new Set;function r(){return Ct&&(e.add(Ct),Ct._sources.add(s)),t}function n(i){i!==t&&(t=i,HS(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:\"signal\"};return s}function Cl(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:\"computed\",_subscribers:n,_execute(){kl(o);let s=Ct;Ct=o;try{e=t(),r=!1}finally{Ct=s}},_notify(){r=!0,n.size>0&&kg(n)},get(){return Ct&&(n.add(Ct),Ct._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var pe=new Set,Sl=!1;function tt(t,e){let r=e?.depth??0,n={_sources:new Set,_type:\"effect\",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;kl(n);let o=Ct;Ct=n;try{t()}catch(s){console.error(\"[smbls] effect error:\",s)}finally{Ct=o}},_notify(){n._disposed||(Ni>0?ji.push(n):Bi>0?_l.push(n):Al(n))},dispose(){n._disposed=!0,kl(n)}};return n._execute(),n}function Ee(t){Ni++;try{t()}finally{Ni--,Ni===0&&WS()}}var wl=!1,_g=1e3,US=8;function Sg(){return typeof performance<\"u\"?performance.now():Date.now()}function Al(t){pe.add(t),!wl&&(Sl||(Sl=!0,queueMicrotask(wg)))}var Wr=[];function zS(){if(pe.size===1){let[t]=pe;pe.clear(),t._disposed||t._execute();return}Wr.length=0;for(let t of pe)Wr.push(t);pe.clear(),Wr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Wr.length;t++){let e=Wr[t];e._disposed||e._execute()}Wr.length=0}function wg(t=0){if(Sl=!1,pe.size===0)return;wl=!0;let e=Sg(),r=!1;try{for(;pe.size>0;){if(++t>_g){console.error(\"[smbls] reactive effect cascade exceeded\",_g,\"passes in a single flush \\u2014 breaking to avoid hanging the thread.\",\"This usually means an effect (or an onUpdate/subscribeTo handler\",\"it calls into) unconditionally writes back a signal it depends on.\"),pe.clear();break}if(zS(),pe.size>0&&Sg()-e>US){r=!0,setTimeout(()=>wg(t),0);break}}}finally{r||(wl=!1)}}function WS(){for(let t=0;t<ji.length;t++)Al(ji[t]);ji.length=0}function kg(t){Bi++;try{for(let e of t)e._notify()}finally{if(Bi--,Bi===0&&_l.length>0){let e=_l.splice(0);for(let r=0;r<e.length;r++)Al(e[r])}}}function HS(t){kg(t)}function kl(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var We=Symbol(\"store\"),Vi=Symbol(\"signals\"),eo=[\"update\",\"parse\",\"clean\",\"keys\",\"values\",\"replace\",\"add\",\"remove\",\"destroy\",\"quietUpdate\"],wr=new Set(eo),Ol=new Set,vg=(t,e)=>t?t+\".\"+e:String(e);function kr(t,e){let r=(e||\"\")+\"::\"+t;if(Ol.has(r))return;Ol.add(r);let n=e?`state.${e}`:\"state\",o=`[smbls/state] \"${t}\" is a reserved store-method name and was written as DATA at ${n}.${t}. The value is preserved and readable \\u2014 data wins over the method \\u2014 but \"${n}.${t}(\\u2026)\" no longer reaches the store method on this node. Use \"${n}.$${t}(\\u2026)\" for the method, or rename the data key. Reserved: ${eo.join(\", \")}.`;typeof console<\"u\"&&console.warn&&console.warn(o)}function Pl(){Ol.clear()}var El=t=>!t||typeof t!=\"object\"||Array.isArray(t)||t[We]||Object.isFrozen(t)||typeof Node<\"u\"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName,qS=12,Cg=t=>{if(!t||typeof t!=\"object\")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function Rl(t,e,r){if(t===e)return!0;if(r>qS)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!Rl(t[n],e[n],r+1))return!1;return!0}if(Cg(t)&&Cg(e)){let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s of n)if(!Object.prototype.hasOwnProperty.call(e,s)||!Rl(t[s],e[s],r+1))return!1;return!0}return!1}function Lt(t,e,r,n){r===void 0&&(r=0),n===void 0&&(n=\"\");let o={},s={},i=e&&e.maxDepth||8;if(t&&typeof t==\"object\")for(let x in t){if(x===\"__proto__\"||!Object.prototype.hasOwnProperty.call(t,x))continue;wr.has(x)&&kr(x,n);let y=t[x];r<i&&y&&typeof y==\"object\"&&!El(y)?(s[x]=y,o[x]=Wt(Lt(y,e,r+1,vg(n,x)))):(s[x]=y,o[x]=Wt(y))}let a=new Proxy(s,{get(x,y){if(y===We)return!0;if(y===Vi)return o;if(y===\"__raw\")return x;if(y===\"$update\")return c;if(y===\"$parse\")return f;if(y===\"$clean\")return u;if(y===\"$keys\")return d;if(y===\"$values\")return h;if(y===\"$replace\")return g;if(y===\"$add\")return p;if(y===\"$remove\")return m;if(y===\"$destroy\")return b;if(y===\"$quietUpdate\")return l;if(wr.has(y)&&!Object.prototype.hasOwnProperty.call(o,y))switch(y){case\"update\":return c;case\"parse\":return f;case\"clean\":return u;case\"keys\":return d;case\"values\":return h;case\"replace\":return g;case\"add\":return p;case\"remove\":return m;case\"destroy\":return b;case\"quietUpdate\":return l}if(y===\"__element\")return x.__element;if(y===\"parent\")return x.parent;if(y===\"root\")return x.root;if(Object.prototype.hasOwnProperty.call(o,y)){let v=o[y].get();if(v!==void 0||!(y!==\"root\"&&x.root&&x.root!==a))return v}if(x[y]!==void 0)return x[y];let _=typeof y==\"string\"&&!y.startsWith(\"__\")&&y!==\"then\"&&y!==\"constructor\"&&Sr()!=null;if(y!==\"root\"&&x.root&&x.root!==a){let v=x.root[y];return v===void 0&&_&&!Object.prototype.hasOwnProperty.call(o,y)?(o[y]=Wt(void 0),o[y].get()):v}if(_)return o[y]=Wt(void 0),o[y].get()},set(x,y,_){if(y===\"__proto__\")return!1;if(y===\"__element\"||y===\"parent\"||y===\"root\")return x[y]=_,!0;wr.has(y)&&kr(y,n);let v=vg(n,y);if(Object.prototype.hasOwnProperty.call(o,y))if(_&&typeof _==\"object\"&&!El(_)){if(_===x[y])return!0;let E=o[y].peek(),I=E&&E[We]?E.$parse():E;if(Rl(_,I,0))return!0;x[y]=_,o[y].set(Lt(_,e,r+1,v))}else x[y]=_,o[y].set(_);else x[y]=_,_&&typeof _==\"object\"&&!El(_)?o[y]=Wt(Lt(_,e,r+1,v)):o[y]=Wt(_);return!0},has(x,y){return typeof y==\"string\"&&y.charCodeAt(0)===36&&wr.has(y.slice(1))?!0:y in o||y in x},ownKeys(x){return Object.keys(o)},getOwnPropertyDescriptor(x,y){return y in o?{enumerable:!0,configurable:!0,value:o[y].peek()}:Object.getOwnPropertyDescriptor(x,y)},deleteProperty(x,y){return o[y]&&(o[y].set(void 0),delete o[y]),delete x[y],!0}});function c(x,y){Ee(()=>{for(let v in x)v!==\"__proto__\"&&(a[v]=x[v])});let _=s.__element;return _&&_.onUpdate&&!y?.quiet&&_.onUpdate(_,a,_.context),a}function l(x){return c(x,{quiet:!0})}function f(x){if(x||(x=new Set),x.has(a))return\"[Circular]\";x.add(a);let y={};for(let _ in o){if(_===\"parent\"||_===\"root\"||_.startsWith(\"__\"))continue;let v=o[_].peek();v&&v[We]?y[_]=v.$parse(x):y[_]=v}return y}function u(){return Ee(()=>{for(let x in o)delete a[x]}),a}function d(){return Object.keys(o)}function h(){return Object.keys(o).map(x=>o[x].peek())}function g(x){return Ee(()=>{for(let y in o)y in x||delete a[y];for(let y in x)y!==\"__proto__\"&&(a[y]=x[y])}),a}function p(x,y){return a[x]=y,a}function m(x){return delete a[x],a}function b(){u(),s.__element=null,s.parent=null}return a}function st(t){return t&&t[We]===!0}function $l(t){return t[Vi]}function ro(t,e){let r={},n={};if(t&&typeof t==\"object\")for(let i in t)n[i]=t[i],r[i]=Wt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[Vi];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[We]?a[Tl]:null}return null};return new Proxy(n,{get(i,a){return a===We?!0:a===Vi?r:a===Tl?e:a===\"__raw\"?i:Object.prototype.hasOwnProperty.call(r,a)?r[a].get():e&&a!==\"then\"&&a!==\"constructor\"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===r&&(i[a]=c),l[a].set(c),!0):(i[a]=c,r[a]=Wt(c),!0)},has(i,a){if(a in r||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[We]?c[Tl]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,a){return a in r?{enumerable:!0,configurable:!0,value:r[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var Tl=Symbol(\"scope.parent\");var tp={};D(tp,{css:()=>le,getActiveDocument:()=>bc,getCacheSize:()=>Qd,injectGlobal:()=>dt,keyframes:()=>wn,reset:()=>Ym,setActiveDocument:()=>Jd,setWasmEngine:()=>ri,wrapHoverRule:()=>ce});var Gd={};D(Gd,{CONFIG:()=>Cs,CSS_NATIVE_COLOR_REGEX:()=>ie,CSS_UNITS:()=>qr,FACTORY:()=>we,STANDARD_SCHEME_QUERIES:()=>ic,VALUE_TRANSFORMERS:()=>gc,activateConfig:()=>$m,animation:()=>Rd,appendSVGSprite:()=>Gs,appendSvgIconsSprite:()=>Xs,applyDocument:()=>Ks,applyHeadings:()=>lc,applyMediaSequenceVars:()=>rr,applyReset:()=>Js,applySequenceGlobalVars:()=>$s,applySequenceVars:()=>Me,applySpacingSequence:()=>zs,applyTimingSequence:()=>qs,applyTypographySequence:()=>Bs,breakpoints:()=>Td,changeGlobalTheme:()=>mc,changeLightness:()=>ud,checkIfBoxSize:()=>Us,class:()=>Fd,color:()=>Sd,colorStringToRgbaArray:()=>_e,convertSvgToSymbol:()=>Is,createConfig:()=>rc,cssMediaVars:()=>tc,cssVars:()=>Qa,devices:()=>Od,document:()=>Rm,findHeadingLetter:()=>sc,findHeadings:()=>Ps,font:()=>gd,fontFace:()=>bd,fontFamily:()=>md,fontFamilyTypes:()=>yd,generateSequence:()=>$t,generateSequencePosition:()=>jd,generateSprite:()=>mn,generateSubSequence:()=>Os,getActiveConfig:()=>A,getColor:()=>Z,getColorShade:()=>Ha,getDefaultOrFirstKey:()=>Fr,getFnPrefixAndValue:()=>Le,getFontFace:()=>pd,getFontFaceEach:()=>Lr,getFontFaceEachString:()=>Ya,getFontFaceString:()=>Ss,getFontFamily:()=>js,getFontFormat:()=>Ka,getFontSizeByKey:()=>Vs,getMediaColor:()=>bt,getMediaTheme:()=>Gt,getRgbTone:()=>tr,getSequenceValue:()=>Rs,getSequenceValueBySymbols:()=>oc,getSequenceValuePropertyPair:()=>ve,getShadow:()=>Hs,getSpacingBasedOnRatio:()=>ae,getSpacingByKey:()=>pt,getSubratio:()=>Ts,getSubratioDifference:()=>Es,getTheme:()=>Fs,getTimingByKey:()=>Mt,getTimingFunction:()=>Yt,gradient:()=>wd,grid:()=>Dd,hexToRgb:()=>ad,hexToRgbArray:()=>Va,hexToRgba:()=>ld,hslToRgb:()=>Wa,icons:()=>Cd,isCSSVar:()=>ct,isDomDocument:()=>Te,isGoogleFontsUrl:()=>pn,isHostObject:()=>Oe,isRawUnitValue:()=>no,isResolvedColor:()=>Se,isScalingUnit:()=>vr,isWritableFamilyBucket:()=>Dl,media:()=>xd,mixTwoColors:()=>id,mixTwoRgb:()=>fd,mixTwoRgba:()=>qa,numToLetterMap:()=>ke,opacify:()=>dn,parkHostObject:()=>He,parseColorToken:()=>Ie,popConfig:()=>J,pushConfig:()=>rt,reset:()=>Pm,resolveColorsInGradient:()=>Qs,resolveConfigDocument:()=>Hr,resolveFileUrl:()=>Kt,returnSubThemeOrDefault:()=>dd,rgbArrayToHex:()=>Ua,rgbToHSL:()=>za,rgbToHex:()=>cd,runThroughMedia:()=>cc,scratchDefaultConfig:()=>gn,scratchSystem:()=>_n,scratchUtils:()=>nr,semanticIcons:()=>Ad,sequence:()=>Fe,set:()=>Mr,setActiveConfig:()=>ec,setAdaptiveSchemeVar:()=>sr,setColor:()=>or,setCustomFont:()=>_s,setCustomFontMedia:()=>er,setEach:()=>Kd,setFont:()=>Ns,setFontFamily:()=>bn,setFontImport:()=>hn,setGradient:()=>yn,setInCustomFontMedia:()=>Ga,setMediaTheme:()=>Ms,setSVG:()=>xn,setScalingVar:()=>As,setShadow:()=>ir,setSubScalingVar:()=>nc,setSvgIcon:()=>Ys,setTheme:()=>Ls,setValue:()=>qd,setVariables:()=>Bd,shadow:()=>vd,sizes:()=>Md,spacing:()=>_d,splitSpacedValue:()=>Ws,splitTopLevelCommas:()=>De,splitTransition:()=>hc,svg:()=>Pd,svgData:()=>$d,templates:()=>Id,theme:()=>kd,timing:()=>Ed,toCamel:()=>vs,transformBackgroundImage:()=>dc,transformBorder:()=>Ce,transformBorderRadius:()=>ei,transformBoxShadow:()=>Zs,transformDuration:()=>ti,transformShadow:()=>uc,transformSize:()=>lt,transformSizeRatio:()=>M,transformTextStroke:()=>fc,transformTransition:()=>Hd,transfromGap:()=>pc,typography:()=>ws,unit:()=>hd,vars:()=>Ld});var nr={};D(nr,{CSS_NATIVE_COLOR_REGEX:()=>ie,CSS_UNITS:()=>qr,applyMediaSequenceVars:()=>rr,applySequenceGlobalVars:()=>$s,applySequenceVars:()=>Me,changeLightness:()=>ud,colorStringToRgbaArray:()=>_e,convertSvgToSymbol:()=>Is,findHeadingLetter:()=>sc,findHeadings:()=>Ps,generateSequence:()=>$t,generateSequencePosition:()=>jd,generateSprite:()=>mn,generateSubSequence:()=>Os,getColorShade:()=>Ha,getDefaultOrFirstKey:()=>Fr,getFnPrefixAndValue:()=>Le,getFontFace:()=>pd,getFontFaceEach:()=>Lr,getFontFaceEachString:()=>Ya,getFontFaceString:()=>Ss,getFontFormat:()=>Ka,getRgbTone:()=>tr,getSequenceValue:()=>Rs,getSequenceValueBySymbols:()=>oc,getSequenceValuePropertyPair:()=>ve,getSubratio:()=>Ts,getSubratioDifference:()=>Es,hexToRgb:()=>ad,hexToRgbArray:()=>Va,hexToRgba:()=>ld,hslToRgb:()=>Wa,isCSSVar:()=>ct,isDomDocument:()=>Te,isGoogleFontsUrl:()=>pn,isHostObject:()=>Oe,isRawUnitValue:()=>no,isResolvedColor:()=>Se,isScalingUnit:()=>vr,isWritableFamilyBucket:()=>Dl,mixTwoColors:()=>id,mixTwoRgb:()=>fd,mixTwoRgba:()=>qa,numToLetterMap:()=>ke,opacify:()=>dn,parkHostObject:()=>He,parseColorToken:()=>Ie,resolveConfigDocument:()=>Hr,resolveFileUrl:()=>Kt,returnSubThemeOrDefault:()=>dd,rgbArrayToHex:()=>Ua,rgbToHSL:()=>za,rgbToHex:()=>cd,setCustomFont:()=>_s,setCustomFontMedia:()=>er,setFontImport:()=>hn,setInCustomFontMedia:()=>Ga,setScalingVar:()=>As,setSubScalingVar:()=>nc,setVariables:()=>Bd,splitTopLevelCommas:()=>De});var Te=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0),Oe=t=>{if(t===null||typeof t!=\"object\")return!1;let e=Object.prototype.toString.call(t);return!!(e!==\"[object Object]\"&&e!==\"[object Array]\"||typeof t.nodeType==\"number\"||t.defaultView||t.window===t||t.self===t)},Dl=t=>t!==null&&typeof t==\"object\"&&!Oe(t),He=(t,e,r)=>{if(!t)return;if(Te(r)){t.__domDocument||(t.__domDocument=r);return}let n=`__host_${e}`;t[n]||(t[n]=r)},Hr=t=>t?Te(t.__domDocument)?t.__domDocument:Te(t.document)?t.document:null:null;var vr=t=>t===\"em\"||t===\"rem\"||t===\"vw\"||t===\"vh\"||t===\"vmax\"||t===\"vmin\",qr=[\"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\"],KS=t=>t.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),GS=new RegExp(`^-?(?:\\\\d+\\\\.?\\\\d*|\\\\.\\\\d+)(?:${qr.filter(t=>t!==\"auto\").map(KS).join(\"|\")})$`),no=t=>GS.test(String(t).trim());O();var _e=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&&Y&&k){let e=Y.body.appendChild(Y.createElement(\"fictum\")),r=\"rgb(1, 2, 3)\";if(e.style.color=r,e.style.color!==r){Y.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color===\"\")return Y.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,Y.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]},id=(t,e,r=.5)=>(t=_e(t),e=_e(e),qa(t,e,r)),ad=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},Va=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return[r,n,o]},cd=(t,e,r)=>\"#\"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),Ua=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),ld=(t,e=1)=>{let[r,n,o]=t.match(/\\w\\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},fd=(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})`},ud=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},za=(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]},Wa=(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)],Ha=(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)},qa=(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})`},dn=(t,e)=>{let r=_e(t);if(!r){Rr()&&console.warn(t+\" color is not rgba\");return}return r[3]=e,`rgba(${r})`},ct=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,ie=/(?:rgba?\\(|hsla?\\(|#[0-9a-fA-F]{3,8}\\b)/,Qw=/^([a-zA-Z]\\w*(?:-[a-zA-Z]\\w*)*)(?:\\.(\\d+))?(?:([+-]\\d+|=\\d+))?$/,Ie=t=>{if(!S(t))return null;if(ie.test(t))return{passthrough:t};if(ct(t))return{cssVar:t};let e=t.match(Qw);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}},Se=t=>S(t)&&(t.includes(\"rgb\")||t.includes(\"var(\")||t.includes(\"#\")),De=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},tr=(t,e)=>{S(t)&&t.includes(\"rgb\")&&(t=_e(t).join(\", \")),S(t)&&(t=t.split(\",\").map(o=>parseFloat(o.trim()))),he(e)&&(e+=\"\");let r=Ua(t),n=e.slice(0,1);if(n===\"-\"||n===\"+\"){let o=Ha(r,parseFloat(e));return Va(o).join(\", \")}else{let[o,s,i]=t,[a,c]=za(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return Wa(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(\", \")}};var dd=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Kt=(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},Fr=(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},Ka=t=>{if(typeof t!=\"string\"||!t)return null;let e=t.split(/[#?]/)[0].split(\".\").pop().trim();return[\"woff2\",\"woff\",\"ttf\",\"otf\",\"eot\"].includes(e)?e:null},pn=t=>t&&(t.includes(\"fonts.googleapis.com\")||t.includes(\"fonts.gstatic.com\")),hn=t=>`@import url('${t}');`,Ga=t=>`@font-face { ${t} }`,_s=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a==\"string\"&&a).map(a=>{let c=Ka(a),l=c?` format('${c}')`:\"\";return`url('${a}')${l}`}).join(`,\n `);return`\n font-family: '${t}';\n font-style: ${n.fontStyle||\"normal\"};${r?`\n font-weight: ${r};`:\"\"}${n.fontStretch?`\n font-stretch: ${n.fontStretch};`:\"\"}${n.fontDisplay?`\n font-display: ${n.fontDisplay};`:\"\"}\n src: ${i};`},er=(t,e,r,n)=>`@font-face {${_s(t,e,r,n)}\n}`,Lr=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l}=e[o],f=Array.isArray(s)?s.map(u=>Kt(u,r)||u):Kt(s,r)||s;return _s(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),pd=t=>Object.keys(t).map(r=>Lr(r,t[r].value)),Ya=(t,e,r)=>{if(e&&e.isVariable){let s=Kt(e.url,r)||e.url;return pn(s)?hn(s):er(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||\"swap\"})}if(e[0])return Lr(t,e,r).map(Ga);let o=Array.isArray(e.url)?e.url.map(s=>Kt(s,r)||s):Kt(e.url,r)||e.url;return er(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Ss=(t,e)=>Object.keys(t).map(n=>Ya(n,t[n].value,e));O();O();O();O();var gn={};D(gn,{animation:()=>Rd,breakpoints:()=>Td,class:()=>Fd,color:()=>Sd,devices:()=>Od,document:()=>Rm,font:()=>gd,fontFace:()=>bd,fontFamily:()=>md,fontFamilyTypes:()=>yd,gradient:()=>wd,grid:()=>Dd,icons:()=>Cd,media:()=>xd,reset:()=>Pm,semanticIcons:()=>Ad,sequence:()=>Fe,shadow:()=>vd,sizes:()=>Md,spacing:()=>_d,svg:()=>Pd,svgData:()=>$d,templates:()=>Id,theme:()=>kd,timing:()=>Ed,typography:()=>ws,unit:()=>hd,vars:()=>Ld});var Fe={\"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 hd={default:\"em\"};var t0={browserDefault:16,base:16,type:\"font-size\",ratio:Fe[\"minor-third\"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:\"em\",templates:{},sequence:{},scales:{},vars:{}},ws=t0;var gd={};var md={},yd={\"sans-serif\":\"Helvetica, Arial, sans-serif, --system-default\",serif:\"Times New Roman, Georgia, serif, --system-default\",monospace:\"Courier New, monospace, --system-default\"},bd={};var xd={tv:\"(min-width: 2780px)\",light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\",print:\"print\"};var e0={base:ws.base,type:\"spacing\",ratio:Fe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:\"em\",sequence:{},scales:{},vars:{}},_d=e0;var Sd={},wd={};var kd={};var vd={};var Cd={},Ad={};var r0={default:150,base:150,type:\"timing\",ratio:Fe[\"perfect-fourth\"],range:[-3,12],mediaRegenerate:!1,unit:\"ms\",sequence:{},scales:{},vars:{}},Ed=r0;var Rm={};var Td={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Od={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 Rd={};var Pd={},$d={};var Id={};var n0={},Dd=n0;var Fd={};var Pm={},Ld={},Md={};var Qa={},tc={},Xa=gn,Ja={},vs=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in Xa){let e=t.toLowerCase();Ja[e]=Xa[t];let r=vs(e);r!==e&&(Ja[r]=Xa[t]),e!==t&&(Ja[t]=Xa[t])}var Cs={verbose:!1,useVariable:!0,useReset:!0,globalTheme:\"auto\",cssVars:Qa,cssMediaVars:tc,CSS_VARS:Qa,CSS_MEDIA_VARS:tc,_scratchConfig:!0,...Ja},Za=ot(Cs),we={active:\"0\",0:Cs},$m=t=>(Et(t)&&(we.active=t),we[t||we.active]),ks=[],rt=t=>{t&&t._scratchConfig&&ks.push(t)},J=()=>{ks.pop()},A=t=>ks.length?ks[ks.length-1]:we[t||we.active]||Cs,ec=t=>{if(w(t))return we.active=\"1\",we[1]=X(t,ot(Za)),t},o0=[\"useReset\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\"],s0=[\"useVariable\",\"globalTheme\",\"verbose\"],i0=[[\"fontfamily\",\"fontFamily\",\"font_family\"],[\"fontfamilytypes\",\"fontFamilyTypes\"],[\"semanticicons\",\"semanticIcons\"],[\"svgdata\",\"svgData\"]],a0=t=>{for(let e of i0){let r;for(let n of e){let o=t[n];w(o)&&(r=r?X(o,r):o)}if(r)for(let n of e)w(t[n])&&(t[n]=r)}},rc=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=ot(!r&&n&&n._scratchConfig?n:Za);for(let i of o0)delete o[i];for(let i of s0)Object.prototype.hasOwnProperty.call(Za,i)?o[i]=Za[i]:delete o[i];let s=X(e||{},o);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s._scratchConfig=!0,a0(s),t&&(we[t]=s),s};var ke={\"-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\"},Nd=(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;let c=Im.has(e.unit)?\"rem\":e.unit;e.vars[n]=s+c},Le=t=>{if(!t.includes(\"(\"))return t;let e=t.split(\"(\")[0],r=t.slice(t.indexOf(\"(\")+1,t.lastIndexOf(\")\"));return[e,r]},Im=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),As=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Im.has(o)?\"rem\":o,i=(vr(s)?1:r)+s;if(t===0)return i;let c=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(n&&n.replace(\".\",\"-\")),l=`${c}-ratio`;if(t>0){let f=ke[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ke[t+1],u=Math.abs(t),d=Math.pow(Dm,2*u),h=ke[u];return h?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${h}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},nc=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${\"--\"+(n.varPrefix?n.varPrefix+\"-\":\"\")+(o&&o.replace(\".\",\"-\"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},Es=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Ts=(t,e)=>Es(t,e).map(r=>r/t),Os=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,h]=Es(o,s);l>16?f=[u,d,h]:f=[u,h],f.forEach((g,p)=>{let m=~~(g/n*1e3)/1e3,b=i+(p+1),x=a+(p+1)/10,y=nc(p+1,f,i,e),_={key:r+(p+1),variable:b,value:g,scaling:m,scalingVariable:y,index:x};Nd(_,e)})},Dm=1.618,c0=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(Dm,2*n);return Math.max(o,s)},$t=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),c=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(e&&e.replace(\".\",\"-\"))+\"-\";for(let l=0;l<=i;l++){let f=o[1]-l,u=ke[f],d=c0(f,r,n),h=~~(d/r*100)/100,g=c+u,p=As(f,t),m={key:u,variable:g,value:d,base:r,scaling:h,scalingVariable:p,ratio:n,index:f};Nd(m,t),s&&Os(m,t)}return t},jd=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:ke[e],a=S(e)?Object.entries(ke).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},l=n*Math.pow(o,a),f=~~(l/n*100)/100,h=\"--\"+(t.varPrefix?t.varPrefix+\"-\":\"\")+(r&&r.replace(\".\",\"-\"))+\"-\"+i,g=As(a,t),p={key:i,variable:h,value:l,base:n,scaling:f,scalingVariable:g,ratio:o,index:a};return Nd(p,c),s&&Os(p,c),c},Rs=(t=\"A\",e)=>{let r=A(),{unit:n}=r;if(S(t)&&ct(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\\(/.test(t.trim()))return t;if(S(t)){let y=r.sizes;if(y){let _=y[t]||y[t.toLowerCase()];if(_!==void 0)return t.slice(0,1)===\"-\"?`calc(${_} * -1)`:_}}let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(no(t)||!c||[\"none\",\"auto\",\"max-content\",\"min-content\",\"fit-content\",\"inherit\",\"initial\",\"unset\",\"revert\",\"revert-layer\"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+\"-\":\"\"}${ys(e.type.replace(\".\",\"-\"))}-`,h=t.toUpperCase(),g=h.slice(0,1)===\"-\"?\"-\":\"\",p=g?h.slice(1):h,m=\"\";p.includes(\"_\")&&(m=\"_\"+p.split(\"_\")[1].toLowerCase(),p=p.split(\"_\")[0]);let b=y=>a.test(y)?`var(${d}${y}${m})`:y;if(p.includes(\"+\")){let[y,_]=p.split(\"+\"),v=`${b(y)} + ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes(\"*\")){let[y,_]=p.split(\"*\"),v=`${b(y)} * ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}else if(p.includes(\"-\")){let[y,_]=p.split(\"-\"),v=`${b(y)} - ${b(_)}`;return g?`calc((${v}) * -1)`:`calc(${v})`}if(!o[p]&&p.length===2&&(r.verbose&&console.warn(p,\"- value is not found because `subSequence` is set to false\"),p=p.slice(0,1)),i||r.useVariable){let y=`var(${d}${p}${m})`;return g?`calc(${y} * -1)`:y}let x=o?o[p]:null;if(!x){if(console.warn(\"can't find\",o,p),ne())throw new Error(`[smbls] Unresolvable design-system token \"${t}\"`+(e.type?` for sequence \"${e.type}\"`:\"\")+\" \\u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.\");return}return s===\"ms\"||s===\"s\"?g+x.val+s:g+x.scaling+s},oc=(t,e)=>{if(![\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length)return t;let n=/(\\s+-\\s+|\\s*[+*/,]\\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||[\"+\",\"-\",\"*\",\"/\",\",\"].includes(i)?s:Rs(i,e)}).join(\"\")},ve=(t,e,r,n)=>{if(typeof t!=\"string\")return A().verbose&&console.warn(e,t,\"is not a string\"),{[e]:t};if(t===\"-\"||t===\"\")return{};if(!n&&t.includes(\"(\")){if(/^(?:env|var)\\(/.test(t.trim()))return{[e]:t};let s=Le(t);n=s[0],t=s[1]}return[\"+\",\"-\",\"*\",\"/\",\",\"].filter(s=>t.includes(s+\" \")).length?t=oc(t,r):t=Rs(t,r),{[e]:n?`${n}(${t})`:t}},sc=(t,e)=>ke[t-e],Ps=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=sc(e,o);return r[s]})};O();var Bd=(t,e)=>{let r=A(),{cssVars:n}=r;V(t.value)||(n[t.var]=t.value)},$s=(t,e,r)=>{let n=A(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f=\"--\"+(e.varPrefix?e.varPrefix+\"-\":\"\")+(c&&c.replace(\".\",\"-\"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,h,g]=Ts(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${h/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},Fm=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),Me=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=Fm.has(i)?\"rem\":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||$s(s,t,e);for(let u in l){let d=l[u],h=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+\"_default\"]=h,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=h:(s[d.variable+\"_default\"]=h,s[d.variable]=`var(${d.variable+\"_default\"})`)}},rr=(t,e,r={})=>{let n=A(),{unit:o,media:s,cssVars:i}=n,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=Fm.has(l)?\"rem\":l,{mediaRegenerate:u}=t,{sequence:d,scales:h}=c,g=s[a];if(!g&&n.verbose&&console.warn(\"Can't find media query \",g),!u){let p=i[`@media ${g}`];p||(p=i[`@media ${g}`]={}),$s(p,c,r);let m=t.unit||o.default;if(f!==m&&d)for(let b in d){let x=d[b],y=h[b]+f;p[x.variable+\"_default\"]=y,p[x.variable]=y}return}for(let p in d){let m=d[p],b=(vr(f)?h[p]:d[p].val)+f;!g&&n.verbose&&console.warn(\"Can't find query \",g);let x=i[`@media ${g}`];x||(x=i[`@media ${g}`]={}),x[m.variable]=`var(${m.variable+\"_\"+a})`,i[m.variable+\"_\"+a]=b}};O();var Mm=Rr(),mn=t=>{let e=A(),r=\"\";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},l0=t=>{let e=t&&(t.default||t);if(!S(e))return Mm&&console.warn(\"parseRootAttributes:\",e,\"is not a string\"),{};let r=e.match(/<svg\\s+(.*?)>/);if(!r||!r[1])return{};let o=r[1].match(/(\\S+)=[\"']?((?:.(?![\"']?\\s+(?:\\S+)=|\\s*\\/?[>\"']))+.)[\"']?/gm);return o?o.reduce((s,i)=>{let[a,c]=i.split(\"=\");return s[a]=c.replace(/['\"]/g,\"\"),s},{}):{}},f0=(t,e)=>{let r=[];if(t.replace(/id=\"([^\"]*)\"/g,(o,s)=>(r.push(s),o)),!r.length)return t;let n=t;for(let o of r){let s=o.replace(/[.*+?^${}()|[\\]\\\\]/g,\"\\\\$&\"),i=`${e}-${o}`;n=n.replace(new RegExp(`id=\"${s}\"`,\"g\"),`id=\"${i}\"`).replace(new RegExp(`url\\\\(#${s}\\\\)`,\"g\"),`url(#${i})`).replace(new RegExp(`xlink:href=\"#${s}\"`,\"g\"),`xlink:href=\"#${i}\"`).replace(new RegExp(`href=\"#${s}\"`,\"g\"),`href=\"#${i}\"`)}return n},Lm=new Set,Is=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return Mm&&!Lm.has(t)&&(Lm.add(t),console.warn(\"convertSvgToSymbol:\",t,\"is not a string\")),\"\";e=r;let n=l0(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=f0(e,t).replace(\"<svg\",`<symbol id=\"${t}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${i}\"`);return l=l.replace(/width=\"[^\"]*\"/,\"\"),l=l.replace(/height=\"[^\"]*\"/,\"\"),l=l.replace(\"</svg\",\"</symbol\"),l=p0(l),l},u0=\"line|circle|ellipse|rect|polyline|polygon|path|stop|use|image\",d0=new RegExp(`<(${u0})\\\\b([^>]*?)\\\\s*/>`,\"g\"),p0=t=>t.replace(d0,\"<$1$2></$1>\");var _n={};D(_n,{STANDARD_SCHEME_QUERIES:()=>ic,appendSVGSprite:()=>Gs,appendSvgIconsSprite:()=>Xs,applyDocument:()=>Ks,applyHeadings:()=>lc,applyReset:()=>Js,applySpacingSequence:()=>zs,applyTimingSequence:()=>qs,applyTypographySequence:()=>Bs,checkIfBoxSize:()=>Us,getColor:()=>Z,getFontFamily:()=>js,getFontSizeByKey:()=>Vs,getMediaColor:()=>bt,getMediaTheme:()=>Gt,getShadow:()=>Hs,getSpacingBasedOnRatio:()=>ae,getSpacingByKey:()=>pt,getTheme:()=>Fs,getTimingByKey:()=>Mt,getTimingFunction:()=>Yt,runThroughMedia:()=>cc,setAdaptiveSchemeVar:()=>sr,setColor:()=>or,setFont:()=>Ns,setFontFamily:()=>bn,setGradient:()=>yn,setMediaTheme:()=>Ms,setSVG:()=>xn,setShadow:()=>ir,setSvgIcon:()=>Ys,setTheme:()=>Ls,splitSpacedValue:()=>Ws});O();var ic={light:\"(prefers-color-scheme: light)\",dark:\"(prefers-color-scheme: dark)\"},Z=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(ct(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=Ie(t);if(!u){let{color:d,gradient:h}=n,g=h[t]||d[t];return g?(e&&g[e]&&(g=g[e]),n.useVariable?`var(${g.var})`:g.value):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,l=a[o]||c[o];if(!l)return n.verbose&&console.warn(\"Can't find color \",o),t;if(e&&(l[e]!==void 0?l=l[e]:n.verbose&&console.warn(t,\" - does not have \",e)),S(l))return Z(l,null,r);let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let d=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${d}%, transparent)`}return u}return i&&!l[i]&&(f=tr(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`},bt=(t,e,r)=>{let n=r||A();if(e||(e=n.globalTheme===\"auto\"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,\"- type for color is not valid\");return}if(ct(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=Ie(t);if(u){if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}else o=t}let{color:a,gradient:c}=n,l=a[o]||c[o],f=w(l);if(f&&l.value)return Z(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?Z(t,null,r):`var(${l.var})`;if(e)return Z(t,`@${e}`,r);{let u={};for(let d in l){if(d.charCodeAt(0)!==64)continue;let h=d.slice(1),g=n.media&&n.media[h]||ic[h];if(!g)continue;let p=\"@media \"+(g===\"print\"?`${g}`:`screen and ${g}`);u[p]=Z(t,d,r)}return u}}else return n.verbose&&console.warn(\"Can't find color\",t),t},sr=(t,e,r,n)=>{let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}${e}-${r}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!=\"string\"||(a[l]=u,(l===\"light\"||i===void 0)&&(i=u))}if(i!==void 0){n.cssVars[s]=i,n.cssMediaVars||(n.cssMediaVars={});for(let c in a){let l=`[data-theme=\"${c}\"]`;if(n.cssMediaVars[l]||(n.cssMediaVars[l]={}),n.cssMediaVars[l][s]=a[c],c===\"light\"||c===\"dark\"){let f=`@media (prefers-color-scheme: ${c})`;n.cssMediaVars[f]||(n.cssMediaVars[f]={}),n.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},or=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0))return t;if(S(t)&&ct(t)){let p=t.slice(2);if(t=Z(p),!(t.includes(\"rgb\")||t.includes(\"var\")||t.includes(\"#\"))){let m=p.split(\" \"),b=n.color[m[0]];if(b&&!b.value&&!b.rgb&&(S(b)||T(b)||w(b))&&(n.color[m[0]]=or(b,m[0]),b=n.color[m[0]]),b&&b.value){let x=b.rgb,y=m[1]!==void 0?m[1]:\"1\",_=m[2];_&&(x=tr(x,_)),t=`rgba(${x}, ${y})`}else{let x=m[2],y=m[1]!==void 0?m[1]:\"1\";if(x)try{let _=_e(m[0]);_&&_.length>=3?t=`rgba(${tr(_.slice(0,3).join(\", \"),x)}, ${y})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),w(t)){let p={};for(let m in t)m!==\"var\"&&(p[m]=or(t[m],e,m.slice(0,1)===\"@\"?m.slice(1):m));return n.useVariable&&sr(p,\"color\",e,n),p}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}color-${e}`+(r?`-${r}`:\"\"),i=t.value||t;if(S(i)&&!i.includes(\"(\")&&!i.startsWith(\"#\")){let p=Ie(i);if(p&&p.name&&!p.passthrough&&!p.cssVar){let m=n.color[p.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[p.name]=or(m,p.name));let b=n.color[p.name];if(b&&b.rgb){let x=b.rgb;p.tone&&(x=tr(x,p.tone));let y=p.alpha?parseFloat(p.alpha):1;i=`rgba(${x}, ${y})`}}}let a=_e(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),h=`${c}, ${l}, ${f}`,g=`rgba(${h}, ${d})`;return n.useVariable&&(n.cssVars[s]=g),{var:s,rgb:h,alpha:d,value:g}},yn=(t,e,r)=>{let n=A();if(w(t)&&t.value!==void 0&&t.var!==void 0)return t;if(S(t)&&ct(t)&&(t=Z(t.slice(2))),T(t)&&(t={\"@light\":t[0],\"@dark\":t[1]!==void 0?t[1]:t[0]}),w(t)){let i={};for(let a in t)a!==\"var\"&&(i[a]=yn(t[a],e,a.slice(0,1)===\"@\"?a.slice(1):a));return n.useVariable&&sr(i,\"gradient\",e,n),i}let s=`--${n.varPrefix?n.varPrefix+\"-\":\"\"}gradient-${e}`+(r?`-${r}`:\"\");return n.useVariable&&(n.cssVars[s]=t.value||t),{var:s,value:t.value||t}};O();var h0=new Set([\"black\",\"white\",\"red\",\"green\",\"blue\",\"yellow\",\"orange\",\"purple\",\"pink\",\"brown\",\"gray\",\"grey\",\"cyan\",\"magenta\",\"lime\",\"olive\",\"navy\",\"teal\",\"aqua\",\"maroon\",\"silver\",\"fuchsia\",\"transparent\",\"currentColor\",\"currentcolor\",\"inherit\",\"initial\",\"unset\",\"none\",\"aliceblue\",\"antiquewhite\",\"aquamarine\",\"azure\",\"beige\",\"bisque\",\"blanchedalmond\",\"blueviolet\",\"burlywood\",\"cadetblue\",\"chartreuse\",\"chocolate\",\"coral\",\"cornflowerblue\",\"cornsilk\",\"crimson\",\"darkblue\",\"darkcyan\",\"darkgoldenrod\",\"darkgray\",\"darkgreen\",\"darkgrey\",\"darkkhaki\",\"darkmagenta\",\"darkolivegreen\",\"darkorange\",\"darkorchid\",\"darkred\",\"darksalmon\",\"darkseagreen\",\"darkslateblue\",\"darkslategray\",\"darkslategrey\",\"darkturquoise\",\"darkviolet\",\"deeppink\",\"deepskyblue\",\"dimgray\",\"dimgrey\",\"dodgerblue\",\"firebrick\",\"floralwhite\",\"forestgreen\",\"gainsboro\",\"ghostwhite\",\"gold\",\"goldenrod\",\"greenyellow\",\"honeydew\",\"hotpink\",\"indianred\",\"indigo\",\"ivory\",\"khaki\",\"lavender\",\"lavenderblush\",\"lawngreen\",\"lemonchiffon\",\"lightblue\",\"lightcoral\",\"lightcyan\",\"lightgoldenrodyellow\",\"lightgray\",\"lightgreen\",\"lightgrey\",\"lightpink\",\"lightsalmon\",\"lightseagreen\",\"lightskyblue\",\"lightslategray\",\"lightslategrey\",\"lightsteelblue\",\"lightyellow\",\"limegreen\",\"linen\",\"mediumaquamarine\",\"mediumblue\",\"mediumorchid\",\"mediumpurple\",\"mediumseagreen\",\"mediumslateblue\",\"mediumspringgreen\",\"mediumturquoise\",\"mediumvioletred\",\"midnightblue\",\"mintcream\",\"mistyrose\",\"moccasin\",\"navajowhite\",\"oldlace\",\"olivedrab\",\"orangered\",\"orchid\",\"palegoldenrod\",\"palegreen\",\"paleturquoise\",\"palevioletred\",\"papayawhip\",\"peachpuff\",\"peru\",\"plum\",\"powderblue\",\"rosybrown\",\"royalblue\",\"saddlebrown\",\"salmon\",\"sandybrown\",\"seagreen\",\"seashell\",\"sienna\",\"skyblue\",\"slateblue\",\"slategray\",\"slategrey\",\"snow\",\"springgreen\",\"steelblue\",\"tan\",\"thistle\",\"tomato\",\"turquoise\",\"violet\",\"wheat\",\"whitesmoke\",\"yellowgreen\",\"rebeccapurple\"]),Nm=[\"color\",\"Color\",\"background\",\"Background\",\"fill\",\"Fill\",\"stroke\",\"Stroke\"],g0=t=>{for(let e=0;e<Nm.length;e++)if(t.includes(Nm[e]))return!0;return!1},ac=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let l=[\"color\",\"Color\",\"background\",\"border\"].some(f=>a.includes(f));return e[a]=l?Z(t[a]):t[a]}),e},Ds=t=>(t.value||(t.value=ac(t)),t.value),Fs=(t,e)=>{let r=A();if(r.useVariable)return Gt(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(\" \"),i=n[o];if(i){if(!s&&!e)return Ds(i);t=[o,s||e]}}if(V(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Ds(a[s]);if(i&&i[s])return Ds(i[s]);if(c&&c[s])return Ds(c[s])}else if(w(t))return ac(t)},m0=(t,e,r)=>{if(w(e))t.variants.inverse.value=ac(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},y0=(t,e,r,n)=>{let o=Fs(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},b0=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return y0(t,o,s,e),t}),t):void 0},x0=(t,e,r,n)=>{let o=Fs(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},_0=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o===\"dark\"||o===\"light\")&&x0(t,o,s,e),o===\"inverse\"&&m0(t,s,e),t}),t):void 0},S0=(t,e)=>{let r=A(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return S(i)?n[s]=r.theme[i]:Ds(n[s]),t}),t):void 0},Ls=(t,e)=>{let r=A();if(r.useVariable)return Ms(t,e);let{state:n,media:o,helpers:s}=t,i=ac(t,e),c=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}`;return b0(t,i),_0(t,i),S0(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var Vd=(t,e,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:\"auto\",i={},a=new Set;for(let l in t)if(t[l])for(let f of Object.keys(t[l]))a.add(f);let c=new Set;for(let l of a){let f=l.slice(0,1);if(!(f===\"@\"||f===\".\"||f===\":\")&&g0(l))for(let u in t){if(c.has(u))continue;let d=t[u]?.[l];if(d===void 0)continue;let h=Z(d,`@${u}`);h!==void 0&&S(h)&&/^[a-z][a-zA-Z]+$/.test(h)&&!h0.has(h)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(d=>V(d?.[l]));if(f===\".\"&&u){let d=l.slice(1),h={};for(let g in t)V(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=Vd(h,`${e}-${d}`,r)}else if(f===\":\"&&u){let d=l.replace(/^:+/,\"\"),h={};for(let g in t)V(t[g]?.[l])&&(h[g]=t[g][l]);i[l]=Vd(h,`${e}-${d}`,r)}else if(f!==\"@\"&&f!==\".\"&&f!==\":\"){let h=`--${r.varPrefix?r.varPrefix+\"-\":\"\"}theme-${e}-${l}`,g=s&&s!==\"auto\"?String(s).replace(/^'|'$/g,\"\"):null,p;for(let m in t){if(c.has(m))continue;let b=t[m]?.[l];if(b===void 0)continue;let x=Z(b,`@${m}`);if(x===void 0)continue;(g&&m===g||!g&&(m===\"light\"||p===void 0))&&(p=x);let y=`[data-theme=\"${m}\"]`;if(o[y]||(o[y]={}),o[y][h]=x,m===\"dark\"||m===\"light\"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][h]=x}}p!==void 0&&(n[h]=p),i[l]=`var(${h})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[\".inversed\"]={color:i.background||i.backgroundColor,background:i.color}),i},Ms=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(V(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith(\"@\")&&V(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=Vd(c,e,o);Object.assign(i,l)}}for(let c in t){let l=c.slice(0,1),f=t[c];if(l===\"@\"||l===\":\"||l===\".\"){let u=l===\"@\"&&c;i[c]=Ms(f,e,c,n||u)}else if(!a){let u=Z(f,n),d=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],h=d.length?\"-\"+d.join(\"-\"):\"\",p=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}theme-${e}${h}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[p]=u),i[c]=`var(${p})`):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(S(t)&&ct(t)){let l=o.theme[t.slice(2)];return Gt(l,n)}return i},Ud=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(V(t[n])){if(o===\"@\")continue;o===\":\"?r[`&${n}`]=Ud(t[n]):o===\".\"&&(r[`&${n}`]=Ud(t[n]))}else r[n]=t[n]}return r},Bm=(t,e)=>{let r=e.shift();return t[r]?Bm(t[r],e):t},jm=(t,e)=>T(e)?Bm(t,e):S(e)&&t[e]?t[e]:t;var Gt=(t,e)=>{let r=A();if(S(t)&&ct(t)&&(t=Gt(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=T(t)?t:t.split(\" \"),s=r.theme[n];return s&&o.length?s=jm(s,o):s&&e&&(s=jm(s,e)),Ud(s)};O();O();var Ns=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Kt(t.url,r.files)||t.url;pn(s)?o=hn(s):o=er(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||\"swap\"})}else if(t[0])o=Lr(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Kt(i,r.files)||i):Kt(t.url,r.files)||t.url;o=er(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},js=(t,e)=>{let r=A(),{fontFamily:n}=r;return Fr(e||n,t)},bn=(t,e)=>{let r=A(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!n.default)&&(n.default=e),w(s)&&(s=Dr(s));let a=`--font-family-${e}`,c=`${s.join(\", \")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var cc=t=>{let e=A(),{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:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:g,unit:p}=t;it(i,{type:l,base:f,ratio:u,range:d,subSequence:h,h1Matches:g,unit:p});let m=new Set([\"vw\",\"vh\",\"vmin\",\"vmax\",\"svw\",\"svh\",\"lvw\",\"lvh\",\"dvw\",\"dvh\"]),b=i.unit||p,x=!i.unit&&m.has(p)?\"rem\":b,y=n[c],_=\"@media \"+(y===\"print\"?`${y}`:`screen and ${y}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+x},!a){it(i,{sequence:{},scales:{},vars:{}}),$t(i),rr(t,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),$t(i),rr(t,o)}},lc=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=Ps(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}}}},Bs=()=>{let t=A(),{typography:e}=t;$t(e),lc(e),Me(e),cc(e)},Vs=t=>{let e=A(),{typography:r}=e;return ve(t,\"fontSize\",r)};O();O();var w0=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return $t(o),o},k0=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:l,unit:f}=t;it(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),$t(r),rr(t,e)}},Us=t=>{let e=t.toLowerCase(),r=e.includes(\"width\")||e.includes(\"height\"),n=e.includes(\"border\")||e.includes(\"outline\");return r&&!n},zs=()=>{let t=A(),{spacing:e}=t;$t(e),Me(e),k0(e)},v0=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:$t(t)},pt=(t,e=\"padding\",r,n)=>{let o=v0(r);if(S(t)){if(!n&&/^(?:env|var)\\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes(\"(\")){let i=Le(t);n=i[0],t=i[1]}}let s=n?[t]:Dr(t);if(T(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=(l,f)=>ve(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return ve(t,e,o,n)}},ae=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&/^(?:env|var)\\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes(\"(\")){let a=Le(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=w0(t);return pt(i,e,a,n)}return pt(i,e,s,n)},Ws=t=>{let e=r=>{let n=[\"+\",\"-\",\"*\",\"/\"].includes(r),o=qr.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(\" \")};O();var ir=(t,e,r,n)=>{let o=A();if(T(t)){let a={\"@light\":ir(t[0],e,\"light\"),\"@dark\":ir(t[1],e,\"dark\")};return o.useVariable&&sr(a,\"shadow\",e,o),a}if(w(t)){let a={};for(let c in t)a[c]=ir(t[c],e,c.startsWith(\"@\")?c.slice(1):c);return o.useVariable&&sr(a,\"shadow\",e,o),a}S(t)&&!ie.test(t)&&(t=De(t).map(a=>(a=a.trim(),a.split(/\\s+/).map(c=>{if(c=c.trim(),!c)return\"\";if(c.startsWith(\"--\"))return`var(${c})`;let l=Z(c);if(Se(l))return l;if(/^\\d/.test(c)||c===\"0\"||c.includes(\"px\")||c.slice(-2)===\"em\"||c===\"inset\"||c===\"none\")return c;let f=pt(c,\"shadow\");return f&&f.shadow?f.shadow:c}).join(\" \"))).join(\", \"));let i=`--${o.varPrefix?o.varPrefix+\"-\":\"\"}shadow-${e}`+(r?`-${r}`:\"\");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Hs=(t,e)=>{let r=A();if(e||(e=r.globalTheme===\"auto\"?null:r.globalTheme),!S(t)){r.verbose&&console.warn(t,\"- type for color is not valid\");return}if(ct(t))return`var(${t})`;let[n]=T(t)?t:t.split(\" \"),s=r.shadow[n],i=w(s);if(!s)return r.verbose&&console.warn(\"Can't find color \",n),t;if(e){let a=s[\"@\"+e]||s[e];if(a)return a.value!==void 0?a.value:a;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){if(c.charCodeAt(0)!==64)continue;let l=r.media[c.slice(1)];if(!l)continue;let f=\"@media \"+(l===\"print\"?`${l}`:`screen and ${l}`),u=s[c],d=u&&(u.value!==void 0?u.value:u);d!==void 0&&(a[f]=d)}return a}return r.verbose&&console.warn(\"Can't find color\",t),t};O();var qs=()=>{let t=A(),{timing:e}=t;$t(e),Me(e)},Yt=t=>{let e=A(),{timing:r}=e;return r[t]||r[ms(t)]||t},Mt=(t,e=\"timing\")=>{let r=A(),{timing:n}=r;return ve(t,e,n)};O();var Ks=()=>{let t=A(),{fontFamily:e,theme:r,typography:n}=t,o=t.document;return Oe(o)?(He(t,\"document\",o),o=t.document={}):o||(o=t.document={}),it(o,{theme:r.document,fontFamily:Fr(e),fontSize:n.base,lineHeight:n.lineHeight})};O();var Wd={document:Y},xn=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn(\"setSVG: val is not defined\",e);return}return r.useSvgSprite?Is(e,t):t},Gs=(t,e=Wd)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];Um(n,e)},Ys=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?xn(t,e):t},Xs=(t,e=Wd)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];Um(n,e)},zd=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let r=t.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");return e.isRoot&&(r.setAttribute(\"aria-hidden\",\"true\"),r.setAttribute(\"width\",\"0\"),r.setAttribute(\"height\",\"0\"),r.setAttribute(\"style\",\"position:absolute\"),r.setAttribute(\"id\",\"svgSprite\")),r},C0=(t,e)=>{let r=typeof DOMParser<\"u\"?DOMParser:null;if(r){let n=`<svg xmlns=\"http://www.w3.org/2000/svg\">${e}</svg>`,s=new r().parseFromString(n,\"image/svg+xml\");return s.querySelector(\"parsererror\")?null:s.documentElement}return null},Vm=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},Um=(t,e=Wd)=>{let r=A(),n=e.document||Y;if(!n||!n.documentElement)return r.verbose&&console.warn(\"To append SVG sprites it should be run in browser environment\"),mn(t);let o=n.querySelector(\"#svgSprite\"),s=mn(t),i=`<svg aria-hidden=\"true\" width=\"0\" height=\"0\" style=\"position:absolute\" id=\"svgSprite\">${s}</svg>`,a=C0(n,s);if(o)if(a)Vm(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML(\"beforeend\",s);else{let c=zd(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=zd(n);c&&c.nodeType&&(Vm(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML(\"afterbegin\",i);else{let c=zd(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var Js=(t={})=>{let e=A(),{reset:r,typography:n,document:o}=e;if(r){if(r[\":root\"]){let c=r,l=n.templates;c.body={...e.useDocumentTheme?Gt(\"document\"):{},...l.body},c.h1=l.h1,c.h2=l.h2,c.h3=l.h3,c.h4=l.h4,c.h5=l.h5,c.h6=l.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?Gt(\"document\"):{};if(r.html&&Ot(r.html,a),n.unit){let{media:c}=e;for(let l in n){if(l.charAt(0)!==\"@\")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,h=f.browserDefault||n.browserDefault,g=l.slice(1),p=c[g];if(!p)continue;let m=\"@media \"+(p===\"print\"?p:\"screen and \"+p);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=d/h+u}}return X(it(r,t),{html:{position:\"absolute\",width:\"100%\",height:\"100%\",top:\"0\",left:\"0\",margin:\"0\",WebkitFontSmoothing:\"subpixel-antialiased\",scrollBehavior:\"smooth\",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+\"px\",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:\"border-box\",height:\"100%\",margin:0,fontFamily:o.fontFamily,fontSize:n.unit?\"1\"+e.unit.default:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:\"currentColor\"},button:{color:\"inherit\",font:\"inherit\",background:\"transparent\",border:\"none\",cursor:\"pointer\",appearance:\"none\",WebkitAppearance:\"none\"},\"input, select, textarea\":{color:\"inherit\",font:\"inherit\"},fieldset:{border:0,padding:0,margin:0}})}};O();var A0=new Set([\"none\",\"hidden\",\"dotted\",\"dashed\",\"solid\",\"double\",\"groove\",\"ridge\",\"inset\",\"outset\",\"initial\"]),E0=new Set([\"to\",\"top\",\"bottom\",\"left\",\"right\",\"center\",\"at\",\"circle\",\"ellipse\",\"closest-side\",\"farthest-side\",\"closest-corner\",\"farthest-corner\"]),T0=t=>A0.has(t),Ce=t=>{let e=t+\"\";if(ie.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(ct(o))return`var(${o})`;if(T0(o)||/^\\d/.test(o)||o===\"0\")return o;let s=Z(o);if(Se(s))return s;let i=pt(o,\"border\");return i&&i.border?i.border:o}).join(\" \")},fc=t=>ie.test(t)?t:t.split(/\\s+/).map(e=>{if(e=e.trim(),!e)return\"\";if(ct(e))return`var(${e})`;if(/^\\d/.test(e)||e.includes(\"px\")||e===\"0\")return e;let r=Z(e);return Se(r)?r:e}).join(\" \"),uc=(t,e)=>Hs(t,e),Zs=(t,e)=>ie.test(t)?t:De(t).map(r=>(r=r.trim(),r?r.split(/\\s+/).map(n=>{if(n=n.trim(),!n)return\"\";if(ct(n))return`var(${n})`;if(n===\"inset\"||n===\"none\")return n;let o=Z(n);if(Se(o)){let i=bt(n,e);return w(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=pt(n,\"shadow\");return s&&s.shadow?s.shadow:n}).join(\" \"):\"\")).join(\", \"),Qs=(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=De(o).map(c=>(c=c.trim(),c.split(/\\s+/).map(f=>{if(!f||/^\\d/.test(f)||f===\"0\"||E0.has(f)||f===\"transparent\"||ie.test(f))return f;let u=Z(f);return Se(u)?u:f}).join(\" \")));return n+a.join(\", \")+s},dc=(t,e)=>{let r=A();return De(t).map(n=>{let o=n.trim();if(ct(o))return`var(${o})`;if(/^var\\(/.test(o)||o.includes(\"url\"))return o;if(r.gradient?.[o]){let s=bt(o,e);if(S(s))return s;if(w(s)){for(let i in s)if(S(s[i]))return s[i]}return o}return o.includes(\"gradient\")?Qs(o,e):o.includes(\"/\")||o.startsWith(\"http\")||o.includes(\".\")&&!Ie(o)?`url(${o})`:o}).join(\", \")},pc=t=>S(t)&&t.split(\" \").map(e=>pt(e,\"gap\").gap).join(\" \"),Hd=t=>{let e=t.split(\" \");return e.length?e.map(r=>ct(r)?`var(${r})`:r.length<3||r.includes(\"ms\")?Mt(r).timing||r:Yt(r)?Yt(r):r).join(\" \"):t},ti=(t,e,r)=>{if(S(t))return t.split(\",\").map(n=>Mt(n).timing||n).join(\",\")},hc=t=>{let e=t.split(\",\");if(e.length)return e.map(Hd).join(\",\")};function lt(t,e,r={},n={}){let o=et.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(/^(?:env|var)\\(/.test(o.trim()))return{[t]:o};if(o.includes(\"(\")){let c=Le(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=Us(t);!i&&a&&!n.ratio&&(o=Ws(o))}return n.ratio?ae(r,t,o,s):pt(o,t,void 0,s)}var M=(t,e=null,r)=>lt(t,e,r,{ratio:!0}),ei=(t,e,r)=>{if(S(t))return{borderRadius:t.split(\" \").map((n,o)=>ae(e,r,n)[r]).join(\" \")}};O();var O0=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith(\"--\")?e:`--${e}`;return n[o]=t,t},Nt=t=>t,gc={color:or,gradient:yn,font:Ns,fontFamily:bn,fontfamily:bn,theme:Ls,icons:Ys,semanticIcons:Nt,semanticicons:Nt,svg:xn,svgData:Nt,typography:Nt,shadow:ir,spacing:Nt,media:Nt,grid:Nt,class:Nt,timing:Nt,reset:Nt,unit:Nt,animation:Nt,vars:O0,sizes:Nt},R0=(t,e,r,n)=>{He(t,r,e);let o={};for(let s of n)t[s]===e&&(t[s]=o);return t.verbose&&console.warn(\"[scratch] design-system family\",r,\"resolved to a host object; parked it and allocated a plain bucket\"),o},qd=(t,e,r)=>{let n=A(),o=vs(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Oe(i)?R0(n,i,s,[o,s,t]):i,c=gc[o]||gc[s];if(c)try{let l=c(e,r);return a&&(a[r]=l),a}catch(l){n.verbose&&console.warn(\"Error setting\",s,\"value\",e,r,l)}if(!c){let l=a||(n[s]={});return l[r]=e,l}n.verbose&&console.warn(\"Can not find\",s,\"method in scratch\")},Kd=(t,e)=>{let r=A(),n=t.toLowerCase();return Oe(e)?(He(r,n,e),r.verbose&&console.warn(\"[scratch] ignoring host object passed as the\",n,\"design-system family\"),r[n]||r[t]):(Object.keys(e).sort((s,i)=>{let a=w(e[s])||T(e[s])?1:0,c=w(e[i])||T(e[i])?1:0;return a-c}).forEach(s=>{try{return qd(n,e[s],s)}catch(i){r.verbose&&console.warn(\"Error setting\",n,\"value\",e[s],s,i)}}),r[n]||r[t])},mc=(t,e)=>{let r=e||A();r.globalTheme=t;let o=Hr(r)||(typeof document<\"u\"?document:null),s=o&&o.defaultView||(typeof window<\"u\"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(t&&t!==\"auto\")a.setAttribute(\"data-theme\",t),t===\"dark\"||t===\"light\"?a.style.colorScheme=t:a.style.colorScheme=\"light dark\";else if(s&&s.matchMedia){let l=u=>{a.setAttribute(\"data-theme\",u.matches?\"dark\":\"light\")},f=s.matchMedia(\"(prefers-color-scheme: dark)\");if(l(f),a.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=l;try{f.addEventListener(\"change\",l)}catch{f.addListener(l)}}}else a.setAttribute(\"data-theme\",\"light\"),a.style.colorScheme=\"light\"}let i=r.varPrefix?`--${r.varPrefix}-theme-`:\"--theme-\";for(let a in r.cssVars)a.startsWith(i)&&delete r.cssVars[a];for(let a in r.cssMediaVars)delete r.cssMediaVars[a];if(o&&r.cssVars){let a=r.scopeSelector||\":root\",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in r.cssVars)f[u].style.setProperty(d,r.cssVars[d]);return r}}catch{}}return r},P0={},Mr=(t,e=P0)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:h,semanticIcons:g,hoverMedia:p,files:m,assets:b,...x}=t;e.newConfig&&(r=ec(e.newConfig)),Te(x.document)&&(r.__domDocument=x.document,delete x.document),Te(r.document)&&(r.__domDocument||(r.__domDocument=r.document),r.document={}),m!==void 0&&(r.files=m),b!==void 0&&(r.assets=b),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),l!==void 0&&(r.useIconSprite=l),d!==void 0&&(r.useDocumentTheme=d),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),h!==void 0&&(r.useDefaultConfig=h),g!==void 0&&(r.semanticIcons=g),p!==void 0&&(r.hoverMedia=p),r.verbose&&console.log(r);let _=Hr(r)||(typeof document<\"u\"?document:null),v=_&&_.defaultView||(typeof window<\"u\"?window:null),E=_&&(r.themeRoot||_.documentElement);if(E&&typeof E.setAttribute==\"function\")if(r.globalTheme&&r.globalTheme!==\"auto\")E.setAttribute(\"data-theme\",r.globalTheme),r.globalTheme===\"dark\"||r.globalTheme===\"light\"?E.style.colorScheme=r.globalTheme:E.style.colorScheme=\"light dark\";else if(v&&v.matchMedia){let G=W=>{E.setAttribute(\"data-theme\",W.matches?\"dark\":\"light\")},at=v.matchMedia(\"(prefers-color-scheme: dark)\");if(G(at),E.style.colorScheme=\"light dark\",!r.__prefersListener){r.__prefersListener=G;try{at.addEventListener(\"change\",G)}catch{at.addListener(G)}}}else E.setAttribute(\"data-theme\",\"light\"),E.style.colorScheme=\"light\";r.__svgCache||(r.__svgCache={});let I=Object.keys(x).filter(P=>!P.startsWith(\"__\")),H=new Set(I);if(I.forEach(P=>{let G=P.toLowerCase();G!==P&&H.has(G)&&X(x[G],x[P])}),I.map(P=>{let G=P.toLowerCase();if(!(G!==P&&H.has(G)))return Kd(P,x[P])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),x.typography)try{Bs()}catch(P){r.verbose&&console.warn(\"Error applying typography sequence\",P)}if(x.spacing)try{zs()}catch(P){r.verbose&&console.warn(\"Error applying spacing sequence\",P)}if(x.timing)try{qs()}catch(P){r.verbose&&console.warn(\"Error applying timing sequence\",P)}Ks();let R=Js();return R&&(r.reset=R),r};var Nr=new Map,Km=null,Xd=null,$0=null;function ri(t){t.batchAtomicCss&&(Xd=t.batchAtomicCss),t.compoundCssClass&&($0=t.compoundCssClass)}var I0=new Set,zm=t=>!!(t&&t.documentElement&&typeof t.createElement==\"function\"&&t.head!==void 0);function Jd(t){try{let e=A();e&&(e.__domDocument=t)}catch{}t&&I0.add(t)}function bc(){try{let t=A();if(t){if(zm(t.__domDocument))return t.__domDocument;if(zm(t.document))return t.document}}catch{}return typeof document<\"u\"?document:null}var D0={display:\"d\",position:\"pos\",padding:\"p\",paddingTop:\"pt\",paddingRight:\"pr\",paddingBottom:\"pb\",paddingLeft:\"pl\",margin:\"m\",marginTop:\"mt\",marginRight:\"mr\",marginBottom:\"mb\",marginLeft:\"ml\",width:\"w\",height:\"h\",minWidth:\"mnw\",minHeight:\"mnh\",maxWidth:\"mxw\",maxHeight:\"mxh\",top:\"t\",right:\"r\",bottom:\"b\",left:\"l\",flex:\"fx\",flexDirection:\"fxd\",flexWrap:\"fxw\",flexGrow:\"fxg\",flexShrink:\"fxs\",flexBasis:\"fxb\",justifyContent:\"jc\",alignItems:\"ai\",alignSelf:\"as\",alignContent:\"ac\",gap:\"g\",rowGap:\"rg\",columnGap:\"cg\",gridTemplateColumns:\"gtc\",gridTemplateRows:\"gtr\",gridColumn:\"gc\",gridRow:\"gr\",overflow:\"of\",overflowX:\"ofx\",overflowY:\"ofy\",fontSize:\"fs\",fontWeight:\"fw\",fontFamily:\"ff\",fontStyle:\"fst\",lineHeight:\"lh\",letterSpacing:\"ls\",textAlign:\"ta\",textDecoration:\"td\",textTransform:\"tt\",color:\"c\",background:\"bg\",backgroundColor:\"bgc\",backgroundImage:\"bgi\",border:\"bd\",borderRadius:\"br\",borderColor:\"bdc\",borderWidth:\"bdw\",borderStyle:\"bds\",boxShadow:\"bxsh\",opacity:\"op\",zIndex:\"z\",cursor:\"cur\",transition:\"tr\",transform:\"tf\",animation:\"an\",visibility:\"vis\",whiteSpace:\"ws\",wordBreak:\"wb\",objectFit:\"obj\",pointerEvents:\"pe\",userSelect:\"us\",boxSizing:\"bxz\",outline:\"ol\",listStyle:\"lis\",textOverflow:\"txo\",verticalAlign:\"va\",float:\"fl\",clear:\"cl\",content:\"cnt\",backdropFilter:\"bdf\",filter:\"flt\",resize:\"rsz\",appearance:\"apr\",fill:\"fil\",stroke:\"stk\"};function jr(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function yc(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function F0(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():yc(e)}var L0={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\"};function Sn(t,e){let r=L0[t];return r?`${t}:${e};${r}:${e};`:`${t}:${e};`}var M0=\"@media (hover: hover)\",N0=/(?:^|[^\\\\]):hover(?![\\w-])/;function Zd(){try{let t=A();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function ce(t,e,r){return r===!1||!N0.test(e)||r===void 0&&!Zd()?t:`${M0}{${t}}`}function Wm(t,e,r){let n=(r?r+\"\u0001\":\"\")+t+\":\"+e,o=Nr.get(n),s=o?null:jr(t);if(!o){let c=D0[t]||yc(t),l=F0(e);o=r?`_${r}_${c}-${l}`:`_${c}-${l}`,Nr.set(n,o)}if(typeof e==\"string\"&&(e.indexOf(\"}\")!==-1||e.indexOf(\"{\")!==-1))return o;let i=s||jr(t),a=`.${o}{${Sn(i,e)}}`;return Xt(a),o}var Hm=new WeakMap;function Xt(t,e){let r=Gm(e);if(!r)return;let n=Hm.get(r);if(n||(n=new Set,Hm.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var qm=new WeakMap;function Gm(t){let e=t||bc();if(!e||!e.head)return null;let r=qm.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector(\"style[data-smbls]\");n||(n=e.createElement(\"style\"),n.setAttribute(\"data-smbls\",\"\"),e.head.appendChild(n));let o=n.sheet;return qm.set(e,o),Km=o,o}var j0=8;function le(t,e,r){if(!t||typeof t!=\"object\")return\"\";let n=null,o=0,s=[],i=[];for(let c in t){let l=t[c];l==null||l===!1||l===\"\"||(typeof l==\"object\"?i.push([c,l]):Xd?(n||(n=[]),n.push(c,String(l)),o++):s.push(Wm(c,String(l),r)))}if(n&&o>=j0){let c=n.join(\"\\0\"),l=Xd(c),f=l.indexOf(\"\\0\"),u=l.substring(0,f),d=l.substring(f+1);if(d){let h=d.split(`\n`);for(let g=0;g<h.length;g++)h[g]&&Xt(h[g])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(Wm(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(B0(i[c][0],i[c][1],r));return s.concat(a).join(\" \").trim()}var Yd=new Map;function B0(t,e,r){let n=JSON.stringify(e),o=t.indexOf(\":hover\")!==-1||n.indexOf(\":hover\")!==-1,s=o&&Zd(),i=(r?r+\"\u0001\":\"\")+t+n+(o&&!s?\"\u0002rawhover\":\"\"),a=Nr.get(i);if(a){let p=Yd.get(a);if(p)for(let m=0;m<p.length;m++)Xt(p[m]);return a}a=r?`_${r}_c${yc(i)}`:`_c${yc(i)}`;let c=\"\",l=[],f=p=>typeof p==\"string\"&&(p.indexOf(\"{\")!==-1||p.indexOf(\"}\")!==-1),u=(p,m)=>{let b=\"\";for(let x in m){let y=m[x];if(y!=null)if(typeof y==\"object\")u([...p,x],y);else{if(f(y))continue;b+=Sn(jr(x),y)}}b&&(p.length===0?c+=b:l.push({chain:p,body:b}))};u([],e);let d=p=>{if(!p.length)return`.${a}`;let m=p[0].split(\",\").map(b=>b.trim()).map(b=>b.includes(\"&\")?b.replace(/&/g,`.${a}`):b.startsWith(\":\")?`.${a}${b}`:`.${a} ${b}`);for(let b=1;b<p.length;b++){let x=p[b].split(\",\").map(_=>_.trim()),y=[];for(let _ of m)for(let v of x)v.includes(\"&\")?y.push(v.replace(/&/g,_)):v.startsWith(\":\")?y.push(_+v):y.push(_+\" \"+v);m=y}return m.join(\", \")},h=[];if(t.startsWith(\"@media\")||t.startsWith(\"@supports\")){if(c){let p=`${t}{.${a}{${c}}}`;h.push(p),Xt(p)}for(let p of l){let m=d(p.chain),b=ce(`${t}{${m}{${p.body}}}`,m,s);h.push(b),Xt(b)}return Yd.set(a,h),Nr.set(i,a),a}let g=d([t]);if(c){let p=ce(`${g}{${c}}`,g,s);h.push(p),Xt(p)}for(let p of l){let m=d([t,...p.chain]),b=ce(`${m}{${p.body}}`,m,s);h.push(b),Xt(b)}return Yd.set(a,h),Nr.set(i,a),a}function dt(t){if(Gm(),typeof t==\"string\"){Xt(t);return}let e=Zd(),r=Object.keys(t),n=o=>{let s=o.match(/max-width:\\s*(\\d+)/);return s?parseInt(s[1]):0};r.sort((o,s)=>{let i=o.startsWith(\"@media\"),a=s.startsWith(\"@media\");return!i&&!a?0:i?a?n(s)-n(o):1:-1});for(let o of r){let s=t[o];if(o.startsWith(\"@media\")||o.startsWith(\"@supports\"))for(let i in s){let a=s[i];if(typeof a==\"object\"&&a!==null){let c=\"\";for(let l in a){let f=l.startsWith(\"--\")?l:jr(l);c+=Sn(f,a[l])}Xt(ce(`${o}{${i}{${c}}}`,i,e))}else{let c=i.startsWith(\"--\")?i:jr(i);Xt(`${o}{${Sn(c,a)}}`)}}else{let i=\"\",a=!1;for(let c in s){let l=s[c];if(typeof l==\"object\"&&l!==null)a=!0;else{let f=c.startsWith(\"--\")?c:jr(c);i+=Sn(f,l)}}if(i&&Xt(ce(`${o}{${i}}`,o,e)),a){let c=[],l=[];for(let f in s)typeof s[f]==\"object\"&&s[f]!==null&&(f.startsWith(\"@media\")||f.startsWith(\"@supports\")?c.push(f):l.push(f));c.sort((f,u)=>{let d=h=>{let g=h.match(/max-width:\\s*(\\d+)/);return g?parseInt(g[1]):0};return d(u)-d(f)});for(let f of l)dt({[`${o} ${f}`]:s[f]});for(let f of c)dt({[f]:{[o]:s[f]}})}}}}function wn(t,e){let r=\"\";for(let n in e){let o=\"\";for(let s in e[n])o+=Sn(jr(s),e[n][s]);r+=`${n}{${o}}`}return Xt(`@keyframes ${t}{${r}}`),t}function Ym(){Nr.clear(),Km=null}function Qd(){return Nr.size}O();var Lp={};D(Lp,{DELEGATED_EVENTS:()=>En,LIFECYCLE_EVENTS:()=>lr,MIXINS:()=>xc,NON_BUBBLING_EVENTS:()=>_c,REGISTRY:()=>kt,SVG_TAGS:()=>Cn,addDelegatedEvent:()=>ni,addMethods:()=>$n,applyExtends:()=>On,cacheNode:()=>cr,create:()=>Jt,createHTMLNode:()=>vn,detectTag:()=>ar,dispose:()=>pr,flushMounts:()=>Ec,isSvgTag:()=>An,isValidTag:()=>kn,refreshContextProto:()=>kc,registerEvent:()=>Tn,remove:()=>Pn,removeDelegatedEvent:()=>oi,update:()=>Rn});var ep=\"http://www.w3.org/2000/svg\",Cn=new Set([\"svg\",\"path\",\"circle\",\"ellipse\",\"line\",\"polyline\",\"polygon\",\"rect\",\"g\",\"defs\",\"use\",\"symbol\",\"clipPath\",\"mask\",\"pattern\",\"image\",\"text\",\"tspan\",\"textPath\",\"marker\",\"linearGradient\",\"radialGradient\",\"stop\",\"filter\",\"feBlend\",\"feColorMatrix\",\"feComponentTransfer\",\"feComposite\",\"feConvolveMatrix\",\"feDiffuseLighting\",\"feDisplacementMap\",\"feFlood\",\"feGaussianBlur\",\"feImage\",\"feMerge\",\"feMergeNode\",\"feMorphology\",\"feOffset\",\"feSpecularLighting\",\"feTile\",\"feTurbulence\",\"animate\",\"animateMotion\",\"animateTransform\",\"set\",\"foreignObject\",\"desc\",\"title\",\"metadata\"]),V0=new Set([\"a\",\"abbr\",\"address\",\"area\",\"article\",\"aside\",\"audio\",\"b\",\"base\",\"bdi\",\"bdo\",\"blockquote\",\"body\",\"br\",\"button\",\"canvas\",\"caption\",\"cite\",\"code\",\"col\",\"colgroup\",\"data\",\"datalist\",\"dd\",\"del\",\"details\",\"dfn\",\"dialog\",\"div\",\"dl\",\"dt\",\"em\",\"embed\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hgroup\",\"hr\",\"i\",\"iframe\",\"img\",\"input\",\"ins\",\"kbd\",\"label\",\"legend\",\"li\",\"link\",\"main\",\"map\",\"mark\",\"menu\",\"meta\",\"meter\",\"nav\",\"noscript\",\"object\",\"ol\",\"optgroup\",\"option\",\"output\",\"p\",\"param\",\"picture\",\"pre\",\"progress\",\"q\",\"rp\",\"rt\",\"ruby\",\"s\",\"samp\",\"script\",\"search\",\"section\",\"select\",\"slot\",\"small\",\"source\",\"span\",\"strong\",\"style\",\"sub\",\"summary\",\"sup\",\"table\",\"tbody\",\"td\",\"template\",\"textarea\",\"tfoot\",\"th\",\"thead\",\"time\",\"title\",\"tr\",\"track\",\"u\",\"ul\",\"var\",\"video\",\"wbr\",\"string\",\"fragment\",\"shadow\"]);function kn(t){return V0.has(t)||Cn.has(t)}function An(t){return Cn.has(t)}function ar(t){let{tag:e,key:r}=t;if(typeof e==\"function\")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<\"u\"&&console.error&&console.error(`[smbls] \\`tag:\\` factory threw on \"${r||\"<anon>\"}\" \\u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=r),typeof e==\"string\"&&kn(e))return e;if(!r||typeof r!=\"string\")return\"div\";let n=new Set([\"html\",\"head\",\"body\",\"meta\",\"link\",\"script\",\"style\",\"title\",\"base\",\"noscript\",\"template\",\"th\",\"tr\",\"td\",\"thead\",\"tbody\",\"tfoot\",\"caption\",\"col\",\"colgroup\"]),o=r.toLowerCase();return o.includes(\".\")&&(o=o.split(\".\")[0]),o.includes(\"_\")&&(o=o.split(\"_\")[0]),kn(o)&&!n.has(o)?o:\"div\"}var Xm={};function vn(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t===\"string\")return r.createTextNode(e?.text||\"\");if(t===\"fragment\")return r.createDocumentFragment();if(An(t)){let n=e?.parent;if(t===\"svg\"||n?.node?.namespaceURI===ep)return r.createElementNS(ep,t);if(t!==\"svg\")return r.createElement(\"div\")}return r.createElement(t)}function cr(t){let e=t.tag=ar(t),n=An(e)&&(e===\"svg\"||t.parent?.node?.namespaceURI===ep)?\"svg:\"+e:e,o=t?.context?.document||globalThis.document,s=Xm[n];if(s||(s=Xm[n]=vn(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?vn(e,t):s.cloneNode(!0);return e===\"string\"&&(i.nodeValue=t.text||\"\"),i}var kt=new Set([\"extends\",\"children\",\"content\",\"childrenAs\",\"childExtends\",\"childExtendsRecursive\",\"childProps\",\"inheritParentProps\",\"state\",\"if\",\"define\",\"deps\",\"tag\",\"attr\",\"style\",\"text\",\"html\",\"value\",\"data\",\"classlist\",\"class\",\"scope\",\"root\",\"context\",\"$router\",\"routes\",\"fetch\",\"variables\",\"query\",\"key\",\"component\",\"preventContentUpdate\",\"preventContentRecreate\",\"subscribeTo\",\"autoGrow\",\"__name\",\"__ref\",\"__hash\",\"__text\",\"parent\",\"node\"]),xc={text:\"text\",html:\"html\",style:\"style\",attr:\"attr\",data:\"data\",classlist:\"classlist\",state:\"state\",scope:\"scope\"},lr=new Set([\"start\",\"init\",\"complete\",\"attachNode\",\"stateInit\",\"stateCreated\",\"beforeUpdate\",\"update\",\"afterUpdate\",\"beforeClassAssign\",\"lazyLoad\",\"render\",\"renderRouter\",\"done\",\"create\",\"frame\",\"mounted\",\"contentUpdate\",\"startUpdate\",\"stateUpdate\",\"beforeStateUpdate\",\"initInspect\",\"initSync\",\"beforeRemove\",\"remove\"]),_c=new Set([\"load\",\"error\",\"abort\",\"scroll\",\"canplay\",\"canplaythrough\",\"ended\",\"pause\",\"play\",\"playing\",\"ratechange\",\"seeked\",\"seeking\",\"stalled\",\"suspend\",\"timeupdate\",\"volumechange\",\"waiting\",\"durationchange\",\"loadeddata\",\"loadedmetadata\",\"progress\",\"emptied\",\"resize\"]),Jm=new Set([\"wheel\",\"mousewheel\",\"touchstart\",\"touchmove\",\"touchend\",\"touchcancel\"]),En=new Set([\"click\",\"dblclick\",\"mousedown\",\"mouseup\",\"mousemove\",\"mouseenter\",\"mouseleave\",\"mouseover\",\"mouseout\",\"pointerdown\",\"pointerup\",\"pointermove\",\"pointerenter\",\"pointerleave\",\"pointerover\",\"pointerout\",\"touchstart\",\"touchend\",\"touchmove\",\"keydown\",\"keyup\",\"keypress\",\"input\",\"change\",\"submit\",\"reset\",\"focus\",\"blur\",\"focusin\",\"focusout\",\"wheel\",\"contextmenu\",\"drag\",\"dragstart\",\"dragend\",\"dragenter\",\"dragleave\",\"dragover\",\"drop\"]);var rp=new WeakMap,U0={passive:!0},z0={passive:!0,capture:!0},np=(t,e)=>Jm.has(t)?e?z0:U0:e||!1;function Qm(t){let e=rp.get(t);return e||(e={handlers:new Map,installed:new Set},rp.set(t,e)),e}function W0(t,e){let r=Qm(e);if(r.installed.has(t))return;r.installed.add(t);let n=t===\"focus\"||t===\"blur\"||t===\"focusin\"||t===\"focusout\"||t===\"mouseenter\"||t===\"mouseleave\",o=t===\"mouseenter\"||t===\"mouseleave\";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let a=r.handlers.get(t);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},np(t,n))}function ni(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Qm(n);W0(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function oi(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=rp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function Zm(t){return En.has(t)&&!lr.has(t)}function Tn(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&rt(s);try{let l=r.call(e,c,e,e.state,o);if(l&&typeof l.then==\"function\"){l.catch(f=>{e.error=f,console.error(\"[DOMQL] Async event error:\",f)}).finally(()=>{s&&J()});return}}catch(l){if(e.error=l,console.error(\"[DOMQL] Event error:\",l),o?.strictMode)throw l}s&&J()},a=_c.has(t);if(!a&&Zm(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;ni(t,n,i,c)}else n.addEventListener(t,i,np(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&Zm(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;oi(t,n,c)}else n.removeEventListener(t,i,np(t,!1))})}function ty(t){let e=[];return t.extends&&(Array.isArray(t.extends)?e.push(...t.extends):e.push(t.extends)),t.extend&&(Array.isArray(t.extend)?e.push(...t.extend):e.push(t.extend)),e}function On(t,e,r){let n=ty(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=ey(n[i],s);a&&a!==e&&ry(t,a,r,new Set([e]))}}function ey(t,e){if(typeof t==\"string\"){if(t.includes(\">\")){let r=t.split(\">\").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t==\"object\"&&t!==null?t:null}function ry(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=ty(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=ey(o[a],i);c&&ry(t,c,r,n)}}for(let s in e){if(s===\"extends\"||s===\"extend\")continue;let i=e[s];t[s]===void 0?i&&typeof i==\"object\"&&!Array.isArray(i)&&typeof i!=\"function\"?t[s]={...i}:t[s]=i:typeof t[s]==\"object\"&&typeof i==\"object\"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=ny(t[s],i):t[s]=i}}function ny(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=ny(o,s):r[n]=s}return r}tn();O();var H0=[\"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\"],Sc={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\"]},sy=[\"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\"],ur=t=>t.startsWith(\"aria\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"aria-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):t.startsWith(\"data\")&&t.length>4&&t.charCodeAt(4)>=65&&t.charCodeAt(4)<=90?\"data-\"+t.charAt(4).toLowerCase()+t.slice(5).replace(/([A-Z])/g,e=>\"-\"+e.toLowerCase()):iy(t),q0=new Set([\"tabIndex\",\"readOnly\",\"maxLength\",\"minLength\",\"autoComplete\",\"autoFocus\",\"autoPlay\",\"contentEditable\",\"spellCheck\",\"colSpan\",\"rowSpan\",\"srcSet\",\"crossOrigin\",\"accessKey\",\"inputMode\",\"enterKeyHint\",\"formAction\",\"noValidate\"]),iy=t=>q0.has(t)?t.toLowerCase():null,K0=new Set([\"draggable\",\"contenteditable\",\"spellcheck\",\"autocorrect\"]),wc=t=>typeof t==\"string\"&&(K0.has(t)||t.startsWith(\"aria-\")),si=(t,e)=>e!==!0&&e!==!1?e:wc(t)?e?\"true\":\"false\":e===!0?\"\":e,dr=(t,e)=>e.startsWith(\"aria-\")||e.startsWith(\"data-\")||ur(e)||Sc.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Sc,t)?Sc[t].includes(e):!1,ip=t=>{if(!S(t))return!1;let e=t.toLowerCase();return sy.includes(e)},G0=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o===\"aria\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])Et(e[o][a])&&(n[\"aria-\"+a]=e[o][a]);continue}if(o===\"data\"&&e[o]&&typeof e[o]==\"object\"){for(let a in e[o])if(Et(e[o][a])){let c=a.replace(/([A-Z])/g,l=>\"-\"+l.toLowerCase());n[\"data-\"+c]=e[o][a]}continue}let s=dr(t,o),i=ip(o);if(Et(e[o])&&(s||i)){let a=ur(o)||o;n[a]=e[o]}}return n},Y0=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);if(t.aria&&typeof t.aria==\"object\")for(let n in t.aria){let o=t.aria[n];typeof o==\"function\"&&(r[\"aria-\"+n]=o(e,e.state,e.context))}if(t.data&&typeof t.data==\"object\")for(let n in t.data){let o=t.data[n];if(typeof o==\"function\"){let s=n.replace(/([A-Z])/g,i=>\"-\"+i.toLowerCase());r[\"data-\"+s]=o(e,e.state,e.context)}}return r},fr=(t,e)=>{let r=t.call(\"exec\",e,t);if(r)return S(r)&&r.includes(\"{{\")&&(r=t.call(\"replaceLiteralsWithObjectFields\",r)),r},op=(t,e)=>{let r=(t.preSrc||\"\")+(fr(t,e)||\"\");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith(\"/assets/\")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith(\"/files/\")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},sp={src:t=>op(t,t.src),href:t=>fr(t,t.href),action:t=>fr(t,t.action),poster:t=>op(t,t.poster),data:t=>fr(t,t.data)},ap=t=>{let e=t.tag||\"div\",r={};for(let n in sp)if(t[n]!==void 0&&dr(e,n)){let o=sp[n](t);o!==void 0&&(r[n]=o)}return r},oy=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},X0=(t,e,r)=>{if(t===\"$\"){let o=oy(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=oy(e,r);o!==void 0&&(n=o)}return t===\".\"?!!n:!n},J0=new Set([\"$\",\".\",\"!\"]),Z0=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(X0(a,c,f))return C(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!J0.has(i))continue;let a=t[s];if(!a||typeof a!=\"object\")continue;let c=s.slice(1);for(let l in a){if(r&&l in r)continue;if(l===\"aria\"&&a[l]&&typeof a[l]==\"object\"){for(let h in a[l])o(\"aria-\"+h,a[l][h],i,c);continue}if(l===\"data\"&&a[l]&&typeof a[l]==\"object\"){for(let h in a[l]){let g=h.replace(/([A-Z])/g,p=>\"-\"+p.toLowerCase());o(\"data-\"+g,a[l][h],i,c)}continue}let f=dr(e,l),u=ip(l);if(!f&&!u)continue;let d=ur(l)||l;o(d,a[l],i,c)}}return n};function Rn(t={},e={}){let r=this,n=r.__ref;if(!n)return;if((typeof t==\"string\"||typeof t==\"number\")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate==\"function\"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;let o=!t||Object.keys(t).length===0;if(Ee(()=>{if(t.state&&st(r.state)&&r.state.$update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag===\"string\"?r.node.nodeValue=t.text??\"\":r.node.textContent=t.text??\"\")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let s in t.style){let i=t.style[s];if(i==null)continue;let a=s.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase()),c=String(i).replace(/\\s*!important\\s*$/,\"\");r.node.style.setProperty(a,c,\"important\")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let s in t.attr){let i=t.attr[s];i==null||i===!1?r.node.removeAttribute(s):typeof i!=\"function\"&&typeof i!=\"object\"&&r.node.setAttribute(s,si(s,i))}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let s in t.data)r.node.dataset[s]=t.data[s];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let s in t){if(kt.has(s)||s===\"state\")continue;let i=t[s],a=r[s];if(a&&a.__ref&&typeof a.update==\"function\")a.update(i,e);else if(typeof i==\"object\"&&i!==null){let c=s.charCodeAt(0);c>=65&&c<=90&&Jt(i,r,s,e)}else s!==\"text\"&&s!==\"html\"&&s!==\"style\"&&s!==\"attr\"&&s!==\"data\"&&(r[s]=i)}}),r.node&&o&&n.__effects&&n.__effects.length)for(let s=0;s<n.__effects.length;s++){let i=n.__effects[s];i&&!i._disposed&&!i._isSubscribeToEffect&&typeof i._execute==\"function\"&&i._execute()}else if(r.node&&n.__conditionalRunners)for(let s of n.__conditionalRunners)s();return xt(\"update\",r),!e.preventListeners&&typeof r.onUpdate==\"function\"&&r.onUpdate(r,r.state,r.context,e),r}function pr(t){if(!t)return;let e=t.__ref;if(!e)return;try{typeof t.onBeforeRemove==\"function\"&&t.onBeforeRemove(t,t.state,t.context)}catch(n){console.error(\"[smbls] onBeforeRemove error:\",n)}if(e.__effects){for(let n=0;n<e.__effects.length;n++)e.__effects[n].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let n=0;n<e.__eventCleanup.length;n++)e.__eventCleanup[n]();e.__eventCleanup.length=0}if(e.__children){for(let n=0;n<e.__children.length;n++){let o=e.__children[n],s=t[o];s&&s.__ref&&pr(s)}e.__children.length=0}t.node?.parentNode?t.node.remove():t.tag===\"fragment\"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r==\"function\"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let n=t.parent.__ref.__children.indexOf(t.key);n!==-1&&t.parent.__ref.__children.splice(n,1),delete t.parent[t.key]}try{typeof t.onRemove==\"function\"&&t.onRemove(t)}catch(n){console.error(\"[smbls] onRemove error:\",n)}t.node=null,t.parent=null,t.__ref=null}function Pn(){pr(this)}O();O();O();var Q0=[\"ease\",\"linear\",\"ease-in\",\"ease-out\",\"ease-in-out\",\"step-start\",\"step-end\"],tk=[\"none\",\"forwards\",\"backwards\",\"both\"],ek=[\"normal\",\"reverse\",\"alternate\",\"alternate-reverse\"],rk=[\"running\",\"paused\"],nk=t=>/^[\\d.]+m?s$/.test(t),ok=0,ay=new Map,cp=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=ay.get(o);if(s)return s;let i=`smbls-anim-${ok++}`,a=wn(i,t);return ay.set(o,a),a}let n=r&&r[t];return w(n)?wn(t,n):t},sk=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\\s+/),o=null,s=[],i=null,a=null,c=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:nk(u)?s.push(u):Q0.includes(u)||u.startsWith(\"cubic-bezier\")||u.startsWith(\"steps(\")?i=u:u===\"infinite\"||/^\\d+$/.test(u)?a=u===\"infinite\"?u:Number(u):ek.includes(u)?c=u:tk.includes(u)?l=u:rk.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},lp={animation:(t,e)=>{if(S(t)&&t.includes(\" \")){let r=sk(t,e);return{animationName:cp(r.name||t,e),animationDuration:r.durations[0]||Mt(e.animationDuration||\"A\").timing,animationDelay:r.durations[1]||Mt(e.animationDelay||\"0s\").timing,animationTimingFunction:r.timingFunction||Yt(e.animationTimingFunction||\"ease\"),animationFillMode:r.fillMode||e.animationFillMode||\"both\",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:cp(t,e),animationDuration:Mt(e.animationDuration||\"A\").timing,animationDelay:Mt(e.animationDelay||\"0s\").timing,animationTimingFunction:Yt(e.animationTimingFunction||\"ease\"),animationFillMode:e.animationFillMode||\"both\",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:cp(t,e)}),animationDuration:t=>({animationDuration:Mt(t).timing}),animationDelay:t=>({animationDelay:Mt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Yt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var fp={show:t=>t?void 0:{display:\"none !important\"},hide:t=>t?{display:\"none !important\"}:void 0,height:(t,e)=>M(\"height\",t,e),width:(t,e)=>M(\"width\",t,e),boxSizing:t=>gt(t)?{boxSizing:\"border-box\"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"height\",e),...lt(\"width\",r||e)}},inlineSize:(t,e)=>M(\"inlineSize\",t,e),blockSize:(t,e)=>M(\"blockSize\",t,e),minWidth:(t,e)=>M(\"minWidth\",t,e),maxWidth:(t,e)=>M(\"maxWidth\",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"minWidth\",e),...lt(\"maxWidth\",r||e)}},minHeight:(t,e)=>M(\"minHeight\",t,e),maxHeight:(t,e)=>M(\"maxHeight\",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"minHeight\",e),...lt(\"maxHeight\",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...M(\"inlineSize\",e),...M(\"blockSize\",r||e)}},minBlockSize:(t,e)=>M(\"minBlockSize\",t,e),minInlineSize:(t,e)=>M(\"minInlineSize\",t,e),maxBlockSize:(t,e)=>M(\"maxBlockSize\",t,e),maxInlineSize:(t,e)=>M(\"maxInlineSize\",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"minInlineSize\",e),...lt(\"minBlockSize\",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"maxInlineSize\",e),...lt(\"maxBlockSize\",r||e)}},borderWidth:(t,e)=>M(\"borderWidth\",t,e),borderTopWidth:(t,e)=>M(\"borderTopWidth\",t,e),borderRightWidth:(t,e)=>M(\"borderRightWidth\",t,e),borderBottomWidth:(t,e)=>M(\"borderBottomWidth\",t,e),borderLeftWidth:(t,e)=>M(\"borderLeftWidth\",t,e),padding:(t,e)=>M(\"padding\",t,e),scrollPadding:(t,e)=>M(\"scrollPadding\",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"paddingInlineStart\",e),...lt(\"paddingInlineEnd\",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"paddingBlockStart\",e),...lt(\"paddingBlockEnd\",r||e)}},paddingTop:(t,e)=>M(\"paddingBlockStart\",t,e),paddingBottom:(t,e)=>M(\"paddingBlockEnd\",t,e),paddingLeft:(t,e)=>M(\"paddingInlineStart\",t,e),paddingRight:(t,e)=>M(\"paddingInlineEnd\",t,e),paddingBlockStart:(t,e)=>M(\"paddingBlockStart\",t,e),paddingBlockEnd:(t,e)=>M(\"paddingBlockEnd\",t,e),paddingInlineStart:(t,e)=>M(\"paddingInlineStart\",t,e),paddingInlineEnd:(t,e)=>M(\"paddingInlineEnd\",t,e),margin:(t,e)=>M(\"margin\",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(\" \");return{...lt(\"marginInlineStart\",e),...lt(\"marginInlineEnd\",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(\" \");return{...lt(\"marginBlockStart\",r),...lt(\"marginBlockEnd\",n||r)}},marginTop:(t,e)=>M(\"marginBlockStart\",t,e),marginBottom:(t,e)=>M(\"marginBlockEnd\",t,e),marginLeft:(t,e)=>M(\"marginInlineStart\",t,e),marginRight:(t,e)=>M(\"marginInlineEnd\",t,e),marginInlineStart:(t,e)=>M(\"marginInlineStart\",t,e),marginInlineEnd:(t,e)=>M(\"marginInlineEnd\",t,e),marginBlockStart:(t,e)=>M(\"marginBlockStart\",t,e),marginBlockEnd:(t,e)=>M(\"marginBlockEnd\",t,e),gap:t=>({gap:pc(t)}),columnGap:(t,e)=>ae(e,\"columnGap\",t),rowGap:(t,e)=>ae(e,\"rowGap\",t),flexWrap:t=>({display:\"flex\",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(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(!S(t))return;let[e,r]=t.split(\" \");return{display:\"flex\",alignItems:e,justifyContent:r}},round:(t,e)=>ei(t??e.borderRadius,e,\"round\"),borderRadius:(t,e)=>ei(t??e.round,e,\"borderRadius\")};var up={fontSize:t=>Vs(t)||t,fontFamily:t=>({fontFamily:js(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'\"wght\" '+t}),lineClamp:t=>{if(t!=null)return t===\"none\"?{WebkitLineClamp:\"none\",lineClamp:\"none\"}:{display:\"-webkit-box\",WebkitBoxOrient:\"vertical\",WebkitLineClamp:String(t),lineClamp:String(t),overflow:\"hidden\"}}};var dp={overflow:t=>({overflow:t}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var pp={inset:(t,e)=>{if(e.call(\"isNumber\",t))return{inset:t};if(e.call(\"isString\",t))return{inset:t.split(\" \").map(r=>pt(r,\"k\").k).join(\" \")}},left:t=>pt(t,\"left\"),top:t=>pt(t,\"top\"),right:t=>pt(t,\"right\"),bottom:t=>pt(t,\"bottom\"),verticalInset:t=>{if(typeof t!=\"string\")return;let e=t.split(\" \").map(r=>pt(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=>pt(r,\"k\").k);return{left:e[0],right:e[1]||e[0]}}};O();var Qt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r===\"auto\"?null:r},Zt=(t,e)=>{if(e==null||e===\"\")return;if(!w(e))return{[t]:e};let r={},n=!1;for(let o in e){let s=e[o];s==null||s===\"\"||w(s)||(r[o]={[t]:s},n=!0)}return n?r:void 0},hp={theme:(t,e)=>{if(t)return e.themeModifier?Gt(t,`@${e.themeModifier}`):Gt(t)},color:(t,e)=>{let r=Qt(e);if(t)return Zt(\"color\",bt(t,r))},background:(t,e)=>{let r=Qt(e);if(t)return S(t)&&t.includes(\"gradient\")&&t.includes(\"(\")?{background:Qs(t,r)}:Zt(\"background\",bt(t,r))},backgroundColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"backgroundColor\",bt(t,r))},backgroundImage:(t,e,r,n)=>{let o=Qt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return Zt(\"backgroundImage\",dc(t,o))},textStroke:t=>({WebkitTextStroke:fc(t)}),outline:t=>({outline:Ce(t)}),outlineOffset:(t,e)=>M(\"outlineOffset\",t,e),border:t=>({border:Ce(t)}),borderColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"borderColor\",bt(t,r))},borderTopColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"borderTopColor\",bt(t,r))},borderBottomColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"borderBottomColor\",bt(t,r))},borderLeftColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"borderLeftColor\",bt(t,r))},borderRightColor:(t,e)=>{let r=Qt(e);if(t)return Zt(\"borderRightColor\",bt(t,r))},borderLeft:t=>({borderLeft:Ce(t)}),borderTop:t=>({borderTop:Ce(t)}),borderRight:t=>({borderRight:Ce(t)}),borderBottom:t=>({borderBottom:Ce(t)}),shadow:(t,e)=>{let r=Qt(e);if(t)return Zt(\"boxShadow\",uc(t,r))},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split(\"!importan\"),o=Qt(e),s=n?\" !important\":\"\",i=Zs(r.trim(),o);return S(i)?{boxShadow:i+s}:Zt(\"boxShadow\",i)},textShadow:(t,{context:e})=>Zt(\"textShadow\",Zs(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:Ce(t)})};var ii={transition:t=>({transition:hc(t)}),transitionDuration:t=>({transitionDuration:ti(t)}),transitionDelay:t=>({transitionDelay:ti(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Yt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var gp={flow:(t,e)=>{let r=e.reverse;if(!S(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||\"\")}},wrap:(t,e)=>({display:\"flex\",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(\" \");return{display:\"flex\",alignItems:r,justifyContent:n}}};var mp={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 ft={...lp,...fp,...up,...dp,...pp,...hp,...ii,...gp,...mp};var ht=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\",\"overscrollBehavior\",\"overscrollBehaviorX\",\"overscrollBehaviorY\",\"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\",\"scrollbarGutter\",\"scrollbarWidth\",\"shapeImageThreshold\",\"shapeMargin\",\"shapeOutside\",\"tabSize\",\"tableLayout\",\"textAlign\",\"textAlignLast\",\"textDecoration\",\"textDecorationColor\",\"textDecorationLine\",\"textDecorationSkipInk\",\"textDecorationStyle\",\"textDecorationThickness\",\"textIndent\",\"textOverflow\",\"textShadow\",\"textTransform\",\"textUnderlineOffset\",\"top\",\"touchAction\",\"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\"]);O();var ik=/^\\[data-theme=(?:\"([^\"]+)\"|'([^']+)')\\]$/,ak=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=jt(e,r);if(!s)return{[t]:i};if(s===\"print\")return{\"@media print\":i};if(s[0]===\"(\")return{[`@media screen and ${s}`]:i};let a=s.match(ik),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c===\"dark\"||c===\"light\"){let f=n.designSystem?.scopeSelector||\":root\",u=f===\":root\"?\":root:not([data-theme])\":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},cy=(t,e,r)=>({[t]:jt(e,r)}),ai=(t,e,r)=>{let n=`&${t}`,o=jt(e,r);if(t.includes(\",\")&&o){let s={},i={};for(let a in o)typeof o[a]==\"object\"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(\",\").map(l=>l.trim()),c={};Object.keys(s).length&&(c[n]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(\", \");c[f]=i[l]}return c}}return{[n]:o}},yp=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return C(r)?r.call(e,e):!!r},ck=(t,e,r)=>{let n=t.slice(1),o=yp(n,r);if(o===void 0&&(o=!!r[n]),!!o)return jt(e,r)},lk=(t,e,r)=>({[t]:e}),fk=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=yp(n,r);s!==void 0&&(o=s)}if(o)return jt(e,r)},uk=(t,e,r)=>{let n=t.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]==\"function\")try{o=r[n](r,r.state,r.context)}catch{}else{let s=yp(n,r);s!==void 0&&(o=s)}if(!o)return jt(e,r)},bp=(t,e)=>jt(t,e),xp={\"@\":ak,\":\":ai,\"[\":ai,\"*\":ai,\"+\":ai,\"~\":ai,\"&\":cy,\">\":cy,$:ck,\"-\":lk,\".\":fk,\"!\":uk};var _p=Ge(),ly=(t,e,r)=>{let n=e?.context?.designSystem;n&&rt(n);try{let o={},s={},i=(a,c)=>{if(r.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(a===\"class\"&&e.call(\"isString\",t.class)){let l=c.split(\" \");if(l.length){let f=e.context.designSystem.class,u=l.reduce((d,h)=>it(d,f[h]),{});o.designSystemClass=u}}else if(a===\"true\"){let l=et(c,e);it(o,bp(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=C(l)?l(e,e.state,e.context):l;f&&i(a,f),!_p&&w(o[a])&&(o[a].label=a)}else if(ft[a]){let l=et(c,e);T(l)&&(l=l.reduce((u,d)=>it(u,d),{}));let f=ft[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,d)=>it(u,d),{})),f&&i(a,f),!_p&&w(o[a])&&(o[a].label=a)}else if(ht.has(a)){let l=et(c,e);typeof l==\"string\"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!_p&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&J()}},fy=(t,e)=>{let r={};for(let n in t){let o=xp[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\"?Ot(r[i],s[i]):r[i]=s[i])}}return r},jt=(t,e,r={unpack:!0})=>{let[n,o]=ly(t,e,r),s=fy(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return _o(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};O();var uy=t=>{if(w(t))return jt(t,t)},pk=(t,e)=>{let r=uy(t);return typeof e==\"function\"?e(r):le(r)};O();function wp(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e===\"warn\"&&!n.shouldCapture(\"warnings\")||e===\"error\"&&!n.shouldCapture(\"errors\"))return;let o=r.map(s=>s?.message||(typeof s==\"string\"?s:null)).filter(Boolean).join(\" \");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e===\"error\"?\"error\":\"warning\",level:e,hook:e===\"error\"?\"el.error\":\"el.warn\",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}var dy=new Set;function hk(t,e,r){let n=String(e);if(dy.has(n))return;dy.add(n);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join(\".\"):t?.key!=null?String(t.key):\"(unknown element)\",i=r!=null?`resolves to a non-function (${typeof r}) \\u2014 it cannot be called`:\"is not registered in context.methods, context.functions, or context.utils, and is not an element method\",a=`[smbls] el.call('${n}') at <${s}>: \"${n}\" ${i}. Returning undefined (unchanged behavior) \\u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;wp(t,\"error\",[a]),console.error(a)}function gk(...t){return wp(this,\"warn\",t),is.apply(this,t)}function mk(...t){return wp(this,\"error\",t),Ir.apply(this,t)}var py={update:Rn,remove:Pn,getDB:fs,getQuery:us,getRootData:ns,getChildren:Zo,getPath:Qo,nextElement:as,previousElement:cs,verbose:sn,warn:gk,error:mk,variables:ls,spotByPath:Jo,set(t,e){let r=this.__ref;if(r){if(r.__setLocked){r.__setQueued={content:t,options:e};return}r.__setLocked=!0}try{if(this.removeContent(),t!=null){let n=this.context?.__create;n&&n(t,this,\"content\",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(r){r.__setLocked=!1;let n=r.__setQueued;n&&(r.__setQueued=null,this.set(n.content,n.options))}}},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t==\"function\"){if(t(e))return e}else if(typeof t==\"string\"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t==\"function\"){if(t(n))return n}else if(typeof t==\"string\"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t==\"function\"?t(o)&&e.push(o):typeof t==\"string\"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:rs,getRootState:es,getRootContext:os,getContext:ss,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o===\"parent\"||o===\"node\"||o===\"__ref\")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!=\"function\"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>\"-\"+s.toLowerCase()),o=String(r).replace(/\\s*!important\\s*$/,\"\");this.node.style.setProperty(n,o,\"important\")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n==\"function\")return n.call(this,...e);ne()&&hk(this,t,n)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf(\"content\");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Sp=new WeakMap;function yk(t){if(!t)return py;let e=Sp.get(t);if(e)return e;e=Object.create(py);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Sp.set(t,e),e}function $n(t){let e=yk(t.context);Object.setPrototypeOf(t,e)}function kc(t){if(!t)return!1;let e=Sp.get(t);if(!e)return!1;let r=t.methods;if(!r)return!1;for(let n in r)e[n]=r[n];return!0}O();tn();var Ep={};D(Ep,{STATE_METHODS:()=>hy,applyInitialState:()=>Cc,applyStateMethods:()=>Bt,callStateMethod:()=>ci,createState:()=>vp,isTracking:()=>Ap,useHostState:()=>Cp});var hy=new Set([\"update\",\"parse\",\"clean\",\"destroy\",\"create\",\"add\",\"toggle\",\"remove\",\"set\",\"replace\",\"setByPath\",\"setPathCollection\",\"removeByPath\",\"removePathCollection\",\"getByPath\",\"reset\",\"apply\",\"applyReplace\",\"applyFunction\",\"quietUpdate\",\"quietReplace\",\"rootUpdate\",\"parentUpdate\",\"keys\",\"values\",\"__element\",\"__children\",\"parent\",\"root\"]),vc=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},fe=(t,e,r,{onlyIfAbsent:n}={})=>{vc(t,\"$\"+e,r),!(n&&Object.prototype.hasOwnProperty.call(t,e))&&vc(t,e,r)},ci=(t,e,...r)=>{if(!t)return;let n=t[\"$\"+e];if(typeof n==\"function\")return n.apply(t,r);let o=t[e];if(typeof o==\"function\")return o.apply(t,r)},Bt=(t,e)=>{if(st(e)){let o=e.__raw||e;fe(o,\"toggle\",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),fe(o,\"set\",function(s,i={}){return e.$clean({preventStateUpdate:!0}),typeof s==\"object\"&&s!==null&&e.$update(s,i),e},{onlyIfAbsent:!0}),fe(o,\"setByPath\",function(s,i,a={}){let c=s.split(\".\"),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),fe(o,\"getByPath\",function(s){let i=s.split(\".\"),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),fe(o,\"removeByPath\",function(s,i={}){let a=s.split(\".\"),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),fe(o,\"reset\",function(s={}){let i=e.$parse();return e.$set(i,s)}),fe(o,\"apply\",function(s,i={}){if(typeof s==\"function\"){let a=s(e);return e.$update(a,i)}}),fe(o,\"applyFunction\",function(s,i={}){if(typeof s==\"function\")return s(e),e.$update(e.$parse(),i)}),fe(o,\"rootUpdate\",function(s,i={}){let a=e;for(;a?.parent&&st(a.parent);)a=a.parent;return ci(a,\"update\",s,i)}),fe(o,\"parentUpdate\",function(s,i={}){if(e.parent)return ci(e.parent,\"update\",s,i)}),fe(o,\"quietReplace\",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,\"root\")||Object.defineProperty(o,\"root\",{get:function(){let s=e,i=st(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,st(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!=\"object\")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!=\"object\")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!=\"function\")return e;let s=o(e);return s?e.$update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!=\"object\")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return r(),e}};for(let o in n)if(vc(e,\"$\"+o,n[o]),typeof e[o]!=\"function\"){if(Object.prototype.hasOwnProperty.call(e,o)){kr(o,\"\");continue}vc(e,o,n[o])}};var vp=function(t,e,r){return t.state=Cc(t,e,r),t.state},Cc=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Bt(t,s),s}if(typeof o==\"string\")return n&&(n.__state=o),n.__stateType=\"string\",bk(o,t,e);if(typeof o==\"number\"||typeof o==\"boolean\"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Lt({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Bt(t,s),s}if(typeof o==\"function\"&&(o=o(t,e?.state)||{}),typeof o==\"object\"&&!st(o)){n&&(n.__hasRootState=!0),o.isRootState&&n&&(n.__hasRootState=!0);let s=Lt({...o});if(s.__element=t,!Object.getOwnPropertyDescriptor(s,\"root\")){let i=e?.state?.root||e?.state||s;Object.defineProperty(s,\"root\",{get:()=>i,enumerable:!1,configurable:!0})}return e?.state&&(s.parent=e.state,e.state.__children&&(e.state.__children[t.key]=s)),Bt(t,s),typeof t.onStateCreated==\"function\"&&t.onStateCreated(t,s,t.context,r),s}return st(o)?(o.__element=t,o):e?.state||{}};function kp(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function bk(t,e,r){if(!r?.state)return{};if(t===\".\")return r.state;if(t.startsWith(\"../\")){let o=t.slice(3),s=r.state?.parent;return o&&s?kp(s,o):s??r.state??{}}if(t.startsWith(\"~/\")){let o=r.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?kp(o,s):o??{}}let n=kp(r.state,t);if(n&&typeof n==\"object\"&&!st(n)&&!Object.getOwnPropertyDescriptor(n,\"root\")){let o=r.state?.root||r.state;Object.defineProperty(n,\"root\",{get:()=>o,enumerable:!1,configurable:!0})}return n}var Cp=(t,e)=>{if(!t)return my;let r=_k(t,e);return!r||!r.state?my:wk(r.state)},Ap=()=>Sr()!=null,xk=128;function _k(t,e){let r=typeof e==\"function\"?e:typeof e==\"string\"?s=>!!s?.[e]:s=>!!s?.state,n=t,o=null;for(let s=0;s<xk&&n;s++){if(r(n)&&n.state)return n;if(n.state&&!o&&(o=n),!n.parent||n.parent===n)break;n=n.parent}return o}var Sk={get(t,e){return t[e]}},gy=new WeakMap,wk=t=>{let e=gy.get(t);return e||(e=new Proxy(t,Sk),gy.set(t,e)),e},my=new Proxy(Object.create(null),{get(){},has(){return!1}});var kk=1,Ac=[],Pp=!1;function vk(){Pp||(Pp=!0,typeof requestAnimationFrame==\"function\"?requestAnimationFrame(Ec):setTimeout(Ec,0))}function Ec(){if(Pp=!1,!Ac.length)return;let t=Ac.splice(0,Ac.length);for(let e=0;e<t.length;e++){let r=t[e];!r.node||!r.node.isConnected||Ne(\"Mounted\",r,r.__ref?.__mountOptions||{})}}function ky(t,e){typeof t.onMounted==\"function\"&&(t.__ref.__mountOptions=e,Ac.push(t),vk())}function yy(t,e){if(typeof t.onContentUpdate!=\"function\")return;t.context?.plugins?.length&&xt(\"contentUpdate\",t,e);let r=t.context?.designSystem;r&&rt(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&xt(\"error\",t,{hook:\"onContentUpdate\",error:n})||console.error('[DOMQL] Lifecycle \"onContentUpdate\" error:',n),t.context?.strictMode)throw n}finally{r&&J()}}function Dn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Ck(t){return t.charAt(2).toLowerCase()+t.slice(3)}function Ak(t){return t.toLowerCase()}function by(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function fi(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=fi(o,s):r[n]=s}return r}function Jt(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t==\"string\"||typeof t==\"number\")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${kk++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Jt);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let p=r.indexOf(\"_\");if(p>0){let m=r.substring(0,p),b=s.context?.components;b&&(b[m]||b[\"smbls.\"+m])?t={...t,extends:m}:b&&ne()&&/^[A-Z]\\w*_\\d+$/.test(r)&&console.warn(`[smbls] auto-extend: key \"${r}\" looks like a multi-instance (${m}_N) but neither \"${m}\" nor \"smbls.${m}\" is registered in context.components \\u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}On(s,t,n);let a=new Set([\"childProps\",\"attr\",\"style\",\"scope\",\"data\"]),c=s.props&&typeof s.props==\"object\"?s.props:null;for(let p in t){if(p===\"parent\"||p===\"node\"||p===\"__ref\"||p===\"extends\"||p===\"context\"||p===\"props\")continue;let m=t[p],b=s[p],x=b&&m&&typeof b==\"object\"&&typeof m==\"object\"&&!Array.isArray(b)&&!Array.isArray(m)&&typeof b!=\"function\"&&typeof m!=\"function\";x&&p.charCodeAt(0)>=65&&p.charCodeAt(0)<=90?s[p]=fi(b,m):x&&a.has(p)?s[p]={...b,...m}:x&&by(p)?s[p]=fi(b,m):s[p]=m}function l(p){for(let m in p){let b=p[m],x=s[m],y=x&&b&&typeof x==\"object\"&&typeof b==\"object\"&&!Array.isArray(x)&&!Array.isArray(b)&&typeof x!=\"function\"&&typeof b!=\"function\";y&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=fi(x,b):y&&a.has(m)?s[m]={...x,...b}:y&&by(m)?s[m]=fi(x,b):s[m]=b}}c&&l(c),t.props&&typeof t.props==\"object\"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope==\"object\"?s.scope:null,u=e?.scope,d=s.context&&typeof s.context.globalScope==\"object\"&&s.context.globalScope||null,h=u||d||null;if(t.scope!==void 0||f){let p={};f&&Object.assign(p,f),t.scope!==void 0&&Object.assign(p,t.scope),s.scope=ro(p,h)}else h&&(s.scope=h);if(t.if!==void 0&&(s.if=t.if),$n(s),Ek(s,e,t),s.if!=null){let p;if(typeof s.if==\"function\")try{p=s.if(s,s.state,s.context)}catch(m){if(p=!1,i.__ifError=m,typeof console<\"u\"&&console.warn){let b=s.key||s.tag||\"?\";console.warn(`[smbls] \\`if:\\` evaluator threw on ${b} \\u2014 treating as false:`,m?.message||m)}}else p=s.if;i.__if=!!p}if(i.__if)typeof s.if==\"function\"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof s.if==\"function\"&&Ay(s,i,s.if),s;s.tag||(s.tag=ar(s)),Ne(\"Init\",s,n);let g=s.node=cr(s);if(!g)return s;if(s.tag===\"fragment\"){let m=(s.context?.document||globalThis.document).createComment(\"\");g.appendChild(m),i.__fragmentAnchor=m}Ne(\"AttachNode\",s,n),g.setAttribute&&s.key&&g.setAttribute(\"data-key\",s.key),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),g.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==\":root\"&&s.context.key&&s.key===s.context.key&&g.setAttribute(\"data-smbls-app\",s.context.key),s.id&&g.setAttribute&&(g.id=s.id),Oy(s,n),Cy(s),$p(s),Ey(s),Mk(s);try{Ry(s,n)}catch(p){if(typeof console<\"u\"&&console.error){let m=s.__ref?.path?.join(\".\")||s.key||\"<root>\";console.error(`[smbls] createChildren failed at ${m}:`,p?.message||p,p?.stack?`\n`+p.stack.split(`\n`).slice(0,6).join(`\n`):\"\")}}if(Dp(s,!0),Py(s,e,o),typeof s.html==\"function\"&&s.node&&!s.node.innerHTML){let p=s.context?.designSystem;p&&rt(p);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!=\"function\"&&(s.node.innerHTML=m)}catch{}finally{p&&J()}}if(Ne(\"Create\",s,n),Ne(\"Complete\",s,n),Ne(\"Render\",s,n),Ne(\"RenderRouter\",s,n),ky(s,n),typeof s.onFrame==\"function\"){let p=s.onFrame,m=s.context?.designSystem,b=()=>{if(s.node){if(s.node.isConnected){m&&rt(m);try{p(s,s.state,s.context)}catch(x){console.error(\"[DOMQL] onFrame error:\",x)}finally{m&&J()}}requestAnimationFrame(b)}};requestAnimationFrame(b)}return s}function Ek(t,e,r){let n=!e,o=r.state&&typeof r.state==\"object\"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!st(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,Bt(t,t.state);else if(t.context?.state){let a=t.context.state,c={...a},l=t.context?.polyglot;if(l?.translations){let f=a.lang||l.defaultLang||\"en\",u=l.translations[f];if(u&&typeof u==\"object\")for(let h in u)c[h]===void 0&&(c[h]=u[h]);let d=new Set(l.languages||[]);for(let h in l.translations)!d.has(h)&&c[h]===void 0&&(c[h]=l.translations[h])}t.state=st(c)?c:Lt(c),t.state.__element=t,t.state.root=t.state,Bt(t,t.state)}else t.state={},Object.defineProperty(t.state,\"root\",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Bt(t,t.state);return}if(typeof i==\"string\"){if(t.state=vy(i,e),t.state&&typeof t.state==\"object\"&&!st(t.state)){let a=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,\"root\",{value:a,enumerable:!1,configurable:!0,writable:!0})}Bt(t,t.state);return}if(typeof i==\"function\"){let a=i(t,e?.state);t.state=st(a)?a:Lt(a||{})}else st(i)?t.state=i:t.state=Lt({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Bt(t,t.state)}function Tp(t,e){if(!e)return t;let r=e.split(\"/\"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function vy(t,e){if(!e)return{};if(t===\".\")return e.state||{};if(t.startsWith(\"../\")){let o=t.slice(3);return o?Tp(e.state,o):e.state??{}}if(t.startsWith(\"~/\")){let o=e.state?.root||e.state,s=t.slice(2);return s?Tp(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Tp(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||\"en\",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function Tk(t){let e=t.__ref,r=t.tag||\"div\",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let a=s[i];if(typeof t[a]!=\"function\"||kt.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Dn(a)||ft[a]||ht&&ht.has(a)||dr(r,a)||o.push({prop:a,fn:t[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];e.__exec[a]=c,Object.defineProperty(t,a,{get(){n&&rt(n);try{return c(t,t.state,t.context)}catch{return}finally{n&&J()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Ok(t,e){if(!(!Array.isArray(e)||e.length===0))for(let r=0;r<e.length;r++){let n=e[r];try{typeof n==\"function\"?n(t,t.state,t.context):typeof n==\"string\"&&t.state?.[n]}catch{}}}function It(t,e,r){return!Array.isArray(e)||e.length===0?r:function(...n){return Ok(t,e),r.apply(this,n)}}function li(t,e){if(!(!t||Array.isArray(t)||typeof t!=\"object\"))return t[e]}function Cy(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect);if(Tk(t),typeof t.text==\"function\"){let s=t.text,i=It(t,t.textDeps,s),a=tt(()=>{if(!r.contentManaged)try{let c=i(t,t.state,t.context);t.node&&c!=null&&typeof c!=\"function\"&&typeof c!=\"object\"&&(typeof c==\"string\"&&c.includes(\"{{\")&&(c=Cr.call(t,c,t.state)),t.tag===\"string\"?t.node.nodeValue=c:t.node.textContent=c)}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.text=s}else if(typeof t.text==\"string\"&&t.text.includes(\"{{\")){let s=t.text,i=tt(()=>{if(r.contentManaged)return;let a=Cr.call(t,s,t.state);a!=null&&(t.text=a),t.node&&(t.tag===\"string\"?t.node.nodeValue=a??\"\":t.node.textContent=a??\"\")},{depth:r.path.length});r.__effects.push(i),r.__exec.text=s}for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&typeof t[s]==\"function\"&&!kt.has(s)&&!Dn(s)&&!r.__exec[s]){if(ft[s]){let i=t[s],a=It(t,t[s+\"Deps\"],i),c=s,l,f=tt(()=>{let u=t.context?.designSystem;u&&rt(u);try{let d=a(t,t.state,t.context),h=ft[c](d,t,t.state,t.context);if(h&&t.node){let g=_y(h);(g===null||g!==l)&&(l=g,In(t.node,h))}else t.node&&(c===\"show\"||c===\"hide\")&&(l=void 0,t.node.style.display=\"\")}finally{u&&J()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}else if(ht&&ht.has(s)){let i=t[s],a=It(t,t[s+\"Deps\"],i),c=s,l,f=tt(()=>{let u=t.context?.designSystem;u&&rt(u);try{let d=a(t,t.state,t.context);if(t.node)if(d!=null){let h=c+\":\"+String(d);h!==l&&(l=h,In(t.node,{[c]:d}))}else l=void 0,t.node.style[c]=\"\"}finally{u&&J()}},{depth:r.path.length});r.__effects.push(f),r.__exec[s]=i}}if(typeof t.html==\"function\"){let s=t.html,i=It(t,t.htmlDeps,s),a=tt(()=>{let c=t.context?.designSystem;c&&rt(c);try{let l=i(t,t.state,t.context);t.node&&l!=null&&typeof l!=\"function\"&&(t.node.innerHTML=l)}finally{c&&J()}},{depth:r.path.length});r.__effects.push(a),r.__exec.html=s}if(typeof t.value==\"function\"){let s=t.value,i=It(t,t.valueDeps,s),a=tt(()=>{try{let c=i(t,t.state,t.context);if(!t.node||!(\"value\"in t.node))return;let l=c==null?\"\":String(c);if(t.node.value===l)return;let f=typeof document<\"u\"&&document.activeElement===t.node,u=f&&typeof t.node.selectionStart==\"number\"?t.node.selectionStart:null,d=f&&typeof t.node.selectionEnd==\"number\"?t.node.selectionEnd:null;if(t.node.value=l,f&&u!=null&&d!=null)try{t.node.setSelectionRange(u,d)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(a),r.__exec.value=s}if(typeof t.style==\"function\"){let s=t.style,i=It(t,t.styleDeps,s),a,c=tt(()=>{let l=i(t,t.state,t.context),f=_y(l);(f===null||f!==a)&&(a=f,In(t.node,l))},{depth:r.path.length});r.__effects.push(c),r.__exec.style=s}else if(t.style&&typeof t.style==\"object\")for(let s in t.style){let i=t.style[s];if(typeof i!=\"function\")continue;let a=It(t,li(t.styleDeps,s),i),c,l=tt(()=>{try{let f=a(t,t.state,t.context);if(t.node){let u=s+\":\"+String(f);u!==c&&(c=u,In(t.node,{[s]:f}))}}catch{}},{depth:r.path.length});r.__effects.push(l)}if(t.attr&&typeof t.attr==\"object\"){for(let s in t.attr)if(typeof t.attr[s]==\"function\"){let i=It(t,li(t.attrDeps,s),t.attr[s]),a=s,c=tt(()=>{try{let l=i(t,t.state,t.context);t.node?.setAttribute&&(l==null||l===!1?t.node.removeAttribute(a):typeof l!=\"function\"&&typeof l!=\"object\"&&t.node.setAttribute(a,l===!0?\"\":l))}catch{}},{depth:r.path.length});r.__effects.push(c)}}if(t.aria&&typeof t.aria==\"object\")for(let s in t.aria){if(typeof t.aria[s]!=\"function\")continue;let i=It(t,li(t.ariaDeps,s),t.aria[s]),a=\"aria-\"+s.replace(/[A-Z]/g,l=>\"-\"+l.toLowerCase()),c=tt(()=>{try{let l=i(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(a):typeof l!=\"function\"&&typeof l!=\"object\"&&t.node.setAttribute(a,l===!0?\"\":l)}catch{}},{depth:r.path.length});r.__effects.push(c)}if(t.data&&typeof t.data==\"object\")for(let s in t.data){if(typeof t.data[s]!=\"function\")continue;let i=It(t,li(t.dataDeps,s),t.data[s]),c=\"data-\"+s.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),l=tt(()=>{try{let f=i(t,t.state,t.context);if(!t.node?.setAttribute)return;f==null||f===!1?t.node.removeAttribute(c):typeof f!=\"function\"&&typeof f!=\"object\"&&t.node.setAttribute(c,f===!0?\"\":f)}catch{}},{depth:r.path.length});r.__effects.push(l)}let o=t.classlist&&typeof t.classlist==\"object\"&&!Array.isArray(t.classlist)?t.classlist:t.class&&typeof t.class==\"object\"&&!Array.isArray(t.class)?t.class:null;if(o)for(let s in o){if(typeof o[s]!=\"function\")continue;let i=It(t,li(t.classDeps,s),o[s]),a=tt(()=>{try{let c=i(t,t.state,t.context);if(!t.node?.classList)return;typeof c==\"string\"?t.node.classList.add(c):c?t.node.classList.add(s):t.node.classList.remove(s)}catch{}},{depth:r.path.length});r.__effects.push(a)}!n&&typeof t.if==\"function\"&&Ay(t,r,t.if);for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||kt.has(s)||typeof t[s]!=\"function\")continue;let i=s.charCodeAt(0);if(i>=65&&i<=90||Dn(s))continue;let a=t[s];r.__exec[s]=a;let c=t.tag||\"div\";if(dr(c,s)&&!ft[s]&&!(ht&&ht.has(s))){let l=ur(s)||s,f=It(t,t[s+\"Deps\"],a),u=tt(()=>{try{let d=f(t,t.state,t.context);t.node?.setAttribute&&(d==null||d===!1?t.node.removeAttribute(l):typeof d!=\"function\"&&typeof d!=\"object\"&&(l===\"src\"&&\"src\"in t.node?t.node.src=d:t.node.setAttribute(l,d===!0?\"\":d)))}catch{}},{depth:r.path.length});r.__effects.push(u)}}if($k(t),Dk(t),typeof t.onStateUpdate==\"function\"&&Array.isArray(t.stateDeps)){let s=t.onStateUpdate,i=t.stateDeps,a=!1,c=[],l=tt(()=>{let f=[];for(let g=0;g<i.length;g++){let p=i[g];try{f[g]=typeof p==\"function\"?p(t,t.state,t.context):t.state?.[p]}catch{f[g]=void 0}}if(!a){a=!0,c=f;return}let u=f.length!==c.length;for(let g=0;!u&&g<f.length;g++)f[g]!==c[g]&&(u=!0);let d=c;if(c=f,!u)return;let h=t.context?.designSystem;h&&rt(h);try{s(t,t.state,t.context,{prev:d,next:f})}catch(g){if(t.context?.plugins?.length&&xt(\"error\",t,{hook:\"onStateUpdate\",error:g})||console.error('[DOMQL] Lifecycle \"onStateUpdate\" error:',g),t.context?.strictMode)throw g}finally{h&&J()}},{depth:r.path.length});r.__effects.push(l)}}function xy(t){let e=t.parent,r=e?.node;if(!r||!t.node){Py(t,t.parent);return}let n=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===r){n=a.node;break}}n?r.insertBefore(t.node,n):r.appendChild(t.node)}function Ay(t,e,r){let n=It(t,t.ifDeps,r),o=tt(()=>{let s;try{s=n(t,t.state,t.context)}catch(a){if(s=!1,e.__ifError=a,typeof console<\"u\"&&console.warn){let c=t.key||t.tag||\"?\";console.warn(`[smbls] \\`if:\\` reactive effect threw on ${c} \\u2014 treating as false:`,a?.message||a)}return}let i=e.__if;if(e.__if=!!s,i&&!e.__if&&t.node)t.node.remove();else if(!i&&e.__if)if(e.__ifInitialized)t.node||(t.node=cr(t)),t.node&&(t.node.ref=t),xy(t),$p(t);else{if(e.__ifInitialized=!0,t.tag||(t.tag=ar(t)),Ne(\"Init\",t,{}),t.node||(t.node=cr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag===\"fragment\"&&!e.__fragmentAnchor){let c=(t.context?.document||globalThis.document).createComment(\"\");t.node.appendChild(c),e.__fragmentAnchor=c}Ne(\"AttachNode\",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute(\"data-key\",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),Oy(t,{}),Cy(t,{skipIfEffect:!0}),$p(t),Ey(t),Ry(t,{}),xy(t),ky(t,{})}},{depth:e.path.length});e.__effects.push(o)}function $p(t){let{node:e}=t;if(e){if(typeof t.text==\"string\"&&!t.text.includes(\"{{\")?t.tag===\"string\"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text==\"number\"&&(e.textContent=t.text),Lk(t),typeof t.html==\"string\"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!=\"function\"&&\"value\"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style==\"object\"&&In(e,t.style),t.attr&&typeof t.attr==\"object\")for(let r in t.attr){let n=t.attr[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?\"\":n)}if(t.data&&typeof t.data==\"object\")for(let r in t.data){let n=t.data[r];typeof n==\"function\"||typeof n==\"object\"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?\"\":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r==\"string\")r.split(\" \").forEach(n=>n&&e.classList.add(n));else if(typeof r==\"object\")for(let n in r){let o=typeof r[n]==\"function\"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o==\"string\"?o:n)}}}}function _y(t){if(t==null||typeof t!=\"object\")return\"s:\"+String(t);try{return\"o:\"+JSON.stringify(t)}catch{return null}}function In(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[n];if(o!=null){if(n.charAt(0)===\"&\"&&typeof o==\"object\"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,f=>\"-\"+f.toLowerCase()),a=s.trim(),c=/\\s*!important\\s*$/.test(a),l=a.replace(/\\s*!important\\s*$/,\"\");t.style.setProperty(i,l,c?\"important\":\"\")}catch{}}}r&&Pk(t,r)}var Rk=0;function Pk(t,e){let r=`_ds${Rk++}`;t.classList.add(r);let n=t.ownerDocument,o=n.querySelector(\"style[data-smbls-scoped]\");o||(o=n.createElement(\"style\"),o.setAttribute(\"data-smbls-scoped\",\"\"),n.head.appendChild(o));let s=\"\";for(let i in e){let a=\".\"+r,c=i.replace(/&/g,a).split(\",\").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(\", \"),l=e[i];if(typeof l==\"object\"){let f=\"\",u=\"\";for(let d in l){let h=l[d];if(typeof h==\"object\"){let g=d.includes(\"&\")?c.split(\", \").map(m=>d.replace(/&/g,m)).join(\", \"):c.split(\", \").map(m=>`${m} ${d}`).join(\", \"),p=\"\";for(let m in h)p+=`${m.replace(/[A-Z]/g,b=>\"-\"+b.toLowerCase())}: ${h[m]};`;u+=ce(`${g} { ${p} }`,g)+`\n`}else f+=`${d.replace(/[A-Z]/g,g=>\"-\"+g.toLowerCase())}: ${h};`}f&&(s+=ce(`${c} { ${f} }`,c)+`\n`),u&&(s+=u)}}s&&(o.textContent+=s)}function $k(t){let e=t.subscribeTo;if(typeof e==\"function\")try{e=e(t,t.state,t.context)}catch{e=null}if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!=\"string\"||o.length===0)continue;let s=o.split(\".\"),i=s[0],a=s.slice(1),c={value:!1},l=tt(()=>{let f=t.state&&(st(t.state)?t.state.root:null);if(!f||!st(f))return;let u=f;u=u[i];for(let h=0;h<a.length&&!(u==null||typeof u!=\"object\");h++)if(st(u))u=u[a[h]];else break;if(!c.value)return;let d=!1;if(typeof t.onBeforeUpdate==\"function\"){let h=t.context?.designSystem;h&&rt(h);try{t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(d=!0)}catch(g){t.context?.plugins?.length&&xt(\"error\",t,{hook:\"onBeforeUpdate\",error:g})||console.error(\"[DOMQL] subscribeTo onBeforeUpdate error:\",g)}finally{h&&J()}}if(!d&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let g=r.__effects[h];g&&g!==l&&!g._disposed&&!g._isSubscribeToEffect&&typeof g._execute==\"function\"&&g._execute()}if(!d&&typeof t.onUpdate==\"function\"){let h=t.context?.designSystem;h&&rt(h);try{t.onUpdate(t,t.state,t.context)}catch(g){t.context?.plugins?.length&&xt(\"error\",t,{hook:\"onUpdate\",error:g})||console.error(\"[DOMQL] subscribeTo onUpdate error:\",g)}finally{h&&J()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function Fp(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith(\"@media\")&&!t.startsWith(\"@keyframes\")&&!t.startsWith(\"@supports\")&&(t===\"@dark\"||t===\"@light\"||!e.context?.designSystem?.media?.[t.slice(1)])}var Sy=new Set;function Ik(t,e){let r=e?.__ref?.path?e.__ref.path.join(\".\"):e?.key||\"?\",n=r+\"::\"+t;Sy.has(n)||(Sy.add(n),console.warn(`[smbls/css] \"${t}\" at ${r} is a CHILD-COMPONENT key nested inside a pseudo/selector block (\":hover\", \"@dark\", etc.) \\u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}function Fn(t,e,r){let n={},o=new Set,s=(i,a,c)=>{let l=c?new Set(Object.keys(n)):null;if(ft[i]){let f=ft[i](a,e,e.state,e.context);if(f){let u=Array.isArray(f)?f:[f];for(let d of u)d&&Object.assign(n,d)}}else n[i]=a;if(c)for(let f in n)l.has(f)||o.add(f)};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=t[i];if(typeof a==\"function\"&&(a=a(e,e.state,e.context)),a==null||typeof a==\"function\")continue;if(typeof a==\"object\"&&!Array.isArray(a)){if(i===\"style\"){for(let u in a){let d=a[u];if(typeof d==\"function\"&&(d=d(e,e.state,e.context)),d==null||typeof d==\"function\")continue;let h=typeof e[u]==\"function\"&&(ft[u]||ht&&ht.has(u));s(u,d,h)}continue}if(Fp(i,e)){let u=Fn(a,e,!0);Object.keys(u).length&&(n[`[data-theme=\"${i.slice(1)}\"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(i)){ne()&&Ik(i,e);continue}let l=i;if(i.charCodeAt(0)===64&&!i.startsWith(\"@media\")&&!i.startsWith(\"@keyframes\")){let u=e.context?.designSystem?.media?.[i.slice(1)];u&&(l=`@media ${u}`)}let f=Fn(a,e,!1);Object.keys(f).length&&(n[l]=f);continue}let c=typeof e[i]==\"function\"&&(ft[i]||ht&&ht.has(i));s(i,a,c)}if(r)for(let i in n)o.add(i);for(let i of o){let a=n[i];typeof a==\"string\"&&!a.includes(\"!important\")&&(n[i]=a+\" !important\")}return n}function Dk(t){let e=t.__ref;e.__conditionalRunners=[];let r=new Map;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=n.charAt(0);if(o!==\".\"&&o!==\"!\")continue;let s=n.slice(1);if(!s)continue;if(/[:@\\s>~+[\\]]/.test(s)){if(typeof console<\"u\"&&console.warn){let u=s.split(/[:@\\s>~+[\\]]/)[0];console.warn(`[smbls] conditional \\`${n}\\` on ${t.key||\"?\"} will never match \\u2014 the whole string after \\`${o}\\` is read as one prop name. Nest the selector inside instead: \\`${o}${u}: { '${s.slice(u.length)}': {...} }\\`.`)}continue}let i=t[n];if(!i||typeof i!=\"object\")continue;let a=o===\"!\",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=()=>{let u,d=t[s];if(d===void 0){let p=!!t.state&&s in t.state,m=t.state?t.state[s]:void 0;if(p||m!==void 0)u=m;else{let b=t.context?.cases?.[s];if(b===void 0)return;try{u=typeof b==\"function\"?b.call(t,t):b}catch(x){u=!1,e.__conditionalError=x,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` case fn threw on ${t.key||\"?\"} \\u2014 treating as false:`,x?.message||x)}}}else if(typeof d==\"function\")try{u=d(t,t.state,t.context)}catch(p){u=!1,e.__conditionalError=p,typeof console<\"u\"&&console.warn&&console.warn(`[smbls] conditional \\`${n}\\` predicate threw on ${t.key||\"?\"} \\u2014 treating as false:`,p?.message||p)}else u=d;let h=a?!u:!!u;if(!t.node||h===c.lastMatch)return;c.lastMatch=h;let g=t.context?.designSystem;g&&rt(g);try{if(h){let p={},m={},b=!1;for(let y in i){if(!Object.prototype.hasOwnProperty.call(i,y))continue;let _=i[y],v=y.charAt(0);if((v===\":\"||v===\"@\"||v===\"&\")&&_&&typeof _==\"object\"&&!Array.isArray(_)){if(Fp(y,t)){let I=Fn(_,t,!0);Object.keys(I).length&&(m[`[data-theme=\"${y.slice(1)}\"] &`]=I,b=!0)}else{let I=y;if(v===\"@\"&&!y.startsWith(\"@media\")&&!y.startsWith(\"@keyframes\")){let R=t.context?.designSystem?.media?.[y.slice(1)];R&&(I=`@media ${R}`)}let H=Fn(_,t,!1);Object.keys(H).length&&(m[I]=H,b=!0)}continue}let E=typeof _==\"function\"?_(t,t.state,t.context):_;if(E!=null)if(ft[y]){let I=ft[y](E,t,t.state,t.context);if(I){let H=Array.isArray(I)?I:[I];for(let R of H)R&&Object.assign(p,R)}}else ht&&ht.has(y)&&(p[y]=E)}let x=Object.keys(p);if(x.length){In(t.node,p);for(let y of x)r.set(y,n);c.appliedKeys=x}else c.appliedKeys=null;if(b){let y=le(m,null,t.context?.cssPrefix),_=y?y.split(\" \").filter(Boolean):[];if(_.length&&t.node.classList){for(let v of _)t.node.classList.add(v);c.appliedClasses=_}else c.appliedClasses=null}else if(c.appliedClasses){for(let y of c.appliedClasses)t.node.classList.remove(y);c.appliedClasses=null}}else{if(c.appliedKeys){for(let p of c.appliedKeys)r.get(p)===n&&(t.node.style[p]=\"\",r.delete(p));c.appliedKeys=null}if(c.appliedClasses){for(let p of c.appliedClasses)t.node.classList.remove(p);c.appliedClasses=null}}}finally{g&&J()}};e.__conditionalRunners.push(l);let f=tt(l,{depth:e.path.length});e.__effects.push(f)}}var Op=new WeakSet;function Fk(t){let e=t.ownerDocument;!e||Op.has(e)||(Op.add(e),queueMicrotask(()=>{Op.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Rp=new WeakSet,wy=!1;function Lk(t){let{node:e}=t;if(!e)return;if(wy||(wy=!0,le({display:\"none\"})),Rp.has(t)){console.error(\"[applyCssInProps] re-entry detected for element\",t.key,\"prop path:\",t.__ref?.path);return}Rp.add(t);let r=t.context?.designSystem;r&&rt(r);try{let n={},o=!1;if(Object.prototype.hasOwnProperty.call(t,\"theme\")&&typeof t.theme!=\"function\"&&ft.theme){let s=ft.theme(t.theme,t,t.state,t.context);if(s){if(Array.isArray(s))for(let i of s)i&&Object.assign(n,i);else Object.assign(n,s);o=!0}}for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]==\"function\"||kt.has(s)||s===\"theme\")continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!Dn(s)){if(ft[s]){let a=t[s],c=ft[s](a,t,t.state,t.context);if(c){if(Array.isArray(c))for(let l of c)l&&Object.assign(n,l);else Object.assign(n,c);o=!0}}else if(ht&&ht.has(s)){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=t[s];a!=null&&typeof a!=\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"&\"){let a=t[s];a&&typeof a==\"object\"&&(n[s]=a,o=!0)}else if(s.charAt(0)===\"@\"||s.charAt(0)===\":\"){let a=t[s];if(a&&typeof a==\"object\"){if(Fp(s,t)){let c=Fn(a,t,!0);Object.keys(c).length&&(n[`[data-theme=\"${s.slice(1)}\"] &`]=c,o=!0)}else{let c=s;if(s.charAt(0)===\"@\"&&!s.startsWith(\"@media\")&&!s.startsWith(\"@keyframes\")){let f=t.context?.designSystem?.media?.[s.slice(1)];f&&(c=`@media ${f}`)}let l=Fn(a,t,!1);Object.keys(l).length&&(n[c]=l,o=!0)}o=!0}}}}if(o){n.display&&String(n.display).includes(\"!important\")&&(e.style.setProperty(\"display\",String(n.display).replace(/\\s*!important\\s*$/,\"\"),\"important\"),delete n.display);let s=le(n,null,t.context?.cssPrefix);if(s&&e.classList){let a=s.split(\" \").filter(Boolean),c=!1;for(let l of a)e.classList.add(l),c||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf(\"_c\",1)!==-1)&&(c=!0);c&&Fk(e)}let i=t.display!=null&&typeof t.display!=\"function\"?t.display:t.hide===!0||t.show===!1?\"none\":null;if(i!=null){let a=n.display;if(a&&a!==i)if(i===\"none\"){let c=[];for(let l of e.classList)l.startsWith(\"_d-\")&&l!==\"_d-none\"&&c.push(l);for(let l of c)e.classList.remove(l);e.classList.add(\"_d-none\")}else e.style.display=t.display}}}finally{r&&J(),Rp.delete(t)}}function Ey(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria==\"object\")for(let o in t.aria){let s=t.aria[o];if(typeof s==\"function\"||typeof s==\"object\"||s==null||s===!1)continue;let i=\"aria-\"+o.replace(/[A-Z]/g,a=>\"-\"+a.toLowerCase());e.setAttribute(i,s===!0?\"\":s)}let r=ap(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!=\"function\"&&typeof s!=\"object\"&&e.setAttribute(o,s===!0?\"\":s)}let n=t.tag||\"div\";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]==\"function\"||kt.has(o)||o===\"on\"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Dn(o)&&!(ft[o]||ht&&ht.has(o))&&dr(n,o)){let i=t[o];if(i==null||(typeof i==\"string\"&&i.includes(\"{{\")&&(i=Cr(i,t,t.state,t.context),t[o]=i),i==null||typeof i==\"function\"||typeof i==\"object\")||i===!1&&!wc(ur(o)||o))continue;let a=ur(o)||o;e.setAttribute(a,si(a,i))}}}function Mk(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!==\"TEXTAREA\")return;let r=t.autoGrow,n=r&&typeof r==\"object\"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height=\"auto\",e.style.height=e.scrollHeight+\"px\"};o(),e.addEventListener(\"input\",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"input\",o)}catch{}})}var Ty=new Set([\"onSwipe\",\"onSwipeLeft\",\"onSwipeRight\",\"onSwipeUp\",\"onSwipeDown\"]);function Oy(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!Dn(r)||Ty.has(r))continue;let n=t[r];if(typeof n==\"string\"&&/^[A-Za-z_$][\\w$]*$/.test(n)){let s=n;n=function(a){return t.call(s,a)}}if(typeof n!=\"function\")continue;let o=Ck(r);lr.has(o)||Tn(Ak(o),t,n)}Nk(t)}function Nk(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let d of Ty){let h=t[d];typeof h==\"function\"&&(r[d]=h,n=!0)}if(!n)return;let o=typeof t.swipeThreshold==\"number\"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration==\"number\"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let h=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let h=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!h)return;let g=h.clientX-i,p=h.clientY-a,m=Date.now()-c;if(m>s)return;let b=Math.abs(g),x=Math.abs(p);if(Math.max(b,x)<o)return;let y;if(b>x*1.2)y=g<0?\"left\":\"right\";else if(x>b*1.2)y=p<0?\"up\":\"down\";else return;let _=\"onSwipe\"+y.charAt(0).toUpperCase()+y.slice(1),v=r[_],E=r.onSwipe;v&&v.call(t,d,t,t.state,t.context),E&&E.call(t,{direction:y,dx:g,dy:p,dt:m,event:d},t,t.state,t.context)};e.addEventListener(\"touchstart\",f,{passive:!0}),e.addEventListener(\"touchend\",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener(\"touchstart\",f)}catch{}try{e.removeEventListener(\"touchend\",u)}catch{}})}function Tc(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o==\"object\"&&typeof s==\"object\"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!=\"function\"&&typeof s!=\"function\"?r[n]=Tc(o,s):r[n]=s}return r}function Ip(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let o=t.tag===\"fragment\",s=t.context?.document||globalThis.document,i=o?null:s?.createDocumentFragment();if(!o&&!i)return;let a=t.childProps,c=t.childrenAs;for(let l=0;l<e.length;l++){let f=e[l],u=f;(typeof f==\"string\"||typeof f==\"number\")&&(f={text:f});let d=a;if(typeof a==\"function\")try{d=a(t,f)}catch{d=null}if(c===\"state\"){let p=u;(typeof u==\"string\"||typeof u==\"number\")&&(p={value:u,text:u}),f=d?{...d,state:p}:{state:p}}else d&&(f=Tc(d,f));if(n&&!f.ignoreChildExtends)if(f.extends){let p=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...p]}}else f={...f,extends:n};let h=f?.key||u&&typeof u==\"object\"&&u.key||`${l}`,g;try{g=Jt(f,t,h,r)}catch(p){if(typeof console<\"u\"&&console.error){let m=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${h}\" failed to construct at ${m} (initial render, skipping this row):`,p?.message||p)}continue}!o&&g?.node&&i.appendChild(g.node)}return o||t.node.appendChild(i),!0}if(typeof e==\"string\"){let o=vy(e,t);if(Array.isArray(o))return Ip(t,o,r)}if(typeof e==\"object\")for(let o in e){if(kt.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s==\"string\"||typeof s==\"number\")&&(s={text:s}),t.childProps&&(s=Tc(t.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(n)?n:[n];s={...s,extends:[...a,...i]}}else s={...s,extends:n};Jt(s,t,o,r)}}}function Dp(t,e){let r=t.node;if(!r||r.tagName!==\"SELECT\")return;let n=r.options;if(!n||!n.length)return;let o=t.__ref,s=o&&o.__exec&&o.__exec.value,i=typeof s==\"function\",a=t.value!=null&&typeof t.value!=\"function\";if(i||a){let f;if(i)try{f=s(t,t.state,t.context)}catch{return}else f=t.value;let u=f==null?\"\":String(f);r.value!==u&&(r.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<n.length;f++)n[f].defaultSelected&&(l=f);l>=0&&r.selectedIndex!==l&&(r.selectedIndex=l)}function Ry(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r==\"function\"){let a=r;try{r=a(t,t.state,t.context)}catch(d){if(r=void 0,typeof console<\"u\"&&console.error){let h=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${h} (initial run, treating as empty):`,d?.message||d)}}t.children=r;let c=t.__ref,l=!1,f=It(t,t.childrenDeps,a),u=tt(()=>{let d=l;l=!0;let h;try{h=f(t,t.state,t.context)}catch(v){if(typeof console<\"u\"&&console.error){let E=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] \\`children:\\` factory threw at ${E}${d?\"\":\" (initial tracking run)\"}:`,v?.message||v)}return}if(!d||h===t.children)return;t.children=h;let g=typeof t.onContentUpdate==\"function\",p=g?[]:null,m=g?[]:null,b=g?[]:null;if(Array.isArray(h)&&t.childrenAs===\"state\"){let v=t.childProps,E=[],I=new Map;for(let $=0;$<h.length;$++){let j=h[$],F=v;if(typeof v==\"function\")try{F=v(t,j)}catch{F=null}let _t=F&&F.key||j&&j.key||`${$}`;E.push(_t),I.set(_t,{rawChild:j,childProps:F})}let H=new Set(E),R=c.__children.slice();for(let $ of R)if(!H.has($)){let j=t[$];j?.remove&&j.remove(),delete t[$],m&&m.push($)}let P=t.childExtends,G=t.tag===\"fragment\",at=t.context?.document||globalThis.document,W=G?null:at?.createDocumentFragment(),B=new Set;for(let $ of E){let j=I.get($),F=j.rawChild,_t=t[$];if(_t&&_t.state){if(F&&typeof F==\"object\"){let z=_t.state,ze=z.$replace||z.replace,zt=z.$update||z.update;if(typeof ze==\"function\")ze.call(z,F);else if(typeof zt==\"function\"){for(let Ft in z)if(!(Ft===\"__element\"||Ft===\"root\"||Ft===\"parent\"||Ft===\"update\")&&!Object.prototype.hasOwnProperty.call(F,Ft))try{z[Ft]=void 0}catch{}zt.call(z,F)}else for(let Ft in F)z[Ft]=F[Ft]}b&&b.push($);continue}let _r=F;(typeof F==\"string\"||typeof F==\"number\")&&(_r={value:F,text:F});let Qn=j.childProps,Ut=Qn?{...Qn,state:_r}:{state:_r};if(P&&!Ut.ignoreChildExtends)if(Ut.extends){let z=Array.isArray(Ut.extends)?Ut.extends:[Ut.extends],ze=Array.isArray(P)?P:[P];Ut={...Ut,extends:[...ze,...z]}}else Ut={...Ut,extends:P};let to;try{to=Jt(Ut,t,$,e)}catch(z){if(typeof console<\"u\"&&console.error){let ze=t.__ref?.path?.join(\".\")||t.key||\"<root>\";console.error(`[smbls] child \"${$}\" failed to construct at ${ze} (reconcile, skipping this row):`,z?.message||z)}B.add($);continue}!G&&to?.node&&W&&W.appendChild(to.node),p&&p.push($)}if(!G&&W&&W.childNodes.length&&t.node&&t.node.appendChild(W),!G&&t.node){let $=null;for(let j of E){let F=t[j]?.node;if(!F)continue;let _t=$?$.nextSibling:t.node.firstChild;F!==_t&&t.node.insertBefore(F,_t),$=F}}c.__children=B.size?E.filter($=>!B.has($)):E,g&&(p.length||m.length)&&yy(t,{added:p,removed:m,kept:b}),Dp(t,!1);return}let _=g?[...c.__children]:null;for(let v of[...c.__children]){let E=t[v];E?.remove&&E.remove(),delete t[v]}c.__children=[],Ip(t,h,e),Dp(t,!1),g&&yy(t,{added:[...c.__children],removed:_,kept:[]})},{depth:c.path.length});c.__effects.push(u)}let s=Ip(t,r||n,e);if((r||n)&&!s)return;let i=t.context?.components||{};{let a=Object.keys(t);for(let c=0;c<a.length;c++){let l=a[c];if(!l.endsWith(\"Extends\")||typeof t[l]!=\"string\")continue;let f=l.slice(0,-7);if(!f||f.charCodeAt(0)<65||f.charCodeAt(0)>90)continue;let u={extends:t[l]};delete t[l];for(let d=c+1;d<a.length;d++){let h=a[d],g=h.charCodeAt(0);if(g>=65&&g<=90||kt.has(h)||typeof t[h]==\"function\"&&(h.startsWith(\"on\")||h.startsWith(\".\")))break;let p=t[h];p!==void 0&&(u[h]=p,delete t[h])}t[f]&&typeof t[f]==\"object\"?t[f]={...u,...t[f]}:t[f]=u}}for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a)||kt.has(a)||typeof t[a]!=\"object\"||t[a]===null)continue;let c=a.charCodeAt(0);if(c<65||c>90)continue;let l=t[a];if(!l.__ref){if(!l.extends&&!l.extend){let f=i[a]||i[`smbls.${a}`];f&&(l={...l,extends:f})}if(t.childProps&&(l=Tc(t.childProps,l)),o&&!l.ignoreChildExtends)if(l.extends){let f=Array.isArray(l.extends)?l.extends:[l.extends],u=Array.isArray(o)?o:[o];l={...l,extends:[...u,...f]}}else l={...l,extends:o};Jt(l,t,a,e)}}}function Py(t,e,r){let{node:n}=t;if(!n)return;n.ref=t;let o=e?.tag===\"fragment\"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(r?.position===\"before\"&&r.node)i.insertBefore(n,r.node);else if(r?.position===\"after\"&&r.node){let a=r.node.nextSibling;i.insertBefore(n,a||o)}else i.insertBefore(n,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(r?.position===\"before\"&&r.node)s.insertBefore(n,r.node);else if(r?.position===\"after\"&&r.node){let i=r.node.nextSibling;i?s.insertBefore(n,i):s.appendChild(n)}else s.appendChild(n)}function Ne(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&xt(n,e,r);let o=\"on\"+t,s=e[o];if(typeof s==\"function\"){let i=t===\"Render\"||t===\"RenderRouter\";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let a=e.context?.designSystem;a&&rt(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&xt(\"error\",e,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle \"${o}\" error:`,c),e.context?.strictMode)throw c}finally{a&&J(),i&&(e.__ref.__inRender=!1)}}return!0}var $y={blue:\"#213eb0\",green:\"#389d34\",red:\"#e15c55\",yellow:\"#EDCB38\",orange:\"#e97c16\",transparent:\"rgba(0, 0, 0, 0)\",black:\"black\",gray:\"#4e4e50\",white:\"white\",title:[\"--gray 1 -168\",\"--gray 1 +168\"],caption:[\"--gray 1 -68\",\"--gray 1 +68\"],paragraph:[\"--gray 1 -42\",\"--gray 1 +42\"],disabled:[\"--gray 1 -26\",\"--gray 1 +26\"],line:[\"--gray 1 -16\",\"--gray 1 +16\"]},Iy={\"gradient-blue-light\":`linear-gradient(to right,\n rgba(4, 116, 242, 1),\n rgba(0, 48, 103, 1)\n )`,\"gradient-blue-dark\":`linear-gradient(to right,\n #0474F2,\n #003067\n )`,\"gradient-dark\":`linear-gradient(0deg,\n rgba(0,0,0,0.06) 0%,\n rgba(0,0,0,0.07) 100%\n )`,\"gradient-dark-active\":`linear-gradient(0deg,\n rgba(0,0,0,0.09) 0%,\n rgba(0,0,0,0.1) 100%\n )`,\"gradient-light\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.05) 0%,\n rgba(255,255,255,0.06) 100%\n )`,\"gradient-light-active\":`linear-gradient(\n 0deg,\n rgba(255,255,255,0.09) 0%,\n rgba(255,255,255,0.10) 100%\n )`,\"gradient-colorful\":`linear-gradient(60deg,\n #00A2E7 0%,\n #185DF3 31%,\n #1E54F0 36%,\n #8B4CCA 69%,\n #C66894 100%\n )`};var jk={primary:{\"@dark\":{color:\"white\",background:\"blue\",\".color-only\":{color:\"blue\"},\".inactive\":{background:\"gray+16\"},\".gradient\":{color:\"white\",background:\"gradient-blue\"}},\"@light\":{color:\"white\",background:\"gradient-blue\",\".color-only\":{color:\"blue\"},\".gradient\":{color:\"white\",background:\"gradient-colorful\"}}},secondary:{\"@dark\":{color:\"white\",background:\"green\",\".color-only\":{color:\"green\"}},\"@light\":{color:\"white\",background:\"green\",\".color-only\":{color:\"green\"}},\".child\":\"--primary\"},tertiary:{\"@dark\":{color:\"white\",background:\"gray.92+8\"},\"@light\":{background:\"gray.1\"}},quaternary:{\"@light\":{color:\"white\",background:\"gradient-light\"},\"@dark\":{color:\"white\",background:\"gradient-dark-active\"}},quinary:{\"@dark\":{color:\"gray=90\",background:\"gradient-light\",\":hover\":{color:\"gray=95\",background:\"gradient-light-active\"},\":focus\":{color:\"gray=120\",background:\"gradient-light-active\"},\":active\":{color:\"gray=120\",background:\"gradient-light-active\"},\".active\":{color:\"gray=120\",background:\"gradient-light-active\"}},\"@light\":{color:\"gray3\",background:\"gradient-dark\",\":hover\":{color:\"gray1\",background:\"gradient-dark-active\"},\":active\":{color:\"gray1\",background:\"gradient-dark-active\"},\".active\":{color:\"gray1\",background:\"gradient-dark-active\"}}}},Bk={alert:{\"@dark\":{color:\"white\",background:\"red\"}},warning:{\"@dark\":{color:\"black\",background:\"yellow\"}},success:{\"@dark\":{color:\"black\",background:\"green\"}}},Vk={field:{\"@light\":{color:\"black\",background:\"gray.975+144\",borderColor:\"gray.975+144\",\"::placeholder\":{color:\"gray-68\"}},\"@dark\":{color:\"white\",background:\"gray.975-52\",borderColor:\"gray.975-52\",\"::placeholder\":{color:\"gray+68\"}}},label:{\"@dark\":{color:\"white\",background:\"gray.92+8\"},\"@light\":{background:\"gray.1\"},\".light\":{color:\"white\",background:\"gray3\"},\".dark\":{color:\"white\",background:\"black.35\"}},card:{\"@light\":{background:\"gray.975+150\"},\"@dark\":{color:\"white\",background:\"gray.975-56\"},\".child\":{color:\"white\",background:\"gray3\"},\".secondary\":{color:\"white\",background:\"gradient-blue-dark\",\".child\":{color:\"white\",background:\"black.35\"}}},dialog:{\"@dark\":{color:\"white\",background:\"gray.92\",\".helper\":{color:\"white\",background:\"black\"}},\"@light\":{color:\"currentColor\",background:\"gray.1\"}}},Dy={document:{\"@light\":{color:\"black\",background:\"white\"},\"@dark\":{color:\"white\",background:\"black\"}},...jk,...Bk,...Vk,none:{color:\"none\",background:\"none\"},transparent:{color:\"currentColor\",background:\"transparent\"}};var Fy={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Ly={ratio:1.618,subSequence:!0};var My={SourceSans:[{url:\"\"}]},Ny={system:{isDefault:!0,isSystemFallback:!0,value:[\"system-ui\",\"-apple-system\",\"BlinkMacSystemFont\",'\"Segoe UI\"',\"Roboto\",'\"Helvetica Neue\"',\"Arial\",'\"Noto Sans\"','\"Liberation Sans\"'],type:\"sans-serif\"}};var jy={symbols:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',logo:'<svg height=\"24\" width=\"24\"><path d=\"M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z\" fill-rule=\"evenodd\"/></svg>',arrowDownCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 12l4 4 4-4M12 8v8\"/></svg>',arrowDownLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-left\"><path d=\"M17 7L7 17M17 17H7V7\"/></svg>',arrowDownRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down-right\"><path d=\"M7 7l10 10M17 7v10H7\"/></svg>',arrowDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-down\"><path d=\"M12 5v14M19 12l-7 7-7-7\"/></svg>',arrowLeftCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 8l-4 4 4 4M16 12H8\"/></svg>',arrowLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-left\"><path d=\"M19 12H5M12 19l-7-7 7-7\"/></svg>',arrowRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right\"><path d=\"M5 12h14M12 5l7 7-7 7\"/></svg>',arrowRightCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-right-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16l4-4-4-4M8 12h8\"/></svg>',arrowUpCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-circle\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M16 12l-4-4-4 4M12 16V8\"/></svg>',arrowUpLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-left\"><path d=\"M17 17L7 7M7 17V7h10\"/></svg>',arrowUpRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up-right\"><path d=\"M7 17L17 7M7 7h10v10\"/></svg>',arrowUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-arrow-up\"><path d=\"M12 19V5M5 12l7-7 7 7\"/></svg>',checkCircle:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check-circle\"><path d=\"M22 11.08V12a10 10 0 11-5.93-9.14\"/><path d=\"M22 4L12 14.01l-3-3\"/></svg>',check:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-check\"><path d=\"M20 6L9 17l-5-5\"/></svg>',chevronDown:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-down\"><path d=\"M6 9l6 6 6-6\"/></svg>',chevronLeft:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-left\"><path d=\"M15 18l-6-6 6-6\"/></svg>',chevronRight:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-right\"><path d=\"M9 18l6-6-6-6\"/></svg>',chevronUp:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-up\"><path d=\"M18 15l-6-6-6 6\"/></svg>',copy:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-copy\"><rect x=\"9\" y=\"9\" width=\"13\" height=\"13\" rx=\"2\" ry=\"2\"/><path d=\"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1\"/></svg>',eyeOff:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye-off\"><path d=\"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22\"/></svg>',eye:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-eye\"><path d=\"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z\"/><circle cx=\"12\" cy=\"12\" r=\"3\"/></svg>',info:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-info\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 16v-4M12 8h.01\"/></svg>',lock:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-lock\"><rect x=\"3\" y=\"11\" width=\"18\" height=\"11\" rx=\"2\" ry=\"2\"/><path d=\"M7 11V7a5 5 0 0110 0v4\"/></svg>',minus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-minus\"><path d=\"M5 12h14\"/></svg>',sun:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-sun\"><circle cx=\"12\" cy=\"12\" r=\"5\"/><path d=\"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42\"/></svg>',moon:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-moon\"><path d=\"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z\"/></svg>',moreHorizontal:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-horizontal\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"19\" cy=\"12\" r=\"1\"/><circle cx=\"5\" cy=\"12\" r=\"1\"/></svg>',moreVertical:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-more-vertical\"><circle cx=\"12\" cy=\"12\" r=\"1\"/><circle cx=\"12\" cy=\"5\" r=\"1\"/><circle cx=\"12\" cy=\"19\" r=\"1\"/></svg>',send:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-send\"><path d=\"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z\"/></svg>',smile:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-smile\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01\"/></svg>',search:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-search\"><circle cx=\"11\" cy=\"11\" r=\"8\"/><path d=\"M21 21l-4.35-4.35\"/></svg>',upload:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-upload\"><path d=\"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12\"/></svg>',video:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-video\"><path d=\"M23 7l-7 5 7 5V7z\"/><rect x=\"1\" y=\"5\" width=\"15\" height=\"14\" rx=\"2\" ry=\"2\"/></svg>',x:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-x\"><path d=\"M18 6L6 18M6 6l12 12\"/></svg>',star:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-star\"><path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/></svg>',plus:'<svg width=\"24\" height=\"24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-plus\"><path d=\"M12 5v14M5 12h14\"/></svg>'};var By={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 Vy={base:150,ratio:1.333,unit:\"ms\",subSequence:!0};var Uy={radiusControl:\"12px\",radiusCard:\"17px\",radiusSheet:\"24px\",radiusPill:\"999px\",controlH:\"44px\",controlHCompact:\"36px\"};var ui={version:\"0.0.1\",color:$y,gradient:Iy,theme:Dy,typography:Fy,spacing:Ly,font:My,fontFamily:Ny,timing:Vy,icons:jy,media:By,sizes:Uy,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Mn={};D(Mn,{A:()=>rx,AssetPicture:()=>ib,Audio:()=>lb,Avatar:()=>yx,B:()=>Tb,Block:()=>zy,Box:()=>$c,Br:()=>$b,Button:()=>sx,ButtonSet:()=>lx,COMPONENTS:()=>Br,Caption:()=>xb,Checkbox:()=>Ub,CheckboxHgroup:()=>zb,Circle:()=>nb,CircleButton:()=>ax,Clickable:()=>tb,Data:()=>Rb,Dialog:()=>ux,DialogFooter:()=>px,DialogHeader:()=>dx,Dropdown:()=>xx,DropdownList:()=>_x,DropdownParent:()=>Sx,DropdownParentFocus:()=>wx,DropdownSiblingFocus:()=>kx,FileIcon:()=>Zb,Flex:()=>Hy,Focusable:()=>eb,FocusableComponent:()=>rb,Footnote:()=>Eb,Form:()=>Jy,Grid:()=>Ky,Gutter:()=>Yy,H1:()=>db,H2:()=>pb,H3:()=>hb,H4:()=>gb,H5:()=>mb,H6:()=>yb,Headline:()=>Cb,Hgroup:()=>Mb,HgroupButton:()=>jb,HgroupRows:()=>Nb,Hoverable:()=>Qy,Hr:()=>Pb,I:()=>Ob,Icon:()=>Xb,IconButton:()=>fx,IconText:()=>Jb,Iframe:()=>Zy,Img:()=>Xy,Inline:()=>Wy,InlineFlex:()=>qy,InlineGrid:()=>Gy,Input:()=>Bb,Italic:()=>kb,KangorooButton:()=>cx,Li:()=>Ib,Link:()=>uh,Notification:()=>vx,NumberInput:()=>Vb,Ol:()=>Fb,P:()=>bb,Picture:()=>sb,Radio:()=>Wb,RadioHgroup:()=>Hb,Range:()=>bx,RouteLink:()=>nx,RouterLink:()=>dh,SHAPES:()=>Rc,Select:()=>ox,Shape:()=>Up,Span:()=>ub,SquareButton:()=>ix,Strong:()=>_b,Subhead:()=>Ab,Svg:()=>ab,Text:()=>fb,Textarea:()=>Gb,TextareaWithButton:()=>Yb,Theme:()=>ob,Title:()=>vb,Toggle:()=>qb,ToggleHgroup:()=>Kb,Tooltip:()=>hx,TooltipHidden:()=>gx,TooltipParent:()=>mx,U:()=>Sb,Ul:()=>Db,Underline:()=>wb,Video:()=>cb,depth:()=>Pc,getSystemGlobalTheme:()=>di});var Mp={};D(Mp,{Block:()=>zy,Flex:()=>Hy,Grid:()=>Ky,Gutter:()=>Yy,Inline:()=>Wy,InlineFlex:()=>qy,InlineGrid:()=>Gy});var zy={display:\"block\"},Wy={display:\"inline\"},Hy={display:\"flex\"},qy={display:\"inline-flex\"},Ky={display:\"grid\"},Gy={display:\"inline-grid\"},Yy={boxSize:\"C1\"};var Np={};D(Np,{Img:()=>Xy});O();var Xy={tag:\"img\",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||\"\",src:t=>{let e=Pt(t);return e&&e.src||t.src},srcset:t=>{let e=Pt(t);return(e?bs(e):\"\")||t.srcset}}};var jp={};D(jp,{Form:()=>Jy});var Jy={tag:\"form\"};var Bp={};D(Bp,{Iframe:()=>Zy});var Zy={tag:\"iframe\",position:\"relative\",minWidth:\"G\",minHeight:\"G\"};var Vp={};D(Vp,{Clickable:()=>tb,Focusable:()=>eb,FocusableComponent:()=>rb,Hoverable:()=>Qy});var Uk={appearance:\"none\",cursor:\"pointer\",fontFamily:\"inherit\"},Qy={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}}},tb={extends:\"Hoverable\",\":active\":{opacity:1,transform:\"scale(1.015)\"},\".active\":{opacity:1}},eb={border:\"none\",outline:\"solid 0 blue.3\",\":focus-visible\":{opacity:1,outline:\"solid X blue.3\"},attr:{tabIndex:t=>t.tabIndex}},rb={extends:\"Focusable\",tag:\"button\",fontSize:\"A\",type:\"button\",border:\"none\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",fontFamily:\"inherit\",style:Uk};var Hp={};D(Hp,{Picture:()=>sb});var Wp={};D(Wp,{Theme:()=>ob,getSystemGlobalTheme:()=>di});var zp={};D(zp,{Circle:()=>nb,SHAPES:()=>Rc,Shape:()=>Up,default:()=>zk,depth:()=>Pc});O();var te=A(),Pc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${te.unit.default} 4${te.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${te.unit.default} 6${te.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${te.unit.default} 10${te.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${te.unit.default} 16${te.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${te.unit.default} 26${te.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${te.unit.default} 42${te.unit.default}`}},Ln=t=>Z(t.shapeDirectionColor)||Z(t.borderColor)||Z(t.backgroundColor)||Z(t.background),Oc=t=>{let e=ii.transition(t.transition,t);return e&&e.transition},Rc={rectangle:{},circle:{borderRadius:\"100%\"},bubble:{},tv:{borderRadius:\"1.15em/2.5em\"},tooltip:t=>({position:t.position||\"relative\",\"&:before\":{content:'\"\"',display:\"block\",width:\"0px\",height:\"0px\",border:\".35em solid\",borderColor:Ln(t),transition:Oc(t),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:t=>({position:\"relative\",\"&:before\":{content:'\"\"',display:\"block\",background:Ln(t),transition:Oc(t),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:t=>({position:\"relative\",\"&:before, &:after\":{content:'\"\"',display:\"block\",position:\"absolute\",zIndex:\"-1\",borderRadius:\".25em\",aspectRatio:\"1/1\",top:\"50%\",transformOrigin:\"50% 50%\",height:\"73%\",background:Ln(t),transition:Oc(t),transitionProperty:\"background\"},\"&:before\":{left:\"0\",transform:\"translate3d(-50%, -50%, 1px) rotate(45deg)\"},\"&:after\":{left:\"100%\",transform:\"translate3d(-50%, -50%, 1px) rotate(45deg)\"}}),chevron:t=>({position:\"relative\",\"&:before, &:after\":{content:'\"\"',display:\"block\",position:\"absolute\",zIndex:\"-1\",aspectRatio:\"1/1\",top:\"50%\",transformOrigin:\"50% 50%\",transition:Oc(t),transitionProperty:\"background\"},\"&:before\":{background:`linear-gradient(225deg, ${Ln(t)} 25%, transparent 25%), linear-gradient(315deg, ${Ln(t)} 25%, transparent 25%)`},\"&:after\":{background:Ln(t),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)\"}}}},Up={deps:{exec:et,getSpacingBasedOnRatio:ae,getMediaColor:bt},classlist:{shape:t=>t.deps.exec(Rc[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Rc[t.shape+\"Direction\"];return t.shape&&e?e[t.shapeDirection||\"left\"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},nb={round:\"100%\"},zk=Up;O();var di=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n===\"auto\"?null:n},ob={deps:{depth:Pc},classlist:{depth:t=>!gt(t.depth)&&t.deps.depth[t.depth]}};var sb={deps:{getSystemGlobalTheme:di},tag:\"picture\",childExtends:{deps:{getSystemGlobalTheme:di},tag:\"source\",attr:{media:t=>{let{key:e,context:r,deps:n}=t,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(t),i=(t.media||e).slice(1);return i===s?\"(min-width: 0px)\":i===\"dark\"||i===\"light\"?\"(max-width: 0px)\":o[i]}}},Img:{width:\"inherit\",ignoreChildExtends:!0,height:\"inherit\",src:(t,e)=>t.parent?.src||e.src}};var qp={};D(qp,{AssetPicture:()=>ib});O();var ib={tag:\"picture\",children:t=>{let e=Pt(t);if(e)return xs(e,t.alt)}};var Kp={};D(Kp,{Svg:()=>ab});var ab={tag:\"svg\",attr:{xmlns:\"http://www.w3.org/2000/svg\",\"xmlns:xlink\":\"http://www.w3.org/1999/xlink\"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!=\"function\")return t.call(\"exec\",t.html,t);let{designSystem:r,utils:n}=e,o=r&&r.svg,s=t.spriteId||r&&r.useSvgSprite,i=t.call(\"exec\",t.src,t);if(!s&&i)return i;let a=d=>`<use xlink:href=\"#${d}\" />`,c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a(\"\");if(typeof i==\"string\"&&!i.includes(\"<\"))return typeof console<\"u\"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol \"${i}\" \\u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a(\"\");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Gp={};D(Gp,{Video:()=>cb});O();var cb={tag:\"video\",controls:!0,attr:{src:t=>{let e=Pt(t);return e&&e.src||t.src}},children:t=>{let e=Pt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var Yp={};D(Yp,{Audio:()=>lb});O();var lb={tag:\"audio\",controls:!0,attr:{src:t=>{let e=Pt(t);return e&&e.src||t.src}},children:t=>{let e=Pt(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(r=>({tag:\"source\",attr:{src:r.src,type:r.format}}))},childExtends:{tag:\"source\"}};var Xp={};D(Xp,{B:()=>Tb,Caption:()=>xb,Data:()=>Rb,Footnote:()=>Eb,H1:()=>db,H2:()=>pb,H3:()=>hb,H4:()=>gb,H5:()=>mb,H6:()=>yb,Headline:()=>Cb,I:()=>Ob,Italic:()=>kb,P:()=>bb,Span:()=>ub,Strong:()=>_b,Subhead:()=>Ab,Text:()=>fb,Title:()=>vb,U:()=>Sb,Underline:()=>wb});var fb={},ub={tag:\"span\"},db={tag:\"h1\"},pb={tag:\"h2\"},hb={tag:\"h3\"},gb={tag:\"h4\"},mb={tag:\"h5\"},yb={tag:\"h6\"},bb={tag:\"p\"},xb={tag:\"caption\"},_b={tag:\"strong\",fontWeight:\"700\"},Sb={tag:\"u\"},wb={tag:\"u\"},kb={tag:\"i\"},vb={},Cb={tag:\"h6\",fontSize:\"B\",fontWeight:500},Ab={tag:\"span\",fontSize:\"Z1\"},Eb={tag:\"span\",fontSize:\"Z\"},Tb={tag:\"b\"},Ob={tag:\"i\"},Rb={tag:\"data\"};var Jp={};D(Jp,{Box:()=>$c,Br:()=>$b,Hr:()=>Pb,Li:()=>Ib,Ol:()=>Fb,Ul:()=>Db});var Wk=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=jt(e,t,{unpack:!1});r.__class=n},$c={extends:[\"Shape\",\"Theme\"],boxSizing:\"border-box\",onBeforeClassAssign:Wk},Pb={tag:\"hr\",margin:\"C1 0\"},$b={tag:\"br\"},Ib={tag:\"li\"},Db={tag:\"ul\",childExtends:{extends:\"Li\"}},Fb={tag:\"ol\",childExtends:{extends:\"Li\"}};var Zp={};D(Zp,{Hgroup:()=>Mb,HgroupButton:()=>jb,HgroupRows:()=>Nb});var Lb=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let r=e.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},Mb={display:\"flex\",tag:\"hgroup\",flow:\"y\",gap:\"Y2\",H:{if:Lb,color:\"title\",tag:\"h3\",lineHeight:\"1em\",margin:\"0\"},P:{if:Lb,margin:\"0\",color:\"paragraph\"}},Nb={extends:\"Hgroup\",H:{display:\"flex\",color:\"title\",align:\"center space-between\"},P:{color:\"paragraph\",align:\"center space-between\"}},jb={extends:\"HgroupRows\",H:{justifyContent:\"space-between\",Span:{},Button:{background:\"transparent\",color:\"currentColor\",padding:\"0\",Icon:{name:\"x\",fontSize:\"C\"}}},P:{}};var Qp={};D(Qp,{Input:()=>Bb});var Bb={extends:[\"Focusable\"],tag:\"input\",border:\"none\",type:\"input\",theme:\"field\",fontSize:\"A\",round:\"C\",lineHeight:\"1\",padding:\"Z2 B\",attr:{pattern:t=>t.pattern,minLength:t=>t.minlength,maxLength:t=>t.maxlength,name:t=>t.name,autocomplete:t=>t.autocomplete,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call(\"exec\",t.value,t);return t.call(\"isString\",e)&&e.includes(\"{{\")?t.call(\"replaceLiteralsWithObjectFields\",e):e},checked:t=>t.call(\"exec\",t.checked,t),disabled:t=>t.disabled||null,readonly:t=>t.readonly,required:t=>t.required,type:t=>t.type}};var th={};D(th,{NumberInput:()=>Vb});var Vb={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:t=>t.step,min:t=>t.min,max:t=>t.max}};var eh={};D(eh,{Checkbox:()=>Ub,CheckboxHgroup:()=>zb});var Ub={extends:\"Focusable\",tag:\"label\",boxSize:\"fit-content fit-content\",cursor:\"pointer\",round:\"Y\",Input:{type:\"checkbox\",position:\"absolute\",opacity:\"0\",width:\"1px\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",\":checked + div\":{theme:\"primary\"},\":checked + div > svg\":{transform:\"none\",opacity:\"1\"},\":focus-visible + div\":{outline:\"solid X blue.3\",outlineOffset:\"Z\"},attr:{checked:t=>t.call(\"exec\",t.parent.checked)}},Flex:{align:\"center center\",fontSize:\"B1\",padding:\"V\",theme:\"field\",round:\"X2\",transition:\"background A defaultBezier\",Icon:{icon:\"check\",opacity:\"0\",transform:\"scale(0.9) rotate(-15deg)\",transition:\"opacity B defaultBezier\"}}},zb={display:\"flex\",tag:\"label\",boxSize:\"fit-content\",align:\"flex-start flex-start\",gap:\"A\",Checkbox:{tag:\"div\"},HgroupRows:{gap:\"Z1\",margin:\"Y - - -\"}};var rh={};D(rh,{Radio:()=>Wb,RadioHgroup:()=>Hb});var Wb={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}},Hb={extends:\"CheckboxHgroup\",Checkbox:null,Radio:{}};var nh={};D(nh,{Toggle:()=>qb,ToggleHgroup:()=>Kb});var qb={extends:\"Checkbox\",Input:{role:\"switch\",\":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 oh={};D(oh,{Textarea:()=>Gb,TextareaWithButton:()=>Yb});var Gb={tag:\"textarea\",extends:[\"Input\",\"Flex\"],fontfamily:\"Avenir\",placeholder:\"Leave us a message...\",padding:\"A\",theme:\"field\",border:\"none\",minHeight:\"E_default\",width:\"100%\",height:\"E1_default\",fontFamily:\"inherit\",round:\"Z2\",lineHeight:1.4,\".outlined\":{borderWidth:\"1px\",borderStyle:\"solid\"}},Yb={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 sh={};D(sh,{FileIcon:()=>Zb,Icon:()=>Xb,IconText:()=>Jb});var Xb={extends:\"Svg\",width:\"A\",height:\"A\",display:\"inline-block\",style:{fill:\"currentColor\",\"*\":{fill:\"currentColor\"}},onInit:(t,e,r)=>{let{parent:n}=t,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,c=g=>{let p=g[\".isActive\"];if(p)return g.call(\"exec\",p.name||p.icon)},l=(g,p,m)=>{let{semanticIcons:b}=m&&m.designSystem,{toCamelCase:x}=m&&m.utils,y=f(g,p),v=x(y).split(/([a-z])([A-Z])/g),E=v[1]?v[0]:y.split(\".\")[0].split(\" \")[0],I=b&&b[E];if(I){let H=y.includes(\".\")?\"sfsymbols.\"+y.split(\".\").slice(1).join(\".\"):\"sfsymbols\";return y=I[H]||I[y.split(\".\")[0].split(\" \")[0]],{tag:\"span\",semanticIcons:!0,width:\"A\",height:\"A\",lineHeight:\"1em\",\":after\":{fontSize:\"Z\",fontWeight:\"300\",content:`\"${y}\"`,textAlign:\"center\",display:\"inline-block\",style:{color:\"currentColor\",fontFamily:\"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'\"}}}}},f=(g,p)=>{let{key:m}=g,b=g.call(\"exec\",g.name||g.icon||m,g);return g.call(\"isString\",b)&&b.includes(\"{{\")&&(b=g.call(\"replaceLiteralsWithObjectFields\",b)),g.call(\"isString\",b)?b:m},u=t.src,h=tt(()=>{let g=f(t,e);if(g.includes(\" \")){let R=g.split(\" \");g=R[0]+R.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join(\"\")}let p=a(g),m=p.split(/([a-z])([A-Z])/g),b=l(t,e,r);if(b){Object.assign(t,b);return}let x;t.isActive&&(x=c(t));let y=n[\".isActive\"];n&&n.isActive&&y&&y.icon&&(x=t.call(\"exec\",y.icon||y.Icon.name||y.Icon.icon,t)),t.call(\"isString\",x)&&x.includes(\"{{\")&&(x=t.call(\"replaceLiteralsWithObjectFields\",x));let _;o[x]&&(_=x),o[p]?_=p:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn(\"Can't find icon:\",g,_);let v=o[_],E=n&&n.src||u,I=s&&_,H=v||E||o.noIcon;if(!(t.spriteId===I&&t.src===H&&t.node&&t.node.innerHTML)&&(t.spriteId=I,t.src=H,typeof t.html==\"function\"&&t.node)){let R=t.context&&t.context.designSystem;R&&rt(R);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!=\"function\"&&(t.node.innerHTML=P)}finally{R&&J()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(h))},attr:{viewBox:\"0 0 24 24\",\"aria-hidden\":t=>t.ariaLabel||t.role===\"img\"?null:\"true\",focusable:\"false\"}},Jb={display:\"flex\",align:\"center center\",lineHeight:1,\".reversed\":{flow:\"row-reverse\"},\".vertical\":{flow:\"column\"},Icon:{if:t=>{let{parent:e}=t;return t.call(\"exec\",e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call(\"exec\",t.parent.icon,t.parent)},text:t=>t.text},Zb={display:\"flex\",theme:\"tertiary\",boxSize:\"C1\",align:\"center center\",round:\"Z2\",Icon:{fontSize:\"B\",margin:\"auto\",icon:\"file\"}};var ph={};D(ph,{A:()=>rx,Link:()=>uh,RouteLink:()=>nx,RouterLink:()=>dh});var pi={};D(pi,{default:()=>Yk,getActiveRoute:()=>fh,lastLevel:()=>Dc,lastPathname:()=>Ic,matchRoute:()=>ah,parseQuery:()=>ch,parseRoutePattern:()=>ih,router:()=>Ae,runGuards:()=>lh});O();var tx=/^:(.+)/,ex=/^\\*$/,Qb=new Map,ih=t=>{let e=Qb.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(tx);a?n.push({index:i,name:a[1]}):ex.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Qb.set(t,s),s},ah=(t,e,r=0)=>{let o=t.replace(/^\\//,\"\").split(\"/\").filter(Boolean).slice(r),s=\"/\"+(o[0]||\"\");if(!e)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,c={};for(let l in e){if(l===\"/*\")continue;let f=ih(l),u=Hk(o,f);u>a&&(a=u,i=l,c=qk(o,f))}return!i&&e[\"/*\"]&&(i=\"/*\"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Hk=(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(tx.test(r[i]))o+=1;else if(ex.test(r[i]))o+=.5;else return-1;return o},qk=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},ch=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},lh=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},fh=(t=0,e)=>{e||(e=typeof k<\"u\"?k.location.pathname:\"/\");let n=e.split(\"/\")[t+1];if(n)return`/${n}`},Ic,Dc=0,Kk=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"?\"/\":t,Gk={level:Dc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof Y<\"u\"&&(Y.scrollingElement||Y.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:\"content\",scrollToOptions:{behavior:\"smooth\"},useParamsMatching:!0},Ae=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||Y,a={...Gk,...o.context.routerOptions,...n};Dc=a.lastLevel;let c=o.__ref;(a.contentElementKey!==\"content\"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||\"content\");let l=c.contentElementKey||a.contentElementKey||\"content\",f=s.location.origin!==\"null\"?s.location.origin:\"http://localhost\";t=Kk(t);let u=typeof s.URL==\"function\"?s.URL:typeof globalThis<\"u\"&&globalThis.URL||URL,d=new u(f+t),{pathname:h,search:g,hash:p}=d,m=ch(g),b=o.node,x=p&&p!==s.location.hash.slice(1),y=h!==Ic;Ic=h;let _,v,E,I;if(a.useParamsMatching){let R=ah(h,o.routes,a.level);_=R.key,v=R.routePath,E=R.content,I=R.params}else{_=fh(a.level,h),v=_;let R=o.routes;E=R?R[_||\"/\"]||R[\"/*\"]:null,I={}}let H=a.scrollToNode?b:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!E){a.onNotFound?a.onNotFound({pathname:h,route:_,element:o}):a.silent||console.warn(\"[smbls/router] no content matched for path\",h,\"\\u2014 available routes:\",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let R={pathname:h,route:_,params:I,query:m,hash:p,element:o,state:r},P=await lh(a.guards,R);if(P===!1)return;if(typeof P==\"string\")return Ae(P,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,h+(g||\"\")+(p||\"\"))}catch{}if(y||!x){let R={route:_,routePath:v,hash:p,debugging:!1};Object.keys(I).length&&(R.params=I),Object.keys(m).length&&(R.query=m),a.updateState&&o.state.update(R,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let P=o.__ref?.origin?.content,G={};if(P)for(let W in P){let B=P[W];W===\"__ref\"||W===\"props\"||W===\"node\"||W===\"parent\"||W===\"key\"||(typeof B==\"string\"||typeof B==\"number\"||typeof B==\"boolean\"||typeof B==\"object\"&&B!==null&&!B.node&&!B.__ref)&&(G[W]=B)}let at={...G,...typeof E==\"object\"?E:{extends:E}};a.useFragment&&(at.tag=\"fragment\");try{if(typeof o?.set!=\"function\")return;o.set(at,{contentElementKey:l})}catch(W){console.error(\"[smbls/router] failed to render route content\",h,W)}}if(a.scrollToTop&&H?.scrollTo&&H.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&E[l]?.node?.scrollTo&&E[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),p){let R=i.getElementById(p);if(R&&H?.scrollTo){let P=R.getBoundingClientRect().top+b.scrollTop-(a.scrollToOffset||0);H.scrollTo({...a.scrollToOptions||{},top:P,left:0})}}Xe(\"routeChanged\",o,a)},Yk=Ae;var Xk=(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,d=e.__ref.root,h=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ae)(a,g,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},uh={extends:\"Focusable\",tag:\"a\",aria:{},fontWeight:\"bold\",textDecoration:\"none\",color:\"currentColor\",draggable:!1,attr:{href:t=>fr(t,t.href)||fr(t,t.call(\"exec\",t,t).href),\"aria-label\":t=>t.aria?t.aria.label:t.text},onClick:Xk},rx={extends:\"Link\"},dh={onClick:(t,e,r)=>{let{context:n}=e,{href:o,scrollToTop:s,stopPropagation:i}=e,a=e.call(\"exec\",o,e);if(e.call(\"isString\",a)&&a.includes(\"{{\")&&(a=e.call(\"replaceLiteralsWithObjectFields\",a)),i&&t.stopPropagation(),!a)return;let{utils:c,snippets:l,functions:f,routerOptions:u}=n,d=e.__ref.root,h=a.startsWith(\"http://\")||a.startsWith(\"https://\")||a.startsWith(\"mailto:\")||a.startsWith(\"tel:\")||a.startsWith(\"sketch:\")||a.startsWith(\"whatsapp:\")||a.startsWith(\"sms:\")||a.startsWith(\"skype:\")||a.startsWith(\"viber:\")||a.startsWith(\"callto:\")||a.startsWith(\"facetime:\")||a.startsWith(\"facetime-audio:\")||a.startsWith(\"geo:\")||a.startsWith(\"maps:\");if(a&&!h){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let p=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split(\".\"),m=d;for(let b of p){if(!m||!m[b]){m=null;break}m=m[b]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Ae)(a,g,{},{scrollToOptions:{behavior:\"instant\"},scrollToTop:e.call(\"isDefined\",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}}},nx={extends:[uh,dh]};var hh={};D(hh,{Select:()=>ox});var ox={extends:\"Focusable\",tag:\"select\",fontSize:\"A\",border:\"none\",boxSizing:\"border-box\",theme:\"field\",cursor:\"pointer\",childProps:{tag:\"option\",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call(\"exec\",t.value,t);return t.call(\"isString\",e)&&e.includes(\"{{\")?t.call(\"replaceLiteralsWithObjectFields\",e):e}}};var gh={};D(gh,{Button:()=>sx,ButtonSet:()=>lx,CircleButton:()=>ax,IconButton:()=>fx,KangorooButton:()=>cx,SquareButton:()=>ix});var sx={extends:[\"IconText\",\"FocusableComponent\"],tag:\"button\",minHeight:\"controlH\",fontSize:\"Z2\",type:\"button\",borderStyle:\"none\",display:\"inline-flex\",align:\"center center\",textDecoration:\"none\",lineHeight:\"1\",whiteSpace:\"nowrap\",padding:\"0 A\",fontWeight:\"700\",fontFamily:\"inherit\",round:\"radiusPill\",disabled:t=>t.call(\"exec\",t.disabled)},ix={extends:\"Button\",fontSize:\"A\",width:\"A\",minHeight:\"auto\",padding:\"Z\",aspectRatio:\"1 / 1\",boxSize:\"fit-content fit-content\",justifyContent:\"center\",round:\"Z2\",boxSizing:\"content-box\"},ax={extends:\"SquareButton\",round:\"C\"},cx={extends:\"Button\",childExtends:\"IconText\"},lx={tag:\"nav\",display:\"flex\",childExtends:\"SquareButton\"},fx={extends:[\"SquareButton\",\"ClickableItem\"],round:\"Z\"};var mh={};D(mh,{Dialog:()=>ux,DialogFooter:()=>px,DialogHeader:()=>dx});var ux={display:\"flex\",tag:\"dialog\",flow:\"column\",border:\"0\",theme:\"dialog\",round:\"Z2\"},dx={extends:\"Hgroup\",minWidth:\"100%\",gap:\"A\",Title:{align:\"center space-between\",Text:{text:\"Title\"},SquareButton:{icon:\"x\",theme:\"transparent\"}},Paragraph:{color:\"caption\"}},px={display:\"flex\",align:\"center flex-end\",gap:\"X2\",margin:\"auto - -\",padding:\"Y2 X2\",childExtends:{extends:\"Button\",textTransform:\"uppercase\",background:\"transparent\",\"@dark\":{theme:\"primary @dark .color-only\"},\"@light\":{theme:\"primary @light .color-only\"},\"&\":{padding:\"Z A\"},\":hover\":{theme:\"tertiary\"},\":active\":{background:\"white.1\"}},Cancel:{text:\"cancel\"},Ok:{text:\"ok\"}};var yh={};D(yh,{Tooltip:()=>hx,TooltipHidden:()=>gx,TooltipParent:()=>mx});O();var hx={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:t=>Et(t.parent.title)||t.parent.title,width:\"fit-content\",fontWeight:500,color:\"gray12\",text:t=>t.parent.title},P:{if:(t,e)=>t.call(\"isDefined\",t.call(\"exec\",t.parent.description,t))||t.text,width:\"fit-content\",fontSize:\"Z2\",margin:\"0\",color:\"gray6\",fontWeight:\"400\",text:(t,e)=>t.call(\"exec\",t.parent.description,t)}},gx={extends:\"Tooltip\",position:\"absolute\",pointerEvents:\"none\",opacity:\"0\",visibility:\"hidden\",transition:\"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform\",onInit:t=>{let e=!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\"}}:t.shapeDirection===\"bottom\"?{transform:\"translate3d(-50%,-10%,0)\",bottom:\"112%\",left:\"50%\",\".isActive\":{transform:\"translate3d(-50%,0,0)\",opacity:1,visibility:\"visible\"}}:t.shapeDirection===\"left\"?{transform:\"translate3d(10%,-50%,0)\",right:\"112%\",top:\"50%\",\".isActive\":{transform:\"translate3d(0%,-50%,0)\",opacity:1,visibility:\"visible\"}}:{};Object.assign(t,e)}},mx={position:\"relative\",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;if(!n)return;let o=n&&n[\".isActive\"];Object.assign(t,{\":hover, &:focus-visible\":{zIndex:1e3,\"& [tooltip]\":o||{transform:\"translate3d(-50%, 0, 0)\",opacity:1,visibility:\"visible\"}}})}};var bh={};D(bh,{Avatar:()=>yx});var Jk=t=>{let r=`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\" rx=\"32\" fill=\"#71718A\"/><text x=\"32\" y=\"42\" font-family=\"system-ui,sans-serif\" font-size=\"28\" font-weight=\"700\" text-anchor=\"middle\" fill=\"#fff\">${String(t||\"\").trim().charAt(0).toUpperCase()||\"?\"}</text></svg>`;return\"data:image/svg+xml;utf8,\"+encodeURIComponent(r)},yx={extends:\"Img\",display:\"block\",avatarType:\"adventurer-neutral\",borderRadius:\"100%\",boxSize:\"C+X C+X\",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||\"initials\"}/svg?seed=${t.key||\"no-avatar\"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let r=e.node.getAttribute(\"alt\")||(e.key!==\"no-avatar\"?e.key:\"\");e.node.src=Jk(r)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call(\"exec\",t.text,t):t.key&&t.key!==\"no-avatar\"?t.key:\"\"}};var xh={};D(xh,{Range:()=>bx});var bx={tag:\"input\",appearance:\"none\",width:\"100%\",height:\"2px\",outline:\"none\",flex:1,onInput:(t,e,r)=>{e.call(\"isFunction\",e.onInput)?e.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{e.call(\"isFunction\",e.onChange)?e.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:dn(\"#454646\",.75)},\":hover\":{\"::-webkit-slider-thumb\":{borderColor:dn(\"#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.call(\"exec\",t[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.value||t.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 _h={};D(_h,{Dropdown:()=>xx,DropdownList:()=>_x,DropdownParent:()=>Sx,DropdownParentFocus:()=>wx,DropdownSiblingFocus:()=>kx});var xx={attr:{dropdown:!0},position:\"absolute\",top:\"100%\",left:\"0\",zIndex:1e3,theme:\"quaternary\",padding:\"Y\",round:\"Z2\",flow:\"column\",gap:\"X\",transition:\"B defaultBezier\",transitionProperty:\"transform, opacity, visibility\",transform:\"translate3d(0,10%,0)\",opacity:0,visibility:\"hidden\"},_x={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: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\"}}},Sx={position:\"relative\",zIndex:999,\":hover\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}}},wx={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},kx={position:\"relative\",tabindex:\"0\",\":focus-within\":{zIndex:1e3,\"& ~ [dropdown]\":{transform:\"translate3d(0,0,0)\",opacity:1,visibility:\"visible\"}},Input_trigger:{type:\"checkbox\",opacity:\"0\",position:\"absolute\",inset:\"0\",width:\"100%\",height:\"100%\",cursor:\"pointer\",onClick:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var Sh={};D(Sh,{Notification:()=>vx});var vx={display:\"flex\",theme:\"alert\",padding:\"Z1 B Z A\",round:\"A A A Y2\",gap:\"X2\",cursor:\"pointer\",align:\"flex-start center\",IconText:{Icon:{name:\"info outline\"},Text:{\":empty\":{hide:!0}}},Hgroup:{extends:[\"Flex\",\"Hgroup\"],flow:\"y\",align:\"flex-start\",gap:\"X2\",H:{tag:\"h6\",margin:\"0\",fontWeight:\"600\",lineHeight:\"1em\",text:\"Notification\",\":empty\":{hide:!0}},P:{fontSize:\"Z\",margin:\"0\",text:\"is not always a distraction\",\":empty\":{hide:!0}}}};var Br=Object.assign({},Mp,Np,jp,Bp,Vp,Hp,qp,Kp,zp,Gp,Yp,Wp,Xp,Jp,Zp,Qp,th,eh,rh,nh,oh,sh,ph,hh,gh,mh,yh,bh,xh,_h,Sh);function Fc(t){if(t==null)return 0;if(typeof t!=\"object\")return Cx(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^Fc(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Cx(r[n]))*16777619,e=(e^Fc(t[r[n]]))*16777619;return e>>>0}function Cx(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function Lc(t,e){if(t===e)return!0;if(t===null||e===null||typeof t!=typeof e||typeof t!=\"object\")return!1;if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!Lc(t[o],e[o]))return!1;return!0}let r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Lc(t[s],e[s]))return!1}return!0}function wh(t,e){if(e===void 0)return t;if(t===void 0)return e;if(e===null)return null;if(typeof e!=\"object\"||Array.isArray(e))return e;if(typeof t!=\"object\"||Array.isArray(t))return{...e};let r=!1,n={};for(let o in t)if(o in e){let s=wh(t[o],e[o]);n[o]=s,s!==t[o]&&(r=!0)}else n[o]=t[o];for(let o in e)o in t||(n[o]=e[o],r=!0);return r?n:t}function kh(t,e,r){if(!e||typeof e!=\"object\")return t;if(!t||typeof t!=\"object\")return e;if(r||(r=new WeakSet),r.has(e))return t;r.add(e);for(let n in e){let o=e[n];o&&typeof o==\"object\"&&!Array.isArray(o)&&t[n]&&typeof t[n]==\"object\"&&!Array.isArray(t[n])?kh(t[n],o,r):t[n]=o}return t}function hr(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Nn(t){return t.replace(/[A-Z]/g,e=>\"-\"+e.toLowerCase())}function hi(t){let e=String(t);return e.length<=20?e.replace(/\\s+/g,\"_\").replace(/[^a-zA-Z0-9_-]/g,\"\").toLowerCase():hr(e)}function Ax(t){return t.split(`\n`).map(hr).join(`\n`)}var Ex={display:\"d\",position:\"pos\",padding:\"p\",paddingTop:\"pt\",paddingRight:\"pr\",paddingBottom:\"pb\",paddingLeft:\"pl\",paddingBlock:\"pbl\",paddingInline:\"pin\",margin:\"m\",marginTop:\"mt\",marginRight:\"mr\",marginBottom:\"mb\",marginLeft:\"ml\",marginBlock:\"mbl\",marginInline:\"min\",width:\"w\",height:\"h\",minWidth:\"mnw\",minHeight:\"mnh\",maxWidth:\"mxw\",maxHeight:\"mxh\",top:\"t\",right:\"r\",bottom:\"b\",left:\"l\",flex:\"fx\",flexDirection:\"fxd\",flexWrap:\"fxw\",flexGrow:\"fxg\",flexShrink:\"fxs\",flexBasis:\"fxb\",justifyContent:\"jc\",alignItems:\"ai\",alignSelf:\"as\",alignContent:\"ac\",gap:\"g\",rowGap:\"rg\",columnGap:\"cg\",gridTemplateColumns:\"gtc\",gridTemplateRows:\"gtr\",gridColumn:\"gc\",gridRow:\"gr\",overflow:\"of\",overflowX:\"ofx\",overflowY:\"ofy\",fontSize:\"fs\",fontWeight:\"fw\",fontFamily:\"ff\",fontStyle:\"fst\",lineHeight:\"lh\",letterSpacing:\"ls\",textAlign:\"ta\",textDecoration:\"td\",textTransform:\"tt\",color:\"c\",background:\"bg\",backgroundColor:\"bgc\",backgroundImage:\"bgi\",border:\"bd\",borderRadius:\"br\",borderColor:\"bdc\",borderWidth:\"bdw\",borderStyle:\"bds\",boxShadow:\"bxsh\",opacity:\"op\",zIndex:\"z\",cursor:\"cur\",transition:\"tr\",transform:\"tf\",animation:\"an\",visibility:\"vis\",whiteSpace:\"ws\",wordBreak:\"wb\",objectFit:\"obj\",pointerEvents:\"pe\",userSelect:\"us\",boxSizing:\"bxz\",outline:\"ol\",listStyle:\"lis\",textOverflow:\"txo\",verticalAlign:\"va\",float:\"fl\",clear:\"cl\",content:\"cnt\",backdropFilter:\"bdf\",filter:\"flt\",resize:\"rsz\",appearance:\"apr\",fill:\"fil\",stroke:\"stk\",scrollBehavior:\"sb\",inset:\"ins\"};function Tx(t,e){let r=Ex[t]||hr(t),n=hi(e),o=`_${r}-${n}`,s=Nn(t),i=ev[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}\n${c}`}var ev={\"backdrop-filter\":\"-webkit-backdrop-filter\",\"user-select\":\"-webkit-user-select\"},rv=\"@media (hover: hover)\",nv=/(?:^|[^\\\\]):hover(?![\\w-])/,Ox=t=>typeof t==\"string\"&&(t.indexOf(\"{\")!==-1||t.indexOf(\"}\")!==-1);function Rx(t){let e=t.split(\"\\0\"),r=[],n=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||Ox(i))continue;let a=Ex[s]||hr(s),c=hi(i),l=`_${a}-${c}`,f=Nn(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(\" \")+\"\\0\"+n.join(`\n`)}function Px(t,e,r){let n=t+e,o=`_c${hr(n)}`,s=e.split(\"\\0\"),i=\"\";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(Ox(u)||(i+=`${Nn(f)}:${u};`))}let a,c;if(t.startsWith(\"@media\"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(\":\")||t.startsWith(\"&\")){let l=t.startsWith(\"&\")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes(\"&\")?(c=t.replace(\"&\",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return r!==!1&&nv.test(c)&&(a=`${rv}{${a}}`),`${o}\n${a}`}var vh=null;function Nc(t){vh=t}var ue={structuralHash:Fc,deepEqual:Lc,mergeStructural:wh,overwriteDeep:kh,shortHash:hr,toKebab:Nn,sanitizeValue:hi,batchShortHash:Ax,atomicCssClass:Tx,batchAtomicCss:Rx,compoundCssClass:Px},$x=!1,Mc=null;function Ix(t){return Mc||(Mc=import(t||\"@symbo.ls/wasm/pkg\").then(e=>(e.structuralHash&&(ue.structuralHash=e.structuralHash),e.deepEqual&&(ue.deepEqual=e.deepEqual),e.mergeStructural&&(ue.mergeStructural=e.mergeStructural),e.overwriteDeep&&(ue.overwriteDeep=e.overwriteDeep),e.shortHash&&(ue.shortHash=e.shortHash),e.toKebab&&(ue.toKebab=e.toKebab),e.sanitizeValue&&(ue.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(ue.batchShortHash=e.batchShortHash),e.atomicCssClass&&(ue.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(ue.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(ue.compoundCssClass=e.compoundCssClass),$x=!0,vh&&e.batchAtomicCss&&vh({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug(\"[smbls] WASM not available, using JS fallbacks:\",e.message),!1)),Mc)}function Dx(){return $x}O();var gi={};D(gi,{CDN_PROVIDERS:()=>xe,DOMQL_EVENTS:()=>sf,DOMQ_PROPERTIES:()=>qe,ENV:()=>wf,HTML_TAGS:()=>en,METHODS:()=>Xr,METHODS_EXL:()=>mo,NODE_ENV:()=>re,OPTIONS:()=>jo,PACKAGE_MANAGER_TO_CDN:()=>Qe,PARSED_DOMQ_PROPERTIES:()=>go,PROPS_METHODS:()=>Ke,STATE_METHODS:()=>Er,STATE_PROPERTIES:()=>of,SVG_TAGS:()=>$g,TYPES:()=>ao,UNIVERSAL_RESERVED_KEYS:()=>Fa,addCaching:()=>ya,addContext:()=>ma,addExtend:()=>Kf,addExtends:()=>Rt,addItemAfterEveryElement:()=>Hl,addProtoToArray:()=>fo,addRef:()=>pa,applyCSS:()=>Ah,applyDependentState:()=>du,applyEvent:()=>ka,applyEventUpdate:()=>va,applyExtends:()=>Fg,applyProps:()=>Io,arrayContainsOtherArray:()=>Nl,arraysEqual:()=>Kl,arrayzeValue:()=>Dr,buildImgSrcset:()=>bs,buildSourcesAndImg:()=>xs,cache:()=>yu,call:()=>Iu,captureSnapshot:()=>Fu,checkForStateTypes:()=>cu,checkIfInherits:()=>wa,checkIfStringIsInArray:()=>Xl,clone:()=>cf,cloneAndMergeArrayExtend:()=>Co,cloneFunction:()=>Pf,concatAddExtends:()=>Wf,copyJavaScriptToClipboard:()=>ed,copyStringToClipboard:()=>td,createBasedOnType:()=>da,createElement:()=>au,createElementExtends:()=>ta,createExtends:()=>Eo,createExtendsFromKeys:()=>rn,createExtendsStack:()=>oa,createIfConditionFlag:()=>$f,createInheritedState:()=>lu,createKey:()=>ko,createNestedObject:()=>gf,createNestedObjectByKeyPath:()=>uu,createObjectWithoutPrototype:()=>Ki,createParent:()=>ha,createPath:()=>ga,createProps:()=>Do,createPropsStack:()=>fa,createRoot:()=>iu,createScope:()=>hu,createSnapshotId:()=>wo,customDecodeURIComponent:()=>nf,customEncodeURIComponent:()=>rf,cutArrayAfterValue:()=>zl,cutArrayBeforeValue:()=>Ul,debounce:()=>vo,debounceOnContext:()=>Tf,decodeNewlines:()=>ef,deepClone:()=>ot,deepContains:()=>pf,deepDefaults:()=>ds,deepDestringifyFunctions:()=>Ht,deepExtend:()=>Qi,deepMerge:()=>X,deepMergeExtends:()=>me,deepStringifyFunctions:()=>yo,defineSetter:()=>Pu,destringifyGlobalScope:()=>xo,detectHeightOnInit:()=>Bu,detectInfiniteLoop:()=>xf,document:()=>Y,encodeNewlines:()=>tf,error:()=>Ir,excludeKeysFromObject:()=>Sf,exec:()=>et,extendCachedRegistry:()=>Hf,extendStackRegistry:()=>To,extractArrayExtend:()=>Ro,fetchLibraryData:()=>ja,fibonacciNumberByIndex:()=>Vu,filterArrays:()=>Gl,filterArraysFast:()=>Yl,finalizeExtends:()=>sa,findClosestNumber:()=>Na,findClosestNumberInFactory:()=>Ju,findInheritedState:()=>Sa,findKeyPosition:()=>Zl,flattenExtend:()=>nn,formatDate:()=>ju,generateHash:()=>Xi,generateHeadArrayTags:()=>Ma,generateKey:()=>So,generateMetaTags:()=>Yu,get:()=>Tu,getActiveRoute:()=>fh,getCDNUrl:()=>se,getCapitalCaseKeys:()=>Xf,getCdnProviderFromConfig:()=>an,getChildStateInKey:()=>_a,getChildren:()=>Zo,getContext:()=>ss,getCookie:()=>Mf,getDB:()=>fs,getEmotionStylesheet:()=>sd,getExtendsInElement:()=>Gf,getExtendsStack:()=>Ao,getExtendsStackRegistry:()=>Zi,getFrequencyInArray:()=>jl,getHashedExtend:()=>Oo,getImportMapScript:()=>Nu,getInObjectByPath:()=>bf,getLocalStorage:()=>jf,getNev:()=>Af,getPageMetadata:()=>Xu,getParentStateInKey:()=>xa,getPath:()=>Qo,getQuery:()=>us,getRef:()=>Ru,getRoot:()=>rs,getRootContext:()=>os,getRootData:()=>ns,getRootState:()=>es,getRootStateInKey:()=>ba,getSpreadChildren:()=>Jf,global:()=>Fl,hasFunction:()=>ge,hasHandlerPlugin:()=>Zr,hasOwnProperty:()=>ff,hashContent:()=>ln,inheritChildExtends:()=>ra,inheritChildPropsExtends:()=>ea,inheritParentProps:()=>Fo,inheritRecursiveChildExtends:()=>na,init:()=>je,initProps:()=>nu,is:()=>Tt,isArray:()=>T,isBoolean:()=>Ui,isContextComponent:()=>Zf,isCyclic:()=>_f,isDOMNode:()=>At,isDate:()=>Wi,isDefined:()=>Et,isDevelopment:()=>Ye,isEmpty:()=>Hi,isEmptyObject:()=>uf,isEqualDeep:()=>qi,isFunction:()=>C,isHtmlElement:()=>so,isLocal:()=>Cf,isLoudDevRuntime:()=>ne,isMethod:()=>Du,isMobile:()=>Ff,isNode:()=>Re,isNot:()=>Ml,isNotProduction:()=>Rr,isNull:()=>zi,isNumber:()=>he,isObject:()=>w,isObjectLike:()=>V,isPhoto:()=>Uu,isProduction:()=>Ge,isStaging:()=>vf,isState:()=>fu,isString:()=>S,isStringFunction:()=>Rf,isTest:()=>Yi,isTesting:()=>kf,isUndefined:()=>gt,isUniversallyReservedKey:()=>Lu,isValidHtmlTag:()=>Vf,isWrappedLibrary:()=>hs,joinArrays:()=>Kr,jointStacks:()=>qf,keys:()=>Ia,lastLevel:()=>Dc,lastPathname:()=>Ic,loadCssFile:()=>qu,loadJavascript:()=>Ku,loadJavascriptFile:()=>zu,loadJavascriptFileEmbedSync:()=>Hu,loadJavascriptFileSync:()=>Wu,loadRemoteCSS:()=>Gu,loadRemoteScript:()=>cn,log:()=>$u,logGroupIf:()=>Df,logIf:()=>If,lookdown:()=>Au,lookdownAll:()=>Eu,lookup:()=>Cu,lowercaseFirstLetter:()=>Ar,makeObjectWithoutPrototype:()=>df,map:()=>af,mapStringsWithContextComponents:()=>Po,matchRoute:()=>ah,matchesComponentNaming:()=>ye,memoize:()=>Of,merge:()=>it,mergeSharedLibraries:()=>gs,nextElement:()=>as,normalizeIgnoreList:()=>ps,normalizeLibraryKey:()=>fn,objectToString:()=>bo,objectizeStringProperty:()=>$o,overwrite:()=>_o,overwriteDeep:()=>Ot,overwriteShallow:()=>Or,overwriteState:()=>pu,parse:()=>Da,parseDeep:()=>Xo,parseQuery:()=>ch,parseRoutePattern:()=>ih,pickupElementFromProps:()=>ca,pickupPropsFromElement:()=>aa,previousElement:()=>cs,propExists:()=>eu,propertizeElement:()=>la,propertizeUpdate:()=>tu,reinit:()=>Ch,remove:()=>am,removeChars:()=>rd,removeCookie:()=>Nf,removeDuplicateProps:()=>Mo,removeDuplicatesInArray:()=>Gr,removeFromArray:()=>Bl,removeFromObject:()=>hf,removeNestedKeyByPath:()=>mf,removeValueFromArray:()=>lo,removeValueFromArrayAll:()=>Wl,reorderArrayByValues:()=>ql,replaceLiteralsWithObjectFields:()=>Cr,replaceOctalEscapeSequences:()=>Ql,resolveAsset:()=>Pt,resolveHandler:()=>Qr,resolveSharedLibraries:()=>Qu,returnValueAsText:()=>ua,router:()=>Ae,runGuards:()=>lh,runPluginHook:()=>xt,scratchSystem:()=>_n,scratchUtils:()=>nr,self:()=>Ll,set:()=>Mr,setActiveRootState:()=>ts,setCookie:()=>Lf,setHashedExtend:()=>Ji,setInObjectByPath:()=>yf,setLocalStorage:()=>Bf,setNodeStyles:()=>$a,setProps:()=>Ou,setPropsPrototype:()=>Lo,sharedLibrary:()=>Zu,spotByPath:()=>Jo,srcsetFor:()=>un,stringIncludesAny:()=>po,stringToObject:()=>lf,swapItemsInArray:()=>Vl,syncProps:()=>No,toCamelCase:()=>ms,toDashCase:()=>ys,toDescriptionCase:()=>od,toTitleCase:()=>nd,toggleFullscreen:()=>Mu,triggerEventOn:()=>Xe,triggerEventOnUpdate:()=>gu,trimStringFromSymbols:()=>Jl,unstackArrayOfObjects:()=>co,update:()=>ru,updateProps:()=>ou,variables:()=>ls,verbose:()=>sn,warn:()=>is,window:()=>k});O();O();var sv=A(),Fx=(t=sv,e)=>{let r=w(e.localFile)?e.localFile:{},n=ot(r.designSystem||{});return X(t,n)},iv={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},je=(t,e=iv)=>{let r=Fx(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=e.globalTheme;if(typeof window<\"u\"&&window.location){let m=new URLSearchParams(window.location.search).get(\"globalTheme\");m&&(s=m)}let i=Mr({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:s,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...r},{newConfig:e.newConfig,config:e.config});i&&(i.scopeSelector=n);let a=Ss(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,d=t.svg,h=i.useIconSprite,g=t.icons;if(f&&dt(a),l&&(dt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let b in i.CSS_MEDIA_VARS)b.startsWith(\"@media\")?m[b]={[o]:i.CSS_MEDIA_VARS[b]}:m[b]=i.CSS_MEDIA_VARS[b];dt(m)}c&&dt(i.reset);let p=i.animation;if(p){let m={};for(let b in p)m[`@keyframes ${b}`]=p[b];dt(m)}return(d||u)&&Gs(i.svg,{document:e.document}),(g||h)&&Xs(i.icons,{document:e.document}),i},jc={},Ch=(t,e=jc)=>{let r=Fx(t||{},e),n=e.scopeSelector||\":root\",o=n===\":root\"?\":root:not([data-theme])\":`${n}:not([data-theme])`,s=Mr({verbose:!1,...r});if(!e.preventInject){if(dt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith(\"@media\")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];dt(i)}dt(s.reset)}return s},Ah=(t,e=jc)=>{dt(t)},av=(t,e=jc)=>{let r=e.scopeSelector||\":root\",n=r===\":root\"?\":root:not([data-theme])\":`${r}:not([data-theme])`;if(dt({[r]:t.CSS_VARS}),t.CSS_MEDIA_VARS){let o={};for(let s in t.CSS_MEDIA_VARS)s.startsWith(\"@media\")?o[s]={[n]:t.CSS_MEDIA_VARS[s]}:o[s]=t.CSS_MEDIA_VARS[s];dt(o)}};var cv=(t,e=jc)=>{};O();var Lx=t=>!t||t===\"srcdoc\"||t===\"about:srcdoc\"||t===\"blank\"||t===\"about:blank\"?\"/\":t,Eh={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},mi=(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},Mx=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Eh:e.router=it(e.router||{},Eh);let r=e.router,n=async(s,i)=>{let a=s.context?.window||k;if(!a.location)return;let{pathname:c,search:l,hash:f}=a.location;c=Lx(c);let u=c+l+f,d=s;if(r.customRouterElement){let h=mi(s,r.customRouterElement);h&&(d=h,s.routes&&(d.routes=s.routes))}d.routes&&await Ae(u,d,{},{initialRender:!0,pushState:!1})},o=!gt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),lv(e,r),r},Th=(t,e)=>{if(e.router===!1)return;let r=e.router||Eh;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:Ae,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=Lx(a);let f=a+c+l,u=t;if(r.customRouterElement){let d=mi(t,r.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call(\"router\",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener(\"popstate\",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener(\"popstate\",s))},lv=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return X(r.Link||r[\"smbls.Link\"],r.RouterLink||r[\"smbls.RouterLink\"])};O();var Oh=k&&k.location?k.location.host.includes(\"dev.\"):Ye(),Nx=Oh?\"http://localhost:8080/get\":\"https://api.symbols.app/get\",fv={endpoint:Nx},jx=async(t,e=fv)=>{let r=e.endpoint||Nx,n=e.serviceRoute?T(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(C(e.onError))return e.onError(s);console.error(s)}},uv=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await jx(t,r),o=Oh||e.isDevelopment?Ht(n):Ht(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Ot(e[s],o[s.toLowerCase()])}):Ot(e[r.serviceRoute],o):[\"state\",\"designSystem\",\"components\",\"snippets\",\"pages\",\"utils\",\"files\",\"assets\",\"packages\",\"functions\",\"globalScope\"].forEach(s=>{Ot(e[s],o[s.toLowerCase()])})}return e},dv=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await jx(t,n),s=Oh||e.isDevelopment?Ht(o):Ht(o.releases[0]);r(s)}},Bx=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await uv(t,e)}catch(r){console.error(r)}},Vx=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&dv(e,r,n||(o=>{let s=o.designSystem;w(s)&&r.utils.init(s),w(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var yi=t=>{if(!t||t.__destroyed)return!1;let e=t.context;if(!e)return t.__destroyed=!0,!1;if(Array.isArray(e.__teardowns)){for(let r of e.__teardowns)try{r()}catch(n){console.error(\"[smbls] destroy teardown error:\",n)}e.__teardowns.length=0}try{pr(t)}catch(r){console.error(\"[smbls] dispose error:\",r)}if(e.fetch&&e.fetch.__resolved&&delete e.fetch.__resolved,e.fetch&&e.fetch.__resolving&&delete e.fetch.__resolving,e.db&&e.db.__resolved&&delete e.db.__resolved,e.db&&e.db.__resolving&&delete e.db.__resolving,e.analyze?.destroy)try{e.analyze.destroy()}catch(r){console.error(\"[analyze] destroy error:\",r)}return t.__destroyed=!0,!0};O();var pv={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\"}},hv=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}\"]`},Ux=t=>Ht({v:t}).v,zx=(t,e,r,n)=>{try{return et(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for \"${n}\" threw; treating as unset:`,o&&o.message||o);return}},Bc=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&ge(n)&&(n=Ux(n));let o=C(n)?zx(n,e,r,\"metadata\"):w(n)?{...n}:{};if(!w(o))return{};for(let s in o){let i=o[s];S(i)&&ge(i)&&(i=Ux(i)),C(i)?i=zx(i,e,r,s):S(i)&&ge(i)&&(i=void 0),S(i)&&i.includes(\"{{\")&&e?.call&&(i=e.call(\"replaceLiteralsWithObjectFields\",i,r)),o[s]=i}return o};var gv=(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},Wx=t=>{let e=5381,r=String(t);for(let n=0;n<r.length;n++)e=(e*33^r.charCodeAt(n))>>>0;return e.toString(36)},Rh=(t,e,r,n)=>{let o=t.head||t.querySelector(\"head\");if(!o)return;let s=new Map;for(let a of o.querySelectorAll(`[${e}]`))s.set(a.getAttribute(e),a);let i=new Set;for(let a of r)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of r){if(s.has(a))continue;let c=n(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},Vc=(t,e)=>{if(!(!w(t)||!e)){for(let r in t){let n=t[r];if(n==null||r===\"jsonLd\"||r===\"styles\"||r===\"scripts\")continue;let o=pv[r];if(!o)continue;let s=hv(o),i=e.querySelector(s)||gv(o,e);i&&(r===\"title\"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute(\"content\",n))}if(Array.isArray(t.jsonLd)){let n=t.jsonLd.filter(s=>s!=null).map(s=>S(s)?s:JSON.stringify(s)),o=n.map(Wx);Rh(e,\"data-smbls-jsonld\",o,s=>{let i=o.indexOf(s),a=e.createElement(\"script\");return a.setAttribute(\"type\",\"application/ld+json\"),a.textContent=n[i],a})}if(Array.isArray(t.styles)){let r=t.styles.filter(o=>o!=null&&String(o).trim()),n=r.map(Wx);Rh(e,\"data-smbls-style\",n,o=>{let s=n.indexOf(o),i=e.createElement(\"style\");return i.textContent=String(r[s]),i})}if(Array.isArray(t.scripts)){let r=t.scripts.filter(o=>o&&(S(o)?o.trim():o.src)),n=r.map(o=>S(o)?o:String(o.src));Rh(e,\"data-smbls-script\",n,o=>{let s=n.indexOf(o),i=r[s],a=e.createElement(\"script\");return S(i)?a.setAttribute(\"src\",i):(i.src&&a.setAttribute(\"src\",i.src),i.type&&a.setAttribute(\"type\",i.type),i.async&&(a.async=!0),i.defer&&(a.defer=!0),i.integrity&&a.setAttribute(\"integrity\",i.integrity),i.crossorigin&&a.setAttribute(\"crossorigin\",i.crossorigin),i.referrerpolicy&&a.setAttribute(\"referrerpolicy\",i.referrerpolicy),i.nomodule&&(a.noModule=!0),i.body&&(a.textContent=String(i.body))),a})}}};var Hx={name:\"helmet\",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<\"u\"&&document;if(!e)return;let r=tt(()=>{let n=t.metadata;if(!n)return;let o=Bc(n,t,t.state);Vc(o,e)});t.__ref?.__effects&&t.__ref.__effects.push(r)},update(t){let e=t.metadata;if(!e)return;let r=t.context?.document||typeof document<\"u\"&&document;if(!r)return;let n=Bc(e,t,t.state);Vc(n,r)}};$r();var qx=(t,e,r,n)=>{t&&Go(t,e,r,n)},Kx=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<\"u\"&&document;if(!n)return;let o=Bc(t,e,r);Vc(o,n)},Gx=async(t,e)=>{if(!t)return;let r={tag:\"fragment\",...t},n=async()=>{await e.set(r,{preventDefineUpdate:\"$router\"})};return e.lazyLoad?window.requestAnimationFrame(n):await n(),r},jn={routes:t=>t,metadata:Kx,fetch:qx,$router:Gx},Yx=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=Kx),t.fetch!==!1&&(e.fetch=qx),t.router!==!1&&(e.$router=Gx),e};var Ph={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Uc={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},zc={...Ph,router:Uc},mv={state:{},pages:{},components:{},router:Uc,define:jn},gr=mv;O();O();var Xx=(t,e)=>V(t.extends)?t.extends:[];O();var Qx=t=>{let e=typeof window<\"u\"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<\"u\"?document:e.document;t.document=t.document||r;let n=t.window;return n&&n!==e&&typeof n.URL!=\"function\"?(typeof console<\"u\"&&console.warn&&!globalThis.__smblsRouterUrlWarned&&(globalThis.__smblsRouterUrlWarned=!0,console.warn(\"[smbls/router] context.window lacks URL, falling back to globalThis \\u2014 passed-in window may be a stub (warned once; applies to every embed app this session)\")),t.window=e):t.window=n||e,t.window},Jx=(t=\"smbls\")=>{let e={};for(let r in Br)Object.prototype.hasOwnProperty.call(Br,r)&&(ye(r)?e[`smbls.${r}`]=Br[r]:e[r]=Br[r]);return e},t_=t=>t.components?{...Jx(),...t.components}:Jx(),e_=t=>({...gi,...pi,...nr,...t.utils,...t.snippets,...t.functions}),r_=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),Zx={},n_=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Qe[s]||an(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 l=t[c];if(e&&e[c])continue;let f=Ye()&&n?`?${Math.random()}`:\"\",u=se(c,l,o)+f;try{if(Zx[c])continue;Zx[c]=!0,await Promise.race([cn(u,{document:r,type:\"module\"}),new Promise((d,h)=>setTimeout(()=>h(new Error(`Timeout loading ${c}`)),1e4))])}catch(d){if(console.error(`Failed to load ${c} from ${o}:`,d),o!==\"symbols\")try{let h=se(c,l,\"symbols\")+f;await Promise.race([cn(h,{document:r,type:\"module\"}),new Promise((g,p)=>setTimeout(()=>p(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(h){console.error(`Failed to load ${c} from fallback:`,h)}}}return t},o_=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||an(e.symbolsConfig)||\"esmsh\",o=async i=>async(a,c)=>{let f=(i.window||window).packages[a];return typeof f==\"function\"?f():f},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]){let d=Ye()?`?${Math.random()}`:\"\";if(l&&l[a]){let h=l[a],g=se(a,h,c)+d;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(p){if(console.error(`Failed to load ${a} from ${c}:`,p),c!==\"symbols\"){let m=se(a,h,\"symbols\")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let h=se(a,\"latest\",c)+d;try{await i.utils.loadRemoteScript(h,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!==\"symbols\"){let p=se(a,\"latest\",\"symbols\")+d;await i.utils.loadRemoteScript(p,{window:u,document:f})}}u.packages[a]=\"loadedOnDeman\"}}return await u.require(a,c)};r.packages?r.packages=it(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)},yv=/\\s+/g,s_=(t,e)=>typeof t==\"function\"?t(e,e?.state,e?.context):t,bv=(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+=` ${s_(o,e)}`)}return r},xv=(t,e,r)=>{if(!t)return;let{key:n}=e;t===!0&&(t=e.classlist={key:n}),typeof t==\"string\"&&(t=e.classlist={default:t}),t!==null&&typeof t==\"object\"&&!Array.isArray(t)&&(t=bv(t,e));let o=t.replace(yv,\" \").trim();if(r&&typeof r.setAttribute==\"function\")r.setAttribute(\"class\",o);else if(r)try{r.className=o}catch{}return o},_v=()=>(t,e,r)=>{let n=s_(t,e);if(t){let{__ref:o}=e;o.__class.style=n}i_()(e.classlist,e,e.state,!0)},i_=()=>(t,e,r,n)=>{if(e.style&&!n)return;let{__ref:o}=e,{__class:s,__classNames:i}=o;if(!(t===null||typeof t!=\"object\"||Array.isArray(t))){e.class&&(i.classProps=e.class),e.attr?.class&&(i.class=e.attr.class);for(let a in s){let c=s[a];if(!c){delete i[a];continue}let l;typeof c==\"string\"||typeof c==\"number\"?l=c:typeof c==\"boolean\"?l=e.key:l=le(c),i[a]=l}for(let a in i)a===\"classProps\"||a===\"class\"||s[a]===void 0&&delete i[a];e.node&&xv(i,e,e.node)}},Sv=()=>({style:_v(),classlist:i_()}),wv=[\"useReset\",\"useVariable\",\"useFontImport\",\"useIconSprite\",\"useSvgSprite\",\"useDocumentTheme\",\"useDefaultIcons\",\"useDefaultConfig\",\"verbose\",\"globalTheme\"],$h=new WeakSet,Ih=!1,kv=t=>!!t&&typeof t==\"object\",a_=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||Sv(),s=e.designSystem?X(ot(e.designSystem),ui):ot(ui),i={};for(let m of wv)e[m]!==void 0&&(i[m]=e[m]);let a,c=kv(r),f=c&&$h.has(r)&&!e.skipDesignSystemInit,u=!f&&!Ih,d=f?`[data-smbls-app=\"${t}\"]`:\":root\";e.scopeSelector=d;let h=d===\":root\"?\":root:not([data-theme])\":`${d}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.__domDocument=r),a?.CSS_VARS){rt(a);try{if(dt({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let m={};for(let b in a.CSS_MEDIA_VARS)b.startsWith(\"@media\")?m[b]={[h]:a.CSS_MEDIA_VARS[b]}:m[b]=a.CSS_MEDIA_VARS[b];dt(m)}}finally{J()}}}else if(u){let m=A();m&&(m.__domDocument=r),a=je(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...zc,...i,...n}),a&&a!==m&&(a.__domDocument=r),c&&$h.add(r),Ih=!0}else{let m=rc(t,s,{cleanBase:!0});for(let b in i)m[b]=i[b];if(m.__domDocument=r,f){let b=t.replace(/[^a-zA-Z0-9]/g,\"\").substring(0,6);e.cssPrefix=b,m.varPrefix=b}rt(m);try{a=je(m,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:d,...zc,...i,...n})}finally{J()}c&&$h.add(r),Ih=!0}let g=a?.CONFIG||a,p=g?.font;if(p){rt(g);try{for(let m in p){let b=p[m];if(!b?.fontFace)continue;let x=Array.isArray(b.fontFace)?b.fontFace:[b.fontFace];for(let y of x)typeof y==\"string\"&&y.includes(\"font-family\")&&dt(`@font-face { ${y} }`)}}finally{J()}}return[a,o]},c_=(t,e)=>{let r={};e.state&&X(r,e.state),t&&t.state&&X(r,t.state);let n=e.polyglot;if(n?.translations){let o=null;try{typeof localStorage<\"u\"&&(o=localStorage.getItem(n.storageLangKey||\"smbls_lang\")||localStorage.getItem(\"lang\"))}catch{}let s=o||r.lang||n.defaultLang||\"en\";o&&o!==r.lang&&(r.lang=o);let i=n.translations[s];if(i&&typeof i==\"object\")for(let c in i)r[c]=i[c];let a=new Set(n.languages||[]);for(let c in n.translations)!a.has(c)&&r[c]===void 0&&(r[c]=n.translations[c])}return r.isRootState=!0,ot(r)},l_=(t,e)=>{w(t.routes)&&w(e.pages)&&it(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},f_=t=>{gs(t,t.sharedLibraries)};O();var d_=\"smbls_lang\",vv=\"smbls_t_\",Cv=\"smbls_tv_\",Bn={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn(\"[polyglot] localStorage unavailable:\",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn(\"[polyglot] localStorage unavailable:\",e.message)}}},bi={};function xi(){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 Wc=(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},u_=(t,e,r)=>{let n=e.lastIndexOf(\".\");if(n===-1)return t[e+\"_\"+r];let o=Wc(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+\"_\"+r]};function qc(t,e){if(!t)return\"\";let r=this?.context,n=r?.polyglot,o=e||this.call(\"getActiveLang\"),s=this?.state;if(s){let l=u_(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=Wc(l,t);if(f!==void 0)return f}}let a=(s?.root||r?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Wc(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||\"en\";if(s){let l=u_(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=Wc(l,t);if(f!==void 0)return f}}return t}async function Kc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||vv,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,\"v_\"):Cv);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Bn.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...n.translations||{}}};f.translations[t]=l,n.update&&n.update(f)}catch(l){console.warn(\"[polyglot] Failed to apply language update:\",l.message)}}let i=(r.storagePrefix||\"smbls\")+\":\"+t;if(bi[i])return bi[i];let a=this;return bi[i]=(async()=>{try{let c=r.fetch,l=parseInt(Bn.get(s+t),10)||0,f,u,d;if(C(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(w(c)){let g=a.getDB||(()=>e.fetch),p=C(g)?await g.call(a):e.fetch;if(!p)return;let m=c.rpc||c.from||\"get_translations_if_changed\",b={p_lang:t,p_cached_version:l,...c.params||{}},x=await p.rpc({from:m,params:b});if(x.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,x.error;let y=x.data;if(!y||!y.changed)return;f=y.translations||{},u=y.version||0,d=!0}else return;if(!d||!f)return;Bn.set(o+t,JSON.stringify(f)),u&&Bn.set(s+t,String(u));let h={translations:{...n.translations||{}}};h.translations[t]=f,n.update&&n.update(h)}catch(c){if(r.verbose!==!1){let l=c?.message||c?.details||(typeof c==\"object\"?JSON.stringify(c):String(c));console.warn(\"[polyglot] Failed to load translations for\",t,\"-\",l)}}finally{delete bi[i]}})(),bi[i]}async function Gc(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||d_;Bn.set(o,t),r?.fetch&&await this.call(\"loadTranslations\",t),e?.state&&(e.state.lang=t);let s=r?.translations?.[t],i={lang:t};if(s&&typeof s==\"object\")for(let c in s){let l=s[c];(Array.isArray(l)||typeof l==\"string\"||typeof l==\"number\")&&(i[c]=l)}if(n.update&&n.update(i),s&&typeof s==\"object\")for(let c in s){let l=s[c];if(l&&typeof l==\"object\"&&!Array.isArray(l)&&n[c]&&typeof n[c]==\"object\"&&!Array.isArray(n[c]))for(let f in l)n[c][f]=l[f]}let a=this?.context?.document||globalThis.document;if(a&&s){let c=a.querySelectorAll(\"[data-key]\");for(let l of c){let f=l.ref;if(!f)continue;let u=f.__ref?.__exec?.text;if(typeof u==\"string\"&&u.includes(\"{{\"))try{let d=f.call(\"replaceLiteralsWithObjectFields\",u,f.state);d!=null&&l.textContent!==d&&(l.textContent=d)}catch{}}}}async function Yc(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&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=C(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||\"translations\",l=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(l?.error)throw l.error;return l.data}}async function Dh(){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||d_,s=Bn.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 Jc={name:\"polyglot\",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Dh.call(t))}};var _i={polyglot:qc,getLocalStateLang:Xc,getActiveLang:xi,getLang:xi,setLang:Gc,getLanguages:Hc,loadTranslations:Kc,upsertTranslation:Yc};$r();var Zc={arial:{capHeight:716,ascent:1854,descent:-434,lineGap:67,unitsPerEm:2048},helvetica:{capHeight:714,ascent:770,descent:-230,lineGap:0,unitsPerEm:1e3},\"helvetica neue\":{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3},georgia:{capHeight:1419,ascent:1878,descent:-449,lineGap:0,unitsPerEm:2048},\"times new roman\":{capHeight:1356,ascent:1825,descent:-443,lineGap:87,unitsPerEm:2048},\"courier new\":{capHeight:1170,ascent:1705,descent:-615,lineGap:0,unitsPerEm:2048},verdana:{capHeight:1489,ascent:2059,descent:-430,lineGap:0,unitsPerEm:2048},roboto:{capHeight:1456,ascent:1900,descent:-500,lineGap:0,unitsPerEm:2048},\"open sans\":{capHeight:1462,ascent:2189,descent:-600,lineGap:0,unitsPerEm:2048},inter:{capHeight:1490,ascent:2048,descent:-512,lineGap:0,unitsPerEm:2048},lato:{capHeight:1434,ascent:1974,descent:-426,lineGap:0,unitsPerEm:2e3},\"source sans\":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},\"source sans pro\":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},\"source sans 3\":{capHeight:660,ascent:984,descent:-273,lineGap:0,unitsPerEm:1e3},montserrat:{capHeight:700,ascent:968,descent:-251,lineGap:0,unitsPerEm:1e3},poppins:{capHeight:700,ascent:1050,descent:-350,lineGap:100,unitsPerEm:1e3},raleway:{capHeight:710,ascent:1e3,descent:-250,lineGap:0,unitsPerEm:1e3},\"dm sans\":{capHeight:700,ascent:992,descent:-312,lineGap:0,unitsPerEm:1e3},nunito:{capHeight:705,ascent:1011,descent:-353,lineGap:0,unitsPerEm:1e3},\"work sans\":{capHeight:684,ascent:930,descent:-243,lineGap:0,unitsPerEm:1e3},manrope:{capHeight:708,ascent:980,descent:-300,lineGap:0,unitsPerEm:1e3},\"ibm plex sans\":{capHeight:698,ascent:1025,descent:-275,lineGap:0,unitsPerEm:1e3},\"plus jakarta sans\":{capHeight:720,ascent:1060,descent:-300,lineGap:0,unitsPerEm:1e3}},Qc=t=>parseFloat(t.toFixed(4)),Av=(t,e,r)=>{let{ascent:n,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=n+c+s,f=r!==void 0?r:l/i*t,u=f/t,d=l/i,h=(n-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Qc(t/16)}rem`,lineHeight:`${Qc(f)}px`,capHeightTrim:`${Qc(-h)}em`,baselineTrim:`${Qc(-g)}em`}},Ev=(t,e)=>{if(typeof t==\"number\")return t;let r=e?.designSystem;if(!r)return null;let{typography:n}=r;if(n?.sequence){let s=String(t).toUpperCase(),i=n.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t==\"string\"&&t.endsWith(\"rem\")?o*(r.typography?.browserDefault||16):o},Tv=(t,e)=>{let n=e?.designSystem?.font_family||{};if(t){let s=n[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['\"]/g,\"\").trim();if(Zc[i])return Zc[i]}let o=n.default||Object.keys(n)[0];if(o){let s=n[o];if(s?.metrics)return s.metrics;if(s?.value&&Array.isArray(s.value))for(let i of s.value){let a=i.toLowerCase().replace(/['\"]/g,\"\").trim();if(Zc[a])return Zc[a]}}return null},p_=(t,e,r,n)=>{if(!t)return;let o=Ev(e.fontSize,n);if(!o)return;let s=Tv(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=Av(o,s,i),f={};return e.lineHeight||(f.lineHeight=a),f[\"::before\"]={content:'\"\"',marginBottom:c,display:\"table\"},f[\"::after\"]={content:'\"\"',marginTop:l,display:\"table\"},f},h_={name:\"capsize\",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Si={attr:\"at\",childExtends:\"cex\",childExtendsRecursive:\"cexr\",childProps:\"cp\",children:\"ch\",childrenAs:\"cha\",class:\"cl\",content:\"cnt\",context:\"ctx\",data:\"dt\",extends:\"ext\",hide:\"hd\",html:\"htm\",if:\"if\",ignoreChildExtends:\"icex\",key:\"ky\",query:\"qy\",routes:\"rt\",scope:\"scp\",show:\"shw\",state:\"st\",style:\"sy\",tag:\"tg\",text:\"tx\",align:\"aln\",boxSize:\"bsz\",flow:\"fl\",heightRange:\"hr\",horizontalInset:\"hi\",round:\"rnd\",shadow:\"shd\",size:\"sz\",templateColumns:\"tcol\",verticalInset:\"vi\",widthRange:\"wr\",wrap:\"wrp\",aspectRatio:\"ar\",blockSize:\"bks\",boxSizing:\"bxs\",height:\"h\",inlineSize:\"ins\",margin:\"m\",marginBottom:\"mb\",marginLeft:\"ml\",marginRight:\"mr\",marginTop:\"mt\",maxBlockSize:\"mxbs\",maxHeight:\"mxh\",maxInlineSize:\"mxis\",maxWidth:\"mxw\",minBlockSize:\"mnbs\",minHeight:\"mnh\",minInlineSize:\"mnis\",minWidth:\"mnw\",padding:\"p\",paddingBottom:\"pb\",paddingInline:\"pil\",paddingLeft:\"pl\",paddingRight:\"pr\",paddingTop:\"pt\",width:\"w\",alignContent:\"ac\",alignItems:\"ai\",alignSelf:\"as\",flex:\"fx\",flexBasis:\"fxb\",flexDirection:\"fxd\",flexFlow:\"fxf\",flexGrow:\"fxg\",flexShrink:\"fxs\",flexWrap:\"fxw\",gap:\"g\",justifyContent:\"jc\",justifyItems:\"ji\",justifySelf:\"js\",order:\"od\",placeContent:\"pcn\",placeItems:\"pit\",placeSelf:\"psl\",rowGap:\"rg\",columnGap:\"cg\",gridArea:\"ga\",gridAutoColumns:\"gac\",gridAutoFlow:\"gaf\",gridAutoRows:\"gar\",gridColumn:\"gc\",gridColumnEnd:\"gce\",gridColumnStart:\"gcs\",gridRow:\"gr\",gridRowEnd:\"gre\",gridRowStart:\"grs\",gridTemplateAreas:\"gta\",gridTemplateColumns:\"gtc\",gridTemplateRows:\"gtr\",bottom:\"bot\",float:\"flt\",inset:\"ist\",left:\"lft\",position:\"pos\",right:\"rgt\",top:\"tp\",zIndex:\"zi\",clear:\"clr\",contain:\"ctn\",cursor:\"cur\",display:\"d\",opacity:\"op\",overflow:\"ov\",overflowX:\"ovx\",overflowY:\"ovy\",pointerEvents:\"pe\",resize:\"rsz\",userSelect:\"us\",visibility:\"vis\",background:\"bg\",backgroundAttachment:\"bga\",backgroundBlendMode:\"bgbm\",backgroundClip:\"bgcl\",backgroundColor:\"bgc\",backgroundImage:\"bgi\",backgroundOrigin:\"bgo\",backgroundPosition:\"bgp\",backgroundPositionX:\"bgpx\",backgroundPositionY:\"bgpy\",backgroundRepeat:\"bgr\",backgroundRepeatX:\"bgrx\",backgroundRepeatY:\"bgry\",backgroundSize:\"bgs\",color:\"c\",theme:\"thm\",themeModifier:\"thmm\",border:\"bd\",borderBottom:\"bdb\",borderBottomLeftRadius:\"bdblr\",borderBottomRightRadius:\"bdbrr\",borderCollapse:\"bdcl\",borderColor:\"bdc\",borderImage:\"bdi\",borderImageOutset:\"bdio\",borderImageRepeat:\"bdir\",borderImageSlice:\"bdis\",borderImageSource:\"bdisrc\",borderImageWidth:\"bdiw\",borderLeft:\"bdl\",borderRadius:\"bdr\",borderRight:\"bdrg\",borderSpacing:\"bdsp\",borderStyle:\"bdst\",borderTop:\"bdt\",borderTopLeftRadius:\"bdtlr\",borderTopRightRadius:\"bdtrr\",borderWidth:\"bdw\",outline:\"ol\",outlineColor:\"olc\",outlineOffset:\"olo\",outlineStyle:\"ols\",outlineWidth:\"olw\",boxShadow:\"bxsh\",textShadow:\"txsh\",direction:\"dir\",fontDisplay:\"fdi\",fontFamily:\"ff\",fontFeatureSettings:\"ffs\",fontKerning:\"fk\",fontOpticalSizing:\"fos\",fontPalette:\"fpl\",fontSize:\"fs\",fontSizeAdjust:\"fsa\",fontSmooth:\"fsm\",fontStretch:\"fsr\",fontStyle:\"fsy\",fontSynthesis:\"fsyn\",fontVariant:\"fv\",fontVariationSettings:\"fvs\",fontWeight:\"fw\",hyphens:\"hyp\",letterSpacing:\"ls\",lineHeight:\"lh\",tabSize:\"tsz\",textAlign:\"ta\",textDecoration:\"td\",textDecorationColor:\"tdc\",textDecorationLine:\"tdl\",textDecorationStyle:\"tds\",textIndent:\"ti\",textOverflow:\"tov\",textStroke:\"tsk\",textTransform:\"tt\",unicodeBidi:\"ub\",verticalAlign:\"va\",whiteSpace:\"ws\",wordBreak:\"wbr\",wordSpacing:\"wsp\",wordWrap:\"wwr\",writingMode:\"wm\",captionSide:\"cps\",counterIncrement:\"ci\",counterReset:\"cr\",emptyCells:\"ec\",listStyle:\"lst\",listStyleImage:\"lsi\",listStylePosition:\"lsp\",listStyleType:\"lsty\",quotes:\"qt\",tableLayout:\"tl\",columnCount:\"cc\",columnFill:\"cf\",columnRule:\"crl\",columnRuleColor:\"crlc\",columnRuleStyle:\"crls\",columnRuleWidth:\"crlw\",columnSpan:\"cspn\",columnWidth:\"cwi\",columns:\"col\",backdropFilter:\"bdf\",boxDecorationBreak:\"bxdb\",clipPath:\"cpth\",filter:\"fil\",isolation:\"iso\",mixBlendMode:\"mbm\",objectFit:\"obf\",objectPosition:\"obp\",perspective:\"prs\",perspectiveOrigin:\"prso\",willChange:\"wc\",transform:\"tf\",transformOrigin:\"tfo\",transformStyle:\"tfs\",transition:\"trn\",transitionDelay:\"trnd\",transitionDuration:\"trndr\",transitionProperty:\"trnp\",transitionTimingFunction:\"trntf\",animation:\"an\",animationDelay:\"and\",animationDirection:\"andr\",animationDuration:\"andur\",animationFillMode:\"anfm\",animationIterationCount:\"anic\",animationName:\"ann\",animationPlayState:\"anps\",animationTimingFunction:\"antf\",scrollBehavior:\"sb\",scrollMargin:\"smr\",scrollMarginBottom:\"smrb\",scrollMarginLeft:\"smrl\",scrollMarginRight:\"smrr\",scrollMarginTop:\"smrt\",scrollPadding:\"spd\",scrollPaddingBottom:\"spdb\",scrollPaddingLeft:\"spdl\",scrollPaddingRight:\"spdr\",scrollPaddingTop:\"spdt\",scrollSnapAlign:\"ssa\",scrollSnapStop:\"sss\",scrollSnapType:\"sst\",breakAfter:\"bka\",breakBefore:\"bkb\",breakInside:\"bki\",pageBreakAfter:\"pbka\",pageBreakBefore:\"pbkb\",pageBreakInside:\"pbki\",accessKey:\"ack\",className:\"cn\",contentEditable:\"ced\",contextMenu:\"cmu\",draggable:\"drg\",hidden:\"hid\",id:\"id\",is:\"is\",lang:\"lng\",nonce:\"nnc\",spellCheck:\"spc\",tabIndex:\"tbi\",title:\"ttl\",translate:\"trl\",accept:\"acp\",acceptCharset:\"accs\",action:\"act\",autoComplete:\"atc\",autoFocus:\"atf\",capture:\"cap\",challenge:\"chg\",checked:\"chk\",cols:\"cls\",colSpan:\"csn\",controls:\"ctl\",default:\"def\",defer:\"dfr\",disabled:\"dis\",encType:\"ect\",form:\"frm\",formAction:\"fac\",formEncType:\"fect\",formMethod:\"fme\",formNoValidate:\"fnv\",formTarget:\"ftg\",high:\"hgh\",inputMode:\"imd\",kind:\"knd\",label:\"lbl\",list:\"lis\",loop:\"lp\",low:\"lw\",max:\"mx\",maxLength:\"mxl\",method:\"mtd\",min:\"mn\",minLength:\"mnl\",multiple:\"mul\",muted:\"mut\",name:\"nm\",open:\"opn\",optimum:\"opt\",pattern:\"ptn\",placeholder:\"phd\",readOnly:\"ro\",required:\"req\",reversed:\"rev\",rows:\"rws\",rowSpan:\"rsn\",selected:\"sel\",span:\"spn\",start:\"srt\",step:\"stp\",type:\"typ\",value:\"val\",download:\"dl\",href:\"hrf\",hrefLang:\"hrl\",ping:\"png\",referrerPolicy:\"rfp\",rel:\"rl\",target:\"tgt\",allow:\"alw\",allowFullScreen:\"afs\",allowPaymentRequest:\"apr\",alt:\"alt\",cellPadding:\"cpg\",cellSpacing:\"csg\",cite:\"cit\",coords:\"crd\",crossOrigin:\"cor\",dateTime:\"dtm\",fetchPriority:\"fpr\",headers:\"hds\",httpEquiv:\"hte\",integrity:\"itg\",isMap:\"ism\",keyType:\"kty\",loading:\"ldg\",manifest:\"mft\",media:\"mda\",poster:\"pst\",preload:\"prl\",radioGroup:\"rdg\",sandbox:\"sbx\",scoped:\"scod\",seamless:\"sml\",shape:\"shp\",sizes:\"szs\",src:\"src\",srcDoc:\"srd\",srcLang:\"srl\",srcSet:\"srs\",useMap:\"ump\",ariaActiveDescendant:\"aad\",ariaAtomic:\"aat\",ariaBusy:\"abu\",ariaChecked:\"achk\",ariaControls:\"acl\",ariaCurrent:\"acr\",ariaDescribedBy:\"adb\",ariaDetails:\"adt\",ariaDisabled:\"adis\",ariaDropEffect:\"ade\",ariaErrorMessage:\"aem\",ariaExpanded:\"aexp\",ariaGrabbed:\"agr\",ariaHasPopup:\"ahp\",ariaHidden:\"ahid\",ariaInvalid:\"ainv\",ariaLabel:\"alb\",ariaLabelledBy:\"alby\",ariaLive:\"alv\",ariaModal:\"amod\",ariaMultiSelectable:\"ams\",ariaOrientation:\"aor\",ariaOwns:\"aow\",ariaPosInSet:\"apis\",ariaPressed:\"aprs\",ariaReadOnly:\"aro\",ariaRelevant:\"arl\",ariaRequired:\"areq\",ariaSelected:\"asel\",ariaSetSize:\"assz\",ariaValueMax:\"avmx\",ariaValueMin:\"avmn\",ariaValueNow:\"avn\",role:\"role\",onInit:\"@in\",onRender:\"@rn\",onUpdate:\"@up\",onStateChange:\"@sc\",onStateUpdate:\"@su\",onClick:\"@ck\",onContextMenu:\"@cm\",onDblClick:\"@dc\",onMouseDown:\"@md\",onMouseEnter:\"@me\",onMouseLeave:\"@ml\",onMouseMove:\"@mm\",onMouseOut:\"@mo\",onMouseOver:\"@mv\",onMouseUp:\"@mu\",onKeyDown:\"@kd\",onKeyPress:\"@kp\",onKeyUp:\"@ku\",onBlur:\"@bl\",onFocus:\"@fc\",onFocusIn:\"@fi\",onFocusOut:\"@fo\",onBeforeInput:\"@bi\",onChange:\"@cg\",onFormData:\"@fd\",onInput:\"@ip\",onInvalid:\"@iv\",onReset:\"@rs\",onSearch:\"@sr\",onSelect:\"@sl\",onSubmit:\"@sm\",onTouchCancel:\"@tc\",onTouchEnd:\"@te\",onTouchMove:\"@tm\",onTouchStart:\"@ts\",onPointerCancel:\"@pc\",onPointerDown:\"@pd\",onPointerEnter:\"@pe\",onPointerLeave:\"@ple\",onPointerMove:\"@pm\",onPointerOut:\"@po\",onPointerOver:\"@pov\",onPointerUp:\"@pu\",onDrag:\"@dg\",onDragEnd:\"@dge\",onDragEnter:\"@dgn\",onDragLeave:\"@dgl\",onDragOver:\"@dgo\",onDragStart:\"@dgs\",onDrop:\"@dp\",onResize:\"@rz\",onScroll:\"@scl\",onWheel:\"@wh\",onCopy:\"@cy\",onCut:\"@ct\",onPaste:\"@pt\",onCompositionEnd:\"@cpe\",onCompositionStart:\"@cps\",onCompositionUpdate:\"@cpu\",onAnimationEnd:\"@ae\",onAnimationIteration:\"@ai\",onAnimationStart:\"@as\",onTransitionEnd:\"@tre\",onTransitionStart:\"@trs\",onAbort:\"@ab\",onCanPlay:\"@cap\",onCanPlayThrough:\"@cpt\",onDurationChange:\"@duc\",onEmptied:\"@em\",onEncrypted:\"@enc\",onEnded:\"@end\",onError:\"@er\",onLoad:\"@ld\",onLoadedData:\"@ldd\",onLoadedMetadata:\"@ldm\",onPause:\"@pa\",onPlay:\"@pl\",onPlaying:\"@plg\",onProgress:\"@prg\",onRateChange:\"@rc\",onSeeked:\"@sk\",onSeeking:\"@skg\",onStalled:\"@stl\",onSuspend:\"@ssp\",onTimeUpdate:\"@tu\",onVolumeChange:\"@vc\",onWaiting:\"@wt\",icon:\"ico\",iconText:\"ict\",lookup:\"lkp\",router:\"rtr\",shapeModifier:\"shpm\"},ee=Object.create(null);for(let t in Si)ee[Si[t]]=t;var Fh=Object.create(null);for(let t in Si){let e=Si[t];if(Fh[e])throw new Error(`Duplicate abbreviation \"${e}\" for \"${t}\" \\u2014 already used by \"${Fh[e]}\"`);Fh[e]=t}var mr=new Set([\"state\",\"st\",\"scope\",\"scp\",\"attr\",\"at\",\"style\",\"sy\",\"data\",\"dt\",\"context\",\"ctx\",\"query\",\"qy\",\"class\",\"cl\"]);function wi(t){return/^[A-Z]/.test(t)}function ki(t){return/^[:@.!$>&]/.test(t)||t.startsWith(\"> \")}function Ov(t){return t.trim().split(/\\s+/).filter(Boolean)}function g_(t){return t.replace(/_/g,\" \")}function Rv(t){if(!t||typeof t!=\"string\")return{};let e={},r=Ov(t);for(let n of r){if(n.startsWith(\"!\")){let c=n.slice(1),l=ee[c]||c;e[l]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let c=ee[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=ee[s]||s;if(i.includes(\",\")){e[a]=i.split(\",\").map(g_);continue}e[a]=g_(i)}return e}function vi(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?vi(r):r});let e={};for(let r in t){let n=t[r];if(wi(r)){e[r]=Lh(n);continue}let o=ee[r]||r;if(ki(r)&&o===r){e[r]=Lh(n);continue}if(mr.has(o)||mr.has(r)){e[o]=n;continue}e[o]=Lh(n)}return e}function Lh(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?vi(e):e}):typeof t==\"object\"?vi(t):t}function Ci(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Ci(r):r});let e={};if(typeof t.in==\"string\"){let r=Rv(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(wi(r)){e[r]=Mh(n);continue}let o=ee[r]||r;if(ki(r)&&o===r){e[r]=Mh(n);continue}if(mr.has(o)||mr.has(r)){e[o]=n;continue}e[o]=Mh(n)}return e}function Mh(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Ci(e):e}):typeof t==\"object\"?Ci(t):t}function Pv(t){let e=\"\",r=0;for(;r<t.length;){if(t[r]===\"\\\\\"&&r+1<t.length){let n=t[r+1];if(n===\",\"||n===\"_\"||n===\"\\\\\"){e+=n,r+=2;continue}}t[r]===\"_\"?e+=\" \":e+=t[r],r++}return e}function $v(t){let e=[],r=\"\",n=0;for(;n<t.length;){if(t[n]===\"\\\\\"&&n+1<t.length){r+=t[n]+t[n+1],n+=2;continue}if(t[n]===\",\"){e.push(r),r=\"\",n++;continue}r+=t[n],n++}return e.push(r),e}function m_(t){return t.startsWith(\"#\")&&/^#-?\\d+(\\.\\d+)?$/.test(t)?Number(t.slice(1)):Pv(t)}function Nh(t){if(!t||typeof t!=\"string\")return{};let e={},r=t.trim().split(/\\s+/).filter(Boolean);for(let n of r){if(n.startsWith(\"!\")){let l=n.slice(1),f=ee[l]||l;e[f]=!1;continue}let o=n.indexOf(\":\");if(o===-1){let l=ee[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=ee[s]||s,c=$v(i);if(c.length>1){e[a]=c.map(m_);continue}e[a]=m_(i)}return e}function Ai(t){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r==\"object\"?Ai(r):r});let e={};if(typeof t.in==\"string\"){let r=Nh(t.in);for(let n in r)e[n]=r[n]}for(let r in t){if(r===\"in\")continue;let n=t[r];if(wi(r)){typeof n==\"string\"?e[r]=Nh(n):e[r]=jh(n);continue}let o=ee[r]||r;if(ki(r)&&o===r){typeof n==\"string\"?e[r]=Nh(n):e[r]=jh(n);continue}if(mr.has(o)||mr.has(r)){e[o]=n;continue}e[o]=jh(n)}return e}function jh(t){return t==null||typeof t==\"function\"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e==\"object\"?Ai(e):e}):typeof t==\"object\"?Ai(t):t}var Iv={shorten:vi,stringify:Ci,stringifyFurther:Ai};function Dv(t,e){if(!t||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(n=>e(n));let r={};for(let n in t){let o=t[n];r[n]=o&&typeof o==\"object\"?e(o):o}return r}var Fv=[\"components\",\"pages\",\"snippets\"],tl={name:\"shorthand\",prepareContext(t){let e=t.shorthand;if(!e)return;let n=Iv[e===!0?\"shorten\":e];if(n){for(let o of Fv)t[o]&&(t[o]=Dv(t[o],n));t.app&&typeof t.app==\"object\"&&(t.app=n(t.app))}}};var Lv=0,Mv=()=>`${Date.now().toString(36)}-${(Lv++).toString(36)}`,K=(t,e,r={})=>({id:Mv(),ts:Date.now(),type:t,level:e,...r}),Nv=t=>{let e=[],r=t,n=0;for(;r&&n<32;)r.key!=null&&e.unshift(String(r.key)),r=r.parent,n++;return e.join(\" > \")},Vn=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:Nv(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Un=t=>t?.context?.analyze,jv={init:{category:\"lifecycle\",type:\"lifecycle\",level:\"debug\"},create:{category:\"lifecycle\",type:\"lifecycle\",level:\"debug\"},render:{category:\"lifecycle\",type:\"lifecycle\",level:\"debug\"},beforeRemove:{category:\"lifecycle\",type:\"lifecycle\",level:\"debug\"},remove:{category:\"lifecycle\",type:\"lifecycle\",level:\"debug\"}},Bv=(t,{category:e,type:r,level:n})=>o=>{let s=Un(o);!s||!s.shouldCapture(e)||s.emit(K(r,n,{hook:t,element:Vn(o)}))},y_=t=>(e,r)=>{let n=Un(e);!n||!n.shouldCapture(\"state\")||n.emit(K(\"state\",\"debug\",{hook:t,element:Vn(e),changedKeys:r?.changedKeys||null}))},Ei={name:\"analyze\",error(t,e){let r=Un(t);if(!r||r.config.enabled===!1||!r.shouldCapture(\"errors\"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(K(\"error\",\"error\",{hook:e?.hook||\"error\",element:Vn(t),error:n,message:n?.message||(typeof e?.message==\"string\"?e.message:null)}))},renderRouter(t){let e=Un(t);e&&(!e.shouldCapture(\"navigation\")&&!e.shouldCapture(\"lifecycle\")||e.emit(K(\"navigation\",\"info\",{hook:\"renderRouter\",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Un(t);!e||!e.shouldCapture(\"updates\")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<\"u\"?performance.now():Date.now())},update(t){let e=Un(t);if(!e||!e.shouldCapture(\"updates\"))return;let r=null;t.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<\"u\"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(K(\"update\",\"debug\",{hook:\"update\",element:Vn(t),durationMs:r}))},beforeStateUpdate:y_(\"beforeStateUpdate\"),stateUpdate:y_(\"stateUpdate\")};for(let[t,e]of Object.entries(jv))Ei[t]=Bv(t,e);O();var el={error:0,warn:1,info:2,debug:3,trace:4};var Bh=(t,e)=>{let r=el[t],n=el[e];return r==null||n==null?!0:r<=n},rl=t=>el[t]!=null?t:\"warn\";O();var nl=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var Vv=(t,e)=>{for(let r of e)if(r instanceof RegExp){if(r.test(t))return!0}else if(typeof r==\"string\"&&t.toLowerCase().includes(r.toLowerCase()))return!0;return!1},Uv=(t,e)=>{if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t);for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},Vh=(t,e,r,n)=>{if(n>6||t==null||typeof t!=\"object\")return t;if(Array.isArray(t))return t.map(s=>Vh(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(Vv(s,e)||nl.test(s)){let a=Uv(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=Vh(t[s],e,r,n+1);return o},Uh=(t=[],e=\"mask\")=>{let r=Array.isArray(t)?t:[t];return n=>{if(!n)return n;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...g}=n,p=Vh(g,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:h,...p}}};var b_=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,r=typeof navigator<\"u\"?navigator.userAgent:null,n=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=k,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:n,route:i},meta:{ua:r,viewport:c}}}},x_=()=>t=>{if(!t)return t;if(t.element&&typeof t.element==\"object\"){let e=t.element;(e.node||e.parent||e.__ref)&&(t={...t,element:{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,tag:e.tag||null,component:e.component||null}})}return t.error instanceof Error&&(t={...t,error:{name:t.error.name,message:t.error.message,stack:t.error.stack}}),t},__=(t=1e3,e=500)=>{let r=new Map;return n=>{if(!n)return n;let o=`${n.type}:${n.level}:${n.message||\"\"}:${n.error?.message||\"\"}`,s=r.get(o),i=n.ts||Date.now();if(s&&i-s<t)return null;if(r.set(o,i),r.size>e){let a=Math.ceil(e/10),c=0;for(let l of r.keys()){if(c++>=a)break;r.delete(l)}}return n}},S_=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},w_={redact:t=>Uh(t.config.redact||[],t.config.maskStrategy),enrich:t=>b_(t),summarize:()=>x_(),dedupe:t=>__(t.config.cache?.dedupeWindowMs||1e3),sample:t=>S_(t.config.sample||{})},zv=(t,e)=>{if(typeof t==\"function\")return t;if(typeof t==\"string\"){let r=w_[t];return r?r(e):null}return null},zh=t=>{let e=t.config,r=Array.isArray(e.transformers)?e.transformers.slice():[],n=r.findIndex(s=>s===\"redact\");n>=0&&r.splice(n,1);let o=[];e.redact!==!1&&o.push(w_.redact(t));for(let s of r){let i=zv(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let d=u,h=!1;for(let g of l)if(d=g(d),d==null){h=!0;break}!h&&d!=null&&f.push(d)}return f}i=c}return i}};O();O();var ol=typeof k<\"u\"&&typeof k.document<\"u\",Wv=5e3,Hv=50,qv=3,Kv=1500,Gv=1e3,k_=t=>t?t.level===\"error\"||t.type===\"error\"?\"bug\":t.type===\"network\"?\"network\":t.type===\"console\"?t.level===\"error\"||t.level===\"warn\"?\"bug\":\"log\":t.level===\"warn\"?\"bug\":t.level===\"info\"?\"log\":\"verbose\":\"verbose\",Yv=t=>{try{return JSON.stringify(t)}catch{return null}},Xv=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},Jv=t=>{if(!t)return null;let e=String(t),r;return(r=e.match(/Edg\\/([\\d.]+)/))?{name:\"Edge\",version:r[1]}:(r=e.match(/OPR\\/([\\d.]+)/))?{name:\"Opera\",version:r[1]}:(r=e.match(/Firefox\\/([\\d.]+)/))?{name:\"Firefox\",version:r[1]}:/Chrome\\/([\\d.]+)/.test(e)&&/Safari\\//.test(e)?(r=e.match(/Chrome\\/([\\d.]+)/),{name:\"Chrome\",version:r[1]}):(r=e.match(/Version\\/([\\d.]+).*Safari/))?{name:\"Safari\",version:r[1]}:{name:null,version:null}},Zv=()=>{if(!ol)return null;try{let t=k.document?.documentElement?.getAttribute(\"data-theme\")||null,e=typeof k.matchMedia==\"function\"?k.matchMedia(\"(prefers-color-scheme: dark)\").matches:null;return{active:t||(e?\"dark\":e===!1?\"light\":null),forced:t||null,prefers:e==null?null:e?\"dark\":\"light\"}}catch{return null}},Qv=()=>{if(!ol)return null;let t=k.location,e=typeof navigator<\"u\"?navigator:null,r=typeof screen<\"u\"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:k.document?.referrer||null,title:k.document?.title||null,ua:e?.userAgent||null,browser:Jv(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:Xv(),viewport:k.innerWidth?{w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}:null,screen:r?{w:r.width||null,h:r.height||null,availW:r.availWidth||null,availH:r.availHeight||null,colorDepth:r.colorDepth||null,orientation:r.orientation?.type||null}:null,theme:Zv()}},Wh=(t={})=>{let e=t.url,r=typeof t.transport==\"function\"?t.transport:null;if(!e&&!r)return()=>{};let n=t.apiKey||null,o=t.appKey||t.appId||null,s=t.tenantKey||t.tenant||null,i=t.release||null,a=t.env||null,c=t.sdk||null,l=typeof t.getAuth==\"function\"?t.getAuth:null,f=typeof t.getContext==\"function\"?t.getContext:null,u=typeof t.classify==\"function\"?t.classify:k_,d=typeof t.beforeSend==\"function\"?t.beforeSend:null,h=t.batchMs!=null?t.batchMs:Wv,g=t.maxBatch||Hv,p=t.maxRetries!=null?t.maxRetries:qv,m=t.backoffMs||Kv,b=t.queueLimit||Gv,x=t.sampleRate!=null?t.sampleRate:1,y=t.sessionId||(typeof crypto<\"u\"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),_=[],v=[],E=null,I=null,H=()=>{E||!_.length||(E=setTimeout(at,h))},R=B=>{if(I)return;let $=m*Math.pow(2,Math.max(0,B-1));I=setTimeout(()=>{if(I=null,!v.length)return;let j=v.shift();G(j.envelope,j.attempt)},$)},P=B=>{let $=f?tC(f):null,j={v:1,session:{id:y,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:Qv(),user:$?.user||null,traits:$?.traits||null,tags:$?.tags||null,events:B};if(d)try{return d(j)||null}catch{return j}return j},G=async(B,$=1)=>{if(B)try{let j=!0;if(r){let F=await r(B);j=F!==!1&&F?.ok!==!1}else j=await eC(e,B,{apiKey:n,getAuth:l});!j&&$<p&&(v.push({envelope:B,attempt:$+1}),R($+1))}catch{$<p&&(v.push({envelope:B,attempt:$+1}),R($+1))}},at=(B=!1)=>{if(E&&(clearTimeout(E),E=null),!_.length)return;let $=_;_=[];let j=P($);if(j){if(B&&ol&&navigator.sendBeacon&&e){let F=Yv(j);if(F)try{navigator.sendBeacon(e,new k.Blob([F],{type:\"application/json\"}));return}catch{}}G(j)}};ol&&(k.addEventListener(\"pagehide\",()=>at(!0),{passive:!0}),k.addEventListener(\"beforeunload\",()=>at(!0),{passive:!0}),k.addEventListener(\"visibilitychange\",()=>{k.document.visibilityState===\"hidden\"&&at(!0)},{passive:!0}));let W=B=>{if(!B||x<1&&Math.random()>x)return;let $={...B,log_type:u(B)};_.push($),_.length>b&&(_=_.slice(-b)),_.length>=g?at():H()};return W.flush=()=>at(!1),W.sessionId=y,W},tC=t=>{try{return t()}catch{return null}},eC=async(t,e,{apiKey:r,getAuth:n})=>{let o={\"Content-Type\":\"application/json\",\"X-Analyze-Beacon\":\"1\"};if(r&&(o[\"X-Analyze-Key\"]=r),n)try{let s=await n();s&&(o.Authorization=`Bearer ${s}`)}catch{}try{return(await fetch(t,{method:\"POST\",headers:o,body:JSON.stringify(e),keepalive:!0,credentials:\"omit\",mode:\"cors\"})).ok}catch{return!1}};var rC={error:\"\\x1B[31m\",warn:\"\\x1B[33m\",info:\"\\x1B[36m\",debug:\"\\x1B[90m\",trace:\"\\x1B[90m\"},nC=\"\\x1B[0m\",sl=typeof k<\"u\"&&typeof k.document<\"u\",C_=(t={})=>{let e=t.minLevel||null,r=console.error.bind(console),n=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level===\"error\"?r:s.level===\"warn\"?n:o,a=`[analyze:${s.type}]`;if(sl)i(a,s);else{let c=rC[s.level]||\"\";i(`${c}${a}${nC}`,s)}}},A_=(t,e={})=>{let r=e.max||t.config.cache?.max||500,n=new Array(r),o=0,s=0,i=a=>{n[o]=a,o=(o+1)%r,s<r&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+r)%r;for(let l=0;l<s;l++)a[l]=n[(c+l)%r];return a},query:(a={})=>{let c=t.__memory.snapshot(),l=a.sinceMs?Date.now()-a.sinceMs:0;return c.filter(f=>!(!f||a.level&&f.level!==a.level||a.type&&f.type!==a.type||l&&f.ts<l))},clear:()=>{o=0,s=0}},i},E_=(t={})=>{let e=t.url,r=t.batchMs!=null?t.batchMs:5e3,n=t.maxBatch||50;if(!e)return()=>{};let o=[],s=null,i=()=>{if(s&&(clearTimeout(s),s=null),!o.length)return;let c=JSON.stringify({events:o});o=[];let l=sl?new k.Blob([c],{type:\"application/json\"}):c;if(sl&&navigator.sendBeacon)try{navigator.sendBeacon(e,l);return}catch{}typeof fetch<\"u\"&&fetch(e,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"X-Analyze-Beacon\":\"1\"},body:c,keepalive:!0}).catch(()=>{})};sl&&(k.addEventListener(\"pagehide\",i,{passive:!0}),k.addEventListener(\"beforeunload\",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=n?i():s||(s=setTimeout(i,r)))};return a.flush=i,a},v_={console:C_,memory:A_,beacon:E_,remote:Wh},Hh=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:[\"console\"],r=[];for(let n of e)if(typeof n==\"function\")r.push(n);else if(typeof n==\"string\"){let o=v_[n];if(!o)continue;r.push(n===\"memory\"?o(t,{}):o({}))}else if(n&&typeof n==\"object\"&&n.type){let o=v_[n.type];if(!o)continue;r.push(n.type===\"memory\"?o(t,n):o(n))}return r};O();var oC=typeof k<\"u\"&&typeof k.document<\"u\",sC=new Set([\"password\",\"hidden\"]),T_=(t,e)=>{let r=0,n=null,o=null;return(...s)=>{let i=Date.now();i-r>=e?(r=i,t(...s)):(o=s,n||(n=setTimeout(()=>{r=Date.now(),n=null,o&&(t(...o),o=null)},e-(i-r))))}},qh=\"__analyzeKeyPath\",zn=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[qh])return e[qh];let r=[],n=e,o=0,s=null;for(;n&&o<64;){if(n.getAttribute){let a=n.getAttribute(\"data-key\");a&&(s==null&&(s=a),r.unshift(a))}n=n.parentNode,o++}let i;if(r.length)i={selector:null,key:s,path:r.join(\" > \"),tag:e.tagName?.toLowerCase()||null};else{let a=(e.tagName||\"unknown\").toLowerCase(),c=e.id?`#${e.id}`:\"\",l=e.className&&typeof e.className==\"string\"?\".\"+e.className.trim().split(/\\s+/).slice(0,2).join(\".\"):\"\";i={selector:`${a}${c}${l}`,key:null,path:null}}try{e[qh]=i}catch{}return i},iC=(t,e)=>{if(e===\"mask\")return\"***\";if(e!==\"redact\"){if(e===\"hash\"){let r=0,n=String(t||\"\");for(let o=0;o<n.length;o++)r=(r<<5)-r+n.charCodeAt(o)|0;return`#${(r>>>0).toString(36)}`}return\"***\"}},aC=t=>!!(!t||t.tagName===\"INPUT\"&&sC.has(t.type)||nl.test(t.name||\"\")||nl.test(t.id||\"\")||t.dataset?.analyze===\"skip\"),Kh=t=>{if(!oC)return;let e=t.config.capture,r=t.config.throttle,n=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),n.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(k,\"error\",s=>{t.emit(K(\"error\",\"error\",{hook:\"window.onerror\",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(k,\"unhandledrejection\",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(K(\"error\",\"error\",{hook:\"unhandledrejection\",message:a?.message||(typeof i==\"string\"?i:\"Unhandled promise rejection\"),error:a}))})),e.pointer){o(k,\"click\",i=>{t.emit(K(\"pointer\",\"info\",{hook:\"click\",target:zn(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:O_(i)}))},{passive:!0,capture:!0}),o(k,\"dblclick\",i=>{t.emit(K(\"pointer\",\"info\",{hook:\"dblclick\",target:zn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,\"contextmenu\",i=>{t.emit(K(\"pointer\",\"info\",{hook:\"contextmenu\",target:zn(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=T_(i=>{t.emit(K(\"pointer\",\"trace\",{hook:\"pointermove\",x:i.clientX,y:i.clientY}))},r.pointermove);o(k,\"pointermove\",s,{passive:!0})}if(e.keyboard&&o(k,\"keydown\",s=>{t.emit(K(\"keyboard\",\"info\",{hook:\"keydown\",code:s.code,key:s.key&&s.key.length===1?\"\\xB7\":s.key,modifiers:O_(s),target:zn(s)}))},{passive:!0,capture:!0}),e.forms){let s=i=>{let a=i.target;if(!a||!a.tagName||![\"INPUT\",\"TEXTAREA\",\"SELECT\"].includes(a.tagName))return;let l=aC(a),f=a.dataset?.analyze===\"track\",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=iC(a.value,t.config.maskStrategy)),t.emit(K(\"forms\",\"info\",{hook:i.type,target:zn(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(k,\"input\",s,{passive:!0,capture:!0}),o(k,\"change\",s,{passive:!0,capture:!0}),o(k,\"submit\",i=>{t.emit(K(\"forms\",\"info\",{hook:\"submit\",target:zn(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=T_(()=>{t.emit(K(\"scroll\",\"trace\",{hook:\"scroll\",x:k.scrollX,y:k.scrollY}))},r.scroll);o(k,\"scroll\",s,{passive:!0,capture:!0})}if(e.viewport){let s=vo(()=>{t.emit(K(\"viewport\",\"info\",{hook:\"resize\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))},r.resize);o(k,\"resize\",s,{passive:!0}),o(k,\"orientationchange\",()=>{t.emit(K(\"viewport\",\"info\",{hook:\"orientationchange\",orientation:typeof screen<\"u\"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,\"visibilitychange\",()=>{t.emit(K(\"viewport\",\"info\",{hook:\"visibilitychange\",hidden:k.document.hidden}))},{passive:!0}),t.emit(K(\"viewport\",\"info\",{hook:\"initial\",w:k.innerWidth,h:k.innerHeight,dpr:k.devicePixelRatio||1}))}if(e.console)for(let s of[\"log\",\"warn\",\"error\",\"debug\"]){let i=console[s];console[s]=function(...a){try{t.emit(K(\"console\",s===\"error\"?\"error\":s===\"warn\"?\"warn\":\"debug\",{hook:`console.${s}`,args:a.map(R_)}))}catch{}return i.apply(console,a)},n.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<\"u\")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(K(\"performance\",\"info\",{hook:c.entryType,name:c.name,startTime:c.startTime,duration:c.duration,value:c.value!=null?c.value:null}))}),i=[\"largest-contentful-paint\",\"layout-shift\",\"longtask\",\"paint\",\"first-input\",\"event\"];for(let a of i)try{s.observe({type:a,buffered:!0})}catch{}n.push(()=>s.disconnect())}catch{}},O_=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),cC=t=>{let e={name:t.name||\"Error\",message:typeof t.message==\"string\"?t.message:String(t),stack:typeof t.stack==\"string\"?t.stack:null};return t.cause!==void 0&&(e.cause=R_(t.cause)),e},R_=t=>{if(t==null)return t;if(t instanceof Error)return cC(t);if(typeof t==\"object\")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var lC=typeof k<\"u\"&&typeof k.document<\"u\";var Gh=t=>{if(lC&&t.config.capture.network){if(typeof k.fetch==\"function\"){let e=k.fetch.bind(k),r=function(n,o){if(o?.headers?.[\"X-Analyze-Beacon\"])return e(n,o);let s=typeof n==\"string\"?n:n&&n.url||\"\",i=(o?.method||typeof n==\"object\"&&n?.method||\"GET\").toUpperCase(),a=typeof performance<\"u\"?performance.now():Date.now();return t.emit(K(\"network\",\"info\",{hook:\"fetch.start\",source:\"window.fetch\",url:s,method:i})),e(n,o).then(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;return t.emit(K(\"network\",c.ok?\"info\":\"warn\",{hook:\"fetch.success\",source:\"window.fetch\",url:s,method:i,status:c.status,ok:c.ok,durationMs:l})),c}).catch(c=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-a;throw t.emit(K(\"network\",\"error\",{hook:\"fetch.error\",source:\"window.fetch\",url:s,method:i,error:c,durationMs:l})),c})};k.fetch=r,t.__teardown.push(()=>{k.fetch=e})}if(typeof k.XMLHttpRequest==\"function\"){let e=k.XMLHttpRequest,r=e.prototype.open,n=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},r.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s)return n.apply(this,arguments);let i=typeof performance<\"u\"?performance.now():Date.now();t.emit(K(\"network\",\"info\",{hook:\"xhr.start\",source:\"xhr\",url:s.url,method:s.method}));let a=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i,f=this.status>=200&&this.status<400;t.emit(K(\"network\",f?\"info\":\"warn\",{hook:\"xhr.success\",source:\"xhr\",url:s.url,method:s.method,status:this.status,ok:f,durationMs:l}))},c=()=>{let l=(typeof performance<\"u\"?performance.now():Date.now())-i;t.emit(K(\"network\",\"error\",{hook:\"xhr.error\",source:\"xhr\",url:s.url,method:s.method,status:this.status,durationMs:l}))};return this.addEventListener(\"loadend\",a),this.addEventListener(\"error\",c),n.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=r,e.prototype.send=n})}}};var fC={errors:!0,warnings:!0,pointer:!1,keyboard:!1,forms:!1,scroll:!1,viewport:!1,network:!1,performance:!1,navigation:!1,console:!1,lifecycle:!1,state:!1,updates:!1,replay:!1,telemetry:!1},uC={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},dC={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},pC={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},hC=t=>{let e={...fC,...t};return e.replay&&Object.assign(e,uC),e.telemetry&&Object.assign(e,dC),e.remote&&Object.assign(e,pC),e},gC=64,mC=()=>{if(typeof k>\"u\"||!k.location)return null;try{let e=new URLSearchParams(k.location.search).get(\"analyze\");return e||null}catch{return null}},Yh=(t={})=>{let e=t===!0?{}:{...t};e.capture=hC(e.capture||{});let r=mC();(r===\"debug\"||e.debug)&&(e.level=\"debug\",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0}),r===\"off\"&&(e.enabled=!1),e.level=rl(e.level||\"warn\"),e.cache={max:500,dedupeWindowMs:1e3,...e.cache||{}},e.throttle={pointermove:80,mousemove:80,scroll:100,resize:200,...e.throttle||{}},e.maskFormValues==null&&(e.maskFormValues=!0),e.maskStrategy||(e.maskStrategy=\"mask\"),Array.isArray(e.sinks)||(e.sinks=[\"console\",\"memory\"]),Array.isArray(e.transformers)||(e.transformers=[\"enrich\",\"summarize\"]);let n={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{n.__pipeline||(n.__pipeline=zh(n),n.__sinks=Hh(n))};return n.shouldCapture=s=>n.config.enabled===!1?!1:!!n.config.capture[s],n.emit=s=>{if(s&&n.config.enabled!==!1&&!n.__paused&&Bh(s.level,n.config.level)){if(!n.__ready){if(s.level!==\"error\"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<gC&&n.__preBuffer.push(s);return}o(),P_(n,s)}},n.activate=s=>{if(n.context==null&&(n.context=s||null),n.__ready)return;n.__ready=!0;let i=n.__preBuffer;if(n.__preBuffer=[],i.length){o();for(let a of i)P_(n,a)}try{Kh(n)}catch(a){console.error(\"[analyze] browser attach error:\",a)}try{Gh(n)}catch(a){console.error(\"[analyze] network attach error:\",a)}for(let a of n.__onActivate||[])try{a(n)}catch(c){console.error(\"[analyze] onActivate error:\",c)}},n.pause=()=>{n.__paused=!0},n.resume=()=>{n.__paused=!1},n.setLevel=s=>{n.config.level=rl(s)},n.setCapture=(s,i)=>{n.config.capture[s]=!!i},n.query=s=>n.__memory?n.__memory.query(s):[],n.snapshot=()=>n.__memory?n.__memory.snapshot():[],n.emitNetwork=s=>{if(!n.shouldCapture(\"network\"))return;let i=s?.phase,a=i===\"error\"?\"error\":i===\"success\"&&s.ok===!1?\"warn\":\"info\";n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:\"network\",level:a,hook:`fetch.${i||\"unknown\"}`,...s})},n.flush=()=>{if(n.__sinks)for(let s of n.__sinks)typeof s.flush==\"function\"&&s.flush()},n.replay=()=>({initialSnapshot:n.__initialSnapshot,events:n.snapshot()}),n.destroy=()=>{for(let s of n.__teardown)try{s()}catch{}n.__teardown=[],n.__ready=!1,n.__paused=!0},n.__onActivate=[],n.onActivate=s=>{n.__onActivate.push(s)},n},P_=(t,e)=>{let r=t.__pipeline(e);if(r==null)return;let n=Array.isArray(r)?r:[r];for(let o of n){if(typeof t.config.onEvent==\"function\")try{t.config.onEvent(o)}catch{}for(let s of t.__sinks)try{s(o)}catch(i){console.error(\"[analyze] sink error:\",i)}}};var de=Object.create(null);de.open=\"0\";de.close=\"1\";de.ping=\"2\";de.pong=\"3\";de.message=\"4\";de.upgrade=\"5\";de.noop=\"6\";var Ti=Object.create(null);Object.keys(de).forEach(t=>{Ti[de[t]]=t});var Oi={type:\"error\",data:\"parser error\"};var D_=typeof Blob==\"function\"||typeof Blob<\"u\"&&Object.prototype.toString.call(Blob)===\"[object BlobConstructor]\",F_=typeof ArrayBuffer==\"function\",L_=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Ri=({type:t,data:e},r,n)=>D_&&e instanceof Blob?r?n(e):$_(e,n):F_&&(e instanceof ArrayBuffer||L_(e))?r?n(e):$_(new Blob([e]),n):n(de[t]+(e||\"\")),$_=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(\",\")[1];e(\"b\"+(n||\"\"))},r.readAsDataURL(t)};function I_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Xh;function M_(t,e){if(D_&&t.data instanceof Blob)return t.data.arrayBuffer().then(I_).then(e);if(F_&&(t.data instanceof ArrayBuffer||L_(t.data)))return e(I_(t.data));Ri(t,!1,r=>{Xh||(Xh=new TextEncoder),e(Xh.encode(r))})}var N_=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",Pi=typeof Uint8Array>\"u\"?[]:new Uint8Array(256);for(let t=0;t<N_.length;t++)Pi[N_.charCodeAt(t)]=t;var j_=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 l=new ArrayBuffer(e),f=new Uint8Array(l);for(n=0;n<r;n+=4)s=Pi[t.charCodeAt(n)],i=Pi[t.charCodeAt(n+1)],a=Pi[t.charCodeAt(n+2)],c=Pi[t.charCodeAt(n+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l};var yC=typeof ArrayBuffer==\"function\",$i=(t,e)=>{if(typeof t!=\"string\")return{type:\"message\",data:B_(t,e)};let r=t.charAt(0);return r===\"b\"?{type:\"message\",data:bC(t.substring(1),e)}:Ti[r]?t.length>1?{type:Ti[r],data:t.substring(1)}:{type:Ti[r]}:Oi},bC=(t,e)=>{if(yC){let r=j_(t);return B_(r,e)}else return{base64:!0,data:t}},B_=(t,e)=>e===\"blob\"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var V_=\"\u001e\",U_=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Ri(s,!1,a=>{n[i]=a,++o===r&&e(n.join(V_))})})},z_=(t,e)=>{let r=t.split(V_),n=[];for(let o=0;o<r.length;o++){let s=$i(r[o],e);if(n.push(s),s.type===\"error\")break}return n};function W_(){return new TransformStream({transform(t,e){M_(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 Jh;function il(t){return t.reduce((e,r)=>e+r.length,0)}function al(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 H_(t,e){Jh||(Jh=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(il(r)<1)break;let c=al(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(il(r)<2)break;let c=al(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(il(r)<8)break;let c=al(r,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(Oi);break}o=f*Math.pow(2,32)+l.getUint32(4),n=3}else{if(il(r)<o)break;let c=al(r,o);a.enqueue($i(s?c:Jh.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Oi);break}}}})}var Zh=4;function nt(t){if(t)return xC(t)}function xC(t){for(var e in nt.prototype)t[e]=nt.prototype[e];return t}nt.prototype.on=nt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[\"$\"+t]=this._callbacks[\"$\"+t]||[]).push(e),this};nt.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};nt.prototype.off=nt.prototype.removeListener=nt.prototype.removeAllListeners=nt.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};nt.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};nt.prototype.emitReserved=nt.prototype.emit;nt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[\"$\"+t]||[]};nt.prototype.hasListeners=function(t){return!!this.listeners(t).length};var Be=typeof Promise==\"function\"&&typeof Promise.resolve==\"function\"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),vt=typeof self<\"u\"?self:typeof window<\"u\"?window:Function(\"return this\")(),q_=\"arraybuffer\";function cl(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var _C=vt.setTimeout,SC=vt.clearTimeout;function Ve(t,e){e.useNativeTimers?(t.setTimeoutFn=_C.bind(vt),t.clearTimeoutFn=SC.bind(vt)):(t.setTimeoutFn=vt.setTimeout.bind(vt),t.clearTimeoutFn=vt.clearTimeout.bind(vt))}var wC=1.33;function K_(t){return typeof t==\"string\"?kC(t):Math.ceil((t.byteLength||t.size)*wC)}function kC(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 ll(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function G_(t){let e=\"\";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+=\"&\"),e+=encodeURIComponent(r)+\"=\"+encodeURIComponent(t[r]));return e}function Y_(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 fl=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type=\"TransportError\"}},Ue=class extends nt{constructor(e){super(),this.writable=!1,Ve(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 fl(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=$i(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=G_(e);return r.length?\"?\"+r:\"\"}};var Ii=class extends Ue{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)};z_(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,U_(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]=ll()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var X_=!1;try{X_=typeof XMLHttpRequest<\"u\"&&\"withCredentials\"in new XMLHttpRequest}catch{}var J_=X_;function vC(){}var Qh=class extends Ii{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}},yr=class t extends nt{constructor(e,r,n){super(),this.createRequest=e,Ve(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=cl(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=vC,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()}};yr.requestsCount=0;yr.requests={};if(typeof document<\"u\"){if(typeof attachEvent==\"function\")attachEvent(\"onunload\",Z_);else if(typeof addEventListener==\"function\"){let t=\"onpagehide\"in vt?\"pagehide\":\"unload\";addEventListener(t,Z_,!1)}}function Z_(){for(let t in yr.requests)yr.requests.hasOwnProperty(t)&&yr.requests[t].abort()}var CC=(function(){let t=Q_({xdomain:!1});return t&&t.responseType!==null})(),br=class extends Qh{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=CC&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new yr(Q_,this.uri(),e)}};function Q_(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<\"u\"&&(!e||J_))return new XMLHttpRequest}catch{}if(!e)try{return new vt[[\"Active\"].concat(\"Object\").join(\"X\")](\"Microsoft.XMLHTTP\")}catch{}}var tS=typeof navigator<\"u\"&&typeof navigator.product==\"string\"&&navigator.product.toLowerCase()===\"reactnative\",eg=class extends Ue{get name(){return\"websocket\"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=tS?{}:cl(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;Ri(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Be(()=>{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]=ll()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},tg=vt.WebSocket||vt.MozWebSocket,xr=class extends eg{createSocket(e,r,n){return tS?new tg(e,r,n):r?new tg(e,r):new tg(e)}doWrite(e,r){this.ws.send(r)}};var Wn=class extends Ue{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=H_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=W_();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&&Be(()=>{this.writable=!0,this.emitReserved(\"drain\")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var rg={websocket:xr,webtransport:Wn,polling:br};var AC=/^(?:(?![^:@\\/?#]+:[^:@\\/]*@)(http|https|ws|wss):\\/\\/)?((?:(([^:@\\/?#]*)(?::([^:@\\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/,EC=[\"source\",\"protocol\",\"authority\",\"userInfo\",\"user\",\"password\",\"host\",\"port\",\"relative\",\"path\",\"directory\",\"file\",\"query\",\"anchor\"];function Hn(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=AC.exec(t||\"\"),s={},i=14;for(;i--;)s[EC[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=TC(s,s.path),s.queryKey=OC(s,s.query),s}function TC(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 OC(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var ng=typeof addEventListener==\"function\"&&typeof removeEventListener==\"function\",ul=[];ng&&addEventListener(\"offline\",()=>{ul.forEach(t=>t())},!1);var Vr=class t extends nt{constructor(e,r){if(super(),this.binaryType=q_,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=Hn(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=Hn(r.host).host);Ve(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=Y_(this.opts.query)),ng&&(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\"})},ul.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Zh,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+=K_(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,Be(()=>{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(),ng&&(this._beforeunloadEventListener&&removeEventListener(\"beforeunload\",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=ul.indexOf(this._offlineEventListener);n!==-1&&ul.splice(n,1)}this.readyState=\"closed\",this.id=null,this.emitReserved(\"close\",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Vr.protocol=Zh;var dl=class extends Vr{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;Vr.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;Vr.priorWebsocketSuccess=r.name===\"websocket\",this.transport.pause(()=>{n||this.readyState!==\"closed\"&&(f(),this.setTransport(r),r.send([{type:\"upgrade\"}]),this.emitReserved(\"upgrade\",r),r=null,this.upgrading=!1,this.flush())})}else{let d=new Error(\"probe error\");d.transport=r.name,this.emitReserved(\"upgradeError\",d)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let d=new Error(\"probe error: \"+u);d.transport=r.name,s(),this.emitReserved(\"upgradeError\",d)};function a(){i(\"transport closed\")}function c(){i(\"socket closed\")}function l(u){r&&u.name!==r.name&&s()}let f=()=>{r.removeListener(\"open\",o),r.removeListener(\"error\",i),r.removeListener(\"close\",a),this.off(\"close\",c),this.off(\"upgrading\",l)};r.once(\"open\",o),r.once(\"error\",i),r.once(\"close\",a),this.once(\"close\",c),this.once(\"upgrading\",l),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}},qn=class extends dl{constructor(e,r={}){let n=typeof e==\"object\",o=n?{...e}:{...r};(!o.transports||o.transports&&typeof o.transports[0]==\"string\")&&(o.transports=(o.transports||[\"polling\",\"websocket\",\"webtransport\"]).map(s=>rg[s]).filter(s=>!!s)),super(n?o:e,o)}};var yL=qn.protocol;function eS(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=Hn(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 lg={};D(lg,{Decoder:()=>ag,Encoder:()=>ig,PacketType:()=>N,isPacketValid:()=>XC,protocol:()=>dS});var PC=typeof ArrayBuffer==\"function\",$C=t=>typeof ArrayBuffer.isView==\"function\"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,rS=Object.prototype.toString,IC=typeof Blob==\"function\"||typeof Blob<\"u\"&&rS.call(Blob)===\"[object BlobConstructor]\",DC=typeof File==\"function\"||typeof File<\"u\"&&rS.call(File)===\"[object FileConstructor]\";function Fi(t){return PC&&(t instanceof ArrayBuffer||$C(t))||IC&&t instanceof Blob||DC&&t instanceof File}function Di(t,e){if(!t||typeof t!=\"object\")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(Di(t[r]))return!0;return!1}if(Fi(t))return!0;if(t.toJSON&&typeof t.toJSON==\"function\"&&arguments.length===1)return Di(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&Di(t[r]))return!0;return!1}function nS(t){let e=[],r=t.data,n=t;return n.data=pl(r,e),n.attachments=e.length,{packet:n,buffers:e}}function pl(t,e,r){if(!t)return t;if(Fi(t)){let n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){let n=new Array(t.length);for(let o=0;o<t.length;o++)n[o]=pl(t[o],e);return n}else if(typeof t==\"object\"&&!(t instanceof Date)){if(t.toJSON&&typeof t.toJSON==\"function\"&&!r)return pl(t.toJSON(),e,!0);let n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=pl(t[o],e));return n}return t}function oS(t,e){return t.data=og(t.data,e),delete t.attachments,t}function og(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]=og(t[r],e);else if(typeof t==\"object\")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=og(t[r],e));return t}var fS=BS(lS(),1),sg=(0,fS.default)(\"socket.io-parser\"),uS=[\"connect\",\"connect_error\",\"disconnect\",\"disconnecting\",\"newListener\",\"removeListener\"],dS=5,N;(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\"})(N||(N={}));var ig=class{constructor(e){this.replacer=e}encode(e){return sg(\"encoding packet %j\",e),(e.type===N.EVENT||e.type===N.ACK)&&Di(e)?this.encodeAsBinary({type:e.type===N.EVENT?N.BINARY_EVENT:N.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=\"\"+e.type;return(e.type===N.BINARY_EVENT||e.type===N.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)),sg(\"encoded %j as %s\",e,r),r}encodeAsBinary(e){let r=nS(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},ag=class t extends nt{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e==\"function\"?{reviver:e}: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===N.BINARY_EVENT;n||r.type===N.BINARY_ACK?(r.type=n?N.EVENT:N.ACK,this.reconstructor=new cg(r)):super.emitReserved(\"decoded\",r)}else if(Fi(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(N[n.type]===void 0)throw new Error(\"unknown packet type \"+n.type);if(n.type===N.BINARY_EVENT||n.type===N.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\");let a=Number(i);if(!pS(a)||a<1)throw new Error(\"Illegal attachments\");if(a>this.opts.maxAttachments)throw new Error(\"too many attachments\");n.attachments=a}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 sg(\"decoded %s as %j\",e,n),n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case N.CONNECT:return ml(r);case N.DISCONNECT:return r===void 0;case N.CONNECT_ERROR:return typeof r==\"string\"||ml(r);case N.EVENT:case N.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]==\"number\"||typeof r[0]==\"string\"&&uS.indexOf(r[0])===-1);case N.ACK:case N.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},cg=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=oS(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function KC(t){return typeof t==\"string\"}var pS=Number.isInteger||function(t){return typeof t==\"number\"&&isFinite(t)&&Math.floor(t)===t};function GC(t){return t===void 0||pS(t)}function ml(t){return Object.prototype.toString.call(t)===\"[object Object]\"}function YC(t,e){switch(t){case N.CONNECT:return e===void 0||ml(e);case N.DISCONNECT:return e===void 0;case N.EVENT:return Array.isArray(e)&&(typeof e[0]==\"number\"||typeof e[0]==\"string\"&&uS.indexOf(e[0])===-1);case N.ACK:return Array.isArray(e);case N.CONNECT_ERROR:return typeof e==\"string\"||ml(e);default:return!1}}function XC(t){return KC(t.nsp)&&GC(t.id)&&YC(t.type,t.data)}function Vt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var JC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Xn=class extends nt{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=[Vt(e,\"open\",this.onopen.bind(this)),Vt(e,\"packet\",this.onpacket.bind(this)),Vt(e,\"error\",this.onerror.bind(this)),Vt(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(JC.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:N.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]==\"function\"){let f=this.ids++,u=r.pop();this._registerAckCallback(f,u),i.id=f}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:N.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 N.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 N.EVENT:case N.BINARY_EVENT:this.onevent(e);break;case N.ACK:case N.BINARY_ACK:this.onack(e);break;case N.DISCONNECT:this.ondisconnect();break;case N.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:N.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:N.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 zr(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}zr.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};zr.prototype.reset=function(){this.attempts=0};zr.prototype.setMin=function(t){this.ms=t};zr.prototype.setMax=function(t){this.max=t};zr.prototype.setJitter=function(t){this.jitter=t};var Jn=class extends nt{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,Ve(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 zr({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||lg;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 qn(this.uri,this.opts);let r=this.engine,n=this;this._readyState=\"opening\",this.skipReconnect=!1;let o=Vt(r,\"open\",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState=\"closed\",this.emitReserved(\"error\",a),e?e(a):this.maybeReconnectOnOpen()},i=Vt(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(Vt(e,\"ping\",this.onping.bind(this)),Vt(e,\"data\",this.ondata.bind(this)),Vt(e,\"error\",this.onerror.bind(this)),Vt(e,\"close\",this.onclose.bind(this)),Vt(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){Be(()=>{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 Xn(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 Li={};function Zn(t,e){typeof t==\"object\"&&(e=t,t=void 0),e=e||{};let r=eS(t,e.path||\"/socket.io\"),n=r.source,o=r.id,s=r.path,i=Li[o]&&s in Li[o].nsps,a=e.forceNew||e[\"force new connection\"]||e.multiplex===!1||i,c;return a?c=new Jn(n,e):(Li[o]||(Li[o]=new Jn(n,e)),c=Li[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Zn,{Manager:Jn,Socket:Xn,io:Zn,connect:Zn});O();var hS=new Set([\"__proto__\",\"constructor\",\"prototype\"]),gS=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(hS.has(t[e]))return!1;return!0},ZC=(t,e)=>{!t||!gS(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},QC=(t,e,r,n=!1)=>{!t||!gS(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)},fg=(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\":ZC(t,o);break;case\"update\":case\"set\":QC(t,o,s,!0);break;default:break}return r},mS=(t,e)=>{!t||!e||typeof e!=\"object\"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},yS=(t,e)=>{for(let r in e){if(hS.has(r))continue;let n=e[r],o=t[r];if(n&&typeof n==\"object\"&&!Array.isArray(n)){if(!o||typeof o!=\"object\"||Array.isArray(o)){r in t||(t[r]=JSON.parse(JSON.stringify(n)));continue}yS(o,n)}else r in t||(t[r]=n)}},ug=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};fg(o,e)}let r=JSON.parse(JSON.stringify(t.__rawDesignSystem)),n=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];for(let o of n){let s=o&&o.designSystem;s&&typeof s==\"object\"&&yS(r,s)}return r};O();var bS=(t,e,r)=>{let n=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call(\"deepDestringifyFunctions\",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(r[a]&&typeof r[a]==\"object\")if(a===\"designSystem\"){if(mS(r,c),n){let l=ug(r);l&&je(l)}}else Or(r[a],c);else r[a]=c}),n=!0,i&&(r.schema=i))}},xS=(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=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]===\"designSystem\"),i=s.length?o.filter(c=>!s.includes(c)):o,a=fg(r,i);if(s.length&&a.add(\"designSystem\"),a.has(\"state\")&&e.update(r.state),[\"pages\",\"components\",\"snippets\",\"functions\",\"assets\"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=r.window.location;t.call(\"router\",c+l+f,t.__ref.root,{},{scrollToTop:!1})}if(a.has(\"designSystem\")){let c=ug(r,s);je(c||r.designSystem)}};var tA={success:\"green\",error:\"red\",warning:\"yellow\"},_S=(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.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:\"Disconnected\",type:\"error\"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:\"fadeOutDown\"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},SS={state:{notifications:[]},Notifications:{position:\"fixed\",left:\"A2\",bottom:\"Z2\",zIndex:\"999\",childExtends:\"Notification\",childProps:({state:t})=>({animationDuration:\"C\",background:tA[t.type||\"success\"],icon:null,Flex:{Title:{text:\"{{ title }}\"},P:{text:\"{{ title }}\"}},onRender:(e,r,n)=>{r.update({animation:\"fadeInUp\"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.update({animation:\"fadeOutDown\"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:\"state\",children:({state:t})=>t.notifications}};var eA=!1,rA=()=>eA?\"http://localhost:8080\":\"https://api.symbols.app\",nA=t=>{let e=t&&t.editor&&t.editor.socketUrl||t&&t.settings&&t.settings.socketUrl;return typeof e==\"string\"&&e?{mode:\"collab\",baseUrl:e}:t&&t.editor&&t.editor.runtime===\"runner\"?{mode:\"runner\",baseUrl:null}:{mode:null,baseUrl:null}},oA=async t=>{try{let e=t||rA(),r=await k.fetch(`${e}/service-token`,{method:\"GET\"}),n;try{let o=await r.clone().json();if(o&&typeof o.token==\"string\")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||\"\").replace(/\\s+/gu,\"\")||void 0}catch(e){console.error(\"[sync] Failed to fetch service-token\",e)}},vS=(t,e,r,n)=>{t.on(\"snapshot\",bS(e,r,n)),t.on(\"ops\",xS(e,r,n)),t.on(\"clients\",o=>{n.editor?.verbose&&_S(o,e,r)}),t.on(\"disconnect\",o=>{n.editor?.verbose&&console.info(\"[sync] disconnected\",o)})},sA=async(t,e,r,n)=>{let o=await oA(n);if(!o)return console.warn(\"[sync] no service token \\u2014 collab disabled\"),null;let s=r.key;if(!s)return console.warn(\"[sync] ctx.key missing \\u2014 collab cannot authenticate\"),null;let i=r.editor?.projectId||null,a=Zn(n,{path:\"/collab-socket\",transports:[\"websocket\"],auth:{token:o,projectId:i,projectKey:s,branch:\"main\",live:!0,clientType:\"platform\"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on(\"connect\",()=>{r.editor?.verbose&&console.info(\"[sync] connected (collab)\")}),vS(a,t,e,r),a},iA=(t,e,r)=>{let n=Zn({transports:[\"websocket\",\"polling\"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on(\"connect\",()=>{r.editor?.verbose!==!1&&console.info(\"[sync] connected (runner)\")}),vS(n,t,e,r),n.on(\"reload\",()=>{typeof k<\"u\"&&k.location&&k.location.reload()}),n},aA=async(t,e,r)=>{let{mode:n,baseUrl:o}=nA(r);return n?n===\"collab\"?sA(t,e,r,o):n===\"runner\"?iA(t,e,r):null:null},cA={onInit:aA};var CS=t=>typeof t>\"u\",wS=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),kS=t=>t?.editor?.runtime===\"runner\",AS=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},ES={name:\"sync\",beforeCreate(t,e){let r=e&&e.editor;(r&&!CS(r.liveSync)?r.liveSync:wS(e)||kS(e))&&(wS(e)&&!kS(e)&&!e?.key||AS(t,cA))}},TS={name:\"notifications\",beforeCreate(t,e){if(!e)return;let r=CS(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&AS(t,SS)}};O();function OS(t){return S(t)?t:T(t)?t.find(e=>S(e)):\"\"}function pg(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&OS(t.extends),n=t.parent&&t.parent.childExtends&&OS(t.parent.childExtends);return(e||r||n||\"\").split(\"_\")[0].split(\".\")[0].split(\"+\")[0]}function yl(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=pg(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?yl(t.parent):o&&(e[o]||r[o])?t:yl(t.parent)}var lA=(t,e,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{t.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(t.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),t.Inspector.state.update({area:!1}))}},dg={\".preventSelect\":{userSelect:\"none\"},\"!preventSelect\":{userSelect:\"auto\"},onInspect:lA,onMousemove:(t,e,r)=>{let n=t.target.ref,o=yl(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=pg(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),h={x:l,y:f,width:u,height:d};if(!s.area)return a(h);s.area.x!==h.x&&a(h)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,r)=>{if(!r.debugging)return;let n=t.target.ref,o=yl(n);if(!o)return;let s=pg(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit(\"route\",a),t.preventDefault(),t.stopPropagation(),!1},Inspector:{state:{},transition:\"all, defaultBezier, X\",position:\"fixed\",hide:(t,e)=>!(e.area&&e.parent.debugging),style:{boxShadow:\"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A\",zIndex:\"9999999\",borderRadius:\"10px\",pointerEvents:\"none\"},Span:{position:\"absolute\",margin:\"A2 0\",fontSize:\"Z\",color:\"text\",zIndex:\"99999999\",transition:\"all, defaultBezier, X\",textDecoration:\"underline\",fontWeight:\"500\",top:\"100%\",style:{boxShadow:\"0 25px 10px 35px black\",textShadow:\"0 0 10px black\"},text:\"{{ focusKey }}\"},onInit:({context:t})=>{let{components:e}=t;if(w(e)){let{Content:r,...n}=e;for(let o in n)Mn[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s=\"display: none !important\";else if(n){let{x:i,y:a,width:c,height:l}=n;s=`\n display: block !important;\n top: ${a-6}px;\n left: ${i-6}px;\n width: ${c+12}px;\n height: ${l+12}px;\n `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},RS={name:\"inspect\",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(dg):t.extends?t.extends=[t.extends,dg]:t.extends=[dg]}};var PS=t=>!!(t&&typeof t==\"object\"&&t.__isStub===!0),fA=(t,e)=>{let r=e?.sharedLibraries,n=Array.isArray(r)?r.map(s=>typeof s==\"string\"?s:s?.key||s?.name):r&&typeof r==\"object\"?Object.keys(r):null,o=0;return t.map(s=>{if(!PS(s))return s;let i=o++;if(typeof s.__libraryKey==\"string\"&&s.__libraryKey)return s.__libraryKey;if(n&&n[i])return n[i];if(typeof s.__stubId==\"string\"){let a=s.__stubId.match(/^@symbo[-.]ls\\/([^/]+)/);if(a)return a[1]}return null}).filter(Boolean)},uA=async(t,e={})=>{let r=e.symbolsConfig,n=r?.owner&&r?.key?`${r.owner}--${r.key}`:r?.key,o=e.key=e.key||n||(S(t)?t:\"smblsapp\");if(e.define=e.define||jn,e.cssPropsRegistry=ft,e.window=Qx(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(h=>typeof h==\"string\"||PS(h))){e.sharedLibraries=fA(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:h}=await Promise.resolve().then(()=>(O(),Ba));e.sharedLibraries=await h(e.sharedLibraries)}f_(e)}let[s,i]=a_(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&tl.prepareContext(e);let a=c_(t,e);e.state=a,ts(a),e.pages=l_(t,e),e.components=t_(e),e.utils=e_(e),Qe[e.packageManager]&&(e.dependencies=await n_(e)),e.methods=r_(e),e.routerOptions=Mx(t,e),e.defaultExtends=[$c],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=xo(e.globalScope));let c=(d,h)=>{let g=h?d[h]:d;if(!w(g))return;let p=Ht(g);try{Object.assign(g,p)}catch(m){if(h)d[h]=p;else throw m}};c(t),c(e,\"components\"),c(e,\"pages\"),c(e,\"functions\"),c(e,\"methods\"),c(e,\"snippets\"),c(e,\"app\");let l=d=>d&&typeof d.select==\"function\";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=d=>e.plugins.some(h=>h.name===d);if(e.polyglot&&!f(\"polyglot\")){e.plugins.push(Jc);for(let d in _i)d in e.functions||(e.functions[d]=_i[d])}if(f(\"helmet\")||e.plugins.push(Hx),e.fetch&&!f(\"fetch\")&&e.plugins.push(ku),e.designSystem?.typography?.useCapsize!==!1&&!f(\"capsize\")&&(e.plugins.push(h_),e.cssPropsRegistry.useCapsize=p_),e.shorthand&&!f(\"shorthand\")&&e.plugins.push(tl),e.analyze&&!f(\"analyze\")){let d=e.analyze===!0?{}:e.analyze;e.analyze=Yh(d),e.plugins.push(Ei)}return e.sync!==!1&&!f(\"sync\")&&e.plugins.push(ES),e.inspect&&!f(\"inspect\")&&e.plugins.push(RS),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f(\"notifications\")&&e.plugins.push(TS),e},hg=async(t,e)=>{w(e)||(e={}),Re(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):w(t)||(t={});let r=e.window||(typeof window<\"u\"?window:null),n=r?.__BRENDER__,o=null;if(n){let c=e.document||(typeof document<\"u\"?document:null);c&&(o=Array.from(c.head.querySelectorAll(\"style\")))}if(await uA(t,e),e.useReset!==!1){let c=e.document||(typeof document<\"u\"?document:null);if(c){let l=c.head.querySelector(\"style[data-smbls]\");l||(l=c.createElement(\"style\"),l.setAttribute(\"data-smbls\",\"\"),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule(\"*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }\",0)}catch{}try{f.insertRule(\"h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }\",1)}catch{}}}}if(e.app&&w(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=Xx(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await o_({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate==\"function\")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin \"${c.name||\"?\"}\" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return t;let i=e.parent||s.body;if(n)return dA(Jt,t,i,e,r,o);let a=Jt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<\"u\"&&!e.document&&(window.__smblsApp=a),a},dA=async(t,e,r,n,o,s)=>{let i=r.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of r.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f===\"script\"||f===\"link\"||f===\"style\"||f===\"svg\"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll(\"[data-br]\").forEach(l=>l.removeAttribute(\"data-br\"));let c=t(e,r,n.key,{verbose:n.verbose,context:n,...n.domqlOptions});return pA(o),c},pA=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var gg=(t,e)=>X(t,w(e)?e:{}),hA=t=>{if(typeof document>\"u\")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!=\"function\")return;let r=t.globalTheme||\"auto\";try{if(typeof window<\"u\"&&window.location){let s=new URLSearchParams(window.location.search).get(\"globalTheme\");s&&(r=s)}}catch{}let n=t.themeStorageKey;if(r===\"auto\"&&n&&typeof localStorage<\"u\")try{let s=localStorage.getItem(n);s&&(r=s)}catch{}let o=r===\"auto\"?(()=>{try{return typeof window<\"u\"&&window.matchMedia&&window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}catch{return\"light\"}})():r;e.setAttribute(\"data-theme\",o),t.globalTheme=r,t.themeRoot=e},gA=()=>{if(typeof document>\"u\")return null;try{let t=document.querySelector('meta[name=\"symbols-runtime\"]'),e=t&&t.getAttribute(\"content\");return typeof e==\"string\"&&e?e:null}catch{return null}},$S=t=>{let e=gA();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e===\"runner\"&&typeof t.editor.livesync>\"u\"&&(t.editor.livesync=!0))},mg=(t,e=gr,r)=>{let n={...gr,...gg(e,r)};return $S(n),hA(n),hg(t,n).then(s=>{if(Th(s,n),s.destroy=()=>yi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=mi(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,n),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error(\"[analyze] activate error:\",i)}return s}).catch(s=>{throw console.error(\"[smbls] create error:\",s),s})},mA=(t,e=gr,r)=>{let n=mg(t,e,r),o={...gr,...gg(e,r)},s=o.key;return Vx(n,s,{utils:gi,...o}),n},yA=async(t,e=gr,r)=>{let n={...gr,...gg(e,r)};$S(n);let o=e.key;await Bx(o,n);let s=await hg(t,n);return Th(s,n),s.destroy=()=>yi(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=mi(s,l.customRouterElement);f&&(c=f)}return c.call(\"router\",i,c,a.state||{},{pushState:!0,...a})},n.onCreate&&await n.onCreate(s,s.state,s.context,n),s},bA=(t={},e=gr,r)=>mg({deps:{isUndefined:gt},...t},X({domqlOptions:{onlyResolveExtends:!0}},e),r);O();var IS={\"@symbo.ls/signal\":Il,\"@symbo.ls/scratch\":Gd,\"@symbo.ls/element\":Lp,\"@symbo.ls/css\":tp,\"@symbo.ls/utils\":Ba,\"@symbo.ls/state\":Ep,\"@symbo.ls/router\":pi},DS=(t,e)=>{let r=t||(typeof globalThis<\"u\"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in IS)n[o]||(n[o]=IS[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};Nc(ri);DS(void 0,{smbls:yg});return VS(yg);})();\n";