smbls 3.14.600 → 3.14.608

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/smbls.esm.js CHANGED
@@ -16,7 +16,7 @@ First 200 chars of source: `+String(t).slice(0,200)),t)}},Vt=(t,e={},r={window:{
16
16
  ${i}
17
17
  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(`
18
18
  `);e[a]=k.eval(`(function(__gs__) { ${l}
19
- 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},Ol=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Rl=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),xi=t=>{for(let e in t)return!1;return!0},Pl=t=>w(t)&&xi(t),Il=()=>Object.create(null),Qn=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&gr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)gr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Tt=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||Ct(t)||Ct(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&&gr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];Ct(l)?t[a]=l:j(c)&&j(l)?t[a]=Tt(c,l,r,n):l!==void 0&&(t[a]=l)}return t},_i=(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)||!_i(t[i],e[i],r))return!1}return!0},SS=new Set(["node","__ref"]),$l=(t,e,r=SS)=>{if(t===e)return!0;if(!j(t)||!j(e)||Ct(t)||Ct(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(Ct(l)||Ct(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Fl=(t,e)=>{if(e==null)return t;if(Et(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},Si=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]=Si(t[r]));return e},Dl=(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},Ll=(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]},Ml=(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},Nl=(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},jl=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(Vh==="test"||Vh==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Bl=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)},Vl=(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 to,eo,ro,wi=F(()=>{"use strict";ke();to=(function(){let t=0;function e(){return t++,t}return e})(),eo=to,ro=(t,e,r)=>(tt(r,t)||r||t.key||to()).toString()});var Zt,Ul,Ne,ki,zl,Wl,Hl,je,Gl,yr,ql=F(()=>{"use strict";Zt="production",Ul=Zt,Ne=(t=Zt)=>t==="production",ki=(t=Zt)=>t==="testing"||t==="test",zl=ki,Wl=(t=Zt)=>t==="staging",Hl=(t=Zt)=>t==="local",je=(t=Zt)=>t==="development"||t==="dev"||t==="local",Gl=(t,e=Zt)=>e[t],yr=(t=Zt)=>!Ne(t)});function no(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 Jl(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 Kl,Yl,wS,Xl,Nr,jr,yt,Br=F(()=>{"use strict";Kl=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Yl=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}}},wS=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Xl=t=>wS.test(t),Nr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},jr=(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},yt=(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 Zl,Wh=F(()=>{"use strict";ht();ke();Zl=(t,e)=>{let{__ref:r}=t,n=t.if;if(v(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"?tt(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Ql,tf,Hh=F(()=>{"use strict";Ql=(t,...e)=>{t&&e.map(r=>console.log(r))},tf=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function sf(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 af(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 ef,rf,nf,of,Gh=F(()=>{"use strict";ht();Nn();ef=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),rf=(t,e,r=365)=>{if(dt(K)||dt(K.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;K.cookie=`${t}=${e};${o};path=/`},nf=t=>{if(dt(K)||dt(K.cookie))return;let e=`${t}=`,n=decodeURIComponent(K.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""},of=t=>{dt(K)||dt(K.cookie)||(K.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Vr,qh,cf,lf=F(()=>{"use strict";Vr={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"])},qh=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"]),cf=t=>Vr.body.has(t)});var ff,Kh,Ur,io,Ot,uf,vi,ao,pf,co,Ci,Ai,lo,Ei,zr,kS,le,Yh,oo,fo,df,so,hf,gf,Ti,Oi,Ri,Pi,Ii,$i,Xh,Fi=F(()=>{"use strict";Dr();mf();ke();ht();ff="production",Kh=t=>t.sourcemap!==!1&&ff!=="production",Ur=t=>{if(t.includes("+"))return t.split("+").filter(fe);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!fe(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},io=(t,e,r)=>{let n=[],o=Ur(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Ot=(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},uf=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:$r(o,n)}},vi=()=>Math.random().toString(36).substring(2),ao={},pf={},co=t=>ao[t.__hash],Ci=(t,e)=>{let r=vi();return S(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ao[r]=e),e},Ai=(t,e)=>t.__hash?e.concat(co(t)):Ci(t,e),lo=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?lo(i,e,r,n,o,s):zr(i,e,r,n,o,void 0,s);return e},Ei=(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&&zr(a,e,r,n,o,s,i),e},zr=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return lo(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=fo(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Ei(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},kS=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),le=(t,e,r,n,o)=>{e=ot(e);for(let s in e){if(kS.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]||{},Yh(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];fe(s)?t[s]=le(i,a,c,n,l):le(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=le({},i);t[s]=le(c,a)}}}}return t},Yh=(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]||{},Yh(t[o],s,r,n)):t[o]=r}}},oo=(t,e,r)=>t.reduce((n,o,s)=>{let i=ot(o),a=r?r[s]:void 0;return le(n,i,e,a)},{}),fo=(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&&(ff==="test"||ff==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},df=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),so=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return co(t)||[];let s=zr(t,[],e,new Set,r,void 0,n);return r?s:Ai(t,s)},hf=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return $r(r,e)},gf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(fe(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},Ti=(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]?Ot([c,...a],t):Ot(t.extends,t)}else Ot(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Ot(i,t):Ot(t.extends,t)}else Ot(t.extends,t);return Oi(t,e,r),Ri(t,e,r),Pi(t,e,r),t.component&&Ot(tt(t.component,t),t),o.defaultExtends&&Ot(o.defaultExtends,t),Fr(n.__extends)},Oi=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Ot(e.childProps.extends,t),n.__extends},Ri=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Ot(s,t),n.__extends},Pi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Ot(o,t),n.__extends},Ii=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Kh(r),a=i?[...n.__extends]:null,c=Fr(n.__extends.map((l,f)=>fo(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],g=a[p];d&&w(d)&&S(g)&&l.set(d,g)}let f=[],u=so(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=so(c,o);n.__extendsStack=l}return n.__extendsStack},$i=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Kh(r)){let s={},i=n.__extendsNames||[],a=oo(o,s,i),c={};le(t,a,c,void 0,s),n.__sourcemap=c}else{let s=oo(o);le(t,s)}return t},Xh=(t,e,r={})=>(Ti(t,e,r),Ii(t,e,r),$i(t,e,r),t)});function yf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function bf(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function xf(t,e,r){let{context:n}=e||{},[o]=Ur(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var fe,mf=F(()=>{"use strict";Fi();ht();fe=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Jh(t,e){let{props:r,on:n}=e,o=dr(t.split("on")[1]),s=n[o],i=r[t];v(s)?n[o]=(...a)=>{if(s(...a)!==!1&&v(i))return i(...a)}:n[o]=i}var Zh=F(()=>{"use strict";qn();ht()});function Di(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()&&(v(o)||o!=null&&Nr(this.context))){let g=dr(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)||v(a),f=w(c)||v(c);if(l||f)continue;let u=n.charAt(0);if(tg.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=_f.test(n)||Qh.test(n)||CS(o),d=Le.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Li(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=v(o)||o!=null&&Nr(this.context);if(s&&i){Jh(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(tg.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||v(c),u=w(l)||v(l),p=_f.test(n)||Qh.test(n),d=Le.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Mi(t=this){let e=[];return Di.call(this,t,{cachedKeys:e}),Li.call(this,t,{cachedKeys:e}),t}function Sf(t={}){return t.on||(t.on={}),t.props||(t.props={}),Mi.call(this,t)}function kf(t,e){this.__element.update({props:t},e)}function mo(t){let e={update:kf.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var _f,Qh,tg,vS,CS,ho,uo,wf,go,yo,bo,Ni,po,vf,Cf,Af=F(()=>{"use strict";Mr();Zh();ke();ht();qn();Br();_f=/^[A-Z]/,Qh=/^\d+$/,tg=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),vS=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),CS=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(vS.has(e)||_f.test(e))return!0;return!1},ho=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};uo=t=>Et(t)("string","number")?{inheritedString:t}:t,wf=(t,e)=>!t||!e.length?!1:e.includes(t),go=(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=uo(i);n.unshift(c)}if(s){let c=uo(s);n.unshift(c)}return n};yo=t=>{let e=new Set;return t.filter(r=>!r||Me.has(r)||e.has(r)?!1:(e.add(r),!0))},bo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Me.has(o))return n;for(;v(o);)o=tt(o,e);return X(n,ot(o,{exclude:Me}))},{}),mo(e),e.props),Ni=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...go(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=yo(o),n.__propsStack},po=(t,e)=>{let{__ref:r}=t,n=Ni(t,e);n.length?bo(n,t):(r.__propsStack=[],t.props={})},vf=function(t,e,r){let{__ref:n}=t;if(n.__if)po(t,e);else try{po(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return mo(t),t},Cf=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=go(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=yo(s),n.__propsStack.length&&bo(n.__propsStack,e),e}});var eg,ji,Bi,Vi,Ui,Ef,zi,Wi,Hi,Tf,rg=F(()=>{"use strict";Fi();wi();Bn();Af();lf();ht();eg="production",ji=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Vr.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Bi=(t,e,r)=>{if(t===void 0)return(eg==="test"||eg==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Et(t)("string","number")?ji(t,e,r):v(t)?{props:t}:t},Vi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ui=(t,e,r,n,o)=>{if(!e)return o;if(we(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Ef=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},zi=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Wi=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Hi=(t,e,r)=>{let n=Vi(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=io(t,e,r),n.path=zi(t,e,r),n},Tf=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Bi(t,e,r);if(!i)return;let a=Ui(i,e,r,n,o),c=ro(i,a,r);Hi(i,a,c);let l=ho(i,a,c),f=Wi(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Of,Gi,qi,Ki,Yi,Rf,Xi,Pf,If,$f,Ff,ng=F(()=>{"use strict";Dr();Mr();ke();ht();Of=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Et(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Gi=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},qi=(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},Ki=(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]},Yi=(t,e,r={})=>{let o=t.__ref.__state;if(!Xi(t))return;let s=Gi(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=qi(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ki(o,i,r)},Rf=(t,e)=>{let r=t.__ref,n=Yi(t,e);if(n===void 0)return t.state;if(Et(n)("object","array"))return ot(n);if(Et(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Xi=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Et(r)("number","string","boolean"))},Pf=function(t){return j(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},If=(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},$f=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=ot(n,hr),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Wn(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Ff=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){X(t,e,hr);return}(o?mr:Tt)(t,e,hr)}});var AS,Df,og=F(()=>{"use strict";AS=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Df=(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&&!AS(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var sg,Ji,Be,Zi,Lf,Mf=F(()=>{"use strict";ht();Br();sg=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Ji=(t,e,r,n,o)=>{if(t=jr(t,e),!!v(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}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");yt(t,e,r);let n=sg(t,e);if(n){let{state:o,context:s}=e;return Ji(n,e,o,s,r)}},Zi=(t,e,r,n,o,s)=>{if(t=jr(t,r),!!v(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}},Lf=(t,e,r,n)=>{yt(t,r,e,n);let o=sg(t,r);if(o){let{state:s,context:i}=r;return Zi(o,e,r,s,i,n)}}});var Nf,xo,jf=F(()=>{"use strict";Nf={},xo={}});var cg={};I(cg,{setup:()=>TS,supabaseAdapter:()=>ag});var ig,ES,TS,Bf,OS,ag,lg=F(()=>{"use strict";ig=new Map,ES=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,TS=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=ES(c,e,o===!1),f=ig.get(l);return f||(f=await n(c,e,a),f?.auth&&ig.set(l,f)),!f||!f.auth?null:ag(f)},Bf=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},OS=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},ag=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=Bf(c,o),c=OS(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=Bf(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=Bf(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var ug={};I(ug,{restAdapter:()=>fg,setup:()=>PS});var RS,ve,PS,fg,pg=F(()=>{"use strict";RS=(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()},ve=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}},PS=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return fg(t,e,r,n)},fg=(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 p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${p}${d}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ve(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 ve(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 ve(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:g,order:h,single:m,headers:y,baseUrl:b})=>{let x={...u};return p&&(x.select=p),d&&(x.limit=d),g&&(x.offset=g),m&&(x.single=!0),h&&(typeof h=="string"?x.order=h:Array.isArray(h)?x.order=h.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):h.by&&(x.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),ve(RS(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>ve(c(`rpc/${f}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>ve(c(f,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:d,headers:g,baseUrl:h})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ve(c(y,h),a({method:d||"PATCH",headers:i(g),body:JSON.stringify(u)}))},upsert:({from:f,data:u,params:p,method:d,headers:g,baseUrl:h})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ve(c(y,h),a({method:d||"PUT",headers:i(g),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:d})=>{let g=u?.id,h=g?`${f}/${g}`:f;return ve(c(h,d),a({method:"DELETE",headers:s(p)}))}}}});var hg={};I(hg,{localAdapter:()=>dg,setup:()=>$S});var Qi,IS,$S,dg,gg=F(()=>{"use strict";Qi=(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},IS=(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}},$S=async({data:t,...e})=>dg(t,e),dg=(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,p,d)=>{let g=n[f];if(g)for(let h of g)h(p,d,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let g=i(f).filter(h=>Qi(h,u));return IS(g,p)},insert:async({from:f,data:u})=>{let p=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return p.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:p})=>{let d=i(f),g=[];for(let h=0;h<d.length;h++)if(Qi(d[h],p)){let m={...d[h]};Object.assign(d[h],u),g.push(d[h]),c(f,"UPDATE",d[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:p})=>{let d=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=p||(m.id!==void 0?{id:m.id}:null),b=y?d.findIndex(x=>Qi(x,y)):-1;if(b>-1){let x={...d[b]};Object.assign(d[b],m),h.push(d[b]),c(f,"UPDATE",d[b],x)}else{let x={id:m.id||++l,...m};d.push(x),h.push(x),c(f,"INSERT",x,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let p=i(f),d=[];for(let g=p.length-1;g>=0;g--)Qi(p[g],u)&&(d.push(p[g]),p.splice(g,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(g,h,m)=>{u&&u!=="*"&&u!==m.event||p(g,h,m)};return n[f].push(d),()=>{let g=n[f].indexOf(d);g>-1&&n[f].splice(g,1)}}}}});var To={};I(To,{createAdapter:()=>jS,default:()=>YS,executeFetch:()=>Eo,fetchPlugin:()=>Gf,initAdapterAuth:()=>oa,parseDuration:()=>wo,queryClient:()=>KS,registerAdapter:()=>NS,resolveDb:()=>xg});var FS,DS,ta,So,ea,zf,LS,MS,NS,jS,xg,wo,_t,_g,_o,BS,Ao,ko,vo,ra,Wf,na,VS,mg,Vf,Sg,wg,Wr,yg,US,bg,zS,sa,kg,vg,oa,Hf,Ut,Qt,Co,br,ue,Ve,WS,HS,GS,Uf,qS,Eo,KS,Gf,YS,xr=F(()=>{"use strict";O();FS=["select","rpc","insert","update","upsert","delete","subscribe"],DS={supabase:()=>Promise.resolve().then(()=>(lg(),cg)),rest:()=>Promise.resolve().then(()=>(pg(),ug)),local:()=>Promise.resolve().then(()=>(gg(),hg))},ta=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),So=(()=>{if(typeof globalThis<"u"&&globalThis[ta])return globalThis[ta];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ta,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[ta]}catch{}return t})(),ea=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),zf=(()=>{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})(),LS=5e3,MS=t=>new Promise(e=>{if(So[t])return e(So[t]);let r=zf[t]||=[],n=!1,o=()=>{n||(n=!0,e(So[t]||null))};r.push(o),setTimeout(o,LS)}),NS=(t,e)=>{So[t]=e;let r=zf[t];if(r&&r.length){zf[t]=[];for(let n of r)n()}},jS=t=>{let e={};for(let r of FS)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},xg=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=So[n]||DS[n];if(!o&&(o=await MS(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)},wo=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},_t=new Map,_g=new Map,_o=new Map,BS=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=zS(t.params),o=r?`${r}:`:"",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||"")}`;return e?`${s}:${e}`:s},Ao=t=>_t.get(t)||null,ko=(t,e,r)=>{let n=_t.get(t),o={data:e,error:r,time:Date.now(),stale:!1};_t.set(t,o);let s=_g.get(t);if(s)for(let i of s)v(i)&&i(o);return o},vo=t=>{if(t){let e=_t.get(t);e&&(e.stale=!0);return}for(let[,e]of _t)e.stale=!0},ra=t=>{if(t){_t.delete(t);return}_t.clear()},Wf=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:wo(t),gcTime:3e5}:{staleTime:wo(t.stale||t.staleTime)||6e4,gcTime:wo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},na=null,VS=()=>{na||(na=setInterval(()=>{let t=Date.now();for(let[e,r]of _t){let n=_g.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&_t.delete(e)}},3e4),na.unref&&na.unref())};VS();mg=3,Vf=t=>Math.min(1e3*2**t,3e4),Sg=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:mg,delay:Vf}:typeof e=="number"?{count:e,delay:Vf}:{count:e.count??mg,delay:v(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Vf}},wg=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=v(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=v(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Wr={focus:new Set,online:new Set},yg=!1,US=()=>{if(yg||typeof window>"u")return;yg=!0;let t=()=>{for(let r of Wr.focus)r()},e=()=>{for(let r of Wr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},bg=(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},zS=t=>(!t||v(t),t),sa=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},kg=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},vg=(t,e,r)=>{let n;if(!t)n=void 0;else if(v(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=v(s)?s(e,e.state):s}}return n},oa=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)})},Hf=async(t,e)=>{if(v(t.select))return t.auth!==!1&&await oa(t,e),t;if(t.__resolved)return t.auth!==!1&&await oa(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=xg(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 oa(r,e),r):null},Ut=(t,e,...r)=>{let n=v(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Qt=(t,e,r,...n)=>{let o=t&&v(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},Co=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},br=(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})}},ue=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},Ve=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||v(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||v(t.skip)&&t.skip(e,e.state))return;let s=await Hf(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:g,fields:h,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:C,page:R,cursor:P,getNextPageParam:V,getPreviousPageParam:E,infinite:$,placeholderData:U,initialData:G,select:D,keepPreviousData:L}=t,z=S(D)?D:void 0;if(l&&v(e.getQuery)){let Z=e.getQuery(s.name||"paths");Z&&(z=Z.select||Z.length&&Z.join(",")||z)}let Y=vg(f,e,r),q=Wf(u),De=Sg(t),$t=sa(e,r),kt=kg(e,r),q_=$t?`:${$t}`:"",K_=kt?`${kt}:`:"",ut=q?u?.key||`${a}:${c}:${K_}${JSON.stringify(Y||"")}${$?":infinite":""}${R?":p"+JSON.stringify(R):""}${q_}`:null;if(!i.__fetchInitialized&&ut&&(i.__fetchInitialized=!0,G!==void 0)){let Z=v(G)?G():G;ko(ut,Z,null)}if((c==="select"||c==="rpc")&&ut&&q){let Z=Ao(ut);if(Z&&!Z.error){let W=Date.now()-Z.time,lt=Z.stale||W>(q.staleTime||0),B=Z.data;if(v(D)&&(B=D(B,e,e.state)),p&&(B=p(B,e,e.state)),br(e,B,m),!lt){ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(U!==void 0){let W=v(U)?U(e,e.state):U;W!==void 0&&br(e,W,m)}}if(ut&&_o.has(ut)&&!n.force){let Z=_o.get(ut);try{let W=await Promise.race([Z,new Promise((lt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(W?.data!==void 0){let lt=W.data;v(D)&&(lt=D(lt,e,e.state)),p&&(lt=p(lt,e,e.state)),br(e,lt,m),Ut(e,"onFetchComplete",lt),Qt(t,e,"onFetchComplete",lt)}}catch{}return}let Y_=!Ao(ut)?.data;ue(e,{isFetching:!0,isLoading:Y_,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ut(e,"onFetchStart"),Qt(t,e,"onFetchStart");let xe=r?.analyze?.emitNetwork,Vc=xe?typeof performance<"u"?performance.now():Date.now():0;xe&&xe({phase:"start",mode:"query",from:a,method:c,cacheKey:ut,lang:$t});let Nh=wg(async()=>{if(g!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(g===!0&&!B){let xt={message:"Not authenticated"};return ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:xt,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",xt),Qt(t,e,"onFetchError",xt),{data:null,error:xt}}}let Z=s[c];if(!v(Z))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let W={from:a,select:z,params:Y,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:C},lt=sa(e,r);if(lt&&(W.headers={...W.headers,"Accept-Language":lt}),R!==void 0){if(w(R))R.offset!==void 0&&(W.offset=R.offset),R.limit!==void 0&&(W.limit=R.limit),R.cursor!==void 0&&(W.params={...W.params,cursor:R.cursor});else if(typeof R=="number"){let B=t.pageSize||y||20;W.offset=(R-1)*B,W.limit=B}}if(P!==void 0&&(W.params={...W.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let B;if(h===!0||t.on==="submit")B=Co(e);else if(T(h)){let xt=Co(e);B={};for(let Uc of h)B[Uc]=xt[Uc]}else e.state?.parse?B=e.state.parse():w(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),W.data=B}if(c==="rpc"){let B=Y;if(t.on==="submit"){let xt=Co(e);B=t.transformParams?t.transformParams(xt,e,e.state):xt}W.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Y,on:t.subscribeOn},(xt,Uc,AC)=>{br(e,xt,m),Ut(e,"onFetchComplete",xt),Qt(t,e,"onFetchComplete",xt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Z(W)},De);ut&&_o.set(ut,Nh);try{let Z=await Nh;if(Z?.subscribed)return;let{data:W,error:lt}=Z||{};if(lt){ut&&ko(ut,null,lt),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:lt,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",lt),Qt(t,e,"onFetchError",lt),xe&&xe({phase:"error",mode:"query",from:a,method:c,cacheKey:ut,error:lt.message||lt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc});return}if(W!==void 0){if((c==="select"||c==="rpc")&&ut){let xt=ko(ut,W,null);xt.gcTime=q?.gcTime||3e5}let B=W;$&&T(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),B=i.__pages.flat(),V&&(i.__nextPageParam=V(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),E&&(i.__prevPageParam=E(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),v(D)&&(B=D(B,e,e.state)),p&&(B=p(B,e,e.state)),(!L||B!==void 0)&&br(e,B,m),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ut(e,"onFetchComplete",B),Qt(t,e,"onFetchComplete",B),xe&&xe({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:ut,durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc})}}catch(Z){ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Z,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",Z),Qt(t,e,"onFetchError",Z),xe&&xe({phase:"error",mode:"query",from:a,method:c,cacheKey:ut,error:Z.message||String(Z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc})}finally{ut&&_o.delete(ut)}},WS=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Ve;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))},HS=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),US();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:wo(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Ve(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=sa(e,r),a=kg(e,r),c=BS(t,i,a),l=Ao(c),f=Wf(t.cache);(!l||l.stale||Date.now()-l.time>(f?.staleTime||0))&&Ve(t,e,r,{force:!0})};Wr.focus.add(s),n.__fetchCleanups.push(()=>Wr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>Ve(t,e,r,{force:!0});Wr.online.add(s),n.__fetchCleanups.push(()=>Wr.online.delete(s))}},GS=(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=v(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&br(t,i,o),s},Uf=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(br(t,n,e.as),delete r.__optimisticSnapshot)},qS=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Hf(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:g,invalidates:h,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,C;if(c===!0||u==="submit")C=Co(e);else if(T(c)){let E=Co(e);C={};for(let $ of c)C[$]=E[$]}else e.state?.parse?C=e.state.parse():w(e.state)&&(C={...e.state});l&&(C=l(C,e,e.state)),v(y)&&y(C,e,e.state);let R=m?GS(e,t,C):null;s.__fetching=!0,ue(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ut(e,"onFetchStart"),Qt(t,e,"onFetchStart");let P=r?.analyze?.emitNetwork,V=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let Y=await o.getSession();if(p===!0&&!Y){R!==void 0&&Uf(e,t);let q={message:"Not authenticated"};Ut(e,"onFetchError",q),Qt(t,e,"onFetchError",q);return}}let E=o[i];if(!v(E))return;let $={from:a,data:C,headers:d,baseUrl:g};t.params&&($.params=vg(t.params,e,r));let U=sa(e,r);U&&($.headers={...$.headers,"Accept-Language":U});let G=Sg(t),D=await wg(()=>E($),G),{data:L,error:z}=D||{};if(z){R!==void 0&&Uf(e,t),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",z),v(x)&&x(z,C,e),v(_)&&_(null,z,C,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-V});return}if(delete s.__optimisticSnapshot,L!==void 0){let Y=f?{[f]:L}:L;e.state?.update&&e.state.update(Y,{preventFetch:!0})}if(ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ut(e,"onFetchComplete",L),Qt(t,e,"onFetchComplete",L),v(b)&&b(L,C,e),v(_)&&_(L,null,C,e),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-V}),h){let Y=T(h)?h:[h];for(let q of Y)if(q===!0||q==="*")for(let[De]of _t)De.startsWith(a+":")&&vo(De);else vo(q)}}catch(E){R!==void 0&&Uf(e,t),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:E,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",E),Qt(t,e,"onFetchError",E),v(x)&&x(E,C,e),v(_)&&_(null,E,C,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:E.message||String(E),durationMs:(typeof performance<"u"?performance.now():Date.now())-V})}finally{s.__fetching=!1}},Eo=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=tt(t,e);if(!s)return;let i=T(s)?s.map(c=>bg(tt(c,e),e)).filter(Boolean):[bg(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?qS:Ve;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{WS({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&HS(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)Ve(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};Ve(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};Ve(f,e,n,{direction:"previous",force:!0})}},KS={invalidateQueries:t=>{if(!t){vo();return}if(S(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&vo(e);else if(T(t)){let e=t.join(":");for(let[r]of _t)r.includes(e)&&vo(r)}},removeQueries:t=>{if(!t){ra();return}if(S(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&ra(e)},getQueryData:t=>Ao(t)?.data??void 0,setQueryData:(t,e)=>{let r=Ao(t),n=v(e)?e(r?.data):e;ko(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Hf(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(!v(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=ko(o,i.data,null);a.gcTime=Wf(t.cache)?.gcTime||3e5}return i},getCache:()=>_t,clear:()=>ra(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of _t)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||ra(r))}},Gf={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||_o.clear(),Eo(e,t,t.state,t.context))}},YS=Eo});function Ro(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 Kf(t){let e=this,{parent:r}=e;if(v(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 Yf(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(v(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 Xf(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(v(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 ia(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(w(n)&&o)ia.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 Ag(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;v(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=zn(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Jf(t){return this[t]}function Zf(t,e){let r=this;if(t)return r.update(t,e),r}function Qf(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Po(){return this.getRef("__children").map(e=>this[e])}function Io(){return this.getRef().path}function Fo(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Cg();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=v(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Cg()),t?e?.[t]:e}function Do(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Lo(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Mo(t){let e=this.getRoot()?.context;return t?e[t]:e}function No(t){let e=this.context;return t?e[t]:e}function aa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Le.has(r)&&!Kn.has(r)||e.push(r);return e}function ca(t=[]){let e=this,r={},n=aa.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=v(c&&c.parse)?c.parse():c;r[a]=v(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 At(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Oo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ca.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=>j(a)?Oo.call(a,t,e):a):j(i)&&(n[s]=Oo.call(i,t,e))}return n}function Hr(...t){if(Ue!=="test"&&Ue!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
19
+ 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},Ol=(t,e={verbose:!0})=>{try{return t?k.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Rl=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),xi=t=>{for(let e in t)return!1;return!0},Pl=t=>w(t)&&xi(t),Il=()=>Object.create(null),Qn=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&gr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)gr(o)||o==="constructor"||o==="prototype"||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},Tt=(t,e,r={},n=new WeakMap)=>{if(!j(t)||!j(e)||Ct(t)||Ct(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&&gr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];Ct(l)?t[a]=l:j(c)&&j(l)?t[a]=Tt(c,l,r,n):l!==void 0&&(t[a]=l)}return t},_i=(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)||!_i(t[i],e[i],r))return!1}return!0},SS=new Set(["node","__ref"]),$l=(t,e,r=SS)=>{if(t===e)return!0;if(!j(t)||!j(e)||Ct(t)||Ct(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(Ct(l)||Ct(f)){if(l!==f)return!1}else if(j(l)&&j(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Fl=(t,e)=>{if(e==null)return t;if(Et(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},Si=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]=Si(t[r]));return e},Dl=(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},Ll=(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]},Ml=(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},Nl=(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},jl=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(Vh==="test"||Vh==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Bl=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)},Vl=(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 to,eo,ro,wi=F(()=>{"use strict";ke();to=(function(){let t=0;function e(){return t++,t}return e})(),eo=to,ro=(t,e,r)=>(tt(r,t)||r||t.key||to()).toString()});var Zt,Ul,Ne,ki,zl,Wl,Hl,je,Gl,yr,ql=F(()=>{"use strict";Zt="production",Ul=Zt,Ne=(t=Zt)=>t==="production",ki=(t=Zt)=>t==="testing"||t==="test",zl=ki,Wl=(t=Zt)=>t==="staging",Hl=(t=Zt)=>t==="local",je=(t=Zt)=>t==="development"||t==="dev"||t==="local",Gl=(t,e=Zt)=>e[t],yr=(t=Zt)=>!Ne(t)});function no(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 Jl(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 Kl,Yl,wS,Xl,Nr,jr,yt,Br=F(()=>{"use strict";Kl=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Yl=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}}},wS=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Xl=t=>wS.test(t),Nr=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},jr=(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},yt=(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 Zl,Wh=F(()=>{"use strict";ht();ke();Zl=(t,e)=>{let{__ref:r}=t,n=t.if;if(v(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"?tt(n,t)?r.__if=!0:delete r.__if:r.__if=!0}});var Ql,tf,Hh=F(()=>{"use strict";Ql=(t,...e)=>{t&&e.map(r=>console.log(r))},tf=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function sf(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 af(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 ef,rf,nf,of,Gh=F(()=>{"use strict";ht();Nn();ef=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),rf=(t,e,r=365)=>{if(dt(K)||dt(K.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;K.cookie=`${t}=${e};${o};path=/`},nf=t=>{if(dt(K)||dt(K.cookie))return;let e=`${t}=`,n=decodeURIComponent(K.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""},of=t=>{dt(K)||dt(K.cookie)||(K.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var Vr,qh,cf,lf=F(()=>{"use strict";Vr={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"])},qh=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"]),cf=t=>Vr.body.has(t)});var ff,Kh,Ur,io,Ot,uf,vi,ao,pf,co,Ci,Ai,lo,Ei,zr,kS,le,Yh,oo,fo,df,so,hf,gf,Ti,Oi,Ri,Pi,Ii,$i,Xh,Fi=F(()=>{"use strict";Dr();mf();ke();ht();ff="production",Kh=t=>t.sourcemap!==!1&&ff!=="production",Ur=t=>{if(t.includes("+"))return t.split("+").filter(fe);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!fe(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},io=(t,e,r)=>{let n=[],o=Ur(r);o&&(n=[...o]);let s=t.extends;return s&&(n=T(s)?[...n,...s]:[...n,s]),n},Ot=(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},uf=(t,e)=>{if(!t)return e;let{extends:r}=e,n=T(r)?r:[r],o=T(t)?t:[t];return{...e,extends:$r(o,n)}},vi=()=>Math.random().toString(36).substring(2),ao={},pf={},co=t=>ao[t.__hash],Ci=(t,e)=>{let r=vi();return S(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(ao[r]=e),e},Ai=(t,e)=>t.__hash?e.concat(co(t)):Ci(t,e),lo=(t,e,r,n=new Set,o,s)=>{for(let i of t)T(i)?lo(i,e,r,n,o,s):zr(i,e,r,n,o,void 0,s);return e},Ei=(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&&zr(a,e,r,n,o,s,i),e},zr=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(T(t))return lo(t,e,r,n,o,i);let a=s;return S(t)?(a=t,t=fo(t,r)):i&&w(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends?Ei(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},kS=new Set(["parent","node","__ref","__proto__","extends","childExtends","childExtendsRecursive"]),le=(t,e,r,n,o)=>{e=ot(e);for(let s in e){if(kS.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]||{},Yh(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];fe(s)?t[s]=le(i,a,c,n,l):le(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=le({},i);t[s]=le(c,a)}}}}return t},Yh=(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]||{},Yh(t[o],s,r,n)):t[o]=r}}},oo=(t,e,r)=>t.reduce((n,o,s)=>{let i=ot(o),a=r?r[s]:void 0;return le(n,i,e,a)},{}),fo=(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&&(ff==="test"||ff==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},df=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),so=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return co(t)||[];let s=zr(t,[],e,new Set,r,void 0,n);return r?s:Ai(t,s)},hf=(t,e)=>{if(!t)return e;let r=T(t)?t:[t];return $r(r,e)},gf=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(fe(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},Ti=(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]?Ot([c,...a],t):Ot(t.extends,t)}else Ot(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Ot(i,t):Ot(t.extends,t)}else Ot(t.extends,t);return Oi(t,e,r),Ri(t,e,r),Pi(t,e,r),t.component&&Ot(tt(t.component,t),t),o.defaultExtends&&Ot(o.defaultExtends,t),Fr(n.__extends)},Oi=(t,e,r={})=>{let{__ref:n}=t;return r.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&Ot(e.childProps.extends,t),n.__extends},Ri=(t,e,r={})=>{let{__ref:n}=t,o=r.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&Ot(s,t),n.__extends},Pi=(t,e,r={})=>{let{__ref:n}=t,o=e.childExtendsRecursive,s=r.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&Ot(o,t),n.__extends},Ii=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.variant,i=Kh(r),a=i?[...n.__extends]:null,c=Fr(n.__extends.map((l,f)=>fo(l,o,r,f===0&&s)));if(i){let l=new WeakMap;for(let p=0;p<c.length;p++){let d=c[p],g=a[p];d&&w(d)&&S(g)&&l.set(d,g)}let f=[],u=so(c,o,f,l);n.__extendsStack=u,n.__extendsNames=f}else{let l=so(c,o);n.__extendsStack=l}return n.__extendsStack},$i=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Kh(r)){let s={},i=n.__extendsNames||[],a=oo(o,s,i),c={};le(t,a,c,void 0,s),n.__sourcemap=c}else{let s=oo(o);le(t,s)}return t},Xh=(t,e,r={})=>(Ti(t,e,r),Ii(t,e,r),$i(t,e,r),t)});function yf(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function bf(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function xf(t,e,r){let{context:n}=e||{},[o]=Ur(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var fe,mf=F(()=>{"use strict";Fi();ht();fe=t=>{if(!S(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Jh(t,e){let{props:r,on:n}=e,o=dr(t.split("on")[1]),s=n[o],i=r[t];v(s)?n[o]=(...a)=>{if(s(...a)!==!1&&v(i))return i(...a)}:n[o]=i}var Zh=F(()=>{"use strict";qn();ht()});function Di(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()&&(v(o)||o!=null&&Nr(this.context))){let g=dr(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)||v(a),f=w(c)||v(c);if(l||f)continue;let u=n.charAt(0);if(tg.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=_f.test(n)||Qh.test(n)||CS(o),d=Le.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function Li(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=v(o)||o!=null&&Nr(this.context);if(s&&i){Jh(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(tg.has(a))continue;let c=this.define?.[n],l=this.context?.define?.[n],f=w(c)||v(c),u=w(l)||v(l),p=_f.test(n)||Qh.test(n),d=Le.has(n);(p||d||f||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function Mi(t=this){let e=[];return Di.call(this,t,{cachedKeys:e}),Li.call(this,t,{cachedKeys:e}),t}function Sf(t={}){return t.on||(t.on={}),t.props||(t.props={}),Mi.call(this,t)}function kf(t,e){this.__element.update({props:t},e)}function mo(t){let e={update:kf.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var _f,Qh,tg,vS,CS,ho,uo,wf,go,yo,bo,Ni,po,vf,Cf,Af=F(()=>{"use strict";Mr();Zh();ke();ht();qn();Br();_f=/^[A-Z]/,Qh=/^\d+$/,tg=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),vS=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),CS=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(vS.has(e)||_f.test(e))return!0;return!1},ho=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return j(n)?{...n}:(o.__propsStack.push(n),{})};uo=t=>Et(t)("string","number")?{inheritedString:t}:t,wf=(t,e)=>!t||!e.length?!1:e.includes(t),go=(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=uo(i);n.unshift(c)}if(s){let c=uo(s);n.unshift(c)}return n};yo=t=>{let e=new Set;return t.filter(r=>!r||Me.has(r)||e.has(r)?!1:(e.add(r),!0))},bo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Me.has(o))return n;for(;v(o);)o=tt(o,e);return X(n,ot(o,{exclude:Me}))},{}),mo(e),e.props),Ni=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...go(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=yo(o),n.__propsStack},po=(t,e)=>{let{__ref:r}=t,n=Ni(t,e);n.length?bo(n,t):(r.__propsStack=[],t.props={})},vf=function(t,e,r){let{__ref:n}=t;if(n.__if)po(t,e);else try{po(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return mo(t),t},Cf=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=go(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=yo(s),n.__propsStack.length&&bo(n.__propsStack,e),e}});var eg,ji,Bi,Vi,Ui,Ef,zi,Wi,Hi,Tf,rg=F(()=>{"use strict";Fi();wi();Bn();Af();lf();ht();eg="production",ji=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=Vr.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},Bi=(t,e,r)=>{if(t===void 0)return(eg==="test"||eg==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:Et(t)("string","number")?ji(t,e,r):v(t)?{props:t}:t},Vi=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ui=(t,e,r,n,o)=>{if(!e)return o;if(we(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Ef=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},zi=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Wi=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Hi=(t,e,r)=>{let n=Vi(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=io(t,e,r),n.path=zi(t,e,r),n},Tf=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:Bi(t,e,r);if(!i)return;let a=Ui(i,e,r,n,o),c=ro(i,a,r);Hi(i,a,c);let l=ho(i,a,c),f=Wi(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Of,Gi,qi,Ki,Yi,Rf,Xi,Pf,If,$f,Ff,ng=F(()=>{"use strict";Dr();Mr();ke();ht();Of=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return Et(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},Gi=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},qi=(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},Ki=(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]},Yi=(t,e,r={})=>{let o=t.__ref.__state;if(!Xi(t))return;let s=Gi(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=qi(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return Ki(o,i,r)},Rf=(t,e)=>{let r=t.__ref,n=Yi(t,e);if(n===void 0)return t.state;if(Et(n)("object","array"))return ot(n);if(Et(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},Xi=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&Et(r)("number","string","boolean"))},Pf=function(t){return j(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},If=(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},$f=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=ot(n,hr),s={[t.key]:o},i=w(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?Wn(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},Ff=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){X(t,e,hr);return}(o?mr:Tt)(t,e,hr)}});var AS,Df,og=F(()=>{"use strict";AS=(t,e)=>{let r=e;for(;r;){if(r===t)return!0;r=Object.getPrototypeOf(r)}return!1},Df=(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&&!AS(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var sg,Ji,Be,Zi,Lf,Mf=F(()=>{"use strict";ht();Br();sg=(t,e)=>{let r="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[r]},Ji=(t,e,r,n,o)=>{if(t=jr(t,e),!!v(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}},Be=(t,e,r)=>{if(!e)throw new Error("Element is required");yt(t,e,r);let n=sg(t,e);if(n){let{state:o,context:s}=e;return Ji(n,e,o,s,r)}},Zi=(t,e,r,n,o,s)=>{if(t=jr(t,r),!!v(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}},Lf=(t,e,r,n)=>{yt(t,r,e,n);let o=sg(t,r);if(o){let{state:s,context:i}=r;return Zi(o,e,r,s,i,n)}}});var Nf,xo,jf=F(()=>{"use strict";Nf={},xo={}});var cg={};I(cg,{setup:()=>TS,supabaseAdapter:()=>ag});var ig,ES,TS,Bf,OS,ag,lg=F(()=>{"use strict";ig=new Map,ES=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,TS=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...a})=>{let c=t||r&&`https://${r}.supabase.co`;if(!c||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=ES(c,e,o===!1),f=ig.get(l);return f||(f=await n(c,e,a),f?.auth&&ig.set(l,f)),!f||!f.auth?null:ag(f)},Bf=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},OS=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},ag=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let c=(r?t.schema(r):t).from(e).select(n||"*");if(c=Bf(c,o),c=OS(c,i),s)try{for(let l in s)c.setHeader?c=c.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return c},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let a=(r?t.schema(r):t).from(e).update(n);return a=Bf(a,o),a.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=Bf(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var ug={};I(ug,{restAdapter:()=>fg,setup:()=>PS});var RS,ve,PS,fg,pg=F(()=>{"use strict";RS=(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()},ve=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}},PS=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return fg(t,e,r,n)},fg=(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 p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let d=f&&!f.startsWith("/")?"/":"";return`${p}${d}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await ve(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 ve(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 ve(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:d,offset:g,order:h,single:m,headers:y,baseUrl:b})=>{let x={...u};return p&&(x.select=p),d&&(x.limit=d),g&&(x.offset=g),m&&(x.single=!0),h&&(typeof h=="string"?x.order=h:Array.isArray(h)?x.order=h.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):h.by&&(x.order=`${h.by}:${h.asc===!1?"desc":"asc"}`)),ve(RS(b||t,f||"",x),a({headers:s(y)}))},rpc:({from:f,params:u,headers:p,baseUrl:d})=>ve(c(`rpc/${f}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:d})=>ve(c(f,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:d,headers:g,baseUrl:h})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ve(c(y,h),a({method:d||"PATCH",headers:i(g),body:JSON.stringify(u)}))},upsert:({from:f,data:u,params:p,method:d,headers:g,baseUrl:h})=>{let m=p?.id||u?.id,y=m?`${f}/${m}`:f;return ve(c(y,h),a({method:d||"PUT",headers:i(g),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:d})=>{let g=u?.id,h=g?`${f}/${g}`:f;return ve(c(h,d),a({method:"DELETE",headers:s(p)}))}}}});var hg={};I(hg,{localAdapter:()=>dg,setup:()=>$S});var Qi,IS,$S,dg,gg=F(()=>{"use strict";Qi=(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},IS=(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}},$S=async({data:t,...e})=>dg(t,e),dg=(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,p,d)=>{let g=n[f];if(g)for(let h of g)h(p,d,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let g=i(f).filter(h=>Qi(h,u));return IS(g,p)},insert:async({from:f,data:u})=>{let p=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return p.push(m),m});a(f);for(let h of g)c(f,"INSERT",h,null);return{data:Array.isArray(u)?g:g[0],error:null}},update:async({from:f,data:u,params:p})=>{let d=i(f),g=[];for(let h=0;h<d.length;h++)if(Qi(d[h],p)){let m={...d[h]};Object.assign(d[h],u),g.push(d[h]),c(f,"UPDATE",d[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:p})=>{let d=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=p||(m.id!==void 0?{id:m.id}:null),b=y?d.findIndex(x=>Qi(x,y)):-1;if(b>-1){let x={...d[b]};Object.assign(d[b],m),h.push(d[b]),c(f,"UPDATE",d[b],x)}else{let x={id:m.id||++l,...m};d.push(x),h.push(x),c(f,"INSERT",x,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let p=i(f),d=[];for(let g=p.length-1;g>=0;g--)Qi(p[g],u)&&(d.push(p[g]),p.splice(g,1),c(f,"DELETE",null,d[d.length-1]));return a(f),{data:d,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let d=(g,h,m)=>{u&&u!=="*"&&u!==m.event||p(g,h,m)};return n[f].push(d),()=>{let g=n[f].indexOf(d);g>-1&&n[f].splice(g,1)}}}}});var To={};I(To,{createAdapter:()=>jS,default:()=>YS,executeFetch:()=>Eo,fetchPlugin:()=>Gf,initAdapterAuth:()=>oa,parseDuration:()=>wo,queryClient:()=>KS,registerAdapter:()=>NS,resolveDb:()=>xg});var FS,DS,ta,So,ea,zf,LS,MS,NS,jS,xg,wo,_t,_g,_o,BS,Ao,ko,vo,ra,Wf,na,VS,mg,Vf,Sg,wg,Wr,yg,US,bg,zS,sa,kg,vg,oa,Hf,Ut,Qt,Co,br,ue,Ve,WS,HS,GS,Uf,qS,Eo,KS,Gf,YS,xr=F(()=>{"use strict";O();FS=["select","rpc","insert","update","upsert","delete","subscribe"],DS={supabase:()=>Promise.resolve().then(()=>(lg(),cg)),rest:()=>Promise.resolve().then(()=>(pg(),ug)),local:()=>Promise.resolve().then(()=>(gg(),hg))},ta=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),So=(()=>{if(typeof globalThis<"u"&&globalThis[ta])return globalThis[ta];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,ta,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[ta]}catch{}return t})(),ea=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),zf=(()=>{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})(),LS=5e3,MS=t=>new Promise(e=>{if(So[t])return e(So[t]);let r=zf[t]||=[],n=!1,o=()=>{n||(n=!0,e(So[t]||null))};r.push(o),setTimeout(o,LS)}),NS=(t,e)=>{So[t]=e;let r=zf[t];if(r&&r.length){zf[t]=[];for(let n of r)n()}},jS=t=>{let e={};for(let r of FS)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},xg=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=So[n]||DS[n];if(!o&&(o=await MS(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)},wo=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},_t=new Map,_g=new Map,_o=new Map,BS=(t,e,r)=>{if(t.cache?.key)return t.cache.key;let n=zS(t.params),o=r?`${r}:`:"",s=`${t.from}:${t.method}:${o}${JSON.stringify(n||"")}`;return e?`${s}:${e}`:s},Ao=t=>_t.get(t)||null,ko=(t,e,r)=>{let n=_t.get(t),o={data:e,error:r,time:Date.now(),stale:!1};_t.set(t,o);let s=_g.get(t);if(s)for(let i of s)v(i)&&i(o);return o},vo=t=>{if(t){let e=_t.get(t);e&&(e.stale=!0);return}for(let[,e]of _t)e.stale=!0},ra=t=>{if(t){_t.delete(t);return}_t.clear()},Wf=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:wo(t),gcTime:3e5}:{staleTime:wo(t.stale||t.staleTime)||6e4,gcTime:wo(t.gc||t.gcTime||t.expire)||3e5,key:t.key},na=null,VS=()=>{na||(na=setInterval(()=>{let t=Date.now();for(let[e,r]of _t){let n=_g.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&_t.delete(e)}},3e4),na.unref&&na.unref())};VS();mg=3,Vf=t=>Math.min(1e3*2**t,3e4),Sg=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:mg,delay:Vf}:typeof e=="number"?{count:e,delay:Vf}:{count:e.count??mg,delay:v(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:Vf}},wg=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=v(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=v(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Wr={focus:new Set,online:new Set},yg=!1,US=()=>{if(yg||typeof window>"u")return;yg=!0;let t=()=>{for(let r of Wr.focus)r()},e=()=>{for(let r of Wr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},bg=(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},zS=t=>(!t||v(t),t),sa=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},kg=(t,e)=>{let n=(t?.state?.root||e?.state?.root)?.__fetchScope;return n?String(n):void 0},vg=(t,e,r)=>{let n;if(!t)n=void 0;else if(v(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=v(s)?s(e,e.state):s}}return n},oa=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)})},Hf=async(t,e)=>{if(v(t.select))return t.auth!==!1&&await oa(t,e),t;if(t.__resolved)return t.auth!==!1&&await oa(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=xg(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 oa(r,e),r):null},Ut=(t,e,...r)=>{let n=v(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},Qt=(t,e,r,...n)=>{let o=t&&v(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},Co=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},br=(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})}},ue=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},Ve=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||v(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||v(t.skip)&&t.skip(e,e.state))return;let s=await Hf(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:a,method:c,query:l,params:f,cache:u,transform:p,single:d,auth:g,fields:h,as:m,limit:y,offset:b,order:x,headers:_,baseUrl:C,page:R,cursor:P,getNextPageParam:V,getPreviousPageParam:E,infinite:$,placeholderData:U,initialData:G,select:D,keepPreviousData:M}=t,z=S(D)?D:void 0;if(l&&v(e.getQuery)){let Z=e.getQuery(s.name||"paths");Z&&(z=Z.select||Z.length&&Z.join(",")||z)}let Y=vg(f,e,r),q=Wf(u),De=Sg(t),$t=sa(e,r),kt=kg(e,r),q_=$t?`:${$t}`:"",K_=kt?`${kt}:`:"",ut=q?u?.key||`${a}:${c}:${K_}${JSON.stringify(Y||"")}${$?":infinite":""}${R?":p"+JSON.stringify(R):""}${q_}`:null;if(!i.__fetchInitialized&&ut&&(i.__fetchInitialized=!0,G!==void 0)){let Z=v(G)?G():G;ko(ut,Z,null)}if((c==="select"||c==="rpc")&&ut&&q){let Z=Ao(ut);if(Z&&!Z.error){let W=Date.now()-Z.time,lt=Z.stale||W>(q.staleTime||0),B=Z.data;if(v(D)&&(B=D(B,e,e.state)),p&&(B=p(B,e,e.state)),br(e,B,m),!lt){ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(U!==void 0){let W=v(U)?U(e,e.state):U;W!==void 0&&br(e,W,m)}}if(ut&&_o.has(ut)&&!n.force){let Z=_o.get(ut);try{let W=await Promise.race([Z,new Promise((lt,B)=>setTimeout(()=>B("DEDUP_TIMEOUT"),15e3))]);if(W?.data!==void 0){let lt=W.data;v(D)&&(lt=D(lt,e,e.state)),p&&(lt=p(lt,e,e.state)),br(e,lt,m),Ut(e,"onFetchComplete",lt),Qt(t,e,"onFetchComplete",lt)}}catch{}return}let Y_=!Ao(ut)?.data;ue(e,{isFetching:!0,isLoading:Y_,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ut(e,"onFetchStart"),Qt(t,e,"onFetchStart");let xe=r?.analyze?.emitNetwork,Vc=xe?typeof performance<"u"?performance.now():Date.now():0;xe&&xe({phase:"start",mode:"query",from:a,method:c,cacheKey:ut,lang:$t});let Nh=wg(async()=>{if(g!==!1&&s.auth!==!1&&s.getSession){let B=await s.getSession();if(g===!0&&!B){let xt={message:"Not authenticated"};return ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:xt,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",xt),Qt(t,e,"onFetchError",xt),{data:null,error:xt}}}let Z=s[c];if(!v(Z))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let W={from:a,select:z,params:Y,single:d,limit:y,offset:b,order:x,headers:_,baseUrl:C},lt=sa(e,r);if(lt&&(W.headers={...W.headers,"Accept-Language":lt}),R!==void 0){if(w(R))R.offset!==void 0&&(W.offset=R.offset),R.limit!==void 0&&(W.limit=R.limit),R.cursor!==void 0&&(W.params={...W.params,cursor:R.cursor});else if(typeof R=="number"){let B=t.pageSize||y||20;W.offset=(R-1)*B,W.limit=B}}if(P!==void 0&&(W.params={...W.params,cursor:P}),c==="insert"||c==="update"||c==="upsert"){let B;if(h===!0||t.on==="submit")B=Co(e);else if(T(h)){let xt=Co(e);B={};for(let Uc of h)B[Uc]=xt[Uc]}else e.state?.parse?B=e.state.parse():w(e.state)&&(B={...e.state});p&&(B=p(B,e,e.state)),W.data=B}if(c==="rpc"){let B=Y;if(t.on==="submit"){let xt=Co(e);B=t.transformParams?t.transformParams(xt,e,e.state):xt}W.params=B}if(c==="subscribe"){let B=s.subscribe({from:a,params:Y,on:t.subscribeOn},(xt,Uc,AC)=>{br(e,xt,m),Ut(e,"onFetchComplete",xt),Qt(t,e,"onFetchComplete",xt)});return i.__unsubscribe=B,{data:null,error:null,subscribed:!0}}return Z(W)},De);ut&&_o.set(ut,Nh);try{let Z=await Nh;if(Z?.subscribed)return;let{data:W,error:lt}=Z||{};if(lt){ut&&ko(ut,null,lt),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:lt,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",lt),Qt(t,e,"onFetchError",lt),xe&&xe({phase:"error",mode:"query",from:a,method:c,cacheKey:ut,error:lt.message||lt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc});return}if(W!==void 0){if((c==="select"||c==="rpc")&&ut){let xt=ko(ut,W,null);xt.gcTime=q?.gcTime||3e5}let B=W;$&&T(W)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(W):i.__pages.push(W),B=i.__pages.flat(),V&&(i.__nextPageParam=V(W,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),E&&(i.__prevPageParam=E(W,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),v(D)&&(B=D(B,e,e.state)),p&&(B=p(B,e,e.state)),(!M||B!==void 0)&&br(e,B,m),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ut(e,"onFetchComplete",B),Qt(t,e,"onFetchComplete",B),xe&&xe({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:ut,durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc})}}catch(Z){ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Z,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",Z),Qt(t,e,"onFetchError",Z),xe&&xe({phase:"error",mode:"query",from:a,method:c,cacheKey:ut,error:Z.message||String(Z),durationMs:(typeof performance<"u"?performance.now():Date.now())-Vc})}finally{ut&&_o.delete(ut)}},WS=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Ve;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))},HS=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),US();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:wo(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Ve(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=sa(e,r),a=kg(e,r),c=BS(t,i,a),l=Ao(c),f=Wf(t.cache);(!l||l.stale||Date.now()-l.time>(f?.staleTime||0))&&Ve(t,e,r,{force:!0})};Wr.focus.add(s),n.__fetchCleanups.push(()=>Wr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>Ve(t,e,r,{force:!0});Wr.online.add(s),n.__fetchCleanups.push(()=>Wr.online.delete(s))}},GS=(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=v(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&br(t,i,o),s},Uf=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(br(t,n,e.as),delete r.__optimisticSnapshot)},qS=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await Hf(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:p,headers:d,baseUrl:g,invalidates:h,optimistic:m,onMutate:y,onSuccess:b,onError:x,onSettled:_}=t,C;if(c===!0||u==="submit")C=Co(e);else if(T(c)){let E=Co(e);C={};for(let $ of c)C[$]=E[$]}else e.state?.parse?C=e.state.parse():w(e.state)&&(C={...e.state});l&&(C=l(C,e,e.state)),v(y)&&y(C,e,e.state);let R=m?GS(e,t,C):null;s.__fetching=!0,ue(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ut(e,"onFetchStart"),Qt(t,e,"onFetchStart");let P=r?.analyze?.emitNetwork,V=P?typeof performance<"u"?performance.now():Date.now():0;P&&P({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let Y=await o.getSession();if(p===!0&&!Y){R!==void 0&&Uf(e,t);let q={message:"Not authenticated"};Ut(e,"onFetchError",q),Qt(t,e,"onFetchError",q);return}}let E=o[i];if(!v(E))return;let $={from:a,data:C,headers:d,baseUrl:g};t.params&&($.params=vg(t.params,e,r));let U=sa(e,r);U&&($.headers={...$.headers,"Accept-Language":U});let G=Sg(t),D=await wg(()=>E($),G),{data:M,error:z}=D||{};if(z){R!==void 0&&Uf(e,t),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:z,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",z),v(x)&&x(z,C,e),v(_)&&_(null,z,C,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:z.message||String(z),durationMs:(typeof performance<"u"?performance.now():Date.now())-V});return}if(delete s.__optimisticSnapshot,M!==void 0){let Y=f?{[f]:M}:M;e.state?.update&&e.state.update(Y,{preventFetch:!0})}if(ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ut(e,"onFetchComplete",M),Qt(t,e,"onFetchComplete",M),v(b)&&b(M,C,e),v(_)&&_(M,null,C,e),P&&P({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-V}),h){let Y=T(h)?h:[h];for(let q of Y)if(q===!0||q==="*")for(let[De]of _t)De.startsWith(a+":")&&vo(De);else vo(q)}}catch(E){R!==void 0&&Uf(e,t),ue(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:E,status:"error",fetchStatus:"idle"}),Ut(e,"onFetchError",E),Qt(t,e,"onFetchError",E),v(x)&&x(E,C,e),v(_)&&_(null,E,C,e),P&&P({phase:"error",mode:"mutation",from:a,method:i,error:E.message||String(E),durationMs:(typeof performance<"u"?performance.now():Date.now())-V})}finally{s.__fetching=!1}},Eo=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=tt(t,e);if(!s)return;let i=T(s)?s.map(c=>bg(tt(c,e),e)).filter(Boolean):[bg(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?qS:Ve;c.on==="create"?f(c,e,n):Promise.resolve().then(()=>{WS({...c,__runner:f},e,n)}),!l&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&HS(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let l of i)Ve(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};Ve(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};Ve(f,e,n,{direction:"previous",force:!0})}},KS={invalidateQueries:t=>{if(!t){vo();return}if(S(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&vo(e);else if(T(t)){let e=t.join(":");for(let[r]of _t)r.includes(e)&&vo(r)}},removeQueries:t=>{if(!t){ra();return}if(S(t))for(let[e]of _t)(e.startsWith(t)||e.includes(t))&&ra(e)},getQueryData:t=>Ao(t)?.data??void 0,setQueryData:(t,e)=>{let r=Ao(t),n=v(e)?e(r?.data):e;ko(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await Hf(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(!v(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=ko(o,i.data,null);a.gcTime=Wf(t.cache)?.gcTime||3e5}return i},getCache:()=>_t,clear:()=>ra(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of _t)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||ra(r))}},Gf={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||_o.clear(),Eo(e,t,t.state,t.context))}},YS=Eo});function Ro(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 Kf(t){let e=this,{parent:r}=e;if(v(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 Yf(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(v(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 Xf(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(v(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 ia(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];if(w(n)&&o)ia.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 Ag(t){let e=this;if(Be("beforeRemove",e,t)===!1)return e;v(e.node.remove)?e.node.remove():Ne()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=zn(e.parent.__ref.__children,e.key)),Be("remove",e,t)}function Jf(t){return this[t]}function Zf(t,e){let r=this;if(t)return r.update(t,e),r}function Qf(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Po(){return this.getRef("__children").map(e=>this[e])}function Io(){return this.getRef().path}function Fo(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Cg();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=v(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Cg()),t?e?.[t]:e}function Do(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Lo(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function Mo(t){let e=this.getRoot()?.context;return t?e[t]:e}function No(t){let e=this.context;return t?e[t]:e}function aa(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Le.has(r)&&!Kn.has(r)||e.push(r);return e}function ca(t=[]){let e=this,r={},n=aa.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=v(c&&c.parse)?c.parse():c;r[a]=v(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 At(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function Oo(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=ca.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=>j(a)?Oo.call(a,t,e):a):j(i)&&(n[s]=Oo.call(i,t,e))}return n}function Hr(...t){if(Ue!=="test"&&Ue!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
20
20
  `,"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 eu(...t){(Ue==="test"||Ue==="development")&&console.log(...t)}function jo(...t){(Ue==="test"||Ue==="development")&&console.warn(...t)}function _r(...t){if(Ue==="test"||Ue==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&Hr.call(this),new Error(...t)}}function Bo(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Vo(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 Uo(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 ru(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=>{_r.call(this,s)}),o}catch(o){if(_r.call(this,o),r?.strictMode)throw o}}async function zo(){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(()=>(xr(),To));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(xr(),To));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(xr(),To)).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(()=>(xr(),To));await o(n,t.context)}return n}function Wo(t){let e=this,r=t||xo.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(qf(e,n),r===!0)return n;let o=nw[r];return o?o(n):n}function nu(t,e){return!!(Lr.has(t)||e?.context?.methods?.[t])}var Ue,Eg,$o,Cg,tu,qf,XS,Tg,JS,ZS,QS,tw,ew,rw,nw,Og=F(()=>{"use strict";Mf();Mr();ht();ke();ql();Dr();jf();Ue="production";Eg=null,$o=t=>{Eg=t||null},Cg=()=>Eg||null;tu=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});qf=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&XS(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&qf(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&qf(i,e)},XS=(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])}},Tg=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
21
21
  ${Tg(i,e+1)}
22
22
  ${r}}`).join(`
@@ -28,7 +28,7 @@ ${Tg(t,1)}
28
28
  FROM ${a}${l}`},ew=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},rw=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},nw={graphql:JS,"json-api":ZS,odata:QS,sql:tw,supabase:rw,paths:ew}});var ow,ou,Rg=F(()=>{"use strict";wi();ow={snapshotId:eo},ou=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=ow.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var la,su,Pg=F(()=>{la=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),su=t=>typeof t=="string"&&la.has(t)});async function iu(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 Ig=F(()=>{"use strict"});function sw(t){return/^[0-9.]+$/.test(t)&&t!==""}var te,ze,Gr,ee,au,$g=F(()=>{"use strict";te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!sw(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Gr=(t={})=>{let{packageManager:e}=t;return ze[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),au=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
29
29
  "imports": ${JSON.stringify(o,null,2)}
30
30
  }<\/script>`}});var cu,Fg=F(()=>{"use strict";cu=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 lu,Dg=F(()=>{"use strict";lu=(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 fu,Lg=F(()=>{"use strict";fu=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,Mg=F(()=>{"use strict";uu=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function qr(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 yu(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 pu,du,hu,gu,mu,Ng=F(()=>{"use strict";pu=(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)}}),du=(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}`)},gu=(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)}}),mu=(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 cw(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!aw(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 fa(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 lw(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,(p,d,g)=>{let h=d.trim();if(g==="polyglot")return a[h]??fa(a,h)??p;if(g==="getLocalStateLang")return fa(c,h+s)??p;let m=fa(c,h);return m!==void 0?m:a[h]??fa(a,h)??p}));return l}function jg(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=jg(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=jg(f),p={};if(t.integrations?.seo?p={...t.integrations.seo,...u,...c}:Object.keys(u).length?p={...u,...c}:p={...c},!p.title){let h=t.name||t.key;h?n?p.title=h:o==="development"?p.title=`${h} / dev:symbo.ls`:o==="staging"?p.title=`${h} / staging:symbo.ls`:p.title=`${h} / symbo.ls`:p.title="Symbols demo"}p=lw(p,t,r),p.title&&(l.has("title")||!p["og:title"])&&(l.has("og:title")||(p["og:title"]=p.title)),p.description&&(l.has("description")||!p["og:description"])&&(l.has("og:description")||(p["og:description"]=p.description)),p.title&&!p["twitter:title"]&&(p["twitter:title"]=p.title),p.description&&!p["twitter:description"]&&(p["twitter:description"]=p.description);let d=r?.actualPathname||e;if(p["og:url"]||p.url){let h=(p["og:url"]||p.url||"").replace(/\/$/,"");if(h&&d&&d!=="/"){let m=d.startsWith("/")?d:"/"+d;p["og:url"]=h+m}}p=cw(p,t.files);let g=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[h,m]of Object.entries(p))if(typeof m=="string"&&m.includes("{{")){let y=m.replace(/\{\{[^}]*\}\}/g,"").trim();y?p[h]=y:h==="title"?p[h]=g:delete p[h]}return p}var zt,iw,bu,aw,Bg=F(()=>{"use strict";ht();zt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},iw=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${zt(r)}"`).join(" "),bu=(t,e)=>(e||(t={...t,robots:"noindex"}),Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${zt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${zt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${zt(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="${zt(f)}">`);else if(typeof f=="object"){let u=iw(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(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${zt(d)}"`).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}="${zt(l)}" content="${zt(f)}">`);else if(Array.isArray(f))f.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${zt(l)}" content="${zt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${zt(h)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof f=="object"){let p=Object.entries(f).filter(([d,g])=>g!==void 0).map(([d,g])=>`${d}="${zt(g)}"`).join(" ");n.push(`<meta ${p}>`)}};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">']).join(`
31
- `)),aw=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var ua,_u,Vg=F(()=>{"use strict";ht();ua=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),_u=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),ua(t,e))});function Kr(t){let e=String(t||"").trim();if(!e)return{owner:Ug,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=Ug);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function da(t,e={}){if((e.provider||"kv")==="api")return zg(t,e);let n=await mw(t,e);return n||zg(t,e)}async function mw(t,e={}){let r=e.kvBaseUrl||fw,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 zg(t,e={}){let r=e.apiBaseUrl||uw,{key:n}=Kr(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(d=>{let{key:g}=Kr(d?.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 p=await u.json();return p?.data||p||null}catch{return null}}async function Wg(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=Kr(t);if(!r)return null;try{let n=await da(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 wu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(Go(n)){let o=await Wg(hw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return Wg(n,e)}))).filter(Boolean)}var Ug,fw,uw,Ho,pw,dw,pa,Su,Go,hw,gw,qo,Hg=F(()=>{"use strict";ht();Ug="system",fw="https://smbls-kv.nika-980.workers.dev",uw="https://api.symbols.app";Ho=(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])&&Ho(t[o],e[o],r,s):t[o]=e[o])}},pw=new Set,dw=t=>t.replace(/\.js$/iu,""),pa=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=>dw(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},Su=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Go=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),hw=t=>t.library!==void 0?t.library:t.key??t.name,gw=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(w(e[n])&&w(t[n]))if(n==="designSystem")Ho(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},qo=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=pw;Go(n)&&(o=pa(n.ignoreList),n=n.library),w(n)&&gw(t,n,o)}}});var ku,vu,Cu,Ko,Au,Yo,Eu,Sr,Gg=F(()=>{"use strict";ht();ku=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},vu=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)}},Cu=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Ko=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,"")),Au=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Yo=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Eu=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Sr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(ae(t))return[t]}});var Tu,qg=F(()=>{"use strict";Tu=()=>{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 Rt,Yr,Xo,Jo,Kg=F(()=>{"use strict";Rt=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},Yr=(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(", ")},Xo=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return Yr(e,{keepOneX:!1})},Jo=(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:Yr(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Yr(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var ha={};I(ha,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,ENV:()=>Ul,HTML_TAGS:()=>Vr,METHODS:()=>Lr,METHODS_EXL:()=>Yn,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,PROPS_METHODS:()=>Me,STATE_METHODS:()=>hr,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>qh,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,addCaching:()=>Hi,addContext:()=>Wi,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addProtoToArray:()=>Wn,addRef:()=>Vi,applyDependentState:()=>$f,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>Xh,applyProps:()=>po,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,call:()=>ru,captureSnapshot:()=>ou,checkForStateTypes:()=>Of,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,concatAddExtends:()=>uf,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,createBasedOnType:()=>Bi,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createSnapshotId:()=>eo,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,document:()=>K,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,get:()=>Jf,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLocalStorage:()=>sf,getNev:()=>Gl,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSpreadChildren:()=>bf,global:()=>rl,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,initProps:()=>vf,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isStaging:()=>Wl,isState:()=>Pf,isString:()=>S,isStringFunction:()=>Xl,isTest:()=>ki,isTesting:()=>zl,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keys:()=>aa,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchesComponentNaming:()=>fe,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,objectToString:()=>Jn,objectizeStringProperty:()=>uo,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseDeep:()=>Oo,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,remove:()=>Ag,removeChars:()=>Cu,removeCookie:()=>of,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveHandler:()=>jr,resolveSharedLibraries:()=>wu,returnValueAsText:()=>ji,runPluginHook:()=>yt,self:()=>nl,setActiveRootState:()=>$o,setCookie:()=>rf,setHashedExtend:()=>Ci,setInObjectByPath:()=>Ml,setLocalStorage:()=>af,setNodeStyles:()=>ia,setProps:()=>Zf,setPropsPrototype:()=>mo,sharedLibrary:()=>Su,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,swapItemsInArray:()=>cl,syncProps:()=>bo,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,unstackArrayOfObjects:()=>Un,update:()=>kf,updateProps:()=>Cf,variables:()=>Uo,verbose:()=>Hr,warn:()=>jo,window:()=>k});var O=F(()=>{"use strict";wi();ql();ht();ke();Br();Dr();Bn();Wh();Hh();qn();Nn();Gh();lf();mf();Af();Fi();rg();ng();Mr();og();Og();jf();Rg();Mf();Pg();Ig();$g();Fg();Dg();Lg();Mg();Ng();Bg();Vg();Hg();Gg();qg();Kg()});var S_=Wc((RD,__)=>{var Rn=1e3,Pn=Rn*60,In=Pn*60,Or=In*24,Vv=Or*7,Uv=Or*365.25;__.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return zv(t);if(r==="number"&&isFinite(t))return e.long?Hv(t):Wv(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zv(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*Uv;case"weeks":case"week":case"w":return r*Vv;case"days":case"day":case"d":return r*Or;case"hours":case"hour":case"hrs":case"hr":case"h":return r*In;case"minutes":case"minute":case"mins":case"min":case"m":return r*Pn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wv(t){var e=Math.abs(t);return e>=Or?Math.round(t/Or)+"d":e>=In?Math.round(t/In)+"h":e>=Pn?Math.round(t/Pn)+"m":e>=Rn?Math.round(t/Rn)+"s":t+"ms"}function Hv(t){var e=Math.abs(t);return e>=Or?Mc(t,e,Or,"day"):e>=In?Mc(t,e,In,"hour"):e>=Pn?Mc(t,e,Pn,"minute"):e>=Rn?Mc(t,e,Rn,"second"):t+" ms"}function Mc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var k_=Wc((PD,w_)=>{function Gv(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=S_(),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 p=0;p<f.length;p++)u=(u<<5)-u+f.charCodeAt(p),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,p=null,d,g;function h(...m){if(!h.enabled)return;let y=h,b=Number(new Date),x=b-(u||b);y.diff=x,y.prev=u,y.curr=b,u=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(R,P)=>{if(R==="%%")return"%";_++;let V=r.formatters[P];if(typeof V=="function"){let E=m[_];R=V.call(y,E),m.splice(_,1),_--}return R}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return h.namespace=f,h.useColors=r.useColors(),h.color=r.selectColor(f),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,g=r.enabled(f)),g),set:m=>{p=m}}),typeof r.init=="function"&&r.init(h),h}function n(f,u){let p=r(this.namespace+(typeof u>"u"?":":u)+f);return p.log=this.log,p}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 p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,g=-1,h=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]==="*"))u[d]==="*"?(g=d,h=p,d++):(p++,d++);else if(g!==-1)d=g+1,h++,p=h;else return!1;for(;d<u.length&&u[d]==="*";)d++;return d===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}w_.exports=Gv});var v_=Wc((It,Nc)=>{It.formatArgs=Kv;It.save=Yv;It.load=Xv;It.useColors=qv;It.storage=Jv();It.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`."))}})();It.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 qv(){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 Kv(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Nc.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)}It.log=console.debug||console.log||(()=>{});function Yv(t){try{t?It.storage.setItem("debug",t):It.storage.removeItem("debug")}catch{}}function Xv(){let t;try{t=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Jv(){try{return localStorage}catch{}}Nc.exports=k_()(It);var{formatters:Zv}=Nc.exports;Zv.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Mh={};I(Mh,{ANIMATION_PROPS:()=>Ep,ARIA_ROLES:()=>T0,ATTR_TRANSFORMS:()=>Hp,BLOCK_PROPS:()=>Tp,CDN_PROVIDERS:()=>te,CONFIG:()=>ns,CSS_NATIVE_COLOR_REGEX:()=>re,CSS_PROPS_REGISTRY:()=>gt,CSS_UNITS:()=>Ir,DEFAULT_CONFIG:()=>Bs,DEFAULT_CSS_PROPERTIES_LIST:()=>bt,DELEGATED_EVENTS:()=>fn,DESIGN_SYSTEM_OPTIONS:()=>Qd,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,DOM_EVENTS:()=>Dm,ENV:()=>Ul,FACTORY:()=>he,FLEX_PROPS:()=>$p,FONT_PROPS:()=>Op,GRID_PROPS:()=>Fp,HTML_ATTRIBUTES:()=>Ka,HTML_TAGS:()=>Vr,LIFECYCLE_EVENTS:()=>Qe,METHODS:()=>Lr,METHODS_EXL:()=>Yn,MISC_PROPS:()=>Rp,MIXINS:()=>Ha,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,POSITION_PROPS:()=>Pp,PROPS_METHODS:()=>Me,REGISTRY:()=>St,ROUTER_OPTIONS:()=>uc,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>cn,THEME_PROPS:()=>Ip,TIMING_PROPS:()=>Ms,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,VALUE_TRANSFORMERS:()=>Va,activateConfig:()=>Zg,addCaching:()=>Hi,addContext:()=>Wi,addDelegatedEvent:()=>Ds,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addMethods:()=>gn,addProtoToArray:()=>Wn,addRef:()=>Vi,animation:()=>Qu,appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyAttrTransforms:()=>Kp,applyCSS:()=>Kd,applyDependentState:()=>$f,applyDocument:()=>Cs,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>pn,applyHeadings:()=>Da,applyInitialState:()=>qa,applyMediaSequenceVars:()=>Ge,applyProps:()=>po,applyReset:()=>Os,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,applySpacingSequence:()=>Ss,applyStateMethods:()=>Nt,applyTimingSequence:()=>vs,applyTrueProps:()=>Lp,applyTypographySequence:()=>bs,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,batch:()=>Se,breakpoints:()=>Ju,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,cacheNode:()=>Ze,call:()=>ru,captureSnapshot:()=>ou,changeGlobalTheme:()=>Ua,changeLightness:()=>Fu,checkAttributeByTagName:()=>rr,checkEventFunctions:()=>qp,checkForStateTypes:()=>Of,checkIfBoxSize:()=>_s,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,class:()=>op,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,color:()=>Wu,colorStringToRgbaArray:()=>pe,components:()=>_n,concatAddExtends:()=>uf,convertSvgToSymbol:()=>us,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,create:()=>Lh,createAsync:()=>wC,createBasedOnType:()=>Bi,createComputed:()=>Xc,createConfig:()=>Oa,createDefine:()=>fx,createEffect:()=>Q,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createHTMLNode:()=>an,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createScopeStore:()=>Ln,createSignal:()=>Bt,createSkeleton:()=>vC,createSnapshotId:()=>eo,createState:()=>Bp,createStore:()=>Ft,createSync:()=>kC,css:()=>oe,cssMediaVars:()=>Ea,cssVars:()=>Aa,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defaultDefine:()=>wn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,destroy:()=>Gs,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,detectTag:()=>Je,devices:()=>Zu,dispose:()=>tr,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,executeAttr:()=>R0,exetuteClassPerComponent:()=>y0,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,extractConditionalAttrs:()=>$0,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,filterAttributesByTagName:()=>O0,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findHeadingLetter:()=>Ia,findHeadings:()=>ls,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,get:()=>Jf,getActiveConfig:()=>A,getActiveDocument:()=>Wa,getActiveLang:()=>Ks,getCDNUrl:()=>ee,getCacheSize:()=>Sp,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getColor:()=>rt,getColorShade:()=>xa,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getDefaultOrFirstKey:()=>wr,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFamily:()=>ys,getFontFormat:()=>Sa,getFontSizeByKey:()=>xs,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLanguages:()=>hc,getLocalStateLang:()=>xc,getLocalStorage:()=>sf,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getNev:()=>Gl,getObserver:()=>lr,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRgbTone:()=>We,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getShadow:()=>ks,getSignals:()=>tl,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getSpreadChildren:()=>bf,getSubratio:()=>is,getSubratioDifference:()=>ss,getSystemGlobalTheme:()=>Yt,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,global:()=>rl,gradient:()=>Hu,grid:()=>np,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,icons:()=>Ku,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,init:()=>Pe,initPolyglot:()=>rh,initProps:()=>vf,injectGlobal:()=>ft,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isCSSVar:()=>at,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isGoogleFontsUrl:()=>Jr,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,isStaging:()=>Wl,isState:()=>Pf,isStore:()=>st,isString:()=>S,isStringFunction:()=>Xl,isSvgTag:()=>ln,isTest:()=>ki,isTesting:()=>zl,isTracking:()=>Up,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isValidTag:()=>sn,isWasmLoaded:()=>Yb,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keyframes:()=>on,keys:()=>aa,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,loadTranslations:()=>mc,loadWasm:()=>Kb,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchesComponentNaming:()=>fe,media:()=>Uu,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,numToLetterMap:()=>ge,objectToString:()=>Jn,objectizeStringProperty:()=>uo,opacify:()=>Xr,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseColorToken:()=>Ce,parseDeep:()=>Oo,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,polyglotFunctions:()=>Ys,polyglotPlugin:()=>_c,popConfig:()=>J,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,pushConfig:()=>et,registerEvent:()=>un,reinit:()=>qd,remove:()=>hn,removeChars:()=>Cu,removeCookie:()=>of,removeDelegatedEvent:()=>Ls,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveColorsInGradient:()=>Ps,resolveFileSource:()=>Wp,resolveFileUrl:()=>Wt,resolveHandler:()=>jr,resolvePropValue:()=>er,resolveSharedLibraries:()=>wu,returnSubThemeOrDefault:()=>Du,returnValueAsText:()=>ji,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,runPluginHook:()=>yt,runThroughMedia:()=>Fa,scratchDefaultConfig:()=>Qr,scratchSystem:()=>nn,scratchUtils:()=>qe,self:()=>nl,semanticIcons:()=>Yu,sequence:()=>Ee,set:()=>vr,setActiveConfig:()=>Ta,setActiveDocument:()=>_p,setActiveRootState:()=>$o,setClass:()=>hk,setClassname:()=>b0,setColor:()=>Ke,setCookie:()=>rf,setCssEngineHook:()=>ac,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setEach:()=>mp,setFont:()=>ms,setFontFamily:()=>en,setFontImport:()=>Zr,setGradient:()=>Ye,setHashedExtend:()=>Ci,setInCustomFontMedia:()=>wa,setInObjectByPath:()=>Ml,setLang:()=>yc,setLocalStorage:()=>af,setMediaTheme:()=>gs,setNodeStyles:()=>ia,setObserver:()=>Yc,setProps:()=>Zf,setPropsPrototype:()=>mo,setSVG:()=>rn,setScalingVar:()=>os,setShadow:()=>Xe,setSubScalingVar:()=>Ra,setSvgIcon:()=>Es,setTheme:()=>hs,setValue:()=>gp,setVariables:()=>lp,setWasmEngine:()=>Fs,shadow:()=>qu,sharedLibrary:()=>Su,sizes:()=>ip,spacing:()=>zu,splitSpacedValue:()=>ws,splitTopLevelCommas:()=>Ae,splitTransition:()=>Ba,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,svg:()=>tp,svgData:()=>ep,swapItemsInArray:()=>cl,syncProps:()=>bo,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,toCamel:()=>rs,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,transformBackgroundImage:()=>Na,transformBorder:()=>ye,transformBorderRadius:()=>$s,transformBoxShadow:()=>Rs,transformClassname:()=>Em,transformDuration:()=>Is,transformShadow:()=>Ma,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>La,transformTransition:()=>hp,transformersByPrefix:()=>Mp,transfromGap:()=>ja,translate:()=>gc,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,typography:()=>ts,unit:()=>Mu,unstackArrayOfObjects:()=>Un,update:()=>dn,updateProps:()=>Cf,updateVars:()=>dk,upsertTranslation:()=>bc,useCssInProps:()=>Mt,useHostState:()=>Vp,usePropsAsCSS:()=>Cm,useSelectorsAsCSS:()=>Am,variables:()=>Uo,vars:()=>sp,verbose:()=>Hr,warn:()=>jo,window:()=>k});var el={};I(el,{batch:()=>Se,createComputed:()=>Xc,createEffect:()=>Q,createScopeStore:()=>Ln,createSignal:()=>Bt,createStore:()=>Ft,getObserver:()=>lr,getSignals:()=>tl,isStore:()=>st,setObserver:()=>Yc});var vt=null,pi=0,di=[],lr=()=>vt,Yc=t=>{vt=t},hi=0,Hc=[];function Bt(t){let e=new Set;function r(){return vt&&(e.add(vt),vt._sources.add(s)),t}function n(i){i!==t&&(t=i,iS(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function Xc(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Kc(o);let s=vt;vt=o;try{e=t(),r=!1}finally{vt=s}},_notify(){r=!0,n.size>0&&Bh(n)},get(){return vt&&(n.add(vt),vt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var _e=new Set,Gc=!1;function Q(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;Kc(n);let o=vt;vt=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{vt=o}},_notify(){n._disposed||(pi>0?di.push(n):hi>0?Hc.push(n):Jc(n))},dispose(){n._disposed=!0,Kc(n)}};return n._execute(),n}function Se(t){pi++;try{t()}finally{pi--,pi===0&&sS()}}var qc=!1,jh=1e3;function Jc(t){_e.add(t),!qc&&(Gc||(Gc=!0,queueMicrotask(oS)))}var Pr=[];function nS(){if(_e.size===1){let[t]=_e;_e.clear(),t._disposed||t._execute();return}Pr.length=0;for(let t of _e)Pr.push(t);_e.clear(),Pr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Pr.length;t++){let e=Pr[t];e._disposed||e._execute()}Pr.length=0}function oS(){if(Gc=!1,_e.size!==0){qc=!0;try{let t=0;for(;_e.size>0;){if(++t>jh){console.error("[smbls] reactive effect cascade exceeded",jh,"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."),_e.clear();break}nS()}}finally{qc=!1}}}function sS(){for(let t=0;t<di.length;t++)Jc(di[t]);di.length=0}function Bh(t){hi++;try{for(let e of t)e._notify()}finally{if(hi--,hi===0&&Hc.length>0){let e=Hc.splice(0);for(let r=0;r<e.length;r++)Jc(e[r])}}}function iS(t){Bh(t)}function Kc(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var fr=Symbol("store"),gi=Symbol("signals"),Zc=t=>!t||typeof t!="object"||Array.isArray(t)||t[fr]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Ft(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Zc(b)?(o[y]=b,n[y]=Bt(Ft(b,e,r+1))):(o[y]=b,n[y]=Bt(b))}let i=new Proxy(o,{get(y,b){if(b===fr)return!0;if(b===gi)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return u;if(b==="values")return p;if(b==="replace")return d;if(b==="add")return g;if(b==="remove")return h;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b)){let _=n[b].get();if(_!==void 0||!(b!=="root"&&y.root&&y.root!==i))return _}if(y[b]!==void 0)return y[b];let x=typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&lr()!=null;if(b!=="root"&&y.root&&y.root!==i){let _=y.root[b];return _===void 0&&x&&!Object.prototype.hasOwnProperty.call(n,b)?(n[b]=Bt(void 0),n[b].get()):_}if(x)return n[b]=Bt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Zc(x)?n[b].set(Ft(x,e,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Zc(x)?n[b]=Bt(Ft(x,e,r+1)):n[b]=Bt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){Se(()=>{for(let _ in y)_!=="__proto__"&&(i[_]=y[_])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=n[x].peek();_&&_[fr]?b[x]=_.parse(y):b[x]=_}return b}function f(){return Se(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return Se(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function g(y,b){return i[y]=b,i}function h(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function st(t){return t&&t[fr]===!0}function tl(t){return t[gi]}function Ln(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=Bt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[gi];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[fr]?a[Qc]:null}return null};return new Proxy(n,{get(i,a){return a===fr?!0:a===gi?r:a===Qc?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]=Bt(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[fr]?c[Qc]: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 Qc=Symbol("scope.parent");var wp={};I(wp,{css:()=>oe,getActiveDocument:()=>Wa,getCacheSize:()=>Sp,injectGlobal:()=>ft,keyframes:()=>on,reset:()=>hm,setActiveDocument:()=>_p,setWasmEngine:()=>Fs});var yp={};I(yp,{CONFIG:()=>ns,CSS_NATIVE_COLOR_REGEX:()=>re,CSS_UNITS:()=>Ir,FACTORY:()=>he,VALUE_TRANSFORMERS:()=>Va,activateConfig:()=>Zg,animation:()=>Qu,appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyDocument:()=>Cs,applyHeadings:()=>Da,applyMediaSequenceVars:()=>Ge,applyReset:()=>Os,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,applySpacingSequence:()=>Ss,applyTimingSequence:()=>vs,applyTypographySequence:()=>bs,breakpoints:()=>Ju,changeGlobalTheme:()=>Ua,changeLightness:()=>Fu,checkIfBoxSize:()=>_s,class:()=>op,color:()=>Wu,colorStringToRgbaArray:()=>pe,convertSvgToSymbol:()=>us,createConfig:()=>Oa,cssMediaVars:()=>Ea,cssVars:()=>Aa,devices:()=>Zu,document:()=>Yg,findHeadingLetter:()=>Ia,findHeadings:()=>ls,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,getActiveConfig:()=>A,getColor:()=>rt,getColorShade:()=>xa,getDefaultOrFirstKey:()=>wr,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFamily:()=>ys,getFontFormat:()=>Sa,getFontSizeByKey:()=>xs,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getRgbTone:()=>We,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getShadow:()=>ks,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getSubratio:()=>is,getSubratioDifference:()=>ss,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,gradient:()=>Hu,grid:()=>np,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,icons:()=>Ku,isCSSVar:()=>at,isGoogleFontsUrl:()=>Jr,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,media:()=>Uu,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,numToLetterMap:()=>ge,opacify:()=>Xr,parseColorToken:()=>Ce,popConfig:()=>J,pushConfig:()=>et,reset:()=>Xg,resolveColorsInGradient:()=>Ps,resolveFileUrl:()=>Wt,returnSubThemeOrDefault:()=>Du,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,runThroughMedia:()=>Fa,scratchDefaultConfig:()=>Qr,scratchSystem:()=>nn,scratchUtils:()=>qe,semanticIcons:()=>Yu,sequence:()=>Ee,set:()=>vr,setActiveConfig:()=>Ta,setColor:()=>Ke,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setEach:()=>mp,setFont:()=>ms,setFontFamily:()=>en,setFontImport:()=>Zr,setGradient:()=>Ye,setInCustomFontMedia:()=>wa,setMediaTheme:()=>gs,setSVG:()=>rn,setScalingVar:()=>os,setShadow:()=>Xe,setSubScalingVar:()=>Ra,setSvgIcon:()=>Es,setTheme:()=>hs,setValue:()=>gp,setVariables:()=>lp,shadow:()=>qu,sizes:()=>ip,spacing:()=>zu,splitSpacedValue:()=>ws,splitTopLevelCommas:()=>Ae,splitTransition:()=>Ba,svg:()=>tp,svgData:()=>ep,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,toCamel:()=>rs,transformBackgroundImage:()=>Na,transformBorder:()=>ye,transformBorderRadius:()=>$s,transformBoxShadow:()=>Rs,transformDuration:()=>Is,transformShadow:()=>Ma,transformSize:()=>ct,transformSizeRatio:()=>N,transformTextStroke:()=>La,transformTransition:()=>hp,transfromGap:()=>ja,typography:()=>ts,unit:()=>Mu,vars:()=>sp});var qe={};I(qe,{CSS_NATIVE_COLOR_REGEX:()=>re,CSS_UNITS:()=>Ir,applyMediaSequenceVars:()=>Ge,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,changeLightness:()=>Fu,colorStringToRgbaArray:()=>pe,convertSvgToSymbol:()=>us,findHeadingLetter:()=>Ia,findHeadings:()=>ls,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,getColorShade:()=>xa,getDefaultOrFirstKey:()=>wr,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFormat:()=>Sa,getRgbTone:()=>We,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getSubratio:()=>is,getSubratioDifference:()=>ss,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,isCSSVar:()=>at,isGoogleFontsUrl:()=>Jr,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,numToLetterMap:()=>ge,opacify:()=>Xr,parseColorToken:()=>Ce,resolveFileUrl:()=>Wt,returnSubThemeOrDefault:()=>Du,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setFontImport:()=>Zr,setInCustomFontMedia:()=>wa,setScalingVar:()=>os,setSubScalingVar:()=>Ra,setVariables:()=>lp,splitTopLevelCommas:()=>Ae});var ur=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Ir=["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"],aS=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),cS=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Ir.filter(t=>t!=="auto").map(aS).join("|")})$`),Mn=t=>cS.test(String(t).trim());O();var pe=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Ou=(t,e,r=.5)=>(t=pe(t),e=pe(e),_a(t,e,r)),Ru=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},ga=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Pu=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),ma=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Iu=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},$u=(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})`},Fu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},ya=(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]},ba=(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)],xa=(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)},_a=(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})`},Xr=(t,e)=>{let r=pe(t);if(!r){yr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},at=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,re=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,yw=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ce=t=>{if(!S(t))return null;if(re.test(t))return{passthrough:t};if(at(t))return{cssVar:t};let e=t.match(yw);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}},de=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Ae=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},We=(t,e)=>{S(t)&&t.includes("rgb")&&(t=pe(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ae(e)&&(e+="");let r=ma(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=xa(r,parseFloat(e));return ga(o).join(", ")}else{let[o,s,i]=t,a=ya(o,s,i),[c,l,f]=a;return ba(c,l,parseFloat(e)/100*255)}};var Du=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Wt=(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},wr=(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},Sa=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},Jr=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Zr=t=>`@import url('${t}');`,wa=t=>`@font-face { ${t} }`,Zo=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Sa(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
31
+ `)),aw=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http")});var ua,_u,Vg=F(()=>{"use strict";ht();ua=(t,e)=>(T(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),_u=(t,e)=>(t=parseFloat(t),w(e)&&(e=Object.values(e)),ua(t,e))});function Kr(t){let e=String(t||"").trim();if(!e)return{owner:Ug,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=Ug);let o=n?`${r}/${n}`:"";return{owner:r,key:n,full:o}}async function da(t,e={}){if((e.provider||"kv")==="api")return zg(t,e);let n=await mw(t,e);return n||zg(t,e)}async function mw(t,e={}){let r=e.kvBaseUrl||fw,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 zg(t,e={}){let r=e.apiBaseUrl||uw,{key:n}=Kr(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(d=>{let{key:g}=Kr(d?.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 p=await u.json();return p?.data||p||null}catch{return null}}async function Wg(t,e={}){if(w(t))return t;if(S(t)){let{full:r}=Kr(t);if(!r)return null;try{let n=await da(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 wu(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async n=>{if(Go(n)){let o=await Wg(hw(n),e);return o?{library:o,ignoreList:n.ignoreList}:null}return Wg(n,e)}))).filter(Boolean)}var Ug,fw,uw,Ho,pw,dw,pa,Su,Go,hw,gw,qo,Hg=F(()=>{"use strict";ht();Ug="system",fw="https://smbls-kv.nika-980.workers.dev",uw="https://api.symbols.app";Ho=(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])&&Ho(t[o],e[o],r,s):t[o]=e[o])}},pw=new Set,dw=t=>t.replace(/\.js$/iu,""),pa=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=>dw(o.trim())).filter(Boolean).join("/");n&&e.add(n)}return e},Su=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Go=t=>w(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),hw=t=>t.library!==void 0?t.library:t.key??t.name,gw=(t,e,r)=>{for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!r.has(n))if(w(e[n])&&w(t[n]))if(n==="designSystem")Ho(t[n],e[n],r,n);else for(let o in e[n])r.has(`${n}/${o}`)||o in t[n]||(t[n][o]=e[n][o]);else n in t||(t[n]=e[n])},qo=(t,e)=>{if(!(!e||!e.length))for(let r=0;r<e.length;r++){let n=e[r],o=pw;Go(n)&&(o=pa(n.ignoreList),n=n.library),w(n)&&gw(t,n,o)}}});var ku,vu,Cu,Ko,Au,Yo,Eu,Sr,Gg=F(()=>{"use strict";ht();ku=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},vu=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)}},Cu=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Ko=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,"")),Au=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Yo=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Eu=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Sr=t=>{if(T(t))return t;if(S(t))return t.split(" ");if(w(t))return Object.values(t);if(ae(t))return[t]}});var Tu,qg=F(()=>{"use strict";Tu=()=>{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 Rt,Yr,Xo,Jo,Kg=F(()=>{"use strict";Rt=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},Yr=(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(", ")},Xo=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(r=>r.format===t.type);return Yr(e,{keepOneX:!1})},Jo=(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:Yr(c,{keepOneX:!0})}});let o=r.get(t.type)||[],s=Yr(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...n,{tag:"img",attr:i}]}});var ha={};I(ha,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,ENV:()=>Ul,HTML_TAGS:()=>Vr,METHODS:()=>Lr,METHODS_EXL:()=>Yn,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,PROPS_METHODS:()=>Me,STATE_METHODS:()=>hr,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>qh,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,addCaching:()=>Hi,addContext:()=>Wi,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addProtoToArray:()=>Wn,addRef:()=>Vi,applyDependentState:()=>$f,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>Xh,applyProps:()=>po,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,call:()=>ru,captureSnapshot:()=>ou,checkForStateTypes:()=>Of,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,concatAddExtends:()=>uf,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,createBasedOnType:()=>Bi,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createSnapshotId:()=>eo,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,document:()=>K,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,get:()=>Jf,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLocalStorage:()=>sf,getNev:()=>Gl,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSpreadChildren:()=>bf,global:()=>rl,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,initProps:()=>vf,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isStaging:()=>Wl,isState:()=>Pf,isString:()=>S,isStringFunction:()=>Xl,isTest:()=>ki,isTesting:()=>zl,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keys:()=>aa,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchesComponentNaming:()=>fe,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,objectToString:()=>Jn,objectizeStringProperty:()=>uo,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseDeep:()=>Oo,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,remove:()=>Ag,removeChars:()=>Cu,removeCookie:()=>of,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveHandler:()=>jr,resolveSharedLibraries:()=>wu,returnValueAsText:()=>ji,runPluginHook:()=>yt,self:()=>nl,setActiveRootState:()=>$o,setCookie:()=>rf,setHashedExtend:()=>Ci,setInObjectByPath:()=>Ml,setLocalStorage:()=>af,setNodeStyles:()=>ia,setProps:()=>Zf,setPropsPrototype:()=>mo,sharedLibrary:()=>Su,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,swapItemsInArray:()=>cl,syncProps:()=>bo,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,unstackArrayOfObjects:()=>Un,update:()=>kf,updateProps:()=>Cf,variables:()=>Uo,verbose:()=>Hr,warn:()=>jo,window:()=>k});var O=F(()=>{"use strict";wi();ql();ht();ke();Br();Dr();Bn();Wh();Hh();qn();Nn();Gh();lf();mf();Af();Fi();rg();ng();Mr();og();Og();jf();Rg();Mf();Pg();Ig();$g();Fg();Dg();Lg();Mg();Ng();Bg();Vg();Hg();Gg();qg();Kg()});var S_=Wc((RD,__)=>{var Rn=1e3,Pn=Rn*60,In=Pn*60,Or=In*24,Vv=Or*7,Uv=Or*365.25;__.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return zv(t);if(r==="number"&&isFinite(t))return e.long?Hv(t):Wv(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zv(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*Uv;case"weeks":case"week":case"w":return r*Vv;case"days":case"day":case"d":return r*Or;case"hours":case"hour":case"hrs":case"hr":case"h":return r*In;case"minutes":case"minute":case"mins":case"min":case"m":return r*Pn;case"seconds":case"second":case"secs":case"sec":case"s":return r*Rn;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function Wv(t){var e=Math.abs(t);return e>=Or?Math.round(t/Or)+"d":e>=In?Math.round(t/In)+"h":e>=Pn?Math.round(t/Pn)+"m":e>=Rn?Math.round(t/Rn)+"s":t+"ms"}function Hv(t){var e=Math.abs(t);return e>=Or?Mc(t,e,Or,"day"):e>=In?Mc(t,e,In,"hour"):e>=Pn?Mc(t,e,Pn,"minute"):e>=Rn?Mc(t,e,Rn,"second"):t+" ms"}function Mc(t,e,r,n){var o=e>=r*1.5;return Math.round(t/r)+" "+n+(o?"s":"")}});var k_=Wc((PD,w_)=>{function Gv(t){r.debug=r,r.default=r,r.coerce=c,r.disable=i,r.enable=o,r.enabled=a,r.humanize=S_(),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 p=0;p<f.length;p++)u=(u<<5)-u+f.charCodeAt(p),u|=0;return r.colors[Math.abs(u)%r.colors.length]}r.selectColor=e;function r(f){let u,p=null,d,g;function h(...m){if(!h.enabled)return;let y=h,b=Number(new Date),x=b-(u||b);y.diff=x,y.prev=u,y.curr=b,u=b,m[0]=r.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let _=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(R,P)=>{if(R==="%%")return"%";_++;let V=r.formatters[P];if(typeof V=="function"){let E=m[_];R=V.call(y,E),m.splice(_,1),_--}return R}),r.formatArgs.call(y,m),(y.log||r.log).apply(y,m)}return h.namespace=f,h.useColors=r.useColors(),h.color=r.selectColor(f),h.extend=n,h.destroy=r.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(d!==r.namespaces&&(d=r.namespaces,g=r.enabled(f)),g),set:m=>{p=m}}),typeof r.init=="function"&&r.init(h),h}function n(f,u){let p=r(this.namespace+(typeof u>"u"?":":u)+f);return p.log=this.log,p}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 p of u)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function s(f,u){let p=0,d=0,g=-1,h=0;for(;p<f.length;)if(d<u.length&&(u[d]===f[p]||u[d]==="*"))u[d]==="*"?(g=d,h=p,d++):(p++,d++);else if(g!==-1)d=g+1,h++,p=h;else return!1;for(;d<u.length&&u[d]==="*";)d++;return d===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}w_.exports=Gv});var v_=Wc((It,Nc)=>{It.formatArgs=Kv;It.save=Yv;It.load=Xv;It.useColors=qv;It.storage=Jv();It.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`."))}})();It.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 qv(){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 Kv(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Nc.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)}It.log=console.debug||console.log||(()=>{});function Yv(t){try{t?It.storage.setItem("debug",t):It.storage.removeItem("debug")}catch{}}function Xv(){let t;try{t=It.storage.getItem("debug")||It.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Jv(){try{return localStorage}catch{}}Nc.exports=k_()(It);var{formatters:Zv}=Nc.exports;Zv.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Mh={};I(Mh,{ANIMATION_PROPS:()=>Ep,ARIA_ROLES:()=>T0,ATTR_TRANSFORMS:()=>Hp,BLOCK_PROPS:()=>Tp,CDN_PROVIDERS:()=>te,CONFIG:()=>ns,CSS_NATIVE_COLOR_REGEX:()=>re,CSS_PROPS_REGISTRY:()=>gt,CSS_UNITS:()=>Ir,DEFAULT_CONFIG:()=>Bs,DEFAULT_CSS_PROPERTIES_LIST:()=>bt,DELEGATED_EVENTS:()=>fn,DESIGN_SYSTEM_OPTIONS:()=>Qd,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,DOM_EVENTS:()=>Dm,ENV:()=>Ul,FACTORY:()=>he,FLEX_PROPS:()=>$p,FONT_PROPS:()=>Op,GRID_PROPS:()=>Fp,HTML_ATTRIBUTES:()=>Ka,HTML_TAGS:()=>Vr,LIFECYCLE_EVENTS:()=>Qe,METHODS:()=>Lr,METHODS_EXL:()=>Yn,MISC_PROPS:()=>Rp,MIXINS:()=>Ha,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,POSITION_PROPS:()=>Pp,PROPS_METHODS:()=>Me,REGISTRY:()=>St,ROUTER_OPTIONS:()=>uc,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>cn,THEME_PROPS:()=>Ip,TIMING_PROPS:()=>Ms,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,VALUE_TRANSFORMERS:()=>Va,activateConfig:()=>Zg,addCaching:()=>Hi,addContext:()=>Wi,addDelegatedEvent:()=>Ds,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addMethods:()=>gn,addProtoToArray:()=>Wn,addRef:()=>Vi,animation:()=>Qu,appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyAttrTransforms:()=>Kp,applyCSS:()=>Kd,applyDependentState:()=>$f,applyDocument:()=>Cs,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>pn,applyHeadings:()=>Da,applyInitialState:()=>qa,applyMediaSequenceVars:()=>Ge,applyProps:()=>po,applyReset:()=>Os,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,applySpacingSequence:()=>Ss,applyStateMethods:()=>Nt,applyTimingSequence:()=>vs,applyTrueProps:()=>Lp,applyTypographySequence:()=>bs,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,batch:()=>Se,breakpoints:()=>Ju,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,cacheNode:()=>Ze,call:()=>ru,captureSnapshot:()=>ou,changeGlobalTheme:()=>Ua,changeLightness:()=>Fu,checkAttributeByTagName:()=>rr,checkEventFunctions:()=>qp,checkForStateTypes:()=>Of,checkIfBoxSize:()=>_s,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,class:()=>op,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,color:()=>Wu,colorStringToRgbaArray:()=>pe,components:()=>_n,concatAddExtends:()=>uf,convertSvgToSymbol:()=>us,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,create:()=>Lh,createAsync:()=>wC,createBasedOnType:()=>Bi,createComputed:()=>Xc,createConfig:()=>Oa,createDefine:()=>fx,createEffect:()=>Q,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createHTMLNode:()=>an,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createScopeStore:()=>Ln,createSignal:()=>Bt,createSkeleton:()=>vC,createSnapshotId:()=>eo,createState:()=>Bp,createStore:()=>Ft,createSync:()=>kC,css:()=>oe,cssMediaVars:()=>Ea,cssVars:()=>Aa,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defaultDefine:()=>wn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,destroy:()=>Gs,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,detectTag:()=>Je,devices:()=>Zu,dispose:()=>tr,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,executeAttr:()=>R0,exetuteClassPerComponent:()=>y0,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,extractConditionalAttrs:()=>$0,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,filterAttributesByTagName:()=>O0,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findHeadingLetter:()=>Ia,findHeadings:()=>ls,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,get:()=>Jf,getActiveConfig:()=>A,getActiveDocument:()=>Wa,getActiveLang:()=>Ks,getCDNUrl:()=>ee,getCacheSize:()=>Sp,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getColor:()=>rt,getColorShade:()=>xa,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getDefaultOrFirstKey:()=>wr,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFamily:()=>ys,getFontFormat:()=>Sa,getFontSizeByKey:()=>xs,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLanguages:()=>hc,getLocalStateLang:()=>xc,getLocalStorage:()=>sf,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getNev:()=>Gl,getObserver:()=>lr,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRgbTone:()=>We,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getShadow:()=>ks,getSignals:()=>tl,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getSpreadChildren:()=>bf,getSubratio:()=>is,getSubratioDifference:()=>ss,getSystemGlobalTheme:()=>Yt,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,global:()=>rl,gradient:()=>Hu,grid:()=>np,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,icons:()=>Ku,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,init:()=>Pe,initPolyglot:()=>rh,initProps:()=>vf,injectGlobal:()=>ft,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isCSSVar:()=>at,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isGoogleFontsUrl:()=>Jr,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,isStaging:()=>Wl,isState:()=>Pf,isStore:()=>st,isString:()=>S,isStringFunction:()=>Xl,isSvgTag:()=>ln,isTest:()=>ki,isTesting:()=>zl,isTracking:()=>Up,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isValidTag:()=>sn,isWasmLoaded:()=>Yb,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keyframes:()=>on,keys:()=>aa,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,loadTranslations:()=>mc,loadWasm:()=>Kb,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchesComponentNaming:()=>fe,media:()=>Uu,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,numToLetterMap:()=>ge,objectToString:()=>Jn,objectizeStringProperty:()=>uo,opacify:()=>Xr,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseColorToken:()=>Ce,parseDeep:()=>Oo,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,polyglotFunctions:()=>Ys,polyglotPlugin:()=>_c,popConfig:()=>J,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,pushConfig:()=>et,registerEvent:()=>un,reinit:()=>qd,remove:()=>hn,removeChars:()=>Cu,removeCookie:()=>of,removeDelegatedEvent:()=>Ls,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveColorsInGradient:()=>Ps,resolveFileSource:()=>Wp,resolveFileUrl:()=>Wt,resolveHandler:()=>jr,resolvePropValue:()=>er,resolveSharedLibraries:()=>wu,returnSubThemeOrDefault:()=>Du,returnValueAsText:()=>ji,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,runPluginHook:()=>yt,runThroughMedia:()=>Fa,scratchDefaultConfig:()=>Qr,scratchSystem:()=>nn,scratchUtils:()=>qe,self:()=>nl,semanticIcons:()=>Yu,sequence:()=>Ee,set:()=>vr,setActiveConfig:()=>Ta,setActiveDocument:()=>_p,setActiveRootState:()=>$o,setClass:()=>hk,setClassname:()=>b0,setColor:()=>Ke,setCookie:()=>rf,setCssEngineHook:()=>ac,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setEach:()=>mp,setFont:()=>ms,setFontFamily:()=>en,setFontImport:()=>Zr,setGradient:()=>Ye,setHashedExtend:()=>Ci,setInCustomFontMedia:()=>wa,setInObjectByPath:()=>Ml,setLang:()=>yc,setLocalStorage:()=>af,setMediaTheme:()=>gs,setNodeStyles:()=>ia,setObserver:()=>Yc,setProps:()=>Zf,setPropsPrototype:()=>mo,setSVG:()=>rn,setScalingVar:()=>os,setShadow:()=>Xe,setSubScalingVar:()=>Ra,setSvgIcon:()=>Es,setTheme:()=>hs,setValue:()=>gp,setVariables:()=>lp,setWasmEngine:()=>Fs,shadow:()=>qu,sharedLibrary:()=>Su,sizes:()=>ip,spacing:()=>zu,splitSpacedValue:()=>ws,splitTopLevelCommas:()=>Ae,splitTransition:()=>Ba,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,svg:()=>tp,svgData:()=>ep,swapItemsInArray:()=>cl,syncProps:()=>bo,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,toCamel:()=>rs,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,transformBackgroundImage:()=>Na,transformBorder:()=>ye,transformBorderRadius:()=>$s,transformBoxShadow:()=>Rs,transformClassname:()=>Em,transformDuration:()=>Is,transformShadow:()=>Ma,transformSize:()=>ct,transformSizeRatio:()=>L,transformTextStroke:()=>La,transformTransition:()=>hp,transformersByPrefix:()=>Mp,transfromGap:()=>ja,translate:()=>gc,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,typography:()=>ts,unit:()=>Mu,unstackArrayOfObjects:()=>Un,update:()=>dn,updateProps:()=>Cf,updateVars:()=>dk,upsertTranslation:()=>bc,useCssInProps:()=>Mt,useHostState:()=>Vp,usePropsAsCSS:()=>Cm,useSelectorsAsCSS:()=>Am,variables:()=>Uo,vars:()=>sp,verbose:()=>Hr,warn:()=>jo,window:()=>k});var el={};I(el,{batch:()=>Se,createComputed:()=>Xc,createEffect:()=>Q,createScopeStore:()=>Ln,createSignal:()=>Bt,createStore:()=>Ft,getObserver:()=>lr,getSignals:()=>tl,isStore:()=>st,setObserver:()=>Yc});var vt=null,pi=0,di=[],lr=()=>vt,Yc=t=>{vt=t},hi=0,Hc=[];function Bt(t){let e=new Set;function r(){return vt&&(e.add(vt),vt._sources.add(s)),t}function n(i){i!==t&&(t=i,iS(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}function Xc(t){let e,r=!0,n=new Set,o={_sources:new Set,_type:"computed",_subscribers:n,_execute(){Kc(o);let s=vt;vt=o;try{e=t(),r=!1}finally{vt=s}},_notify(){r=!0,n.size>0&&Bh(n)},get(){return vt&&(n.add(vt),vt._sources.add(o)),r&&o._execute(),e},peek(){return r&&o._execute(),e}};return o._execute(),o}var _e=new Set,Gc=!1;function Q(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;Kc(n);let o=vt;vt=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{vt=o}},_notify(){n._disposed||(pi>0?di.push(n):hi>0?Hc.push(n):Jc(n))},dispose(){n._disposed=!0,Kc(n)}};return n._execute(),n}function Se(t){pi++;try{t()}finally{pi--,pi===0&&sS()}}var qc=!1,jh=1e3;function Jc(t){_e.add(t),!qc&&(Gc||(Gc=!0,queueMicrotask(oS)))}var Pr=[];function nS(){if(_e.size===1){let[t]=_e;_e.clear(),t._disposed||t._execute();return}Pr.length=0;for(let t of _e)Pr.push(t);_e.clear(),Pr.sort((t,e)=>t._depth-e._depth);for(let t=0;t<Pr.length;t++){let e=Pr[t];e._disposed||e._execute()}Pr.length=0}function oS(){if(Gc=!1,_e.size!==0){qc=!0;try{let t=0;for(;_e.size>0;){if(++t>jh){console.error("[smbls] reactive effect cascade exceeded",jh,"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."),_e.clear();break}nS()}}finally{qc=!1}}}function sS(){for(let t=0;t<di.length;t++)Jc(di[t]);di.length=0}function Bh(t){hi++;try{for(let e of t)e._notify()}finally{if(hi--,hi===0&&Hc.length>0){let e=Hc.splice(0);for(let r=0;r<e.length;r++)Jc(e[r])}}}function iS(t){Bh(t)}function Kc(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var fr=Symbol("store"),gi=Symbol("signals"),Zc=t=>!t||typeof t!="object"||Array.isArray(t)||t[fr]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function Ft(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let y in t){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(t,y))continue;let b=t[y];r<s&&b&&typeof b=="object"&&!Zc(b)?(o[y]=b,n[y]=Bt(Ft(b,e,r+1))):(o[y]=b,n[y]=Bt(b))}let i=new Proxy(o,{get(y,b){if(b===fr)return!0;if(b===gi)return n;if(b==="__raw")return y;if(b==="update")return a;if(b==="parse")return l;if(b==="clean")return f;if(b==="keys")return u;if(b==="values")return p;if(b==="replace")return d;if(b==="add")return g;if(b==="remove")return h;if(b==="destroy")return m;if(b==="quietUpdate")return c;if(b==="__element")return y.__element;if(b==="parent")return y.parent;if(b==="root")return y.root;if(Object.prototype.hasOwnProperty.call(n,b)){let _=n[b].get();if(_!==void 0||!(b!=="root"&&y.root&&y.root!==i))return _}if(y[b]!==void 0)return y[b];let x=typeof b=="string"&&!b.startsWith("__")&&b!=="then"&&b!=="constructor"&&lr()!=null;if(b!=="root"&&y.root&&y.root!==i){let _=y.root[b];return _===void 0&&x&&!Object.prototype.hasOwnProperty.call(n,b)?(n[b]=Bt(void 0),n[b].get()):_}if(x)return n[b]=Bt(void 0),n[b].get()},set(y,b,x){return b==="__proto__"?!1:b==="__element"||b==="parent"||b==="root"?(y[b]=x,!0):(Object.prototype.hasOwnProperty.call(n,b)?(y[b]=x,x&&typeof x=="object"&&!Zc(x)?n[b].set(Ft(x,e,r+1)):n[b].set(x)):(y[b]=x,x&&typeof x=="object"&&!Zc(x)?n[b]=Bt(Ft(x,e,r+1)):n[b]=Bt(x)),!0)},has(y,b){return b in n||b in y},ownKeys(y){return Object.keys(n)},getOwnPropertyDescriptor(y,b){return b in n?{enumerable:!0,configurable:!0,value:n[b].peek()}:Object.getOwnPropertyDescriptor(y,b)},deleteProperty(y,b){return n[b]&&(n[b].set(void 0),delete n[b]),delete y[b],!0}});function a(y,b){Se(()=>{for(let _ in y)_!=="__proto__"&&(i[_]=y[_])});let x=o.__element;return x&&x.onUpdate&&!b?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function l(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let b={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=n[x].peek();_&&_[fr]?b[x]=_.parse(y):b[x]=_}return b}function f(){return Se(()=>{for(let y in n)delete i[y]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(y=>n[y].peek())}function d(y){return Se(()=>{for(let b in n)b in y||delete i[b];for(let b in y)b!=="__proto__"&&(i[b]=y[b])}),i}function g(y,b){return i[y]=b,i}function h(y){return delete i[y],i}function m(){f(),o.__element=null,o.parent=null}return i}function st(t){return t&&t[fr]===!0}function tl(t){return t[gi]}function Ln(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=Bt(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let a=e;for(;a;){let c=a[gi];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[fr]?a[Qc]:null}return null};return new Proxy(n,{get(i,a){return a===fr?!0:a===gi?r:a===Qc?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]=Bt(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[fr]?c[Qc]: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 Qc=Symbol("scope.parent");var wp={};I(wp,{css:()=>oe,getActiveDocument:()=>Wa,getCacheSize:()=>Sp,injectGlobal:()=>ft,keyframes:()=>on,reset:()=>hm,setActiveDocument:()=>_p,setWasmEngine:()=>Fs});var yp={};I(yp,{CONFIG:()=>ns,CSS_NATIVE_COLOR_REGEX:()=>re,CSS_UNITS:()=>Ir,FACTORY:()=>he,VALUE_TRANSFORMERS:()=>Va,activateConfig:()=>Zg,animation:()=>Qu,appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyDocument:()=>Cs,applyHeadings:()=>Da,applyMediaSequenceVars:()=>Ge,applyReset:()=>Os,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,applySpacingSequence:()=>Ss,applyTimingSequence:()=>vs,applyTypographySequence:()=>bs,breakpoints:()=>Ju,changeGlobalTheme:()=>Ua,changeLightness:()=>Fu,checkIfBoxSize:()=>_s,class:()=>op,color:()=>Wu,colorStringToRgbaArray:()=>pe,convertSvgToSymbol:()=>us,createConfig:()=>Oa,cssMediaVars:()=>Ea,cssVars:()=>Aa,devices:()=>Zu,document:()=>Yg,findHeadingLetter:()=>Ia,findHeadings:()=>ls,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,getActiveConfig:()=>A,getColor:()=>rt,getColorShade:()=>xa,getDefaultOrFirstKey:()=>wr,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFamily:()=>ys,getFontFormat:()=>Sa,getFontSizeByKey:()=>xs,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getRgbTone:()=>We,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getShadow:()=>ks,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getSubratio:()=>is,getSubratioDifference:()=>ss,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,gradient:()=>Hu,grid:()=>np,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,icons:()=>Ku,isCSSVar:()=>at,isGoogleFontsUrl:()=>Jr,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,media:()=>Uu,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,numToLetterMap:()=>ge,opacify:()=>Xr,parseColorToken:()=>Ce,popConfig:()=>J,pushConfig:()=>et,reset:()=>Xg,resolveColorsInGradient:()=>Ps,resolveFileUrl:()=>Wt,returnSubThemeOrDefault:()=>Du,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,runThroughMedia:()=>Fa,scratchDefaultConfig:()=>Qr,scratchSystem:()=>nn,scratchUtils:()=>qe,semanticIcons:()=>Yu,sequence:()=>Ee,set:()=>vr,setActiveConfig:()=>Ta,setColor:()=>Ke,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setEach:()=>mp,setFont:()=>ms,setFontFamily:()=>en,setFontImport:()=>Zr,setGradient:()=>Ye,setInCustomFontMedia:()=>wa,setMediaTheme:()=>gs,setSVG:()=>rn,setScalingVar:()=>os,setShadow:()=>Xe,setSubScalingVar:()=>Ra,setSvgIcon:()=>Es,setTheme:()=>hs,setValue:()=>gp,setVariables:()=>lp,shadow:()=>qu,sizes:()=>ip,spacing:()=>zu,splitSpacedValue:()=>ws,splitTopLevelCommas:()=>Ae,splitTransition:()=>Ba,svg:()=>tp,svgData:()=>ep,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,toCamel:()=>rs,transformBackgroundImage:()=>Na,transformBorder:()=>ye,transformBorderRadius:()=>$s,transformBoxShadow:()=>Rs,transformDuration:()=>Is,transformShadow:()=>Ma,transformSize:()=>ct,transformSizeRatio:()=>L,transformTextStroke:()=>La,transformTransition:()=>hp,transfromGap:()=>ja,typography:()=>ts,unit:()=>Mu,vars:()=>sp});var qe={};I(qe,{CSS_NATIVE_COLOR_REGEX:()=>re,CSS_UNITS:()=>Ir,applyMediaSequenceVars:()=>Ge,applySequenceGlobalVars:()=>fs,applySequenceVars:()=>Oe,changeLightness:()=>Fu,colorStringToRgbaArray:()=>pe,convertSvgToSymbol:()=>us,findHeadingLetter:()=>Ia,findHeadings:()=>ls,generateSequence:()=>Pt,generateSequencePosition:()=>cp,generateSprite:()=>tn,generateSubSequence:()=>as,getColorShade:()=>xa,getDefaultOrFirstKey:()=>wr,getFnPrefixAndValue:()=>Te,getFontFace:()=>Lu,getFontFaceEach:()=>kr,getFontFaceEachString:()=>ka,getFontFaceString:()=>Qo,getFontFormat:()=>Sa,getRgbTone:()=>We,getSequenceValue:()=>cs,getSequenceValueBySymbols:()=>Pa,getSequenceValuePropertyPair:()=>me,getSubratio:()=>is,getSubratioDifference:()=>ss,hexToRgb:()=>Ru,hexToRgbArray:()=>ga,hexToRgba:()=>Iu,hslToRgb:()=>ba,isCSSVar:()=>at,isGoogleFontsUrl:()=>Jr,isRawUnitValue:()=>Mn,isResolvedColor:()=>de,isScalingUnit:()=>ur,mixTwoColors:()=>Ou,mixTwoRgb:()=>$u,mixTwoRgba:()=>_a,numToLetterMap:()=>ge,opacify:()=>Xr,parseColorToken:()=>Ce,resolveFileUrl:()=>Wt,returnSubThemeOrDefault:()=>Du,rgbArrayToHex:()=>ma,rgbToHSL:()=>ya,rgbToHex:()=>Pu,setCustomFont:()=>Zo,setCustomFontMedia:()=>He,setFontImport:()=>Zr,setInCustomFontMedia:()=>wa,setScalingVar:()=>os,setSubScalingVar:()=>Ra,setVariables:()=>lp,splitTopLevelCommas:()=>Ae});var ur=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Ir=["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"],aS=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),cS=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${Ir.filter(t=>t!=="auto").map(aS).join("|")})$`),Mn=t=>cS.test(String(t).trim());O();var pe=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&&K&&k){let e=K.body.appendChild(K.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){K.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return K.body.removeChild(e),[0,0,0,0];t=k.getComputedStyle(e).color,K.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]},Ou=(t,e,r=.5)=>(t=pe(t),e=pe(e),_a(t,e,r)),Ru=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},ga=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Pu=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),ma=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Iu=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},$u=(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})`},Fu=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},ya=(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]},ba=(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)],xa=(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)},_a=(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})`},Xr=(t,e)=>{let r=pe(t);if(!r){yr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},at=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,re=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,yw=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Ce=t=>{if(!S(t))return null;if(re.test(t))return{passthrough:t};if(at(t))return{cssVar:t};let e=t.match(yw);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}},de=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Ae=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},We=(t,e)=>{S(t)&&t.includes("rgb")&&(t=pe(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ae(e)&&(e+="");let r=ma(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=xa(r,parseFloat(e));return ga(o).join(", ")}else{let[o,s,i]=t,a=ya(o,s,i),[c,l,f]=a;return ba(c,l,parseFloat(e)/100*255)}};var Du=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Wt=(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},wr=(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},Sa=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},Jr=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Zr=t=>`@import url('${t}');`,wa=t=>`@font-face { ${t} }`,Zo=(t,e,r,n={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=Sa(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
32
32
  `);return`
33
33
  font-family: '${t}';
34
34
  font-style: ${n.fontStyle||"normal"};${r?`
@@ -36,13 +36,13 @@ FROM ${a}${l}`},ew=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
36
36
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
37
37
  font-display: ${n.fontDisplay};`:""}
38
38
  src: ${i};`},He=(t,e,r,n)=>`@font-face {${Zo(t,e,r,n)}
39
- }`,kr=(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=>Wt(u,r)||u):Wt(s,r)||s;return Zo(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Lu=t=>Object.keys(t).map(r=>kr(r,t[r].value)),ka=(t,e,r)=>{if(e&&e.isVariable){let s=Wt(e.url,r)||e.url;return Jr(s)?Zr(s):He(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return kr(t,e,r).map(wa);let o=Array.isArray(e.url)?e.url.map(s=>Wt(s,r)||s):Wt(e.url,r)||e.url;return He(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Qo=(t,e)=>Object.keys(t).map(n=>ka(n,t[n].value,e));O();O();O();var Qr={};I(Qr,{animation:()=>Qu,breakpoints:()=>Ju,class:()=>op,color:()=>Wu,devices:()=>Zu,document:()=>Yg,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,gradient:()=>Hu,grid:()=>np,icons:()=>Ku,media:()=>Uu,reset:()=>Xg,semanticIcons:()=>Yu,sequence:()=>Ee,shadow:()=>qu,sizes:()=>ip,spacing:()=>zu,svg:()=>tp,svgData:()=>ep,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,typography:()=>ts,unit:()=>Mu,vars:()=>sp});var Ee={"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 Mu={default:"em"};var bw={browserDefault:16,base:16,type:"font-size",ratio:Ee["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ts=bw;var Nu={};var ju={},Bu={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Vu={};var Uu={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var xw={base:ts.base,type:"spacing",ratio:Ee.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},zu=xw;var Wu={},Hu={};var Gu={};var qu={};var Ku={},Yu={};var _w={default:150,base:150,type:"timing",ratio:Ee["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Xu=_w;var Yg={};var Ju={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Zu={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 Qu={};var tp={},ep={};var rp={};var Sw={},np=Sw;var op={};var Xg={},sp={},ip={};var Aa={},Ea={},va=Qr,Ca={},rs=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in va){let e=t.toLowerCase();Ca[e]=va[t];let r=rs(e);r!==e&&(Ca[r]=va[t]),e!==t&&(Ca[t]=va[t])}var ns={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Aa,cssMediaVars:Ea,CSS_VARS:Aa,CSS_MEDIA_VARS:Ea,_scratchConfig:!0,...Ca},Jg=ot(ns),he={active:"0",0:ns},Zg=t=>(At(t)&&(he.active=t),he[t||he.active]),es=[],et=t=>{t&&t._scratchConfig&&es.push(t)},J=()=>{es.pop()},A=t=>es.length?es[es.length-1]:he[t||he.active]||ns,Ta=t=>{if(w(t))return he.active="1",he[1]=X(t,ot(Jg)),t},ww=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],kw=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],vw=t=>{for(let e of kw){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)}},Oa=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=ot(!r&&n&&n._scratchConfig?n:Jg);for(let i of ww)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,vw(s),t&&(he[t]=s),s};var ge={"-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"},ap=(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=Qg.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},Te=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Qg=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),os=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Qg.has(o)?"rem":o,i=(ur(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=ge[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ge[t+1],u=Math.abs(t),p=Math.pow(tm,2*u),d=ge[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ra=(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}))`},ss=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},is=(t,e)=>ss(t,e).map(r=>r/t),as=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=ss(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((g,h)=>{let m=~~(g/n*1e3)/1e3,y=i+(h+1),b=a+(h+1)/10,x=Ra(h+1,f,i,e),_={key:r+(h+1),variable:y,value:g,scaling:m,scalingVariable:x,index:b};ap(_,e)})},tm=1.618,Cw=(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(tm,2*n);return Math.max(o,s)},Pt=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=ge[f],p=Cw(f,r,n),d=~~(p/r*100)/100,g=c+u,h=os(f,t),m={key:u,variable:g,value:p,base:r,scaling:d,scalingVariable:h,ratio:n,index:f};ap(m,t),s&&as(m,t)}return t},cp=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:ge[e],a=S(e)?Object.entries(ge).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,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,g=os(a,t),h={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:g,ratio:o,index:a};return ap(h,c),s&&as(h,c),c},cs=(t="A",e)=>{let r=A(),{unit:n}=r;if(S(t)&&at(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(S(t)){let x=r.sizes;if(x){let _=x[t]||x[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(Mn(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let p=`--${e.varPrefix?e.varPrefix+"-":""}${Yo(e.type.replace(".","-"))}-`,d=t.toUpperCase(),g=d.slice(0,1)==="-"?"-":"",h=g?d.slice(1):d,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=x=>a.test(x)?`var(${p}${x}${m})`:x;if(h.includes("+")){let[x,_]=h.split("+"),C=`${y(x)} + ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}else if(h.includes("*")){let[x,_]=h.split("*"),C=`${y(x)} * ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}else if(h.includes("-")){let[x,_]=h.split("-"),C=`${y(x)} - ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let x=`var(${p}${h}${m})`;return g?`calc(${x} * -1)`:x}let b=o?o[h]:null;return b?s==="ms"||s==="s"?g+b.val+s:g+b.scaling+s:console.warn("can't find",o,h)},Pa=(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:cs(i,e)}).join("")},me=(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=Te(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Pa(t,r):t=cs(t,r),{[e]:n?`${n}(${t})`:t}},Ia=(t,e)=>ge[t-e],ls=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Ia(e,o);return r[s]})};O();var lp=(t,e)=>{let r=A(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},fs=(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[p,d,g]=is(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},em=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Oe=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=em.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||fs(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+"_default"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+"_default"]=d,s[p.variable]=`var(${p.variable+"_default"})`)}},Ge=(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=em.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,g=s[a];if(!g&&n.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),fs(h,c,r);let m=t.unit||o.default;if(f!==m&&p)for(let y in p){let b=p[y],x=d[y]+f;h[b.variable+"_default"]=x,h[b.variable]=x}return}for(let h in p){let m=p[h],y=(ur(f)?d[h]:p[h].val)+f;!g&&n.verbose&&console.warn("Can't find query ",g);let b=i[`@media ${g}`];b||(b=i[`@media ${g}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};O();var nm=yr(),tn=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},Aw=t=>{let e=t&&(t.default||t);if(!S(e))return nm&&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},{}):{}},Ew=(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},rm=new Set,us=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return nm&&!rm.has(t)&&(rm.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=Aw(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=Ew(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=Rw(l),l},Tw="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",Ow=new RegExp(`<(${Tw})\\b([^>]*?)\\s*/>`,"g"),Rw=t=>t.replace(Ow,"<$1$2></$1>");var nn={};I(nn,{appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyDocument:()=>Cs,applyHeadings:()=>Da,applyReset:()=>Os,applySpacingSequence:()=>Ss,applyTimingSequence:()=>vs,applyTypographySequence:()=>bs,checkIfBoxSize:()=>_s,getColor:()=>rt,getFontFamily:()=>ys,getFontSizeByKey:()=>xs,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getShadow:()=>ks,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,runThroughMedia:()=>Fa,setColor:()=>Ke,setFont:()=>ms,setFontFamily:()=>en,setGradient:()=>Ye,setMediaTheme:()=>gs,setSVG:()=>rn,setShadow:()=>Xe,setSvgIcon:()=>Es,setTheme:()=>hs,splitSpacedValue:()=>ws});O();var rt=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(at(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=Ce(t);if(!u){let{color:p,gradient:d}=n,g=d[t]||p[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;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let p=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${p}%, transparent)`}return u}return i&&!l[i]&&(f=We(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})`},mt=(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(at(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=Ce(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 rt(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?rt(t,null,r):`var(${l.var})`;if(e)return rt(t,`@${e}`,r);{let u={};for(let p in l){if(p.charCodeAt(0)!==64)continue;let d=n.media[p.slice(1)];if(!d)continue;let g="@media "+(d==="print"?`${d}`:`screen and ${d}`);u[g]=rt(t,p,r)}return u}}else return n.verbose&&console.warn("Can't find color",t),t},Ke=(t,e,r)=>{let n=A();if(S(t)&&at(t)){let h=t.slice(2);if(t=rt(h),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||w(y))&&(n.color[m[0]]=Ke(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",_=m[2];_&&(b=We(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let _=pe(m[0]);_&&_.length>=3?t=`rgba(${We(_.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),w(t)){let h={};for(let m in t)h[m]=Ke(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,x={};for(let _ in h){if(_.charCodeAt(0)!==64)continue;let C=_.slice(1),R=h[_],P=R&&(R.value||R);!P||typeof P!="string"||(x[C]=P,(C==="light"||b===void 0)&&(b=P))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let _ in x){let C=`[data-theme="${_}"]`;if(n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=x[_],_==="light"||_==="dark"){let R=`@media (prefers-color-scheme: ${_})`;n.cssMediaVars[R]||(n.cssMediaVars[R]={}),n.cssMediaVars[R][y]=x[_]}}h.var=y}}return h}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&i.includes(".")&&!i.includes("(")){let[h,m]=i.split("."),y=n.color[h];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Ce(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=n.color[h.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[h.name]=Ke(m,h.name));let y=n.color[h.name];if(y&&y.rgb){let b=y.rgb;h.tone&&(b=We(b,h.tone));let x=h.alpha?parseFloat(h.alpha):1;i=`rgba(${b}, ${x})`}}}let a=pe(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,g=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=g),{var:s,rgb:d,alpha:p,value:g}},Ye=(t,e,r)=>{let n=A();if(S(t)&&at(t)&&(t=rt(t.slice(2))),T(t))return{"@light":Ye(t[0],e,"light"),"@dark":Ye(t[0],e,"dark")};if(w(t)){let i={};for(let a in t)i[a]=Ye(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return 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 Pw=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"]),om=["color","Color","background","Background","fill","Fill","stroke","Stroke"],Iw=t=>{for(let e=0;e<om.length;e++)if(t.includes(om[e]))return!0;return!1},$a=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?rt(t[a]):t[a]}),e},ps=t=>(t.value||(t.value=$a(t)),t.value),ds=(t,e)=>{let r=A();if(r.useVariable)return Ht(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return ps(i);t=[o,s||e]}}if(j(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return ps(a[s]);if(i&&i[s])return ps(i[s]);if(c&&c[s])return ps(c[s])}else if(w(t))return $a(t)},$w=(t,e,r)=>{if(w(e))t.variants.inverse.value=$a(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Fw=(t,e,r,n)=>{let o=ds(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},Dw=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Fw(t,o,s,e),t}),t):void 0},Lw=(t,e,r,n)=>{let o=ds(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},Mw=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Lw(t,o,s,e),o==="inverse"&&$w(t,s,e),t}),t):void 0},Nw=(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]:ps(n[s]),t}),t):void 0},hs=(t,e)=>{let r=A();if(r.useVariable)return gs(t,e);let{state:n,media:o,helpers:s}=t,i=$a(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return Dw(t,i),Mw(t,i),Nw(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var fp=(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===":")&&Iw(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=rt(p,`@${u}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!Pw.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>j(p?.[l]));if(f==="."&&u){let p=l.slice(1),d={};for(let g in t)j(t[g]?.[l])&&(d[g]=t[g][l]);i[l]=fp(d,`${e}-${p}`,r)}else if(f===":"&&u){let p=l.replace(/^:+/,""),d={};for(let g in t)j(t[g]?.[l])&&(d[g]=t[g][l]);i[l]=fp(d,`${e}-${p}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,g=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=rt(y,`@${m}`);if(b===void 0)continue;(g&&m===g||!g&&(m==="light"||h===void 0))&&(h=b);let x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][d]=b,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][d]=b}}h!==void 0&&(n[d]=h),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},gs=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(j(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&j(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=fp(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]=gs(f,e,c,n||u)}else if(!a){let u=rt(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&at(t)){let l=o.theme[t.slice(2)];return Ht(l,n)}return i},up=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(j(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=up(t[n]):o==="."&&(r[`&${n}`]=up(t[n]))}else r[n]=t[n]}return r},im=(t,e)=>{let r=e.shift();return t[r]?im(t[r],e):t},sm=(t,e)=>T(e)?im(t,e):S(e)&&t[e]?t[e]:t;var Ht=(t,e)=>{let r=A();if(S(t)&&at(t)&&(t=Ht(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=sm(s,o):s&&e&&(s=sm(s,e)),up(s)};O();O();var ms=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Wt(t.url,r.files)||t.url;Jr(s)?o=Zr(s):o=He(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=kr(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Wt(i,r.files)||i):Wt(t.url,r.files)||t.url;o=He(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},ys=(t,e)=>{let r=A(),{fontFamily:n}=r;return wr(e||n,t)},en=(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=Sr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Fa=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:p,subSequence:d,h1Matches:g,unit:h}=t;it(i,{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,b=!i.unit&&m.has(h)?"rem":y,x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),Pt(i),Ge(t,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Pt(i),Ge(t,o)}},Da=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=ls(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;Pt(e),Da(e),Oe(e),Fa(e)},xs=t=>{let e=A(),{typography:r}=e;return me(t,"fontSize",r)};O();O();var jw=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Pt(o),o},Bw=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:{}}),Pt(r),Ge(t,e)}},_s=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Ss=()=>{let t=A(),{spacing:e}=t;Pt(e),Oe(e),Bw(e)},Vw=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Pt(t)},pt=(t,e="padding",r,n)=>{let o=Vw(r);if(S(t)){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes("(")){let i=Te(t);n=i[0],t=i[1]}}let s=n?[t]:Sr(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)=>me(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return me(t,e,o,n)}},ne=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(S(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes("(")){let a=Te(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=jw(t);return pt(i,e,a,n)}return pt(i,e,s,n)},ws=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Ir.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 Xe=(t,e,r,n)=>{let o=A();if(T(t))return{"@light":Xe(t[0],e,"light"),"@dark":Xe(t[1],e,"dark")};if(w(t)){let a={};for(let c in t)a[c]=Xe(t[c],e,c.startsWith("@")?c.slice(1):c);return a}S(t)&&!re.test(t)&&(t=Ae(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=rt(c);if(de(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}},ks=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(at(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){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var vs=()=>{let t=A(),{timing:e}=t;Pt(e),Oe(e)},Gt=t=>{let e=A(),{timing:r}=e;return r[t]||r[Ko(t)]||t},Dt=(t,e="timing")=>{let r=A(),{timing:n}=r;return me(t,e,n)};O();var Cs=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return it(e,{theme:n.document,fontFamily:wr(r),fontSize:o.base,lineHeight:o.lineHeight})};O();var dp={document:K},rn=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?us(e,t):t},As=(t,e=dp)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];cm(n,e)},Es=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?rn(t,e):t},Ts=(t,e=dp)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];cm(n,e)},pp=(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},Uw=(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},am=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},cm=(t,e=dp)=>{let r=A(),n=e.document||K;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),tn(t);let o=n.querySelector("#svgSprite"),s=tn(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=Uw(n,s);if(o)if(a)am(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=pp(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=pp(n);c&&c.nodeType&&(am(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=pp(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var Os=(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?Ht("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?Ht("document"):{};if(r.html&&Tt(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,p=f.base||n.base,d=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=p/d+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 zw=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Ww=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Hw=t=>zw.has(t),ye=t=>{let e=t+"";if(re.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(at(o))return`var(${o})`;if(Hw(o)||/^\d/.test(o)||o==="0")return o;let s=rt(o);if(de(s))return s;let i=pt(o,"border");return i&&i.border?i.border:o}).join(" ")},La=t=>re.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(at(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=rt(e);return de(r)?r:e}).join(" "),Ma=(t,e)=>ks(t,e),Rs=(t,e)=>re.test(t)?t:Ae(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(at(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=rt(n);if(de(o)){let i=mt(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(", "),Ps=(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=Ae(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||Ww.has(f)||f==="transparent"||re.test(f))return f;let u=rt(f);return de(u)?u:f}).join(" ")));return n+a.join(", ")+s},Na=(t,e)=>{let r=A();return Ae(t).map(n=>{let o=n.trim();return at(o)?`var(${o})`:/^var\(/.test(o)||o.includes("url")?o:o.includes("gradient")?Ps(o,e):r.gradient[t]?{backgroundImage:mt(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!Ce(o)?`url(${o})`:o}).join(", ")},ja=t=>S(t)&&t.split(" ").map(e=>pt(e,"gap").gap).join(" "),hp=t=>{let e=t.split(" ");return e.length?e.map(r=>at(r)?`var(${r})`:r.length<3||r.includes("ms")?Dt(r).timing||r:Gt(r)?Gt(r):r).join(" "):t},Is=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Dt(n).timing||n).join(",")},Ba=t=>{let e=t.split(",");if(e.length)return e.map(hp).join(",")};function ct(t,e,r={},n={}){let o=tt.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=Te(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=_s(t);!i&&a&&!n.ratio&&(o=ws(o))}return n.ratio?ne(r,t,o,s):pt(o,t,void 0,s)}var N=(t,e=null,r)=>ct(t,e,r,{ratio:!0}),$s=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>ne(e,r,n)[r]).join(" ")}};O();var Gw=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Lt=t=>t,Va={color:Ke,gradient:Ye,font:ms,fontFamily:en,fontfamily:en,theme:hs,icons:Es,semanticIcons:Lt,semanticicons:Lt,svg:rn,svgData:Lt,typography:Lt,shadow:Xe,spacing:Lt,media:Lt,grid:Lt,class:Lt,timing:Lt,reset:Lt,unit:Lt,animation:Lt,vars:Gw,sizes:Lt},gp=(t,e,r)=>{let n=A(),o=rs(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Va[o]||Va[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},mp=(t,e)=>{let r=A(),n=t.toLowerCase();return 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 gp(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},Ua=(t,e)=>{let r=e||A();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(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 p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},qw={},vr=(t,e=qw)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:g,files:h,assets:m,...y}=t;e.newConfig&&(r=Ta(e.newConfig)),h!==void 0&&(r.files=h),m!==void 0&&(r.assets=m),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),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),g!==void 0&&(r.semanticIcons=g),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),_=x&&x.defaultView||(typeof window<"u"?window:null),C=x&&(r.themeRoot||x.documentElement);if(C&&typeof C.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")C.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?C.style.colorScheme=r.globalTheme:C.style.colorScheme="light dark";else if(_&&_.matchMedia){let $=G=>{C.setAttribute("data-theme",G.matches?"dark":"light")},U=_.matchMedia("(prefers-color-scheme: dark)");if($(U),C.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{U.addEventListener("change",$)}catch{U.addListener($)}}}else C.setAttribute("data-theme","light"),C.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let R=Object.keys(y),P=new Set(R);if(R.forEach(E=>{let $=E.toLowerCase();$!==E&&P.has($)&&X(y[$],y[E])}),R.map(E=>{let $=E.toLowerCase();if(!($!==E&&P.has($)))return mp(E,y[E])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{bs()}catch(E){r.verbose&&console.warn("Error applying typography sequence",E)}if(y.spacing)try{Ss()}catch(E){r.verbose&&console.warn("Error applying spacing sequence",E)}if(y.timing)try{vs()}catch(E){r.verbose&&console.warn("Error applying timing sequence",E)}Cs();let V=Os();return V&&(r.reset=V),r};var Cr=new Map,pm=null,xp=null,Kw=null;function Fs(t){t.batchAtomicCss&&(xp=t.batchAtomicCss),t.compoundCssClass&&(Kw=t.compoundCssClass)}var Yw=new Set;function _p(t){try{let e=A();e&&(e.document=t)}catch{}t&&Yw.add(t)}function Wa(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var Xw={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 Ar(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function za(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 Jw(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():za(e)}function lm(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Cr.get(n),s=o?null:Ar(t);if(!o){let a=Xw[t]||za(t),c=Jw(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Cr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ar(t)}:${e}}`;return qt(i),o}var fm=new WeakMap;function qt(t,e){let r=dm(e);if(!r)return;let n=fm.get(r);if(n||(n=new Set,fm.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var um=new WeakMap;function dm(t){let e=t||Wa();if(!e||!e.head)return null;let r=um.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 um.set(e,o),pm=o,o}var Zw=8;function oe(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]):xp?(n||(n=[]),n.push(c,String(l)),o++):s.push(lm(c,String(l),r)))}if(n&&o>=Zw){let c=n.join("\0"),l=xp(c),f=l.indexOf("\0"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`
40
- `);for(let g=0;g<d.length;g++)d[g]&&qt(d[g])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(lm(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(Qw(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var bp=new Map;function Qw(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=Cr.get(n);if(o){let p=bp.get(o);if(p)for(let d=0;d<p.length;d++)qt(p[d]);return o}o=r?`_${r}_c${za(n)}`:`_c${za(n)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,d)=>{let g="";for(let h in d){let m=d[h];if(m!=null)if(typeof m=="object")c([...p,h],m);else{if(a(m))continue;g+=`${Ar(h)}:${m};`}}g&&(p.length===0?s+=g:i.push({chain:p,body:g}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[0].split(",").map(g=>g.trim()).map(g=>g.includes("&")?g.replace(/&/g,`.${o}`):g.startsWith(":")?`.${o}${g}`:`.${o} ${g}`);for(let g=1;g<p.length;g++){let h=p[g].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of h)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),qt(p)}for(let p of i){let d=l(p.chain),g=`${t}{${d}{${p.body}}}`;f.push(g),qt(g)}return bp.set(o,f),Cr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),qt(p)}for(let p of i){let g=`${l([t,...p.chain])}{${p.body}}`;f.push(g),qt(g)}return bp.set(o,f),Cr.set(n,o),o}function ft(t){if(dm(),typeof t=="string"){qt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ar(c);a+=`${l}:${i[c]};`}qt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ar(s);qt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ar(a);s+=`${l}:${c};`}}if(s&&qt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ft({[`${n} ${l}`]:o[l]});for(let l of a)ft({[l]:{[n]:o[l]}})}}}}function on(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ar(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return qt(`@keyframes ${t}{${r}}`),t}function hm(){Cr.clear(),pm=null}function Sp(){return Cr.size}O();var od={};I(od,{DELEGATED_EVENTS:()=>fn,LIFECYCLE_EVENTS:()=>Qe,MIXINS:()=>Ha,NON_BUBBLING_EVENTS:()=>Ga,REGISTRY:()=>St,SVG_TAGS:()=>cn,addDelegatedEvent:()=>Ds,addMethods:()=>gn,applyExtends:()=>pn,cacheNode:()=>Ze,create:()=>Kt,createHTMLNode:()=>an,detectTag:()=>Je,dispose:()=>tr,flushMounts:()=>Xa,isSvgTag:()=>ln,isValidTag:()=>sn,registerEvent:()=>un,remove:()=>hn,removeDelegatedEvent:()=>Ls,update:()=>dn});var kp="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"]),t0=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 sn(t){return t0.has(t)||cn.has(t)}function ln(t){return cn.has(t)}function Je(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&sn(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]),sn(o)&&!n.has(o)?o:"div"}var gm={};function an(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(ln(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===kp)return r.createElementNS(kp,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function Ze(t){let e=t.tag=Je(t),n=ln(e)&&(e==="svg"||t.parent?.node?.namespaceURI===kp)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=gm[n];if(s||(s=gm[n]=an(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?an(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var St=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"]),Ha={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Qe=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"]),Ga=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"]),mm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),fn=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 vp=new WeakMap,e0={passive:!0},r0={passive:!0,capture:!0},Cp=(t,e)=>mm.has(t)?e?r0:e0:e||!1;function bm(t){let e=vp.get(t);return e||(e={handlers:new Map,installed:new Set},vp.set(t,e)),e}function n0(t,e){let r=bm(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}},Cp(t,n))}function Ds(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=bm(n);n0(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function Ls(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=vp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function ym(t){return fn.has(t)&&!Qe.has(t)}function un(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&et(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=Ga.has(t);if(!a&&ym(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ds(t,n,i,c)}else n.addEventListener(t,i,Cp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&ym(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ls(t,n,c)}else n.removeEventListener(t,i,Cp(t,!1))})}function xm(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 pn(t,e,r){let n=xm(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=_m(n[i],s);a&&a!==e&&Sm(t,a,r,new Set([e]))}}function _m(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 Sm(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=xm(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=_m(o[a],i);c&&Sm(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]=wm(t[s],i):t[s]=i}}function wm(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]=wm(o,s):r[n]=s}return r}Br();function dn(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(Se(()=>{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,i===!0?"":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(St.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&&Kt(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 yt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}function tr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&tr(o)}e.__children.length=0}if(t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function hn(){tr(this)}O();O();var o0=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],s0=["none","forwards","backwards","both"],i0=["normal","reverse","alternate","alternate-reverse"],a0=["running","paused"],c0=t=>/^[\d.]+m?s$/.test(t),l0=0,km=new Map,Ap=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=km.get(o);if(s)return s;let i=`smbls-anim-${l0++}`,a=on(i,t);return km.set(o,a),a}let n=r&&r[t];return w(n)?on(t,n):t},f0=(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:c0(u)?s.push(u):o0.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):i0.includes(u)?c=u:s0.includes(u)?l=u:a0.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Ep={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=f0(t,e);return{animationName:Ap(r.name||t,e),animationDuration:r.durations[0]||Dt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Dt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Gt(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:Ap(t,e),animationDuration:Dt(e.animationDuration||"A").timing,animationDelay:Dt(e.animationDelay||"0s").timing,animationTimingFunction:Gt(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Ap(t,e)}),animationDuration:t=>({animationDuration:Dt(t).timing}),animationDelay:t=>({animationDelay:Dt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Gt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var Tp={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>N("height",t,e),width:(t,e)=>N("width",t,e),boxSizing:t=>dt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("height",e),...ct("width",r||e)}},inlineSize:(t,e)=>N("inlineSize",t,e),blockSize:(t,e)=>N("blockSize",t,e),minWidth:(t,e)=>N("minWidth",t,e),maxWidth:(t,e)=>N("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minWidth",e),...ct("maxWidth",r||e)}},minHeight:(t,e)=>N("minHeight",t,e),maxHeight:(t,e)=>N("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minHeight",e),...ct("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...N("inlineSize",e),...N("blockSize",r||e)}},minBlockSize:(t,e)=>N("minBlockSize",t,e),minInlineSize:(t,e)=>N("minInlineSize",t,e),maxBlockSize:(t,e)=>N("maxBlockSize",t,e),maxInlineSize:(t,e)=>N("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minInlineSize",e),...ct("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("maxInlineSize",e),...ct("maxBlockSize",r||e)}},borderWidth:(t,e)=>N("borderWidth",t,e),padding:(t,e)=>N("padding",t,e),scrollPadding:(t,e)=>N("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("paddingInlineStart",e),...ct("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("paddingBlockStart",e),...ct("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>N("paddingBlockStart",t,e),paddingBottom:(t,e)=>N("paddingBlockEnd",t,e),paddingLeft:(t,e)=>N("paddingInlineStart",t,e),paddingRight:(t,e)=>N("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>N("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>N("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>N("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>N("paddingInlineEnd",t,e),margin:(t,e)=>N("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("marginInlineStart",e),...ct("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ct("marginBlockStart",r),...ct("marginBlockEnd",n||r)}},marginTop:(t,e)=>N("marginBlockStart",t,e),marginBottom:(t,e)=>N("marginBlockEnd",t,e),marginLeft:(t,e)=>N("marginInlineStart",t,e),marginRight:(t,e)=>N("marginInlineEnd",t,e),marginInlineStart:(t,e)=>N("marginInlineStart",t,e),marginInlineEnd:(t,e)=>N("marginInlineEnd",t,e),marginBlockStart:(t,e)=>N("marginBlockStart",t,e),marginBlockEnd:(t,e)=>N("marginBlockEnd",t,e),gap:t=>({gap:ja(t)}),columnGap:(t,e)=>ne(e,"columnGap",t),rowGap:(t,e)=>ne(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)=>$s(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>$s(t??e.round,e,"borderRadius")};var Op={fontSize:t=>xs(t)||t,fontFamily:t=>({fontFamily:ys(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 Rp={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 Yt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Ip={theme:(t,e)=>{if(t)return e.themeModifier?Ht(t,`@${e.themeModifier}`):Ht(t)},color:(t,e)=>{let r=Yt(e);if(t)return{color:mt(t,r)}},background:(t,e)=>{let r=Yt(e);if(t)return S(t)&&t.includes("gradient")?{background:Ps(t,r)}:{background:mt(t,r)}},backgroundColor:(t,e)=>{let r=Yt(e);if(t)return{backgroundColor:mt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Yt(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{backgroundImage:Na(t,o)}},textStroke:t=>({WebkitTextStroke:La(t)}),outline:t=>({outline:ye(t)}),outlineOffset:(t,e)=>N("outlineOffset",t,e),border:t=>({border:ye(t)}),borderColor:(t,e)=>{let r=Yt(e);if(t)return{borderColor:mt(t,r)}},borderTopColor:(t,e)=>{let r=Yt(e);if(t)return{borderTopColor:mt(t,r)}},borderBottomColor:(t,e)=>{let r=Yt(e);if(t)return{borderBottomColor:mt(t,r)}},borderLeftColor:(t,e)=>{let r=Yt(e);if(t)return{borderLeftColor:mt(t,r)}},borderRightColor:(t,e)=>{let r=Yt(e);if(t)return{borderRightColor:mt(t,r)}},borderLeft:t=>({borderLeft:ye(t)}),borderTop:t=>({borderTop:ye(t)}),borderRight:t=>({borderRight:ye(t)}),borderBottom:t=>({borderBottom:ye(t)}),shadow:(t,e)=>{let r=Yt(e);if(t)return{boxShadow:Ma(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=Yt(e),s=n?" !important":"";return{boxShadow:Rs(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Rs(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ye(t)})};var Ms={transition:t=>({transition:Ba(t)}),transitionDuration:t=>({transitionDuration:Is(t)}),transitionDelay:t=>({transitionDelay:Is(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Gt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var $p={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 Fp={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 gt={...Ep,...Tp,...Op,...Rp,...Pp,...Ip,...Ms,...$p,...Fp};var bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);O();var u0=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,p0=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Mt(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(u0),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},vm=(t,e,r)=>({[t]:Mt(e,r)}),Ns=(t,e,r)=>{let n=`&${t}`,o=Mt(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}},Dp=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},d0=(t,e,r)=>{let n=t.slice(1),o=Dp(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Mt(e,r)},h0=(t,e,r)=>({[t]:e}),g0=(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=Dp(n,r);s!==void 0&&(o=s)}if(o)return Mt(e,r)},m0=(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=Dp(n,r);s!==void 0&&(o=s)}if(!o)return Mt(e,r)},Lp=(t,e)=>Mt(t,e),Mp={"@":p0,":":Ns,"[":Ns,"*":Ns,"+":Ns,"~":Ns,"&":vm,">":vm,$:d0,"-":h0,".":g0,"!":m0};var Np=Ne(),Cm=(t,e,r)=>{let n=e?.context?.designSystem;n&&et(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((p,d)=>it(p,f[d]),{});o.designSystemClass=u}}else if(a==="true"){let l=tt(c,e);it(o,Lp(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=v(l)?l(e,e.state,e.context):l;f&&i(a,f),!Np&&w(o[a])&&(o[a].label=a)}else if(gt[a]){let l=tt(c,e);T(l)&&(l=l.reduce((u,p)=>it(u,p),{}));let f=gt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>it(u,p),{})),f&&i(a,f),!Np&&w(o[a])&&(o[a].label=a)}else if(bt.has(a)){let l=tt(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Np&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&J()}},Am=(t,e)=>{let r={};for(let n in t){let o=Mp[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"?Tt(r[i],s[i]):r[i]=s[i])}}return r},Mt=(t,e,r={unpack:!0})=>{let[n,o]=Cm(t,e,r),s=Am(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Qn(n,s);n._selectors=s}return n},y0=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};O();var Em=t=>{if(w(t))return Mt(t,t)},b0=(t,e)=>{let r=Em(t);return typeof e=="function"?e(r):oe(r)};O();function Rm(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})}function x0(...t){return Rm(this,"warn",t),jo.apply(this,t)}function _0(...t){return Rm(this,"error",t),_r.apply(this,t)}var Tm={update:dn,remove:hn,getDB:zo,getQuery:Wo,getRootData:Lo,getChildren:Po,getPath:Io,nextElement:Bo,previousElement:Vo,verbose:Hr,warn:x0,error:_0,variables:Uo,spotByPath:Ro,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},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:Do,getRootState:Fo,getRootContext:Mo,getContext:No,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)},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)}},Om=new WeakMap;function S0(t){if(!t)return Tm;let e=Om.get(t);if(e)return e;e=Object.create(Tm);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Om.set(t,e),e}function gn(t){let e=S0(t.context);Object.setPrototypeOf(t,e)}O();Br();var zp={};I(zp,{STATE_METHODS:()=>Pm,applyInitialState:()=>qa,applyStateMethods:()=>Nt,createState:()=>Bp,isTracking:()=>Up,useHostState:()=>Vp});var Pm=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"]),w0=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Nt=(t,e)=>{if(st(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&st(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),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)typeof e[o]!="function"&&w0(e,o,n[o])};var Bp=function(t,e,r){return t.state=qa(t,e,r),t.state},qa=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Nt(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",k0(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Ft({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Nt(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=Ft({...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)),Nt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return st(o)?(o.__element=t,o):e?.state||{}};function jp(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 k0(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?jp(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?jp(o,s):o??{}}let n=jp(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 Vp=(t,e)=>{if(!t)return $m;let r=C0(t,e);return!r||!r.state?$m:E0(r.state)},Up=()=>lr()!=null,v0=128;function C0(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<v0&&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 A0={get(t,e){return t[e]}},Im=new WeakMap,E0=t=>{let e=Im.get(t);return e||(e=new Proxy(t,A0),Im.set(t,e)),e},$m=new Proxy(Object.create(null),{get(){},has(){return!1}});O();var T0=["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"],Ka={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"]},Dm=["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"],Gp=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()):null,rr=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Gp(e)||Ka.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Ka,t)?Ka[t].includes(e):!1,qp=t=>{if(!S(t))return!1;let e=t.toLowerCase();return Dm.includes(e)},O0=(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])At(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(At(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=rr(t,o),i=qp(o);if(At(e[o])&&(s||i)){let a=Gp(o)||o;n[a]=e[o]}}return n},R0=(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},er=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Wp=(t,e)=>{let r=(t.preSrc||"")+(er(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},Hp={src:t=>Wp(t,t.src),href:t=>er(t,t.href),action:t=>er(t,t.action),poster:t=>Wp(t,t.poster),data:t=>er(t,t.data)},Kp=t=>{let e=t.tag||"div",r={};for(let n in Hp)if(t[n]!==void 0&&rr(e,n)){let o=Hp[n](t);o!==void 0&&(r[n]=o)}return r},Fm=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},P0=(t,e,r)=>{if(t==="$"){let o=Fm(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Fm(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},I0=new Set(["$",".","!"]),$0=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(P0(a,c,f))return v(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!I0.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 d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let g=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase());o("data-"+g,a[l][d],i,c)}continue}let f=rr(e,l),u=qp(l);if(!f&&!u)continue;let p=Gp(l)||l;o(p,a[l],i,c)}}return n};var F0=1,Ya=[],Zp=!1;function D0(){Zp||(Zp=!0,typeof requestAnimationFrame=="function"?requestAnimationFrame(Xa):setTimeout(Xa,0))}function Xa(){if(Zp=!1,!Ya.length)return;let t=Ya.splice(0,Ya.length);for(let e=0;e<t.length;e++){let r=t[e];!r.node||!r.node.isConnected||Re("Mounted",r,r.__ref?.__mountOptions||{})}}function Bm(t,e){typeof t.onMounted=="function"&&(t.__ref.__mountOptions=e,Ya.push(t),D0())}function Lm(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&yt("contentUpdate",t,e);let r=t.context?.designSystem;r&&et(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&yt("error",t,{hook:"onContentUpdate",error:n})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',n),t.context?.strictMode)throw n}finally{r&&J()}}function yn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function L0(t){return t.charAt(2).toLowerCase()+t.slice(3)}function M0(t){return t.toLowerCase()}function Mm(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function js(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]=js(o,s):r[n]=s}return r}function Kt(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||`_${F0++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Kt);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 h=r.indexOf("_");if(h>0){let m=r.substring(0,h),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={...t,extends:m})}}pn(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let h in t){if(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")continue;let m=t[h],y=s[h],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&h.charCodeAt(0)>=65&&h.charCodeAt(0)<=90?s[h]=js(y,m):b&&a.has(h)?s[h]={...y,...m}:b&&Mm(h)?s[h]=js(y,m):s[h]=m}function l(h){for(let m in h){let y=h[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=js(b,y):x&&a.has(m)?s[m]={...b,...y}:x&&Mm(m)?s[m]=js(b,y):s[m]=y}}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,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let h={};f&&Object.assign(h,f),t.scope!==void 0&&Object.assign(h,t.scope),s.scope=Ln(h,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),gn(s),N0(s,e,t),s.if!=null){let h;if(typeof s.if=="function")try{h=s.if(s,s.state,s.context)}catch(m){if(h=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else h=s.if;i.__if=!!h}if(i.__if)typeof s.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof s.if=="function"&&zm(s,i,s.if),s;s.tag||(s.tag=Je(s)),Re("Init",s,n);let g=s.node=Ze(s);if(!g)return s;if(s.tag==="fragment"){let m=(s.context?.document||globalThis.document).createComment("");g.appendChild(m),i.__fragmentAnchor=m}Re("AttachNode",s,n),g.setAttribute&&s.key&&g.setAttribute("data-key",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),Gm(s,n),Um(s),Qp(s),Wm(s),G0(s);try{qm(s,n)}catch(h){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,h?.message||h,h?.stack?`
39
+ }`,kr=(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=>Wt(u,r)||u):Wt(s,r)||s;return Zo(t,f,i,{fontStyle:a,fontDisplay:c,fontStretch:l})}),Lu=t=>Object.keys(t).map(r=>kr(r,t[r].value)),ka=(t,e,r)=>{if(e&&e.isVariable){let s=Wt(e.url,r)||e.url;return Jr(s)?Zr(s):He(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return kr(t,e,r).map(wa);let o=Array.isArray(e.url)?e.url.map(s=>Wt(s,r)||s):Wt(e.url,r)||e.url;return He(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},Qo=(t,e)=>Object.keys(t).map(n=>ka(n,t[n].value,e));O();O();O();var Qr={};I(Qr,{animation:()=>Qu,breakpoints:()=>Ju,class:()=>op,color:()=>Wu,devices:()=>Zu,document:()=>Yg,font:()=>Nu,fontFace:()=>Vu,fontFamily:()=>ju,fontFamilyTypes:()=>Bu,gradient:()=>Hu,grid:()=>np,icons:()=>Ku,media:()=>Uu,reset:()=>Xg,semanticIcons:()=>Yu,sequence:()=>Ee,shadow:()=>qu,sizes:()=>ip,spacing:()=>zu,svg:()=>tp,svgData:()=>ep,templates:()=>rp,theme:()=>Gu,timing:()=>Xu,typography:()=>ts,unit:()=>Mu,vars:()=>sp});var Ee={"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 Mu={default:"em"};var bw={browserDefault:16,base:16,type:"font-size",ratio:Ee["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},ts=bw;var Nu={};var ju={},Bu={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Vu={};var Uu={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var xw={base:ts.base,type:"spacing",ratio:Ee.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},zu=xw;var Wu={},Hu={};var Gu={};var qu={};var Ku={},Yu={};var _w={default:150,base:150,type:"timing",ratio:Ee["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Xu=_w;var Yg={};var Ju={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Zu={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 Qu={};var tp={},ep={};var rp={};var Sw={},np=Sw;var op={};var Xg={},sp={},ip={};var Aa={},Ea={},va=Qr,Ca={},rs=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in va){let e=t.toLowerCase();Ca[e]=va[t];let r=rs(e);r!==e&&(Ca[r]=va[t]),e!==t&&(Ca[t]=va[t])}var ns={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Aa,cssMediaVars:Ea,CSS_VARS:Aa,CSS_MEDIA_VARS:Ea,_scratchConfig:!0,...Ca},Jg=ot(ns),he={active:"0",0:ns},Zg=t=>(At(t)&&(he.active=t),he[t||he.active]),es=[],et=t=>{t&&t._scratchConfig&&es.push(t)},J=()=>{es.pop()},A=t=>es.length?es[es.length-1]:he[t||he.active]||ns,Ta=t=>{if(w(t))return he.active="1",he[1]=X(t,ot(Jg)),t},ww=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],kw=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],vw=t=>{for(let e of kw){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)}},Oa=(t,e,{cleanBase:r=!1}={})=>{let n=r?null:A(),o=ot(!r&&n&&n._scratchConfig?n:Jg);for(let i of ww)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,vw(s),t&&(he[t]=s),s};var ge={"-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"},ap=(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=Qg.has(e.unit)?"rem":e.unit;e.vars[n]=s+c},Te=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Qg=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),os=(t,e)=>{let{base:r,type:n,unit:o}=e,s=Qg.has(o)?"rem":o,i=(ur(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=ge[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=ge[t+1],u=Math.abs(t),p=Math.pow(tm,2*u),d=ge[u];return d?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${d}) / ${p.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},Ra=(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}))`},ss=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},is=(t,e)=>ss(t,e).map(r=>r/t),as=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,p,d]=ss(o,s);l>16?f=[u,p,d]:f=[u,d],f.forEach((g,h)=>{let m=~~(g/n*1e3)/1e3,y=i+(h+1),b=a+(h+1)/10,x=Ra(h+1,f,i,e),_={key:r+(h+1),variable:y,value:g,scaling:m,scalingVariable:x,index:b};ap(_,e)})},tm=1.618,Cw=(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(tm,2*n);return Math.max(o,s)},Pt=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=ge[f],p=Cw(f,r,n),d=~~(p/r*100)/100,g=c+u,h=os(f,t),m={key:u,variable:g,value:p,base:r,scaling:d,scalingVariable:h,ratio:n,index:f};ap(m,t),s&&as(m,t)}return t},cp=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=S(e)?e:ge[e],a=S(e)?Object.entries(ge).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,d="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,g=os(a,t),h={key:i,variable:d,value:l,base:n,scaling:f,scalingVariable:g,ratio:o,index:a};return ap(h,c),s&&as(h,c),c},cs=(t="A",e)=>{let r=A(),{unit:n}=r;if(S(t)&&at(t))return`var(${t})`;if(S(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(S(t)){let x=r.sizes;if(x){let _=x[t]||x[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(Mn(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let p=`--${e.varPrefix?e.varPrefix+"-":""}${Yo(e.type.replace(".","-"))}-`,d=t.toUpperCase(),g=d.slice(0,1)==="-"?"-":"",h=g?d.slice(1):d,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=x=>a.test(x)?`var(${p}${x}${m})`:x;if(h.includes("+")){let[x,_]=h.split("+"),C=`${y(x)} + ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}else if(h.includes("*")){let[x,_]=h.split("*"),C=`${y(x)} * ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}else if(h.includes("-")){let[x,_]=h.split("-"),C=`${y(x)} - ${y(_)}`;return g?`calc((${C}) * -1)`:`calc(${C})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let x=`var(${p}${h}${m})`;return g?`calc(${x} * -1)`:x}let b=o?o[h]:null;return b?s==="ms"||s==="s"?g+b.val+s:g+b.scaling+s:console.warn("can't find",o,h)},Pa=(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:cs(i,e)}).join("")},me=(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=Te(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Pa(t,r):t=cs(t,r),{[e]:n?`${n}(${t})`:t}},Ia=(t,e)=>ge[t-e],ls=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Ia(e,o);return r[s]})};O();var lp=(t,e)=>{let r=A(),{cssVars:n}=r;j(t.value)||(n[t.var]=t.value)},fs=(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[p,d,g]=is(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},em=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Oe=(t,e={})=>{let r=A(),{unit:n,timing:o,cssVars:s}=r,i=t.unit||n.default,a=em.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||fs(s,t,e);for(let u in l){let p=l[u],d=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[p.variable+"_default"]=d,s[p.variable]=p.scalingVariable;continue}e.useDefault===!1?s[p.variable]=d:(s[p.variable+"_default"]=d,s[p.variable]=`var(${p.variable+"_default"})`)}},Ge=(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=em.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:p,scales:d}=c,g=s[a];if(!g&&n.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),fs(h,c,r);let m=t.unit||o.default;if(f!==m&&p)for(let y in p){let b=p[y],x=d[y]+f;h[b.variable+"_default"]=x,h[b.variable]=x}return}for(let h in p){let m=p[h],y=(ur(f)?d[h]:p[h].val)+f;!g&&n.verbose&&console.warn("Can't find query ",g);let b=i[`@media ${g}`];b||(b=i[`@media ${g}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};O();var nm=yr(),tn=t=>{let e=A(),r="";for(let n in t)e.__svgCache[n]||(e.__svgCache[n]=!0,r+=t[n]);return r},Aw=t=>{let e=t&&(t.default||t);if(!S(e))return nm&&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},{}):{}},Ew=(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},rm=new Set,us=(t,e)=>{let r=e&&e.default?e.default:e;if(!S(r))return nm&&!rm.has(t)&&(rm.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=r;let n=Aw(e),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,l=Ew(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=Rw(l),l},Tw="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",Ow=new RegExp(`<(${Tw})\\b([^>]*?)\\s*/>`,"g"),Rw=t=>t.replace(Ow,"<$1$2></$1>");var nn={};I(nn,{appendSVGSprite:()=>As,appendSvgIconsSprite:()=>Ts,applyDocument:()=>Cs,applyHeadings:()=>Da,applyReset:()=>Os,applySpacingSequence:()=>Ss,applyTimingSequence:()=>vs,applyTypographySequence:()=>bs,checkIfBoxSize:()=>_s,getColor:()=>rt,getFontFamily:()=>ys,getFontSizeByKey:()=>xs,getMediaColor:()=>mt,getMediaTheme:()=>Ht,getShadow:()=>ks,getSpacingBasedOnRatio:()=>ne,getSpacingByKey:()=>pt,getTheme:()=>ds,getTimingByKey:()=>Dt,getTimingFunction:()=>Gt,runThroughMedia:()=>Fa,setColor:()=>Ke,setFont:()=>ms,setFontFamily:()=>en,setGradient:()=>Ye,setMediaTheme:()=>gs,setSVG:()=>rn,setShadow:()=>Xe,setSvgIcon:()=>Es,setTheme:()=>hs,splitSpacedValue:()=>ws});O();var rt=(t,e,r)=>{let n=r||A();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(at(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(T(t))[o,s,i]=t;else{let u=Ce(t);if(!u){let{color:p,gradient:d}=n,g=d[t]||p[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;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;if(!f){let u=n.useVariable?`var(${l.var})`:l.value;if(s&&u){let p=Math.round(parseFloat(s)*100);return`color-mix(in srgb, ${u} ${p}%, transparent)`}return u}return i&&!l[i]&&(f=We(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})`},mt=(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(at(t))return`var(${t})`;let o,s,i;if(T(t))o=t[0];else{let u=Ce(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 rt(t,`@${e}`,r);if(f){if(n.useVariable&&l.var)return s||i?rt(t,null,r):`var(${l.var})`;if(e)return rt(t,`@${e}`,r);{let u={};for(let p in l){if(p.charCodeAt(0)!==64)continue;let d=n.media[p.slice(1)];if(!d)continue;let g="@media "+(d==="print"?`${d}`:`screen and ${d}`);u[g]=rt(t,p,r)}return u}}else return n.verbose&&console.warn("Can't find color",t),t},Ke=(t,e,r)=>{let n=A();if(S(t)&&at(t)){let h=t.slice(2);if(t=rt(h),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.split(" "),y=n.color[m[0]];if(y&&!y.value&&!y.rgb&&(S(y)||T(y)||w(y))&&(n.color[m[0]]=Ke(y,m[0]),y=n.color[m[0]]),y&&y.value){let b=y.rgb,x=m[1]!==void 0?m[1]:"1",_=m[2];_&&(b=We(b,_)),t=`rgba(${b}, ${x})`}else{let b=m[2],x=m[1]!==void 0?m[1]:"1";if(b)try{let _=pe(m[0]);_&&_.length>=3?t=`rgba(${We(_.slice(0,3).join(", "),b)}, ${x})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(T(t)&&(t={"@light":t[0],"@dark":t[1]}),w(t)){let h={};for(let m in t)h[m]=Ke(t[m],e,m.slice(0,1)==="@"?m.slice(1):m);if(n.useVariable){let y=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`,b,x={};for(let _ in h){if(_.charCodeAt(0)!==64)continue;let C=_.slice(1),R=h[_],P=R&&(R.value||R);!P||typeof P!="string"||(x[C]=P,(C==="light"||b===void 0)&&(b=P))}if(b!==void 0){n.cssVars[y]=b,n.cssMediaVars||(n.cssMediaVars={});for(let _ in x){let C=`[data-theme="${_}"]`;if(n.cssMediaVars[C]||(n.cssMediaVars[C]={}),n.cssMediaVars[C][y]=x[_],_==="light"||_==="dark"){let R=`@media (prefers-color-scheme: ${_})`;n.cssMediaVars[R]||(n.cssMediaVars[R]={}),n.cssMediaVars[R][y]=x[_]}}h.var=y}}return h}let s=`--${n.varPrefix?n.varPrefix+"-":""}color-${e}`+(r?`-${r}`:""),i=t.value||t;if(S(i)&&i.includes(".")&&!i.includes("(")){let[h,m]=i.split("."),y=n.color[h];y&&y.rgb&&(i=`rgba(${y.rgb}, ${parseFloat("0."+m)||1})`)}if(S(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Ce(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=n.color[h.name];m&&!m.value&&!m.rgb&&(S(m)||T(m)||w(m))&&(n.color[h.name]=Ke(m,h.name));let y=n.color[h.name];if(y&&y.rgb){let b=y.rgb;h.tone&&(b=We(b,h.tone));let x=h.alpha?parseFloat(h.alpha):1;i=`rgba(${b}, ${x})`}}}let a=pe(i),[c,l,f,u=1]=a,p=parseFloat(u.toFixed(2)),d=`${c}, ${l}, ${f}`,g=`rgba(${d}, ${p})`;return n.useVariable&&(n.cssVars[s]=g),{var:s,rgb:d,alpha:p,value:g}},Ye=(t,e,r)=>{let n=A();if(S(t)&&at(t)&&(t=rt(t.slice(2))),T(t))return{"@light":Ye(t[0],e,"light"),"@dark":Ye(t[0],e,"dark")};if(w(t)){let i={};for(let a in t)i[a]=Ye(t[a],e,a.slice(0,1)==="@"?a.slice(1):a);return 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 Pw=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"]),om=["color","Color","background","Background","fill","Fill","stroke","Stroke"],Iw=t=>{for(let e=0;e<om.length;e++)if(t.includes(om[e]))return!0;return!1},$a=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?rt(t[a]):t[a]}),e},ps=t=>(t.value||(t.value=$a(t)),t.value),ds=(t,e)=>{let r=A();if(r.useVariable)return Ht(t,e);let n=r.theme;if(S(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return ps(i);t=[o,s||e]}}if(j(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return ps(a[s]);if(i&&i[s])return ps(i[s]);if(c&&c[s])return ps(c[s])}else if(w(t))return $a(t)},$w=(t,e,r)=>{if(w(e))t.variants.inverse.value=$a(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},Fw=(t,e,r,n)=>{let o=ds(r);n[`&:${e}`]=o,w(r)&&!r.value&&(r.value=o)},Dw=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return Fw(t,o,s,e),t}),t):void 0},Lw=(t,e,r,n)=>{let o=ds(r);n[`@media (prefers-color-scheme: ${e})`]=o,w(r)&&!r.value&&(r.value=o)},Mw=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&Lw(t,o,s,e),o==="inverse"&&$w(t,s,e),t}),t):void 0},Nw=(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]:ps(n[s]),t}),t):void 0},hs=(t,e)=>{let r=A();if(r.useVariable)return gs(t,e);let{state:n,media:o,helpers:s}=t,i=$a(t,e),c=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}`;return Dw(t,i),Mw(t,i),Nw(t,i),{var:c,value:i,state:n,media:o,helpers:s}};var fp=(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===":")&&Iw(l))for(let u in t){if(c.has(u))continue;let p=t[u]?.[l];if(p===void 0)continue;let d=rt(p,`@${u}`);d!==void 0&&S(d)&&/^[a-z][a-zA-Z]+$/.test(d)&&!Pw.has(d)&&c.add(u)}}for(let l of a){let f=l.slice(0,1),u=Object.values(t).some(p=>j(p?.[l]));if(f==="."&&u){let p=l.slice(1),d={};for(let g in t)j(t[g]?.[l])&&(d[g]=t[g][l]);i[l]=fp(d,`${e}-${p}`,r)}else if(f===":"&&u){let p=l.replace(/^:+/,""),d={};for(let g in t)j(t[g]?.[l])&&(d[g]=t[g][l]);i[l]=fp(d,`${e}-${p}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let d=`--${r.varPrefix?r.varPrefix+"-":""}theme-${e}-${l}`,g=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let m in t){if(c.has(m))continue;let y=t[m]?.[l];if(y===void 0)continue;let b=rt(y,`@${m}`);if(b===void 0)continue;(g&&m===g||!g&&(m==="light"||h===void 0))&&(h=b);let x=`[data-theme="${m}"]`;if(o[x]||(o[x]={}),o[x][d]=b,m==="dark"||m==="light"){let _=`@media (prefers-color-scheme: ${m})`;o[_]||(o[_]={}),o[_][d]=b}}h!==void 0&&(n[d]=h),i[l]=`var(${d})`,i[`.${l}`]={[l]:i[l]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},gs=(t,e,r,n)=>{let o=A(),{cssVars:s}=o,i={value:t},a=!r&&!n;if(j(t)){if(a&&o.useVariable){let c={};for(let l in t)l.startsWith("@")&&j(t[l])&&(c[l.slice(1)]=t[l]);if(Object.keys(c).length){let l=fp(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]=gs(f,e,c,n||u)}else if(!a){let u=rt(f,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(S(t)&&at(t)){let l=o.theme[t.slice(2)];return Ht(l,n)}return i},up=t=>{let e=A(),r={};for(let n in t){let o=n.slice(0,1);if(j(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=up(t[n]):o==="."&&(r[`&${n}`]=up(t[n]))}else r[n]=t[n]}return r},im=(t,e)=>{let r=e.shift();return t[r]?im(t[r],e):t},sm=(t,e)=>T(e)?im(t,e):S(e)&&t[e]?t[e]:t;var Ht=(t,e)=>{let r=A();if(S(t)&&at(t)&&(t=Ht(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=sm(s,o):s&&e&&(s=sm(s,e)),up(s)};O();O();var ms=(t,e)=>{let r=A(),n=`--font-${e}`;if(!t||T(t)&&!t[0])return;let o;if(t.isVariable){let s=Wt(t.url,r.files)||t.url;Jr(s)?o=Zr(s):o=He(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=kr(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Wt(i,r.files)||i):Wt(t.url,r.files)||t.url;o=He(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},ys=(t,e)=>{let r=A(),{fontFamily:n}=r;return wr(e||n,t)},en=(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=Sr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};O();var Fa=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:p,subSequence:d,h1Matches:g,unit:h}=t;it(i,{type:l,base:f,ratio:u,range:p,subSequence:d,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,b=!i.unit&&m.has(h)?"rem":y,x=n[c],_="@media "+(x==="print"?`${x}`:`screen and ${x}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+b},!a){it(i,{sequence:{},scales:{},vars:{}}),Pt(i),Ge(t,o);continue}it(i,{sequence:{},scales:{},templates:{},vars:{}}),Pt(i),Ge(t,o)}},Da=t=>{let e=A();if(t.h1Matches){let r=t.unit,n=ls(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;Pt(e),Da(e),Oe(e),Fa(e)},xs=t=>{let e=A(),{typography:r}=e;return me(t,"fontSize",r)};O();O();var jw=t=>{let r=A().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return Pt(o),o},Bw=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:{}}),Pt(r),Ge(t,e)}},_s=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},Ss=()=>{let t=A(),{spacing:e}=t;Pt(e),Oe(e),Bw(e)},Vw=t=>{let e=A(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Pt(t)},pt=(t,e="padding",r,n)=>{let o=Vw(r);if(S(t)){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!n&&t.includes("(")){let i=Te(t);n=i[0],t=i[1]}}let s=n?[t]:Sr(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)=>me(s[f],e+l+i,o,n);return a[s.length].map((l,f)=>c(l,f))}return me(t,e,o,n)}},ne=(t,e,r,n)=>{let o=A(),{spacing:s}=o,i=r||t[e];if(S(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!n&&S(i)&&i.includes("(")){let a=Te(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=jw(t);return pt(i,e,a,n)}return pt(i,e,s,n)},ws=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Ir.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 Xe=(t,e,r,n)=>{let o=A();if(T(t))return{"@light":Xe(t[0],e,"light"),"@dark":Xe(t[1],e,"dark")};if(w(t)){let a={};for(let c in t)a[c]=Xe(t[c],e,c.startsWith("@")?c.slice(1):c);return a}S(t)&&!re.test(t)&&(t=Ae(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=rt(c);if(de(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}},ks=(t,e)=>{let r=A();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(at(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){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let l=r.media[c.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);a[f]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};O();var vs=()=>{let t=A(),{timing:e}=t;Pt(e),Oe(e)},Gt=t=>{let e=A(),{timing:r}=e;return r[t]||r[Ko(t)]||t},Dt=(t,e="timing")=>{let r=A(),{timing:n}=r;return me(t,e,n)};O();var Cs=()=>{let t=A(),{document:e,fontFamily:r,theme:n,typography:o}=t;return it(e,{theme:n.document,fontFamily:wr(r),fontSize:o.base,lineHeight:o.lineHeight})};O();var dp={document:K},rn=(t,e)=>{let r=A();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?us(e,t):t},As=(t,e=dp)=>{let r=A(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=t[o];cm(n,e)},Es=(t,e)=>{let r=A();return r.useIconSprite&&!r.semanticIcons?.[e]?rn(t,e):t},Ts=(t,e=dp)=>{let r=A(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=t[o];cm(n,e)},pp=(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},Uw=(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},am=(t,e,r)=>{for(;e.firstChild;){let n=e.firstChild;r.appendChild(t.importNode(n,!0)),n.remove()}},cm=(t,e=dp)=>{let r=A(),n=e.document||K;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),tn(t);let o=n.querySelector("#svgSprite"),s=tn(t),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=Uw(n,s);if(o)if(a)am(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let c=pp(n,{isRoot:!1});c.innerHTML=s,o.append(...c.children)}else if(a){let c=pp(n);c&&c.nodeType&&(am(n,a,c),n.body.prepend(c))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let c=pp(n);c&&c.nodeType&&(c.innerHTML=s,n.body.prepend(c))}};O();var Os=(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?Ht("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?Ht("document"):{};if(r.html&&Tt(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,p=f.base||n.base,d=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=p/d+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 zw=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),Ww=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),Hw=t=>zw.has(t),ye=t=>{let e=t+"";if(re.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(at(o))return`var(${o})`;if(Hw(o)||/^\d/.test(o)||o==="0")return o;let s=rt(o);if(de(s))return s;let i=pt(o,"border");return i&&i.border?i.border:o}).join(" ")},La=t=>re.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(at(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=rt(e);return de(r)?r:e}).join(" "),Ma=(t,e)=>ks(t,e),Rs=(t,e)=>re.test(t)?t:Ae(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(at(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=rt(n);if(de(o)){let i=mt(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(", "),Ps=(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=Ae(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||Ww.has(f)||f==="transparent"||re.test(f))return f;let u=rt(f);return de(u)?u:f}).join(" ")));return n+a.join(", ")+s},Na=(t,e)=>{let r=A();return Ae(t).map(n=>{let o=n.trim();return at(o)?`var(${o})`:/^var\(/.test(o)||o.includes("url")?o:o.includes("gradient")?Ps(o,e):r.gradient[t]?{backgroundImage:mt(t,e||r.globalTheme)}:o.includes("/")||o.startsWith("http")||o.includes(".")&&!Ce(o)?`url(${o})`:o}).join(", ")},ja=t=>S(t)&&t.split(" ").map(e=>pt(e,"gap").gap).join(" "),hp=t=>{let e=t.split(" ");return e.length?e.map(r=>at(r)?`var(${r})`:r.length<3||r.includes("ms")?Dt(r).timing||r:Gt(r)?Gt(r):r).join(" "):t},Is=(t,e,r)=>{if(S(t))return t.split(",").map(n=>Dt(n).timing||n).join(",")},Ba=t=>{let e=t.split(",");if(e.length)return e.map(hp).join(",")};function ct(t,e,r={},n={}){let o=tt.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=Te(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=_s(t);!i&&a&&!n.ratio&&(o=ws(o))}return n.ratio?ne(r,t,o,s):pt(o,t,void 0,s)}var L=(t,e=null,r)=>ct(t,e,r,{ratio:!0}),$s=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>ne(e,r,n)[r]).join(" ")}};O();var Gw=(t,e)=>{let r=A(),{cssVars:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Lt=t=>t,Va={color:Ke,gradient:Ye,font:ms,fontFamily:en,fontfamily:en,theme:hs,icons:Es,semanticIcons:Lt,semanticicons:Lt,svg:rn,svgData:Lt,typography:Lt,shadow:Xe,spacing:Lt,media:Lt,grid:Lt,class:Lt,timing:Lt,reset:Lt,unit:Lt,animation:Lt,vars:Gw,sizes:Lt},gp=(t,e,r)=>{let n=A(),o=rs(t),s=o.toLowerCase(),i=n[o]||n[s]||n[t],a=Va[o]||Va[s];if(a)try{let c=a(e,r);return i&&(i[r]=c),i}catch(c){n.verbose&&console.warn("Error setting",s,"value",e,r,c)}n.verbose&&console.warn("Can not find",s,"method in scratch")},mp=(t,e)=>{let r=A(),n=t.toLowerCase();return 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 gp(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]},Ua=(t,e)=>{let r=e||A();r.globalTheme=t;let o=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=r.themeRoot||o.documentElement;if(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 p in r.cssVars)f[u].style.setProperty(p,r.cssVars[p]);return r}}catch{}}return r},qw={},vr=(t,e=qw)=>{let r=e.config||A(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:p,useDefaultConfig:d,semanticIcons:g,files:h,assets:m,...y}=t;e.newConfig&&(r=Ta(e.newConfig)),h!==void 0&&(r.files=h),m!==void 0&&(r.assets=m),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),p!==void 0&&(r.useDocumentTheme=p),f!==void 0&&(r.globalTheme=f),u!==void 0&&(r.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),d!==void 0&&(r.useDefaultConfig=d),g!==void 0&&(r.semanticIcons=g),r.verbose&&console.log(r);let x=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),_=x&&x.defaultView||(typeof window<"u"?window:null),C=x&&(r.themeRoot||x.documentElement);if(C&&typeof C.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")C.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?C.style.colorScheme=r.globalTheme:C.style.colorScheme="light dark";else if(_&&_.matchMedia){let $=G=>{C.setAttribute("data-theme",G.matches?"dark":"light")},U=_.matchMedia("(prefers-color-scheme: dark)");if($(U),C.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=$;try{U.addEventListener("change",$)}catch{U.addListener($)}}}else C.setAttribute("data-theme","light"),C.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let R=Object.keys(y),P=new Set(R);if(R.forEach(E=>{let $=E.toLowerCase();$!==E&&P.has($)&&X(y[$],y[E])}),R.map(E=>{let $=E.toLowerCase();if(!($!==E&&P.has($)))return mp(E,y[E])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{bs()}catch(E){r.verbose&&console.warn("Error applying typography sequence",E)}if(y.spacing)try{Ss()}catch(E){r.verbose&&console.warn("Error applying spacing sequence",E)}if(y.timing)try{vs()}catch(E){r.verbose&&console.warn("Error applying timing sequence",E)}Cs();let V=Os();return V&&(r.reset=V),r};var Cr=new Map,pm=null,xp=null,Kw=null;function Fs(t){t.batchAtomicCss&&(xp=t.batchAtomicCss),t.compoundCssClass&&(Kw=t.compoundCssClass)}var Yw=new Set;function _p(t){try{let e=A();e&&(e.document=t)}catch{}t&&Yw.add(t)}function Wa(){try{let t=A();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var Xw={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 Ar(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function za(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 Jw(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():za(e)}function lm(t,e,r){let n=(r?r+"":"")+t+":"+e,o=Cr.get(n),s=o?null:Ar(t);if(!o){let a=Xw[t]||za(t),c=Jw(e);o=r?`_${r}_${a}-${c}`:`_${a}-${c}`,Cr.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ar(t)}:${e}}`;return qt(i),o}var fm=new WeakMap;function qt(t,e){let r=dm(e);if(!r)return;let n=fm.get(r);if(n||(n=new Set,fm.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var um=new WeakMap;function dm(t){let e=t||Wa();if(!e||!e.head)return null;let r=um.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 um.set(e,o),pm=o,o}var Zw=8;function oe(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]):xp?(n||(n=[]),n.push(c,String(l)),o++):s.push(lm(c,String(l),r)))}if(n&&o>=Zw){let c=n.join("\0"),l=xp(c),f=l.indexOf("\0"),u=l.substring(0,f),p=l.substring(f+1);if(p){let d=p.split(`
40
+ `);for(let g=0;g<d.length;g++)d[g]&&qt(d[g])}s.push(u)}else if(n)for(let c=0;c<n.length;c+=2)s.push(lm(n[c],n[c+1],r));let a=[];for(let c=0;c<i.length;c++)a.push(Qw(i[c][0],i[c][1],r));return s.concat(a).join(" ").trim()}var bp=new Map;function Qw(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=Cr.get(n);if(o){let p=bp.get(o);if(p)for(let d=0;d<p.length;d++)qt(p[d]);return o}o=r?`_${r}_c${za(n)}`:`_c${za(n)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,d)=>{let g="";for(let h in d){let m=d[h];if(m!=null)if(typeof m=="object")c([...p,h],m);else{if(a(m))continue;g+=`${Ar(h)}:${m};`}}g&&(p.length===0?s+=g:i.push({chain:p,body:g}))};c([],e);let l=p=>{if(!p.length)return`.${o}`;let d=p[0].split(",").map(g=>g.trim()).map(g=>g.includes("&")?g.replace(/&/g,`.${o}`):g.startsWith(":")?`.${o}${g}`:`.${o} ${g}`);for(let g=1;g<p.length;g++){let h=p[g].split(",").map(y=>y.trim()),m=[];for(let y of d)for(let b of h)b.includes("&")?m.push(b.replace(/&/g,y)):b.startsWith(":")?m.push(y+b):m.push(y+" "+b);d=m}return d.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),qt(p)}for(let p of i){let d=l(p.chain),g=`${t}{${d}{${p.body}}}`;f.push(g),qt(g)}return bp.set(o,f),Cr.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),qt(p)}for(let p of i){let g=`${l([t,...p.chain])}{${p.body}}`;f.push(g),qt(g)}return bp.set(o,f),Cr.set(n,o),o}function ft(t){if(dm(),typeof t=="string"){qt(t);return}let e=Object.keys(t),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};e.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of e){let o=t[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let c in i){let l=c.startsWith("--")?c:Ar(c);a+=`${l}:${i[c]};`}qt(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Ar(s);qt(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let c=o[a];if(typeof c=="object"&&c!==null)i=!0;else{let l=a.startsWith("--")?a:Ar(a);s+=`${l}:${c};`}}if(s&&qt(`${n}{${s}}`),i){let a=[],c=[];for(let l in o)typeof o[l]=="object"&&o[l]!==null&&(l.startsWith("@media")||l.startsWith("@supports")?a.push(l):c.push(l));a.sort((l,f)=>{let u=p=>{let d=p.match(/max-width:\s*(\d+)/);return d?parseInt(d[1]):0};return u(f)-u(l)});for(let l of c)ft({[`${n} ${l}`]:o[l]});for(let l of a)ft({[l]:{[n]:o[l]}})}}}}function on(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ar(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return qt(`@keyframes ${t}{${r}}`),t}function hm(){Cr.clear(),pm=null}function Sp(){return Cr.size}O();var od={};I(od,{DELEGATED_EVENTS:()=>fn,LIFECYCLE_EVENTS:()=>Qe,MIXINS:()=>Ha,NON_BUBBLING_EVENTS:()=>Ga,REGISTRY:()=>St,SVG_TAGS:()=>cn,addDelegatedEvent:()=>Ds,addMethods:()=>gn,applyExtends:()=>pn,cacheNode:()=>Ze,create:()=>Kt,createHTMLNode:()=>an,detectTag:()=>Je,dispose:()=>tr,flushMounts:()=>Xa,isSvgTag:()=>ln,isValidTag:()=>sn,registerEvent:()=>un,remove:()=>hn,removeDelegatedEvent:()=>Ls,update:()=>dn});var kp="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"]),t0=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 sn(t){return t0.has(t)||cn.has(t)}function ln(t){return cn.has(t)}function Je(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&sn(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]),sn(o)&&!n.has(o)?o:"div"}var gm={};function an(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(ln(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===kp)return r.createElementNS(kp,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function Ze(t){let e=t.tag=Je(t),n=ln(e)&&(e==="svg"||t.parent?.node?.namespaceURI===kp)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=gm[n];if(s||(s=gm[n]=an(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?an(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var St=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"]),Ha={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Qe=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"]),Ga=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"]),mm=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),fn=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 vp=new WeakMap,e0={passive:!0},r0={passive:!0,capture:!0},Cp=(t,e)=>mm.has(t)?e?r0:e0:e||!1;function bm(t){let e=vp.get(t);return e||(e={handlers:new Map,installed:new Set},vp.set(t,e)),e}function n0(t,e){let r=bm(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}},Cp(t,n))}function Ds(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=bm(n);n0(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function Ls(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=vp.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function ym(t){return fn.has(t)&&!Qe.has(t)}function un(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=c=>{s&&et(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=Ga.has(t);if(!a&&ym(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ds(t,n,i,c)}else n.addEventListener(t,i,Cp(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!a&&ym(t)){let c=o?.rootNode||n.ownerDocument?.documentElement;Ls(t,n,c)}else n.removeEventListener(t,i,Cp(t,!1))})}function xm(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 pn(t,e,r){let n=xm(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let a=_m(n[i],s);a&&a!==e&&Sm(t,a,r,new Set([e]))}}function _m(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 Sm(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=xm(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let a=0;a<o.length;a++){let c=_m(o[a],i);c&&Sm(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]=wm(t[s],i):t[s]=i}}function wm(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]=wm(o,s):r[n]=s}return r}Br();function dn(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(Se(()=>{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,i===!0?"":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(St.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&&Kt(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 yt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}function tr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&tr(o)}e.__children.length=0}if(t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function hn(){tr(this)}O();O();var o0=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],s0=["none","forwards","backwards","both"],i0=["normal","reverse","alternate","alternate-reverse"],a0=["running","paused"],c0=t=>/^[\d.]+m?s$/.test(t),l0=0,km=new Map,Ap=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(w(t)){let o=JSON.stringify(t),s=km.get(o);if(s)return s;let i=`smbls-anim-${l0++}`,a=on(i,t);return km.set(o,a),a}let n=r&&r[t];return w(n)?on(t,n):t},f0=(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:c0(u)?s.push(u):o0.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):i0.includes(u)?c=u:s0.includes(u)?l=u:a0.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:l,playState:f}},Ep={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=f0(t,e);return{animationName:Ap(r.name||t,e),animationDuration:r.durations[0]||Dt(e.animationDuration||"A").timing,animationDelay:r.durations[1]||Dt(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Gt(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:Ap(t,e),animationDuration:Dt(e.animationDuration||"A").timing,animationDelay:Dt(e.animationDelay||"0s").timing,animationTimingFunction:Gt(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Ap(t,e)}),animationDuration:t=>({animationDuration:Dt(t).timing}),animationDelay:t=>({animationDelay:Dt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Gt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};O();var Tp={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>L("height",t,e),width:(t,e)=>L("width",t,e),boxSizing:t=>dt(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("height",e),...ct("width",r||e)}},inlineSize:(t,e)=>L("inlineSize",t,e),blockSize:(t,e)=>L("blockSize",t,e),minWidth:(t,e)=>L("minWidth",t,e),maxWidth:(t,e)=>L("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minWidth",e),...ct("maxWidth",r||e)}},minHeight:(t,e)=>L("minHeight",t,e),maxHeight:(t,e)=>L("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minHeight",e),...ct("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...L("inlineSize",e),...L("blockSize",r||e)}},minBlockSize:(t,e)=>L("minBlockSize",t,e),minInlineSize:(t,e)=>L("minInlineSize",t,e),maxBlockSize:(t,e)=>L("maxBlockSize",t,e),maxInlineSize:(t,e)=>L("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("minInlineSize",e),...ct("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("maxInlineSize",e),...ct("maxBlockSize",r||e)}},borderWidth:(t,e)=>L("borderWidth",t,e),borderTopWidth:(t,e)=>L("borderTopWidth",t,e),borderRightWidth:(t,e)=>L("borderRightWidth",t,e),borderBottomWidth:(t,e)=>L("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>L("borderLeftWidth",t,e),padding:(t,e)=>L("padding",t,e),scrollPadding:(t,e)=>L("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("paddingInlineStart",e),...ct("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("paddingBlockStart",e),...ct("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>L("paddingBlockStart",t,e),paddingBottom:(t,e)=>L("paddingBlockEnd",t,e),paddingLeft:(t,e)=>L("paddingInlineStart",t,e),paddingRight:(t,e)=>L("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>L("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>L("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>L("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>L("paddingInlineEnd",t,e),margin:(t,e)=>L("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...ct("marginInlineStart",e),...ct("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...ct("marginBlockStart",r),...ct("marginBlockEnd",n||r)}},marginTop:(t,e)=>L("marginBlockStart",t,e),marginBottom:(t,e)=>L("marginBlockEnd",t,e),marginLeft:(t,e)=>L("marginInlineStart",t,e),marginRight:(t,e)=>L("marginInlineEnd",t,e),marginInlineStart:(t,e)=>L("marginInlineStart",t,e),marginInlineEnd:(t,e)=>L("marginInlineEnd",t,e),marginBlockStart:(t,e)=>L("marginBlockStart",t,e),marginBlockEnd:(t,e)=>L("marginBlockEnd",t,e),gap:t=>({gap:ja(t)}),columnGap:(t,e)=>ne(e,"columnGap",t),rowGap:(t,e)=>ne(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)=>$s(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>$s(t??e.round,e,"borderRadius")};var Op={fontSize:t=>xs(t)||t,fontFamily:t=>({fontFamily:ys(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 Rp={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 Yt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Ip={theme:(t,e)=>{if(t)return e.themeModifier?Ht(t,`@${e.themeModifier}`):Ht(t)},color:(t,e)=>{let r=Yt(e);if(t)return{color:mt(t,r)}},background:(t,e)=>{let r=Yt(e);if(t)return S(t)&&t.includes("gradient")?{background:Ps(t,r)}:{background:mt(t,r)}},backgroundColor:(t,e)=>{let r=Yt(e);if(t)return{backgroundColor:mt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Yt(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{backgroundImage:Na(t,o)}},textStroke:t=>({WebkitTextStroke:La(t)}),outline:t=>({outline:ye(t)}),outlineOffset:(t,e)=>L("outlineOffset",t,e),border:t=>({border:ye(t)}),borderColor:(t,e)=>{let r=Yt(e);if(t)return{borderColor:mt(t,r)}},borderTopColor:(t,e)=>{let r=Yt(e);if(t)return{borderTopColor:mt(t,r)}},borderBottomColor:(t,e)=>{let r=Yt(e);if(t)return{borderBottomColor:mt(t,r)}},borderLeftColor:(t,e)=>{let r=Yt(e);if(t)return{borderLeftColor:mt(t,r)}},borderRightColor:(t,e)=>{let r=Yt(e);if(t)return{borderRightColor:mt(t,r)}},borderLeft:t=>({borderLeft:ye(t)}),borderTop:t=>({borderTop:ye(t)}),borderRight:t=>({borderRight:ye(t)}),borderBottom:t=>({borderBottom:ye(t)}),shadow:(t,e)=>{let r=Yt(e);if(t)return{boxShadow:Ma(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=Yt(e),s=n?" !important":"";return{boxShadow:Rs(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Rs(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:ye(t)})};var Ms={transition:t=>({transition:Ba(t)}),transitionDuration:t=>({transitionDuration:Is(t)}),transitionDelay:t=>({transitionDelay:Is(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Gt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};O();var $p={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 Fp={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 gt={...Ep,...Tp,...Op,...Rp,...Pp,...Ip,...Ms,...$p,...Fp};var bt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);O();var u0=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,p0=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=t.slice(1),s=n.designSystem.media[o],i=Mt(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(u0),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},vm=(t,e,r)=>({[t]:Mt(e,r)}),Ns=(t,e,r)=>{let n=`&${t}`,o=Mt(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}},Dp=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},d0=(t,e,r)=>{let n=t.slice(1),o=Dp(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Mt(e,r)},h0=(t,e,r)=>({[t]:e}),g0=(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=Dp(n,r);s!==void 0&&(o=s)}if(o)return Mt(e,r)},m0=(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=Dp(n,r);s!==void 0&&(o=s)}if(!o)return Mt(e,r)},Lp=(t,e)=>Mt(t,e),Mp={"@":p0,":":Ns,"[":Ns,"*":Ns,"+":Ns,"~":Ns,"&":vm,">":vm,$:d0,"-":h0,".":g0,"!":m0};var Np=Ne(),Cm=(t,e,r)=>{let n=e?.context?.designSystem;n&&et(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((p,d)=>it(p,f[d]),{});o.designSystemClass=u}}else if(a==="true"){let l=tt(c,e);it(o,Lp(l,e))}else if(e.classlist[a]){let l=e.classlist[a],f=v(l)?l(e,e.state,e.context):l;f&&i(a,f),!Np&&w(o[a])&&(o[a].label=a)}else if(gt[a]){let l=tt(c,e);T(l)&&(l=l.reduce((u,p)=>it(u,p),{}));let f=gt[a](l,e,e.state,e.context);T(f)&&(f=f.reduce((u,p)=>it(u,p),{})),f&&i(a,f),!Np&&w(o[a])&&(o[a].label=a)}else if(bt.has(a)){let l=tt(c,e);typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),i(a,{[a]:l}),!Np&&w(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{n&&J()}},Am=(t,e)=>{let r={};for(let n in t){let o=Mp[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"?Tt(r[i],s[i]):r[i]=s[i])}}return r},Mt=(t,e,r={unpack:!0})=>{let[n,o]=Cm(t,e,r),s=Am(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return Qn(n,s);n._selectors=s}return n},y0=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};O();var Em=t=>{if(w(t))return Mt(t,t)},b0=(t,e)=>{let r=Em(t);return typeof e=="function"?e(r):oe(r)};O();function Rm(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})}function x0(...t){return Rm(this,"warn",t),jo.apply(this,t)}function _0(...t){return Rm(this,"error",t),_r.apply(this,t)}var Tm={update:dn,remove:hn,getDB:zo,getQuery:Wo,getRootData:Lo,getChildren:Po,getPath:Io,nextElement:Bo,previousElement:Vo,verbose:Hr,warn:x0,error:_0,variables:Uo,spotByPath:Ro,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},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:Do,getRootState:Fo,getRootContext:Mo,getContext:No,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)},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)}},Om=new WeakMap;function S0(t){if(!t)return Tm;let e=Om.get(t);if(e)return e;e=Object.create(Tm);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return Om.set(t,e),e}function gn(t){let e=S0(t.context);Object.setPrototypeOf(t,e)}O();Br();var zp={};I(zp,{STATE_METHODS:()=>Pm,applyInitialState:()=>qa,applyStateMethods:()=>Nt,createState:()=>Bp,isTracking:()=>Up,useHostState:()=>Vp});var Pm=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"]),w0=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},Nt=(t,e)=>{if(st(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value: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},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(e);return e.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=e;for(;a?.parent&&st(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),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)typeof e[o]!="function"&&w0(e,o,n[o])};var Bp=function(t,e,r){return t.state=qa(t,e,r),t.state},qa=function(t,e,r){let{__ref:n}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Nt(t,s),s}if(typeof o=="string")return n&&(n.__state=o),n.__stateType="string",k0(o,t,e);if(typeof o=="number"||typeof o=="boolean"){n&&(n.__state=o,n.__stateType=typeof o,n.__hasRootState=!0);let s=Ft({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Nt(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=Ft({...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)),Nt(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,r),s}return st(o)?(o.__element=t,o):e?.state||{}};function jp(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 k0(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?jp(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?jp(o,s):o??{}}let n=jp(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 Vp=(t,e)=>{if(!t)return $m;let r=C0(t,e);return!r||!r.state?$m:E0(r.state)},Up=()=>lr()!=null,v0=128;function C0(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<v0&&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 A0={get(t,e){return t[e]}},Im=new WeakMap,E0=t=>{let e=Im.get(t);return e||(e=new Proxy(t,A0),Im.set(t,e)),e},$m=new Proxy(Object.create(null),{get(){},has(){return!1}});O();var T0=["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"],Ka={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"]},Dm=["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"],Gp=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()):null,rr=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Gp(e)||Ka.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Ka,t)?Ka[t].includes(e):!1,qp=t=>{if(!S(t))return!1;let e=t.toLowerCase();return Dm.includes(e)},O0=(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])At(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(At(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=rr(t,o),i=qp(o);if(At(e[o])&&(s||i)){let a=Gp(o)||o;n[a]=e[o]}}return n},R0=(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},er=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},Wp=(t,e)=>{let r=(t.preSrc||"")+(er(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},Hp={src:t=>Wp(t,t.src),href:t=>er(t,t.href),action:t=>er(t,t.action),poster:t=>Wp(t,t.poster),data:t=>er(t,t.data)},Kp=t=>{let e=t.tag||"div",r={};for(let n in Hp)if(t[n]!==void 0&&rr(e,n)){let o=Hp[n](t);o!==void 0&&(r[n]=o)}return r},Fm=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return v(r)?r.call(e,e):!!r},P0=(t,e,r)=>{if(t==="$"){let o=Fm(e,r);return o===void 0&&(o=!!r[e]),o}let n=r[e]===!0||r.state[e];if(!n){let o=Fm(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},I0=new Set(["$",".","!"]),$0=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let l=i;n[s]=f=>{if(P0(a,c,f))return v(l)?l(f):l}};for(let s in t){let i=s.charAt(0);if(!I0.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 d in a[l])o("aria-"+d,a[l][d],i,c);continue}if(l==="data"&&a[l]&&typeof a[l]=="object"){for(let d in a[l]){let g=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase());o("data-"+g,a[l][d],i,c)}continue}let f=rr(e,l),u=qp(l);if(!f&&!u)continue;let p=Gp(l)||l;o(p,a[l],i,c)}}return n};var F0=1,Ya=[],Zp=!1;function D0(){Zp||(Zp=!0,typeof requestAnimationFrame=="function"?requestAnimationFrame(Xa):setTimeout(Xa,0))}function Xa(){if(Zp=!1,!Ya.length)return;let t=Ya.splice(0,Ya.length);for(let e=0;e<t.length;e++){let r=t[e];!r.node||!r.node.isConnected||Re("Mounted",r,r.__ref?.__mountOptions||{})}}function Bm(t,e){typeof t.onMounted=="function"&&(t.__ref.__mountOptions=e,Ya.push(t),D0())}function Lm(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&yt("contentUpdate",t,e);let r=t.context?.designSystem;r&&et(r);try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(t.context?.plugins?.length&&yt("error",t,{hook:"onContentUpdate",error:n})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',n),t.context?.strictMode)throw n}finally{r&&J()}}function yn(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function L0(t){return t.charAt(2).toLowerCase()+t.slice(3)}function M0(t){return t.toLowerCase()}function Mm(t){let e=t.charCodeAt(0);return e===58||e===64||e===38}function js(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]=js(o,s):r[n]=s}return r}function Kt(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||`_${F0++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=Kt);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 h=r.indexOf("_");if(h>0){let m=r.substring(0,h),y=s.context?.components;y&&(y[m]||y["smbls."+m])&&(t={...t,extends:m})}}pn(s,t,n);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let h in t){if(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")continue;let m=t[h],y=s[h],b=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";b&&h.charCodeAt(0)>=65&&h.charCodeAt(0)<=90?s[h]=js(y,m):b&&a.has(h)?s[h]={...y,...m}:b&&Mm(h)?s[h]=js(y,m):s[h]=m}function l(h){for(let m in h){let y=h[m],b=s[m],x=b&&y&&typeof b=="object"&&typeof y=="object"&&!Array.isArray(b)&&!Array.isArray(y)&&typeof b!="function"&&typeof y!="function";x&&m.charCodeAt(0)>=65&&m.charCodeAt(0)<=90?s[m]=js(b,y):x&&a.has(m)?s[m]={...b,...y}:x&&Mm(m)?s[m]=js(b,y):s[m]=y}}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,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,d=u||p||null;if(t.scope!==void 0||f){let h={};f&&Object.assign(h,f),t.scope!==void 0&&Object.assign(h,t.scope),s.scope=Ln(h,d)}else d&&(s.scope=d);if(t.if!==void 0&&(s.if=t.if),gn(s),N0(s,e,t),s.if!=null){let h;if(typeof s.if=="function")try{h=s.if(s,s.state,s.context)}catch(m){if(h=!1,i.__ifError=m,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,m?.message||m)}}else h=s.if;i.__if=!!h}if(i.__if)typeof s.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof s.if=="function"&&zm(s,i,s.if),s;s.tag||(s.tag=Je(s)),Re("Init",s,n);let g=s.node=Ze(s);if(!g)return s;if(s.tag==="fragment"){let m=(s.context?.document||globalThis.document).createComment("");g.appendChild(m),i.__fragmentAnchor=m}Re("AttachNode",s,n),g.setAttribute&&s.key&&g.setAttribute("data-key",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),Gm(s,n),Um(s),Qp(s),Wm(s),G0(s);try{qm(s,n)}catch(h){if(typeof console<"u"&&console.error){let m=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${m}:`,h?.message||h,h?.stack?`
41
41
  `+h.stack.split(`
42
42
  `).slice(0,6).join(`
43
43
  `):"")}}if(ed(s,!0),rd(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let h=s.context?.designSystem;h&&et(h);try{let m=s.html(s,s.state,s.context);m!=null&&typeof m!="function"&&(s.node.innerHTML=m)}catch{}finally{h&&J()}}if(Re("Create",s,n),Re("Complete",s,n),Re("Render",s,n),Re("RenderRouter",s,n),Bm(s,n),typeof s.onFrame=="function"){let h=s.onFrame,m=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){m&&et(m);try{h(s,s.state,s.context)}catch(b){console.error("[DOMQL] onFrame error:",b)}finally{m&&J()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function N0(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,Nt(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 d in u)c[d]===void 0&&(c[d]=u[d]);let p=new Set(l.languages||[]);for(let d in l.translations)!p.has(d)&&c[d]===void 0&&(c[d]=l.translations[d])}t.state=st(c)?c:Ft(c),t.state.__element=t,t.state.root=t.state,Nt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Nt(t,t.state);return}if(typeof i=="string"){if(t.state=Vm(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})}Nt(t,t.state);return}if(typeof i=="function"){let a=i(t,e?.state);t.state=st(a)?a:Ft(a||{})}else st(i)?t.state=i:t.state=Ft({...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,Nt(t,t.state)}function Yp(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 Vm(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Yp(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Yp(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Yp(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 j0(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"||St.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||yn(a)||gt[a]||bt&&bt.has(a)||rr(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&&et(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 Um(t,e){let r=t.__ref,n=!!(e&&e.skipIfEffect);if(j0(t),typeof t.text=="function"){let s=t.text,i=Q(()=>{if(!r.contentManaged)try{let a=s(t,t.state,t.context);t.node&&a!=null&&typeof a!="function"&&typeof a!="object"&&(typeof a=="string"&&a.includes("{{")&&(a=pr.call(t,a,t.state)),t.tag==="string"?t.node.nodeValue=a:t.node.textContent=a)}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.text=s}else if(typeof t.text=="string"&&t.text.includes("{{")){let s=t.text,i=Q(()=>{if(r.contentManaged)return;let a=pr.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"&&!St.has(s)&&!yn(s)&&!r.__exec[s]){if(gt[s]){let i=t[s],a=s,c,l=Q(()=>{let f=t.context?.designSystem;f&&et(f);try{let u=i(t,t.state,t.context),p=gt[a](u,t,t.state,t.context);if(p&&t.node){let d=Nm(p);(d===null||d!==c)&&(c=d,mn(t.node,p))}else t.node&&(a==="show"||a==="hide")&&(c=void 0,t.node.style.display="")}finally{f&&J()}},{depth:r.path.length});r.__effects.push(l),r.__exec[s]=i}else if(bt&&bt.has(s)){let i=t[s],a=s,c,l=Q(()=>{let f=t.context?.designSystem;f&&et(f);try{let u=i(t,t.state,t.context);if(t.node)if(u!=null){let p=a+":"+String(u);p!==c&&(c=p,mn(t.node,{[a]:u}))}else c=void 0,t.node.style[a]=""}finally{f&&J()}},{depth:r.path.length});r.__effects.push(l),r.__exec[s]=i}}if(typeof t.html=="function"){let s=t.html,i=Q(()=>{let a=t.context?.designSystem;a&&et(a);try{let c=s(t,t.state,t.context);t.node&&c!=null&&typeof c!="function"&&(t.node.innerHTML=c)}finally{a&&J()}},{depth:r.path.length});r.__effects.push(i),r.__exec.html=s}if(typeof t.value=="function"){let s=t.value,i=Q(()=>{try{let a=s(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let c=a==null?"":String(a);if(t.node.value===c)return;let l=typeof document<"u"&&document.activeElement===t.node,f=l&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,u=l&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=c,l&&f!=null&&u!=null)try{t.node.setSelectionRange(f,u)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(i),r.__exec.value=s}if(typeof t.style=="function"){let s=t.style,i,a=Q(()=>{let c=s(t,t.state,t.context),l=Nm(c);(l===null||l!==i)&&(i=l,mn(t.node,c))},{depth:r.path.length});r.__effects.push(a),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,c=Q(()=>{try{let l=i(t,t.state,t.context);if(t.node){let f=s+":"+String(l);f!==a&&(a=f,mn(t.node,{[s]:l}))}}catch{}},{depth:r.path.length});r.__effects.push(c)}if(t.attr&&typeof t.attr=="object"){for(let s in t.attr)if(typeof t.attr[s]=="function"){let i=t.attr[s],a=s,c=Q(()=>{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){let i=t.aria[s];if(typeof i!="function")continue;let a="aria-"+s.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),c=Q(()=>{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){let i=t.data[s];if(typeof i!="function")continue;let c="data-"+s.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),l=Q(()=>{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){let i=o[s];if(typeof i!="function")continue;let a=Q(()=>{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"&&zm(t,r,t.if);for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||St.has(s)||typeof t[s]!="function")continue;let i=s.charCodeAt(0);if(i>=65&&i<=90||yn(s))continue;let a=t[s];r.__exec[s]=a;let c=t.tag||"div";if(rr(c,s)&&!gt[s]&&!(bt&&bt.has(s))){let l=s,f=Q(()=>{try{let u=a(t,t.state,t.context);t.node?.setAttribute&&(u==null||u===!1?t.node.removeAttribute(l):typeof u!="function"&&typeof u!="object"&&(l==="src"&&"src"in t.node?t.node.src=u:t.node.setAttribute(l,u===!0?"":u)))}catch{}},{depth:r.path.length});r.__effects.push(f)}}if(U0(t),z0(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let s=t.onStateUpdate,i=t.stateDeps,a=!1,c=[],l=Q(()=>{let f=[];for(let g=0;g<i.length;g++){let h=i[g];try{f[g]=typeof h=="function"?h(t,t.state,t.context):t.state?.[h]}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 p=c;if(c=f,!u)return;let d=t.context?.designSystem;d&&et(d);try{s(t,t.state,t.context,{prev:p,next:f})}catch(g){if(t.context?.plugins?.length&&yt("error",t,{hook:"onStateUpdate",error:g})||console.error('[DOMQL] Lifecycle "onStateUpdate" error:',g),t.context?.strictMode)throw g}finally{d&&J()}},{depth:r.path.length});r.__effects.push(l)}}function zm(t,e,r){let n=Q(()=>{let o;try{o=r(t,t.state,t.context)}catch(i){if(o=!1,e.__ifError=i,typeof console<"u"&&console.warn){let a=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${a} \u2014 treating as false:`,i?.message||i)}return}let s=e.__if;if(e.__if=!!o,s&&!e.__if&&t.node)t.node.remove();else if(!s&&e.__if)if(e.__ifInitialized){t.node||(t.node=Ze(t)),t.node&&(t.node.ref=t);let i=t.parent,a=i?.node;if(a&&t.node){let c=null,l=Object.keys(i),f=l.indexOf(t.key);for(let u=f+1;u<l.length;u++){let p=i[l[u]];if(p?.node?.parentNode===a){c=p.node;break}}c?a.insertBefore(t.node,c):a.appendChild(t.node)}else rd(t,t.parent);Qp(t)}else{if(e.__ifInitialized=!0,t.tag||(t.tag=Je(t)),Re("Init",t,{}),t.node||(t.node=Ze(t)),!t.node)return;if(t.tag==="fragment"&&!e.__fragmentAnchor){let a=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(a),e.__fragmentAnchor=a}Re("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),Gm(t,{}),Um(t,{skipIfEffect:!0}),Qp(t),Wm(t),qm(t,{}),rd(t,t.parent),Bm(t,{})}},{depth:e.path.length});e.__effects.push(n)}function Qp(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),H0(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"&&mn(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 Nm(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function mn(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&&V0(t,r)}var B0=0;function V0(t,e){let r=`_ds${B0++}`;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 p in l){let d=l[p];if(typeof d=="object"){let g=p.includes("&")?c.split(", ").map(m=>p.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${p}`).join(", "),h="";for(let m in d)h+=`${m.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${d[m]};`;u+=`${g} { ${h} }
44
44
  `}else f+=`${p.replace(/[A-Z]/g,g=>"-"+g.toLowerCase())}: ${d};`}f&&(s+=`${c} { ${f} }
45
- `),u&&(s+=u)}}s&&(o.textContent+=s)}function U0(t){let e=t.subscribeTo;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=Q(()=>{let f=t.state&&(st(t.state)?t.state.root:null);if(!f||!st(f))return;let u=f;u=u[i];for(let d=0;d<a.length&&!(u==null||typeof u!="object");d++)if(st(u))u=u[a[d]];else break;if(!c.value)return;let p=!1;if(typeof t.onBeforeUpdate=="function"){let d=t.context?.designSystem;d&&et(d);try{t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(p=!0)}catch(g){t.context?.plugins?.length&&yt("error",t,{hook:"onBeforeUpdate",error:g})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",g)}finally{d&&J()}}if(!p&&t.node&&r.__effects)for(let d=0;d<r.__effects.length;d++){let g=r.__effects[d];g&&g!==l&&!g._disposed&&!g._isSubscribeToEffect&&typeof g._execute=="function"&&g._execute()}if(!p&&typeof t.onUpdate=="function"){let d=t.context?.designSystem;d&&et(d);try{t.onUpdate(t,t.state,t.context)}catch(g){t.context?.plugins?.length&&yt("error",t,{hook:"onUpdate",error:g})||console.error("[DOMQL] subscribeTo onUpdate error:",g)}finally{d&&J()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function nd(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)])}function bn(t,e,r){let n={},o=(s,i)=>{if(gt[s]){let a=gt[s](i,e,e.state,e.context);if(a){let c=Array.isArray(a)?a:[a];for(let l of c)l&&Object.assign(n,l)}}else n[s]=i};for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];if(typeof i=="function"&&(i=i(e,e.state,e.context)),!(i==null||typeof i=="function")){if(typeof i=="object"&&!Array.isArray(i)){if(s==="style"){for(let l in i){let f=i[l];typeof f=="function"&&(f=f(e,e.state,e.context)),!(f==null||typeof f=="function")&&o(l,f)}continue}if(nd(s,e)){let l=bn(i,e,!0);Object.keys(l).length&&(n[`[data-theme="${s.slice(1)}"] &`]=l);continue}let a=s;if(s.charCodeAt(0)===64&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let l=e.context?.designSystem?.media?.[s.slice(1)];l&&(a=`@media ${l}`)}let c=bn(i,e,!1);Object.keys(c).length&&(n[a]=c);continue}o(s,i)}}if(r)for(let s in n){let i=n[s];typeof i=="string"&&!i.includes("!important")&&(n[s]=i+" !important")}return n}function z0(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;let i=t[n];if(!i||typeof i!="object")continue;let a=o==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=()=>{if(!t.node)return;let u,p=t[s];if(p===void 0)if(t.state&&s in t.state)u=t.state[s];else{let h=t.context?.cases?.[s];if(h===void 0)return;try{u=typeof h=="function"?h.call(t,t):h}catch(m){u=!1,e.__conditionalError=m,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,m?.message||m)}}else if(typeof p=="function")try{u=p(t,t.state,t.context)}catch(h){u=!1,e.__conditionalError=h,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,h?.message||h)}else u=p;let d=a?!u:!!u;if(d===c.lastMatch)return;c.lastMatch=d;let g=t.context?.designSystem;g&&et(g);try{if(d){let h={},m={},y=!1;for(let x in i){if(!Object.prototype.hasOwnProperty.call(i,x))continue;let _=i[x],C=x.charAt(0);if((C===":"||C==="@"||C==="&")&&_&&typeof _=="object"&&!Array.isArray(_)){if(nd(x,t)){let P=bn(_,t,!0);Object.keys(P).length&&(m[`[data-theme="${x.slice(1)}"] &`]=P,y=!0)}else{let P=x;if(C==="@"&&!x.startsWith("@media")&&!x.startsWith("@keyframes")){let E=t.context?.designSystem?.media?.[x.slice(1)];E&&(P=`@media ${E}`)}let V=bn(_,t,!1);Object.keys(V).length&&(m[P]=V,y=!0)}continue}let R=typeof _=="function"?_(t,t.state,t.context):_;if(R!=null)if(gt[x]){let P=gt[x](R,t,t.state,t.context);if(P){let V=Array.isArray(P)?P:[P];for(let E of V)E&&Object.assign(h,E)}}else bt&&bt.has(x)&&(h[x]=R)}let b=Object.keys(h);if(b.length){mn(t.node,h);for(let x of b)r.set(x,n);c.appliedKeys=b}else c.appliedKeys=null;if(y){let x=oe(m,null,t.context?.cssPrefix),_=x?x.split(" ").filter(Boolean):[];if(_.length&&t.node.classList){for(let C of _)t.node.classList.add(C);c.appliedClasses=_}else c.appliedClasses=null}else if(c.appliedClasses){for(let x of c.appliedClasses)t.node.classList.remove(x);c.appliedClasses=null}}else{if(c.appliedKeys){for(let h of c.appliedKeys)r.get(h)===n&&(t.node.style[h]="",r.delete(h));c.appliedKeys=null}if(c.appliedClasses){for(let h of c.appliedClasses)t.node.classList.remove(h);c.appliedClasses=null}}}finally{g&&J()}};e.__conditionalRunners.push(l);let f=Q(l,{depth:e.path.length});e.__effects.push(f)}}var Xp=new WeakSet;function W0(t){let e=t.ownerDocument;!e||Xp.has(e)||(Xp.add(e),queueMicrotask(()=>{Xp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Jp=new WeakSet,jm=!1;function H0(t){let{node:e}=t;if(!e)return;if(jm||(jm=!0,oe({display:"none"})),Jp.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Jp.add(t);let r=t.context?.designSystem;r&&et(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||St.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!yn(s)){if(gt[s]){let a=t[s],c=gt[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(bt&&bt.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(nd(s,t)){let c=bn(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=bn(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=oe(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&&W0(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(),Jp.delete(t)}}function Wm(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=Kp(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"||St.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!yn(o)&&!(gt[o]||bt&&bt.has(o))&&rr(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=pr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function G0(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 Hm=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function Gm(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!yn(r)||Hm.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=L0(r);Qe.has(o)||un(M0(o),t,n)}q0(t)}function q0(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let p of Hm){let d=t[p];typeof d=="function"&&(r[p]=d,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=p=>{let d=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},u=p=>{if(!l)return;l=!1;let d=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!d)return;let g=d.clientX-i,h=d.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),b=Math.abs(h);if(Math.max(y,b)<o)return;let x;if(y>b*1.2)x=g<0?"left":"right";else if(b>y*1.2)x=h<0?"up":"down";else return;let _="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),C=r[_],R=r.onSwipe;C&&C.call(t,p,t,t.state,t.context),R&&R.call(t,{direction:x,dx:g,dy:h,dt:m,event:p},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 Ja(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]=Ja(o,s):r[n]=s}return r}function td(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 p=a;if(typeof a=="function")try{p=a(t,f)}catch{p=null}if(c==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),f=p?{...p,state:h}:{state:h}}else p&&(f=Ja(p,f));if(n&&!f.ignoreChildExtends)if(f.extends){let h=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...h]}}else f={...f,extends:n};let d=f?.key||u&&typeof u=="object"&&u.key||`${l}`,g=Kt(f,t,d,r);!o&&g?.node&&i.appendChild(g.node)}o||t.node.appendChild(i);return}if(typeof e=="string"){let o=Vm(e,t);if(Array.isArray(o)){td(t,o,r);return}}if(typeof e=="object")for(let o in e){if(St.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=Ja(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};Kt(s,t,o,r)}}}function ed(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 qm(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=Q(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;t.children=f;let u=typeof t.onContentUpdate=="function",p=u?[]:null,d=u?[]:null,g=u?[]:null;if(Array.isArray(f)&&t.childrenAs==="state"){let b=t.childProps,x=[],_=new Map;for(let U=0;U<f.length;U++){let G=f[U],D=b;if(typeof b=="function")try{D=b(t,G)}catch{D=null}let L=D&&D.key||G&&G.key||`${U}`;x.push(L),_.set(L,{rawChild:G,childProps:D})}let C=new Set(x),R=a.__children.slice();for(let U of R)if(!C.has(U)){let G=t[U];G?.remove&&G.remove(),delete t[U],d&&d.push(U)}let P=t.childExtends,V=t.tag==="fragment",E=t.context?.document||globalThis.document,$=V?null:E?.createDocumentFragment();for(let U of x){let G=_.get(U),D=G.rawChild,L=t[U];if(L&&L.state){if(D&&typeof D=="object"){let $t=L.state;if(typeof $t.replace=="function")$t.replace(D);else if(typeof $t.update=="function"){for(let kt in $t)if(!(kt==="__element"||kt==="root"||kt==="parent"||kt==="update")&&!Object.prototype.hasOwnProperty.call(D,kt))try{$t[kt]=void 0}catch{}$t.update(D)}else for(let kt in D)$t[kt]=D[kt]}g&&g.push(U);continue}let z=D;(typeof D=="string"||typeof D=="number")&&(z={value:D,text:D});let Y=G.childProps,q=Y?{...Y,state:z}:{state:z};if(P&&!q.ignoreChildExtends)if(q.extends){let $t=Array.isArray(q.extends)?q.extends:[q.extends],kt=Array.isArray(P)?P:[P];q={...q,extends:[...kt,...$t]}}else q={...q,extends:P};let De=Kt(q,t,U,e);!V&&De?.node&&$&&$.appendChild(De.node),p&&p.push(U)}!V&&$&&$.childNodes.length&&t.node&&t.node.appendChild($),a.__children=x,u&&(p.length||d.length)&&Lm(t,{added:p,removed:d,kept:g}),ed(t,!1);return}let y=u?[...a.__children]:null;for(let b of[...a.__children]){let x=t[b];x?.remove&&x.remove(),delete t[b]}a.__children=[],td(t,f,e),ed(t,!1),u&&Lm(t,{added:[...a.__children],removed:y,kept:[]})},{depth:a.path.length});a.__effects.push(l)}if(td(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||St.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let g=t[p];g!==void 0&&(f[p]=g,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||St.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={...c,extends:l})}if(t.childProps&&(c=Ja(t.childProps,c)),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={...c,extends:o};Kt(c,t,i,e)}}}function rd(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 Re(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&yt(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&&et(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&yt("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 Km={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"]},Ym={"gradient-blue-light":`linear-gradient(to right,
45
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}function U0(t){let e=t.subscribeTo;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=Q(()=>{let f=t.state&&(st(t.state)?t.state.root:null);if(!f||!st(f))return;let u=f;u=u[i];for(let d=0;d<a.length&&!(u==null||typeof u!="object");d++)if(st(u))u=u[a[d]];else break;if(!c.value)return;let p=!1;if(typeof t.onBeforeUpdate=="function"){let d=t.context?.designSystem;d&&et(d);try{t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0})===!1&&(p=!0)}catch(g){t.context?.plugins?.length&&yt("error",t,{hook:"onBeforeUpdate",error:g})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",g)}finally{d&&J()}}if(!p&&t.node&&r.__effects)for(let d=0;d<r.__effects.length;d++){let g=r.__effects[d];g&&g!==l&&!g._disposed&&!g._isSubscribeToEffect&&typeof g._execute=="function"&&g._execute()}if(!p&&typeof t.onUpdate=="function"){let d=t.context?.designSystem;d&&et(d);try{t.onUpdate(t,t.state,t.context)}catch(g){t.context?.plugins?.length&&yt("error",t,{hook:"onUpdate",error:g})||console.error("[DOMQL] subscribeTo onUpdate error:",g)}finally{d&&J()}}},{depth:r.path.length});c.value=!0,l._isSubscribeToEffect=!0,r.__effects.push(l)}}function nd(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)])}function bn(t,e,r){let n={},o=(s,i)=>{if(gt[s]){let a=gt[s](i,e,e.state,e.context);if(a){let c=Array.isArray(a)?a:[a];for(let l of c)l&&Object.assign(n,l)}}else n[s]=i};for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s];if(typeof i=="function"&&(i=i(e,e.state,e.context)),!(i==null||typeof i=="function")){if(typeof i=="object"&&!Array.isArray(i)){if(s==="style"){for(let l in i){let f=i[l];typeof f=="function"&&(f=f(e,e.state,e.context)),!(f==null||typeof f=="function")&&o(l,f)}continue}if(nd(s,e)){let l=bn(i,e,!0);Object.keys(l).length&&(n[`[data-theme="${s.slice(1)}"] &`]=l);continue}let a=s;if(s.charCodeAt(0)===64&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let l=e.context?.designSystem?.media?.[s.slice(1)];l&&(a=`@media ${l}`)}let c=bn(i,e,!1);Object.keys(c).length&&(n[a]=c);continue}o(s,i)}}if(r)for(let s in n){let i=n[s];typeof i=="string"&&!i.includes("!important")&&(n[s]=i+" !important")}return n}function z0(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;let i=t[n];if(!i||typeof i!="object")continue;let a=o==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null},l=()=>{if(!t.node)return;let u,p=t[s];if(p===void 0)if(t.state&&s in t.state)u=t.state[s];else{let h=t.context?.cases?.[s];if(h===void 0)return;try{u=typeof h=="function"?h.call(t,t):h}catch(m){u=!1,e.__conditionalError=m,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,m?.message||m)}}else if(typeof p=="function")try{u=p(t,t.state,t.context)}catch(h){u=!1,e.__conditionalError=h,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,h?.message||h)}else u=p;let d=a?!u:!!u;if(d===c.lastMatch)return;c.lastMatch=d;let g=t.context?.designSystem;g&&et(g);try{if(d){let h={},m={},y=!1;for(let x in i){if(!Object.prototype.hasOwnProperty.call(i,x))continue;let _=i[x],C=x.charAt(0);if((C===":"||C==="@"||C==="&")&&_&&typeof _=="object"&&!Array.isArray(_)){if(nd(x,t)){let P=bn(_,t,!0);Object.keys(P).length&&(m[`[data-theme="${x.slice(1)}"] &`]=P,y=!0)}else{let P=x;if(C==="@"&&!x.startsWith("@media")&&!x.startsWith("@keyframes")){let E=t.context?.designSystem?.media?.[x.slice(1)];E&&(P=`@media ${E}`)}let V=bn(_,t,!1);Object.keys(V).length&&(m[P]=V,y=!0)}continue}let R=typeof _=="function"?_(t,t.state,t.context):_;if(R!=null)if(gt[x]){let P=gt[x](R,t,t.state,t.context);if(P){let V=Array.isArray(P)?P:[P];for(let E of V)E&&Object.assign(h,E)}}else bt&&bt.has(x)&&(h[x]=R)}let b=Object.keys(h);if(b.length){mn(t.node,h);for(let x of b)r.set(x,n);c.appliedKeys=b}else c.appliedKeys=null;if(y){let x=oe(m,null,t.context?.cssPrefix),_=x?x.split(" ").filter(Boolean):[];if(_.length&&t.node.classList){for(let C of _)t.node.classList.add(C);c.appliedClasses=_}else c.appliedClasses=null}else if(c.appliedClasses){for(let x of c.appliedClasses)t.node.classList.remove(x);c.appliedClasses=null}}else{if(c.appliedKeys){for(let h of c.appliedKeys)r.get(h)===n&&(t.node.style[h]="",r.delete(h));c.appliedKeys=null}if(c.appliedClasses){for(let h of c.appliedClasses)t.node.classList.remove(h);c.appliedClasses=null}}}finally{g&&J()}};e.__conditionalRunners.push(l);let f=Q(l,{depth:e.path.length});e.__effects.push(f)}}var Xp=new WeakSet;function W0(t){let e=t.ownerDocument;!e||Xp.has(e)||(Xp.add(e),queueMicrotask(()=>{Xp.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Jp=new WeakSet,jm=!1;function H0(t){let{node:e}=t;if(!e)return;if(jm||(jm=!0,oe({display:"none"})),Jp.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Jp.add(t);let r=t.context?.designSystem;r&&et(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||St.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!yn(s)){if(gt[s]){let a=t[s],c=gt[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(bt&&bt.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(nd(s,t)){let c=bn(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=bn(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=oe(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&&W0(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(),Jp.delete(t)}}function Wm(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=Kp(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"||St.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!yn(o)&&!(gt[o]||bt&&bt.has(o))&&rr(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=pr(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function G0(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 Hm=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function Gm(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!yn(r)||Hm.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=L0(r);Qe.has(o)||un(M0(o),t,n)}q0(t)}function q0(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let p of Hm){let d=t[p];typeof d=="function"&&(r[p]=d,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=p=>{let d=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];d&&(i=d.clientX,a=d.clientY,c=Date.now(),l=!0)},u=p=>{if(!l)return;l=!1;let d=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!d)return;let g=d.clientX-i,h=d.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),b=Math.abs(h);if(Math.max(y,b)<o)return;let x;if(y>b*1.2)x=g<0?"left":"right";else if(b>y*1.2)x=h<0?"up":"down";else return;let _="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),C=r[_],R=r.onSwipe;C&&C.call(t,p,t,t.state,t.context),R&&R.call(t,{direction:x,dx:g,dy:h,dt:m,event:p},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 Ja(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]=Ja(o,s):r[n]=s}return r}function td(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 p=a;if(typeof a=="function")try{p=a(t,f)}catch{p=null}if(c==="state"){let h=u;(typeof u=="string"||typeof u=="number")&&(h={value:u,text:u}),f=p?{...p,state:h}:{state:h}}else p&&(f=Ja(p,f));if(n&&!f.ignoreChildExtends)if(f.extends){let h=Array.isArray(f.extends)?f.extends:[f.extends],m=Array.isArray(n)?n:[n];f={...f,extends:[...m,...h]}}else f={...f,extends:n};let d=f?.key||u&&typeof u=="object"&&u.key||`${l}`,g=Kt(f,t,d,r);!o&&g?.node&&i.appendChild(g.node)}o||t.node.appendChild(i);return}if(typeof e=="string"){let o=Vm(e,t);if(Array.isArray(o)){td(t,o,r);return}}if(typeof e=="object")for(let o in e){if(St.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=Ja(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};Kt(s,t,o,r)}}}function ed(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 qm(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let a=t.__ref,c=!1,l=Q(()=>{let f=i(t,t.state,t.context);if(!c){c=!0;return}if(f===t.children)return;t.children=f;let u=typeof t.onContentUpdate=="function",p=u?[]:null,d=u?[]:null,g=u?[]:null;if(Array.isArray(f)&&t.childrenAs==="state"){let b=t.childProps,x=[],_=new Map;for(let U=0;U<f.length;U++){let G=f[U],D=b;if(typeof b=="function")try{D=b(t,G)}catch{D=null}let M=D&&D.key||G&&G.key||`${U}`;x.push(M),_.set(M,{rawChild:G,childProps:D})}let C=new Set(x),R=a.__children.slice();for(let U of R)if(!C.has(U)){let G=t[U];G?.remove&&G.remove(),delete t[U],d&&d.push(U)}let P=t.childExtends,V=t.tag==="fragment",E=t.context?.document||globalThis.document,$=V?null:E?.createDocumentFragment();for(let U of x){let G=_.get(U),D=G.rawChild,M=t[U];if(M&&M.state){if(D&&typeof D=="object"){let $t=M.state;if(typeof $t.replace=="function")$t.replace(D);else if(typeof $t.update=="function"){for(let kt in $t)if(!(kt==="__element"||kt==="root"||kt==="parent"||kt==="update")&&!Object.prototype.hasOwnProperty.call(D,kt))try{$t[kt]=void 0}catch{}$t.update(D)}else for(let kt in D)$t[kt]=D[kt]}g&&g.push(U);continue}let z=D;(typeof D=="string"||typeof D=="number")&&(z={value:D,text:D});let Y=G.childProps,q=Y?{...Y,state:z}:{state:z};if(P&&!q.ignoreChildExtends)if(q.extends){let $t=Array.isArray(q.extends)?q.extends:[q.extends],kt=Array.isArray(P)?P:[P];q={...q,extends:[...kt,...$t]}}else q={...q,extends:P};let De=Kt(q,t,U,e);!V&&De?.node&&$&&$.appendChild(De.node),p&&p.push(U)}!V&&$&&$.childNodes.length&&t.node&&t.node.appendChild($),a.__children=x,u&&(p.length||d.length)&&Lm(t,{added:p,removed:d,kept:g}),ed(t,!1);return}let y=u?[...a.__children]:null;for(let b of[...a.__children]){let x=t[b];x?.remove&&x.remove(),delete t[b]}a.__children=[],td(t,f,e),ed(t,!1),u&&Lm(t,{added:[...a.__children],removed:y,kept:[]})},{depth:a.path.length});a.__effects.push(l)}if(td(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof t[c]!="string")continue;let l=c.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[c]};delete t[c];for(let u=a+1;u<i.length;u++){let p=i[u],d=p.charCodeAt(0);if(d>=65&&d<=90||St.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let g=t[p];g!==void 0&&(f[p]=g,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||St.has(i)||typeof t[i]!="object"||t[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=t[i];if(!c.__ref){if(!c.extends&&!c.extend){let l=s[i]||s[`smbls.${i}`];l&&(c={...c,extends:l})}if(t.childProps&&(c=Ja(t.childProps,c)),o&&!c.ignoreChildExtends)if(c.extends){let l=Array.isArray(c.extends)?c.extends:[c.extends],f=Array.isArray(o)?o:[o];c={...c,extends:[...f,...l]}}else c={...c,extends:o};Kt(c,t,i,e)}}}function rd(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 Re(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&yt(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&&et(a);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(c){if(e.context?.plugins?.length&&yt("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 Km={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"]},Ym={"gradient-blue-light":`linear-gradient(to right,
46
46
  rgba(4, 116, 242, 1),
47
47
  rgba(0, 48, 103, 1)
48
48
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -68,15 +68,15 @@ FROM ${a}${l}`},ew=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
68
68
  #1E54F0 36%,
69
69
  #8B4CCA 69%,
70
70
  #C66894 100%
71
- )`};var K0={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"}}}},Y0={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},X0={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"}}},Xm={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...K0,...Y0,...X0,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Jm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Zm={ratio:1.618,subSequence:!0};var Qm={SourceSans:[{url:""}]},ty={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 ey={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 ry={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 ny={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Bs={version:"0.0.1",color:Km,gradient:Ym,theme:Xm,typography:Jm,spacing:Zm,font:Qm,fontFamily:ty,timing:ny,icons:ey,media:ry,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var _n={};I(_n,{A:()=>yb,AssetPicture:()=>Sy,Audio:()=>vy,Avatar:()=>Ib,B:()=>zy,Block:()=>oy,Box:()=>ec,Br:()=>qy,Button:()=>_b,ButtonSet:()=>vb,COMPONENTS:()=>Er,Caption:()=>Fy,Checkbox:()=>nb,CheckboxHgroup:()=>ob,Circle:()=>by,CircleButton:()=>wb,Clickable:()=>gy,Data:()=>Hy,Dialog:()=>Ab,DialogFooter:()=>Tb,DialogHeader:()=>Eb,Dropdown:()=>Fb,DropdownList:()=>Db,DropdownParent:()=>Lb,DropdownParentFocus:()=>Mb,DropdownSiblingFocus:()=>Nb,FileIcon:()=>db,Flex:()=>iy,Focusable:()=>my,FocusableComponent:()=>yy,Footnote:()=>Uy,Form:()=>py,Grid:()=>cy,Gutter:()=>fy,H1:()=>Ey,H2:()=>Ty,H3:()=>Oy,H4:()=>Ry,H5:()=>Py,H6:()=>Iy,Headline:()=>By,Hgroup:()=>Zy,HgroupButton:()=>tb,HgroupRows:()=>Qy,Hoverable:()=>hy,Hr:()=>Gy,I:()=>Wy,Icon:()=>ub,IconButton:()=>Cb,IconText:()=>pb,Iframe:()=>dy,Img:()=>uy,Inline:()=>sy,InlineFlex:()=>ay,InlineGrid:()=>ly,Input:()=>eb,Italic:()=>Ny,KangorooButton:()=>kb,Li:()=>Ky,Link:()=>$d,Notification:()=>jb,NumberInput:()=>rb,Ol:()=>Xy,P:()=>$y,Picture:()=>_y,Radio:()=>sb,RadioHgroup:()=>ib,Range:()=>$b,RouteLink:()=>bb,RouterLink:()=>Fd,SHAPES:()=>Qa,Select:()=>xb,Shape:()=>fd,Span:()=>Ay,SquareButton:()=>Sb,Strong:()=>Dy,Subhead:()=>Vy,Svg:()=>wy,Text:()=>Cy,Textarea:()=>lb,TextareaWithButton:()=>fb,Theme:()=>xy,Title:()=>jy,Toggle:()=>ab,ToggleHgroup:()=>cb,Tooltip:()=>Ob,TooltipHidden:()=>Rb,TooltipParent:()=>Pb,U:()=>Ly,Ul:()=>Yy,Underline:()=>My,Video:()=>ky,depth:()=>tc,getSystemGlobalTheme:()=>Vs});var sd={};I(sd,{Block:()=>oy,Flex:()=>iy,Grid:()=>cy,Gutter:()=>fy,Inline:()=>sy,InlineFlex:()=>ay,InlineGrid:()=>ly});var oy={display:"block"},sy={display:"inline"},iy={display:"flex"},ay={display:"inline-flex"},cy={display:"grid"},ly={display:"inline-grid"},fy={boxSize:"C1"};var id={};I(id,{Img:()=>uy});O();var uy={tag:"img",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Rt(t);return e&&e.src||t.src},srcset:t=>{let e=Rt(t);return(e?Xo(e):"")||t.srcset}}};var ad={};I(ad,{Form:()=>py});var py={tag:"form"};var cd={};I(cd,{Iframe:()=>dy});var dy={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var ld={};I(ld,{Clickable:()=>gy,Focusable:()=>my,FocusableComponent:()=>yy,Hoverable:()=>hy});var J0={appearance:"none",cursor:"pointer",fontFamily:"inherit"},hy={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}}},gy={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},my={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},yy={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:J0};var dd={};I(dd,{Picture:()=>_y});var pd={};I(pd,{Theme:()=>xy,getSystemGlobalTheme:()=>Vs});var ud={};I(ud,{Circle:()=>by,SHAPES:()=>Qa,Shape:()=>fd,default:()=>Z0,depth:()=>tc});O();var Xt=A(),tc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Xt.unit.default} 4${Xt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Xt.unit.default} 6${Xt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Xt.unit.default} 10${Xt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Xt.unit.default} 16${Xt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Xt.unit.default} 26${Xt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Xt.unit.default} 42${Xt.unit.default}`}},xn=t=>rt(t.shapeDirectionColor)||rt(t.borderColor)||rt(t.backgroundColor)||rt(t.background),Za=t=>{let e=Ms.transition(t.transition,t);return e&&e.transition},Qa={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:xn(t),transition:Za(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:xn(t),transition:Za(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:xn(t),transition:Za(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:Za(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${xn(t)} 25%, transparent 25%), linear-gradient(315deg, ${xn(t)} 25%, transparent 25%)`},"&:after":{background:xn(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)"}}}},fd={deps:{exec:tt,getSpacingBasedOnRatio:ne,getMediaColor:mt},classlist:{shape:t=>t.deps.exec(Qa[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Qa[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}}},by={round:"100%"},Z0=fd;O();var Vs=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},xy={deps:{depth:tc},classlist:{depth:t=>!dt(t.depth)&&t.deps.depth[t.depth]}};var _y={deps:{getSystemGlobalTheme:Vs},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Vs},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 hd={};I(hd,{AssetPicture:()=>Sy});O();var Sy={tag:"picture",children:t=>{let e=Rt(t);if(e)return Jo(e,t.alt)}};var gd={};I(gd,{Svg:()=>wy});var wy={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=p=>`<use xlink:href="#${p}" />`,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 p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var md={};I(md,{Video:()=>ky});O();var ky={tag:"video",controls:!0,attr:{src:t=>{let e=Rt(t);return e&&e.src||t.src}},children:t=>{let e=Rt(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 yd={};I(yd,{Audio:()=>vy});O();var vy={tag:"audio",controls:!0,attr:{src:t=>{let e=Rt(t);return e&&e.src||t.src}},children:t=>{let e=Rt(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 bd={};I(bd,{B:()=>zy,Caption:()=>Fy,Data:()=>Hy,Footnote:()=>Uy,H1:()=>Ey,H2:()=>Ty,H3:()=>Oy,H4:()=>Ry,H5:()=>Py,H6:()=>Iy,Headline:()=>By,I:()=>Wy,Italic:()=>Ny,P:()=>$y,Span:()=>Ay,Strong:()=>Dy,Subhead:()=>Vy,Text:()=>Cy,Title:()=>jy,U:()=>Ly,Underline:()=>My});var Cy={},Ay={tag:"span"},Ey={tag:"h1"},Ty={tag:"h2"},Oy={tag:"h3"},Ry={tag:"h4"},Py={tag:"h5"},Iy={tag:"h6"},$y={tag:"p"},Fy={tag:"caption"},Dy={tag:"strong",fontWeight:"700"},Ly={tag:"u"},My={tag:"u"},Ny={tag:"i"},jy={},By={tag:"h6",fontSize:"B",fontWeight:500},Vy={tag:"span",fontSize:"Z1"},Uy={tag:"span",fontSize:"Z"},zy={tag:"b"},Wy={tag:"i"},Hy={tag:"data"};var xd={};I(xd,{Box:()=>ec,Br:()=>qy,Hr:()=>Gy,Li:()=>Ky,Ol:()=>Xy,Ul:()=>Yy});var Q0=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Mt(e,t,{unpack:!1});r.__class=n},ec={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Q0},Gy={tag:"hr",margin:"C1 0"},qy={tag:"br"},Ky={tag:"li"},Yy={tag:"ul",childExtends:{extends:"Li"}},Xy={tag:"ol",childExtends:{extends:"Li"}};var _d={};I(_d,{Hgroup:()=>Zy,HgroupButton:()=>tb,HgroupRows:()=>Qy});var Jy=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},Zy={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Jy,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Jy,margin:"0",color:"paragraph"}},Qy={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},tb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Sd={};I(Sd,{Input:()=>eb});var eb={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 wd={};I(wd,{NumberInput:()=>rb});var rb={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 kd={};I(kd,{Checkbox:()=>nb,CheckboxHgroup:()=>ob});var nb={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"}}},ob={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var vd={};I(vd,{Radio:()=>sb,RadioHgroup:()=>ib});var sb={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}},ib={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Cd={};I(Cd,{Toggle:()=>ab,ToggleHgroup:()=>cb});var ab={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}},cb={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Ad={};I(Ad,{Textarea:()=>lb,TextareaWithButton:()=>fb});var lb={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"}},fb={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 Ed={};I(Ed,{FileIcon:()=>db,Icon:()=>ub,IconText:()=>pb});var ub={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 h=g[".isActive"];if(h)return g.call("exec",h.name||h.icon)},l=(g,h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:b}=m&&m.utils,x=f(g,h),C=b(x).split(/([a-z])([A-Z])/g),R=C[1]?C[0]:x.split(".")[0].split(" ")[0],P=y&&y[R];if(P){let V=x.includes(".")?"sfsymbols."+x.split(".").slice(1).join("."):"sfsymbols";return x=P[V]||P[x.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${x}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(g,h)=>{let{key:m}=g,y=g.call("exec",g.name||g.icon||m,g);return g.call("isString",y)&&y.includes("{{")&&(y=g.call("replaceLiteralsWithObjectFields",y)),g.call("isString",y)?y:m},u=t.src,d=Q(()=>{let g=f(t,e);if(g.includes(" ")){let E=g.split(" ");g=E[0]+E.slice(1).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join("")}let h=a(g),m=h.split(/([a-z])([A-Z])/g),y=l(t,e,r);if(y){Object.assign(t,y);return}let b;t.isActive&&(b=c(t));let x=n[".isActive"];n&&n.isActive&&x&&x.icon&&(b=t.call("exec",x.icon||x.Icon.name||x.Icon.icon,t)),t.call("isString",b)&&b.includes("{{")&&(b=t.call("replaceLiteralsWithObjectFields",b));let _;o[b]&&(_=b),o[h]?_=h:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn("Can't find icon:",g,_);let C=o[_],R=n&&n.src||u,P=s&&_,V=C||R||o.noIcon;if(!(t.spriteId===P&&t.src===V&&t.node&&t.node.innerHTML)&&(t.spriteId=P,t.src=V,typeof t.html=="function"&&t.node)){let E=t.context&&t.context.designSystem;E&&et(E);try{let $=t.html(t,t.state,t.context);$!=null&&typeof $!="function"&&(t.node.innerHTML=$)}finally{E&&J()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(d))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},pb={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},db={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Dd={};I(Dd,{A:()=>yb,Link:()=>$d,RouteLink:()=>bb,RouterLink:()=>Fd});var Us={};I(Us,{default:()=>ok,getActiveRoute:()=>Id,lastLevel:()=>nc,lastPathname:()=>rc,matchRoute:()=>Od,parseQuery:()=>Rd,parseRoutePattern:()=>Td,router:()=>be,runGuards:()=>Pd});O();var gb=/^:(.+)/,mb=/^\*$/,hb=new Map,Td=t=>{let e=hb.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(gb);a?n.push({index:i,name:a[1]}):mb.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return hb.set(t,s),s},Od=(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=Td(l),u=tk(o,f);u>a&&(a=u,i=l,c=ek(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},tk=(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(gb.test(r[i]))o+=1;else if(mb.test(r[i]))o+=.5;else return-1;return o},ek=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Rd=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},Pd=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},Id=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},rc,nc=0,rk=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,nk={level:nc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof K<"u"&&(K.scrollingElement||K.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},be=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||K,a={...nk,...o.context.routerOptions,...n};nc=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=rk(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:g,hash:h}=p,m=Rd(g),y=o.node,b=h&&h!==s.location.hash.slice(1),x=d!==rc;rc=d;let _,C,R,P;if(a.useParamsMatching){let E=Od(d,o.routes,a.level);_=E.key,C=E.routePath,R=E.content,P=E.params}else{_=Id(a.level,d),C=_;let E=o.routes;R=E?E[_||"/"]||E["/*"]:null,P={}}let V=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!R){a.onNotFound?a.onNotFound({pathname:d,route:_,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let E={pathname:d,route:_,params:P,query:m,hash:h,element:o,state:r},$=await Pd(a.guards,E);if($===!1)return;if(typeof $=="string")return be($,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(g||"")+(h||""))}catch{}if(x||!b){let E={route:_,routePath:C,hash:h,debugging:!1};Object.keys(P).length&&(E.params=P),Object.keys(m).length&&(E.query=m),a.updateState&&o.state.update(E,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let $=o.__ref?.origin?.content,U={};if($)for(let D in $){let L=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof L=="string"||typeof L=="number"||typeof L=="boolean"||typeof L=="object"&&L!==null&&!L.node&&!L.__ref)&&(U[D]=L)}let G={...U,...typeof R=="object"?R:{extends:R}};a.useFragment&&(G.tag="fragment");try{if(typeof o?.set!="function")return;o.set(G,{contentElementKey:l})}catch(D){console.error("[smbls/router] failed to render route content",d,D)}}if(a.scrollToTop&&V?.scrollTo&&V.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[l]?.node?.scrollTo&&R[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let E=i.getElementById(h);if(E&&V?.scrollTo){let $=E.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);V.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Be("routeChanged",o,a)},ok=be;var sk=(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,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let g=p;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,p.routes&&(g.routes=p.routes))}(f.router||l.router||c.router||be)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},$d={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>er(t,t.href)||er(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:sk},yb={extends:"Link"},Fd={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,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let g=p;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,p.routes&&(g.routes=p.routes))}(f.router||l.router||c.router||be)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}}},bb={extends:[$d,Fd]};var Ld={};I(Ld,{Select:()=>xb});var xb={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 Md={};I(Md,{Button:()=>_b,ButtonSet:()=>vb,CircleButton:()=>wb,IconButton:()=>Cb,KangorooButton:()=>kb,SquareButton:()=>Sb});var _b={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.disabled)},Sb={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},wb={extends:"SquareButton",round:"C"},kb={extends:"Button",childExtends:"IconText"},vb={tag:"nav",display:"flex",childExtends:"SquareButton"},Cb={extends:["SquareButton","ClickableItem"],round:"Z"};var Nd={};I(Nd,{Dialog:()=>Ab,DialogFooter:()=>Tb,DialogHeader:()=>Eb});var Ab={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Eb={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Tb={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 jd={};I(jd,{Tooltip:()=>Ob,TooltipHidden:()=>Rb,TooltipParent:()=>Pb});O();var Ob={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=>At(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)}},Rb={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)}},Pb={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 Bd={};I(Bd,{Avatar:()=>Ib});var ik=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)},Ib={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=ik(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 Vd={};I(Vd,{Range:()=>$b});var $b={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:Xr("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Xr("#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 Ud={};I(Ud,{Dropdown:()=>Fb,DropdownList:()=>Db,DropdownParent:()=>Lb,DropdownParentFocus:()=>Mb,DropdownSiblingFocus:()=>Nb});var Fb={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"},Db={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"}}},Lb={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Mb={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()}}},Nb={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 zd={};I(zd,{Notification:()=>jb});var jb={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 Er=Object.assign({},sd,id,ad,cd,ld,dd,hd,gd,ud,md,yd,pd,bd,xd,_d,Sd,wd,kd,vd,Cd,Ad,Ed,Dd,Ld,Md,Nd,jd,Bd,Vd,Ud,zd);function oc(t){if(t==null)return 0;if(typeof t!="object")return Bb(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^oc(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Bb(r[n]))*16777619,e=(e^oc(t[r[n]]))*16777619;return e>>>0}function Bb(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function sc(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(!sc(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)||!sc(t[s],e[s]))return!1}return!0}function Wd(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=Wd(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 Hd(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])?Hd(t[n],o,r):t[n]=o}return t}function nr(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 Sn(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function zs(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():nr(e)}function Vb(t){return t.split(`
71
+ )`};var K0={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"}}}},Y0={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},X0={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"}}},Xm={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...K0,...Y0,...X0,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var Jm={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var Zm={ratio:1.618,subSequence:!0};var Qm={SourceSans:[{url:""}]},ty={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 ey={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 ry={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 ny={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Bs={version:"0.0.1",color:Km,gradient:Ym,theme:Xm,typography:Jm,spacing:Zm,font:Qm,fontFamily:ty,timing:ny,icons:ey,media:ry,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var _n={};I(_n,{A:()=>yb,AssetPicture:()=>Sy,Audio:()=>vy,Avatar:()=>Ib,B:()=>zy,Block:()=>oy,Box:()=>ec,Br:()=>qy,Button:()=>_b,ButtonSet:()=>vb,COMPONENTS:()=>Er,Caption:()=>Fy,Checkbox:()=>nb,CheckboxHgroup:()=>ob,Circle:()=>by,CircleButton:()=>wb,Clickable:()=>gy,Data:()=>Hy,Dialog:()=>Ab,DialogFooter:()=>Tb,DialogHeader:()=>Eb,Dropdown:()=>Fb,DropdownList:()=>Db,DropdownParent:()=>Lb,DropdownParentFocus:()=>Mb,DropdownSiblingFocus:()=>Nb,FileIcon:()=>db,Flex:()=>iy,Focusable:()=>my,FocusableComponent:()=>yy,Footnote:()=>Uy,Form:()=>py,Grid:()=>cy,Gutter:()=>fy,H1:()=>Ey,H2:()=>Ty,H3:()=>Oy,H4:()=>Ry,H5:()=>Py,H6:()=>Iy,Headline:()=>By,Hgroup:()=>Zy,HgroupButton:()=>tb,HgroupRows:()=>Qy,Hoverable:()=>hy,Hr:()=>Gy,I:()=>Wy,Icon:()=>ub,IconButton:()=>Cb,IconText:()=>pb,Iframe:()=>dy,Img:()=>uy,Inline:()=>sy,InlineFlex:()=>ay,InlineGrid:()=>ly,Input:()=>eb,Italic:()=>Ny,KangorooButton:()=>kb,Li:()=>Ky,Link:()=>$d,Notification:()=>jb,NumberInput:()=>rb,Ol:()=>Xy,P:()=>$y,Picture:()=>_y,Radio:()=>sb,RadioHgroup:()=>ib,Range:()=>$b,RouteLink:()=>bb,RouterLink:()=>Fd,SHAPES:()=>Qa,Select:()=>xb,Shape:()=>fd,Span:()=>Ay,SquareButton:()=>Sb,Strong:()=>Dy,Subhead:()=>Vy,Svg:()=>wy,Text:()=>Cy,Textarea:()=>lb,TextareaWithButton:()=>fb,Theme:()=>xy,Title:()=>jy,Toggle:()=>ab,ToggleHgroup:()=>cb,Tooltip:()=>Ob,TooltipHidden:()=>Rb,TooltipParent:()=>Pb,U:()=>Ly,Ul:()=>Yy,Underline:()=>My,Video:()=>ky,depth:()=>tc,getSystemGlobalTheme:()=>Vs});var sd={};I(sd,{Block:()=>oy,Flex:()=>iy,Grid:()=>cy,Gutter:()=>fy,Inline:()=>sy,InlineFlex:()=>ay,InlineGrid:()=>ly});var oy={display:"block"},sy={display:"inline"},iy={display:"flex"},ay={display:"inline-flex"},cy={display:"grid"},ly={display:"inline-grid"},fy={boxSize:"C1"};var id={};I(id,{Img:()=>uy});O();var uy={tag:"img",attr:{title:t=>t.title||t.alt,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Rt(t);return e&&e.src||t.src},srcset:t=>{let e=Rt(t);return(e?Xo(e):"")||t.srcset}}};var ad={};I(ad,{Form:()=>py});var py={tag:"form"};var cd={};I(cd,{Iframe:()=>dy});var dy={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var ld={};I(ld,{Clickable:()=>gy,Focusable:()=>my,FocusableComponent:()=>yy,Hoverable:()=>hy});var J0={appearance:"none",cursor:"pointer",fontFamily:"inherit"},hy={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}}},gy={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},my={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:t=>t.tabIndex}},yy={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:J0};var dd={};I(dd,{Picture:()=>_y});var pd={};I(pd,{Theme:()=>xy,getSystemGlobalTheme:()=>Vs});var ud={};I(ud,{Circle:()=>by,SHAPES:()=>Qa,Shape:()=>fd,default:()=>Z0,depth:()=>tc});O();var Xt=A(),tc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Xt.unit.default} 4${Xt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Xt.unit.default} 6${Xt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Xt.unit.default} 10${Xt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Xt.unit.default} 16${Xt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Xt.unit.default} 26${Xt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Xt.unit.default} 42${Xt.unit.default}`}},xn=t=>rt(t.shapeDirectionColor)||rt(t.borderColor)||rt(t.backgroundColor)||rt(t.background),Za=t=>{let e=Ms.transition(t.transition,t);return e&&e.transition},Qa={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:xn(t),transition:Za(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:xn(t),transition:Za(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:xn(t),transition:Za(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:Za(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${xn(t)} 25%, transparent 25%), linear-gradient(315deg, ${xn(t)} 25%, transparent 25%)`},"&:after":{background:xn(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)"}}}},fd={deps:{exec:tt,getSpacingBasedOnRatio:ne,getMediaColor:mt},classlist:{shape:t=>t.deps.exec(Qa[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Qa[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}}},by={round:"100%"},Z0=fd;O();var Vs=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},xy={deps:{depth:tc},classlist:{depth:t=>!dt(t.depth)&&t.deps.depth[t.depth]}};var _y={deps:{getSystemGlobalTheme:Vs},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Vs},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 hd={};I(hd,{AssetPicture:()=>Sy});O();var Sy={tag:"picture",children:t=>{let e=Rt(t);if(e)return Jo(e,t.alt)}};var gd={};I(gd,{Svg:()=>wy});var wy={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=p=>`<use xlink:href="#${p}" />`,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 p=0;p<i.length;p++)u=(u<<5)-u+i.charCodeAt(p)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,n.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var md={};I(md,{Video:()=>ky});O();var ky={tag:"video",controls:!0,attr:{src:t=>{let e=Rt(t);return e&&e.src||t.src}},children:t=>{let e=Rt(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 yd={};I(yd,{Audio:()=>vy});O();var vy={tag:"audio",controls:!0,attr:{src:t=>{let e=Rt(t);return e&&e.src||t.src}},children:t=>{let e=Rt(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 bd={};I(bd,{B:()=>zy,Caption:()=>Fy,Data:()=>Hy,Footnote:()=>Uy,H1:()=>Ey,H2:()=>Ty,H3:()=>Oy,H4:()=>Ry,H5:()=>Py,H6:()=>Iy,Headline:()=>By,I:()=>Wy,Italic:()=>Ny,P:()=>$y,Span:()=>Ay,Strong:()=>Dy,Subhead:()=>Vy,Text:()=>Cy,Title:()=>jy,U:()=>Ly,Underline:()=>My});var Cy={},Ay={tag:"span"},Ey={tag:"h1"},Ty={tag:"h2"},Oy={tag:"h3"},Ry={tag:"h4"},Py={tag:"h5"},Iy={tag:"h6"},$y={tag:"p"},Fy={tag:"caption"},Dy={tag:"strong",fontWeight:"700"},Ly={tag:"u"},My={tag:"u"},Ny={tag:"i"},jy={},By={tag:"h6",fontSize:"B",fontWeight:500},Vy={tag:"span",fontSize:"Z1"},Uy={tag:"span",fontSize:"Z"},zy={tag:"b"},Wy={tag:"i"},Hy={tag:"data"};var xd={};I(xd,{Box:()=>ec,Br:()=>qy,Hr:()=>Gy,Li:()=>Ky,Ol:()=>Xy,Ul:()=>Yy});var Q0=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Mt(e,t,{unpack:!1});r.__class=n},ec={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Q0},Gy={tag:"hr",margin:"C1 0"},qy={tag:"br"},Ky={tag:"li"},Yy={tag:"ul",childExtends:{extends:"Li"}},Xy={tag:"ol",childExtends:{extends:"Li"}};var _d={};I(_d,{Hgroup:()=>Zy,HgroupButton:()=>tb,HgroupRows:()=>Qy});var Jy=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},Zy={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:Jy,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:Jy,margin:"0",color:"paragraph"}},Qy={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},tb={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Sd={};I(Sd,{Input:()=>eb});var eb={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 wd={};I(wd,{NumberInput:()=>rb});var rb={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 kd={};I(kd,{Checkbox:()=>nb,CheckboxHgroup:()=>ob});var nb={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"}}},ob={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var vd={};I(vd,{Radio:()=>sb,RadioHgroup:()=>ib});var sb={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}},ib={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Cd={};I(Cd,{Toggle:()=>ab,ToggleHgroup:()=>cb});var ab={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}},cb={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Ad={};I(Ad,{Textarea:()=>lb,TextareaWithButton:()=>fb});var lb={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"}},fb={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 Ed={};I(Ed,{FileIcon:()=>db,Icon:()=>ub,IconText:()=>pb});var ub={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 h=g[".isActive"];if(h)return g.call("exec",h.name||h.icon)},l=(g,h,m)=>{let{semanticIcons:y}=m&&m.designSystem,{toCamelCase:b}=m&&m.utils,x=f(g,h),C=b(x).split(/([a-z])([A-Z])/g),R=C[1]?C[0]:x.split(".")[0].split(" ")[0],P=y&&y[R];if(P){let V=x.includes(".")?"sfsymbols."+x.split(".").slice(1).join("."):"sfsymbols";return x=P[V]||P[x.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${x}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},f=(g,h)=>{let{key:m}=g,y=g.call("exec",g.name||g.icon||m,g);return g.call("isString",y)&&y.includes("{{")&&(y=g.call("replaceLiteralsWithObjectFields",y)),g.call("isString",y)?y:m},u=t.src,d=Q(()=>{let g=f(t,e);if(g.includes(" ")){let E=g.split(" ");g=E[0]+E.slice(1).map($=>$.charAt(0).toUpperCase()+$.slice(1)).join("")}let h=a(g),m=h.split(/([a-z])([A-Z])/g),y=l(t,e,r);if(y){Object.assign(t,y);return}let b;t.isActive&&(b=c(t));let x=n[".isActive"];n&&n.isActive&&x&&x.icon&&(b=t.call("exec",x.icon||x.Icon.name||x.Icon.icon,t)),t.call("isString",b)&&b.includes("{{")&&(b=t.call("replaceLiteralsWithObjectFields",b));let _;o[b]&&(_=b),o[h]?_=h:o[m[0]+m[1]]?_=m[0]+m[1]:o[m[0]]?_=m[0]:i&&t.warn("Can't find icon:",g,_);let C=o[_],R=n&&n.src||u,P=s&&_,V=C||R||o.noIcon;if(!(t.spriteId===P&&t.src===V&&t.node&&t.node.innerHTML)&&(t.spriteId=P,t.src=V,typeof t.html=="function"&&t.node)){let E=t.context&&t.context.designSystem;E&&et(E);try{let $=t.html(t,t.state,t.context);$!=null&&typeof $!="function"&&(t.node.innerHTML=$)}finally{E&&J()}}},{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0});t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(d))},attr:{viewBox:"0 0 24 24","aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},pb={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},db={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Dd={};I(Dd,{A:()=>yb,Link:()=>$d,RouteLink:()=>bb,RouterLink:()=>Fd});var Us={};I(Us,{default:()=>ok,getActiveRoute:()=>Id,lastLevel:()=>nc,lastPathname:()=>rc,matchRoute:()=>Od,parseQuery:()=>Rd,parseRoutePattern:()=>Td,router:()=>be,runGuards:()=>Pd});O();var gb=/^:(.+)/,mb=/^\*$/,hb=new Map,Td=t=>{let e=hb.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(gb);a?n.push({index:i,name:a[1]}):mb.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return hb.set(t,s),s},Od=(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=Td(l),u=tk(o,f);u>a&&(a=u,i=l,c=ek(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},tk=(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(gb.test(r[i]))o+=1;else if(mb.test(r[i]))o+=.5;else return-1;return o},ek=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},Rd=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},Pd=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},Id=(t=0,e)=>{e||(e=typeof k<"u"?k.location.pathname:"/");let n=e.split("/")[t+1];if(n)return`/${n}`},rc,nc=0,rk=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,nk={level:nc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,get scrollNode(){return typeof K<"u"&&(K.scrollingElement||K.documentElement)||null},scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},be=async(t,e,r={},n={})=>{let o=e||void 0,s=o?.context?.window||k,i=o?.context?.document||K,a={...nk,...o.context.routerOptions,...n};nc=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=rk(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new u(f+t),{pathname:d,search:g,hash:h}=p,m=Rd(g),y=o.node,b=h&&h!==s.location.hash.slice(1),x=d!==rc;rc=d;let _,C,R,P;if(a.useParamsMatching){let E=Od(d,o.routes,a.level);_=E.key,C=E.routePath,R=E.content,P=E.params}else{_=Id(a.level,d),C=_;let E=o.routes;R=E?E[_||"/"]||E["/*"]:null,P={}}let V=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!R){a.onNotFound?a.onNotFound({pathname:d,route:_,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",d,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let E={pathname:d,route:_,params:P,query:m,hash:h,element:o,state:r},$=await Pd(a.guards,E);if($===!1)return;if(typeof $=="string")return be($,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,d+(g||"")+(h||""))}catch{}if(x||!b){let E={route:_,routePath:C,hash:h,debugging:!1};Object.keys(P).length&&(E.params=P),Object.keys(m).length&&(E.query=m),a.updateState&&o.state.update(E,{preventContentUpdate:!0}),l&&a.removeOldElement&&o[l].remove();let $=o.__ref?.origin?.content,U={};if($)for(let D in $){let M=$[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="object"&&M!==null&&!M.node&&!M.__ref)&&(U[D]=M)}let G={...U,...typeof R=="object"?R:{extends:R}};a.useFragment&&(G.tag="fragment");try{if(typeof o?.set!="function")return;o.set(G,{contentElementKey:l})}catch(D){console.error("[smbls/router] failed to render route content",d,D)}}if(a.scrollToTop&&V?.scrollTo&&V.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[l]?.node?.scrollTo&&R[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let E=i.getElementById(h);if(E&&V?.scrollTo){let $=E.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);V.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Be("routeChanged",o,a)},ok=be;var sk=(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,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let g=p;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,p.routes&&(g.routes=p.routes))}(f.router||l.router||c.router||be)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},$d={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>er(t,t.href)||er(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:sk},yb={extends:"Link"},Fd={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,p=e.__ref.root,d=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&&!d){t.preventDefault();try{let g=p;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=p;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,p.routes&&(g.routes=p.routes))}(f.router||l.router||c.router||be)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}}},bb={extends:[$d,Fd]};var Ld={};I(Ld,{Select:()=>xb});var xb={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 Md={};I(Md,{Button:()=>_b,ButtonSet:()=>vb,CircleButton:()=>wb,IconButton:()=>Cb,KangorooButton:()=>kb,SquareButton:()=>Sb});var _b={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.disabled)},Sb={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},wb={extends:"SquareButton",round:"C"},kb={extends:"Button",childExtends:"IconText"},vb={tag:"nav",display:"flex",childExtends:"SquareButton"},Cb={extends:["SquareButton","ClickableItem"],round:"Z"};var Nd={};I(Nd,{Dialog:()=>Ab,DialogFooter:()=>Tb,DialogHeader:()=>Eb});var Ab={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Eb={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Tb={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 jd={};I(jd,{Tooltip:()=>Ob,TooltipHidden:()=>Rb,TooltipParent:()=>Pb});O();var Ob={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=>At(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)}},Rb={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)}},Pb={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 Bd={};I(Bd,{Avatar:()=>Ib});var ik=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)},Ib={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=ik(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 Vd={};I(Vd,{Range:()=>$b});var $b={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:Xr("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Xr("#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 Ud={};I(Ud,{Dropdown:()=>Fb,DropdownList:()=>Db,DropdownParent:()=>Lb,DropdownParentFocus:()=>Mb,DropdownSiblingFocus:()=>Nb});var Fb={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"},Db={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"}}},Lb={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Mb={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()}}},Nb={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 zd={};I(zd,{Notification:()=>jb});var jb={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 Er=Object.assign({},sd,id,ad,cd,ld,dd,hd,gd,ud,md,yd,pd,bd,xd,_d,Sd,wd,kd,vd,Cd,Ad,Ed,Dd,Ld,Md,Nd,jd,Bd,Vd,Ud,zd);function oc(t){if(t==null)return 0;if(typeof t!="object")return Bb(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let n=0;n<t.length;n++)e=(e^oc(t[n]))*16777619;return e>>>0}let r=Object.keys(t).sort();for(let n=0;n<r.length;n++)e=(e^Bb(r[n]))*16777619,e=(e^oc(t[r[n]]))*16777619;return e>>>0}function Bb(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e}function sc(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(!sc(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)||!sc(t[s],e[s]))return!1}return!0}function Wd(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=Wd(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 Hd(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])?Hd(t[n],o,r):t[n]=o}return t}function nr(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 Sn(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function zs(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():nr(e)}function Vb(t){return t.split(`
72
72
  `).map(nr).join(`
73
73
  `)}var Ub={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 zb(t,e){let r=Ub[t]||nr(t),n=zs(e),o=`_${r}-${n}`,s=Sn(t),i=`.${o}{${s}: ${e}}`;return`${o}
74
74
  ${i}`}var Wb=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function Hb(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||Wb(i))continue;let a=Ub[s]||nr(s),c=zs(i),l=`_${a}-${c}`,f=Sn(s);r.push(l),n.push(`.${l}{${f}:${i}}`)}return r.join(" ")+"\0"+n.join(`
75
75
  `)}function Gb(t,e){let r=t+e,n=`_c${nr(r)}`,o=e.split("\0"),s="";for(let a=0;a+1<o.length;a+=2){let c=o[a],l=o[a+1];l&&(Wb(l)||(s+=`${Sn(c)}:${l};`))}let i;if(t.startsWith("@media"))i=`${t}{.${n}{${s}}}`;else if(t.startsWith(":")||t.startsWith("&")){let a=t.startsWith("&")?t.slice(1):t;i=`.${n}${a}{${s}}`}else t.includes("&")?i=`${t.replace("&",`.${n}`)}{${s}}`:i=`.${n} ${t}{${s}}`;return`${n}
76
- ${i}`}var Gd=null;function ac(t){Gd=t}var se={structuralHash:oc,deepEqual:sc,mergeStructural:Wd,overwriteDeep:Hd,shortHash:nr,toKebab:Sn,sanitizeValue:zs,batchShortHash:Vb,atomicCssClass:zb,batchAtomicCss:Hb,compoundCssClass:Gb},qb=!1,ic=null;function Kb(t){return ic||(ic=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(se.structuralHash=e.structuralHash),e.deepEqual&&(se.deepEqual=e.deepEqual),e.mergeStructural&&(se.mergeStructural=e.mergeStructural),e.overwriteDeep&&(se.overwriteDeep=e.overwriteDeep),e.shortHash&&(se.shortHash=e.shortHash),e.toKebab&&(se.toKebab=e.toKebab),e.sanitizeValue&&(se.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(se.batchShortHash=e.batchShortHash),e.atomicCssClass&&(se.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(se.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(se.compoundCssClass=e.compoundCssClass),qb=!0,Gd&&e.batchAtomicCss&&Gd({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),ic)}function Yb(){return qb}O();var Ws={};I(Ws,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,ENV:()=>Ul,HTML_TAGS:()=>Vr,METHODS:()=>Lr,METHODS_EXL:()=>Yn,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,PROPS_METHODS:()=>Me,STATE_METHODS:()=>hr,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>qh,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,addCaching:()=>Hi,addContext:()=>Wi,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addProtoToArray:()=>Wn,addRef:()=>Vi,applyCSS:()=>Kd,applyDependentState:()=>$f,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>Xh,applyProps:()=>po,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,call:()=>ru,captureSnapshot:()=>ou,checkForStateTypes:()=>Of,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,concatAddExtends:()=>uf,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,createBasedOnType:()=>Bi,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createSnapshotId:()=>eo,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,document:()=>K,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,get:()=>Jf,getActiveRoute:()=>Id,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLocalStorage:()=>sf,getNev:()=>Gl,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSpreadChildren:()=>bf,global:()=>rl,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,init:()=>Pe,initProps:()=>vf,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isStaging:()=>Wl,isState:()=>Pf,isString:()=>S,isStringFunction:()=>Xl,isTest:()=>ki,isTesting:()=>zl,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keys:()=>aa,lastLevel:()=>nc,lastPathname:()=>rc,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchRoute:()=>Od,matchesComponentNaming:()=>fe,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,objectToString:()=>Jn,objectizeStringProperty:()=>uo,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseDeep:()=>Oo,parseQuery:()=>Rd,parseRoutePattern:()=>Td,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,reinit:()=>qd,remove:()=>Ag,removeChars:()=>Cu,removeCookie:()=>of,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveHandler:()=>jr,resolveSharedLibraries:()=>wu,returnValueAsText:()=>ji,router:()=>be,runGuards:()=>Pd,runPluginHook:()=>yt,scratchSystem:()=>nn,scratchUtils:()=>qe,self:()=>nl,set:()=>vr,setActiveRootState:()=>$o,setCookie:()=>rf,setHashedExtend:()=>Ci,setInObjectByPath:()=>Ml,setLocalStorage:()=>af,setNodeStyles:()=>ia,setProps:()=>Zf,setPropsPrototype:()=>mo,sharedLibrary:()=>Su,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,swapItemsInArray:()=>cl,syncProps:()=>bo,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,unstackArrayOfObjects:()=>Un,update:()=>kf,updateProps:()=>Cf,variables:()=>Uo,verbose:()=>Hr,warn:()=>jo,window:()=>k});O();O();var uk=A(),Xb=(t=uk,e)=>{let r=w(e.localFile)?e.localFile:{},n=ot(r.designSystem||{});return X(t,n)},pk={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Pe=(t,e=pk)=>{let r=Xb(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=vr({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=Qo(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,g=t.icons;if(f&&ft(a),l&&(ft({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ft(m)}c&&ft(i.reset);let h=i.animation;if(h){let m={};for(let y in h)m[`@keyframes ${y}`]=h[y];ft(m)}return(p||u)&&As(i.svg,{document:e.document}),(g||d)&&Ts(i.icons,{document:e.document}),i},cc={},qd=(t,e=cc)=>{let r=Xb(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=vr({verbose:!1,...r});if(!e.preventInject){if(ft({[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];ft(i)}ft(s.reset)}return s},Kd=(t,e=cc)=>{ft(t)},dk=(t,e=cc)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ft({[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];ft(o)}};var hk=(t,e=cc)=>{};O();var Jb=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,Yd={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Hs=(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},Zb=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Yd:e.router=it(e.router||{},Yd);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=Jb(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=Hs(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await be(u,p,{},{initialRender:!0,pushState:!1})},o=!dt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),gk(e,r),r},Xd=(t,e)=>{if(e.router===!1)return;let r=e.router||Yd;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:be,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=Jb(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=Hs(t,r.customRouterElement);p&&(u=p,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))},gk=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return X(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var Jd=k&&k.location?k.location.host.includes("dev."):je(),Qb=Jd?"http://localhost:8080/get":"https://api.symbols.app/get",mk={endpoint:Qb},tx=async(t,e=mk)=>{let r=e.endpoint||Qb,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(v(e.onError))return e.onError(s);console.error(s)}},yk=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await tx(t,r),o=Jd||e.isDevelopment?Vt(n):Vt(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Tt(e[s],o[s.toLowerCase()])}):Tt(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Tt(e[s],o[s.toLowerCase()])})}return e},bk=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await tx(t,n),s=Jd||e.isDevelopment?Vt(o):Vt(o.releases[0]);r(s)}},ex=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await yk(t,e)}catch(r){console.error(r)}},rx=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&bk(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 Gs=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{tr(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 xk={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"}},_k=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}"]`},nx=t=>Vt({v:t}).v,ox=(t,e,r,n)=>{try{return tt(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for "${n}" threw; treating as unset:`,o&&o.message||o);return}},lc=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&ce(n)&&(n=nx(n));let o=v(n)?ox(n,e,r,"metadata"):w(n)?{...n}:{};if(!w(o))return{};for(let s in o){let i=o[s];S(i)&&ce(i)&&(i=nx(i)),v(i)?i=ox(i,e,r,s):S(i)&&ce(i)&&(i=void 0),S(i)&&i.includes("{{")&&e?.call&&(i=e.call("replaceLiteralsWithObjectFields",i,r)),o[s]=i}return o};var Sk=(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},sx=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)},Zd=(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))}},fc=(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=xk[r];if(!o)continue;let s=_k(o),i=e.querySelector(s)||Sk(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(sx);Zd(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(sx);Zd(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));Zd(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 ix={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=Q(()=>{let n=t.metadata;if(!n)return;let o=lc(n,t,t.state);fc(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=lc(e,t,t.state);fc(n,r)}};xr();var ax=(t,e,r,n)=>{t&&Eo(t,e,r,n)},cx=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=lc(t,e,r);fc(o,n)},lx=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},wn={routes:t=>t,metadata:cx,fetch:ax,$router:lx},fx=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=cx),t.fetch!==!1&&(e.fetch=ax),t.router!==!1&&(e.$router=lx),e};var Qd={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},uc={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},pc={...Qd,router:uc},wk={state:{},pages:{},components:{},router:uc,define:wn},or=wk;O();O();var ux=(t,e)=>j(t.extends)?t.extends:[];O();var hx=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},px=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(fe(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},gx=t=>t.components?{...px(),...t.components}:px(),mx=t=>({...Ws,...Us,...qe,...t.utils,...t.snippets,...t.functions}),yx=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),dx={},bx=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=ze[s]||Gr(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=je()&&n?`?${Math.random()}`:"",u=ee(c,l,o)+f;try{if(dx[c])continue;dx[c]=!0,await Promise.race([qr(u,{document:r,type:"module"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,l,"symbols")+f;await Promise.race([qr(d,{document:r}),new Promise((g,h)=>setTimeout(()=>h(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},xx=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Gr(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 p=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],g=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(h,{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)},kk=/\s+/g,_x=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,vk=(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+=` ${_x(o,e)}`)}return r},Ck=(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=vk(t,e));let o=t.replace(kk," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},Ak=()=>(t,e,r)=>{let n=_x(t,e);if(t){let{__ref:o}=e;o.__class.style=n}Sx()(e.classlist,e,e.state,!0)},Sx=()=>(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=oe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Ck(i,e,e.node)}},Ek=()=>({style:Ak(),classlist:Sx()}),Tk=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],th=new WeakSet,eh=!1,Ok=t=>!!t&&typeof t=="object",wx=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||Ek(),s=e.designSystem?X(ot(e.designSystem),Bs):ot(Bs),i={};for(let m of Tk)e[m]!==void 0&&(i[m]=e[m]);let a,c=Ok(r),f=c&&th.has(r)&&!e.skipDesignSystemInit,u=!f&&!eh,p=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=p;let d=p===":root"?":root:not([data-theme])":`${p}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){et(a);try{if(ft({[p]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let m={};for(let y in a.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[d]:a.CSS_MEDIA_VARS[y]}:m[y]=a.CSS_MEDIA_VARS[y];ft(m)}}finally{J()}}}else if(u){let m=A();m&&(m.document=r),a=Pe(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:p,...pc,...i,...n}),a&&a!==m&&(a.document=r),c&&th.add(r),eh=!0}else{let m=Oa(t,s,{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.document=r,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}et(m);try{a=Pe(m,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:p,...pc,...i,...n})}finally{J()}c&&th.add(r),eh=!0}let g=a?.CONFIG||a,h=g?.font;if(h){et(g);try{for(let m in h){let y=h[m];if(!y?.fontFace)continue;let b=Array.isArray(y.fontFace)?y.fontFace:[y.fontFace];for(let x of b)typeof x=="string"&&x.includes("font-family")&&ft(`@font-face { ${x} }`)}}finally{J()}}return[a,o]},kx=(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)},vx=(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},Cx=t=>{qo(t,t.sharedLibraries)};O();var Ex="smbls_lang",Rk="smbls_t_",Pk="smbls_tv_",kn={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)}}},qs={};function Ks(){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 dc=(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},Ax=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=dc(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function gc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Ax(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=dc(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=dc(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Ax(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=dc(l,t);if(f!==void 0)return f}}return t}async function mc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||Rk,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):Pk);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=kn.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(qs[i])return qs[i];let a=this;return qs[i]=(async()=>{try{let c=r.fetch,l=parseInt(kn.get(s+t),10)||0,f,u,p;if(v(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,p=!0}else if(w(c)){let g=a.getDB||(()=>e.fetch),h=v(g)?await g.call(a):e.fetch;if(!h)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await h.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},u=x.version||0,p=!0}else return;if(!p||!f)return;kn.set(o+t,JSON.stringify(f)),u&&kn.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}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 qs[i]}})(),qs[i]}async function yc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Ex;kn.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 p=f.call("replaceLiteralsWithObjectFields",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function bc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=v(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 rh(){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||Ex,s=kn.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function xc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var _c={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,rh.call(t))}};var Ys={polyglot:gc,getLocalStateLang:xc,getActiveLang:Ks,getLang:Ks,setLang:yc,getLanguages:hc,loadTranslations:mc,upsertTranslation:bc};xr();var Sc={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}},wc=t=>parseFloat(t.toFixed(4)),Ik=(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,p=l/i,d=(n-a+s/2)/i-(u-p)/2,g=(c+s/2)/i-(u-p)/2;return{fontSize:`${wc(t/16)}rem`,lineHeight:`${wc(f)}px`,capHeightTrim:`${wc(-d)}em`,baselineTrim:`${wc(-g)}em`}},$k=(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},Fk=(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(Sc[i])return Sc[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(Sc[a])return Sc[a]}}return null},Tx=(t,e,r,n)=>{if(!t)return;let o=$k(e.fontSize,n);if(!o)return;let s=Fk(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=Ik(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},Ox={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Xs={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"},Jt=Object.create(null);for(let t in Xs)Jt[Xs[t]]=t;var nh=Object.create(null);for(let t in Xs){let e=Xs[t];if(nh[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${nh[e]}"`);nh[e]=t}var sr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Js(t){return/^[A-Z]/.test(t)}function Zs(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function Dk(t){return t.trim().split(/\s+/).filter(Boolean)}function Rx(t){return t.replace(/_/g," ")}function Lk(t){if(!t||typeof t!="string")return{};let e={},r=Dk(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Jt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Jt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Jt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Rx);continue}e[a]=Rx(i)}return e}function Qs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Qs(r):r});let e={};for(let r in t){let n=t[r];if(Js(r)){e[r]=oh(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){e[r]=oh(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=oh(n)}return e}function oh(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qs(e):e}):typeof t=="object"?Qs(t):t}function ti(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ti(r):r});let e={};if(typeof t.in=="string"){let r=Lk(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(Js(r)){e[r]=sh(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){e[r]=sh(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=sh(n)}return e}function sh(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ti(e):e}):typeof t=="object"?ti(t):t}function Mk(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 Nk(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 Px(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Mk(t)}function ih(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=Jt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Jt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Jt[s]||s,c=Nk(i);if(c.length>1){e[a]=c.map(Px);continue}e[a]=Px(i)}return e}function ei(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ei(r):r});let e={};if(typeof t.in=="string"){let r=ih(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(Js(r)){typeof n=="string"?e[r]=ih(n):e[r]=ah(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){typeof n=="string"?e[r]=ih(n):e[r]=ah(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=ah(n)}return e}function ah(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ei(e):e}):typeof t=="object"?ei(t):t}var jk={shorten:Qs,stringify:ti,stringifyFurther:ei};function Bk(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 Vk=["components","pages","snippets"],kc={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=jk[e===!0?"shorten":e];if(n){for(let o of Vk)t[o]&&(t[o]=Bk(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var Uk=0,zk=()=>`${Date.now().toString(36)}-${(Uk++).toString(36)}`,H=(t,e,r={})=>({id:zk(),ts:Date.now(),type:t,level:e,...r}),Wk=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:Wk(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Cn=t=>t?.context?.analyze,Hk={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"}},Gk=(t,{category:e,type:r,level:n})=>o=>{let s=Cn(o);!s||!s.shouldCapture(e)||s.emit(H(r,n,{hook:t,element:vn(o)}))},Ix=t=>(e,r)=>{let n=Cn(e);!n||!n.shouldCapture("state")||n.emit(H("state","debug",{hook:t,element:vn(e),changedKeys:r?.changedKeys||null}))},ri={name:"analyze",error(t,e){let r=Cn(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(H("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=Cn(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(H("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Cn(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Cn(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(H("update","debug",{hook:"update",element:vn(t),durationMs:r}))},beforeStateUpdate:Ix("beforeStateUpdate"),stateUpdate:Ix("stateUpdate")};for(let[t,e]of Object.entries(Hk))ri[t]=Gk(t,e);O();var vc={error:0,warn:1,info:2,debug:3,trace:4};var ch=(t,e)=>{let r=vc[t],n=vc[e];return r==null||n==null?!0:r<=n},Cc=t=>vc[t]!=null?t:"warn";O();var Ac=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var qk=(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},Kk=(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"***"}},lh=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>lh(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(qk(s,e)||Ac.test(s)){let a=Kk(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=lh(t[s],e,r,n+1);return o},fh=(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:p,target:d,...g}=n,h=lh(g,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}}};var $x=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}}}},Fx=()=>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},Dx=(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}},Lx=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Mx={redact:t=>fh(t.config.redact||[],t.config.maskStrategy),enrich:t=>$x(t),summarize:()=>Fx(),dedupe:t=>Dx(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Lx(t.config.sample||{})},Yk=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Mx[t];return r?r(e):null}return null},uh=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(Mx.redact(t));for(let s of r){let i=Yk(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 p=u,d=!1;for(let g of l)if(p=g(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};O();O();var Ec=typeof k<"u"&&typeof k.document<"u",Xk=5e3,Jk=50,Zk=3,Qk=1500,tv=1e3,Nx=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",ev=t=>{try{return JSON.stringify(t)}catch{return null}},rv=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},nv=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}},ov=()=>{if(!Ec)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}},sv=()=>{if(!Ec)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:nv(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:rv(),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:ov()}},ph=(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:Nx,p=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:Xk,g=t.maxBatch||Jk,h=t.maxRetries!=null?t.maxRetries:Zk,m=t.backoffMs||Qk,y=t.queueLimit||tv,b=t.sampleRate!=null?t.sampleRate:1,x=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),_=[],C=[],R=null,P=null,V=()=>{R||!_.length||(R=setTimeout(G,d))},E=L=>{if(P)return;let z=m*Math.pow(2,Math.max(0,L-1));P=setTimeout(()=>{if(P=null,!C.length)return;let Y=C.shift();U(Y.envelope,Y.attempt)},z)},$=L=>{let z=f?iv(f):null,Y={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:sv(),user:z?.user||null,traits:z?.traits||null,tags:z?.tags||null,events:L};if(p)try{return p(Y)||null}catch{return Y}return Y},U=async(L,z=1)=>{if(L)try{let Y=!0;if(r){let q=await r(L);Y=q!==!1&&q?.ok!==!1}else Y=await av(e,L,{apiKey:n,getAuth:l});!Y&&z<h&&(C.push({envelope:L,attempt:z+1}),E(z+1))}catch{z<h&&(C.push({envelope:L,attempt:z+1}),E(z+1))}},G=(L=!1)=>{if(R&&(clearTimeout(R),R=null),!_.length)return;let z=_;_=[];let Y=$(z);if(Y){if(L&&Ec&&navigator.sendBeacon&&e){let q=ev(Y);if(q)try{navigator.sendBeacon(e,new k.Blob([q],{type:"application/json"}));return}catch{}}U(Y)}};Ec&&(k.addEventListener("pagehide",()=>G(!0),{passive:!0}),k.addEventListener("beforeunload",()=>G(!0),{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&G(!0)},{passive:!0}));let D=L=>{if(!L||b<1&&Math.random()>b)return;let z={...L,log_type:u(L)};_.push(z),_.length>y&&(_=_.slice(-y)),_.length>=g?G():V()};return D.flush=()=>G(!1),D.sessionId=x,D},iv=t=>{try{return t()}catch{return null}},av=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 cv={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},lv="\x1B[0m",Tc=typeof k<"u"&&typeof k.document<"u",Bx=(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(Tc)i(a,s);else{let c=cv[s.level]||"";i(`${c}${a}${lv}`,s)}}},Vx=(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},Ux=(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=Tc?new k.Blob([c],{type:"application/json"}):c;if(Tc&&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(()=>{})};Tc&&(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},jx={console:Bx,memory:Vx,beacon:Ux,remote:ph},dh=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=jx[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=jx[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};O();var fv=typeof k<"u"&&typeof k.document<"u",uv=new Set(["password","hidden"]),zx=(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))))}},hh="__analyzeKeyPath",An=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[hh])return e[hh];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[hh]=i}catch{}return i},pv=(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"***"}},dv=t=>!!(!t||t.tagName==="INPUT"&&uv.has(t.type)||Ac.test(t.name||"")||Ac.test(t.id||"")||t.dataset?.analyze==="skip"),gh=t=>{if(!fv)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(H("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(H("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(H("pointer","info",{hook:"click",target:An(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Wx(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(H("pointer","info",{hook:"dblclick",target:An(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(H("pointer","info",{hook:"contextmenu",target:An(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=zx(i=>{t.emit(H("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(H("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Wx(s),target:An(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=dv(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=pv(a.value,t.config.maskStrategy)),t.emit(H("forms","info",{hook:i.type,target:An(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(H("forms","info",{hook:"submit",target:An(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=zx(()=>{t.emit(H("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=no(()=>{t.emit(H("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(H("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(H("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(H("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(H("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Hx)}))}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(H("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{}},Wx=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),hv=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=Hx(t.cause)),e},Hx=t=>{if(t==null)return t;if(t instanceof Error)return hv(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var gv=typeof k<"u"&&typeof k.document<"u";var mh=t=>{if(gv&&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(H("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(H("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(H("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(H("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(H("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(H("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 mv={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},yv={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},bv={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},xv={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},_v=t=>{let e={...mv,...t};return e.replay&&Object.assign(e,yv),e.telemetry&&Object.assign(e,bv),e.remote&&Object.assign(e,xv),e},Sv=64,wv=()=>{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=_v(e.capture||{});let r=wv();(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=Cc(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=uh(n),n.__sinks=dh(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&&ch(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Sv&&n.__preBuffer.push(s);return}o(),Gx(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)Gx(n,a)}try{gh(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{mh(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=Cc(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},Gx=(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 ie=Object.create(null);ie.open="0";ie.close="1";ie.ping="2";ie.pong="3";ie.message="4";ie.upgrade="5";ie.noop="6";var ni=Object.create(null);Object.keys(ie).forEach(t=>{ni[ie[t]]=t});var oi={type:"error",data:"parser error"};var Yx=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xx=typeof ArrayBuffer=="function",Jx=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,si=({type:t,data:e},r,n)=>Yx&&e instanceof Blob?r?n(e):qx(e,n):Xx&&(e instanceof ArrayBuffer||Jx(e))?r?n(e):qx(new Blob([e]),n):n(ie[t]+(e||"")),qx=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function Kx(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var bh;function Zx(t,e){if(Yx&&t.data instanceof Blob)return t.data.arrayBuffer().then(Kx).then(e);if(Xx&&(t.data instanceof ArrayBuffer||Jx(t.data)))return e(Kx(t.data));si(t,!1,r=>{bh||(bh=new TextEncoder),e(bh.encode(r))})}var Qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ii=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Qx.length;t++)ii[Qx.charCodeAt(t)]=t;var t_=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=ii[t.charCodeAt(n)],i=ii[t.charCodeAt(n+1)],a=ii[t.charCodeAt(n+2)],c=ii[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 kv=typeof ArrayBuffer=="function",ai=(t,e)=>{if(typeof t!="string")return{type:"message",data:e_(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:vv(t.substring(1),e)}:ni[r]?t.length>1?{type:ni[r],data:t.substring(1)}:{type:ni[r]}:oi},vv=(t,e)=>{if(kv){let r=t_(t);return e_(r,e)}else return{base64:!0,data:t}},e_=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var r_="",n_=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{si(s,!1,a=>{n[i]=a,++o===r&&e(n.join(r_))})})},o_=(t,e)=>{let r=t.split(r_),n=[];for(let o=0;o<r.length;o++){let s=ai(r[o],e);if(n.push(s),s.type==="error")break}return n};function s_(){return new TransformStream({transform(t,e){Zx(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 xh;function Oc(t){return t.reduce((e,r)=>e+r.length,0)}function Rc(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 i_(t,e){xh||(xh=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Oc(r)<1)break;let c=Rc(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(Oc(r)<2)break;let c=Rc(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Oc(r)<8)break;let c=Rc(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(Oc(r)<o)break;let c=Rc(r,o);a.enqueue(ai(s?c:xh.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(oi);break}}}})}var _h=4;function nt(t){if(t)return Cv(t)}function Cv(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 Ie=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),wt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),a_="arraybuffer";function Pc(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var Av=wt.setTimeout,Ev=wt.clearTimeout;function $e(t,e){e.useNativeTimers?(t.setTimeoutFn=Av.bind(wt),t.clearTimeoutFn=Ev.bind(wt)):(t.setTimeoutFn=wt.setTimeout.bind(wt),t.clearTimeoutFn=wt.clearTimeout.bind(wt))}var Tv=1.33;function c_(t){return typeof t=="string"?Ov(t):Math.ceil((t.byteLength||t.size)*Tv)}function Ov(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 Ic(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function l_(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function f_(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 $c=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},Fe=class extends nt{constructor(e){super(),this.writable=!1,$e(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 $c(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=ai(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=l_(e);return r.length?"?"+r:""}};var ci=class extends Fe{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)};o_(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,n_(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]=Ic()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var u_=!1;try{u_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var p_=u_;function Rv(){}var Sh=class extends ci{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}},ir=class t extends nt{constructor(e,r,n){super(),this.createRequest=e,$e(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=Pc(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=Rv,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()}};ir.requestsCount=0;ir.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",d_);else if(typeof addEventListener=="function"){let t="onpagehide"in wt?"pagehide":"unload";addEventListener(t,d_,!1)}}function d_(){for(let t in ir.requests)ir.requests.hasOwnProperty(t)&&ir.requests[t].abort()}var Pv=(function(){let t=h_({xdomain:!1});return t&&t.responseType!==null})(),ar=class extends Sh{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=Pv&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ir(h_,this.uri(),e)}};function h_(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||p_))return new XMLHttpRequest}catch{}if(!e)try{return new wt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var g_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",kh=class extends Fe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=g_?{}:Pc(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;si(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ie(()=>{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]=Ic()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},wh=wt.WebSocket||wt.MozWebSocket,cr=class extends kh{createSocket(e,r,n){return g_?new wh(e,r,n):r?new wh(e,r):new wh(e)}doWrite(e,r){this.ws.send(r)}};var En=class extends Fe{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=i_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=s_();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&&Ie(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var vh={websocket:cr,webtransport:En,polling:ar};var Iv=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$v=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Tn(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=Iv.exec(t||""),s={},i=14;for(;i--;)s[$v[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=Fv(s,s.path),s.queryKey=Dv(s,s.query),s}function Fv(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 Dv(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ch=typeof addEventListener=="function"&&typeof removeEventListener=="function",Fc=[];Ch&&addEventListener("offline",()=>{Fc.forEach(t=>t())},!1);var Tr=class t extends nt{constructor(e,r){if(super(),this.binaryType=a_,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=Tn(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=Tn(r.host).host);$e(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=f_(this.opts.query)),Ch&&(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"})},Fc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=_h,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+=c_(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,Ie(()=>{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(),Ch&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Fc.indexOf(this._offlineEventListener);n!==-1&&Fc.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Tr.protocol=_h;var Dc=class extends Tr{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;Tr.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;Tr.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 p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function 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}},On=class extends Dc{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=>vh[s]).filter(s=>!!s)),super(n?o:e,o)}};var uD=On.protocol;function m_(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=Tn(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 Ph={};I(Ph,{Decoder:()=>Oh,Encoder:()=>Th,PacketType:()=>M,isPacketValid:()=>rC,protocol:()=>E_});var Mv=typeof ArrayBuffer=="function",Nv=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,y_=Object.prototype.toString,jv=typeof Blob=="function"||typeof Blob<"u"&&y_.call(Blob)==="[object BlobConstructor]",Bv=typeof File=="function"||typeof File<"u"&&y_.call(File)==="[object FileConstructor]";function fi(t){return Mv&&(t instanceof ArrayBuffer||Nv(t))||jv&&t instanceof Blob||Bv&&t instanceof File}function li(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(li(t[r]))return!0;return!1}if(fi(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return li(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&li(t[r]))return!0;return!1}function b_(t){let e=[],r=t.data,n=t;return n.data=Lc(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Lc(t,e,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]=Lc(t[o],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){if(t.toJSON&&typeof t.toJSON=="function"&&!r)return Lc(t.toJSON(),e,!0);let n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=Lc(t[o],e));return n}return t}function x_(t,e){return t.data=Ah(t.data,e),delete t.attachments,t}function Ah(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]=Ah(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ah(t[r],e));return t}var C_=rS(v_(),1),Eh=(0,C_.default)("socket.io-parser"),A_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],E_=5,M;(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"})(M||(M={}));var Th=class{constructor(e){this.replacer=e}encode(e){return Eh("encoding packet %j",e),(e.type===M.EVENT||e.type===M.ACK)&&li(e)?this.encodeAsBinary({type:e.type===M.EVENT?M.BINARY_EVENT:M.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===M.BINARY_EVENT||e.type===M.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)),Eh("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=b_(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Oh=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===M.BINARY_EVENT;n||r.type===M.BINARY_ACK?(r.type=n?M.EVENT:M.ACK,this.reconstructor=new Rh(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(M[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===M.BINARY_EVENT||n.type===M.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(!T_(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 Eh("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 M.CONNECT:return jc(r);case M.DISCONNECT:return r===void 0;case M.CONNECT_ERROR:return typeof r=="string"||jc(r);case M.EVENT:case M.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&A_.indexOf(r[0])===-1);case M.ACK:case M.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Rh=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=x_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Qv(t){return typeof t=="string"}var T_=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function tC(t){return t===void 0||T_(t)}function jc(t){return Object.prototype.toString.call(t)==="[object Object]"}function eC(t,e){switch(t){case M.CONNECT:return e===void 0||jc(e);case M.DISCONNECT:return e===void 0;case M.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&A_.indexOf(e[0])===-1);case M.ACK:return Array.isArray(e);case M.CONNECT_ERROR:return typeof e=="string"||jc(e);default:return!1}}function rC(t){return Qv(t.nsp)&&tC(t.id)&&eC(t.type,t.data)}function jt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var nC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),$n=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=[jt(e,"open",this.onopen.bind(this)),jt(e,"packet",this.onpacket.bind(this)),jt(e,"error",this.onerror.bind(this)),jt(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(nC.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:M.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:M.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 M.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 M.EVENT:case M.BINARY_EVENT:this.onevent(e);break;case M.ACK:case M.BINARY_ACK:this.onack(e);break;case M.DISCONNECT:this.ondisconnect();break;case M.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:M.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:M.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 Rr(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}Rr.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};Rr.prototype.reset=function(){this.attempts=0};Rr.prototype.setMin=function(t){this.ms=t};Rr.prototype.setMax=function(t){this.max=t};Rr.prototype.setJitter=function(t){this.jitter=t};var Fn=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,$e(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 Rr({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||Ph;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 On(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=jt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=jt(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(jt(e,"ping",this.onping.bind(this)),jt(e,"data",this.ondata.bind(this)),jt(e,"error",this.onerror.bind(this)),jt(e,"close",this.onclose.bind(this)),jt(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){Ie(()=>{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 $n(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 ui={};function Dn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=m_(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ui[o]&&s in ui[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Fn(n,e):(ui[o]||(ui[o]=new Fn(n,e)),c=ui[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Dn,{Manager:Fn,Socket:$n,io:Dn,connect:Dn});O();var oC=new Set(["__proto__","constructor","prototype"]),O_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(oC.has(t[e]))return!1;return!0},sC=(t,e)=>{!t||!O_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},iC=(t,e,r,n=!1)=>{!t||!O_(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)},R_=(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":sC(t,o);break;case"update":case"set":iC(t,o,s,!0);break;default:break}return r};O();var P_=(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])=>{r[a]&&typeof r[a]=="object"?a==="designSystem"?n&&Pe(c):mr(r[a],c):r[a]=c}),n=!0,i&&(r.schema=i))}},I_=(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=R_(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Pe(r.designSystem)};var aC={success:"green",error:"red",warning:"yellow"},$_=(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)}},F_={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:aC[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 cC=!1,lC=()=>cC?"http://localhost:8080":"https://api.symbols.app",fC=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}},uC=async t=>{try{let e=t||lC(),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)}},M_=(t,e,r,n)=>{t.on("snapshot",P_(e,r,n)),t.on("ops",I_(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&$_(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},pC=async(t,e,r,n)=>{let o=await uC(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=Dn(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)")}),M_(a,t,e,r),a},dC=(t,e,r)=>{let n=Dn({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),M_(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},hC=async(t,e,r)=>{let{mode:n,baseUrl:o}=fC(r);return n?n==="collab"?pC(t,e,r,o):n==="runner"?dC(t,e,r):null:null},gC={onInit:hC};var N_=t=>typeof t>"u",D_=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),L_=t=>t?.editor?.runtime==="runner",j_=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},B_={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!N_(r.liveSync)?r.liveSync:D_(e)||L_(e))&&(D_(e)&&!L_(e)&&!e?.key||j_(t,gC))}},V_={name:"notifications",beforeCreate(t,e){if(!e)return;let r=N_(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&j_(t,F_)}};O();function U_(t){return S(t)?t:T(t)?t.find(e=>S(e)):""}function $h(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&U_(t.extends),n=t.parent&&t.parent.childExtends&&U_(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Bc(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=$h(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Bc(t.parent):o&&(e[o]||r[o])?t:Bc(t.parent)}var mC=(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}))}},Ih={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:mC,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Bc(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=$h(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}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=Bc(n);if(!o)return;let s=$h(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)_n[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=`
76
+ ${i}`}var Gd=null;function ac(t){Gd=t}var se={structuralHash:oc,deepEqual:sc,mergeStructural:Wd,overwriteDeep:Hd,shortHash:nr,toKebab:Sn,sanitizeValue:zs,batchShortHash:Vb,atomicCssClass:zb,batchAtomicCss:Hb,compoundCssClass:Gb},qb=!1,ic=null;function Kb(t){return ic||(ic=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(se.structuralHash=e.structuralHash),e.deepEqual&&(se.deepEqual=e.deepEqual),e.mergeStructural&&(se.mergeStructural=e.mergeStructural),e.overwriteDeep&&(se.overwriteDeep=e.overwriteDeep),e.shortHash&&(se.shortHash=e.shortHash),e.toKebab&&(se.toKebab=e.toKebab),e.sanitizeValue&&(se.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(se.batchShortHash=e.batchShortHash),e.atomicCssClass&&(se.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(se.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(se.compoundCssClass=e.compoundCssClass),qb=!0,Gd&&e.batchAtomicCss&&Gd({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),ic)}function Yb(){return qb}O();var Ws={};I(Ws,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>Al,DOMQ_PROPERTIES:()=>Le,ENV:()=>Ul,HTML_TAGS:()=>Vr,METHODS:()=>Lr,METHODS_EXL:()=>Yn,NODE_ENV:()=>Zt,OPTIONS:()=>xo,PACKAGE_MANAGER_TO_CDN:()=>ze,PARSED_DOMQ_PROPERTIES:()=>Kn,PROPS_METHODS:()=>Me,STATE_METHODS:()=>hr,STATE_PROPERTIES:()=>Cl,SVG_TAGS:()=>qh,TYPES:()=>Vn,UNIVERSAL_RESERVED_KEYS:()=>la,addCaching:()=>Hi,addContext:()=>Wi,addExtend:()=>hf,addExtends:()=>Ot,addItemAfterEveryElement:()=>pl,addProtoToArray:()=>Wn,addRef:()=>Vi,applyCSS:()=>Kd,applyDependentState:()=>$f,applyEvent:()=>Ji,applyEventUpdate:()=>Zi,applyExtends:()=>Xh,applyProps:()=>po,arrayContainsOtherArray:()=>sl,arraysEqual:()=>hl,arrayzeValue:()=>Sr,buildImgSrcset:()=>Xo,buildSourcesAndImg:()=>Jo,cache:()=>Nf,call:()=>ru,captureSnapshot:()=>ou,checkForStateTypes:()=>Of,checkIfInherits:()=>Xi,checkIfStringIsInArray:()=>yl,clone:()=>Tl,cloneAndMergeArrayExtend:()=>oo,cloneFunction:()=>Jl,concatAddExtends:()=>uf,copyJavaScriptToClipboard:()=>vu,copyStringToClipboard:()=>ku,createBasedOnType:()=>Bi,createElement:()=>Tf,createElementExtends:()=>Ti,createExtends:()=>io,createExtendsFromKeys:()=>Ur,createExtendsStack:()=>Ii,createIfConditionFlag:()=>Zl,createInheritedState:()=>Rf,createKey:()=>ro,createNestedObject:()=>Dl,createNestedObjectByKeyPath:()=>If,createObjectWithoutPrototype:()=>Si,createParent:()=>Ui,createPath:()=>zi,createProps:()=>ho,createPropsStack:()=>Ni,createRoot:()=>Ef,createScope:()=>Df,createSnapshotId:()=>eo,customDecodeURIComponent:()=>vl,customEncodeURIComponent:()=>kl,cutArrayAfterValue:()=>fl,cutArrayBeforeValue:()=>ll,debounce:()=>no,debounceOnContext:()=>Kl,decodeNewlines:()=>wl,deepClone:()=>ot,deepContains:()=>$l,deepDefaults:()=>Ho,deepDestringifyFunctions:()=>Vt,deepExtend:()=>Ei,deepMerge:()=>X,deepMergeExtends:()=>le,deepStringifyFunctions:()=>Xn,defineSetter:()=>tu,destringifyGlobalScope:()=>Zn,detectHeightOnInit:()=>lu,detectInfiniteLoop:()=>jl,document:()=>K,encodeNewlines:()=>Sl,error:()=>_r,excludeKeysFromObject:()=>Vl,exec:()=>tt,extendCachedRegistry:()=>pf,extendStackRegistry:()=>ao,extractArrayExtend:()=>lo,fetchLibraryData:()=>da,fibonacciNumberByIndex:()=>fu,filterArrays:()=>gl,filterArraysFast:()=>ml,finalizeExtends:()=>$i,findClosestNumber:()=>ua,findClosestNumberInFactory:()=>_u,findInheritedState:()=>Yi,findKeyPosition:()=>xl,flattenExtend:()=>zr,formatDate:()=>cu,generateHash:()=>vi,generateKey:()=>to,generateMetaTags:()=>bu,get:()=>Jf,getActiveRoute:()=>Id,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>yf,getCdnProviderFromConfig:()=>Gr,getChildStateInKey:()=>Ki,getChildren:()=>Po,getContext:()=>No,getCookie:()=>nf,getDB:()=>zo,getEmotionStylesheet:()=>Tu,getExtendsInElement:()=>gf,getExtendsStack:()=>so,getExtendsStackRegistry:()=>Ai,getFrequencyInArray:()=>il,getHashedExtend:()=>co,getImportMapScript:()=>au,getInObjectByPath:()=>Nl,getLocalStorage:()=>sf,getNev:()=>Gl,getPageMetadata:()=>xu,getParentStateInKey:()=>qi,getPath:()=>Io,getQuery:()=>Wo,getRef:()=>Qf,getRoot:()=>Do,getRootContext:()=>Mo,getRootData:()=>Lo,getRootState:()=>Fo,getRootStateInKey:()=>Gi,getSpreadChildren:()=>bf,global:()=>rl,hasFunction:()=>ce,hasHandlerPlugin:()=>Nr,hasOwnProperty:()=>Rl,inheritChildExtends:()=>Ri,inheritChildPropsExtends:()=>Oi,inheritParentProps:()=>go,inheritRecursiveChildExtends:()=>Pi,init:()=>Pe,initProps:()=>vf,is:()=>Et,isArray:()=>T,isBoolean:()=>mi,isContextComponent:()=>xf,isCyclic:()=>Bl,isDOMNode:()=>Ct,isDate:()=>bi,isDefined:()=>At,isDevelopment:()=>je,isEmpty:()=>xi,isEmptyObject:()=>Pl,isEqualDeep:()=>_i,isFunction:()=>v,isHtmlElement:()=>jn,isLocal:()=>Hl,isMethod:()=>nu,isMobile:()=>ef,isNode:()=>we,isNot:()=>ol,isNotProduction:()=>yr,isNull:()=>yi,isNumber:()=>ae,isObject:()=>w,isObjectLike:()=>j,isPhoto:()=>uu,isProduction:()=>Ne,isStaging:()=>Wl,isState:()=>Pf,isString:()=>S,isStringFunction:()=>Xl,isTest:()=>ki,isTesting:()=>zl,isUndefined:()=>dt,isUniversallyReservedKey:()=>su,isValidHtmlTag:()=>cf,isWrappedLibrary:()=>Go,joinArrays:()=>$r,jointStacks:()=>df,keys:()=>aa,lastLevel:()=>nc,lastPathname:()=>rc,loadCssFile:()=>gu,loadJavascript:()=>mu,loadJavascriptFile:()=>pu,loadJavascriptFileEmbedSync:()=>hu,loadJavascriptFileSync:()=>du,loadRemoteCSS:()=>yu,loadRemoteScript:()=>qr,log:()=>eu,logGroupIf:()=>tf,logIf:()=>Ql,lookdown:()=>Yf,lookdownAll:()=>Xf,lookup:()=>Kf,lowercaseFirstLetter:()=>dr,makeObjectWithoutPrototype:()=>Il,map:()=>El,mapStringsWithContextComponents:()=>fo,matchRoute:()=>Od,matchesComponentNaming:()=>fe,memoize:()=>Yl,merge:()=>it,mergeSharedLibraries:()=>qo,nextElement:()=>Bo,normalizeIgnoreList:()=>pa,normalizeLibraryKey:()=>Kr,objectToString:()=>Jn,objectizeStringProperty:()=>uo,overwrite:()=>Qn,overwriteDeep:()=>Tt,overwriteShallow:()=>mr,overwriteState:()=>Ff,parse:()=>ca,parseDeep:()=>Oo,parseQuery:()=>Rd,parseRoutePattern:()=>Td,pickupElementFromProps:()=>Li,pickupPropsFromElement:()=>Di,previousElement:()=>Vo,propExists:()=>wf,propertizeElement:()=>Mi,propertizeUpdate:()=>Sf,reinit:()=>qd,remove:()=>Ag,removeChars:()=>Cu,removeCookie:()=>of,removeDuplicateProps:()=>yo,removeDuplicatesInArray:()=>Fr,removeFromArray:()=>al,removeFromObject:()=>Fl,removeNestedKeyByPath:()=>Ll,removeValueFromArray:()=>zn,removeValueFromArrayAll:()=>ul,reorderArrayByValues:()=>dl,replaceLiteralsWithObjectFields:()=>pr,replaceOctalEscapeSequences:()=>_l,resolveAsset:()=>Rt,resolveHandler:()=>jr,resolveSharedLibraries:()=>wu,returnValueAsText:()=>ji,router:()=>be,runGuards:()=>Pd,runPluginHook:()=>yt,scratchSystem:()=>nn,scratchUtils:()=>qe,self:()=>nl,set:()=>vr,setActiveRootState:()=>$o,setCookie:()=>rf,setHashedExtend:()=>Ci,setInObjectByPath:()=>Ml,setLocalStorage:()=>af,setNodeStyles:()=>ia,setProps:()=>Zf,setPropsPrototype:()=>mo,sharedLibrary:()=>Su,spotByPath:()=>Ro,srcsetFor:()=>Yr,stringIncludesAny:()=>Gn,stringToObject:()=>Ol,swapItemsInArray:()=>cl,syncProps:()=>bo,toCamelCase:()=>Ko,toDashCase:()=>Yo,toDescriptionCase:()=>Eu,toTitleCase:()=>Au,toggleFullscreen:()=>iu,triggerEventOn:()=>Be,triggerEventOnUpdate:()=>Lf,trimStringFromSymbols:()=>bl,unstackArrayOfObjects:()=>Un,update:()=>kf,updateProps:()=>Cf,variables:()=>Uo,verbose:()=>Hr,warn:()=>jo,window:()=>k});O();O();var uk=A(),Xb=(t=uk,e)=>{let r=w(e.localFile)?e.localFile:{},n=ot(r.designSystem||{});return X(t,n)},pk={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Pe=(t,e=pk)=>{let r=Xb(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=vr({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=Qo(i.font,i.files),c=i.useReset,l=i.useVariable,f=i.useFontImport,u=i.useSvgSprite,p=t.svg,d=i.useIconSprite,g=t.icons;if(f&&ft(a),l&&(ft({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];ft(m)}c&&ft(i.reset);let h=i.animation;if(h){let m={};for(let y in h)m[`@keyframes ${y}`]=h[y];ft(m)}return(p||u)&&As(i.svg,{document:e.document}),(g||d)&&Ts(i.icons,{document:e.document}),i},cc={},qd=(t,e=cc)=>{let r=Xb(t||{},e),n=e.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=vr({verbose:!1,...r});if(!e.preventInject){if(ft({[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];ft(i)}ft(s.reset)}return s},Kd=(t,e=cc)=>{ft(t)},dk=(t,e=cc)=>{let r=e.scopeSelector||":root",n=r===":root"?":root:not([data-theme])":`${r}:not([data-theme])`;if(ft({[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];ft(o)}};var hk=(t,e=cc)=>{};O();var Jb=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,Yd={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},Hs=(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},Zb=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Yd:e.router=it(e.router||{},Yd);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=Jb(c);let u=c+l+f,p=s;if(r.customRouterElement){let d=Hs(s,r.customRouterElement);d&&(p=d,s.routes&&(p.routes=s.routes))}p.routes&&await be(u,p,{},{initialRender:!0,pushState:!1})},o=!dt(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.onRenderRouter=n),gk(e,r),r},Xd=(t,e)=>{if(e.router===!1)return;let r=e.router||Yd;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:be,o=e.window||k,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=Jb(a);let f=a+c+l,u=t;if(r.customRouterElement){let p=Hs(t,r.customRouterElement);p&&(u=p,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))},gk=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return X(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};O();var Jd=k&&k.location?k.location.host.includes("dev."):je(),Qb=Jd?"http://localhost:8080/get":"https://api.symbols.app/get",mk={endpoint:Qb},tx=async(t,e=mk)=>{let r=e.endpoint||Qb,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(v(e.onError))return e.onError(s);console.error(s)}},yk=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await tx(t,r),o=Jd||e.isDevelopment?Vt(n):Vt(n.releases[0]);r.serviceRoute?T(r.serviceRoute)?r.serviceRoute.forEach(s=>{Tt(e[s],o[s.toLowerCase()])}):Tt(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Tt(e[s],o[s.toLowerCase()])})}return e},bk=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await tx(t,n),s=Jd||e.isDevelopment?Vt(o):Vt(o.releases[0]);r(s)}},ex=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await yk(t,e)}catch(r){console.error(r)}},rx=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&bk(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 Gs=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{tr(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 xk={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"}},_k=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}"]`},nx=t=>Vt({v:t}).v,ox=(t,e,r,n)=>{try{return tt(t,e,r)}catch(o){console.warn(`[helmet] metadata factory for "${n}" threw; treating as unset:`,o&&o.message||o);return}},lc=(t,e,r)=>{if(!t)return{};let n=t;S(n)&&ce(n)&&(n=nx(n));let o=v(n)?ox(n,e,r,"metadata"):w(n)?{...n}:{};if(!w(o))return{};for(let s in o){let i=o[s];S(i)&&ce(i)&&(i=nx(i)),v(i)?i=ox(i,e,r,s):S(i)&&ce(i)&&(i=void 0),S(i)&&i.includes("{{")&&e?.call&&(i=e.call("replaceLiteralsWithObjectFields",i,r)),o[s]=i}return o};var Sk=(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},sx=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)},Zd=(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))}},fc=(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=xk[r];if(!o)continue;let s=_k(o),i=e.querySelector(s)||Sk(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(sx);Zd(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(sx);Zd(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));Zd(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 ix={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;if(!e)return;let r=Q(()=>{let n=t.metadata;if(!n)return;let o=lc(n,t,t.state);fc(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=lc(e,t,t.state);fc(n,r)}};xr();var ax=(t,e,r,n)=>{t&&Eo(t,e,r,n)},cx=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=lc(t,e,r);fc(o,n)},lx=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},wn={routes:t=>t,metadata:cx,fetch:ax,$router:lx},fx=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=cx),t.fetch!==!1&&(e.fetch=ax),t.router!==!1&&(e.$router=lx),e};var Qd={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},uc={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},pc={...Qd,router:uc},wk={state:{},pages:{},components:{},router:uc,define:wn},or=wk;O();O();var ux=(t,e)=>j(t.extends)?t.extends:[];O();var hx=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},px=(t="smbls")=>{let e={};for(let r in Er)Object.prototype.hasOwnProperty.call(Er,r)&&(fe(r)?e[`smbls.${r}`]=Er[r]:e[r]=Er[r]);return e},gx=t=>t.components?{...px(),...t.components}:px(),mx=t=>({...Ws,...Us,...qe,...t.utils,...t.snippets,...t.functions}),yx=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),dx={},bx=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=ze[s]||Gr(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=je()&&n?`?${Math.random()}`:"",u=ee(c,l,o)+f;try{if(dx[c])continue;dx[c]=!0,await Promise.race([qr(u,{document:r,type:"module"}),new Promise((p,d)=>setTimeout(()=>d(new Error(`Timeout loading ${c}`)),1e4))])}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,l,"symbols")+f;await Promise.race([qr(d,{document:r}),new Promise((g,h)=>setTimeout(()=>h(new Error(`Timeout fallback ${c}`)),2e4))]),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},xx=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Gr(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 p=je()?`?${Math.random()}`:"";if(l&&l[a]){let d=l[a],g=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(g,{window:u,document:f})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(h,{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)},kk=/\s+/g,_x=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,vk=(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+=` ${_x(o,e)}`)}return r},Ck=(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=vk(t,e));let o=t.replace(kk," ").trim();if(r&&typeof r.setAttribute=="function")r.setAttribute("class",o);else if(r)try{r.className=o}catch{}return o},Ak=()=>(t,e,r)=>{let n=_x(t,e);if(t){let{__ref:o}=e;o.__class.style=n}Sx()(e.classlist,e,e.state,!0)},Sx=()=>(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=oe(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&Ck(i,e,e.node)}},Ek=()=>({style:Ak(),classlist:Sx()}),Tk=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],th=new WeakSet,eh=!1,Ok=t=>!!t&&typeof t=="object",wx=(t,e)=>{let r=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,n=e.initOptions||{},o=e.registry||Ek(),s=e.designSystem?X(ot(e.designSystem),Bs):ot(Bs),i={};for(let m of Tk)e[m]!==void 0&&(i[m]=e[m]);let a,c=Ok(r),f=c&&th.has(r)&&!e.skipDesignSystemInit,u=!f&&!eh,p=f?`[data-smbls-app="${t}"]`:":root";e.scopeSelector=p;let d=p===":root"?":root:not([data-theme])":`${p}:not([data-theme])`;if(e.skipDesignSystemInit){if(a=A(t)||A(),a&&(a.document=r),a?.CSS_VARS){et(a);try{if(ft({[p]:a.CSS_VARS}),a.CSS_MEDIA_VARS){let m={};for(let y in a.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[d]:a.CSS_MEDIA_VARS[y]}:m[y]=a.CSS_MEDIA_VARS[y];ft(m)}}finally{J()}}}else if(u){let m=A();m&&(m.document=r),a=Pe(s,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:p,...pc,...i,...n}),a&&a!==m&&(a.document=r),c&&th.add(r),eh=!0}else{let m=Oa(t,s,{cleanBase:!0});for(let y in i)m[y]=i[y];if(m.document=r,f){let y=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=y,m.varPrefix=y}et(m);try{a=Pe(m,{key:t,document:r,files:e.files,assets:e.assets,scopeSelector:p,...pc,...i,...n})}finally{J()}c&&th.add(r),eh=!0}let g=a?.CONFIG||a,h=g?.font;if(h){et(g);try{for(let m in h){let y=h[m];if(!y?.fontFace)continue;let b=Array.isArray(y.fontFace)?y.fontFace:[y.fontFace];for(let x of b)typeof x=="string"&&x.includes("font-family")&&ft(`@font-face { ${x} }`)}}finally{J()}}return[a,o]},kx=(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)},vx=(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},Cx=t=>{qo(t,t.sharedLibraries)};O();var Ex="smbls_lang",Rk="smbls_t_",Pk="smbls_tv_",kn={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)}}},qs={};function Ks(){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 dc=(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},Ax=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=dc(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function gc(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=Ax(s,t,o);if(l!==void 0)return l}if(n?.translations){let l=n.translations[o];if(l){let f=dc(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=dc(l,t);if(f!==void 0)return f}}let c=n?.defaultLang||"en";if(s){let l=Ax(s,t,c);if(l!==void 0)return l}if(n?.translations){let l=n.translations[c];if(l){let f=dc(l,t);if(f!==void 0)return f}}return t}async function mc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||Rk,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):Pk);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=kn.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(qs[i])return qs[i];let a=this;return qs[i]=(async()=>{try{let c=r.fetch,l=parseInt(kn.get(s+t),10)||0,f,u,p;if(v(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,p=!0}else if(w(c)){let g=a.getDB||(()=>e.fetch),h=v(g)?await g.call(a):e.fetch;if(!h)return;let m=c.rpc||c.from||"get_translations_if_changed",y={p_lang:t,p_cached_version:l,...c.params||{}},b=await h.rpc({from:m,params:y});if(b.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,b.error;let x=b.data;if(!x||!x.changed)return;f=x.translations||{},u=x.version||0,p=!0}else return;if(!p||!f)return;kn.set(o+t,JSON.stringify(f)),u&&kn.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=f,n.update&&n.update(d)}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 qs[i]}})(),qs[i]}async function yc(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||Ex;kn.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 p=f.call("replaceLiteralsWithObjectFields",u,f.state);p!=null&&l.textContent!==p&&(l.textContent=p)}catch{}}}}async function bc(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&w(o.fetch)){let i=this.getDB||(()=>n.fetch),a=v(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 rh(){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||Ex,s=kn.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function xc(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var _c={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,rh.call(t))}};var Ys={polyglot:gc,getLocalStateLang:xc,getActiveLang:Ks,getLang:Ks,setLang:yc,getLanguages:hc,loadTranslations:mc,upsertTranslation:bc};xr();var Sc={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}},wc=t=>parseFloat(t.toFixed(4)),Ik=(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,p=l/i,d=(n-a+s/2)/i-(u-p)/2,g=(c+s/2)/i-(u-p)/2;return{fontSize:`${wc(t/16)}rem`,lineHeight:`${wc(f)}px`,capHeightTrim:`${wc(-d)}em`,baselineTrim:`${wc(-g)}em`}},$k=(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},Fk=(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(Sc[i])return Sc[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(Sc[a])return Sc[a]}}return null},Tx=(t,e,r,n)=>{if(!t)return;let o=$k(e.fontSize,n);if(!o)return;let s=Fk(e.fontFamily,n);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=Ik(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},Ox={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}};var Xs={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"},Jt=Object.create(null);for(let t in Xs)Jt[Xs[t]]=t;var nh=Object.create(null);for(let t in Xs){let e=Xs[t];if(nh[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${nh[e]}"`);nh[e]=t}var sr=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]);function Js(t){return/^[A-Z]/.test(t)}function Zs(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function Dk(t){return t.trim().split(/\s+/).filter(Boolean)}function Rx(t){return t.replace(/_/g," ")}function Lk(t){if(!t||typeof t!="string")return{};let e={},r=Dk(t);for(let n of r){if(n.startsWith("!")){let c=n.slice(1),l=Jt[c]||c;e[l]=!1;continue}let o=n.indexOf(":");if(o===-1){let c=Jt[n]||n;e[c]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Jt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(Rx);continue}e[a]=Rx(i)}return e}function Qs(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Qs(r):r});let e={};for(let r in t){let n=t[r];if(Js(r)){e[r]=oh(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){e[r]=oh(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=oh(n)}return e}function oh(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Qs(e):e}):typeof t=="object"?Qs(t):t}function ti(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ti(r):r});let e={};if(typeof t.in=="string"){let r=Lk(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(Js(r)){e[r]=sh(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){e[r]=sh(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=sh(n)}return e}function sh(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ti(e):e}):typeof t=="object"?ti(t):t}function Mk(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 Nk(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 Px(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):Mk(t)}function ih(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=Jt[l]||l;e[f]=!1;continue}let o=n.indexOf(":");if(o===-1){let l=Jt[n]||n;e[l]=!0;continue}let s=n.slice(0,o),i=n.slice(o+1),a=Jt[s]||s,c=Nk(i);if(c.length>1){e[a]=c.map(Px);continue}e[a]=Px(i)}return e}function ei(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?ei(r):r});let e={};if(typeof t.in=="string"){let r=ih(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(Js(r)){typeof n=="string"?e[r]=ih(n):e[r]=ah(n);continue}let o=Jt[r]||r;if(Zs(r)&&o===r){typeof n=="string"?e[r]=ih(n):e[r]=ah(n);continue}if(sr.has(o)||sr.has(r)){e[o]=n;continue}e[o]=ah(n)}return e}function ah(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ei(e):e}):typeof t=="object"?ei(t):t}var jk={shorten:Qs,stringify:ti,stringifyFurther:ei};function Bk(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 Vk=["components","pages","snippets"],kc={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let n=jk[e===!0?"shorten":e];if(n){for(let o of Vk)t[o]&&(t[o]=Bk(t[o],n));t.app&&typeof t.app=="object"&&(t.app=n(t.app))}}};var Uk=0,zk=()=>`${Date.now().toString(36)}-${(Uk++).toString(36)}`,H=(t,e,r={})=>({id:zk(),ts:Date.now(),type:t,level:e,...r}),Wk=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:Wk(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Cn=t=>t?.context?.analyze,Hk={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"}},Gk=(t,{category:e,type:r,level:n})=>o=>{let s=Cn(o);!s||!s.shouldCapture(e)||s.emit(H(r,n,{hook:t,element:vn(o)}))},Ix=t=>(e,r)=>{let n=Cn(e);!n||!n.shouldCapture("state")||n.emit(H("state","debug",{hook:t,element:vn(e),changedKeys:r?.changedKeys||null}))},ri={name:"analyze",error(t,e){let r=Cn(t);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=e?.error||e?.err||(e instanceof Error?e:null);r.emit(H("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=Cn(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(H("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Cn(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Cn(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(H("update","debug",{hook:"update",element:vn(t),durationMs:r}))},beforeStateUpdate:Ix("beforeStateUpdate"),stateUpdate:Ix("stateUpdate")};for(let[t,e]of Object.entries(Hk))ri[t]=Gk(t,e);O();var vc={error:0,warn:1,info:2,debug:3,trace:4};var ch=(t,e)=>{let r=vc[t],n=vc[e];return r==null||n==null?!0:r<=n},Cc=t=>vc[t]!=null?t:"warn";O();var Ac=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var qk=(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},Kk=(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"***"}},lh=(t,e,r,n)=>{if(n>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>lh(s,e,r,n+1));let o={};for(let s of Object.keys(t))if(qk(s,e)||Ac.test(s)){let a=Kk(t[s],r);a!==void 0&&(o[s]=a)}else o[s]=lh(t[s],e,r,n+1);return o},fh=(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:p,target:d,...g}=n,h=lh(g,r,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:p,target:d,...h}}};var $x=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}}}},Fx=()=>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},Dx=(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}},Lx=t=>e=>{if(!e)return e;let r=t[e.type];return r==null||r>=1?e:Math.random()>r?null:e},Mx={redact:t=>fh(t.config.redact||[],t.config.maskStrategy),enrich:t=>$x(t),summarize:()=>Fx(),dedupe:t=>Dx(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Lx(t.config.sample||{})},Yk=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let r=Mx[t];return r?r(e):null}return null},uh=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(Mx.redact(t));for(let s of r){let i=Yk(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 p=u,d=!1;for(let g of l)if(p=g(p),p==null){d=!0;break}!d&&p!=null&&f.push(p)}return f}i=c}return i}};O();O();var Ec=typeof k<"u"&&typeof k.document<"u",Xk=5e3,Jk=50,Zk=3,Qk=1500,tv=1e3,Nx=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",ev=t=>{try{return JSON.stringify(t)}catch{return null}},rv=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},nv=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}},ov=()=>{if(!Ec)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}},sv=()=>{if(!Ec)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:nv(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:rv(),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:ov()}},ph=(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:Nx,p=typeof t.beforeSend=="function"?t.beforeSend:null,d=t.batchMs!=null?t.batchMs:Xk,g=t.maxBatch||Jk,h=t.maxRetries!=null?t.maxRetries:Zk,m=t.backoffMs||Qk,y=t.queueLimit||tv,b=t.sampleRate!=null?t.sampleRate:1,x=t.sessionId||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),_=[],C=[],R=null,P=null,V=()=>{R||!_.length||(R=setTimeout(G,d))},E=M=>{if(P)return;let z=m*Math.pow(2,Math.max(0,M-1));P=setTimeout(()=>{if(P=null,!C.length)return;let Y=C.shift();U(Y.envelope,Y.attempt)},z)},$=M=>{let z=f?iv(f):null,Y={v:1,session:{id:x,sentAt:Date.now()},app:{key:o,release:i,env:a},tenant:s,sdk:c,page:sv(),user:z?.user||null,traits:z?.traits||null,tags:z?.tags||null,events:M};if(p)try{return p(Y)||null}catch{return Y}return Y},U=async(M,z=1)=>{if(M)try{let Y=!0;if(r){let q=await r(M);Y=q!==!1&&q?.ok!==!1}else Y=await av(e,M,{apiKey:n,getAuth:l});!Y&&z<h&&(C.push({envelope:M,attempt:z+1}),E(z+1))}catch{z<h&&(C.push({envelope:M,attempt:z+1}),E(z+1))}},G=(M=!1)=>{if(R&&(clearTimeout(R),R=null),!_.length)return;let z=_;_=[];let Y=$(z);if(Y){if(M&&Ec&&navigator.sendBeacon&&e){let q=ev(Y);if(q)try{navigator.sendBeacon(e,new k.Blob([q],{type:"application/json"}));return}catch{}}U(Y)}};Ec&&(k.addEventListener("pagehide",()=>G(!0),{passive:!0}),k.addEventListener("beforeunload",()=>G(!0),{passive:!0}),k.addEventListener("visibilitychange",()=>{k.document.visibilityState==="hidden"&&G(!0)},{passive:!0}));let D=M=>{if(!M||b<1&&Math.random()>b)return;let z={...M,log_type:u(M)};_.push(z),_.length>y&&(_=_.slice(-y)),_.length>=g?G():V()};return D.flush=()=>G(!1),D.sessionId=x,D},iv=t=>{try{return t()}catch{return null}},av=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 cv={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},lv="\x1B[0m",Tc=typeof k<"u"&&typeof k.document<"u",Bx=(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(Tc)i(a,s);else{let c=cv[s.level]||"";i(`${c}${a}${lv}`,s)}}},Vx=(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},Ux=(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=Tc?new k.Blob([c],{type:"application/json"}):c;if(Tc&&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(()=>{})};Tc&&(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},jx={console:Bx,memory:Vx,beacon:Ux,remote:ph},dh=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=jx[n];if(!o)continue;r.push(n==="memory"?o(t,{}):o({}))}else if(n&&typeof n=="object"&&n.type){let o=jx[n.type];if(!o)continue;r.push(n.type==="memory"?o(t,n):o(n))}return r};O();var fv=typeof k<"u"&&typeof k.document<"u",uv=new Set(["password","hidden"]),zx=(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))))}},hh="__analyzeKeyPath",An=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[hh])return e[hh];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[hh]=i}catch{}return i},pv=(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"***"}},dv=t=>!!(!t||t.tagName==="INPUT"&&uv.has(t.type)||Ac.test(t.name||"")||Ac.test(t.id||"")||t.dataset?.analyze==="skip"),gh=t=>{if(!fv)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(H("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(H("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(k,"click",i=>{t.emit(H("pointer","info",{hook:"click",target:An(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:Wx(i)}))},{passive:!0,capture:!0}),o(k,"dblclick",i=>{t.emit(H("pointer","info",{hook:"dblclick",target:An(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(k,"contextmenu",i=>{t.emit(H("pointer","info",{hook:"contextmenu",target:An(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=zx(i=>{t.emit(H("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(H("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:Wx(s),target:An(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=dv(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=pv(a.value,t.config.maskStrategy)),t.emit(H("forms","info",{hook:i.type,target:An(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(H("forms","info",{hook:"submit",target:An(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=zx(()=>{t.emit(H("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=no(()=>{t.emit(H("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(H("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(k.document,"visibilitychange",()=>{t.emit(H("viewport","info",{hook:"visibilitychange",hidden:k.document.hidden}))},{passive:!0}),t.emit(H("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(H("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(Hx)}))}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(H("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{}},Wx=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),hv=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=Hx(t.cause)),e},Hx=t=>{if(t==null)return t;if(t instanceof Error)return hv(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};O();var gv=typeof k<"u"&&typeof k.document<"u";var mh=t=>{if(gv&&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(H("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(H("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(H("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(H("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(H("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(H("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 mv={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},yv={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},bv={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},xv={errors:!0,warnings:!0,console:!0,network:!0,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},_v=t=>{let e={...mv,...t};return e.replay&&Object.assign(e,yv),e.telemetry&&Object.assign(e,bv),e.remote&&Object.assign(e,xv),e},Sv=64,wv=()=>{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=_v(e.capture||{});let r=wv();(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=Cc(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=uh(n),n.__sinks=dh(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&&ch(s.level,n.config.level)){if(!n.__ready){if(s.level!=="error"&&!n.config.captureDuringHydration)return;n.__preBuffer.length<Sv&&n.__preBuffer.push(s);return}o(),Gx(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)Gx(n,a)}try{gh(n)}catch(a){console.error("[analyze] browser attach error:",a)}try{mh(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=Cc(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},Gx=(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 ie=Object.create(null);ie.open="0";ie.close="1";ie.ping="2";ie.pong="3";ie.message="4";ie.upgrade="5";ie.noop="6";var ni=Object.create(null);Object.keys(ie).forEach(t=>{ni[ie[t]]=t});var oi={type:"error",data:"parser error"};var Yx=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Xx=typeof ArrayBuffer=="function",Jx=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,si=({type:t,data:e},r,n)=>Yx&&e instanceof Blob?r?n(e):qx(e,n):Xx&&(e instanceof ArrayBuffer||Jx(e))?r?n(e):qx(new Blob([e]),n):n(ie[t]+(e||"")),qx=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function Kx(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var bh;function Zx(t,e){if(Yx&&t.data instanceof Blob)return t.data.arrayBuffer().then(Kx).then(e);if(Xx&&(t.data instanceof ArrayBuffer||Jx(t.data)))return e(Kx(t.data));si(t,!1,r=>{bh||(bh=new TextEncoder),e(bh.encode(r))})}var Qx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ii=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Qx.length;t++)ii[Qx.charCodeAt(t)]=t;var t_=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=ii[t.charCodeAt(n)],i=ii[t.charCodeAt(n+1)],a=ii[t.charCodeAt(n+2)],c=ii[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 kv=typeof ArrayBuffer=="function",ai=(t,e)=>{if(typeof t!="string")return{type:"message",data:e_(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:vv(t.substring(1),e)}:ni[r]?t.length>1?{type:ni[r],data:t.substring(1)}:{type:ni[r]}:oi},vv=(t,e)=>{if(kv){let r=t_(t);return e_(r,e)}else return{base64:!0,data:t}},e_=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var r_="",n_=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{si(s,!1,a=>{n[i]=a,++o===r&&e(n.join(r_))})})},o_=(t,e)=>{let r=t.split(r_),n=[];for(let o=0;o<r.length;o++){let s=ai(r[o],e);if(n.push(s),s.type==="error")break}return n};function s_(){return new TransformStream({transform(t,e){Zx(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 xh;function Oc(t){return t.reduce((e,r)=>e+r.length,0)}function Rc(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 i_(t,e){xh||(xh=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Oc(r)<1)break;let c=Rc(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(Oc(r)<2)break;let c=Rc(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Oc(r)<8)break;let c=Rc(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(Oc(r)<o)break;let c=Rc(r,o);a.enqueue(ai(s?c:xh.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(oi);break}}}})}var _h=4;function nt(t){if(t)return Cv(t)}function Cv(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 Ie=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),wt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),a_="arraybuffer";function Pc(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var Av=wt.setTimeout,Ev=wt.clearTimeout;function $e(t,e){e.useNativeTimers?(t.setTimeoutFn=Av.bind(wt),t.clearTimeoutFn=Ev.bind(wt)):(t.setTimeoutFn=wt.setTimeout.bind(wt),t.clearTimeoutFn=wt.clearTimeout.bind(wt))}var Tv=1.33;function c_(t){return typeof t=="string"?Ov(t):Math.ceil((t.byteLength||t.size)*Tv)}function Ov(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 Ic(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function l_(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function f_(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 $c=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},Fe=class extends nt{constructor(e){super(),this.writable=!1,$e(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 $c(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=ai(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=l_(e);return r.length?"?"+r:""}};var ci=class extends Fe{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)};o_(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,n_(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]=Ic()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var u_=!1;try{u_=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var p_=u_;function Rv(){}var Sh=class extends ci{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}},ir=class t extends nt{constructor(e,r,n){super(),this.createRequest=e,$e(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=Pc(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=Rv,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()}};ir.requestsCount=0;ir.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",d_);else if(typeof addEventListener=="function"){let t="onpagehide"in wt?"pagehide":"unload";addEventListener(t,d_,!1)}}function d_(){for(let t in ir.requests)ir.requests.hasOwnProperty(t)&&ir.requests[t].abort()}var Pv=(function(){let t=h_({xdomain:!1});return t&&t.responseType!==null})(),ar=class extends Sh{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=Pv&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ir(h_,this.uri(),e)}};function h_(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||p_))return new XMLHttpRequest}catch{}if(!e)try{return new wt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var g_=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",kh=class extends Fe{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=g_?{}:Pc(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;si(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&Ie(()=>{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]=Ic()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},wh=wt.WebSocket||wt.MozWebSocket,cr=class extends kh{createSocket(e,r,n){return g_?new wh(e,r,n):r?new wh(e,r):new wh(e)}doWrite(e,r){this.ws.send(r)}};var En=class extends Fe{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=i_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=s_();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&&Ie(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var vh={websocket:cr,webtransport:En,polling:ar};var Iv=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$v=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Tn(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=Iv.exec(t||""),s={},i=14;for(;i--;)s[$v[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=Fv(s,s.path),s.queryKey=Dv(s,s.query),s}function Fv(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 Dv(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ch=typeof addEventListener=="function"&&typeof removeEventListener=="function",Fc=[];Ch&&addEventListener("offline",()=>{Fc.forEach(t=>t())},!1);var Tr=class t extends nt{constructor(e,r){if(super(),this.binaryType=a_,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=Tn(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=Tn(r.host).host);$e(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=f_(this.opts.query)),Ch&&(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"})},Fc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=_h,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+=c_(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,Ie(()=>{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(),Ch&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Fc.indexOf(this._offlineEventListener);n!==-1&&Fc.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};Tr.protocol=_h;var Dc=class extends Tr{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;Tr.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;Tr.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 p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,f(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function 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}},On=class extends Dc{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=>vh[s]).filter(s=>!!s)),super(n?o:e,o)}};var uD=On.protocol;function m_(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=Tn(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 Ph={};I(Ph,{Decoder:()=>Oh,Encoder:()=>Th,PacketType:()=>N,isPacketValid:()=>rC,protocol:()=>E_});var Mv=typeof ArrayBuffer=="function",Nv=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,y_=Object.prototype.toString,jv=typeof Blob=="function"||typeof Blob<"u"&&y_.call(Blob)==="[object BlobConstructor]",Bv=typeof File=="function"||typeof File<"u"&&y_.call(File)==="[object FileConstructor]";function fi(t){return Mv&&(t instanceof ArrayBuffer||Nv(t))||jv&&t instanceof Blob||Bv&&t instanceof File}function li(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(li(t[r]))return!0;return!1}if(fi(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return li(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&li(t[r]))return!0;return!1}function b_(t){let e=[],r=t.data,n=t;return n.data=Lc(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Lc(t,e,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]=Lc(t[o],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){if(t.toJSON&&typeof t.toJSON=="function"&&!r)return Lc(t.toJSON(),e,!0);let n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=Lc(t[o],e));return n}return t}function x_(t,e){return t.data=Ah(t.data,e),delete t.attachments,t}function Ah(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]=Ah(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=Ah(t[r],e));return t}var C_=rS(v_(),1),Eh=(0,C_.default)("socket.io-parser"),A_=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],E_=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 Th=class{constructor(e){this.replacer=e}encode(e){return Eh("encoding packet %j",e),(e.type===N.EVENT||e.type===N.ACK)&&li(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)),Eh("encoded %j as %s",e,r),r}encodeAsBinary(e){let r=b_(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Oh=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 Rh(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(!T_(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 Eh("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 jc(r);case N.DISCONNECT:return r===void 0;case N.CONNECT_ERROR:return typeof r=="string"||jc(r);case N.EVENT:case N.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&A_.indexOf(r[0])===-1);case N.ACK:case N.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Rh=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=x_(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Qv(t){return typeof t=="string"}var T_=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function tC(t){return t===void 0||T_(t)}function jc(t){return Object.prototype.toString.call(t)==="[object Object]"}function eC(t,e){switch(t){case N.CONNECT:return e===void 0||jc(e);case N.DISCONNECT:return e===void 0;case N.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&A_.indexOf(e[0])===-1);case N.ACK:return Array.isArray(e);case N.CONNECT_ERROR:return typeof e=="string"||jc(e);default:return!1}}function rC(t){return Qv(t.nsp)&&tC(t.id)&&eC(t.type,t.data)}function jt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var nC=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),$n=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=[jt(e,"open",this.onopen.bind(this)),jt(e,"packet",this.onpacket.bind(this)),jt(e,"error",this.onerror.bind(this)),jt(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(nC.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 Rr(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}Rr.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};Rr.prototype.reset=function(){this.attempts=0};Rr.prototype.setMin=function(t){this.ms=t};Rr.prototype.setMax=function(t){this.max=t};Rr.prototype.setJitter=function(t){this.jitter=t};var Fn=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,$e(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 Rr({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||Ph;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 On(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=jt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=jt(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(jt(e,"ping",this.onping.bind(this)),jt(e,"data",this.ondata.bind(this)),jt(e,"error",this.onerror.bind(this)),jt(e,"close",this.onclose.bind(this)),jt(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){Ie(()=>{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 $n(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 ui={};function Dn(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=m_(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ui[o]&&s in ui[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Fn(n,e):(ui[o]||(ui[o]=new Fn(n,e)),c=ui[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(Dn,{Manager:Fn,Socket:$n,io:Dn,connect:Dn});O();var oC=new Set(["__proto__","constructor","prototype"]),O_=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(oC.has(t[e]))return!1;return!0},sC=(t,e)=>{!t||!O_(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},iC=(t,e,r,n=!1)=>{!t||!O_(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)},R_=(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":sC(t,o);break;case"update":case"set":iC(t,o,s,!0);break;default:break}return r};O();var P_=(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])=>{r[a]&&typeof r[a]=="object"?a==="designSystem"?n&&Pe(c):mr(r[a],c):r[a]=c}),n=!0,i&&(r.schema=i))}},I_=(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=R_(r,o);if(s.has("state")&&e.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Pe(r.designSystem)};var aC={success:"green",error:"red",warning:"yellow"},$_=(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)}},F_={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:aC[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 cC=!1,lC=()=>cC?"http://localhost:8080":"https://api.symbols.app",fC=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}},uC=async t=>{try{let e=t||lC(),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)}},M_=(t,e,r,n)=>{t.on("snapshot",P_(e,r,n)),t.on("ops",I_(e,r,n)),t.on("clients",o=>{n.editor?.verbose&&$_(o,e,r)}),t.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},pC=async(t,e,r,n)=>{let o=await uC(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=Dn(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)")}),M_(a,t,e,r),a},dC=(t,e,r)=>{let n=Dn({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),M_(n,t,e,r),n.on("reload",()=>{typeof k<"u"&&k.location&&k.location.reload()}),n},hC=async(t,e,r)=>{let{mode:n,baseUrl:o}=fC(r);return n?n==="collab"?pC(t,e,r,o):n==="runner"?dC(t,e,r):null:null},gC={onInit:hC};var N_=t=>typeof t>"u",D_=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),L_=t=>t?.editor?.runtime==="runner",j_=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},B_={name:"sync",beforeCreate(t,e){let r=e&&e.editor;(r&&!N_(r.liveSync)?r.liveSync:D_(e)||L_(e))&&(D_(e)&&!L_(e)&&!e?.key||j_(t,gC))}},V_={name:"notifications",beforeCreate(t,e){if(!e)return;let r=N_(e.notifications)?null:e.notifications,n=e.editor&&e.editor.verbose===!0;(r===!0||r!==!1&&n)&&j_(t,F_)}};O();function U_(t){return S(t)?t:T(t)?t.find(e=>S(e)):""}function $h(t){if(!t)return;let e=t.__ref.__componentKey,r=t.extends&&U_(t.extends),n=t.parent&&t.parent.childExtends&&U_(t.parent.childExtends);return(e||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function Bc(t){if(!t||!t.__ref)return;let{components:e,pages:r,editor:n}=t.context,o=$h(t);return n&&n.onInitInspect&&!n.onInitInspect(o,t,t.state)?Bc(t.parent):o&&(e[o]||r[o])?t:Bc(t.parent)}var mC=(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}))}},Ih={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:mC,onMousemove:(t,e,r)=>{let n=t.target.ref,o=Bc(n),s=e.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=$h(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:p}=o.node.getBoundingClientRect(),d={x:l,y:f,width:u,height:p};if(!s.area)return a(d);s.area.x!==d.x&&a(d)}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=Bc(n);if(!o)return;let s=$h(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)_n[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=`
77
77
  display: block !important;
78
78
  top: ${a-6}px;
79
79
  left: ${i-6}px;
80
80
  width: ${c+12}px;
81
81
  height: ${l+12}px;
82
- `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},z_={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Ih):t.extends?t.extends=[t.extends,Ih]:t.extends=[Ih]}};var yC=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||wn,e.cssPropsRegistry=gt,e.window=hx(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(d=>typeof d=="string")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(O(),ha));e.sharedLibraries=await d(e.sharedLibraries)}Cx(e)}let[s,i]=wx(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&kc.prepareContext(e);let a=kx(t,e);e.state=a,$o(a),e.pages=vx(t,e),e.components=gx(e),e.utils=mx(e),ze[e.packageManager]&&(e.dependencies=await bx(e)),e.methods=yx(e),e.routerOptions=Zb(t,e),e.defaultExtends=[ec],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=Zn(e.globalScope));let c=(p,d)=>{let g=d?p[d]:p;if(!w(g))return;let h=Vt(g);try{Object.assign(g,h)}catch(m){if(d)p[d]=h;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=p=>p&&typeof p.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=p=>e.plugins.some(d=>d.name===p);if(e.polyglot&&!f("polyglot")){e.plugins.push(_c);for(let p in Ys)p in e.functions||(e.functions[p]=Ys[p])}if(f("helmet")||e.plugins.push(ix),e.fetch&&!f("fetch")&&e.plugins.push(Gf),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Ox),e.cssPropsRegistry.useCapsize=Tx),e.shorthand&&!f("shorthand")&&e.plugins.push(kc),e.analyze&&!f("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=yh(p),e.plugins.push(ri)}return e.sync!==!1&&!f("sync")&&e.plugins.push(B_),e.inspect&&!f("inspect")&&e.plugins.push(z_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(V_),e},Fh=async(t,e)=>{w(e)||(e={}),we(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 yC(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=ux(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await xx({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 bC(Kt,t,i,e,r,o);let a=Kt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},bC=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 xC(o),c},xC=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Dh=(t,e)=>X(t,w(e)?e:{}),_C=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},SC=()=>{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}},W_=t=>{let e=SC();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Lh=(t,e=or,r)=>{let n={...or,...Dh(e,r)};return W_(n),_C(n),Fh(t,n).then(s=>{if(Xd(s,n),s.destroy=()=>Gs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hs(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})},wC=(t,e=or,r)=>{let n=Lh(t,e,r),o={...or,...Dh(e,r)},s=o.key;return rx(n,s,{utils:Ws,...o}),n},kC=async(t,e=or,r)=>{let n={...or,...Dh(e,r)};W_(n);let o=e.key;await ex(o,n);let s=await Fh(t,n);return Xd(s,n),s.destroy=()=>Gs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hs(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},vC=(t={},e=or,r)=>Lh({deps:{isUndefined:dt},...t},X({domqlOptions:{onlyResolveExtends:!0}},e),r);O();var H_={"@symbo.ls/signal":el,"@symbo.ls/scratch":yp,"@symbo.ls/element":od,"@symbo.ls/css":wp,"@symbo.ls/utils":ha,"@symbo.ls/state":zp,"@symbo.ls/router":Us},G_=(t,e)=>{let r=t||(typeof globalThis<"u"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in H_)n[o]||(n[o]=H_[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};ac(Fs);G_(void 0,{smbls:Mh});export{Ep as ANIMATION_PROPS,T0 as ARIA_ROLES,Hp as ATTR_TRANSFORMS,Tp as BLOCK_PROPS,te as CDN_PROVIDERS,ns as CONFIG,re as CSS_NATIVE_COLOR_REGEX,gt as CSS_PROPS_REGISTRY,Ir as CSS_UNITS,Bs as DEFAULT_CONFIG,bt as DEFAULT_CSS_PROPERTIES_LIST,fn as DELEGATED_EVENTS,Qd as DESIGN_SYSTEM_OPTIONS,Al as DOMQL_EVENTS,Le as DOMQ_PROPERTIES,Dm as DOM_EVENTS,Ul as ENV,he as FACTORY,$p as FLEX_PROPS,Op as FONT_PROPS,Fp as GRID_PROPS,Ka as HTML_ATTRIBUTES,Vr as HTML_TAGS,Qe as LIFECYCLE_EVENTS,Lr as METHODS,Yn as METHODS_EXL,Rp as MISC_PROPS,Ha as MIXINS,Zt as NODE_ENV,xo as OPTIONS,ze as PACKAGE_MANAGER_TO_CDN,Kn as PARSED_DOMQ_PROPERTIES,Pp as POSITION_PROPS,Me as PROPS_METHODS,St as REGISTRY,uc as ROUTER_OPTIONS,Cl as STATE_PROPERTIES,cn as SVG_TAGS,Ip as THEME_PROPS,Ms as TIMING_PROPS,Vn as TYPES,la as UNIVERSAL_RESERVED_KEYS,Va as VALUE_TRANSFORMERS,Zg as activateConfig,Hi as addCaching,Wi as addContext,Ds as addDelegatedEvent,hf as addExtend,Ot as addExtends,pl as addItemAfterEveryElement,gn as addMethods,Wn as addProtoToArray,Vi as addRef,Qu as animation,As as appendSVGSprite,Ts as appendSvgIconsSprite,Kp as applyAttrTransforms,Kd as applyCSS,$f as applyDependentState,Cs as applyDocument,Ji as applyEvent,Zi as applyEventUpdate,pn as applyExtends,Da as applyHeadings,qa as applyInitialState,Ge as applyMediaSequenceVars,po as applyProps,Os as applyReset,fs as applySequenceGlobalVars,Oe as applySequenceVars,Ss as applySpacingSequence,Nt as applyStateMethods,vs as applyTimingSequence,Lp as applyTrueProps,bs as applyTypographySequence,sl as arrayContainsOtherArray,hl as arraysEqual,Sr as arrayzeValue,Se as batch,Ju as breakpoints,Xo as buildImgSrcset,Jo as buildSourcesAndImg,Nf as cache,Ze as cacheNode,ru as call,ou as captureSnapshot,Ua as changeGlobalTheme,Fu as changeLightness,rr as checkAttributeByTagName,qp as checkEventFunctions,Of as checkForStateTypes,_s as checkIfBoxSize,Xi as checkIfInherits,yl as checkIfStringIsInArray,op as class,Tl as clone,oo as cloneAndMergeArrayExtend,Jl as cloneFunction,Wu as color,pe as colorStringToRgbaArray,_n as components,uf as concatAddExtends,us as convertSvgToSymbol,vu as copyJavaScriptToClipboard,ku as copyStringToClipboard,Lh as create,wC as createAsync,Bi as createBasedOnType,Xc as createComputed,Oa as createConfig,fx as createDefine,Q as createEffect,Tf as createElement,Ti as createElementExtends,io as createExtends,Ur as createExtendsFromKeys,Ii as createExtendsStack,an as createHTMLNode,Zl as createIfConditionFlag,Rf as createInheritedState,ro as createKey,Dl as createNestedObject,If as createNestedObjectByKeyPath,Si as createObjectWithoutPrototype,Ui as createParent,zi as createPath,ho as createProps,Ni as createPropsStack,Ef as createRoot,Df as createScope,Ln as createScopeStore,Bt as createSignal,vC as createSkeleton,eo as createSnapshotId,Bp as createState,Ft as createStore,kC as createSync,oe as css,Ea as cssMediaVars,Aa as cssVars,vl as customDecodeURIComponent,kl as customEncodeURIComponent,fl as cutArrayAfterValue,ll as cutArrayBeforeValue,no as debounce,Kl as debounceOnContext,wl as decodeNewlines,ot as deepClone,$l as deepContains,Ho as deepDefaults,Vt as deepDestringifyFunctions,Ei as deepExtend,X as deepMerge,le as deepMergeExtends,Xn as deepStringifyFunctions,wn as defaultDefine,tu as defineSetter,Zn as destringifyGlobalScope,Gs as destroy,lu as detectHeightOnInit,jl as detectInfiniteLoop,Je as detectTag,Zu as devices,tr as dispose,Sl as encodeNewlines,_r as error,Vl as excludeKeysFromObject,tt as exec,R0 as executeAttr,y0 as exetuteClassPerComponent,pf as extendCachedRegistry,ao as extendStackRegistry,lo as extractArrayExtend,$0 as extractConditionalAttrs,da as fetchLibraryData,fu as fibonacciNumberByIndex,gl as filterArrays,ml as filterArraysFast,O0 as filterAttributesByTagName,$i as finalizeExtends,ua as findClosestNumber,_u as findClosestNumberInFactory,Ia as findHeadingLetter,ls as findHeadings,Yi as findInheritedState,xl as findKeyPosition,zr as flattenExtend,Nu as font,Vu as fontFace,ju as fontFamily,Bu as fontFamilyTypes,cu as formatDate,vi as generateHash,to as generateKey,bu as generateMetaTags,Pt as generateSequence,cp as generateSequencePosition,tn as generateSprite,as as generateSubSequence,Jf as get,A as getActiveConfig,Wa as getActiveDocument,Ks as getActiveLang,ee as getCDNUrl,Sp as getCacheSize,yf as getCapitalCaseKeys,Gr as getCdnProviderFromConfig,Ki as getChildStateInKey,Po as getChildren,rt as getColor,xa as getColorShade,No as getContext,nf as getCookie,zo as getDB,wr as getDefaultOrFirstKey,Tu as getEmotionStylesheet,gf as getExtendsInElement,so as getExtendsStack,Ai as getExtendsStackRegistry,Te as getFnPrefixAndValue,Lu as getFontFace,kr as getFontFaceEach,ka as getFontFaceEachString,Qo as getFontFaceString,ys as getFontFamily,Sa as getFontFormat,xs as getFontSizeByKey,il as getFrequencyInArray,co as getHashedExtend,au as getImportMapScript,Nl as getInObjectByPath,hc as getLanguages,xc as getLocalStateLang,sf as getLocalStorage,mt as getMediaColor,Ht as getMediaTheme,Gl as getNev,lr as getObserver,xu as getPageMetadata,qi as getParentStateInKey,Io as getPath,Wo as getQuery,Qf as getRef,We as getRgbTone,Do as getRoot,Mo as getRootContext,Lo as getRootData,Fo as getRootState,Gi as getRootStateInKey,cs as getSequenceValue,Pa as getSequenceValueBySymbols,me as getSequenceValuePropertyPair,ks as getShadow,tl as getSignals,ne as getSpacingBasedOnRatio,pt as getSpacingByKey,bf as getSpreadChildren,is as getSubratio,ss as getSubratioDifference,Yt as getSystemGlobalTheme,ds as getTheme,Dt as getTimingByKey,Gt as getTimingFunction,rl as global,Hu as gradient,np as grid,ce as hasFunction,Nr as hasHandlerPlugin,Rl as hasOwnProperty,Ru as hexToRgb,ga as hexToRgbArray,Iu as hexToRgba,ba as hslToRgb,Ku as icons,Ri as inheritChildExtends,Oi as inheritChildPropsExtends,go as inheritParentProps,Pi as inheritRecursiveChildExtends,Pe as init,rh as initPolyglot,vf as initProps,ft as injectGlobal,Et as is,T as isArray,mi as isBoolean,at as isCSSVar,xf as isContextComponent,Bl as isCyclic,Ct as isDOMNode,bi as isDate,At as isDefined,je as isDevelopment,xi as isEmpty,Pl as isEmptyObject,_i as isEqualDeep,v as isFunction,Jr as isGoogleFontsUrl,jn as isHtmlElement,Hl as isLocal,nu as isMethod,ef as isMobile,we as isNode,ol as isNot,yr as isNotProduction,yi as isNull,ae as isNumber,w as isObject,j as isObjectLike,uu as isPhoto,Ne as isProduction,Mn as isRawUnitValue,de as isResolvedColor,ur as isScalingUnit,Wl as isStaging,Pf as isState,st as isStore,S as isString,Xl as isStringFunction,ln as isSvgTag,ki as isTest,zl as isTesting,Up as isTracking,dt as isUndefined,su as isUniversallyReservedKey,cf as isValidHtmlTag,sn as isValidTag,Yb as isWasmLoaded,Go as isWrappedLibrary,$r as joinArrays,df as jointStacks,on as keyframes,aa as keys,gu as loadCssFile,mu as loadJavascript,pu as loadJavascriptFile,hu as loadJavascriptFileEmbedSync,du as loadJavascriptFileSync,yu as loadRemoteCSS,qr as loadRemoteScript,mc as loadTranslations,Kb as loadWasm,eu as log,tf as logGroupIf,Ql as logIf,Yf as lookdown,Xf as lookdownAll,Kf as lookup,dr as lowercaseFirstLetter,Il as makeObjectWithoutPrototype,El as map,fo as mapStringsWithContextComponents,fe as matchesComponentNaming,Uu as media,Yl as memoize,it as merge,qo as mergeSharedLibraries,Ou as mixTwoColors,$u as mixTwoRgb,_a as mixTwoRgba,Bo as nextElement,pa as normalizeIgnoreList,Kr as normalizeLibraryKey,ge as numToLetterMap,Jn as objectToString,uo as objectizeStringProperty,Xr as opacify,Qn as overwrite,Tt as overwriteDeep,mr as overwriteShallow,Ff as overwriteState,ca as parse,Ce as parseColorToken,Oo as parseDeep,Li as pickupElementFromProps,Di as pickupPropsFromElement,Ys as polyglotFunctions,_c as polyglotPlugin,J as popConfig,Vo as previousElement,wf as propExists,Mi as propertizeElement,Sf as propertizeUpdate,et as pushConfig,un as registerEvent,qd as reinit,hn as remove,Cu as removeChars,of as removeCookie,Ls as removeDelegatedEvent,yo as removeDuplicateProps,Fr as removeDuplicatesInArray,al as removeFromArray,Fl as removeFromObject,Ll as removeNestedKeyByPath,zn as removeValueFromArray,ul as removeValueFromArrayAll,dl as reorderArrayByValues,pr as replaceLiteralsWithObjectFields,_l as replaceOctalEscapeSequences,Rt as resolveAsset,Ps as resolveColorsInGradient,Wp as resolveFileSource,Wt as resolveFileUrl,jr as resolveHandler,er as resolvePropValue,wu as resolveSharedLibraries,Du as returnSubThemeOrDefault,ji as returnValueAsText,ma as rgbArrayToHex,ya as rgbToHSL,Pu as rgbToHex,yt as runPluginHook,Fa as runThroughMedia,Qr as scratchDefaultConfig,nn as scratchSystem,qe as scratchUtils,nl as self,Yu as semanticIcons,Ee as sequence,vr as set,Ta as setActiveConfig,_p as setActiveDocument,$o as setActiveRootState,hk as setClass,b0 as setClassname,Ke as setColor,rf as setCookie,ac as setCssEngineHook,Zo as setCustomFont,He as setCustomFontMedia,mp as setEach,ms as setFont,en as setFontFamily,Zr as setFontImport,Ye as setGradient,Ci as setHashedExtend,wa as setInCustomFontMedia,Ml as setInObjectByPath,yc as setLang,af as setLocalStorage,gs as setMediaTheme,ia as setNodeStyles,Yc as setObserver,Zf as setProps,mo as setPropsPrototype,rn as setSVG,os as setScalingVar,Xe as setShadow,Ra as setSubScalingVar,Es as setSvgIcon,hs as setTheme,gp as setValue,lp as setVariables,Fs as setWasmEngine,qu as shadow,Su as sharedLibrary,ip as sizes,zu as spacing,ws as splitSpacedValue,Ae as splitTopLevelCommas,Ba as splitTransition,Ro as spotByPath,Yr as srcsetFor,Gn as stringIncludesAny,Ol as stringToObject,tp as svg,ep as svgData,cl as swapItemsInArray,bo as syncProps,rp as templates,Gu as theme,Xu as timing,rs as toCamel,Ko as toCamelCase,Yo as toDashCase,Eu as toDescriptionCase,Au as toTitleCase,iu as toggleFullscreen,Na as transformBackgroundImage,ye as transformBorder,$s as transformBorderRadius,Rs as transformBoxShadow,Em as transformClassname,Is as transformDuration,Ma as transformShadow,ct as transformSize,N as transformSizeRatio,La as transformTextStroke,hp as transformTransition,Mp as transformersByPrefix,ja as transfromGap,gc as translate,Be as triggerEventOn,Lf as triggerEventOnUpdate,bl as trimStringFromSymbols,ts as typography,Mu as unit,Un as unstackArrayOfObjects,dn as update,Cf as updateProps,dk as updateVars,bc as upsertTranslation,Mt as useCssInProps,Vp as useHostState,Cm as usePropsAsCSS,Am as useSelectorsAsCSS,Uo as variables,sp as vars,Hr as verbose,jo as warn,k as window};
82
+ `}return e.node.style=s,e.Span.node.innerText=r.focusKey,!1}}},z_={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Ih):t.extends?t.extends=[t.extends,Ih]:t.extends=[Ih]}};var yC=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||wn,e.cssPropsRegistry=gt,e.window=hx(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(d=>typeof d=="string")){let{resolveSharedLibraries:d}=await Promise.resolve().then(()=>(O(),ha));e.sharedLibraries=await d(e.sharedLibraries)}Cx(e)}let[s,i]=wx(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&kc.prepareContext(e);let a=kx(t,e);e.state=a,$o(a),e.pages=vx(t,e),e.components=gx(e),e.utils=mx(e),ze[e.packageManager]&&(e.dependencies=await bx(e)),e.methods=yx(e),e.routerOptions=Zb(t,e),e.defaultExtends=[ec],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&w(e.globalScope)&&(e.globalScope=Zn(e.globalScope));let c=(p,d)=>{let g=d?p[d]:p;if(!w(g))return;let h=Vt(g);try{Object.assign(g,h)}catch(m){if(d)p[d]=h;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=p=>p&&typeof p.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=p=>e.plugins.some(d=>d.name===p);if(e.polyglot&&!f("polyglot")){e.plugins.push(_c);for(let p in Ys)p in e.functions||(e.functions[p]=Ys[p])}if(f("helmet")||e.plugins.push(ix),e.fetch&&!f("fetch")&&e.plugins.push(Gf),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Ox),e.cssPropsRegistry.useCapsize=Tx),e.shorthand&&!f("shorthand")&&e.plugins.push(kc),e.analyze&&!f("analyze")){let p=e.analyze===!0?{}:e.analyze;e.analyze=yh(p),e.plugins.push(ri)}return e.sync!==!1&&!f("sync")&&e.plugins.push(B_),e.inspect&&!f("inspect")&&e.plugins.push(z_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(V_),e},Fh=async(t,e)=>{w(e)||(e={}),we(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 yC(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=ux(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await xx({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 bC(Kt,t,i,e,r,o);let a=Kt(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},bC=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 xC(o),c},xC=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Dh=(t,e)=>X(t,w(e)?e:{}),_C=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},SC=()=>{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}},W_=t=>{let e=SC();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},Lh=(t,e=or,r)=>{let n={...or,...Dh(e,r)};return W_(n),_C(n),Fh(t,n).then(s=>{if(Xd(s,n),s.destroy=()=>Gs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hs(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})},wC=(t,e=or,r)=>{let n=Lh(t,e,r),o={...or,...Dh(e,r)},s=o.key;return rx(n,s,{utils:Ws,...o}),n},kC=async(t,e=or,r)=>{let n={...or,...Dh(e,r)};W_(n);let o=e.key;await ex(o,n);let s=await Fh(t,n);return Xd(s,n),s.destroy=()=>Gs(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hs(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},vC=(t={},e=or,r)=>Lh({deps:{isUndefined:dt},...t},X({domqlOptions:{onlyResolveExtends:!0}},e),r);O();var H_={"@symbo.ls/signal":el,"@symbo.ls/scratch":yp,"@symbo.ls/element":od,"@symbo.ls/css":wp,"@symbo.ls/utils":ha,"@symbo.ls/state":zp,"@symbo.ls/router":Us},G_=(t,e)=>{let r=t||(typeof globalThis<"u"?globalThis:{}),n=r.__SMBLS_PKGS__||(r.__SMBLS_PKGS__={});for(let o in H_)n[o]||(n[o]=H_[o]);if(e)for(let o in e)n[o]||(n[o]=e[o]);return n};ac(Fs);G_(void 0,{smbls:Mh});export{Ep as ANIMATION_PROPS,T0 as ARIA_ROLES,Hp as ATTR_TRANSFORMS,Tp as BLOCK_PROPS,te as CDN_PROVIDERS,ns as CONFIG,re as CSS_NATIVE_COLOR_REGEX,gt as CSS_PROPS_REGISTRY,Ir as CSS_UNITS,Bs as DEFAULT_CONFIG,bt as DEFAULT_CSS_PROPERTIES_LIST,fn as DELEGATED_EVENTS,Qd as DESIGN_SYSTEM_OPTIONS,Al as DOMQL_EVENTS,Le as DOMQ_PROPERTIES,Dm as DOM_EVENTS,Ul as ENV,he as FACTORY,$p as FLEX_PROPS,Op as FONT_PROPS,Fp as GRID_PROPS,Ka as HTML_ATTRIBUTES,Vr as HTML_TAGS,Qe as LIFECYCLE_EVENTS,Lr as METHODS,Yn as METHODS_EXL,Rp as MISC_PROPS,Ha as MIXINS,Zt as NODE_ENV,xo as OPTIONS,ze as PACKAGE_MANAGER_TO_CDN,Kn as PARSED_DOMQ_PROPERTIES,Pp as POSITION_PROPS,Me as PROPS_METHODS,St as REGISTRY,uc as ROUTER_OPTIONS,Cl as STATE_PROPERTIES,cn as SVG_TAGS,Ip as THEME_PROPS,Ms as TIMING_PROPS,Vn as TYPES,la as UNIVERSAL_RESERVED_KEYS,Va as VALUE_TRANSFORMERS,Zg as activateConfig,Hi as addCaching,Wi as addContext,Ds as addDelegatedEvent,hf as addExtend,Ot as addExtends,pl as addItemAfterEveryElement,gn as addMethods,Wn as addProtoToArray,Vi as addRef,Qu as animation,As as appendSVGSprite,Ts as appendSvgIconsSprite,Kp as applyAttrTransforms,Kd as applyCSS,$f as applyDependentState,Cs as applyDocument,Ji as applyEvent,Zi as applyEventUpdate,pn as applyExtends,Da as applyHeadings,qa as applyInitialState,Ge as applyMediaSequenceVars,po as applyProps,Os as applyReset,fs as applySequenceGlobalVars,Oe as applySequenceVars,Ss as applySpacingSequence,Nt as applyStateMethods,vs as applyTimingSequence,Lp as applyTrueProps,bs as applyTypographySequence,sl as arrayContainsOtherArray,hl as arraysEqual,Sr as arrayzeValue,Se as batch,Ju as breakpoints,Xo as buildImgSrcset,Jo as buildSourcesAndImg,Nf as cache,Ze as cacheNode,ru as call,ou as captureSnapshot,Ua as changeGlobalTheme,Fu as changeLightness,rr as checkAttributeByTagName,qp as checkEventFunctions,Of as checkForStateTypes,_s as checkIfBoxSize,Xi as checkIfInherits,yl as checkIfStringIsInArray,op as class,Tl as clone,oo as cloneAndMergeArrayExtend,Jl as cloneFunction,Wu as color,pe as colorStringToRgbaArray,_n as components,uf as concatAddExtends,us as convertSvgToSymbol,vu as copyJavaScriptToClipboard,ku as copyStringToClipboard,Lh as create,wC as createAsync,Bi as createBasedOnType,Xc as createComputed,Oa as createConfig,fx as createDefine,Q as createEffect,Tf as createElement,Ti as createElementExtends,io as createExtends,Ur as createExtendsFromKeys,Ii as createExtendsStack,an as createHTMLNode,Zl as createIfConditionFlag,Rf as createInheritedState,ro as createKey,Dl as createNestedObject,If as createNestedObjectByKeyPath,Si as createObjectWithoutPrototype,Ui as createParent,zi as createPath,ho as createProps,Ni as createPropsStack,Ef as createRoot,Df as createScope,Ln as createScopeStore,Bt as createSignal,vC as createSkeleton,eo as createSnapshotId,Bp as createState,Ft as createStore,kC as createSync,oe as css,Ea as cssMediaVars,Aa as cssVars,vl as customDecodeURIComponent,kl as customEncodeURIComponent,fl as cutArrayAfterValue,ll as cutArrayBeforeValue,no as debounce,Kl as debounceOnContext,wl as decodeNewlines,ot as deepClone,$l as deepContains,Ho as deepDefaults,Vt as deepDestringifyFunctions,Ei as deepExtend,X as deepMerge,le as deepMergeExtends,Xn as deepStringifyFunctions,wn as defaultDefine,tu as defineSetter,Zn as destringifyGlobalScope,Gs as destroy,lu as detectHeightOnInit,jl as detectInfiniteLoop,Je as detectTag,Zu as devices,tr as dispose,Sl as encodeNewlines,_r as error,Vl as excludeKeysFromObject,tt as exec,R0 as executeAttr,y0 as exetuteClassPerComponent,pf as extendCachedRegistry,ao as extendStackRegistry,lo as extractArrayExtend,$0 as extractConditionalAttrs,da as fetchLibraryData,fu as fibonacciNumberByIndex,gl as filterArrays,ml as filterArraysFast,O0 as filterAttributesByTagName,$i as finalizeExtends,ua as findClosestNumber,_u as findClosestNumberInFactory,Ia as findHeadingLetter,ls as findHeadings,Yi as findInheritedState,xl as findKeyPosition,zr as flattenExtend,Nu as font,Vu as fontFace,ju as fontFamily,Bu as fontFamilyTypes,cu as formatDate,vi as generateHash,to as generateKey,bu as generateMetaTags,Pt as generateSequence,cp as generateSequencePosition,tn as generateSprite,as as generateSubSequence,Jf as get,A as getActiveConfig,Wa as getActiveDocument,Ks as getActiveLang,ee as getCDNUrl,Sp as getCacheSize,yf as getCapitalCaseKeys,Gr as getCdnProviderFromConfig,Ki as getChildStateInKey,Po as getChildren,rt as getColor,xa as getColorShade,No as getContext,nf as getCookie,zo as getDB,wr as getDefaultOrFirstKey,Tu as getEmotionStylesheet,gf as getExtendsInElement,so as getExtendsStack,Ai as getExtendsStackRegistry,Te as getFnPrefixAndValue,Lu as getFontFace,kr as getFontFaceEach,ka as getFontFaceEachString,Qo as getFontFaceString,ys as getFontFamily,Sa as getFontFormat,xs as getFontSizeByKey,il as getFrequencyInArray,co as getHashedExtend,au as getImportMapScript,Nl as getInObjectByPath,hc as getLanguages,xc as getLocalStateLang,sf as getLocalStorage,mt as getMediaColor,Ht as getMediaTheme,Gl as getNev,lr as getObserver,xu as getPageMetadata,qi as getParentStateInKey,Io as getPath,Wo as getQuery,Qf as getRef,We as getRgbTone,Do as getRoot,Mo as getRootContext,Lo as getRootData,Fo as getRootState,Gi as getRootStateInKey,cs as getSequenceValue,Pa as getSequenceValueBySymbols,me as getSequenceValuePropertyPair,ks as getShadow,tl as getSignals,ne as getSpacingBasedOnRatio,pt as getSpacingByKey,bf as getSpreadChildren,is as getSubratio,ss as getSubratioDifference,Yt as getSystemGlobalTheme,ds as getTheme,Dt as getTimingByKey,Gt as getTimingFunction,rl as global,Hu as gradient,np as grid,ce as hasFunction,Nr as hasHandlerPlugin,Rl as hasOwnProperty,Ru as hexToRgb,ga as hexToRgbArray,Iu as hexToRgba,ba as hslToRgb,Ku as icons,Ri as inheritChildExtends,Oi as inheritChildPropsExtends,go as inheritParentProps,Pi as inheritRecursiveChildExtends,Pe as init,rh as initPolyglot,vf as initProps,ft as injectGlobal,Et as is,T as isArray,mi as isBoolean,at as isCSSVar,xf as isContextComponent,Bl as isCyclic,Ct as isDOMNode,bi as isDate,At as isDefined,je as isDevelopment,xi as isEmpty,Pl as isEmptyObject,_i as isEqualDeep,v as isFunction,Jr as isGoogleFontsUrl,jn as isHtmlElement,Hl as isLocal,nu as isMethod,ef as isMobile,we as isNode,ol as isNot,yr as isNotProduction,yi as isNull,ae as isNumber,w as isObject,j as isObjectLike,uu as isPhoto,Ne as isProduction,Mn as isRawUnitValue,de as isResolvedColor,ur as isScalingUnit,Wl as isStaging,Pf as isState,st as isStore,S as isString,Xl as isStringFunction,ln as isSvgTag,ki as isTest,zl as isTesting,Up as isTracking,dt as isUndefined,su as isUniversallyReservedKey,cf as isValidHtmlTag,sn as isValidTag,Yb as isWasmLoaded,Go as isWrappedLibrary,$r as joinArrays,df as jointStacks,on as keyframes,aa as keys,gu as loadCssFile,mu as loadJavascript,pu as loadJavascriptFile,hu as loadJavascriptFileEmbedSync,du as loadJavascriptFileSync,yu as loadRemoteCSS,qr as loadRemoteScript,mc as loadTranslations,Kb as loadWasm,eu as log,tf as logGroupIf,Ql as logIf,Yf as lookdown,Xf as lookdownAll,Kf as lookup,dr as lowercaseFirstLetter,Il as makeObjectWithoutPrototype,El as map,fo as mapStringsWithContextComponents,fe as matchesComponentNaming,Uu as media,Yl as memoize,it as merge,qo as mergeSharedLibraries,Ou as mixTwoColors,$u as mixTwoRgb,_a as mixTwoRgba,Bo as nextElement,pa as normalizeIgnoreList,Kr as normalizeLibraryKey,ge as numToLetterMap,Jn as objectToString,uo as objectizeStringProperty,Xr as opacify,Qn as overwrite,Tt as overwriteDeep,mr as overwriteShallow,Ff as overwriteState,ca as parse,Ce as parseColorToken,Oo as parseDeep,Li as pickupElementFromProps,Di as pickupPropsFromElement,Ys as polyglotFunctions,_c as polyglotPlugin,J as popConfig,Vo as previousElement,wf as propExists,Mi as propertizeElement,Sf as propertizeUpdate,et as pushConfig,un as registerEvent,qd as reinit,hn as remove,Cu as removeChars,of as removeCookie,Ls as removeDelegatedEvent,yo as removeDuplicateProps,Fr as removeDuplicatesInArray,al as removeFromArray,Fl as removeFromObject,Ll as removeNestedKeyByPath,zn as removeValueFromArray,ul as removeValueFromArrayAll,dl as reorderArrayByValues,pr as replaceLiteralsWithObjectFields,_l as replaceOctalEscapeSequences,Rt as resolveAsset,Ps as resolveColorsInGradient,Wp as resolveFileSource,Wt as resolveFileUrl,jr as resolveHandler,er as resolvePropValue,wu as resolveSharedLibraries,Du as returnSubThemeOrDefault,ji as returnValueAsText,ma as rgbArrayToHex,ya as rgbToHSL,Pu as rgbToHex,yt as runPluginHook,Fa as runThroughMedia,Qr as scratchDefaultConfig,nn as scratchSystem,qe as scratchUtils,nl as self,Yu as semanticIcons,Ee as sequence,vr as set,Ta as setActiveConfig,_p as setActiveDocument,$o as setActiveRootState,hk as setClass,b0 as setClassname,Ke as setColor,rf as setCookie,ac as setCssEngineHook,Zo as setCustomFont,He as setCustomFontMedia,mp as setEach,ms as setFont,en as setFontFamily,Zr as setFontImport,Ye as setGradient,Ci as setHashedExtend,wa as setInCustomFontMedia,Ml as setInObjectByPath,yc as setLang,af as setLocalStorage,gs as setMediaTheme,ia as setNodeStyles,Yc as setObserver,Zf as setProps,mo as setPropsPrototype,rn as setSVG,os as setScalingVar,Xe as setShadow,Ra as setSubScalingVar,Es as setSvgIcon,hs as setTheme,gp as setValue,lp as setVariables,Fs as setWasmEngine,qu as shadow,Su as sharedLibrary,ip as sizes,zu as spacing,ws as splitSpacedValue,Ae as splitTopLevelCommas,Ba as splitTransition,Ro as spotByPath,Yr as srcsetFor,Gn as stringIncludesAny,Ol as stringToObject,tp as svg,ep as svgData,cl as swapItemsInArray,bo as syncProps,rp as templates,Gu as theme,Xu as timing,rs as toCamel,Ko as toCamelCase,Yo as toDashCase,Eu as toDescriptionCase,Au as toTitleCase,iu as toggleFullscreen,Na as transformBackgroundImage,ye as transformBorder,$s as transformBorderRadius,Rs as transformBoxShadow,Em as transformClassname,Is as transformDuration,Ma as transformShadow,ct as transformSize,L as transformSizeRatio,La as transformTextStroke,hp as transformTransition,Mp as transformersByPrefix,ja as transfromGap,gc as translate,Be as triggerEventOn,Lf as triggerEventOnUpdate,bl as trimStringFromSymbols,ts as typography,Mu as unit,Un as unstackArrayOfObjects,dn as update,Cf as updateProps,dk as updateVars,bc as upsertTranslation,Mt as useCssInProps,Vp as useHostState,Cm as usePropsAsCSS,Am as useSelectorsAsCSS,Uo as variables,sp as vars,Hr as verbose,jo as warn,k as window};