smbls 3.14.829 → 3.14.830

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.cjs CHANGED
@@ -1,39 +1,39 @@
1
- "use strict";var qD=Object.create;var Ef=Object.defineProperty;var KD=Object.getOwnPropertyDescriptor;var GD=Object.getOwnPropertyNames;var YD=Object.getPrototypeOf,XD=Object.prototype.hasOwnProperty;var D=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var Gh=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},F=(t,e)=>{for(var n in e)Ef(t,n,{get:e[n],enumerable:!0})},z0=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of GD(e))!XD.call(t,o)&&o!==n&&Ef(t,o,{get:()=>e[o],enumerable:!(r=KD(e,o))||r.enumerable});return t};var ZD=(t,e,n)=>(n=t!=null?qD(YD(t)):{},z0(e||!t||!t.__esModule?Ef(n,"default",{value:t,enumerable:!0}):n,t)),QD=t=>z0(Ef({},"__esModule",{value:!0}),t);var eg={};F(eg,{WRITE_JOURNAL:()=>Zi,batch:()=>ta,createComputed:()=>tI,createEffect:()=>eI,createSignal:()=>ln,getObserver:()=>Qh,journalWrite:()=>Ji,setObserver:()=>JD,settled:()=>tg});function ln(t){let e=new Set;function n(){return re&&(e.add(re),re._sources.add(s)),t}function r(i){i!==t&&(t=i,cI(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function tI(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){Zh(o);let s=re;re=o;try{e=t(),n=!1}finally{re=s}},_notify(){n=!0,r.size>0&&K0(r)},get(){return re&&(r.add(re),re._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function Ji(t){Zi.push(t),Zi.length>32&&Zi.shift()}function eI(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;Zh(r);let o=re;re=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{re=o}},_notify(){r._disposed||(Yi>0?Xi.push(r):Af>0?Yh.push(r):Jh(r))},dispose(){r._disposed=!0,Zh(r)}};return r._execute(),r}function ta(t){Yi++;try{t()}finally{Yi--,Yi===0&&aI()}}function W0(){return typeof performance<"u"?performance.now():Date.now()}function Jh(t){De.add(t),!Tf&&(Cf||(Cf=!0,queueMicrotask(q0)))}function sI(){if(De.size===1){let[e]=De;return De.clear(),e._disposed?0:(e._execute(),1)}ts.length=0;for(let e of De)ts.push(e);De.clear(),ts.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<ts.length;e++){let n=ts[e];n._disposed||(n._execute(),t++)}return ts.length=0,t}function q0(t=0,e=0){if(Cf=!1,De.size===0){Qi.length&&Xh();return}Tf=!0;let n=W0(),r=!1;try{for(;De.size>0;){if(++t>H0){let o=new Map;for(let c of De){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of Zi)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",H0,"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.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),De.clear();break}if(e+=sI(),De.size>0&&(e>=rI||t>=oI)&&W0()-n>nI){r=!0,setTimeout(()=>q0(t,e),0);break}}}finally{r||(Tf=!1,Qi.length&&Xh())}}function iI(){return De.size===0&&!Cf&&!Tf&&Xi.length===0&&Yi===0}function Xh(){if(Qi.length===0||!iI())return;let t=Qi.splice(0);for(let e=0;e<t.length;e++)t[e]()}function tg(){return new Promise(t=>{Qi.push(t),queueMicrotask(Xh)})}function aI(){for(let t=0;t<Xi.length;t++)Jh(Xi[t]);Xi.length=0}function K0(t){Af++;try{for(let e of t)e._notify()}finally{if(Af--,Af===0&&Yh.length>0){let e=Yh.splice(0);for(let n=0;n<e.length;n++)Jh(e[n])}}}function cI(t){K0(t)}function Zh(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var re,Yi,Xi,Qh,JD,Af,Yh,De,Cf,Zi,Tf,H0,nI,rI,oI,ts,Qi,ng=D(()=>{re=null,Yi=0,Xi=[],Qh=()=>re,JD=t=>{re=t},Af=0,Yh=[];De=new Set,Cf=!1,Zi=[];Tf=!1,H0=1e3,nI=8,rI=256,oI=4;ts=[];Qi=[]});var lg={};F(lg,{RESERVED_STORE_METHODS:()=>ea,STORE_METHOD_NAMES:()=>cg,__resetStateShadowWarnings:()=>lI,createScopeStore:()=>pI,createStore:()=>Of,getSignals:()=>dI,isStore:()=>uI,warnStateKeyShadowsMethod:()=>ag});function ag(t,e){let n=(e||"")+"::"+t;if(ig.has(n))return;ig.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${cg.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function lI(){ig.clear()}function Lf(t,e,n){if(t===e)return!0;if(n>fI)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Lf(t[r],e[r],n+1))return!1;return!0}if(Pf(t)&&Pf(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!Lf(t[s],e[s],n+1))return!1;return!0}return!1}function Of(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=_=>Object.prototype.hasOwnProperty.call(o,_)&&Object.prototype.hasOwnProperty.call(s,_),a=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let _ in t){if(_==="__proto__"||!Object.prototype.hasOwnProperty.call(t,_))continue;if(_.startsWith("__")){s[_]=t[_];continue}ea.has(_)&&ag(_,r);let w=t[_];n<a&&w&&typeof w=="object"&&!og(w)?(s[_]=w,o[_]=ln(Of(w,e,n+1,rg(r,_)))):(s[_]=w,o[_]=ln(w))}let c=new Proxy(s,{get(_,w){if(w===fn)return!0;if(w===Rf)return o;if(w==="__raw")return _;if(w==="$update")return f;if(w==="$parse")return p;if(w==="$clean")return g;if(w==="$keys")return h;if(w==="$values")return m;if(w==="$replace")return y;if(w==="$add")return S;if(w==="$remove")return b;if(w==="$destroy")return x;if(w==="$quietUpdate")return u;if(w==="$settled")return d;if(ea.has(w)&&!Object.prototype.hasOwnProperty.call(o,w))switch(w){case"update":return f;case"parse":return p;case"clean":return g;case"keys":return h;case"values":return m;case"replace":return y;case"add":return S;case"remove":return b;case"destroy":return x;case"quietUpdate":return u}if(w==="__element")return _.__element;if(w==="parent")return _.parent;if(w==="root")return _.root;if(Object.prototype.hasOwnProperty.call(o,w)){let A=o[w].get();if(A!==void 0||!(w!=="root"&&_.root&&_.root!==c))return A}if(_[w]!==void 0)return _[w];let k=typeof w=="string"&&!w.startsWith("__")&&w!=="then"&&w!=="constructor"&&Qh()!=null;if(w!=="root"&&_.root&&_.root!==c){let A=_.root[w];return k&&!Object.prototype.hasOwnProperty.call(o,w)&&(o[w]=ln(void 0),o[w].get()),A}if(k)return o[w]=ln(void 0),o[w].get()},set(_,w,k){if(w==="__proto__")return!1;if(w==="__element"||w==="parent"||w==="root"||typeof w=="string"&&w.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,w))return _[w]=k,!0;ea.has(w)&&ag(w,r);let A=rg(r,w);if(Object.prototype.hasOwnProperty.call(o,w))if(k&&typeof k=="object"&&!og(k)){if(k===_[w])return!0;let T=o[w].peek(),M=T&&T[fn]?T.$parse():T;if(Lf(k,M,0))return!0;_[w]=k,Ji(A),o[w].set(Of(k,e,n+1,A))}else{if(Array.isArray(k)&&k!==_[w]&&Array.isArray(o[w].peek())&&Lf(k,o[w].peek(),0))return!0;o[w].peek()!==k&&Ji(A),_[w]=k,o[w].set(k)}else _[w]=k,k&&typeof k=="object"&&!og(k)?o[w]=ln(Of(k,e,n+1,A)):o[w]=ln(k);return!0},has(_,w){return typeof w=="string"&&w.charCodeAt(0)===36&&ea.has(w.slice(1))?!0:w in _},ownKeys(_){return Object.keys(o).filter(i)},getOwnPropertyDescriptor(_,w){return i(w)?{enumerable:!0,configurable:!0,value:o[w].peek()}:Object.getOwnPropertyDescriptor(_,w)},deleteProperty(_,w){return o[w]&&(o[w].peek()!==void 0&&Ji(rg(r,w)),o[w].set(void 0),delete o[w]),delete _[w],!0}});function l(_,w){let k=s.__element;return!k||typeof k.onBeforeStateUpdate!="function"||w?.preventBeforeStateUpdateListener?!0:k.onBeforeStateUpdate(k,c,k.context,{changes:_,options:w})!==!1}function f(_,w){if(_&&typeof _=="object"&&!l(_,w))return c;ta(()=>{for(let A in _)A!=="__proto__"&&(c[A]=_[A])});let k=s.__element;return k&&k.onUpdate&&!w?.quiet&&k.onUpdate(k,c,k.context),c}function u(_){return f(_,{quiet:!0})}function d(){return tg().then(()=>c)}function p(_){if(_||(_=new Set),_.has(c))return"[Circular]";_.add(c);let w={};for(let k in o){if(k==="parent"||k==="root"||k.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,k))continue;let A=o[k].peek();A&&A[fn]?w[k]=A.$parse(_):w[k]=A}return w}function g(){return ta(()=>{for(let _ in o)delete c[_]}),c}function h(){return Object.keys(o).filter(i)}function m(){return Object.keys(o).filter(i).map(_=>o[_].peek())}function y(_,w){return _&&typeof _=="object"&&!l(_,w)||ta(()=>{for(let k in o)k in _||delete c[k];for(let k in _)k!=="__proto__"&&(c[k]=_[k])}),c}function S(_,w){let k=Object.prototype.hasOwnProperty.call(o,_)?o[_].peek():s[_];if(Array.isArray(k))return c[_]=[...k,w],c;if(k&&typeof k=="object"&&!Array.isArray(k)){if(Pf(w))k[fn]?k.$update(w):c[_]={...k,...w};else{let A=String(Object.keys(k).length);k[fn]?k.$update({[A]:w}):c[_]={...k,[A]:w}}return c}return c[_]=w,c}function b(_){return delete c[_],c}function x(){g(),s.__element=null,s.parent=null}return c}function uI(t){return t&&t[fn]===!0}function dI(t){return t[Rf]}function pI(t,e){let n={},r={};if(t&&typeof t=="object")for(let i in t)r[i]=t[i],n[i]=ln(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(n,i))return n;let a=e;for(;a;){let c=a[Rf];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[fn]?a[sg]:null}return null};return new Proxy(r,{get(i,a){return a===fn?!0:a===Rf?n:a===sg?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(n,a)?n[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===n&&(i[a]=c),l[a].set(c),!0):(i[a]=c,n[a]=ln(c),!0)},has(i,a){if(a in n||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[fn]?c[sg]:null}return!1},ownKeys(){return Object.keys(n)},getOwnPropertyDescriptor(i,a){return a in n?{enumerable:!0,configurable:!0,value:n[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var fn,Rf,cg,ea,ig,rg,og,fI,Pf,sg,G0=D(()=>{ng();fn=Symbol("store"),Rf=Symbol("signals"),cg=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],ea=new Set(cg),ig=new Set,rg=(t,e)=>t?t+"."+e:String(e);og=t=>!t||typeof t!="object"||Array.isArray(t)||t[fn]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Pf(t),fI=12,Pf=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};sg=Symbol("scope.parent")});var jr,Df=D(()=>{jr="3.14.786"});var es,ns,fg,ug=D(()=>{Df();es="__SMBLS_SIGNAL_INSTANCES__",ns=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[es]||(r[es]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||jr),n||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",o.engines,"copies of the reactive engine are loaded on this page:",o.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),o},fg=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[es]}});var rs,Y0,dg,X0=D(()=>{Df();ug();rs="__SMBLS_SIGNAL_ENGINE__",Y0=(t,e,n)=>{let r=e||jr,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[rs];return s&&s.engine&&s.version===r?(ns(r,o,!0),s.engine):(s||(o[rs]={version:r,engine:t}),ns(r,o,!1),t)},dg=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[rs]}});var Yt,Br,Z0,K,If,_e,Xt,$f,xn,Mf,St,Q0,J0,tk,Nf,ek,nk,rk=D(()=>{ng();G0();X0();Df();ug();Yt=Y0({...eg,...lg,VERSION:jr},jr),Br=Yt.createSignal,Z0=Yt.createComputed,K=Yt.createEffect,If=Yt.batch,_e=Yt.getObserver,Xt=Yt.setObserver,$f=Yt.settled||(()=>Promise.resolve()),xn=Yt.createStore,Mf=Yt.createScopeStore,St=Yt.isStore,Q0=Yt.getSignals,J0=Yt.STORE_METHOD_NAMES,tk=Yt.RESERVED_STORE_METHODS,Nf=Yt.warnStateKeyShadowsMethod,ek=Yt.__resetStateShadowWarnings,nk=Yt.VERSION});var pg={};F(pg,{RESERVED_STORE_METHODS:()=>tk,SIGNAL_ENGINE_KEY:()=>rs,SIGNAL_INSTANCES_KEY:()=>es,STORE_METHOD_NAMES:()=>J0,VERSION:()=>nk,__resetSignalEngine:()=>dg,__resetSignalInstances:()=>fg,__resetStateShadowWarnings:()=>ek,batch:()=>If,createComputed:()=>Z0,createEffect:()=>K,createScopeStore:()=>Mf,createSignal:()=>Br,createStore:()=>xn,getObserver:()=>_e,getSignals:()=>Q0,isStore:()=>St,registerSignalInstance:()=>ns,setObserver:()=>Xt,settled:()=>$f,warnStateKeyShadowsMethod:()=>Nf});var qt=D(()=>{rk()});var gg,mg,C,dt,ra=D(()=>{"use strict";gg=globalThis,mg=globalThis,C=globalThis,dt=C.document});var En,oa,oe,sa=D(()=>{"use strict";ra();En=t=>(typeof Node=="object"?t instanceof C.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,oa=t=>(typeof HTMLElement=="object"?t instanceof C.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,oe=t=>typeof C<"u"&&(C.Node&&t instanceof C.Node||C.Window&&t instanceof C.Window||t===C||dt!==void 0&&t===dt)});var E,v,Ie,R,Ff,jf,I,Bf,q,Dt,Ft,ia,se,yg,jt=D(()=>{"use strict";sa();E=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",Ie=t=>typeof t=="number",R=t=>typeof t=="function",Ff=t=>t===!0||t===!1,jf=t=>t===null,I=t=>Array.isArray(t),Bf=t=>t instanceof Date,q=t=>t===null?!1:typeof t=="object",Dt=t=>t!==void 0,Ft=t=>t===void 0,ia={boolean:Ff,array:I,object:E,string:v,date:Bf,number:Ie,null:jf,function:R,objectLike:q,node:En,htmlElement:oa,defined:Dt},se=t=>(...e)=>e.some(n=>ia[n](t)),yg=t=>(...e)=>!e.some(n=>ia[n](t))});var bg,_g,wg,Sg,is,aa,xg,kg,ca,vg,Eg,Ag,Cg,Tg,Og,Rg,as,la,cs=D(()=>{"use strict";un();jt();bg=(t,e)=>e.every(n=>t.includes(n)),_g=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},wg=(t,e)=>{if(v(e)&&(e=parseInt(e)),Ie(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},Sg=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},is=(...t)=>[].concat(...t),aa=(t,e=[])=>t.reduce((n,r)=>at(n,ut(r,{exclude:e}),e),{}),xg=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},kg=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},ca=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},vg=(t,e)=>t.filter(n=>n!==e),Eg=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},Ag=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},Cg=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Tg=(t,e)=>t.filter(n=>!e.includes(n)),Og=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},Rg=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},as=t=>I(t)?[...new Set(t)]:t,la=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Bt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!yI(this,t))return t;let i=mI[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=fa(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=fa(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let b=fa(y,p);if(b!=null&&typeof b!="object")return String(b);for(let x in y){let _=y[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let w=fa(_,p);if(w!=null&&typeof w!="object")return String(w)}}}let S=fa(h.translations,p);if(S!=null&&typeof S!="object")return String(S)}return""}})}var ua,Pg,mI,fa,yI,Ur,Lg,bI,Dg,Ig,$g,_I,Mg,Ng,da=D(()=>{"use strict";ua=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},Pg=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},mI={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},fa=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),yI=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};Ur=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Lg=(t,e)=>{let n=t.split(`
2
- `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},bI=/\\([0-7]{1,3})/g,Dg=t=>t.replace(bI,(e,n)=>String.fromCharCode(parseInt(n,8))),Ig=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),$g=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),_I=/[^a-zA-Z0-9\s]/g,Mg=t=>t.replace(_I,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Ng=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var rr,pa,Fg,zr,or,sr,jg,ls,Hr,ha,Bg,Wr=D(()=>{"use strict";rr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),pa=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),Fg=["ref","parent","__element","__depends","__ref","__children","root"],zr=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),or=new Set(["update","__element"]),sr=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),jg=t=>sr.has(t),ls=new Set(["log","warn","error","verbose"]),Hr=t=>sr.has(t)&&!ls.has(t),ha=new Set(["node","context","extends","__element","__ref",...sr,...zr,...or]),Bg=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var wI,ok,SI,Vg,xI,kI,vI,fs,EI,ga,Ug=D(()=>{"use strict";wI=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],ok=(t,e)=>t.split("$R").join(e),SI=wI.map(t=>[ok(t,"this"),t]),Vg="const __scope = ",xI=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,kI=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,vI=/^[A-Za-z_$][\w$]*$/,fs=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),EI=t=>t.length>=2&&fs(t[0],"el")?t[0]:t.length>=2&&fs(t[1],"el")?t[1]:t.length>=1&&fs(t[0],"el")||fs(t[0],"element")||fs(t[0],"node")?t[0]:t.find(e=>fs(e,"element"))||null,ga=t=>{if(typeof t!="string"||t.indexOf(Vg)===-1||t.indexOf("this")===-1)return t;let e=kI.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(Vg,n))return t;n+=Vg.length;let r=xI.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=SI.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!vI.test(l)))return t;let c=EI(a);return c?t.slice(0,n)+ok(o[1],c)+t.slice(s):t}});function BI(){let t=qr.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var sk,Kr,pt,Hg,xt,at,pk,Wg,ut,ya,AI,CI,ik,ba,TI,OI,RI,Qt,hk,PI,Vf,gk,zg,qr,LI,DI,II,$I,MI,ak,NI,ck,FI,lk,Uf,jI,VI,UI,zI,fk,qg,we,Gr,HI,WI,ie,mk,yk,bk,_k,wk,Sk,xk,_a,wa,us,Yr,uk,ma,dk,Xr,Kg,Gg,zf,Yg,Xg,Sa,Zr,Jt,Hf,qI,Zg,Qg,Wf,Jg,tm,em,nm,rm,om,sm,un=D(()=>{"use strict";ra();jt();cs();da();sa();Wr();Ug();sk="production",Kr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,pt=(t,e,n,r)=>{if(R(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||E(t)&&!oe(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return pt(i,e,n,r)}}return t},Hg=(t,e,n)=>{for(let r in e)t[r]=pt(e[r],n)},xt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Kr(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},at=(t,e,n=ha)=>pk(t,e,n,null),pk=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Kr(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(q(i)&&q(a)){let c=r||[];c.push(t,e),pk(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},Wg=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Kr(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},ut=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!q(t)||oe(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Kr(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(oe(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=aa(g,n);continue}if(R(g)){d[p]=g;continue}if(q(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},ya=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let n in t){let r=t[n];if(R(r))e[n]=r.toString();else if(E(r))e[n]={},ya(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];E(i)?(o[s]={},ya(i,o[s])):R(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},AI=/^[A-Za-z_$][A-Za-z0-9_$]*$/,CI=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,ik=t=>{let e=String(t);return ua(e,[`
4
- `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},ba=(t={},e=0)=>{if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=AI.test(s)?s:CI(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
1
+ "use strict";var YD=Object.create;var Af=Object.defineProperty;var XD=Object.getOwnPropertyDescriptor;var ZD=Object.getOwnPropertyNames;var QD=Object.getPrototypeOf,JD=Object.prototype.hasOwnProperty;var D=(t,e,n)=>()=>{if(n)throw n[0];try{return t&&(e=t(t=0)),e}catch(r){throw n=[r],r}};var Yh=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(n){throw e=0,n}},F=(t,e)=>{for(var n in e)Af(t,n,{get:e[n],enumerable:!0})},W0=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of ZD(e))!JD.call(t,o)&&o!==n&&Af(t,o,{get:()=>e[o],enumerable:!(r=XD(e,o))||r.enumerable});return t};var tI=(t,e,n)=>(n=t!=null?YD(QD(t)):{},W0(e||!t||!t.__esModule?Af(n,"default",{value:t,enumerable:!0}):n,t)),eI=t=>W0(Af({},"__esModule",{value:!0}),t);var ng={};F(ng,{WRITE_JOURNAL:()=>Ji,batch:()=>na,createComputed:()=>rI,createEffect:()=>oI,createSignal:()=>fn,getObserver:()=>Jh,journalWrite:()=>ea,setObserver:()=>nI,settled:()=>eg});function fn(t){let e=new Set;function n(){return re&&(e.add(re),re._sources.add(s)),t}function r(i){i!==t&&(t=i,uI(e))}function o(){return t}let s={get:n,set:r,peek:o,_subscribers:e,_type:"signal"};return s}function rI(t){let e,n=!0,r=new Set,o={_sources:new Set,_type:"computed",_subscribers:r,_execute(){Qh(o);let s=re;re=o;try{e=t(),n=!1}finally{re=s}},_notify(){n=!0,r.size>0&&Y0(r)},get(){return re&&(r.add(re),re._sources.add(o)),n&&o._execute(),e},peek(){return n&&o._execute(),e}};return o._execute(),o}function ea(t){Ji.push(t),Ji.length>32&&Ji.shift()}function oI(t,e){let n=e?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_label:e?.label,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;Qh(r);let o=re;re=r;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{re=o}},_notify(){r._disposed||(Zi>0?Qi.push(r):Cf>0?Xh.push(r):tg(r))},dispose(){r._disposed=!0,Qh(r)}};return r._execute(),r}function na(t){Zi++;try{t()}finally{Zi--,Zi===0&&fI()}}function K0(){return typeof performance<"u"?performance.now():Date.now()}function tg(t){De.add(t),!Of&&(Tf||(Tf=!0,queueMicrotask(G0)))}function cI(){if(De.size===1){let[e]=De;return De.clear(),e._disposed?0:(e._execute(),1)}ts.length=0;for(let e of De)ts.push(e);De.clear(),ts.sort((e,n)=>e._depth-n._depth);let t=0;for(let e=0;e<ts.length;e++){let n=ts[e];n._disposed||(n._execute(),t++)}return ts.length=0,t}function G0(t=0,e=0){if(Tf=!1,De.size===0){ta.length&&Zh();return}Of=!0;let n=K0(),r=!1;try{for(;De.size>0;){if(++t>q0){let o=new Map;for(let c of De){let l=c._label;if(typeof l=="function")try{l=l()}catch{l="<label error>"}if(l=l||"<unlabeled>",o.set(l,(o.get(l)||0)+1),o.size>=12)break}let s=[...o.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", "),i=new Map;for(let c of Ji)i.set(c,(i.get(c)||0)+1);let a=[...i.entries()].map(([c,l])=>l>1?`${c} \xD7${l}`:c).join(", ");console.error("[smbls] reactive effect cascade exceeded",q0,"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.","Still queued at break (the loop participants):",s||"<queue empty>","\u2014 last notifying store writes:",a||"<none recorded>"),De.clear();break}if(e+=cI(),De.size>0&&(e>=iI||t>=aI)&&K0()-n>sI){r=!0,setTimeout(()=>G0(t,e),0);break}}}finally{r||(Of=!1,ta.length&&Zh())}}function lI(){return De.size===0&&!Tf&&!Of&&Qi.length===0&&Zi===0}function Zh(){if(ta.length===0||!lI())return;let t=ta.splice(0);for(let e=0;e<t.length;e++)t[e]()}function eg(){return new Promise(t=>{ta.push(t),queueMicrotask(Zh)})}function fI(){for(let t=0;t<Qi.length;t++)tg(Qi[t]);Qi.length=0}function Y0(t){Cf++;try{for(let e of t)e._notify()}finally{if(Cf--,Cf===0&&Xh.length>0){let e=Xh.splice(0);for(let n=0;n<e.length;n++)tg(e[n])}}}function uI(t){Y0(t)}function Qh(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var re,Zi,Qi,Jh,nI,Cf,Xh,De,Tf,Ji,Of,q0,sI,iI,aI,ts,ta,rg=D(()=>{re=null,Zi=0,Qi=[],Jh=()=>re,nI=t=>{re=t},Cf=0,Xh=[];De=new Set,Tf=!1,Ji=[];Of=!1,q0=1e3,sI=8,iI=256,aI=4;ts=[];ta=[]});var fg={};F(fg,{RESERVED_STORE_METHODS:()=>ra,STORE_METHOD_NAMES:()=>lg,__resetStateShadowWarnings:()=>dI,createScopeStore:()=>mI,createStore:()=>Rf,getSignals:()=>gI,isStore:()=>hI,warnStateKeyShadowsMethod:()=>cg});function cg(t,e){let n=(e||"")+"::"+t;if(ag.has(n))return;ag.add(n);let r=e?`state.${e}`:"state",o=`[smbls/state] "${t}" is a reserved store-method name and was written as DATA at ${r}.${t}. The value is preserved and readable \u2014 data wins over the method \u2014 but "${r}.${t}(\u2026)" no longer reaches the store method on this node. Use "${r}.$${t}(\u2026)" for the method, or rename the data key. Reserved: ${lg.join(", ")}.`;typeof console<"u"&&console.warn&&console.warn(o)}function dI(){ag.clear()}function Df(t,e,n){if(t===e)return!0;if(n>pI)return!1;if(Array.isArray(t)||Array.isArray(e)){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!Df(t[r],e[r],n+1))return!1;return!0}if(Lf(t)&&Lf(e)){let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s of r)if(!Object.prototype.hasOwnProperty.call(e,s)||!Df(t[s],e[s],n+1))return!1;return!0}return!1}function Rf(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r="");let o={},s={},i=_=>Object.prototype.hasOwnProperty.call(o,_)&&Object.prototype.hasOwnProperty.call(s,_),a=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let _ in t){if(_==="__proto__"||!Object.prototype.hasOwnProperty.call(t,_))continue;if(_.startsWith("__")){s[_]=t[_];continue}ra.has(_)&&cg(_,r);let w=t[_];n<a&&w&&typeof w=="object"&&!sg(w)?(s[_]=w,o[_]=fn(Rf(w,e,n+1,og(r,_)))):(s[_]=w,o[_]=fn(w))}let c=new Proxy(s,{get(_,w){if(w===un)return!0;if(w===Pf)return o;if(w==="__raw")return _;if(w==="$update")return f;if(w==="$parse")return p;if(w==="$clean")return g;if(w==="$keys")return h;if(w==="$values")return m;if(w==="$replace")return y;if(w==="$add")return S;if(w==="$remove")return b;if(w==="$destroy")return x;if(w==="$quietUpdate")return u;if(w==="$settled")return d;if(ra.has(w)&&!Object.prototype.hasOwnProperty.call(o,w))switch(w){case"update":return f;case"parse":return p;case"clean":return g;case"keys":return h;case"values":return m;case"replace":return y;case"add":return S;case"remove":return b;case"destroy":return x;case"quietUpdate":return u}if(w==="__element")return _.__element;if(w==="parent")return _.parent;if(w==="root")return _.root;if(Object.prototype.hasOwnProperty.call(o,w)){let A=o[w].get();if(A!==void 0||!(w!=="root"&&_.root&&_.root!==c))return A}if(_[w]!==void 0)return _[w];let k=typeof w=="string"&&!w.startsWith("__")&&w!=="then"&&w!=="constructor"&&Jh()!=null;if(w!=="root"&&_.root&&_.root!==c){let A=_.root[w];return k&&!Object.prototype.hasOwnProperty.call(o,w)&&(o[w]=fn(void 0),o[w].get()),A}if(k)return o[w]=fn(void 0),o[w].get()},set(_,w,k){if(w==="__proto__")return!1;if(w==="__element"||w==="parent"||w==="root"||typeof w=="string"&&w.startsWith("__")&&!Object.prototype.hasOwnProperty.call(o,w))return _[w]=k,!0;ra.has(w)&&cg(w,r);let A=og(r,w);if(Object.prototype.hasOwnProperty.call(o,w))if(k&&typeof k=="object"&&!sg(k)){if(k===_[w])return!0;let T=o[w].peek(),M=T&&T[un]?T.$parse():T;if(Df(k,M,0))return!0;_[w]=k,ea(A),o[w].set(Rf(k,e,n+1,A))}else{if(Array.isArray(k)&&k!==_[w]&&Array.isArray(o[w].peek())&&Df(k,o[w].peek(),0))return!0;o[w].peek()!==k&&ea(A),_[w]=k,o[w].set(k)}else _[w]=k,k&&typeof k=="object"&&!sg(k)?o[w]=fn(Rf(k,e,n+1,A)):o[w]=fn(k);return!0},has(_,w){return typeof w=="string"&&w.charCodeAt(0)===36&&ra.has(w.slice(1))?!0:w in _},ownKeys(_){return Object.keys(o).filter(i)},getOwnPropertyDescriptor(_,w){return i(w)?{enumerable:!0,configurable:!0,value:o[w].peek()}:Object.getOwnPropertyDescriptor(_,w)},deleteProperty(_,w){return o[w]&&(o[w].peek()!==void 0&&ea(og(r,w)),o[w].set(void 0),delete o[w]),delete _[w],!0}});function l(_,w){let k=s.__element;return!k||typeof k.onBeforeStateUpdate!="function"||w?.preventBeforeStateUpdateListener?!0:k.onBeforeStateUpdate(k,c,k.context,{changes:_,options:w})!==!1}function f(_,w){if(_&&typeof _=="object"&&!l(_,w))return c;na(()=>{for(let A in _)A!=="__proto__"&&(c[A]=_[A])});let k=s.__element;return k&&k.onUpdate&&!w?.quiet&&k.onUpdate(k,c,k.context),c}function u(_){return f(_,{quiet:!0})}function d(){return eg().then(()=>c)}function p(_){if(_||(_=new Set),_.has(c))return"[Circular]";_.add(c);let w={};for(let k in o){if(k==="parent"||k==="root"||k.startsWith("__")||!Object.prototype.hasOwnProperty.call(s,k))continue;let A=o[k].peek();A&&A[un]?w[k]=A.$parse(_):w[k]=A}return w}function g(){return na(()=>{for(let _ in o)delete c[_]}),c}function h(){return Object.keys(o).filter(i)}function m(){return Object.keys(o).filter(i).map(_=>o[_].peek())}function y(_,w){return _&&typeof _=="object"&&!l(_,w)||na(()=>{for(let k in o)k in _||delete c[k];for(let k in _)k!=="__proto__"&&(c[k]=_[k])}),c}function S(_,w){let k=Object.prototype.hasOwnProperty.call(o,_)?o[_].peek():s[_];if(Array.isArray(k))return c[_]=[...k,w],c;if(k&&typeof k=="object"&&!Array.isArray(k)){if(Lf(w))k[un]?k.$update(w):c[_]={...k,...w};else{let A=String(Object.keys(k).length);k[un]?k.$update({[A]:w}):c[_]={...k,[A]:w}}return c}return c[_]=w,c}function b(_){return delete c[_],c}function x(){g(),s.__element=null,s.parent=null}return c}function hI(t){return t&&t[un]===!0}function gI(t){return t[Pf]}function mI(t,e){let n={},r={};if(t&&typeof t=="object")for(let i in t)r[i]=t[i],n[i]=fn(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(n,i))return n;let a=e;for(;a;){let c=a[Pf];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[un]?a[ig]:null}return null};return new Proxy(r,{get(i,a){return a===un?!0:a===Pf?n:a===ig?e:a==="__raw"?i:Object.prototype.hasOwnProperty.call(n,a)?n[a].get():e&&a!=="then"&&a!=="constructor"?e[a]:i[a]},set(i,a,c){let l=o(a);return l?(l===n&&(i[a]=c),l[a].set(c),!0):(i[a]=c,n[a]=fn(c),!0)},has(i,a){if(a in n||a in i)return!0;let c=e;for(;c;){if(a in c)return!0;c=c[un]?c[ig]:null}return!1},ownKeys(){return Object.keys(n)},getOwnPropertyDescriptor(i,a){return a in n?{enumerable:!0,configurable:!0,value:n[a].peek()}:Object.getOwnPropertyDescriptor(i,a)}})}var un,Pf,lg,ra,ag,og,sg,pI,Lf,ig,X0=D(()=>{rg();un=Symbol("store"),Pf=Symbol("signals"),lg=["update","parse","clean","keys","values","replace","add","remove","destroy","quietUpdate"],ra=new Set(lg),ag=new Set,og=(t,e)=>t?t+"."+e:String(e);sg=t=>!t||typeof t!="object"||Array.isArray(t)||t[un]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName||!Lf(t),pI=12,Lf=t=>{if(!t||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};ig=Symbol("scope.parent")});var jr,If=D(()=>{jr="3.14.786"});var es,ns,ug,dg=D(()=>{If();es="__SMBLS_SIGNAL_INSTANCES__",ns=(t,e,n)=>{let r=e||(typeof globalThis<"u"?globalThis:null);if(!r)return null;let o=r[es]||(r[es]={versions:[],engines:0,reported:!1});return typeof o.engines!="number"&&(o.engines=o.versions.length),o.versions.push(t||jr),n||o.engines++,o.engines>1&&!o.reported&&(o.reported=!0,console.error("[smbls] duplicate @symbo.ls/signal instance \u2014",o.engines,"copies of the reactive engine are loaded on this page:",o.versions.join(", ")+".","Each copy keeps its own observer and effect queue, so an effect created","by one copy never re-fires from another copy's store writes, and one","copy's cascade breaker cannot see the other's queue.","Copies of the SAME version adopt a single engine automatically, so","this means the versions above DIFFER: a fossil copy is resolving beside","the current one. That is a dependency-graph fault, not an application","bug \u2014 align the version wherever @symbo.ls/signal is imported, then","regenerate the lockfile so exactly one version resolves.")),o},ug=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[es]}});var rs,Z0,pg,Q0=D(()=>{If();dg();rs="__SMBLS_SIGNAL_ENGINE__",Z0=(t,e,n)=>{let r=e||jr,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[rs];return s&&s.engine&&s.version===r?(ns(r,o,!0),s.engine):(s||(o[rs]={version:r,engine:t}),ns(r,o,!1),t)},pg=t=>{let e=t||(typeof globalThis<"u"?globalThis:null);e&&delete e[rs]}});var Yt,Br,J0,K,$f,_e,Xt,Mf,xn,Nf,St,tk,ek,nk,Ff,rk,ok,sk=D(()=>{rg();X0();Q0();If();dg();Yt=Z0({...ng,...fg,VERSION:jr},jr),Br=Yt.createSignal,J0=Yt.createComputed,K=Yt.createEffect,$f=Yt.batch,_e=Yt.getObserver,Xt=Yt.setObserver,Mf=Yt.settled||(()=>Promise.resolve()),xn=Yt.createStore,Nf=Yt.createScopeStore,St=Yt.isStore,tk=Yt.getSignals,ek=Yt.STORE_METHOD_NAMES,nk=Yt.RESERVED_STORE_METHODS,Ff=Yt.warnStateKeyShadowsMethod,rk=Yt.__resetStateShadowWarnings,ok=Yt.VERSION});var hg={};F(hg,{RESERVED_STORE_METHODS:()=>nk,SIGNAL_ENGINE_KEY:()=>rs,SIGNAL_INSTANCES_KEY:()=>es,STORE_METHOD_NAMES:()=>ek,VERSION:()=>ok,__resetSignalEngine:()=>pg,__resetSignalInstances:()=>ug,__resetStateShadowWarnings:()=>rk,batch:()=>$f,createComputed:()=>J0,createEffect:()=>K,createScopeStore:()=>Nf,createSignal:()=>Br,createStore:()=>xn,getObserver:()=>_e,getSignals:()=>tk,isStore:()=>St,registerSignalInstance:()=>ns,setObserver:()=>Xt,settled:()=>Mf,warnStateKeyShadowsMethod:()=>Ff});var qt=D(()=>{sk()});var mg,yg,C,dt,sa=D(()=>{"use strict";mg=globalThis,yg=globalThis,C=globalThis,dt=C.document});var En,ia,oe,aa=D(()=>{"use strict";sa();En=t=>(typeof Node=="object"?t instanceof C.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,ia=t=>(typeof HTMLElement=="object"?t instanceof C.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,oe=t=>typeof C<"u"&&(C.Node&&t instanceof C.Node||C.Window&&t instanceof C.Window||t===C||dt!==void 0&&t===dt)});var E,v,Ie,R,jf,Bf,I,Vf,q,Dt,Ft,ca,se,bg,jt=D(()=>{"use strict";aa();E=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,v=t=>typeof t=="string",Ie=t=>typeof t=="number",R=t=>typeof t=="function",jf=t=>t===!0||t===!1,Bf=t=>t===null,I=t=>Array.isArray(t),Vf=t=>t instanceof Date,q=t=>t===null?!1:typeof t=="object",Dt=t=>t!==void 0,Ft=t=>t===void 0,ca={boolean:jf,array:I,object:E,string:v,date:Vf,number:Ie,null:Bf,function:R,objectLike:q,node:En,htmlElement:ia,defined:Dt},se=t=>(...e)=>e.some(n=>ca[n](t)),bg=t=>(...e)=>!e.some(n=>ca[n](t))});var _g,wg,Sg,xg,is,la,kg,vg,fa,Eg,Ag,Cg,Tg,Og,Rg,Pg,as,ua,cs=D(()=>{"use strict";dn();jt();_g=(t,e)=>e.every(n=>t.includes(n)),wg=(t,e)=>{let n=0;for(let r=0;r<t.length;r++)t[r]===e&&n++;return n},Sg=(t,e)=>{if(v(e)&&(e=parseInt(e)),Ie(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},xg=(t,e,n)=>{e<0||n<0||e>=t.length||n>=t.length||([t[e],t[n]]=[t[n],t[e]])},is=(...t)=>[].concat(...t),la=(t,e=[])=>t.reduce((n,r)=>at(n,ut(r,{exclude:e}),e),{}),kg=(t,e)=>{let n=t.indexOf(e);return n!==-1?t.slice(0,n):t},vg=(t,e)=>{if(!I(t))return;let n=t.indexOf(e);return n!==-1?t.slice(n+1):t},fa=(t,e)=>{let n=t.indexOf(e);if(n>-1){let r=[...t];return r.splice(n,1),r}return t},Eg=(t,e)=>t.filter(n=>n!==e),Ag=(t,e)=>{let n=[];for(let r=0;r<t.length;r++)n.push(t[r]),r<t.length-1&&n.push(e);return n},Cg=(t,e,n)=>{let r=[...t],o=r.indexOf(e),s=r.indexOf(n);if(o!==-1&&s!==-1){let i=r.splice(o,1)[0],a=s<o?s:s+1;r.splice(a,0,i)}return r},Tg=(t,e)=>{if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Og=(t,e)=>t.filter(n=>!e.includes(n)),Rg=(t,e)=>{let n=new Set(e);return t.filter(r=>!n.has(r))},Pg=(t,e)=>{if(!t)return 0;let n=0;for(let r=0;r<e.length;r++)t.includes(e[r])&&n++;return n},as=t=>I(t)?[...new Set(t)]:t,ua=(t,e)=>{for(let n in e)Object.defineProperty(t,n,{value:e[n],enumerable:!1,configurable:!0,writable:!0})}});function Bt(t,e,n={}){let{bracketsLength:r=2,authored:o=!1}=n,s=r===3?"{{{":"{{";if(!t.includes(s)||o!==!0&&!wI(this,t))return t;let i=_I[r],a=e||this.state||{},c=this;return t.replace(i,(l,f,u,d)=>{let p=u.trim();if(d){let g=c?.context,h=g?.functions?.[d]||g?.utils?.[d]||g?.methods?.[d]||g?.snippets?.[d]||c?.[d];if(h&&typeof h=="function")try{return String(h.call(c,p)??"")}catch{return""}return""}if(f){let g=(f.match(/\.\.\//g)||[]).length,h=a;for(let y=0;y<g;y++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=da(h,p);return m!=null&&typeof m=="object"?"":String(m??"")}else{let g=da(a,p);if(g!=null&&typeof g!="object")return String(g);let h=c?.context?.polyglot;if(h?.translations){let m=a?.root?.lang||a?.lang||c?.context?.state?.lang||h.defaultLang||"en",y=h.translations[m];if(y){let b=da(y,p);if(b!=null&&typeof b!="object")return String(b);for(let x in y){let _=y[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let w=da(_,p);if(w!=null&&typeof w!="object")return String(w)}}}let S=da(h.translations,p);if(S!=null&&typeof S!="object")return String(S)}return""}})}var pa,Lg,_I,da,wI,Ur,Dg,SI,Ig,$g,Mg,xI,Ng,Fg,ha=D(()=>{"use strict";pa=(t,e)=>{for(let n of e)if(t.includes(n))return!0;return!1},Lg=(t,e)=>{let n=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(n,"")},_I={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},da=(t,e)=>e.split(".").reduce((n,r)=>n?.[r],t),wI=(t,e)=>{if(!t||!t.__ref)return!0;let n=t;for(;n;){if(n.allowRuntimeTemplates===!0)return!0;let r=n.__ref&&n.__ref.__authoredTemplates;if(r&&r.has(e))return!0;n=n.parent}return!1};Ur=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,Dg=(t,e)=>{let n=t.split(`
2
+ `),r=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,l=!1;for(let f=0;f<n.length;f++)if(a.test(n[f])&&!l){if(l=!0,r=f+1,s=n[f].indexOf(e)+1,n[f].includes("{}")){o=r,i=n[f].indexOf("{}")+3;break}let u=n[f].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=f+1,i=n[f].length+1;break}}else if(l&&(c+=(n[f].match(/{/g)||[]).length,c+=(n[f].match(/\[/g)||[]).length,c-=(n[f].match(/}/g)||[]).length,c-=(n[f].match(/]/g)||[]).length,c===0)){o=f+1,i=n[f].lastIndexOf("}")!==-1?n[f].lastIndexOf("}")+2:n[f].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:r,endLineNumber:o}},SI=/\\([0-7]{1,3})/g,Ig=t=>t.replace(SI,(e,n)=>String.fromCharCode(parseInt(n,8))),$g=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Mg=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),xI=/[^a-zA-Z0-9\s]/g,Ng=t=>t.replace(xI,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Fg=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var rr,ga,jg,zr,or,sr,Bg,ls,Hr,ma,Vg,Wr=D(()=>{"use strict";rr=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context","preventContentUpdate","preventContentRecreate"]),ga=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),jg=["ref","parent","__element","__depends","__ref","__children","root"],zr=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),or=new Set(["update","__element"]),sr=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren","preventContentUpdate","preventContentRecreate"]),Bg=t=>sr.has(t),ls=new Set(["log","warn","error","verbose"]),Hr=t=>sr.has(t)&&!ls.has(t),ma=new Set(["node","context","extends","__element","__ref",...sr,...zr,...or]),Vg=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var kI,ik,vI,Ug,EI,AI,CI,fs,TI,ya,zg=D(()=>{"use strict";kI=["$R?.scope ?? $R?.context?.globalScope ?? {}","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) Object.setPrototypeOf(s, g); return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { try { Object.setPrototypeOf(s, g) } catch (_) {} } return s ?? g ?? {}; })()","(() => { const s = $R?.scope; const g = $R?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? {}; })()","(() => { const r = $R; const s = r?.scope; const g = r?.context?.globalScope; if (s && g && s !== g && Object.getPrototypeOf(s) !== g) { let __p = g, __cyc = false; while (__p) { if (__p === s) { __cyc = true; break } __p = Object.getPrototypeOf(__p) } if (!__cyc) { try { Object.setPrototypeOf(s, g) } catch (_) {} } } return s ?? g ?? (r && typeof r === 'object' && r !== globalThis ? r : {}); })()"],ik=(t,e)=>t.split("$R").join(e),vI=kI.map(t=>[ik(t,"this"),t]),Ug="const __scope = ",EI=/^\(globalThis\[Symbol\.for\('smbls\.libraryScope'\)\] \|\| \(\(_, v\) => v\)\)\("(?:[^"\\]|\\.)*", /,AI=/^\s*(?:async\s*)?(?:\(([^()[\]{}'"`/]*)\)|([A-Za-z_$][\w$]*))\s*=>\s*\{\s*/,CI=/^[A-Za-z_$][\w$]*$/,fs=(t,e)=>typeof t=="string"&&new RegExp("^"+e+"\\d*$").test(t),TI=t=>t.length>=2&&fs(t[0],"el")?t[0]:t.length>=2&&fs(t[1],"el")?t[1]:t.length>=1&&fs(t[0],"el")||fs(t[0],"element")||fs(t[0],"node")?t[0]:t.find(e=>fs(e,"element"))||null,ya=t=>{if(typeof t!="string"||t.indexOf(Ug)===-1||t.indexOf("this")===-1)return t;let e=AI.exec(t);if(!e)return t;let n=e[0].length;if(!t.startsWith(Ug,n))return t;n+=Ug.length;let r=EI.exec(t.slice(n,n+400));r&&(n+=r[0].length);let o=vI.find(([l])=>t.startsWith(l,n));if(!o)return t;let s=n+o[0].length;if(t[s]!==(r?")":";"))return t;let a=(e[1]!==void 0?e[1]:e[2]).split(",").map(l=>l.split("=")[0].trim()).filter(Boolean);if(a.some(l=>!CI.test(l)))return t;let c=TI(a);return c?t.slice(0,n)+ik(o[1],c)+t.slice(s):t}});function zI(){let t=qr.get(this);return t?t.src.trim():Function.prototype.toString.call(this)}var ak,Kr,pt,Wg,xt,at,gk,qg,ut,_a,OI,RI,ck,wa,PI,LI,DI,Qt,mk,II,Uf,yk,Hg,qr,$I,MI,NI,FI,jI,lk,BI,fk,VI,uk,zf,UI,HI,WI,qI,dk,Kg,we,Gr,KI,GI,ie,bk,_k,wk,Sk,xk,kk,vk,Sa,xa,us,Yr,pk,ba,hk,Xr,Gg,Yg,Hf,Xg,Zg,ka,Zr,Jt,Wf,YI,Qg,Jg,qf,tm,em,nm,rm,om,sm,im,dn=D(()=>{"use strict";sa();jt();cs();ha();aa();Wr();zg();ak="production",Kr=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,pt=(t,e,n,r)=>{if(R(t))return e?typeof t.call!="function"?t:t.call(e,e,n||e.state,r||e.context):void 0;if(t!=null&&e?.context?.plugins&&(I(t)||E(t)&&!oe(t))){let o=e.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(t,e);if(typeof i=="function")return pt(i,e,n,r)}}return t},Wg=(t,e,n)=>{for(let r in e)t[r]=pt(e[r],n)},xt=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(Kr(o)||(r?n.has(o):n.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},at=(t,e,n=ma)=>gk(t,e,n,null),gk=(t,e,n,r)=>{if(t===e)return t;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===t&&r[s+1]===e)return t}let o=n instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||Kr(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=t[s],a=e[s];if(q(i)&&q(a)){let c=r||[];c.push(t,e),gk(i,a,n,c),c.length-=2}else i===void 0&&(t[s]=a)}return t},qg=(t,e=[])=>{let n=e instanceof Set,r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(Kr(o)||(n?e.has(o):e.includes(o))||(r[o]=t[o]));return r},ut=(t,e={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!q(t)||oe(t))return t;if(s.has(t))return s.get(t);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),l=I(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,d]=f.pop();for(let p in u){if(!Object.prototype.hasOwnProperty.call(u,p)||Kr(p)||p==="__proto__"||c(p))continue;let g=u[p];if(!(r&&g===void 0)&&!(o&&g===null)){if(oe(g)){d[p]=g;continue}if(i&&p==="extends"&&I(g)){d[p]=la(g,n);continue}if(R(g)){d[p]=g;continue}if(q(g))if(s.has(g))d[p]=s.get(g);else{let h=I(g)?[]:{};s.set(g,h),d[p]=h,f.push([g,h])}else d[p]=g}}}return l},_a=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let n in t){let r=t[n];if(R(r))e[n]=r.toString();else if(E(r))e[n]={},_a(r,e[n]);else if(I(r)){let o=e[n]=[];for(let s=0;s<r.length;s++){let i=r[s];E(i)?(o[s]={},_a(i,o[s])):R(i)?o[s]=i.toString():o[s]=i}}else e[n]=r}return e},OI=/^[A-Za-z_$][A-Za-z0-9_$]*$/,RI=t=>`'${String(t).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n")}'`,ck=t=>{let e=String(t);return pa(e,[`
4
+ `,"'"])?"`"+e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")+"`":"'"+e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r")+"'"},wa=(t={},e=0)=>{if(t===null||typeof t!="object"||t instanceof RegExp)return String(t);let n=!1;for(let s in t){n=!0;break}if(!n)return"{}";let r=" ".repeat(e),o=`{
5
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=OI.test(s)?s:RI(s);if(o+=`${r} ${a}: `,i instanceof RegExp)o+=String(i);else if(I(i)){o+=`[
6
6
  `;for(let c of i)c instanceof RegExp?o+=`${r} ${String(c)},
7
- `:q(c)&&c!==null?o+=`${r} ${ba(c,e+2)},
8
- `:v(c)?o+=`${r} ${ik(c)},
7
+ `:q(c)&&c!==null?o+=`${r} ${wa(c,e+2)},
8
+ `:v(c)?o+=`${r} ${ck(c)},
9
9
  `:o+=`${r} ${c},
10
- `;o+=`${r} ]`}else q(i)?o+=ba(i,e+1):v(i)?o+=ik(i):o+=i;o+=`,
11
- `}return o+=`${r}}`,o},TI=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],OI=/^["[{]/,RI=/^(export|import)\s/,Qt=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||RI.test(e)||!TI.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||OI.test(e)&&!n)},hk=t=>(0,eval)(t),PI=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
10
+ `;o+=`${r} ]`}else q(i)?o+=wa(i,e+1):v(i)?o+=ck(i):o+=i;o+=`,
11
+ `}return o+=`${r}}`,o},PI=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/,/^(?:\*\s*)?[a-zA-Z_$][\w$]*\s*\((?:[^()]|\([^()]*\))*\)\s*\{[\s\S]*\}$/],LI=/^["[{]/,DI=/^(export|import)\s/,Qt=t=>{if(!t)return!1;let e=t.trim();if(e===""||e==="{}"||e==="[]")return!1;let n=e.includes("=>");if(!n&&e.charCodeAt(0)!==40&&!e.startsWith("function")&&!e.startsWith("async")&&!(e.charCodeAt(e.length-1)===125&&e.includes("("))||DI.test(e)||!PI.some(s=>s.test(e)))return!1;let o=e.charCodeAt(0);return!(o===123&&!n||o===91||LI.test(e)&&!n)},mk=t=>(0,eval)(t),II=(t,e)=>{let n=/^(\s*(?:async\s+)?function\s*[\w$]*\s*\([^)]*\)\s*)\{/.exec(t);if(!n)return null;let r=n[0].length,o=[],s=r,i=1,a=null,c=t.length,l=new RegExp("^(?:const|let|var)\\s+"+e+"\\b");for(;s<c&&i>0;){let u=t[s];if(u==="/"&&t[s+1]==="/"){let d=t.indexOf(`
12
12
  `,s);s=d===-1?c:d;continue}if(u==="/"&&t[s+1]==="*"){let d=t.indexOf("*/",s+2);s=d===-1?c:d+2;continue}if(u==='"'||u==="'"||u==="`"){let d=u;for(s++;s<c;){if(t[s]==="\\"){s+=2;continue}if(t[s]===d){s++;break}if(d==="`"&&t[s]==="$"&&t[s+1]==="{"){s+=2;let p=1;for(;s<c&&p>0;)t[s]==="{"?p++:t[s]==="}"&&p--,s++;continue}s++}continue}if(u==="{"){i++,s++;continue}if(u==="}"){i--,s++;continue}if(i===1&&l.test(t.slice(s))){let d=s,p=0,g=s;for(;g<c;){let h=t[g];if(h==='"'||h==="'"||h==="`"){let m=h;for(g++;g<c;){if(t[g]==="\\"){g+=2;continue}if(t[g]===m){g++;break}g++}continue}if(h==="("||h==="["||h==="{"){p++,g++;continue}if(h===")"||h==="]"||h==="}"){if(p===0)break;p--,g++;continue}if(p===0&&(h===";"||h===`
13
- `)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Vf=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=ga(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=PI(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(r?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
- First 200 chars of source: `+String(t).slice(0,200)),t)}},gk=1,zg=2,qr=new WeakMap,LI=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,DI=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,II=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,$I=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,MI=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),ak=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,NI=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!ak(t.charCodeAt(r-1)))&&(o>=t.length||!ak(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},ck=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},FI=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=LI.exec(e);if(r){if(r[2]||ck(e)!==125)return null;let o=r[3]||"";return o&&NI(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?zg:gk,async:!!r[1],fn:void 0}}return r=DI.exec(e)||II.exec(e),r?{src:t,name:"",kind:zg,async:!!r[1],fn:void 0}:(r=$I.exec(e),r&&!MI.has(r[2])&&ck(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:zg,async:!!r[1],fn:void 0}:null)},lk=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,Uf=t=>{let e=Vf(t.src,lk(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${lk(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
- First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},jI=(t,e,n)=>Reflect.construct(t,e,n);VI={length:{get(){let t=qr.get(this);if(!t)return 0;let e=t.fn===void 0?Uf(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=qr.get(this);return t?t.name:""},configurable:!0},toString:{value:BI,writable:!0,configurable:!0}},UI=Object.getPrototypeOf(async function(){}),zI=t=>{let e;return t.kind===gk?e=function(){let n=t.fn===void 0?Uf(t):t.fn;return n===null?t.value:new.target?jI(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?Uf(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,qr.set(e,t),Object.defineProperties(e,VI),t.async&&Object.setPrototypeOf(e,UI),e},fk=(t,e,n,r)=>{let o=FI(t);return o?(o.key=e,o.index=n,o.opts=r,zI(o)):Vf(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},qg=t=>typeof t=="function"&&qr.has(t),we=t=>{let e=qr.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},Gr=t=>{let e=typeof t=="function"?qr.get(t):void 0;return e?(e.fn===void 0?Uf(e):e.fn)===null:!1},HI=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),WI={window:{eval:hk}},ie=(t,e={},n=WI)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:hk}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?HI.has(c):l),i=[[t,e,r]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(v(u))Qt(u)?c[f]=l?fk(u,f,-1,n):Vf(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(v(h))d.push(Qt(h)?p?fk(h,f,g,n):Vf(h,`array index ${g} (prop "${f}")`,n):h);else if(E(h)){let m=dk(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(E(u)){let d=dk(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return us(e)},mk="Set",yk="Map",bk="RegExp",_k="WeakMap",wk="WeakSet",Sk="String",xk=t=>{if(!t||typeof t!="object"||t.__type!==Sk||!v(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},_a=xk,wa=Symbol.for("smbls.revived"),us=t=>{if(t&&typeof t=="object")try{t[wa]=!0}catch{}return t},Yr=t=>!!(t&&typeof t=="object"&&t[wa]===!0),uk=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},ma=(t,e)=>{if(!t||typeof t!="object")return t;if(xk(t))return t.value;let n=s=>ma(s,e||(e=new WeakMap));if(t.__type===mk&&I(t.values))return new Set(t.values.map(n));if(t.__type===yk&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===_k&&uk(t))return new WeakMap;if(t.__type===wk&&uk(t))return new WeakSet;if(t.__type===bk&&v(t.source))try{return new RegExp(t.source,v(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=ma(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=ma(t[s],e),o[s]!==t[s]&&(r=!0);return r||e.set(t,t),r?o:t},dk=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==bk&&e!==mk&&e!==yk&&e!==_k&&e!==wk&&e!==Sk)return null;let n=ma(t);return n===t?null:n},Xr=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];v(a)&&Qt(a)?n.push([i,a]):e[i]=ma(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
13
+ `)){g++;break}g++}o.push([d,g]),s=g;continue}s++}if(!o.length)return null;let f=t;for(let u=o.length-1;u>=0;u--)f=f.slice(0,o[u][0])+f.slice(o[u][1]);return f},Uf=(t,e,n,r)=>{let o=String(t).trimStart();if(/^(export|import)\s/.test(o))return t;t=ya(t);try{return n.window.eval(`(${t})`)}catch(s){let i=s&&s.message?s.message:String(s),a=/await is only valid in async/.test(i),c=/Identifier '([^']+)' has already been declared/.exec(i),l=null;if(a){let f=String(t).trim();if(/^function[\s(]/.test(f))try{l=n.window.eval("(async "+f+")")}catch{}}else if(c){let f=String(t),u=c[1];for(let d=0;d<5;d++){let p=II(f,u);if(!p||p===f)break;f=p;try{l=n.window.eval("("+f+")");break}catch(g){let h=/Identifier '([^']+)' has already been declared/.exec(g&&g.message||String(g));if(!h||h[1]!==u)break}}}if(!l&&/Unexpected (token '\{'|identifier)/.test(i))try{let f=n.window.eval("({"+t+"})");if(f&&typeof f=="object"){let u=Object.keys(f);u.length===1&&typeof f[u[0]]=="function"&&(l=f[u[0]])}}catch{}return l||(typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: eval failed on ${e} \u2014 `+(r?"revived lazily, so its source compiled on this first use; it acts as the string it replaces (a call returns the source text, el.call treats it as not callable). Reason: ":"value will be left as a string. Reason: ")+i+`.
14
+ First 200 chars of source: `+String(t).slice(0,200)),t)}},yk=1,Hg=2,qr=new WeakMap,$I=/^(async\s+)?function(?![\w$])\s*(\*)?\s*([A-Za-z_$][\w$]*)?\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,MI=/^(async\s+)?[A-Za-z_$][\w$]*\s*=>/,NI=/^(async\s*)?\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*=>/,FI=/^(async\s+)?([A-Za-z_$][\w$]*)\s*\((?:[^()'"`/]|\([^()'"`/]*\))*\)\s*\{/,jI=new Set(["if","for","while","switch","catch","with","do","return","typeof","void","delete","new","in","of","instanceof","function","class","const","let","var","await","yield","import","export","try","else","throw","case","default","break","continue","debugger","finally","super","this","null","true","false","async","get","set","static"]),lk=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===36||t===95,BI=(t,e,n)=>{let r=t.indexOf(e,n);for(;r!==-1;){let o=r+e.length;if((r===0||!lk(t.charCodeAt(r-1)))&&(o>=t.length||!lk(t.charCodeAt(o))))return!0;r=t.indexOf(e,o)}return!1},fk=t=>{let e=t.length-1;for(;e>=0&&t.charCodeAt(e)<=32;)e--;return e<0?-1:t.charCodeAt(e)},VI=t=>{let e=t,n=0;for(;n<e.length&&e.charCodeAt(n)<=32;)n++;n&&(e=e.slice(n));let r=$I.exec(e);if(r){if(r[2]||fk(e)!==125)return null;let o=r[3]||"";return o&&BI(e,o,r[0].indexOf("("))||e.indexOf("arguments.callee")!==-1?null:{src:t,name:o,kind:r[1]?Hg:yk,async:!!r[1],fn:void 0}}return r=MI.exec(e)||NI.exec(e),r?{src:t,name:"",kind:Hg,async:!!r[1],fn:void 0}:(r=FI.exec(e),r&&!jI.has(r[2])&&fk(e)===125?e.indexOf("arguments.callee")!==-1?null:{src:t,name:r[2],kind:Hg,async:!!r[1],fn:void 0}:null)},uk=t=>t.index===-1?`"${t.key}"`:`array index ${t.index} (prop "${t.key}")`,zf=t=>{let e=Uf(t.src,uk(t),t.opts,!0),n=null;return typeof e=="function"?n=e:(t.value=e,typeof e!="string"&&typeof console<"u"&&console.warn&&console.warn(`[smbls] deepDestringifyFunctions: ${uk(t)} did not evaluate to a function \u2014 the lazily revived function returns that value.
15
+ First 200 chars of source: `+String(t.src).slice(0,200))),t.fn=n,t.opts=null,n},UI=(t,e,n)=>Reflect.construct(t,e,n);HI={length:{get(){let t=qr.get(this);if(!t)return 0;let e=t.fn===void 0?zf(t):t.fn;return e?e.length:0},configurable:!0},name:{get(){let t=qr.get(this);return t?t.name:""},configurable:!0},toString:{value:zI,writable:!0,configurable:!0}},WI=Object.getPrototypeOf(async function(){}),qI=t=>{let e;return t.kind===yk?e=function(){let n=t.fn===void 0?zf(t):t.fn;return n===null?t.value:new.target?UI(n,arguments,new.target):n.apply(this,arguments)}:e={lazy(){let n=t.fn===void 0?zf(t):t.fn;return n===null?t.value:n.apply(this,arguments)}}.lazy,qr.set(e,t),Object.defineProperties(e,HI),t.async&&Object.setPrototypeOf(e,WI),e},dk=(t,e,n,r)=>{let o=VI(t);return o?(o.key=e,o.index=n,o.opts=r,qI(o)):Uf(t,n===-1?`"${e}"`:`array index ${n} (prop "${e}")`,r)},Kg=t=>typeof t=="function"&&qr.has(t),we=t=>{let e=qr.get(t);return e?e.src.trim():Function.prototype.toString.call(t)},Gr=t=>{let e=typeof t=="function"?qr.get(t):void 0;return e?(e.fn===void 0?zf(e):e.fn)===null:!1},KI=new Set(["components","pages","functions","methods","snippets","app","globalScope"]),GI={window:{eval:mk}},ie=(t,e={},n=GI)=>{if(!t||typeof t!="object")return e;(!n||!n.window||typeof n.window.eval!="function")&&(n={...n,window:{eval:mk}});let r=n.lazy===!0,o=n.lazy==="context",s=(a,c,l)=>r||o&&(a===t?KI.has(c):l),i=[[t,e,r]];for(;i.length;){let[a,c,l]=i.pop();for(let f in a){if(!Object.prototype.hasOwnProperty.call(a,f))continue;let u=a[f];if(v(u))Qt(u)?c[f]=l?dk(u,f,-1,n):Uf(u,`"${f}"`,n):c[f]=u;else if(I(u)){let d=c[f]=[],p=s(a,f,l);for(let g=0;g<u.length;g++){let h=u[g];if(v(h))d.push(Qt(h)?p?dk(h,f,g,n):Uf(h,`array index ${g} (prop "${f}")`,n):h);else if(E(h)){let m=hk(h);if(m!==null)d.push(m);else{let y={};d.push(y),i.push([h,y,p])}}else d.push(h)}}else if(E(u)){let d=hk(u);if(d!==null){c[f]=d;continue}let p=c[f]&&typeof c[f]=="object"&&!I(c[f])?c[f]:c[f]={};i.push([u,p,s(a,f,l)])}else c[f]=u}}return us(e)},bk="Set",_k="Map",wk="RegExp",Sk="WeakMap",xk="WeakSet",kk="String",vk=t=>{if(!t||typeof t!="object"||t.__type!==kk||!v(t.value))return!1;let e=Object.keys(t);return e.length===2&&e.includes("value")},Sa=vk,xa=Symbol.for("smbls.revived"),us=t=>{if(t&&typeof t=="object")try{t[xa]=!0}catch{}return t},Yr=t=>!!(t&&typeof t=="object"&&t[xa]===!0),pk=t=>{let e=Object.keys(t);return e.length===1&&e[0]==="__type"},ba=(t,e)=>{if(!t||typeof t!="object")return t;if(vk(t))return t.value;let n=s=>ba(s,e||(e=new WeakMap));if(t.__type===bk&&I(t.values))return new Set(t.values.map(n));if(t.__type===_k&&I(t.entries))return new Map(t.entries.map(s=>I(s)?[n(s[0]),n(s[1])]:s));if(t.__type===Sk&&pk(t))return new WeakMap;if(t.__type===xk&&pk(t))return new WeakSet;if(t.__type===wk&&v(t.source))try{return new RegExp(t.source,v(t.flags)?t.flags:"")}catch{return t}if(e||(e=new WeakMap),e.has(t))return e.get(t);let r=!1;if(I(t)){let s=new Array(t.length);e.set(t,s);for(let i=0;i<t.length;i++)s[i]=ba(t[i],e),s[i]!==t[i]&&(r=!0);return r||e.set(t,t),r?s:t}let o={};e.set(t,o);for(let s of Object.keys(t))o[s]=ba(t[s],e),o[s]!==t[s]&&(r=!0);return r||e.set(t,t),r?o:t},hk=t=>{if(!t||typeof t!="object")return null;let e=t.__type;if(e!==wk&&e!==bk&&e!==_k&&e!==Sk&&e!==xk&&e!==kk)return null;let n=ba(t);return n===t?null:n},Xr=t=>{if(!t||typeof t!="object")return t;let e={},n=[];for(let i of Object.keys(t)){let a=t[i];v(a)&&Qt(a)?n.push([i,a]):e[i]=ba(a)}if(n.length===0)return e;let r=i=>/^[A-Za-z_$][\w$]*$/.test(i),o=n.filter(([i])=>r(i)),s=Object.keys(e).filter(r).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
16
16
  `);try{let i=o.map(([l,f])=>`var ${l} = (${f});`).join(`
17
17
  `),a="{ "+o.map(([l])=>`${JSON.stringify(l)}: ${l}`).join(", ")+" }",c=C.eval(`(function(__gs__) { ${s}
18
18
  ${i}
19
19
  return ${a}; })`)(e);Object.assign(e,c)}catch{for(let[a,c]of o)try{let l=Object.keys(e).filter(r).map(f=>`var ${f} = __gs__[${JSON.stringify(f)}];`).join(`
20
20
  `);e[a]=C.eval(`(function(__gs__) { ${l}
21
- return (${c}); })`)(e)}catch{try{e[a]=C.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=C.eval(`(${a})`)}catch{e[i]=a}return e},Kg=(t,e={verbose:!0})=>{try{return t?C.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},Gg=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),zf=t=>{for(let e in t)return!1;return!0},Yg=t=>E(t)&&zf(t),Xg=()=>Object.create(null),Sa=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&Kr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Zr=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Kr(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},Jt=(t,e,n={},r=new WeakMap)=>{if(!q(t)||!q(e)||oe(t)||oe(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Kr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];oe(l)?t[a]=l:q(c)&&q(l)?t[a]=Jt(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Hf=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Hf(t[i],e[i],n))return!1}return!0},qI=new Set(["node","__ref"]),Zg=(t,e,n=qI)=>{if(t===e)return!0;if(!q(t)||!q(e)||oe(t)||oe(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(oe(l)||oe(f)){if(l!==f)return!1}else if(q(l)&&q(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Qg=(t,e)=>{if(e==null)return t;if(se(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},Wf=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=Wf(t[n]));return e},Jg=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},tm=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},em=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},nm=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},rm=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(sk==="test"||sk==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},om=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},sm=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var xa,ka,va,qf=D(()=>{"use strict";un();xa=(function(){let t=0;function e(){return t++,t}return e})(),ka=xa,va=(t,e,n)=>(pt(n,t)||n||t.key||xa()).toString()});var Ge,im,ir,Kf,am,cm,lm,ar,fm,Qr,tt,Gf=D(()=>{"use strict";Ge="production",im=Ge,ir=(t=Ge)=>t==="production",Kf=(t=Ge)=>t==="testing"||t==="test",am=Kf,cm=(t=Ge)=>t==="staging",lm=(t=Ge)=>t==="local",ar=(t=Ge)=>t==="development"||t==="dev"||t==="local",fm=(t,e=Ge)=>e[t],Qr=(t=Ge)=>!ir(t),tt=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function Ea(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function pm(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var um,dm,KI,ds,ps,hs,Ct,cr=D(()=>{"use strict";um=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},dm=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},KI=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,ds=t=>KI.test(t),ps=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},hs=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},Ct=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var hm,kk=D(()=>{"use strict";jt();un();hm=(t,e)=>{let{__ref:n}=t,r=t.if;if(R(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?pt(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var gm,mm,vk=D(()=>{"use strict";gm=(t,...e)=>{t&&e.map(n=>console.log(n))},mm=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function Sm(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 xm(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var ym,bm,_m,wm,Ek=D(()=>{"use strict";jt();ra();ym=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),bm=(t,e,n=365)=>{if(Ft(dt)||Ft(dt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;dt.cookie=`${t}=${e};${o};path=/`},_m=t=>{if(Ft(dt)||Ft(dt.cookie))return;let e=`${t}=`,r=decodeURIComponent(dt.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},wm=t=>{Ft(dt)||Ft(dt.cookie)||(dt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var gs,Ak,km,vm=D(()=>{"use strict";gs={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"])},Ak=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"]),km=t=>gs.body.has(t)});var Em,Ck,ms,$e,ys,Ta,dn,Am,Yf,Oa,Cm,Ra,Xf,Zf,Pa,Qf,bs,GI,pn,Tk,Aa,La,Tm,Ca,Om,Rm,Jf,tu,eu,nu,ru,ou,Ok,su=D(()=>{"use strict";cs();Pm();un();jt();Em="production",Ck=t=>t.sourcemap!==!1&&Em!=="production",ms=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},$e=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?$e(r):r)}return e},ys=t=>{if(t.includes("+"))return t.split("+").filter(hn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!hn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Ta=(t,e,n)=>{let r=[],o=ys(n);o&&(r=[...o]);let s=$e(ms(t));return s.length&&(r=[...r,...s]),r},dn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;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 r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},Am=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:is(o,r)}},Yf=()=>Math.random().toString(36).substring(2),Oa={},Cm={},Ra=t=>Oa[t.__hash],Xf=(t,e)=>{let n=Yf();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Oa[n]=e),e},Zf=(t,e)=>t.__hash?e.concat(Ra(t)):Xf(t,e),Pa=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?Pa(i,e,n,r,o,s):bs(i,e,n,r,o,void 0,s);return e},Qf=(t,e,n,r=new Set,o,s,i)=>{let a=ms(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&bs($e(a),e,n,r,o,s,i),e},bs=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return Pa(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=La(t,n)):i&&E(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?Qf(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},GI=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),pn=(t,e,n,r,o)=>{e=ut(e);for(let s in e){if(GI.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,n&&r?E(a)&&!I(a)?(n[s]=n[s]||{},Tk(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(E(i)&&E(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];hn(s)?t[s]=pn(i,a,c,r,l):pn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&E(a)){let c=pn({},i);t[s]=pn(c,a)}}}}return t},Tk=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.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];E(s)&&!I(s)?(t[o]=t[o]||{},Tk(t[o],s,n,r)):t[o]=n}}},Aa=(t,e,n)=>t.reduce((r,o,s)=>{let i=ut(o),a=n?n[s]:void 0;return pn(r,i,e,a)},{}),La=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(Em==="test"||Em==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Tm=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Ca=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return Ra(t)||[];let s=bs(t,[],e,new Set,n,void 0,r);return n?s:Zf(t,s)},Om=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return is(n,e)},Rm=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(hn(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},Jf=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=ms(t);if(i.length){let a=$e(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?dn([f,...l],t):dn(a,t)}return tu(t,e,n),eu(t,e,n),nu(t,e,n),t.component&&dn($e(pt(t.component,t)),t),o.defaultExtends&&dn($e(o.defaultExtends),t),as(r.__extends)},tu=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&dn($e(e.childProps.extends),t),r.__extends},eu=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&dn($e(s),t),r.__extends},nu=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&dn($e(o),t),r.__extends},ru=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=Ck(n),a=i?[...r.__extends]:null,c=as(r.__extends.map((l,f)=>La(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&E(p)&&v(g)&&l.set(p,g)}let f=[],u=Ca(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=Ca(c,o);r.__extendsStack=l}return r.__extendsStack},ou=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(Ck(n)){let s={},i=r.__extendsNames||[],a=Aa(o,s,i),c={};pn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Aa(o);pn(t,s)}return t},Ok=(t,e,n={})=>(Jf(t,e,n),ru(t,e,n),ou(t,e,n),t)});function Lm(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Dm(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Im(t,e,n){let{context:r}=e||{},[o]=ys(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var hn,Pm=D(()=>{"use strict";su();jt();hn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Rk(t,e){let{props:n,on:r}=e,o=Ur(t.split("on")[1]),s=r[o],i=n[t];R(s)?r[o]=(...a)=>{if(s(...a)!==!1&&R(i))return i(...a)}:r[o]=i}var Pk=D(()=>{"use strict";da();jt()});function iu(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(R(o)||o!=null&&ps(this.context))){let g=Ur(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=E(a)||R(a),f=E(c)||R(c);if(l||f)continue;let u=r.charAt(0);if(Dk.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=$m.test(r)||Lk.test(r)||XI(o),p=rr.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function au(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=R(o)||o!=null&&ps(this.context);if(s&&i){Rk(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if(Dk.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=E(c)||R(c),u=E(l)||R(l),d=$m.test(r)||Lk.test(r),p=rr.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function cu(t=this){let e=[];return iu.call(this,t,{cachedKeys:e}),au.call(this,t,{cachedKeys:e}),t}function Mm(t={}){return t.on||(t.on={}),t.props||(t.props={}),cu.call(this,t)}function Fm(t,e){this.__element.update({props:t},e)}function Na(t){let e={update:Fm.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var $m,Lk,Dk,YI,XI,$a,Da,Nm,Ma,Fa,ja,lu,Ia,jm,Bm,Vm=D(()=>{"use strict";Wr();Pk();un();jt();da();cr();$m=/^[A-Z]/,Lk=/^\d+$/,Dk=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),YI=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),XI=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(YI.has(e)||$m.test(e))return!0;return!1},$a=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return q(r)?{...r}:(o.__propsStack.push(r),{})};Da=t=>se(t)("string","number")?{inheritedString:t}:t,Nm=(t,e)=>!t||!e.length?!1:e.includes(t),Ma=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=Da(i);r.unshift(c)}if(s){let c=Da(s);r.unshift(c)}return r};Fa=t=>{let e=new Set;return t.filter(n=>!n||or.has(n)||e.has(n)?!1:(e.add(n),!0))},ja=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(or.has(o))return r;for(;R(o);)o=pt(o,e);return at(r,ut(o,{exclude:or}))},{}),Na(e),e.props),lu=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...Ma(t,e)]),E(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=Fa(o),r.__propsStack},Ia=(t,e)=>{let{__ref:n}=t,r=lu(t,e);r.length?ja(r,t):(n.__propsStack=[],t.props={})},jm=function(t,e,n){let{__ref:r}=t;if(r.__if)Ia(t,e);else try{Ia(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return Na(t),t},Bm=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=Ma(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=Fa(s),r.__propsStack.length&&ja(r.__propsStack,e),e}});var Ik,fu,uu,du,pu,Um,hu,gu,mu,zm,$k=D(()=>{"use strict";su();qf();sa();Vm();vm();jt();Ik="production",fu=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=gs.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},uu=(t,e,n)=>{if(t===void 0)return(Ik==="test"||Ik==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:se(t)("string","number")?fu(t,e,n):R(t)?{props:t}:t},du=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},pu=(t,e,n,r,o)=>{if(!e)return o;if(En(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},Um=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},hu=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},gu=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),mu=(t,e,n)=>{let r=du(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=Ta(t,e,n),r.path=hu(t,e,n),r},zm=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:uu(t,e,n);if(!i)return;let a=pu(i,e,n,r,o),c=va(i,a,n);mu(i,a,c);let l=$a(i,a,c),f=gu(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Hm,yu,bu,_u,wu,Wm,Su,qm,Km,Gm,Ym,Mk,_s,Jr,Nk,Fk,jk,Ba,gn,Bk=D(()=>{"use strict";cs();Wr();un();jt();Hm=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return se(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},yu=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},bu=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},_u=(t,e,n={})=>{let r=v(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},wu=(t,e,n={})=>{let o=t.__ref.__state;if(!Su(t))return;let s=yu(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=bu(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return _u(o,i,n)},Wm=(t,e)=>{let n=t.__ref,r=wu(t,e);if(r===void 0)return t.state;if(se(r)("object","array"))return ut(r);if(se(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},Su=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&se(n)("number","string","boolean"))},qm=function(t){return q(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},Km=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},Gm=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=ut(r,zr),s={[t.key]:o},i=E(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?la(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},Ym=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){at(t,e,zr);return}(o?Zr:Jt)(t,e,zr)},Mk="__polyglotSeededKeys",_s=t=>{if(!E(t))return new Set;let e=t[Mk];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,Mk,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Jr=(t,e,n)=>_s(t).has(e)?!0:!E(n)||n[e]===void 0,Nk="__polyglotSeededValues",Fk=t=>{if(!E(t))return new Map;let e=t[Nk];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,Nk,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},jk=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},Ba=(t,e,n)=>{if(!_s(t).has(e))return!1;let r=Fk(t);if(!r.has(e))return!0;let o=E(n)||Array.isArray(n)?n[e]:void 0,s=jk(o);return s!==null&&s===r.get(e)},gn=(t,e,...n)=>(_s(t).add(e),n.length&&Fk(t).set(e,jk(n[0])),e)});var ZI,Xm,Vk=D(()=>{"use strict";ZI=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},Xm=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.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&&!ZI(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var Uk,xu,An,ku,Zm,Qm=D(()=>{"use strict";jt();cr();Uk=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},xu=(t,e,n,r,o)=>{if(t=hs(t,e),!!R(t))try{let s=t.call(e,e,n||e.state,r||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}},An=(t,e,n)=>{if(!e)throw new Error("Element is required");Ct(t,e,n);let r=Uk(t,e);if(r){let{state:o,context:s}=e;return xu(r,e,o,s,n)}},ku=(t,e,n,r,o,s)=>{if(t=hs(t,n),!!R(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},Zm=(t,e,n,r)=>{Ct(t,n,e,r);let o=Uk(t,n);if(o){let{state:s,context:i}=n;return ku(o,e,n,s,i,r)}}});var Jm,Va,ty=D(()=>{"use strict";Jm={},Va={}});var vu,Ua,zk,ey,Hk,Wk,qk,Kk,Gk,Eu=D(()=>{"use strict";vu="@symbo.ls/fetch:EARLY",Ua=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},zk=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},ey=()=>Symbol.for(vu),Hk=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},Wk=(t,e)=>{let n=ey();if(!t||typeof t!="object"){let i=globalThis[n];return i&&i.seeded?{carried:{},rpc:!1,maxAge:3e4}:null}let r=globalThis[n];r||(r={time:Date.now(),entries:{}},globalThis[n]=r),r.closed=!0;let o={};for(let i in t.query||{})for(let a in e||{})a.toLowerCase()===i.toLowerCase()&&(o[a.toLowerCase()]=e[a]);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:3e4;return{carried:o,rpc:t.rpc==="get",maxAge:s}},qk=(t,e=3e4)=>{let n=globalThis[ey()],r=n&&n.entries&&n.entries[t];return!r||(delete n.entries[t],!(Date.now()-r.time<=e))?null:Promise.resolve(r.answer).then(o=>o&&o.ok&&!o.bodyUsed?o:null,()=>null)},Kk=()=>{let t=globalThis[ey()];t&&t.entries&&(t.entries={})},Gk=t=>{let e=(Array.isArray(t)?t:[]).filter(r=>r&&typeof r.url=="string"&&typeof r.body=="string");if(!e.length)return"";let n=JSON.stringify(e.map(r=>({k:Ua(r.url,r.lang||""),s:r.status||200,t:r.type||"application/json",b:r.body}))).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(vu)+"),r=globalThis[k]||(globalThis[k]={time:Date.now(),entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var ev={};F(ev,{buildUrl:()=>ry,restAdapter:()=>tv,selectQuery:()=>Qk,setup:()=>c2});var ry,Qk,Jk,Yk,QI,JI,t2,Xk,Ye,e2,n2,r2,ny,o2,s2,i2,a2,Zk,c2,tv,nv=D(()=>{"use strict";Eu();ry=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},Qk=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},Jk=t=>Object.prototype.toString.call(t).slice(8,-1),Yk=["auto","json","text","blob","arrayBuffer","stream","response"],QI={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},JI=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},t2=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},Xk=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,Ye=async(t,e,n,r)=>{let o=n??"auto";if(!Yk.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${Yk.join(", ")}`);let s=r&&await r||await globalThis.fetch(t,e);if(o==="auto"){let i=await JI(s);return{data:i,error:s.ok?null:Xk(i,s),status:s.status}}if(!s.ok){let i=await t2(o==="response"?s.clone():s);return{data:o==="response"?s:i,error:Xk(i,s),status:s.status}}return{data:await QI[o](s),error:null,status:s.status}},e2=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],n2=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||e2.includes(Jk(t))),r2=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),ny=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of r2(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},o2={"Content-Type":"application/json"},s2={"Content-Type":void 0},i2=t=>{if(!t||typeof t!="object")return null;let e={};for(let n in t.query||{})e[n.toLowerCase()]=t.query[n];return{params:e,rpc:t.rpc==="get"}},a2="content-type",Zk=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},c2=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return tv(t,e,n,r,o,s)},tv=(t,e={},n,r={},o,s)=>{let i=n?.token||null,a=Wk(Hk(o,s),e),c=i2(s),l=y=>{if(!c)return null;let S={},b={},x={};for(let _ in y){let w=_.toLowerCase();if(w==="authorization")return null;if(w===a2)continue;b[_]=y[_];let k=c.params[w];k?x[k]=y[_]:S[_]=y[_]}return{headers:S,adoptHeaders:b,query:x}},f=(y,S)=>{if(!a)return null;let b="";for(let x in S){let _=x.toLowerCase();if(_==="accept-language")b=String(S[x]);else if(a.carried[_]!==S[x])return null}try{return qk(Ua(y(),b),a.maxAge)}catch{return null}},u=()=>i?{Authorization:`Bearer ${i}`}:null,d=y=>ny(e,u(),y),p=y=>({...r,...y}),g=(y,S,b)=>{if(!n2(S))return p({method:y,headers:ny(e,u(),o2,b),body:JSON.stringify(S)});let x={method:y,headers:ny(e,u(),s2,b),body:S};return Jk(S)==="ReadableStream"&&(x.duplex="half"),p(x)},h=(y,S)=>{let b=S||t;if(y&&(y.startsWith("http://")||y.startsWith("https://")))return y;let x=y&&!y.startsWith("/")?"/":"";return`${b}${x}${y||""}`};return{name:"rest",setToken:y=>{i=y},getSession:async()=>{if(!n?.sessionUrl)return i?{token:i}:null;let y=await Ye(h(n.sessionUrl,n.baseUrl),p({headers:d()}));return y.error?null:y.data},signIn:async y=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let S=await Ye(h(n.signInUrl,n.baseUrl),g("POST",y));return S.data?.token&&(i=S.data.token),S},signOut:async()=>(n?.signOutUrl&&await Ye(h(n.signOutUrl,n.baseUrl),p({method:"POST",headers:d()})),i=null,{error:null}),select:({from:y,params:S,select:b,limit:x,offset:_,order:w,single:k,headers:A,baseUrl:T,responseType:M})=>{let P=ry(T||t,y||"",Qk({params:S,select:b,limit:x,offset:_,order:w,single:k})),L=d(A),H=l(L);if(H){let Z=p({headers:H.headers});return Ye(Zk(P,H.query),Z,M,f(()=>P,H.adoptHeaders))}let lt=p({headers:L});return Ye(P,lt,M,f(()=>P,lt.headers))},rpc:async({from:y,params:S,headers:b,baseUrl:x,responseType:_,read:w})=>{let k=zk(S),A=()=>ry(x||t,`rpc/${y}`,S),T=Z=>Ye(h(`rpc/${y}`,x),g("POST",S,b),_,Z),M=d(b),P=w===!0&&c&&c.rpc&&k?l(M):null,L=null;if(P)try{L=A()}catch{L=null}if(!L)return T(a&&a.rpc&&k?f(A,M):null);let H=p({method:"GET",headers:P.headers}),lt=await Ye(Zk(L,P.query),H,_,f(()=>L,P.adoptHeaders));return lt.status===405?T(null):lt},insert:({from:y,data:S,headers:b,baseUrl:x,responseType:_})=>Ye(h(y,x),g("POST",S,b),_),update:({from:y,data:S,params:b,method:x,headers:_,baseUrl:w,responseType:k})=>{let A=b?.id||S?.id,T=A?`${y}/${A}`:y;return Ye(h(T,w),g(x||"PATCH",S,_),k)},upsert:({from:y,data:S,params:b,method:x,headers:_,baseUrl:w,responseType:k})=>{let A=b?.id||S?.id,T=A?`${y}/${A}`:y;return Ye(h(T,w),g(x||"PUT",S,_),k)},delete:({from:y,params:S,headers:b,baseUrl:x,responseType:_})=>{let w=S?.id,k=w?`${y}/${w}`:y;return Ye(h(k,x),p({method:"DELETE",headers:d(b)}),_)}}}});var ov={};F(ov,{localAdapter:()=>rv,setup:()=>f2});var Au,l2,f2,rv,sv=D(()=>{"use strict";Au=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},l2=(t,{order:e,limit:n,offset:r,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 r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},f2=async({data:t,...e})=>rv(t,e),rv=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>Au(h,u));return l2(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.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:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(Au(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),S=y?p.findIndex(b=>Au(b,y)):-1;if(S>-1){let b={...p[S]};Object.assign(p[S],m),h.push(p[S]),c(f,"UPDATE",p[S],b)}else{let b={id:m.id||++l,...m};p.push(b),h.push(b),c(f,"INSERT",b,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)Au(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var Nu={};F(Nu,{EARLY_KEY:()=>vu,createAdapter:()=>m2,createEarlySeedScript:()=>Gk,default:()=>R2,earlyKey:()=>Ua,executeFetch:()=>Xa,fetchFunctions:()=>Mu,fetchPlugin:()=>my,hasAdapter:()=>g2,initAdapterAuth:()=>Lu,parseDuration:()=>Ha,queryClient:()=>za,registerAdapter:()=>h2,resolveDb:()=>dv});var u2,uv,Cu,Ss,Tu,ay,d2,p2,h2,g2,m2,dv,Ha,ae,pv,Cn,On,Rn,oy,uy,Ka,Wa,Ru,cy,Pu,dy,to,hv,y2,Ou,b2,iv,sy,gv,mv,ws,av,_2,cv,w2,yv,py,Ga,Du,Iu,Ya,hy,Lu,gy,Se,Me,qa,$u,S2,ly,lr,Xe,lv,Tn,x2,k2,v2,E2,iy,fy,A2,bv,_v,C2,T2,O2,Xa,za,fv,Mu,my,R2,Za=D(()=>{"use strict";$();qt();Eu();Eu();u2=["select","rpc","insert","update","upsert","delete","subscribe"],uv={rest:()=>Promise.resolve().then(()=>(nv(),ev)),local:()=>Promise.resolve().then(()=>(sv(),ov))},Cu=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ss=(()=>{if(typeof globalThis<"u"&&globalThis[Cu])return globalThis[Cu];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Cu,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Cu]}catch{}return t})(),Tu=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),ay=(()=>{if(typeof globalThis<"u"&&globalThis[Tu])return globalThis[Tu];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Tu,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Tu]}catch{}return t})(),d2=5e3,p2=t=>new Promise(e=>{if(Ss[t])return e(Ss[t]);let n=ay[t]||=[],r=!1,o=()=>{r||(r=!0,e(Ss[t]||null))};n.push(o),setTimeout(o,d2)}),h2=(t,e)=>{Ss[t]=e;let n=ay[t];if(n&&n.length){ay[t]=[];for(let r of n)r()}},g2=t=>typeof t=="string"&&!!(Ss[t]||uv[t]),m2=t=>{let e={};for(let n of u2)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},dv=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=Ss[r]||uv[r];if(!o&&(o=await p2(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},Ha=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0},ae=new Map,pv=new Map,Cn=new Map,On=0,Rn=new Map,oy=new WeakMap,uy=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},Ka=t=>ae.get(t)||null,Wa=(t,e,n,r=++On,o=!1)=>{let s={data:e,error:n,time:Date.now(),stale:o,seq:r};ae.set(t,s);let i=pv.get(t);if(i)for(let a of i)R(a)&&a(s);return s},Ru=(t,e)=>{let n=t?ae.get(t):null;return n&&!n.error&&n.seq>e?n:null},cy=(t,e)=>(Rn.get(t)||0)>e,Pu=t=>{if(t){ae.delete(t),Rn.set(t,++On);return}for(let[e]of ae)Rn.set(e,++On);for(let[e]of Cn)Rn.set(e,++On);ae.clear()},dy=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)}:v(t)?{staleTime:Ha(t),gcTime:3e5}:{staleTime:Ha(t.stale||t.staleTime)||6e4,gcTime:Ha(t.gc||t.gcTime||t.expire)||3e5,key:t.key},to=new Set,hv=t=>!!t.ref&&t.element.__ref===t.ref,y2=({config:t,element:e,context:n})=>{try{return hy(t,e,n)}catch{return null}},Ou=null,b2=()=>{Ou||(Ou=setInterval(()=>{let t=Date.now();for(let[e,n]of ae){let r=pv.get(e);!(r&&r.size>0)&&t-n.time>(n.gcTime||3e5)&&ae.delete(e)}for(let[e]of Rn)!ae.has(e)&&!Cn.has(e)&&Rn.delete(e);for(let e of to)hv(e)||to.delete(e)},3e4),Ou.unref&&Ou.unref())};b2();iv=3,sy=t=>Math.min(1e3*2**t,3e4),gv=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:iv,delay:sy}:typeof n=="number"?{count:n,delay:sy}:{count:n.count??iv,delay:R(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:sy}},mv=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=R(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=R(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ws={focus:new Set,online:new Set},av=!1,_2=()=>{if(av||typeof window>"u")return;av=!0;let t=()=>{for(let n of ws.focus)n()},e=()=>{for(let n of ws.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},cv=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(E(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},w2=["insert","update","upsert","delete"],yv=t=>w2.includes(t),py=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,Ga=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},Du=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},Iu=(t,e,n)=>{let r;if(!t)r=void 0;else if(R(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=R(s)?s(e,e.state):s}}return r},Ya=(t,e)=>R(t)?t(e,e.state):t,hy=(t,e,n)=>uy(t,Iu(t.params,e,n),Du(e,n),Ga(e,n),Ya(t.page,e),Ya(t.cursor,e)),Lu=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},gy=async(t,e)=>{if(R(t.select))return t.auth!==!1&&await Lu(t,e),t;if(t.__resolved)return t.auth!==!1&&await Lu(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=dv(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Lu(n,e),n):null},Se=(t,e,...n)=>{let r=R(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Me=(t,e,n,...r)=>{let o=t&&R(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},qa=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},$u=t=>t.responseType==="stream"||t.responseType==="response",S2=["Blob","File","ArrayBuffer","ReadableStream","Response"],ly=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||S2.includes(Object.prototype.toString.call(t).slice(8,-1))),lr=(t,e,n,r={})=>{if(!n&&ly(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!ly(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},Xe=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},lv=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];R(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),R(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},Tn=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=Du(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&Du(e,n)===i;if(t.enabled===!1||R(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||R(t.skip)&&t.skip(e,e.state))return;let l=await gy(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:S,as:b,limit:x,offset:_,order:w,headers:k,baseUrl:A,responseType:T,page:M,cursor:P,infinite:L,placeholderData:H,initialData:lt,select:Z,keepPreviousData:ft}=t,wt=v(Z)?Z:void 0;if(d&&R(e.getQuery)){let Q=e.getQuery(l.name||"paths");Q&&(wt=Q.select||Q.length&&Q.join(",")||wt)}let Pt=Iu(p,e,n),bt=Ya(M,e),$t=Ya(P,e),U=py(t),j=$u(t)||U?null:dy(g),et=gv(t,U||yv(u)),B=Ga(e,n),V=j?uy(t,Pt,i,B,bt,$t):null;if(!s.__fetchInitialized&&V&&(s.__fetchInitialized=!0,lt!==void 0)){let Q=R(lt)?lt():lt;Wa(V,Q,null)}if((u==="select"||u==="rpc")&&V&&j&&!r.refresh&&!r.force){let Q=Ka(V);if(Q&&!Q.error){let W=Date.now()-Q.time,Nt=Q.stale||W>(j.staleTime||0);L&&I(Q.data)&&!s.__pages&&(s.__pages=[Q.data],lv(s,t,Q.data));let Y=Q.data;if(R(Z)&&(Y=Z(Y,e,e.state)),h&&(Y=h(Y,e,e.state)),!c())return;if(!Nt){Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),lr(e,Y,b);return}lr(e,Y,b)}else if(H!==void 0){let W=R(H)?H(e,e.state):H;W!==void 0&&lr(e,W,b)}}let nt=V&&!r.force?Cn.get(V):null;if(nt&&!cy(V,oy.get(nt)||0)){let Q=W=>{Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:W,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",W),Me(t,e,"onFetchError",W)};try{let W=await Promise.race([nt,new Promise((Nt,Y)=>setTimeout(()=>Y("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(W?.error)Q(W.error);else if(W?.data!==void 0){let Nt=!L&&Ru(V,oy.get(nt)||0),Y=Nt?Nt.data:W.data;if(R(Z)&&(Y=Z(Y,e,e.state)),h&&(Y=h(Y,e,e.state)),!c())return;lr(e,Y,b),Se(e,"onFetchComplete",Y),Me(t,e,"onFetchComplete",Y)}}catch(W){if(!c())return;W!=="DEDUP_TIMEOUT"&&Q(W)}return}let Mt=!Ka(V)?.data;Xe(e,{isFetching:!0,isLoading:Mt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Se(e,"onFetchStart"),Me(t,e,"onFetchStart");let Lt=n?.analyze?.emitNetwork,Ki=Lt?typeof performance<"u"?performance.now():Date.now():0;Lt&&Lt({phase:"start",mode:"query",from:f,method:u,cacheKey:V,lang:B});let Gi=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let Y=await l.getSession();if(!c())return;if(y===!0&&!Y){let mt={message:"Not authenticated"};return Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:mt,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",mt),Me(t,e,"onFetchError",mt),{data:null,error:mt}}}let Q=l[u];if(!R(Q))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let W={from:f,select:wt,params:Pt,single:m,limit:x,offset:_,order:w,headers:k,baseUrl:A};T!==void 0&&(W.responseType=T);let Nt=Ga(e,n);if(Nt&&(W.headers={...W.headers,"Accept-Language":Nt}),bt!==void 0){if(E(bt))bt.offset!==void 0&&(W.offset=bt.offset),bt.limit!==void 0&&(W.limit=bt.limit),bt.cursor!==void 0&&(W.params={...W.params,cursor:bt.cursor});else if(typeof bt=="number"){let Y=t.pageSize||x||20;W.offset=(bt-1)*Y,W.limit=Y}}if($t!==void 0&&(W.params={...W.params,cursor:$t}),u==="insert"||u==="update"||u==="upsert"){let Y;if(S===!0||t.on==="submit")Y=qa(e);else if(I(S)){let mt=qa(e);Y={};for(let Fr of S)Y[Fr]=mt[Fr]}else e.state?.parse?Y=e.state.parse():E(e.state)&&(Y={...e.state});h&&(Y=h(Y,e,e.state)),W.data=Y}if(u==="rpc"){let Y=Pt;if(t.on==="submit"){let mt=qa(e);Y=t.transformParams?t.transformParams(mt,e,e.state):mt}W.params=Y,W.read=!U&&t.read!==!1}if(u==="subscribe"){if(R(s.__unsubscribe)){let mt=s.__unsubscribe;s.__unsubscribe=null;try{mt()}catch{}}let Y=l.subscribe({from:f,params:Pt,on:t.subscribeOn},(mt,Fr,U0)=>{c()&&(lr(e,mt,b),Se(e,"onFetchComplete",mt),Me(t,e,"onFetchComplete",mt))});return c()?(s.__unsubscribe=Y,{data:null,error:null,subscribed:!0}):(R(Y)&&Y(),{data:null,error:null,subscribed:!0})}return Q(W)},At=++On,Ke=mv(Gi,et);oy.set(Ke,At),V&&Cn.set(V,Ke);try{let Q=await Ke;if(U&&t.invalidates&&Q&&!Q.error&&!Q.subscribed&&_v(t.invalidates,f),!c()||Q?.subscribed)return;let{data:W,error:Nt}=Q||{};if(Nt){V&&!Ru(V,At)&&Wa(V,null,Nt,At),Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Nt,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",Nt),Me(t,e,"onFetchError",Nt),Lt&&Lt({phase:"error",mode:"query",from:f,method:u,cacheKey:V,error:Nt.message||Nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ki});return}if(W!==void 0){let Y=W;if((u==="select"||u==="rpc")&&V){let Fr=!L&&Ru(V,At);if(Fr)Y=Fr.data;else{let U0=Wa(V,W,null,At,cy(V,At));U0.gcTime=j?.gcTime||3e5}}let mt=Y;if(L&&I(W)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(W):s.__pages.push(W),mt=s.__pages.flat(),lv(s,t,W)),R(Z)&&(mt=Z(mt,e,e.state)),h&&(mt=h(mt,e,e.state)),!c())return;Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),(!ft||mt!==void 0)&&lr(e,mt,b),Se(e,"onFetchComplete",mt),Me(t,e,"onFetchComplete",mt),Lt&&Lt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ki})}}catch(Q){if(!c())return;Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",Q),Me(t,e,"onFetchError",Q),Lt&&Lt({phase:"error",mode:"query",from:f,method:u,cacheKey:V,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ki})}finally{V&&Cn.get(V)===Ke&&Cn.delete(V)}},x2=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Tn;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&k2(t,e,n,s)},k2=(t,e,n,r)=>{let o=e.__ref,s,i=K(()=>{let a;try{a=JSON.stringify([Iu(t.params,e,n)??null,R(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,R(t.skip)?!!t.skip(e,e.state):t.skip===!0,Ya(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,Promise.resolve().then(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},v2=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),_2();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:Ha(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Tn(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=$u(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=hy(t,e,n),f=Ka(l),u=dy(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&Tn(t,e,n,{force:!0})};ws.focus.add(c),r.__fetchCleanups.push(()=>ws.focus.delete(c))}if(a){let c=()=>Tn(t,e,n,{force:!0});ws.online.add(c),r.__fetchCleanups.push(()=>ws.online.delete(c))}},E2=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():E(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=R(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&lr(t,i,o),s},iy=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(lr(t,r,e.as),delete n.__optimisticSnapshot)},fy=t=>{if(!t)return()=>!0;if(v(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):R(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},A2=t=>{let e=[];for(let n of to){if(!hv(n)){to.delete(n);continue}let r=y2(n);r&&t(r)&&e.push(Tn(n.config,n.element,n.context,{refresh:!0}))}return Promise.allSettled(e).then(()=>{})},bv=t=>{Kk();for(let[e,n]of ae)t(e)&&(n.stale=!0,Rn.set(e,++On));for(let[e]of Cn)!ae.has(e)&&t(e)&&Rn.set(e,++On);return A2(t)},_v=(t,e)=>{let n=(I(t)?t:[t]).map(r=>r===!0||r==="*"?o=>o.startsWith(e+":"):r?fy(r):()=>!1);return bv(r=>n.some(o=>o(r)))},C2=t=>{for(let[e]of ae)t(e)&&Pu(e);for(let[e]of Cn)t(e)&&Rn.set(e,++On)},T2=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await gy(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:S,onSuccess:b,onError:x,onSettled:_}=t,w;if(c===!0||u==="submit")w=qa(e);else if(I(c)){let M=qa(e);w={};for(let P of c)w[P]=M[P]}else e.state?.parse?w=e.state.parse():E(e.state)&&(w={...e.state});l&&(w=l(w,e,e.state)),R(S)&&S(w,e,e.state);let k=y?E2(e,t,w):null;s.__fetching=!0,Xe(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Se(e,"onFetchStart"),Me(t,e,"onFetchStart");let A=n?.analyze?.emitNetwork,T=A?typeof performance<"u"?performance.now():Date.now():0;A&&A({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let wt=await o.getSession();if(d===!0&&!wt){k!==void 0&&iy(e,t);let Pt={message:"Not authenticated"};Se(e,"onFetchError",Pt),Me(t,e,"onFetchError",Pt);return}}let M=o[i];if(!R(M))return;let P={from:a,data:w,headers:p,baseUrl:g};h!==void 0&&(P.responseType=h),t.params&&(P.params=Iu(t.params,e,n));let L=Ga(e,n);L&&(P.headers={...P.headers,"Accept-Language":L});let H=gv(t,!0),lt=await mv(()=>M(P),H),{data:Z,error:ft}=lt||{};if(ft){k!==void 0&&iy(e,t),Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",ft),R(x)&&x(ft,w,e),R(_)&&_(null,ft,w,e),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:ft.message||String(ft),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Z!==void 0&&(f||!ly(Z))){let wt=f?{[f]:Z}:Z;e.state?.update&&e.state.update(wt,{preventFetch:!0})}Se(e,"onFetchComplete",Z),Me(t,e,"onFetchComplete",Z),R(b)&&b(Z,w,e),R(_)&&_(Z,null,w,e),A&&A({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),m&&_v(m,a)}catch(M){k!==void 0&&iy(e,t),Xe(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",M),Me(t,e,"onFetchError",M),R(x)&&x(M,w,e),R(_)&&_(null,M,w,e),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:M.message||String(M),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},O2=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);R(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])to.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},Xa=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=pt(t,e);if(!s)return;let i=I(s)?s.map(c=>cv(pt(c,e),e)).filter(Boolean):[cv(s,e)].filter(Boolean),a=e.__ref;if(a.__fetchMounted)for(let c of a.__fetchMounted)to.delete(c);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>O2(a)},a.__effects.push(a.__fetchDisposer));for(let c of i){let l=yv(c.method),f=l?T2:Tn,u=!l&&!py(c)&&c.method!=="subscribe";if(c.on==="create"?f(c,e,r):Promise.resolve().then(()=>{x2({...c,__runner:f},e,r)}),u&&c.on==="create"&&((c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&v2(c,e,r),!$u(c))){let d={element:e,ref:a,config:c,context:r};to.add(d),a.__fetchMounted.push(d)}}a.refetch=c=>{for(let l of i)Tn(l,e,r,{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};Tn(f,e,r,{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};Tn(f,e,r,{direction:"previous",force:!0})}},za={invalidateQueries:t=>bv(fy(t)),removeQueries:t=>{if(!t){Pu();return}C2(fy(t))},getQueryData:t=>Ka(t)?.data??void 0,setQueryData:(t,e)=>{let n=Ka(t),r=R(e)?e(n?.data):e;Wa(t,r,null)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=await gy(n,e);if(!r)return;let o=t.method||"select",s=Du(null,e),i=Ga(null,e),a=uy({...t,method:o},t.params,s,i),c=r[o];if(!R(c))return;let l={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};i&&(l.headers={...l.headers,"Accept-Language":i}),t.responseType!==void 0&&(l.responseType=t.responseType),o==="rpc"&&(l.read=!py(t)&&t.read!==!1);let f=++On,u=await c(l);if(u?.data!==void 0&&!u?.error&&!$u(t)&&!Ru(a,f)){let d=Wa(a,u.data,null,f,cy(a,f));d.gcTime=dy(t.cache)?.gcTime||3e5}return u},getCache:()=>ae,clear:()=>Pu(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of ae)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||Pu(n))}},fv=(t,e)=>E(t)?hy({method:"select",...t},e,e?.context):t,Mu={invalidateQueries(t){return za.invalidateQueries(t)},removeQueries(t){return za.removeQueries(t)},getQueryData(t){return za.getQueryData(fv(t,this))},setQueryData(t,e){return za.setQueryData(fv(t,this),e)}},my={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||Cn.clear(),Xa(e,t,t.state,t.context))}},R2=Xa});function Ja(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function by(t){let e=this,{parent:n}=e;if(R(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function _y(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(R(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 wy(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(R(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 Bu(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(E(r)&&o)Bu.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function Sv(t){let e=this;if(An("beforeRemove",e,t)===!1)return e;R(e.node.remove)?e.node.remove():ir()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=ca(e.parent.__ref.__children,e.key)),An("remove",e,t)}function Sy(t){return this[t]}function xy(t,e){let n=this;if(t)return n.update(t,e),n}function ky(t){return t?this.__ref&&this.__ref[t]:this.__ref}function vy(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function tc(){return this.getRef().path}function nc(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=wv();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=R(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=wv()),t?e?.[t]:e}function rc(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function oc(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function sc(t){let e=this.getRoot()?.context;return t?e[t]:e}function ic(t){let e=this.context;return t?e[t]:e}function Vu(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||rr.has(n)&&!pa.has(n)||e.push(n);return e}function Uu(t=[]){let e=this,n={},r=Vu.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[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=R(c&&c.parse)?c.parse():c;n[a]=R(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Dt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function Qa(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=Uu.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>q(a)?Qa.call(a,t,e):a):q(i)&&(r[s]=Qa.call(i,t,e))}return r}function ks(...t){if(fr!=="test"&&fr!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
- `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Ay(...t){(fr==="test"||fr==="development")&&console.log(...t)}function ac(...t){(fr==="test"||fr==="development")&&console.warn(...t)}function eo(...t){if(fr==="test"||fr==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ks.call(this),new Error(...t)}}function cc(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function lc(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function fc(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,ut(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function Cy(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!Gr(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{eo.call(this,s)}),o}catch(o){if(eo.call(this,o),n?.strictMode)throw o}}async function uc(){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 Fu();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Fu();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Fu().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await Fu();await o(r,t.context)}return r}function dc(t){let e=this,n=t||Va.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(yy(e,r),n===!0)return r;let o=F2[n];return o?o(r):r}function Ty(t,e){return!!(sr.has(t)||e?.context?.methods?.[t])}var fr,ju,ec,xs,wv,Ey,P2,Fu,yy,L2,xv,D2,I2,$2,M2,N2,F2,kv=D(()=>{"use strict";Qm();Wr();jt();un();Gf();cs();ty();fr="production";ju=null,ec=t=>{ju=t||null},xs=(t,e)=>{t&&e&&ju===t&&(ju=e)},wv=()=>ju||null;Ey=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});P2="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",Fu=()=>Promise.resolve().then(()=>(Za(),Nu)).catch(t=>{throw new Error(P2,{cause:t})});yy=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&L2(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&yy(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&yy(i,e)},L2=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},xv=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
- ${xv(i,e+1)}
21
+ return (${c}); })`)(e)}catch{try{e[a]=C.eval(`(${c})`)}catch{e[a]=c}}}for(let[i,a]of n)if(!r(i))try{e[i]=C.eval(`(${a})`)}catch{e[i]=a}return e},Gg=(t,e={verbose:!0})=>{try{return t?C.eval("("+t+")"):{}}catch(n){e.verbose&&console.warn(n)}},Yg=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),Hf=t=>{for(let e in t)return!1;return!0},Xg=t=>E(t)&&Hf(t),Zg=()=>Object.create(null),ka=(t,e,n={})=>{let r=n.exclude||[],o=n.preventUnderscore;for(let s in e)r.includes(s)||!o&&Kr(s)||s==="constructor"||s==="prototype"||e[s]!==void 0&&(t[s]=e[s]);return t},Zr=(t,e,n=[])=>{let r=n instanceof Set;for(let o in e)Kr(o)||o==="constructor"||o==="prototype"||(r?n.has(o):n.includes(o))||(t[o]=e[o]);return t},Jt=(t,e,n={},r=new WeakMap)=>{if(!q(t)||!q(e)||oe(t)||oe(e))return e;if(r.has(t))return r.get(t);r.set(t,t);let o=n.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!n.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&Kr(a)||a==="constructor"||a==="prototype")continue;let c=t[a],l=e[a];oe(l)?t[a]=l:q(c)&&q(l)?t[a]=Jt(c,l,n,r):l!==void 0&&(t[a]=l)}return t},Wf=(t,e,n=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(n.has(t)||n.has(e))return!0;n.add(t),n.add(e);let r=Object.keys(t),o=Object.keys(e);if(r.length!==o.length)return!1;for(let s=0;s<r.length;s++){let i=r[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!Wf(t[i],e[i],n))return!1}return!0},YI=new Set(["node","__ref"]),Qg=(t,e,n=YI)=>{if(t===e)return!0;if(!q(t)||!q(e)||oe(t)||oe(e))return t===e;let r=n instanceof Set?n:new Set(n),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)||r.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let l=a[c],f=i[c];if(oe(l)||oe(f)){if(l!==f)return!1}else if(q(l)&&q(f)){if(!s(f,l))return!1}else if(l!==f)return!1}return!0}return s(t,e)},Jg=(t,e)=>{if(e==null)return t;if(se(e)("string","number"))delete t[e];else if(I(e))for(let n=0;n<e.length;n++)delete t[e[n]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},qf=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=qf(t[n]));return e},tm=(t,e)=>{if(t.length===0)return e;let n={},r=n;for(let o=0;o<t.length;o++)o===t.length-1&&e?r[t[o]]=e:(r[t[o]]={},r=r[t[o]]);return n},em=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++){if(n[e[o]]===void 0)return;n=n[e[o]]}let r=e[e.length-1];n&&Object.prototype.hasOwnProperty.call(n,r)&&delete n[r]},nm=(t,e,n)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++)(!r[e[o]]||typeof r[e[o]]!="object")&&(r[e[o]]={}),r=r[e[o]];return r[e[e.length-1]]=n,t},rm=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let r=0;r<e.length;r++){if(n==null)return;n=n[e[r]]}return n},om=t=>{let n=[],r=0;for(let o=0;o<t.length;o++)if(n.length<2)n.push(t[o]);else if(t[o]===n[o%2]?r++:(n=[t[o-1],t[o]],r=1),r>=20)return(ak==="test"||ak==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",n),!0},sm=t=>{let e=new WeakSet;function n(r){if(r&&typeof r=="object"){if(e.has(r))return!0;e.add(r);for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n(r[o]))return console.log(r,"cycle at "+o),!0}return!1}return n(t)},im=(t,e)=>{let n=e instanceof Set?e:new Set(e),r={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!n.has(o)&&(r[o]=t[o]);return r}});var va,Ea,Aa,Kf=D(()=>{"use strict";dn();va=(function(){let t=0;function e(){return t++,t}return e})(),Ea=va,Aa=(t,e,n)=>(pt(n,t)||n||t.key||va()).toString()});var Ye,am,ir,Gf,cm,lm,fm,ar,um,Qr,tt,Yf=D(()=>{"use strict";Ye="production",am=Ye,ir=(t=Ye)=>t==="production",Gf=(t=Ye)=>t==="testing"||t==="test",cm=Gf,lm=(t=Ye)=>t==="staging",fm=(t=Ye)=>t==="local",ar=(t=Ye)=>t==="development"||t==="dev"||t==="local",um=(t,e=Ye)=>e[t],Qr=(t=Ye)=>!ir(t),tt=t=>{let e=t&&"env"in t?t.env:typeof process<"u"&&process.env?"production":void 0;if(e&&e!=="production")return!0;let n=t&&"hostname"in t?t.hostname:typeof location<"u"?location.hostname:void 0;return typeof n=="string"&&n?n==="localhost"||n==="127.0.0.1"||n.endsWith(".localhost"):!1}});function Ca(t,e,n){let r;return function(){let o=this,s=arguments,i=function(){r=null,n||t.apply(o,s)},a=n&&!r;clearTimeout(r),r=setTimeout(i,e),a&&t.apply(o,s)}}function hm(t,e=window){let n=function(){return t.apply(e,arguments)};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}var dm,pm,XI,ds,ps,hs,Ct,cr=D(()=>{"use strict";dm=(t,e,n=300)=>{let r;return(...o)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(t,o)},n)}},pm=t=>{let e={};return(...n)=>{let r=n[0];if(r in e)return e[r];{let o=t(r);return e[r]=o,o}}},XI=/^\s*(?:async\s+)?(?:function\b|\([^)]*\)\s*=>|[a-zA-Z_$][\w$]*\s*=>)/,ds=t=>XI.test(t),ps=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let n of e)if(n.resolveHandler)return!0;return!1},hs=(t,e)=>{if(typeof t=="function")return t;let n=e?.context?.plugins;if(!n)return t;for(let r of n)if(r.resolveHandler){let o=r.resolveHandler(t,e);if(typeof o=="function")return o}return t},Ct=(t,e,...n)=>{let r=e?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[t]=="function"&&(s[t](e,...n),o=!0);return o}});var gm,Ek=D(()=>{"use strict";jt();dn();gm=(t,e)=>{let{__ref:n}=t,r=t.if;if(R(r)){let o;try{o=r(t,t.state,t.context)}catch(s){typeof console<"u"&&console.warn("[DOMQL] if condition error:",s),delete n.__if;return}o?n.__if=!0:delete n.__if}else r!=null&&typeof r=="object"?pt(r,t)?n.__if=!0:delete n.__if:n.__if=!0}});var mm,ym,Ak=D(()=>{"use strict";mm=(t,...e)=>{t&&e.map(n=>console.log(n))},ym=(t,e,...n)=>{t&&(console.group(e),n.map(r=>console.log(r)),console.groupEnd(e))}});function xm(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 km(t,e){if(e!=null)try{if(!window.localStorage)return;let n=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,n)}catch{}}var bm,_m,wm,Sm,Ck=D(()=>{"use strict";jt();sa();bm=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),_m=(t,e,n=365)=>{if(Ft(dt)||Ft(dt.cookie))return;let r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);let o=`expires=${r.toUTCString()}`;dt.cookie=`${t}=${e};${o};path=/`},wm=t=>{if(Ft(dt)||Ft(dt.cookie))return;let e=`${t}=`,r=decodeURIComponent(dt.cookie).split(";");for(let o=0;o<r.length;o++){let s=r[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Sm=t=>{Ft(dt)||Ft(dt.cookie)||(dt.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var gs,Tk,vm,Em=D(()=>{"use strict";gs={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"])},Tk=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"]),vm=t=>gs.body.has(t)});var Am,Ok,ms,$e,ys,Ra,pn,Cm,Xf,Pa,Tm,La,Zf,Qf,Da,Jf,bs,ZI,hn,Rk,Ta,Ia,Om,Oa,Rm,Pm,tu,eu,nu,ru,ou,su,Pk,iu=D(()=>{"use strict";cs();Lm();dn();jt();Am="production",Ok=t=>t.sourcemap!==!1&&Am!=="production",ms=t=>{if(!t)return[];let e=[],n=t.extends;n&&(I(n)?e.push(...n):e.push(n));let r=t.extend;return r&&(I(r)?e.push(...r):e.push(r)),e},$e=t=>{if(!I(t))return t;let e=[];for(let n=t.length-1;n>=0;n--){let r=t[n];e.push(I(r)?$e(r):r)}return e},ys=t=>{if(t.includes("+"))return t.split("+").filter(gn);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!gn(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Ra=(t,e,n)=>{let r=[],o=ys(n);o&&(r=[...o]);let s=$e(ms(t));return s.length&&(r=[...r,...s]),r},pn=(t,e)=>{let{__ref:n}=e,{__extends:r}=n;if(!t)return r;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 r.includes(t)||(r=Array.isArray(t)?[...r,...t]:[...r,t],n.__extends=r),r},Cm=(t,e)=>{if(!t)return e;let{extends:n}=e,r=I(n)?n:[n],o=I(t)?t:[t];return{...e,extends:is(o,r)}},Xf=()=>Math.random().toString(36).substring(2),Pa={},Tm={},La=t=>Pa[t.__hash],Zf=(t,e)=>{let n=Xf();return v(t)||(t.__hash=n),n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(Pa[n]=e),e},Qf=(t,e)=>t.__hash?e.concat(La(t)):Zf(t,e),Da=(t,e,n,r=new Set,o,s)=>{for(let i of t)I(i)?Da(i,e,n,r,o,s):bs(i,e,n,r,o,void 0,s);return e},Jf=(t,e,n,r=new Set,o,s,i)=>{let a=ms(t),c={...t};delete c.extends,delete c.extend;let l=!1;for(let f in c){l=!0;break}return l&&(e.push(c),o&&o.push(s)),a.length&&bs($e(a),e,n,r,o,s,i),e},bs=(t,e,n,r=new Set,o,s,i)=>{if(!t||r.has(t))return e;if(I(t))return Da(t,e,n,r,o,i);let a=s;return v(t)?(a=t,t=Ia(t,n)):i&&E(t)&&i.has(t)&&(a=i.get(t)),r.has(t)||(r.add(t),t?.extends||t?.extend?Jf(t,e,n,r,o,a,i):t&&(e.push(t),o&&o.push(a))),e},ZI=new Set(["parent","node","__ref","__proto__","extends","extend","childExtends","childExtendsRecursive"]),hn=(t,e,n,r,o)=>{e=ut(e);for(let s in e){if(ZI.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,n&&r?E(a)&&!I(a)?(n[s]=n[s]||{},Rk(n[s],a,r)):n[s]=r:n&&o?.[s]&&(n[s]=o[s]);else if(E(i)&&E(a)){let c=n?n[s]=n[s]||{}:void 0,l=o?.[s];gn(s)?t[s]=hn(i,a,c,r,l):hn(i,a,c,r,l)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(I(i)&&I(a))t[s]=i.concat(a);else if(I(i)&&E(a)){let c=hn({},i);t[s]=hn(c,a)}}}}return t},Rk=(t,e,n,r)=>{if(r||(r=new WeakSet),!r.has(e)){r.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];E(s)&&!I(s)?(t[o]=t[o]||{},Rk(t[o],s,n,r)):t[o]=n}}},Ta=(t,e,n)=>t.reduce((r,o,s)=>{let i=ut(o),a=n?n[s]:void 0;return hn(r,i,e,a)},{}),Ia=(t,e,n={},r)=>{let o=e?.components||n.components,s=e?.pages||n.pages;if(v(t)){let i=o&&(o[t+"."+r]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;n.verbose&&(Am==="test"||Am==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},Om=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Oa=(t,e,n,r)=>{if(!t)return[];if(t.__hash)return La(t)||[];let s=bs(t,[],e,new Set,n,void 0,r);return n?s:Qf(t,s)},Rm=(t,e)=>{if(!t)return e;let n=I(t)?t:[t];return is(n,e)},Pm=t=>{let e=[];function n(r){for(let o in r)Object.prototype.hasOwnProperty.call(r,o)&&(gn(o)&&e.push(o),o==="extends"&&(typeof r[o]=="string"?e.push(r[o]):Array.isArray(r[o])&&(e=e.concat(r[o]))),typeof r[o]=="object"&&r[o]!==null&&n(r[o]))}return n(t),e},tu=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=ms(t);if(i.length){let a=$e(i),[c,...l]=a,f=typeof c=="string"&&s&&o?.components?`${c}.${s}`:null;f&&o.components[f]?pn([f,...l],t):pn(a,t)}return eu(t,e,n),nu(t,e,n),ru(t,e,n),t.component&&pn($e(pt(t.component,t)),t),o.defaultExtends&&pn($e(o.defaultExtends),t),as(r.__extends)},eu=(t,e,n={})=>{let{__ref:r}=t;return n.ignoreChildExtends||t.ignoreChildExtends||e.childProps?.extends&&pn($e(e.childProps.extends),t),r.__extends},nu=(t,e,n={})=>{let{__ref:r}=t,o=n.ignoreChildExtends||t.ignoreChildExtends,s=e.childExtends;return!o&&s&&pn($e(s),t),r.__extends},ru=(t,e,n={})=>{let{__ref:r}=t,o=e.childExtendsRecursive,s=n.ignoreChildExtendsRecursive||t.ignoreChildExtendsRecursive,i=t.key==="__text";return o&&!i&&!s&&pn($e(o),t),r.__extends},ou=(t,e,n={})=>{let{__ref:r}=t,o=t.context||e.context,s=t.variant,i=Ok(n),a=i?[...r.__extends]:null,c=as(r.__extends.map((l,f)=>Ia(l,o,n,f===0&&s)));if(i){let l=new WeakMap;for(let d=0;d<c.length;d++){let p=c[d],g=a[d];p&&E(p)&&v(g)&&l.set(p,g)}let f=[],u=Oa(c,o,f,l);r.__extendsStack=u,r.__extendsNames=f}else{let l=Oa(c,o);r.__extendsStack=l}return r.__extendsStack},su=(t,e,n={})=>{let{__ref:r}=t,{__extendsStack:o}=r;if(Ok(n)){let s={},i=r.__extendsNames||[],a=Ta(o,s,i),c={};hn(t,a,c,void 0,s),r.__sourcemap=c}else{let s=Ta(o);hn(t,s)}return t},Pk=(t,e,n={})=>(tu(t,e,n),ou(t,e,n),su(t,e,n),t)});function Dm(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function Im(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function $m(t,e,n){let{context:r}=e||{},[o]=ys(n),s=n||o;return r?.components?.[s]||r?.pages?.[s]}var gn,Lm=D(()=>{"use strict";iu();jt();gn=t=>{if(!v(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function Lk(t,e){let{props:n,on:r}=e,o=Ur(t.split("on")[1]),s=r[o],i=n[t];R(s)?r[o]=(...a)=>{if(s(...a)!==!1&&R(i))return i(...a)}:r[o]=i}var Dk=D(()=>{"use strict";ha();jt()});function au(t,e={}){let n=e.cachedKeys||[];for(let r in t){let o=t[r];if(r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r[2]===r[2].toUpperCase()&&(R(o)||o!=null&&ps(this.context))){let g=Ur(r.slice(2));t.on&&(t.on[g]=o),delete t[r];continue}if(r==="childProps"){t.props[r]=o,delete t[r],n.push(r);continue}let a=this.define?.[r],c=this.context?.define?.[r],l=E(a)||R(a),f=E(c)||R(c);if(l||f)continue;let u=r.charAt(0);if($k.has(u)){t.props[r]=o,delete t[r],n.push(r);continue}let d=Mm.test(r)||Ik.test(r)||JI(o),p=rr.has(r);!d&&!p&&(r in t.props||(t.props[r]=o),delete t[r],n.push(r))}return t}function cu(t=this,e){let n=e.cachedKeys||[];for(let r in t.props){let o=t.props[r],s=r.length>2&&r.charCodeAt(0)===111&&r.charCodeAt(1)===110,i=R(o)||o!=null&&ps(this.context);if(s&&i){Lk(r,t),delete t.props[r];continue}if(n.includes(r)||r==="childProps")continue;let a=r.charAt(0);if($k.has(a))continue;let c=this.define?.[r],l=this.context?.define?.[r],f=E(c)||R(c),u=E(l)||R(l),d=Mm.test(r)||Ik.test(r),p=rr.has(r);(d||p||f||u)&&(t[r]===void 0||o===null)&&(t[r]=o,t.props&&delete t.props[r])}return t}function lu(t=this){let e=[];return au.call(this,t,{cachedKeys:e}),cu.call(this,t,{cachedKeys:e}),t}function Nm(t={}){return t.on||(t.on={}),t.props||(t.props={}),lu.call(this,t)}function jm(t,e){this.__element.update({props:t},e)}function ja(t){let e={update:jm.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Mm,Ik,$k,QI,JI,Na,$a,Fm,Fa,Ba,Va,fu,Ma,Bm,Vm,Um=D(()=>{"use strict";Wr();Dk();dn();jt();ha();cr();Mm=/^[A-Z]/,Ik=/^\d+$/,$k=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),QI=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),JI=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(QI.has(e)||Mm.test(e))return!0;return!1},Na=(t,e,n)=>{let{props:r,__ref:o}=t;if(o.__propsStack=[],r)o.__initialProps=r;else return{};return q(r)?{...r}:(o.__propsStack.push(r),{})};$a=t=>se(t)("string","number")?{inheritedString:t}:t,Fm=(t,e)=>!t||!e.length?!1:e.includes(t),Fa=(t,e)=>{let{__ref:n}=t,r=n.__propsStack||[],o=e.props;if(!o)return r;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=$a(i);r.unshift(c)}if(s){let c=$a(s);r.unshift(c)}return r};Ba=t=>{let e=new Set;return t.filter(n=>!n||or.has(n)||e.has(n)?!1:(e.add(n),!0))},Va=(t,e,n)=>(e.props=t.reduce((r,o)=>{if(or.has(o))return r;for(;R(o);)o=pt(o,e);return at(r,ut(o,{exclude:or}))},{}),ja(e),e.props),fu=(t,e)=>{let{props:n,__ref:r}=t,o=r.__propsStack||[];if(e?.props&&(o=[...Fa(t,e)]),E(n)?o.push(n):n==="inherit"&&e?.props?o.push(e.props):n&&o.push(n),I(r.__extendsStack))for(let s=0;s<r.__extendsStack.length;s++){let i=r.__extendsStack[s];i.props&&i.props!==n&&o.push(i.props)}return r.__propsStack=Ba(o),r.__propsStack},Ma=(t,e)=>{let{__ref:n}=t,r=fu(t,e);r.length?Va(r,t):(n.__propsStack=[],t.props={})},Bm=function(t,e,n){let{__ref:r}=t;if(r.__if)Ma(t,e);else try{Ma(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",r.path?.join("."),o),t.props={},r.__propsStack=[]}return ja(t),t},Vm=(t,e,n)=>{let{__ref:r}=e,s=[...r.__propsStack||[]],i=Fa(e,n);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),r.__propsStack=Ba(s),r.__propsStack.length&&Va(r.__propsStack,e),e}});var Mk,uu,du,pu,hu,zm,gu,mu,yu,Hm,Nk=D(()=>{"use strict";iu();Kf();aa();Um();Em();jt();Mk="production",uu=(t,e,n)=>{let r=e.childExtends&&e.childExtends.tag,o=e.childProps&&e.childProps.tag,s=gs.body.has(n)&&n;return{text:t,tag:r||o||s||"string"}},du=(t,e,n)=>{if(t===void 0)return(Mk==="test"||Mk==="development")&&console.warn(n,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:se(t)("string","number")?uu(t,e,n):R(t)?{props:t}:t},pu=(t,e)=>{let n={};return n.origin=t,n.parent=e,n},hu=(t,e,n,r,o)=>{if(!e)return o;if(En(e)){let s={key:":root",node:e};return o[`${n}_parent`]=s,s}return e},zm=(t,e)=>{let{__ref:n}=t,{__ref:r}=e,o=e&&e.key===":root";n?.root||(n.root=o?t:r?.root)},gu=(t,e,n)=>{let{__ref:r}=e;return r||(r=e.ref={}),r.path||(r.path=[]),r.path.concat(n)},mu=(t,e,n,r,o)=>(r.context&&!o.context&&!t.context&&(o.context=r.context),r.context||e.context||o.context||t.context),yu=(t,e,n)=>{let r=pu(t,e);return t.__ref=r,r.__defineCache||(r.__defineCache={}),r.__exec||(r.__exec={}),r.__execProps||(r.__execProps={}),r.__class||(r.__class={}),r.__classNames||(r.__classNames={}),r.__attr||(r.__attr={}),r.__changes||(r.__changes=[]),r.__children||(r.__children=[]),r.__extends=Ra(t,e,n),r.path=gu(t,e,n),r},Hm=(t,e,n,r,o)=>{let i=t?.__hash?{extends:[t]}:du(t,e,n);if(!i)return;let a=hu(i,e,n,r,o),c=Aa(i,a,n);yu(i,a,c);let l=Na(i,a,c),f=mu(i,a,c,r,o),u=i.on||{};return{...i,key:c,props:l,parent:a,context:f,on:u}}});var Wm,bu,_u,wu,Su,qm,xu,Km,Gm,Ym,Xm,Fk,_s,Jr,jk,Bk,Vk,Ua,mn,Uk=D(()=>{"use strict";cs();Wr();dn();jt();Wm=t=>{let{state:e,props:n,__ref:r}=t,o=n?.state||e;return se(o)("string","number")?(r.__state=o,{value:o}):o===!0?(r.__state=t.key,{}):o?(r.__hasRootState=!0,o):!1},bu=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},_u=(t,e)=>{if(!t.includes("../"))return;let r=t.split("../").length-1;for(let o=0;o<r;o++){if(!e.parent)return null;e=e.parent}return e},wu=(t,e,n={})=>{let r=v(t)?t.split("/"):[t],o=r.length-1;for(let s=0;s<o;s++){let i=r[s],a=r[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 n.returnParent?e:e[t]},Su=(t,e,n={})=>{let o=t.__ref.__state;if(!xu(t))return;let s=bu(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=_u(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return wu(o,i,n)},qm=(t,e)=>{let n=t.__ref,r=Su(t,e);if(r===void 0)return t.state;if(se(r)("object","array"))return ut(r);if(se(r)("string","number","boolean"))return n.__stateType=typeof r,{value:r};console.warn(n.__state,"is not present. Replacing with",{})},xu=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&se(n)("number","string","boolean"))},Km=function(t){return q(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},Gm=(t,e)=>{if(!t)return e||{};let n=t.split("/"),r={},o=r,s=n.length-1;for(let i=0;i<=s;i++)o[n[i]]=i===s?e||{}:{},o=o[n[i]];return r},Ym=(t,e)=>{let{__element:n}=e,r=n?.state;if(!r)return;let o=ut(r,zr),s={[t.key]:o},i=E(r.__depends)?{...r.__depends,...s}:s;return Array.isArray(r)?ua(r,{...Object.getPrototypeOf(r),__depends:i}):Object.setPrototypeOf(r,{...Object.getPrototypeOf(r),__depends:i}),o},Xm=(t,e,n={})=>{let{overwrite:r}=n;if(!r)return;let o=r==="shallow";if(r==="merge"){at(t,e,zr);return}(o?Zr:Jt)(t,e,zr)},Fk="__polyglotSeededKeys",_s=t=>{if(!E(t))return new Set;let e=t[Fk];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,Fk,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Jr=(t,e,n)=>_s(t).has(e)?!0:!E(n)||n[e]===void 0,jk="__polyglotSeededValues",Bk=t=>{if(!E(t))return new Map;let e=t[jk];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,jk,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Vk=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},Ua=(t,e,n)=>{if(!_s(t).has(e))return!1;let r=Bk(t);if(!r.has(e))return!0;let o=E(n)||Array.isArray(n)?n[e]:void 0,s=Vk(o);return s!==null&&s===r.get(e)},mn=(t,e,...n)=>(_s(t).add(e),n.length&&Bk(t).set(e,Vk(n[0])),e)});var t2,Zm,zk=D(()=>{"use strict";t2=(t,e)=>{let n=e;for(;n;){if(n===t)return!0;n=Object.getPrototypeOf(n)}return!1},Zm=(t,e)=>{let{__ref:n}=t,r=t.context||e.context||n.root?.context;r&&!r.globalScope&&(r.globalScope={});let o=e.scope||n.root?.scope,s=r?.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&&!t2(t.scope,i)&&Object.setPrototypeOf(t.scope,i)}}});var Hk,ku,An,vu,Qm,Jm=D(()=>{"use strict";jt();cr();Hk=(t,e)=>{let n="on"+t.charAt(0).toUpperCase()+t.slice(1);return e[n]},ku=(t,e,n,r,o)=>{if(t=hs(t,e),!!R(t))try{let s=t.call(e,e,n||e.state,r||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}},An=(t,e,n)=>{if(!e)throw new Error("Element is required");Ct(t,e,n);let r=Hk(t,e);if(r){let{state:o,context:s}=e;return ku(r,e,o,s,n)}},vu=(t,e,n,r,o,s)=>{if(t=hs(t,n),!!R(t))try{let i=t.call(n,e,n,r||n.state,o||n.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{n.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(n.error=i,console.error("[DOMQL] Event update error:",i),n.context?.strictMode)throw i}},Qm=(t,e,n,r)=>{Ct(t,n,e,r);let o=Hk(t,n);if(o){let{state:s,context:i}=n;return vu(o,e,n,s,i,r)}}});var ty,za,ey=D(()=>{"use strict";ty={},za={}});var Eu,Ha,Wk,ny,qk,Kk,Gk,Yk,Xk,Au=D(()=>{"use strict";Eu="@symbo.ls/fetch:EARLY",Ha=(t,e)=>{let n=new URL(t);return n.searchParams.sort(),n.toString()+" "+(e||"")},Wk=t=>{if(t==null)return!0;if(typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);if(e!==Object.prototype&&e!==null)return!1;for(let n in t){let r=t[n];if(!(r===void 0||typeof r=="string"||typeof r=="boolean")&&!(typeof r=="number"&&isFinite(r)))return!1}return!0},ny=()=>Symbol.for(Eu),qk=(t,e)=>{if(!t||typeof t!="object"||!e||typeof e!="object")return t;let n={...t};return n.query===void 0&&e.query!==void 0&&(n.query=e.query),n.rpc===void 0&&e.rpc!==void 0&&(n.rpc=e.rpc),n},Kk=(t,e)=>{let n=ny();if(!t||typeof t!="object"){let i=globalThis[n];return i&&i.seeded?{carried:{},rpc:!1,maxAge:3e4}:null}let r=globalThis[n];r||(r={time:Date.now(),entries:{}},globalThis[n]=r),r.closed=!0;let o={};for(let i in t.query||{})for(let a in e||{})a.toLowerCase()===i.toLowerCase()&&(o[a.toLowerCase()]=e[a]);let s=typeof t.maxAge=="number"&&t.maxAge>=0?t.maxAge:3e4;return{carried:o,rpc:t.rpc==="get",maxAge:s}},Gk=(t,e=3e4)=>{let n=globalThis[ny()],r=n&&n.entries&&n.entries[t];return!r||(delete n.entries[t],!(Date.now()-r.time<=e))?null:Promise.resolve(r.answer).then(o=>o&&o.ok&&!o.bodyUsed?o:null,()=>null)},Yk=()=>{let t=globalThis[ny()];t&&t.entries&&(t.entries={})},Xk=t=>{let e=(Array.isArray(t)?t:[]).filter(r=>r&&typeof r.url=="string"&&typeof r.body=="string");if(!e.length)return"";let n=JSON.stringify(e.map(r=>({k:Ha(r.url,r.lang||""),s:r.status||200,t:r.type||"application/json",b:r.body}))).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");return"<script>(function(){try{var k=Symbol.for("+JSON.stringify(Eu)+"),r=globalThis[k]||(globalThis[k]={time:Date.now(),entries:{}}),t=Date.now(),l="+n+';r.seeded=true;r.entries=r.entries||{};for(var i=0;i<l.length;i++){var e=l[i];r.entries[e.k]={time:t,answer:Promise.resolve(new Response(e.b,{status:e.s,headers:{"content-type":e.t}}))}}}catch(e){}})()<\/script>'}});var rv={};F(rv,{buildUrl:()=>oy,restAdapter:()=>nv,selectQuery:()=>tv,setup:()=>u2});var oy,tv,ev,Zk,e2,n2,r2,Qk,Xe,o2,s2,i2,ry,a2,c2,l2,f2,Jk,u2,nv,ov=D(()=>{"use strict";Au();oy=(t,e,n)=>{let r=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${r}${e}`);if(n)for(let s in n){let i=n[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},tv=({params:t,select:e,limit:n,offset:r,order:o,single:s})=>{let i={...t};return e&&(i.select=e),n&&(i.limit=n),r&&(i.offset=r),s&&(i.single=!0),o&&(typeof o=="string"?i.order=o:Array.isArray(o)?i.order=o.map(a=>`${a.by}:${a.asc===!1?"desc":"asc"}`).join(","):o.by&&(i.order=`${o.by}:${o.asc===!1?"desc":"asc"}`)),i},ev=t=>Object.prototype.toString.call(t).slice(8,-1),Zk=["auto","json","text","blob","arrayBuffer","stream","response"],e2={json:async t=>{let e=await t.text();return e?JSON.parse(e):null},text:t=>t.text(),blob:t=>t.blob(),arrayBuffer:t=>t.arrayBuffer(),stream:t=>t.body,response:t=>t},n2=t=>{let e=t.headers.get("content-type");return e&&e.includes("json")?t.json():t.text()},r2=async t=>{let e=await t.text(),n=t.headers.get("content-type");if(e&&n&&n.includes("json"))try{return JSON.parse(e)}catch{}return e},Qk=(t,e)=>t?.message||t?.error||e.statusText||`HTTP ${e.status}`,Xe=async(t,e,n,r)=>{let o=n??"auto";if(!Zk.includes(o))throw new TypeError(`@symbo.ls/fetch rest: unknown responseType "${o}" \u2014 use one of: ${Zk.join(", ")}`);let s=r&&await r||await globalThis.fetch(t,e);if(o==="auto"){let i=await n2(s);return{data:i,error:s.ok?null:Qk(i,s),status:s.status}}if(!s.ok){let i=await r2(o==="response"?s.clone():s);return{data:o==="response"?s:i,error:Qk(i,s),status:s.status}}return{data:await e2[o](s),error:null,status:s.status}},o2=["FormData","Blob","File","URLSearchParams","ReadableStream","ArrayBuffer"],s2=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||o2.includes(ev(t))),i2=t=>Array.isArray(t)?t:typeof t.entries=="function"?t.entries():Object.entries(t),ry=(...t)=>{let e={},n=new Map;for(let r of t)if(r)for(let[o,s]of i2(r)){let i=o.toLowerCase();if(n.has(i)&&delete e[n.get(i)],s==null){n.delete(i);continue}n.set(i,o),e[o]=s}return e},a2={"Content-Type":"application/json"},c2={"Content-Type":void 0},l2=t=>{if(!t||typeof t!="object")return null;let e={};for(let n in t.query||{})e[n.toLowerCase()]=t.query[n];return{params:e,rpc:t.rpc==="get"}},f2="content-type",Jk=(t,e)=>{let n=Object.keys(e);if(!n.length)return t;let r=new URL(t);for(let o of n)r.searchParams.set(o,e[o]);return r.toString()},u2=async({url:t,headers:e,auth:n,fetchOptions:r,early:o,reads:s})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return nv(t,e,n,r,o,s)},nv=(t,e={},n,r={},o,s)=>{let i=n?.token||null,a=Kk(qk(o,s),e),c=l2(s),l=y=>{if(!c)return null;let S={},b={},x={};for(let _ in y){let w=_.toLowerCase();if(w==="authorization")return null;if(w===f2)continue;b[_]=y[_];let k=c.params[w];k?x[k]=y[_]:S[_]=y[_]}return{headers:S,adoptHeaders:b,query:x}},f=(y,S)=>{if(!a)return null;let b="";for(let x in S){let _=x.toLowerCase();if(_==="accept-language")b=String(S[x]);else if(a.carried[_]!==S[x])return null}try{return Gk(Ha(y(),b),a.maxAge)}catch{return null}},u=()=>i?{Authorization:`Bearer ${i}`}:null,d=y=>ry(e,u(),y),p=y=>({...r,...y}),g=(y,S,b)=>{if(!s2(S))return p({method:y,headers:ry(e,u(),a2,b),body:JSON.stringify(S)});let x={method:y,headers:ry(e,u(),c2,b),body:S};return ev(S)==="ReadableStream"&&(x.duplex="half"),p(x)},h=(y,S)=>{let b=S||t;if(y&&(y.startsWith("http://")||y.startsWith("https://")))return y;let x=y&&!y.startsWith("/")?"/":"";return`${b}${x}${y||""}`};return{name:"rest",setToken:y=>{i=y},getSession:async()=>{if(!n?.sessionUrl)return i?{token:i}:null;let y=await Xe(h(n.sessionUrl,n.baseUrl),p({headers:d()}));return y.error?null:y.data},signIn:async y=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let S=await Xe(h(n.signInUrl,n.baseUrl),g("POST",y));return S.data?.token&&(i=S.data.token),S},signOut:async()=>(n?.signOutUrl&&await Xe(h(n.signOutUrl,n.baseUrl),p({method:"POST",headers:d()})),i=null,{error:null}),select:({from:y,params:S,select:b,limit:x,offset:_,order:w,single:k,headers:A,baseUrl:T,responseType:M})=>{let P=oy(T||t,y||"",tv({params:S,select:b,limit:x,offset:_,order:w,single:k})),L=d(A),H=l(L);if(H){let Z=p({headers:H.headers});return Xe(Jk(P,H.query),Z,M,f(()=>P,H.adoptHeaders))}let lt=p({headers:L});return Xe(P,lt,M,f(()=>P,lt.headers))},rpc:async({from:y,params:S,headers:b,baseUrl:x,responseType:_,read:w})=>{let k=Wk(S),A=()=>oy(x||t,`rpc/${y}`,S),T=Z=>Xe(h(`rpc/${y}`,x),g("POST",S,b),_,Z),M=d(b),P=w===!0&&c&&c.rpc&&k?l(M):null,L=null;if(P)try{L=A()}catch{L=null}if(!L)return T(a&&a.rpc&&k?f(A,M):null);let H=p({method:"GET",headers:P.headers}),lt=await Xe(Jk(L,P.query),H,_,f(()=>L,P.adoptHeaders));return lt.status===405?T(null):lt},insert:({from:y,data:S,headers:b,baseUrl:x,responseType:_})=>Xe(h(y,x),g("POST",S,b),_),update:({from:y,data:S,params:b,method:x,headers:_,baseUrl:w,responseType:k})=>{let A=b?.id||S?.id,T=A?`${y}/${A}`:y;return Xe(h(T,w),g(x||"PATCH",S,_),k)},upsert:({from:y,data:S,params:b,method:x,headers:_,baseUrl:w,responseType:k})=>{let A=b?.id||S?.id,T=A?`${y}/${A}`:y;return Xe(h(T,w),g(x||"PUT",S,_),k)},delete:({from:y,params:S,headers:b,baseUrl:x,responseType:_})=>{let w=S?.id,k=w?`${y}/${w}`:y;return Xe(h(k,x),p({method:"DELETE",headers:d(b)}),_)}}}});var iv={};F(iv,{localAdapter:()=>sv,setup:()=>p2});var Cu,d2,p2,sv,av=D(()=>{"use strict";Cu=(t,e)=>{if(!e)return!0;for(let n in e){let r=e[n];if(r===null){if(t[n]!==null&&t[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(t[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(t[n]>r[o])||o==="gte"&&!(t[n]>=r[o])||o==="lt"&&!(t[n]<r[o])||o==="lte"&&!(t[n]<=r[o])||o==="neq"&&t[n]===r[o]||o==="like"&&!String(t[n]).includes(r[o]))return!1}else if(t[n]!==r)return!1}return!0},d2=(t,{order:e,limit:n,offset:r,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 r&&(s=s.slice(r)),n&&(s=s.slice(0,n)),o?{data:s[0]||null,error:null}:{data:s,error:null}},p2=async({data:t,...e})=>sv(t,e),sv=(t={},e={})=>{let n={},r={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!n[f])if(o)try{let u=localStorage.getItem(s+f);n[f]=u?JSON.parse(u):t[f]||[]}catch{n[f]=t[f]||[]}else n[f]=t[f]||[];return n[f]},a=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(n[f]))}catch{}},c=(f,u,d,p)=>{let g=r[f];if(g)for(let h of g)h(d,p,{event:u,table:f})},l=Date.now();return{name:"local",store:n,select:async({from:f,params:u,...d})=>{let g=i(f).filter(h=>Cu(h,u));return d2(g,d)},insert:async({from:f,data:u})=>{let d=i(f),g=(Array.isArray(u)?u:[u]).map(h=>{let m={id:h.id||++l,...h};return d.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:d})=>{let p=i(f),g=[];for(let h=0;h<p.length;h++)if(Cu(p[h],d)){let m={...p[h]};Object.assign(p[h],u),g.push(p[h]),c(f,"UPDATE",p[h],m)}return a(f),{data:g,error:null}},upsert:async({from:f,data:u,params:d})=>{let p=i(f),g=Array.isArray(u)?u:[u],h=[];for(let m of g){let y=d||(m.id!==void 0?{id:m.id}:null),S=y?p.findIndex(b=>Cu(b,y)):-1;if(S>-1){let b={...p[S]};Object.assign(p[S],m),h.push(p[S]),c(f,"UPDATE",p[S],b)}else{let b={id:m.id||++l,...m};p.push(b),h.push(b),c(f,"INSERT",b,null)}}return a(f),{data:Array.isArray(u)?h:h[0],error:null}},delete:async({from:f,params:u})=>{let d=i(f),p=[];for(let g=d.length-1;g>=0;g--)Cu(d[g],u)&&(p.push(d[g]),d.splice(g,1),c(f,"DELETE",null,p[p.length-1]));return a(f),{data:p,error:null}},subscribe:({from:f,on:u},d)=>{r[f]||(r[f]=[]);let p=(g,h,m)=>{u&&u!=="*"&&u!==m.event||d(g,h,m)};return r[f].push(p),()=>{let g=r[f].indexOf(p);g>-1&&r[f].splice(g,1)}}}}});var Fu={};F(Fu,{EARLY_KEY:()=>Eu,createAdapter:()=>_2,createEarlySeedScript:()=>Xk,default:()=>D2,earlyKey:()=>Ha,executeFetch:()=>Qa,fetchFunctions:()=>Nu,fetchPlugin:()=>yy,hasAdapter:()=>b2,initAdapterAuth:()=>Du,parseDuration:()=>qa,queryClient:()=>Wa,registerAdapter:()=>y2,resolveDb:()=>hv});var h2,pv,Tu,Ss,Ou,cy,g2,m2,y2,b2,_2,hv,qa,ae,gv,Cn,On,Rn,sy,dy,Ya,Ka,Pu,ly,Lu,py,to,mv,w2,Ru,S2,cv,iy,yv,bv,ws,lv,x2,fv,k2,_v,hy,Xa,Iu,$u,Za,gy,Du,my,Se,Me,Ga,Mu,v2,fy,lr,Ze,uv,Tn,E2,A2,C2,T2,ay,uy,O2,wv,Sv,R2,P2,L2,Qa,Wa,dv,Nu,yy,D2,Ja=D(()=>{"use strict";$();qt();Au();Au();h2=["select","rpc","insert","update","upsert","delete","subscribe"],pv={rest:()=>Promise.resolve().then(()=>(ov(),rv)),local:()=>Promise.resolve().then(()=>(av(),iv))},Tu=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ss=(()=>{if(typeof globalThis<"u"&&globalThis[Tu])return globalThis[Tu];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Tu,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Tu]}catch{}return t})(),Ou=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),cy=(()=>{if(typeof globalThis<"u"&&globalThis[Ou])return globalThis[Ou];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ou,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ou]}catch{}return t})(),g2=5e3,m2=t=>new Promise(e=>{if(Ss[t])return e(Ss[t]);let n=cy[t]||=[],r=!1,o=()=>{r||(r=!0,e(Ss[t]||null))};n.push(o),setTimeout(o,g2)}),y2=(t,e)=>{Ss[t]=e;let n=cy[t];if(n&&n.length){cy[t]=[];for(let r of n)r()}},b2=t=>typeof t=="string"&&!!(Ss[t]||pv[t]),_2=t=>{let e={};for(let n of h2)t[n]&&(e[n]=t[n]);return e.name=t.name||"custom",e},hv=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...n}=t,r=typeof e=="string"?e:typeof t=="string"?t:null;if(!r)return null;let o=Ss[r]||pv[r];if(!o&&(o=await m2(r),!o))throw new Error(`Unknown db adapter: "${r}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${r}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(n)},qa=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 n=parseInt(e[1]),r=e[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0},ae=new Map,gv=new Map,Cn=new Map,On=0,Rn=new Map,sy=new WeakMap,dy=(t,e,n,r,o=t.page,s=t.cursor)=>{if(t.cache?.key)return t.cache.key;let{from:i,method:a,infinite:c}=t,l=n?`${n}:`:"",f=r?`:${r}`:"",u=o?":p"+JSON.stringify(o):"",d=s!=null?":c"+JSON.stringify(s):"";return`${i}:${a}:${l}${JSON.stringify(e||"")}${c?":infinite":""}${u}${d}${f}`},Ya=t=>ae.get(t)||null,Ka=(t,e,n,r=++On,o=!1)=>{let s={data:e,error:n,time:Date.now(),stale:o,seq:r};ae.set(t,s);let i=gv.get(t);if(i)for(let a of i)R(a)&&a(s);return s},Pu=(t,e)=>{let n=t?ae.get(t):null;return n&&!n.error&&n.seq>e?n:null},ly=(t,e)=>(Rn.get(t)||0)>e,Lu=t=>{if(t){ae.delete(t),Rn.set(t,++On);return}for(let[e]of ae)Rn.set(e,++On);for(let[e]of Cn)Rn.set(e,++On);ae.clear()},py=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)}:v(t)?{staleTime:qa(t),gcTime:3e5}:{staleTime:qa(t.stale||t.staleTime)||6e4,gcTime:qa(t.gc||t.gcTime||t.expire)||3e5,key:t.key},to=new Set,mv=t=>!!t.ref&&t.element.__ref===t.ref,w2=({config:t,element:e,context:n})=>{try{return gy(t,e,n)}catch{return null}},Ru=null,S2=()=>{Ru||(Ru=setInterval(()=>{let t=Date.now();for(let[e,n]of ae){let r=gv.get(e);!(r&&r.size>0)&&t-n.time>(n.gcTime||3e5)&&ae.delete(e)}for(let[e]of Rn)!ae.has(e)&&!Cn.has(e)&&Rn.delete(e);for(let e of to)mv(e)||to.delete(e)},3e4),Ru.unref&&Ru.unref())};S2();cv=3,iy=t=>Math.min(1e3*2**t,3e4),yv=(t,e)=>{let n=t.retry;return n===void 0&&e?{count:0}:n===!1?{count:0}:n===!0||n===void 0?{count:cv,delay:iy}:typeof n=="number"?{count:n,delay:iy}:{count:n.count??cv,delay:R(n.delay)?n.delay:typeof n.delay=="number"?()=>n.delay:iy}},bv=async(t,e)=>{let{count:n,delay:r}=e,o;for(let s=0;s<=n;s++)try{let i=await t();if(i?.error){if(o=i.error,s<n){let a=R(r)?r(s,o):r;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<n){let a=R(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},ws={focus:new Set,online:new Set},lv=!1,x2=()=>{if(lv||typeof window>"u")return;lv=!0;let t=()=>{for(let n of ws.focus)n()},e=()=>{for(let n of ws.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},fv=(t,e)=>{let n=e.__ref;if(t===!0)return{from:n.__state||e.key,method:"select",query:!0,on:"create"};if(v(t))return{from:t,method:"select",query:!0,on:"create"};if(E(t)){let r={...t};return r.from=r.from||n.__state||e.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},k2=["insert","update","upsert","delete"],_v=t=>k2.includes(t),hy=t=>t.mutation===!0?!0:t.mutation===!1||t.method!=="rpc"?!1:t.on==="submit"||t.on==="click"||t.invalidates!=null,Xa=(t,e)=>{let n=t?.state?.root||e?.state?.root;if(n?.lang)return n.lang},Iu=(t,e)=>{let r=(t?.state?.root||e?.state?.root)?.__fetchScope;return r?String(r):void 0},$u=(t,e,n)=>{let r;if(!t)r=void 0;else if(R(t))r=t(e,e.state);else{r={};for(let o in t){let s=t[o];r[o]=R(s)?s(e,e.state):s}}return r},Za=(t,e)=>R(t)?t(e,e.state):t,gy=(t,e,n)=>dy(t,$u(t.params,e,n),Iu(e,n),Xa(e,n),Za(t.page,e),Za(t.cursor,e)),Du=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let n=(r,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await t.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}t.onAuthStateChange&&t.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},my=async(t,e)=>{if(R(t.select))return t.auth!==!1&&await Du(t,e),t;if(t.__resolved)return t.auth!==!1&&await Du(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=hv(t);let n=await t.__resolving;return delete t.__resolving,n?(n.auth=t.auth,n.url=t.url,n.key=t.key,t.__resolved=n,e.fetch=n,t.auth!==!1&&await Du(n,e),n):null},Se=(t,e,...n)=>{let r=R(t[e])?t[e]:null;r&&r.call(t,...n,t,t.state,t.context)},Me=(t,e,n,...r)=>{let o=t&&R(t[n])?t[n]:null;o&&o.call(e,...r,e,e.state,e.context)},Ga=t=>{let e={},n=t.node;if(!n)return e;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())e[s]=i;return e}let r=n.querySelectorAll("input, textarea, select");for(let o=0;o<r.length;o++){let s=r[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},Mu=t=>t.responseType==="stream"||t.responseType==="response",v2=["Blob","File","ArrayBuffer","ReadableStream","Response"],fy=t=>t!==null&&typeof t=="object"&&(ArrayBuffer.isView(t)||v2.includes(Object.prototype.toString.call(t).slice(8,-1))),lr=(t,e,n,r={})=>{if(!n&&fy(e))return;let o=n&&n.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=n.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&!fy(e)&&i in e?s.update(e,{preventFetch:!0,...r}):s.update({[i]:e},{preventFetch:!0,...r})}else{let i=n?{[n]:e}:e;s.update(i,{preventFetch:!0,...r})}},Ze=(t,e)=>{let n=t?.__ref;n&&(n.__fetchStatus={...e,isError:!!e.error},n.__fetching=e.isFetching,n.__fetchError=e.error)},uv=(t,e,n)=>{let r=t.__pages&&t.__pages.length?t.__pages:[n];R(e.getNextPageParam)&&(t.__nextPageParam=e.getNextPageParam(r[r.length-1],r),t.__hasNextPage=t.__nextPageParam!=null),R(e.getPreviousPageParam)&&(t.__prevPageParam=e.getPreviousPageParam(r[0],r),t.__hasPreviousPage=t.__prevPageParam!=null)},Tn=async(t,e,n,r={})=>{let o=n?.fetch;if(!o||!e||!e.__ref)return;let s=e.__ref,i=Iu(e,n);(!s.__fetchScopeOwner||s.__fetchScopeOwner.scope!==i)&&(s.__fetchScopeOwner={scope:i});let a=s.__fetchScopeOwner,c=()=>e.__ref===s&&s.__fetchScopeOwner===a&&Iu(e,n)===i;if(t.enabled===!1||R(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||R(t.skip)&&t.skip(e,e.state))return;let l=await my(o,n);if(!l||!c())return;let{from:f,method:u,query:d,params:p,cache:g,transform:h,single:m,auth:y,fields:S,as:b,limit:x,offset:_,order:w,headers:k,baseUrl:A,responseType:T,page:M,cursor:P,infinite:L,placeholderData:H,initialData:lt,select:Z,keepPreviousData:ft}=t,wt=v(Z)?Z:void 0;if(d&&R(e.getQuery)){let Q=e.getQuery(l.name||"paths");Q&&(wt=Q.select||Q.length&&Q.join(",")||wt)}let Pt=$u(p,e,n),bt=Za(M,e),$t=Za(P,e),U=hy(t),j=Mu(t)||U?null:py(g),et=yv(t,U||_v(u)),B=Xa(e,n),V=j?dy(t,Pt,i,B,bt,$t):null;if(!s.__fetchInitialized&&V&&(s.__fetchInitialized=!0,lt!==void 0)){let Q=R(lt)?lt():lt;Ka(V,Q,null)}if((u==="select"||u==="rpc")&&V&&j&&!r.refresh&&!r.force){let Q=Ya(V);if(Q&&!Q.error){let W=Date.now()-Q.time,Nt=Q.stale||W>(j.staleTime||0);L&&I(Q.data)&&!s.__pages&&(s.__pages=[Q.data],uv(s,t,Q.data));let Y=Q.data;if(R(Z)&&(Y=Z(Y,e,e.state)),h&&(Y=h(Y,e,e.state)),!c())return;if(!Nt){Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),lr(e,Y,b);return}lr(e,Y,b)}else if(H!==void 0){let W=R(H)?H(e,e.state):H;W!==void 0&&lr(e,W,b)}}let nt=V&&!r.force?Cn.get(V):null;if(nt&&!ly(V,sy.get(nt)||0)){let Q=W=>{Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:W,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",W),Me(t,e,"onFetchError",W)};try{let W=await Promise.race([nt,new Promise((Nt,Y)=>setTimeout(()=>Y("DEDUP_TIMEOUT"),15e3))]);if(!c())return;if(W?.error)Q(W.error);else if(W?.data!==void 0){let Nt=!L&&Pu(V,sy.get(nt)||0),Y=Nt?Nt.data:W.data;if(R(Z)&&(Y=Z(Y,e,e.state)),h&&(Y=h(Y,e,e.state)),!c())return;lr(e,Y,b),Se(e,"onFetchComplete",Y),Me(t,e,"onFetchComplete",Y)}}catch(W){if(!c())return;W!=="DEDUP_TIMEOUT"&&Q(W)}return}let Mt=!Ya(V)?.data;Ze(e,{isFetching:!0,isLoading:Mt,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Se(e,"onFetchStart"),Me(t,e,"onFetchStart");let Lt=n?.analyze?.emitNetwork,Yi=Lt?typeof performance<"u"?performance.now():Date.now():0;Lt&&Lt({phase:"start",mode:"query",from:f,method:u,cacheKey:V,lang:B});let Xi=async()=>{if(!c())return;if(y!==!1&&l.auth!==!1&&l.getSession){let Y=await l.getSession();if(!c())return;if(y===!0&&!Y){let mt={message:"Not authenticated"};return Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:mt,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",mt),Me(t,e,"onFetchError",mt),{data:null,error:mt}}}let Q=l[u];if(!R(Q))return{data:null,error:{message:`Method "${u}" not found on adapter`}};let W={from:f,select:wt,params:Pt,single:m,limit:x,offset:_,order:w,headers:k,baseUrl:A};T!==void 0&&(W.responseType=T);let Nt=Xa(e,n);if(Nt&&(W.headers={...W.headers,"Accept-Language":Nt}),bt!==void 0){if(E(bt))bt.offset!==void 0&&(W.offset=bt.offset),bt.limit!==void 0&&(W.limit=bt.limit),bt.cursor!==void 0&&(W.params={...W.params,cursor:bt.cursor});else if(typeof bt=="number"){let Y=t.pageSize||x||20;W.offset=(bt-1)*Y,W.limit=Y}}if($t!==void 0&&(W.params={...W.params,cursor:$t}),u==="insert"||u==="update"||u==="upsert"){let Y;if(S===!0||t.on==="submit")Y=Ga(e);else if(I(S)){let mt=Ga(e);Y={};for(let Fr of S)Y[Fr]=mt[Fr]}else e.state?.parse?Y=e.state.parse():E(e.state)&&(Y={...e.state});h&&(Y=h(Y,e,e.state)),W.data=Y}if(u==="rpc"){let Y=Pt;if(t.on==="submit"){let mt=Ga(e);Y=t.transformParams?t.transformParams(mt,e,e.state):mt}W.params=Y,W.read=!U&&t.read!==!1}if(u==="subscribe"){if(R(s.__unsubscribe)){let mt=s.__unsubscribe;s.__unsubscribe=null;try{mt()}catch{}}let Y=l.subscribe({from:f,params:Pt,on:t.subscribeOn},(mt,Fr,H0)=>{c()&&(lr(e,mt,b),Se(e,"onFetchComplete",mt),Me(t,e,"onFetchComplete",mt))});return c()?(s.__unsubscribe=Y,{data:null,error:null,subscribed:!0}):(R(Y)&&Y(),{data:null,error:null,subscribed:!0})}return Q(W)},At=++On,Ge=bv(Xi,et);sy.set(Ge,At),V&&Cn.set(V,Ge);try{let Q=await Ge;if(U&&t.invalidates&&Q&&!Q.error&&!Q.subscribed&&Sv(t.invalidates,f),!c()||Q?.subscribed)return;let{data:W,error:Nt}=Q||{};if(Nt){V&&!Pu(V,At)&&Ka(V,null,Nt,At),Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Nt,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",Nt),Me(t,e,"onFetchError",Nt),Lt&&Lt({phase:"error",mode:"query",from:f,method:u,cacheKey:V,error:Nt.message||Nt,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yi});return}if(W!==void 0){let Y=W;if((u==="select"||u==="rpc")&&V){let Fr=!L&&Pu(V,At);if(Fr)Y=Fr.data;else{let H0=Ka(V,W,null,At,ly(V,At));H0.gcTime=j?.gcTime||3e5}}let mt=Y;if(L&&I(W)&&((!s.__pages||!r.direction)&&(s.__pages=[]),r.direction==="previous"?s.__pages.unshift(W):s.__pages.push(W),mt=s.__pages.flat(),uv(s,t,W)),R(Z)&&(mt=Z(mt,e,e.state)),h&&(mt=h(mt,e,e.state)),!c())return;Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),(!ft||mt!==void 0)&&lr(e,mt,b),Se(e,"onFetchComplete",mt),Me(t,e,"onFetchComplete",mt),Lt&&Lt({phase:"success",mode:"query",ok:!0,from:f,method:u,cacheKey:V,durationMs:(typeof performance<"u"?performance.now():Date.now())-Yi})}}catch(Q){if(!c())return;Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:Q,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",Q),Me(t,e,"onFetchError",Q),Lt&&Lt({phase:"error",mode:"query",from:f,method:u,cacheKey:V,error:Q.message||String(Q),durationMs:(typeof performance<"u"?performance.now():Date.now())-Yi})}finally{V&&Cn.get(V)===Ge&&Cn.delete(V)}},E2=(t,e,n)=>{let r=t.on,o=e.__ref;if(!o)return;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Tn;if(r==="submit"){let i=c=>{c.preventDefault(),s(t,e,n)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(t,e,n),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&A2(t,e,n,s)},A2=(t,e,n,r)=>{let o=e.__ref,s,i=K(()=>{let a;try{a=JSON.stringify([$u(t.params,e,n)??null,R(t.enabled)?!!t.enabled(e,e.state):t.enabled!==!1,R(t.skip)?!!t.skip(e,e.state):t.skip===!0,Za(t.page,e)??null])}catch{return}if(s===void 0){s=a;return}a!==s&&(s=a,Promise.resolve().then(()=>r(t,e,n)))});Array.isArray(o.__effects)?o.__effects.push(i):o.__fetchListeners.push(()=>i.dispose())},C2=(t,e,n)=>{let r=e.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),x2();let o=t.refetchInterval;if(o){let c=typeof o=="number"?o:qa(o);if(c>0){let l=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Tn(t,e,n,{force:!0})},c);r.__fetchCleanups.push(()=>clearInterval(l))}}let s=Mu(t),i=t.refetchOnWindowFocus===void 0?!s:t.refetchOnWindowFocus!==!1,a=t.refetchOnReconnect===void 0?!s:t.refetchOnReconnect!==!1;if(i){let c=()=>{let l=gy(t,e,n),f=Ya(l),u=py(t.cache);(!f||f.stale||Date.now()-f.time>(u?.staleTime||0))&&Tn(t,e,n,{force:!0})};ws.focus.add(c),r.__fetchCleanups.push(()=>ws.focus.delete(c))}if(a){let c=()=>Tn(t,e,n,{force:!0});ws.online.add(c),r.__fetchCleanups.push(()=>ws.online.delete(c))}},T2=(t,e,n)=>{if(!e.optimistic)return null;let r=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():E(t.state)?{...t.state}:t.state;r.__optimisticSnapshot=s;let i=R(e.optimistic)?e.optimistic(n,s,t):e.optimistic;return i!==void 0&&lr(t,i,o),s},ay=(t,e)=>{let n=t.__ref;if(!n||!e.optimistic)return;let r=n.__optimisticSnapshot;r!==void 0&&(lr(t,r,e.as),delete n.__optimisticSnapshot)},uy=t=>{if(!t)return()=>!0;if(v(t))return e=>e.includes(t);if(I(t)){let e=t.join(":");return n=>n.includes(e)}return t instanceof RegExp?e=>(t.lastIndex=0,t.test(e)):R(t)?e=>{try{return!!t(e)}catch{return!1}}:()=>!1},O2=t=>{let e=[];for(let n of to){if(!mv(n)){to.delete(n);continue}let r=w2(n);r&&t(r)&&e.push(Tn(n.config,n.element,n.context,{refresh:!0}))}return Promise.allSettled(e).then(()=>{})},wv=t=>{Yk();for(let[e,n]of ae)t(e)&&(n.stale=!0,Rn.set(e,++On));for(let[e]of Cn)!ae.has(e)&&t(e)&&Rn.set(e,++On);return O2(t)},Sv=(t,e)=>{let n=(I(t)?t:[t]).map(r=>r===!0||r==="*"?o=>o.startsWith(e+":"):r?uy(r):()=>!1);return wv(r=>n.some(o=>o(r)))},R2=t=>{for(let[e]of ae)t(e)&&Lu(e);for(let[e]of Cn)t(e)&&Rn.set(e,++On)},P2=async(t,e,n)=>{let r=n?.fetch;if(!r)return;let o=await my(r,n);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:l,as:f,on:u,auth:d,headers:p,baseUrl:g,responseType:h,invalidates:m,optimistic:y,onMutate:S,onSuccess:b,onError:x,onSettled:_}=t,w;if(c===!0||u==="submit")w=Ga(e);else if(I(c)){let M=Ga(e);w={};for(let P of c)w[P]=M[P]}else e.state?.parse?w=e.state.parse():E(e.state)&&(w={...e.state});l&&(w=l(w,e,e.state)),R(S)&&S(w,e,e.state);let k=y?T2(e,t,w):null;s.__fetching=!0,Ze(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Se(e,"onFetchStart"),Me(t,e,"onFetchStart");let A=n?.analyze?.emitNetwork,T=A?typeof performance<"u"?performance.now():Date.now():0;A&&A({phase:"start",mode:"mutation",from:a,method:i});try{if(d!==!1&&o.auth!==!1&&o.getSession){let wt=await o.getSession();if(d===!0&&!wt){k!==void 0&&ay(e,t);let Pt={message:"Not authenticated"};Se(e,"onFetchError",Pt),Me(t,e,"onFetchError",Pt);return}}let M=o[i];if(!R(M))return;let P={from:a,data:w,headers:p,baseUrl:g};h!==void 0&&(P.responseType=h),t.params&&(P.params=$u(t.params,e,n));let L=Xa(e,n);L&&(P.headers={...P.headers,"Accept-Language":L});let H=yv(t,!0),lt=await bv(()=>M(P),H),{data:Z,error:ft}=lt||{};if(ft){k!==void 0&&ay(e,t),Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ft,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",ft),R(x)&&x(ft,w,e),R(_)&&_(null,ft,w,e),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:ft.message||String(ft),durationMs:(typeof performance<"u"?performance.now():Date.now())-T});return}if(delete s.__optimisticSnapshot,Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Z!==void 0&&(f||!fy(Z))){let wt=f?{[f]:Z}:Z;e.state?.update&&e.state.update(wt,{preventFetch:!0})}Se(e,"onFetchComplete",Z),Me(t,e,"onFetchComplete",Z),R(b)&&b(Z,w,e),R(_)&&_(Z,null,w,e),A&&A({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-T}),m&&Sv(m,a)}catch(M){k!==void 0&&ay(e,t),Ze(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:M,status:"error",fetchStatus:"idle"}),Se(e,"onFetchError",M),Me(t,e,"onFetchError",M),R(x)&&x(M,w,e),R(_)&&_(null,M,w,e),A&&A({phase:"error",mode:"mutation",from:a,method:i,error:M.message||String(M),durationMs:(typeof performance<"u"?performance.now():Date.now())-T})}finally{s.__fetching=!1}},L2=t=>{let e=n=>{try{n()}catch{}};for(let n of t.__fetchCleanups||[])e(n);for(let n of t.__fetchListeners||[])e(n);R(t.__unsubscribe)&&e(t.__unsubscribe);for(let n of t.__fetchMounted||[])to.delete(n);t.__fetchCleanups=[],t.__fetchListeners=[],t.__unsubscribe=null,t.__fetchMounted=[]},Qa=(t,e,n,r)=>{if(!t||!r?.fetch)return;let s=pt(t,e);if(!s)return;let i=I(s)?s.map(c=>fv(pt(c,e),e)).filter(Boolean):[fv(s,e)].filter(Boolean),a=e.__ref;if(a.__fetchMounted)for(let c of a.__fetchMounted)to.delete(c);a.__fetchMounted=[],!a.__fetchDisposer&&I(a.__effects)&&(a.__fetchDisposer={dispose:()=>L2(a)},a.__effects.push(a.__fetchDisposer));for(let c of i){let l=_v(c.method),f=l?P2:Tn,u=!l&&!hy(c)&&c.method!=="subscribe";if(c.on==="create"?f(c,e,r):Promise.resolve().then(()=>{E2({...c,__runner:f},e,r)}),u&&c.on==="create"&&((c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&C2(c,e,r),!Mu(c))){let d={element:e,ref:a,config:c,context:r};to.add(d),a.__fetchMounted.push(d)}}a.refetch=c=>{for(let l of i)Tn(l,e,r,{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};Tn(f,e,r,{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};Tn(f,e,r,{direction:"previous",force:!0})}},Wa={invalidateQueries:t=>wv(uy(t)),removeQueries:t=>{if(!t){Lu();return}R2(uy(t))},getQueryData:t=>Ya(t)?.data??void 0,setQueryData:(t,e)=>{let n=Ya(t),r=R(e)?e(n?.data):e;Ka(t,r,null)},prefetchQuery:async(t,e)=>{let n=e?.fetch;if(!n)return;let r=await my(n,e);if(!r)return;let o=t.method||"select",s=Iu(null,e),i=Xa(null,e),a=dy({...t,method:o},t.params,s,i),c=r[o];if(!R(c))return;let l={from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single,headers:t.headers,baseUrl:t.baseUrl};i&&(l.headers={...l.headers,"Accept-Language":i}),t.responseType!==void 0&&(l.responseType=t.responseType),o==="rpc"&&(l.read=!hy(t)&&t.read!==!1);let f=++On,u=await c(l);if(u?.data!==void 0&&!u?.error&&!Mu(t)&&!Pu(a,f)){let d=Ka(a,u.data,null,f,ly(a,f));d.gcTime=py(t.cache)?.gcTime||3e5}return u},getCache:()=>ae,clear:()=>Lu(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[n]of ae)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(e)||Lu(n))}},dv=(t,e)=>E(t)?gy({method:"select",...t},e,e?.context):t,Nu={invalidateQueries(t){return Wa.invalidateQueries(t)},removeQueries(t){return Wa.removeQueries(t)},getQueryData(t){return Wa.getQueryData(dv(t,this))},setQueryData(t,e){return Wa.setQueryData(dv(t,this),e)}},yy={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||Cn.clear(),Qa(e,t,t.state,t.context))}},D2=Qa});function ec(t){let e=this,{__ref:n}=e,r=[].concat(t),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",e.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function _y(t){let e=this,{parent:n}=e;if(R(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function wy(t){let e=this,{__ref:n}=e,r=n?.__children;if(r)for(let o=0;o<r.length;o++){let s=r[o],i=e[s];if(s===t)return i;if(R(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 Sy(t,e=[]){let n=this,{__ref:r}=n,o=r?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=n[i];if(i===t)e.push(a);else if(R(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 Vu(t={}){let e=this;if(e.node?.style){for(let n in t){let r=t[n],o=e[n];if(E(r)&&o)Vu.call(o,r);else if(r!=null){let s=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),i=String(r).replace(/\s*!important\s*$/,"");e.node.style.setProperty(s,i,"important")}}return e}}function kv(t){let e=this;if(An("beforeRemove",e,t)===!1)return e;R(e.node.remove)?e.node.remove():ir()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=fa(e.parent.__ref.__children,e.key)),An("remove",e,t)}function xy(t){return this[t]}function ky(t,e){let n=this;if(t)return n.update(t,e),n}function vy(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Ey(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function nc(){return this.getRef().path}function oc(t){let e=null,n=r=>r.__element&&r.root?.isRootState;if(!this)e=xv();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=R(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=xv()),t?e?.[t]:e}function sc(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function ic(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function ac(t){let e=this.getRoot()?.context;return t?e[t]:e}function cc(t){let e=this.context;return t?e[t]:e}function Uu(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||rr.has(n)&&!ga.has(n)||e.push(n);return e}function zu(t=[]){let e=this,n={},r=Uu.call(e),o=r.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<r.length;i++){let a=r[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=R(c&&c.parse)?c.parse():c;n[a]=R(l)?l:JSON.parse(JSON.stringify(l||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:l,update:f,...u}=e[a];n[a]=u}else Dt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=c)}return n}function tc(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let r=zu.call(n,t),o=t.length?new Set(t):null;for(let s in r){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(n,s))continue;let i=r[s];Array.isArray(i)?r[s]=i.map(a=>q(a)?tc.call(a,t,e):a):q(i)&&(r[s]=tc.call(i,t,e))}return r}function ks(...t){if(fr!=="test"&&fr!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(r=>console.log(`%c${r}:
22
+ `,"font-weight: bold",e[r])):(console.log(n.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Cy(...t){(fr==="test"||fr==="development")&&console.log(...t)}function lc(...t){(fr==="test"||fr==="development")&&console.warn(...t)}function eo(...t){if(fr==="test"||fr==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&ks.call(this),new Error(...t)}}function fc(){let t=this,{key:e,parent:n}=t,{__children:r}=n.__ref,o=r.indexOf(e),s=r[o+1];return n[s]}function uc(t){let e=t||this,{key:n,parent:r}=e,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function dc(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,r={},o;for(let s in t)t[s]!==n[s]&&(o=!0,r[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(r,ut(n));for(let a in r)n[a]=r[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(r),clearTimeout(a)},i)}}}function Ty(t,...e){let n=this.context,r=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(r&&!Gr(r))try{let o=r.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{eo.call(this,s)}),o}catch(o){if(eo.call(this,o),n?.strictMode)throw o}}async function pc(){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 ju();await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await ju();await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=ju().then(({resolveDb:o})=>o(e));e.__resolving=n;let r=await n;if(e.__resolved=r,t.context.fetch=r,delete e.__resolving,r?.getSession){let{initAdapterAuth:o}=await ju();await o(r,t.context)}return r}function hc(t){let e=this,n=t||za.useStateQuery||e.context?.useStateQuery;if(!n)return null;let r={};if(by(e,r),n===!0)return r;let o=V2[n];return o?o(r):r}function Oy(t,e){return!!(sr.has(t)||e?.context?.methods?.[t])}var fr,Bu,rc,xs,xv,Ay,I2,ju,by,$2,vv,M2,N2,F2,j2,B2,V2,Ev=D(()=>{"use strict";Jm();Wr();jt();dn();Yf();cs();ey();fr="production";Bu=null,rc=t=>{Bu=t||null},xs=(t,e)=>{t&&e&&Bu===t&&(Bu=e)},xv=()=>Bu||null;Ay=(t,e,n,r)=>Object.defineProperty(t,e,{get:n,set:r});I2="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",ju=()=>Promise.resolve().then(()=>(Ja(),Fu)).catch(t=>{throw new Error(I2,{cause:t})});by=(t,e)=>{let n=t.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&$2(e,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&by(c,e)}let s=n.contentElementKey||"content",i=t[s];i&&i.__ref&&by(i,e)},$2=(t,e)=>{let r=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<r.length;s++){let i=r[s];s===r.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},vv=(t,e=0)=>{let n=" ".repeat(e),r=Object.entries(t);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
23
+ ${vv(i,e+1)}
24
24
  ${n}}`).join(`
25
- `):""},D2=t=>`{
26
- ${xv(t,1)}
27
- }`,I2=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},$2=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},M2=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=n.length?n.join(", "):"*",l=r.length?`
25
+ `):""},M2=t=>`{
26
+ ${vv(t,1)}
27
+ }`,N2=t=>{let e={fields:{},include:[]},n=(r,o)=>{let s=[];for(let i in r)if(r[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),n(r[i],a)}s.length&&(e.fields[o||"_root"]=s)};return n(t,""),e},F2=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let l=e(s[c]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),a.push(f.length?`${c}(${f.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:r}=e(t),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},j2=(t,e)=>{let n=[],r=[],o=new Set,s=(f,u,d)=>{o.add(u),d&&r.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):s(f[p],p,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=n.length?n.join(", "):"*",l=r.length?`
28
28
  `+r.join(`
29
29
  `):"";return`SELECT ${c}
30
- FROM ${a}${l}`},N2=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},F2={graphql:D2,"json-api":I2,odata:$2,sql:M2,paths:N2}});var j2,Oy,vv=D(()=>{"use strict";qf();j2={snapshotId:ka},Oy=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=j2.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var zu,Ry,Ev=D(()=>{zu=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Ry=t=>typeof t=="string"&&zu.has(t)});async function Py(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 Av=D(()=>{"use strict"});var vs,Es,pc,Ne,ur,As,hc,Ze,Hu,B2,dr,V2,no,ro,Ly,Cv=D(()=>{"use strict";vs=t=>t!=="latest"?`@${t}`:"",Es=t=>t?`/${t}`:"",pc=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},Ne={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${Ne.skypack.url}/${t}${vs(e)}${Es(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${Ne.esmsh.url}/${t}${vs(e)}${Es(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${Ne.unpkg.url}/${t}${vs(e)}${Es(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${Ne.jsdelivr.url}/${t}${vs(e)}${Es(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${Ne.symbols.url}/${t}${vs(e)}${Es(n)}/+esm`}},ur={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},As=(t={})=>{let{packageManager:e}=t;return ur[e]||null},hc=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},Ze=(t,e="latest",n="esmsh")=>{let r=Ne[n]||Ne.esmsh,{name:o,subpath:s}=pc(t);return r.formatUrl(o||t,hc(e),s)},Hu=(t,e="latest",n="esmsh")=>{let r=Ne[n]||Ne.esmsh,o=hc(e),{name:s,subpath:i}=pc(t);return`${r.url}/${s||t}${vs(o)}${Es(i)}/`},B2=/^node:|^@symbo-ls\//,dr=t=>typeof t=="string"&&B2.test(t),V2=/[<>…]/,no=t=>typeof t=="string"&&V2.test(t),ro=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Ly=(t,e="skypack",n={})=>{let r=t.dependencies;if(!ro(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(dr(f)||no(f))continue;let u=s[f]||r[f]||"latest";i[f]=Ze(f,u,e),f.endsWith("/")||(i[f+"/"]=Hu(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
30
+ FROM ${a}${l}`},B2=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?e.push(i):n(r[s],i)}};return n(t,""),e},V2={graphql:M2,"json-api":N2,odata:F2,sql:j2,paths:B2}});var U2,Ry,Av=D(()=>{"use strict";Kf();U2={snapshotId:Ea},Ry=(t,e)=>{let n=t.__ref,{currentSnapshot:r,calleeElement:o}=e;if(!o||o===t){let a=U2.snapshotId();return n.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return r<i?[i,o,!0]:[i,o]}});var Hu,Py,Cv=D(()=>{Hu=new Set(["__proto__","constructor","prototype","_id","__v","id","createdAt","updatedAt","schema"]),Py=t=>typeof t=="string"&&Hu.has(t)});async function Ly(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 Tv=D(()=>{"use strict"});var vs,Es,gc,Ne,ur,As,mc,Qe,Wu,z2,dr,H2,no,ro,Dy,Ov=D(()=>{"use strict";vs=t=>t!=="latest"?`@${t}`:"",Es=t=>t?`/${t}`:"",gc=t=>{let e=typeof t=="string"?t.replace(/\/+$/,""):"";if(!e)return{name:"",subpath:""};let n=e.split("/"),r=e.startsWith("@")?2:1;return{name:n.slice(0,r).join("/"),subpath:n.slice(r).join("/")}},Ne={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e,n)=>`${Ne.skypack.url}/${t}${vs(e)}${Es(n)}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e,n)=>`${Ne.esmsh.url}/${t}${vs(e)}${Es(n)}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e,n)=>`${Ne.unpkg.url}/${t}${vs(e)}${Es(n)}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e,n)=>`${Ne.jsdelivr.url}/${t}${vs(e)}${Es(n)}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e,n)=>`${Ne.symbols.url}/${t}${vs(e)}${Es(n)}/+esm`}},ur={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},As=(t={})=>{let{packageManager:e}=t;return ur[e]||null},mc=t=>{if(typeof t!="string")return t;let e=t.trim().match(/^[\^~](\d.*)$/);return e?e[1]:t},Qe=(t,e="latest",n="esmsh")=>{let r=Ne[n]||Ne.esmsh,{name:o,subpath:s}=gc(t);return r.formatUrl(o||t,mc(e),s)},Wu=(t,e="latest",n="esmsh")=>{let r=Ne[n]||Ne.esmsh,o=mc(e),{name:s,subpath:i}=gc(t);return`${r.url}/${s||t}${vs(o)}${Es(i)}/`},z2=/^node:|^@symbo-ls\//,dr=t=>typeof t=="string"&&z2.test(t),H2=/[<>…]/,no=t=>typeof t=="string"&&H2.test(t),ro=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Dy=(t,e="skypack",n={})=>{let r=t.dependencies;if(!ro(r))return"";let o=Object.keys(r);if(!o.length)return"";let s=n.pin||{},i={};for(let f of o){if(dr(f)||no(f))continue;let u=s[f]||r[f]||"latest";i[f]=Qe(f,u,e),f.endsWith("/")||(i[f+"/"]=Wu(f,u,e))}if(!Object.keys(i).length)return"";let a='<script type="importmap">',c="<\/script>",l=`{
31
31
  "imports": ${JSON.stringify(i,null,2)}
32
- }`;return`${a}${l}${c}`}});var Dy,Tv=D(()=>{"use strict";Dy=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var Iy,Ov=D(()=>{"use strict";Iy=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.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(n)})}});var $y,Rv=D(()=>{"use strict";$y=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var My,Pv=D(()=>{"use strict";My=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Cs(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function Uy(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var Ny,Fy,jy,By,Vy,Lv=D(()=>{"use strict";Ny=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),Fy=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),jy=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},By=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),Vy=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});function so(t,e){if(!e||typeof e!="object")return t;let n=o=>!q2(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:qu(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function Hy(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function K2(t,e){let n=Hy(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!ds(n))return n}function G2(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=K2(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??Hy(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??Hy(a,m)??p}));return f}function Dv(t){if(!E(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}ds(r)&&delete e[n]}return e}function qy(t,e,n,{isProduction:r=!1,channel:o="production"}={}){let s=t.pages?.[e],i=E(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=Dv(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=Dv(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=G2(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=so(d,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let S=y.replace(/\{\{[^}]*\}\}/g,"").trim();S?d[m]=S:m==="title"?d[m]=h:delete d[m]}return d}var Tt,U2,oo,z2,Wu,H2,W2,Wy,q2,zy,qu,Iv=D(()=>{"use strict";jt();cr();Tt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},U2=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${Tt(n)}"`).join(" "),oo=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},z2=new Set(["jsonLd","styles","scripts"]),Wu=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${oo(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${oo(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${Tt(o)}"`),r||(n.type&&s.push(`type="${Tt(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${Tt(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${Tt(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${Tt(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${Tt(o||oo(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},H2=(t,e,n)=>t==="favicons"?Array.isArray(e)?typeof n=="string"?` data-smbls-favicon="${Tt(n)}"`:E(n)?` data-smbls-favicon="${oo(JSON.stringify(n))}"`:"":"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${Tt(e)}"`:"",W2=t=>E(t)?` data-smbls-alternate="${Tt(`${t.hreflang||""}|${t.href||""}`)}"`:"",Wy=(t,e)=>{e||(t={...t,robots:"noindex"});let n=Object.entries(t).reduce((r,[o,s])=>{if(!s&&s!==0&&s!==!1||z2.has(o))return r;if(o==="title")return r.push(`<title>${Tt(s)}</title>`),r;if(o==="canonical")return r.push(`<link rel="canonical" href="${Tt(s)}">`),r;if(o==="manifest")return r.push(`<link rel="manifest" href="${Tt(s)}">`),r;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{let u=H2(o,s,f);if(typeof f=="string")r.push(`<link rel="icon" href="${Tt(f)}"${u}>`);else if(typeof f=="object"){let d=U2(f);/rel=/.test(d)?r.push(`<link ${d}${u}>`):r.push(`<link rel="icon" ${d}${u}>`)}}),r;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(f&&typeof f=="object"){let u=Object.entries(f).filter(([d,p])=>p!==void 0).map(([d,p])=>`${d}="${Tt(p)}"`).join(" ");r.push(`<link rel="alternate" ${u}${W2(f)}>`)}}),r;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")r.push(`<meta ${u}="${Tt(l)}" content="${Tt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")r.push(`<meta ${u}="${Tt(l)}" content="${Tt(d)}">`);else if(typeof d=="object"){let p=Object.entries(d).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${Tt(h)}"`).join(" ");r.push(`<meta ${p}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${Tt(g)}"`).join(" ");r.push(`<meta ${d}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),r}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),r}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"),r}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"),r}return i(o,s),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">']);return n.push(...Wu(t)),n.join(`
33
- `)},q2=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),zy=t=>typeof t=="string"&&t.length>0,qu=t=>{if(!t||typeof t!="object")return null;if(zy(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:zy(e.src)?e.src:zy(e.storageUrl)?e.storageUrl:null}});var Ku,Ky,$v=D(()=>{"use strict";jt();Ku=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Ky=(t,e)=>(t=parseFloat(t),E(e)&&(e=Object.values(e)),Ku(t,e))});function ao(t){let e=String(t||"").trim();if(!e)return{owner:Gy,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=Gy);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Zu(t,e={}){if((e.provider||"kv")==="api")return Kv(t,e);let r=await A$(t,e);return r||Kv(t,e)}async function A$(t,e={}){let n=e.kvBaseUrl||Y2,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Kv(t,e={}){let n=e.apiBaseUrl||X2,{key:r}=ao(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&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(p=>{let{key:g}=ao(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function Gv(t,e={}){if(E(t))return t;if(v(t)){let{full:n}=ao(t);if(!n)return null;try{let r=await Zu(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function nb(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async r=>{if(Qe(r)){let o=await Gv(Qv(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return Gv(r,e)}))).filter(Boolean)}var Gy,Y2,X2,Ts,Yv,Z2,Q2,Mv,Xv,Nv,Zv,J2,mc,Zy,Qe,Qv,Yy,Qy,t$,e$,Jv,Jy,tE,Fv,io,tb,n$,pr,r$,eE,nE,jv,o$,s$,i$,a$,Bv,Gu,c$,rE,Xy,oE,l$,Vv,f$,u$,d$,p$,Yu,eb,h$,g$,m$,Uv,yc,y$,zv,Os,Rs,Hv,Xu,gc,b$,_$,Wv,qv,bc,w$,S$,x$,k$,v$,E$,sE,_c,wc,iE=D(()=>{"use strict";jt();Wr();Gf();un();Gy="system",Y2="https://smbls-kv.nika-980.workers.dev",X2="https://api.symbols.app";Ts=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?E(t[o])&&E(e[o])&&Ts(t[o],e[o],n,s):t[o]=e[o])}},Yv=(t,e,n)=>{if(!E(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=Yv(t[i],e,a))}return s},Z2=new Set,Q2=new Set(["components","pages","functions","snippets","methods"]),Mv=(t,e)=>e===""&&Q2.has(t),Xv=["fontFamily","fontfamily","font_family","FONT_FAMILY"],Nv=t=>{let e=new Map;if(!E(t))return e;for(let n of Xv){let r=t[n];if(E(r))for(let o in r)!E(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},Zv=(t,e)=>{for(let n of Xv){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!E(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},J2=t=>t.replace(/\.js$/iu,""),mc=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>J2(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},Zy=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Qe=t=>E(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),Qv=t=>t.library!==void 0?t.library:t.key??t.name,Yy=new Set,Qy=()=>{Yy.clear()},t$=(t,e)=>{let n=e.filter(r=>!Yy.has(r));if(n.length){for(let r of n)Yy.add(r);tt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},e$=(t,e,n)=>{let r=null;for(let o in t)if(Hr(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)Hr(s)||(r[s]=t[s])}return r||t},Jv=(t,e)=>{let n=mc(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},Jy=["functions","methods","snippets"],tE=["components","pages"],Fv=Symbol.for("smbls.libraryScope"),io="__libraryScopes",tb=new Map,n$=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),pr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r$=/const __scope = |const __peers_* = |const _s = el\?\.scope|\?\.context\?\.globalScope\?\./,eE=t=>{try{return we(t)}catch{return null}},nE=t=>{if(typeof t!="function")return null;let e=eE(t);return v(e)&&r$.test(e)&&Qt(e)?e:null},jv=t=>v(t)&&Qt(t)||nE(t)!==null,o$=t=>{let e=t.globalScope;return E(e)&&Object.keys(e).some(n=>jv(e[n]))?!0:Jy.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>jv(r[o]))})},s$=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!E(r)||!E(o)||!o$(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||pr(r,i)&&s++;return s},i$=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const _s = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const _s = $RESOLVE($1);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],a$=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
32
+ }`;return`${a}${l}${c}`}});var Iy,Rv=D(()=>{"use strict";Iy=t=>{if(!t)return"";let e=new Date(t),n=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),r=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${r}, ${n}`}});var $y,Pv=D(()=>{"use strict";$y=(t,e)=>{let n=setTimeout(()=>{let{props:r}=t;if(!e.clientHeight){let{node:{clientHeight:o}}=t;o&&(e.clientHeight=o)}if(e.active){if(r.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(n)})}});var My,Lv=D(()=>{"use strict";My=function(e){let n=[0,1];for(let r=2;r<=e;r++)n[r]=n[r-1]+n[r-2];return n[e]}});var Ny,Dv=D(()=>{"use strict";Ny=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t)});function Cs(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}async function zy(t,e={}){let{window:n=globalThis}=e,{document:r=n.document}=e;return new Promise((o,s)=>{let i=r.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=r.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}`))},r.head.appendChild(a)})}var Fy,jy,By,Vy,Uy,Iv=D(()=>{"use strict";Fy=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("script");i.type=r,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}`}))}),n.body.appendChild(i)}catch(i){s(i)}}),jy=(t,e=document,n="text/javascript")=>new Promise((r,o)=>{let s=e.createElement("script");s.type=n,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),r()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),By=(t,e=document,n,r="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=r,s.text=o.responseText,e.body.appendChild(s),typeof n=="function"&&n()}else throw new Error(`Failed to load the script ${t}`)},Vy=(t,e=!1,n=document,r="text/javascript")=>new Promise((o,s)=>{try{let i=n.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),n.head.appendChild(i)}catch(i){s(i)}}),Uy=(t,e=!1,n=document,r="text/javascript",o="smbls-script")=>{try{let s=n.createElement("script");s.type=r,s.async=e,s.id=o,s.innerHTML=t,n.body.appendChild(s)}catch(s){console.warn(s)}}});function so(t,e){if(!e||typeof e!="object")return t;let n=o=>!Y2(o)||!Object.prototype.hasOwnProperty.call(e,o)?o:Ku(e[o])||o,r={...t};for(let[o,s]of Object.entries(r))typeof s=="string"?r[o]=n(s):Array.isArray(s)&&(r[o]=s.map(i=>typeof i=="string"?n(i):i));return r}function Wy(t,e){if(!t||!e)return;let n=e.split("."),r=t;for(let o of n){if(r==null||typeof r!="object")return;r=r[o]}return r}function X2(t,e){let n=Wy(t,e);if(typeof n=="number")return Number.isFinite(n)?n:void 0;if(typeof n=="string"&&!ds(n))return n}function Z2(t,e,n){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=n?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=[n?.state,e.state].filter(u=>u&&typeof u=="object"),l=u=>{for(let d of c){let p=X2(d,u);if(p!==void 0)return p}},f={...t};for(let[u,d]of Object.entries(f))typeof d!="string"||!d.includes("{{")||(f[u]=d.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,g,h)=>{let m=g.trim();if(h==="polyglot")return a[m]??Wy(a,m)??p;if(h==="getLocalStateLang")return l(m+s)??p;let y=l(m);return y!==void 0?y:a[m]??Wy(a,m)??p}));return f}function $v(t){if(!E(t))return{};let e={...t};for(let[n,r]of Object.entries(e))if(typeof r=="function"){let o=r.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[n]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[n]=`{{ ${a[1]} }}`;continue}delete e[n]}else if(typeof r=="string"){let o=r.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[n]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=r.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[n]=`{{ ${s[1]} | polyglot }}`;continue}if(r.includes("=>")&&r.includes("s.")){let i=r.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[n]=`{{ ${i[1]} }}`;continue}}ds(r)&&delete e[n]}return e}function Ky(t,e,n,{isProduction:r=!1,channel:o="production"}={}){let s=t.pages?.[e],i=E(s?.state)&&s?.state,a=s?.metadata||s?.helmet||i||{},c=$v(a),l=new Set(Object.keys(c)),f=t.app?.metadata||{},u=$v(f),d={};if(t.integrations?.seo?d={...t.integrations.seo,...u,...c}:Object.keys(u).length?d={...u,...c}:d={...c},!d.title){let m=t.name||t.key;m?r?d.title=m:o==="development"?d.title=`${m} / dev:symbo.ls`:o==="staging"?d.title=`${m} / staging:symbo.ls`:d.title=`${m} / symbo.ls`:d.title="Symbols demo"}d=Z2(d,t,n),d.title&&(l.has("title")||!d["og:title"])&&(l.has("og:title")||(d["og:title"]=d.title)),d.description&&(l.has("description")||!d["og:description"])&&(l.has("og:description")||(d["og:description"]=d.description)),d.title&&!d["twitter:title"]&&(d["twitter:title"]=d.title),d.description&&!d["twitter:description"]&&(d["twitter:description"]=d.description);let p=l.has("og:url")?d["og:url"]:l.has("url")?d.url:void 0,g=n?.actualPathname||e;if(p)d["og:url"]=p;else if(d["og:url"]||d.url){let m=(d["og:url"]||d.url||"").replace(/\/$/,"");if(m&&g&&g!=="/"){let y=g.startsWith("/")?g:"/"+g;d["og:url"]=m+y}}d=so(d,t.files);let h=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[m,y]of Object.entries(d))if(typeof y=="string"&&y.includes("{{")){let S=y.replace(/\{\{[^}]*\}\}/g,"").trim();S?d[m]=S:m==="title"?d[m]=h:delete d[m]}return d}var Tt,W2,oo,q2,qu,K2,G2,qy,Y2,Hy,Ku,Mv=D(()=>{"use strict";jt();cr();Tt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},W2=t=>Object.entries(t||{}).filter(([e,n])=>n!==void 0).map(([e,n])=>`${e}="${Tt(n)}"`).join(" "),oo=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},q2=new Set(["jsonLd","styles","scripts"]),qu=t=>{let e=[];if(Array.isArray(t.jsonLd))for(let n of t.jsonLd){if(n==null)continue;let r=typeof n=="string"?n:JSON.stringify(n),o=String(r).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${oo(r)}">${o}<\/script>`)}if(Array.isArray(t.styles))for(let n of t.styles){if(n==null||!String(n).trim())continue;let r=String(n).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${oo(r)}">${r}</style>`)}if(Array.isArray(t.scripts))for(let n of t.scripts){if(!n)continue;let r=typeof n=="string",o=r?n:n.src;if(!o&&!n.body)continue;let s=[];o&&s.push(`src="${Tt(o)}"`),r||(n.type&&s.push(`type="${Tt(n.type)}"`),n.async&&s.push("async"),n.defer&&s.push("defer"),n.integrity&&s.push(`integrity="${Tt(n.integrity)}"`),n.crossorigin&&s.push(`crossorigin="${Tt(n.crossorigin)}"`),n.referrerpolicy&&s.push(`referrerpolicy="${Tt(n.referrerpolicy)}"`),n.nomodule&&s.push("nomodule"));let i=` data-smbls-script="${Tt(o||oo(n.body||""))}"`;if(!r&&n.body){let a=String(n.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${s.join(" ")}${i}>${a}<\/script>`)}else e.push(`<script ${s.join(" ")}${i}><\/script>`)}return e},K2=(t,e,n)=>t==="favicons"?Array.isArray(e)?typeof n=="string"?` data-smbls-favicon="${Tt(n)}"`:E(n)?` data-smbls-favicon="${oo(JSON.stringify(n))}"`:"":"":(t==="icon"||t==="favicon")&&typeof e=="string"?` data-smbls-single-icon="${Tt(e)}"`:"",G2=t=>E(t)?` data-smbls-alternate="${Tt(`${t.hreflang||""}|${t.href||""}`)}"`:"",qy=(t,e)=>{e||(t={...t,robots:"noindex"});let n=Object.entries(t).reduce((r,[o,s])=>{if(!s&&s!==0&&s!==!1||q2.has(o))return r;if(o==="title")return r.push(`<title>${Tt(s)}</title>`),r;if(o==="canonical")return r.push(`<link rel="canonical" href="${Tt(s)}">`),r;if(o==="manifest")return r.push(`<link rel="manifest" href="${Tt(s)}">`),r;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(f=>{let u=K2(o,s,f);if(typeof f=="string")r.push(`<link rel="icon" href="${Tt(f)}"${u}>`);else if(typeof f=="object"){let d=W2(f);/rel=/.test(d)?r.push(`<link ${d}${u}>`):r.push(`<link rel="icon" ${d}${u}>`)}}),r;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(f=>{if(f&&typeof f=="object"){let u=Object.entries(f).filter(([d,p])=>p!==void 0).map(([d,p])=>`${d}="${Tt(p)}"`).join(" ");r.push(`<link rel="alternate" ${u}${G2(f)}>`)}}),r;let i=(l,f,u="name")=>{if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")r.push(`<meta ${u}="${Tt(l)}" content="${Tt(f)}">`);else if(Array.isArray(f))f.forEach(d=>{if(typeof d=="string"||typeof d=="number"||typeof d=="boolean")r.push(`<meta ${u}="${Tt(l)}" content="${Tt(d)}">`);else if(typeof d=="object"){let p=Object.entries(d).filter(([g,h])=>h!==void 0).map(([g,h])=>`${g}="${Tt(h)}"`).join(" ");r.push(`<meta ${p}>`)}});else if(typeof f=="object"){let d=Object.entries(f).filter(([p,g])=>g!==void 0).map(([p,g])=>`${p}="${Tt(g)}"`).join(" ");r.push(`<meta ${d}>`)}};if(o.startsWith("http-equiv:")){let l=o.replace("http-equiv:","");return i(l,s,"http-equiv"),r}if(o.startsWith("itemprop:")){let l=o.replace("itemprop:","");return i(l,s,"itemprop"),r}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"),r}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"),r}return i(o,s),r},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1">']);return n.push(...qu(t)),n.join(`
33
+ `)},Y2=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http"),Hy=t=>typeof t=="string"&&t.length>0,Ku=t=>{if(!t||typeof t!="object")return null;if(Hy(t.src))return t.src;let e=t.content;return!e||typeof e!="object"?null:Hy(e.src)?e.src:Hy(e.storageUrl)?e.storageUrl:null}});var Gu,Gy,Nv=D(()=>{"use strict";jt();Gu=(t,e)=>(I(e)?e:Object.values(e)).reduce((n,r)=>Math.abs(r-t)<Math.abs(n-t)?r:n),Gy=(t,e)=>(t=parseFloat(t),E(e)&&(e=Object.values(e)),Gu(t,e))});function ao(t){let e=String(t||"").trim();if(!e)return{owner:Yy,key:"",full:""};let n=null,r=e;if(e.includes("/")){let s=e.indexOf("/");n=e.slice(0,s),r=e.slice(s+1)}r=r.replace(/\.symbo\.ls$/iu,""),n||(n=Yy);let o=r?`${n}/${r}`:"";return{owner:n,key:r,full:o}}async function Qu(t,e={}){if((e.provider||"kv")==="api")return Yv(t,e);let r=await O$(t,e);return r||Yv(t,e)}async function O$(t,e={}){let n=e.kvBaseUrl||Q2,r=e.env||"production",o=`${n}/kv/${encodeURIComponent(t)}?env=${r}`;try{let s=await fetch(o,{method:"GET"});return s.ok&&(await s.json())?.value||null}catch{return null}}async function Yv(t,e={}){let n=e.apiBaseUrl||J2,{key:r}=ao(t);try{let o=`${n}/core/projects/libraries/available?search=${encodeURIComponent(r)}&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(p=>{let{key:g}=ao(p?.key);return g.toLowerCase()===r.toLowerCase()});if(!c?.id&&!c?._id)return null;let l=c.id||c._id,f=`${n}/core/projects/${encodeURIComponent(l)}/data?branch=main`,u=await fetch(f,{method:"GET"});if(!u.ok)return null;let d=await u.json();return d?.data||d||null}catch{return null}}async function Xv(t,e={}){if(E(t))return t;if(v(t)){let{full:n}=ao(t);if(!n)return null;try{let r=await Qu(n,e);return r||console.warn(`[smbls] Shared library "${n}" not found`),r}catch(r){return console.warn(`[smbls] Failed to fetch shared library "${n}":`,r.message),null}}return null}async function rb(t,e={}){return!t||!t.length?[]:(await Promise.all(t.map(async r=>{if(Je(r)){let o=await Xv(tE(r),e);return o?{library:o,ignoreList:r.ignoreList}:null}return Xv(r,e)}))).filter(Boolean)}var Yy,Q2,J2,Ts,Zv,t$,e$,Fv,Qv,jv,Jv,n$,bc,Qy,Je,tE,Xy,Jy,r$,o$,eE,tb,nE,Bv,io,eb,s$,pr,i$,rE,oE,Vv,a$,c$,l$,f$,Uv,Yu,u$,sE,Zy,iE,d$,zv,p$,h$,g$,m$,Xu,nb,y$,b$,_$,Hv,_c,w$,Wv,Os,Rs,qv,Zu,yc,S$,x$,Kv,Gv,wc,k$,v$,E$,A$,C$,T$,aE,Sc,xc,cE=D(()=>{"use strict";jt();Wr();Yf();dn();Yy="system",Q2="https://smbls-kv.nika-980.workers.dev",J2="https://api.symbols.app";Ts=(t,e,n,r)=>{for(let o in e){let s=r?`${r}/${o}`:o;n&&n.has(s)||(o in t?E(t[o])&&E(e[o])&&Ts(t[o],e[o],n,s):t[o]=e[o])}},Zv=(t,e,n)=>{if(!E(t)||!e.size)return t;let r=`${n}/`,o=!1;for(let i of e)if(i.startsWith(r)){o=!0;break}if(!o)return t;let s={};for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let a=`${n}/${i}`;e.has(a)||(s[i]=Zv(t[i],e,a))}return s},t$=new Set,e$=new Set(["components","pages","functions","snippets","methods"]),Fv=(t,e)=>e===""&&e$.has(t),Qv=["fontFamily","fontfamily","font_family","FONT_FAMILY"],jv=t=>{let e=new Map;if(!E(t))return e;for(let n of Qv){let r=t[n];if(E(r))for(let o in r)!E(r[o])||!r[o].isDefault||(e.has(n)||e.set(n,new Set),e.get(n).add(o))}return e},Jv=(t,e)=>{for(let n of Qv){let r=t[n];if(!E(r))continue;let o=e.get(n),s=null;for(let i in r){let a=r[i];if(!E(a)||!a.isDefault||o&&o.has(i))continue;let c={...a};delete c.isDefault,s||(s={...r}),s[i]=c}s&&(t[n]=s)}},n$=t=>t.replace(/\.js$/iu,""),bc=t=>{let e=new Set;if(!Array.isArray(t))return e;for(let n of t){if(!v(n))continue;let r=n.split("/").map(o=>n$(o.trim())).filter(Boolean).join("/");r&&e.add(r)}return e},Qy=(t,e={})=>({library:t,ignoreList:Array.isArray(e.ignoreList)?e.ignoreList:[]}),Je=t=>E(t)&&Array.isArray(t.ignoreList)&&("library"in t||"key"in t||"name"in t),tE=t=>t.library!==void 0?t.library:t.key??t.name,Xy=new Set,Jy=()=>{Xy.clear()},r$=(t,e)=>{let n=e.filter(r=>!Xy.has(r));if(n.length){for(let r of n)Xy.add(r);tt()&&console.warn(`[smbls] shared library "${t}" ships ${n.map(r=>`methods.${r}`).join(", ")} \u2014 named like a built-in element method. Refused: the built-in wins; a library cannot replace an element method on the consuming app. If the app wants this version, declare it in the app's OWN methods.`)}},o$=(t,e,n)=>{let r=null;for(let o in t)if(Hr(o)&&(e.has(`methods/${o}`)||n.push(o),!r)){r={};for(let s in t)Hr(s)||(r[s]=t[s])}return r||t},eE=(t,e)=>{let n=bc(t.sharedLibIgnore);return t.sharePages===!1&&n.add("pages"),n.size?new Set([...e,...n]):e},tb=["functions","methods","snippets"],nE=["components","pages"],Bv=Symbol.for("smbls.libraryScope"),io="__libraryScopes",eb=new Map,s$=()=>Math.random().toString(36).slice(2,10)+Date.now().toString(36).slice(-4),pr=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i$=/const __scope = |const __peers_* = |const _s = el\?\.scope|\?\.context\?\.globalScope\?\./,rE=t=>{try{return we(t)}catch{return null}},oE=t=>{if(typeof t!="function")return null;let e=rE(t);return v(e)&&i$.test(e)&&Qt(e)?e:null},Vv=t=>v(t)&&Qt(t)||oE(t)!==null,a$=t=>{let e=t.globalScope;return E(e)&&Object.keys(e).some(n=>Vv(e[n]))?!0:tb.some(n=>{let r=t[n];return!!r&&typeof r=="object"&&Object.keys(r).some(o=>Vv(r[o]))})},c$=(t,e,n)=>{let r=t.globalScope,o=e.globalScope;if(n.has("globalScope")||!E(r)||!E(o)||!a$(e))return 0;let s=0;for(let i of Object.keys(o))n.has(`globalScope/${i}`)||pr(r,i)&&s++;return s},l$=[[/const __scope = (\(\(\) => \{ const r = [\s\S]*?\}\)\(\));/g,"const __scope = $RESOLVE($1);"],[/const __scope = this \?\? \{\};/g,"const __scope = $RESOLVE(this ?? {});"],[/const (__peers_*) = (this && this !== globalThis && this\.context && this\.context\.globalScope \? this\.scope \?\? this\.context\.globalScope : this);/g,"const $1 = $RESOLVE($2);"],[/const _s = (el\?\.scope \?\? el\?\.context\?\.globalScope \?\? \{\});/g,"const _s = $RESOLVE($1);"],[/(?<![\w$.])(this|[A-Za-z_$][\w$]*)\?\.context\?\.globalScope\?\./g,"$RESOLVE($1?.context?.globalScope)?."]],f$=t=>{let e=t.split(""),n=[],r=0,o=0,s=(a,c)=>{for(let l=a;l<c;l++)e[l]!==`
34
34
  `&&(e[l]="~")},i=()=>{let a=r;for(;r<t.length;){let c=t[r];if(c==="\\"){r+=2;continue}if(c==="`"){s(a,r),r++;return}if(c==="$"&&t[r+1]==="{"){s(a,r),r+=2,n.push(o),o++;return}r++}s(a,r)};for(;r<t.length;){let a=t[r];if(a==="/"&&t[r+1]==="/"){let c=t.indexOf(`
35
35
  `,r),l=c===-1?t.length:c;s(r,l),r=l;continue}if(a==="/"&&t[r+1]==="*"){let c=t.indexOf("*/",r+2),l=c===-1?t.length:c+2;s(r,l),r=l;continue}if(a==='"'||a==="'"){let c=a,l=++r;for(;r<t.length&&t[r]!==c&&t[r]!==`
36
- `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},Bv=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!t.includes("const _s = ")&&!t.includes("?.context?.globalScope?.")||!Qt(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of i$){let i=a$(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},Gu=(t,e)=>{if(v(t))return Bv(t,e);let n=nE(t);return n===null?t:Bv(n,e)},c$={lazy:!0,window:globalThis},rE=(t,e)=>{let n=Gu(t,e);if(n===t||!v(n))return n;try{let r=ie({v:n},{},c$).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},Xy=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},oE=(t,e,n=new WeakMap)=>{if(v(t)||typeof t=="function")return rE(t,e);if(_a(t)||!Xy(t))return t;if(n.has(t))return n.get(t);let r=Array.isArray(t)?[]:Object.getPrototypeOf(t)===null?Object.create(null):{};n.set(t,r);for(let o of Object.keys(t))r[o]=oE(t[o],e,n);return r},l$=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=Gu(t.globalScope[o],e);n.globalScope=r;for(let o of Jy){let s=t[o];if(!Xy(s))continue;let i={};for(let a of Object.keys(s))i[a]=rE(s[a],e);n[o]=i}for(let o of tE)Xy(t[o])&&(n[o]=oE(t[o],e));return n},Vv=new WeakMap,f$=(t,e,n)=>{let r=Vv.get(t);r||Vv.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>pr(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||pr(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return pr(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!pr(i,a)&&pr(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},u$=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",d$=(t,e)=>{let n=tb.get(t);return n?e===n.consumerGs?n.libGs:u$(e)?f$(e,n.libGs,n.consumerGs):e:e},p$=()=>{typeof globalThis[Fv]!="function"&&Object.defineProperty(globalThis,Fv,{value:d$,configurable:!0})},Yu=t=>{let e=t[io];return Array.isArray(e)?e:null},eb=t=>Qe(t)?t.library:t,h$=(t,e,n)=>{let r=Yu(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&g$(t,o.id))},g$=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...Jy,...tE])if(o(t[s]))return!0;return!1},m$=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=Gu(t[r],e);return n},Uv=new WeakMap,yc=(t,e=null)=>{let n=t&&Yu(t);if(!n||!n.length)return 0;let r=t.globalScope;if(!E(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=Uv.get(r);s||Uv.set(r,s=new Set),p$();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=eb(o[a.index]);if(!c||!E(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?eE(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=E(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&pr(c.globalScope,p)&&pr(e,p)&&f(e[p],Gu(c.globalScope[p],a.id))):[],d=Xr(m$(c.globalScope,a.id));Object.setPrototypeOf(d,r),tb.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},y$=/^@symbo[-.]ls\//,zv=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,Os=(t,e)=>{let n=[];if(!Array.isArray(t))return n;let r=new Map,o=(i,a,c)=>{for(let l of[`@symbo-ls/${i}`,`@symbo.ls/${i}`]){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=eb(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!y$.test(f))continue;let u=zv(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&zv(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Rs=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},Hv=["functions","methods","snippets"],Xu=Symbol.for("smbls.libraryPackages"),gc=new WeakMap,b$=t=>!!t&&typeof t=="object"&&!Array.isArray(t),_$=t=>({get globalScope(){return t()}}),Wv=(t,e,n)=>{let r={};for(let o of Object.keys(t))r[o]=t[o];return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:_$(e)}),gc.set(r,n),r},qv=t=>!b$(t)||!gc.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),bc=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of Hv){let o=t[r];qv(o)||gc.get(o)===t||(t[r]=Wv(o,e,t))}if(Array.isArray(t.sharedLibraries)){let r=Yu(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=Qe(o)&&o&&"library"in o,a=eb(o);if(!a||typeof a!="object"||a.__isStub||gc.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&tb.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of Hv)qv(a[u])||(f[u]=Wv(a[u],l,t));return gc.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of Os(t.sharedLibraries,Rs))r[o]=s;try{Object.defineProperty(n,Xu,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},w$=(t,e,n,r="library",o=-1)=>{let s=Jv(e,n),i=!h$(t,o,e)&&s$(t,e,s)>0?`${r}#${n$()}`:null,a=i?l$(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==io&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(E(a[f])&&E(t[f])){if(f==="designSystem")Ts(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&Hr(u)){u in t[f]||l.push(u);continue}u in t[f]?Mv(f,t[f][u])&&!Mv(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?e$(u,s,l):u;t[f]=Yv(d,s,f)}}i&&(Yu(t)||(t[io]=[]),t[io].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&t$(r,l)},S$=(t,e,n)=>{if(t!==e){let r=Qv(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},x$=`${Gy}/default`,k$=t=>v(t)&&t!==""&&ao(t).full===x$,v$=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},E$=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=Z2;if(Qe(s)&&(i=mc(s.ignoreList),s=s.library),!E(s))continue;let a={entry:o,lib:s,ignore:i,index:r};k$(v$(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},sE=(t,e,n)=>{let r=Nv(e()),{linked:o,bases:s}=E$(t);for(let a of o)n(a);let i=!r.size&&s.length?Nv(e()):null;for(let a of s)n(a);return r.size?r:i&&i.size?i:null},_c=(t,e)=>{if(!e||!e.length)return;let n=t.designSystem,r=sE(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>w$(t,s,i,S$(o,s,a),a));r&&(t.designSystem!==n&&(t.designSystem={...t.designSystem}),Zv(t.designSystem,r))},wc=(t,e,n=Ts)=>{if(!E(t)||!Array.isArray(e)||!e.length)return t;let r=sE(e,()=>t,({lib:o,ignore:s})=>{let i=o.designSystem;if(!i||typeof i!="object")return;let a=Jv(o,s);a.has("designSystem")||n(t,i,a,"designSystem")});return r&&Zv(t,r),t}});var rb,ob,sb,co,ib,Sc,ab,lo,aE=D(()=>{"use strict";jt();rb=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},ob=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},sb=t=>t.replace(/[^a-zA-Z0-9_]/g,""),co=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),ib=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Sc=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),ab=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},lo=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(E(t))return Object.values(t);if(Ie(t))return[t]}});var cb,cE=D(()=>{"use strict";cb=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var ce,Ps,xc,kc,lE=D(()=>{"use strict";ce=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Ps=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},xc=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Ps(e,{keepOneX:!1})},kc=(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 n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Ps(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Ps(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Ls={};F(Ls,{CDN_PROVIDERS:()=>Ne,DOMQL_EVENTS:()=>Bg,DOMQ_PROPERTIES:()=>rr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>im,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Xu,LIBRARY_SCOPES_KEY:()=>io,METHODS:()=>sr,METHODS_EXL:()=>ha,NODE_ENV:()=>Ge,OPTIONS:()=>Va,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>pa,PROPS_METHODS:()=>or,REVIVED_MARK:()=>wa,STATE_METHODS:()=>zr,STATE_PROPERTIES:()=>Fg,SVG_TAGS:()=>Ak,TYPES:()=>ia,UNIVERSAL_RESERVED_KEYS:()=>zu,__resetBuiltinMethodWarnings:()=>Qy,addCaching:()=>mu,addContext:()=>gu,addExtend:()=>Om,addExtends:()=>dn,addItemAfterEveryElement:()=>Eg,addProtoToArray:()=>la,addRef:()=>du,applyDependentState:()=>Gm,applyEvent:()=>xu,applyEventUpdate:()=>ku,applyExtends:()=>Ok,applyProps:()=>Ia,arrayContainsOtherArray:()=>bg,arraysEqual:()=>Cg,arrayzeValue:()=>lo,bindLibraryGlobalScopes:()=>yc,buildImgSrcset:()=>xc,buildSourcesAndImg:()=>kc,cache:()=>Jm,call:()=>Cy,captureSnapshot:()=>Oy,checkForStateTypes:()=>Hm,checkIfInherits:()=>Su,checkIfStringIsInArray:()=>Rg,clone:()=>Wg,cloneAndMergeArrayExtend:()=>Aa,cloneFunction:()=>pm,collectExtendsList:()=>ms,concatAddExtends:()=>Am,copyJavaScriptToClipboard:()=>ob,copyStringToClipboard:()=>rb,createBasedOnType:()=>uu,createElement:()=>zm,createElementExtends:()=>Jf,createExtends:()=>Ta,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ru,createIfConditionFlag:()=>hm,createInheritedState:()=>Wm,createKey:()=>va,createNestedObject:()=>Jg,createNestedObjectByKeyPath:()=>Km,createObjectWithoutPrototype:()=>Wf,createParent:()=>pu,createPath:()=>hu,createProps:()=>$a,createPropsStack:()=>lu,createRoot:()=>Um,createScope:()=>Xm,createSnapshotId:()=>ka,customDecodeURIComponent:()=>Ng,customEncodeURIComponent:()=>Mg,cutArrayAfterValue:()=>kg,cutArrayBeforeValue:()=>xg,debounce:()=>Ea,debounceOnContext:()=>um,decodeNewlines:()=>$g,deepClone:()=>ut,deepContains:()=>Zg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Qf,deepMerge:()=>at,deepMergeExtends:()=>pn,deepStringifyFunctions:()=>ya,defineSetter:()=>Ey,destringifyGlobalScope:()=>Xr,detectHeightOnInit:()=>Iy,detectInfiniteLoop:()=>rm,document:()=>dt,encodeNewlines:()=>Ig,error:()=>eo,excludeKeysFromObject:()=>sm,exec:()=>pt,exposeBagGlobalScopes:()=>bc,extendCachedRegistry:()=>Cm,extendStackRegistry:()=>Oa,extractArrayExtend:()=>Pa,fetchLibraryData:()=>Zu,fibonacciNumberByIndex:()=>$y,fileEntryUrl:()=>qu,filterArrays:()=>Tg,filterArraysFast:()=>Og,finalizeExtends:()=>ou,findClosestNumber:()=>Ku,findClosestNumberInFactory:()=>Ky,findInheritedState:()=>wu,findKeyPosition:()=>Lg,flattenExtend:()=>bs,formatDate:()=>Dy,generateHash:()=>Yf,generateHeadArrayTags:()=>Wu,generateKey:()=>xa,generateMetaTags:()=>Wy,get:()=>Sy,getCDNDirUrl:()=>Hu,getCDNUrl:()=>Ze,getCapitalCaseKeys:()=>Lm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>_u,getChildren:()=>vy,getContext:()=>ic,getCookie:()=>_m,getDB:()=>uc,getEmotionStylesheet:()=>cb,getExtendsInElement:()=>Rm,getExtendsStack:()=>Ca,getExtendsStackRegistry:()=>Zf,getFrequencyInArray:()=>_g,getFunctionSource:()=>we,getHashedExtend:()=>Ra,getImportMapScript:()=>Ly,getInObjectByPath:()=>nm,getLocalStorage:()=>Sm,getNev:()=>fm,getPageMetadata:()=>qy,getParentStateInKey:()=>bu,getPath:()=>tc,getQuery:()=>dc,getRef:()=>ky,getRoot:()=>rc,getRootContext:()=>sc,getRootData:()=>oc,getRootState:()=>nc,getRootStateInKey:()=>yu,getSpreadChildren:()=>Dm,global:()=>gg,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Gg,hashContent:()=>oo,inheritChildExtends:()=>eu,inheritChildPropsExtends:()=>tu,inheritParentProps:()=>Ma,inheritRecursiveChildExtends:()=>nu,initProps:()=>jm,is:()=>se,isArray:()=>I,isBoolean:()=>Ff,isBuiltinElementMethod:()=>jg,isContextComponent:()=>Im,isCyclic:()=>om,isDOMNode:()=>oe,isDate:()=>Bf,isDefined:()=>Dt,isDevelopment:()=>ar,isEmpty:()=>zf,isEmptyObject:()=>Yg,isEqualDeep:()=>Hf,isFailedRevival:()=>Gr,isFunction:()=>R,isHtmlElement:()=>oa,isLazyFunction:()=>qg,isLocal:()=>lm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Ty,isMobile:()=>ym,isNode:()=>En,isNot:()=>yg,isNotProduction:()=>Qr,isNull:()=>jf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>My,isPolyglotRetranslatableKey:()=>Ba,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRevived:()=>Yr,isStaging:()=>cm,isState:()=>qm,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>_a,isTest:()=>Kf,isTesting:()=>am,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Ry,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>km,isWrappedLibrary:()=>Qe,joinArrays:()=>is,jointStacks:()=>Tm,keys:()=>Vu,libraryPackageSpecs:()=>Os,loadCssFile:()=>By,loadJavascript:()=>Vy,loadJavascriptFile:()=>Ny,loadJavascriptFileEmbedSync:()=>jy,loadJavascriptFileSync:()=>Fy,loadRemoteCSS:()=>Uy,loadRemoteScript:()=>Cs,log:()=>Ay,logGroupIf:()=>mm,logIf:()=>gm,lookdown:()=>_y,lookdownAll:()=>wy,lookup:()=>by,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Xg,map:()=>Hg,mapStringsWithContextComponents:()=>La,markPolyglotSeeded:()=>gn,markRevived:()=>us,matchesComponentNaming:()=>hn,memoize:()=>dm,merge:()=>xt,mergeSharedLibraries:()=>_c,mergeSharedLibraryDesignSystems:()=>wc,nextElement:()=>cc,normalizeIgnoreList:()=>mc,normalizeLibraryKey:()=>ao,objectToString:()=>ba,objectizeStringProperty:()=>Da,overwrite:()=>Sa,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Ym,parse:()=>Uu,parseDeep:()=>Qa,pickupElementFromProps:()=>au,pickupPropsFromElement:()=>iu,polyglotSeededKeys:()=>_s,previousElement:()=>lc,promoteActiveRootState:()=>xs,propExists:()=>Nm,propertizeElement:()=>cu,propertizeUpdate:()=>Mm,remove:()=>Sv,removeChars:()=>sb,removeCookie:()=>wm,removeDuplicateProps:()=>Fa,removeDuplicatesInArray:()=>as,removeFromArray:()=>wg,removeFromObject:()=>Qg,removeNestedKeyByPath:()=>tm,removeValueFromArray:()=>ca,removeValueFromArrayAll:()=>vg,reorderArrayByValues:()=>Ag,repairLegacyArrowScopePreamble:()=>ga,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Dg,resolveAsset:()=>ce,resolveFileReferences:()=>so,resolveHandler:()=>hs,resolveSharedLibraries:()=>nb,returnValueAsText:()=>fu,runPluginHook:()=>Ct,self:()=>mg,setActiveRootState:()=>ec,setCookie:()=>bm,setHashedExtend:()=>Xf,setInObjectByPath:()=>em,setLocalStorage:()=>xm,setNodeStyles:()=>Bu,setProps:()=>xy,setPropsPrototype:()=>Na,sharedLibrary:()=>Zy,splitPackageSpecifier:()=>pc,spotByPath:()=>Ja,srcsetFor:()=>Ps,stringIncludesAny:()=>ua,stringToObject:()=>Kg,stripVersionRangePrefix:()=>hc,swapItemsInArray:()=>Sg,syncProps:()=>ja,toCamelCase:()=>co,toDashCase:()=>Sc,toDescriptionCase:()=>ab,toPriorityOrder:()=>$e,toTitleCase:()=>ib,toggleFullscreen:()=>Py,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Zm,trimStringFromSymbols:()=>Pg,unstackArrayOfObjects:()=>aa,update:()=>Fm,updateProps:()=>Bm,variables:()=>fc,verbose:()=>ks,warn:()=>ac,warnLibraryAliasCollision:()=>Rs,window:()=>C});var $=D(()=>{"use strict";qf();Gf();jt();un();cr();cs();sa();kk();vk();da();ra();Ek();vm();Pm();Vm();su();$k();Bk();Wr();Vk();kv();ty();vv();Qm();Ev();Ug();Av();Cv();Tv();Ov();Rv();Pv();Lv();Iv();$v();iE();aE();cE();lE()});var cn,lf,ff,eh=D(()=>{cn=Object.create(null);cn.open="0";cn.close="1";cn.ping="2";cn.pong="3";cn.message="4";cn.upgrade="5";cn.noop="6";lf=Object.create(null);Object.keys(cn).forEach(t=>{lf[cn[t]]=t});ff={type:"error",data:"parser error"}});function iL(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function fL(t,e){if(aL&&t.data instanceof Blob)return t.data.arrayBuffer().then(iL).then(e);if(cL&&(t.data instanceof ArrayBuffer||lL(t.data)))return e(iL(t.data));uf(t,!1,n=>{Wx||(Wx=new TextEncoder),e(Wx.encode(n))})}var aL,cL,lL,uf,sL,Wx,uL=D(()=>{eh();aL=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",cL=typeof ArrayBuffer=="function",lL=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,uf=({type:t,data:e},n,r)=>aL&&e instanceof Blob?n?r(e):sL(e,r):cL&&(e instanceof ArrayBuffer||lL(e))?n?r(e):sL(new Blob([e]),r):r(cn[t]+(e||"")),sL=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var dL,df,pL,hL=D(()=>{dL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",df=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<dL.length;t++)df[dL.charCodeAt(t)]=t;pL=t=>{let e=t.length*.75,n=t.length,r,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(r=0;r<n;r+=4)s=df[t.charCodeAt(r)],i=df[t.charCodeAt(r+1)],a=df[t.charCodeAt(r+2)],c=df[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var G4,pf,Y4,gL,mL=D(()=>{eh();hL();G4=typeof ArrayBuffer=="function",pf=(t,e)=>{if(typeof t!="string")return{type:"message",data:gL(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:Y4(t.substring(1),e)}:lf[n]?t.length>1?{type:lf[n],data:t.substring(1)}:{type:lf[n]}:ff},Y4=(t,e)=>{if(G4){let n=pL(t);return gL(n,e)}else return{base64:!0,data:t}},gL=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function wL(){return new TransformStream({transform(t,e){fL(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function nh(t){return t.reduce((e,n)=>e+n.length,0)}function rh(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function SL(t,e){qx||(qx=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(nh(n)<1)break;let c=rh(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(nh(n)<2)break;let c=rh(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(nh(n)<8)break;let c=rh(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(ff);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(nh(n)<o)break;let c=rh(n,o);a.enqueue(pf(s?c:qx.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(ff);break}}}})}var yL,bL,_L,qx,Kx,Mi=D(()=>{uL();mL();eh();yL="",bL=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{uf(s,!1,a=>{r[i]=a,++o===n&&e(r.join(yL))})})},_L=(t,e)=>{let n=t.split(yL),r=[];for(let o=0;o<n.length;o++){let s=pf(n[o],e);if(r.push(s),s.type==="error")break}return r};Kx=4});function gt(t){if(t)return X4(t)}function X4(t){for(var e in gt.prototype)t[e]=gt.prototype[e];return t}var Ho=D(()=>{gt.prototype.on=gt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};gt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};gt.prototype.off=gt.prototype.removeListener=gt.prototype.removeAllListeners=gt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};gt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};gt.prototype.emitReserved=gt.prototype.emit;gt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};gt.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Yn,ne,xL,Wo=D(()=>{Yn=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ne=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),xL="arraybuffer"});function oh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Xn(t,e){e.useNativeTimers?(t.setTimeoutFn=Z4.bind(ne),t.clearTimeoutFn=Q4.bind(ne)):(t.setTimeoutFn=ne.setTimeout.bind(ne),t.clearTimeoutFn=ne.clearTimeout.bind(ne))}function kL(t){return typeof t=="string"?t5(t):Math.ceil((t.byteLength||t.size)*J4)}function t5(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function sh(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var Z4,Q4,J4,qo=D(()=>{Wo();Z4=ne.setTimeout,Q4=ne.clearTimeout;J4=1.33});function vL(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function EL(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Gx=D(()=>{});var ih,Zn,hf=D(()=>{Mi();Ho();qo();Gx();ih=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Zn=class extends gt{constructor(e){super(),this.writable=!1,Xn(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new ih(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=pf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=vL(e);return n.length?"?"+n:""}}});var Ni,Yx=D(()=>{hf();qo();Mi();Ni=class extends Zn{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};_L(e,this.socket.binaryType).forEach(n),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,bL(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=sh()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var AL,CL,TL=D(()=>{AL=!1;try{AL=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}CL=AL});function e5(){}function OL(){for(let t in $r.requests)$r.requests.hasOwnProperty(t)&&$r.requests[t].abort()}function RL(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||CL))return new XMLHttpRequest}catch{}if(!e)try{return new ne[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Xx,$r,n5,Qn,ah=D(()=>{Yx();Ho();qo();Wo();TL();Xx=class extends Ni{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},$r=class t extends gt{constructor(e,n,r){super(),this.createRequest=e,Xn(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=oh(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=e5,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()}};$r.requestsCount=0;$r.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",OL);else if(typeof addEventListener=="function"){let t="onpagehide"in ne?"pagehide":"unload";addEventListener(t,OL,!1)}}n5=(function(){let t=RL({xdomain:!1});return t&&t.responseType!==null})(),Qn=class extends Xx{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=n5&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new $r(RL,this.uri(),e)}}});var PL,Qx,Zx,Jn,ch=D(()=>{hf();qo();Mi();Wo();PL=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Qx=class extends Zn{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=PL?{}:oh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;uf(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&Yn(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=sh()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},Zx=ne.WebSocket||ne.MozWebSocket,Jn=class extends Qx{createSocket(e,n,r){return PL?new Zx(e,n,r):n?new Zx(e,n):new Zx(e)}doWrite(e,n){this.ws.send(n)}}});var Ko,Jx=D(()=>{hf();Wo();Mi();Ko=class extends Zn{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 n=SL(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=wL();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&Yn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var t0,e0=D(()=>{ah();ch();Jx();t0={websocket:Jn,webtransport:Ko,polling:Qn}});function Fi(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=r5.exec(t||""),s={},i=14;for(;i--;)s[o5[i]]=o[i]||"";return n!=-1&&r!=-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=s5(s,s.path),s.queryKey=i5(s,s.query),s}function s5(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function i5(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var r5,o5,n0=D(()=>{r5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var r0,lh,Go,fh,ji,o0=D(()=>{e0();qo();Gx();n0();Ho();Mi();Wo();r0=typeof addEventListener=="function"&&typeof removeEventListener=="function",lh=[];r0&&addEventListener("offline",()=>{lh.forEach(t=>t())},!1);Go=class t extends gt{constructor(e,n){if(super(),this.binaryType=xL,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=Fi(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Fi(n.host).host);Xn(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=EL(this.opts.query)),r0&&(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"})},lh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=Kx,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=kL(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Yn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),r0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=lh.indexOf(this._offlineEventListener);r!==-1&&lh.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Go.protocol=Kx;fh=class extends Go{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 n=this.createTransport(e),r=!1;Go.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Go.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},ji=class extends fh{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>t0[o]).filter(o=>!!o)),super(e,r)}}});var gf,LL=D(()=>{Yx();gf=class extends Ni{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var bZ,uh=D(()=>{o0();o0();hf();e0();qo();n0();Wo();LL();ah();ah();ch();ch();Jx();bZ=ji.protocol});function DL(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=Fi(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var IL=D(()=>{uh()});function yf(t){return a5&&(t instanceof ArrayBuffer||c5(t))||l5&&t instanceof Blob||f5&&t instanceof File}function mf(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(mf(t[n]))return!0;return!1}if(yf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return mf(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&mf(t[n]))return!0;return!1}var a5,c5,$L,l5,f5,s0=D(()=>{a5=typeof ArrayBuffer=="function",c5=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,$L=Object.prototype.toString,l5=typeof Blob=="function"||typeof Blob<"u"&&$L.call(Blob)==="[object BlobConstructor]",f5=typeof File=="function"||typeof File<"u"&&$L.call(File)==="[object FileConstructor]"});function ML(t){let e=[],n=t.data,r=t;return r.data=i0(n,e),r.attachments=e.length,{packet:r,buffers:e}}function i0(t,e){if(!t)return t;if(yf(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 r=0;r<t.length;r++)n[r]=i0(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=i0(t[r],e));return n}return t}function NL(t,e){return t.data=a0(t.data,e),delete t.attachments,t}function a0(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 n=0;n<t.length;n++)t[n]=a0(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=a0(t[n],e));return t}var FL=D(()=>{s0()});var BL=Gh((NZ,jL)=>{var Bi=1e3,Vi=Bi*60,Ui=Vi*60,Yo=Ui*24,u5=Yo*7,d5=Yo*365.25;jL.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return p5(t);if(n==="number"&&isFinite(t))return e.long?g5(t):h5(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function p5(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*d5;case"weeks":case"week":case"w":return n*u5;case"days":case"day":case"d":return n*Yo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Ui;case"minutes":case"minute":case"mins":case"min":case"m":return n*Vi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Bi;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function h5(t){var e=Math.abs(t);return e>=Yo?Math.round(t/Yo)+"d":e>=Ui?Math.round(t/Ui)+"h":e>=Vi?Math.round(t/Vi)+"m":e>=Bi?Math.round(t/Bi)+"s":t+"ms"}function g5(t){var e=Math.abs(t);return e>=Yo?dh(t,e,Yo,"day"):e>=Ui?dh(t,e,Ui,"hour"):e>=Vi?dh(t,e,Vi,"minute"):e>=Bi?dh(t,e,Bi,"second"):t+" ms"}function dh(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var UL=Gh((FZ,VL)=>{function m5(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=BL(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,S=Number(new Date),b=S-(u||S);y.diff=b,y.prev=u,y.curr=S,u=S,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(w,k)=>{if(w==="%%")return"%";x++;let A=n.formatters[k];if(typeof A=="function"){let T=m[x];w=A.call(y,T),m.splice(x,1),x--}return w}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.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 n.enable(n.load()),n}VL.exports=m5});var zL=Gh((be,ph)=>{be.formatArgs=b5;be.save=_5;be.load=w5;be.useColors=y5;be.storage=S5();be.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`."))}})();be.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 y5(){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 b5(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+ph.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}be.log=console.debug||console.log||(()=>{});function _5(t){try{t?be.storage.setItem("debug",t):be.storage.removeItem("debug")}catch{}}function w5(){let t;try{t=be.storage.getItem("debug")||be.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function S5(){try{return localStorage}catch{}}ph.exports=UL()(be);var{formatters:x5}=ph.exports;x5.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var p0={};F(p0,{Decoder:()=>f0,Encoder:()=>l0,PacketType:()=>G,isPacketValid:()=>A5,protocol:()=>d0});function k5(t){return typeof t=="string"}function v5(t){return t===void 0||qL(t)}function hh(t){return Object.prototype.toString.call(t)==="[object Object]"}function E5(t,e){switch(t){case G.CONNECT:return e===void 0||hh(e);case G.DISCONNECT:return e===void 0;case G.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&WL.indexOf(e[0])===-1);case G.ACK:return Array.isArray(e);case G.CONNECT_ERROR:return typeof e=="string"||hh(e);default:return!1}}function A5(t){return k5(t.nsp)&&v5(t.id)&&E5(t.type,t.data)}var HL,c0,WL,d0,G,l0,f0,u0,qL,gh=D(()=>{Ho();FL();s0();HL=ZD(zL(),1),c0=(0,HL.default)("socket.io-parser"),WL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],d0=5;(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"})(G||(G={}));l0=class{constructor(e){this.replacer=e}encode(e){return c0("encoding packet %j",e),(e.type===G.EVENT||e.type===G.ACK)&&mf(e)?this.encodeAsBinary({type:e.type===G.EVENT?G.BINARY_EVENT:G.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===G.BINARY_EVENT||e.type===G.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),c0("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=ML(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},f0=class t extends gt{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===G.BINARY_EVENT;r||n.type===G.BINARY_ACK?(n.type=r?G.EVENT:G.ACK,this.reconstructor=new u0(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(yf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(G[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===G.BINARY_EVENT||r.type===G.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!qL(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return c0("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case G.CONNECT:return hh(n);case G.DISCONNECT:return n===void 0;case G.CONNECT_ERROR:return typeof n=="string"||hh(n);case G.EVENT:case G.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&WL.indexOf(n[0])===-1);case G.ACK:case G.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},u0=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 n=NL(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};qL=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Le(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var h0=D(()=>{});var C5,Xo,g0=D(()=>{gh();h0();Ho();C5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Xo=class extends gt{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Le(e,"open",this.onopen.bind(this)),Le(e,"packet",this.onpacket.bind(this)),Le(e,"error",this.onerror.bind(this)),Le(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,...n){var r,o,s;if(C5.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:G.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:G.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case G.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 G.EVENT:case G.BINARY_EVENT:this.onevent(e);break;case G.ACK:case G.BINARY_ACK:this.onack(e);break;case G.DISCONNECT:this.ondisconnect();break;case G.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:G.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:G.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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function Zo(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}var KL=D(()=>{Zo.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Zo.prototype.reset=function(){this.attempts=0};Zo.prototype.setMin=function(t){this.ms=t};Zo.prototype.setMax=function(t){this.max=t};Zo.prototype.setJitter=function(t){this.jitter=t}});var Qo,GL=D(()=>{uh();g0();gh();h0();KL();Ho();Qo=class extends gt{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Xn(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||p0;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 ji(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Le(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Le(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(Le(e,"ping",this.onping.bind(this)),Le(e,"data",this.ondata.bind(this)),Le(e,"error",this.onerror.bind(this)),Le(e,"close",this.onclose.bind(this)),Le(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Yn(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Xo(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var YL={};F(YL,{Fetch:()=>gf,Manager:()=>Qo,NodeWebSocket:()=>Jn,NodeXHR:()=>Qn,Socket:()=>Xo,WebSocket:()=>Jn,WebTransport:()=>Ko,XHR:()=>Qn,connect:()=>mh,default:()=>mh,io:()=>mh,protocol:()=>d0});function mh(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=DL(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=bf[o]&&s in bf[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Qo(r,e):(bf[o]||(bf[o]=new Qo(r,e)),c=bf[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var bf,XL=D(()=>{IL();GL();g0();gh();uh();bf={};Object.assign(mh,{Manager:Qo,Socket:Xo,io:mh,connect:mh})});var V0={};F(V0,{ANIMATION_PROPS:()=>$_,ARIA_ROLES:()=>dN,ATTR_TRANSFORMS:()=>Ao,BLOCK_PROPS:()=>M_,CDN_PROVIDERS:()=>Ne,COMPOUND_CSS_KEYWORDS:()=>uo,CONFIG:()=>mo,CONFIG_MERGE_EXL:()=>ve,CSS_LONGHAND_SHORTHANDS:()=>wn,CSS_NAMED_COLOR_HEX:()=>Qu,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_PROPS_REGISTRY:()=>_t,CSS_SHORTHAND_LONGHANDS:()=>yt,CSS_UNITS:()=>ss,DEFAULT_CONFIG:()=>Dl,DEFAULT_CSS_PROPERTIES_LIST:()=>Rt,DELEGATED_EVENTS:()=>ni,DESIGN_SYSTEM_OPTIONS:()=>ux,DOMQL_EVENTS:()=>Bg,DOMQ_PROPERTIES:()=>rr,DOM_EVENTS:()=>LA,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>im,FACTORY:()=>ke,FLEX_PROPS:()=>V_,FONT_PROPS:()=>N_,GRID_PROPS:()=>U_,HOST_REGISTERED_PACKAGES:()=>OP,HTML_ATTRIBUTES:()=>ii,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Xu,LIBRARY_SCOPES_KEY:()=>io,LIFECYCLE_EVENTS:()=>Er,METHODS:()=>sr,METHODS_EXL:()=>ha,MISC_PROPS:()=>F_,MIXINS:()=>Wd,NODE_ENV:()=>Ge,OPTIONS:()=>Va,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>pa,POSITION_PROPS:()=>j_,PROPS_METHODS:()=>or,REGISTRY:()=>Ut,RESERVED_STORE_METHODS:()=>tk,REVIVED_MARK:()=>wa,ROUTER_OPTIONS:()=>Ip,SIGNAL_ENGINE_KEY:()=>rs,SIGNAL_INSTANCES_KEY:()=>es,STANDARD_SCHEME_QUERIES:()=>xd,STATE_PROPERTIES:()=>Fg,STORE_METHOD_NAMES:()=>J0,SVG_TAGS:()=>ei,THEME_PROPS:()=>B_,TIMING_PROPS:()=>gl,TYPES:()=>ia,UNIVERSAL_RESERVED_KEYS:()=>zu,VALUE_TRANSFORMERS:()=>Ld,VERSION:()=>nk,__resetBuiltinMethodWarnings:()=>Qy,__resetSignalEngine:()=>dg,__resetSignalInstances:()=>fg,__resetSkinWarnings:()=>s_,__resetStateShadowWarnings:()=>ek,activateConfig:()=>hE,addCaching:()=>mu,addContext:()=>gu,addDelegatedEvent:()=>dl,addExtend:()=>Om,addExtends:()=>dn,addItemAfterEveryElement:()=>Eg,addMethods:()=>fi,addProtoToArray:()=>la,addRef:()=>du,aliasCaseVariants:()=>Vs,animation:()=>Db,appendSVGSprite:()=>el,appendSvgIconsSprite:()=>xo,applyAttrTransforms:()=>P_,applyCSS:()=>KS,applyDependentState:()=>Gm,applyDocument:()=>tl,applyEvent:()=>xu,applyEventUpdate:()=>ku,applyExtends:()=>si,applyHeadings:()=>Ed,applyInitialState:()=>sp,applyMediaSequenceVars:()=>gr,applyProps:()=>Ia,applyReset:()=>nl,applySequenceGlobalVars:()=>jc,applySequenceVars:()=>Dn,applySkins:()=>rl,applySpacingSequence:()=>zc,applyStateMethods:()=>Re,applyTimingSequence:()=>Jc,applyTrueProps:()=>W_,applyTypographySequence:()=>Xc,arrayContainsOtherArray:()=>bg,arraysEqual:()=>Cg,arrayzeValue:()=>lo,assertEmitIntegrity:()=>S_,batch:()=>If,bindLibraryGlobalScopes:()=>yc,breakpoints:()=>Pb,buildImgSrcset:()=>xc,buildSkinVarStyles:()=>ko,buildSourcesAndImg:()=>kc,buildThemeVarStyles:()=>Rp,cache:()=>Jm,cacheNode:()=>vr,call:()=>Cy,callStateMethod:()=>bl,camelToAttr:()=>jn,camelToLowerAttr:()=>MA,captureSnapshot:()=>Oy,changeGlobalTheme:()=>Dd,changeLightness:()=>hb,checkAttributeByTagName:()=>ze,checkEventFunctions:()=>R_,checkForStateTypes:()=>Hm,checkIfBoxSize:()=>Uc,checkIfInherits:()=>Su,checkIfStringIsInArray:()=>Rg,class:()=>Fb,clone:()=>Wg,cloneAndMergeArrayExtend:()=>Aa,cloneFunction:()=>pm,collectExtendsList:()=>ms,color:()=>vb,colorStringToRgbaArray:()=>Fe,components:()=>vi,compositeOverBackdrop:()=>po,concatAddExtends:()=>Am,contrastRatio:()=>$s,convertSvgToSymbol:()=>Vc,copyJavaScriptToClipboard:()=>ob,copyStringToClipboard:()=>rb,create:()=>N0,createAsync:()=>g6,createBasedOnType:()=>uu,createComputed:()=>Z0,createConfig:()=>Lc,createDefine:()=>zR,createDomqlElement:()=>wf,createEffect:()=>K,createElement:()=>zm,createElementExtends:()=>Jf,createExtends:()=>Ta,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ru,createHTMLNode:()=>ti,createIfConditionFlag:()=>hm,createInheritedState:()=>Wm,createKey:()=>va,createNestedObject:()=>Jg,createNestedObjectByKeyPath:()=>Km,createObjectWithoutPrototype:()=>Wf,createParent:()=>pu,createPath:()=>hu,createProps:()=>$a,createPropsStack:()=>lu,createRoot:()=>Um,createScope:()=>Xm,createScopeStore:()=>Mf,createSignal:()=>Br,createSkeleton:()=>y6,createSnapshotId:()=>ka,createState:()=>nw,createStore:()=>xn,createSync:()=>m6,css:()=>Te,cssMediaVars:()=>md,cssShorthandDepth:()=>al,cssShorthandStatesLonghand:()=>cl,cssVars:()=>gd,customDecodeURIComponent:()=>Ng,customEncodeURIComponent:()=>Mg,cutArrayAfterValue:()=>kg,cutArrayBeforeValue:()=>xg,debounce:()=>Ea,debounceOnContext:()=>um,decodeNewlines:()=>$g,deepClone:()=>ut,deepContains:()=>Zg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Qf,deepMerge:()=>at,deepMergeExtends:()=>pn,deepStringifyFunctions:()=>ya,defaultDefine:()=>Oi,defineResolvedThemeSignal:()=>Bs,defineSetter:()=>Ey,defineThemeSignal:()=>js,destringifyGlobalScope:()=>Xr,destroy:()=>Hl,detectHeightOnInit:()=>Iy,detectInfiniteLoop:()=>rm,detectTag:()=>Fn,devices:()=>Lb,dispose:()=>Vn,encodeNewlines:()=>Ig,error:()=>eo,excludeKeysFromObject:()=>sm,exec:()=>pt,executeAttr:()=>mN,exetuteClassPerComponent:()=>nF,exposeBagGlobalScopes:()=>bc,extendCachedRegistry:()=>Cm,extendStackRegistry:()=>Oa,extractArrayExtend:()=>Pa,extractConditionalAttrs:()=>L_,fetchLibraryData:()=>Zu,fibonacciNumberByIndex:()=>$y,fileEntryUrl:()=>qu,filterArrays:()=>Tg,filterArraysFast:()=>Og,filterAttributesByTagName:()=>gN,finalizeExtends:()=>ou,findClosestNumber:()=>Ku,findClosestNumberInFactory:()=>Ky,findHeadingLetter:()=>wd,findHeadings:()=>Fc,findInheritedState:()=>wu,findKeyPosition:()=>Lg,flattenExtend:()=>bs,font:()=>bb,fontFace:()=>Sb,fontFamily:()=>_b,fontFamilyTypes:()=>wb,formatDate:()=>Dy,generateHash:()=>Yf,generateHeadArrayTags:()=>Wu,generateKey:()=>xa,generateMetaTags:()=>Wy,generateSequence:()=>le,generateSequencePosition:()=>Wb,generateSprite:()=>Bc,generateSubSequence:()=>Mc,get:()=>Sy,getActiveConfig:()=>O,getActiveDocument:()=>Eo,getActiveLang:()=>Lr,getCDNDirUrl:()=>Hu,getCDNUrl:()=>Ze,getCacheSize:()=>k_,getCapitalCaseKeys:()=>Lm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>_u,getChildren:()=>vy,getColor:()=>st,getColorShade:()=>rd,getContext:()=>ic,getCookie:()=>_m,getDB:()=>uc,getDefaultOrFirstKey:()=>ho,getEmitStats:()=>Bd,getEmotionStylesheet:()=>cb,getExtendsInElement:()=>Rm,getExtendsStack:()=>Ca,getExtendsStackRegistry:()=>Zf,getFnPrefixAndValue:()=>Ln,getFontFace:()=>mb,getFontFaceEach:()=>go,getFontFaceEachString:()=>ud,getFontFaceString:()=>Tc,getFontFamily:()=>Yc,getFontFormat:()=>ld,getFontSizeByKey:()=>Zc,getFrequencyInArray:()=>_g,getFunctionSource:()=>we,getHashedExtend:()=>Ra,getImportMapScript:()=>Ly,getInObjectByPath:()=>nm,getLanguages:()=>Kl,getLocalStateLang:()=>Ql,getLocalStorage:()=>Sm,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getNev:()=>fm,getObserver:()=>_e,getPageMetadata:()=>qy,getParentStateInKey:()=>bu,getPath:()=>tc,getPendingLang:()=>ql,getQuery:()=>dc,getRef:()=>ky,getResolvedThemeSignal:()=>pE,getRgbTone:()=>mn,getRoot:()=>rc,getRootContext:()=>sc,getRootData:()=>oc,getRootState:()=>nc,getRootStateInKey:()=>yu,getSafeInk:()=>kd,getSafeInkInfo:()=>Yb,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>Nc,getSequenceValuePropertyPair:()=>bn,getShadow:()=>Wc,getShapeByKey:()=>Qc,getSignals:()=>Q0,getSizeValue:()=>_d,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getSpreadChildren:()=>Dm,getSubratio:()=>$c,getSubratioDifference:()=>Ic,getSystemGlobalTheme:()=>Oe,getTheme:()=>Jb,getThemeSignal:()=>dE,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,global:()=>gg,gradient:()=>Eb,grid:()=>Nb,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Gg,hashContent:()=>oo,hexToRgb:()=>fb,hexToRgbArray:()=>Ju,hexToRgba:()=>db,hslToRgb:()=>nd,icons:()=>Tb,inheritChildExtends:()=>eu,inheritChildPropsExtends:()=>tu,inheritParentProps:()=>Ma,inheritRecursiveChildExtends:()=>nu,init:()=>qn,initPolyglot:()=>Np,initProps:()=>jm,injectGlobal:()=>vt,is:()=>se,isArray:()=>I,isBoolean:()=>Ff,isBuiltinElementMethod:()=>jg,isCSSVar:()=>kt,isContextComponent:()=>Im,isCyclic:()=>om,isDOMNode:()=>oe,isDate:()=>Bf,isDefined:()=>Dt,isDevelopment:()=>ar,isDomDocument:()=>kn,isEmpty:()=>zf,isEmptyObject:()=>Yg,isEnumeratedTrueFalseAttr:()=>nn,isEqualDeep:()=>Hf,isFailedRevival:()=>Gr,isFunction:()=>R,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isHtmlElement:()=>oa,isLazyFunction:()=>qg,isLocal:()=>lm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Ty,isMobile:()=>ym,isNode:()=>En,isNot:()=>yg,isNotProduction:()=>Qr,isNull:()=>jf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>My,isPlainColor:()=>br,isPolyglotRetranslatableKey:()=>Ba,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRawUnitValue:()=>na,isResolvedColor:()=>Je,isRevived:()=>Yr,isScalingUnit:()=>Vr,isStaging:()=>cm,isState:()=>qm,isStore:()=>St,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>_a,isSvgTag:()=>kr,isTest:()=>Kf,isTesting:()=>am,isTracking:()=>ow,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Ry,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>km,isValidTag:()=>Js,isWasmLoaded:()=>dR,isWrappedLibrary:()=>Qe,isWritableFamilyBucket:()=>hg,joinArrays:()=>is,jointStacks:()=>Tm,keyframes:()=>Zs,keys:()=>Vu,libraryPackageSpecs:()=>Os,linearChannelToSrgb:()=>id,loadCssFile:()=>By,loadJavascript:()=>Vy,loadJavascriptFile:()=>Ny,loadJavascriptFileEmbedSync:()=>jy,loadJavascriptFileSync:()=>Fy,loadRemoteCSS:()=>Uy,loadRemoteScript:()=>Cs,loadTranslations:()=>Yl,loadWasm:()=>uR,log:()=>Ay,logGroupIf:()=>mm,logIf:()=>gm,lookdown:()=>_y,lookdownAll:()=>wy,lookup:()=>by,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Xg,map:()=>Hg,mapStringsWithContextComponents:()=>La,markPolyglotSeeded:()=>gn,markRevived:()=>us,matchesComponentNaming:()=>hn,media:()=>xb,memoize:()=>dm,merge:()=>xt,mergeSharedLibraries:()=>_c,mergeSharedLibraryDesignSystems:()=>wc,mixTwoColors:()=>lb,mixTwoRgb:()=>pb,mixTwoRgba:()=>od,nextElement:()=>cc,normalizeIgnoreList:()=>mc,normalizeLibraryKey:()=>ao,numToLetterMap:()=>yn,objectToString:()=>ba,objectizeStringProperty:()=>Da,oklabToLinearSrgb:()=>ad,oklabToOklch:()=>Ec,oklchToGamutSafeSrgb:()=>Ac,oklchToOklab:()=>cd,opacify:()=>Is,overwrite:()=>Sa,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Ym,parkHostObject:()=>nr,parse:()=>Uu,parseColorToken:()=>Zt,parseDeep:()=>Qa,pickupElementFromProps:()=>au,pickupPropsFromElement:()=>iu,polyglotFunctions:()=>af,polyglotPlugin:()=>Pi,polyglotSeededKeys:()=>_s,popConfig:()=>X,popStaticCssPass:()=>Jd,prepareContext:()=>$0,previousElement:()=>lc,promoteActiveRootState:()=>xs,propExists:()=>Nm,propertizeElement:()=>cu,propertizeUpdate:()=>Mm,pushConfig:()=>J,pushStaticCssPass:()=>Qd,quietColorProbe:()=>bo,refreshContextProto:()=>ui,registerEvent:()=>ri,registerHostPackages:()=>RP,registerSignalInstance:()=>ns,reinit:()=>qS,relativeLuminance:()=>fo,remove:()=>li,removeChars:()=>sb,removeCookie:()=>wm,removeDelegatedEvent:()=>pl,removeDuplicateProps:()=>Fa,removeDuplicatesInArray:()=>as,removeFromArray:()=>wg,removeFromObject:()=>Qg,removeNestedKeyByPath:()=>tm,removeValueFromArray:()=>ca,removeValueFromArrayAll:()=>vg,reorderArrayByValues:()=>Ag,repairLegacyArrowScopePreamble:()=>ga,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Dg,resetEmitStats:()=>w_,resolveAsset:()=>ce,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveColorsInGradient:()=>sl,resolveConfigDocument:()=>os,resolveDesignSystemClass:()=>QA,resolveFileReferences:()=>so,resolveFileSource:()=>O_,resolveFileUrl:()=>je,resolveGridTracks:()=>KA,resolveHandler:()=>hs,resolvePropValue:()=>Ar,resolveShadowValue:()=>wo,resolveSharedLibraries:()=>nb,resolveStyleBlockTokens:()=>K_,returnSubThemeOrDefault:()=>gb,returnValueAsText:()=>fu,rgbArrayToHex:()=>td,rgbToHSL:()=>ed,rgbToHex:()=>ub,runPluginHook:()=>Ct,runThroughMedia:()=>vd,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,scratchDefaultConfig:()=>Fs,scratchSystem:()=>qs,scratchUtils:()=>mr,self:()=>mg,semanticIcons:()=>Ob,sequence:()=>Pn,serializeAttrValue:()=>te,set:()=>vo,setActiveConfig:()=>yd,setActiveDocument:()=>__,setActiveRootState:()=>ec,setAdaptiveSchemeVar:()=>Sr,setClass:()=>$B,setClassname:()=>rF,setColor:()=>yr,setCookie:()=>bm,setCssEngineHook:()=>Op,setCustomFont:()=>Cc,setCustomFontMedia:()=>hr,setEach:()=>c_,setFont:()=>Gc,setFontFamily:()=>Hs,setFontImport:()=>Ns,setGradient:()=>Us,setHashedExtend:()=>Xf,setInCustomFontMedia:()=>fd,setInObjectByPath:()=>em,setLang:()=>Xl,setLocalStorage:()=>xm,setMediaTheme:()=>zs,setNodeStyles:()=>Bu,setObserver:()=>Xt,setProps:()=>xy,setPropsPrototype:()=>Na,setSVG:()=>Ws,setScalingVar:()=>Dc,setShadow:()=>xr,setSubScalingVar:()=>bd,setSvgIcon:()=>So,setTheme:()=>Kc,setValue:()=>a_,setVariables:()=>qb,setWasmEngine:()=>ul,settled:()=>$f,shadow:()=>Cb,shape:()=>Vb,sharedLibrary:()=>Zy,sizes:()=>Bb,skins:()=>Ub,spacing:()=>kb,splitPackageSpecifier:()=>pc,splitSpacedValue:()=>Hc,splitTopLevelCommas:()=>tn,splitTopLevelSpaces:()=>ht,splitTransition:()=>Pd,spotByPath:()=>Ja,srcsetFor:()=>Ps,srgbChannelToLinear:()=>sd,srgbToOklab:()=>vc,stringIncludesAny:()=>ua,stringToObject:()=>Kg,stripVersionRangePrefix:()=>hc,svg:()=>Ib,svgData:()=>$b,swapItemsInArray:()=>Sg,syncProps:()=>ja,templates:()=>Mb,theme:()=>Ab,timing:()=>Rb,toCamel:()=>Pc,toCamelCase:()=>co,toDashCase:()=>Sc,toDescriptionCase:()=>ab,toLinearChannel:()=>Ds,toPriorityOrder:()=>$e,toTitleCase:()=>ib,toggleFullscreen:()=>Py,transformBackgroundImage:()=>Td,transformBorder:()=>_n,transformBorderRadius:()=>In,transformBoxShadow:()=>ol,transformClassname:()=>tC,transformDuration:()=>il,transformGridTemplate:()=>Rd,transformShadow:()=>Cd,transformSize:()=>Et,transformSizeRatio:()=>N,transformTextStroke:()=>Ad,transformTransition:()=>i_,transformersByPrefix:()=>q_,transfromGap:()=>Od,translate:()=>Gl,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Zm,trimStringFromSymbols:()=>Pg,typography:()=>Oc,unit:()=>yb,unstackArrayOfObjects:()=>aa,update:()=>ai,updateProps:()=>Bm,updateVars:()=>IB,upsertTranslation:()=>Zl,useCssInProps:()=>ge,useHostState:()=>rw,usePropsAsCSS:()=>ZA,useSelectorsAsCSS:()=>JA,variables:()=>fc,vars:()=>jb,verbose:()=>ks,warn:()=>ac,warnLibraryAliasCollision:()=>Rs,warnStateKeyShadowsMethod:()=>Nf,window:()=>C,wrapHoverRule:()=>Nn});module.exports=QD(V0);qt();var Ud={};F(Ud,{CSS_LONGHAND_SHORTHANDS:()=>wn,CSS_SHORTHAND_LONGHANDS:()=>yt,assertEmitIntegrity:()=>S_,css:()=>Te,cssShorthandDepth:()=>al,cssShorthandStatesLonghand:()=>cl,getActiveDocument:()=>Eo,getCacheSize:()=>k_,getEmitStats:()=>Bd,injectGlobal:()=>vt,keyframes:()=>Zs,reset:()=>dA,resetEmitStats:()=>w_,setActiveDocument:()=>__,setWasmEngine:()=>ul,wrapHoverRule:()=>Nn});var l_={};F(l_,{COMPOUND_CSS_KEYWORDS:()=>uo,CONFIG:()=>mo,CONFIG_MERGE_EXL:()=>ve,CSS_NAMED_COLOR_HEX:()=>Qu,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_UNITS:()=>ss,FACTORY:()=>ke,STANDARD_SCHEME_QUERIES:()=>xd,VALUE_TRANSFORMERS:()=>Ld,__resetSkinWarnings:()=>s_,activateConfig:()=>hE,aliasCaseVariants:()=>Vs,animation:()=>Db,appendSVGSprite:()=>el,appendSvgIconsSprite:()=>xo,applyDocument:()=>tl,applyHeadings:()=>Ed,applyMediaSequenceVars:()=>gr,applyReset:()=>nl,applySequenceGlobalVars:()=>jc,applySequenceVars:()=>Dn,applySkins:()=>rl,applySpacingSequence:()=>zc,applyTimingSequence:()=>Jc,applyTypographySequence:()=>Xc,breakpoints:()=>Pb,buildSkinVarStyles:()=>ko,changeGlobalTheme:()=>Dd,changeLightness:()=>hb,checkIfBoxSize:()=>Uc,class:()=>Fb,color:()=>vb,colorStringToRgbaArray:()=>Fe,compositeOverBackdrop:()=>po,contrastRatio:()=>$s,convertSvgToSymbol:()=>Vc,createConfig:()=>Lc,cssMediaVars:()=>md,cssVars:()=>gd,defineResolvedThemeSignal:()=>Bs,defineThemeSignal:()=>js,devices:()=>Lb,document:()=>fE,findHeadingLetter:()=>wd,findHeadings:()=>Fc,font:()=>bb,fontFace:()=>Sb,fontFamily:()=>_b,fontFamilyTypes:()=>wb,generateSequence:()=>le,generateSequencePosition:()=>Wb,generateSprite:()=>Bc,generateSubSequence:()=>Mc,getActiveConfig:()=>O,getColor:()=>st,getColorShade:()=>rd,getDefaultOrFirstKey:()=>ho,getFnPrefixAndValue:()=>Ln,getFontFace:()=>mb,getFontFaceEach:()=>go,getFontFaceEachString:()=>ud,getFontFaceString:()=>Tc,getFontFamily:()=>Yc,getFontFormat:()=>ld,getFontSizeByKey:()=>Zc,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getResolvedThemeSignal:()=>pE,getRgbTone:()=>mn,getSafeInk:()=>kd,getSafeInkInfo:()=>Yb,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>Nc,getSequenceValuePropertyPair:()=>bn,getShadow:()=>Wc,getShapeByKey:()=>Qc,getSizeValue:()=>_d,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getSubratio:()=>$c,getSubratioDifference:()=>Ic,getTheme:()=>Jb,getThemeSignal:()=>dE,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,gradient:()=>Eb,grid:()=>Nb,hexToRgb:()=>fb,hexToRgbArray:()=>Ju,hexToRgba:()=>db,hslToRgb:()=>nd,icons:()=>Tb,isCSSVar:()=>kt,isDomDocument:()=>kn,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isPlainColor:()=>br,isRawUnitValue:()=>na,isResolvedColor:()=>Je,isScalingUnit:()=>Vr,isWritableFamilyBucket:()=>hg,linearChannelToSrgb:()=>id,media:()=>xb,mixTwoColors:()=>lb,mixTwoRgb:()=>pb,mixTwoRgba:()=>od,numToLetterMap:()=>yn,oklabToLinearSrgb:()=>ad,oklabToOklch:()=>Ec,oklchToGamutSafeSrgb:()=>Ac,oklchToOklab:()=>cd,opacify:()=>Is,parkHostObject:()=>nr,parseColorToken:()=>Zt,popConfig:()=>X,pushConfig:()=>J,quietColorProbe:()=>bo,relativeLuminance:()=>fo,reset:()=>uE,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveColorsInGradient:()=>sl,resolveConfigDocument:()=>os,resolveFileUrl:()=>je,resolveShadowValue:()=>wo,returnSubThemeOrDefault:()=>gb,rgbArrayToHex:()=>td,rgbToHSL:()=>ed,rgbToHex:()=>ub,runThroughMedia:()=>vd,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,scratchDefaultConfig:()=>Fs,scratchSystem:()=>qs,scratchUtils:()=>mr,semanticIcons:()=>Ob,sequence:()=>Pn,set:()=>vo,setActiveConfig:()=>yd,setAdaptiveSchemeVar:()=>Sr,setColor:()=>yr,setCustomFont:()=>Cc,setCustomFontMedia:()=>hr,setEach:()=>c_,setFont:()=>Gc,setFontFamily:()=>Hs,setFontImport:()=>Ns,setGradient:()=>Us,setInCustomFontMedia:()=>fd,setMediaTheme:()=>zs,setSVG:()=>Ws,setScalingVar:()=>Dc,setShadow:()=>xr,setSubScalingVar:()=>bd,setSvgIcon:()=>So,setTheme:()=>Kc,setValue:()=>a_,setVariables:()=>qb,shadow:()=>Cb,shape:()=>Vb,sizes:()=>Bb,skins:()=>Ub,spacing:()=>kb,splitSpacedValue:()=>Hc,splitTopLevelCommas:()=>tn,splitTopLevelSpaces:()=>ht,splitTransition:()=>Pd,srgbChannelToLinear:()=>sd,srgbToOklab:()=>vc,svg:()=>Ib,svgData:()=>$b,templates:()=>Mb,theme:()=>Ab,timing:()=>Rb,toCamel:()=>Pc,toLinearChannel:()=>Ds,transformBackgroundImage:()=>Td,transformBorder:()=>_n,transformBorderRadius:()=>In,transformBoxShadow:()=>ol,transformDuration:()=>il,transformGridTemplate:()=>Rd,transformShadow:()=>Cd,transformSize:()=>Et,transformSizeRatio:()=>N,transformTextStroke:()=>Ad,transformTransition:()=>i_,transfromGap:()=>Od,typography:()=>Oc,unit:()=>yb,vars:()=>jb});var mr={};F(mr,{COMPOUND_CSS_KEYWORDS:()=>uo,CSS_NAMED_COLOR_HEX:()=>Qu,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_UNITS:()=>ss,applyMediaSequenceVars:()=>gr,applySequenceGlobalVars:()=>jc,applySequenceVars:()=>Dn,changeLightness:()=>hb,colorStringToRgbaArray:()=>Fe,compositeOverBackdrop:()=>po,contrastRatio:()=>$s,convertSvgToSymbol:()=>Vc,findHeadingLetter:()=>wd,findHeadings:()=>Fc,generateSequence:()=>le,generateSequencePosition:()=>Wb,generateSprite:()=>Bc,generateSubSequence:()=>Mc,getColorShade:()=>rd,getDefaultOrFirstKey:()=>ho,getFnPrefixAndValue:()=>Ln,getFontFace:()=>mb,getFontFaceEach:()=>go,getFontFaceEachString:()=>ud,getFontFaceString:()=>Tc,getFontFormat:()=>ld,getRgbTone:()=>mn,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>Nc,getSequenceValuePropertyPair:()=>bn,getSizeValue:()=>_d,getSubratio:()=>$c,getSubratioDifference:()=>Ic,hexToRgb:()=>fb,hexToRgbArray:()=>Ju,hexToRgba:()=>db,hslToRgb:()=>nd,isCSSVar:()=>kt,isDomDocument:()=>kn,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isRawUnitValue:()=>na,isResolvedColor:()=>Je,isScalingUnit:()=>Vr,isWritableFamilyBucket:()=>hg,linearChannelToSrgb:()=>id,mixTwoColors:()=>lb,mixTwoRgb:()=>pb,mixTwoRgba:()=>od,numToLetterMap:()=>yn,oklabToLinearSrgb:()=>ad,oklabToOklch:()=>Ec,oklchToGamutSafeSrgb:()=>Ac,oklchToOklab:()=>cd,opacify:()=>Is,parkHostObject:()=>nr,parseColorToken:()=>Zt,relativeLuminance:()=>fo,resolveConfigDocument:()=>os,resolveFileUrl:()=>je,returnSubThemeOrDefault:()=>gb,rgbArrayToHex:()=>td,rgbToHSL:()=>ed,rgbToHex:()=>ub,setCustomFont:()=>Cc,setCustomFontMedia:()=>hr,setFontImport:()=>Ns,setInCustomFontMedia:()=>fd,setScalingVar:()=>Dc,setSubScalingVar:()=>bd,setVariables:()=>qb,splitTopLevelCommas:()=>tn,splitTopLevelSpaces:()=>ht,srgbChannelToLinear:()=>sd,srgbToOklab:()=>vc,toLinearChannel:()=>Ds});var kn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),vn=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},hg=t=>t!==null&&typeof t=="object"&&!vn(t),nr=(t,e,n)=>{if(!t)return;if(kn(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},os=t=>t?kn(t.__domDocument)?t.__domDocument:kn(t.document)?t.document:null:null;var Vr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ss=["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"],hI=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),gI=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ss.filter(t=>t!=="auto").map(hI).join("|")})$`),na=t=>gI.test(String(t).trim());$();var Qu={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Fe=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Qu[t.toLowerCase()];if(e&&(t=e),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&&dt&&C){let n=dt.body.appendChild(dt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){dt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return dt.body.removeChild(n),[0,0,0,0];t=C.getComputedStyle(n).color,dt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},lb=(t,e,n=.5)=>(t=Fe(t),e=Fe(e),od(t,e,n)),fb=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},Ju=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},ub=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),td=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),db=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},pb=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},hb=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},ed=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},nd=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],rd=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},od=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},Is=(t,e)=>{let n=Fe(t);if(!n){Qr()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},kt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,uo=new Set(["currentcolor","transparent","thin","medium","thick"]),xe=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,C$=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Zt=t=>{if(!v(t))return null;if(xe.test(t))return{passthrough:t};if(kt(t))return{cssVar:t};let e=t.match(C$);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},Je=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),tn=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},ht=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},Ds=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),fo=t=>.2126*Ds(t[0])+.7152*Ds(t[1])+.0722*Ds(t[2]),$s=(t,e)=>{let n=fo(t)+.05,r=fo(e)+.05;return n>r?n/r:r/n},sd=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),id=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,vc=([t,e,n])=>{let[r,o,s]=[t,e,n].map(sd),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},ad=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},Ec=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},cd=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},Ac=(t,e,n,r=24)=>{let o=a=>ad(cd([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>id(Math.max(0,Math.min(1,a))))},po=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),mn=(t,e)=>{v(t)&&t.includes("rgb")&&(t=Fe(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),Ie(e)&&(e+="");let n=td(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=rd(n,parseFloat(e));return Ju(o).join(", ")}else{let[o,s,i]=t,[a,c]=ed(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return nd(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var gb=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var je=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},ho=(t,e)=>{if(t[e])return t[e].value;let n=()=>Object.keys(t).find(o=>o!=="default"&&t[o]&&t[o].value&&!t[o].isSystemFallback);if(t.default){let o=t[t.default];if(o&&o.isSystemFallback){let s=n();if(s)return t[s].value}if(o)return o.value}let r=n()||Object.keys(t).find(o=>o!=="default"&&t[o]&&t[o].value);return r&&t[r]&&t[r].value},ld=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},Ms=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Ns=t=>`@import url('${t}');`,fd=t=>`@font-face { ${t} }`,Cc=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=ld(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
36
+ `;)t[r]==="\\"&&r++,r++;s(l,r),r++;continue}if(a==="`"){r++,i();continue}if(a==="{"){o++,r++;continue}if(a==="}"){if(o--,n.length&&o===n[n.length-1]){n.pop(),r++,i();continue}r++;continue}r++}return e.join("")},Uv=(t,e)=>{if(!v(t)||!t.includes("__scope = ")&&!t.includes("__peers")&&!t.includes("const _s = ")&&!t.includes("?.context?.globalScope?.")||!Qt(t))return t;let n=`(globalThis[Symbol.for('smbls.libraryScope')] || ((_, v) => v))(${JSON.stringify(e)}, `,r=t;for(let[o,s]of l$){let i=f$(r);r=r.replace(o,(...a)=>{let c=a[a.length-2];return i[c]==="~"||i[c]!==r[c]?a[0]:s.replace(/\$RESOLVE\(/g,n).replace(/\$(\d)/g,(l,f)=>a[Number(f)])})}return r},Yu=(t,e)=>{if(v(t))return Uv(t,e);let n=oE(t);return n===null?t:Uv(n,e)},u$={lazy:!0,window:globalThis},sE=(t,e)=>{let n=Yu(t,e);if(n===t||!v(n))return n;try{let r=ie({v:n},{},u$).v;return typeof r!="function"?n:(Object.defineProperty(r,"toJSON",{value:()=>n,configurable:!0}),r)}catch{return n}},Zy=t=>{if(!t||typeof t!="object")return!1;if(Array.isArray(t))return!0;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null},iE=(t,e,n=new WeakMap)=>{if(v(t)||typeof t=="function")return sE(t,e);if(Sa(t)||!Zy(t))return t;if(n.has(t))return n.get(t);let r=Array.isArray(t)?[]:Object.getPrototypeOf(t)===null?Object.create(null):{};n.set(t,r);for(let o of Object.keys(t))r[o]=iE(t[o],e,n);return r},d$=(t,e)=>{let n={...t},r={};for(let o of Object.keys(t.globalScope))r[o]=Yu(t.globalScope[o],e);n.globalScope=r;for(let o of tb){let s=t[o];if(!Zy(s))continue;let i={};for(let a of Object.keys(s))i[a]=sE(s[a],e);n[o]=i}for(let o of nE)Zy(t[o])&&(n[o]=iE(t[o],e));return n},zv=new WeakMap,p$=(t,e,n)=>{let r=zv.get(t);r||zv.set(t,r=new Map);let o=r.get(e);if(o)return o;let s=(i,a)=>pr(n,i)&&n[i]===a;return o=new Proxy(t,{get(i,a){if(typeof a=="symbol"||pr(i,a))return Reflect.get(i,a);let c=Reflect.get(i,a);return pr(e,a)&&(c===void 0||s(a,c))||c===void 0?e[a]:c},set(i,a,c){return typeof a!="symbol"&&!pr(i,a)&&pr(e,a)?(e[a]=c,!0):Reflect.set(i,a,c)},has:(i,a)=>Reflect.has(i,a)||a in e}),r.set(e,o),o},h$=t=>!!t&&typeof t=="object"&&!!t.__raw&&typeof t.__raw=="object",g$=(t,e)=>{let n=eb.get(t);return n?e===n.consumerGs?n.libGs:h$(e)?p$(e,n.libGs,n.consumerGs):e:e},m$=()=>{typeof globalThis[Bv]!="function"&&Object.defineProperty(globalThis,Bv,{value:g$,configurable:!0})},Xu=t=>{let e=t[io];return Array.isArray(e)?e:null},nb=t=>Je(t)?t.library:t,y$=(t,e,n)=>{let r=Xu(t);return!!r&&r.some(o=>o&&o.index===e&&(!o.key||o.key===n.key)&&v(o.id)&&b$(t,o.id))},b$=(t,e)=>{let n=JSON.stringify(e),r=new Set,o=s=>{if(v(s))return s.includes(n);if(!s||typeof s!="object"||r.has(s))return!1;r.add(s);for(let i in s)if(o(s[i]))return!0;return!1};for(let s of["globalScope",...tb,...nE])if(o(t[s]))return!0;return!1},_$=(t,e)=>{let n={};for(let r of Object.keys(t))n[r]=Yu(t[r],e);return n},Hv=new WeakMap,_c=(t,e=null)=>{let n=t&&Xu(t);if(!n||!n.length)return 0;let r=t.globalScope;if(!E(r))return 0;let o=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[],s=Hv.get(r);s||Hv.set(r,s=new Set),m$();let i=0;for(let a of n){if(!a||!v(a.id)||s.has(a.id))continue;let c=nb(o[a.index]);if(!c||!E(c.globalScope)||a.key&&c.key!==a.key)continue;let l=p=>typeof p=="function"?rE(p):p,f=(p,g)=>{if(p===g)return!0;let h=l(p),m=l(g);return v(h)||v(m)?h===m:JSON.stringify(p)===JSON.stringify(g)},u=E(e)?(Array.isArray(a.landed)?a.landed:[]).filter(p=>v(p)&&pr(c.globalScope,p)&&pr(e,p)&&f(e[p],Yu(c.globalScope[p],a.id))):[],d=Xr(_$(c.globalScope,a.id));Object.setPrototypeOf(d,r),eb.set(a.id,{libGs:d,consumerGs:r});for(let p of u)r[p]=d[p];s.add(a.id),i++}return i},w$=/^@symbo[-.]ls\//,Wv=t=>t.includes("/")?t.slice(t.indexOf("/")+1):t,Os=(t,e)=>{let n=[];if(!Array.isArray(t))return n;let r=new Map,o=(i,a,c)=>{for(let l of[`@symbo-ls/${i}`,`@symbo.ls/${i}`]){let f=r.get(l);if(f===void 0){r.set(l,a),n.push([l,a]);continue}f!==a&&c&&typeof e=="function"&&e({spec:l,kept:f,refused:a})}},s=[];for(let i of t){let a=nb(i);if(!a||typeof a!="object"||a.__isStub)continue;let c=a.key||a.name||a.__libraryKey,l=[];for(let f of[a.key,a.name,a.__libraryKey,a.__libraryName]){if(typeof f!="string"||!f||f!==c&&!w$.test(f))continue;let u=Wv(f);u&&!l.includes(u)&&l.push(u)}l.forEach((f,u)=>{u===0&&c&&Wv(c)===f?o(f,a,!1):s.push([f,a])})}for(let[i,a]of s)o(i,a,!0);return n},Rs=({spec:t,kept:e,refused:n})=>{typeof console>"u"||console.warn(`[smbls] shared library "${n&&n.key}" also claims ${t}, which "${e&&e.key}" already owns; ${t} stays with "${e&&e.key}".`)},qv=["functions","methods","snippets"],Zu=Symbol.for("smbls.libraryPackages"),yc=new WeakMap,S$=t=>!!t&&typeof t=="object"&&!Array.isArray(t),x$=t=>({get globalScope(){return t()}}),Kv=(t,e,n)=>{let r={};for(let o of Object.keys(t))r[o]=t[o];return Object.defineProperty(r,"context",{configurable:!0,enumerable:!1,writable:!0,value:x$(e)}),yc.set(r,n),r},Gv=t=>!S$(t)||!yc.has(t)&&Object.prototype.hasOwnProperty.call(t,"context"),wc=t=>{if(!t||typeof t!="object")return;let e=()=>t.globalScope;for(let r of qv){let o=t[r];Gv(o)||yc.get(o)===t||(t[r]=Kv(o,e,t))}if(Array.isArray(t.sharedLibraries)){let r=Xu(t)||[];t.sharedLibraries=t.sharedLibraries.map((o,s)=>{let i=Je(o)&&o&&"library"in o,a=nb(o);if(!a||typeof a!="object"||a.__isStub||yc.get(a)===t)return o;let c=r.find(u=>u&&u.index===s&&(!u.key||u.key===a.key)),l=()=>{let u=c&&eb.get(c.id);return u&&u.consumerGs===t.globalScope?u.libGs:t.globalScope},f={...a};for(let u of qv)Gv(a[u])||(f[u]=Kv(a[u],l,t));return yc.set(f,t),i?{...o,library:f}:f})}let n=t.globalScope;if(n&&typeof n=="object"){let r={};for(let[o,s]of Os(t.sharedLibraries,Rs))r[o]=s;try{Object.defineProperty(n,Zu,{configurable:!0,enumerable:!1,writable:!0,value:r})}catch{}}},k$=(t,e,n,r="library",o=-1)=>{let s=eE(e,n),i=!y$(t,o,e)&&c$(t,e,s)>0?`${r}#${s$()}`:null,a=i?d$(e,i):e,c=i?new Set(Object.keys(t.globalScope)):null,l=[];for(let f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&!(f==="sharePages"||f==="sharedLibIgnore")&&f!==io&&!f.startsWith("__")&&f!=="app"&&!s.has(f)){if(E(a[f])&&E(t[f])){if(f==="designSystem")Ts(t[f],a[f],s,f);else for(let u in a[f])if(!s.has(`${f}/${u}`)){if(f==="methods"&&Hr(u)){u in t[f]||l.push(u);continue}u in t[f]?Fv(f,t[f][u])&&!Fv(f,a[f][u])&&(t[f][u]=a[f][u]):t[f][u]=a[f][u]}}else if(!(f in t)){let u=a[f],d=f==="methods"&&u&&typeof u=="object"?o$(u,s,l):u;t[f]=Zv(d,s,f)}}i&&(Xu(t)||(t[io]=[]),t[io].push({id:i,index:o,key:v(e.key)?e.key:null,landed:Object.keys(a.globalScope).filter(f=>!c.has(f))})),l.length&&r$(r,l)},v$=(t,e,n)=>{if(t!==e){let r=tE(t);if(v(r)&&r)return r;if(t.key||t.name)return t.key||t.name}return e&&(e.key||e.name)||`sharedLibraries[${n}]`},E$=`${Yy}/default`,A$=t=>v(t)&&t!==""&&ao(t).full===E$,C$=(t,e)=>{if(v(e.key)&&e.key)return e.key;if(t!==e){if(v(t.key)&&t.key)return t.key;if(v(t.name)&&t.name)return t.name}return null},T$=t=>{let e=[],n=[];for(let r=0;r<t.length;r++){let o=t[r],s=o,i=t$;if(Je(s)&&(i=bc(s.ignoreList),s=s.library),!E(s))continue;let a={entry:o,lib:s,ignore:i,index:r};A$(C$(o,s))?n.push(a):e.push(a)}return{linked:e,bases:n}},aE=(t,e,n)=>{let r=jv(e()),{linked:o,bases:s}=T$(t);for(let a of o)n(a);let i=!r.size&&s.length?jv(e()):null;for(let a of s)n(a);return r.size?r:i&&i.size?i:null},Sc=(t,e)=>{if(!e||!e.length)return;let n=t.designSystem,r=aE(e,()=>t.designSystem,({entry:o,lib:s,ignore:i,index:a})=>k$(t,s,i,v$(o,s,a),a));r&&(t.designSystem!==n&&(t.designSystem={...t.designSystem}),Jv(t.designSystem,r))},xc=(t,e,n=Ts)=>{if(!E(t)||!Array.isArray(e)||!e.length)return t;let r=aE(e,()=>t,({lib:o,ignore:s})=>{let i=o.designSystem;if(!i||typeof i!="object")return;let a=eE(o,s);a.has("designSystem")||n(t,i,a,"designSystem")});return r&&Jv(t,r),t}});var ob,sb,ib,co,ab,kc,cb,lo,lE=D(()=>{"use strict";jt();ob=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},sb=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),n=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([n]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},ib=t=>t.replace(/[^a-zA-Z0-9_]/g,""),co=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return n===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),ab=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),kc=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),cb=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},lo=t=>{if(I(t))return t;if(v(t))return t.split(" ");if(E(t))return Object.values(t);if(Ie(t))return[t]}});var lb,fE=D(()=>{"use strict";lb=()=>{let t=document.styleSheets[0],e="";if(t)try{let n=t.cssRules||t.rules;for(let r=0;r<n.length;r++)e+=n[r].cssText}catch(n){console.error("Unable to access CSS rules. This may be due to CORS restrictions:",n)}else console.log("No stylesheets found in document.styleSheets[0].");return e}});var ce,Ps,vc,Ec,uE=D(()=>{"use strict";ce=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let r=n.assets&&n.assets[e]||n.files&&n.files[e];if(!r)return null;if(typeof r=="string")return{src:r,type:null,variants:null};if(typeof r=="object"){if(typeof r.src=="string")return r;let o=r.content,s=o&&o.src;if(typeof s=="string")return{...r,src:s,type:r.type??o.type??null,variants:r.variants??o.variants??null}}return null},Ps=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(o=>typeof o.width=="number"),r=[];for(let o of t)n&&typeof o.width=="number"?r.push(`${o.src} ${o.width}w`):n||(o.scale===1&&e?r.push(o.src):o.scale&&o.scale!==1&&r.push(`${o.src} ${o.scale}x`));return r.join(", ")},vc=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return Ps(e,{keepOneX:!1})},Ec=(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 n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let r=[];for(let[a,c]of n)a!==t.type&&r.push({tag:"source",attr:{type:a,srcset:Ps(c,{keepOneX:!0})}});let o=n.get(t.type)||[],s=Ps(o,{keepOneX:!1}),i={src:t.src,alt:e||""};return s&&(i.srcset=s),[...r,{tag:"img",attr:i}]}});var Ls={};F(Ls,{CDN_PROVIDERS:()=>Ne,DOMQL_EVENTS:()=>Vg,DOMQ_PROPERTIES:()=>rr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>am,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Zu,LIBRARY_SCOPES_KEY:()=>io,METHODS:()=>sr,METHODS_EXL:()=>ma,NODE_ENV:()=>Ye,OPTIONS:()=>za,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>ga,PROPS_METHODS:()=>or,REVIVED_MARK:()=>xa,STATE_METHODS:()=>zr,STATE_PROPERTIES:()=>jg,SVG_TAGS:()=>Tk,TYPES:()=>ca,UNIVERSAL_RESERVED_KEYS:()=>Hu,__resetBuiltinMethodWarnings:()=>Jy,addCaching:()=>yu,addContext:()=>mu,addExtend:()=>Rm,addExtends:()=>pn,addItemAfterEveryElement:()=>Ag,addProtoToArray:()=>ua,addRef:()=>pu,applyDependentState:()=>Ym,applyEvent:()=>ku,applyEventUpdate:()=>vu,applyExtends:()=>Pk,applyProps:()=>Ma,arrayContainsOtherArray:()=>_g,arraysEqual:()=>Tg,arrayzeValue:()=>lo,bindLibraryGlobalScopes:()=>_c,buildImgSrcset:()=>vc,buildSourcesAndImg:()=>Ec,cache:()=>ty,call:()=>Ty,captureSnapshot:()=>Ry,checkForStateTypes:()=>Wm,checkIfInherits:()=>xu,checkIfStringIsInArray:()=>Pg,clone:()=>qg,cloneAndMergeArrayExtend:()=>Ta,cloneFunction:()=>hm,collectExtendsList:()=>ms,concatAddExtends:()=>Cm,copyJavaScriptToClipboard:()=>sb,copyStringToClipboard:()=>ob,createBasedOnType:()=>du,createElement:()=>Hm,createElementExtends:()=>tu,createExtends:()=>Ra,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ou,createIfConditionFlag:()=>gm,createInheritedState:()=>qm,createKey:()=>Aa,createNestedObject:()=>tm,createNestedObjectByKeyPath:()=>Gm,createObjectWithoutPrototype:()=>qf,createParent:()=>hu,createPath:()=>gu,createProps:()=>Na,createPropsStack:()=>fu,createRoot:()=>zm,createScope:()=>Zm,createSnapshotId:()=>Ea,customDecodeURIComponent:()=>Fg,customEncodeURIComponent:()=>Ng,cutArrayAfterValue:()=>vg,cutArrayBeforeValue:()=>kg,debounce:()=>Ca,debounceOnContext:()=>dm,decodeNewlines:()=>Mg,deepClone:()=>ut,deepContains:()=>Qg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Jf,deepMerge:()=>at,deepMergeExtends:()=>hn,deepStringifyFunctions:()=>_a,defineSetter:()=>Ay,destringifyGlobalScope:()=>Xr,detectHeightOnInit:()=>$y,detectInfiniteLoop:()=>om,document:()=>dt,encodeNewlines:()=>$g,error:()=>eo,excludeKeysFromObject:()=>im,exec:()=>pt,exposeBagGlobalScopes:()=>wc,extendCachedRegistry:()=>Tm,extendStackRegistry:()=>Pa,extractArrayExtend:()=>Da,fetchLibraryData:()=>Qu,fibonacciNumberByIndex:()=>My,fileEntryUrl:()=>Ku,filterArrays:()=>Og,filterArraysFast:()=>Rg,finalizeExtends:()=>su,findClosestNumber:()=>Gu,findClosestNumberInFactory:()=>Gy,findInheritedState:()=>Su,findKeyPosition:()=>Dg,flattenExtend:()=>bs,formatDate:()=>Iy,generateHash:()=>Xf,generateHeadArrayTags:()=>qu,generateKey:()=>va,generateMetaTags:()=>qy,get:()=>xy,getCDNDirUrl:()=>Wu,getCDNUrl:()=>Qe,getCapitalCaseKeys:()=>Dm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>wu,getChildren:()=>Ey,getContext:()=>cc,getCookie:()=>wm,getDB:()=>pc,getEmotionStylesheet:()=>lb,getExtendsInElement:()=>Pm,getExtendsStack:()=>Oa,getExtendsStackRegistry:()=>Qf,getFrequencyInArray:()=>wg,getFunctionSource:()=>we,getHashedExtend:()=>La,getImportMapScript:()=>Dy,getInObjectByPath:()=>rm,getLocalStorage:()=>xm,getNev:()=>um,getPageMetadata:()=>Ky,getParentStateInKey:()=>_u,getPath:()=>nc,getQuery:()=>hc,getRef:()=>vy,getRoot:()=>sc,getRootContext:()=>ac,getRootData:()=>ic,getRootState:()=>oc,getRootStateInKey:()=>bu,getSpreadChildren:()=>Im,global:()=>mg,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Yg,hashContent:()=>oo,inheritChildExtends:()=>nu,inheritChildPropsExtends:()=>eu,inheritParentProps:()=>Fa,inheritRecursiveChildExtends:()=>ru,initProps:()=>Bm,is:()=>se,isArray:()=>I,isBoolean:()=>jf,isBuiltinElementMethod:()=>Bg,isContextComponent:()=>$m,isCyclic:()=>sm,isDOMNode:()=>oe,isDate:()=>Vf,isDefined:()=>Dt,isDevelopment:()=>ar,isEmpty:()=>Hf,isEmptyObject:()=>Xg,isEqualDeep:()=>Wf,isFailedRevival:()=>Gr,isFunction:()=>R,isHtmlElement:()=>ia,isLazyFunction:()=>Kg,isLocal:()=>fm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Oy,isMobile:()=>bm,isNode:()=>En,isNot:()=>bg,isNotProduction:()=>Qr,isNull:()=>Bf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>Ny,isPolyglotRetranslatableKey:()=>Ua,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRevived:()=>Yr,isStaging:()=>lm,isState:()=>Km,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>Sa,isTest:()=>Gf,isTesting:()=>cm,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Py,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>vm,isWrappedLibrary:()=>Je,joinArrays:()=>is,jointStacks:()=>Om,keys:()=>Uu,libraryPackageSpecs:()=>Os,loadCssFile:()=>Vy,loadJavascript:()=>Uy,loadJavascriptFile:()=>Fy,loadJavascriptFileEmbedSync:()=>By,loadJavascriptFileSync:()=>jy,loadRemoteCSS:()=>zy,loadRemoteScript:()=>Cs,log:()=>Cy,logGroupIf:()=>ym,logIf:()=>mm,lookdown:()=>wy,lookdownAll:()=>Sy,lookup:()=>_y,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Zg,map:()=>Wg,mapStringsWithContextComponents:()=>Ia,markPolyglotSeeded:()=>mn,markRevived:()=>us,matchesComponentNaming:()=>gn,memoize:()=>pm,merge:()=>xt,mergeSharedLibraries:()=>Sc,mergeSharedLibraryDesignSystems:()=>xc,nextElement:()=>fc,normalizeIgnoreList:()=>bc,normalizeLibraryKey:()=>ao,objectToString:()=>wa,objectizeStringProperty:()=>$a,overwrite:()=>ka,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Xm,parse:()=>zu,parseDeep:()=>tc,pickupElementFromProps:()=>cu,pickupPropsFromElement:()=>au,polyglotSeededKeys:()=>_s,previousElement:()=>uc,promoteActiveRootState:()=>xs,propExists:()=>Fm,propertizeElement:()=>lu,propertizeUpdate:()=>Nm,remove:()=>kv,removeChars:()=>ib,removeCookie:()=>Sm,removeDuplicateProps:()=>Ba,removeDuplicatesInArray:()=>as,removeFromArray:()=>Sg,removeFromObject:()=>Jg,removeNestedKeyByPath:()=>em,removeValueFromArray:()=>fa,removeValueFromArrayAll:()=>Eg,reorderArrayByValues:()=>Cg,repairLegacyArrowScopePreamble:()=>ya,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Ig,resolveAsset:()=>ce,resolveFileReferences:()=>so,resolveHandler:()=>hs,resolveSharedLibraries:()=>rb,returnValueAsText:()=>uu,runPluginHook:()=>Ct,self:()=>yg,setActiveRootState:()=>rc,setCookie:()=>_m,setHashedExtend:()=>Zf,setInObjectByPath:()=>nm,setLocalStorage:()=>km,setNodeStyles:()=>Vu,setProps:()=>ky,setPropsPrototype:()=>ja,sharedLibrary:()=>Qy,splitPackageSpecifier:()=>gc,spotByPath:()=>ec,srcsetFor:()=>Ps,stringIncludesAny:()=>pa,stringToObject:()=>Gg,stripVersionRangePrefix:()=>mc,swapItemsInArray:()=>xg,syncProps:()=>Va,toCamelCase:()=>co,toDashCase:()=>kc,toDescriptionCase:()=>cb,toPriorityOrder:()=>$e,toTitleCase:()=>ab,toggleFullscreen:()=>Ly,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Qm,trimStringFromSymbols:()=>Lg,unstackArrayOfObjects:()=>la,update:()=>jm,updateProps:()=>Vm,variables:()=>dc,verbose:()=>ks,warn:()=>lc,warnLibraryAliasCollision:()=>Rs,window:()=>C});var $=D(()=>{"use strict";Kf();Yf();jt();dn();cr();cs();aa();Ek();Ak();ha();sa();Ck();Em();Lm();Um();iu();Nk();Uk();Wr();zk();Ev();ey();Av();Jm();Cv();zg();Tv();Ov();Rv();Pv();Lv();Dv();Iv();Mv();Nv();cE();lE();fE();uE()});var ln,ff,uf,nh=D(()=>{ln=Object.create(null);ln.open="0";ln.close="1";ln.ping="2";ln.pong="3";ln.message="4";ln.upgrade="5";ln.noop="6";ff=Object.create(null);Object.keys(ln).forEach(t=>{ff[ln[t]]=t});uf={type:"error",data:"parser error"}});function lL(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}function pL(t,e){if(fL&&t.data instanceof Blob)return t.data.arrayBuffer().then(lL).then(e);if(uL&&(t.data instanceof ArrayBuffer||dL(t.data)))return e(lL(t.data));df(t,!1,n=>{Kx||(Kx=new TextEncoder),e(Kx.encode(n))})}var fL,uL,dL,df,cL,Kx,hL=D(()=>{nh();fL=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",uL=typeof ArrayBuffer=="function",dL=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,df=({type:t,data:e},n,r)=>fL&&e instanceof Blob?n?r(e):cL(e,r):uL&&(e instanceof ArrayBuffer||dL(e))?n?r(e):cL(new Blob([e]),r):r(ln[t]+(e||"")),cL=(t,e)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)}});var gL,pf,mL,yL=D(()=>{gL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pf=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<gL.length;t++)pf[gL.charCodeAt(t)]=t;mL=t=>{let e=t.length*.75,n=t.length,r,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(r=0;r<n;r+=4)s=pf[t.charCodeAt(r)],i=pf[t.charCodeAt(r+1)],a=pf[t.charCodeAt(r+2)],c=pf[t.charCodeAt(r+3)],f[o++]=s<<2|i>>4,f[o++]=(i&15)<<4|a>>2,f[o++]=(a&3)<<6|c&63;return l}});var Z4,hf,Q4,bL,_L=D(()=>{nh();yL();Z4=typeof ArrayBuffer=="function",hf=(t,e)=>{if(typeof t!="string")return{type:"message",data:bL(t,e)};let n=t.charAt(0);return n==="b"?{type:"message",data:Q4(t.substring(1),e)}:ff[n]?t.length>1?{type:ff[n],data:t.substring(1)}:{type:ff[n]}:uf},Q4=(t,e)=>{if(Z4){let n=mL(t);return bL(n,e)}else return{base64:!0,data:t}},bL=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer});function kL(){return new TransformStream({transform(t,e){pL(t,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(n)})}})}function rh(t){return t.reduce((e,n)=>e+n.length,0)}function oh(t,e){if(t[0].length===e)return t.shift();let n=new Uint8Array(e),r=0;for(let o=0;o<e;o++)n[o]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function vL(t,e){Gx||(Gx=new TextDecoder);let n=[],r=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(n.push(i);;){if(r===0){if(rh(n)<1)break;let c=oh(n,1);s=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(rh(n)<2)break;let c=oh(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(rh(n)<8)break;let c=oh(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(uf);break}o=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(rh(n)<o)break;let c=oh(n,o);a.enqueue(hf(s?c:Gx.decode(c),e)),r=0}if(o===0||o>t){a.enqueue(uf);break}}}})}var wL,SL,xL,Gx,Yx,Fi=D(()=>{hL();_L();nh();wL="",SL=(t,e)=>{let n=t.length,r=new Array(n),o=0;t.forEach((s,i)=>{df(s,!1,a=>{r[i]=a,++o===n&&e(r.join(wL))})})},xL=(t,e)=>{let n=t.split(wL),r=[];for(let o=0;o<n.length;o++){let s=hf(n[o],e);if(r.push(s),s.type==="error")break}return r};Yx=4});function gt(t){if(t)return J4(t)}function J4(t){for(var e in gt.prototype)t[e]=gt.prototype[e];return t}var Ho=D(()=>{gt.prototype.on=gt.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};gt.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this};gt.prototype.off=gt.prototype.removeListener=gt.prototype.removeAllListeners=gt.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===e||r.fn===e){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+t],this};gt.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this};gt.prototype.emitReserved=gt.prototype.emit;gt.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};gt.prototype.hasListeners=function(t){return!!this.listeners(t).length}});var Yn,ne,EL,Wo=D(()=>{Yn=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0),ne=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),EL="arraybuffer"});function sh(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}function Xn(t,e){e.useNativeTimers?(t.setTimeoutFn=t5.bind(ne),t.clearTimeoutFn=e5.bind(ne)):(t.setTimeoutFn=ne.setTimeout.bind(ne),t.clearTimeoutFn=ne.clearTimeout.bind(ne))}function AL(t){return typeof t=="string"?r5(t):Math.ceil((t.byteLength||t.size)*n5)}function r5(t){let e=0,n=0;for(let r=0,o=t.length;r<o;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function ih(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}var t5,e5,n5,qo=D(()=>{Wo();t5=ne.setTimeout,e5=ne.clearTimeout;n5=1.33});function CL(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function TL(t){let e={},n=t.split("&");for(let r=0,o=n.length;r<o;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Xx=D(()=>{});var ah,Zn,gf=D(()=>{Fi();Ho();qo();Xx();ah=class extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}},Zn=class extends gt{constructor(e){super(),this.writable=!1,Xn(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,n,r){return super.emitReserved("error",new ah(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let n=hf(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_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 n=CL(e);return n.length?"?"+n:""}}});var ji,Zx=D(()=>{gf();qo();Fi();ji=class extends Zn{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let n=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};xL(e,this.socket.binaryType).forEach(n),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,SL(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ih()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}}});var OL,RL,PL=D(()=>{OL=!1;try{OL=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}RL=OL});function o5(){}function LL(){for(let t in $r.requests)$r.requests.hasOwnProperty(t)&&$r.requests[t].abort()}function DL(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||RL))return new XMLHttpRequest}catch{}if(!e)try{return new ne[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Qx,$r,s5,Qn,ch=D(()=>{Zx();Ho();qo();Wo();PL();Qx=class extends ji{constructor(e){if(super(e),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,n){let r=this.request({method:"POST",data:e});r.on("success",n),r.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",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}},$r=class t extends gt{constructor(e,n,r){super(),this.createRequest=e,Xn(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var e;let n=sh(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.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=o5,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()}};$r.requestsCount=0;$r.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",LL);else if(typeof addEventListener=="function"){let t="onpagehide"in ne?"pagehide":"unload";addEventListener(t,LL,!1)}}s5=(function(){let t=DL({xdomain:!1});return t&&t.responseType!==null})(),Qn=class extends Qx{constructor(e){super(e);let n=e&&e.forceBase64;this.supportsBinary=s5&&!n}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new $r(DL,this.uri(),e)}}});var IL,t0,Jx,Jn,lh=D(()=>{gf();qo();Fi();Wo();IL=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",t0=class extends Zn{get name(){return"websocket"}doOpen(){let e=this.uri(),n=this.opts.protocols,r=IL?{}:sh(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,n,r)}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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;df(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}o&&Yn(()=>{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",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ih()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}},Jx=ne.WebSocket||ne.MozWebSocket,Jn=class extends t0{createSocket(e,n,r){return IL?new Jx(e,n,r):n?new Jx(e,n):new Jx(e)}doWrite(e,n){this.ws.send(n)}}});var Ko,e0=D(()=>{gf();Wo();Fi();Ko=class extends Zn{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 n=vL(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),o=kL();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{r.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 n=0;n<e.length;n++){let r=e[n],o=n===e.length-1;this._writer.write(r).then(()=>{o&&Yn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}});var n0,r0=D(()=>{ch();lh();e0();n0={websocket:Jn,webtransport:Ko,polling:Qn}});function Bi(t){if(t.length>8e3)throw"URI too long";let e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let o=i5.exec(t||""),s={},i=14;for(;i--;)s[a5[i]]=o[i]||"";return n!=-1&&r!=-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=c5(s,s.path),s.queryKey=l5(s,s.query),s}function c5(t,e){let n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function l5(t,e){let n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,s){o&&(n[o]=s)}),n}var i5,a5,o0=D(()=>{i5=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,a5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]});var s0,fh,Go,uh,Vi,i0=D(()=>{r0();qo();Xx();o0();Ho();Fi();Wo();s0=typeof addEventListener=="function"&&typeof removeEventListener=="function",fh=[];s0&&addEventListener("offline",()=>{fh.forEach(t=>t())},!1);Go=class t extends gt{constructor(e,n){if(super(),this.binaryType=EL,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(n=e,e=null),e){let r=Bi(e);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Bi(n.host).host);Xn(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{let o=r.prototype.name;this.transports.push(o),this._transportsByName[o]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=TL(this.opts.query)),s0&&(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"})},fh.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let n=Object.assign({},this.opts.query);n.EIO=Yx,n.transport=e,this.id&&(n.sid=this.id);let r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_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 n=this.createTransport(e);n.open(),this.setTransport(n)}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",n=>this._onClose("transport close",n))}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 n=new Error("server error");n.code=e.data,this._onError(n);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 n=1;for(let r=0;r<this.writeBuffer.length;r++){let o=this.writeBuffer[r].data;if(o&&(n+=AL(o)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,Yn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,n,r){return this._sendPacket("message",e,n,r),this}send(e,n,r){return this._sendPacket("message",e,n,r),this}_sendPacket(e,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;let s={type:e,data:n,options:r};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()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():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,n){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(),s0&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let r=fh.indexOf(this._offlineEventListener);r!==-1&&fh.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this._prevBufferLen=0}}};Go.protocol=Yx;uh=class extends Go{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 n=this.createTransport(e),r=!1;Go.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Go.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}let i=u=>{let d=new Error("probe error: "+u);d.transport=n.name,s(),this.emitReserved("upgradeError",d)};function a(){i("transport closed")}function c(){i("socket closed")}function l(u){n&&u.name!==n.name&&s()}let f=()=>{n.removeListener("open",o),n.removeListener("error",i),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",o),n.once("error",i),n.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let n=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}},Vi=class extends uh{constructor(e,n={}){let r=typeof e=="object"?e:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>n0[o]).filter(o=>!!o)),super(e,r)}}});var mf,$L=D(()=>{Zx();mf=class extends ji{doPoll(){this._fetch().then(e=>{if(!e.ok)return this.onError("fetch read error",e.status,e);e.text().then(n=>this.onData(n))}).catch(e=>{this.onError("fetch read error",e)})}doWrite(e,n){this._fetch(e).then(r=>{if(!r.ok)return this.onError("fetch write error",r.status,r);n()}).catch(r=>{this.onError("fetch write error",r)})}_fetch(e){var n;let r=e!==void 0,o=new Headers(this.opts.extraHeaders);return r&&o.set("content-type","text/plain;charset=UTF-8"),(n=this.socket._cookieJar)===null||n===void 0||n.appendCookies(o),fetch(this.uri(),{method:r?"POST":"GET",body:r?e:null,headers:o,credentials:this.opts.withCredentials?"include":"omit"}).then(s=>{var i;return(i=this.socket._cookieJar)===null||i===void 0||i.parseCookies(s.headers.getSetCookie()),s})}}});var xZ,dh=D(()=>{i0();i0();gf();r0();qo();o0();Wo();$L();ch();ch();lh();lh();e0();xZ=Vi.protocol});function ML(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=Bi(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}var NL=D(()=>{dh()});function bf(t){return f5&&(t instanceof ArrayBuffer||u5(t))||d5&&t instanceof Blob||p5&&t instanceof File}function yf(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(yf(t[n]))return!0;return!1}if(bf(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return yf(t.toJSON(),!0);for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&yf(t[n]))return!0;return!1}var f5,u5,FL,d5,p5,a0=D(()=>{f5=typeof ArrayBuffer=="function",u5=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,FL=Object.prototype.toString,d5=typeof Blob=="function"||typeof Blob<"u"&&FL.call(Blob)==="[object BlobConstructor]",p5=typeof File=="function"||typeof File<"u"&&FL.call(File)==="[object FileConstructor]"});function jL(t){let e=[],n=t.data,r=t;return r.data=c0(n,e),r.attachments=e.length,{packet:r,buffers:e}}function c0(t,e){if(!t)return t;if(bf(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 r=0;r<t.length;r++)n[r]=c0(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){let n={};for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=c0(t[r],e));return n}return t}function BL(t,e){return t.data=l0(t.data,e),delete t.attachments,t}function l0(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 n=0;n<t.length;n++)t[n]=l0(t[n],e);else if(typeof t=="object")for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=l0(t[n],e));return t}var VL=D(()=>{a0()});var zL=Yh((VZ,UL)=>{var Ui=1e3,zi=Ui*60,Hi=zi*60,Yo=Hi*24,h5=Yo*7,g5=Yo*365.25;UL.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return m5(t);if(n==="number"&&isFinite(t))return e.long?b5(t):y5(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function m5(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 n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*g5;case"weeks":case"week":case"w":return n*h5;case"days":case"day":case"d":return n*Yo;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Hi;case"minutes":case"minute":case"mins":case"min":case"m":return n*zi;case"seconds":case"second":case"secs":case"sec":case"s":return n*Ui;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function y5(t){var e=Math.abs(t);return e>=Yo?Math.round(t/Yo)+"d":e>=Hi?Math.round(t/Hi)+"h":e>=zi?Math.round(t/zi)+"m":e>=Ui?Math.round(t/Ui)+"s":t+"ms"}function b5(t){var e=Math.abs(t);return e>=Yo?ph(t,e,Yo,"day"):e>=Hi?ph(t,e,Hi,"hour"):e>=zi?ph(t,e,zi,"minute"):e>=Ui?ph(t,e,Ui,"second"):t+" ms"}function ph(t,e,n,r){var o=e>=n*1.5;return Math.round(t/n)+" "+r+(o?"s":"")}});var WL=Yh((UZ,HL)=>{function _5(t){n.debug=n,n.default=n,n.coerce=c,n.disable=i,n.enable=o,n.enabled=a,n.humanize=zL(),n.destroy=l,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function e(f){let u=0;for(let d=0;d<f.length;d++)u=(u<<5)-u+f.charCodeAt(d),u|=0;return n.colors[Math.abs(u)%n.colors.length]}n.selectColor=e;function n(f){let u,d=null,p,g;function h(...m){if(!h.enabled)return;let y=h,S=Number(new Date),b=S-(u||S);y.diff=b,y.prev=u,y.curr=S,u=S,m[0]=n.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let x=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(w,k)=>{if(w==="%%")return"%";x++;let A=n.formatters[k];if(typeof A=="function"){let T=m[x];w=A.call(y,T),m.splice(x,1),x--}return w}),n.formatArgs.call(y,m),(y.log||n.log).apply(y,m)}return h.namespace=f,h.useColors=n.useColors(),h.color=n.selectColor(f),h.extend=r,h.destroy=n.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(p!==n.namespaces&&(p=n.namespaces,g=n.enabled(f)),g),set:m=>{d=m}}),typeof n.init=="function"&&n.init(h),h}function r(f,u){let d=n(this.namespace+(typeof u>"u"?":":u)+f);return d.log=this.log,d}function o(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let u=(typeof f=="string"?f:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let d of u)d[0]==="-"?n.skips.push(d.slice(1)):n.names.push(d)}function s(f,u){let d=0,p=0,g=-1,h=0;for(;d<f.length;)if(p<u.length&&(u[p]===f[d]||u[p]==="*"))u[p]==="*"?(g=p,h=d,p++):(d++,p++);else if(g!==-1)p=g+1,h++,d=h;else return!1;for(;p<u.length&&u[p]==="*";)p++;return p===u.length}function i(){let f=[...n.names,...n.skips.map(u=>"-"+u)].join(",");return n.enable(""),f}function a(f){for(let u of n.skips)if(s(f,u))return!1;for(let u of n.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 n.enable(n.load()),n}HL.exports=_5});var qL=Yh((be,hh)=>{be.formatArgs=S5;be.save=x5;be.load=k5;be.useColors=w5;be.storage=v5();be.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`."))}})();be.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 w5(){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 S5(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+hh.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,o=>{o!=="%%"&&(n++,o==="%c"&&(r=n))}),t.splice(r,0,e)}be.log=console.debug||console.log||(()=>{});function x5(t){try{t?be.storage.setItem("debug",t):be.storage.removeItem("debug")}catch{}}function k5(){let t;try{t=be.storage.getItem("debug")||be.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function v5(){try{return localStorage}catch{}}hh.exports=WL()(be);var{formatters:E5}=hh.exports;E5.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var g0={};F(g0,{Decoder:()=>d0,Encoder:()=>u0,PacketType:()=>G,isPacketValid:()=>O5,protocol:()=>h0});function A5(t){return typeof t=="string"}function C5(t){return t===void 0||YL(t)}function gh(t){return Object.prototype.toString.call(t)==="[object Object]"}function T5(t,e){switch(t){case G.CONNECT:return e===void 0||gh(e);case G.DISCONNECT:return e===void 0;case G.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&GL.indexOf(e[0])===-1);case G.ACK:return Array.isArray(e);case G.CONNECT_ERROR:return typeof e=="string"||gh(e);default:return!1}}function O5(t){return A5(t.nsp)&&C5(t.id)&&T5(t.type,t.data)}var KL,f0,GL,h0,G,u0,d0,p0,YL,mh=D(()=>{Ho();VL();a0();KL=tI(qL(),1),f0=(0,KL.default)("socket.io-parser"),GL=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],h0=5;(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"})(G||(G={}));u0=class{constructor(e){this.replacer=e}encode(e){return f0("encoding packet %j",e),(e.type===G.EVENT||e.type===G.ACK)&&yf(e)?this.encodeAsBinary({type:e.type===G.EVENT?G.BINARY_EVENT:G.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===G.BINARY_EVENT||e.type===G.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),f0("encoded %j as %s",e,n),n}encodeAsBinary(e){let n=jL(e),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}},d0=class t extends gt{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);let r=n.type===G.BINARY_EVENT;r||n.type===G.BINARY_ACK?(n.type=r?G.EVENT:G.ACK,this.reconstructor=new p0(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(bf(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0,r={type:Number(e.charAt(0))};if(G[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===G.BINARY_EVENT||r.type===G.BINARY_ACK){let s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);let i=e.substring(s,n);if(i!=Number(i)||e.charAt(n)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!YL(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=a}if(e.charAt(n+1)==="/"){let s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";let o=e.charAt(n+1);if(o!==""&&Number(o)==o){let s=n+1;for(;++n;){let i=e.charAt(n);if(i==null||Number(i)!=i){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){let s=this.tryParse(e.substr(n));if(t.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return f0("decoded %s as %j",e,r),r}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case G.CONNECT:return gh(n);case G.DISCONNECT:return n===void 0;case G.CONNECT_ERROR:return typeof n=="string"||gh(n);case G.EVENT:case G.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&GL.indexOf(n[0])===-1);case G.ACK:case G.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},p0=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 n=BL(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};YL=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}});function Le(t,e,n){return t.on(e,n),function(){t.off(e,n)}}var m0=D(()=>{});var R5,Xo,y0=D(()=>{mh();m0();Ho();R5=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Xo=class extends gt{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Le(e,"open",this.onopen.bind(this)),Le(e,"packet",this.onpacket.bind(this)),Le(e,"error",this.onerror.bind(this)),Le(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,...n){var r,o,s;if(R5.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let i={type:G.EVENT,data:n};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let f=this.ids++,u=n.pop();this._registerAckCallback(f,u),i.id=f}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.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,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[e]=n;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);n.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...n){return new Promise((r,o)=>{let s=(i,a)=>i?o(i):r(a);s.withError=!0,n.push(s),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());let r={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?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.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:G.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,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(r=>String(r.id)===e)){let r=this.acks[e];delete this.acks[e],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case G.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 G.EVENT:case G.BINARY_EVENT:this.onevent(e);break;case G.ACK:case G.BINARY_ACK:this.onack(e);break;case G.DISCONNECT:this.ondisconnect();break;case G.CONNECT_ERROR:this.destroy();let r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){let n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:G.ACK,id:e,data:o}))}}onack(e){let n=this.acks[e.id];typeof n=="function"&&(delete this.acks[e.id],n.withError&&e.data.unshift(null),n.apply(this,e.data))}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,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:G.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 n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,e.data)}}}});function Zo(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}var XL=D(()=>{Zo.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-n:t+n}return Math.min(t,this.max)|0};Zo.prototype.reset=function(){this.attempts=0};Zo.prototype.setMin=function(t){this.ms=t};Zo.prototype.setMax=function(t){this.max=t};Zo.prototype.setJitter=function(t){this.jitter=t}});var Qo,ZL=D(()=>{dh();y0();mh();m0();XL();Ho();Qo=class extends gt{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Xn(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Zo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;let o=n.parser||g0;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.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 n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.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 Vi(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Le(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Le(n,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),n.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(Le(e,"ping",this.onping.bind(this)),Le(e,"data",this.ondata.bind(this)),Le(e,"error",this.onerror.bind(this)),Le(e,"close",this.onclose.bind(this)),Le(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){Yn(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new Xo(this,e,n),this.nsps[e]=r),r}_destroy(e){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(e){let n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),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 n=this.backoff.duration();this._reconnecting=!0;let r=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()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}});var QL={};F(QL,{Fetch:()=>mf,Manager:()=>Qo,NodeWebSocket:()=>Jn,NodeXHR:()=>Qn,Socket:()=>Xo,WebSocket:()=>Jn,WebTransport:()=>Ko,XHR:()=>Qn,connect:()=>yh,default:()=>yh,io:()=>yh,protocol:()=>h0});function yh(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let n=ML(t,e.path||"/socket.io"),r=n.source,o=n.id,s=n.path,i=_f[o]&&s in _f[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Qo(r,e):(_f[o]||(_f[o]=new Qo(r,e)),c=_f[o]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}var _f,JL=D(()=>{NL();ZL();y0();mh();dh();_f={};Object.assign(yh,{Manager:Qo,Socket:Xo,io:yh,connect:yh})});var z0={};F(z0,{ANIMATION_PROPS:()=>N_,ARIA_ROLES:()=>gN,ATTR_TRANSFORMS:()=>Ao,BLOCK_PROPS:()=>F_,CDN_PROVIDERS:()=>Ne,COMPOUND_CSS_KEYWORDS:()=>uo,CONFIG:()=>mo,CONFIG_MERGE_EXL:()=>ve,CSS_LONGHAND_SHORTHANDS:()=>ze,CSS_NAMED_COLOR_HEX:()=>Ju,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_PROPS_REGISTRY:()=>_t,CSS_SHORTHAND_LONGHANDS:()=>yt,CSS_UNITS:()=>ss,DEFAULT_CONFIG:()=>Il,DEFAULT_CSS_PROPERTIES_LIST:()=>Rt,DELEGATED_EVENTS:()=>oi,DESIGN_SYSTEM_OPTIONS:()=>px,DOMQL_EVENTS:()=>Vg,DOMQ_PROPERTIES:()=>rr,DOM_EVENTS:()=>$A,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>am,FACTORY:()=>ke,FLEX_PROPS:()=>z_,FONT_PROPS:()=>j_,GRID_PROPS:()=>H_,HOST_REGISTERED_PACKAGES:()=>LP,HTML_ATTRIBUTES:()=>ci,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Zu,LIBRARY_SCOPES_KEY:()=>io,LIFECYCLE_EVENTS:()=>Er,METHODS:()=>sr,METHODS_EXL:()=>ma,MISC_PROPS:()=>B_,MIXINS:()=>qd,NODE_ENV:()=>Ye,OPTIONS:()=>za,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>ga,POSITION_PROPS:()=>V_,PROPS_METHODS:()=>or,REGISTRY:()=>Ut,RESERVED_STORE_METHODS:()=>nk,REVIVED_MARK:()=>xa,ROUTER_OPTIONS:()=>$p,SIGNAL_ENGINE_KEY:()=>rs,SIGNAL_INSTANCES_KEY:()=>es,STANDARD_SCHEME_QUERIES:()=>kd,STATE_PROPERTIES:()=>jg,STORE_METHOD_NAMES:()=>ek,SVG_TAGS:()=>ri,THEME_PROPS:()=>U_,TIMING_PROPS:()=>ml,TYPES:()=>ca,UNIVERSAL_RESERVED_KEYS:()=>Hu,VALUE_TRANSFORMERS:()=>Dd,VERSION:()=>ok,__resetBuiltinMethodWarnings:()=>Jy,__resetSignalEngine:()=>pg,__resetSignalInstances:()=>ug,__resetSkinWarnings:()=>i_,__resetStateShadowWarnings:()=>rk,activateConfig:()=>mE,addCaching:()=>yu,addContext:()=>mu,addDelegatedEvent:()=>pl,addExtend:()=>Rm,addExtends:()=>pn,addItemAfterEveryElement:()=>Ag,addMethods:()=>di,addProtoToArray:()=>ua,addRef:()=>pu,aliasCaseVariants:()=>Vs,animation:()=>Ib,appendSVGSprite:()=>rl,appendSvgIconsSprite:()=>xo,applyAttrTransforms:()=>D_,applyCSS:()=>YS,applyDependentState:()=>Ym,applyDocument:()=>nl,applyEvent:()=>ku,applyEventUpdate:()=>vu,applyExtends:()=>ai,applyHeadings:()=>Ad,applyInitialState:()=>ip,applyMediaSequenceVars:()=>gr,applyProps:()=>Ma,applyReset:()=>ol,applySequenceGlobalVars:()=>Vc,applySequenceVars:()=>Dn,applySkins:()=>sl,applySpacingSequence:()=>Wc,applyStateMethods:()=>Re,applyTimingSequence:()=>el,applyTrueProps:()=>K_,applyTypographySequence:()=>Qc,arrayContainsOtherArray:()=>_g,arraysEqual:()=>Tg,arrayzeValue:()=>lo,assertEmitIntegrity:()=>k_,batch:()=>$f,bindLibraryGlobalScopes:()=>_c,breakpoints:()=>Lb,buildImgSrcset:()=>vc,buildSkinVarStyles:()=>ko,buildSourcesAndImg:()=>Ec,buildThemeVarStyles:()=>Pp,cache:()=>ty,cacheNode:()=>vr,call:()=>Ty,callStateMethod:()=>_l,camelToAttr:()=>jn,camelToLowerAttr:()=>jA,captureSnapshot:()=>Ry,changeGlobalTheme:()=>Id,changeLightness:()=>gb,checkAttributeByTagName:()=>He,checkEventFunctions:()=>L_,checkForStateTypes:()=>Wm,checkIfBoxSize:()=>Hc,checkIfInherits:()=>xu,checkIfStringIsInArray:()=>Pg,class:()=>jb,clone:()=>qg,cloneAndMergeArrayExtend:()=>Ta,cloneFunction:()=>hm,collectExtendsList:()=>ms,color:()=>Eb,colorStringToRgbaArray:()=>Fe,components:()=>Ai,compositeOverBackdrop:()=>po,concatAddExtends:()=>Cm,contrastRatio:()=>$s,convertSvgToSymbol:()=>zc,copyJavaScriptToClipboard:()=>sb,copyStringToClipboard:()=>ob,create:()=>j0,createAsync:()=>_6,createBasedOnType:()=>du,createComputed:()=>J0,createConfig:()=>Ic,createDefine:()=>qR,createDomqlElement:()=>Sf,createEffect:()=>K,createElement:()=>Hm,createElementExtends:()=>tu,createExtends:()=>Ra,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ou,createHTMLNode:()=>ni,createIfConditionFlag:()=>gm,createInheritedState:()=>qm,createKey:()=>Aa,createNestedObject:()=>tm,createNestedObjectByKeyPath:()=>Gm,createObjectWithoutPrototype:()=>qf,createParent:()=>hu,createPath:()=>gu,createProps:()=>Na,createPropsStack:()=>fu,createRoot:()=>zm,createScope:()=>Zm,createScopeStore:()=>Nf,createSignal:()=>Br,createSkeleton:()=>S6,createSnapshotId:()=>Ea,createState:()=>ow,createStore:()=>xn,createSync:()=>w6,css:()=>Te,cssMediaVars:()=>yd,cssShorthandDepth:()=>Ys,cssShorthandStatesLonghand:()=>ll,cssVars:()=>md,customDecodeURIComponent:()=>Fg,customEncodeURIComponent:()=>Ng,cutArrayAfterValue:()=>vg,cutArrayBeforeValue:()=>kg,debounce:()=>Ca,debounceOnContext:()=>dm,decodeNewlines:()=>Mg,deepClone:()=>ut,deepContains:()=>Qg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Jf,deepMerge:()=>at,deepMergeExtends:()=>hn,deepStringifyFunctions:()=>_a,defaultDefine:()=>Pi,defineResolvedThemeSignal:()=>Bs,defineSetter:()=>Ay,defineThemeSignal:()=>js,destringifyGlobalScope:()=>Xr,destroy:()=>Wl,detectHeightOnInit:()=>$y,detectInfiniteLoop:()=>om,detectTag:()=>Fn,devices:()=>Db,dispose:()=>Vn,encodeNewlines:()=>$g,error:()=>eo,excludeKeysFromObject:()=>im,exec:()=>pt,executeAttr:()=>_N,exetuteClassPerComponent:()=>sF,exposeBagGlobalScopes:()=>wc,extendCachedRegistry:()=>Tm,extendStackRegistry:()=>Pa,extractArrayExtend:()=>Da,extractConditionalAttrs:()=>I_,fetchLibraryData:()=>Qu,fibonacciNumberByIndex:()=>My,fileEntryUrl:()=>Ku,filterArrays:()=>Og,filterArraysFast:()=>Rg,filterAttributesByTagName:()=>bN,finalizeExtends:()=>su,findClosestNumber:()=>Gu,findClosestNumberInFactory:()=>Gy,findHeadingLetter:()=>Sd,findHeadings:()=>Bc,findInheritedState:()=>Su,findKeyPosition:()=>Dg,flattenExtend:()=>bs,font:()=>_b,fontFace:()=>xb,fontFamily:()=>wb,fontFamilyTypes:()=>Sb,formatDate:()=>Iy,generateHash:()=>Xf,generateHeadArrayTags:()=>qu,generateKey:()=>va,generateMetaTags:()=>qy,generateSequence:()=>le,generateSequencePosition:()=>qb,generateSprite:()=>Uc,generateSubSequence:()=>Fc,get:()=>xy,getActiveConfig:()=>O,getActiveDocument:()=>Eo,getActiveLang:()=>Lr,getCDNDirUrl:()=>Wu,getCDNUrl:()=>Qe,getCacheSize:()=>E_,getCapitalCaseKeys:()=>Dm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>wu,getChildren:()=>Ey,getColor:()=>st,getColorShade:()=>od,getContext:()=>cc,getCookie:()=>wm,getDB:()=>pc,getDefaultOrFirstKey:()=>ho,getEmitStats:()=>Vd,getEmotionStylesheet:()=>lb,getExtendsInElement:()=>Pm,getExtendsStack:()=>Oa,getExtendsStackRegistry:()=>Qf,getFnPrefixAndValue:()=>Ln,getFontFace:()=>yb,getFontFaceEach:()=>go,getFontFaceEachString:()=>dd,getFontFaceString:()=>Rc,getFontFamily:()=>Zc,getFontFormat:()=>fd,getFontSizeByKey:()=>Jc,getFrequencyInArray:()=>wg,getFunctionSource:()=>we,getHashedExtend:()=>La,getImportMapScript:()=>Dy,getInObjectByPath:()=>rm,getLanguages:()=>Gl,getLocalStateLang:()=>Jl,getLocalStorage:()=>xm,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getNev:()=>um,getObserver:()=>_e,getPageMetadata:()=>Ky,getParentStateInKey:()=>_u,getPath:()=>nc,getPendingLang:()=>Kl,getQuery:()=>hc,getRef:()=>vy,getResolvedThemeSignal:()=>gE,getRgbTone:()=>yn,getRoot:()=>sc,getRootContext:()=>ac,getRootData:()=>ic,getRootState:()=>oc,getRootStateInKey:()=>bu,getSafeInk:()=>vd,getSafeInkInfo:()=>Xb,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>jc,getSequenceValuePropertyPair:()=>_n,getShadow:()=>Kc,getShapeByKey:()=>tl,getSignals:()=>tk,getSizeValue:()=>wd,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getSpreadChildren:()=>Im,getSubratio:()=>Nc,getSubratioDifference:()=>Mc,getSystemGlobalTheme:()=>Oe,getTheme:()=>t_,getThemeSignal:()=>hE,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,global:()=>mg,gradient:()=>Ab,grid:()=>Fb,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Yg,hashContent:()=>oo,hexToRgb:()=>ub,hexToRgbArray:()=>td,hexToRgba:()=>pb,hslToRgb:()=>rd,icons:()=>Ob,inheritChildExtends:()=>nu,inheritChildPropsExtends:()=>eu,inheritParentProps:()=>Fa,inheritRecursiveChildExtends:()=>ru,init:()=>qn,initPolyglot:()=>Fp,initProps:()=>Bm,injectGlobal:()=>vt,is:()=>se,isArray:()=>I,isBoolean:()=>jf,isBuiltinElementMethod:()=>Bg,isCSSVar:()=>kt,isContextComponent:()=>$m,isCyclic:()=>sm,isDOMNode:()=>oe,isDate:()=>Vf,isDefined:()=>Dt,isDevelopment:()=>ar,isDomDocument:()=>kn,isEmpty:()=>Hf,isEmptyObject:()=>Xg,isEnumeratedTrueFalseAttr:()=>rn,isEqualDeep:()=>Wf,isFailedRevival:()=>Gr,isFunction:()=>R,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isHtmlElement:()=>ia,isLazyFunction:()=>Kg,isLocal:()=>fm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Oy,isMobile:()=>bm,isNode:()=>En,isNot:()=>bg,isNotProduction:()=>Qr,isNull:()=>Bf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>Ny,isPlainColor:()=>br,isPolyglotRetranslatableKey:()=>Ua,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRawUnitValue:()=>oa,isResolvedColor:()=>tn,isRevived:()=>Yr,isScalingUnit:()=>Vr,isStaging:()=>lm,isState:()=>Km,isStore:()=>St,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>Sa,isSvgTag:()=>kr,isTest:()=>Gf,isTesting:()=>cm,isTracking:()=>iw,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Py,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>vm,isValidTag:()=>ei,isWasmLoaded:()=>gR,isWrappedLibrary:()=>Je,isWritableFamilyBucket:()=>gg,joinArrays:()=>is,jointStacks:()=>Om,keyframes:()=>Js,keys:()=>Uu,libraryPackageSpecs:()=>Os,linearChannelToSrgb:()=>ad,loadCssFile:()=>Vy,loadJavascript:()=>Uy,loadJavascriptFile:()=>Fy,loadJavascriptFileEmbedSync:()=>By,loadJavascriptFileSync:()=>jy,loadRemoteCSS:()=>zy,loadRemoteScript:()=>Cs,loadTranslations:()=>Xl,loadWasm:()=>hR,log:()=>Cy,logGroupIf:()=>ym,logIf:()=>mm,lookdown:()=>wy,lookdownAll:()=>Sy,lookup:()=>_y,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Zg,map:()=>Wg,mapStringsWithContextComponents:()=>Ia,markPolyglotSeeded:()=>mn,markRevived:()=>us,matchesComponentNaming:()=>gn,media:()=>kb,memoize:()=>pm,merge:()=>xt,mergeSharedLibraries:()=>Sc,mergeSharedLibraryDesignSystems:()=>xc,mixTwoColors:()=>fb,mixTwoRgb:()=>hb,mixTwoRgba:()=>sd,nextElement:()=>fc,normalizeIgnoreList:()=>bc,normalizeLibraryKey:()=>ao,numToLetterMap:()=>bn,objectToString:()=>wa,objectizeStringProperty:()=>$a,oklabToLinearSrgb:()=>cd,oklabToOklch:()=>Cc,oklchToGamutSafeSrgb:()=>Tc,oklchToOklab:()=>ld,opacify:()=>Is,overwrite:()=>ka,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Xm,parkHostObject:()=>nr,parse:()=>zu,parseColorToken:()=>Zt,parseDeep:()=>tc,pickupElementFromProps:()=>cu,pickupPropsFromElement:()=>au,polyglotFunctions:()=>cf,polyglotPlugin:()=>Di,polyglotSeededKeys:()=>_s,popConfig:()=>X,popStaticCssPass:()=>tp,prepareContext:()=>N0,previousElement:()=>uc,promoteActiveRootState:()=>xs,propExists:()=>Fm,propertizeElement:()=>lu,propertizeUpdate:()=>Nm,pushConfig:()=>J,pushStaticCssPass:()=>Jd,quietColorProbe:()=>bo,refreshContextProto:()=>pi,registerEvent:()=>si,registerHostPackages:()=>DP,registerSignalInstance:()=>ns,reinit:()=>GS,relativeLuminance:()=>fo,remove:()=>ui,removeChars:()=>ib,removeCookie:()=>Sm,removeDelegatedEvent:()=>hl,removeDuplicateProps:()=>Ba,removeDuplicatesInArray:()=>as,removeFromArray:()=>Sg,removeFromObject:()=>Jg,removeNestedKeyByPath:()=>em,removeValueFromArray:()=>fa,removeValueFromArrayAll:()=>Eg,reorderArrayByValues:()=>Cg,repairLegacyArrowScopePreamble:()=>ya,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Ig,resetEmitStats:()=>x_,resolveAsset:()=>ce,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveColorsInGradient:()=>al,resolveConfigDocument:()=>os,resolveDesignSystemClass:()=>eC,resolveFileReferences:()=>so,resolveFileSource:()=>P_,resolveFileUrl:()=>je,resolveGridTracks:()=>XA,resolveHandler:()=>hs,resolvePropValue:()=>Ar,resolveShadowValue:()=>wo,resolveSharedLibraries:()=>rb,resolveStyleBlockTokens:()=>Y_,returnSubThemeOrDefault:()=>mb,returnValueAsText:()=>uu,rgbArrayToHex:()=>ed,rgbToHSL:()=>nd,rgbToHex:()=>db,runPluginHook:()=>Ct,runThroughMedia:()=>Ed,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,scratchDefaultConfig:()=>Fs,scratchSystem:()=>qs,scratchUtils:()=>mr,self:()=>yg,semanticIcons:()=>Rb,sequence:()=>Pn,serializeAttrValue:()=>te,set:()=>vo,setActiveConfig:()=>bd,setActiveDocument:()=>S_,setActiveRootState:()=>rc,setAdaptiveSchemeVar:()=>Sr,setClass:()=>FB,setClassname:()=>iF,setColor:()=>yr,setCookie:()=>_m,setCssEngineHook:()=>Rp,setCustomFont:()=>Oc,setCustomFontMedia:()=>hr,setEach:()=>l_,setFont:()=>Xc,setFontFamily:()=>Hs,setFontImport:()=>Ns,setGradient:()=>Us,setHashedExtend:()=>Zf,setInCustomFontMedia:()=>ud,setInObjectByPath:()=>nm,setLang:()=>Zl,setLocalStorage:()=>km,setMediaTheme:()=>zs,setNodeStyles:()=>Vu,setObserver:()=>Xt,setProps:()=>ky,setPropsPrototype:()=>ja,setSVG:()=>Ws,setScalingVar:()=>$c,setShadow:()=>xr,setSubScalingVar:()=>_d,setSvgIcon:()=>So,setTheme:()=>Yc,setValue:()=>c_,setVariables:()=>Kb,setWasmEngine:()=>dl,settled:()=>Mf,shadow:()=>Tb,shape:()=>Ub,sharedLibrary:()=>Qy,sizes:()=>Vb,skins:()=>zb,spacing:()=>vb,splitPackageSpecifier:()=>gc,splitSpacedValue:()=>qc,splitTopLevelCommas:()=>en,splitTopLevelSpaces:()=>ht,splitTransition:()=>Ld,spotByPath:()=>ec,srcsetFor:()=>Ps,srgbChannelToLinear:()=>id,srgbToOklab:()=>Ac,stringIncludesAny:()=>pa,stringToObject:()=>Gg,stripVersionRangePrefix:()=>mc,svg:()=>$b,svgData:()=>Mb,swapItemsInArray:()=>xg,syncProps:()=>Va,templates:()=>Nb,theme:()=>Cb,timing:()=>Pb,toCamel:()=>Dc,toCamelCase:()=>co,toDashCase:()=>kc,toDescriptionCase:()=>cb,toLinearChannel:()=>Ds,toPriorityOrder:()=>$e,toTitleCase:()=>ab,toggleFullscreen:()=>Ly,transformBackgroundImage:()=>Od,transformBorder:()=>wn,transformBorderRadius:()=>In,transformBoxShadow:()=>il,transformClassname:()=>rC,transformDuration:()=>cl,transformGridTemplate:()=>Pd,transformShadow:()=>Td,transformSize:()=>Et,transformSizeRatio:()=>N,transformTextStroke:()=>Cd,transformTransition:()=>a_,transformersByPrefix:()=>G_,transfromGap:()=>Rd,translate:()=>Yl,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Qm,trimStringFromSymbols:()=>Lg,typography:()=>Pc,unit:()=>bb,unstackArrayOfObjects:()=>la,update:()=>li,updateProps:()=>Vm,updateVars:()=>NB,upsertTranslation:()=>Ql,useCssInProps:()=>ge,useHostState:()=>sw,usePropsAsCSS:()=>tC,useSelectorsAsCSS:()=>nC,variables:()=>dc,vars:()=>Bb,verbose:()=>ks,warn:()=>lc,warnLibraryAliasCollision:()=>Rs,warnStateKeyShadowsMethod:()=>Ff,window:()=>C,wrapHoverRule:()=>Nn});module.exports=eI(z0);qt();var zd={};F(zd,{CSS_LONGHAND_SHORTHANDS:()=>ze,CSS_SHORTHAND_LONGHANDS:()=>yt,assertEmitIntegrity:()=>k_,css:()=>Te,cssShorthandDepth:()=>Ys,cssShorthandStatesLonghand:()=>ll,getActiveDocument:()=>Eo,getCacheSize:()=>E_,getEmitStats:()=>Vd,injectGlobal:()=>vt,keyframes:()=>Js,reset:()=>gA,resetEmitStats:()=>x_,setActiveDocument:()=>S_,setWasmEngine:()=>dl,wrapHoverRule:()=>Nn});var f_={};F(f_,{COMPOUND_CSS_KEYWORDS:()=>uo,CONFIG:()=>mo,CONFIG_MERGE_EXL:()=>ve,CSS_NAMED_COLOR_HEX:()=>Ju,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_UNITS:()=>ss,FACTORY:()=>ke,STANDARD_SCHEME_QUERIES:()=>kd,VALUE_TRANSFORMERS:()=>Dd,__resetSkinWarnings:()=>i_,activateConfig:()=>mE,aliasCaseVariants:()=>Vs,animation:()=>Ib,appendSVGSprite:()=>rl,appendSvgIconsSprite:()=>xo,applyDocument:()=>nl,applyHeadings:()=>Ad,applyMediaSequenceVars:()=>gr,applyReset:()=>ol,applySequenceGlobalVars:()=>Vc,applySequenceVars:()=>Dn,applySkins:()=>sl,applySpacingSequence:()=>Wc,applyTimingSequence:()=>el,applyTypographySequence:()=>Qc,breakpoints:()=>Lb,buildSkinVarStyles:()=>ko,changeGlobalTheme:()=>Id,changeLightness:()=>gb,checkIfBoxSize:()=>Hc,class:()=>jb,color:()=>Eb,colorStringToRgbaArray:()=>Fe,compositeOverBackdrop:()=>po,contrastRatio:()=>$s,convertSvgToSymbol:()=>zc,createConfig:()=>Ic,cssMediaVars:()=>yd,cssVars:()=>md,defineResolvedThemeSignal:()=>Bs,defineThemeSignal:()=>js,devices:()=>Db,document:()=>dE,findHeadingLetter:()=>Sd,findHeadings:()=>Bc,font:()=>_b,fontFace:()=>xb,fontFamily:()=>wb,fontFamilyTypes:()=>Sb,generateSequence:()=>le,generateSequencePosition:()=>qb,generateSprite:()=>Uc,generateSubSequence:()=>Fc,getActiveConfig:()=>O,getColor:()=>st,getColorShade:()=>od,getDefaultOrFirstKey:()=>ho,getFnPrefixAndValue:()=>Ln,getFontFace:()=>yb,getFontFaceEach:()=>go,getFontFaceEachString:()=>dd,getFontFaceString:()=>Rc,getFontFamily:()=>Zc,getFontFormat:()=>fd,getFontSizeByKey:()=>Jc,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getResolvedThemeSignal:()=>gE,getRgbTone:()=>yn,getSafeInk:()=>vd,getSafeInkInfo:()=>Xb,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>jc,getSequenceValuePropertyPair:()=>_n,getShadow:()=>Kc,getShapeByKey:()=>tl,getSizeValue:()=>wd,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getSubratio:()=>Nc,getSubratioDifference:()=>Mc,getTheme:()=>t_,getThemeSignal:()=>hE,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,gradient:()=>Ab,grid:()=>Fb,hexToRgb:()=>ub,hexToRgbArray:()=>td,hexToRgba:()=>pb,hslToRgb:()=>rd,icons:()=>Ob,isCSSVar:()=>kt,isDomDocument:()=>kn,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isPlainColor:()=>br,isRawUnitValue:()=>oa,isResolvedColor:()=>tn,isScalingUnit:()=>Vr,isWritableFamilyBucket:()=>gg,linearChannelToSrgb:()=>ad,media:()=>kb,mixTwoColors:()=>fb,mixTwoRgb:()=>hb,mixTwoRgba:()=>sd,numToLetterMap:()=>bn,oklabToLinearSrgb:()=>cd,oklabToOklch:()=>Cc,oklchToGamutSafeSrgb:()=>Tc,oklchToOklab:()=>ld,opacify:()=>Is,parkHostObject:()=>nr,parseColorToken:()=>Zt,popConfig:()=>X,pushConfig:()=>J,quietColorProbe:()=>bo,relativeLuminance:()=>fo,reset:()=>pE,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveColorsInGradient:()=>al,resolveConfigDocument:()=>os,resolveFileUrl:()=>je,resolveShadowValue:()=>wo,returnSubThemeOrDefault:()=>mb,rgbArrayToHex:()=>ed,rgbToHSL:()=>nd,rgbToHex:()=>db,runThroughMedia:()=>Ed,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,scratchDefaultConfig:()=>Fs,scratchSystem:()=>qs,scratchUtils:()=>mr,semanticIcons:()=>Rb,sequence:()=>Pn,set:()=>vo,setActiveConfig:()=>bd,setAdaptiveSchemeVar:()=>Sr,setColor:()=>yr,setCustomFont:()=>Oc,setCustomFontMedia:()=>hr,setEach:()=>l_,setFont:()=>Xc,setFontFamily:()=>Hs,setFontImport:()=>Ns,setGradient:()=>Us,setInCustomFontMedia:()=>ud,setMediaTheme:()=>zs,setSVG:()=>Ws,setScalingVar:()=>$c,setShadow:()=>xr,setSubScalingVar:()=>_d,setSvgIcon:()=>So,setTheme:()=>Yc,setValue:()=>c_,setVariables:()=>Kb,shadow:()=>Tb,shape:()=>Ub,sizes:()=>Vb,skins:()=>zb,spacing:()=>vb,splitSpacedValue:()=>qc,splitTopLevelCommas:()=>en,splitTopLevelSpaces:()=>ht,splitTransition:()=>Ld,srgbChannelToLinear:()=>id,srgbToOklab:()=>Ac,svg:()=>$b,svgData:()=>Mb,templates:()=>Nb,theme:()=>Cb,timing:()=>Pb,toCamel:()=>Dc,toLinearChannel:()=>Ds,transformBackgroundImage:()=>Od,transformBorder:()=>wn,transformBorderRadius:()=>In,transformBoxShadow:()=>il,transformDuration:()=>cl,transformGridTemplate:()=>Pd,transformShadow:()=>Td,transformSize:()=>Et,transformSizeRatio:()=>N,transformTextStroke:()=>Cd,transformTransition:()=>a_,transfromGap:()=>Rd,typography:()=>Pc,unit:()=>bb,vars:()=>Bb});var mr={};F(mr,{COMPOUND_CSS_KEYWORDS:()=>uo,CSS_NAMED_COLOR_HEX:()=>Ju,CSS_NATIVE_COLOR_REGEX:()=>xe,CSS_UNITS:()=>ss,applyMediaSequenceVars:()=>gr,applySequenceGlobalVars:()=>Vc,applySequenceVars:()=>Dn,changeLightness:()=>gb,colorStringToRgbaArray:()=>Fe,compositeOverBackdrop:()=>po,contrastRatio:()=>$s,convertSvgToSymbol:()=>zc,findHeadingLetter:()=>Sd,findHeadings:()=>Bc,generateSequence:()=>le,generateSequencePosition:()=>qb,generateSprite:()=>Uc,generateSubSequence:()=>Fc,getColorShade:()=>od,getDefaultOrFirstKey:()=>ho,getFnPrefixAndValue:()=>Ln,getFontFace:()=>yb,getFontFaceEach:()=>go,getFontFaceEachString:()=>dd,getFontFaceString:()=>Rc,getFontFormat:()=>fd,getRgbTone:()=>yn,getSequenceValue:()=>yo,getSequenceValueBySymbols:()=>jc,getSequenceValuePropertyPair:()=>_n,getSizeValue:()=>wd,getSubratio:()=>Nc,getSubratioDifference:()=>Mc,hexToRgb:()=>ub,hexToRgbArray:()=>td,hexToRgba:()=>pb,hslToRgb:()=>rd,isCSSVar:()=>kt,isDomDocument:()=>kn,isGoogleFontsUrl:()=>Ms,isHostObject:()=>vn,isRawUnitValue:()=>oa,isResolvedColor:()=>tn,isScalingUnit:()=>Vr,isWritableFamilyBucket:()=>gg,linearChannelToSrgb:()=>ad,mixTwoColors:()=>fb,mixTwoRgb:()=>hb,mixTwoRgba:()=>sd,numToLetterMap:()=>bn,oklabToLinearSrgb:()=>cd,oklabToOklch:()=>Cc,oklchToGamutSafeSrgb:()=>Tc,oklchToOklab:()=>ld,opacify:()=>Is,parkHostObject:()=>nr,parseColorToken:()=>Zt,relativeLuminance:()=>fo,resolveConfigDocument:()=>os,resolveFileUrl:()=>je,returnSubThemeOrDefault:()=>mb,rgbArrayToHex:()=>ed,rgbToHSL:()=>nd,rgbToHex:()=>db,setCustomFont:()=>Oc,setCustomFontMedia:()=>hr,setFontImport:()=>Ns,setInCustomFontMedia:()=>ud,setScalingVar:()=>$c,setSubScalingVar:()=>_d,setVariables:()=>Kb,splitTopLevelCommas:()=>en,splitTopLevelSpaces:()=>ht,srgbChannelToLinear:()=>id,srgbToOklab:()=>Ac,toLinearChannel:()=>Ds});var kn=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0),vn=t=>{if(t===null||typeof t!="object")return!1;let e=Object.prototype.toString.call(t);return!!(e!=="[object Object]"&&e!=="[object Array]"||typeof t.nodeType=="number"||t.defaultView||t.window===t||t.self===t)},gg=t=>t!==null&&typeof t=="object"&&!vn(t),nr=(t,e,n)=>{if(!t)return;if(kn(n)){t.__domDocument||(t.__domDocument=n);return}let r=`__host_${e}`;t[r]||(t[r]=n)},os=t=>t?kn(t.__domDocument)?t.__domDocument:kn(t.document)?t.document:null:null;var Vr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",ss=["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"],yI=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),bI=new RegExp(`^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:${ss.filter(t=>t!=="auto").map(yI).join("|")})$`),oa=t=>bI.test(String(t).trim());$();var Ju={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Fe=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];let e=Ju[t.toLowerCase()];if(e&&(t=e),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&&dt&&C){let n=dt.body.appendChild(dt.createElement("fictum")),r="rgb(1, 2, 3)";if(n.style.color=r,n.style.color!==r){dt.body.removeChild(n);return}if(n.style.color=t,n.style.color===r||n.style.color==="")return dt.body.removeChild(n),[0,0,0,0];t=C.getComputedStyle(n).color,dt.body.removeChild(n)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(n=>+n)):[0,0,0,0]},fb=(t,e,n=.5)=>(t=Fe(t),e=Fe(e),sd(t,e,n)),ub=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${n},${r},${o})`},td=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]},db=(t,e,n)=>"#"+(1<<24|t<<16|e<<8|n).toString(16).slice(1),ed=([t,e,n])=>((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1),pb=(t,e=1)=>{let[n,r,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${n},${r},${o},${e})`},hb=(t,e,n=.5)=>{let r=[];for(let o=0;o<3;o++)r[o]=~~(t[o]+(e[o]-t[o])*n);return`rgb(${r})`},gb=(t,e)=>{let[n,r,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[n,r,s]},nd=(t,e,n)=>{let r=Math.max(t,e,n),o=r-Math.min(t,e,n),s=1-Math.abs(r+r-o-1),i=o&&(r==t?(e-n)/o:r==e?2+(n-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},rd=(t,e,n,r=e*Math.min(n,1-n),o=(s,i=(s+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],od=(t,e)=>{let n=parseInt(t,16),r=(n>>16)+e;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(n&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)},sd=(t,e,n=.5)=>{let r=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;r[o]=s(t[o]+(e[o]-t[o])*n)}return`rgba(${r})`},Is=(t,e)=>{let n=Fe(t);if(!n){Qr()&&console.warn(t+" color is not rgba");return}return n[3]=e,`rgba(${n})`},kt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,uo=new Set(["currentcolor","transparent","thin","medium","thick"]),xe=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,R$=/^([a-zA-Z]\w*(?:-[a-zA-Z]\w*)*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Zt=t=>{if(!v(t))return null;if(xe.test(t))return{passthrough:t};if(kt(t))return{cssVar:t};let e=t.match(R$);if(!e)return null;let[,n,r,o]=e,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},tn=t=>v(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),en=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){e.push(n),n="";continue}n+=o}return(n.length||!e.length)&&e.push(n),e},ht=t=>{let e=[],n="",r=0;for(let o of t){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),r===0&&/\s/.test(o)){n.length&&e.push(n),n="";continue}n+=o}return n.length&&e.push(n),e},Ds=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),fo=t=>.2126*Ds(t[0])+.7152*Ds(t[1])+.0722*Ds(t[2]),$s=(t,e)=>{let n=fo(t)+.05,r=fo(e)+.05;return n>r?n/r:r/n},id=t=>(t/=255,t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)),ad=t=>(t<=.0031308?t*12.92:1.055*Math.pow(t,1/2.4)-.055)*255,Ac=([t,e,n])=>{let[r,o,s]=[t,e,n].map(id),i=.4122214708*r+.5363325363*o+.0514459929*s,a=.2119034982*r+.6806995451*o+.1073969566*s,c=.0883024619*r+.2817188376*o+.6299787005*s,l=Math.cbrt(i),f=Math.cbrt(a),u=Math.cbrt(c);return[.2104542553*l+.793617785*f-.0040720468*u,1.9779984951*l-2.428592205*f+.4505937099*u,.0259040371*l+.7827717662*f-.808675766*u]},cd=([t,e,n])=>{let r=t+.3963377774*e+.2158037573*n,o=t-.1055613458*e-.0638541728*n,s=t-.0894841775*e-1.291485548*n,i=r**3,a=o**3,c=s**3;return[4.0767416621*i-3.3077115913*a+.2309699292*c,-1.2684380046*i+2.6097574011*a-.3413193965*c,-.0041960863*i-.7034186147*a+1.707614701*c]},Cc=([t,e,n])=>{let r=Math.atan2(n,e)*180/Math.PI;return r<0&&(r+=360),[t,Math.sqrt(e*e+n*n),r]},ld=([t,e,n])=>{let r=n*Math.PI/180;return[t,e*Math.cos(r),e*Math.sin(r)]},Tc=(t,e,n,r=24)=>{let o=a=>cd(ld([t,a,n])),s=a=>a.every(c=>c>=-1e-4&&c<=1.0001),i=o(e);if(!s(i)){let a=0,c=e;for(let l=0;l<r;l++){let f=(a+c)/2;s(o(f))?a=f:c=f}i=o(a)}return i.map(a=>ad(Math.max(0,Math.min(1,a))))},po=(t,e=1,n=[255,255,255])=>e>=1?t:t.map((r,o)=>r*e+n[o]*(1-e)),yn=(t,e)=>{v(t)&&t.includes("rgb")&&(t=Fe(t).join(", ")),v(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),Ie(e)&&(e+="");let n=ed(t),r=e.slice(0,1);if(r==="-"||r==="+"){let o=od(n,parseFloat(e));return td(o).join(", ")}else{let[o,s,i]=t,[a,c]=nd(o/255,s/255,i/255),l=Math.max(0,Math.min(100,parseFloat(e)))/100;return rd(a,c,l).map(u=>Math.round(Math.max(0,Math.min(1,u))*255)).join(", ")}};var mb=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var je=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let n=e[t];return n?n.content&&n.content.src:null},ho=(t,e)=>{if(t[e])return t[e].value;let n=()=>Object.keys(t).find(o=>o!=="default"&&t[o]&&t[o].value&&!t[o].isSystemFallback);if(t.default){let o=t[t.default];if(o&&o.isSystemFallback){let s=n();if(s)return t[s].value}if(o)return o.value}let r=n()||Object.keys(t).find(o=>o!=="default"&&t[o]&&t[o].value);return r&&t[r]&&t[r].value},fd=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},Ms=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Ns=t=>`@import url('${t}');`,ud=t=>`@font-face { ${t} }`,Oc=(t,e,n,r={})=>{let i=(Array.isArray(e)?e:[e]).filter(a=>typeof a=="string"&&a).map(a=>{let c=fd(a),l=c?` format('${c}')`:"";return`url('${a}')${l}`}).join(`,
37
37
  `);return`
38
38
  font-family: '${t}';
39
39
  font-style: ${r.fontStyle||"normal"};${n?`
@@ -41,24 +41,24 @@ FROM ${a}${l}`},N2=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
41
41
  font-stretch: ${r.fontStretch};`:""}${r.fontDisplay?`
42
42
  font-display: ${r.fontDisplay};`:""}${r.unicodeRange?`
43
43
  unicode-range: ${r.unicodeRange};`:""}
44
- src: ${i};`},hr=(t,e,n,r)=>`@font-face {${Cc(t,e,n,r)}
45
- }`,go=(t,e,n)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>je(d,n)||d):je(s,n)||s;return Cc(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),mb=t=>Object.keys(t).map(n=>go(n,t[n].value)),ud=(t,e,n)=>{if(e&&e.isVariable){let s=je(e.url,n)||e.url;return Ms(s)?Ns(s):hr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return go(t,e,n).map(fd);let o=Array.isArray(e.url)?e.url.map(s=>je(s,n)||s):je(e.url,n)||e.url;return hr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},Tc=(t,e)=>Object.keys(t).map(r=>ud(r,t[r].value,e));$();$();$();$();qt();var Fs={};F(Fs,{animation:()=>Db,breakpoints:()=>Pb,class:()=>Fb,color:()=>vb,devices:()=>Lb,document:()=>fE,font:()=>bb,fontFace:()=>Sb,fontFamily:()=>_b,fontFamilyTypes:()=>wb,gradient:()=>Eb,grid:()=>Nb,icons:()=>Tb,media:()=>xb,reset:()=>uE,semanticIcons:()=>Ob,sequence:()=>Pn,shadow:()=>Cb,shape:()=>Vb,sizes:()=>Bb,skins:()=>Ub,spacing:()=>kb,svg:()=>Ib,svgData:()=>$b,templates:()=>Mb,theme:()=>Ab,timing:()=>Rb,typography:()=>Oc,unit:()=>yb,vars:()=>jb});var Pn={"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 yb={default:"em"};var T$={browserDefault:16,base:16,type:"font-size",ratio:Pn["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Oc=T$;var bb={};var _b={},wb={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Sb={};var xb={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var O$={base:Oc.base,type:"spacing",ratio:Pn.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},kb=O$;var vb={},Eb={};var Ab={};var Cb={};var Tb={},Ob={};var R$={default:150,base:150,type:"timing",ratio:Pn["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Rb=R$;var fE={};var Pb={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Lb={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 Db={};var Ib={},$b={};var Mb={};var P$={},Nb=P$;var Fb={};var uE={},jb={},Bb={},Vb={},Ub={};var gd={},md={},ve=new Set,dd=Fs,pd={},Pc=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in dd){let e=t.toLowerCase();pd[e]=dd[t];let n=Pc(e);n!==e&&(pd[n]=dd[t]),e!==t&&(pd[t]=dd[t])}var mo={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:gd,cssMediaVars:md,CSS_VARS:gd,CSS_MEDIA_VARS:md,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...pd},js=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Dt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Dt(e)?e:t.globalTheme,r=Br(Dt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},dE=t=>t?js(t):null,Bs=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Dt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Dt(e)?e:t.resolvedTheme,r=Br(Dt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},pE=t=>t?Bs(t):null;js(mo);Bs(mo);var hd=ut(mo),ke={active:"0",0:mo},hE=t=>(Dt(t)&&(ke.active=t),ke[t||ke.active]),Rc=[],J=t=>{t&&t._scratchConfig&&Rc.push(t)},X=()=>{Rc.pop()},O=t=>Rc.length?Rc[Rc.length-1]:ke[t||ke.active]||mo,yd=t=>{if(E(t))return ke.active="1",ke[1]=at(t,ut(hd),ve),Vs(ke[1]),js(ke[1]),Bs(ke[1]),t},L$=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],D$=["useVariable","globalTheme","verbose"],I$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],Vs=t=>{for(let e of I$){let n;for(let r of e){let o=t[r];E(o)&&(n=n?at(n,o,ve):o)}if(n)for(let r of e)E(t[r])&&(t[r]=n)}},Lc=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:O(),o=ut(!n&&r&&r._scratchConfig?r:hd);for(let i of L$)delete o[i];for(let i of D$)Object.prototype.hasOwnProperty.call(hd,i)?o[i]=hd[i]:delete o[i];let s=at(e||{},o,ve);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s.cssSkinVars={},s.cssSkinFallback={},s._scratchConfig=!0,Vs(s),js(s),Bs(s),t&&(ke[t]=s),s};var yn={"-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"},Hb=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=gE.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Ln=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")o++;else if(a===")"&&(o--,o===0)){s=i;break}}return s===-1||/\s/.test(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},zb="\0",$$=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=zb+e.length+zb,e.push(o),o=""))}return n+o},M$=(t,e)=>t.indexOf(zb)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),N$=/^(calc|min|max|clamp)\((.*)\)$/,F$=(t,e)=>{let n=N$.exec(t);return n?`${n[1]}(${Nc(n[2],e)})`:t.indexOf("(")!==-1?t:yo(t,e)},gE=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Dc=(t,e)=>{let{base:n,type:r,unit:o}=e,s=gE.has(o)?"rem":o,i=(Vr(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=yn[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=yn[t+1],u=Math.abs(t),d=Math.pow(mE,2*u),p=yn[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},bd=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Ic=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},$c=(t,e)=>Ic(t,e).map(n=>n/t),Mc=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=Ic(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),S=a+(h+1)/10,b=bd(h+1,f,i,e),x={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:b,index:S};Hb(x,e)})},mE=1.618,j$=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(mE,2*r);return Math.max(o,s)},le=t=>{let{type:e,base:n,ratio:r,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=yn[f],d=j$(f,n,r),p=~~(d/n*100)/100,g=c+u,h=Dc(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};Hb(m,t),s&&Mc(m,t)}return t},Wb=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:yn[e],a=v(e)?Object.entries(yn).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=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=Dc(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return Hb(h,c),s&&Mc(h,c),c},_d=(t,e)=>{if(!t||!v(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},yo=(t="A",e)=>{let n=O(),{unit:r}=n;if(v(t)&&kt(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let b=_d(n.sizes,t);if(b!==void 0)return b}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(na(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${Sc(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=b=>a.test(b)?`var(${d}${b}${m})`:b;if(h.includes("+")){let[b,x]=h.split("+"),_=`${y(b)} + ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}else if(h.includes("*")){let[b,x]=h.split("*"),_=`${y(b)} * ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}else if(h.includes("-")){let[b,x]=h.split("-"),_=`${y(b)} - ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}if(!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||n.useVariable){let b=`var(${d}${h}${m})`;return g?`calc(${b} * -1)`:b}let S=o?o[h]:null;if(!S){if(console.warn("can't find",o,h),tt())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}return s==="ms"||s==="s"?g+S.val+s:g+S.scaling+s},Nc=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return $$(t,o).split(r).map(i=>{let a=M$(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:F$(c,e)}).join("")},bn=(t,e,n,r)=>{if(typeof t!="string")return O().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=Ln(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=Nc(t,n):t=yo(t,n),{[e]:r?`${r}(${t})`:t}},wd=(t,e)=>yn[t-e],Fc=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=wd(e,o);return n[s]})};$();var qb=(t,e)=>{let n=O(),{cssVars:r}=n;q(t.value)||(r[t.var]=t.value)},jc=(t,e,n)=>{let r=O(),{unit:o}=r,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=$c(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},yE=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Dn=(t,e={})=>{let n=O(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=yE.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||jc(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},gr=(t,e,n={})=>{let r=O(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=yE.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),jc(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let S=d[y],b=p[y]+f;h[S.variable+"_default"]=b,h[S.variable]=b}return}for(let h in d){let m=d[h],y=(Vr(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let S=i[`@media ${g}`];S||(S=i[`@media ${g}`]={}),S[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};$();var _E=Qr(),Bc=t=>{let e=O(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},B$=t=>{let e=t&&(t.default||t);if(!v(e))return _E&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[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},{}):{}},V$=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.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 r},bE=new Set,Vc=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return _E&&!bE.has(t)&&(bE.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=B$(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=V$(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=H$(f),f},U$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",z$=new RegExp(`<(${U$})\\b([^>]*?)\\s*/>`,"g"),H$=t=>t.replace(z$,"<$1$2></$1>");var qs={};F(qs,{STANDARD_SCHEME_QUERIES:()=>xd,__resetSkinWarnings:()=>s_,appendSVGSprite:()=>el,appendSvgIconsSprite:()=>xo,applyDocument:()=>tl,applyHeadings:()=>Ed,applyReset:()=>nl,applySkins:()=>rl,applySpacingSequence:()=>zc,applyTimingSequence:()=>Jc,applyTypographySequence:()=>Xc,buildSkinVarStyles:()=>ko,checkIfBoxSize:()=>Uc,getColor:()=>st,getFontFamily:()=>Yc,getFontSizeByKey:()=>Zc,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getSafeInk:()=>kd,getSafeInkInfo:()=>Yb,getShadow:()=>Wc,getShapeByKey:()=>Qc,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getTheme:()=>Jb,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,isPlainColor:()=>br,quietColorProbe:()=>bo,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveShadowValue:()=>wo,runThroughMedia:()=>vd,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,setAdaptiveSchemeVar:()=>Sr,setColor:()=>yr,setFont:()=>Gc,setFontFamily:()=>Hs,setGradient:()=>Us,setMediaTheme:()=>zs,setSVG:()=>Ws,setShadow:()=>xr,setSvgIcon:()=>So,setTheme:()=>Kc,splitSpacedValue:()=>Hc});$();var xd={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},_r=(t,e)=>{let n=e.media&&e.media[t]||xd[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},wr=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Be=new Set,kE=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","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","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","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","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),W$=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,q$=/gradient\(|url\(|image-set\(|var\(/i,K$=new Set(["transparent","currentColor","currentcolor"]),br=t=>{if(!v(t))return!1;let e=t.trim();return q$.test(e)?!1:W$.test(e)?!0:kE.has(e)||K$.has(e)},Sd=new Set,wE=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},SE=new Set,Kb=0,bo=t=>{Kb++;try{return t()}finally{Kb--}},G$=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=Zt(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},Gb=(t,e,n)=>{let r=G$(t,n);if(r){if(!SE.has(t)){SE.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${i} \u2014 did you mean \`${r}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=Zt(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&wE(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!Kb&&!Sd.has(t)){Sd.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${i} \u2014 \`${o.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=v(e)?e.toLowerCase():"";if(!kE.has(s)||!wE(n))return t;if(!Sd.has(s)){Sd.add(s);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${i}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},vE=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},st=(t,e,n)=>{let r=n||O();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=Zt(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):Gb(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return Gb(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else r.verbose&&console.warn(t," - does not have ",e);if(v(l)){if(Be.has(o))return l;Be.add(o);try{return st(l,null,n)}finally{Be.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?vE(u,s,i):u}return i&&!l[i]&&(f=mn(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},xE=t=>{let e=Fe(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},Y$=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=mn(n,e.tone);n=v(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},_o=(t,e,n)=>{let r=e||O();if(!v(t))return null;let o=Zt(t);if(o){if(o.passthrough){let d=Fe(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=r,c=i[s]||a[s];if(!c)return xE(t);if(v(c)){let d;if(Be.has(s))d=xE(c);else{Be.add(s);try{d=_o(c,r,n)}finally{Be.delete(s)}}return d?Y$(d,o):null}if(c.rgb===void 0&&E(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=mn(l,o.tone));let f=v(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},EE=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),AE=t=>{if(!E(t)||t.value!==void 0)return null;let e=[];for(let n in t)if(n!=="var"){if(n.charCodeAt(0)!==64||!EE(t[n]))return null;e.push(n.slice(1))}return e.length?e:null},X$=t=>v(t&&t.var)&&AE(t)!==null,Z$=(t,e,n,r,o)=>{let s=AE(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?vE(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=st(t,"@light",o),a=st(t,"@dark",o);if(!(!br(i)||!br(a)))return i===a?i:`light-dark(${i}, ${a})`},Vt=(t,e,n)=>{let r=n||O();if(e||(e=r.globalTheme==="auto"?null:r.globalTheme),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=Zt(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}=r,l=a[o]||c[o],f=E(l);if(f&&l.value)return st(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?st(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=Z$(t,l,s,i,n);if(u!==void 0)return u}return st(t,`@${e}`,n)}else{let u={},d=wr(r);for(let p in l){if(p.charCodeAt(0)!==64)continue;let g=p.slice(1),h=st(t,p,n);if(h!==void 0&&(u[`[data-theme="${g}"] &`]=h,g==="light"||g==="dark")){let m=_r(g,r);if(!m)continue;u[m]={[d]:h}}}return u}}else return Gb(t,o,r)},Sr=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},yr=(t,e,n)=>{let r=O();if(EE(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&X$(t))return t;if(v(t)&&kt(t)){let h=t.slice(2);if(t=st(h),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.split(" "),y=r.color[m[0]];if(y&&!y.value&&!y.rgb&&(v(y)||I(y)||E(y))&&!Be.has(m[0])){Be.add(m[0]);try{r.color[m[0]]=yr(y,m[0])}finally{Be.delete(m[0])}y=r.color[m[0]]}if(y&&y.value){let S=y.rgb,b=m[1]!==void 0?m[1]:"1",x=m[2];x&&(S=mn(S,x)),t=`rgba(${S}, ${b})`}else{let S=m[2],b=m[1]!==void 0?m[1]:"1";if(S)try{let x=Fe(m[0]);x&&x.length>=3?t=`rgba(${mn(x.slice(0,3).join(", "),S)}, ${b})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let h={};for(let m in t)m!=="var"&&(h[m]=yr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Sr(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Zt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||E(m))&&!Be.has(h.name)){Be.add(h.name);try{r.color[h.name]=yr(m,h.name)}finally{Be.delete(h.name)}}let y=r.color[h.name];if(y&&y.rgb){let S=y.rgb;h.tone&&(S=mn(S,h.tone));let b=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${S}, ${b})`}}}let a=Fe(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},Us=(t,e,n)=>{let r=O();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&kt(t)&&(t=st(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let i={};for(let a in t)a!=="var"&&(i[a]=Us(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return r.useVariable&&Sr(i,"gradient",e,r),i}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[s]=t.value||t),{var:s,value:t.value||t}};$();var kd=(t,e,n={},r)=>{let o=r||O(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=v(e)?e:String(e),p=Zt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(B,V)=>c?{value:B,...V}:B;if(g){let B=o.color[`${g}Safe`];if(B){let V=`${d}@${u}`,nt=B[V]!==void 0?B[V]:B[d];if(nt!==void 0){let Mt=nt&&nt.rgb!==void 0?o.useVariable&&nt.var?`var(${nt.var})`:nt.value:st(nt,null,o);return h(Mt,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=st(t,u?`@${u}`:null,o),y=_o(t,o,u),S=_o(e,o,u);if(!y||!S)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let b=po(S.rgb,S.alpha),x=po(y.rgb,y.alpha,b),_=$s(x,b);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[w,k,A]=vc(y.rgb),[,T,M]=Ec([w,k,A]),P=fo(b)>.5,L=P?w:1-w,H=B=>{let V=P?w-B:w+B,nt=Math.max(0,Math.min(1,V));return{rgb:Ac(nt,T,M),L:nt}},lt=B=>{let{rgb:V}=H(B),nt=po(V.map(Mt=>Math.round(Mt)),y.alpha,b);return $s(nt,b)},Z=0,ft=L,wt=lt(ft)>=f;if(wt)for(let B=0;B<l;B++){let V=(Z+ft)/2;lt(V)>=f?ft=V:Z=V}else Z=ft;let{rgb:Pt,L:bt}=H(ft),$t=Pt.map(B=>Math.round(B)),U=lt(ft),j=y.alpha<1?`rgba(${$t.join(", ")}, ${y.alpha})`:`rgb(${$t.join(", ")})`,et=Math.abs(bt-w)*100;return h(j,{rgb:$t,ratio:U,startRatio:_,deviation:et,derived:!0,overridden:!1,reachable:wt})},Yb=(t,e,n={},r)=>kd(t,e,{...n,meta:!0},r);$();$();var Q$=t=>{let n=O().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return le(o),o},J$=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;xt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),le(n),gr(t,e)}},Uc=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},zc=()=>{let t=O(),{spacing:e}=t;le(e),Dn(e),J$(e)},tM=t=>{let e=O(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:le(t)},Ot=(t,e="padding",n,r)=>{let o=tM(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Ln(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ht(t):lo(t);if(I(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)=>bn(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return bn(t,e,o,r)}},Ve=(t,e,n,r)=>{let o=O(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Ln(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=Q$(t);return Ot(i,e,a,r)}return Ot(i,e,s,r)},Hc=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=ss.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};$();var wo=(t,e,n)=>!v(t)||xe.test(t)?t:tn(t).map(r=>(r=r.trim(),r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(o.startsWith("--"))return`var(${o})`;let s=bo(()=>st(o,e));if(Je(s))return s;if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em"||o==="inset"||o==="none"||uo.has(o.toLowerCase()))return o;n&&n(o);let i=Ot(o,"shadow");return i&&i.shadow?i.shadow:o}).join(" "))).join(", "),xr=(t,e,n,r)=>{let o=O();if(E(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":xr(t[0],e,"light"),"@dark":xr(t[1],e,"dark")};return o.useVariable&&Sr(a,"shadow",e,o),a}if(E(t)){let a={};for(let c in t)a[c]=xr(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Sr(a,"shadow",e,o),a}v(t)&&!xe.test(t)&&(t=wo(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Wc=(t,e)=>{let n=O();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=E(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={},c=wr(n);for(let l in s){if(l.charCodeAt(0)!==64)continue;let f=l.slice(1),u=s[l],d=u&&(u.value!==void 0?u.value:u);if(d!==void 0&&(a[`[data-theme="${f}"] &`]=d,f==="light"||f==="dark")){let p=_r(f,n);if(!p)continue;a[p]={[c]:d}}}return a}return n.verbose&&console.warn("Can't find color",t),t};var eM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),nM=t=>eM.has(t),Ee=(t,e,n)=>{if(t==null)return;let r=t+"";if(xe.test(r))return r;let o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:r.split(/\s+/).map(s=>{if(s=s.trim(),!s)return"";if(kt(s))return`var(${s})`;if(nM(s)||/^\d/.test(s)||s==="0")return s;let i=bo(()=>st(s,e));if(Je(i))return i;if(uo.has(s.toLowerCase()))return s;n&&n(s);let a=Ot(s,"border");return a&&a.border?a.border:s}).join(" ")};$();var rM=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"]),CE=["color","Color","background","Background","fill","Fill","stroke","Stroke"],PE=t=>{for(let e=0;e<CE.length;e++)if(t.includes(CE[e]))return!0;return!1},oM={boxShadow:wo,textShadow:wo,border:Ee,borderTop:Ee,borderRight:Ee,borderBottom:Ee,borderLeft:Ee,outline:Ee,columnRule:Ee},sM=t=>{if(!t)return!1;let e=Zt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},TE=new Set,iM=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;TE.has(i)||(TE.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${o}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},Qb=(t,e,n,r)=>{let o=oM[e];if(!o)return st(n,r);let s=null,i=o(n,r,a=>{!s&&sM(a)&&(s=a)});return s&&iM(t,e,r,n,i,s),i},Jb=(t,e)=>Ue(t,e),aM=t=>E(t)&&q(t.value),cM=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},Kc=(t,e)=>{let n=O();return aM(t)?!n.useVariable&&cM(t)?t:zs(t.value,e):zs(t,e)},LE=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&PE(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=st(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!rM.has(a)&&n.add(s)}}return n},lM=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),qc=(t,e)=>{for(let n in e){let r=e[n];E(r)?qc(t[n]||(t[n]={}),r):t[n]=r}return t},OE=(t,e,n,r)=>{if(qc(t,{[`[data-theme="${e}"] &`]:n}),e!=="light"&&e!=="dark")return;let o=_r(e,r);o&&qc(t,{[o]:{[wr(r)]:n}})},DE=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=LE(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let y={};for(let x in t)q(t[x]?.[l])&&(y[x]=t[x][l]);let S=r&&q(r[l])?r[l]:void 0;if(!Object.keys(y).length&&!S)continue;let b=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=DE(y,`${e}-${b}`,n,S);continue}let u=r&&!q(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let y of d){if(a.has(y))continue;let S=t[y]?.[l];if((S===void 0||q(S))&&(S=u),S===void 0)continue;let b=Qb(e,l,S,`@${y}`);b!==void 0&&(p[y]=b,(s&&y===s||!s&&(y==="light"||g===void 0))&&(g=b))}let h={},m=Object.keys(p).filter(y=>p[y]!==g);if(m.length){let y=p.light!==void 0?p.light:g,S=p.dark!==void 0?p.dark:g;if(PE(l)&&br(y)&&br(S)){h[l]=y===S?y:`light-dark(${y}, ${S})`;for(let b in p)b==="light"||b==="dark"||OE(h,b,{[l]:p[b]},n)}else{g!==void 0&&(h[l]=g);for(let b of m)OE(h,b,{[l]:p[b]},n)}}else{if(g===void 0)continue;h[l]=g}qc(c,h),c[`.${l}`]=h}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},Xb=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=LE(t,l);for(let u of l){let d=u.slice(0,1),p=q(r?.[u])||Object.values(t).some(g=>q(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)q(t[y]?.[u])&&(h[y]=t[y][u]);let m=q(r?.[u])?r[u]:void 0;c[u]=Xb(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)q(t[y]?.[u])&&(h[y]=t[y][u]);let m=q(r?.[u])?r[u]:void 0;c[u]=Xb(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!q(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let S,b=!1;for(let x of y){if(f.has(x))continue;let _=t[x]?.[u];if((_===void 0||q(_))&&(_=m),_===void 0)continue;let w=Qb(e,u,_,`@${x}`);if(w===void 0)continue;b=!0,(a&&x===a||!a&&(x==="light"||S===void 0))&&(S=w);let k=`[data-theme="${x}"]`;if(s[k]||(s[k]={}),s[k][h]=w,x==="dark"||x==="light"){let A=`@media (prefers-color-scheme: ${x})`;s[A]||(s[A]={}),s[A][h]=w}}if(S!==void 0&&(o[h]=S),!b)continue;c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},zs=(t,e,n,r)=>{let o=O(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(q(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?q(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=Xb(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?q(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=DE(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=zs(d,e,f,r||p)}else if(!a){let p=Qb(e,f,d,r),g=[...new Set([r,n].filter(S=>S).map(S=>S.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&q(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&q(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(v(t)&&kt(t)){let u=o.theme[t.slice(2)];return Ue(u,r)}return i},Zb=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(q(t[r]))if(e&&lM(r))n[r]=qc({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=Zb(t[r],e):o==="."&&(n[`&${r}`]=Zb(t[r],e))}else n[r]=t[r]}return n},IE=(t,e)=>{let n=e.shift();return t[n]?IE(t[n],e):t},RE=(t,e)=>I(e)?IE(t,e):v(e)&&t[e]?t[e]:t;var Ue=(t,e)=>{let n=O();if(v(t)&&kt(t)&&(t=Ue(t.slice(2))),!t||!v(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=RE(s,o):s&&e&&(s=RE(s,e)),Zb(s,!n.useVariable)};$();$();var Gc=(t,e)=>{let n=O(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=je(t.url,n.files)||t.url;Ms(s)?o=Ns(s):o=hr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=go(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>je(i,n.files)||i):je(t.url,n.files)||t.url;o=hr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},Yc=(t,e)=>{let n=O(),{fontFamily:r}=n;return ho(e||r,t)},Hs=(t,e)=>{let n=O(),{fontFamily:r,fontFamilyTypes:o}=n,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.default)&&(r.default=e),E(s)&&(s=lo(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};$();var vd=t=>{let e=O(),{typography:n,media:r}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;xt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,S=!i.unit&&m.has(h)?"rem":y,b=r[c],x="@media "+(b==="print"?`${b}`:`screen and ${b}`);if(n.templates[x]={fontSize:i.base/n.browserDefault+S},!a){xt(i,{sequence:{},scales:{},vars:{}}),le(i),gr(t,o);continue}xt(i,{sequence:{},scales:{},templates:{},vars:{}}),le(i),gr(t,o)}},Ed=t=>{let e=O();if(t.h1Matches){let n=t.unit,r=Fc(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Xc=()=>{let t=O(),{typography:e}=t;le(e),Ed(e),Dn(e),vd(e)},Zc=t=>{let e=O(),{typography:n}=e;return bn(t,"fontSize",n)};$();var Qc=t=>{if(!v(t))return;let n=O().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};$();var Jc=()=>{let t=O(),{timing:e}=t;le(e),Dn(e)},Ae=t=>{let e=O(),{timing:n}=e;return n[t]||n[co(t)]||t},fe=(t,e="timing")=>{let n=O(),{timing:r}=n;return bn(t,e,r)};$();var tl=()=>{let t=O(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return vn(o)?(nr(t,"document",o),o=t.document={}):o||(o=t.document={}),xt(o,{theme:n.document,fontFamily:ho(e),fontSize:r.base,lineHeight:r.lineHeight})};$();var n_={document:dt},$E=new WeakMap,ME=new WeakMap,fM=128,NE=1048576,t_=8192,r_=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),BE=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),uM=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},e_=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},dM=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Ws=(t,e)=>{let n=O();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?Vc(e,t):t},el=(t,e=n_)=>{let n=O(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];UE(r,e)},So=(t,e)=>{let n=O();return n.useIconSprite&&!n.semanticIcons?.[e]?Ws(t,e):t},xo=(t,e=n_)=>{let n=O(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];UE(r,e)},VE=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},pM=(t,e)=>{let n=typeof DOMParser<"u"?DOMParser:null;if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},hM=(t,e,n)=>{let r=String(n),o=ME.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=pM(t,r);if(i||(i=VE(t,{isRoot:!1}),i.innerHTML=r),r.length>NE)return i;let a=uM(i,t_);if(a>t_)return i;for(o||(o={entries:new Map,units:0,nodes:0},ME.set(e,o));o.entries.size>=fM||o.units+r.length>NE||o.nodes+a>t_;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},FE=t=>{let e=new Map;for(let n of t.children){let r=r_(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},gM=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),jE=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?FE(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${gM(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=FE(n)}return s.get(a)};for(let a of e.childNodes){if(BE(a))continue;let c=r_(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=e_(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=e_(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=e_(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},UE=(t,e=n_)=>{let n=O(),r=e.document||dt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Bc(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||VE(r);if(!i||!i.nodeType)return;let a=d=>hM(r,i,d),c=a(s),l=$E.get(i);l||$E.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!BE(d)&&!r_(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),jE(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{jE(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||dM(r.body,i);for(let d in t)n.__svgCache[d]=!0};$();var nl=(t={})=>{let e=O(),n=e.typography||{},r=e.document||{},o=E(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?Ue("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?Ue("document"):{};if(o.html&&Jt(o.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return at(xt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.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}},ve)};$();var mM=new Set(["fallback"]),o_=new Set,zE=(t,e)=>{o_.has(t)||(o_.add(t),tt()&&console.warn(e))},s_=()=>{o_.clear()},HE=t=>{for(let e in t)delete t[e];return t},rl=()=>{let t=O(),e=E(t.cssSkinVars)?HE(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?HE(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!E(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!E(l))continue;let f={};for(let u in l){if(mM.has(u))continue;let d=l[u];if(E(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&zE(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(zE(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},WE=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},ko=(t,e,n)=>{let r={};if(!E(t))return r;for(let s in t)r[WE(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[WE(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};$();var yM=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),qE=/^-?[A-Z][0-9]?$/,_n=t=>Ee(t),Ad=t=>{if(v(t))return xe.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(kt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=st(e);return Je(n)?n:e}).join(" ")},Cd=(t,e)=>Wc(t,e),ol=(t,e)=>{if(v(t))return xe.test(t)?t:tn(t).map(n=>(n=n.trim(),n?n.split(/\s+/).map(r=>{if(r=r.trim(),!r)return"";if(kt(r))return`var(${r})`;if(r==="inset"||r==="none")return r;let o=st(r);if(Je(o)){let i=Vt(r,e);return E(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(r)||r==="0"||r.includes("px")||r.slice(-2)==="em")return r;let s=Ot(r,"shadow");return s&&s.shadow?s.shadow:r}).join(" "):"")).join(", ")},sl=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",a=tn(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||yM.has(f)||f==="transparent"||xe.test(f))return f;let u=st(f);return Je(u)?u:f}).join(" ")));return r+a.join(", ")+s},Td=(t,e)=>{if(!v(t))return;let n=O();return tn(t).map(r=>{let o=r.trim();if(kt(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Vt(o,e);if(v(s))return s;if(E(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?sl(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Zt(o)?`url(${o})`:o}).join(", ")},Od=t=>v(t)&&ht(t).map(e=>Ot(e,"gap").gap).join(" "),Rd=t=>{if(!v(t))return t;let e=O();return ht(t).map(n=>qE.test(n)?yo(n,e.spacing):n).join(" ")},i_=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>kt(n)?`var(${n})`:n.length<3||n.includes("ms")?fe(n).timing||n:Ae(n)?Ae(n):n).join(" "):t},il=(t,e,n)=>{if(v(t))return t.split(",").map(r=>fe(r).timing||r).join(",")},Pd=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(i_).join(",")};function Et(t,e,n={},r={}){let o=pt.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Ln(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=Uc(t);!i&&a&&!r.ratio&&(o=Hc(o))}return r.ratio?Ve(n,t,o,s):Ot(o,t,void 0,s)}var N=(t,e=null,n)=>Et(t,e,n,{ratio:!0}),bM=(t,e,n)=>v(t)?ht(t).map(r=>qE.test(r)?Ve(e,n,r)[n]:r).join(" "):t,In=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ht(t).map(o=>{let s=Qc(o);return s!==void 0?bM(s,e,n):Ve(e,n,o)[n]}).join(" ")}};$();var Ks="__smblsThemeRootOwner",Gs=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},KE=(t,e,n)=>{if(!(!t||!e)){Gs(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},_M=(t,e)=>{let n=O(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ue=t=>t,wM=(t,e)=>{if(v(t)||Ie(t)){let n=O();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Ld={color:yr,gradient:Us,font:Gc,fontFamily:Hs,fontfamily:Hs,theme:Kc,icons:So,semanticIcons:ue,semanticicons:ue,svg:Ws,svgData:ue,typography:ue,shadow:xr,spacing:ue,media:ue,grid:ue,class:ue,timing:ue,reset:ue,unit:ue,animation:ue,vars:_M,sizes:wM,shape:ue,skins:ue},SM=(t,e,n,r)=>{nr(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},a_=(t,e,n)=>{let r=O(),o=Pc(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=vn(i)?SM(r,i,s,[o,s,t]):i,c=Ld[o]||Ld[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},c_=(t,e)=>{let n=O(),r=t.toLowerCase();return vn(e)?(nr(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t]):e==null?(n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t]):(Object.keys(e).sort((s,i)=>{let a=E(e[s])||I(e[s])?1:0,c=E(e[i])||I(e[i])?1:0;return a-c}).forEach(s=>{try{return a_(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t])},Dd=(t,e)=>{let n=e||O();n.globalTheme=t;let o=os(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[Ks]=n,c)Gs(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",KE(n,f,l)}else Gs(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},xM={},vo=(t,e=xM)=>{let n=e.config||O(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:S,...b}=t;e.newConfig&&(n=yd(e.newConfig)),kn(b.document)&&(n.__domDocument=b.document,delete b.document),kn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),S!==void 0&&(n.assets=S),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n);let _=os(n)||(typeof document<"u"?document:null),w=_&&_.defaultView||(typeof window<"u"?window:null),k=_&&(n.themeRoot||_.documentElement);if(k&&typeof k.setAttribute=="function")if(n.globalTheme&&n.globalTheme!=="auto")Gs(n),k.setAttribute("data-theme",n.globalTheme),n.resolvedTheme=n.globalTheme,k[Ks]=n,n.globalTheme==="dark"||n.globalTheme==="light"?k.style.colorScheme=n.globalTheme:k.style.colorScheme="light dark";else if(k[Ks]&&k[Ks]!==n&&k.hasAttribute("data-theme"))Gs(n),n.resolvedTheme=k.getAttribute("data-theme");else if(w&&w.matchMedia){let L=lt=>{let Z=lt.matches?"dark":"light";k.setAttribute("data-theme",Z),n.resolvedTheme=Z},H=w.matchMedia("(prefers-color-scheme: dark)");L(H),k.style.colorScheme="light dark",k[Ks]=n,KE(n,H,L)}else Gs(n),k.setAttribute("data-theme","light"),n.resolvedTheme="light",k.style.colorScheme="light",k[Ks]=n;n.__svgCache||(n.__svgCache={}),Vs(b);let A=Object.keys(b).filter(P=>!P.startsWith("__")),T=new Set(A);if(A.forEach(P=>{let L=P.toLowerCase();L!==P&&T.has(L)&&at(b[L],b[P],ve)}),A.map(P=>{let L=P.toLowerCase();if(!(L!==P&&T.has(L)))return c_(P,b[P])}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),b.typography)try{Xc()}catch(P){n.verbose&&console.warn("Error applying typography sequence",P)}if(b.spacing)try{zc()}catch(P){n.verbose&&console.warn("Error applying spacing sequence",P)}if(b.timing)try{Jc()}catch(P){n.verbose&&console.warn("Error applying timing sequence",P)}try{rl()}catch(P){n.verbose&&console.warn("Error applying skins",P)}tl();let M=nl();return M&&(n.reset=M),n};var z=(t,e)=>e.split(" ").map(n=>t+"-"+n),u_="top right bottom left",d_=u_+" block block-start block-end inline inline-start inline-end",de="start end",Mn="width style color",Id=t=>z(t,d_),kM=(()=>{let t=z("border","width style color image");for(let e of d_.split(" "))t.push("border-"+e,...z("border-"+e,Mn));return t})(),GE=t=>[...z("border-"+t,Mn+" start end"),...z("border-"+t+"-start",Mn),...z("border-"+t+"-end",Mn)],yt={animation:z("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:z("background","image position position-x position-y size repeat origin clip attachment color"),border:kM};for(let t of["width","style","color"])yt["border-"+t]=d_.split(" ").map(e=>"border-"+e+"-"+t);for(let t of u_.split(" "))yt["border-"+t]=z("border-"+t,Mn);yt["border-block"]=GE("block");yt["border-inline"]=GE("inline");Object.assign(yt,{"border-image":z("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:z("column","width count"),"column-rule":z("column-rule",Mn),container:z("container","name type"),"contain-intrinsic-size":z("contain-intrinsic","width height"),flex:z("flex","grow shrink basis"),"flex-flow":z("flex","direction wrap"),font:[...z("font","style variant weight stretch size"),"line-height",...z("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:z("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":z("grid-template","rows columns areas"),"grid-area":z("grid","row column row-start row-end column-start column-end"),"grid-row":z("grid-row",de),"grid-column":z("grid-column",de),inset:[...u_.split(" "),...z("inset","block block-start block-end inline inline-start inline-end")],"inset-block":z("inset-block",de),"inset-inline":z("inset-inline",de),"list-style":z("list-style","type position image"),margin:Id("margin"),"margin-block":z("margin-block",de),"margin-inline":z("margin-inline",de),mask:z("mask","image mode repeat position clip origin size composite"),offset:z("offset","position path distance rotate anchor"),outline:z("outline",Mn),overflow:z("overflow","x y"),"overscroll-behavior":z("overscroll-behavior","x y"),padding:Id("padding"),"padding-block":z("padding-block",de),"padding-inline":z("padding-inline",de)});for(let t of["content","items","self"])yt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(yt,{"scroll-margin":Id("scroll-margin"),"scroll-padding":Id("scroll-padding"),"text-decoration":z("text-decoration","line style color thickness"),"text-emphasis":z("text-emphasis","style color"),transition:z("transition","property duration timing-function delay behavior")});var vM="block-start block-end inline-start inline-end".split(" ");for(let t of vM)yt["border-"+t]=z("border-"+t,Mn);for(let t of["block","inline"])for(let e of Mn.split(" "))yt["border-"+t+"-"+e]=z("border-"+t,de.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(yt,{"animation-range":z("animation-range",de),"background-position":z("background-position","x y"),"font-variant":z("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":z("font-synthesis","weight style small-caps"),marker:z("marker","start mid end"),"position-try":z("position-try","order fallbacks"),"scroll-margin-block":z("scroll-margin-block",de),"scroll-margin-inline":z("scroll-margin-inline",de),"scroll-padding-block":z("scroll-padding-block",de),"scroll-padding-inline":z("scroll-padding-inline",de),"scroll-timeline":z("scroll-timeline","name axis"),"view-timeline":z("view-timeline","name axis inset"),"text-box":z("text-box","trim edge"),"text-wrap":z("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});yt.font.push("font-language-override");var $n=t=>"corner-"+t+"-shape";yt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map($n);Object.assign(yt,{"corner-top-shape":["top-left","top-right"].map($n),"corner-right-shape":["top-right","bottom-right"].map($n),"corner-bottom-shape":["bottom-left","bottom-right"].map($n),"corner-left-shape":["top-left","bottom-left"].map($n),"corner-block-start-shape":["start-start","start-end"].map($n),"corner-block-end-shape":["end-start","end-end"].map($n),"corner-inline-start-shape":["start-start","end-start"].map($n),"corner-inline-end-shape":["start-end","end-end"].map($n)});for(let t in yt){let e=yt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=yt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var wn={};for(let t in yt)for(let e of yt[t])(wn[e]||(wn[e]=[])).push(t);var f_=new Map,YE=t=>{let e=f_.get(t);if(e!==void 0)return e;f_.set(t,0),e=0;let n=wn[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,YE(n[r])+1);return f_.set(t,e),e};function al(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(wn,e)?YE(e):0}var EM=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,AM=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,CM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),TM=t=>{let e=[],n=0,r="";for(let o of String(t).replace(/\s*!important\s*$/,"").trim())o==="("?n++:o===")"&&n--,n===0&&/\s/.test(o)?(r&&e.push(r),r=""):r+=o;return r&&e.push(r),e};function cl(t,e,n){let r=yt[t];if(!r||r.indexOf(n)===-1)return!1;if(EM.test(t))return!0;if(!AM.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=TM(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>CM.has(s.toLowerCase()))}var Xs=new Map,aA=null,p_=null,OM=null;function ul(t){t.batchAtomicCss&&(p_=t.batchAtomicCss),t.compoundCssClass&&(OM=t.compoundCssClass)}var RM=new Set,ZE=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function __(t){try{let e=O();e&&(e.__domDocument=t)}catch{}t&&RM.add(t)}function Eo(){try{let t=O();if(t){if(ZE(t.__domDocument))return t.__domDocument;if(ZE(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var pe={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function Bd(){return{...pe}}function w_(){for(let t in pe)pe[t]=0;Fd=!1}var Fd=!1,Nd=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function PM(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Nd(n,"day")} ago)`}function LM(){try{let t=UM();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function DM(t,e){if(Fd)return!1;Fd=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Nd(pe.variable,"variable rule")} and ${Nd(pe.atomic,"atomic rule")}, while the design system held ${Nd(e,"CSS variable")}.
44
+ src: ${i};`},hr=(t,e,n,r)=>`@font-face {${Oc(t,e,n,r)}
45
+ }`,go=(t,e,n)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f}=e[o],u=Array.isArray(s)?s.map(d=>je(d,n)||d):je(s,n)||s;return Oc(t,u,i,{fontStyle:a,fontDisplay:c,fontStretch:l,unicodeRange:f})}),yb=t=>Object.keys(t).map(n=>go(n,t[n].value)),dd=(t,e,n)=>{if(e&&e.isVariable){let s=je(e.url,n)||e.url;return Ms(s)?Ns(s):hr(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap",unicodeRange:e.unicodeRange})}if(e[0])return go(t,e,n).map(ud);let o=Array.isArray(e.url)?e.url.map(s=>je(s,n)||s):je(e.url,n)||e.url;return hr(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch,unicodeRange:e.unicodeRange})},Rc=(t,e)=>Object.keys(t).map(r=>dd(r,t[r].value,e));$();$();$();$();qt();var Fs={};F(Fs,{animation:()=>Ib,breakpoints:()=>Lb,class:()=>jb,color:()=>Eb,devices:()=>Db,document:()=>dE,font:()=>_b,fontFace:()=>xb,fontFamily:()=>wb,fontFamilyTypes:()=>Sb,gradient:()=>Ab,grid:()=>Fb,icons:()=>Ob,media:()=>kb,reset:()=>pE,semanticIcons:()=>Rb,sequence:()=>Pn,shadow:()=>Tb,shape:()=>Ub,sizes:()=>Vb,skins:()=>zb,spacing:()=>vb,svg:()=>$b,svgData:()=>Mb,templates:()=>Nb,theme:()=>Cb,timing:()=>Pb,typography:()=>Pc,unit:()=>bb,vars:()=>Bb});var Pn={"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 bb={default:"em"};var P$={browserDefault:16,base:16,type:"font-size",ratio:Pn["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Pc=P$;var _b={};var wb={},Sb={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},xb={};var kb={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var L$={base:Pc.base,type:"spacing",ratio:Pn.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},vb=L$;var Eb={},Ab={};var Cb={};var Tb={};var Ob={},Rb={};var D$={default:150,base:150,type:"timing",ratio:Pn["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Pb=D$;var dE={};var Lb={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},Db={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 Ib={};var $b={},Mb={};var Nb={};var I$={},Fb=I$;var jb={};var pE={},Bb={},Vb={},Ub={},zb={};var md={},yd={},ve=new Set,pd=Fs,hd={},Dc=t=>t.replace(/_([a-z])/g,(e,n)=>n.toUpperCase());for(let t in pd){let e=t.toLowerCase();hd[e]=pd[t];let n=Dc(e);n!==e&&(hd[n]=pd[t]),e!==t&&(hd[t]=pd[t])}var mo={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:md,cssMediaVars:yd,CSS_VARS:md,CSS_MEDIA_VARS:yd,cssSkinVars:{},cssSkinFallback:{},_scratchConfig:!0,...hd},js=(t,e)=>{if(!t)return null;if(t.__globalThemeSignal)return Dt(e)&&t.__globalThemeSignal.set(e),t.__globalThemeSignal;let n=Dt(e)?e:t.globalTheme,r=Br(Dt(n)?n:"auto");return Object.defineProperty(t,"globalTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"__globalThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},hE=t=>t?js(t):null,Bs=(t,e)=>{if(!t)return null;if(t.__resolvedThemeSignal)return Dt(e)&&t.__resolvedThemeSignal.set(e),t.__resolvedThemeSignal;let n=Dt(e)?e:t.resolvedTheme,r=Br(Dt(n)?n:null);return Object.defineProperty(t,"resolvedTheme",{get(){return r.get()},set(o){r.set(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"__resolvedThemeSignal",{value:r,enumerable:!1,configurable:!0,writable:!0}),r},gE=t=>t?Bs(t):null;js(mo);Bs(mo);var gd=ut(mo),ke={active:"0",0:mo},mE=t=>(Dt(t)&&(ke.active=t),ke[t||ke.active]),Lc=[],J=t=>{t&&t._scratchConfig&&Lc.push(t)},X=()=>{Lc.pop()},O=t=>Lc.length?Lc[Lc.length-1]:ke[t||ke.active]||mo,bd=t=>{if(E(t))return ke.active="1",ke[1]=at(t,ut(gd),ve),Vs(ke[1]),js(ke[1]),Bs(ke[1]),t},$$=["useReset","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig"],M$=["useVariable","globalTheme","verbose"],N$=[["fontfamily","fontFamily","font_family"],["fontfamilytypes","fontFamilyTypes"],["semanticicons","semanticIcons"],["svgdata","svgData"]],Vs=t=>{for(let e of N$){let n;for(let r of e){let o=t[r];E(o)&&(n=n?at(n,o,ve):o)}if(n)for(let r of e)E(t[r])&&(t[r]=n)}},Ic=(t,e,{cleanBase:n=!1}={})=>{let r=n?null:O(),o=ut(!n&&r&&r._scratchConfig?r:gd);for(let i of $$)delete o[i];for(let i of M$)Object.prototype.hasOwnProperty.call(gd,i)?o[i]=gd[i]:delete o[i];let s=at(e||{},o,ve);return s.cssVars={},s.cssMediaVars={},s.CSS_VARS=s.cssVars,s.CSS_MEDIA_VARS=s.cssMediaVars,s.cssSkinVars={},s.cssSkinFallback={},s._scratchConfig=!0,Vs(s),js(s),Bs(s),t&&(ke[t]=s),s};var bn={"-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"},Wb=(t,e)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},e.scales[n]=s;let c=yE.has(e.unit)?"rem":e.unit;e.vars[r]=s+c},Ln=t=>{if(!t.includes("("))return t;let e=t.trim(),n=e.indexOf("("),r=e.slice(0,n),o=0,s=-1;for(let i=n;i<e.length;i++){let a=e[i];if(a==="(")o++;else if(a===")"&&(o--,o===0)){s=i;break}}return s===-1||/\s/.test(r)||e.slice(s+1).trim()!==""?[void 0,t]:[r,e.slice(n+1,s)]},Hb="\0",F$=(t,e)=>{let n="",r=0,o="";for(let s of t){if(r===0&&s!=="("){n+=s;continue}o+=s,s==="("?r++:s===")"&&(r--,r===0&&(n+=Hb+e.length+Hb,e.push(o),o=""))}return n+o},j$=(t,e)=>t.indexOf(Hb)===-1?t:t.replace(/\u0000(\d+)\u0000/g,(n,r)=>e[Number(r)]),B$=/^(calc|min|max|clamp)\((.*)\)$/,V$=(t,e)=>{let n=B$.exec(t);return n?`${n[1]}(${jc(n[2],e)})`:t.indexOf("(")!==-1?t:yo(t,e)},yE=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),$c=(t,e)=>{let{base:n,type:r,unit:o}=e,s=yE.has(o)?"rem":o,i=(Vr(s)?1:n)+s;if(t===0)return i;let c="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-")),l=`${c}-ratio`;if(t>0){let f=bn[t-1];return`calc(var(${c}-${f}) * var(${l}))`}if(t<0){let f=bn[t+1],u=Math.abs(t),d=Math.pow(bE,2*u),p=bn[u];return p?`max(calc(var(${c}-${f}) / var(${l})), calc(var(${c}-${p}) / ${d.toFixed(4)}))`:`calc(var(${c}-${f}) / var(${l}))`}},_d=(t,e,n,r)=>{let{type:o}=r,i=t===2&&e.length===2?t+1:t,l=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${l+i}))`},Mc=(t,e)=>{let r=(t*e-t)/1.618,o=t*e-r,s=t+r,i=(o+s)/2;return[o,i,s]},Nc=(t,e)=>Mc(t,e).map(n=>n/t),Fc=(t,e)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=t,l=~~(o*s)-~~o,f,[u,d,p]=Mc(o,s);l>16?f=[u,d,p]:f=[u,p],f.forEach((g,h)=>{let m=~~(g/r*1e3)/1e3,y=i+(h+1),S=a+(h+1)/10,b=_d(h+1,f,i,e),x={key:n+(h+1),variable:y,value:g,scaling:m,scalingVariable:b,index:S};Wb(x,e)})},bE=1.618,U$=(t,e,n)=>{if(t>=0)return e*Math.pow(n,t);let r=Math.abs(t),o=e*Math.pow(n,t),s=e*Math.pow(n,r)/Math.pow(bE,2*r);return Math.max(o,s)},le=t=>{let{type:e,base:n,ratio:r,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=bn[f],d=U$(f,n,r),p=~~(d/n*100)/100,g=c+u,h=$c(f,t),m={key:u,variable:g,value:d,base:n,scaling:p,scalingVariable:h,ratio:r,index:f};Wb(m,t),s&&Fc(m,t)}return t},qb=(t,e=0)=>{let{type:n,base:r,ratio:o,subSequence:s}=t,i=v(e)?e:bn[e],a=v(e)?Object.entries(bn).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=r*Math.pow(o,a),f=~~(l/r*100)/100,p="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-"))+"-"+i,g=$c(a,t),h={key:i,variable:p,value:l,base:r,scaling:f,scalingVariable:g,ratio:o,index:a};return Wb(h,c),s&&Fc(h,c),c},wd=(t,e)=>{if(!t||!v(e)||!e)return;let n=t[e]||t[e.toLowerCase()];if(n!==void 0)return e.charCodeAt(0)===45?`calc(${n} * -1)`:n;if(e.charCodeAt(0)!==45||e.length<2)return;let r=e.slice(1),o=t[r]||t[r.toLowerCase()];if(o!==void 0)return`calc(${o} * -1)`},yo=(t="A",e)=>{let n=O(),{unit:r}=n;if(v(t)&&kt(t))return`var(${t})`;if(v(t)&&/^(?:env|var|calc|min|max|clamp)\(/.test(t.trim()))return t;if(v(t)){let b=wd(n.sizes,t);if(b!==void 0)return b}let{sequence:o,unit:s=r.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(oa(t)||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let d=`--${e.varPrefix?e.varPrefix+"-":""}${kc(e.type.replace(".","-"))}-`,p=t.toUpperCase(),g=p.slice(0,1)==="-"?"-":"",h=g?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let y=b=>a.test(b)?`var(${d}${b}${m})`:b;if(h.includes("+")){let[b,x]=h.split("+"),_=`${y(b)} + ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}else if(h.includes("*")){let[b,x]=h.split("*"),_=`${y(b)} * ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}else if(h.includes("-")){let[b,x]=h.split("-"),_=`${y(b)} - ${y(x)}`;return g?`calc((${_}) * -1)`:`calc(${_})`}if(!o[h]&&h.length===2&&(n.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||n.useVariable){let b=`var(${d}${h}${m})`;return g?`calc(${b} * -1)`:b}let S=o?o[h]:null;if(!S){if(console.warn("can't find",o,h),tt())throw new Error(`[smbls] Unresolvable design-system token "${t}"`+(e.type?` for sequence "${e.type}"`:"")+" \u2014 not a registered `sizes` name and not a valid spacing/typography/timing sequence letter. The CSS property using it would silently be dropped in production. Register the token in `designSystem/sizes.js` (or the relevant sequence family) or fix the typo.");return}return s==="ms"||s==="s"?g+S.val+s:g+S.scaling+s},jc=(t,e)=>{if(!["+","-","*","/",","].filter(i=>t.includes(i+" ")).length)return t;let r=/(\s+-\s+|\s*[+*/,]\s*)/,o=[];return F$(t,o).split(r).map(i=>{let a=j$(i,o),c=a.trim();return!c||["+","-","*","/",","].includes(c)?a:V$(c,e)}).join("")},_n=(t,e,n,r)=>{if(typeof t!="string")return O().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!r&&t.includes("(")){if(/^(?:env|var)\(/.test(t.trim()))return{[e]:t};let s=Ln(t);r=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=jc(t,n):t=yo(t,n),{[e]:r?`${r}(${t})`:t}},Sd=(t,e)=>bn[t-e],Bc=t=>{let{h1Matches:e,sequence:n}=t;return new Array(6).fill(null).map((r,o)=>{let s=Sd(e,o);return n[s]})};$();var Kb=(t,e)=>{let n=O(),{cssVars:r}=n;q(t.value)||(r[t.var]=t.value)},Vc=(t,e,n)=>{let r=O(),{unit:o}=r,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(e.varPrefix?e.varPrefix+"-":"")+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let u=`${f}-ratio`;t[u]=a;let[d,p,g]=Nc(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${d/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${g/a})`},_E=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Dn=(t,e={})=>{let n=O(),{unit:r,timing:o,cssVars:s}=n,i=t.unit||r.default,a=_E.has(i)?"rem":i,{mediaRegenerate:c,sequence:l,scales:f}=t;c||Vc(s,t,e);for(let u in l){let d=l[u],p=(t.type===o.type?l[u].val:f[u])+a;if(!c){s[d.variable+"_default"]=p,s[d.variable]=d.scalingVariable;continue}e.useDefault===!1?s[d.variable]=p:(s[d.variable+"_default"]=p,s[d.variable]=`var(${d.variable+"_default"})`)}},gr=(t,e,n={})=>{let r=O(),{unit:o,media:s,cssVars:i}=r,a=e.slice(1),c=t[e],l=c.unit||t.unit||o.default,f=_E.has(l)?"rem":l,{mediaRegenerate:u}=t,{sequence:d,scales:p}=c,g=s[a];if(!g&&r.verbose&&console.warn("Can't find media query ",g),!u){let h=i[`@media ${g}`];h||(h=i[`@media ${g}`]={}),Vc(h,c,n);let m=t.unit||o.default;if(f!==m&&d)for(let y in d){let S=d[y],b=p[y]+f;h[S.variable+"_default"]=b,h[S.variable]=b}return}for(let h in d){let m=d[h],y=(Vr(f)?p[h]:d[h].val)+f;!g&&r.verbose&&console.warn("Can't find query ",g);let S=i[`@media ${g}`];S||(S=i[`@media ${g}`]={}),S[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};$();var SE=Qr(),Uc=t=>{let e=O(),n="";for(let r in t)e.__svgCache[r]||(e.__svgCache[r]=!0,n+=t[r]);return n},z$=t=>{let e=t&&(t.default||t);if(!v(e))return SE&&console.warn("parseRootAttributes:",e,"is not a string"),{};let n=e.match(/<svg\s+(.*?)>/);if(!n||!n[1])return{};let o=n[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},{}):{}},H$=(t,e)=>{let n=[];if(t.replace(/id="([^"]*)"/g,(o,s)=>(n.push(s),o)),!n.length)return t;let r=t;for(let o of n){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${e}-${o}`;r=r.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 r},wE=new Set,zc=(t,e)=>{let n=e&&e.default?e.default:e;if(!v(n))return SE&&!wE.has(t)&&(wE.add(t),console.warn("convertSvgToSymbol:",t,"is not a string")),"";e=n;let r=e.match(/^<symbol\b[^>]*\bid="([^"]*)"/);if(r){let u=r[1];return u===t?e:e.replace(`id="${u}"`,`id="${t}"`)}let o=z$(e),{width:s,height:i}=o,a=o.viewBox||`0 0 ${s||24} ${i||24}`,f=H$(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${a}"`);return f=f.replace(/^<symbol\b[^>]*>/,u=>u.replace(/\s(width|height)="[^"]*"/g,"")),f=f.replace("</svg","</symbol"),f=K$(f),f},W$="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",q$=new RegExp(`<(${W$})\\b([^>]*?)\\s*/>`,"g"),K$=t=>t.replace(q$,"<$1$2></$1>");var qs={};F(qs,{STANDARD_SCHEME_QUERIES:()=>kd,__resetSkinWarnings:()=>i_,appendSVGSprite:()=>rl,appendSvgIconsSprite:()=>xo,applyDocument:()=>nl,applyHeadings:()=>Ad,applyReset:()=>ol,applySkins:()=>sl,applySpacingSequence:()=>Wc,applyTimingSequence:()=>el,applyTypographySequence:()=>Qc,buildSkinVarStyles:()=>ko,checkIfBoxSize:()=>Hc,getColor:()=>st,getFontFamily:()=>Zc,getFontSizeByKey:()=>Jc,getMediaColor:()=>Vt,getMediaTheme:()=>Ue,getSafeInk:()=>vd,getSafeInkInfo:()=>Xb,getShadow:()=>Kc,getShapeByKey:()=>tl,getSpacingBasedOnRatio:()=>Ve,getSpacingByKey:()=>Ot,getTheme:()=>t_,getTimingByKey:()=>fe,getTimingFunction:()=>Ae,isPlainColor:()=>br,quietColorProbe:()=>bo,resolveBorderValue:()=>Ee,resolveColorRgb:()=>_o,resolveShadowValue:()=>wo,runThroughMedia:()=>Ed,schemeGuardSelector:()=>wr,schemeMediaQuery:()=>_r,setAdaptiveSchemeVar:()=>Sr,setColor:()=>yr,setFont:()=>Xc,setFontFamily:()=>Hs,setGradient:()=>Us,setMediaTheme:()=>zs,setSVG:()=>Ws,setShadow:()=>xr,setSvgIcon:()=>So,setTheme:()=>Yc,splitSpacedValue:()=>qc});$();var kd={light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)"},_r=(t,e)=>{let n=e.media&&e.media[t]||kd[t];return n?"@media "+(n==="print"?`${n}`:`screen and ${n}`):null},wr=t=>{let e=t.scopeSelector||":root";return`${e===":root"?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`} &`},Be=new Set,EE=new Set(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","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","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","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","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"]),G$=/^(?:#[0-9a-f]{3,8}$|(?:rgba?|hsla?|hwb|lab|lch|oklab|oklch|color|color-mix)\()/i,Y$=/gradient\(|url\(|image-set\(|var\(/i,X$=new Set(["transparent","currentColor","currentcolor"]),br=t=>{if(!v(t))return!1;let e=t.trim();return Y$.test(e)?!1:G$.test(e)?!0:EE.has(e)||X$.has(e)},xd=new Set,xE=t=>{if(!t)return!1;let{color:e,gradient:n}=t;return!!(E(e)&&Object.keys(e).length||E(n)&&Object.keys(n).length)},kE=new Set,Gb=0,bo=t=>{Gb++;try{return t()}finally{Gb--}},Z$=(t,e)=>{if(!v(t)||t.indexOf(" ")===-1)return null;let n=t.replace(/\s+/g,""),r=Zt(n);if(!r||r.passthrough||r.cssVar)return null;let{color:o,gradient:s}=e;return!o[r.name]&&!s[r.name]?null:n},Yb=(t,e,n)=>{let r=Z$(t,n);if(r){if(!kE.has(t)){kE.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` has a space before its alpha/tone modifier${i} \u2014 did you mean \`${r}\`? The space form never resolves, so the atomic class it mints carries no CSS value and paints invisibly. Dropped rather than shipped invisible.`)}return}let o=Zt(t);if(o&&o.name&&!o.passthrough&&!o.cssVar&&(o.alpha!==void 0||o.tone!==void 0)&&xE(n)&&!n.color[o.name]&&!n.gradient[o.name]){if(!Gb&&!xd.has(t)){xd.add(t);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color token \`${t}\` does not resolve${i} \u2014 \`${o.name}\` is not in the palette. Dropped rather than emitted as a raw value, which is invalid CSS the browser discards silently. Define it in designSystem/color.js or use a palette token.`)}return}let s=v(e)?e.toLowerCase():"";if(!EE.has(s)||!xE(n))return t;if(!xd.has(s)){xd.add(s);let i=n&&n.name?` (design system \`${n.name}\`)`:"";console.warn(`[scratch] color \`${t}\` is a CSS named colour that is not in the palette${i}. Dropped rather than emitted as a raw browser colour, which renders theme-blind and can be unreadable ("looks designed", so it ships unnoticed). Define it in designSystem/color.js or use a palette token.`)}},AE=(t,e,n)=>{let r=e!==void 0?e:1;if(!n)return`rgb(from ${t} r g b / ${r})`;if(n.charCodeAt(0)===43||n.charCodeAt(0)===45){let s=parseFloat(n),i=s<0?"-":"+",a=Math.abs(s);return`rgb(from ${t} calc(r ${i} ${a}) calc(g ${i} ${a}) calc(b ${i} ${a}) / ${r})`}return`hsl(from ${t} h s ${n}% / ${r})`},st=(t,e,n)=>{let r=n||O();if(!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(I(t))[o,s,i]=t;else{let u=Zt(t);if(!u){let{color:d,gradient:p}=r,g=p[t]||d[t];return g?(e&&g[e]&&(g=g[e]),r.useVariable?`var(${g.var})`:g.value):Yb(t,t,r)}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}=r,l=a[o]||c[o];if(!l)return Yb(t,o,r);if(e)if(l[e]!==void 0)l=l[e];else if(I(l)){let u=e.charCodeAt(0)===64?e.slice(1):e;u==="dark"?l=l[1]!==void 0?l[1]:l[0]:(u!=="light"&&r.verbose&&console.warn(t," - array-form color tokens only support light/dark; falling back to the light slot for scheme",e),l=l[0])}else r.verbose&&console.warn(t," - does not have ",e);if(v(l)){if(Be.has(o))return l;Be.add(o);try{return st(l,null,n)}finally{Be.delete(o)}}let f=l.rgb;if(!f){let u=r.useVariable?`var(${l.var})`:l.value;return(s||i)&&u?AE(u,s,i):u}return i&&!l[i]&&(f=yn(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, ${l.alpha!==void 0?l.alpha:1})`:r.useVariable?`var(${l.var})`:l.value!==void 0?l.value:`rgb(${f})`},vE=t=>{let e=Fe(t);return!e||e.length<3||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===0&&t.toLowerCase()!=="transparent"?null:{rgb:[e[0],e[1],e[2]],alpha:e[3]!==void 0?e[3]:1}},Q$=(t,e)=>{if(!e)return t;let n=t.rgb;if(e.tone){let o=yn(n,e.tone);n=v(o)?o.split(",").map(s=>parseFloat(s.trim())):o}let r=e.alpha!==void 0?parseFloat(e.alpha):t.alpha;return{rgb:n,alpha:r}},_o=(t,e,n)=>{let r=e||O();if(!v(t))return null;let o=Zt(t);if(o){if(o.passthrough){let d=Fe(o.passthrough);return d&&d.length>=3?{rgb:[d[0],d[1],d[2]],alpha:d[3]!==void 0?d[3]:1}:null}if(o.cssVar)return null}let s=o?o.name:t,{color:i,gradient:a}=r,c=i[s]||a[s];if(!c)return vE(t);if(v(c)){let d;if(Be.has(s))d=vE(c);else{Be.add(s);try{d=_o(c,r,n)}finally{Be.delete(s)}}return d?Q$(d,o):null}if(c.rgb===void 0&&E(c)){let d=`@${n||"light"}`;c=c[d]!==void 0?c[d]:c["@light"]}if(!c||c.rgb===void 0)return null;let l=c.rgb;o&&o.tone&&(l=yn(l,o.tone));let f=v(l)?l.split(",").map(d=>parseFloat(d.trim())):l,u=o&&o.alpha!==void 0?parseFloat(o.alpha):c.alpha!==void 0?c.alpha:1;return{rgb:f,alpha:u}},CE=t=>E(t)&&t.value!==void 0&&(t.rgb!==void 0||t.var!==void 0),TE=t=>{if(!E(t)||t.value!==void 0)return null;let e=[];for(let n in t)if(n!=="var"){if(n.charCodeAt(0)!==64||!CE(t[n]))return null;e.push(n.slice(1))}return e.length?e:null},J$=t=>v(t&&t.var)&&TE(t)!==null,tM=(t,e,n,r,o)=>{let s=TE(e);if(!s)return;if(v(e.var)){let c=`var(${e.var})`;return n||r?AE(c,n,r):c}if(s.length!==2||!s.includes("light")||!s.includes("dark"))return;let i=st(t,"@light",o),a=st(t,"@dark",o);if(!(!br(i)||!br(a)))return i===a?i:`light-dark(${i}, ${a})`},Vt=(t,e,n)=>{let r=n||O();if(e||(e=r.globalTheme==="auto"?null:r.globalTheme),!v(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;let o,s,i;if(I(t))o=t[0];else{let u=Zt(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}=r,l=a[o]||c[o],f=E(l);if(f&&l.value)return st(t,`@${e}`,n);if(f){if(r.useVariable&&l.var)return s||i?st(t,null,n):`var(${l.var})`;if(e){if(!r.useVariable&&a[o]===l){let u=tM(t,l,s,i,n);if(u!==void 0)return u}return st(t,`@${e}`,n)}else{let u={},d=wr(r);for(let p in l){if(p.charCodeAt(0)!==64)continue;let g=p.slice(1),h=st(t,p,n);if(h!==void 0&&(u[`[data-theme="${g}"] &`]=h,g==="light"||g==="dark")){let m=_r(g,r);if(!m)continue;u[m]={[d]:h}}}return u}}else return Yb(t,o,r)},Sr=(t,e,n,r)=>{let s=`--${r.varPrefix?r.varPrefix+"-":""}${e}-${n}`,i,a={};for(let c in t){if(c.charCodeAt(0)!==64)continue;let l=c.slice(1),f=t[c],u=f&&(f.value||f);!u||typeof u!="string"||(a[l]=u,(l==="light"||i===void 0)&&(i=u))}if(i!==void 0){r.cssVars[s]=i,r.cssMediaVars||(r.cssMediaVars={});for(let c in a){let l=`[data-theme="${c}"]`;if(r.cssMediaVars[l]||(r.cssMediaVars[l]={}),r.cssMediaVars[l][s]=a[c],c==="light"||c==="dark"){let f=`@media (prefers-color-scheme: ${c})`;r.cssMediaVars[f]||(r.cssMediaVars[f]={}),r.cssMediaVars[f][s]=a[c]}}return t.var=s,s}},yr=(t,e,n)=>{let r=O();if(CE(t))return r.useVariable&&t.var&&(r.cssVars[t.var]=t.value),t;if(!r.useVariable&&J$(t))return t;if(v(t)&&kt(t)){let h=t.slice(2);if(t=st(h),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let m=h.split(" "),y=r.color[m[0]];if(y&&!y.value&&!y.rgb&&(v(y)||I(y)||E(y))&&!Be.has(m[0])){Be.add(m[0]);try{r.color[m[0]]=yr(y,m[0])}finally{Be.delete(m[0])}y=r.color[m[0]]}if(y&&y.value){let S=y.rgb,b=m[1]!==void 0?m[1]:"1",x=m[2];x&&(S=yn(S,x)),t=`rgba(${S}, ${b})`}else{let S=m[2],b=m[1]!==void 0?m[1]:"1";if(S)try{let x=Fe(m[0]);x&&x.length>=3?t=`rgba(${yn(x.slice(0,3).join(", "),S)}, ${b})`:t=m[0]}catch{t=m[0]}else t=m[0]}}}if(I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let h={};for(let m in t)m!=="var"&&(h[m]=yr(t[m],e,m.slice(0,1)==="@"?m.slice(1):m));return r.useVariable&&Sr(h,"color",e,r),h}let s=`--${r.varPrefix?r.varPrefix+"-":""}color-${e}`+(n?`-${n}`:""),i=t.value||t;if(v(i)&&!i.includes("(")&&!i.startsWith("#")){let h=Zt(i);if(h&&h.name&&!h.passthrough&&!h.cssVar){let m=r.color[h.name];if(m&&!m.value&&!m.rgb&&(v(m)||I(m)||E(m))&&!Be.has(h.name)){Be.add(h.name);try{r.color[h.name]=yr(m,h.name)}finally{Be.delete(h.name)}}let y=r.color[h.name];if(y&&y.rgb){let S=y.rgb;h.tone&&(S=yn(S,h.tone));let b=h.alpha!==void 0?parseFloat(h.alpha):y.alpha!==void 0?y.alpha:1;i=`rgba(${S}, ${b})`}}}let a=Fe(i),[c,l,f,u=1]=a,d=parseFloat(u.toFixed(2)),p=`${c}, ${l}, ${f}`,g=`rgba(${p}, ${d})`;return r.useVariable&&(r.cssVars[s]=g),{var:s,rgb:p,alpha:d,value:g}},Us=(t,e,n)=>{let r=O();if(E(t)&&t.value!==void 0&&t.var!==void 0)return r.useVariable&&(r.cssVars[t.var]=t.value),t;if(v(t)&&kt(t)&&(t=st(t.slice(2))),I(t)&&(t={"@light":t[0],"@dark":t[1]!==void 0?t[1]:t[0]}),E(t)){let i={};for(let a in t)a!=="var"&&(i[a]=Us(t[a],e,a.slice(0,1)==="@"?a.slice(1):a));return r.useVariable&&Sr(i,"gradient",e,r),i}let s=`--${r.varPrefix?r.varPrefix+"-":""}gradient-${e}`+(n?`-${n}`:"");return r.useVariable&&(r.cssVars[s]=t.value||t),{var:s,value:t.value||t}};$();var vd=(t,e,n={},r)=>{let o=r||O(),{min:s=4.5,large:i=!1,scheme:a,meta:c=!1,maxIterations:l=15}=n,f=i?3:s,u=a||(o.globalTheme&&o.globalTheme!=="auto"?o.globalTheme:"light"),d=v(e)?e:String(e),p=Zt(t),g=p&&!p.passthrough&&!p.cssVar?p.name:null,h=(B,V)=>c?{value:B,...V}:B;if(g){let B=o.color[`${g}Safe`];if(B){let V=`${d}@${u}`,nt=B[V]!==void 0?B[V]:B[d];if(nt!==void 0){let Mt=nt&&nt.rgb!==void 0?o.useVariable&&nt.var?`var(${nt.var})`:nt.value:st(nt,null,o);return h(Mt,{ratio:null,deviation:0,derived:!1,overridden:!0})}}}let m=st(t,u?`@${u}`:null,o),y=_o(t,o,u),S=_o(e,o,u);if(!y||!S)return o.verbose&&console.warn("getSafeInk: could not resolve",t,e,"\u2014 returning hue unchanged"),h(m,{ratio:null,deviation:0,derived:!1,overridden:!1,unresolved:!0});let b=po(S.rgb,S.alpha),x=po(y.rgb,y.alpha,b),_=$s(x,b);if(_>=f-.02)return h(m,{ratio:_,deviation:0,derived:!1,overridden:!1});let[w,k,A]=Ac(y.rgb),[,T,M]=Cc([w,k,A]),P=fo(b)>.5,L=P?w:1-w,H=B=>{let V=P?w-B:w+B,nt=Math.max(0,Math.min(1,V));return{rgb:Tc(nt,T,M),L:nt}},lt=B=>{let{rgb:V}=H(B),nt=po(V.map(Mt=>Math.round(Mt)),y.alpha,b);return $s(nt,b)},Z=0,ft=L,wt=lt(ft)>=f;if(wt)for(let B=0;B<l;B++){let V=(Z+ft)/2;lt(V)>=f?ft=V:Z=V}else Z=ft;let{rgb:Pt,L:bt}=H(ft),$t=Pt.map(B=>Math.round(B)),U=lt(ft),j=y.alpha<1?`rgba(${$t.join(", ")}, ${y.alpha})`:`rgb(${$t.join(", ")})`,et=Math.abs(bt-w)*100;return h(j,{rgb:$t,ratio:U,startRatio:_,deviation:et,derived:!0,overridden:!1,reachable:wt})},Xb=(t,e,n={},r)=>vd(t,e,{...n,meta:!0},r);$();$();var eM=t=>{let n=O().spacing||{},r=parseFloat(t.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return le(o),o},nM=t=>{for(let e in t){let n=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f}=t;xt(n,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:l,unit:f,sequence:{},scales:{},templates:{},vars:{}}),le(n),gr(t,e)}},Hc=t=>{let e=t.toLowerCase(),n=e.includes("width")||e.includes("height"),r=e.includes("border")||e.includes("outline");return n&&!r},Wc=()=>{let t=O(),{spacing:e}=t;le(e),Dn(e),nM(e)},rM=t=>{let e=O(),{spacing:n}=e;return!t||!t.sequence?n:Object.keys(t.sequence).length>0?t:le(t)},Ot=(t,e="padding",n,r)=>{let o=rM(n);if(v(t)){if(!r&&/^(?:env|var)\(/.test(t.trim()))return{[e]:t};if(!r&&t.includes("(")){let i=Ln(t);r=i[0],t=i[1]}}let s=r?[t]:v(t)&&t.includes("(")?ht(t):lo(t);if(I(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)=>_n(s[f],e+l+i,o,r);return a[s.length].map((l,f)=>c(l,f))}return _n(t,e,o,r)}},Ve=(t,e,n,r)=>{let o=O(),{spacing:s}=o,i=n||t[e];if(!r&&v(i)&&/^(?:env|var)\(/.test(i.trim()))return{[e]:i};if(!r&&v(i)&&i.includes("(")){let a=Ln(i);r=a[0],i=a[1]}if(t.spacingRatio){let a=eM(t);return Ot(i,e,a,r)}return Ot(i,e,s,r)},qc=t=>{let e=n=>{let r=["+","-","*","/"].includes(n),o=ss.some(i=>t.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return t.split(",").map(n=>n.trim()).map(e).join(",").split(" ").map(e).join(" ")};$();var wo=(t,e,n)=>!v(t)||xe.test(t)?t:en(t).map(r=>(r=r.trim(),r.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(o.startsWith("--"))return`var(${o})`;let s=bo(()=>st(o,e));if(tn(s))return s;if(/^\d/.test(o)||o==="0"||o.includes("px")||o.slice(-2)==="em"||o==="inset"||o==="none"||uo.has(o.toLowerCase()))return o;n&&n(o);let i=Ot(o,"shadow");return i&&i.shadow?i.shadow:o}).join(" "))).join(", "),xr=(t,e,n,r)=>{let o=O();if(E(t)&&t.value!==void 0&&t.var!==void 0)return o.useVariable&&(o.cssVars[t.var]=t.value),t;if(I(t)){let a={"@light":xr(t[0],e,"light"),"@dark":xr(t[1],e,"dark")};return o.useVariable&&Sr(a,"shadow",e,o),a}if(E(t)){let a={};for(let c in t)a[c]=xr(t[c],e,c.startsWith("@")?c.slice(1):c);return o.useVariable&&Sr(a,"shadow",e,o),a}v(t)&&!xe.test(t)&&(t=wo(t));let i=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${e}`+(n?`-${n}`:"");return o.useVariable&&(o.cssVars[i]=t),{var:i,value:t}},Kc=(t,e)=>{let n=O();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!v(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(kt(t))return`var(${t})`;let[r]=I(t)?t:t.split(" "),s=n.shadow[r],i=E(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),t;if(i&&!s.value&&n.useVariable&&s.var)return`var(${s.var})`;if(e){let a=s["@"+e]||s[e];if(a)return a.value!==void 0?a.value:a;n.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={},c=wr(n);for(let l in s){if(l.charCodeAt(0)!==64)continue;let f=l.slice(1),u=s[l],d=u&&(u.value!==void 0?u.value:u);if(d!==void 0&&(a[`[data-theme="${f}"] &`]=d,f==="light"||f==="dark")){let p=_r(f,n);if(!p)continue;a[p]={[c]:d}}}return a}return n.verbose&&console.warn("Can't find color",t),t};var oM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),sM=t=>oM.has(t),Ee=(t,e,n)=>{if(t==null)return;let r=t+"";if(xe.test(r))return r;let o=r.trim();return o==="none"||o==="0"||o==="initial"||o==="inherit"||o==="unset"?r:r.split(/\s+/).map(s=>{if(s=s.trim(),!s)return"";if(kt(s))return`var(${s})`;if(sM(s)||/^\d/.test(s)||s==="0")return s;let i=bo(()=>st(s,e));if(tn(i))return i;if(uo.has(s.toLowerCase()))return s;n&&n(s);let a=Ot(s,"border");return a&&a.border?a.border:s}).join(" ")};$();var iM=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"]),OE=["color","Color","background","Background","fill","Fill","stroke","Stroke"],DE=t=>{for(let e=0;e<OE.length;e++)if(t.includes(OE[e]))return!0;return!1},aM={boxShadow:wo,textShadow:wo,border:Ee,borderTop:Ee,borderRight:Ee,borderBottom:Ee,borderLeft:Ee,outline:Ee,columnRule:Ee},cM=t=>{if(!t)return!1;let e=Zt(t);return!e||!e.name||e.passthrough||e.cssVar?!1:e.alpha!==void 0||e.tone!==void 0},RE=new Set,lM=(t,e,n,r,o,s)=>{if(!tt())return;let i=`${t}::${e}::${n||""}::${r}`;RE.has(i)||(RE.add(i),console.warn(`[smbls/scratch] theme param "${e}" on "${t}"`+(n?` (${n})`:"")+` did not fully resolve: "${r}" -> "${o}" still contains the unresolved token "${s}". This is not valid CSS \u2014 the browser will drop the whole declaration. Register "${s}" as a design-system color token or fix the typo.`))},Jb=(t,e,n,r)=>{let o=aM[e];if(!o)return st(n,r);let s=null,i=o(n,r,a=>{!s&&cM(a)&&(s=a)});return s&&lM(t,e,r,n,i,s),i},t_=(t,e)=>Ue(t,e),fM=t=>E(t)&&q(t.value),uM=t=>{for(let e in t){let n=t[e];if(v(n)&&n.startsWith("var(--"))return!0}return!1},Yc=(t,e)=>{let n=O();return fM(t)?!n.useVariable&&uM(t)?t:zs(t.value,e):zs(t,e)},IE=(t,e)=>{let n=new Set;for(let r of e){let o=r.slice(0,1);if(!(o==="@"||o==="."||o===":")&&DE(r))for(let s in t){if(n.has(s))continue;let i=t[s]?.[r];if(i===void 0)continue;let a=st(i,`@${s}`);a!==void 0&&v(a)&&/^[a-z][a-zA-Z]+$/.test(a)&&!iM.has(a)&&n.add(s)}}return n},dM=t=>t.startsWith("[data-theme=")||t.startsWith("@media"),Gc=(t,e)=>{for(let n in e){let r=e[n];E(r)?Gc(t[n]||(t[n]={}),r):t[n]=r}return t},PE=(t,e,n,r)=>{if(Gc(t,{[`[data-theme="${e}"] &`]:n}),e!=="light"&&e!=="dark")return;let o=_r(e,r);o&&Gc(t,{[o]:{[wr(r)]:n}})},$E=(t,e,n,r)=>{let o=n.globalTheme!==void 0?n.globalTheme:"auto",s=o&&o!=="auto"?String(o).replace(/^'|'$/g,""):null,i=new Set(r?Object.keys(r):[]);for(let l in t)if(t[l])for(let f of Object.keys(t[l]))i.add(f);let a=IE(t,i),c={};for(let l of i){let f=l.slice(0,1);if(f==="@")continue;if(f==="."||f===":"){let y={};for(let x in t)q(t[x]?.[l])&&(y[x]=t[x][l]);let S=r&&q(r[l])?r[l]:void 0;if(!Object.keys(y).length&&!S)continue;let b=f==="."?l.slice(1):l.replace(/^:+/,"");c[l]=$E(y,`${e}-${b}`,n,S);continue}let u=r&&!q(r[l])?r[l]:void 0,d=new Set(Object.keys(t));u!==void 0&&(d.add("light"),d.add("dark"),s&&d.add(s));let p={},g;for(let y of d){if(a.has(y))continue;let S=t[y]?.[l];if((S===void 0||q(S))&&(S=u),S===void 0)continue;let b=Jb(e,l,S,`@${y}`);b!==void 0&&(p[y]=b,(s&&y===s||!s&&(y==="light"||g===void 0))&&(g=b))}let h={},m=Object.keys(p).filter(y=>p[y]!==g);if(m.length){let y=p.light!==void 0?p.light:g,S=p.dark!==void 0?p.dark:g;if(DE(l)&&br(y)&&br(S)){h[l]=y===S?y:`light-dark(${y}, ${S})`;for(let b in p)b==="light"||b==="dark"||PE(h,b,{[l]:p[b]},n)}else{g!==void 0&&(h[l]=g);for(let b of m)PE(h,b,{[l]:p[b]},n)}}else{if(g===void 0)continue;h[l]=g}Gc(c,h),c[`.${l}`]=h}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},Zb=(t,e,n,r)=>{let{cssVars:o}=n;n.cssMediaVars||(n.cssMediaVars={});let s=n.cssMediaVars,i=n.globalTheme!==void 0?n.globalTheme:"auto",a=i&&i!=="auto"?String(i).replace(/^'|'$/g,""):null,c={},l=new Set(r?Object.keys(r):[]);for(let u in t)if(t[u])for(let d of Object.keys(t[u]))l.add(d);let f=IE(t,l);for(let u of l){let d=u.slice(0,1),p=q(r?.[u])||Object.values(t).some(g=>q(g?.[u]));if(d==="."&&p){let g=u.slice(1),h={};for(let y in t)q(t[y]?.[u])&&(h[y]=t[y][u]);let m=q(r?.[u])?r[u]:void 0;c[u]=Zb(h,`${e}-${g}`,n,m)}else if(d===":"&&p){let g=u.replace(/^:+/,""),h={};for(let y in t)q(t[y]?.[u])&&(h[y]=t[y][u]);let m=q(r?.[u])?r[u]:void 0;c[u]=Zb(h,`${e}-${g}`,n,m)}else if(d!=="@"&&d!=="."&&d!==":"){let h=`--${n.varPrefix?n.varPrefix+"-":""}theme-${e}-${u}`,m=r&&!q(r[u])?r[u]:void 0,y=new Set(Object.keys(t));m!==void 0&&(y.add("light"),y.add("dark"),a&&y.add(a));let S,b=!1;for(let x of y){if(f.has(x))continue;let _=t[x]?.[u];if((_===void 0||q(_))&&(_=m),_===void 0)continue;let w=Jb(e,u,_,`@${x}`);if(w===void 0)continue;b=!0,(a&&x===a||!a&&(x==="light"||S===void 0))&&(S=w);let k=`[data-theme="${x}"]`;if(s[k]||(s[k]={}),s[k][h]=w,x==="dark"||x==="light"){let A=`@media (prefers-color-scheme: ${x})`;s[A]||(s[A]={}),s[A][h]=w}}if(S!==void 0&&(o[h]=S),!b)continue;c[u]=`var(${h})`,c[`.${u}`]={[u]:c[u]}}}return(c.background||c.color||c.backgroundColor)&&(c[".inversed"]={color:c.background||c.backgroundColor,background:c.color}),c},zs=(t,e,n,r)=>{let o=O(),{cssVars:s}=o,i={value:t},a=!n&&!r,c,l;if(q(t)){if(a&&o.useVariable){let f={},u={};for(let d in t)d.startsWith("@")?q(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];(Object.keys(f).length||Object.keys(u).length)&&(l=Zb(f,e,o,u),Object.assign(i,l))}else if(a){let f={},u={};for(let d in t)d.startsWith("@")?q(t[d])&&(f[d.slice(1)]=t[d]):u[d]=t[d];c=$E(f,e,o,u),Object.assign(i,c)}for(let f in t){let u=f.slice(0,1),d=t[f];if(u==="@"||u===":"||u==="."){let p=u==="@"&&f;i[f]=zs(d,e,f,r||p)}else if(!a){let p=Jb(e,f,d,r),g=[...new Set([r,n].filter(S=>S).map(S=>S.slice(1)))],h=g.length?"-"+g.join("-"):"",y=`--${o.varPrefix?o.varPrefix+"-":""}theme-${e}${h}-${f}`;o.useVariable?(o.useThemeSuffixedVars&&(s[y]=p),i[f]=`var(${y})`):i[f]=p,i[`.${f}`]={[f]:i[f]}}}if(c)for(let f in c){let u=f.slice(0,1);(u==="."||u===":")&&q(t[f])&&(i[f]=c[f])}if(l)for(let f in l){let u=f.slice(0,1);(u==="."||u===":")&&q(t[f])&&(i[f]=l[f])}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(v(t)&&kt(t)){let u=o.theme[t.slice(2)];return Ue(u,r)}return i},Qb=(t,e)=>{let n={};for(let r in t){let o=r.slice(0,1);if(q(t[r]))if(e&&dM(r))n[r]=Gc({},t[r]);else{if(o==="@")continue;o===":"?n[`&${r}`]=Qb(t[r],e):o==="."&&(n[`&${r}`]=Qb(t[r],e))}else n[r]=t[r]}return n},ME=(t,e)=>{let n=e.shift();return t[n]?ME(t[n],e):t},LE=(t,e)=>I(e)?ME(t,e):v(e)&&t[e]?t[e]:t;var Ue=(t,e)=>{let n=O();if(v(t)&&kt(t)&&(t=Ue(t.slice(2))),!t||!v(t)){n.verbose&&console.warn(`${t} - Theme is not a string`);return}let[r,...o]=I(t)?t:t.split(" "),s=n.theme[r];return s&&o.length?s=LE(s,o):s&&e&&(s=LE(s,e)),Qb(s,!n.useVariable)};$();$();var Xc=(t,e)=>{let n=O(),r=`--font-${e}`;if(!t||I(t)&&!t[0])return;let o;if(t.isVariable){let s=je(t.url,n.files)||t.url;Ms(s)?o=Ns(s):o=hr(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap",unicodeRange:t.unicodeRange})}else if(t[0])o=go(e,t,n.files);else{let s=Array.isArray(t.url)?t.url.map(i=>je(i,n.files)||i):je(t.url,n.files)||t.url;o=hr(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch,unicodeRange:t.unicodeRange})}return{var:r,value:t,fontFace:o}},Zc=(t,e)=>{let n=O(),{fontFamily:r}=n;return ho(e||r,t)},Hs=(t,e)=>{let n=O(),{fontFamily:r,fontFamilyTypes:o}=n,{value:s,type:i}=t;t.isDefault&&(!t.isSystemFallback||!r.default)&&(r.default=e),E(s)&&(s=lo(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i,isSystemFallback:!!t.isSystemFallback}};$();var Ed=t=>{let e=O(),{typography:n,media:r}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h}=t;xt(i,{type:l,base:f,ratio:u,range:d,subSequence:p,h1Matches:g,unit:h});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||h,S=!i.unit&&m.has(h)?"rem":y,b=r[c],x="@media "+(b==="print"?`${b}`:`screen and ${b}`);if(n.templates[x]={fontSize:i.base/n.browserDefault+S},!a){xt(i,{sequence:{},scales:{},vars:{}}),le(i),gr(t,o);continue}xt(i,{sequence:{},scales:{},templates:{},vars:{}}),le(i),gr(t,o)}},Ad=t=>{let e=O();if(t.h1Matches){let n=t.unit,r=Bc(t),{templates:o}=t;for(let s in r){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${r[s]?.variable})`:`${r[s]?.scaling}${n}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},Qc=()=>{let t=O(),{typography:e}=t;le(e),Ad(e),Dn(e),Ed(e)},Jc=t=>{let e=O(),{typography:n}=e;return _n(t,"fontSize",n)};$();var tl=t=>{if(!v(t))return;let n=O().shape;if(n)return n[t]!==void 0?n[t]:n[t.toLowerCase()]};$();var el=()=>{let t=O(),{timing:e}=t;le(e),Dn(e)},Ae=t=>{let e=O(),{timing:n}=e;return n[t]||n[co(t)]||t},fe=(t,e="timing")=>{let n=O(),{timing:r}=n;return _n(t,e,r)};$();var nl=()=>{let t=O(),{fontFamily:e,theme:n,typography:r}=t,o=t.document;return vn(o)?(nr(t,"document",o),o=t.document={}):o||(o=t.document={}),xt(o,{theme:n.document,fontFamily:ho(e),fontSize:r.base,lineHeight:r.lineHeight})};$();var r_={document:dt},NE=new WeakMap,FE=new WeakMap,pM=128,jE=1048576,e_=8192,o_=t=>t.nodeType===1&&t.localName==="symbol"&&t.getAttribute("id"),UE=t=>t.nodeType===8||t.nodeType===3&&!t.textContent.trim(),hM=(t,e)=>{let n=1,r=t.ownerDocument;if(r&&typeof r.createTreeWalker=="function"){let s=r.createTreeWalker(t,4294967295);for(;s.nextNode();)if(++n>e)return n;return n}let o=[t];for(;o.length;){let s=o.pop().childNodes||[];for(let i=0;i<s.length;i++){if(++n>e)return n;o.push(s[i])}}return n},n_=(t,e)=>{if(typeof t.importNode=="function")return t.importNode(e,!0);let n=e.cloneNode(!0);return typeof t.adoptNode=="function"?t.adoptNode(n):n},gM=(t,e)=>{if(typeof t.prepend=="function")return t.prepend(e);let n=t.firstChild!==void 0?t.firstChild:t.childNodes&&t.childNodes[0];return typeof t.insertBefore=="function"?t.insertBefore(e,n||null):t.appendChild(e)},Ws=(t,e)=>{let n=O();if(!t){n.verbose&&console.warn("setSVG: val is not defined",e);return}return n.useSvgSprite?zc(e,t):t},rl=(t,e=r_)=>{let n=O(),r=Object.keys(t).length?{}:n.svg;for(let o in t)r[o]=t[o];HE(r,e)},So=(t,e)=>{let n=O();return n.useIconSprite&&!n.semanticIcons?.[e]?Ws(t,e):t},xo=(t,e=r_)=>{let n=O(),r=Object.keys(t).length?{}:n.icons;for(let o in t)r[o]=t[o];HE(r,e)},zE=(t,e={isRoot:!0})=>{if(!t||!t.createElementNS)return;let n=t.createElementNS("http://www.w3.org/2000/svg","svg");return e.isRoot&&(n.setAttribute("aria-hidden","true"),n.setAttribute("width","0"),n.setAttribute("height","0"),n.setAttribute("style","position:absolute"),n.setAttribute("id","svgSprite")),n},mM=(t,e)=>{let n=typeof DOMParser<"u"?DOMParser:null;if(n){let r=`<svg xmlns="http://www.w3.org/2000/svg">${e}</svg>`,s=new n().parseFromString(r,"image/svg+xml");return s.querySelector("parsererror")?null:s.documentElement}return null},yM=(t,e,n)=>{let r=String(n),o=FE.get(e),s=o?.entries.get(r);if(s)return o.entries.delete(r),o.entries.set(r,s),s.root;let i=mM(t,r);if(i||(i=zE(t,{isRoot:!1}),i.innerHTML=r),r.length>jE)return i;let a=hM(i,e_);if(a>e_)return i;for(o||(o={entries:new Map,units:0,nodes:0},FE.set(e,o));o.entries.size>=pM||o.units+r.length>jE||o.nodes+a>e_;){let c=o.entries.keys().next().value,l=o.entries.get(c);o.units-=c.length,o.nodes-=l.nodes,o.entries.delete(c)}return o.entries.set(r,{root:i,nodes:a}),o.units+=r.length,o.nodes+=a,i},BE=t=>{let e=new Map;for(let n of t.children){let r=o_(n);if(!r)continue;let o=e.get(r)||[];o.push(n),e.set(r,o)}return e},bM=t=>t.replace(/["\\\u0000-\u001f\u007f]/g,e=>`\\${e.charCodeAt(0).toString(16)} `),VE=(t,e,n,r)=>{let o=0,s=e.childElementCount>8?BE(n):null,i=a=>{if(!s)try{return[...n.querySelectorAll(`symbol[id="${bM(a)}"]`)].filter(c=>c.parentNode===n)}catch{s=BE(n)}return s.get(a)};for(let a of e.childNodes){if(UE(a))continue;let c=o_(a);if(!c&&r){let u=o++,d=r.nodes[u];if(!d&&r.complete||d?.parentNode===n)continue;let p=n_(t,d||a);n.appendChild(p),r.nodes[u]=p;continue}let l=c&&i(c),f=l&&l[0];if(!f)f=n_(t,a),n.appendChild(f);else if(!f.isEqualNode(a)){let u=n_(t,a);n.replaceChild(u,f),f=u}if(l)for(let u=1;u<l.length;u++)l[u].remove();c&&s&&s.set(c,[f])}},HE=(t,e=r_)=>{let n=O(),r=e.document||dt;if(!r||!r.documentElement)return n.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Uc(t);let o=r.querySelector("#svgSprite"),s="";for(let d in t)s+=t[d];let i=o||zE(r);if(!i||!i.nodeType)return;let a=d=>yM(r,i,d),c=a(s),l=NE.get(i);l||NE.set(i,l=new WeakMap);let f=l.get(n);if(f||l.set(n,f=new Map),[...c.childNodes].some(d=>!UE(d)&&!o_(d))){let d=[];for(let p in t)d.push(p);for(let p of d){let g=f.get(p);g||f.set(p,g={nodes:[],complete:!1}),VE(r,d.length===1?c:a(t[p]),i,g),g.complete=!0}}else{VE(r,c,i);for(let d in t)f.has(d)||f.set(d,{nodes:[],complete:!0})}o||gM(r.body,i);for(let d in t)n.__svgCache[d]=!0};$();var ol=(t={})=>{let e=O(),n=e.typography||{},r=e.document||{},o=E(e.reset)?e.reset:e.reset={};if(o[":root"]){let c=o,l=n.templates||{};c.body={...e.useDocumentTheme?Ue("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?Ue("document"):{};if(o.html&&Jt(o.html,a),n.unit)for(let c in i){if(c.slice(0,6)!=="@media")continue;let l=i[c];delete i[c],!(!l||!l.fontSize)&&(o[c]||(o[c]={}),o[c].html||(o[c].html={}),o[c].html.fontSize===void 0&&(o[c].html.fontSize=l.fontSize))}if(n.unit){let c=e.media||{};for(let l in n){if(l.charAt(0)!=="@")continue;let f=n[l];if(!f||f.unit===n.unit||!f.unit)continue;let u=f.unit,d=f.base||n.base,p=f.browserDefault||n.browserDefault,g=l.slice(1),h=c[g];if(!h)continue;let m="@media "+(h==="print"?h:"screen and "+h);o[m]||(o[m]={}),o[m].html||(o[m].html={}),o[m].html.fontSize=d/p+u}}return at(xt(o,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",textSizeAdjust:"100%",WebkitTextSizeAdjust:"100%",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:r.fontFamily,lineHeight:r.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:r.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}},ve)};$();var _M=new Set(["fallback"]),s_=new Set,WE=(t,e)=>{s_.has(t)||(s_.add(t),tt()&&console.warn(e))},i_=()=>{s_.clear()},qE=t=>{for(let e in t)delete t[e];return t},sl=()=>{let t=O(),e=E(t.cssSkinVars)?qE(t.cssSkinVars):t.cssSkinVars={},n=E(t.cssSkinFallback)?qE(t.cssSkinFallback):t.cssSkinFallback={},r=t.skins;if(!E(r))return e;let o=t.varPrefix?t.varPrefix+"-":"",s=t.color||{},i=t.cssVars||{},a=c=>v(c)&&Object.prototype.hasOwnProperty.call(s,c)?`var(--${o}color-${c})`:c;for(let c in r){let l=r[c];if(!E(l))continue;let f={};for(let u in l){if(_M.has(u))continue;let d=l[u];if(E(d))for(let p in d){let g=`--${o}theme-${u}-${p}`;t.useVariable!==!1&&!(g in i)&&WE(`${c}/${u}/${p}`,`[scratch] skin "${c}" rewrites theme "${u}" param "${p}", which the theme does not declare \u2014 no element reads ${g}, so the skin changes nothing there. Declare "${p}" on the "${u}" theme (its no-skin value).`),f[g]=a(d[p])}}e[c]=f,v(l.fallback)&&(n[c]=l.fallback)}for(let c in n){let l=n[c];e[l]||(WE(`${c}/fallback/${l}`,`[scratch] skin "${c}" falls back to "${l}", which is not a declared skin \u2014 the reduced-transparency fallback is skipped.`),delete n[c])}return e},KE=(t,e)=>{let n=`[data-skin="${t}"]`;return!e||e===":root"?`:root${n}, ${n}`:`${e}${n}, ${n} ${e}, ${e} ${n}`},ko=(t,e,n)=>{let r={};if(!E(t))return r;for(let s in t)r[KE(s,n)]=t[s];let o={};for(let s in e||{}){let i=t[e[s]];i&&(o[KE(s,n)]=i)}return Object.keys(o).length&&(r["@media (prefers-reduced-transparency: reduce)"]=o),r};$();var wM=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),GE=/^-?[A-Z][0-9]?$/,wn=t=>Ee(t),Cd=t=>{if(v(t))return xe.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(kt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let n=st(e);return tn(n)?n:e}).join(" ")},Td=(t,e)=>Kc(t,e),il=(t,e)=>{if(v(t))return xe.test(t)?t:en(t).map(n=>(n=n.trim(),n?n.split(/\s+/).map(r=>{if(r=r.trim(),!r)return"";if(kt(r))return`var(${r})`;if(r==="inset"||r==="none")return r;let o=st(r);if(tn(o)){let i=Vt(r,e);return E(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(r)||r==="0"||r.includes("px")||r.slice(-2)==="em")return r;let s=Ot(r,"shadow");return s&&s.shadow?s.shadow:r}).join(" "):"")).join(", ")},al=(t,e)=>{let n=t.indexOf("(");if(n===-1)return t;let r=t.slice(0,n+1),o=t.slice(n+1,t.lastIndexOf(")")),s=")",a=en(o).map(c=>(c=c.trim(),c.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||wM.has(f)||f==="transparent"||xe.test(f))return f;let u=st(f);return tn(u)?u:f}).join(" ")));return r+a.join(", ")+s},Od=(t,e)=>{if(!v(t))return;let n=O();return en(t).map(r=>{let o=r.trim();if(kt(o))return`var(${o})`;if(/^var\(/.test(o)||o.includes("url"))return o;if(n.gradient?.[o]){let s=Vt(o,e);if(v(s))return s;if(E(s)){for(let i in s)if(v(s[i]))return s[i]}return o}return o.includes("gradient")?al(o,e):o.includes("/")||o.startsWith("http")||o.includes(".")&&!Zt(o)?`url(${o})`:o}).join(", ")},Rd=t=>v(t)&&ht(t).map(e=>Ot(e,"gap").gap).join(" "),Pd=t=>{if(!v(t))return t;let e=O();return ht(t).map(n=>GE.test(n)?yo(n,e.spacing):n).join(" ")},a_=t=>{if(!v(t))return;let e=t.split(" ");return e.length?e.map(n=>kt(n)?`var(${n})`:n.length<3||n.includes("ms")?fe(n).timing||n:Ae(n)?Ae(n):n).join(" "):t},cl=(t,e,n)=>{if(v(t))return t.split(",").map(r=>fe(r).timing||r).join(",")},Ld=t=>{if(!v(t))return;let e=t.split(",");if(e.length)return e.map(a_).join(",")};function Et(t,e,n={},r={}){let o=pt.call(this,e||n[t]);if(o==null)return;let s;if(v(o)){if(/^(?:env|var)\(/.test(o.trim()))return{[t]:o};if(o.includes("(")){let c=Ln(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=Hc(t);!i&&a&&!r.ratio&&(o=qc(o))}return r.ratio?Ve(n,t,o,s):Ot(o,t,void 0,s)}var N=(t,e=null,n)=>Et(t,e,n,{ratio:!0}),SM=(t,e,n)=>v(t)?ht(t).map(r=>GE.test(r)?Ve(e,n,r)[n]:r).join(" "):t,In=(t,e,n,r="borderRadius")=>{if(v(t))return{[r]:ht(t).map(o=>{let s=tl(o);return s!==void 0?SM(s,e,n):Ve(e,n,o)[n]}).join(" ")}};$();var Ks="__smblsThemeRootOwner",Gs=t=>{let e=t&&t.__prefersListener,n=t&&t.__prefersMq;if(e&&n)try{typeof n.removeEventListener=="function"?n.removeEventListener("change",e):typeof n.removeListener=="function"&&n.removeListener(e)}catch{try{n.removeListener(e)}catch{}}t&&(t.__prefersListener=null,t.__prefersMq=null)},YE=(t,e,n)=>{if(!(!t||!e)){Gs(t),t.__prefersListener=n,t.__prefersMq=e;try{e.addEventListener("change",n)}catch{e.addListener(n)}}},xM=(t,e)=>{let n=O(),{cssVars:r}=n,o=e.startsWith("--")?e:`--${e}`;return r[o]=t,t},ue=t=>t,kM=(t,e)=>{if(v(t)||Ie(t)){let n=O();if(n.cssVars&&e){let r=n.varPrefix?n.varPrefix+"-":"";n.cssVars[`--${r}size-${e}`]=t}}return t},Dd={color:yr,gradient:Us,font:Xc,fontFamily:Hs,fontfamily:Hs,theme:Yc,icons:So,semanticIcons:ue,semanticicons:ue,svg:Ws,svgData:ue,typography:ue,shadow:xr,spacing:ue,media:ue,grid:ue,class:ue,timing:ue,reset:ue,unit:ue,animation:ue,vars:xM,sizes:kM,shape:ue,skins:ue},vM=(t,e,n,r)=>{nr(t,n,e);let o={};for(let s of r)t[s]===e&&(t[s]=o);return t.verbose&&console.warn("[scratch] design-system family",n,"resolved to a host object; parked it and allocated a plain bucket"),o},c_=(t,e,n)=>{let r=O(),o=Dc(t),s=o.toLowerCase(),i=r[o]||r[s]||r[t],a=vn(i)?vM(r,i,s,[o,s,t]):i,c=Dd[o]||Dd[s];if(c)try{let l=c(e,n);return a&&(a[n]=l),a}catch(l){r.verbose&&console.warn("Error setting",s,"value",e,n,l)}if(!c){let l=a||(r[s]={});return l[n]=e,l}r.verbose&&console.warn("Can not find",s,"method in scratch")},l_=(t,e)=>{let n=O(),r=t.toLowerCase();return vn(e)?(nr(n,r,e),n.verbose&&console.warn("[scratch] ignoring host object passed as the",r,"design-system family"),n[r]||n[t]):e==null?(n.verbose&&console.warn("[scratch] skipping empty design-system family",r),n[r]||n[t]):(Object.keys(e).sort((s,i)=>{let a=E(e[s])||I(e[s])?1:0,c=E(e[i])||I(e[i])?1:0;return a-c}).forEach(s=>{try{return c_(r,e[s],s)}catch(i){n.verbose&&console.warn("Error setting",r,"value",e[s],s,i)}}),n[r]||n[t])},Id=(t,e)=>{let n=e||O();n.globalTheme=t;let o=os(n)||(typeof document<"u"?document:null),s=o&&o.defaultView||(typeof window<"u"?window:null);if(o){let a=n.themeRoot||o.documentElement,c=t&&t!=="auto";if(a[Ks]=n,c)Gs(n),a.setAttribute("data-theme",t),n.resolvedTheme=t,t==="dark"||t==="light"?a.style.colorScheme=t:a.style.colorScheme="light dark";else if(s&&s.matchMedia){let l=u=>{let d=u.matches?"dark":"light";a.setAttribute("data-theme",d),n.resolvedTheme=d},f=s.matchMedia("(prefers-color-scheme: dark)");l(f),a.style.colorScheme="light dark",YE(n,f,l)}else Gs(n),a.setAttribute("data-theme","light"),n.resolvedTheme="light",a.style.colorScheme="light"}let i=n.varPrefix?`--${n.varPrefix}-theme-`:"--theme-";for(let a in n.cssVars)a.startsWith(i)&&delete n.cssVars[a];for(let a in n.cssMediaVars)delete n.cssMediaVars[a];if(o&&n.cssVars){let a=n.scopeSelector||":root",c=o.styleSheets;for(let l=0;l<c.length;l++)try{let f=c[l].cssRules;for(let u=0;u<f.length;u++)if(f[u].selectorText===a){for(let d in n.cssVars)f[u].style.setProperty(d,n.cssVars[d]);return n}}catch{}}return n},EM={},vo=(t,e=EM)=>{let n=e.config||O(),{version:r,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:l,globalTheme:f,themeRoot:u,useDocumentTheme:d,useDefaultConfig:p,semanticIcons:g,hoverMedia:h,focusableRing:m,files:y,assets:S,...b}=t;e.newConfig&&(n=bd(e.newConfig)),kn(b.document)&&(n.__domDocument=b.document,delete b.document),kn(n.document)&&(n.__domDocument||(n.__domDocument=n.document),n.document={}),y!==void 0&&(n.files=y),S!==void 0&&(n.assets=S),o!==void 0&&(n.verbose=o),s!==void 0&&(n.useVariable=s),i!==void 0&&(n.useReset=i),c!==void 0&&(n.useFontImport=c),a!==void 0&&(n.useSvgSprite=a),l!==void 0&&(n.useIconSprite=l),d!==void 0&&(n.useDocumentTheme=d),f!==void 0&&(n.globalTheme=f),u!==void 0&&(n.themeRoot=u),t.useThemeSuffixedVars!==void 0&&(n.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(n.useDefaultConfig=p),g!==void 0&&(n.semanticIcons=g),h!==void 0&&(n.hoverMedia=h),m!==void 0&&(n.focusableRing=m),n.verbose&&console.log(n);let _=os(n)||(typeof document<"u"?document:null),w=_&&_.defaultView||(typeof window<"u"?window:null),k=_&&(n.themeRoot||_.documentElement);if(k&&typeof k.setAttribute=="function")if(n.globalTheme&&n.globalTheme!=="auto")Gs(n),k.setAttribute("data-theme",n.globalTheme),n.resolvedTheme=n.globalTheme,k[Ks]=n,n.globalTheme==="dark"||n.globalTheme==="light"?k.style.colorScheme=n.globalTheme:k.style.colorScheme="light dark";else if(k[Ks]&&k[Ks]!==n&&k.hasAttribute("data-theme"))Gs(n),n.resolvedTheme=k.getAttribute("data-theme");else if(w&&w.matchMedia){let L=lt=>{let Z=lt.matches?"dark":"light";k.setAttribute("data-theme",Z),n.resolvedTheme=Z},H=w.matchMedia("(prefers-color-scheme: dark)");L(H),k.style.colorScheme="light dark",k[Ks]=n,YE(n,H,L)}else Gs(n),k.setAttribute("data-theme","light"),n.resolvedTheme="light",k.style.colorScheme="light",k[Ks]=n;n.__svgCache||(n.__svgCache={}),Vs(b);let A=Object.keys(b).filter(P=>!P.startsWith("__")),T=new Set(A);if(A.forEach(P=>{let L=P.toLowerCase();L!==P&&T.has(L)&&at(b[L],b[P],ve)}),A.map(P=>{let L=P.toLowerCase();if(!(L!==P&&T.has(L)))return l_(P,b[P])}),n.varPrefix&&(n.typography&&(n.typography.varPrefix=n.varPrefix),n.spacing&&(n.spacing.varPrefix=n.varPrefix),n.timing&&(n.timing.varPrefix=n.varPrefix)),b.typography)try{Qc()}catch(P){n.verbose&&console.warn("Error applying typography sequence",P)}if(b.spacing)try{Wc()}catch(P){n.verbose&&console.warn("Error applying spacing sequence",P)}if(b.timing)try{el()}catch(P){n.verbose&&console.warn("Error applying timing sequence",P)}try{sl()}catch(P){n.verbose&&console.warn("Error applying skins",P)}nl();let M=ol();return M&&(n.reset=M),n};var z=(t,e)=>e.split(" ").map(n=>t+"-"+n),d_="top right bottom left",p_=d_+" block block-start block-end inline inline-start inline-end",de="start end",Mn="width style color",$d=t=>z(t,p_),AM=(()=>{let t=z("border","width style color image");for(let e of p_.split(" "))t.push("border-"+e,...z("border-"+e,Mn));return t})(),XE=t=>[...z("border-"+t,Mn+" start end"),...z("border-"+t+"-start",Mn),...z("border-"+t+"-end",Mn)],yt={animation:z("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:z("background","image position position-x position-y size repeat origin clip attachment color"),border:AM};for(let t of["width","style","color"])yt["border-"+t]=p_.split(" ").map(e=>"border-"+e+"-"+t);for(let t of d_.split(" "))yt["border-"+t]=z("border-"+t,Mn);yt["border-block"]=XE("block");yt["border-inline"]=XE("inline");Object.assign(yt,{"border-image":z("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:z("column","width count"),"column-rule":z("column-rule",Mn),container:z("container","name type"),"contain-intrinsic-size":z("contain-intrinsic","width height"),flex:z("flex","grow shrink basis"),"flex-flow":z("flex","direction wrap"),font:[...z("font","style variant weight stretch size"),"line-height",...z("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:z("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":z("grid-template","rows columns areas"),"grid-area":z("grid","row column row-start row-end column-start column-end"),"grid-row":z("grid-row",de),"grid-column":z("grid-column",de),inset:[...d_.split(" "),...z("inset","block block-start block-end inline inline-start inline-end")],"inset-block":z("inset-block",de),"inset-inline":z("inset-inline",de),"list-style":z("list-style","type position image"),margin:$d("margin"),"margin-block":z("margin-block",de),"margin-inline":z("margin-inline",de),mask:z("mask","image mode repeat position clip origin size composite"),offset:z("offset","position path distance rotate anchor"),outline:z("outline",Mn),overflow:z("overflow","x y"),"overscroll-behavior":z("overscroll-behavior","x y"),padding:$d("padding"),"padding-block":z("padding-block",de),"padding-inline":z("padding-inline",de)});for(let t of["content","items","self"])yt["place-"+t]=["align-"+t,"justify-"+t];Object.assign(yt,{"scroll-margin":$d("scroll-margin"),"scroll-padding":$d("scroll-padding"),"text-decoration":z("text-decoration","line style color thickness"),"text-emphasis":z("text-emphasis","style color"),transition:z("transition","property duration timing-function delay behavior")});var CM="block-start block-end inline-start inline-end".split(" ");for(let t of CM)yt["border-"+t]=z("border-"+t,Mn);for(let t of["block","inline"])for(let e of Mn.split(" "))yt["border-"+t+"-"+e]=z("border-"+t,de.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(yt,{"animation-range":z("animation-range",de),"background-position":z("background-position","x y"),"font-variant":z("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":z("font-synthesis","weight style small-caps"),marker:z("marker","start mid end"),"position-try":z("position-try","order fallbacks"),"scroll-margin-block":z("scroll-margin-block",de),"scroll-margin-inline":z("scroll-margin-inline",de),"scroll-padding-block":z("scroll-padding-block",de),"scroll-padding-inline":z("scroll-padding-inline",de),"scroll-timeline":z("scroll-timeline","name axis"),"view-timeline":z("view-timeline","name axis inset"),"text-box":z("text-box","trim edge"),"text-wrap":z("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});yt.font.push("font-language-override");var $n=t=>"corner-"+t+"-shape";yt["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map($n);Object.assign(yt,{"corner-top-shape":["top-left","top-right"].map($n),"corner-right-shape":["top-right","bottom-right"].map($n),"corner-bottom-shape":["bottom-left","bottom-right"].map($n),"corner-left-shape":["top-left","bottom-left"].map($n),"corner-block-start-shape":["start-start","start-end"].map($n),"corner-block-end-shape":["end-start","end-end"].map($n),"corner-inline-start-shape":["start-start","end-start"].map($n),"corner-inline-end-shape":["start-end","end-end"].map($n)});for(let t in yt){let e=yt[t],n=new Set(e);for(let r=0;r<e.length;r++){let o=yt[e[r]];if(o)for(let s of o)n.has(s)||(n.add(s),e.push(s))}}var ze={};for(let t in yt)for(let e of yt[t])(ze[e]||(ze[e]=[])).push(t);var u_=new Map,ZE=t=>{let e=u_.get(t);if(e!==void 0)return e;u_.set(t,0),e=0;let n=ze[t];if(n)for(let r=0;r<n.length;r++)e=Math.max(e,ZE(n[r])+1);return u_.set(t,e),e};function Ys(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(ze,e)?ZE(e):0}var TM=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,OM=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,RM=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),PM=t=>{let e=[],n=0,r="";for(let o of String(t).replace(/\s*!important\s*$/,"").trim())o==="("?n++:o===")"&&n--,n===0&&/\s/.test(o)?(r&&e.push(r),r=""):r+=o;return r&&e.push(r),e};function ll(t,e,n){let r=yt[t];if(!r||r.indexOf(n)===-1)return!1;if(TM.test(t))return!0;if(!OM.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let o=PM(e);return o.length>=3?!0:/-style$/.test(n)&&o.some(s=>RM.has(s.toLowerCase()))}var Qs=new Map,lA=null,h_=null,LM=null;function dl(t){t.batchAtomicCss&&(h_=t.batchAtomicCss),t.compoundCssClass&&(LM=t.compoundCssClass)}var DM=new Set,JE=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function S_(t){try{let e=O();e&&(e.__domDocument=t)}catch{}t&&DM.add(t)}function Eo(){try{let t=O();if(t){if(JE(t.__domDocument))return t.__domDocument;if(JE(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var pe={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function Vd(){return{...pe}}function x_(){for(let t in pe)pe[t]=0;jd=!1}var jd=!1,Fd=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function IM(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Fd(n,"day")} ago)`}function $M(){try{let t=WM();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function MM(t,e){if(jd)return!1;jd=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",r="this IS the source",o="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Fd(pe.variable,"variable rule")} and ${Fd(pe.atomic,"atomic rule")}, while the design system held ${Fd(e,"CSS variable")}.
46
46
  The document will render UNSTYLED and nothing else will report an error.
47
47
  This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
48
48
  package : ${o}
49
49
  built : ${n}
50
50
  source : ${r}
51
51
  emitted : ${JSON.stringify(pe)}
52
- sheets : the style[data-smbls] tiers currently hold ${LM()} rule(s)
52
+ sheets : the style[data-smbls] tiers currently hold ${$M()} rule(s)
53
53
  FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
54
54
  then rebuild the listed packages and clear the app's .parcel-cache
55
- Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function cA(){try{let t=O(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function QE(t){Fd||pe.variable>0||pe.atomic>0||lA(Math.max(t,cA()))}function S_(t){let e=t&&(t.CSS_VARS||t.cssVars);return lA(e?Object.keys(e).length:cA())}function lA(t){let e=Bd();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Vd())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return DM(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var IM={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 ll(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var fA=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,h_=t=>fA(t)?t:ll(t);function jd(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function $M(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():jd(e)}var MM={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function Ys(t,e){let n=MM[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function g_(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=s.charCodeAt(0)===45&&s.charCodeAt(1)===45;o+=Ys(i?s:ll(s),r[s])}e+=`${n}{${o}}`}return e}var NM="@media (hover: hover)",FM=/(?:^|[^\\]):hover(?![\w-])/;function x_(){try{let t=O();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Nn(t,e,n){return n===!1||!FM.test(e)||n===void 0&&!x_()?t:`${NM}{${t}}`}function JE(t,e,n){let r=(n?n+"":"")+t+":"+e,o=Xs.get(r),s=o?null:h_(t);if(!o){let c=IM[t]||jd(t),l=$M(e);o=n?`_${n}_${c}-${l}`:`_${c}-${l}`,Xs.set(r,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=s||h_(t),a=`.${o}{${Ys(i,e)}}`;return en(a,void 0,"atomic",!0),o}var tA=new WeakMap,eA=new WeakMap;function en(t,e,n,r){let o=Vd(e,jM(t,r));if(!o)return pe.dropped++,"dropped";let s=tA.get(o);if(s||(s=new Set,tA.set(o,s)),s.has(t))return pe.duplicate++,pe[n||"global"]++,"duplicate";let i=eA.get(o);if(i&&i.has(t))return pe.invalid++,"invalid";try{o.insertRule(t,o.cssRules.length)}catch{return i||(i=new Set,eA.set(o,i)),i.add(t),pe.invalid++,"invalid"}return s.add(t),pe[n||"global"]++,"inserted"}var Ce="0:0",nA="1:0",rA=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function jM(t,e){if(typeof t!="string"||!t)return Ce;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ce;let s=1/0,i=-1/0;rA.lastIndex=0;let a;for(;a=rA.exec(t);){let c=parseFloat(a[2])*(a[3]==="em"||a[3]==="rem"?16:1);a[1]==="max"?s=Math.min(s,c):i=Math.max(i,c)}return s!==1/0?"2:"+-s:i!==-1/0?"3:"+i:nA}if(t.charCodeAt(0)!==46)return Ce;if(!/^\.[\w-]+\{/.test(t))return nA;if(!e)return Ce;let n=t.indexOf("{"),r=t.indexOf(":",n);if(r===-1)return Ce;let o=al(t.slice(n+1,r).trim());return o?"0:"+o:Ce}var oA=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},BM=(t,e)=>{let[n,r]=oA(t),[o,s]=oA(e);return n!==o?n<o:r<s},VM=t=>t.getAttribute("data-tier")||Ce,sA=new WeakMap;function Vd(t,e){let n=t||Eo();if(!n||!n.head)return null;let r=e||Ce,o=sA.get(n);o||(o=new Map,sA.set(n,o));let s=o.get(r);if(s&&s.node.parentNode===n.head&&s.node.sheet===s.sheet)return s.sheet;r!==Ce&&Vd(n,Ce);let i=r===Ce?n.head.querySelector("style[data-smbls]:not([data-tier])"):n.head.querySelector(`style[data-smbls][data-tier="${r}"]`);if(!i){i=n.createElement("style"),i.setAttribute("data-smbls",""),r!==Ce&&i.setAttribute("data-tier",r);let c=n.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(BM(r,VM(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?n.head.insertBefore(i,l):f?n.head.insertBefore(i,f.nextSibling):n.head.appendChild(i)}let a=i.sheet;return o.set(r,{sheet:a,node:i}),r===Ce&&(aA=a),a}function UM(t){let e=t||Eo();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var zM=8;function Te(t,e,n,r){if(!t||typeof t!="object")return"";let o=!!(r&&r.state),s=null,i=0,a=[],c=[],l=Object.keys(t);for(let u=0;u<l.length;u++){let d=l[u],p=t[d];p==null||p===!1||p===""||(typeof p=="object"?c.push([d,p]):p_&&!fA(d)?(s||(s=[]),s.push(d,String(p)),i++):a.push(JE(d,String(p),n)))}if(s&&i>=zM){let u=s.join("\0"),d=p_(u),p=d.indexOf("\0"),g=d.substring(0,p),h=d.substring(p+1);if(h){let m=h.split(`
56
- `);for(let y=0;y<m.length;y++)m[y]&&en(m[y],void 0,"atomic",!0)}a.push(g)}else if(s)for(let u=0;u<s.length;u+=2)a.push(JE(s[u],s[u+1],n));let f=[];for(let u=0;u<c.length;u++)f.push(KM(c[u][0],c[u][1],n,o));return a.concat(f).join(" ").trim()}var iA=new Map,HM=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function fl(t){return/^@(media|supports|container)\b/.test(t)}function WM(t){return typeof t!="string"||!t||fl(t)?!1:t.split(",").every(e=>HM.test(e.trim()))}var uA=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},m_=32,y_=1024,b_=!1;function Md(t,e,n){if(b_)return;b_=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function qM(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!uA(s)||n.length>m_||++r>y_)))return n.push(s),s})}}function KM(t,e,n,r){let o=qM(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&x_(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=Xs.get(a);if(c){let _=iA.get(c);if(_)for(let w=0;w<_.length;w++)en(_[w],void 0,"atomic");return c}c=n?`_${n}_c${jd(a)}`:`_c${jd(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=WM(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,w)=>{g.add(w);let k="",A=Object.keys(w);for(let T=0;T<A.length;T++){let M=A[T],P=w[M];if(P!=null)if(typeof P=="object"){let L=[..._,M];g.has(P)?Md("a style value that loops back to one of its own ancestors",t,L):uA(P)?L.length>m_?Md(`a style block nested more than ${m_} levels deep`,t,L):++h>y_?Md(`a style object with more than ${y_} nested blocks`,t,L):m(L,P):Md(`a ${Object.prototype.toString.call(P).slice(8,-1)} (not a style block)`,t,L)}else{if(p(P))continue;k+=Ys(h_(M),P)}}g.delete(w),k&&(_.length===0?u+=k:d.push({chain:_,body:k}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),S=(_,w=!0)=>{let k=w&&_.length===1?f:l;if(!_.length)return k;let A=_[0].split(",").map(T=>T.trim()).map(T=>T.includes("&")?T.replace(/&/g,k):y(T)?`${k}${T}`:`${k} ${T}`);for(let T=1;T<_.length;T++){let M=_[T].split(",").map(L=>L.trim()),P=[];for(let L of A)for(let H of M)H.includes("&")?P.push(H.replace(/&/g,L)):y(H)?P.push(L+H):P.push(L+" "+H);A=P}return A.join(", ")},b=[],x=(_,w)=>{let k=_.filter(fl),A=S(_.filter(M=>!fl(M)),k.length===0),T=`${A}{${w}}`;for(let M=k.length-1;M>=0;M--)T=`${k[M]}{${T}}`;T=Nn(T,A,i),b.push(T),en(T,void 0,"atomic")};u&&x([t],u);for(let _ of d)x([t,..._.chain],_.body);return iA.set(c,b),Xs.set(a,c),c}function vt(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Vd(),typeof t=="string"){let s=t.indexOf("--")!==-1;en(t,void 0,s?"variable":"global"),s&&QE(1);return}let e=x_(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of r){let i=t[s];if(s.startsWith("@keyframes")){let a=g_(i);a&&en(`${s}{${a}}`,void 0,"keyframes");continue}if(fl(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=g_(c);l&&en(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0;for(let u in c){let d=u.charCodeAt(0)===45&&u.charCodeAt(1)===45;d&&f++;let p=d?u:ll(u);l+=Ys(p,c[u])}n+=f,en(Nn(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else{let l=a.charCodeAt(0)===45&&a.charCodeAt(1)===45;l&&n++;let f=l?a:ll(a);en(`${s}{${Ys(f,c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0;for(let f in i){let u=i[f];if(typeof u=="object"&&u!==null)c=!0;else{let d=f.charCodeAt(0)===45&&f.charCodeAt(1)===45;d&&l++;let p=d?f:ll(f);a+=Ys(p,u)}}if(n+=l,a&&en(Nn(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let f=[],u=[];for(let d in i)typeof i[d]=="object"&&i[d]!==null&&(fl(d)?f.push(d):u.push(d));f.sort((d,p)=>{let g=h=>{let m=h.match(/max-width:\s*(\d+)/);return m?parseInt(m[1]):0};return g(p)-g(d)});for(let d of u)vt({[`${s} ${d}`]:i[d]});for(let d of f)vt({[d]:{[s]:i[d]}})}}}n>0&&QE(n)}function Zs(t,e){return en(`@keyframes ${t}{${g_(e)}}`,void 0,"keyframes"),t}function dA(){Xs.clear(),aA=null,b_=!1}function k_(){return Xs.size}$();var Pw={};F(Pw,{DELEGATED_EVENTS:()=>ni,LIFECYCLE_EVENTS:()=>Er,MIXINS:()=>Wd,NON_BUBBLING_EVENTS:()=>qd,REGISTRY:()=>Ut,SVG_TAGS:()=>ei,addDelegatedEvent:()=>dl,addMethods:()=>fi,adoptHydrationNode:()=>Hd,applyExtends:()=>si,cacheNode:()=>vr,create:()=>ee,createHTMLNode:()=>ti,detectTag:()=>Fn,dispose:()=>Vn,elementPath:()=>zd,flushMounts:()=>kl,globalEventKeyInfo:()=>Gd,inertOutsidePlugin:()=>hp,isSvgTag:()=>kr,isValidTag:()=>Js,refreshContextProto:()=>ui,registerEvent:()=>ri,registerGlobalEvent:()=>Yd,remove:()=>li,removeDelegatedEvent:()=>pl,update:()=>ai});qt();qt();var Qs="http://www.w3.org/2000/svg",ei=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"]),GM=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 Js(t){return GM.has(t)||ei.has(t)}function kr(t){return ei.has(t)}function Fn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&Js(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),Js(o)&&!r.has(o)?o:"div"}var pA={};function ti(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(kr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===Qs)return n.createElementNS(Qs,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function vr(t){let e=t.tag=Fn(t),r=kr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Qs)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=pA[r];if(s||(s=pA[r]=ti(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?ti(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var zd=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?zd(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},YM=new Set(["src","srcset"]);function Hd(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Fn(t);if(n==="string"||n==="fragment")return null;let r=zd(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=kr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Qs),a=kr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===Qs:s.namespaceURI!==Qs;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;for(let l of Array.from(s.getAttributeNames?s.getAttributeNames():[]))YM.has(l)||s.removeAttribute(l);for(;s.firstChild;)s.removeChild(s.firstChild);return s}var Ut=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),Wd={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Er=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","bridgeMount","bridgeUpdate","bridgeDestroy"]),qd=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"]),Kd=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),ni=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 A_=new WeakMap,XM={passive:!0},ZM={passive:!0,capture:!0},yA=(t,e)=>Kd.has(t)?e?ZM:XM:e||!1;function bA(t){let e=A_.get(t);return e||(e={handlers:new Map,installed:new Set},A_.set(t,e)),e}function QM(t,e){let n=bA(e);if(n.installed.has(t))return;n.installed.add(t);let r=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",o=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(o){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},yA(t,r))}function dl(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=bA(r);QM(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function pl(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=A_.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function JM(t){return ni.has(t)&&!Er.has(t)}function _A(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&J(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&X()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&X()}}var wA=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function tN(t,e){return wA(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:Kd.has(t),once:e.once===!0}:yA(t,!1)}function eN(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function ri(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=_A(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=eN(o,a,i));let l=!qd.has(t)&&JM(t)&&!wA(r),f=l?null:tN(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;dl(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;pl(t,o,u)}else o.removeEventListener(t,i,f)})}var v_=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Gd(t){if(typeof t!="string")return null;for(let e=0;e<v_.length;e++){let n=v_[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:v_[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}var nN=/^[A-Za-z_$][\w$]*$/;function rN(t,e,n){let r=e,o=!1,s,i=!1,a=null;if(e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),typeof r=="string"&&nN.test(r)){let c=r;r=function(f){return t.call(c,f)}}return typeof r!="function"?null:(s===void 0&&(s=Kd.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function oN(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.defaultView||(typeof window<"u"?window:null);if(!o)return null;if(e==="window")return typeof o.addEventListener=="function"?o:null;if(e==="visualViewport"){let s=o.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var E_=/^@media\s+/i,sN=/^[@[.#&:>*~+]/,hA=new Set;function gA(t,e){!tt()||hA.has(t)||(hA.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function iN(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!E_.test(n)){if(s=o(n.slice(1)),!s)return gA(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return E_.test(s)?s.replace(E_,"").trim()||null:sN.test(s)?(gA(n,`names "${s}", which is not a media query`),null):s}function aN(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function SA(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function cN(t){let e=t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function Yd(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)mA(t,e,n[o]);return}mA(t,e,n)}}function mA(t,e,n){let r=e.__ref,o=rN(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=iN(e,o.query),!o.query))return;let s=oN(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=_A(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(cN(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!aN(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{SA(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&lN(e,i,d,()=>l)}function lN(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&SA(i,"load",n.listener,n.options))})}qt();cr();var fN=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function oi(t,e,n){t.context?.plugins?.length&&Ct("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}function kA(t,e,n){let r=_e();r&&Xt(null);let o=t.context?.designSystem;o&&J(o);try{return e.call(t,n,t,t.state,t.context)}finally{o&&X(),r&&Xt(r)}}function uN(t,e){if(!tt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function vA(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function"||!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,uN(t,e);let o;try{o=kA(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,oi(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>xA(t,r,s),s=>{r.failed=!0,oi(t,"onBridgeMount",s)});return}xA(t,r,o)}function xA(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){AA(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=K(()=>{if(e.disposed)return;let o=t.context?.designSystem;o&&J(o);try{let s=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);s&&typeof s.then=="function"&&s.catch(i=>oi(t,"onBridgeUpdate",i))}catch(s){oi(t,"onBridgeUpdate",s)}finally{o&&X()}},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function EA(t){let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&AA(t,e))}function AA(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,fN(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=kA(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>oi(t,"onBridgeDestroy",o))}catch(r){oi(t,"onBridgeDestroy",r)}}function CA(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 si(t,e,n){let r=CA(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=TA(r[i],s);a&&a!==e&&OA(t,a,n,new Set([e]))}}function TA(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function OA(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=CA(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=TA(o[c],a);l&&OA(t,l,n,r)}}let s=C_(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.set(i,s.rank),t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=RA(t[i],a):t[i]=a}}function C_(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Map),n.rank=(n.rank||0)+1,n}function RA(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=RA(o,s):n[r]=s}return n}qt();cr();$();var dN=["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"],ii={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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"]},LA=["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"],DA=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,jn=t=>DA(t)||MA(t),IA=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),T_=new Set;for(let t in ii)t==="default"||t==="aria"||t==="svg"||ii[t].forEach(e=>{e.startsWith("on")||T_.add(e)});var $A=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(T_.has(n))return n;let r=t.toLowerCase();return T_.has(r)?r:null},MA=t=>IA.has(t)?t.toLowerCase():$A(t),pN=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),hN=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),nn=t=>typeof t=="string"&&(pN.has(t)||t.startsWith("aria-")),te=(t,e)=>{if(e!==!0&&e!==!1)return e;if(nn(t)){let n=hN.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},ze=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||DA(e)||IA.has(e)||ii.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(ii,t)){let n=ii[t];if(n.includes(e))return!0;let r=$A(e);return r!==null&&n.includes(r)}return!1},R_=t=>{if(!v(t))return!1;let e=t.toLowerCase();return LA.includes(e)},gN=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])Dt(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(Dt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=ze(t,o),i=R_(o);if(Dt(e[o])&&(s||i)){let a=jn(o)||o;r[a]=e[o]}}return r},mN=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},Ar=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},O_=(t,e)=>{let n=(t.preSrc||"")+(Ar(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},Ao={src:t=>O_(t,t.src),href:t=>Ar(t,t.href),action:t=>Ar(t,t.action),poster:t=>O_(t,t.poster),data:t=>Ar(t,t.data)},P_=t=>{let e=t.tag||"div",n={};for(let r in Ao)if(t[r]!==void 0&&ze(e,r)){let o=Ao[r](t);o!==void 0&&(n[r]=o)}return n},PA=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return R(n)?n.call(e,e):!!n},yN=(t,e,n)=>{if(t==="$"){let o=PA(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=PA(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},bN=new Set(["$",".","!"]),L_=(t,e,n,r=yN)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return R(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!bN.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=ze(e,f),d=R_(f);if(!u&&!d)continue;let p=jn(f)||f;s(p,c[f],a,l)}}return o};function ai(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&D_(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Bn(r,!1),c=>{Bn(r,!0),n.context?.plugins?.length&&Ct("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Bn(r,!1),a===!1)return n}catch(a){throw Bn(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;If(()=>{if(t.state&&St(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&ci(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=hl(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=c.replace(/[A-Z]/g,d=>"-"+d.toLowerCase()),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];c==null||c===!1&&!nn(a)?n.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&n.node.setAttribute(a,te(a,c))}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Ut.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&ee(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)jA(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)NA(s[c])&&(a=!0);a&&FA(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return Ct("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}qt();function Vn(t){if(!t)return;let e=t.__ref;if(!e)return;let n=_e();if(n){Xt(null);try{return Vn(t)}finally{Xt(n)}}e.__disposed=!0;try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&EA(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&Vn(i)}}t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}t.node=null,t.parent=null,t.__ref=null}function li(){Vn(this)}$();$();var zA=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],_N=["none","forwards","backwards","both"],wN=["normal","reverse","alternate","alternate-reverse"],SN=["running","paused"],xN=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,kN=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>xN.test(r.replace(/\s+/g,"")))},BA=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),vN={transform:kN,translate:BA,rotate:t=>BA(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},EN=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},AN=t=>{if(!E(t))return null;let e=null,n=-1;for(let r in t){let o=EN(r);o==null||!E(t[r])||o>=n&&(n=o,e=t[r])}return e},CN=t=>{let e=AN(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=vN[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},TN=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return E(r)?r:null},ON=["reverse","alternate","alternate-reverse"],HA=(t,e,n)=>{let r=n||e.animationDirection;return r&&ON.includes(String(r))?"both":CN(TN(t,e))?"backwards":"both"},RN=0,VA=new Map,I_=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let o=JSON.stringify(t),s=VA.get(o);if(s)return s;let i=`smbls-anim-${RN++}`,a=Zs(i,t);return VA.set(o,a),a}let r=n&&n[t];return E(r)?Zs(t,r):t},WA=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,PN=/^(?:\d+(?:\.\d*)?|\.\d+)$/,LN=/^-?[A-Z][0-9]?$/,qA=/^(?:cubic-bezier|steps|linear)\(/,DN=/^(?:calc|min|max|clamp)\(/,IN=t=>t.includes("(")||t.startsWith("--"),$N=(t,e)=>{if(!LN.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},MN=t=>{if(!v(t))return!1;let e=t.trim();return zA.includes(e)||qA.test(e)||e.startsWith("var(")},NN=(t,e)=>!!e&&MN(e[t]||e[co(t)]),FN=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],jN=t=>{let e=[],n=0,r="";for(let o of String(t).trim())o==="("?n++:o===")"&&n>0&&n--,n===0&&/\s/.test(o)?(r&&e.push(r),r=""):r+=o;return r&&e.push(r),e},BN=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(f,u)=>{r[f]==null?r[f]=u:s.push(u)};for(let f of jN(t))e&&e[f]?o=f:WA.test(f)||$N(f,n)?r.duration==null?r.duration=f:r.delay==null&&(r.delay=f):zA.includes(f)||NN(f,n)?a("timingFunction",f):qA.test(f)?r.timingFunction==null&&(r.timingFunction=f):f==="infinite"?a("iterationCount",f):PN.test(f)?r.iterationCount==null&&(r.iterationCount=Number(f)):wN.includes(f)?a("direction",f):_N.includes(f)?a("fillMode",f):SN.includes(f)?a("playState",f):IN(f)?i.push(f):s.push(f);let c=o||s[0]||i.shift()||null,l=new Set;for(let f of i){let u=FN.find(d=>r[d]==null);if(!u)break;r[u]=f.startsWith("--")?`var(${f})`:f,l.add(u)}return{name:c,...r,opaqueSlots:l}},VN=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=O()||{};return tn(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>BN(o,n,r))},UA=(t,e)=>WA.test(t)||e&&!DN.test(t)&&!/^(?:var|env)\(/.test(t)?t:fe(t).timing||t,UN=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:I_(t.name,e),animationDuration:t.duration!=null?UA(t.duration,n("duration")):fe(e.animationDuration||"A").timing,animationDelay:t.delay!=null?UA(t.delay,n("delay")):fe(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Ae(t.timingFunction):Ae(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||HA(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},zN={animationName:"none",animationPlayState:"running",animationDirection:"normal"},HN=(t,e)=>{let n=t.map(o=>UN(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??zN[o]).join(", "))}return r},$_={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=VN(t,e);if(n.length)return HN(n,e)}return{animationName:I_(t,e),animationDuration:fe(e.animationDuration||"A").timing,animationDelay:fe(e.animationDelay||"0s").timing,animationTimingFunction:Ae(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||HA(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:I_(t,e)}),animationDuration:t=>({animationDuration:fe(t).timing}),animationDelay:t=>({animationDelay:fe(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Ae(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};$();var Xd=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ht(e);return{...N(t+"Start",r,n),...N(t+"End",o||r,n)}},M_={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=>Ft(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("height",e),...Et("width",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("minWidth",e),...Et("maxWidth",n||e)}},minHeight:(t,e)=>N("minHeight",t,e),maxHeight:(t,e)=>N("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("minHeight",e),...Et("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ht(t);return{...N("inlineSize",e),...N("blockSize",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("minInlineSize",e),...Et("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("maxInlineSize",e),...Et("maxBlockSize",n||e)}},borderWidth:(t,e)=>N("borderWidth",t,e),borderTopWidth:(t,e)=>N("borderTopWidth",t,e),borderRightWidth:(t,e)=>N("borderRightWidth",t,e),borderBottomWidth:(t,e)=>N("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>N("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>N("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>N("textUnderlineOffset",t,e),padding:(t,e)=>N("padding",t,e),paddingInline:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("paddingInlineStart",e),...Et("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("paddingBlockStart",e),...Et("paddingBlockEnd",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("marginInlineStart",e),...Et("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("marginBlockStart",e),...Et("marginBlockEnd",n||e)}},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),scrollMargin:(t,e)=>N("scrollMargin",t,e),scrollMarginTop:(t,e)=>N("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>N("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>N("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>N("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Xd("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Xd("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>N("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>N("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>N("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>N("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>N("scrollPadding",t,e),scrollPaddingTop:(t,e)=>N("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>N("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>N("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>N("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Xd("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Xd("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>N("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>N("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>N("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>N("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Od(t)}),columnGap:(t,e)=>Ve(e,"columnGap",t),rowGap:(t,e)=>Ve(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>In(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>In(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>In(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>In(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>In(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>In(t,e,"borderBottomRightRadius","borderBottomRightRadius")};var N_={fontSize:t=>Zc(t)||t,fontFamily:t=>({fontFamily:Yc(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 F_={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.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 j_={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ht(t).map(n=>Ot(n,"k").k).join(" ")}},left:t=>Ot(t,"left"),top:t=>Ot(t,"top"),right:t=>Ot(t,"right"),bottom:t=>Ot(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ht(t).map(n=>Ot(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ht(t).map(n=>Ot(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};$();var Zd=0,Qd=()=>{Zd++},Jd=()=>{Zd>0&&Zd--},Oe=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:Zd>0?null:n&&n.resolvedTheme||null},he=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(E(s)){let i=he(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},B_={theme:(t,e)=>{if(t)return e.themeModifier?Ue(t,`@${e.themeModifier}`):Ue(t)},color:(t,e)=>{let n=Oe(e);if(t)return he("color",Vt(t,n))},background:(t,e)=>{let n=Oe(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:sl(t,n)}:he("background",Vt(t,n))},backgroundColor:(t,e)=>{let n=Oe(e);if(t)return he("backgroundColor",Vt(t,n))},backgroundImage:(t,e,n,r)=>{let o=Oe(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return he("backgroundImage",Td(t,o))},textStroke:t=>{let e=Ad(t);if(e!=null)return{WebkitTextStroke:e}},outline:t=>({outline:_n(t)}),outlineWidth:(t,e)=>N("outlineWidth",t,e),outlineColor:(t,e)=>{let n=Oe(e);if(t)return he("outlineColor",Vt(t,n))},outlineOffset:(t,e)=>N("outlineOffset",t,e),border:t=>({border:_n(t)}),borderColor:(t,e)=>{let n=Oe(e);if(t)return he("borderColor",Vt(t,n))},borderTopColor:(t,e)=>{let n=Oe(e);if(t)return he("borderTopColor",Vt(t,n))},borderBottomColor:(t,e)=>{let n=Oe(e);if(t)return he("borderBottomColor",Vt(t,n))},borderLeftColor:(t,e)=>{let n=Oe(e);if(t)return he("borderLeftColor",Vt(t,n))},borderRightColor:(t,e)=>{let n=Oe(e);if(t)return he("borderRightColor",Vt(t,n))},borderLeft:t=>({borderLeft:_n(t)}),borderTop:t=>({borderTop:_n(t)}),borderRight:t=>({borderRight:_n(t)}),borderBottom:t=>({borderBottom:_n(t)}),shadow:(t,e)=>{let n=Oe(e);if(t)return he("boxShadow",Cd(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=Oe(e),s=r?" !important":"",i=ol(n.trim(),o);return v(i)?{boxShadow:i+s}:he("boxShadow",i)},textShadow:(t,{context:e})=>he("textShadow",ol(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:_n(t)})};var gl={transition:t=>{let e=Pd(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:il(t)}),transitionDelay:t=>({transitionDelay:il(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Ae(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};$();var V_={flow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};$();var WN=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,KA=t=>{if(!v(t))return t;let e=O().sizes;return e?t.replace(WN,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},Sn=t=>KA(Rd(t)),U_={gridTemplateColumns:t=>({gridTemplateColumns:Sn(t)}),gridTemplateRows:t=>({gridTemplateRows:Sn(t)}),gridAutoColumns:t=>({gridAutoColumns:Sn(t)}),gridAutoRows:t=>({gridAutoRows:Sn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Sn(t)}),templateColumns:t=>({gridTemplateColumns:Sn(t)}),autoColumns:t=>({gridAutoColumns:Sn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Sn(t)}),templateRows:t=>({gridTemplateRows:Sn(t)}),autoRows:t=>({gridAutoRows:Sn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var _t={...$_,...M_,...N_,...F_,...j_,...B_,...gl,...V_,...U_};var Rt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","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","fill","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","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);$();var qN=/^-?[A-Z][0-9]?$/,KN=/^[a-z][0-9]?$/,GA=/var\(\s*(--[A-Za-z0-9-]+)/g,z_=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},GN=(t,e)=>{if(!e.size)return[];let n=t.split(/[(),\s]+/).filter(Boolean),r=new Set;for(let o of n){if(!qN.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&r.add(o)}return[...r]},YN=(t,e)=>{if(!e.size)return[];let n=[];GA.lastIndex=0;let r;for(;r=GA.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!KN.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},tp=new Set,YA=(t,e,n)=>{if(!tt()||!v(e)||!e)return;let r;try{r=O()}catch{return}let{knownLetters:o,knownVars:s}=z_(r);if(!o.size&&!s.size)return;let i=GN(e,o),a=YN(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;tp.has(f)||(tp.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;tp.has(u)||(tp.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};$();var XN=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,ZN=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=ge(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(XN),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},XA=(t,e,n)=>({[t]:ge(e,n)}),ml=(t,e,n)=>{let r=`&${t}`,o=ge(e,n);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=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},H_=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return R(n)?n.call(e,e):!!n},QN=(t,e,n)=>{let r=t.slice(1),o=H_(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ge(e,n)},JN=(t,e,n)=>({[t]:e}),tF=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=H_(r,n);s!==void 0&&(o=s)}if(o)return ge(e,n)},eF=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=H_(r,n);s!==void 0&&(o=s)}if(!o)return ge(e,n)},W_=(t,e)=>ge(t,e),q_={"@":ZN,":":ml,"[":ml,"*":ml,"+":ml,"~":ml,"&":XA,">":XA,$:QN,"-":JN,".":tF,"!":eF};var ep=ir(),ZA=(t,e,n)=>{let r=e?.context?.designSystem;r&&J(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&v(c)){let l=QA(c,e);l&&(n.unpack?xt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=pt(c,e);xt(o,W_(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=R(l)?l(e,e.state,e.context):l;f&&i(a,f),!ep&&E(o[a])&&(o[a].label=a)}else if(_t[a]){let l=pt(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>xt(u,d),{}));let f=_t[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>xt(u,d),{})),f&&i(a,f),!ep&&E(o[a])&&(o[a].label=a)}else if(Rt.has(a)){let l=pt(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),ep||YA(a,l,e),i(a,{[a]:l}),!ep&&E(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&X()}},QA=(t,e)=>{if(!v(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!E(s))continue;let i=ut(s);r=r?Jt(r,i):i}if(r)return ge(r,e)},JA=(t,e)=>{let n={};for(let r in t){let o=q_[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?Jt(n[i],s[i]):n[i]=s[i])}}return n},ge=(t,e,n={unpack:!0})=>{let[r,o]=ZA(t,e,n),s=JA(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return Sa(r,s);r._selectors=s}return r},nF=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};$();var tC=t=>{if(E(t))return ge(t,t)},rF=(t,e)=>{let n=tC(t);return typeof e=="function"?e(n):Te(n)};$();var oF=/^-?[A-Z][0-9]?$/,rC=/[(),\s]+/,eC=/\s*!important\s*$/,sF=t=>t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),iF=()=>{let t;try{t=O()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{if(!e)return!1;let i=s.charCodeAt(0)===45?s.slice(1):s;return i?e[s]!==void 0||e[i]!==void 0||e[i.toLowerCase()]!==void 0:!1},o=s=>oF.test(s)?(n||(n=z_(t).knownLetters),n.has(s.charCodeAt(0)===45?s.slice(1):s)):!1;return{isToken:s=>o(s)||r(s)}},aF=(t,e)=>{let n=null,r=t.split(rC);for(let o=0;o<r.length;o++){let s=r[o];!s||s.charCodeAt(0)===35||e.isToken(s)&&(n||(n=[])).push(s)}return n},cF=(t,e)=>{let n=String(t).split(rC);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},lF=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(sF(t),e)}catch{return!1}},nC=new Set,fF=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;nC.has(o)||(nC.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},uF=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=_t[t];if(!o||!Rt.has(t))return null;let s=eC.test(e),i=s?e.replace(eC,""):e,a=aF(i,r);if(!a||lF(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let u={};for(let d of c)d&&typeof d=="object"&&Object.assign(u,d);c=u}let l=!!c&&typeof c=="object";if(l){let u=!1;for(let d in c){let p=c[d];if(p!=null){if(typeof p=="object"||typeof p=="function"){l=!1;break}for(let g of a)if(cF(p,g)){l=!1;break}if(!l)break;u=!0}}u||(l=!1)}if(!l)return fF(n,t,e),null;let f={};for(let u in c){let d=c[u];d!=null&&(f[u]=s?String(d)+" !important":d)}return f},oC=(t,e,n)=>{let r=null,o=0;for(let s in t){let i=t[s],a=null,c=null;if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let l=oC(i,e,n);l!==i&&(c=l)}else a=uF(s,i,e,n);if((a||c)&&!r){r={};let l=0;for(let f in t){if(l++===o)break;r[f]=t[f]}}r&&(c?r[s]=c:a?Object.assign(r,a):r[s]=i),o++}return r||t},K_=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:oC(t,e,iF());$();$();function X_(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.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:n})}var sC=new Set;function iC(t,e,n){let r=String(e);if(sC.has(r))return;sC.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${r}') at <${s}>: "${r}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;X_(t,"error",[a]),console.error(a)}var cC=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),dF=new Set,lC=t=>cC(G_,t)&&!(ls||dF).has(t),aC=new Set;function fC(t,e){aC.has(t)||(aC.add(t),tt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function pF(...t){return X_(this,"warn",t),ac.apply(this,t)}function hF(...t){return X_(this,"error",t),eo.apply(this,t)}var G_={update:ai,remove:li,getDB:uc,getQuery:dc,getRootData:oc,getPath:tc,nextElement:cc,previousElement:lc,verbose:ks,warn:pF,error:hF,variables:fc,spotByPath:Ja,set(t,e){let n=this.__ref;if(n){if(n.__setLocked){n.__setQueued={content:t,options:e};return}n.__setLocked=!0}try{if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(n){n.__setLocked=!1;let r=n.__setQueued;r&&(n.__setQueued=null,this.set(r.content,r.options))}}},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,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 n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];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(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:rc,getRootState:nc,getRootContext:sc,getContext:ic,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];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 n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=lC(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&fC(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=Gr;if(!s||!s(o))return o.call(this,...e);tt()&&iC(this,t,we(o));return}tt()&&iC(this,t,o)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Y_=new WeakMap;function gF(t){if(!t)return G_;let e=Y_.get(t);if(e)return e;e=Object.create(G_);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return Y_.set(t,e),e}function fi(t){let e=gF(t.context);Object.setPrototypeOf(t,e)}function ui(t){if(!t)return!1;let e=Y_.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(lC(r)&&!cC(e,r)){fC(r,"refreshContextProto");continue}e[r]=n[r]}return!0}var np=[],rp=!1,Cr=0;function op(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function uC(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof MessageChannel=="function"){let n=new MessageChannel;n.port1.onmessage=()=>{n.port1.close(),t()},n.port2.postMessage(0);return}setTimeout(t,0)}function Z_(){return Cr?op()-Cr>=50:!1}var di=0;function Q_(){di===0&&!Cr&&(Cr=op()),di++}function J_(){di>0&&di--,di===0&&!rp&&(Cr=0)}function tw(t){np.push(t),rp||(rp=!0,uC(dC))}function dC(){for(Cr=op();np.length;){let t=np.shift();try{t()}catch(e){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",e?.message||e)}if(op()-Cr>=50)break}if(np.length){uC(dC);return}rp=!1,Cr=0,di=0}$();$();cr();var sw={};F(sw,{STATE_METHODS:()=>pC,applyInitialState:()=>sp,applyStateMethods:()=>Re,callStateMethod:()=>bl,createState:()=>nw,isTracking:()=>ow,useHostState:()=>rw});qt();qt();var pC=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"]),yl=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},rn=(t,e,n,{onlyIfAbsent:r}={})=>{yl(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&yl(t,e,n)},bl=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},Re=(t,e)=>{if(St(e)){let o=e.__raw||e;rn(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),rn(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),rn(o,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),rn(o,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),rn(o,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),rn(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),rn(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),rn(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),rn(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&St(a.parent);)a=a.parent;return bl(a,"update",s,i)}),rn(o,"parentUpdate",function(s,i={}){if(e.parent)return bl(e.parent,"update",s,i)}),rn(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=St(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,St(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={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;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};yl(e,"$settled",function(){return $f().then(()=>e)});for(let o in r)if(yl(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Nf(o,"");continue}yl(e,o,r[o])}};var nw=function(t,e,n){return t.state=sp(t,e,n),t.state},sp=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Re(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",mF(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=xn({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Re(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!St(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=xn({...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)),Re(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return St(o)?(o.__element=t,o):e?.state||{}};function ew(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function mF(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?ew(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?ew(o,s):o??{}}let r=ew(n.state,t);if(r&&typeof r=="object"&&!St(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}qt();var rw=(t,e)=>{if(!t)return gC;let n=bF(t,e);return!n||!n.state?gC:wF(n.state)},ow=()=>_e()!=null,yF=128;function bF(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<yF&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var _F={get(t,e){return t[e]}},hC=new WeakMap,wF=t=>{let e=hC.get(t);return e||(e=new Proxy(t,_F),hC.set(t,e)),e},gC=new Proxy(Object.create(null),{get(){},has(){return!1}});var ip="3.14.801";var mC="__SMBLS_ELEMENT_ID_ENGINE__",yC=(t,e,n)=>{let r=e||ip,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[mC];return s&&s.engine&&s.version===r?s.engine:(s||(o[mC]={version:r,engine:t}),t)};if(!yt||!wn)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var bC=yt,_l=wn,iw=cl||(()=>!1);var SF=new Set(["rows","cols","wrap","fill","stroke"]),ap=(t,e)=>SF.has(e)&&ze(t,e),Tr=(t,e)=>!!(_t[e]||Rt&&Rt.has(e))&&!ap(t,e);var UC=yC({uniqId:1,scopedStyleId:0},ip),Sl=[],Co=new Set,kw=!1,zC=0,yi=null,Tl=null;function bi(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function HC(){return typeof document<"u"&&document.visibilityState==="hidden"}var xF=250,kF=1e3;function vF(){return Tl&&(Tl!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||HC())?!0:bi()-zC>=kF}function EF(){if(kw=!0,zC=bi(),Tl=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kl,0);yi=t?()=>t(e):null;return}if(HC()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(kl,xF);yi=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Tl=requestAnimationFrame;let e=requestAnimationFrame(kl);yi=t?()=>t(e):null}}function up(){if(kw){if(!vF())return;let t=yi;if(yi=null,t)try{t()}catch{}}EF()}var WC=300,qC=15e4;function kl(){if(kw=!1,yi=null,Tl=null,Co.size&&hj(),!Sl.length)return;let t=Sl.splice(0,Sl.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=bi());let o=bi()-r.__mountFirstAttemptAt;r.__mountAttempts<=WC&&o<qC?(Sl.push(n),up()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&vA(n),typeof n.onMounted=="function"&&Ht("Mounted",n,n.__ref?.__mountOptions||{})}}}function pw(t,e){let n=t.__ref?.__autoGrow;n&&n.active&&Rl(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Sl.push(t),up())}function _C(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&Ct("contentUpdate",t,e);let n=t.context?.designSystem;n&&J(n);try{t.onContentUpdate(t,t.state,t.context,e)}catch(r){if(t.context?.plugins?.length&&Ct("error",t,{hook:"onContentUpdate",error:r})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',r),t.context?.strictMode)throw r}finally{n&&X()}}function Un(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function AF(t){return t.charAt(2).toLowerCase()+t.slice(3)}function CF(t){return t.toLowerCase()}function hw(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function xl(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=xl(o,s):n[r]=s}return n}function cp(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function KC(t,e,n){return cp(t)||(e&&typeof e=="object"?cp(e.key):void 0)||String(n)}function ee(t,e,n,r={},o){let s=_e();if(s){Xt(null);try{return ee(t,e,n,r,o)}finally{Xt(s)}}if(t==null||t===!1)return null;let i=UF(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=cp(n);let a=cp(t.key),c=Object.create(null);c.key=n||a||`_${UC.uniqId++}`,c.parent=e||null,c.context=t.context||e?.context||r.context||{},c.context.__create||(c.context.__create=ee);let l=c.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||c,path:e?.__ref?.path?[...e.__ref.path,c.key]:[c.key],origin:t};i&&(l.__runtimeSource=i);let f=t;if(t=GC(c,t,n,a,e,r),c.if!=null){let d;if(typeof c.if=="function")try{d=c.if(c,c.state,c.context)}catch(p){if(d=!1,l.__ifError=p,typeof console<"u"&&console.warn){let g=c.key||c.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${g} \u2014 treating as false:`,p?.message||p)}}else d=c.if;l.__if=!!d}if(l.__if)typeof c.if=="function"&&(l.__ifInitialized=!0);else{e&&(e[c.key]=c);let d=RF(t,n,c.context?.components);return d.length&&(l.__ifLateMerge={definition:f,key:n,ownKey:a,names:d,options:r}),typeof c.if=="function"&&JC(c,l,c.if),c}c.tag||(c.tag=Fn(c)),Ht("Init",c,r);let u=c.node=Hd(c)||vr(c);if(!u)return c;if(c.tag==="fragment"){let p=(c.context?.document||globalThis.document).createComment("");u.appendChild(p),l.__fragmentAnchor=p}Ht("AttachNode",c,r),u.setAttribute&&c.key&&u.setAttribute("data-key",c.key),e&&(e[c.key]=c,e.__ref?.__children&&(e.__ref.__children.includes(c.key)||e.__ref.__children.push(c.key))),u.setAttribute&&c.context?.scopeSelector&&c.context.scopeSelector!==":root"&&c.context.key&&c.key===c.context.key&&u.setAttribute("data-smbls-app",c.context.key),c.id&&u.setAttribute&&(u.id=c.id),p1(c,r),QC(c),yw(c),l1(c),_w(c),u1(c),kj(c);try{h1(c,r)}catch(d){if(typeof console<"u"&&console.error){let p=c.__ref?.path?.join(".")||c.key||"<root>";console.error(`[smbls] createChildren failed at ${p}:`,d?.message||d,d?.stack?`
55
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function fA(){try{let t=O(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function tA(t){jd||pe.variable>0||pe.atomic>0||uA(Math.max(t,fA()))}function k_(t){let e=t&&(t.CSS_VARS||t.cssVars);return uA(e?Object.keys(e).length:fA())}function uA(t){let e=Vd();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Ud())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return MM(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var NM={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 fl(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var dA=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,g_=t=>dA(t)?t:fl(t);function Bd(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function FM(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Bd(e)}var jM={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function Zs(t,e){let n=jM[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function m_(t){let e="";for(let n in t){let r=t[n];if(typeof r!="object"||r===null)continue;let o="";for(let s in r){let i=s.charCodeAt(0)===45&&s.charCodeAt(1)===45;o+=Zs(i?s:fl(s),r[s])}e+=`${n}{${o}}`}return e}var BM="@media (hover: hover)",VM=/(?:^|[^\\]):hover(?![\w-])/;function v_(){try{let t=O();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Nn(t,e,n){return n===!1||!VM.test(e)||n===void 0&&!v_()?t:`${BM}{${t}}`}function eA(t,e,n){let r=(n?n+"":"")+t+":"+e,o=Qs.get(r),s=o?null:g_(t);if(!o){let c=NM[t]||Bd(t),l=FM(e);o=n?`_${n}_${c}-${l}`:`_${c}-${l}`,Qs.set(r,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=s||g_(t),a=`.${o}{${Zs(i,e)}}`;return nn(a,void 0,"atomic",!0),o}var nA=new WeakMap,rA=new WeakMap;function nn(t,e,n,r){let o=Ud(e,UM(t,r,n));if(!o)return pe.dropped++,"dropped";let s=nA.get(o);if(s||(s=new Set,nA.set(o,s)),s.has(t))return pe.duplicate++,pe[n||"global"]++,"duplicate";let i=rA.get(o);if(i&&i.has(t))return pe.invalid++,"invalid";try{o.insertRule(t,o.cssRules.length)}catch{return i||(i=new Set,rA.set(o,i)),i.add(t),pe.invalid++,"invalid"}return s.add(t),pe[n||"global"]++,"inserted"}var Ce="0:0",y_="1:0",pA="0:99",oA=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function UM(t,e,n){if(typeof t!="string"||!t)return Ce;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return Ce;let i=1/0,a=-1/0;oA.lastIndex=0;let c;for(;c=oA.exec(t);){let l=parseFloat(c[2])*(c[3]==="em"||c[3]==="rem"?16:1);c[1]==="max"?i=Math.min(i,l):a=Math.max(a,l)}return i!==1/0?"2:"+-i:a!==-1/0?"3:"+a:y_}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?pA:Ce;if(!/^\.[\w-]+\{/.test(t))return y_;if(!e)return Ce;let r=t.indexOf("{"),o=t.indexOf(":",r);if(o===-1)return Ce;let s=Ys(t.slice(r+1,o).trim());return s?"0:"+s:Ce}var Xs=null,zM=()=>{if(Xs)return Xs;let t=0;for(let e in ze)t=Math.max(t,Ys(e));Xs=[Ce];for(let e=1;e<=t;e++)Xs.push("0:"+e);return Xs.push(pA,y_),Xs},sA=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},iA=(t,e)=>{let[n,r]=sA(t),[o,s]=sA(e);return n!==o?n<o:r<s},HM=t=>t.getAttribute("data-tier")||Ce,aA=new WeakMap;function Ud(t,e){let n=t||Eo();if(!n||!n.head)return null;let r=e||Ce,o=aA.get(n);o||(o=new Map,aA.set(n,o));let s=o.get(r);if(s&&s.node.parentNode===n.head&&s.node.sheet===s.sheet)return s.sheet;if(r!==Ce){let c=zM();for(let l=0;l<c.length&&iA(c[l],r);l++)Ud(n,c[l])}let i=r===Ce?n.head.querySelector("style[data-smbls]:not([data-tier])"):n.head.querySelector(`style[data-smbls][data-tier="${r}"]`);if(!i){i=n.createElement("style"),i.setAttribute("data-smbls",""),r!==Ce&&i.setAttribute("data-tier",r);let c=n.head.querySelectorAll("style[data-smbls]"),l=null;for(let u=0;u<c.length;u++)if(iA(r,HM(c[u]))){l=c[u];break}let f=c.length?c[c.length-1]:null;l?n.head.insertBefore(i,l):f?n.head.insertBefore(i,f.nextSibling):n.head.appendChild(i)}let a=i.sheet;return o.set(r,{sheet:a,node:i}),r===Ce&&(lA=a),a}function WM(t){let e=t||Eo();if(!e||!e.head)return[];let n=[],r=e.head.querySelectorAll("style[data-smbls]");for(let o=0;o<r.length;o++)r[o].sheet&&n.push(r[o].sheet);return n}var qM=8;function Te(t,e,n,r){if(!t||typeof t!="object")return"";let o=!!(r&&r.state),s=null,i=0,a=[],c=[],l=Object.keys(t);for(let u=0;u<l.length;u++){let d=l[u],p=t[d];p==null||p===!1||p===""||(typeof p=="object"?c.push([d,p]):h_&&!dA(d)?(s||(s=[]),s.push(d,String(p)),i++):a.push(eA(d,String(p),n)))}if(s&&i>=qM){let u=s.join("\0"),d=h_(u),p=d.indexOf("\0"),g=d.substring(0,p),h=d.substring(p+1);if(h){let m=h.split(`
56
+ `);for(let y=0;y<m.length;y++)m[y]&&nn(m[y],void 0,"atomic",!0)}a.push(g)}else if(s)for(let u=0;u<s.length;u+=2)a.push(eA(s[u],s[u+1],n));let f=[];for(let u=0;u<c.length;u++)f.push(XM(c[u][0],c[u][1],n,o));return a.concat(f).join(" ").trim()}var cA=new Map,KM=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function ul(t){return/^@(media|supports|container)\b/.test(t)}function GM(t){return typeof t!="string"||!t||ul(t)?!1:t.split(",").every(e=>KM.test(e.trim()))}var hA=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},b_=32,__=1024,w_=!1;function Nd(t,e,n){if(w_)return;w_=!0;let r=[e,...n],o=r.length>12?[...r.slice(0,6),`\u2026${r.length-9} more\u2026`,...r.slice(-3)]:r;console.warn(`[@symbo.ls/css] ${t} at ${o.join(" > ")} \u2014 skipped. A style block may hold only CSS values and nested plain blocks; the rest of this rule is still emitted. (One warning per page.)`)}function YM(t){try{return JSON.stringify(t)}catch{let n=[],r=0;return JSON.stringify(t,function(o,s){if(!s||typeof s!="object")return s;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(s)||!hA(s)||n.length>b_||++r>__)))return n.push(s),s})}}function XM(t,e,n,r){let o=YM(e),s=t.indexOf(":hover")!==-1||o.indexOf(":hover")!==-1,i=s&&v_(),a=(n?n+"":"")+t+o+(s&&!i?"rawhover":"")+(r?"state":""),c=Qs.get(a);if(c){let _=cA.get(c);if(_)for(let w=0;w<_.length;w++)nn(_[w],void 0,"atomic");return c}c=n?`_${n}_c${Bd(a)}`:`_c${Bd(a)}`;let l=r?`.${c}.${c}`:`.${c}`,f=GM(t)?`${l}.${c}`:l,u="",d=[],p=_=>typeof _=="string"&&(_.indexOf("{")!==-1||_.indexOf("}")!==-1),g=new Set,h=0,m=(_,w)=>{g.add(w);let k="",A=Object.keys(w);for(let T=0;T<A.length;T++){let M=A[T],P=w[M];if(P!=null)if(typeof P=="object"){let L=[..._,M];g.has(P)?Nd("a style value that loops back to one of its own ancestors",t,L):hA(P)?L.length>b_?Nd(`a style block nested more than ${b_} levels deep`,t,L):++h>__?Nd(`a style object with more than ${__} nested blocks`,t,L):m(L,P):Nd(`a ${Object.prototype.toString.call(P).slice(8,-1)} (not a style block)`,t,L)}else{if(p(P))continue;k+=Zs(g_(M),P)}}g.delete(w),k&&(_.length===0?u+=k:d.push({chain:_,body:k}))};m([],e);let y=_=>_.startsWith(":")||_.startsWith("["),S=(_,w=!0)=>{let k=w&&_.length===1?f:l;if(!_.length)return k;let A=_[0].split(",").map(T=>T.trim()).map(T=>T.includes("&")?T.replace(/&/g,k):y(T)?`${k}${T}`:`${k} ${T}`);for(let T=1;T<_.length;T++){let M=_[T].split(",").map(L=>L.trim()),P=[];for(let L of A)for(let H of M)H.includes("&")?P.push(H.replace(/&/g,L)):y(H)?P.push(L+H):P.push(L+" "+H);A=P}return A.join(", ")},b=[],x=(_,w)=>{let k=_.filter(ul),A=S(_.filter(M=>!ul(M)),k.length===0),T=`${A}{${w}}`;for(let M=k.length-1;M>=0;M--)T=`${k[M]}{${T}}`;T=Nn(T,A,i),b.push(T),nn(T,void 0,"atomic")};u&&x([t],u);for(let _ of d)x([t,..._.chain],_.body);return cA.set(c,b),Qs.set(a,c),c}function vt(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Ud(),typeof t=="string"){let s=t.indexOf("--")!==-1;nn(t,void 0,s?"variable":"global"),s&&tA(1);return}let e=v_(),n=0,r=Object.keys(t),o=s=>{let i=s.match(/max-width:\s*(\d+)/);return i?parseInt(i[1]):0};r.sort((s,i)=>{let a=s.startsWith("@media"),c=i.startsWith("@media");return!a&&!c?0:a?c?o(i)-o(s):1:-1});for(let s of r){let i=t[s];if(s.startsWith("@keyframes")){let a=m_(i);a&&nn(`${s}{${a}}`,void 0,"keyframes");continue}if(ul(s))for(let a in i){let c=i[a];if(a.startsWith("@keyframes")){let l=m_(c);l&&nn(`${s}{${a}{${l}}}`,void 0,"keyframes");continue}if(typeof c=="object"&&c!==null){let l="",f=0;for(let u in c){let d=u.charCodeAt(0)===45&&u.charCodeAt(1)===45;d&&f++;let p=d?u:fl(u);l+=Zs(p,c[u])}n+=f,nn(Nn(`${s}{${a}{${l}}}`,a,e),void 0,f?"variable":"global")}else{let l=a.charCodeAt(0)===45&&a.charCodeAt(1)===45;l&&n++;let f=l?a:fl(a);nn(`${s}{${Zs(f,c)}}`,void 0,l?"variable":"global")}}else{let a="",c=!1,l=0;for(let f in i){let u=i[f];if(typeof u=="object"&&u!==null)c=!0;else{let d=f.charCodeAt(0)===45&&f.charCodeAt(1)===45;d&&l++;let p=d?f:fl(f);a+=Zs(p,u)}}if(n+=l,a&&nn(Nn(`${s}{${a}}`,s,e),void 0,l?"variable":"global"),c){let f=[],u=[];for(let d in i)typeof i[d]=="object"&&i[d]!==null&&(ul(d)?f.push(d):u.push(d));f.sort((d,p)=>{let g=h=>{let m=h.match(/max-width:\s*(\d+)/);return m?parseInt(m[1]):0};return g(p)-g(d)});for(let d of u)vt({[`${s} ${d}`]:i[d]});for(let d of f)vt({[d]:{[s]:i[d]}})}}}n>0&&tA(n)}function Js(t,e){return nn(`@keyframes ${t}{${m_(e)}}`,void 0,"keyframes"),t}function gA(){Qs.clear(),lA=null,w_=!1}function E_(){return Qs.size}$();var Dw={};F(Dw,{DELEGATED_EVENTS:()=>oi,LIFECYCLE_EVENTS:()=>Er,MIXINS:()=>qd,NON_BUBBLING_EVENTS:()=>Kd,REGISTRY:()=>Ut,SVG_TAGS:()=>ri,addDelegatedEvent:()=>pl,addMethods:()=>di,adoptHydrationNode:()=>Wd,applyExtends:()=>ai,cacheNode:()=>vr,create:()=>ee,createHTMLNode:()=>ni,detectTag:()=>Fn,dispose:()=>Vn,elementPath:()=>Hd,flushMounts:()=>vl,globalEventKeyInfo:()=>Yd,inertOutsidePlugin:()=>gp,isSvgTag:()=>kr,isValidTag:()=>ei,refreshContextProto:()=>pi,registerEvent:()=>si,registerGlobalEvent:()=>Xd,remove:()=>ui,removeDelegatedEvent:()=>hl,update:()=>li});qt();qt();var ti="http://www.w3.org/2000/svg",ri=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"]),ZM=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 ei(t){return ZM.has(t)||ri.has(t)}function kr(t){return ri.has(t)}function Fn(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(s){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,s?.message||s)}if(e===!0&&(e=n),typeof e=="string"&&ei(e))return e;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ei(o)&&!r.has(o)?o:"div"}var mA={};function ni(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(kr(t)){let r=e?.parent;if(t==="svg"||r?.node?.namespaceURI===ti)return n.createElementNS(ti,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function vr(t){let e=t.tag=Fn(t),r=kr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ti)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=mA[r];if(s||(s=mA[r]=ni(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?ni(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var Hd=t=>{let e=t.__ref;if(e&&e.__hydrationPath!==void 0)return e.__hydrationPath;let n=t.parent,r=n&&n.__ref?Hd(n):null,o=r===null?"":r?r+"."+t.key:String(t.key);return e&&(e.__hydrationPath=o),o},QM=new Set(["src","srcset"]);function Wd(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=Fn(t);if(n==="string"||n==="fragment")return null;let r=Hd(t),o=e.registry[r===""?"__root":r],s=o!==void 0?e.nodes[o]:null;if(!s||s.nodeType!==1||e.claimed.has(s))return o!==void 0&&e.misses++,null;let i=kr(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ti),a=kr(n)&&!i&&n!=="svg"?"div":n,c=i?s.namespaceURI===ti:s.namespaceURI!==ti;if(s.localName!==a||!c)return e.misses++,null;e.claimed.add(s),e.adopted++;for(let l of Array.from(s.getAttributeNames?s.getAttributeNames():[]))QM.has(l)||s.removeAttribute(l);for(;s.firstChild;)s.removeChild(s.firstChild);return s}var Ut=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),qd={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Er=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","bridgeMount","bridgeUpdate","bridgeDestroy"]),Kd=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"]),Gd=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),oi=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 T_=new WeakMap,JM={passive:!0},tN={passive:!0,capture:!0},wA=(t,e)=>Gd.has(t)?e?tN:JM:e||!1;function SA(t){let e=T_.get(t);return e||(e={handlers:new Map,installed:new Set},T_.set(t,e)),e}function eN(t,e){let n=SA(e);if(n.installed.has(t))return;n.installed.add(t);let r=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",o=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,s=>{if(o){let a=s.target,c=n.handlers.get(t),l=c&&a?c.get(a):null;if(!l||s.relatedTarget&&typeof a.contains=="function"&&a.contains(s.relatedTarget))return;l(s);return}let i=s.target;for(;i&&i!==e;){let a=n.handlers.get(t);if(a){let c=a.get(i);if(c&&(c(s),s.cancelBubble))return}i=i.parentNode}},wA(t,r))}function pl(t,e,n,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let o=SA(r);eN(t,r),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,n)}function hl(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let r=T_.get(n);if(!r)return;let o=r.handlers.get(t);o&&o.delete(e)}function nN(t){return oi.has(t)&&!Er.has(t)}function xA(t,e){let{context:n}=t,r=n?.designSystem;return o=>{r&&J(r);try{let s=e.call(t,o,t,t.state,n);if(s&&typeof s.then=="function"){s.catch(i=>{t.error=i,console.error("[DOMQL] Async event error:",i)}).finally(()=>{r&&X()});return}}catch(s){if(t.error=s,console.error("[DOMQL] Event error:",s),n?.strictMode)throw s}r&&X()}}var kA=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function rN(t,e){return kA(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:Gd.has(t),once:e.once===!0}:wA(t,!1)}function oN(t,e,n){return r=>{let o=r.target;if(o&&o.nodeType!==1&&(o=o.parentElement),!o||typeof o.closest!="function")return;let s;try{s=o.closest(e)}catch{return}s&&t.contains(s)&&n(r)}}function si(t,e,n,r){let{node:o,context:s}=e;if(!o)return;let i=xA(e,n),a=r&&typeof r.selector=="string"&&r.selector;a&&(i=oN(o,a,i));let l=!Kd.has(t)&&nN(t)&&!kA(r),f=l?null:rN(t,r);if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;pl(t,o,i,u)}else o.addEventListener(t,i,f);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(l){let u=s?.rootNode||o.ownerDocument?.documentElement;hl(t,o,u)}else o.removeEventListener(t,i,f)})}var A_=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Yd(t){if(typeof t!="string")return null;for(let e=0;e<A_.length;e++){let n=A_[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let r=t.charCodeAt(n.length);if(!(r<65||r>90))return{target:A_[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}var sN=/^[A-Za-z_$][\w$]*$/;function iN(t,e,n){let r=e,o=!1,s,i=!1,a=null;if(e&&typeof e=="object"&&typeof e!="function"&&(r=e.handler,o=!!e.capture,i=!!e.once,typeof e.passive=="boolean"&&(s=e.passive),typeof e.query=="string"&&(a=e.query)),typeof r=="string"&&sN.test(r)){let c=r;r=function(f){return t.call(c,f)}}return typeof r!="function"?null:(s===void 0&&(s=Gd.has(n)),{handler:r,capture:o,passive:s,once:i,query:a})}function aN(t,e,n){let r=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!r||typeof r.addEventListener!="function")return null;if(e==="document")return r;let o=r.defaultView||(typeof window<"u"?window:null);if(!o)return null;if(e==="window")return typeof o.addEventListener=="function"?o:null;if(e==="visualViewport"){let s=o.visualViewport;return s&&typeof s.addEventListener=="function"?s:null}if(e==="mediaQuery"){let s=n&&n.query;if(typeof s!="string"||!s.trim()||typeof o.matchMedia!="function")return null;try{return o.matchMedia(s)||null}catch{return null}}return null}var C_=/^@media\s+/i,cN=/^[@[.#&:>*~+]/,yA=new Set;function bA(t,e){!tt()||yA.has(t)||(yA.add(t),console.warn(`[smbls] onMediaQueryChange: "${t}" ${e} \u2014 no listener is registered.`))}function lN(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let r=t.context?.designSystem?.media,o=i=>{let a=r&&typeof r=="object"?r[i]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},s=n;if(n.charCodeAt(0)===64&&!C_.test(n)){if(s=o(n.slice(1)),!s)return bA(n,"is not a key of designSystem.media"),null}else s=o(n)||n;return C_.test(s)?s.replace(C_,"").trim()||null:cN.test(s)?(bA(n,`names "${s}", which is not a media query`),null):s}function fN(t,e,n,r){try{return t.addEventListener(e,n,r),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function vA(t,e,n,r){try{t.removeEventListener(e,n,r)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function uN(t){let e=t.node;if(!e)return!1;let n=e.nodeType===11?t.__ref?.__fragmentAnchor:e;return n?n.isConnected!==!1:!1}function Xd(t,e,n){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let o=0;o<n.length;o++)_A(t,e,n[o]);return}_A(t,e,n)}}function _A(t,e,n){let r=e.__ref,o=iN(e,n,t.eventName);if(!o||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(o.query=lN(e,o.query),!o.query))return;let s=aN(e,t.target,o);if(!s)return;let i=t.target+":"+(o.query?o.query+":":"")+t.eventName+":"+(o.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(i))return;let a=xA(e,o.handler),c=t.target==="window"&&t.eventName==="load",l=!1,f=p=>{if(uN(e)){if(c){if(l)return;l=!0}a(p)}},u={capture:o.capture,passive:o.passive,once:o.once};if(!fN(s,t.eventName,f,u))return;r.__globalEvents||(r.__globalEvents=new Map);let d={target:s,eventName:t.eventName,listener:f,options:u};r.__globalEvents.set(i,d),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{vA(s,t.eventName,f,u),r.__globalEvents&&r.__globalEvents.delete(i)}),c&&dN(e,i,d,()=>l)}function dN(t,e,n,r){let o=n.target.document;!o||o.readyState!=="complete"||queueMicrotask(()=>{let s=t.__ref;if(r()||!s||!s.__globalEvents||s.__globalEvents.get(e)!==n)return;let i=n.target,a=typeof i.Event=="function"?i.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&r()&&vA(i,"load",n.listener,n.options))})}qt();cr();var pN=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function ii(t,e,n){t.context?.plugins?.length&&Ct("error",t,{hook:e,error:n})||console.error(`[DOMQL] Lifecycle "${e}" error:`,n)}function AA(t,e,n){let r=_e();r&&Xt(null);let o=t.context?.designSystem;o&&J(o);try{return e.call(t,n,t,t.state,t.context)}finally{o&&X(),r&&Xt(r)}}function hN(t,e){if(!tt())return;let n=e.__children&&e.__children.length>0;!n&&t.html==null||console.warn(`[smbls] bridge host "${e.path.join(".")}" renders DOMQL ${n?"children":"html"} inside the node it hands to its library \u2014 the library owns that subtree and may replace them. Keep DOMQL children beside the host, not in it.`)}function CA(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function"||!("scrollHeight"in n))return;let r=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0,hN(t,e);let o;try{o=AA(t,t.onBridgeMount,n)}catch(s){if(r.failed=!0,ii(t,"onBridgeMount",s),t.context?.strictMode)throw s;return}if(o&&typeof o.then=="function"){o.then(s=>EA(t,r,s),s=>{r.failed=!0,ii(t,"onBridgeMount",s)});return}EA(t,r,o)}function EA(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){OA(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let r=t.__ref;e.effect=K(()=>{if(e.disposed)return;let o=t.context?.designSystem;o&&J(o);try{let s=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);s&&typeof s.then=="function"&&s.catch(i=>ii(t,"onBridgeUpdate",i))}catch(s){ii(t,"onBridgeUpdate",s)}finally{o&&X()}},{depth:r.path.length,label:()=>r.path.join(".")+"::onBridgeUpdate"}),r.__effects.push(e.effect)}function TA(t){let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&OA(t,e))}function OA(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,pN(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let r=AA(t,t.onBridgeDestroy,n);r&&typeof r.then=="function"&&r.catch(o=>ii(t,"onBridgeDestroy",o))}catch(r){ii(t,"onBridgeDestroy",r)}}function RA(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 ai(t,e,n){let r=RA(e);if(!r.length)return;let s=(t.context||n?.context||{}).components||{};for(let i=0;i<r.length;i++){let a=PA(r[i],s);a&&a!==e&&LA(t,a,n,new Set([e]))}}function PA(t,e){if(typeof t=="string"){if(t.includes(">")){let n=t.split(">").map(o=>o.trim()),r=e[n[0]]||e[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function LA(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let o=RA(e);if(o.length){let a=(t.context||n?.context||{}).components||{};for(let c=0;c<o.length;c++){let l=PA(o[c],a);l&&LA(t,l,n,r)}}let s=O_(t);for(let i in e){if(i==="extends"||i==="extend")continue;let a=e[i];s&&s.set(i,s.rank),t[i]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[i]={...a}:t[i]=a:typeof t[i]=="object"&&typeof a=="object"&&!Array.isArray(t[i])&&!Array.isArray(a)&&t[i]!==null&&a!==null?t[i]=DA(t[i],a):t[i]=a}}function O_(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Map),n.rank=(n.rank||0)+1,n}function DA(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=DA(o,s):n[r]=s}return n}qt();cr();$();var gN=["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"],ci={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","placeholder","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","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","ping","referrerpolicy","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","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","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","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","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"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","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:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],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","loading","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"]},$A=["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"],MA=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,jn=t=>MA(t)||jA(t),NA=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),R_=new Set;for(let t in ci)t==="default"||t==="aria"||t==="svg"||ci[t].forEach(e=>{e.startsWith("on")||R_.add(e)});var FA=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,o=>"-"+o.toLowerCase());if(R_.has(n))return n;let r=t.toLowerCase();return R_.has(r)?r:null},jA=t=>NA.has(t)?t.toLowerCase():FA(t),mN=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),yN=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),rn=t=>typeof t=="string"&&(mN.has(t)||t.startsWith("aria-")),te=(t,e)=>{if(e!==!0&&e!==!1)return e;if(rn(t)){let n=yN.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},He=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||MA(e)||NA.has(e)||ci.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(ci,t)){let n=ci[t];if(n.includes(e))return!0;let r=FA(e);return r!==null&&n.includes(r)}return!1},L_=t=>{if(!v(t))return!1;let e=t.toLowerCase();return $A.includes(e)},bN=(t,e,n)=>{let r={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(n&&o in n)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])Dt(e[o][a])&&(r["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(Dt(e[o][a])){let c=a.replace(/([A-Z])/g,l=>"-"+l.toLowerCase());r["data-"+c]=e[o][a]}continue}let s=He(t,o),i=L_(o);if(Dt(e[o])&&(s||i)){let a=jn(o)||o;r[a]=e[o]}}return r},_N=(t,e)=>{let n={};if(t.attr)for(let r in t.attr)n[r]=t.attr[r](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let o=t.aria[r];typeof o=="function"&&(n["aria-"+r]=o(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let r in t.data){let o=t.data[r];if(typeof o=="function"){let s=r.replace(/([A-Z])/g,i=>"-"+i.toLowerCase());n["data-"+s]=o(e,e.state,e.context)}}return n},Ar=(t,e)=>{let n=t.call("exec",e,t);if(n)return v(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},P_=(t,e)=>{let n=(t.preSrc||"")+(Ar(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=t;if(!r.files&&!r.assets)return n;if(n.startsWith("/assets/")){let o=n.slice(8),s=r.assets&&(r.assets[n]||r.assets[o]);return s&&s.content?s.content.src:n}if(n.startsWith("/files/")){let o=n.slice(7),s=r.files&&(r.files[n]||r.files[o]);return s&&s.content?s.content.src:n}if(r.assets){let o=r.assets[n];if(o&&o.content)return o.content.src}if(r.files){let o=r.files[n];if(o&&o.content)return o.content.src}return n},Ao={src:t=>P_(t,t.src),href:t=>Ar(t,t.href),action:t=>Ar(t,t.action),poster:t=>P_(t,t.poster),data:t=>Ar(t,t.data)},D_=t=>{let e=t.tag||"div",n={};for(let r in Ao)if(t[r]!==void 0&&He(e,r)){let o=Ao[r](t);o!==void 0&&(n[r]=o)}return n},IA=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return R(n)?n.call(e,e):!!n},wN=(t,e,n)=>{if(t==="$"){let o=IA(e,n);return o===void 0&&(o=!!n[e]),o}let r=n[e]===!0||n.state[e];if(!r){let o=IA(e,n);o!==void 0&&(r=o)}return t==="."?!!r:!r},SN=new Set(["$",".","!"]),I_=(t,e,n,r=wN)=>{let o={},s=(i,a,c,l)=>{let f=a;o[i]=u=>{if(r(c,l,u))return R(f)?f(u,u.state,u.context):f}};for(let i in t){let a=i.charAt(0);if(!SN.has(a))continue;let c=t[i];if(!c||typeof c!="object")continue;let l=i.slice(1);for(let f in c){if(n&&f in n)continue;if(f==="aria"&&c[f]&&typeof c[f]=="object"){for(let g in c[f])s("aria-"+g,c[f][g],a,l);continue}if(f==="data"&&c[f]&&typeof c[f]=="object"){for(let g in c[f]){let h=g.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());s("data-"+h,c[f][g],a,l)}continue}let u=He(e,f),d=L_(f);if(!u&&!d)continue;let p=jn(f)||f;s(p,c[f],a,l)}}return o};function li(t={},e={}){let n=this,r=n.__ref;if(!r)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&$_(r))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>Bn(r,!1),c=>{Bn(r,!0),n.context?.plugins?.length&&Ct("error",n,{hook:"onBeforeUpdate",error:c})||console.error("[DOMQL] onBeforeUpdate error:",c)});else if(Bn(r,!1),a===!1)return n}catch(a){throw Bn(r,!0),a}let o=!t||Object.keys(t).length===0,s=[],i=!1;$f(()=>{if(t.state&&St(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!r.__exec.text&&n.node&&fi(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!r.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!r.__exec.style){let a=gl(n,t.style);for(let c in a){let l=a[c];if(l==null)continue;let f=c.replace(/[A-Z]/g,d=>"-"+d.toLowerCase()),u=String(l).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let c=t.attr[a];c==null||c===!1&&!rn(a)?n.node.removeAttribute(a):typeof c!="function"&&typeof c!="object"&&n.node.setAttribute(a,te(a,c))}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},i=!0}for(let a in t){if(Ut.has(a)||a==="state")continue;let c=t[a],l=n[a];if(l&&l.__ref&&typeof l.update=="function")l.update(c,e);else if(typeof c=="object"&&c!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&ee(c,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=c,typeof c!="function"&&s.push(a))}});for(let a=0;a<s.length;a++)UA(n,s[a]);if(n.node){let a=i;for(let c=0;!a&&c<s.length;c++)BA(s[c])&&(a=!0);a&&VA(n)}if(n.node&&o&&r.__effects&&r.__effects.length)for(let a=0;a<r.__effects.length;a++){let c=r.__effects[a];c&&!c._disposed&&!c._isSubscribeToEffect&&typeof c._execute=="function"&&c._execute()}else if(n.node&&r.__conditionalRunners)for(let a of r.__conditionalRunners)a();return Ct("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}qt();function Vn(t){if(!t)return;let e=t.__ref;if(!e)return;let n=_e();if(n){Xt(null);try{return Vn(t)}finally{Xt(n)}}e.__disposed=!0;try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(o){console.error("[smbls] onBeforeRemove error:",o)}if(e.__bridge&&TA(t),e.__effects){for(let o=0;o<e.__effects.length;o++)e.__effects[o].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let o=0;o<e.__eventCleanup.length;o++)e.__eventCleanup[o]();e.__eventCleanup.length=0}if(e.__children){let o=e.__children.slice();e.__children.length=0;for(let s=0;s<o.length;s++){let i=t[o[s]];i&&i.__ref&&Vn(i)}}t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let o=t.parent.__ref.__children.indexOf(t.key);o!==-1&&t.parent.__ref.__children.splice(o,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(o){console.error("[smbls] onRemove error:",o)}t.node=null,t.parent=null,t.__ref=null}function ui(){Vn(this)}$();$();var qA=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],xN=["none","forwards","backwards","both"],kN=["normal","reverse","alternate","alternate-reverse"],vN=["running","paused"],EN=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,AN=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(r=>EN.test(r.replace(/\s+/g,"")))},zA=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),CN={transform:AN,translate:zA,rotate:t=>zA(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},TN=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},ON=t=>{if(!E(t))return null;let e=null,n=-1;for(let r in t){let o=TN(r);o==null||!E(t[r])||o>=n&&(n=o,e=t[r])}return e},RN=t=>{let e=ON(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let r of n){let o=CN[r];if(!o)return!1;let s=e[r];if(s==null||typeof s=="object"||typeof s=="function"||!o(s))return!1}return!0},PN=(t,e)=>{if(E(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},r=n&&n[t];return E(r)?r:null},LN=["reverse","alternate","alternate-reverse"],KA=(t,e,n)=>{let r=n||e.animationDirection;return r&&LN.includes(String(r))?"both":RN(PN(t,e))?"backwards":"both"},DN=0,HA=new Map,M_=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(E(t)){let o=JSON.stringify(t),s=HA.get(o);if(s)return s;let i=`smbls-anim-${DN++}`,a=Js(i,t);return HA.set(o,a),a}let r=n&&n[t];return E(r)?Js(t,r):t},GA=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,IN=/^(?:\d+(?:\.\d*)?|\.\d+)$/,$N=/^-?[A-Z][0-9]?$/,YA=/^(?:cubic-bezier|steps|linear)\(/,MN=/^(?:calc|min|max|clamp)\(/,NN=t=>t.includes("(")||t.startsWith("--"),FN=(t,e)=>{if(!$N.test(t))return!1;let n=e&&e.sequence;if(!E(n))return!1;let r=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[r]||r.length===2&&n[r[0]])},jN=t=>{if(!v(t))return!1;let e=t.trim();return qA.includes(e)||YA.test(e)||e.startsWith("var(")},BN=(t,e)=>!!e&&jN(e[t]||e[co(t)]),VN=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],UN=t=>{let e=[],n=0,r="";for(let o of String(t).trim())o==="("?n++:o===")"&&n>0&&n--,n===0&&/\s/.test(o)?(r&&e.push(r),r=""):r+=o;return r&&e.push(r),e},zN=(t,e,n)=>{let r={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},o=null,s=[],i=[],a=(f,u)=>{r[f]==null?r[f]=u:s.push(u)};for(let f of UN(t))e&&e[f]?o=f:GA.test(f)||FN(f,n)?r.duration==null?r.duration=f:r.delay==null&&(r.delay=f):qA.includes(f)||BN(f,n)?a("timingFunction",f):YA.test(f)?r.timingFunction==null&&(r.timingFunction=f):f==="infinite"?a("iterationCount",f):IN.test(f)?r.iterationCount==null&&(r.iterationCount=Number(f)):kN.includes(f)?a("direction",f):xN.includes(f)?a("fillMode",f):vN.includes(f)?a("playState",f):NN(f)?i.push(f):s.push(f);let c=o||s[0]||i.shift()||null,l=new Set;for(let f of i){let u=VN.find(d=>r[d]==null);if(!u)break;r[u]=f.startsWith("--")?`var(${f})`:f,l.add(u)}return{name:c,...r,opaqueSlots:l}},HN=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:r}=O()||{};return en(String(t)).map(o=>o.trim()).filter(Boolean).map(o=>zN(o,n,r))},WA=(t,e)=>GA.test(t)||e&&!MN.test(t)&&!/^(?:var|env)\(/.test(t)?t:fe(t).timing||t,WN=(t,e)=>{let n=r=>t.opaqueSlots.has(r);return{animationName:t.name==null?void 0:M_(t.name,e),animationDuration:t.duration!=null?WA(t.duration,n("duration")):fe(e.animationDuration||"A").timing,animationDelay:t.delay!=null?WA(t.delay,n("delay")):fe(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:Ae(t.timingFunction):Ae(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||KA(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},qN={animationName:"none",animationPlayState:"running",animationDirection:"normal"},KN=(t,e)=>{let n=t.map(o=>WN(o,e));if(n.length===1)return n[0];let r={};for(let o in n[0]){let s=n.map(i=>i[o]);s.every(i=>i==null)||(r[o]=s.map(i=>i??qN[o]).join(", "))}return r},N_={animation:(t,e)=>{if(t!=null){if(v(t)&&/[\s,]/.test(t)){let n=HN(t,e);if(n.length)return KN(n,e)}return{animationName:M_(t,e),animationDuration:fe(e.animationDuration||"A").timing,animationDelay:fe(e.animationDelay||"0s").timing,animationTimingFunction:Ae(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||KA(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:M_(t,e)}),animationDuration:t=>({animationDuration:fe(t).timing}),animationDelay:t=>({animationDelay:fe(t).timing}),animationTimingFunction:t=>({animationTimingFunction:Ae(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};$();var Zd=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!v(e))return;let[r,o]=ht(e);return{...N(t+"Start",r,n),...N(t+"End",o||r,n)}},F_={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=>Ft(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("height",e),...Et("width",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("minWidth",e),...Et("maxWidth",n||e)}},minHeight:(t,e)=>N("minHeight",t,e),maxHeight:(t,e)=>N("maxHeight",t,e),heightRange:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("minHeight",e),...Et("maxHeight",n||e)}},size:t=>{if(!v(t))return;let[e,n]=ht(t);return{...N("inlineSize",e),...N("blockSize",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("minInlineSize",e),...Et("minBlockSize",n||e)}},maxSize:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("maxInlineSize",e),...Et("maxBlockSize",n||e)}},borderWidth:(t,e)=>N("borderWidth",t,e),borderTopWidth:(t,e)=>N("borderTopWidth",t,e),borderRightWidth:(t,e)=>N("borderRightWidth",t,e),borderBottomWidth:(t,e)=>N("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>N("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>N("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>N("textUnderlineOffset",t,e),padding:(t,e)=>N("padding",t,e),paddingInline:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("paddingInlineStart",e),...Et("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("paddingBlockStart",e),...Et("paddingBlockEnd",n||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(!v(t))return;let[e,n]=ht(t);return{...Et("marginInlineStart",e),...Et("marginInlineEnd",n||e)}},marginBlock:t=>{if(!v(t))return;let[e,n]=ht(t);return{...Et("marginBlockStart",e),...Et("marginBlockEnd",n||e)}},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),scrollMargin:(t,e)=>N("scrollMargin",t,e),scrollMarginTop:(t,e)=>N("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>N("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>N("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>N("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Zd("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Zd("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>N("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>N("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>N("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>N("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>N("scrollPadding",t,e),scrollPaddingTop:(t,e)=>N("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>N("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>N("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>N("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Zd("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Zd("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>N("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>N("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>N("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>N("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Rd(t)}),columnGap:(t,e)=>Ve(e,"columnGap",t),rowGap:(t,e)=>Ve(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!v(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>In(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>In(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>In(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>In(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>In(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>In(t,e,"borderBottomRightRadius","borderBottomRightRadius")};var j_={fontSize:t=>Jc(t)||t,fontFamily:t=>({fontFamily:Zc(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 B_={overflow:t=>({overflow:t}),cursor:(t,e,n,r)=>{if(!t)return;let o=r.assets&&r.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=r.files&&r.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 V_={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:ht(t).map(n=>Ot(n,"k").k).join(" ")}},left:t=>Ot(t,"left"),top:t=>Ot(t,"top"),right:t=>Ot(t,"right"),bottom:t=>Ot(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=ht(t).map(n=>Ot(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=ht(t).map(n=>Ot(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};$();var Qd=0,Jd=()=>{Qd++},tp=()=>{Qd>0&&Qd--},Oe=({context:t,state:e})=>{let n=t?.designSystem,r=e?.root?.globalTheme||n?.globalTheme;return r&&r!=="auto"?r:Qd>0?null:n&&n.resolvedTheme||null},he=(t,e)=>{if(e==null||e==="")return;if(!E(e))return{[t]:e};let n={},r=!1;for(let o in e){let s=e[o];if(!(s==null||s==="")){if(E(s)){let i=he(t,s);i&&(n[o]=i,r=!0);continue}n[o]={[t]:s},r=!0}}return r?n:void 0},U_={theme:(t,e)=>{if(t)return e.themeModifier?Ue(t,`@${e.themeModifier}`):Ue(t)},color:(t,e)=>{let n=Oe(e);if(t)return he("color",Vt(t,n))},background:(t,e)=>{let n=Oe(e);if(t)return v(t)&&t.includes("gradient")&&t.includes("(")?{background:al(t,n)}:he("background",Vt(t,n))},backgroundColor:(t,e)=>{let n=Oe(e);if(t)return he("backgroundColor",Vt(t,n))},backgroundImage:(t,e,n,r)=>{let o=Oe(e);if(!t)return;let s=r.assets&&r.assets[t];if(s&&s.content)t=s.content.src;else{let i=r.files&&r.files[t];i&&i.content&&(t=i.content.src)}return he("backgroundImage",Od(t,o))},textStroke:t=>{let e=Cd(t);if(e!=null)return{WebkitTextStroke:e}},outline:t=>({outline:wn(t)}),outlineWidth:(t,e)=>N("outlineWidth",t,e),outlineColor:(t,e)=>{let n=Oe(e);if(t)return he("outlineColor",Vt(t,n))},outlineOffset:(t,e)=>N("outlineOffset",t,e),border:t=>({border:wn(t)}),borderColor:(t,e)=>{let n=Oe(e);if(t)return he("borderColor",Vt(t,n))},borderTopColor:(t,e)=>{let n=Oe(e);if(t)return he("borderTopColor",Vt(t,n))},borderBottomColor:(t,e)=>{let n=Oe(e);if(t)return he("borderBottomColor",Vt(t,n))},borderLeftColor:(t,e)=>{let n=Oe(e);if(t)return he("borderLeftColor",Vt(t,n))},borderRightColor:(t,e)=>{let n=Oe(e);if(t)return he("borderRightColor",Vt(t,n))},borderLeft:t=>({borderLeft:wn(t)}),borderTop:t=>({borderTop:wn(t)}),borderRight:t=>({borderRight:wn(t)}),borderBottom:t=>({borderBottom:wn(t)}),shadow:(t,e)=>{let n=Oe(e);if(t)return he("boxShadow",Td(t,n))},boxShadow:(t,e)=>{if(!v(t))return;let[n,r]=t.split("!importan"),o=Oe(e),s=r?" !important":"",i=il(n.trim(),o);return v(i)?{boxShadow:i+s}:he("boxShadow",i)},textShadow:(t,{context:e})=>he("textShadow",il(t,e.designSystem.globalTheme)),columnRule:t=>({columnRule:wn(t)})};var ml={transition:t=>{let e=Ld(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:cl(t)}),transitionDelay:t=>({transitionDelay:cl(t)}),transitionTimingFunction:t=>({transitionTimingFunction:Ae(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};$();var z_={flow:(t,e)=>{let n=e.reverse;if(!v(t))return;let[r,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(r="row"),(t.startsWith("y")||t==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!v(t))return;let[n,r]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};$();var GN=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,XA=t=>{if(!v(t))return t;let e=O().sizes;return e?t.replace(GN,(n,r,o)=>{let s=e[o];return s==null?n:r+String(s)}):t},Sn=t=>XA(Pd(t)),H_={gridTemplateColumns:t=>({gridTemplateColumns:Sn(t)}),gridTemplateRows:t=>({gridTemplateRows:Sn(t)}),gridAutoColumns:t=>({gridAutoColumns:Sn(t)}),gridAutoRows:t=>({gridAutoRows:Sn(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Sn(t)}),templateColumns:t=>({gridTemplateColumns:Sn(t)}),autoColumns:t=>({gridAutoColumns:Sn(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Sn(t)}),templateRows:t=>({gridTemplateRows:Sn(t)}),autoRows:t=>({gridAutoRows:Sn(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var _t={...N_,...F_,...j_,...B_,...V_,...U_,...ml,...z_,...H_};var Rt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","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","fill","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","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);$();var YN=/^-?[A-Z][0-9]?$/,XN=/^[a-z][0-9]?$/,ZA=/var\(\s*(--[A-Za-z0-9-]+)/g,W_=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let r in t){let o=t[r];if(!(!o||typeof o!="object")){if(o.sequence&&typeof o.sequence=="object")for(let s in o.sequence)e.add(s);if(o.vars&&typeof o.vars=="object")for(let s in o.vars)n.add(s)}}return{knownLetters:e,knownVars:n}},ZN=(t,e)=>{if(!e.size)return[];let n=t.split(/[(),\s]+/).filter(Boolean),r=new Set;for(let o of n){if(!YN.test(o))continue;let s=o.charCodeAt(0)===45?o.slice(1):o;e.has(s)&&r.add(o)}return[...r]},QN=(t,e)=>{if(!e.size)return[];let n=[];ZA.lastIndex=0;let r;for(;r=ZA.exec(t);){let o=r[1];if(e.has(o))continue;let s=o.lastIndexOf("-");if(s===-1)continue;let i=o.slice(s+1);if(!XN.test(i))continue;let a=o.slice(0,s+1)+i.toUpperCase();a!==o&&e.has(a)&&n.push({varName:o,corrected:a})}return n},ep=new Set,QA=(t,e,n)=>{if(!tt()||!v(e)||!e)return;let r;try{r=O()}catch{return}let{knownLetters:o,knownVars:s}=W_(r);if(!o.size&&!s.size)return;let i=ZN(e,o),a=QN(e,s);if(!i.length&&!a.length)return;let c=n?.__ref?.path?n.__ref.path.join("."):n?.key||"?";for(let l of i){let f=`${c}::${t}::bare::${l}::${e}`;ep.has(f)||(ep.add(f),console.warn(`[smbls/css-in-props] "${t}" on <${c}> looks like it contains an un-wrapped design-system token ("${l}") \u2014 "${t}" has no registered resolver, so its value is forwarded to the browser untouched. A bare letter token there is invalid CSS, so the browser drops the ENTIRE "${t}" declaration (not just this argument). Wrap it in var(--<family>-${l.replace("-","")}) (or calc(-1 * var(--<family>-${l.replace("-","")})) for a negative). Value: "${e}"`))}for(let{varName:l,corrected:f}of a){let u=`${c}::${t}::case::${l}::${e}`;ep.has(u)||(ep.add(u),console.warn(`[smbls/css-in-props] "${t}" on <${c}> references ${l}, which the active design system never emits. CSS custom-property names are case-sensitive \u2014 the real variable is ${f}, so this reference silently never resolves. Value: "${e}"`))}};$();var JN=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,tF=(t,e,n)=>{let{context:r}=n;if(!r.designSystem?.media)return;let o=t.slice(1),s=r.designSystem.media[o],i=ge(e,n);if(!s)return{[t]:i};if(/^@(media|supports|container)\b/.test(s))return{[s]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(JN),c=a?a[1]||a[2]:o,l={[`${s} &`]:i};if(c==="dark"||c==="light"){let f=r.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;l[`@media (prefers-color-scheme: ${c})`]={[`${u} &`]:i}}return l},JA=(t,e,n)=>({[t]:ge(e,n)}),yl=(t,e,n)=>{let r=`&${t}`,o=ge(e,n);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=r.split(",").map(l=>l.trim()),c={};Object.keys(s).length&&(c[r]=s);for(let l in i){let f=a.map(u=>`${u} ${l}`).join(", ");c[f]=i[l]}return c}}return{[r]:o}},q_=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return R(n)?n.call(e,e):!!n},eF=(t,e,n)=>{let r=t.slice(1),o=q_(r,n);if(o===void 0&&(o=!!n[r]),!!o)return ge(e,n)},nF=(t,e,n)=>({[t]:e}),rF=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=q_(r,n);s!==void 0&&(o=s)}if(o)return ge(e,n)},oF=(t,e,n)=>{let r=t.slice(1),o=n[r]===!0||n.state?.[r];if(!o)if(typeof n[r]=="function")try{o=n[r](n,n.state,n.context)}catch{}else{let s=q_(r,n);s!==void 0&&(o=s)}if(!o)return ge(e,n)},K_=(t,e)=>ge(t,e),G_={"@":tF,":":yl,"[":yl,"*":yl,"+":yl,"~":yl,"&":JA,">":JA,$:eF,"-":nF,".":rF,"!":oF};var np=ir(),tC=(t,e,n)=>{let r=e?.context?.designSystem;r&&J(r);try{let o={},s={},i=(a,c)=>{if(n.unpack){o={...o,...c};return}o[a]=c};for(let a in t){let c=t[a];if(c!==null)if(a==="class"&&v(c)){let l=eC(c,e);l&&(n.unpack?xt(o,l):o.designSystemClass=l)}else if(a==="true"){let l=pt(c,e);xt(o,K_(l,e))}else if(e.classlist?.[a]){let l=e.classlist[a],f=R(l)?l(e,e.state,e.context):l;f&&i(a,f),!np&&E(o[a])&&(o[a].label=a)}else if(_t[a]){let l=pt(c,e);if(l===null)continue;I(l)&&(l=l.reduce((u,d)=>xt(u,d),{}));let f=_t[a](l,e,e.state,e.context);I(f)&&(f=f.reduce((u,d)=>xt(u,d),{})),f&&i(a,f),!np&&E(o[a])&&(o[a].label=a)}else if(Rt.has(a)){let l=pt(c,e);if(l===null)continue;typeof l=="string"&&l.charCodeAt(0)===45&&l.charCodeAt(1)===45&&(l=`var(${l})`),np||QA(a,l,e),i(a,{[a]:l}),!np&&E(o[a])&&(o[a].label=a)}else s[a]=c}return[o,s]}finally{r&&X()}},eC=(t,e)=>{if(!v(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let r;for(let o of t.split(" ")){if(!o)continue;let s=n[o];if(!E(s))continue;let i=ut(s);r=r?Jt(r,i):i}if(r)return ge(r,e)},nC=(t,e)=>{let n={};for(let r in t){let o=G_[r.slice(0,1)];if(o){let s=o(r,t[r],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]&&typeof n[i]=="object"&&typeof s[i]=="object"?Jt(n[i],s[i]):n[i]=s[i])}}return n},ge=(t,e,n={unpack:!0})=>{let[r,o]=tC(t,e,n),s=nC(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(n.unpack)return ka(r,s);r._selectors=s}return r},sF=(t,e)=>{let n={};if(t.class)for(let r in t.class)n[r]=t.class[r](e);return n};$();var rC=t=>{if(E(t))return ge(t,t)},iF=(t,e)=>{let n=rC(t);return typeof e=="function"?e(n):Te(n)};$();var aF=/^-?[A-Z][0-9]?$/,iC=/[(),\s]+/,oC=/\s*!important\s*$/,cF=t=>t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),lF=()=>{let t;try{t=O()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,r=s=>{if(!e)return!1;let i=s.charCodeAt(0)===45?s.slice(1):s;return i?e[s]!==void 0||e[i]!==void 0||e[i.toLowerCase()]!==void 0:!1},o=s=>aF.test(s)?(n||(n=W_(t).knownLetters),n.has(s.charCodeAt(0)===45?s.slice(1):s)):!1;return{isToken:s=>o(s)||r(s)}},fF=(t,e)=>{let n=null,r=t.split(iC);for(let o=0;o<r.length;o++){let s=r[o];!s||s.charCodeAt(0)===35||e.isToken(s)&&(n||(n=[])).push(s)}return n},uF=(t,e)=>{let n=String(t).split(iC);for(let r=0;r<n.length;r++)if(n[r]===e)return!0;return!1},dF=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(cF(t),e)}catch{return!1}},sC=new Set,pF=(t,e,n)=>{if(!tt())return;let r=t?.__ref?.path?t.__ref.path.join("."):t?.key||"?",o=r+"::"+e+"::"+n;sC.has(o)||(sC.add(o),console.warn(`[smbls/css-in-props] style.${e} on <${r}> holds a design-system token the "${e}" transformer could not resolve to one inline value, so it is written as is and the browser drops it. Move the key out of \`style\` to the element itself, or write the resolved CSS. Value: "${n}"`))},hF=(t,e,n,r)=>{if(!v(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let o=_t[t];if(!o||!Rt.has(t))return null;let s=oC.test(e),i=s?e.replace(oC,""):e,a=fF(i,r);if(!a||dF(t,i))return null;let c;try{c=o(i,n,n?.state,n?.context)}catch{c=null}if(Array.isArray(c)){let u={};for(let d of c)d&&typeof d=="object"&&Object.assign(u,d);c=u}let l=!!c&&typeof c=="object";if(l){let u=!1;for(let d in c){let p=c[d];if(p!=null){if(typeof p=="object"||typeof p=="function"){l=!1;break}for(let g of a)if(uF(p,g)){l=!1;break}if(!l)break;u=!0}}u||(l=!1)}if(!l)return pF(n,t,e),null;let f={};for(let u in c){let d=c[u];d!=null&&(f[u]=s?String(d)+" !important":d)}return f},aC=(t,e,n)=>{let r=null,o=0;for(let s in t){let i=t[s],a=null,c=null;if(s.charCodeAt(0)===38&&i&&typeof i=="object"&&!Array.isArray(i)){let l=aC(i,e,n);l!==i&&(c=l)}else a=hF(s,i,e,n);if((a||c)&&!r){r={};let l=0;for(let f in t){if(l++===o)break;r[f]=t[f]}}r&&(c?r[s]=c:a?Object.assign(r,a):r[s]=i),o++}return r||t},Y_=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:aC(t,e,lF());$();$();function Q_(t,e,n){let r=t?.context?.analyze;if(!r||!r.emit||e==="warn"&&!r.shouldCapture("warnings")||e==="error"&&!r.shouldCapture("errors"))return;let o=n.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");r.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:n})}var cC=new Set;function lC(t,e,n){let r=String(e);if(cC.has(r))return;cC.add(r);let o=t?.__ref?.path,s=Array.isArray(o)&&o.length?o.join("."):t?.key!=null?String(t.key):"(unknown element)",i=n!=null?`resolves to a non-function (${typeof n}) \u2014 it cannot be called`:"is not registered in context.methods, context.functions, or context.utils, and is not an element method",a=`[smbls] el.call('${r}') at <${s}>: "${r}" ${i}. Returning undefined (unchanged behavior) \u2014 check the name for typos or register the function on the project. Warned once per name; repeat misses are silent.`;Q_(t,"error",[a]),console.error(a)}var uC=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),gF=new Set,dC=t=>uC(X_,t)&&!(ls||gF).has(t),fC=new Set;function pC(t,e){fC.has(t)||(fC.add(t),tt()&&console.warn(`[smbls] ${e}: context.methods.${t} is named like a built-in element method and is not the app's own override (it was not on the element prototype when it was built) \u2014 ignored; the built-in keeps winning. Declare an intentional override in the app's OWN methods.`))}function mF(...t){return Q_(this,"warn",t),lc.apply(this,t)}function yF(...t){return Q_(this,"error",t),eo.apply(this,t)}var X_={update:li,remove:ui,getDB:pc,getQuery:hc,getRootData:ic,getPath:nc,nextElement:fc,previousElement:uc,verbose:ks,warn:mF,error:yF,variables:dc,spotByPath:ec,set(t,e){let n=this.__ref;if(n){if(n.__setLocked){n.__setQueued={content:t,options:e};return}n.__setLocked=!0}try{if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(n){n.__setLocked=!1;let r=n.__setQueued;r&&(n.__setQueued=null,this.set(r.content,r.options))}}},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),e(o,n,r,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 n of e.__children){let r=this[n];if(!r)continue;if(typeof t=="function"){if(t(r))return r}else if(typeof t=="string"&&r.key===t)return r;let o=r.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let r of n.__children){let o=this[r];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(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getRoot:sc,getRootState:oc,getRootContext:ac,getContext:cc,parse(t){let e={},n=t?new Set(t):null,r=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!n?.has(o)){if(r&&r[o]!==void 0){e[o]=r[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(e[r]=this[r].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];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 n=t[e];if(n==null)continue;let r=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(t,...e){let n=this.context,r=dC(t);r&&n?.methods?.[t]&&n.methods[t]!==this[t]&&pC(t,"el.call");let o=r?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof o=="function"){let s=Gr;if(!s||!s(o))return o.call(this,...e);tt()&&lC(this,t,we(o));return}tt()&&lC(this,t,o)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},Z_=new WeakMap;function bF(t){if(!t)return X_;let e=Z_.get(t);if(e)return e;e=Object.create(X_);let n=t.methods;if(n)for(let r in n)e[r]=n[r];return Z_.set(t,e),e}function di(t){let e=bF(t.context);Object.setPrototypeOf(t,e)}function pi(t){if(!t)return!1;let e=Z_.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let r in n){if(dC(r)&&!uC(e,r)){pC(r,"refreshContextProto");continue}e[r]=n[r]}return!0}var rp=[],op=!1,Cr=0;function sp(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function hC(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof MessageChannel=="function"){let n=new MessageChannel;n.port1.onmessage=()=>{n.port1.close(),t()},n.port2.postMessage(0);return}setTimeout(t,0)}function J_(){return Cr?sp()-Cr>=50:!1}var hi=0;function tw(){hi===0&&!Cr&&(Cr=sp()),hi++}function ew(){hi>0&&hi--,hi===0&&!op&&(Cr=0)}function nw(t){rp.push(t),op||(op=!0,hC(gC))}function gC(){for(Cr=sp();rp.length;){let t=rp.shift();try{t()}catch(e){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",e?.message||e)}if(sp()-Cr>=50)break}if(rp.length){hC(gC);return}op=!1,Cr=0,hi=0}$();$();cr();var aw={};F(aw,{STATE_METHODS:()=>mC,applyInitialState:()=>ip,applyStateMethods:()=>Re,callStateMethod:()=>_l,createState:()=>ow,isTracking:()=>iw,useHostState:()=>sw});qt();qt();var mC=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"]),bl=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},on=(t,e,n,{onlyIfAbsent:r}={})=>{bl(t,"$"+e,n),!(r&&Object.prototype.hasOwnProperty.call(t,e))&&bl(t,e,n)},_l=(t,e,...n)=>{if(!t)return;let r=t["$"+e];if(typeof r=="function")return r.apply(t,n);let o=t[e];if(typeof o=="function")return o.apply(t,n)},Re=(t,e)=>{if(St(e)){let o=e.__raw||e;on(o,"toggle",function(s,i={}){e[s]=!e[s]},{onlyIfAbsent:!0}),on(o,"set",function(s,i={}){let a=e.__element;return typeof s=="object"&&s!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!i.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:s,options:i})===!1||(e.$clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.$update(s,{...i,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),on(o,"setByPath",function(s,i,a={}){let c=s.split("."),l=e;for(let f=0;f<c.length-1;f++)l[c[f]]===void 0&&(l[c[f]]={}),l=l[c[f]];return l[c[c.length-1]]=i,e}),on(o,"getByPath",function(s){let i=s.split("."),a=e;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a}),on(o,"removeByPath",function(s,i={}){let a=s.split("."),c=e;for(let l=0;l<a.length-1;l++){if(c==null)return e;c=c[a[l]]}return c&&delete c[a[a.length-1]],e}),on(o,"reset",function(s={}){let i=e.$parse();return e.$set(i,s)}),on(o,"apply",function(s,i={}){if(typeof s=="function"){let a=s(e);return e.$update(a,i)}}),on(o,"applyFunction",function(s,i={}){if(typeof s=="function")return s(e),e.$update(e.$parse(),i)}),on(o,"rootUpdate",function(s,i={}){let a=e;for(;a?.parent&&St(a.parent);)a=a.parent;return _l(a,"update",s,i)}),on(o,"parentUpdate",function(s,i={}){if(e.parent)return _l(e.parent,"update",s,i)}),on(o,"quietReplace",function(s,i={}){return e.$replace(s,{quiet:!0,...i})}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=St(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,St(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},r={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;n();for(let s in o)e[s]=o[s];return e},replace(o){return e.$set(o)},clean(){return n(),e}};bl(e,"$settled",function(){return Mf().then(()=>e)});for(let o in r)if(bl(e,"$"+o,r[o]),typeof e[o]!="function"){if(Object.prototype.hasOwnProperty.call(e,o)){Ff(o,"");continue}bl(e,o,r[o])}};var ow=function(t,e,n){return t.state=ip(t,e,n),t.state},ip=function(t,e,n){let{__ref:r}=t,o=t.state;if(o==null||o===!1){let s=e?.state||{};return Re(t,s),s}if(typeof o=="string")return r&&(r.__state=o),r.__stateType="string",_F(o,t,e);if(typeof o=="number"||typeof o=="boolean"){r&&(r.__state=o,r.__stateType=typeof o,r.__hasRootState=!0);let s=xn({value:o});return s.__element=t,e?.state&&(s.parent=e.state),Re(t,s),s}if(typeof o=="function"&&(o=o(t,e?.state)||{}),typeof o=="object"&&!St(o)){r&&(r.__hasRootState=!0),o.isRootState&&r&&(r.__hasRootState=!0);let s=xn({...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)),Re(t,s),typeof t.onStateCreated=="function"&&t.onStateCreated(t,s,t.context,n),s}return St(o)?(o.__element=t,o):e?.state||{}};function rw(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function _F(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let o=t.slice(3),s=n.state?.parent;return o&&s?rw(s,o):s??n.state??{}}if(t.startsWith("~/")){let o=n.state;for(;o?.parent;)o=o.parent;let s=t.slice(2);return s?rw(o,s):o??{}}let r=rw(n.state,t);if(r&&typeof r=="object"&&!St(r)&&!Object.getOwnPropertyDescriptor(r,"root")){let o=n.state?.root||n.state;Object.defineProperty(r,"root",{get:()=>o,enumerable:!1,configurable:!0})}return r}qt();var sw=(t,e)=>{if(!t)return bC;let n=SF(t,e);return!n||!n.state?bC:kF(n.state)},iw=()=>_e()!=null,wF=128;function SF(t,e){let n=typeof e=="function"?e:typeof e=="string"?s=>!!s?.[e]:s=>!!s?.state,r=t,o=null;for(let s=0;s<wF&&r;s++){if(n(r)&&r.state)return r;if(r.state&&!o&&(o=r),!r.parent||r.parent===r)break;r=r.parent}return o}var xF={get(t,e){return t[e]}},yC=new WeakMap,kF=t=>{let e=yC.get(t);return e||(e=new Proxy(t,xF),yC.set(t,e)),e},bC=new Proxy(Object.create(null),{get(){},has(){return!1}});var ap="3.14.801";var _C="__SMBLS_ELEMENT_ID_ENGINE__",wC=(t,e,n)=>{let r=e||ap,o=n||(typeof globalThis<"u"?globalThis:null);if(!o)return t;let s=o[_C];return s&&s.engine&&s.version===r?s.engine:(s||(o[_C]={version:r,engine:t}),t)};if(!yt||!ze)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var SC=yt,wl=ze,cw=ll||(()=>!1);var vF=new Set(["rows","cols","wrap","fill","stroke"]),cp=(t,e)=>vF.has(e)&&He(t,e),Tr=(t,e)=>!!(_t[e]||Rt&&Rt.has(e))&&!cp(t,e);var WC=wC({uniqId:1,scopedStyleId:0},ap),xl=[],Co=new Set,Ew=!1,qC=0,_i=null,Ol=null;function wi(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function KC(){return typeof document<"u"&&document.visibilityState==="hidden"}var EF=250,AF=1e3;function CF(){return Ol&&(Ol!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||KC())?!0:wi()-qC>=AF}function TF(){if(Ew=!0,qC=wi(),Ol=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(vl,0);_i=t?()=>t(e):null;return}if(KC()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(vl,EF);_i=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Ol=requestAnimationFrame;let e=requestAnimationFrame(vl);_i=t?()=>t(e):null}}function dp(){if(Ew){if(!CF())return;let t=_i;if(_i=null,t)try{t()}catch{}}TF()}var GC=300,YC=15e4;function vl(){if(Ew=!1,_i=null,Ol=null,Co.size&&yj(),!xl.length)return;let t=xl.splice(0,xl.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let r=n.__ref||(n.__ref={});r.__mountAttempts=(r.__mountAttempts||0)+1,r.__mountFirstAttemptAt==null&&(r.__mountFirstAttemptAt=wi());let o=wi()-r.__mountFirstAttemptAt;r.__mountAttempts<=GC&&o<YC?(xl.push(n),dp()):console.warn("[DOMQL] onMounted dropped after",r.__mountAttempts,"attempts /",o,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&CA(n),typeof n.onMounted=="function"&&Ht("Mounted",n,n.__ref?.__mountOptions||{})}}}function gw(t,e){let n=t.__ref?.__autoGrow;n&&n.active&&Pl(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,xl.push(t),dp())}function xC(t,e){if(typeof t.onContentUpdate!="function")return;t.context?.plugins?.length&&Ct("contentUpdate",t,e);let n=t.context?.designSystem;n&&J(n);try{t.onContentUpdate(t,t.state,t.context,e)}catch(r){if(t.context?.plugins?.length&&Ct("error",t,{hook:"onContentUpdate",error:r})||console.error('[DOMQL] Lifecycle "onContentUpdate" error:',r),t.context?.strictMode)throw r}finally{n&&X()}}function Un(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function OF(t){return t.charAt(2).toLowerCase()+t.slice(3)}function RF(t){return t.toLowerCase()}function mw(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function kl(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=kl(o,s):n[r]=s}return n}function lp(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function XC(t,e,n){return lp(t)||(e&&typeof e=="object"?lp(e.key):void 0)||String(n)}function ee(t,e,n,r={},o){let s=_e();if(s){Xt(null);try{return ee(t,e,n,r,o)}finally{Xt(s)}}if(t==null||t===!1)return null;let i=WF(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=lp(n);let a=lp(t.key),c=Object.create(null);c.key=n||a||`_${WC.uniqId++}`,c.parent=e||null,c.context=t.context||e?.context||r.context||{},c.context.__create||(c.context.__create=ee);let l=c.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||c,path:e?.__ref?.path?[...e.__ref.path,c.key]:[c.key],origin:t};i&&(l.__runtimeSource=i);let f=t;if(t=ZC(c,t,n,a,e,r),c.if!=null){let d;if(typeof c.if=="function")try{d=c.if(c,c.state,c.context)}catch(p){if(d=!1,l.__ifError=p,typeof console<"u"&&console.warn){let g=c.key||c.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${g} \u2014 treating as false:`,p?.message||p)}}else d=c.if;l.__if=!!d}if(l.__if)typeof c.if=="function"&&(l.__ifInitialized=!0);else{e&&(e[c.key]=c);let d=DF(t,n,c.context?.components);return d.length&&(l.__ifLateMerge={definition:f,key:n,ownKey:a,names:d,options:r}),typeof c.if=="function"&&n1(c,l,c.if),c}c.tag||(c.tag=Fn(c)),Ht("Init",c,r);let u=c.node=Wd(c)||vr(c);if(!u)return c;if(c.tag==="fragment"){let p=(c.context?.document||globalThis.document).createComment("");u.appendChild(p),l.__fragmentAnchor=p}Ht("AttachNode",c,r),u.setAttribute&&c.key&&u.setAttribute("data-key",c.key),e&&(e[c.key]=c,e.__ref?.__children&&(e.__ref.__children.includes(c.key)||e.__ref.__children.push(c.key))),u.setAttribute&&c.context?.scopeSelector&&c.context.scopeSelector!==":root"&&c.context.key&&c.key===c.context.key&&u.setAttribute("data-smbls-app",c.context.key),c.id&&u.setAttribute&&(u.id=c.id),m1(c,r),e1(c),_w(c),d1(c),Sw(c),h1(c),Aj(c);try{y1(c,r)}catch(d){if(typeof console<"u"&&console.error){let p=c.__ref?.path?.join(".")||c.key||"<root>";console.error(`[smbls] createChildren failed at ${p}:`,d?.message||d,d?.stack?`
57
57
  `+d.stack.split(`
58
58
  `).slice(0,6).join(`
59
- `):"")}}if(fp(c,!0),g1(c,e,o),typeof c.html=="function"&&c.node&&!c.node.innerHTML){let d=c.context?.designSystem;d&&J(d);try{let p=c.html(c,c.state,c.context);p!=null&&typeof p!="function"&&(c.node.innerHTML=p)}catch{}finally{d&&X()}}if(Ht("Create",c,r),Ht("Complete",c,r),Ht("Render",c,r),Ht("RenderRouter",c,r),pw(c,r),typeof c.onFrame=="function"){let d=c.onFrame,p=c.context?.designSystem,g=()=>{if(c.node){if(c.node.isConnected){p&&J(p);try{d(c,c.state,c.context)}catch(h){console.error("[DOMQL] onFrame error:",h)}finally{p&&X()}}requestAnimationFrame(g)}};requestAnimationFrame(g)}return c}function GC(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let y=n.indexOf("_"),S=n.indexOf("."),b=y>0?y:-1;if(S>0&&(b<0||S<b)&&(b=S),b>0){let x=n.substring(0,b),_=t.context?.components;_&&(_[x]||_["smbls."+x])?e={...e,extends:x}:_&&tt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),si(t,e,s);let i=C_(t),a=i?i.rank:0,c=new Set(["childProps","attr","style","scope","data","vars"]),l=t.props&&typeof t.props=="object"?t.props:null;for(let y in e){if(y==="parent"||y==="node"||y==="__ref"||y==="extends"||y==="context"||y==="props")continue;if(y==="key"){r&&(t.key=r);continue}let S=e[y];i&&i.set(y,a);let b=t[y],x=b&&S&&typeof b=="object"&&typeof S=="object"&&!Array.isArray(b)&&!Array.isArray(S)&&typeof b!="function"&&typeof S!="function";x&&y.charCodeAt(0)>=65&&y.charCodeAt(0)<=90?t[y]=xl(b,S):x&&c.has(y)?t[y]={...b,...S}:x&&hw(y)?t[y]=xl(b,S):t[y]=S}function f(y){for(let S in y){let b=y[S],x=t[S],_=x&&b&&typeof x=="object"&&typeof b=="object"&&!Array.isArray(x)&&!Array.isArray(b)&&typeof x!="function"&&typeof b!="function";_&&S.charCodeAt(0)>=65&&S.charCodeAt(0)<=90?t[S]=xl(x,b):_&&c.has(S)?t[S]={...x,...b}:_&&hw(S)?t[S]=xl(x,b):t[S]=b}}if(l&&f(l),e.props&&typeof e.props=="object"&&(f(e.props),i))for(let y in e.props)i.set(y,a);e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let u=t.scope&&typeof t.scope=="object"?t.scope:null,d=o?.scope,p=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,g=d||p||null;if(e.scope!==void 0||u){let y={};u&&Object.assign(y,u),e.scope!==void 0&&Object.assign(y,e.scope),t.scope=Mf(y,g)}else g&&(t.scope=g);e.if!==void 0&&(t.if=e.if);let h=t.__ref,m=zF(t,h&&h.__runtimeSource);return h&&(h.__declaredArrays=m||void 0),fi(t),PF(t,o,e,s),e}var TF=new Set(["key","parent","context","__ref"]);function OF(t,e){for(let o of Object.keys(t))TF.has(o)||delete t[o];let n=_e();n&&Xt(null);let r=e.definition;if(!r.extends&&!r.extend&&typeof e.key=="string"){let o=t.context?.components||{},s=o[e.key]||o["smbls."+e.key];s&&(r={...r,extends:s})}try{GC(t,r,e.key,e.ownKey,t.parent,e.options)}finally{n&&Xt(n)}}function RF(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function aw(t,e,n){if(typeof t.onStateInit!="function"&&!t.context?.plugins?.length)return;let r=t.state;t.state=e;try{Ht("StateInit",t,n)}finally{t.state=r}}function PF(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!St(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Re(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,S)=>{p.has(y)||Jr(u,y,l)&&(l[y]=S,p.add(y),gn(u,y,S))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(f.languages||[]);for(let y in f.translations)m.has(y)||g(y,f.translations[y])}St(l)||aw(t,l,r),t.state=St(l)?l:xn(l),t.state.__element=t,t.state.root=t.state,Re(t,t.state),xs?.(c,t.state),Ht("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Re(t,t.state);return}if(typeof a=="string"){if(t.state=YC(a,e),t.state&&typeof t.state=="object"&&!St(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Re(t,t.state),Ht("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(St(c))t.state=c;else{let l=c||{};aw(t,l,r),t.state=xn(l)}}else if(St(a))t.state=a;else{let c={...a};aw(t,c,r),t.state=xn(c)}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Re(t,t.state),xs?.(a,t.state),Ht("StateCreated",t,r)}function cw(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function YC(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?cw(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?cw(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=cw(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}var LF=new Set(["s","state","ctx","context"]);function DF(t){try{let n=(typeof we=="function"?we(t):Function.prototype.toString.call(t)).match(/^[^(]*\(([^)]*)\)/);return n?n[1].split(",").map(r=>r.trim().split("=")[0].trim()).filter(Boolean):[]}catch{return[]}}var IF=3,$F=/^(is|has)[A-Z0-9_$]/,MF=new Set(["routerOptions"]),wC=new WeakSet;function NF(t,e){if(typeof t!="function"||t.length!==2||e&&($F.test(e)||MF.has(e))||wC.has(t))return!1;let n=DF(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<IF||LF.has(r)?!1:(wC.add(t),!0)}function FF(t){let e=t.__ref,n=t.tag||"div",r=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"||Ut.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Un(a)||_t[a]||Rt&&Rt.has(a)||c!==45&&(ze(n,a)||(tt()&&NF(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),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(){r&&J(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&X()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function jF(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function It(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return jF(t,e),n.apply(this,r)}}function pi(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function ct(t,e){return()=>t.path.join(".")+"::"+e}var SC=new Set;function zt(t,e,n){if(!tt())return;let r=ct(t,e)();SC.has(r)||(SC.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var xC=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,BF=(t,e)=>{let n;try{n=String(t)}catch{return}if(!n.includes("{{"))return;xC.lastIndex=0;let r;for(;(r=xC.exec(n))!==null;)r[2].includes("{{")&&e.add(r[2])},VF=(t,e)=>!Un(t)&&!Tr(e,t),lw=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&VF(t,r)&&BF(e,n)},gw=new WeakMap,Ol=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),vl=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Ro(t,e):t},El=(t,e)=>t&&e?Ro(t,e):t||e||null,XC=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Ol(n,e)},hi=(t,e)=>XC(t,e)?vl(t.__ref.__runtimeSource[e]):null,Al=(t,e)=>(e&&t&&typeof t=="object"&&gw.set(t,e),t),UF=t=>{if(!t||typeof t!="object")return;let e=gw.get(t);return e&&gw.delete(t),e},mw=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)mw(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&mw(o.value,e,n)}}},zF=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Ut.has(r)||e&&Ol(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;mw(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},kC=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},ZC=["attr","aria","data","metadata"],HF=t=>{if(ZC.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},WF=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&Ol(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!HF(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||Ol(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&ZC.includes(u)){for(let g in p)lw(g,p[g],n,r,d);continue}lw(u,p,n,r,d)}continue}lw(o,i,n,r,a)}return n};function QC(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=WF(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(FF(t),typeof t.text=="function"){let c=t.text,l=It(t,t.textDeps,c),f=K(()=>{if(!n.contentManaged)try{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&typeof u!="object"&&(typeof u=="string"&&u.includes("{{")&&(u=Bt.call(t,u,t.state)),ci(t,u))}catch(u){zt(n,"text",u)}},{depth:n.path.length,label:ct(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=K(()=>{if(n.contentManaged)return;let f=Bt.call(t,c,t.state);f!=null&&(t.text=f),t.node&&ci(t,f??"")},{depth:n.path.length,label:ct(n,"text")});n.__effects.push(l),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Ut.has(c)&&!Un(c)&&!n.__exec[c]&&!ap(s,c)){if(_t[c]){let l=t[c],f=It(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=K(()=>{let y=t.context?.designSystem;y&&J(y);try{let S=f(t,t.state,t.context);Qd();let b;try{b=_t[u](S,t,t.state,t.context)}finally{Jd()}if(Array.isArray(b)){let _={};for(let w of b)if(w)for(let k in w)_[k]=w[k];b=_}let x=u==="show"||u==="hide";if(b&&t.node&&qF(b)){let _=Cl(b);if(_===null||_!==h){h=_;let w=Te(b,null,t.context?.cssPrefix),k=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(k&&k.length)for(let A of k)t.node.classList.add(A);g=k}}d=void 0,p=null}else if(b&&t.node){if(g){for(let w of g)t.node.classList.remove(w);g=null,h=void 0}let _=Cl(b);if(_===null||_!==d||!mi(t.node,p)){d=_;let w=AC(t,b);p=gi(t.node,w)}}else t.node&&x&&(d=void 0,p=null,t.node.style.display="")}finally{y&&X()}},{depth:n.path.length,label:ct(n,u)});n.__effects.push(m),n.__exec[c]=l}else if(Rt&&Rt.has(c)){let l=t[c],f=It(t,t[c+"Deps"],l),u=c,d,p=null,g=K(()=>{let h=t.context?.designSystem;h&&J(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!mi(t.node,p)){d=y;let S={[u]:m},b=AC(t,S);p=gi(t.node,b)}}else d=void 0,p=null,t.node.style[u]=""}finally{h&&X()}},{depth:n.path.length,label:ct(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];n1(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(KF(t),typeof t.html=="function"){let c=t.html,l=It(t,t.htmlDeps,c),f=K(()=>{let u=t.context?.designSystem;u&&J(u);try{let d=l(t,t.state,t.context);t.node&&d!=null&&typeof d!="function"&&(t.node.innerHTML=d)}finally{u&&X()}},{depth:n.path.length,label:ct(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=It(t,t.valueDeps,c),f=K(()=>{try{let u=l(t,t.state,t.context);typeof u=="string"&&u.includes("{{")&&(u=Bt.call(t,u,t.state)),EC(t,u)}catch(u){zt(n,"value",u)}},{depth:n.path.length,label:ct(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=K(()=>{try{EC(t,Bt.call(t,c,t.state))}catch(f){zt(n,"value",f)}},{depth:n.path.length,label:ct(n,"value")});n.__effects.push(l),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=It(t,t.styleDeps,c),f,u=null,d=K(()=>{let p=hl(t,l(t,t.state,t.context)),g=Cl(p);(g===null||g!==f||!mi(t.node,u))&&(f=g,lp(t.node,u,p),Hn(t.node,p),u=gi(t.node,p))},{depth:n.path.length,label:ct(n,"style")});n.__effects.push(d),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=It(t,pi(t.styleDeps,c),l),u,d=null,p=K(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!mi(t.node,d)){u=h;let m=hl(t,{[c]:g});lp(t.node,d,Object.assign({},m,{[c]:""})),Hn(t.node,m),d=gi(t.node,m)}}}catch(g){zt(n,"style."+c,g)}},{depth:n.path.length,label:ct(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=It(t,pi(t.attrDeps,c),t.attr[c]),f=c,u=K(()=>{try{let d=l(t,t.state,t.context);typeof d=="string"&&d.includes("{{")&&(d=Bt.call(t,d,t.state)),t.node?.setAttribute&&(d==null||d===!1&&!nn(f)?t.node.removeAttribute(f):typeof d!="function"&&typeof d!="object"&&t.node.setAttribute(f,te(f,d)))}catch(d){zt(n,"attr."+f,d)}},{depth:n.path.length,label:ct(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=K(()=>{try{let d=Bt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,te(f,d??""))}catch(d){zt(n,"attr."+f,d)}},{depth:n.path.length,label:ct(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let p=l,g="aria-"+c.replace(/[A-Z]/g,m=>"-"+m.toLowerCase()),h=K(()=>{try{let m=Bt.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,te(g,m??""))}catch(m){zt(n,"aria."+c,m)}},{depth:n.path.length,label:ct(n,"aria."+c)});h._attrName=g,n.__effects.push(h);continue}if(typeof l!="function")continue;let f=It(t,pi(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,p=>"-"+p.toLowerCase()),d=K(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;p==null?t.node.removeAttribute(u):typeof p!="function"&&typeof p!="object"&&t.node.setAttribute(u,te(u,p))}catch(p){zt(n,"aria."+c,p)}},{depth:n.path.length,label:ct(n,"aria."+c)});d._attrName=u,n.__effects.push(d)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="data-"+c.replace(/[A-Z]/g,y=>"-"+y.toLowerCase()),m=K(()=>{try{let y=Bt.call(t,g,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,y??"")}catch(y){zt(n,"data."+c,y)}},{depth:n.path.length,label:ct(n,"data."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let f=It(t,pi(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),p=K(()=>{try{let g=f(t,t.state,t.context);if(!t.node?.setAttribute)return;g==null||g===!1?t.node.removeAttribute(d):typeof g!="function"&&typeof g!="object"&&t.node.setAttribute(d,g===!0?"":g)}catch(g){zt(n,"data."+c,g)}},{depth:n.path.length,label:ct(n,"data."+c)});p._attrName=d,n.__effects.push(p)}let i=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(i)for(let c in i){if(typeof i[c]!="function")continue;let l=It(t,pi(t.classDeps,c),i[c]),f=K(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){zt(n,"class."+c,u)}},{depth:n.path.length,label:ct(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&JC(t,n,t.if);for(let c of Object.keys(t)){if(Ut.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Un(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(ze(u,c)&&!Tr(u,c)){let d=jn(c)||c,p=It(t,t[c+"Deps"],f),g=K(()=>{try{let h=p(t,t.state,t.context);typeof h=="string"&&h.includes("{{")&&(h=Bt.call(t,h,t.state)),t.node?.setAttribute&&(h==null||h===!1&&!nn(d)?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&(d==="src"&&"src"in t.node?t.node.src=h:t.node.setAttribute(d,te(d,h))))}catch(h){zt(n,c,h)}},{depth:n.path.length,label:ct(n,c)});g._attrName=d.toLowerCase(),n.__effects.push(g)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Ut.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Un(c)||Tr(a,c)||Ao[c]||!ze(a,c))continue;let u=jn(c)||c,d=K(()=>{try{let p=Bt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,te(u,p??""))}catch(p){zt(n,c,p)}},{depth:n.path.length,label:ct(n,c)});d._attrName=u.toLowerCase(),n.__effects.push(d)}if(tj(t),lj(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=K(()=>{let p=[];for(let y=0;y<l.length;y++){let S=l[y];try{p[y]=typeof S=="function"?S(t,t.state,t.context):t.state?.[S]}catch{p[y]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let y=0;!g&&y<p.length;y++)p[y]!==u[y]&&(g=!0);let h=u;if(u=p,!g)return;let m=t.context?.designSystem;m&&J(m);try{c(t,t.state,t.context,{prev:h,next:p})}catch(y){if(t.context?.plugins?.length&&Ct("error",t,{hook:"onStateUpdate",error:y})||console.error('[DOMQL] Lifecycle "onStateUpdate" error:',y),t.context?.strictMode)throw y}finally{m&&X()}},{depth:n.path.length,label:ct(n,"onStateUpdate")});n.__effects.push(d)}oj(t)}function vC(t){let e=t.parent,n=e?.node;if(!n||!t.node){g1(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===n){r=a.node;break}}r?n.insertBefore(t.node,r):n.appendChild(t.node)}function JC(t,e,n){let r=It(t,t.ifDeps,n),o=K(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,OF(t,s),r=It(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=vr(t)),t.node&&(t.node.ref=t),vC(t),yw(t),_w(t),Ht("Render",t,{}),pw(t,{});else{if(e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Fn(t)),Ht("Init",t,{}),t.node||(t.node=vr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let l=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(l),e.__fragmentAnchor=l}Ht("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),p1(t,{}),QC(t,{skipIfEffect:!0}),yw(t),l1(t),_w(t),u1(t),h1(t,{}),vC(t),Ht("Create",t,{}),Ht("Complete",t,{}),Ht("Render",t,{}),Ht("RenderRouter",t,{}),pw(t,{})}},{depth:e.path.length,label:ct(e,"if")});e.__effects.push(o)}function ci(t,e){let n=t.node;if(!n)return;let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function EC(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=typeof document<"u"&&document.activeElement===n,s=o&&typeof n.selectionStart=="number"?n.selectionStart:null,i=o&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,o&&s!=null&&i!=null)try{n.setSelectionRange(s,i)}catch{}let a=t.__ref&&t.__ref.__autoGrow;a&&a.active&&a.resize()}function yw(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&ci(t,t.text),c1(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}Hn(e,hl(t,n))}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!nn(n)||e.setAttribute&&e.setAttribute(n,te(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function Cl(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function qF(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function gi(t,e){if(!t||!t.style||!e)return null;let n=t.style,r=[];for(let o in e){if(e[o]==null||o.charAt(0)==="&")continue;let i=zn(o);r.push(i,vw(n,i),t1(n,i))}return r}function vw(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function t1(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function zn(t){return To(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function lp(t,e,n){if(!t||!t.style||!e||!e.length)return;let r=t.style,o=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||o.add(zn(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||vw(r,i)===e[s+1]&&typeof r.removeProperty=="function"&&r.removeProperty(i)}}function mi(t,e){if(!e||!t||!t.style)return!1;let n=t.style;for(let r=0;r<e.length;r+=3)if(vw(n,e[r])!==e[r+1]||t1(n,e[r])!==e[r+2])return!1;return!0}var To=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,e1=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",dp=t=>To(t)?t:"--"+t;function pp(t,e){if(!Or(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}e1(o)&&(n||(n={}),n[dp(r)]=o)}return n}function n1(t,e,n,r,o){let s=t.__ref,i=It(t,r,n),a,c=null,l=K(()=>{let f=t.context?.designSystem;f&&J(f);try{let u=i(t,t.state,t.context),d=t.node;if(!d||!d.style)return;if(!e1(u)){lp(d,c,null),a=void 0,c=null;return}let p=String(u);if(p!==a||!mi(d,c)){a=p;let g={[e]:u};Hn(d,g),c=gi(d,g)}}catch(u){zt(s,o,u)}finally{f&&X()}},{depth:s.path.length,label:ct(s,o)});s.__effects.push(l)}function KF(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){GF(t,n),e.__exec.vars=n;return}if(Or(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||n1(t,dp(r),o,pi(t.varsDeps,r),"vars."+r)}}function GF(t,e){let n=t.__ref,r=It(t,t.varsDeps,e),o,s=null,i=K(()=>{let a=t.context?.designSystem;a&&J(a);try{let c=pp(r(t,t.state,t.context)),l=t.node;if(!l||!l.style)return;let f=Cl(c);(f===null||f!==o||!mi(l,s))&&(o=f,lp(l,s,c),c&&Hn(l,c),s=c?gi(l,c):null,n.__varsInline=c?new Set(Object.keys(c)):null)}catch(c){zt(n,"vars",c)}finally{a&&X()}},{depth:n.path.length,label:ct(n,"vars")});n.__effects.push(i)}function bw(t,e){if(typeof t[e]=="function"&&(Tr(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!To(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Or(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&dp(r)===e)return!0;return!1}function YF(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(zn(n)));return e}function XF(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=zn(i);_l[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function r1(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=_l[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function AC(t,e){let n=t.node;Hn(n,e);let r=YF(e);if(!r)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of r)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(r);let s=r1(t,r);return s?(Hn(n,s),Object.assign({},e,s)):e}function ZF(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=r1(t,e.__inlineCssKeys);n&&Hn(t.node,n)}function hl(t,e){if(!e||typeof e!="object")return e;let n=t&&t.context&&t.context.designSystem;n&&J(n);try{return K_(e,t)}catch{return e}finally{n&&X()}}function Hn(t,e){if(!t||!e||!t.style)return;let n=null;for(let r in e){let o=e[r];if(o!=null){if(r.charAt(0)==="&"&&typeof o=="object"){n||(n={}),n[r]=o;continue}try{let s=String(o),i=To(r)?r:r.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{}}}n&&QF(t,n)}function QF(t,e){let n=`_ds${UC.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,c=i.replace(/&/g,a).split(",").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),h="";for(let m in p)h+=`${zn(m)}: ${p[m]};`;u+=Nn(`${g} { ${h} }`,g)+`
59
+ `):"")}}if(up(c,!0),b1(c,e,o),typeof c.html=="function"&&c.node&&!c.node.innerHTML){let d=c.context?.designSystem;d&&J(d);try{let p=c.html(c,c.state,c.context);p!=null&&typeof p!="function"&&(c.node.innerHTML=p)}catch{}finally{d&&X()}}if(Ht("Create",c,r),Ht("Complete",c,r),Ht("Render",c,r),Ht("RenderRouter",c,r),gw(c,r),typeof c.onFrame=="function"){let d=c.onFrame,p=c.context?.designSystem,g=()=>{if(c.node){if(c.node.isConnected){p&&J(p);try{d(c,c.state,c.context)}catch(h){console.error("[DOMQL] onFrame error:",h)}finally{p&&X()}}requestAnimationFrame(g)}};requestAnimationFrame(g)}return c}function ZC(t,e,n,r,o,s){if(n&&!e.extends&&!e.extend){let y=n.indexOf("_"),S=n.indexOf("."),b=y>0?y:-1;if(S>0&&(b<0||S<b)&&(b=S),b>0){let x=n.substring(0,b),_=t.context?.components;_&&(_[x]||_["smbls."+x])?e={...e,extends:x}:_&&tt()&&(/^[A-Z]\w*_\d+$/.test(n)||/^[A-Z]\w*\.\w+$/.test(n))&&console.warn(`[smbls] auto-extend: key "${n}" looks like an instance of "${x}" but neither "${x}" nor "smbls.${x}" is registered in context.components \u2014 element will render as a plain <div>. Register the base component or rename the key.`)}}t.__ref&&(t.__ref.__mergeLayer=null),ai(t,e,s);let i=O_(t),a=i?i.rank:0,c=new Set(["childProps","attr","style","scope","data","vars"]),l=t.props&&typeof t.props=="object"?t.props:null;for(let y in e){if(y==="parent"||y==="node"||y==="__ref"||y==="extends"||y==="context"||y==="props")continue;if(y==="key"){r&&(t.key=r);continue}let S=e[y];i&&i.set(y,a);let b=t[y],x=b&&S&&typeof b=="object"&&typeof S=="object"&&!Array.isArray(b)&&!Array.isArray(S)&&typeof b!="function"&&typeof S!="function";x&&y.charCodeAt(0)>=65&&y.charCodeAt(0)<=90?t[y]=kl(b,S):x&&c.has(y)?t[y]={...b,...S}:x&&mw(y)?t[y]=kl(b,S):t[y]=S}function f(y){for(let S in y){let b=y[S],x=t[S],_=x&&b&&typeof x=="object"&&typeof b=="object"&&!Array.isArray(x)&&!Array.isArray(b)&&typeof x!="function"&&typeof b!="function";_&&S.charCodeAt(0)>=65&&S.charCodeAt(0)<=90?t[S]=kl(x,b):_&&c.has(S)?t[S]={...x,...b}:_&&mw(S)?t[S]=kl(x,b):t[S]=b}}if(l&&f(l),e.props&&typeof e.props=="object"&&(f(e.props),i))for(let y in e.props)i.set(y,a);e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let u=t.scope&&typeof t.scope=="object"?t.scope:null,d=o?.scope,p=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,g=d||p||null;if(e.scope!==void 0||u){let y={};u&&Object.assign(y,u),e.scope!==void 0&&Object.assign(y,e.scope),t.scope=Nf(y,g)}else g&&(t.scope=g);e.if!==void 0&&(t.if=e.if);let h=t.__ref,m=qF(t,h&&h.__runtimeSource);return h&&(h.__declaredArrays=m||void 0),di(t),IF(t,o,e,s),e}var PF=new Set(["key","parent","context","__ref"]);function LF(t,e){for(let o of Object.keys(t))PF.has(o)||delete t[o];let n=_e();n&&Xt(null);let r=e.definition;if(!r.extends&&!r.extend&&typeof e.key=="string"){let o=t.context?.components||{},s=o[e.key]||o["smbls."+e.key];s&&(r={...r,extends:s})}try{ZC(t,r,e.key,e.ownKey,t.parent,e.options)}finally{n&&Xt(n)}}function DF(t,e,n){let r=n||{},o=a=>!!(r[a]||r["smbls."+a]),s=[],i=[];if(t.extends&&i.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&i.push(...Array.isArray(t.extend)?t.extend:[t.extend]),i.length){for(let a of i){if(typeof a!="string")continue;let c=a.includes(">")?a.split(">")[0].trim():a;o(c)||s.push(c)}return s}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,c=e.indexOf("_"),l=e.indexOf(".");c>0&&(a=c),l>0&&(a<0||l<a)&&(a=l);let f=a>0?e.substring(0,a):e;o(f)||s.push(f)}return s}function lw(t,e,n){if(typeof t.onStateInit!="function"&&!t.context?.plugins?.length)return;let r=t.state;t.state=e;try{Ht("StateInit",t,n)}finally{t.state=r}}function IF(t,e,n,r){let o=!e,s=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,i=o&&s&&t.context?.state,a=n.state!==void 0&&!i?n.state:t.state&&!St(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Re(t,t.state);else if(t.context?.state){let c=t.context.state,l={...c},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=c.lang||f.defaultLang||"en",p=new Set,g=(y,S)=>{p.has(y)||Jr(u,y,l)&&(l[y]=S,p.add(y),mn(u,y,S))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let m=new Set(f.languages||[]);for(let y in f.translations)m.has(y)||g(y,f.translations[y])}St(l)||lw(t,l,r),t.state=St(l)?l:xn(l),t.state.__element=t,t.state.root=t.state,Re(t,t.state),xs?.(c,t.state),Ht("StateCreated",t,r)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Re(t,t.state);return}if(typeof a=="string"){if(t.state=QC(a,e),t.state&&typeof t.state=="object"&&!St(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}Re(t,t.state),Ht("StateCreated",t,r);return}if(typeof a=="function"){let c=a(t,e?.state);if(St(c))t.state=c;else{let l=c||{};lw(t,l,r),t.state=xn(l)}}else if(St(a))t.state=a;else{let c={...a};lw(t,c,r),t.state=xn(c)}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Re(t,t.state),xs?.(a,t.state),Ht("StateCreated",t,r)}function fw(t,e){if(!e)return t;let n=e.split("/"),r=t;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function QC(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?fw(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?fw(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=fw(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let r=e.context?.polyglot;if(r?.translations){let o=e.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[t]!==void 0)return s[t];if(r.translations[t]!==void 0)return r.translations[t]}return{}}var $F=new Set(["s","state","ctx","context"]);function MF(t){try{let n=(typeof we=="function"?we(t):Function.prototype.toString.call(t)).match(/^[^(]*\(([^)]*)\)/);return n?n[1].split(",").map(r=>r.trim().split("=")[0].trim()).filter(Boolean):[]}catch{return[]}}var NF=3,FF=/^(is|has)[A-Z0-9_$]/,jF=new Set(["routerOptions"]),kC=new WeakSet;function BF(t,e){if(typeof t!="function"||t.length!==2||e&&(FF.test(e)||jF.has(e))||kC.has(t))return!1;let n=MF(t);if(n.length<2)return!1;let r=n[1].replace(/[{}[\]]/g,"").trim();return r.length<NF||$F.has(r)?!1:(kC.add(t),!0)}function VF(t){let e=t.__ref,n=t.tag||"div",r=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"||Ut.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||Un(a)||_t[a]||Rt&&Rt.has(a)||c!==45&&(He(n,a)||(tt()&&BF(t[a],a)&&console.warn(`[smbls] custom prop "${a}"${t.key?` on key "${t.key}"`:""} is a function \u2014 it will be auto-invoked on read and its RETURN VALUE stored, not preserved as a callable reference. If you meant to stash a callback, use el.call('${a}', \u2026) instead of reading el.${a}(\u2026) directly (see RULES.md Rule 8).`),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(){r&&J(r);try{return c(t,t.state,t.context)}catch{return}finally{r&&X()}},set(l){delete e.__exec[a],Object.defineProperty(t,a,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function UF(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let r=e[n];try{typeof r=="function"?r(t,t.state,t.context):typeof r=="string"&&t.state?.[r]}catch{}}}function It(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...r){return UF(t,e),n.apply(this,r)}}function gi(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function ct(t,e){return()=>t.path.join(".")+"::"+e}var vC=new Set;function zt(t,e,n){if(!tt())return;let r=ct(t,e)();vC.has(r)||(vC.add(r),console.warn(`[smbls] "${e}" effect threw on ${t.path.join(".")} \u2014 keeping previous value:`,n?.message||n))}var EC=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,zF=(t,e)=>{let n;try{n=String(t)}catch{return}if(!n.includes("{{"))return;EC.lastIndex=0;let r;for(;(r=EC.exec(n))!==null;)r[2].includes("{{")&&e.add(r[2])},HF=(t,e)=>!Un(t)&&!Tr(e,t),uw=(t,e,n,r,o)=>{if(typeof e=="string"){!o&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&HF(t,r)&&zF(e,n)},yw=new WeakMap,Rl=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),El=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Ro(t,e):t},Al=(t,e)=>t&&e?Ro(t,e):t||e||null,JC=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Rl(n,e)},mi=(t,e)=>JC(t,e)?El(t.__ref.__runtimeSource[e]):null,Cl=(t,e)=>(e&&t&&typeof t=="object"&&yw.set(t,e),t),WF=t=>{if(!t||typeof t!="object")return;let e=yw.get(t);return e&&yw.delete(t),e},bw=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let r=0;r<t.length;r++)bw(t[r],e,n);return}if(!t.__ref)for(let r of Object.keys(t)){if(r==="state")continue;let o=Object.getOwnPropertyDescriptor(t,r);o&&"value"in o&&bw(o.value,e,n)}}},qF=(t,e)=>{let n=null;for(let r of Object.keys(t)){if(Ut.has(r)||e&&Rl(e,r))continue;let o=Object.getOwnPropertyDescriptor(t,r),s=o&&o.value;if(!Array.isArray(s))continue;let i=new Set;bw(s,i,new Set),i.size&&(n||(n=new Map),n.set(s,i))}return n},AC=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let r=n.__ref&&n.__ref.__declaredArrays,o=r&&r.get(e);if(!o)continue;let s=t.__ref;s.__authoredTemplates||(s.__authoredTemplates=new Set);for(let i of o)s.__authoredTemplates.add(i);return}},t1=["attr","aria","data","metadata"],KF=t=>{if(t1.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},GF=(t,e)=>{let n=new Set,r=t.tag||"div";for(let o of Object.keys(t)){let s=Object.getOwnPropertyDescriptor(t,o),i=s&&s.value,a=!!e&&Rl(e,o);if(i&&typeof i=="object"&&!Array.isArray(i)){if(!KF(o))continue;let c=a?e[o]:null,l=c&&typeof c=="object"?c:null,f=o.charCodeAt(0)===46||o.charCodeAt(0)===33;for(let u in i){let d=a&&(!l||Rl(l,u)),p=i[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&t1.includes(u)){for(let g in p)uw(g,p[g],n,r,d);continue}uw(u,p,n,r,d)}continue}uw(o,i,n,r,a)}return n};function e1(t,e){let n=t.__ref,r=!!(e&&e.skipIfEffect),o=GF(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of o)n.__authoredTemplates.add(c);else n.__authoredTemplates=o;if(VF(t),typeof t.text=="function"){let c=t.text,l=It(t,t.textDeps,c),f=K(()=>{if(!n.contentManaged)try{let u=l(t,t.state,t.context);t.node&&u!=null&&typeof u!="function"&&typeof u!="object"&&(typeof u=="string"&&u.includes("{{")&&(u=Bt.call(t,u,t.state)),fi(t,u))}catch(u){zt(n,"text",u)}},{depth:n.path.length,label:ct(n,"text")});n.__effects.push(f),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,l=K(()=>{if(n.contentManaged)return;let f=Bt.call(t,c,t.state);f!=null&&(t.text=f),t.node&&fi(t,f??"")},{depth:n.path.length,label:ct(n,"text")});n.__effects.push(l),n.__exec.text=c}let s=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!Ut.has(c)&&!Un(c)&&!n.__exec[c]&&!cp(s,c)){if(_t[c]){let l=t[c],f=It(t,t[c+"Deps"],l),u=c,d,p=null,g=null,h,m=K(()=>{let y=t.context?.designSystem;y&&J(y);try{let S=f(t,t.state,t.context);Jd();let b;try{b=_t[u](S,t,t.state,t.context)}finally{tp()}if(Array.isArray(b)){let _={};for(let w of b)if(w)for(let k in w)_[k]=w[k];b=_}let x=u==="show"||u==="hide";if(b&&t.node&&YF(b)){let _=Tl(b);if(_===null||_!==h){h=_;let w=Te(b,null,t.context?.cssPrefix),k=w?w.split(" ").filter(Boolean):null;if(t.node.classList){if(g)for(let A of g)t.node.classList.remove(A);if(k&&k.length)for(let A of k)t.node.classList.add(A);g=k}}d=void 0,p=null}else if(b&&t.node){if(g){for(let w of g)t.node.classList.remove(w);g=null,h=void 0}let _=Tl(b);if(_===null||_!==d||!bi(t.node,p)){d=_;let w=OC(t,b);p=yi(t.node,w)}}else t.node&&x&&(d=void 0,p=null,t.node.style.display="")}finally{y&&X()}},{depth:n.path.length,label:ct(n,u)});n.__effects.push(m),n.__exec[c]=l}else if(Rt&&Rt.has(c)){let l=t[c],f=It(t,t[c+"Deps"],l),u=c,d,p=null,g=K(()=>{let h=t.context?.designSystem;h&&J(h);try{let m=f(t,t.state,t.context);if(t.node)if(m!=null){let y=u+":"+String(m);if(y!==d||!bi(t.node,p)){d=y;let S={[u]:m},b=OC(t,S);p=yi(t.node,b)}}else d=void 0,p=null,t.node.style[u]=""}finally{h&&X()}},{depth:n.path.length,label:ct(n,u)});n.__effects.push(g),n.__exec[c]=l}else if(c.charCodeAt(0)===45){let l=t[c];s1(t,c,l,t[c+"Deps"],c),n.__exec[c]=l}}if(XF(t),typeof t.html=="function"){let c=t.html,l=It(t,t.htmlDeps,c),f=K(()=>{let u=t.context?.designSystem;u&&J(u);try{let d=l(t,t.state,t.context);t.node&&d!=null&&typeof d!="function"&&(t.node.innerHTML=d)}finally{u&&X()}},{depth:n.path.length,label:ct(n,"html")});n.__effects.push(f),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,l=It(t,t.valueDeps,c),f=K(()=>{try{let u=l(t,t.state,t.context);typeof u=="string"&&u.includes("{{")&&(u=Bt.call(t,u,t.state)),TC(t,u)}catch(u){zt(n,"value",u)}},{depth:n.path.length,label:ct(n,"value")});n.__effects.push(f),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,l=K(()=>{try{TC(t,Bt.call(t,c,t.state))}catch(f){zt(n,"value",f)}},{depth:n.path.length,label:ct(n,"value")});n.__effects.push(l),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,l=It(t,t.styleDeps,c),f,u=null,d=K(()=>{let p=gl(t,l(t,t.state,t.context)),g=Tl(p);(g===null||g!==f||!bi(t.node,u))&&(f=g,fp(t.node,u,p),Hn(t.node,p),u=yi(t.node,p))},{depth:n.path.length,label:ct(n,"style")});n.__effects.push(d),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let l=t.style[c];if(typeof l!="function")continue;let f=It(t,gi(t.styleDeps,c),l),u,d=null,p=K(()=>{try{let g=f(t,t.state,t.context);if(t.node){let h=c+":"+String(g);if(h!==u||!bi(t.node,d)){u=h;let m=gl(t,{[c]:g});fp(t.node,d,Object.assign({},m,{[c]:""})),Hn(t.node,m),d=yi(t.node,m)}}}catch(g){zt(n,"style."+c,g)}},{depth:n.path.length,label:ct(n,"style."+c)});n.__effects.push(p)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let l=It(t,gi(t.attrDeps,c),t.attr[c]),f=c,u=K(()=>{try{let d=l(t,t.state,t.context);typeof d=="string"&&d.includes("{{")&&(d=Bt.call(t,d,t.state)),t.node?.setAttribute&&(d==null||d===!1&&!rn(f)?t.node.removeAttribute(f):typeof d!="function"&&typeof d!="object"&&t.node.setAttribute(f,te(f,d)))}catch(d){zt(n,"attr."+f,d)}},{depth:n.path.length,label:ct(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let l=t.attr[c],f=c,u=K(()=>{try{let d=Bt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(f,te(f,d??""))}catch(d){zt(n,"attr."+f,d)}},{depth:n.path.length,label:ct(n,"attr."+f)});u._attrName=f.toLowerCase(),n.__effects.push(u)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let l=t.aria[c];if(typeof l=="string"&&l.includes("{{")){let p=l,g="aria-"+c.replace(/[A-Z]/g,m=>"-"+m.toLowerCase()),h=K(()=>{try{let m=Bt.call(t,p,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(g,te(g,m??""))}catch(m){zt(n,"aria."+c,m)}},{depth:n.path.length,label:ct(n,"aria."+c)});h._attrName=g,n.__effects.push(h);continue}if(typeof l!="function")continue;let f=It(t,gi(t.ariaDeps,c),t.aria[c]),u="aria-"+c.replace(/[A-Z]/g,p=>"-"+p.toLowerCase()),d=K(()=>{try{let p=f(t,t.state,t.context);if(!t.node?.setAttribute)return;p==null?t.node.removeAttribute(u):typeof p!="function"&&typeof p!="object"&&t.node.setAttribute(u,te(u,p))}catch(p){zt(n,"aria."+c,p)}},{depth:n.path.length,label:ct(n,"aria."+c)});d._attrName=u,n.__effects.push(d)}if(t.data&&typeof t.data=="object")for(let c in t.data){let l=t.data[c];if(typeof l=="string"&&l.includes("{{")){let g=l,h="data-"+c.replace(/[A-Z]/g,y=>"-"+y.toLowerCase()),m=K(()=>{try{let y=Bt.call(t,g,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(h,y??"")}catch(y){zt(n,"data."+c,y)}},{depth:n.path.length,label:ct(n,"data."+c)});m._attrName=h,n.__effects.push(m);continue}if(typeof l!="function")continue;let f=It(t,gi(t.dataDeps,c),t.data[c]),d="data-"+c.replace(/[A-Z]/g,g=>"-"+g.toLowerCase()),p=K(()=>{try{let g=f(t,t.state,t.context);if(!t.node?.setAttribute)return;g==null||g===!1?t.node.removeAttribute(d):typeof g!="function"&&typeof g!="object"&&t.node.setAttribute(d,g===!0?"":g)}catch(g){zt(n,"data."+c,g)}},{depth:n.path.length,label:ct(n,"data."+c)});p._attrName=d,n.__effects.push(p)}let i=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(i)for(let c in i){if(typeof i[c]!="function")continue;let l=It(t,gi(t.classDeps,c),i[c]),f=K(()=>{try{let u=l(t,t.state,t.context);if(!t.node?.classList)return;typeof u=="string"?t.node.classList.add(u):u?t.node.classList.add(c):t.node.classList.remove(c)}catch(u){zt(n,"class."+c,u)}},{depth:n.path.length,label:ct(n,"class."+c)});n.__effects.push(f)}!r&&typeof t.if=="function"&&n1(t,n,t.if);for(let c of Object.keys(t)){if(Ut.has(c)||typeof t[c]!="function")continue;let l=c.charCodeAt(0);if(l>=65&&l<=90||Un(c))continue;let f=t[c];n.__exec[c]=f;let u=t.tag||"div";if(He(u,c)&&!Tr(u,c)){let d=jn(c)||c,p=It(t,t[c+"Deps"],f),g=K(()=>{try{let h=p(t,t.state,t.context);typeof h=="string"&&h.includes("{{")&&(h=Bt.call(t,h,t.state)),t.node?.setAttribute&&(h==null||h===!1&&!rn(d)?t.node.removeAttribute(d):typeof h!="function"&&typeof h!="object"&&(d==="src"&&"src"in t.node?t.node.src=h:t.node.setAttribute(d,te(d,h))))}catch(h){zt(n,c,h)}},{depth:n.path.length,label:ct(n,c)});g._attrName=d.toLowerCase(),n.__effects.push(g)}}let a=t.tag||"div";for(let c of Object.keys(t)){if(Ut.has(c))continue;let l=t[c];if(typeof l!="string"||!l.includes("{{"))continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Un(c)||Tr(a,c)||Ao[c]||!He(a,c))continue;let u=jn(c)||c,d=K(()=>{try{let p=Bt.call(t,l,t.state);if(!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,te(u,p??""))}catch(p){zt(n,c,p)}},{depth:n.path.length,label:ct(n,c)});d._attrName=u.toLowerCase(),n.__effects.push(d)}if(rj(t),dj(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,l=t.stateDeps,f=!1,u=[],d=K(()=>{let p=[];for(let y=0;y<l.length;y++){let S=l[y];try{p[y]=typeof S=="function"?S(t,t.state,t.context):t.state?.[S]}catch{p[y]=void 0}}if(!f){f=!0,u=p;return}let g=p.length!==u.length;for(let y=0;!g&&y<p.length;y++)p[y]!==u[y]&&(g=!0);let h=u;if(u=p,!g)return;let m=t.context?.designSystem;m&&J(m);try{c(t,t.state,t.context,{prev:h,next:p})}catch(y){if(t.context?.plugins?.length&&Ct("error",t,{hook:"onStateUpdate",error:y})||console.error('[DOMQL] Lifecycle "onStateUpdate" error:',y),t.context?.strictMode)throw y}finally{m&&X()}},{depth:n.path.length,label:ct(n,"onStateUpdate")});n.__effects.push(d)}aj(t)}function CC(t){let e=t.parent,n=e?.node;if(!n||!t.node){b1(t,t.parent);return}let r=null,o=Object.keys(e),s=o.indexOf(t.key);for(let i=s+1;i<o.length;i++){let a=e[o[i]];if(a?.node?.parentNode===n){r=a.node;break}}r?n.insertBefore(t.node,r):n.appendChild(t.node)}function n1(t,e,n){let r=It(t,t.ifDeps,n),o=K(()=>{let s=!e.__ifInitialized&&e.__ifLateMerge;if(s){let c=t.context?.components||{};s.names.some(l=>c[l]||c["smbls."+l])&&(e.__ifLateMerge=null,LF(t,s),r=It(t,t.ifDeps,typeof t.if=="function"?t.if:n))}let i;try{i=r(t,t.state,t.context)}catch(c){if(i=!1,e.__ifError=c,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;if(e.__if=!!i,a&&!e.__if&&t.node){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=vr(t)),t.node&&(t.node.ref=t),CC(t),_w(t),Sw(t),Ht("Render",t,{}),gw(t,{});else{if(e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=Fn(t)),Ht("Init",t,{}),t.node||(t.node=vr(t)),!t.node)return;if(t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let l=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(l),e.__fragmentAnchor=l}Ht("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),m1(t,{}),e1(t,{skipIfEffect:!0}),_w(t),d1(t),Sw(t),h1(t),y1(t,{}),CC(t),Ht("Create",t,{}),Ht("Complete",t,{}),Ht("Render",t,{}),Ht("RenderRouter",t,{}),gw(t,{})}},{depth:e.path.length,label:ct(e,"if")});e.__effects.push(o)}function fi(t,e){let n=t.node;if(!n)return;let r=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==r&&(n.nodeValue=r);return}let o=t.__ref,s=o?o.__textNode:null;if(s&&s.parentNode!==n&&(s=null),!s){let i=n.firstChild;i&&i.nodeType===3&&(s=i)}s?s.nodeValue!==r&&(s.nodeValue=r):n.firstChild?(s=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(r),n.insertBefore(s,n.firstChild)):(n.textContent=r,s=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),o&&(o.__textNode=s||null)}function TC(t,e){let n=t.node;if(!n||!("value"in n))return;let r=e==null?"":String(e);if(n.value===r)return;let o=typeof document<"u"&&document.activeElement===n,s=o&&typeof n.selectionStart=="number"?n.selectionStart:null,i=o&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=r,o&&s!=null&&i!=null)try{n.setSelectionRange(s,i)}catch{}let a=t.__ref&&t.__ref.__autoGrow;a&&a.active&&a.resize()}function _w(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&fi(t,t.text),u1(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let r in t.style)if(typeof t.style[r]=="function"){n={};for(let o in t.style)typeof t.style[o]!="function"&&(n[o]=t.style[o]);break}Hn(e,gl(t,n))}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let r=t.attr[n];typeof r=="function"||typeof r=="object"||r!=null&&(typeof r=="string"&&r.includes("{{")||r===!1&&!rn(n)||e.setAttribute&&e.setAttribute(n,te(n,r)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let r=t.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||typeof r=="string"&&r.includes("{{")||e.dataset&&(e.dataset[n]=r===!0?"":r)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&e.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](t,t.state,t.context):n[r];o&&e.classList.add(typeof o=="string"?o:r)}}}}function Tl(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function YF(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function yi(t,e){if(!t||!t.style||!e)return null;let n=t.style,r=[];for(let o in e){if(e[o]==null||o.charAt(0)==="&")continue;let i=zn(o);r.push(i,Aw(n,i),r1(n,i))}return r}function Aw(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function r1(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function zn(t){return To(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function fp(t,e,n){if(!t||!t.style||!e||!e.length)return;let r=t.style,o=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||o.add(zn(s));for(let s=0;s<e.length;s+=3){let i=e[s];o.has(i)||Aw(r,i)===e[s+1]&&typeof r.removeProperty=="function"&&r.removeProperty(i)}}function bi(t,e){if(!e||!t||!t.style)return!1;let n=t.style;for(let r=0;r<e.length;r+=3)if(Aw(n,e[r])!==e[r+1]||r1(n,e[r])!==e[r+2])return!1;return!0}var To=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,o1=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",pp=t=>To(t)?t:"--"+t;function hp(t,e){if(!Or(t))return null;let n=null;for(let r of Object.keys(t)){if(!r)continue;let o=t[r];if(typeof o=="function"){if(!e)continue;o=o(e,e.state,e.context)}o1(o)&&(n||(n={}),n[pp(r)]=o)}return n}function s1(t,e,n,r,o){let s=t.__ref,i=It(t,r,n),a,c=null,l=K(()=>{let f=t.context?.designSystem;f&&J(f);try{let u=i(t,t.state,t.context),d=t.node;if(!d||!d.style)return;if(!o1(u)){fp(d,c,null),a=void 0,c=null;return}let p=String(u);if(p!==a||!bi(d,c)){a=p;let g={[e]:u};Hn(d,g),c=yi(d,g)}}catch(u){zt(s,o,u)}finally{f&&X()}},{depth:s.path.length,label:ct(s,o)});s.__effects.push(l)}function XF(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){ZF(t,n),e.__exec.vars=n;return}if(Or(n))for(let r of Object.keys(n)){let o=n[r];!r||typeof o!="function"||s1(t,pp(r),o,gi(t.varsDeps,r),"vars."+r)}}function ZF(t,e){let n=t.__ref,r=It(t,t.varsDeps,e),o,s=null,i=K(()=>{let a=t.context?.designSystem;a&&J(a);try{let c=hp(r(t,t.state,t.context)),l=t.node;if(!l||!l.style)return;let f=Tl(c);(f===null||f!==o||!bi(l,s))&&(o=f,fp(l,s,c),c&&Hn(l,c),s=c?yi(l,c):null,n.__varsInline=c?new Set(Object.keys(c)):null)}catch(c){zt(n,"vars",c)}finally{a&&X()}},{depth:n.path.length,label:ct(n,"vars")});n.__effects.push(i)}function ww(t,e){if(typeof t[e]=="function"&&(Tr(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!To(e))return!1;let n=t.vars;if(typeof n=="function"){let r=t.__ref&&t.__ref.__varsInline;return!!(r&&r.has(e))}if(!Or(n))return!1;for(let r of Object.keys(n))if(typeof n[r]=="function"&&pp(r)===e)return!0;return!1}function QF(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(zn(n)));return e}function JF(t,e,n,r){let o=t.__ref;if(!o)return;let s=null;if(n)for(let i of n){if(r&&r.has(i))continue;let a=e[i];if(a==null||typeof a=="object")continue;let c=zn(i);wl[c]&&(s||(s={}),s[c]=a)}o.__declaredLonghands=s}function i1(t,e){let n=t.__ref,r=n&&n.__declaredLonghands;if(!r||!e)return null;let o=null;for(let s in r){if(e.has(s))continue;let i=wl[s],a=!1;for(let c=0;c<i.length;c++)if(e.has(i[c])){a=!0;break}a&&(o||(o={}),o[s]=r[s])}return o}function OC(t,e){let n=t.node;Hn(n,e);let r=QF(e);if(!r)return e;let o=t.__ref;if(o)if(o.__inlineCssKeys)for(let i of r)o.__inlineCssKeys.add(i);else o.__inlineCssKeys=new Set(r);let s=i1(t,r);return s?(Hn(n,s),Object.assign({},e,s)):e}function tj(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=i1(t,e.__inlineCssKeys);n&&Hn(t.node,n)}function gl(t,e){if(!e||typeof e!="object")return e;let n=t&&t.context&&t.context.designSystem;n&&J(n);try{return Y_(e,t)}catch{return e}finally{n&&X()}}function Hn(t,e){if(!t||!e||!t.style)return;let n=null;for(let r in e){let o=e[r];if(o!=null){if(r.charAt(0)==="&"&&typeof o=="object"){n||(n={}),n[r]=o;continue}try{let s=String(o),i=To(r)?r:r.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{}}}n&&ej(t,n)}function ej(t,e){let n=`_ds${WC.scopedStyleId++}`;t.classList.add(n);let r=t.ownerDocument,o=r.querySelector("style[data-smbls-scoped]");o||(o=r.createElement("style"),o.setAttribute("data-smbls-scoped",""),r.head.appendChild(o));let s="";for(let i in e){let a="."+n,c=i.replace(/&/g,a).split(",").map(f=>{let u=f.trim();return u.includes(a)?u:a+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let d in l){let p=l[d];if(typeof p=="object"){let g=d.includes("&")?c.split(", ").map(m=>d.replace(/&/g,m)).join(", "):c.split(", ").map(m=>`${m} ${d}`).join(", "),h="";for(let m in p)h+=`${zn(m)}: ${p[m]};`;u+=Nn(`${g} { ${h} }`,g)+`
60
60
  `}else f+=`${zn(d)}: ${p};`}f&&(s+=Nn(`${c} { ${f} }`,c)+`
61
- `),u&&(s+=u)}}s&&(o.textContent+=s)}var CC=new Set;function TC(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function JF(t,e,n){let r=TC(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(TC(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";CC.has(s)||(CC.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(o)?o.join(", "):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element create.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function tj(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&tt()&&JF(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=K(()=>{let d=t.state&&(St(t.state)?t.state.root:null);if(!d||!St(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(St(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"){let h=t.context?.designSystem;h&&J(h);try{if(D_(o)){let m=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});m&&typeof m.then=="function"?m.then(()=>Bn(o,!1),y=>{Bn(o,!0),t.context?.plugins?.length&&Ct("error",t,{hook:"onBeforeUpdate",error:y})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",y)}):(Bn(o,!1),m===!1&&(g=!0))}}catch(m){Bn(o,!0),t.context?.plugins?.length&&Ct("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}finally{h&&X()}}if(!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}if(!g&&typeof t.onUpdate=="function"){let h=t.context?.designSystem;h&&J(h);try{t.onUpdate(t,t.state,t.context)}catch(m){t.context?.plugins?.length&&Ct("error",t,{hook:"onUpdate",error:m})||console.error("[DOMQL] subscribeTo onUpdate error:",m)}finally{h&&X()}}},{depth:o.path.length,label:ct(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function Ew(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function Aw(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];return n?/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`:t}var OC=new Set;function ej(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;OC.has(r)||(OC.add(r),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var RC=new Map;function nj(t){let e=RC.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(o.replace(/-([a-z])/g,(s,i)=>i.toUpperCase()))};return n(_l[t]),n(bC[t]),RC.set(t,e),e}function PC(t,e,n){if(bw(t,e)||n&&n.has(e))return!0;let r=nj(zn(e));for(let o=0;o<r.length;o++){let s=r[o];if(bw(t,s)||n&&n.has(s))return!0}return!1}function _i(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(_t[a]){let u=_t[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,PC(e,u,r))}continue}if(a==="vars"){let u=pp(c,e);if(u)for(let d in u)i(d,u[d],bw(e,d)||!!(r&&r.has(d)));continue}if(Ew(a,e)){let u=_i(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){tt()&&ej(a,e);continue}let l=Aw(a,e),f=_i(c,e,!1,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,PC(e,a,r))}}if(n)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c=="string"&&!c.includes("!important")&&(o[a]=c+" !important")}return o}var Or=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function o1(t,e){for(let n in e){let r=e[n];t[n]=Or(r)?o1(Or(t[n])?t[n]:{},r):r}return t}function rj(t,e){if(!Or(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Or(o)&&(n=o1(n||{},o))}return n}function Cw(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Cw(t[n],e+1))return!0}return!1}function s1(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Ew(t,n)){let s=_i(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=Aw(t,n),o=_i(e,n,!1);return Object.keys(o).length?{cssProp:r,block:o}:null}function oj(t){let e=t.__ref;for(let n of Object.keys(t)){if(!hw(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!Cw(r))continue;let o=null,s,i=K(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&J(a);let c,l=!1;try{let f=s1(n,r,t),u=f?Cl(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Te({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&X()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:ct(e,"cssBlock("+n+")")});e.__effects.push(i)}}var sj=()=>!0,ij=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!_t[t]||!!(Rt&&Rt.has(t))||To(t)||t==="vars"};function aj(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(ij(a,n[a])||Ut.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=L_({[e]:n},t.tag||"div",r,sj),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function LC(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){zt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Bt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&i1(i,e,l);continue}let p=d===!1&&!nn(l)?null:String(te(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),p==null?i.removeAttribute(l):i.setAttribute(l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function i1(t,e,n){if(t.getAttribute(n)===e.written.get(n)){let r=e.base.get(n);r==null?t.removeAttribute(n):t.setAttribute(n,r)}e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function cj(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&i1(t.node,e,s)}function _w(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}function lj(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null},f=aj(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),S=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&S&&typeof S=="object"&&!Array.isArray(S))){if(m==="vars"&&Or(S)){for(let b of Object.keys(S))b&&u.add(dp(b));continue}u.add(m)}}let d=()=>{let m,y=t[i];if(y===void 0){let x=!!t.state&&i in t.state,_=t.state?t.state[i]:void 0;if(x||_!==void 0)m=_;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{m=typeof w=="function"?w.call(t,t):w}catch(k){m=!1,e.__conditionalError=k,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,k?.message||k)}}}else if(typeof y=="function")try{m=y(t,t.state,t.context)}catch(x){m=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}else m=y;let S=c?!m:!!m;if(!t.node)return;let b=t.context?.designSystem;if(S===l.lastMatch){if(S&&f&&t.node.setAttribute){b&&J(b);try{LC(t,n,o,f,l,!1)}finally{b&&X()}}return}l.lastMatch=S,b&&J(b);try{if(S){let x={},_={},w=!1;for(let A in a){if(!Object.prototype.hasOwnProperty.call(a,A))continue;let T=a[A],M=A.charAt(0);if((M===":"||M==="@"||M==="&"||M==="[")&&T&&typeof T=="object"&&!Array.isArray(T)){if(Ew(A,t)){let L=_i(T,t,!1,u);Object.keys(L).length&&(_[`[data-theme="${A.slice(1)}"] &`]=L,w=!0)}else{let L=Aw(A,t),H=_i(T,t,!1,u);Object.keys(H).length&&(_[L]=H,w=!0)}continue}let P=typeof T=="function"?T(t,t.state,t.context):T;if(P!=null){if(_t[A]){let L=_t[A](P,t,t.state,t.context);if(L){let H=Array.isArray(L)?L:[L];for(let lt of H)lt&&Object.assign(x,lt)}}else if(Rt&&Rt.has(A))x[A]=P;else if(To(A))x[A]=P;else if(A==="vars"){let L=pp(P,t);L&&Object.assign(x,L)}}}let k=Object.keys(x);if(k.length){Hn(t.node,x);for(let A of k)r.set(A,o);l.appliedKeys=k}else l.appliedKeys=null;if(w){let A=Te(_,null,t.context?.cssPrefix,{state:!0}),T=A?A.split(" ").filter(Boolean):[];if(T.length&&t.node.classList){for(let M of T)t.node.classList.add(M);l.appliedClasses=T}else l.appliedClasses=null}else if(l.appliedClasses){for(let A of l.appliedClasses)t.node.classList.remove(A);l.appliedClasses=null}f&&t.node.setAttribute&&LC(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&cj(t,n,o,l),l.appliedKeys){for(let x of l.appliedKeys)r.get(x)===o&&(To(x)?t.node.style.removeProperty(x):t.node.style[x]="",r.delete(x));l.appliedKeys=null}if(l.appliedClasses){for(let x of l.appliedClasses)t.node.classList.remove(x);l.appliedClasses=null}}}finally{b&&X()}};e.__conditionalRunners.push(d);let p=It(t,t[i+"Deps"],d),g=K(p,{depth:e.path.length,label:ct(e,"conditional("+o+")")}),h=e.__exec&&e.__exec[i]||t[i];g._sources.size===0&&typeof h=="function"&&tt()&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate tracked no reactive read on its first run, so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). If the predicate guards its state reads (\`in\`, short-circuits, \`?.\`), declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally.`),e.__effects.push(g)}}var fw=new WeakSet,DC=new WeakSet,IC=new WeakSet;function fj(t){if(IC.has(t))return!1;if(!DC.has(t)){DC.add(t);let e=t.defaultView,n=()=>{IC.add(t)};e&&typeof e.requestAnimationFrame=="function"?e.requestAnimationFrame(n):setTimeout(n,0)}return!0}function uj(t){let e=t.ownerDocument;!e||fw.has(e)||fj(e)||(fw.add(e),queueMicrotask(()=>{fw.delete(e);let n=e.body||e.documentElement;n&&n.offsetWidth}))}var uw=new WeakSet,$C=!1;function MC(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function ww(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?ww(s,o):o}return n}function a1(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=a1(o,e);Object.keys(s).length&&(n[r]=s)}else e.has(r)||(n[r]=o)}return n}function dj(t,e,n){let r=null;for(let[o,s]of e){let i=zn(o),a=_l[i];if(a)for(let c=0;c<a.length;c++){let l=a[c].replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),f=t[l]!=null?e.get(l):void 0,u=n&&n.get(a[c]),d=f!==void 0&&f>s&&iw(a[c],t[l],i),p=!d&&u!==void 0&&u>s&&iw(a[c],void 0,i);if(d||p){d&&delete t[o],r||(r=new Set),r.add(o);break}}}return r}function c1(t){let{node:e}=t;if(!e)return;if($C||($C=!0,Te({display:"none"})),uw.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}uw.add(t);let n=t.context?.designSystem;n&&J(n),Qd();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=t.__ref&&t.__ref.__mergeLayer,f,u=null,d=null,p=(b,x)=>{if(x&&typeof x=="object"&&MC(b)){a||(a={});let _=a[b];_&&(x=ww(_,x)),a[b]=x}else(x===null||typeof x!="object")&&(c||(c=new Set),c.add(b),f!==void 0&&(u||(u=new Map),u.set(b,f)));r[b]=x};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&_t.theme){let b=_t.theme(t.theme,t,t.state,t.context);if(b){let x=_=>{for(let w in _){let k=_[w];k&&typeof k=="object"&&MC(w)&&(i||(i={}),i[w]=k),r[w]=k}};if(Array.isArray(b))for(let _ of b)_&&x(_);else x(b);o=!0}}let g=(b,x)=>{if(b==="vars"){let _=pp(x);if(_){for(let w in _)p(w,_[w]);o=!0}return}if(_t[b]){let _=_t[b](x,t,t.state,t.context);if(_){if(Array.isArray(_)){for(let w of _)if(w)for(let k in w)p(k,w[k])}else for(let w in _)p(w,_[w]);o=!0}}else if(Rt&&Rt.has(b))x!=null&&typeof x!="object"&&(p(b,x),o=!0);else if(b.charCodeAt(0)===45)x!=null&&typeof x!="object"&&(p(b,x),o=!0);else if((b.charAt(0)==="&"||b.charAt(0)==="@"||b.charAt(0)===":"||b.charAt(0)==="[")&&x&&typeof x=="object"&&!Array.isArray(x)){if(Cw(x))return;let _=s1(b,x,t);_&&(p(_.cssProp,_.block),o=!0)}};if(typeof t.class=="string"){let b=rj(t.class,t.context?.designSystem?.class);if(b)for(let x in b)g(x,b[x])}let h=c?new Set(c):null,m=t.tag||"div";for(let b of Object.keys(t)){if(typeof t[b]=="function"){let _=l&&l.get(b);_!==void 0&&Tr(m,b)&&(d||(d=new Map),d.set(zn(b),_));continue}if(f=l?l.get(b):void 0,b==="vars"){g(b,t[b]);continue}if(Ut.has(b)||b==="theme")continue;let x=b.charCodeAt(0);x>=65&&x<=90||Un(b)||ap(m,b)||g(b,t[b])}f=void 0;let y=u?dj(r,u,d):null;if(i)for(let b in i){let x=c?a1(i[b],c):i[b];a&&a[b]&&(x=ww(x,a[b])),Object.keys(x).length?r[b]=x:delete r[b]}if(XF(t,r,c,y?new Set([...h||[],...y]):h),o){r.display&&String(r.display).includes("!important")&&(e.style.setProperty("display",String(r.display).replace(/\s*!important\s*$/,""),"important"),delete r.display);let b=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof b=="string"&&b!==""&&r.display&&r.display!==b&&(r.display=b);let x=Te(r,null,t.context?.cssPrefix);if(s=x?x.split(" ").filter(Boolean):[],x&&e.classList){let _=s,w=!1;for(let k of _)e.classList.add(k),w||(k.charCodeAt(0)===95&&k.charCodeAt(1)===99||k.charCodeAt(0)===95&&k.indexOf("_c",1)!==-1)&&(w=!0);w&&uj(e)}}let S=t.__ref;if(S){let b=S.__staticCssClasses;if(b&&e.classList){let x=new Set(s);for(let _ of b)x.has(_)||e.classList.remove(_)}S.__staticCssClasses=s}ZF(t)}finally{Jd(),n&&X(),uw.delete(t)}}var NA=t=>!!_t[t]||!!(Rt&&Rt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function FA(t){t&&t.node&&c1(t)}function l1(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||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,te(i,s))}let n=P_(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Ut.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Un(o)&&!Tr(r,o)&&ze(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Ao[o])continue;i=Bt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!nn(jn(o)||o))continue;let a=jn(o)||o;e.setAttribute(a,te(a,i))}}}function jA(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||Un(e))return;let o=t.tag||"div";if(Tr(o,e)||!ze(o,e))return;let s=jn(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=Ao[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Bt.call(t,l,t.state)),l==null||l===!1&&!nn(s)?n.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&n.setAttribute(s,te(s,l))}function pj(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}FC(o),Co.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),BC(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Rl(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,NC(t,o);return}o.awaitingLayout=!1;let i=mj(n),a=yj(i),c=n.style.height;n.style.height="0px",a&&dw(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&dw(n);return}let f=bj(n,i),u=f!=null&&l<f?f:l,d=Sj(i),p=d!=null&&u>d;n.style.height=wj(p?d:u,i)+"px",a&&dw(n),BC(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,NC(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}FC(o),Co.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,gj(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function Rl(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Co.add(t),up())}function hj(){let t=Array.from(Co);Co.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=bi()),o.attachAttempts+=1,o.attachAttempts<=WC&&bi()-o.firstAttemptAt<qC&&(Co.add(n),up());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function NC(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Rl(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Rl(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function FC(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function gj(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&Rl(t,!0)},()=>{})}function mj(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Oo=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,Tw=t=>(Oo(t.paddingTop)||0)+(Oo(t.paddingBottom)||0),f1=t=>(Oo(t.borderTopWidth)||0)+(Oo(t.borderBottomWidth)||0);function yj(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function dw(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function bj(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=Oo(e.lineHeight)||_j(t,e);return r>0?n*r+Tw(e):null}var wl=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],jC=new WeakMap;function _j(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=jC.get(n);o||(o=new Map,jC.set(n,o));let s=wl.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<wl.length;l++)e[wl[l]]&&(a[wl[l]]=e[wl[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function wj(t,e){return e?e.boxSizing==="border-box"?t+f1(e):e.boxSizing==="content-box"?Math.max(0,t-Tw(e)):t:t}function Sj(t){if(!t)return null;let e=Oo(t.maxHeight);if(e==null||!(e>0))return null;let n=Tw(t),r=f1(t),o=t.boxSizing==="border-box"?e-r:e+n,s=Oo(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function BC(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var VC=["srcObject","muted"],xj=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function kj(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<VC.length;r++){let o=VC[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=xj(o,a);if(e[o]!==c)try{e[o]=c}catch(l){zt(n,o,l)}};if(typeof s=="function"){let a=It(t,t[o+"Deps"],s),c=K(()=>{try{i(a(t,t.state,t.context))}catch(l){zt(n,o,l)}},{depth:n.path.length,label:ct(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function u1(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?It(t,t.autoGrowDeps,r):null,s=K(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}pj(t,a)},{depth:n.path.length,label:ct(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var d1=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function p1(t,e){for(let n of Object.keys(t)){if(!Un(n)||d1.has(n))continue;let r=Gd(n);if(r){Yd(r,t,t[n]);continue}let o=t[n],s=null;if(o&&typeof o=="object"&&!Array.isArray(o)&&(s=o,o=s.handler),typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let a=o;o=function(l){return t.call(a,l)}}if(typeof o!="function")continue;let i=AF(n);Er.has(i)||ri(CF(i),t,o,s)}vj(t)}function vj(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of d1){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),S=Math.abs(h);if(Math.max(y,S)<o)return;let b;if(y>S*1.2)b=g<0?"left":"right";else if(S>y*1.2)b=h<0?"up":"down";else return;let x="onSwipe"+b.charAt(0).toUpperCase()+b.slice(1),_=n[x],w=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),w&&w.call(t,{direction:b,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function Ro(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=Ro(o,s):n[r]=s}return n}function Sw(t,e,n,r,o){if(!e||!t.node)return;let s=t.childExtends,i=hi(t,"childProps");if(Array.isArray(e)){let a=t.tag==="fragment",c=t.context?.document||globalThis.document,l=a?null:c?.createDocumentFragment();if(!a&&!l)return;let f=t.childProps,u=t.childrenAs,d=S=>{let b=e[S],x=b;(typeof b=="string"||typeof b=="number")&&(b={text:b});let _=f;if(typeof f=="function")try{_=f(t,b)}catch{_=null}let w=typeof f=="function"?vl(_):i;if(o&&u!=="state"&&(w=El(w,vl(x))),u==="state"){let A=x;(typeof x=="string"||typeof x=="number")&&(A={value:x,text:x}),b=_?{..._,state:A}:{state:A}}else _&&(b=Ro(_,b));if(s&&!b.ignoreChildExtends)if(b.extends){let A=Array.isArray(b.extends)?b.extends:[b.extends],T=Array.isArray(s)?s:[s];b={...b,extends:[...T,...A]}}else b={...b,extends:s};let k=KC(b?.key,x,S);try{return ee(Al(b,w),t,k,n)}catch(A){if(typeof console<"u"&&console.error){let T=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${k}" failed to construct at ${T} (initial render, skipping this row):`,A?.message||A)}return null}},p=t.__ref;if(!(r===!0&&!a&&!!p&&(n?.mountYield===!0||t.yieldChildren===!0))){for(let S=0;S<e.length;S++){let b=d(S);!a&&b?.node&&l.appendChild(b.node)}return a||t.node.appendChild(l),!0}let h=p.__childrenChunkGen=(p.__childrenChunkGen||0)+1;Q_();let m=null,y=S=>{if(p.__disposed||p.__childrenChunkGen!==h){m&&m.parentNode&&m.remove();return}for(let b=S;b<e.length;b++){let x=d(b);if(x?.node&&(m?t.node.insertBefore(x.node,m):l.appendChild(x.node)),b+1<e.length&&Z_()){m||(m=c.createComment("smbls-mount"),l.appendChild(m),t.node.appendChild(l));let _=b+1;tw(()=>y(_));return}}m?(m.remove(),t.node.tagName==="SELECT"&&fp(t,!0)):t.node.appendChild(l)};return y(0),J_(),!0}if(typeof e=="string"){let a=YC(e,t);if(Array.isArray(a))return Sw(t,a,n,r,!0)}if(typeof e=="object")for(let a in e){if(Ut.has(a))continue;let c=e[a];if(c==null||c===!1)continue;let l=o?El(i,vl(c)):i;if((typeof c=="string"||typeof c=="number")&&(c={text:c}),t.childProps&&(c=Ro(t.childProps,c)),s&&!c.ignoreChildExtends)if(c.extends){let f=Array.isArray(c.extends)?c.extends:[c.extends],u=Array.isArray(s)?s:[s];c={...c,extends:[...u,...f]}}else c={...c,extends:s};ee(Al(c,l),t,a,n)}}function fp(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.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,typeof f=="string"&&f.includes("{{")&&(f=Bt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function h1(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function"||XC(t,"children");if(typeof n=="function"){let g=n;try{n=g(t,t.state,t.context)}catch(b){if(n=void 0,typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${x} (initial run, treating as empty):`,b?.message||b)}}kC(t,n),t.children=n;let h=t.__ref,m=!1,y=It(t,t.childrenDeps,g),S=K(()=>{let b=m;m=!0;let x;try{x=y(t,t.state,t.context)}catch(L){if(typeof console<"u"&&console.error){let H=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${H}${b?"":" (initial tracking run)"}:`,L?.message||L)}return}if(!b||x===t.children)return;kC(t,x),t.children=x,h.__childrenChunkGen!=null&&h.__childrenChunkGen++;let _=typeof t.onContentUpdate=="function",w=_?[]:null,k=_?[]:null,A=_?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let L=t.childProps,H=[],lt=new Map;for(let j=0;j<x.length;j++){let et=x[j],B=L;if(typeof L=="function")try{B=L(t,et)}catch{B=null}let V=KC(B&&B.key,et,j);H.push(V),lt.set(V,{rawChild:et,childProps:B})}let Z=new Set(H),ft=h.__children.slice();for(let j of ft)if(!Z.has(j)){let et=t[j];et?.remove&&et.remove(),delete t[j],k&&k.push(j)}let wt=t.childExtends,Pt=t.tag==="fragment",bt=t.context?.document||globalThis.document,$t=Pt?null:bt?.createDocumentFragment(),U=new Set;for(let j of H){let et=lt.get(j),B=et.rawChild,V=t[j];if(V&&V.state){if(B&&typeof B=="object"){let At=V.state,Ke=At.$replace||At.replace,Q=At.$update||At.update;try{if(typeof Ke=="function")Ke.call(At,B);else if(typeof Q=="function"){for(let W in At)if(!(W==="__element"||W==="root"||W==="parent"||W==="update")&&!Object.prototype.hasOwnProperty.call(B,W))try{At[W]=void 0}catch{}Q.call(At,B)}else for(let W in B)At[W]=B[W]}catch(W){if(typeof console<"u"&&console.error){let Nt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${j}" failed to patch at ${Nt} (reconcile, keeping its previous data for this pass):`,W?.message||W)}}}A&&A.push(j);continue}let nt=B;(typeof B=="string"||typeof B=="number")&&(nt={value:B,text:B});let Mt=et.childProps,Lt=Mt?{...Mt,state:nt}:{state:nt},Ki=typeof L=="function"?vl(Mt):hi(t,"childProps");if(wt&&!Lt.ignoreChildExtends)if(Lt.extends){let At=Array.isArray(Lt.extends)?Lt.extends:[Lt.extends],Ke=Array.isArray(wt)?wt:[wt];Lt={...Lt,extends:[...Ke,...At]}}else Lt={...Lt,extends:wt};let Gi;try{Gi=ee(Al(Lt,Ki),t,j,e)}catch(At){if(typeof console<"u"&&console.error){let Ke=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${j}" failed to construct at ${Ke} (reconcile, skipping this row):`,At?.message||At)}U.add(j);continue}!Pt&&Gi?.node&&$t&&$t.appendChild(Gi.node),w&&w.push(j)}if(!Pt&&$t&&$t.childNodes.length&&t.node&&t.node.appendChild($t),!Pt&&t.node){let j=null;for(let et of H){let B=t[et]?.node;if(!B)continue;let V=j?j.nextSibling:t.node.firstChild;B!==V&&t.node.insertBefore(B,V),j=B}}h.__children=U.size?H.filter(j=>!U.has(j)):H,_&&(w.length||k.length)&&_C(t,{added:w,removed:k,kept:A}),fp(t,!1);return}let P=_?[...h.__children]:null;for(let L of[...h.__children]){let H=t[L];H?.remove&&H.remove(),delete t[L]}h.__children=[],Sw(t,x,e,!1,!0),fp(t,!1),_&&_C(t,{added:[...h.__children],removed:P,kept:[]})},{depth:h.path.length,label:ct(h,"children")});h.__effects.push(S)}let i=Sw(t,n,e,!0,s);if(r!=null&&!(r&&r.__ref)){let g=r;if(typeof g=="string"||typeof g=="number"?g={text:g}:typeof g!="object"&&(g={}),t.childProps&&(g=Ro(t.childProps,g)),o&&!g.ignoreChildExtends)if(g.extends){let m=Array.isArray(g.extends)?g.extends:[g.extends],y=Array.isArray(o)?o:[o];g={...g,extends:[...y,...m]}}else g={...g,extends:o};let h=El(hi(t,"childProps"),hi(t,"content"));ee(Al(g,h),t,"content",e)}if(n&&!i)return;let a=t.context?.components||{},c=t.__ref&&t.__ref.__runtimeSource,l=c?{}:null;{let g=Object.keys(t);for(let h=0;h<g.length;h++){let m=g[h];if(!m.endsWith("Extends")||typeof t[m]!="string")continue;let y=m.slice(0,-7);if(!y||y.charCodeAt(0)<65||y.charCodeAt(0)>90)continue;let S={extends:t[m]};delete t[m];for(let b=h+1;b<g.length;b++){let x=g[b],_=x.charCodeAt(0);if(_>=65&&_<=90||Ut.has(x)||typeof t[x]=="function"&&(x.startsWith("on")||x.startsWith(".")))break;let w=t[x];w!==void 0&&(S[x]=w,delete t[x],l&&Ol(c,x)&&(l[y]||(l[y]={}),l[y][x]=c[x]))}t[y]&&typeof t[y]=="object"?t[y]={...S,...t[y]}:t[y]=S}}let f=e?.mountYield===!0||t.yieldChildren===!0,u=Object.keys(t),d=g=>{if(Ut.has(g)||typeof t[g]!="object"||t[g]===null)return;let h=g.charCodeAt(0);if(h<65||h>90)return;let m=t[g];if(m.__ref)return;if(!m.extends&&!m.extend){let S=a[g]||a[`smbls.${g}`];S&&(m={...m,extends:S})}if(t.childProps&&(m=Ro(t.childProps,m)),o&&!m.ignoreChildExtends)if(m.extends){let S=Array.isArray(m.extends)?m.extends:[m.extends],b=Array.isArray(o)?o:[o];m={...m,extends:[...b,...S]}}else m={...m,extends:o};let y=c?El(hi(t,"childProps"),El(l[g]||null,hi(t,g))):null;ee(Al(m,y),t,g,e)};if(!f){for(let g of u)d(g);return}Q_();let p=g=>{for(let h=g;h<u.length;h++)if(d(u[h]),h+1<u.length&&Z_()){let m=h+1;tw(()=>p(m));return}};p(0),J_()}function g1(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(n?.position==="before"&&n.node)i.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let a=n.node.nextSibling;i.insertBefore(r,a||o)}else i.insertBefore(r,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(n?.position==="before"&&n.node)s.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let i=n.node.nextSibling;i?s.insertBefore(r,i):s.appendChild(r)}else s.appendChild(r)}var xw=3;function D_(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=xw?!1:(t.__inBeforeUpdate=!0,!0)}function Bn(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===xw&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${xw}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Ht(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Ct(r,e,n);let o="on"+t,s=e[o];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&J(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{e.context?.plugins?.length&&Ct("error",e,{hook:o,error:p})||console.error(`[DOMQL] Lifecycle "${o}" error:`,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(e.context?.plugins?.length&&Ct("error",e,{hook:o,error:u})||console.error(`[DOMQL] Lifecycle "${o}" error:`,u),e.context?.strictMode)throw u}finally{l&&X(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}qt();var Pl="inertOutside",Ej=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),Aj='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Cj={attributes:!0,attributeFilter:["inert"]},m1=new WeakMap,y1=new WeakMap,Ll=new Set,b1=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Po(t){let e=_e();e&&Xt(null);try{return t()}catch(n){console.error("[smbls] inertOutside:",n)}finally{e&&Xt(e)}}function _1(t){let e=()=>Po(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function Tj(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=m1.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>Po(()=>Rw(e,r))),m1.set(t,e),e)}function k1(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function Oj(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var w1=t=>!!(t.closest&&t.closest("[inert]"));function Rj(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!Ej.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function S1(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function Rw(t,e){let{doc:n,held:r,observer:o}=t;e&&S1(t,e),S1(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=k1(u,n);d&&!u.live&&(i.push(u),u.returnFocus=Oj(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?Rj(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,Cj);if(t.layers.some(u=>!u.live)?Ll.add(t):Ll.delete(t),a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),_1(()=>v1(t,a));else if(f){let u=f.returnFocus;_1(()=>Pj(t,f,u))}f&&(f.returnFocus=null)}function v1(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(Aj))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function Pj(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||w1(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!w1(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&v1(t,t.top))}function Ow(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}Rw(n)}function E1(t){let e=t[Pl];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function x1(t){let e=y1.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=Tj(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,returnFocus:null},y1.set(t,e);let s=K(()=>{let i=E1(t);Po(()=>Ow(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+Pl});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Po(()=>Ow(e,!1))),e}function Lj(){for(let t of Ll){if(!t.doc.defaultView){Ll.delete(t);continue}t.layers.some(e=>!e.live&&k1(e,t.doc))&&Rw(t)}}var hp={name:Pl,create(t){b1(t,Pl)&&Po(()=>x1(t))},render(){Ll.size&&Po(Lj)},update(t){b1(t,Pl)&&Po(()=>{let e=x1(t);e&&Ow(e,E1(t))})}};var A1={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"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},C1={"gradient-blue-light":`linear-gradient(to right,
61
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}var RC=new Set;function PC(t){if(!Array.isArray(t))return"";let e=[];for(let n=0;n<t.length;n++)typeof t[n]=="string"&&t[n].length&&e.push(t[n]);return e.sort(),e.join("|")}function nj(t,e,n){let r=PC(n);queueMicrotask(()=>{if(!t.__ref)return;let o;try{o=e(t,t.state,t.context)}catch{return}if(PC(o)===r)return;let s=t.__ref.path?t.__ref.path.join("."):t.key||"?";RC.has(s)||(RC.add(s),console.warn(`[smbls] subscribeTo function at "${s}" resolved to a DIFFERENT key list one microtask after create \u2014 wired [${n.join(", ")||"(none)"}], probed [${Array.isArray(o)?o.join(", "):String(o)}]. subscribeTo's function form is resolved ONCE at element-create time (registerSubscribeToEffects, @symbo.ls/element create.js) \u2014 this element stays wired to the ORIGINAL list for its whole lifetime, so this drift is invisible to the reactive effect and any key only present in the new list will never trigger onUpdate. If the watched key genuinely is not known until later (e.g. a module config that loads after shell boot), route the write through an imperative call instead of subscribeTo \u2014 see functions/moduleOpenBridge.js's moduleOpenPage (workspace repo) for the house pattern.`))})}function rj(t){let e=t.subscribeTo,n=typeof e=="function",r=e;if(n)try{r=e(t,t.state,t.context)}catch{r=null}if(n&&tt()&&nj(t,e,Array.isArray(r)?r:[]),!Array.isArray(r)||r.length===0)return;let o=t.__ref;for(let s=0;s<r.length;s++){let i=r[s];if(typeof i!="string"||i.length===0)continue;let a=i.split("."),c=a[0],l=a.slice(1),f={value:!1},u=K(()=>{let d=t.state&&(St(t.state)?t.state.root:null);if(!d||!St(d))return;let p=d;p=p[c];for(let h=0;h<l.length&&!(p==null||typeof p!="object");h++)if(St(p))p=p[l[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"){let h=t.context?.designSystem;h&&J(h);try{if($_(o)){let m=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});m&&typeof m.then=="function"?m.then(()=>Bn(o,!1),y=>{Bn(o,!0),t.context?.plugins?.length&&Ct("error",t,{hook:"onBeforeUpdate",error:y})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",y)}):(Bn(o,!1),m===!1&&(g=!0))}}catch(m){Bn(o,!0),t.context?.plugins?.length&&Ct("error",t,{hook:"onBeforeUpdate",error:m})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",m)}finally{h&&X()}}if(!g&&t.node&&o.__effects)for(let h=0;h<o.__effects.length;h++){let m=o.__effects[h];m&&m!==u&&!m._disposed&&!m._isSubscribeToEffect&&typeof m._execute=="function"&&m._execute()}if(!g&&typeof t.onUpdate=="function"){let h=t.context?.designSystem;h&&J(h);try{t.onUpdate(t,t.state,t.context)}catch(m){t.context?.plugins?.length&&Ct("error",t,{hook:"onUpdate",error:m})||console.error("[DOMQL] subscribeTo onUpdate error:",m)}finally{h&&X()}}},{depth:o.path.length,label:ct(o,"subscribeTo("+i+")")});f.value=!0,u._isSubscribeToEffect=!0,o.__effects.push(u)}}function Cw(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function Tw(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];return n?/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`:t}var LC=new Set;function oj(t,e){let n=e?.__ref?.path?e.__ref.path.join("."):e?.key||"?",r=n+"::"+t;LC.has(r)||(LC.add(r),console.warn(`[smbls/css] "${t}" at ${n} is a CHILD-COMPONENT key nested inside a pseudo/selector block (":hover", "@dark", etc.) \u2014 that is never a valid CSS selector fragment. The rule is DROPPED (not shipped as a dead/never-matching selector). To reveal a child on a parent state, target the child's OWN class from the parent selector instead, e.g. move the declaration onto the child element itself, or use a sibling-selector combinator in a top-level style block.`))}var DC=new Map;function sj(t){let e=DC.get(t);if(e)return e;e=[];let n=r=>{if(r)for(let o of r)e.push(o.replace(/-([a-z])/g,(s,i)=>i.toUpperCase()))};return n(wl[t]),n(SC[t]),DC.set(t,e),e}function IC(t,e,n){if(ww(t,e)||n&&n.has(e))return!0;let r=sj(zn(e));for(let o=0;o<r.length;o++){let s=r[o];if(ww(t,s)||n&&n.has(s))return!0}return!1}function Si(t,e,n,r){let o={},s=new Set,i=(a,c,l)=>{let f=l?new Set(Object.keys(o)):null;if(_t[a]){let u=_t[a](c,e,e.state,e.context);if(u){let d=Array.isArray(u)?u:[u];for(let p of d)p&&Object.assign(o,p)}}else o[a]=c;if(l)for(let u in o)f.has(u)||s.add(u)};for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=t[a];if(typeof c=="function"&&(c=c(e,e.state,e.context)),!(c==null||typeof c=="function")){if(typeof c=="object"&&!Array.isArray(c)){if(a==="style"){for(let u in c){let d=c[u];typeof d=="function"&&(d=d(e,e.state,e.context)),!(d==null||typeof d=="function")&&i(u,d,IC(e,u,r))}continue}if(a==="vars"){let u=hp(c,e);if(u)for(let d in u)i(d,u[d],ww(e,d)||!!(r&&r.has(d)));continue}if(Cw(a,e)){let u=Si(c,e,!1,r);Object.keys(u).length&&(o[`[data-theme="${a.slice(1)}"] &`]=u);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(a)){tt()&&oj(a,e);continue}let l=Tw(a,e),f=Si(c,e,!1,r);Object.keys(f).length&&(o[l]=f);continue}i(a,c,IC(e,a,r))}}if(n)for(let a in o)s.add(a);for(let a of s){let c=o[a];typeof c=="string"&&!c.includes("!important")&&(o[a]=c+" !important")}return o}var Or=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function a1(t,e){for(let n in e){let r=e[n];t[n]=Or(r)?a1(Or(t[n])?t[n]:{},r):r}return t}function ij(t,e){if(!Or(e))return;let n;for(let r of t.split(" ")){let o=r?e[r]:null;Or(o)&&(n=a1(n||{},o))}return n}function Ow(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Ow(t[n],e+1))return!0}return!1}function c1(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Cw(t,n)){let s=Si(e,n,!1);return Object.keys(s).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:s}:null}let r=Tw(t,n),o=Si(e,n,!1);return Object.keys(o).length?{cssProp:r,block:o}:null}function aj(t){let e=t.__ref;for(let n of Object.keys(t)){if(!mw(n))continue;let r=t[n];if(!r||typeof r!="object"||Array.isArray(r)||!Ow(r))continue;let o=null,s,i=K(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&J(a);let c,l=!1;try{let f=c1(n,r,t),u=f?Tl(f.block)+"::"+f.cssProp:null;if(u!==null&&u===s)l=!0;else if(s=u,f){let d=Te({[f.cssProp]:f.block},null,t.context?.cssPrefix);c=d?d.split(" ").filter(Boolean):null}else c=null}finally{a&&X()}if(!(l||!t.node.classList)){if(o)for(let f of o)t.node.classList.remove(f);if(c&&c.length)for(let f of c)t.node.classList.add(f);o=c}},{depth:e.path.length,label:ct(e,"cssBlock("+n+")")});e.__effects.push(i)}}var cj=()=>!0,lj=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!_t[t]||!!(Rt&&Rt.has(t))||To(t)||t==="vars"};function fj(t,e,n){let r={},o=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(lj(a,n[a])||Ut.has(a))?r[a]=!0:o=!0);if(!o)return null;let s=I_({[e]:n},t.tag||"div",r,cj),i=null;for(let a in s)/^on/i.test(a)||(i||(i={}),i[a]=s[a]);return i}function $C(t,e,n,r,o,s){let i=t.node,a=null,c=l=>{(a||(a=[])).push(l)};for(let l in r){let f=e.owners.get(l),u=f===n;if(!s&&f!==void 0&&!u)continue;let d;try{d=r[l](t)}catch(g){zt(t.__ref,"conditional("+n+")."+l,g),u&&c(l);continue}if(typeof d=="string"&&d.includes("{{")&&(d=Bt.call(t,d,t.state)),u&&i.getAttribute(l)!==e.written.get(l)){c(l);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&l1(i,e,l);continue}let p=d===!1&&!rn(l)?null:String(te(l,d));c(l),!(u&&p===e.written.get(l))&&(f===void 0&&e.base.set(l,i.getAttribute(l)),p==null?i.removeAttribute(l):i.setAttribute(l,p),e.owners.set(l,n),e.written.set(l,p))}o.appliedAttrs=a}function l1(t,e,n){if(t.getAttribute(n)===e.written.get(n)){let r=e.base.get(n);r==null?t.removeAttribute(n):t.setAttribute(n,r)}e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function uj(t,e,n,r){let o=r.appliedAttrs;if(r.appliedAttrs=null,!!o)for(let s of o)e.owners.get(s)===n&&l1(t.node,e,s)}function Sw(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let r of e.owners.keys()){let o=e.written.get(r),s=n.getAttribute(r);s!==o&&(e.base.set(r,s),o==null?n.removeAttribute(r):n.setAttribute(r,o))}}function dj(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,r=new Map;for(let o of Object.keys(t)){let s=o.charAt(0);if(s!=="."&&s!=="!")continue;let i=o.slice(1);if(!i)continue;if(/[:@\s>~+[\]]/.test(i)){if(typeof console<"u"&&console.warn){let m=i.split(/[:@\s>~+[\]]/)[0];console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} will never match \u2014 the whole string after \`${s}\` is read as one prop name. Nest the selector inside instead: \`${s}${m}: { '${i.slice(m.length)}': {...} }\`.`)}continue}let a=t[o];if(!a||typeof a!="object")continue;let c=s==="!",l={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null},f=fj(t,o,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let m in a){if(!Object.prototype.hasOwnProperty.call(a,m))continue;let y=m.charAt(0),S=a[m];if(!((y===":"||y==="@"||y==="&"||y==="[")&&S&&typeof S=="object"&&!Array.isArray(S))){if(m==="vars"&&Or(S)){for(let b of Object.keys(S))b&&u.add(pp(b));continue}u.add(m)}}let d=()=>{let m,y=t[i];if(y===void 0){let x=!!t.state&&i in t.state,_=t.state?t.state[i]:void 0;if(x||_!==void 0)m=_;else{let w=t.context?.cases?.[i];if(w===void 0)return;try{m=typeof w=="function"?w.call(t,t):w}catch(k){m=!1,e.__conditionalError=k,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,k?.message||k)}}}else if(typeof y=="function")try{m=y(t,t.state,t.context)}catch(x){m=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${o}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}else m=y;let S=c?!m:!!m;if(!t.node)return;let b=t.context?.designSystem;if(S===l.lastMatch){if(S&&f&&t.node.setAttribute){b&&J(b);try{$C(t,n,o,f,l,!1)}finally{b&&X()}}return}l.lastMatch=S,b&&J(b);try{if(S){let x={},_={},w=!1;for(let A in a){if(!Object.prototype.hasOwnProperty.call(a,A))continue;let T=a[A],M=A.charAt(0);if((M===":"||M==="@"||M==="&"||M==="[")&&T&&typeof T=="object"&&!Array.isArray(T)){if(Cw(A,t)){let L=Si(T,t,!1,u);Object.keys(L).length&&(_[`[data-theme="${A.slice(1)}"] &`]=L,w=!0)}else{let L=Tw(A,t),H=Si(T,t,!1,u);Object.keys(H).length&&(_[L]=H,w=!0)}continue}let P=typeof T=="function"?T(t,t.state,t.context):T;if(P!=null){if(_t[A]){let L=_t[A](P,t,t.state,t.context);if(L){let H=Array.isArray(L)?L:[L];for(let lt of H)lt&&Object.assign(x,lt)}}else if(Rt&&Rt.has(A))x[A]=P;else if(To(A))x[A]=P;else if(A==="vars"){let L=hp(P,t);L&&Object.assign(x,L)}}}let k=Object.keys(x);if(k.length){Hn(t.node,x);for(let A of k)r.set(A,o);l.appliedKeys=k}else l.appliedKeys=null;if(w){let A=Te(_,null,t.context?.cssPrefix,{state:!0}),T=A?A.split(" ").filter(Boolean):[];if(T.length&&t.node.classList){for(let M of T)t.node.classList.add(M);l.appliedClasses=T}else l.appliedClasses=null}else if(l.appliedClasses){for(let A of l.appliedClasses)t.node.classList.remove(A);l.appliedClasses=null}f&&t.node.setAttribute&&$C(t,n,o,f,l,!0)}else{if(l.appliedAttrs&&uj(t,n,o,l),l.appliedKeys){for(let x of l.appliedKeys)r.get(x)===o&&(To(x)?t.node.style.removeProperty(x):t.node.style[x]="",r.delete(x));l.appliedKeys=null}if(l.appliedClasses){for(let x of l.appliedClasses)t.node.classList.remove(x);l.appliedClasses=null}}}finally{b&&X()}};e.__conditionalRunners.push(d);let p=It(t,t[i+"Deps"],d),g=K(p,{depth:e.path.length,label:ct(e,"conditional("+o+")")}),h=e.__exec&&e.__exec[i]||t[i];g._sources.size===0&&typeof h=="function"&&tt()&&console.warn(`[smbls] conditional \`${o}\` on ${t.key||"?"} subscribed to nothing \u2014 its predicate tracked no reactive read on its first run, so no state write will ever re-evaluate it (only a direct element.update() on this element re-runs it). If the predicate guards its state reads (\`in\`, short-circuits, \`?.\`), declare \`${i}Deps: [...]\` (state-key strings or \`(el, s) => \u2026\` selectors) so the subscription is armed unconditionally.`),e.__effects.push(g)}}var dw=new WeakSet,MC=new WeakSet,NC=new WeakSet;function pj(t){if(NC.has(t))return!1;if(!MC.has(t)){MC.add(t);let e=t.defaultView,n=()=>{NC.add(t)};e&&typeof e.requestAnimationFrame=="function"?e.requestAnimationFrame(n):setTimeout(n,0)}return!0}function hj(t){let e=t.ownerDocument;!e||dw.has(e)||pj(e)||(dw.add(e),queueMicrotask(()=>{dw.delete(e);let n=e.body||e.documentElement;n&&n.offsetWidth}))}var pw=new WeakSet,FC=!1;function jC(t){return t.startsWith("[data-theme=")||t.startsWith("@media")&&t.includes("prefers-color-scheme")}function xw(t,e){let n={...t};for(let r in e){let o=e[r],s=n[r];n[r]=o&&typeof o=="object"&&s&&typeof s=="object"?xw(s,o):o}return n}function f1(t,e){let n={};for(let r in t){let o=t[r];if(o&&typeof o=="object"){let s=f1(o,e);Object.keys(s).length&&(n[r]=s)}else e.has(r)||(n[r]=o)}return n}function gj(t,e,n){let r=null;for(let[o,s]of e){let i=zn(o),a=wl[i];if(a)for(let c=0;c<a.length;c++){let l=a[c].replace(/-([a-z])/g,(g,h)=>h.toUpperCase()),f=t[l]!=null?e.get(l):void 0,u=n&&n.get(a[c]),d=f!==void 0&&f>s&&cw(a[c],t[l],i),p=!d&&u!==void 0&&u>s&&cw(a[c],void 0,i);if(d||p){d&&delete t[o],r||(r=new Set),r.add(o);break}}}return r}function u1(t){let{node:e}=t;if(!e)return;if(FC||(FC=!0,Te({display:"none"})),pw.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}pw.add(t);let n=t.context?.designSystem;n&&J(n),Jd();try{let r={},o=!1,s=[],i=null,a=null,c=null,l=t.__ref&&t.__ref.__mergeLayer,f,u=null,d=null,p=(b,x)=>{if(x&&typeof x=="object"&&jC(b)){a||(a={});let _=a[b];_&&(x=xw(_,x)),a[b]=x}else(x===null||typeof x!="object")&&(c||(c=new Set),c.add(b),f!==void 0&&(u||(u=new Map),u.set(b,f)));r[b]=x};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&_t.theme){let b=_t.theme(t.theme,t,t.state,t.context);if(b){let x=_=>{for(let w in _){let k=_[w];k&&typeof k=="object"&&jC(w)&&(i||(i={}),i[w]=k),r[w]=k}};if(Array.isArray(b))for(let _ of b)_&&x(_);else x(b);o=!0}}let g=(b,x)=>{if(b==="vars"){let _=hp(x);if(_){for(let w in _)p(w,_[w]);o=!0}return}if(_t[b]){let _=_t[b](x,t,t.state,t.context);if(_){if(Array.isArray(_)){for(let w of _)if(w)for(let k in w)p(k,w[k])}else for(let w in _)p(w,_[w]);o=!0}}else if(Rt&&Rt.has(b))x!=null&&typeof x!="object"&&(p(b,x),o=!0);else if(b.charCodeAt(0)===45)x!=null&&typeof x!="object"&&(p(b,x),o=!0);else if((b.charAt(0)==="&"||b.charAt(0)==="@"||b.charAt(0)===":"||b.charAt(0)==="[")&&x&&typeof x=="object"&&!Array.isArray(x)){if(Ow(x))return;let _=c1(b,x,t);_&&(p(_.cssProp,_.block),o=!0)}};if(typeof t.class=="string"){let b=ij(t.class,t.context?.designSystem?.class);if(b)for(let x in b)g(x,b[x])}let h=c?new Set(c):null,m=t.tag||"div";for(let b of Object.keys(t)){if(typeof t[b]=="function"){let _=l&&l.get(b);_!==void 0&&Tr(m,b)&&(d||(d=new Map),d.set(zn(b),_));continue}if(f=l?l.get(b):void 0,b==="vars"){g(b,t[b]);continue}if(Ut.has(b)||b==="theme")continue;let x=b.charCodeAt(0);x>=65&&x<=90||Un(b)||cp(m,b)||g(b,t[b])}f=void 0;let y=u?gj(r,u,d):null;if(i)for(let b in i){let x=c?f1(i[b],c):i[b];a&&a[b]&&(x=xw(x,a[b])),Object.keys(x).length?r[b]=x:delete r[b]}if(JF(t,r,c,y?new Set([...h||[],...y]):h),o){r.display&&String(r.display).includes("!important")&&(e.style.setProperty("display",String(r.display).replace(/\s*!important\s*$/,""),"important"),delete r.display);let b=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof b=="string"&&b!==""&&r.display&&r.display!==b&&(r.display=b);let x=Te(r,null,t.context?.cssPrefix);if(s=x?x.split(" ").filter(Boolean):[],x&&e.classList){let _=s,w=!1;for(let k of _)e.classList.add(k),w||(k.charCodeAt(0)===95&&k.charCodeAt(1)===99||k.charCodeAt(0)===95&&k.indexOf("_c",1)!==-1)&&(w=!0);w&&hj(e)}}let S=t.__ref;if(S){let b=S.__staticCssClasses;if(b&&e.classList){let x=new Set(s);for(let _ of b)x.has(_)||e.classList.remove(_)}S.__staticCssClasses=s}tj(t)}finally{tp(),n&&X(),pw.delete(t)}}var BA=t=>!!_t[t]||!!(Rt&&Rt.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function VA(t){t&&t.node&&u1(t)}function d1(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||typeof s=="string"&&s.includes("{{"))continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(i,te(i,s))}let n=D_(t);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let r=t.tag||"div";for(let o of Object.keys(t)){if(typeof t[o]=="function"||Ut.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!Un(o)&&!Tr(r,o)&&He(r,o)){let i=t[o];if(i==null)continue;if(typeof i=="string"&&i.includes("{{")){if(!Ao[o])continue;i=Bt.call(t,i,t.state)}if(i==null||typeof i=="function"||typeof i=="object"||i===!1&&!rn(jn(o)||o))continue;let a=jn(o)||o;e.setAttribute(a,te(a,i))}}}function UA(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let r=e.charCodeAt(0);if(r>=65&&r<=90||Un(e))return;let o=t.tag||"div";if(Tr(o,e)||!He(o,e))return;let s=jn(e)||e,i=s.toLowerCase(),a=t.__ref&&t.__ref.__effects,c=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===i&&!d._disposed&&typeof d._execute=="function"&&(c=!0,d._execute())}if(c)return;let l=t[e],f=Ao[e];if(f&&l!=null){let u=f(t);u!==void 0&&(l=u)}typeof l=="string"&&l.includes("{{")&&(l=Bt.call(t,l,t.state)),l==null||l===!1&&!rn(s)?n.removeAttribute(s):typeof l!="function"&&typeof l!="object"&&n.setAttribute(s,te(s,l))}function mj(t,e){let n=t.node,r=t.__ref,o=r.__autoGrow;if(!e){if(o&&o.active){try{n.removeEventListener("input",o.resize)}catch{}VC(o),Co.delete(t),n.style.height="",o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""),zC(n,o,!1),o.active=!1,o.appliedMax=null,o.lastMeasure=0}return}o||(o=r.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Pl(t,!0);return}if(!(n.scrollHeight>0)){o.awaitingLayout=!0,BC(t,o);return}o.awaitingLayout=!1;let i=_j(n),a=wj(i),c=n.style.height;n.style.height="0px",a&&hw(n);let l=n.scrollHeight;if(!(l>0)){n.style.height=c,a&&hw(n);return}let f=Sj(n,i),u=f!=null&&l<f?f:l,d=vj(i),p=d!=null&&u>d;n.style.height=kj(p?d:u,i)+"px",a&&hw(n),zC(n,o,p),o.lastMeasure=l,o.lastWidth=n.clientWidth,BC(t,o)}},r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{try{n.removeEventListener("input",o.resize)}catch{}VC(o),Co.delete(t)})),o.active||(n.addEventListener("input",o.resize),o.active=!0,bj(t,o));let s=typeof e=="object"&&e.max!=null?String(e.max):null;s!==o.appliedMax&&(s==null?o.appliedMax!=null&&n.style.maxHeight===o.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=s,o.appliedMax=s),o.resize()}function Pl(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Co.add(t),dp())}function yj(){let t=Array.from(Co);Co.clear();for(let e=0;e<t.length;e++){let n=t[e],r=n.node,o=n.__ref?.__autoGrow;if(!(!r||!o||!o.active)){if(!r.isConnected){o.firstAttemptAt==null&&(o.firstAttemptAt=wi()),o.attachAttempts+=1,o.attachAttempts<=GC&&wi()-o.firstAttemptAt<YC&&(Co.add(n),dp());continue}o.attachAttempts=0,o.firstAttemptAt=null,o.resize()}}}function BC(t,e){if(e.watch)return;let n=t.node;if(!n)return;let r=n.ownerDocument&&n.ownerDocument.defaultView,o=r&&r.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof o!="function")return;let s=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Pl(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Pl(t,!0))},i;try{i=new o(s),i.observe(n)}catch{return}e.watch=i}function VC(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function bj(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,r=n&&n.fonts&&n.fonts.ready;!r||typeof r.then!="function"||r.then(()=>{e.active&&t.node&&Pl(t,!0)},()=>{})}function _j(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var Oo=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,Rw=t=>(Oo(t.paddingTop)||0)+(Oo(t.paddingBottom)||0),p1=t=>(Oo(t.borderTopWidth)||0)+(Oo(t.borderBottomWidth)||0);function wj(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let r=0;r<e.length;r++){let o=e[r].trim();if(!(o!=="all"&&o!=="height")&&parseFloat(n[r%n.length])>0)return!0}return!1}function hw(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let r=e[n];if(r&&r.transitionProperty==="height")try{r.cancel()}catch{}}}function Sj(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let r=Oo(e.lineHeight)||xj(t,e);return r>0?n*r+Rw(e):null}var Sl=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],UC=new WeakMap;function xj(t,e){let n=t.ownerDocument,r=n&&(n.body||n.documentElement);if(!r||!n.createElement)return null;let o=UC.get(n);o||(o=new Map,UC.set(n,o));let s=Sl.map(l=>e[l]||"").join("|");if(o.has(s))return o.get(s);let i=n.createElement("textarea");i.rows=1,i.setAttribute("aria-hidden","true"),i.tabIndex=-1;let a=i.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let l=0;l<Sl.length;l++)e[Sl[l]]&&(a[Sl[l]]=e[Sl[l]]);let c=0;try{r.appendChild(i),c=i.clientHeight}catch{c=0}finally{i.parentNode&&i.parentNode.removeChild(i)}return c>0?(o.set(s,c),c):null}function kj(t,e){return e?e.boxSizing==="border-box"?t+p1(e):e.boxSizing==="content-box"?Math.max(0,t-Rw(e)):t:t}function vj(t){if(!t)return null;let e=Oo(t.maxHeight);if(e==null||!(e>0))return null;let n=Rw(t),r=p1(t),o=t.boxSizing==="border-box"?e-r:e+n,s=Oo(t.lineHeight);if(!(s>0))return o;let i=Math.floor((o-n)/s+1e-6);return i>=1?i*s+n:o}function zC(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var HC=["srcObject","muted"],Ej=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function Aj(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let r=0;r<HC.length;r++){let o=HC[r],s=t[o];if(s===void 0||!(o in e))continue;let i=a=>{let c=Ej(o,a);if(e[o]!==c)try{e[o]=c}catch(l){zt(n,o,l)}};if(typeof s=="function"){let a=It(t,t[o+"Deps"],s),c=K(()=>{try{i(a(t,t.state,t.context))}catch(l){zt(n,o,l)}},{depth:n.path.length,label:ct(n,o)});n.__effects.push(c),n.__exec[o]=s}else i(s);o==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function h1(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,r=t.autoGrow,o=typeof r=="function"?It(t,t.autoGrowDeps,r):null,s=K(()=>{let i=t.autoGrow,a=i;if(typeof i=="function")try{a=(i===r&&o?o:i)(t,t.state,t.context)}catch{a=null}mj(t,a)},{depth:n.path.length,label:ct(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(s),o&&(n.__exec.autoGrow=r)}var g1=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function m1(t,e){for(let n of Object.keys(t)){if(!Un(n)||g1.has(n))continue;let r=Yd(n);if(r){Xd(r,t,t[n]);continue}let o=t[n],s=null;if(o&&typeof o=="object"&&!Array.isArray(o)&&(s=o,o=s.handler),typeof o=="string"&&/^[A-Za-z_$][\w$]*$/.test(o)){let a=o;o=function(l){return t.call(a,l)}}if(typeof o!="function")continue;let i=OF(n);Er.has(i)||si(RF(i),t,o,s)}Cj(t)}function Cj(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},r=!1;for(let d of g1){let p=t[d];typeof p=="function"&&(n[d]=p,r=!0)}if(!r)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,a=0,c=0,l=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(i=p.clientX,a=p.clientY,c=Date.now(),l=!0)},u=d=>{if(!l)return;l=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-i,h=p.clientY-a,m=Date.now()-c;if(m>s)return;let y=Math.abs(g),S=Math.abs(h);if(Math.max(y,S)<o)return;let b;if(y>S*1.2)b=g<0?"left":"right";else if(S>y*1.2)b=h<0?"up":"down";else return;let x="onSwipe"+b.charAt(0).toUpperCase()+b.slice(1),_=n[x],w=n.onSwipe;_&&_.call(t,d,t,t.state,t.context),w&&w.call(t,{direction:b,dx:g,dy:h,dt:m,event:d},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function Ro(t,e){let n={...t};for(let r in e){let o=n[r],s=e[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=Ro(o,s):n[r]=s}return n}function kw(t,e,n,r,o){if(!e||!t.node)return;let s=t.childExtends,i=mi(t,"childProps");if(Array.isArray(e)){let a=t.tag==="fragment",c=t.context?.document||globalThis.document,l=a?null:c?.createDocumentFragment();if(!a&&!l)return;let f=t.childProps,u=t.childrenAs,d=S=>{let b=e[S],x=b;(typeof b=="string"||typeof b=="number")&&(b={text:b});let _=f;if(typeof f=="function")try{_=f(t,b)}catch{_=null}let w=typeof f=="function"?El(_):i;if(o&&u!=="state"&&(w=Al(w,El(x))),u==="state"){let A=x;(typeof x=="string"||typeof x=="number")&&(A={value:x,text:x}),b=_?{..._,state:A}:{state:A}}else _&&(b=Ro(_,b));if(s&&!b.ignoreChildExtends)if(b.extends){let A=Array.isArray(b.extends)?b.extends:[b.extends],T=Array.isArray(s)?s:[s];b={...b,extends:[...T,...A]}}else b={...b,extends:s};let k=XC(b?.key,x,S);try{return ee(Cl(b,w),t,k,n)}catch(A){if(typeof console<"u"&&console.error){let T=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${k}" failed to construct at ${T} (initial render, skipping this row):`,A?.message||A)}return null}},p=t.__ref;if(!(r===!0&&!a&&!!p&&(n?.mountYield===!0||t.yieldChildren===!0))){for(let S=0;S<e.length;S++){let b=d(S);!a&&b?.node&&l.appendChild(b.node)}return a||t.node.appendChild(l),!0}let h=p.__childrenChunkGen=(p.__childrenChunkGen||0)+1;tw();let m=null,y=S=>{if(p.__disposed||p.__childrenChunkGen!==h){m&&m.parentNode&&m.remove();return}for(let b=S;b<e.length;b++){let x=d(b);if(x?.node&&(m?t.node.insertBefore(x.node,m):l.appendChild(x.node)),b+1<e.length&&J_()){m||(m=c.createComment("smbls-mount"),l.appendChild(m),t.node.appendChild(l));let _=b+1;nw(()=>y(_));return}}m?(m.remove(),t.node.tagName==="SELECT"&&up(t,!0)):t.node.appendChild(l)};return y(0),ew(),!0}if(typeof e=="string"){let a=QC(e,t);if(Array.isArray(a))return kw(t,a,n,r,!0)}if(typeof e=="object")for(let a in e){if(Ut.has(a))continue;let c=e[a];if(c==null||c===!1)continue;let l=o?Al(i,El(c)):i;if((typeof c=="string"||typeof c=="number")&&(c={text:c}),t.childProps&&(c=Ro(t.childProps,c)),s&&!c.ignoreChildExtends)if(c.extends){let f=Array.isArray(c.extends)?c.extends:[c.extends],u=Array.isArray(s)?s:[s];c={...c,extends:[...u,...f]}}else c={...c,extends:s};ee(Cl(c,l),t,a,n)}}function up(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let r=n.options;if(!r||!r.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,typeof f=="string"&&f.includes("{{")&&(f=Bt.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let c=e||!(o&&o.__selectSynced);if(o&&(o.__selectSynced=!0),!c)return;let l=-1;for(let f=0;f<r.length;f++)r[f].defaultSelected&&(l=f);l>=0&&n.selectedIndex!==l&&(n.selectedIndex=l)}function y1(t,e){let{children:n,content:r}=t,o=t.childExtends,s=typeof n=="function"||JC(t,"children");if(typeof n=="function"){let g=n;try{n=g(t,t.state,t.context)}catch(b){if(n=void 0,typeof console<"u"&&console.error){let x=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${x} (initial run, treating as empty):`,b?.message||b)}}AC(t,n),t.children=n;let h=t.__ref,m=!1,y=It(t,t.childrenDeps,g),S=K(()=>{let b=m;m=!0;let x;try{x=y(t,t.state,t.context)}catch(L){if(typeof console<"u"&&console.error){let H=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${H}${b?"":" (initial tracking run)"}:`,L?.message||L)}return}if(!b||x===t.children)return;AC(t,x),t.children=x,h.__childrenChunkGen!=null&&h.__childrenChunkGen++;let _=typeof t.onContentUpdate=="function",w=_?[]:null,k=_?[]:null,A=_?[]:null;if(Array.isArray(x)&&t.childrenAs==="state"){let L=t.childProps,H=[],lt=new Map;for(let j=0;j<x.length;j++){let et=x[j],B=L;if(typeof L=="function")try{B=L(t,et)}catch{B=null}let V=XC(B&&B.key,et,j);H.push(V),lt.set(V,{rawChild:et,childProps:B})}let Z=new Set(H),ft=h.__children.slice();for(let j of ft)if(!Z.has(j)){let et=t[j];et?.remove&&et.remove(),delete t[j],k&&k.push(j)}let wt=t.childExtends,Pt=t.tag==="fragment",bt=t.context?.document||globalThis.document,$t=Pt?null:bt?.createDocumentFragment(),U=new Set;for(let j of H){let et=lt.get(j),B=et.rawChild,V=t[j];if(V&&V.state){if(B&&typeof B=="object"){let At=V.state,Ge=At.$replace||At.replace,Q=At.$update||At.update;try{if(typeof Ge=="function")Ge.call(At,B);else if(typeof Q=="function"){for(let W in At)if(!(W==="__element"||W==="root"||W==="parent"||W==="update")&&!Object.prototype.hasOwnProperty.call(B,W))try{At[W]=void 0}catch{}Q.call(At,B)}else for(let W in B)At[W]=B[W]}catch(W){if(typeof console<"u"&&console.error){let Nt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${j}" failed to patch at ${Nt} (reconcile, keeping its previous data for this pass):`,W?.message||W)}}}A&&A.push(j);continue}let nt=B;(typeof B=="string"||typeof B=="number")&&(nt={value:B,text:B});let Mt=et.childProps,Lt=Mt?{...Mt,state:nt}:{state:nt},Yi=typeof L=="function"?El(Mt):mi(t,"childProps");if(wt&&!Lt.ignoreChildExtends)if(Lt.extends){let At=Array.isArray(Lt.extends)?Lt.extends:[Lt.extends],Ge=Array.isArray(wt)?wt:[wt];Lt={...Lt,extends:[...Ge,...At]}}else Lt={...Lt,extends:wt};let Xi;try{Xi=ee(Cl(Lt,Yi),t,j,e)}catch(At){if(typeof console<"u"&&console.error){let Ge=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${j}" failed to construct at ${Ge} (reconcile, skipping this row):`,At?.message||At)}U.add(j);continue}!Pt&&Xi?.node&&$t&&$t.appendChild(Xi.node),w&&w.push(j)}if(!Pt&&$t&&$t.childNodes.length&&t.node&&t.node.appendChild($t),!Pt&&t.node){let j=null;for(let et of H){let B=t[et]?.node;if(!B)continue;let V=j?j.nextSibling:t.node.firstChild;B!==V&&t.node.insertBefore(B,V),j=B}}h.__children=U.size?H.filter(j=>!U.has(j)):H,_&&(w.length||k.length)&&xC(t,{added:w,removed:k,kept:A}),up(t,!1);return}let P=_?[...h.__children]:null;for(let L of[...h.__children]){let H=t[L];H?.remove&&H.remove(),delete t[L]}h.__children=[],kw(t,x,e,!1,!0),up(t,!1),_&&xC(t,{added:[...h.__children],removed:P,kept:[]})},{depth:h.path.length,label:ct(h,"children")});h.__effects.push(S)}let i=kw(t,n,e,!0,s);if(r!=null&&!(r&&r.__ref)){let g=r;if(typeof g=="string"||typeof g=="number"?g={text:g}:typeof g!="object"&&(g={}),t.childProps&&(g=Ro(t.childProps,g)),o&&!g.ignoreChildExtends)if(g.extends){let m=Array.isArray(g.extends)?g.extends:[g.extends],y=Array.isArray(o)?o:[o];g={...g,extends:[...y,...m]}}else g={...g,extends:o};let h=Al(mi(t,"childProps"),mi(t,"content"));ee(Cl(g,h),t,"content",e)}if(n&&!i)return;let a=t.context?.components||{},c=t.__ref&&t.__ref.__runtimeSource,l=c?{}:null;{let g=Object.keys(t);for(let h=0;h<g.length;h++){let m=g[h];if(!m.endsWith("Extends")||typeof t[m]!="string")continue;let y=m.slice(0,-7);if(!y||y.charCodeAt(0)<65||y.charCodeAt(0)>90)continue;let S={extends:t[m]};delete t[m];for(let b=h+1;b<g.length;b++){let x=g[b],_=x.charCodeAt(0);if(_>=65&&_<=90||Ut.has(x)||typeof t[x]=="function"&&(x.startsWith("on")||x.startsWith(".")))break;let w=t[x];w!==void 0&&(S[x]=w,delete t[x],l&&Rl(c,x)&&(l[y]||(l[y]={}),l[y][x]=c[x]))}t[y]&&typeof t[y]=="object"?t[y]={...S,...t[y]}:t[y]=S}}let f=e?.mountYield===!0||t.yieldChildren===!0,u=Object.keys(t),d=g=>{if(Ut.has(g)||typeof t[g]!="object"||t[g]===null)return;let h=g.charCodeAt(0);if(h<65||h>90)return;let m=t[g];if(m.__ref)return;if(!m.extends&&!m.extend){let S=a[g]||a[`smbls.${g}`];S&&(m={...m,extends:S})}if(t.childProps&&(m=Ro(t.childProps,m)),o&&!m.ignoreChildExtends)if(m.extends){let S=Array.isArray(m.extends)?m.extends:[m.extends],b=Array.isArray(o)?o:[o];m={...m,extends:[...b,...S]}}else m={...m,extends:o};let y=c?Al(mi(t,"childProps"),Al(l[g]||null,mi(t,g))):null;ee(Cl(m,y),t,g,e)};if(!f){for(let g of u)d(g);return}tw();let p=g=>{for(let h=g;h<u.length;h++)if(d(u[h]),h+1<u.length&&J_()){let m=h+1;nw(()=>p(m));return}};p(0),ew()}function b1(t,e,n){let{node:r}=t;if(!r)return;r.ref=t;let o=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(o){let i=o.parentNode;if(i){if(n?.position==="before"&&n.node)i.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let a=n.node.nextSibling;i.insertBefore(r,a||o)}else i.insertBefore(r,o);return}}let s=e?.node||(e?.nodeType?e:null);if(s)if(n?.position==="before"&&n.node)s.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let i=n.node.nextSibling;i?s.insertBefore(r,i):s.appendChild(r)}else s.appendChild(r)}var vw=3;function $_(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=vw?!1:(t.__inBeforeUpdate=!0,!0)}function Bn(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===vw&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${vw}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function Ht(t,e,n){let r=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Ct(r,e,n);let o="on"+t,s=e[o];if(typeof s=="function"){let c=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(c){if(e.__ref[c])return!0;e.__ref[c]=!0}let l=e.context?.designSystem;l&&J(l);let f=!!c;try{let u=s(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{e.context?.plugins?.length&&Ct("error",e,{hook:o,error:p})||console.error(`[DOMQL] Lifecycle "${o}" error:`,p)}).finally(()=>{c&&d&&(d[c]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(e.context?.plugins?.length&&Ct("error",e,{hook:o,error:u})||console.error(`[DOMQL] Lifecycle "${o}" error:`,u),e.context?.strictMode)throw u}finally{l&&X(),f&&e.__ref&&(e.__ref[c]=!1)}}return!0}qt();var Ll="inertOutside",Tj=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),Oj='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Rj={attributes:!0,attributeFilter:["inert"]},_1=new WeakMap,w1=new WeakMap,Dl=new Set,S1=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Po(t){let e=_e();e&&Xt(null);try{return t()}catch(n){console.error("[smbls] inertOutside:",n)}finally{e&&Xt(e)}}function x1(t){let e=()=>Po(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function Pj(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=_1.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(r=>Po(()=>Lw(e,r))),_1.set(t,e),e)}function A1(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function Lj(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var k1=t=>!!(t.closest&&t.closest("[inert]"));function Dj(t){let e=t.ownerDocument,n=new Set,r=[];for(let o=t;o!==e.body;o=o.parentNode){let s=o.parentNode;if(!s||s.nodeType!==1||s===e.documentElement)break;r.push(s);for(let i=s.firstElementChild;i;i=i.nextElementSibling)i!==o&&!Tj.has(i.tagName)&&n.add(i)}return{outside:n,parents:r}}function v1(t,e){for(let n=0;n<e.length;n++){let{type:r,target:o}=e[n];r==="attributes"&&t.held.has(o)&&t.held.set(o,!o.hasAttribute("inert"))}}function Lw(t,e){let{doc:n,held:r,observer:o}=t;e&&v1(t,e),v1(t,o.takeRecords());let s=t.top,i=[];for(let u of t.layers){let d=A1(u,n);d&&!u.live&&(i.push(u),u.returnFocus=Lj(n)),u.live=d}i.length&&(t.layers=t.layers.filter(u=>!i.includes(u)).concat(i));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:c,parents:l}=a?Dj(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of r)c.has(u)||(d&&u.removeAttribute("inert"),r.delete(u));for(let u of c)r.has(u)||r.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),r.set(u,!0));o.takeRecords(),o.disconnect();for(let u of l)o.observe(u,{childList:!0});for(let u of r.keys())o.observe(u,Rj);if(t.layers.some(u=>!u.live)?Dl.add(t):Dl.delete(t),a===s)return;let f=s&&!(s.declared&&s.live)?s:null;if(a&&i.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),x1(()=>C1(t,a));else if(f){let u=f.returnFocus;x1(()=>Ij(t,f,u))}f&&(f.returnFocus=null)}function C1(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let r=t.doc,o=r.activeElement;if(o&&n.contains(o))return;let s=new Set,i=(a,c)=>{if(s.has(a)||(s.add(a),a.matches(":disabled")))return!1;let l=c&&a.getAttribute("tabindex");return l&&parseInt(l,10)<0?!1:(a.focus(),r.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(i(a,!1))return;for(let a of n.querySelectorAll(Oj))if(i(a,!0))return;o&&o!==r.body&&typeof o.blur=="function"&&o.blur()}function Ij(t,e,n){if(e.declared&&e.live)return;let r=t.doc,o=r.activeElement,s=e.element.node;(!o||o===r.body||s&&s.contains(o)||k1(o))&&(n&&n.isConnected&&n.ownerDocument===r&&!k1(n)&&(n.focus({preventScroll:!0}),r.activeElement===n)||t.top&&C1(t,t.top))}function Pw(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let r=n.layers.indexOf(t);r!==-1&&n.layers.splice(r,1)}Lw(n)}function T1(t){let e=t[Ll];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function E1(t){let e=w1.get(t);if(e)return e;let n=t.__ref,r=t.node;if(!n||!r||r.nodeType!==1)return null;let o=Pj(r.ownerDocument);if(!o)return null;e={element:t,manager:o,declared:!1,live:!1,returnFocus:null},w1.set(t,e);let s=K(()=>{let i=T1(t);Po(()=>Pw(e,i))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+Ll});return n.__effects||(n.__effects=[]),n.__effects.push(s),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Po(()=>Pw(e,!1))),e}function $j(){for(let t of Dl){if(!t.doc.defaultView){Dl.delete(t);continue}t.layers.some(e=>!e.live&&A1(e,t.doc))&&Lw(t)}}var gp={name:Ll,create(t){S1(t,Ll)&&Po(()=>E1(t))},render(){Dl.size&&Po($j)},update(t){S1(t,Ll)&&Po(()=>{let e=E1(t);e&&Pw(e,T1(t))})}};var O1={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"],scrim:["black.45","black.55"],scrimSoft:["black.2","black.3"],blueDeep:"#0A5CB8",blueBright:"#47A8FF",accentInk:["blueDeep","blueBright"],greenDeep:"#2A6E28",greenBright:"#7FD07B",successInk:["greenDeep","greenBright"],redDeep:"#A83520",redBright:"#FF8C78",dangerInk:["redDeep","redBright"],orangeDeep:"#94500F",orangeBright:"#F4A45E",warningInk:["orangeDeep","orangeBright"],magentaDeep:"#A100A1",magentaBright:"#FF7AFF",magentaInk:["magentaDeep","magentaBright"]},R1={"gradient-blue-light":`linear-gradient(to right,
62
62
  rgba(4, 116, 242, 1),
63
63
  rgba(0, 48, 103, 1)
64
64
  )`,"gradient-blue-dark":`linear-gradient(to right,
@@ -84,19 +84,19 @@ FROM ${a}${l}`},N2=t=>{let e=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;
84
84
  #1E54F0 36%,
85
85
  #8B4CCA 69%,
86
86
  #C66894 100%
87
- )`};var Dj={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"}}}},Ij={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},$j={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"}}},T1={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Dj,...Ij,...$j,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var O1={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var R1={ratio:1.618,subSequence:!0};var P1={SourceSans:[{url:""}]},L1={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 D1={symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>',logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></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 I1={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var $1={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var M1={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Dl={version:"0.0.1",color:A1,gradient:C1,theme:T1,typography:O1,spacing:R1,font:P1,fontFamily:L1,timing:$1,icons:D1,media:I1,sizes:M1,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var vi={};F(vi,{A:()=>TO,AssetPicture:()=>tT,Audio:()=>rT,Avatar:()=>YO,B:()=>xT,Block:()=>N1,Box:()=>bp,Br:()=>AT,Bridge:()=>IT,Button:()=>PO,ButtonSet:()=>$O,COMPONENTS:()=>Mo,Caption:()=>pT,Checkbox:()=>NT,CheckboxHgroup:()=>FT,Circle:()=>Z1,CircleButton:()=>DO,Clickable:()=>G1,Data:()=>vT,Dialog:()=>NO,DialogFooter:()=>jO,DialogHeader:()=>FO,Dropdown:()=>ZO,DropdownList:()=>QO,DropdownParent:()=>JO,DropdownParentFocus:()=>tR,DropdownSiblingFocus:()=>eR,FileIcon:()=>XT,Flex:()=>j1,Focusable:()=>Y1,FocusableComponent:()=>X1,Footnote:()=>ST,Form:()=>W1,Grid:()=>V1,Gutter:()=>z1,H1:()=>iT,H2:()=>aT,H3:()=>cT,H4:()=>lT,H5:()=>fT,H6:()=>uT,Headline:()=>_T,Hgroup:()=>PT,HgroupButton:()=>DT,HgroupRows:()=>LT,Hoverable:()=>K1,Hr:()=>ET,I:()=>kT,Icon:()=>GT,IconButton:()=>MO,IconText:()=>YT,Iframe:()=>q1,Img:()=>H1,Inline:()=>F1,InlineFlex:()=>B1,InlineGrid:()=>U1,Input:()=>$T,Italic:()=>yT,KangorooButton:()=>IO,Li:()=>CT,Link:()=>AS,Notification:()=>nR,NumberInput:()=>MT,Ol:()=>OT,P:()=>dT,Picture:()=>J1,Radio:()=>jT,RadioHgroup:()=>BT,Range:()=>XO,RouteLink:()=>OO,RouterLink:()=>CS,SHAPES:()=>mp,Select:()=>RO,Shape:()=>Fw,Span:()=>sT,SquareButton:()=>LO,Strong:()=>hT,Subhead:()=>wT,Svg:()=>eT,Text:()=>oT,Textarea:()=>zT,TextareaWithButton:()=>HT,Theme:()=>Q1,Title:()=>bT,Toggle:()=>VT,ToggleHgroup:()=>UT,Tooltip:()=>qO,TooltipHidden:()=>KO,TooltipLayer:()=>MS,TooltipParent:()=>GO,U:()=>gT,Ul:()=>TT,Underline:()=>mT,Video:()=>nT,depth:()=>yp,focusableRingEnabled:()=>Il,focusableRingToken:()=>Mw,focusableRingValue:()=>Lo,getSystemGlobalTheme:()=>$l});var Lw={};F(Lw,{Block:()=>N1,Flex:()=>j1,Grid:()=>V1,Gutter:()=>z1,Inline:()=>F1,InlineFlex:()=>B1,InlineGrid:()=>U1});var N1={display:"block"},F1={display:"inline"},j1={display:"flex"},B1={display:"inline-flex"},V1={display:"grid"},U1={display:"inline-grid"},z1={boxSize:"C1"};var Dw={};F(Dw,{Img:()=>H1});$();var H1={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ce(t);return e&&e.src||t.src},srcset:t=>{let e=ce(t);return(e?xc(e):"")||t.srcset||t.srcSet}}};var Iw={};F(Iw,{Form:()=>W1});var W1={tag:"form"};var $w={};F($w,{Iframe:()=>q1});var q1={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var Nw={};F(Nw,{Clickable:()=>G1,Focusable:()=>Y1,FocusableComponent:()=>X1,Hoverable:()=>K1,focusableRingEnabled:()=>Il,focusableRingToken:()=>Mw,focusableRingValue:()=>Lo});var Mj={appearance:"none",fontFamily:"inherit"},K1={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},G1={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function Il(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function Mw(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function Lo(t,e,n){let r=Mw(t);return r&&r[e]!==void 0?r[e]:n}var Y1={border:"none",outline:t=>Il(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>Il(t)?Lo(t,"outline","solid X currentColor"):"none",outlineOffset:t=>Il(t)?Lo(t,"outlineOffset"):void 0}},X1={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:Mj};var Vw={};F(Vw,{Picture:()=>J1});var Bw={};F(Bw,{Theme:()=>Q1,getSystemGlobalTheme:()=>$l});var jw={};F(jw,{Circle:()=>Z1,SHAPES:()=>mp,Shape:()=>Fw,default:()=>Nj,depth:()=>yp});$();var He=O(),yp={4:{boxShadow:`rgba(0,0,0,.10) 0 2${He.unit.default} 4${He.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${He.unit.default} 6${He.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${He.unit.default} 10${He.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${He.unit.default} 16${He.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${He.unit.default} 26${He.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${He.unit.default} 42${He.unit.default}`}},wi=t=>st(t.shapeDirectionColor)||st(t.borderColor)||st(t.backgroundColor)||st(t.background),gp=t=>{let e=gl.transition(t.transition,t);return e&&e.transition},mp={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:wi(t),transition:gp(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:wi(t),transition:gp(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:wi(t),transition:gp(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:gp(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${wi(t)} 25%, transparent 25%), linear-gradient(315deg, ${wi(t)} 25%, transparent 25%)`},"&:after":{background:wi(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)"}}}},Fw={deps:{exec:pt,getSpacingBasedOnRatio:Ve,getMediaColor:Vt},classlist:{shape:t=>t.deps.exec(mp[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=mp[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}}},Z1={round:"100%"},Nj=Fw;$();var $l=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},Q1={deps:{depth:yp},classlist:{depth:t=>!Ft(t.depth)&&t.deps.depth[t.depth]}};var J1={deps:{getSystemGlobalTheme:$l},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:$l},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.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 Uw={};F(Uw,{AssetPicture:()=>tT});$();var tT={tag:"picture",children:t=>{let e=ce(t);if(e)return kc(e,t.alt)}};var zw={};F(zw,{Svg:()=>eT});var eT={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:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var Hw={};F(Hw,{Video:()=>nT});$();var nT={tag:"video",controls:!0,attr:{src:t=>{let e=ce(t);return e&&e.src||t.src}},children:t=>{let e=ce(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Ww={};F(Ww,{Audio:()=>rT});$();var rT={tag:"audio",controls:!0,attr:{src:t=>{let e=ce(t);return e&&e.src||t.src}},children:t=>{let e=ce(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var qw={};F(qw,{B:()=>xT,Caption:()=>pT,Data:()=>vT,Footnote:()=>ST,H1:()=>iT,H2:()=>aT,H3:()=>cT,H4:()=>lT,H5:()=>fT,H6:()=>uT,Headline:()=>_T,I:()=>kT,Italic:()=>yT,P:()=>dT,Span:()=>sT,Strong:()=>hT,Subhead:()=>wT,Text:()=>oT,Title:()=>bT,U:()=>gT,Underline:()=>mT});var oT={},sT={tag:"span"},iT={tag:"h1"},aT={tag:"h2"},cT={tag:"h3"},lT={tag:"h4"},fT={tag:"h5"},uT={tag:"h6"},dT={tag:"p"},pT={tag:"caption"},hT={tag:"strong",fontWeight:"700"},gT={tag:"u"},mT={tag:"u"},yT={tag:"i"},bT={},_T={tag:"h6",fontSize:"B",fontWeight:500},wT={tag:"span",fontSize:"Z1"},ST={tag:"span",fontSize:"Z"},xT={tag:"b"},kT={tag:"i"},vT={tag:"data"};var Kw={};F(Kw,{Box:()=>bp,Br:()=>AT,Hr:()=>ET,Li:()=>CT,Ol:()=>OT,Ul:()=>TT});var Fj=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ge(e,t,{unpack:!1});n.__class=r},bp={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Fj},ET={tag:"hr",margin:"C1 0"},AT={tag:"br"},CT={tag:"li"},TT={tag:"ul",childExtends:{extends:"Li"}},OT={tag:"ol",childExtends:{extends:"Li"}};var Gw={};F(Gw,{Hgroup:()=>PT,HgroupButton:()=>DT,HgroupRows:()=>LT});var RT=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},PT={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:RT,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:RT,margin:"0",color:"paragraph"}},LT={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},DT={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Yw={};F(Yw,{Bridge:()=>IT});var IT={tag:"div"};var Xw={};F(Xw,{Input:()=>$T});var $T={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,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,required:t=>t.required,type:t=>t.type}};var Zw={};F(Zw,{NumberInput:()=>MT});var MT={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var Qw={};F(Qw,{Checkbox:()=>NT,CheckboxHgroup:()=>FT});var NT={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:t=>Lo(t,"outline","solid X currentColor"),outlineOffset:t=>Lo(t,"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"}}},FT={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Jw={};F(Jw,{Radio:()=>jT,RadioHgroup:()=>BT});var jT={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}},BT={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var tS={};F(tS,{Toggle:()=>VT,ToggleHgroup:()=>UT});var VT={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}},UT={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var eS={};F(eS,{Textarea:()=>zT,TextareaWithButton:()=>HT});var zT={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"}},HT={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 nS={};F(nS,{FileIcon:()=>XT,Icon:()=>GT,IconText:()=>YT});qt();var WT=new Set,qT=(t,e)=>{if(!WT.has(t)&&(WT.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},KT=new WeakMap,jj=t=>{let e=KT.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},KT.set(t,e)),e},Bj=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},Vj=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);J(t);try{let o=O();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=So(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&xo(s,{document:r}),Object.keys(s).length>0}finally{X()}},Uj=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=jj(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=Promise.resolve().then(()=>i(e,t)).then(f=>{let u=Bj(f,n);return u?Vj(s,u,r):!1}).catch(f=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,f),!1)).then(f=>{a.pending.delete(e);let u=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),u&&u.forEach(d=>{try{d(f)}catch(p){console.error("[Icon] repaint error:",p)}})});return a.pending.set(e,l),!0},GT={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.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:S}=m&&m.utils,b=f(g,h),_=S(b).split(/([a-z])([A-Z])/g),w=_[1]?_[0]:b.split(".")[0].split(" ")[0],k=y&&y[w];if(k){let A=b.includes(".")?"sfsymbols."+b.split(".").slice(1).join("."):"sfsymbols";return b=k[A]||k[b.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${b}"`,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,p=()=>{let g=f(t,e),h=g;if(g.includes(" ")){let M=g.split(" ");g=M[0]+M.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let m=a(g),y=m.split(/([a-z])([A-Z])/g),S=l(t,e,n);if(S){Object.assign(t,S);return}let b;t.isActive&&(b=c(t));let x=r[".isActive"];r&&r.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[m]?_=m:o[y[0]+y[1]]?_=y[0]+y[1]:o[y[0]]?_=y[0]:i&&t.warn("Can't find icon:",g,_);let w=o[_],k=r&&r.src||u;!w&&!k&&(Uj(n,h,m,t,P=>{if(!(d&&d._disposed)){if(!P)return qT(h,t);p()}})||qT(h,t));let A=s&&_,T=w||k||o.noIcon;if(!(t.spriteId===A&&t.src===T&&t.node&&t.node.innerHTML)&&(t.spriteId=A,t.src=T,typeof t.html=="function"&&t.node)){let M=t.context&&t.context.designSystem;M&&J(M);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{M&&X()}}};d=K(p,{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"}},YT={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},XT={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var TS={};F(TS,{A:()=>TO,Link:()=>AS,RouteLink:()=>OO,RouterLink:()=>CS});var ki={};F(ki,{default:()=>uB,getActiveRoute:()=>ES,lastLevel:()=>Sp,lastPathname:()=>Io,loadLazy:()=>_S,matchRoute:()=>xS,parseQuery:()=>kS,parseRoutePattern:()=>SS,resolveRouterElement:()=>Bl,router:()=>Pe,runGuards:()=>vS,saveScrollPosition:()=>Fl});$();var rS="__smblsRouter",oS=new WeakMap,zj=0,sS=()=>Date.now().toString(36)+(++zj).toString(36)+Math.random().toString(36).slice(2,6),iS=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},Wn=t=>{try{return t.state}catch{return}},Nl=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},tO=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},aS=t=>{let e=tO(t)?t[rS]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},cS=(t,e)=>t==null?{[rS]:e}:tO(t)?{...t,[rS]:e}:null,lS=()=>({key:sS(),index:0,chain:sS()}),Si=(t,e)=>{let n=aS(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Nl(t),state:e}},Ml=(t,e,n)=>{if(!n||Nl(t)!==n.url)return!1;let r=aS(e);return n.key?!!r&&r.key===n.key:!r&&e===n.state},fS=(t,e)=>{let n=Wn(e),r=Si(t,n);if(r.key)return r;let o=lS(),s=cS(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return{...o,url:r.url,state:s}},Hj=(t,e)=>{let n=oS.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},oS.set(t,n)),n||null},eO="smbls.router.scroll",ZT=100,Wj=1e3,QT=["wheel","touchstart","keydown","pointerdown"],nO=t=>{try{return t.sessionStorage||null}catch{return null}},rO=t=>{try{let e=JSON.parse(t.getItem(eO)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},oO=(t,e)=>{if(!t.positions){t.positions=new Map;let n=nO(e);if(n)for(let[r,o]of rO(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},uS=(t,e,n,r)=>{let o=oO(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>ZT&&o.delete(o.keys().next().value);let s=nO(e);if(s)try{let i=new Map(rO(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(eO,JSON.stringify(Array.from(i).slice(-ZT)))}catch{}},JT=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},qj=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:Wj,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of QT)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of QT)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return JT(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};JT(t,e,g)},Kj=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=Si(n,Wn(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&uS(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},Gj=t=>{let{win:e,history:n,track:r}=t,o=Wn(n);if(r.pending&&Ml(e,o,r.pending.to)||r.expect&&Ml(e,o,r.expect.away))return;let s=r.current,i=aS(o);if(s&&(s.key?i&&i.key===s.key:Ml(e,o,s))){s.url=Nl(e),s.state=o;return}r.current=t.restore?fS(e,n):Si(e,o),r.pending=null,r.seq++},sO=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=iS(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&Hj(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=Kj(a,c):Gj(a),a},dS=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return e.settled=!0,o.pending===e&&(o.pending=null),o.seq!==e.seq||!Ml(n,Wn(r),e.to)?!1:(o.current=t.restore&&!e.to.key?fS(n,r):e.to,o.seq++,e.committed=!0,!0)},Yj=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},pS=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;n.settled=!0,s.pending===n&&(s.pending=null);let i=n.from;if(!i||s.seq!==n.seq||!Ml(r,Wn(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};Yj(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=lS(),l=cS(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?{...c,url:i.url,state:l}:Si(r,Wn(o)),s.seq++},iO=(t,e)=>{let n=Nl(e);t&&n!==null&&(t.__routerAddress=n)},aO=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return pS(t,!0);r&&!r.settled&&(r.settled=!0,t.track.pending===r&&(t.track.pending=null));let o=iS(n),s=e&&e.__routerAddress;if(!(!o||!s||s===Nl(n)))try{o.replaceState(Wn(o),null,s)}catch{}},cO=(t,e,n,r)=>{let{win:o,history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&uS(i,o,a.key,t.scrollNode);let c=r?Si(o,Wn(s)):fS(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:sS(),index:c.index+1,chain:c.chain}:lS(),f=cS(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?{...l,url:n,state:f}:Si(o,Wn(s)),i.pending=null,i.expect=null,i.seq++},lO=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&oO(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||qj(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},Fl=t=>{let e=iS(t),n=e&&oS.get(e);!n||!n.scrollNode||!n.current||!n.current.key||uS(n,t,n.current.key,n.scrollNode)};$();var pO=["components","functions","methods","snippets"],hO=new Set(["pages",...pO]),hS=new Set(["default","__esModule"]),Do=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Wt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),_p=new WeakMap,fO=new WeakMap,mS=new WeakMap,uO=new Set,xi=(t,e=console.warn)=>{uO.has(t)||(uO.add(t),e(t))},gO=t=>Wt(t&&t.lazy),jl=(t,e)=>{let n=t&&t.lazy;return Wt(n)&&Do(n,e)?n[e]:void 0},yS=(t,e)=>{let n=_p.get(t);n||(_p.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();_p.delete(t)}));let r=n.get(e);return r||(r={status:"idle",promise:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},mO=(t,e)=>!gO(e)||!Wt(t)||!Do(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,bS=t=>!!t&&typeof t=="object"&&mS.has(t),Xj=(t,e)=>{if(typeof jl(t,e)!="function")return"error";let n=_p.get(t)?.get(e);return n&&n.status==="error"?"error":"loading"},Zj=(t,e)=>{let n=fO.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Wt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Wt(f)?f:null,lazyStatus:Xj(c.context,e)}}:(s.state=o,tt()&&xi(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return fO.set(t,a),mS.set(s,a),a},Qj=t=>t.__ref&&t.__ref.contentElementKey||"content",wp=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&bS(n.content)?mS.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[Qj(t)]}},gS=(t,e,n)=>{let r=wp(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},Jj=t=>Wt(t)?!Object.keys(t).some(n=>hO.has(n))&&Wt(t.default)?t.default:t:{},tB=t=>{let e={};if(!Wt(t))return e;for(let n of Object.keys(t)){if(hS.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Do(e,o))&&(e[o]=t[n])}return e},yO=(t,e,n,r,o)=>{if(!Wt(t))return 0;let s=0;for(let i of Object.keys(t))mO(t[i],r)===e&&(s++,Do(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Do(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},dO=(t,e,n)=>{let r=t[e];if(!Wt(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},eB=t=>{let e=t.__ref&&t.__ref.origin;if(!Wt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},nB=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=wp(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of eB(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");xi(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},rB=(t,e,n,r)=>{let o=t.context,s=Jj(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))hO.has(p)||hS.has(p)||xi(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of pO){let g=s[p];if(!Wt(g))continue;let h=Wt(o[p])?o[p]:{},m={};for(let S of Object.keys(g))if(!hS.has(S)){if(Do(h,S)){h[S]!==g[S]&&a.push(`${p}.${S}`);continue}m[S]=g[S]}let y=Object.keys(m);if(y.length&&(dO(o,p,m),p==="components"&&y.forEach(S=>c.add(S)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Wt(o.utils))){let S={};for(let b of y)Do(o.utils,b)||(S[b]=m[b]);Object.keys(S).length&&dO(o,"utils",S)}}l&&ui(o);let f=tB(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Wt(o.pages)&&d.add(o.pages),u&&Wt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Wt(p.routes)&&d.add(p.routes);for(let p of d)yO(p,e,f,o,a);i&&a.length&&xi(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&nB(u,e,c,r)},bO=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;!r||r.group!==e||(n.__lazyRoute=null,typeof t.set=="function"&&wp(t,e)&&Promise.resolve().then(()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}})).catch(o=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,o)))},_O=(t,e)=>{let n=t.context,r=yS(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=jl(n,e);r.status="loading";let s=Promise.resolve().then(()=>o()).then(i=>{r.disposed||rB(t,e,i,r)}).then(()=>{r.status="loaded";let i=[...r.waiting];r.waiting.clear();for(let a of i)bO(a,e)},i=>{if(r.status="error",r.promise=null,r.disposed)throw i;console.error(`[smbls/router] lazy group "${e}" failed to load \u2014 its routes show their placeholder; the next navigation or loadLazy retries.`,i);for(let a of[...r.waiting])wp(a,e)?gS(a,e,"error"):r.waiting.delete(a);throw i});s.catch(()=>{}),r.promise=s;for(let i of r.waiting)gS(i,e,"loading");return s},wO=(t,e,n)=>{let r=e&&e.context,o=mO(t,r);if(!o)return null;let s=yS(r,o);if(Wt(n)&&s.maps.add(n),s.status==="loaded"&&yO(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof jl(r,o)=="function";return i?_O(e,o):xi(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:Zj(t,o).definition,group:o,status:i?"loading":"error"}},SO=(t,e,n)=>{if(!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof jl(r,e.group)!="function")return;let s=yS(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},gS(t,e.group,s.status==="error"?"error":"loading"),s.status==="loaded"){Promise.resolve().then(()=>bO(t,e.group));return}s.waiting.add(t)};function _S(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));let r=jl(n,t);return typeof r!="function"?(r===void 0&&gO(n)&&tt()&&xi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):_O(e,t)}var kO=/^:(.+)/,vO=/^\*$/,xO=new Map,SS=t=>{let e=xO.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(kO);a?r.push({index:i,name:a[1]}):vO.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return xO.set(t,s),s},xS=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),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=SS(l),u=oB(o,f);u>a&&(a=u,i=l,c=sB(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},oB=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(kO.test(n[i]))o+=1;else if(vO.test(n[i]))o+=.5;else return-1;return o},sB=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},kS=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},vS=async(t,e)=>{if(!t||!t.length)return!0;for(let n of t){let r=await n(e);if(r===!1)return!1;if(typeof r=="string")return r}return!0},Bl=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},iB=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Bl(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},ES=(t=0,e)=>{e||(e=typeof C<"u"?C.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Io,Sp=0,wS=0,aB=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,cB=t=>t&&(t.scrollingElement||t.documentElement)||null,EO={level:Sp,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},lB=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},AO=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},fB=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(AO(e),!n||!n.node||typeof t.onRouteExit>"u"||!lB(s,i))return null;let c=typeof o=="number"&&o>=0?o:EO.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=An("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Pe=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||C,i=o?.context?.document||dt,a={...EO,...o.context.routerOptions,...r};Sp=a.lastLevel,o=iB(o,a);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=aB(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,d=new u(f+t),{pathname:p,search:g,hash:h}=d,m=kS(g),y=o.node,S=h&&h!==s.location.hash.slice(1),b=p!==Io,x=Io,_=++wS;Io=p;let w=c.__routerRendered,k,A,T,M;if(a.useParamsMatching){let U=xS(p,o.routes,a.level);k=U.key,A=U.routePath,T=U.content,M=U.params}else{k=ES(a.level,p),A=k;let U=o.routes;T=U?U[k||"/"]||U["/*"]:null,M={}}a.scrollNode===void 0&&(a.scrollNode=cB(i));let P=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let L=sO(s,a,P);if(L&&L.pop&&L.pop.echo)return;if(!T){wS===_&&(Io=x),a.onNotFound?a.onNotFound({pathname:p,route:k,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&aO(L,c,s));return}if(a.guards&&a.guards.length){let U={pathname:p,route:k,params:M,query:m,hash:h,element:o,state:n},j=await vS(a.guards,U);if(j===!1){wS===_&&(Io=x),pS(L);return}if(typeof j=="string")return L&&L.pop?dS(L)?Pe(j,e,n,{...r,guards:[],event:void 0,pushState:!0,replace:!0}):void 0:a.initialRender?Pe(j,e,n,{...r,guards:[],pushState:!0,replace:!0}):Pe(j,e,n,{...r,guards:[]})}let H=wO(T,o,o.routes);if(H&&H.rematch)return Pe(t,o,n,r);H&&(T=H.content,a.lazy={group:H.group,status:H.status});let lt=c.__routerNavSeq=(c.__routerNavSeq||0)+1,Z=!w||w.content!==T||w.route!==k,ft=b||Z||a.force===!0;if(ft&&w&&!bS(w.content)){let U=fB(o,c,o[l],{from:w.route,to:k,pathname:p,params:M,query:m,hash:h},a.exitTimeout,i,s);if(U&&(await U,c.__routerNavSeq!==lt||(c.__routeExit&&c.__routeExit.wait===U&&(c.__routeExit=null),typeof o?.set!="function")))return}else AO(c);if(a.pushState){let U=p+(g||"")+(h||"");if(L)cO(L,n,U,a.replace);else try{a.replace?s.history.replaceState(n,null,U):s.history.pushState(n,null,U)}catch{}}else L&&dS(L);iO(c,s);let Pt=b||!S?{route:k,routePath:A,hash:h,params:M,query:m,debugging:!1}:{params:M,query:m};if(a.updateState&&o.state.update(Pt,{preventContentUpdate:!0}),ft){l&&a.removeOldElement&&o[l].remove();let U=o.__ref?.origin?.content,j={};if(U)for(let nt in U){let Mt=U[nt];nt==="__ref"||nt==="props"||nt==="node"||nt==="parent"||nt==="key"||(typeof Mt=="string"||typeof Mt=="number"||typeof Mt=="boolean"||typeof Mt=="object"&&Mt!==null&&!Mt.node&&!Mt.__ref)&&(j[nt]=Mt)}let et={...j,...typeof T=="object"?T:{extends:T}};a.useFragment&&(et.tag="fragment");let B={content:T,route:k},V=c.__routerRendered;try{if(typeof o?.set!="function")return;c.__routerRendered=B,o.set(et,{contentElementKey:l})}catch(nt){c.__routerRendered===B&&(c.__routerRendered=V),console.error("[smbls/router] failed to render route content",p,nt)}}let bt=!b&&S,$t=lO(L,P,a,i);if(!$t&&a.scrollToTop&&!bt&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!$t&&a.scrollToNode&&T[l]?.node?.scrollTo&&T[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!$t&&h){let U=i.getElementById(h.slice(1));if(U&&P?.scrollTo){let j=s.getComputedStyle?s.getComputedStyle(U):null,et=j&&parseFloat(j.scrollMarginTop)||0,B=U.getBoundingClientRect().top+P.scrollTop-et-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:B,left:0})}}H&&SO(o,H,U=>Pe(t,o,n,{...r,...U})),An("routeChanged",o,a)},uB=Pe;var dB=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},CO=(t,e,n)=>{let{context:r}=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||dB(t,e))return;let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Pe)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},AS={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ar(t,t.href)||Ar(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:CO},TO={extends:"Link"},CS={onClick:CO},OO={extends:[AS,CS]};var OS={};F(OS,{Select:()=>RO});var RO={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 RS={};F(RS,{Button:()=>PO,ButtonSet:()=>$O,CircleButton:()=>DO,IconButton:()=>MO,KangorooButton:()=>IO,SquareButton:()=>LO});var PO={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},LO={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},DO={extends:"SquareButton",round:"C"},IO={extends:"Button",childExtends:"IconText"},$O={tag:"nav",display:"flex",childExtends:"SquareButton"},MO={extends:["SquareButton","ClickableItem"],round:"Z"};var PS={};F(PS,{Dialog:()=>NO,DialogFooter:()=>jO,DialogHeader:()=>FO});var NO={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},FO={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},jO={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 NS={};F(NS,{Tooltip:()=>qO,TooltipHidden:()=>KO,TooltipLayer:()=>MS,TooltipParent:()=>GO});$();var pB='[data-tooltip]:not([data-tooltip=""])',BO={top:1,bottom:1,left:1,right:1},LS={top:"bottom",bottom:"top",left:"right",right:"left"},$o=6,VO=new WeakMap,hB=0,me=t=>{let e=VO.get(t);return e||(e={id:"smbls-tooltip-"+ ++hB,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},VO.set(t,e)),e},DS=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},gB=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},mB=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},UO=(t,e)=>{let n=gB(t);if(!e||!n)return null;let r;try{r=e.closest(pB)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(mB(o))return null;return r},yB=(t,e)=>!!(e&&t.node&&t.node.contains(e)),bB=t=>{try{return t.matches(":focus-visible")}catch{return!0}},zO=(t,e)=>typeof t=="number"&&t>=0?t:e,Ep=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},IS=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),_B=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},$S=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},wB=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+$o;s[n]<i(n)&&s[LS[n]]>=i(LS[n])&&(n=LS[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+$o:t.top-e.height-$o):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+$o:t.left-e.width-$o);let l=(f,u)=>Math.max($o,Math.min(u-$o,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},SB=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},xB=t=>(t.title||"")+(t.description||""),kp=(t,e=0)=>{let r=me(t).shown;if(!r||!IS(t))return;if(!r.isConnected){vp(t);return}let o=t.node,s=t.state;if(o.textContent!==xB(s)){e<3&&setTimeout(()=>kp(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=SB(o),u=r.getAttribute("data-tooltip-placement"),d=BO[u]?u:BO[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=wB(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},kB=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},HO=(t,e)=>{let n=me(t);Ep(n),!(!IS(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&$S(n.shown,n.id),n.shown=e,_B(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),kB(()=>kp(t)))};function vp(t){let e=me(t);Ep(e),e.shown&&$S(e.shown,e.id),e.shown=null,IS(t)&&t.state.open&&t.state.update({open:!1})}var xp=(t,e)=>{let n=me(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){Ep(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){vp(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,vp(t)},zO(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){HO(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,HO(t,r)},zO(t.tooltipDelay,250))},WO=t=>{let e=me(t);e.shown&&(e.dismissed=e.shown,vp(t))},MS={role:"tooltip",id:t=>me(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=me(e),r=DS(t.target),o=yB(e,r)?n.shown:UO(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,xp(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=me(e);n.hover&&(n.hover=null,xp(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=me(e),r=DS(t.target);n.shown&&r&&n.shown.contains(r)&&WO(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=me(e),r=DS(t.target),o=r&&bB(r)?UO(e,r):null;o!==n.focus&&(n.focus=o,xp(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=me(e);n.focus&&(n.focus=null,xp(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&WO(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{me(e).shown&&kp(e)}},onWindowResize:(t,e)=>{me(e).shown&&kp(e)},onBeforeRemove:t=>{let e=me(t);Ep(e),e.shown&&$S(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var qO={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=>Dt(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)}},KO={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)}},GO={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var FS={};F(FS,{Avatar:()=>YO});var vB=t=>{let n=`<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(n)},YO={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 n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=vB(n)},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 jS={};F(jS,{Range:()=>XO});var XO={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,n):n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,n):n.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:Is("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Is("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n: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 BS={};F(BS,{Dropdown:()=>ZO,DropdownList:()=>QO,DropdownParent:()=>JO,DropdownParentFocus:()=>tR,DropdownSiblingFocus:()=>eR});var ZO={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},QO={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",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"}}},JO={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},tR={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()}}},eR={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 VS={};F(VS,{Notification:()=>nR});var nR={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 Mo=Object.assign({},Lw,Dw,Iw,$w,Nw,Vw,Uw,zw,jw,Hw,Ww,Bw,qw,Kw,Gw,Yw,Xw,Zw,Qw,Jw,tS,eS,nS,TS,OS,RS,PS,NS,FS,jS,BS,VS);function Ap(t){if(t==null)return 0;if(typeof t!="object")return rR(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^Ap(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^rR(n[r]))*16777619,e=(e^Ap(t[n[r]]))*16777619;return e>>>0}function rR(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Cp(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(!Cp(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Cp(t[s],e[s]))return!1}return!0}function US(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 n=!1,r={};for(let o in t)if(o in e){let s=US(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function zS(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?zS(t[r],o,n):t[r]=o}return t}function Rr(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function Ei(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Vl(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Rr(e)}function oR(t){return t.split(`
87
+ )`};var Mj={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"}}}},Nj={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},Fj={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"}}},P1={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...Mj,...Nj,...Fj,backdrop:{"@light":{background:"scrim",backdropFilter:"blur(8px)"},"@dark":{background:"scrim",backdropFilter:"blur(8px)"}},backdropSoft:{"@light":{background:"scrimSoft",backdropFilter:"blur(4px)"},"@dark":{background:"scrimSoft",backdropFilter:"blur(4px)"}},none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var L1={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var D1={ratio:1.618,subSequence:!0};var I1={SourceSans:[{url:""}]},$1={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 M1={symbols:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></svg>',logo:'<svg xmlns="http://www.w3.org/2000/svg" width="41" height="42" viewBox="0 0 41 42"><path fill="currentColor" fill-rule="evenodd" d="M26.6448969,0.699064106 C31.4862479,1.83000067 35.6718819,4.48073656 38.3104478,8.91022511 C40.5212645,12.5974948 41.4936378,17.0951724 40.5085112,21.3679841 C39.7174644,25.0315254 37.8558379,27.853625 34.8002871,29.8369535 C31.9792925,31.7073227 27.90737,32.069064 24.6776501,31.3213124 C23.2887047,30.9944607 20.6411869,29.9775216 19.044333,28.0178349 C17.5928447,26.2365433 17.1250067,23.5192397 17.0461096,22.8419583 C16.9044422,21.6258334 17.1065683,20.249997 17.3800113,19.0276209 C17.9614095,16.4655592 18.9984397,14.7924534 21.1401118,13.3818866 C22.95018,12.1750388 24.6834696,11.8738651 26.7601335,12.3496124 C28.1855093,12.6880929 29.4520072,13.526716 30.3514025,14.7276098 C30.6271426,15.093878 30.8260324,15.4389318 31.059655,15.8362933 L30.9598079,15.7715366 C29.6377659,14.9422902 28.1654404,14.6590001 26.6448969,15.0752526 C25.2996601,15.4486698 24.1453463,16.3687006 23.4390969,17.6304467 C22.6973258,18.9448239 22.4839364,20.5087166 22.8465467,21.9733145 C23.2152637,23.4394215 24.1276197,24.6832715 25.381967,25.429977 C26.7647836,26.2608222 28.5893081,26.47537 30.1320438,26.0161118 C32.0344739,25.4497656 33.5958796,24.1165457 34.5824098,22.3233381 C35.8078311,20.0959926 36.0316242,17.5753145 35.4197363,15.1376991 C34.8712232,12.9726344 33.491011,11.1258939 31.7578503,9.86101942 C28.3978494,7.40873928 23.8145474,6.88014849 19.8961329,8.1555193 C16.9596954,9.11146975 14.399202,11.0657028 12.6221782,13.707146 C10.5375814,16.8894059 9.73736372,20.794518 10.3986926,24.5579956 C10.9302311,27.7327705 12.5716868,31.0242929 14.8485647,33.1339502 C15.5517576,33.7855358 16.0056239,34.2996296 16.8186608,34.9238068 C16.1252729,35.6670587 15.729719,36.1210912 15.0276006,36.8553491 L10.5425168,41.6144377 C8.59431563,40.2572487 6.84060794,38.6181461 5.33246714,36.7448351 C1.65619854,32.1632109 -0.0655234106,26.1858125 0.562658817,20.1851649 C1.1000136,14.4158268 3.81414269,9.08050481 8.0996615,5.36924966 C12.3107417,1.69300072 17.6911238,0.0107792851 23.1108097,0.299129816 C25.006381,0.458182488 26.18441,0.591493918 26.6448969,0.699064106 Z"/></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 N1={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920.02px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680.02px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440.02px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366.02px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280.02px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024.02px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768.02px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560.02px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480.02px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375.02px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var F1={base:150,ratio:1.333,unit:"ms",subSequence:!0,defaultBezier:"cubic-bezier(.29, .67, .51, .97)",springBezier:"cubic-bezier(.32, .72, 0, 1)"};var j1={radiusControl:"12px",radiusCard:"17px",radiusSheet:"24px",radiusPill:"999px",controlH:"44px",controlHCompact:"36px"};var Il={version:"0.0.1",color:O1,gradient:R1,theme:P1,typography:L1,spacing:D1,font:I1,fontFamily:$1,timing:F1,icons:M1,media:N1,sizes:j1,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}},modalIn:{from:{transform:"scale(0.95)",opacity:0},to:{transform:"",opacity:1}},modalOut:{to:{transform:"scale(0.95)",opacity:0}}},devices:{},class:{},svg:{},grid:{},shape:{}};var Ai={};F(Ai,{A:()=>PO,AssetPicture:()=>rT,Audio:()=>iT,Avatar:()=>QO,B:()=>ET,Block:()=>B1,Box:()=>_p,Br:()=>OT,Bridge:()=>NT,Button:()=>IO,ButtonSet:()=>FO,COMPONENTS:()=>Mo,Caption:()=>mT,Checkbox:()=>BT,CheckboxHgroup:()=>VT,Circle:()=>tT,CircleButton:()=>MO,Clickable:()=>Z1,Data:()=>CT,Dialog:()=>BO,DialogFooter:()=>UO,DialogHeader:()=>VO,Dropdown:()=>tR,DropdownList:()=>eR,DropdownParent:()=>nR,DropdownParentFocus:()=>rR,DropdownSiblingFocus:()=>oR,FileIcon:()=>JT,Flex:()=>U1,Focusable:()=>Q1,FocusableComponent:()=>J1,Footnote:()=>vT,Form:()=>G1,Grid:()=>H1,Gutter:()=>q1,H1:()=>lT,H2:()=>fT,H3:()=>uT,H4:()=>dT,H5:()=>pT,H6:()=>hT,Headline:()=>xT,Hgroup:()=>IT,HgroupButton:()=>MT,HgroupRows:()=>$T,Hoverable:()=>X1,Hr:()=>TT,I:()=>AT,Icon:()=>ZT,IconButton:()=>jO,IconText:()=>QT,Iframe:()=>Y1,Img:()=>K1,Inline:()=>V1,InlineFlex:()=>z1,InlineGrid:()=>W1,Input:()=>FT,Italic:()=>wT,KangorooButton:()=>NO,Li:()=>RT,Link:()=>TS,Notification:()=>sR,NumberInput:()=>jT,Ol:()=>LT,P:()=>gT,Picture:()=>nT,Radio:()=>UT,RadioHgroup:()=>zT,Range:()=>JO,RouteLink:()=>LO,RouterLink:()=>OS,SHAPES:()=>yp,Select:()=>DO,Shape:()=>Bw,Span:()=>cT,SquareButton:()=>$O,Strong:()=>yT,Subhead:()=>kT,Svg:()=>oT,Text:()=>aT,Textarea:()=>qT,TextareaWithButton:()=>KT,Theme:()=>eT,Title:()=>ST,Toggle:()=>HT,ToggleHgroup:()=>WT,Tooltip:()=>YO,TooltipHidden:()=>XO,TooltipLayer:()=>FS,TooltipParent:()=>ZO,U:()=>bT,Ul:()=>PT,Underline:()=>_T,Video:()=>sT,depth:()=>bp,focusableRingEnabled:()=>$l,focusableRingToken:()=>Fw,focusableRingValue:()=>Lo,getSystemGlobalTheme:()=>Ml});var Iw={};F(Iw,{Block:()=>B1,Flex:()=>U1,Grid:()=>H1,Gutter:()=>q1,Inline:()=>V1,InlineFlex:()=>z1,InlineGrid:()=>W1});var B1={display:"block"},V1={display:"inline"},U1={display:"flex"},z1={display:"inline-flex"},H1={display:"grid"},W1={display:"inline-grid"},q1={boxSize:"C1"};var $w={};F($w,{Img:()=>K1});$();var K1={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=ce(t);return e&&e.src||t.src},srcset:t=>{let e=ce(t);return(e?vc(e):"")||t.srcset||t.srcSet}}};var Mw={};F(Mw,{Form:()=>G1});var G1={tag:"form"};var Nw={};F(Nw,{Iframe:()=>Y1});var Y1={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var jw={};F(jw,{Clickable:()=>Z1,Focusable:()=>Q1,FocusableComponent:()=>J1,Hoverable:()=>X1,focusableRingEnabled:()=>$l,focusableRingToken:()=>Fw,focusableRingValue:()=>Lo});var jj={appearance:"none",fontFamily:"inherit"},X1={transition:"opacity C defaultBezier, transform C defaultBezier",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}}},Z1={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function $l(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function Fw(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let r=n.outline||void 0,o=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return r||o!==void 0?{outline:r,outlineOffset:o}:null}function Lo(t,e,n){let r=Fw(t);return r&&r[e]!==void 0?r[e]:n}var Q1={border:"none",outline:t=>$l(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>$l(t)?Lo(t,"outline","solid X currentColor"):"none",outlineOffset:t=>$l(t)?Lo(t,"outlineOffset"):void 0}},J1={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:jj};var zw={};F(zw,{Picture:()=>nT});var Uw={};F(Uw,{Theme:()=>eT,getSystemGlobalTheme:()=>Ml});var Vw={};F(Vw,{Circle:()=>tT,SHAPES:()=>yp,Shape:()=>Bw,default:()=>Bj,depth:()=>bp});$();var We=O(),bp={4:{boxShadow:`rgba(0,0,0,.10) 0 2${We.unit.default} 4${We.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${We.unit.default} 6${We.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${We.unit.default} 10${We.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${We.unit.default} 16${We.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${We.unit.default} 26${We.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${We.unit.default} 42${We.unit.default}`}},xi=t=>st(t.shapeDirectionColor)||st(t.borderColor)||st(t.backgroundColor)||st(t.background),mp=t=>{let e=ml.transition(t.transition,t);return e&&e.transition},yp={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:xi(t),transition:mp(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:xi(t),transition:mp(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:xi(t),transition:mp(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:mp(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${xi(t)} 25%, transparent 25%), linear-gradient(315deg, ${xi(t)} 25%, transparent 25%)`},"&:after":{background:xi(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)"}}}},Bw={deps:{exec:pt,getSpacingBasedOnRatio:Ve,getMediaColor:Vt},classlist:{shape:t=>t.deps.exec(yp[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=yp[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}}},tT={round:"100%"},Bj=Bw;$();var Ml=({context:t,state:e})=>{let n=e&&e.root,r=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return r==="auto"?null:r},eT={deps:{depth:bp},classlist:{depth:t=>!Ft(t.depth)&&t.deps.depth[t.depth]}};var nT={deps:{getSystemGlobalTheme:Ml},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ml},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:r}=t,{media:o}=n.designSystem,s=r.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 Hw={};F(Hw,{AssetPicture:()=>rT});$();var rT={tag:"picture",children:t=>{let e=ce(t);if(e)return Ec(e,t.alt)}};var Ww={};F(Ww,{Svg:()=>oT});var oT={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:n,utils:r}=e,o=n&&n.svg,s=t.spriteId||n&&n.useSvgSprite,i=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof i=="string"){let d=i.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let m=r&&r.scratchSystem&&r.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof m=="function"?m({[p]:i},{document:g}):r&&typeof r.init=="function"&&r.init({svg:{[p]:i}},{document:g,emotion:e.emotion})}return a(p)}}if(!s&&i)return i;let c=t.spriteId;if(c)return a(c);if(o&&o[i])return a(i);let l=Symbol.for(i),f=o[l];if(f&&o[f])return a(f);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<i.length;d++)u=(u<<5)-u+i.charCodeAt(d)|0;return f=o[l]=`svg-${(u>>>0).toString(36)}`,r.init({svg:{[f]:i}},{document:e.document,emotion:e.emotion}),a(f)}};var qw={};F(qw,{Video:()=>sT});$();var sT={tag:"video",controls:!0,attr:{src:t=>{let e=ce(t);return e&&e.src||t.src}},children:t=>{let e=ce(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Kw={};F(Kw,{Audio:()=>iT});$();var iT={tag:"audio",controls:!0,attr:{src:t=>{let e=ce(t);return e&&e.src||t.src}},children:t=>{let e=ce(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var Gw={};F(Gw,{B:()=>ET,Caption:()=>mT,Data:()=>CT,Footnote:()=>vT,H1:()=>lT,H2:()=>fT,H3:()=>uT,H4:()=>dT,H5:()=>pT,H6:()=>hT,Headline:()=>xT,I:()=>AT,Italic:()=>wT,P:()=>gT,Span:()=>cT,Strong:()=>yT,Subhead:()=>kT,Text:()=>aT,Title:()=>ST,U:()=>bT,Underline:()=>_T});var aT={},cT={tag:"span"},lT={tag:"h1"},fT={tag:"h2"},uT={tag:"h3"},dT={tag:"h4"},pT={tag:"h5"},hT={tag:"h6"},gT={tag:"p"},mT={tag:"caption"},yT={tag:"strong",fontWeight:"700"},bT={tag:"u"},_T={tag:"u"},wT={tag:"i"},ST={},xT={tag:"h6",fontSize:"B",fontWeight:500},kT={tag:"span",fontSize:"Z1"},vT={tag:"span",fontSize:"Z"},ET={tag:"b"},AT={tag:"i"},CT={tag:"data"};var Yw={};F(Yw,{Box:()=>_p,Br:()=>OT,Hr:()=>TT,Li:()=>RT,Ol:()=>LT,Ul:()=>PT});var Vj=t=>{if(!t.context)return;let{props:e,__ref:n}=t,r=ge(e,t,{unpack:!1});n.__class=r},_p={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:Vj},TT={tag:"hr",margin:"C1 0"},OT={tag:"br"},RT={tag:"li"},PT={tag:"ul",childExtends:{extends:"Li"}},LT={tag:"ol",childExtends:{extends:"Li"}};var Xw={};F(Xw,{Hgroup:()=>IT,HgroupButton:()=>MT,HgroupRows:()=>$T});var DT=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},IT={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:DT,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:DT,margin:"0",color:"paragraph"}},$T={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},MT={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Zw={};F(Zw,{Bridge:()=>NT});var NT={tag:"div"};var Qw={};F(Qw,{Input:()=>FT});var FT={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,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,required:t=>t.required,type:t=>t.type}};var Jw={};F(Jw,{NumberInput:()=>jT});var jT={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var tS={};F(tS,{Checkbox:()=>BT,CheckboxHgroup:()=>VT});var BT={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:t=>Lo(t,"outline","solid X currentColor"),outlineOffset:t=>Lo(t,"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"}}},VT={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var eS={};F(eS,{Radio:()=>UT,RadioHgroup:()=>zT});var UT={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}},zT={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var nS={};F(nS,{Toggle:()=>HT,ToggleHgroup:()=>WT});var HT={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}},WT={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var rS={};F(rS,{Textarea:()=>qT,TextareaWithButton:()=>KT});var qT={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"}},KT={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 oS={};F(oS,{FileIcon:()=>JT,Icon:()=>ZT,IconText:()=>QT});qt();var GT=new Set,YT=(t,e)=>{if(!GT.has(t)&&(GT.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,r=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${r} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},XT=new WeakMap,Uj=t=>{let e=XT.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},XT.set(t,e)),e},zj=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},Hj=(t,e,n)=>{let r=n&&n.context&&n.context.document||(typeof document<"u"?document:null);J(t);try{let o=O();o&&!o.__svgCache&&(o.__svgCache={}),t.__svgCache||(t.__svgCache={});let s={};for(let i in e){let a=So(e[i],i);a&&(t.icons[i]=a,s[i]=a)}return t.useIconSprite&&r&&Object.keys(s).length&&xo(s,{document:r}),Object.keys(s).length>0}finally{X()}},Wj=(t,e,n,r,o)=>{let s=t&&t.designSystem,i=s&&s.iconsLoader;if(typeof i!="function"||!s.icons)return!1;let a=Uj(s);if(a.failed.has(e))return!1;let c=a.waiting.get(e);if(c||(c=new Set,a.waiting.set(e,c)),c.add(o),a.pending.has(e))return!0;let l=Promise.resolve().then(()=>i(e,t)).then(f=>{let u=zj(f,n);return u?Hj(s,u,r):!1}).catch(f=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,f),!1)).then(f=>{a.pending.delete(e);let u=a.waiting.get(e);a.waiting.delete(e),f||a.failed.add(e),u&&u.forEach(d=>{try{d(f)}catch(p){console.error("[Icon] repaint error:",p)}})});return a.pending.set(e,l),!0},ZT={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:r}=t,{icons:o,useIconSprite:s,verbose:i}=n&&n.designSystem,{toCamelCase:a}=n&&n.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:S}=m&&m.utils,b=f(g,h),_=S(b).split(/([a-z])([A-Z])/g),w=_[1]?_[0]:b.split(".")[0].split(" ")[0],k=y&&y[w];if(k){let A=b.includes(".")?"sfsymbols."+b.split(".").slice(1).join("."):"sfsymbols";return b=k[A]||k[b.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${b}"`,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,p=()=>{let g=f(t,e),h=g;if(g.includes(" ")){let M=g.split(" ");g=M[0]+M.slice(1).map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join("")}let m=a(g),y=m.split(/([a-z])([A-Z])/g),S=l(t,e,n);if(S){Object.assign(t,S);return}let b;t.isActive&&(b=c(t));let x=r[".isActive"];r&&r.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[m]?_=m:o[y[0]+y[1]]?_=y[0]+y[1]:o[y[0]]?_=y[0]:i&&t.warn("Can't find icon:",g,_);let w=o[_],k=r&&r.src||u;!w&&!k&&(Wj(n,h,m,t,P=>{if(!(d&&d._disposed)){if(!P)return YT(h,t);p()}})||YT(h,t));let A=s&&_,T=w||k||o.noIcon;if(!(t.spriteId===A&&t.src===T&&t.node&&t.node.innerHTML)&&(t.spriteId=A,t.src=T,typeof t.html=="function"&&t.node)){let M=t.context&&t.context.designSystem;M&&J(M);try{let P=t.html(t,t.state,t.context);P!=null&&typeof P!="function"&&(t.node.innerHTML=P)}finally{M&&X()}}};d=K(p,{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"}},QT={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},JT={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var RS={};F(RS,{A:()=>PO,Link:()=>TS,RouteLink:()=>LO,RouterLink:()=>OS});var Ei={};F(Ei,{default:()=>hB,getActiveRoute:()=>CS,lastLevel:()=>xp,lastPathname:()=>Io,loadLazy:()=>SS,matchRoute:()=>vS,parseQuery:()=>ES,parseRoutePattern:()=>kS,resolveRouterElement:()=>Vl,router:()=>Pe,runGuards:()=>AS,saveScrollPosition:()=>jl});$();var sS="__smblsRouter",iS=new WeakMap,qj=0,aS=()=>Date.now().toString(36)+(++qj).toString(36)+Math.random().toString(36).slice(2,6),cS=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},Wn=t=>{try{return t.state}catch{return}},Fl=t=>{try{let{pathname:e,search:n,hash:r}=t.location;return e+n+r}catch{return null}},rO=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},lS=t=>{let e=rO(t)?t[sS]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},fS=(t,e)=>t==null?{[sS]:e}:rO(t)?{...t,[sS]:e}:null,uS=()=>({key:aS(),index:0,chain:aS()}),ki=(t,e)=>{let n=lS(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:Fl(t),state:e}},Nl=(t,e,n)=>{if(!n||Fl(t)!==n.url)return!1;let r=lS(e);return n.key?!!r&&r.key===n.key:!r&&e===n.state},dS=(t,e)=>{let n=Wn(e),r=ki(t,n);if(r.key)return r;let o=uS(),s=fS(n,o);if(!s)return r;try{e.replaceState(s,null)}catch{return r}return{...o,url:r.url,state:s}},Kj=(t,e)=>{let n=iS.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},iS.set(t,n)),n||null},oO="smbls.router.scroll",tO=100,Gj=1e3,eO=["wheel","touchstart","keydown","pointerdown"],sO=t=>{try{return t.sessionStorage||null}catch{return null}},iO=t=>{try{let e=JSON.parse(t.getItem(oO)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},aO=(t,e)=>{if(!t.positions){t.positions=new Map;let n=sO(e);if(n)for(let[r,o]of iO(n))o&&Number.isFinite(o.top)&&Number.isFinite(o.left)&&t.positions.set(r,{top:o.top,left:o.left})}return t.positions},pS=(t,e,n,r)=>{let o=aO(t,e);o.delete(n),o.set(n,{top:Math.round(Number(r.scrollTop)||0),left:Math.round(Number(r.scrollLeft)||0)}),o.size>tO&&o.delete(o.keys().next().value);let s=sO(e);if(s)try{let i=new Map(iO(s));for(let[a,c]of o)i.delete(a),i.set(a,c);s.setItem(oO,JSON.stringify(Array.from(i).slice(-tO)))}catch{}},nO=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},Yj=(t,e,n,r,o,s,i)=>{n.restore&&n.restore.end("replaced"),n.restore=r;let a=typeof i=="number"&&i>=0?i:Gj,c=()=>Math.max(0,(Number(o.scrollHeight)||0)-(Number(o.clientHeight)||0)),l=(h,m)=>{typeof o.scrollTo=="function"?o.scrollTo({top:h,left:m,behavior:"instant"}):(o.scrollTop=h,o.scrollLeft=m)},f=typeof t.addEventListener=="function",u=()=>r.end("visitor");if(r.end=h=>{if(!r.outcome&&(r.outcome=h,f))for(let m of eO)t.removeEventListener(m,u,!0)},c()>=s.top-1)return l(s.top,s.left),r.end("placed");Number(o.scrollTop)>0&&l(0,0);let d=Number(o.scrollTop)||0,p=Date.now();if(f)for(let h of eO)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(r.outcome)return;if(n.seq!==r.seq)return r.end("overtaken");if(Math.abs((Number(o.scrollTop)||0)-d)>1)return r.end("visitor");let h=c()>=s.top-1;if(!h&&Date.now()-p<a)return nO(t,e,g);l(Math.min(s.top,c()),s.left),r.end(h?"placed":"clamped")};nO(t,e,g)},Xj=(t,e)=>{let{win:n,history:r,track:o}=t,s=o.pops.get(e);if(s)return s;let i=ki(n,Wn(r)),a=o.expect;o.expect=null;let c;if(a&&i.key===a.key&&i.url===a.url)c={echo:!0};else{let l=o.current,f=!!(i.key&&l&&l.key===i.key),u=f?null:l;u&&u.key&&t.scrollNode&&pS(o,n,u.key,t.scrollNode),c={to:i,from:u,stay:f,seq:o.seq,settled:!1,committed:!1},o.pending=c}return o.pops.set(e,c),c},Zj=t=>{let{win:e,history:n,track:r}=t,o=Wn(n);if(r.pending&&Nl(e,o,r.pending.to)||r.expect&&Nl(e,o,r.expect.away))return;let s=r.current,i=lS(o);if(s&&(s.key?i&&i.key===s.key:Nl(e,o,s))){s.url=Fl(e),s.state=o;return}r.current=t.restore?dS(e,n):ki(e,o),r.pending=null,r.seq++},cO=(t,e,n)=>{let r=e.scrollRestoration==="restore",o=cS(t),s=r||Array.isArray(e.guards)&&e.guards.length>0,i=o&&Kj(o,s);if(!i)return null;let a={win:t,history:o,track:i,restore:r,scrollNode:r&&n?n:null,pop:null};a.scrollNode&&(i.scrollNode=a.scrollNode);let c=e.event;return c&&c.type==="popstate"?a.pop=Xj(a,c):Zj(a),a},hS=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:r,track:o}=t;return e.settled=!0,o.pending===e&&(o.pending=null),o.seq!==e.seq||!Nl(n,Wn(r),e.to)?!1:(o.current=t.restore&&!e.to.key?dS(n,r):e.to,o.seq++,e.committed=!0,!0)},Qj=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},gS=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:r,history:o,track:s}=t;n.settled=!0,s.pending===n&&(s.pending=null);let i=n.from;if(!i||s.seq!==n.seq||!Nl(r,Wn(o),n.to))return;let a=n.to;if(!e&&i.key&&a.key&&i.chain===a.chain&&i.index!==a.index){let f=s.expect={key:i.key,url:i.url,away:a};Qj(r,s,f);try{o.go(i.index-a.index)}catch{s.expect=null}return}let c=uS(),l=fS(i.state,c);try{o.replaceState(l||i.state,null,i.url)}catch{return}s.current=l?{...c,url:i.url,state:l}:ki(r,Wn(o)),s.seq++},lO=(t,e)=>{let n=Fl(e);t&&n!==null&&(t.__routerAddress=n)},fO=(t,e,n)=>{let r=t&&t.pop;if(r&&!r.echo&&r.from)return gS(t,!0);r&&!r.settled&&(r.settled=!0,t.track.pending===r&&(t.track.pending=null));let o=cS(n),s=e&&e.__routerAddress;if(!(!o||!s||s===Fl(n)))try{o.replaceState(Wn(o),null,s)}catch{}},uO=(t,e,n,r)=>{let{win:o,history:s,track:i}=t,a=i.current;!r&&a&&a.key&&t.scrollNode&&pS(i,o,a.key,t.scrollNode);let c=r?ki(o,Wn(s)):dS(o,s),l=c.key?r?{key:c.key,index:c.index,chain:c.chain}:{key:aS(),index:c.index+1,chain:c.chain}:uS(),f=fS(e,l);try{r?s.replaceState(f||e,null,n):s.pushState(f||e,null,n)}catch{return}i.current=f?{...l,url:n,state:f}:ki(o,Wn(s)),i.pending=null,i.expect=null,i.seq++},dO=(t,e,n,r)=>{if(!t||!t.restore||!e)return!1;let o=t.pop;if(o?o.stay||!o.committed:!n.initialRender)return!1;let{win:s,track:i}=t,a=i.current,c=a&&a.key&&aO(i,s).get(a.key);if(!c)return!1;let l=i.restore;return!!l&&l.key===a.key&&(o?l.pop===o:!l.pop&&l.seq===i.seq)&&l.outcome==="visitor"||Yj(s,r,i,{key:a.key,pop:o,seq:i.seq,outcome:null},e,c,n.scrollRestoreTimeout),!0},jl=t=>{let e=cS(t),n=e&&iS.get(e);!n||!n.scrollNode||!n.current||!n.current.key||pS(n,t,n.current.key,n.scrollNode)};$();var mO=["components","functions","methods","snippets"],yO=new Set(["pages",...mO]),mS=new Set(["default","__esModule"]),Do=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Wt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),wp=new WeakMap,pO=new WeakMap,bS=new WeakMap,hO=new Set,vi=(t,e=console.warn)=>{hO.has(t)||(hO.add(t),e(t))},bO=t=>Wt(t&&t.lazy),Bl=(t,e)=>{let n=t&&t.lazy;return Wt(n)&&Do(n,e)?n[e]:void 0},_S=(t,e)=>{let n=wp.get(t);n||(wp.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let o of n.values())o.disposed=!0,o.waiting.clear();wp.delete(t)}));let r=n.get(e);return r||(r={status:"idle",promise:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,r)),r},_O=(t,e)=>!bO(e)||!Wt(t)||!Do(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,wS=t=>!!t&&typeof t=="object"&&bS.has(t),Jj=(t,e)=>{if(typeof Bl(t,e)!="function")return"error";let n=wp.get(t)?.get(e);return n&&n.status==="error"?"error":"loading"},tB=(t,e)=>{let n=pO.get(t);if(n&&n.group===e)return n;let{lazy:r,state:o,...s}=t,i=o==null||Wt(o)||typeof o=="function";i?s.state=(c,l)=>{let f=typeof o=="function"?o(c,l):o;return{...Wt(f)?f:null,lazyStatus:Jj(c.context,e)}}:(s.state=o,tt()&&vi(`[smbls/router] the placeholder of lazy group "${e}" binds its state to a path (${JSON.stringify(o)}), so it gets no \`lazyStatus\` \u2014 give it its own state object to show a load failure.`));let a={definition:s,group:e,hasStatus:i};return pO.set(t,a),bS.set(s,a),a},eB=t=>t.__ref&&t.__ref.contentElementKey||"content",Sp=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,r=n&&wS(n.content)?bS.get(n.content):null;return!r||r.group!==e?null:{record:r,page:t[eB(t)]}},yS=(t,e,n)=>{let r=Sp(t,e);if(!r||!r.record.hasStatus)return;let o=r.page&&r.page.state;if(!(!o||typeof o.update!="function"||o.lazyStatus===n))try{o.update({lazyStatus:n})}catch(s){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,s)}},nB=t=>Wt(t)?!Object.keys(t).some(n=>yO.has(n))&&Wt(t.default)?t.default:t:{},rB=t=>{let e={};if(!Wt(t))return e;for(let n of Object.keys(t)){if(mS.has(n))continue;let r=n.charCodeAt(0)===47,o=r?n:"/"+(n==="index"?"":n);(r||!Do(e,o))&&(e[o]=t[n])}return e},wO=(t,e,n,r,o)=>{if(!Wt(t))return 0;let s=0;for(let i of Object.keys(t))_O(t[i],r)===e&&(s++,Do(n,i)?t[i]=n[i]:delete t[i]);for(let i of Object.keys(n))Do(t,i)?t[i]!==n[i]&&o.push(`pages['${i}']`):t[i]=n[i];return s},gO=(t,e,n)=>{let r=t[e];if(!Wt(r)){t[e]={...n};return}try{for(let o in n)r[o]=n[o];if(Object.keys(n).every(o=>r[o]===n[o]))return}catch{}t[e]={...r,...n}},oB=t=>{let e=t.__ref&&t.__ref.origin;if(!Wt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(s=>typeof s=="string").map(s=>(s.includes(">")?s.split(">")[0]:s).trim());let r=t.key;if(typeof r!="string"||!/^[A-Z]/.test(r))return[];let o=[r.indexOf("_"),r.indexOf(".")].filter(s=>s>0);return[o.length?r.slice(0,Math.min(...o)):r]},sB=(t,e,n,r)=>{let o=new Set;for(let i of r.waiting){let a=Sp(i,e);a&&a.page&&o.add(a.page)}let s=i=>{let a=i&&i.__ref&&i.__ref.__children;if(Array.isArray(a))for(let c of a){let l=i[c];if(!(!l||!l.__ref||o.has(l)||!l.node)){for(let f of oB(l)){if(!n.has(f))continue;let u=(l.__ref.path||[l.key]).join(" \u203A ");vi(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}s(l)}}};s(t)},iB=(t,e,n,r)=>{let o=t.context,s=nB(n),i=tt(),a=[],c=new Set;if(i)for(let p of Object.keys(s))yO.has(p)||mS.has(p)||vi(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let l=!1;for(let p of mO){let g=s[p];if(!Wt(g))continue;let h=Wt(o[p])?o[p]:{},m={};for(let S of Object.keys(g))if(!mS.has(S)){if(Do(h,S)){h[S]!==g[S]&&a.push(`${p}.${S}`);continue}m[S]=g[S]}let y=Object.keys(m);if(y.length&&(gO(o,p,m),p==="components"&&y.forEach(S=>c.add(S)),p==="methods"&&(l=!0),(p==="functions"||p==="snippets")&&Wt(o.utils))){let S={};for(let b of y)Do(o.utils,b)||(S[b]=m[b]);Object.keys(S).length&&gO(o,"utils",S)}}l&&pi(o);let f=rB(s.pages);r.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;Wt(o.pages)&&d.add(o.pages),u&&Wt(u.routes)&&d.add(u.routes);for(let p of r.maps)d.add(p);for(let p of r.waiting)Wt(p.routes)&&d.add(p.routes);for(let p of d)wO(p,e,f,o,a);i&&a.length&&vi(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),i&&c.size&&u&&sB(u,e,c,r)},SO=(t,e)=>{let n=t&&t.__ref,r=n&&n.__lazyRoute;!r||r.group!==e||(n.__lazyRoute=null,typeof t.set=="function"&&Sp(t,e)&&Promise.resolve().then(()=>r.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}})).catch(o=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,o)))},xO=(t,e)=>{let n=t.context,r=_S(n,e);if(r.status==="loading"||r.status==="loaded")return r.promise;let o=Bl(n,e);r.status="loading";let s=Promise.resolve().then(()=>o()).then(i=>{r.disposed||iB(t,e,i,r)}).then(()=>{r.status="loaded";let i=[...r.waiting];r.waiting.clear();for(let a of i)SO(a,e)},i=>{if(r.status="error",r.promise=null,r.disposed)throw i;console.error(`[smbls/router] lazy group "${e}" failed to load \u2014 its routes show their placeholder; the next navigation or loadLazy retries.`,i);for(let a of[...r.waiting])Sp(a,e)?yS(a,e,"error"):r.waiting.delete(a);throw i});s.catch(()=>{}),r.promise=s;for(let i of r.waiting)yS(i,e,"loading");return s},kO=(t,e,n)=>{let r=e&&e.context,o=_O(t,r);if(!o)return null;let s=_S(r,o);if(Wt(n)&&s.maps.add(n),s.status==="loaded"&&wO(n,o,s.pages||{},r,[])>0)return{rematch:!0};let i=typeof Bl(r,o)=="function";return i?xO(e,o):vi(`[smbls/router] a route names lazy group "${o}", which context.lazy does not declare as a loader (\`lazy: { ${o}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:tB(t,o).definition,group:o,status:i?"loading":"error"}},vO=(t,e,n)=>{if(!e||!e.group||e.status==="error")return;let r=t.context,o=t.__ref;if(!o||typeof Bl(r,e.group)!="function")return;let s=_S(r,e.group);if(o.__lazyRoute={group:e.group,rerender:n},yS(t,e.group,s.status==="error"?"error":"loading"),s.status==="loaded"){Promise.resolve().then(()=>SO(t,e.group));return}s.waiting.add(t)};function SS(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));let r=Bl(n,t);return typeof r!="function"?(r===void 0&&bO(n)&&tt()&&vi(`[smbls/router] loadLazy('${t}'): context.lazy declares no group "${t}" \u2014 nothing to load.`),Promise.resolve()):xO(e,t)}var AO=/^:(.+)/,CO=/^\*$/,EO=new Map,kS=t=>{let e=EO.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),r=[],o=!1;for(let i=0;i<n.length;i++){let a=n[i].match(AO);a?r.push({index:i,name:a[1]}):CO.test(n[i])&&(o=!0)}let s={segments:n,params:r,hasWildcard:o,pattern:t};return EO.set(t,s),s},vS=(t,e,n=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),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=kS(l),u=aB(o,f);u>a&&(a=u,i=l,c=cB(o,f))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},aB=(t,e)=>{let{segments:n,hasWildcard:r}=e;if(!r&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let o=0,s=Math.min(n.length,t.length);for(let i=0;i<s;i++)if(n[i]===t[i])o+=3;else if(AO.test(n[i]))o+=1;else if(CO.test(n[i]))o+=.5;else return-1;return o},cB=(t,e)=>{let n={};for(let{index:r,name:o}of e.params)t[r]&&(n[o]=decodeURIComponent(t[r]));return n},ES=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((r,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(r)):e[o]=r}),e},AS=async(t,e)=>{if(!t||!t.length)return!0;for(let n of t){let r=await n(e);if(r===!1)return!1;if(typeof r=="string")return r}return!0},Vl=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},lB=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let r=Vl(t,n);return!r||r===t?t:(t.routes&&(r.routes=t.routes),r)},CS=(t=0,e)=>{e||(e=typeof C<"u"?C.location.pathname:"/");let r=e.split("/")[t+1];if(r)return`/${r}`},Io,xp=0,xS=0,fB=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,uB=t=>t&&(t.scrollingElement||t.documentElement)||null,TO={level:xp,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},dB=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},OO=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},pB=(t,e,n,r,o,s,i)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(OO(e),!n||!n.node||typeof t.onRouteExit>"u"||!dB(s,i))return null;let c=typeof o=="number"&&o>=0?o:TO.exitTimeout,l=typeof AbortController=="function"?new AbortController:null,f={...r,page:n,timeout:c,signal:l?l.signal:void 0},u;try{u=An("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{l&&!l.signal.aborted&&l.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},c),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},Pe=async(t,e,n={},r={})=>{let o=e||void 0,s=o?.context?.window||C,i=o?.context?.document||dt,a={...TO,...o.context.routerOptions,...r};xp=a.lastLevel,o=lB(o,a);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=fB(t);let u=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,d=new u(f+t),{pathname:p,search:g,hash:h}=d,m=ES(g),y=o.node,S=h&&h!==s.location.hash.slice(1),b=p!==Io,x=Io,_=++xS;Io=p;let w=c.__routerRendered,k,A,T,M;if(a.useParamsMatching){let U=vS(p,o.routes,a.level);k=U.key,A=U.routePath,T=U.content,M=U.params}else{k=CS(a.level,p),A=k;let U=o.routes;T=U?U[k||"/"]||U["/*"]:null,M={}}a.scrollNode===void 0&&(a.scrollNode=uB(i));let P=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}let L=cO(s,a,P);if(L&&L.pop&&L.pop.echo)return;if(!T){xS===_&&(Io=x),a.onNotFound?a.onNotFound({pathname:p,route:k,element:o}):(a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{})),a.event&&a.event.type==="popstate"&&fO(L,c,s));return}if(a.guards&&a.guards.length){let U={pathname:p,route:k,params:M,query:m,hash:h,element:o,state:n},j=await AS(a.guards,U);if(j===!1){xS===_&&(Io=x),gS(L);return}if(typeof j=="string")return L&&L.pop?hS(L)?Pe(j,e,n,{...r,guards:[],event:void 0,pushState:!0,replace:!0}):void 0:a.initialRender?Pe(j,e,n,{...r,guards:[],pushState:!0,replace:!0}):Pe(j,e,n,{...r,guards:[]})}let H=kO(T,o,o.routes);if(H&&H.rematch)return Pe(t,o,n,r);H&&(T=H.content,a.lazy={group:H.group,status:H.status});let lt=c.__routerNavSeq=(c.__routerNavSeq||0)+1,Z=!w||w.content!==T||w.route!==k,ft=b||Z||a.force===!0;if(ft&&w&&!wS(w.content)){let U=pB(o,c,o[l],{from:w.route,to:k,pathname:p,params:M,query:m,hash:h},a.exitTimeout,i,s);if(U&&(await U,c.__routerNavSeq!==lt||(c.__routeExit&&c.__routeExit.wait===U&&(c.__routeExit=null),typeof o?.set!="function")))return}else OO(c);if(a.pushState){let U=p+(g||"")+(h||"");if(L)uO(L,n,U,a.replace);else try{a.replace?s.history.replaceState(n,null,U):s.history.pushState(n,null,U)}catch{}}else L&&hS(L);lO(c,s);let Pt=b||!S?{route:k,routePath:A,hash:h,params:M,query:m,debugging:!1}:{params:M,query:m};if(a.updateState&&o.state.update(Pt,{preventContentUpdate:!0}),ft){l&&a.removeOldElement&&o[l].remove();let U=o.__ref?.origin?.content,j={};if(U)for(let nt in U){let Mt=U[nt];nt==="__ref"||nt==="props"||nt==="node"||nt==="parent"||nt==="key"||(typeof Mt=="string"||typeof Mt=="number"||typeof Mt=="boolean"||typeof Mt=="object"&&Mt!==null&&!Mt.node&&!Mt.__ref)&&(j[nt]=Mt)}let et={...j,...typeof T=="object"?T:{extends:T}};a.useFragment&&(et.tag="fragment");let B={content:T,route:k},V=c.__routerRendered;try{if(typeof o?.set!="function")return;c.__routerRendered=B,o.set(et,{contentElementKey:l})}catch(nt){c.__routerRendered===B&&(c.__routerRendered=V),console.error("[smbls/router] failed to render route content",p,nt)}}let bt=!b&&S,$t=dO(L,P,a,i);if(!$t&&a.scrollToTop&&!bt&&P?.scrollTo&&P.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!$t&&a.scrollToNode&&T[l]?.node?.scrollTo&&T[l].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!$t&&h){let U=i.getElementById(h.slice(1));if(U&&P?.scrollTo){let j=s.getComputedStyle?s.getComputedStyle(U):null,et=j&&parseFloat(j.scrollMarginTop)||0,B=U.getBoundingClientRect().top+P.scrollTop-et-(a.scrollToOffset||0);P.scrollTo({...a.scrollToOptions||{},top:B,left:0})}}H&&vO(o,H,U=>Pe(t,o,n,{...r,...U})),An("routeChanged",o,a)},hB=Pe;var gB=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let r=n.getAttribute("target");return r&&r.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},RO=(t,e,n)=>{let{context:r}=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||gB(t,e))return;let{utils:c,snippets:l,functions:f,routerOptions:u}=r,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),m=d;for(let y of h){if(!m||!m[y]){m=null;break}m=m[y]}m&&(g=m,d.routes&&(g.routes=d.routes))}(f.router||l.router||c.router||Pe)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",s)?s:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},TS={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>Ar(t,t.href)||Ar(t,t.call("exec",t,t).href),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:RO},PO={extends:"Link"},OS={onClick:RO},LO={extends:[TS,OS]};var PS={};F(PS,{Select:()=>DO});var DO={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 LS={};F(LS,{Button:()=>IO,ButtonSet:()=>FO,CircleButton:()=>MO,IconButton:()=>jO,KangorooButton:()=>NO,SquareButton:()=>$O});var IO={extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},$O={extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},MO={extends:"SquareButton",round:"C"},NO={extends:"Button",childExtends:"IconText"},FO={tag:"nav",display:"flex",childExtends:"SquareButton"},jO={extends:["SquareButton","ClickableItem"],round:"Z"};var DS={};F(DS,{Dialog:()=>BO,DialogFooter:()=>UO,DialogHeader:()=>VO});var BO={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},VO={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},UO={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 jS={};F(jS,{Tooltip:()=>YO,TooltipHidden:()=>XO,TooltipLayer:()=>FS,TooltipParent:()=>ZO});$();var mB='[data-tooltip]:not([data-tooltip=""])',zO={top:1,bottom:1,left:1,right:1},IS={top:"bottom",bottom:"top",left:"right",right:"left"},$o=6,HO=new WeakMap,yB=0,me=t=>{let e=HO.get(t);return e||(e={id:"smbls-tooltip-"+ ++yB,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},HO.set(t,e)),e},$S=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},bB=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},_B=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},WO=(t,e)=>{let n=bB(t);if(!e||!n)return null;let r;try{r=e.closest(mB)}catch{return null}if(!r||!n.contains(r))return null;for(let o=r;o&&o!==n;o=o.parentElement)if(_B(o))return null;return r},wB=(t,e)=>!!(e&&t.node&&t.node.contains(e)),SB=t=>{try{return t.matches(":focus-visible")}catch{return!0}},qO=(t,e)=>typeof t=="number"&&t>=0?t:e,Ap=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},MS=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),xB=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},NS=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let r=n.split(/\s+/).filter(o=>o&&o!==e);r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")},kB=(t,e,n,r,o)=>{let s={top:t.top,bottom:o-t.bottom,left:t.left,right:r-t.right},i=f=>(f==="top"||f==="bottom"?e.height:e.width)+$o;s[n]<i(n)&&s[IS[n]]>=i(IS[n])&&(n=IS[n]);let a,c;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,c=n==="bottom"?t.bottom+$o:t.top-e.height-$o):(c=t.top+(t.height-e.height)/2,a=n==="right"?t.right+$o:t.left-e.width-$o);let l=(f,u)=>Math.max($o,Math.min(u-$o,f));return{left:l(a,r-e.width),top:l(c,o-e.height),side:n}},vB=t=>{let e=t.ownerDocument,n=e&&e.defaultView,r=e&&e.documentElement;return{width:r&&r.clientWidth||n&&n.innerWidth||0,height:r&&r.clientHeight||n&&n.innerHeight||0}},EB=t=>(t.title||"")+(t.description||""),vp=(t,e=0)=>{let r=me(t).shown;if(!r||!MS(t))return;if(!r.isConnected){Ep(t);return}let o=t.node,s=t.state;if(o.textContent!==EB(s)){e<3&&setTimeout(()=>vp(t,e+1),0);return}let i=r.getBoundingClientRect(),a=o.getBoundingClientRect(),c=a.left-(s.x||0),l=a.top-(s.y||0),f=vB(o),u=r.getAttribute("data-tooltip-placement"),d=zO[u]?u:zO[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=kB(i,{width:a.width,height:a.height},d,f.width,f.height);s.update({x:Math.round(p.left-c),y:Math.round(p.top-l),side:p.side,placed:!0})},AB=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},KO=(t,e)=>{let n=me(t);Ap(n),!(!MS(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&NS(n.shown,n.id),n.shown=e,xB(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),AB(()=>vp(t)))};function Ep(t){let e=me(t);Ap(e),e.shown&&NS(e.shown,e.id),e.shown=null,MS(t)&&t.state.open&&t.state.update({open:!1})}var kp=(t,e)=>{let n=me(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let r=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(r===n.shown){Ap(n);return}if(!r){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){Ep(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,Ep(t)},qO(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){KO(t,r);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,KO(t,r)},qO(t.tooltipDelay,250))},GO=t=>{let e=me(t);e.shown&&(e.dismissed=e.shown,Ep(t))},FS={role:"tooltip",id:t=>me(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=me(e),r=$S(t.target),o=wB(e,r)?n.shown:WO(e,r);o===n.hover&&(o||!n.shown)||(n.hover=o,kp(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=me(e);n.hover&&(n.hover=null,kp(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=me(e),r=$S(t.target);n.shown&&r&&n.shown.contains(r)&&GO(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=me(e),r=$S(t.target),o=r&&SB(r)?WO(e,r):null;o!==n.focus&&(n.focus=o,kp(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=me(e);n.focus&&(n.focus=null,kp(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&GO(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{me(e).shown&&vp(e)}},onWindowResize:(t,e)=>{me(e).shown&&vp(e)},onBeforeRemove:t=>{let e=me(t);Ap(e),e.shown&&NS(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var YO={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=>Dt(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)}},XO={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)}},ZO={position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var BS={};F(BS,{Avatar:()=>QO});var CB=t=>{let n=`<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(n)},QO={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 n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=CB(n)},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 VS={};F(VS,{Range:()=>JO});var JO={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{e.call("isFunction",e.onInput)?e.onInput(t,e,n):n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{e.call("isFunction",e.onChange)?e.onChange(t,e,n):n.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:Is("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:Is("#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,n)=>{let r=t.call("exec",t[e],t);return(t.call("isFunction",r)?r(t,t.state):r!==void 0?r:n!==void 0?n: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 US={};F(US,{Dropdown:()=>tR,DropdownList:()=>eR,DropdownParent:()=>nR,DropdownParentFocus:()=>rR,DropdownSiblingFocus:()=>oR});var tR={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},eR={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",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"}}},nR={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},rR={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()}}},oR={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 zS={};F(zS,{Notification:()=>sR});var sR={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 Mo=Object.assign({},Iw,$w,Mw,Nw,jw,zw,Hw,Ww,Vw,qw,Kw,Uw,Gw,Yw,Xw,Zw,Qw,Jw,tS,eS,nS,rS,oS,RS,PS,LS,DS,jS,BS,VS,US,zS);function Cp(t){if(t==null)return 0;if(typeof t!="object")return iR(String(t));let e=2166136261;if(Array.isArray(t)){e=(e^91)*16777619;for(let r=0;r<t.length;r++)e=(e^Cp(t[r]))*16777619;return e>>>0}let n=Object.keys(t).sort();for(let r=0;r<n.length;r++)e=(e^iR(n[r]))*16777619,e=(e^Cp(t[n[r]]))*16777619;return e>>>0}function iR(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e}function Tp(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(!Tp(t[o],e[o]))return!1;return!0}let n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++){let s=n[o];if(!Object.prototype.hasOwnProperty.call(e,s)||!Tp(t[s],e[s]))return!1}return!0}function HS(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 n=!1,r={};for(let o in t)if(o in e){let s=HS(t[o],e[o]);r[o]=s,s!==t[o]&&(n=!0)}else r[o]=t[o];for(let o in e)o in t||(r[o]=e[o],n=!0);return n?r:t}function WS(t,e,n){if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;if(n||(n=new WeakSet),n.has(e))return t;n.add(e);for(let r in e){let o=e[r];o&&typeof o=="object"&&!Array.isArray(o)&&t[r]&&typeof t[r]=="object"&&!Array.isArray(t[r])?WS(t[r],o,n):t[r]=o}return t}function Rr(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=e*16777619>>>0;return e.toString(36)}function Ci(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Ul(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Rr(e)}function aR(t){return t.split(`
88
88
  `).map(Rr).join(`
89
- `)}var sR={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 iR(t,e){let n=sR[t]||Rr(t),r=Vl(e),o=`_${n}-${r}`,s=Ei(t),i=TB[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
90
- ${c}`}var TB={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},OB="@media (hover: hover)",RB=/(?:^|[^\\]):hover(?![\w-])/,aR=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function cR(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||aR(i))continue;let a=sR[s]||Rr(s),c=Vl(i),l=`_${a}-${c}`,f=Ei(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
91
- `)}function lR(t,e,n){let r=t+e,o=`_c${Rr(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(aR(u)||(i+=`${Ei(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return n!==!1&&RB.test(c)&&(a=`${OB}{${a}}`),`${o}
92
- ${a}`}var HS=null;function Op(t){HS=t}var on={structuralHash:Ap,deepEqual:Cp,mergeStructural:US,overwriteDeep:zS,shortHash:Rr,toKebab:Ei,sanitizeValue:Vl,batchShortHash:oR,atomicCssClass:iR,batchAtomicCss:cR,compoundCssClass:lR},fR=!1,Tp=null;function uR(t){return Tp||(Tp=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(on.structuralHash=e.structuralHash),e.deepEqual&&(on.deepEqual=e.deepEqual),e.mergeStructural&&(on.mergeStructural=e.mergeStructural),e.overwriteDeep&&(on.overwriteDeep=e.overwriteDeep),e.shortHash&&(on.shortHash=e.shortHash),e.toKebab&&(on.toKebab=e.toKebab),e.sanitizeValue&&(on.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(on.batchShortHash=e.batchShortHash),e.atomicCssClass&&(on.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(on.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(on.compoundCssClass=e.compoundCssClass),fR=!0,HS&&e.batchAtomicCss&&HS({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Tp)}function dR(){return fR}$();var Ul={};F(Ul,{CDN_PROVIDERS:()=>Ne,DOMQL_EVENTS:()=>Bg,DOMQ_PROPERTIES:()=>rr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>im,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Xu,LIBRARY_SCOPES_KEY:()=>io,METHODS:()=>sr,METHODS_EXL:()=>ha,NODE_ENV:()=>Ge,OPTIONS:()=>Va,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>pa,PROPS_METHODS:()=>or,REVIVED_MARK:()=>wa,STATE_METHODS:()=>zr,STATE_PROPERTIES:()=>Fg,SVG_TAGS:()=>Ak,TYPES:()=>ia,UNIVERSAL_RESERVED_KEYS:()=>zu,__resetBuiltinMethodWarnings:()=>Qy,addCaching:()=>mu,addContext:()=>gu,addExtend:()=>Om,addExtends:()=>dn,addItemAfterEveryElement:()=>Eg,addProtoToArray:()=>la,addRef:()=>du,applyCSS:()=>KS,applyDependentState:()=>Gm,applyEvent:()=>xu,applyEventUpdate:()=>ku,applyExtends:()=>Ok,applyProps:()=>Ia,arrayContainsOtherArray:()=>bg,arraysEqual:()=>Cg,arrayzeValue:()=>lo,bindLibraryGlobalScopes:()=>yc,buildImgSrcset:()=>xc,buildSourcesAndImg:()=>kc,cache:()=>Jm,call:()=>Cy,captureSnapshot:()=>Oy,checkForStateTypes:()=>Hm,checkIfInherits:()=>Su,checkIfStringIsInArray:()=>Rg,clone:()=>Wg,cloneAndMergeArrayExtend:()=>Aa,cloneFunction:()=>pm,collectExtendsList:()=>ms,concatAddExtends:()=>Am,copyJavaScriptToClipboard:()=>ob,copyStringToClipboard:()=>rb,createBasedOnType:()=>uu,createElement:()=>zm,createElementExtends:()=>Jf,createExtends:()=>Ta,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ru,createIfConditionFlag:()=>hm,createInheritedState:()=>Wm,createKey:()=>va,createNestedObject:()=>Jg,createNestedObjectByKeyPath:()=>Km,createObjectWithoutPrototype:()=>Wf,createParent:()=>pu,createPath:()=>hu,createProps:()=>$a,createPropsStack:()=>lu,createRoot:()=>Um,createScope:()=>Xm,createSnapshotId:()=>ka,customDecodeURIComponent:()=>Ng,customEncodeURIComponent:()=>Mg,cutArrayAfterValue:()=>kg,cutArrayBeforeValue:()=>xg,debounce:()=>Ea,debounceOnContext:()=>um,decodeNewlines:()=>$g,deepClone:()=>ut,deepContains:()=>Zg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Qf,deepMerge:()=>at,deepMergeExtends:()=>pn,deepStringifyFunctions:()=>ya,defineSetter:()=>Ey,destringifyGlobalScope:()=>Xr,detectHeightOnInit:()=>Iy,detectInfiniteLoop:()=>rm,document:()=>dt,encodeNewlines:()=>Ig,error:()=>eo,excludeKeysFromObject:()=>sm,exec:()=>pt,exposeBagGlobalScopes:()=>bc,extendCachedRegistry:()=>Cm,extendStackRegistry:()=>Oa,extractArrayExtend:()=>Pa,fetchLibraryData:()=>Zu,fibonacciNumberByIndex:()=>$y,fileEntryUrl:()=>qu,filterArrays:()=>Tg,filterArraysFast:()=>Og,finalizeExtends:()=>ou,findClosestNumber:()=>Ku,findClosestNumberInFactory:()=>Ky,findInheritedState:()=>wu,findKeyPosition:()=>Lg,flattenExtend:()=>bs,formatDate:()=>Dy,generateHash:()=>Yf,generateHeadArrayTags:()=>Wu,generateKey:()=>xa,generateMetaTags:()=>Wy,get:()=>Sy,getActiveRoute:()=>ES,getCDNDirUrl:()=>Hu,getCDNUrl:()=>Ze,getCapitalCaseKeys:()=>Lm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>_u,getChildren:()=>vy,getContext:()=>ic,getCookie:()=>_m,getDB:()=>uc,getEmotionStylesheet:()=>cb,getExtendsInElement:()=>Rm,getExtendsStack:()=>Ca,getExtendsStackRegistry:()=>Zf,getFrequencyInArray:()=>_g,getFunctionSource:()=>we,getHashedExtend:()=>Ra,getImportMapScript:()=>Ly,getInObjectByPath:()=>nm,getLocalStorage:()=>Sm,getNev:()=>fm,getPageMetadata:()=>qy,getParentStateInKey:()=>bu,getPath:()=>tc,getQuery:()=>dc,getRef:()=>ky,getRoot:()=>rc,getRootContext:()=>sc,getRootData:()=>oc,getRootState:()=>nc,getRootStateInKey:()=>yu,getSpreadChildren:()=>Dm,global:()=>gg,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Gg,hashContent:()=>oo,inheritChildExtends:()=>eu,inheritChildPropsExtends:()=>tu,inheritParentProps:()=>Ma,inheritRecursiveChildExtends:()=>nu,init:()=>qn,initProps:()=>jm,is:()=>se,isArray:()=>I,isBoolean:()=>Ff,isBuiltinElementMethod:()=>jg,isContextComponent:()=>Im,isCyclic:()=>om,isDOMNode:()=>oe,isDate:()=>Bf,isDefined:()=>Dt,isDevelopment:()=>ar,isEmpty:()=>zf,isEmptyObject:()=>Yg,isEqualDeep:()=>Hf,isFailedRevival:()=>Gr,isFunction:()=>R,isHtmlElement:()=>oa,isLazyFunction:()=>qg,isLocal:()=>lm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Ty,isMobile:()=>ym,isNode:()=>En,isNot:()=>yg,isNotProduction:()=>Qr,isNull:()=>jf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>My,isPolyglotRetranslatableKey:()=>Ba,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRevived:()=>Yr,isStaging:()=>cm,isState:()=>qm,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>_a,isTest:()=>Kf,isTesting:()=>am,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Ry,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>km,isWrappedLibrary:()=>Qe,joinArrays:()=>is,jointStacks:()=>Tm,keys:()=>Vu,lastLevel:()=>Sp,lastPathname:()=>Io,libraryPackageSpecs:()=>Os,loadCssFile:()=>By,loadJavascript:()=>Vy,loadJavascriptFile:()=>Ny,loadJavascriptFileEmbedSync:()=>jy,loadJavascriptFileSync:()=>Fy,loadLazy:()=>_S,loadRemoteCSS:()=>Uy,loadRemoteScript:()=>Cs,log:()=>Ay,logGroupIf:()=>mm,logIf:()=>gm,lookdown:()=>_y,lookdownAll:()=>wy,lookup:()=>by,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Xg,map:()=>Hg,mapStringsWithContextComponents:()=>La,markPolyglotSeeded:()=>gn,markRevived:()=>us,matchRoute:()=>xS,matchesComponentNaming:()=>hn,memoize:()=>dm,merge:()=>xt,mergeSharedLibraries:()=>_c,mergeSharedLibraryDesignSystems:()=>wc,nextElement:()=>cc,normalizeIgnoreList:()=>mc,normalizeLibraryKey:()=>ao,objectToString:()=>ba,objectizeStringProperty:()=>Da,overwrite:()=>Sa,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Ym,parse:()=>Uu,parseDeep:()=>Qa,parseQuery:()=>kS,parseRoutePattern:()=>SS,pickupElementFromProps:()=>au,pickupPropsFromElement:()=>iu,polyglotSeededKeys:()=>_s,previousElement:()=>lc,promoteActiveRootState:()=>xs,propExists:()=>Nm,propertizeElement:()=>cu,propertizeUpdate:()=>Mm,reinit:()=>qS,remove:()=>Sv,removeChars:()=>sb,removeCookie:()=>wm,removeDuplicateProps:()=>Fa,removeDuplicatesInArray:()=>as,removeFromArray:()=>wg,removeFromObject:()=>Qg,removeNestedKeyByPath:()=>tm,removeValueFromArray:()=>ca,removeValueFromArrayAll:()=>vg,reorderArrayByValues:()=>Ag,repairLegacyArrowScopePreamble:()=>ga,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Dg,resolveAsset:()=>ce,resolveFileReferences:()=>so,resolveHandler:()=>hs,resolveRouterElement:()=>Bl,resolveSharedLibraries:()=>nb,returnValueAsText:()=>fu,router:()=>Pe,runGuards:()=>vS,runPluginHook:()=>Ct,saveScrollPosition:()=>Fl,scratchSystem:()=>qs,scratchUtils:()=>mr,self:()=>mg,set:()=>vo,setActiveRootState:()=>ec,setCookie:()=>bm,setHashedExtend:()=>Xf,setInObjectByPath:()=>em,setLocalStorage:()=>xm,setNodeStyles:()=>Bu,setProps:()=>xy,setPropsPrototype:()=>Na,sharedLibrary:()=>Zy,splitPackageSpecifier:()=>pc,spotByPath:()=>Ja,srcsetFor:()=>Ps,stringIncludesAny:()=>ua,stringToObject:()=>Kg,stripVersionRangePrefix:()=>hc,swapItemsInArray:()=>Sg,syncProps:()=>ja,toCamelCase:()=>co,toDashCase:()=>Sc,toDescriptionCase:()=>ab,toPriorityOrder:()=>$e,toTitleCase:()=>ib,toggleFullscreen:()=>Py,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Zm,trimStringFromSymbols:()=>Pg,unstackArrayOfObjects:()=>aa,update:()=>Fm,updateProps:()=>Bm,variables:()=>fc,verbose:()=>ks,warn:()=>ac,warnLibraryAliasCollision:()=>Rs,window:()=>C});$();$();var LB=O(),pR=(t=LB,e)=>{let n=E(e.localFile)?e.localFile:{},r=ut(n.designSystem||{});return at(t,r,ve)},DB={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Rp=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},WS=(t,e)=>{t.CSS_MEDIA_VARS&&vt(Rp(t.CSS_MEDIA_VARS,e));let n=ko(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&vt(n)},qn=(t,e=DB)=>{let n=pR(t||{},e),r=e.scopeSelector||":root",o=e.globalTheme;if(typeof window<"u"&&window.location){let h=new URLSearchParams(window.location.search).get("globalTheme");h&&(o=h)}let s=vo({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i=Tc(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,p=t.icons;l&&vt(i),c&&(vt({[r]:s.CSS_VARS}),WS(s,r)),a&&vt(s.reset);let g=s.animation;if(g){let h={};for(let m in g)h[`@keyframes ${m}`]=g[m];vt(h)}return(u||f)&&el(s.svg,{document:e.document}),(p||d)&&xo(s.icons,{document:e.document}),s},Pp={},qS=(t,e=Pp)=>{let n=pR(t||{},e),r=e.scopeSelector||":root",o=vo({verbose:!1,...n});return e.preventInject||(vt({[r]:o.CSS_VARS}),WS(o,r),vt(o.reset)),o},KS=(t,e=Pp)=>{vt(t)},IB=(t,e=Pp)=>{let n=e.scopeSelector||":root";vt({[n]:t.CSS_VARS}),WS(t,n)};var $B=(t,e=Pp)=>{};$();var gR=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,MB=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},YS={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},NB=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},zl=(t,e)=>(Bl||NB)(t,e),FB=["manual","auto","restore"],GS=new WeakMap,hR=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},jB=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!FB.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||C,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=GS.get(o);s||(s={found:o.scrollRestoration,claims:[]},GS.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),hR(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||GS.delete(o);try{hR(o,s)}catch{}}})}catch{}}},BB=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=Fl,r=t.window||C;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},mR=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=YS:e.router=xt(e.router||{},YS);let n=e.router;jB(e,n),BB(e,n);let r=async(s,i)=>{let a=s.context?.window||C,c=MB(n);if(!c){if(!a.location)return;let{pathname:f,search:u,hash:d}=a.location;f=gR(f),c=f+u+d}let l=s;if(n.customRouterElement){let f=zl(s,n.customRouterElement);f&&(l=f,s.routes&&(l.routes=s.routes))}l.routes&&await Pe(c,l,{},{initialRender:!0,pushState:!1})},o=!Ft(t.onRenderRouter);return n&&n.initRouter&&!o&&(t.onRenderRouter=r),VB(e,n),n},XS=(t,e)=>{if(e.router===!1)return;let n=e.router||YS;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:Pe,o=e.window||C,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=gR(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=zl(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},VB=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return at(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};$();var yR=C&&C.location&&typeof C.location.host=="string"?C.location.host:null,ZS=yR!==null?yR.includes("dev."):ar(),bR=ZS?"http://localhost:8080/get":"https://api.symbols.app/get",UB={endpoint:bR},_R=async(t,e=UB)=>{let n=e.endpoint||bR,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(R(e.onError))return e.onError(s);console.error(s)}},zB=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await _R(t,n),o=ZS||e.isDevelopment?ie(r):ie(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{Jt(e[s],o[s.toLowerCase()])}):Jt(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Jt(e[s],o[s.toLowerCase()])})}return e},HB=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await _R(t,r),s=ZS||e.isDevelopment?ie(o):ie(o.releases[0]);n(s)}},wR=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await zB(t,e)}catch(n){console.error(n)}},SR=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&HB(e,n,r||(o=>{let s=o.designSystem;E(s)&&n.utils.init(s),E(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Hl=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 n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{Vn(t)}catch(n){console.error("[smbls] dispose error:",n)}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(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var fx={};F(fx,{Helmet:()=>jR,applyMetadata:()=>cx,default:()=>l3,extractMetadata:()=>KB,generateHeadHtml:()=>c3,helmetPlugin:()=>lx,resolveMetadata:()=>Ci});$();qt();var We={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"}},Kn=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}"]`},xR=t=>ie({v:t}).v,kR=(t,e,n,r)=>{try{return pt(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},tx=Object.freeze({authored:!0}),Ci=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&Qt(o)&&(o=xR(o));let s=R(o),i=!s&&r?.authored===!0,a=s?kR(o,e,n,"metadata"):E(o)?{...o}:{};if(!E(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!Qt(l);v(l)&&Qt(l)&&(l=xR(l)),R(l)?l=kR(l,e,n,c):v(l)&&Qt(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,tx):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},WB=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),qB=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(WB(t[n]))return t[n]},KB=(t,e="/",n,r)=>{let o=t.pages||{},s=qB(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let l=Ci(t.app.metadata,n,r,tx);i={...i,...l}}let a=new Set;if(s){let l=s.metadata||s.helmet||{},f=Ci(l,n,r,tx);for(let u in f)a.add(u);i={...i,...f},!i.title&&s.state?.title&&(i.title=s.state.title,a.add("title")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add("description"))}i.title||(i.title=t.name||"Symbols"),i.title&&(a.has("title")||!i["og:title"])&&(a.has("og:title")||(i["og:title"]=i.title)),i.description&&(a.has("description")||!i["og:description"])&&(a.has("og:description")||(i["og:description"]=i.description)),i.title&&!i["twitter:title"]&&(i["twitter:title"]=i.title),i.description&&!i["twitter:description"]&&(i["twitter:description"]=i.description);let c=a.has("og:url")?i["og:url"]:a.has("url")?i.url:void 0;if(c)i["og:url"]=c;else if(i["og:url"]||i.url){let l=(i["og:url"]||i.url||"").replace(/\/$/,"");if(l&&e&&e!=="/"){let f=e.startsWith("/")?e:"/"+e;i["og:url"]=l+f}}return so(i,t.files)},CR=(t,e)=>so(Ci(t,e,e.state),e.context?.files),TR=t=>Object.prototype.hasOwnProperty.call(We,t),Lp=new Map;for(let t in We){let e=Kn(We[t]);Lp.has(e)||Lp.set(e,We[t])}var Dp=t=>t.head||t.querySelector("head"),sx=(t,e)=>{let n=Dp(t);return n?n.querySelector(e):null},ex=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),ix=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},ax=(t,e)=>{let n=Dp(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},Ai=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},Ti=(t,e,n,r)=>{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 n)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},OR=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Ai);Ti(t,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},RR=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Ai);Ti(t,"data-smbls-style",r,o=>{let s=r.indexOf(o),i=t.createElement("style");return i.textContent=String(n[s]),i})},PR=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),LR=t=>v(t)?t:String(t.src),DR=(t,e)=>{let n=t.createElement("script");return v(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},GB=(t,e)=>{let n=PR(e),r=n.map(LR);Ti(t,"data-smbls-script",r,o=>DR(t,n[r.indexOf(o)]))},IR=t=>`${t.hreflang||""}|${t.href||""}`,nx=t=>E(t)?Ai(JSON.stringify(t)):String(t),$R=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(IR);Ti(t,"data-smbls-alternate",r,o=>{let s=r.indexOf(o),i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},MR=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(nx);Ti(t,"data-smbls-favicon",r,o=>{let s=r.indexOf(o),i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),E(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},NR=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";Ti(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},cx=(t,e)=>{if(!(!E(t)||!e)){for(let n in t){let r=t[n];if(r==null||!TR(n))continue;let o=We[n],s=sx(e,Kn(o))||ax(o,e);s&&ix(s,o,r)}Array.isArray(t.jsonLd)&&OR(e,t.jsonLd),Array.isArray(t.styles)&&RR(e,t.styles),Array.isArray(t.scripts)&&GB(e,t.scripts),Array.isArray(t.alternate)&&$R(e,t.alternate),Array.isArray(t.favicons)&&MR(e,t.favicons),(t.icon||t.favicon)&&NR(e,t.icon||t.favicon)}},vR=new WeakMap,rx=new WeakMap,FR=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},YB=t=>{let e=vR.get(t);return e||(e={doc:t,layers:[],servedPath:FR(t),originals:new Map,owned:new Set,lists:new Set},vR.set(t,e)),e},XB=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},ZB=(t,e)=>{let n=rx.get(t);if(n)return n;let r=YB(e),o={element:t,values:null,disposed:!1,set(i){o.disposed||(o.values=i,AR(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);i!==-1&&r.layers.splice(i,1);try{AR(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(XB(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),rx.set(t,o),o},ox=(t,e,n,r)=>{let o=ZB(t,e),s=K(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},QB=Kn(We.title),JB=Kn(We.description),t3=Kn(We["og:title"]),e3=Kn(We["og:description"]),n3=Kn(We["twitter:title"]),r3=Kn(We["twitter:description"]),ER=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},QS={jsonLd:OR,styles:RR,alternate:$R,favicons:MR,icon:NR},o3=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!E(s))continue;for(let a in s){let c=s[a];c==null||!TR(a)||e.set(Kn(We[a]),{value:String(c),rank:o})}for(let a of["jsonLd","styles","alternate","favicons"])Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return ER(e,QB,t3,n3),ER(e,JB,e3,r3),{tags:e,lists:n,scripts:r}},s3=(t,e,n)=>{let{doc:r,originals:o}=t,s=Lp.get(e),i=sx(r,e),a=o.get(e);a||(a={value:i?ex(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=ax(s,r)),i&&(ex(i,s)!==n&&ix(i,s,n),t.owned.add(e))},i3=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=Lp.get(e),o=sx(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&FR(n)===t.servedPath){let a=o||ax(r,n);a&&ex(a,r)!==s.value&&ix(a,r,s.value)}else o&&o.remove()},a3=(t,e)=>{let n=PR(e);if(!n.length)return;let r=Dp(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=LR(s);if(o.has(i))continue;let a=DR(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},AR=t=>{let{doc:e}=t;if(!Dp(e))return;let{tags:n,lists:r,scripts:o}=o3(t.layers);for(let s of[...t.owned])n.has(s)||i3(t,s);for(let[s,{value:i}]of n)s3(t,s,i);for(let s in QS)r[s]!==void 0?(QS[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&QS[s](e,null);a3(e,o)},it=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},c3=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${it(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${it(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${it(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=it(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${it(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${it(nx(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${it(f)}" data-smbls-favicon="${it(nx(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${it(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${it(IR(f))}">`)}});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${it(f)}" content="${it(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${it(f)}" content="${it(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${it(o)}" content="${it(f)}">`)):e.push(`<meta property="${it(o)}" content="${it(s)}">`):l?e.push(`<meta name="${it(o)}" content="${it(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${it(o)}" content="${it(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${it(o)}" content="${it(s)}">`)}if(r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o=="string"?o:JSON.stringify(o),i=String(s).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Ai(s)}">${i}<\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Ai(s)}">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o=="string",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src="${it(i)}"`),s||(o.type&&a.push(`type="${it(o.type)}"`),o.async&&a.push("async"),o.defer&&a.push("defer"),o.integrity&&a.push(`integrity="${it(o.integrity)}"`),o.crossorigin&&a.push(`crossorigin="${it(o.crossorigin)}"`),o.referrerpolicy&&a.push(`referrerpolicy="${it(o.referrerpolicy)}"`),o.nomodule&&a.push("nomodule"));let c=` data-smbls-script="${it(i||Ai(o.body||""))}"`;if(!s&&o.body){let l=String(o.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${a.join(" ")}${c}>${l}<\/script>`)}else e.push(`<script ${a.join(" ")}${c}><\/script>`)}return e.join(`
93
- `)},jR={define:{metadata:(t,e,n)=>{let r=e.context?.document||typeof document<"u"&&document;r&&ox(e,r,()=>CR(t,e),o=>{let s=e.state?.root;E(s)&&(s.$helmet=o)})}}},JS=t=>{let e=t.metadata;return e?CR(e,t):null},lx={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;e&&ox(t,e,()=>JS(t))},update(t){let e=rx.get(t);if(e){e.disposed||e.set(JS(t));return}if(!t.metadata)return;let n=t.context?.document||typeof document<"u"&&document;n&&ox(t,n,()=>JS(t))}},l3=jR;Za();var BR=(t,e,n,r)=>{t&&Xa(t,e,n,r)},VR=(t,e,n)=>{if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let o=Ci(t,e,n);cx(o,r)},UR=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},Oi={routes:t=>t,metadata:VR,fetch:BR,$router:UR},zR=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=VR),t.fetch!==!1&&(e.fetch=BR),t.router!==!1&&(e.$router=UR),e};var ux={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},Ip={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},$p={...ux,router:Ip},f3={state:{},pages:{},components:{},router:Ip,define:Oi},Pr=f3;$();$();var HR=(t,e)=>q(t.extends)?t.extends:[];qt();$();var dx={};F(dx,{default:()=>S3,getActiveLang:()=>Lr,getLanguages:()=>Kl,getLocalStateLang:()=>Ql,getPendingLang:()=>ql,initPolyglot:()=>Np,loadTranslations:()=>Yl,polyglotPlugin:()=>Pi,setLang:()=>Xl,translate:()=>Gl,upsertTranslation:()=>Zl});$();qt();var YR="smbls_lang",u3="smbls_t_",d3="smbls_tv_",Ri={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},Wl={},WR=new WeakMap,XR=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,ZR=t=>{let e=WR.get(t);return e||(e={seq:0,pending:Br(null),wake:null},WR.set(t,e)),e},qR=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),KR=(t,e)=>!!(t?.translations&&t.translations[e]),p3=3e3,h3=2147483647,g3=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,h3):0:p3},m3=new RegExp("\\p{L}","gu"),y3=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(m3);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},b3=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function Lr(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||t?.state?.lang||e?.defaultLang||"en"}function ql(){let t=this?.context,e=XR(t,this?.state?.root||t?.state?.root);return e?ZR(e).pending.get():null}function Kl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Mp=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},GR=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Mp(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function Gl(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=GR(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Mp(l,t);if(f!==void 0)return f}}let a=(s?.root||n?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Mp(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=GR(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Mp(l,t);if(f!==void 0)return f}}return t}async function Yl(t){let e=this?.context,n=e?.polyglot,r=this?.state?.root||e?.state?.root;if(!n||!r)return;let o=n.storagePrefix||u3,s=n.storageVersionPrefix||(n.storagePrefix?n.storagePrefix.replace(/_$/,"v_"):d3);if(n.translations&&n.translations[t]&&!n.fetch||!n.fetch||n._fetchFailed?.[t])return;if(!r.translations?.[t]){let c=Ri.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...r.translations||{}}};f.translations[t]=l,r.update&&r.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(n.storagePrefix||"smbls")+":"+t;if(Wl[i])return Wl[i];let a=this;return Wl[i]=(async()=>{try{let c=n.fetch,l=parseInt(Ri.get(s+t),10)||0,f,u,d;if(R(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(E(c)){let g=a.getDB||(()=>e.fetch),h=R(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||{}},S=await h.rpc({from:m,params:y});if(S.error)throw n._fetchFailed||(n._fetchFailed={}),n._fetchFailed[t]=!0,S.error;let b=S.data;if(!b||!b.changed)return;f=b.translations||{},u=b.version||0,d=!0}else return;if(!d||!f)return;Ri.set(o+t,JSON.stringify(f)),u&&Ri.set(s+t,String(u));let p={translations:{...r.translations||{}}};p.translations[t]=f,r.update&&r.update(p)}catch(c){if(n.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 Wl[i]}})(),Wl[i]}var _3=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function Xl(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;if(e?.persist!==!1){let l=r?.storageLangKey||YR;Ri.set(l,t)}let i=ZR(XR(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!KR(o,t)){i.pending.set(t);let u=null;if(await qR(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!KR(o,t)&&!r.translations?.[t])return}}let l=g3(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=b3(s,y3(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await qR(i,f,l),!c()))return}i.pending.set(null),w3(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function w3(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>Ba(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&gn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;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];gn(t,c,n[c])}}if(r&&s){let c=r.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{_3(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function Zl(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&E(o.fetch)){let i=this.getDB||(()=>r.fetch),a=R(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Np(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=e.storageLangKey||YR,s=Ri.get(r)||Lr.call(this),i=t?.document||globalThis.document;i?.documentElement&&(i.documentElement.lang=s),n.update&&n.lang!==s&&n.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Ql(t){try{let e=Lr.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var Pi={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Np.call(t))}},S3=Pi;Za();var hx={};F(hx,{SYSTEM_METRICS:()=>Jl,capsizeHandler:()=>px,capsizePlugin:()=>jp,computeCapsize:()=>QR,default:()=>x3,resolveFontSizePx:()=>JR,resolveMetrics:()=>tP});var Jl={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}},Fp=t=>parseFloat(t.toFixed(4)),QR=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${Fp(t/16)}rem`,lineHeight:`${Fp(f)}px`,capHeightTrim:`${Fp(-p)}em`,baselineTrim:`${Fp(-g)}em`}},JR=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},tP=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(Jl[i])return Jl[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[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(Jl[a])return Jl[a]}}return null},px=(t,e,n,r)=>{if(!t)return;let o=JR(e.fontSize,r);if(!o)return;let s=tP(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=QR(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},jp={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},x3=jp;var Sx={};F(Sx,{PRESERVE_VALUE_KEYS:()=>Gt,SKIP_INLINE_KEYS:()=>Dr,abbrToProp:()=>Kt,decode:()=>sP,encode:()=>nP,expand:()=>Fo,isComponentKey:()=>sn,isSelectorKey:()=>an,parse:()=>jo,parseFurther:()=>Vo,propToAbbr:()=>qe,shorten:()=>tf,shorthandPlugin:()=>ef,stringify:()=>No,stringifyFurther:()=>Bo});var qe={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"},Kt=Object.create(null);for(let t in qe)Kt[qe[t]]=t;var gx=Object.create(null);for(let t in qe){let e=qe[t];if(gx[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${gx[e]}"`);gx[e]=t}var Gt=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Dr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function sn(t){return/^[A-Z]/.test(t)}function an(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function nP(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=qe[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>Bp(i));e.push(o+":"+s.join(","))}else e.push(o+":"+Bp(r))}return e.join(" ")}function Bp(t){return String(t).replace(/ /g,"_")}function tf(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?tf(n):n});let e={};for(let n in t){let r=t[n];if(sn(n)){e[n]=mx(r);continue}if(an(n)){e[n]=mx(r);continue}let o=qe[n]||n;if(Gt.has(n)||Gt.has(o)){e[o]=r;continue}e[o]=mx(r)}return e}function mx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?tf(e):e}):typeof t=="object"?tf(t):t}function No(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?No(r):r});let e={},n=[];for(let r in t){let o=t[r];if(sn(r)){e[r]=eP(o);continue}if(an(r)){e[r]=eP(o);continue}let s=qe[r]||r;if(Gt.has(r)||Gt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Dr.has(r)||Dr.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?No(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(Bp).join(","));continue}if(typeof o=="object"){e[s]=No(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+Bp(o))}return n.length&&(e.in=n.join(" ")),e}function eP(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?No(e):e}):typeof t=="object"?No(t):t}function sP(t){if(!t||typeof t!="string")return{};let e={},n=iP(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Kt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(rP);continue}e[a]=rP(i)}return e}function iP(t){return t.trim().split(/\s+/).filter(Boolean)}function rP(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function oP(t){return t.replace(/_/g," ")}function k3(t){if(!t||typeof t!="string")return{};let e={},n=iP(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Kt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(oP);continue}e[a]=oP(i)}return e}function Fo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Fo(n):n});let e={};for(let n in t){let r=t[n];if(sn(n)){e[n]=yx(r);continue}let o=Kt[n]||n;if(an(n)&&o===n){e[n]=yx(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=yx(r)}return e}function yx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Fo(e):e}):typeof t=="object"?Fo(t):t}function jo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?jo(n):n});let e={};if(typeof t.in=="string"){let n=k3(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(sn(n)){e[n]=bx(r);continue}let o=Kt[n]||n;if(an(n)&&o===n){e[n]=bx(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=bx(r)}return e}function bx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?jo(e):e}):typeof t=="object"?jo(t):t}function aP(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function v3(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function E3(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function cP(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Bo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Bo(r):r});let e={},n=[];for(let r in t){let o=t[r];if(sn(r)){let i=lP(o);e[r]=cP(i)?i.in:i;continue}if(an(r)){let i=lP(o);e[r]=cP(i)?i.in:i;continue}let s=qe[r]||r;if(Gt.has(r)||Gt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Dr.has(r)||Dr.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Bo(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(aP).join(","));continue}if(typeof o=="object"){e[s]=Bo(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+aP(o))}return n.length&&(e.in=n.join(" ")),e}function lP(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Bo(e):e}):typeof t=="object"?Bo(t):t}function fP(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):v3(t)}function _x(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=Kt[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=Kt[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s,c=E3(i);if(c.length>1){e[a]=c.map(fP);continue}e[a]=fP(i)}return e}function Vo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Vo(n):n});let e={};if(typeof t.in=="string"){let n=_x(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(sn(n)){typeof r=="string"?e[n]=_x(r):e[n]=wx(r);continue}let o=Kt[n]||n;if(an(n)&&o===n){typeof r=="string"?e[n]=_x(r):e[n]=wx(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=wx(r)}return e}function wx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Vo(e):e}):typeof t=="object"?Vo(t):t}var A3={shorten:Fo,stringify:jo,stringifyFurther:Vo};function C3(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var T3=["components","pages","snippets"],ef={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=A3[e===!0?"shorten":e];if(r){for(let o of T3)t[o]&&(t[o]=C3(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var Dx={};F(Dx,{LEVELS:()=>nf,analyzePlugin:()=>Di,attachBrowserListeners:()=>Yp,attachNetworkListeners:()=>of,classifyEvent:()=>Tx,createAnalyzeState:()=>Xp,createBeaconSink:()=>Px,createConsoleSink:()=>Ox,createDedupe:()=>Ex,createEnrich:()=>kx,createMemorySink:()=>Rx,createPipeline:()=>Hp,createRedact:()=>zp,createRemoteSink:()=>qp,createSample:()=>Ax,createSummarize:()=>vx,default:()=>Di,emitFetchEvent:()=>bP,makeEvent:()=>rt,meetsLevel:()=>Vp,normalizeLevel:()=>rf,resolveSinks:()=>Gp,summarizeElement:()=>Uo});var O3=0,R3=()=>`${Date.now().toString(36)}-${(O3++).toString(36)}`,rt=(t,e,n={})=>({id:R3(),ts:Date.now(),type:t,level:e,...n}),P3=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},Uo=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:P3(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Li=t=>t?.context?.analyze,L3={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"}},D3=(t,{category:e,type:n,level:r})=>o=>{let s=Li(o);!s||!s.shouldCapture(e)||s.emit(rt(n,r,{hook:t,element:Uo(o)}))},uP=t=>(e,n)=>{let r=Li(e);!r||!r.shouldCapture("state")||r.emit(rt("state","debug",{hook:t,element:Uo(e),changedKeys:n?.changedKeys||null}))},Di={name:"analyze",error(t,e){let n=Li(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(rt("error","error",{hook:e?.hook||"error",element:Uo(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Li(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(rt("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Li(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Li(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(rt("update","debug",{hook:"update",element:Uo(t),durationMs:n}))},beforeStateUpdate:uP("beforeStateUpdate"),stateUpdate:uP("stateUpdate")};for(let[t,e]of Object.entries(L3))Di[t]=D3(t,e);$();var nf={error:0,warn:1,info:2,debug:3,trace:4};var Vp=(t,e)=>{let n=nf[t],r=nf[e];return n==null||r==null?!0:n<=r},rf=t=>nf[t]!=null?t:"warn";$();var Up=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var I3=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},$3=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},xx=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>xx(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(I3(s,e)||Up.test(s)){let a=$3(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=xx(t[s],e,n,r+1);return o},zp=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=xx(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var kx=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=C,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},vx=()=>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},Ex=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},Ax=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},dP={redact:t=>zp(t.config.redact||[],t.config.maskStrategy),enrich:t=>kx(t),summarize:()=>vx(),dedupe:t=>Ex(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Ax(t.config.sample||{})},M3=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=dP[t];return n?n(e):null}return null},Hp=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(dP.redact(t));for(let s of n){let i=M3(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};$();$();var Wp=typeof C<"u"&&typeof C.document<"u",N3=5e3,F3=50,j3=3,B3=1500,V3=1e3,Tx=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",U3=t=>{try{return JSON.stringify(t)}catch{return null}},z3=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},H3=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},W3=()=>{if(!Wp)return null;try{let t=C.document?.documentElement?.getAttribute("data-theme")||null,e=typeof C.matchMedia=="function"?C.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}},q3=()=>{if(!Wp)return null;let t=C.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:e?.userAgent||null,browser:H3(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:z3(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:W3()}},qp=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:Tx,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:N3,y=t.maxBatch||F3,S=t.maxRetries!=null?t.maxRetries:j3,b=t.backoffMs||B3,x=t.queueLimit||V3,_=t.sampleRate!=null?t.sampleRate:1,w=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,k=t.sessionId||w(),A=[],T=[],M=null,P=null,L=()=>{M||!A.length||(M=setTimeout(ft,m))},H=U=>{if(P)return;let j=b*Math.pow(2,Math.max(0,U-1));P=setTimeout(()=>{if(P=null,!T.length)return;let et=T.shift();Z(et.envelope,et.attempt)},j)},lt=(U,j=!1)=>{let et=u?Cx(u):null,B={id:k,sentAt:Date.now()};j&&(B.endedAt=Date.now());let V={v:1,session:B,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:q3(),user:et?.user||null,traits:et?.traits||null,tags:et?.tags||null,events:U};if((h?Cx(h)===!0:g)&&(V.app.debug=!0),p)try{return p(V)||null}catch{return V}return V},Z=async(U,j=1)=>{if(U)try{let et=!0;if(n){let B=await n(U);et=B!==!1&&B?.ok!==!1}else et=await K3(e,U,{apiKey:o,getAuth:f});!et&&j<S&&(T.push({envelope:U,attempt:j+1}),H(j+1))}catch{j<S&&(T.push({envelope:U,attempt:j+1}),H(j+1))}},ft=(U=!1,j=!1)=>{if(M&&(clearTimeout(M),M=null),!A.length&&!j)return;let et=A;A=[];let B=lt(et,j);if(B){if(U&&Wp){if(typeof r=="function"&&Cx(()=>r(B)))return;if(navigator.sendBeacon&&e){let V=U3(B);if(V)try{navigator.sendBeacon(e,new C.Blob([V],{type:"application/json"}));return}catch{}}}Z(B)}},wt=!1,Pt=()=>{wt||(wt=!0,ft(!0,!0))};Wp&&(C.addEventListener("pagehide",Pt,{passive:!0}),C.addEventListener("beforeunload",Pt,{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&ft(!0)},{passive:!0}));let bt=U=>{if(!U||_<1&&Math.random()>_)return;wt&&(wt=!1);let j={...U,log_type:d(U)};A.push(j),A.length>x&&(A=A.slice(-x)),A.length>=y?ft():L()},$t=U=>(ft(!1,!0),k=U||w(),wt=!1,bt.sessionId=k,k);return bt.flush=()=>ft(!1),bt.endSession=Pt,bt.startNewSession=$t,bt.sessionId=k,bt},Cx=t=>{try{return t()}catch{return null}},K3=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();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 G3={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},Y3="\x1B[0m",Kp=typeof C<"u"&&typeof C.document<"u",Ox=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(Kp)i(a,s);else{let c=G3[s.level]||"";i(`${c}${a}${Y3}`,s)}}},Rx=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];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},Px=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=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=Kp?new C.Blob([c],{type:"application/json"}):c;if(Kp&&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(()=>{})};Kp&&(C.addEventListener("pagehide",i,{passive:!0}),C.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},pP={console:Ox,memory:Rx,beacon:Px,remote:qp},hP=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},Gp=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=pP[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?hP(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=pP[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?hP(t,r):r))}return n};$();var X3=typeof C<"u"&&typeof C.document<"u",Z3=new Set(["password","hidden"]),gP=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},Lx="__analyzeKeyPath",Ii=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Lx])return e[Lx];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.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[Lx]=i}catch{}return i},Q3=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},J3=t=>!!(!t||t.tagName==="INPUT"&&Z3.has(t.type)||Up.test(t.name||"")||Up.test(t.id||"")||t.dataset?.analyze==="skip"),Yp=t=>{if(!X3)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(C,"error",s=>{t.emit(rt("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(C,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(rt("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(C,"click",i=>{t.emit(rt("pointer","info",{hook:"click",target:Ii(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:mP(i)}))},{passive:!0,capture:!0}),o(C,"dblclick",i=>{t.emit(rt("pointer","info",{hook:"dblclick",target:Ii(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",i=>{t.emit(rt("pointer","info",{hook:"contextmenu",target:Ii(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=gP(i=>{t.emit(rt("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(C,"pointermove",s,{passive:!0})}if(e.keyboard&&o(C,"keydown",s=>{t.emit(rt("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:mP(s),target:Ii(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=J3(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=Q3(a.value,t.config.maskStrategy)),t.emit(rt("forms","info",{hook:i.type,target:Ii(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,"input",s,{passive:!0,capture:!0}),o(C,"change",s,{passive:!0,capture:!0}),o(C,"submit",i=>{t.emit(rt("forms","info",{hook:"submit",target:Ii(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=gP(()=>{t.emit(rt("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},n.scroll);o(C,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Ea(()=>{t.emit(rt("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},n.resize);o(C,"resize",s,{passive:!0}),o(C,"orientationchange",()=>{t.emit(rt("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{t.emit(rt("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),t.emit(rt("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(rt("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(yP)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(rt("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{}r.push(()=>s.disconnect())}catch{}},mP=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),t4=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=yP(t.cause)),e},yP=t=>{if(t==null)return t;if(t instanceof Error)return t4(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};$();var e4=typeof C<"u"&&typeof C.document<"u",bP=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(rt("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},of=t=>{if(e4&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof C.fetch=="function"){let e=C.fetch.bind(C),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(rt("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(rt("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(rt("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};C.fetch=n,t.__teardown.push(()=>{C.fetch=e})}if(typeof C.XMLHttpRequest=="function"){let e=C.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(rt("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(rt("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(rt("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),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var n4={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},r4={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},o4={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},s4={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},i4=t=>{let e={...n4,...t};return e.replay&&Object.assign(e,r4),e.telemetry&&Object.assign(e,o4),e.remote&&Object.assign(e,s4),Object.assign(e,t),e},a4=64,c4=()=>{if(typeof C>"u"||!C.location)return null;try{let e=new URLSearchParams(C.location.search).get("analyze");return e||null}catch{return null}},Xp=(t={})=>{let e=t===!0?{}:{...t};e.capture=i4(e.capture||{});let n=c4();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=rf(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 r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=Hp(r),r.__sinks=Gp(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&Vp(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<a4&&r.__preBuffer.push(s);return}o(),_P(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)_P(r,a)}try{Yp(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{of(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=rf(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{of(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.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})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},_P=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){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 Mx={};F(Mx,{Inspect:()=>Zp,inspectPlugin:()=>$x});$();function wP(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function Ix(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&wP(t.extends),r=t.parent&&t.parent.childExtends&&wP(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function Qp(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=Ix(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?Qp(t.parent):o&&(e[o]||n[o])?t:Qp(t.parent)}var l4=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.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}))}},Zp={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:l4,onMousemove:(t,e,n)=>{let r=t.target.ref,o=Qp(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=Ix(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=Qp(r);if(!o)return;let s=Ix(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.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(E(e)){let{Content:n,...r}=e;for(let o in r)vi[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
89
+ `)}var cR={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 lR(t,e){let n=cR[t]||Rr(t),r=Ul(e),o=`_${n}-${r}`,s=Ci(t),i=PB[s],a=i?`${s}: ${e};${i}: ${e}`:`${s}: ${e}`,c=`.${o}{${a}}`;return`${o}
90
+ ${c}`}var PB={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"},LB="@media (hover: hover)",DB=/(?:^|[^\\]):hover(?![\w-])/,fR=t=>typeof t=="string"&&(t.indexOf("{")!==-1||t.indexOf("}")!==-1);function uR(t){let e=t.split("\0"),n=[],r=[];for(let o=0;o+1<e.length;o+=2){let s=e[o],i=e[o+1];if(!i||fR(i))continue;let a=cR[s]||Rr(s),c=Ul(i),l=`_${a}-${c}`,f=Ci(s);n.push(l),r.push(`.${l}{${f}:${i}}`)}return n.join(" ")+"\0"+r.join(`
91
+ `)}function dR(t,e,n){let r=t+e,o=`_c${Rr(r)}`,s=e.split("\0"),i="";for(let l=0;l+1<s.length;l+=2){let f=s[l],u=s[l+1];u&&(fR(u)||(i+=`${Ci(f)}:${u};`))}let a,c;if(t.startsWith("@media"))c=`.${o}`,a=`${t}{${c}{${i}}}`;else if(t.startsWith(":")||t.startsWith("&")||t.startsWith("[")&&!t.includes("&")){let l=t.startsWith("&")?t.slice(1):t;c=`.${o}${l}`,a=`${c}{${i}}`}else t.includes("&")?(c=t.replace("&",`.${o}`),a=`${c}{${i}}`):(c=`.${o} ${t}`,a=`${c}{${i}}`);return n!==!1&&DB.test(c)&&(a=`${LB}{${a}}`),`${o}
92
+ ${a}`}var qS=null;function Rp(t){qS=t}var sn={structuralHash:Cp,deepEqual:Tp,mergeStructural:HS,overwriteDeep:WS,shortHash:Rr,toKebab:Ci,sanitizeValue:Ul,batchShortHash:aR,atomicCssClass:lR,batchAtomicCss:uR,compoundCssClass:dR},pR=!1,Op=null;function hR(t){return Op||(Op=import(t||"@symbo.ls/wasm/pkg").then(e=>(e.structuralHash&&(sn.structuralHash=e.structuralHash),e.deepEqual&&(sn.deepEqual=e.deepEqual),e.mergeStructural&&(sn.mergeStructural=e.mergeStructural),e.overwriteDeep&&(sn.overwriteDeep=e.overwriteDeep),e.shortHash&&(sn.shortHash=e.shortHash),e.toKebab&&(sn.toKebab=e.toKebab),e.sanitizeValue&&(sn.sanitizeValue=e.sanitizeValue),e.batchShortHash&&(sn.batchShortHash=e.batchShortHash),e.atomicCssClass&&(sn.atomicCssClass=e.atomicCssClass),e.batchAtomicCss&&(sn.batchAtomicCss=e.batchAtomicCss),e.compoundCssClass&&(sn.compoundCssClass=e.compoundCssClass),pR=!0,qS&&e.batchAtomicCss&&qS({batchAtomicCss:e.batchAtomicCss,compoundCssClass:e.compoundCssClass}),!0)).catch(e=>(console.debug("[smbls] WASM not available, using JS fallbacks:",e.message),!1)),Op)}function gR(){return pR}$();var zl={};F(zl,{CDN_PROVIDERS:()=>Ne,DOMQL_EVENTS:()=>Vg,DOMQ_PROPERTIES:()=>rr,ELEMENT_METHOD_OVERRIDE_POINTS:()=>ls,ENV:()=>am,HTML_TAGS:()=>gs,LIBRARY_PACKAGES:()=>Zu,LIBRARY_SCOPES_KEY:()=>io,METHODS:()=>sr,METHODS_EXL:()=>ma,NODE_ENV:()=>Ye,OPTIONS:()=>za,PACKAGE_MANAGER_TO_CDN:()=>ur,PARSED_DOMQ_PROPERTIES:()=>ga,PROPS_METHODS:()=>or,REVIVED_MARK:()=>xa,STATE_METHODS:()=>zr,STATE_PROPERTIES:()=>jg,SVG_TAGS:()=>Tk,TYPES:()=>ca,UNIVERSAL_RESERVED_KEYS:()=>Hu,__resetBuiltinMethodWarnings:()=>Jy,addCaching:()=>yu,addContext:()=>mu,addExtend:()=>Rm,addExtends:()=>pn,addItemAfterEveryElement:()=>Ag,addProtoToArray:()=>ua,addRef:()=>pu,applyCSS:()=>YS,applyDependentState:()=>Ym,applyEvent:()=>ku,applyEventUpdate:()=>vu,applyExtends:()=>Pk,applyProps:()=>Ma,arrayContainsOtherArray:()=>_g,arraysEqual:()=>Tg,arrayzeValue:()=>lo,bindLibraryGlobalScopes:()=>_c,buildImgSrcset:()=>vc,buildSourcesAndImg:()=>Ec,cache:()=>ty,call:()=>Ty,captureSnapshot:()=>Ry,checkForStateTypes:()=>Wm,checkIfInherits:()=>xu,checkIfStringIsInArray:()=>Pg,clone:()=>qg,cloneAndMergeArrayExtend:()=>Ta,cloneFunction:()=>hm,collectExtendsList:()=>ms,concatAddExtends:()=>Cm,copyJavaScriptToClipboard:()=>sb,copyStringToClipboard:()=>ob,createBasedOnType:()=>du,createElement:()=>Hm,createElementExtends:()=>tu,createExtends:()=>Ra,createExtendsFromKeys:()=>ys,createExtendsStack:()=>ou,createIfConditionFlag:()=>gm,createInheritedState:()=>qm,createKey:()=>Aa,createNestedObject:()=>tm,createNestedObjectByKeyPath:()=>Gm,createObjectWithoutPrototype:()=>qf,createParent:()=>hu,createPath:()=>gu,createProps:()=>Na,createPropsStack:()=>fu,createRoot:()=>zm,createScope:()=>Zm,createSnapshotId:()=>Ea,customDecodeURIComponent:()=>Fg,customEncodeURIComponent:()=>Ng,cutArrayAfterValue:()=>vg,cutArrayBeforeValue:()=>kg,debounce:()=>Ca,debounceOnContext:()=>dm,decodeNewlines:()=>Mg,deepClone:()=>ut,deepContains:()=>Qg,deepDefaults:()=>Ts,deepDestringifyFunctions:()=>ie,deepExtend:()=>Jf,deepMerge:()=>at,deepMergeExtends:()=>hn,deepStringifyFunctions:()=>_a,defineSetter:()=>Ay,destringifyGlobalScope:()=>Xr,detectHeightOnInit:()=>$y,detectInfiniteLoop:()=>om,document:()=>dt,encodeNewlines:()=>$g,error:()=>eo,excludeKeysFromObject:()=>im,exec:()=>pt,exposeBagGlobalScopes:()=>wc,extendCachedRegistry:()=>Tm,extendStackRegistry:()=>Pa,extractArrayExtend:()=>Da,fetchLibraryData:()=>Qu,fibonacciNumberByIndex:()=>My,fileEntryUrl:()=>Ku,filterArrays:()=>Og,filterArraysFast:()=>Rg,finalizeExtends:()=>su,findClosestNumber:()=>Gu,findClosestNumberInFactory:()=>Gy,findInheritedState:()=>Su,findKeyPosition:()=>Dg,flattenExtend:()=>bs,formatDate:()=>Iy,generateHash:()=>Xf,generateHeadArrayTags:()=>qu,generateKey:()=>va,generateMetaTags:()=>qy,get:()=>xy,getActiveRoute:()=>CS,getCDNDirUrl:()=>Wu,getCDNUrl:()=>Qe,getCapitalCaseKeys:()=>Dm,getCdnProviderFromConfig:()=>As,getChildStateInKey:()=>wu,getChildren:()=>Ey,getContext:()=>cc,getCookie:()=>wm,getDB:()=>pc,getEmotionStylesheet:()=>lb,getExtendsInElement:()=>Pm,getExtendsStack:()=>Oa,getExtendsStackRegistry:()=>Qf,getFrequencyInArray:()=>wg,getFunctionSource:()=>we,getHashedExtend:()=>La,getImportMapScript:()=>Dy,getInObjectByPath:()=>rm,getLocalStorage:()=>xm,getNev:()=>um,getPageMetadata:()=>Ky,getParentStateInKey:()=>_u,getPath:()=>nc,getQuery:()=>hc,getRef:()=>vy,getRoot:()=>sc,getRootContext:()=>ac,getRootData:()=>ic,getRootState:()=>oc,getRootStateInKey:()=>bu,getSpreadChildren:()=>Im,global:()=>mg,hasFunction:()=>Qt,hasHandlerPlugin:()=>ps,hasOwnProperty:()=>Yg,hashContent:()=>oo,inheritChildExtends:()=>nu,inheritChildPropsExtends:()=>eu,inheritParentProps:()=>Fa,inheritRecursiveChildExtends:()=>ru,init:()=>qn,initProps:()=>Bm,is:()=>se,isArray:()=>I,isBoolean:()=>jf,isBuiltinElementMethod:()=>Bg,isContextComponent:()=>$m,isCyclic:()=>sm,isDOMNode:()=>oe,isDate:()=>Vf,isDefined:()=>Dt,isDevelopment:()=>ar,isEmpty:()=>Hf,isEmptyObject:()=>Xg,isEqualDeep:()=>Wf,isFailedRevival:()=>Gr,isFunction:()=>R,isHtmlElement:()=>ia,isLazyFunction:()=>Kg,isLocal:()=>fm,isLoudDevRuntime:()=>tt,isMalformedDependency:()=>no,isMethod:()=>Oy,isMobile:()=>bm,isNode:()=>En,isNot:()=>bg,isNotProduction:()=>Qr,isNull:()=>Bf,isNumber:()=>Ie,isObject:()=>E,isObjectLike:()=>q,isPhoto:()=>Ny,isPolyglotRetranslatableKey:()=>Ua,isPolyglotWritableKey:()=>Jr,isProduction:()=>ir,isProtectedElementMethod:()=>Hr,isRevived:()=>Yr,isStaging:()=>lm,isState:()=>Km,isString:()=>v,isStringFunction:()=>ds,isStringTag:()=>Sa,isTest:()=>Gf,isTesting:()=>cm,isUndefined:()=>Ft,isUniversallyReservedKey:()=>Py,isUnresolvableDependency:()=>dr,isValidDependencyMap:()=>ro,isValidHtmlTag:()=>vm,isWrappedLibrary:()=>Je,joinArrays:()=>is,jointStacks:()=>Om,keys:()=>Uu,lastLevel:()=>xp,lastPathname:()=>Io,libraryPackageSpecs:()=>Os,loadCssFile:()=>Vy,loadJavascript:()=>Uy,loadJavascriptFile:()=>Fy,loadJavascriptFileEmbedSync:()=>By,loadJavascriptFileSync:()=>jy,loadLazy:()=>SS,loadRemoteCSS:()=>zy,loadRemoteScript:()=>Cs,log:()=>Cy,logGroupIf:()=>ym,logIf:()=>mm,lookdown:()=>wy,lookdownAll:()=>Sy,lookup:()=>_y,lowercaseFirstLetter:()=>Ur,makeObjectWithoutPrototype:()=>Zg,map:()=>Wg,mapStringsWithContextComponents:()=>Ia,markPolyglotSeeded:()=>mn,markRevived:()=>us,matchRoute:()=>vS,matchesComponentNaming:()=>gn,memoize:()=>pm,merge:()=>xt,mergeSharedLibraries:()=>Sc,mergeSharedLibraryDesignSystems:()=>xc,nextElement:()=>fc,normalizeIgnoreList:()=>bc,normalizeLibraryKey:()=>ao,objectToString:()=>wa,objectizeStringProperty:()=>$a,overwrite:()=>ka,overwriteDeep:()=>Jt,overwriteShallow:()=>Zr,overwriteState:()=>Xm,parse:()=>zu,parseDeep:()=>tc,parseQuery:()=>ES,parseRoutePattern:()=>kS,pickupElementFromProps:()=>cu,pickupPropsFromElement:()=>au,polyglotSeededKeys:()=>_s,previousElement:()=>uc,promoteActiveRootState:()=>xs,propExists:()=>Fm,propertizeElement:()=>lu,propertizeUpdate:()=>Nm,reinit:()=>GS,remove:()=>kv,removeChars:()=>ib,removeCookie:()=>Sm,removeDuplicateProps:()=>Ba,removeDuplicatesInArray:()=>as,removeFromArray:()=>Sg,removeFromObject:()=>Jg,removeNestedKeyByPath:()=>em,removeValueFromArray:()=>fa,removeValueFromArrayAll:()=>Eg,reorderArrayByValues:()=>Cg,repairLegacyArrowScopePreamble:()=>ya,replaceLiteralsWithObjectFields:()=>Bt,replaceOctalEscapeSequences:()=>Ig,resolveAsset:()=>ce,resolveFileReferences:()=>so,resolveHandler:()=>hs,resolveRouterElement:()=>Vl,resolveSharedLibraries:()=>rb,returnValueAsText:()=>uu,router:()=>Pe,runGuards:()=>AS,runPluginHook:()=>Ct,saveScrollPosition:()=>jl,scratchSystem:()=>qs,scratchUtils:()=>mr,self:()=>yg,set:()=>vo,setActiveRootState:()=>rc,setCookie:()=>_m,setHashedExtend:()=>Zf,setInObjectByPath:()=>nm,setLocalStorage:()=>km,setNodeStyles:()=>Vu,setProps:()=>ky,setPropsPrototype:()=>ja,sharedLibrary:()=>Qy,splitPackageSpecifier:()=>gc,spotByPath:()=>ec,srcsetFor:()=>Ps,stringIncludesAny:()=>pa,stringToObject:()=>Gg,stripVersionRangePrefix:()=>mc,swapItemsInArray:()=>xg,syncProps:()=>Va,toCamelCase:()=>co,toDashCase:()=>kc,toDescriptionCase:()=>cb,toPriorityOrder:()=>$e,toTitleCase:()=>ab,toggleFullscreen:()=>Ly,triggerEventOn:()=>An,triggerEventOnUpdate:()=>Qm,trimStringFromSymbols:()=>Lg,unstackArrayOfObjects:()=>la,update:()=>jm,updateProps:()=>Vm,variables:()=>dc,verbose:()=>ks,warn:()=>lc,warnLibraryAliasCollision:()=>Rs,window:()=>C});$();$();var $B=O(),mR=(t=$B,e)=>{let n=E(e.localFile)?e.localFile:{},r=ut(n.designSystem||{});return at(t,r,ve)},MB={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Pp=(t,e)=>{let n=!e||e===":root",r={};for(let o in t)if(o.startsWith("@media")){let s=n?":root:not([data-theme])":`:root:not([data-theme]) ${e}:not([data-theme])`;r[o]={[s]:t[o]}}else n?r[o]=t[o]:r[`${e}${o}, ${o} ${e}`]=t[o];return r},KS=(t,e)=>{t.CSS_MEDIA_VARS&&vt(Pp(t.CSS_MEDIA_VARS,e));let n=ko(t.cssSkinVars,t.cssSkinFallback,e);Object.keys(n).length&&vt(n)},qn=(t,e=MB)=>{let n=mR(t||{},e),r=e.scopeSelector||":root",o=e.globalTheme;if(typeof window<"u"&&window.location){let h=new URLSearchParams(window.location.search).get("globalTheme");h&&(o=h)}let s=vo({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:o,themeRoot:e.themeRoot,files:e.files,assets:e.assets,...n},{newConfig:e.newConfig,config:e.config});s&&(s.scopeSelector=r);let i=Rc(s.font,s.files),a=s.useReset,c=s.useVariable,l=s.useFontImport,f=s.useSvgSprite,u=t.svg,d=s.useIconSprite,p=t.icons;l&&vt(i),c&&(vt({[r]:s.CSS_VARS}),KS(s,r)),a&&vt(s.reset);let g=s.animation;if(g){let h={};for(let m in g)h[`@keyframes ${m}`]=g[m];vt(h)}return(u||f)&&rl(s.svg,{document:e.document}),(p||d)&&xo(s.icons,{document:e.document}),s},Lp={},GS=(t,e=Lp)=>{let n=mR(t||{},e),r=e.scopeSelector||":root",o=vo({verbose:!1,...n});return e.preventInject||(vt({[r]:o.CSS_VARS}),KS(o,r),vt(o.reset)),o},YS=(t,e=Lp)=>{vt(t)},NB=(t,e=Lp)=>{let n=e.scopeSelector||":root";vt({[n]:t.CSS_VARS}),KS(t,n)};var FB=(t,e=Lp)=>{};$();var bR=t=>!t||t==="srcdoc"||t==="about:srcdoc"||t==="blank"||t==="about:blank"?"/":t,jB=t=>{let e=t&&t.initialPath;return typeof e!="string"||!e?null:e[0]==="/"?e:"/"+e},ZS={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},BB=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),r=t;for(let o of n){if(!r||!r[o])return null;r=r[o]}return r},Hl=(t,e)=>(Vl||BB)(t,e),VB=["manual","auto","restore"],XS=new WeakMap,yR=(t,e)=>{let n=e.claims[e.claims.length-1],r=n?n.value:e.found;t.scrollRestoration!==r&&(t.scrollRestoration=r)},UB=(t,e)=>{let n=e&&e.scrollRestoration;if(n!=null){if(!VB.includes(n)){if(t.verbose!==!1){let r=typeof n=="string"?JSON.stringify(n):`a ${typeof n}`;console.warn(`[smbls/router] router.scrollRestoration must be 'manual', 'auto' or 'restore', got ${r} \u2014 the browser default stays`)}return}try{let r=t.window||C,o=r&&r.history;if(!o||!("scrollRestoration"in o))return;let s=XS.get(o);s||(s={found:o.scrollRestoration,claims:[]},XS.set(o,s));let i={value:n==="restore"?"manual":n};s.claims.push(i),yR(o,s),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{let a=s.claims.indexOf(i);if(a!==-1){s.claims.splice(a,1),s.claims.length||XS.delete(o);try{yR(o,s)}catch{}}})}catch{}}},zB=(t,e)=>{if(!e||e.scrollRestoration!=="restore")return;let n=jl,r=t.window||C;if(typeof n!="function"||!r||typeof r.addEventListener!="function")return;let o=t.document||r.document,s=()=>n(r),i=()=>{o.visibilityState==="hidden"&&n(r)};r.addEventListener("pagehide",s);let a=!!o&&typeof o.addEventListener=="function";a&&o.addEventListener("visibilitychange",i),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{r.removeEventListener("pagehide",s),a&&o.removeEventListener("visibilitychange",i)})},_R=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=ZS:e.router=xt(e.router||{},ZS);let n=e.router;UB(e,n),zB(e,n);let r=async(s,i)=>{let a=s.context?.window||C,c=jB(n);if(!c){if(!a.location)return;let{pathname:f,search:u,hash:d}=a.location;f=bR(f),c=f+u+d}let l=s;if(n.customRouterElement){let f=Hl(s,n.customRouterElement);f&&(l=f,s.routes&&(l.routes=s.routes))}l.routes&&await Pe(c,l,{},{initialRender:!0,pushState:!1})},o=!Ft(t.onRenderRouter);return n&&n.initRouter&&!o&&(t.onRenderRouter=r),HB(e,n),n},QS=(t,e)=>{if(e.router===!1)return;let n=e.router||ZS;if(!n.popState)return;let r=e.utils&&e.utils.router?e.utils.router:Pe,o=e.window||C,s=async i=>{let{pathname:a,search:c,hash:l}=o.location;a=bR(a);let f=a+c+l,u=t;if(n.customRouterElement){let d=Hl(t,n.customRouterElement);d&&(u=d,t.routes&&(u.routes=t.routes))}await u.call("router",f,u,{},{pushState:!1,scrollToTop:!1,level:0,event:i})};o.addEventListener("popstate",s),e.__teardowns=e.__teardowns||[],e.__teardowns.push(()=>o.removeEventListener("popstate",s))},HB=(t,e)=>{let{components:n}=t;if(e&&e.injectRouterInLinkComponent)return at(n.Link||n["smbls.Link"],n.RouterLink||n["smbls.RouterLink"])};$();var wR=C&&C.location&&typeof C.location.host=="string"?C.location.host:null,JS=wR!==null?wR.includes("dev."):ar(),SR=JS?"http://localhost:8080/get":"https://api.symbols.app/get",WB={endpoint:SR},xR=async(t,e=WB)=>{let n=e.endpoint||SR,r=e.serviceRoute?I(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(n+"/?"+r,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(R(e.onError))return e.onError(s);console.error(s)}},qB=async(t,e)=>{let{editor:n}=e;if(n&&n.remote){let r=await xR(t,n),o=JS||e.isDevelopment?ie(r):ie(r.releases[0]);n.serviceRoute?I(n.serviceRoute)?n.serviceRoute.forEach(s=>{Jt(e[s],o[s.toLowerCase()])}):Jt(e[n.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","assets","packages","functions","globalScope"].forEach(s=>{Jt(e[s],o[s.toLowerCase()])})}return e},KB=async(t,e,n)=>{let{editor:r}=e;if(r&&r.remote){let o=await xR(t,r),s=JS||e.isDevelopment?ie(o):ie(o.releases[0]);n(s)}},kR=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await qB(t,e)}catch(n){console.error(n)}},vR=(t,e,n,r)=>{if(e&&n.editor)try{n.editor.async&&KB(e,n,r||(o=>{let s=o.designSystem;E(s)&&n.utils.init(s),E(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};var Wl=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 n of e.__teardowns)try{n()}catch(r){console.error("[smbls] destroy teardown error:",r)}e.__teardowns.length=0}try{Vn(t)}catch(n){console.error("[smbls] dispose error:",n)}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(n){console.error("[analyze] destroy error:",n)}return t.__destroyed=!0,!0};var dx={};F(dx,{Helmet:()=>UR,applyMetadata:()=>fx,default:()=>d3,extractMetadata:()=>XB,generateHeadHtml:()=>u3,helmetPlugin:()=>ux,resolveMetadata:()=>Oi});$();qt();var qe={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"}},Kn=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}"]`},ER=t=>ie({v:t}).v,AR=(t,e,n,r)=>{try{return pt(t,e,n)}catch(o){console.warn(`[helmet] metadata factory for "${r}" threw; treating as unset:`,o&&o.message||o);return}},nx=Object.freeze({authored:!0}),Oi=(t,e,n,r)=>{if(!t)return{};let o=t;v(o)&&Qt(o)&&(o=ER(o));let s=R(o),i=!s&&r?.authored===!0,a=s?AR(o,e,n,"metadata"):E(o)?{...o}:{};if(!E(a))return{};for(let c in a){let l=a[c],f=i&&v(l)&&!Qt(l);v(l)&&Qt(l)&&(l=ER(l)),R(l)?l=AR(l,e,n,c):v(l)&&Qt(l)&&(l=void 0),v(l)&&l.includes("{{")&&e?.call&&(l=f?e.call("replaceLiteralsWithObjectFields",l,n,nx):e.call("replaceLiteralsWithObjectFields",l,n)),a[c]=l}return a},GB=t=>!!t&&typeof t=="object"&&(t.notFound===!0||t.metadata?.notFound===!0),YB=(t,e)=>{if(Object.prototype.hasOwnProperty.call(t,e))return t[e];if(t["/*"])return t["/*"];if(t["*"])return t["*"];for(let n in t)if(GB(t[n]))return t[n]},XB=(t,e="/",n,r)=>{let o=t.pages||{},s=YB(o,e),i={};if(t.integrations?.seo&&(i={...t.integrations.seo}),t.app?.metadata){let l=Oi(t.app.metadata,n,r,nx);i={...i,...l}}let a=new Set;if(s){let l=s.metadata||s.helmet||{},f=Oi(l,n,r,nx);for(let u in f)a.add(u);i={...i,...f},!i.title&&s.state?.title&&(i.title=s.state.title,a.add("title")),!i.description&&s.state?.description&&(i.description=s.state.description,a.add("description"))}i.title||(i.title=t.name||"Symbols"),i.title&&(a.has("title")||!i["og:title"])&&(a.has("og:title")||(i["og:title"]=i.title)),i.description&&(a.has("description")||!i["og:description"])&&(a.has("og:description")||(i["og:description"]=i.description)),i.title&&!i["twitter:title"]&&(i["twitter:title"]=i.title),i.description&&!i["twitter:description"]&&(i["twitter:description"]=i.description);let c=a.has("og:url")?i["og:url"]:a.has("url")?i.url:void 0;if(c)i["og:url"]=c;else if(i["og:url"]||i.url){let l=(i["og:url"]||i.url||"").replace(/\/$/,"");if(l&&e&&e!=="/"){let f=e.startsWith("/")?e:"/"+e;i["og:url"]=l+f}}return so(i,t.files)},RR=(t,e)=>so(Oi(t,e,e.state),e.context?.files),PR=t=>Object.prototype.hasOwnProperty.call(qe,t),Dp=new Map;for(let t in qe){let e=Kn(qe[t]);Dp.has(e)||Dp.set(e,qe[t])}var Ip=t=>t.head||t.querySelector("head"),ax=(t,e)=>{let n=Ip(t);return n?n.querySelector(e):null},rx=(t,e)=>e.tag==="title"?t.textContent:t.getAttribute(e.valueAttr||"content"),cx=(t,e,n)=>{e.tag==="title"?t.textContent=n:t.setAttribute(e.valueAttr||"content",n)},lx=(t,e)=>{let n=Ip(e);if(!n)return null;let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),n.appendChild(r),r},Ti=t=>{let e=5381,n=String(t);for(let r=0;r<n.length;r++)e=(e*33^n.charCodeAt(r))>>>0;return e.toString(36)},Ri=(t,e,n,r)=>{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 n)i.add(a);for(let[a,c]of s)i.has(a)||c.remove();for(let a of n){if(s.has(a))continue;let c=r(a);c&&(c.setAttribute(e,a),o.appendChild(c))}},LR=(t,e)=>{let r=(e||[]).filter(s=>s!=null).map(s=>v(s)?s:JSON.stringify(s)),o=r.map(Ti);Ri(t,"data-smbls-jsonld",o,s=>{let i=o.indexOf(s),a=t.createElement("script");return a.setAttribute("type","application/ld+json"),a.textContent=r[i],a})},DR=(t,e)=>{let n=(e||[]).filter(o=>o!=null&&String(o).trim()),r=n.map(Ti);Ri(t,"data-smbls-style",r,o=>{let s=r.indexOf(o),i=t.createElement("style");return i.textContent=String(n[s]),i})},IR=t=>(t||[]).filter(e=>e&&(v(e)?e.trim():e.src)),$R=t=>v(t)?t:String(t.src),MR=(t,e)=>{let n=t.createElement("script");return v(e)?n.setAttribute("src",e):(e.src&&n.setAttribute("src",e.src),e.type&&n.setAttribute("type",e.type),e.async&&(n.async=!0),e.defer&&(n.defer=!0),e.integrity&&n.setAttribute("integrity",e.integrity),e.crossorigin&&n.setAttribute("crossorigin",e.crossorigin),e.referrerpolicy&&n.setAttribute("referrerpolicy",e.referrerpolicy),e.nomodule&&(n.noModule=!0),e.body&&(n.textContent=String(e.body))),n},ZB=(t,e)=>{let n=IR(e),r=n.map($R);Ri(t,"data-smbls-script",r,o=>MR(t,n[r.indexOf(o)]))},NR=t=>`${t.hreflang||""}|${t.href||""}`,ox=t=>E(t)?Ti(JSON.stringify(t)):String(t),FR=(t,e)=>{let n=(e||[]).filter(o=>E(o)),r=n.map(NR);Ri(t,"data-smbls-alternate",r,o=>{let s=r.indexOf(o),i=t.createElement("link");i.setAttribute("rel","alternate");for(let[a,c]of Object.entries(n[s]))i.setAttribute(a,c);return i})},jR=(t,e)=>{let n=(e||[]).filter(o=>o!=null),r=n.map(ox);Ri(t,"data-smbls-favicon",r,o=>{let s=r.indexOf(o),i=n[s],a=t.createElement("link");if(a.setAttribute("rel","icon"),E(i))for(let[c,l]of Object.entries(i))a.setAttribute(c,l);else a.setAttribute("href",String(i));return a})},BR=(t,e)=>{let n=e?String(e):"",r=n.endsWith(".svg")?"image/svg+xml":n.endsWith(".png")?"image/png":"";Ri(t,"data-smbls-single-icon",n?[n]:[],o=>{let s=t.createElement("link");return s.setAttribute("rel","icon"),s.setAttribute("href",o),r&&s.setAttribute("type",r),s})},fx=(t,e)=>{if(!(!E(t)||!e)){for(let n in t){let r=t[n];if(r==null||!PR(n))continue;let o=qe[n],s=ax(e,Kn(o))||lx(o,e);s&&cx(s,o,r)}Array.isArray(t.jsonLd)&&LR(e,t.jsonLd),Array.isArray(t.styles)&&DR(e,t.styles),Array.isArray(t.scripts)&&ZB(e,t.scripts),Array.isArray(t.alternate)&&FR(e,t.alternate),Array.isArray(t.favicons)&&jR(e,t.favicons),(t.icon||t.favicon)&&BR(e,t.icon||t.favicon)}},CR=new WeakMap,sx=new WeakMap,VR=t=>{let e=t.location;return e&&v(e.pathname)?e.pathname:null},QB=t=>{let e=CR.get(t);return e||(e={doc:t,layers:[],servedPath:VR(t),originals:new Map,owned:new Set,lists:new Set},CR.set(t,e)),e},JB=(t,e)=>{for(let n=e.parent;n&&n!==n.parent;n=n.parent)if(n===t)return!0;return!1},t3=(t,e)=>{let n=sx.get(t);if(n)return n;let r=QB(e),o={element:t,values:null,disposed:!1,set(i){o.disposed||(o.values=i,OR(r))},dispose(){if(o.disposed)return;o.disposed=!0;let i=r.layers.indexOf(o);i!==-1&&r.layers.splice(i,1);try{OR(r)}catch(a){console.warn("[helmet] could not re-render the head after an element left:",a&&a.message||a)}}},s=r.layers.length;for(let i=0;i<r.layers.length;i++)if(JB(t,r.layers[i].element)){s=i;break}return r.layers.splice(s,0,o),sx.set(t,o),o},ix=(t,e,n,r)=>{let o=t3(t,e),s=K(()=>{let a=n();o.set(a),r&&r(a)}),i=t.__ref?.__effects;i&&i.push(s,o)},e3=Kn(qe.title),n3=Kn(qe.description),r3=Kn(qe["og:title"]),o3=Kn(qe["og:description"]),s3=Kn(qe["twitter:title"]),i3=Kn(qe["twitter:description"]),TR=(t,e,n,r)=>{let o=t.get(e);if(!o||!o.value)return;let s=t.get(n);(!s||!s.value||s.rank<o.rank)&&t.set(n,o);let i=t.get(r);(!i||!i.value)&&t.set(r,o)},tx={jsonLd:LR,styles:DR,alternate:FR,favicons:jR,icon:BR},a3=t=>{let e=new Map,n={},r=[];for(let o=0;o<t.length;o++){let s=t[o].values;if(!E(s))continue;for(let a in s){let c=s[a];c==null||!PR(a)||e.set(Kn(qe[a]),{value:String(c),rank:o})}for(let a of["jsonLd","styles","alternate","favicons"])Array.isArray(s[a])&&(n[a]=s[a]);let i=s.icon||s.favicon;i&&(n.icon=i),Array.isArray(s.scripts)&&r.push(...s.scripts)}return TR(e,e3,r3,s3),TR(e,n3,o3,i3),{tags:e,lists:n,scripts:r}},c3=(t,e,n)=>{let{doc:r,originals:o}=t,s=Dp.get(e),i=ax(r,e),a=o.get(e);a||(a={value:i?rx(i,s):null,rendered:!1},o.set(e,a)),a.value===n&&(a.rendered=!0),i||(i=lx(s,r)),i&&(rx(i,s)!==n&&cx(i,s,n),t.owned.add(e))},l3=(t,e)=>{let{doc:n}=t;t.owned.delete(e);let r=Dp.get(e),o=ax(n,e),s=t.originals.get(e);if(s&&s.value!==null&&!s.rendered&&VR(n)===t.servedPath){let a=o||lx(r,n);a&&rx(a,r)!==s.value&&cx(a,r,s.value)}else o&&o.remove()},f3=(t,e)=>{let n=IR(e);if(!n.length)return;let r=Ip(t),o=new Set;for(let s of r.querySelectorAll("[data-smbls-script]"))o.add(s.getAttribute("data-smbls-script"));for(let s of n){let i=$R(s);if(o.has(i))continue;let a=MR(t,s);a.setAttribute("data-smbls-script",i),r.appendChild(a),o.add(i)}},OR=t=>{let{doc:e}=t;if(!Ip(e))return;let{tags:n,lists:r,scripts:o}=a3(t.layers);for(let s of[...t.owned])n.has(s)||l3(t,s);for(let[s,{value:i}]of n)c3(t,s,i);for(let s in tx)r[s]!==void 0?(tx[s](e,r[s]),t.lists.add(s)):t.lists.delete(s)&&tx[s](e,null);f3(e,o)},it=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,n=>e[n])},u3=t=>{let e=['<meta charset="UTF-8">'],n=new Set(["charset","jsonLd","styles","scripts"]),r=!1;for(let[o,s]of Object.entries(t)){if(!s&&s!==0&&s!==!1||n.has(o)||typeof s=="function")continue;if(o==="title"){e.push(`<title>${it(s)}</title>`);continue}if(o==="viewport"){r||(e.push(`<meta name="viewport" content="${it(s)}">`),r=!0);continue}if(o==="canonical"){e.push(`<link rel="canonical" href="${it(s)}">`);continue}if(o==="icon"||o==="favicon"){let f=it(s),u=f.endsWith(".svg")?' type="image/svg+xml"':f.endsWith(".png")?' type="image/png"':"";e.push(`<link rel="icon" href="${f}"${u} data-smbls-single-icon="${f}">`);continue}if(o==="favicons"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${it(p)}"`).join(" ");e.push(`<link rel="icon" ${u} data-smbls-favicon="${it(ox(f))}">`)}else typeof f=="string"&&e.push(`<link rel="icon" href="${it(f)}" data-smbls-favicon="${it(ox(f))}">`)});continue}if(o==="alternate"&&Array.isArray(s)){s.forEach(f=>{if(E(f)){let u=Object.entries(f).map(([d,p])=>`${d}="${it(p)}"`).join(" ");e.push(`<link rel="alternate" ${u} data-smbls-alternate="${it(NR(f))}">`)}});continue}let i=["og:","article:","product:","fb:","profile:","book:","business:","music:","video:"],a=["twitter:","DC:","DCTERMS:"],c=i.some(f=>o.startsWith(f)),l=a.some(f=>o.startsWith(f));if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");e.push(`<meta http-equiv="${it(f)}" content="${it(s)}">`)}else if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");e.push(`<meta itemprop="${it(f)}" content="${it(s)}">`)}else c?Array.isArray(s)?s.forEach(f=>e.push(`<meta property="${it(o)}" content="${it(f)}">`)):e.push(`<meta property="${it(o)}" content="${it(s)}">`):l?e.push(`<meta name="${it(o)}" content="${it(s)}">`):Array.isArray(s)?s.forEach(f=>e.push(`<meta name="${it(o)}" content="${it(f)}">`)):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&e.push(`<meta name="${it(o)}" content="${it(s)}">`)}if(r||e.splice(1,0,'<meta name="viewport" content="width=device-width, initial-scale=1">'),Array.isArray(t.jsonLd))for(let o of t.jsonLd){if(o==null)continue;let s=typeof o=="string"?o:JSON.stringify(o),i=String(s).replace(/<\/script/gi,"<\\/script");e.push(`<script type="application/ld+json" data-smbls-jsonld="${Ti(s)}">${i}<\/script>`)}if(Array.isArray(t.styles))for(let o of t.styles){if(o==null||!String(o).trim())continue;let s=String(o).replace(/<\/style/gi,"<\\/style");e.push(`<style data-smbls-style="${Ti(s)}">${s}</style>`)}if(Array.isArray(t.scripts))for(let o of t.scripts){if(!o)continue;let s=typeof o=="string",i=s?o:o.src;if(!i&&!(o&&o.body))continue;let a=[];i&&a.push(`src="${it(i)}"`),s||(o.type&&a.push(`type="${it(o.type)}"`),o.async&&a.push("async"),o.defer&&a.push("defer"),o.integrity&&a.push(`integrity="${it(o.integrity)}"`),o.crossorigin&&a.push(`crossorigin="${it(o.crossorigin)}"`),o.referrerpolicy&&a.push(`referrerpolicy="${it(o.referrerpolicy)}"`),o.nomodule&&a.push("nomodule"));let c=` data-smbls-script="${it(i||Ti(o.body||""))}"`;if(!s&&o.body){let l=String(o.body).replace(/<\/script/gi,"<\\/script");e.push(`<script ${a.join(" ")}${c}>${l}<\/script>`)}else e.push(`<script ${a.join(" ")}${c}><\/script>`)}return e.join(`
93
+ `)},UR={define:{metadata:(t,e,n)=>{let r=e.context?.document||typeof document<"u"&&document;r&&ix(e,r,()=>RR(t,e),o=>{let s=e.state?.root;E(s)&&(s.$helmet=o)})}}},ex=t=>{let e=t.metadata;return e?RR(e,t):null},ux={name:"helmet",create(t){if(!t.metadata)return;let e=t.context?.document||typeof document<"u"&&document;e&&ix(t,e,()=>ex(t))},update(t){let e=sx.get(t);if(e){e.disposed||e.set(ex(t));return}if(!t.metadata)return;let n=t.context?.document||typeof document<"u"&&document;n&&ix(t,n,()=>ex(t))}},d3=UR;Ja();var zR=(t,e,n,r)=>{t&&Qa(t,e,n,r)},HR=(t,e,n)=>{if(!t)return;let r=e.context?.document||typeof document<"u"&&document;if(!r)return;let o=Oi(t,e,n);fx(o,r)},WR=async(t,e)=>{if(!t)return;let n={tag:"fragment",...t},r=async()=>{await e.set(n,{preventDefineUpdate:"$router"})};return e.lazyLoad?window.requestAnimationFrame(r):await r(),n},Pi={routes:t=>t,metadata:HR,fetch:zR,$router:WR},qR=(t={})=>{let e={routes:n=>n};return t.metadata!==!1&&(e.metadata=HR),t.fetch!==!1&&(e.fetch=zR),t.router!==!1&&(e.$router=WR),e};var px={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},$p={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Mp={...px,router:$p},p3={state:{},pages:{},components:{},router:$p,define:Pi},Pr=p3;$();$();var KR=(t,e)=>q(t.extends)?t.extends:[];qt();$();var hx={};F(hx,{default:()=>v3,getActiveLang:()=>Lr,getLanguages:()=>Gl,getLocalStateLang:()=>Jl,getPendingLang:()=>Kl,initPolyglot:()=>Fp,loadTranslations:()=>Xl,polyglotPlugin:()=>Di,setLang:()=>Zl,translate:()=>Yl,upsertTranslation:()=>Ql});$();qt();var QR="smbls_lang",h3="smbls_t_",g3="smbls_tv_",Li={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(n){console.warn("[polyglot] localStorage unavailable:",n.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},ql={},GR=new WeakMap,JR=(t,e)=>t&&typeof t=="object"?t:e&&typeof e=="object"?e:null,tP=t=>{let e=GR.get(t);return e||(e={seq:0,pending:Br(null),wake:null},GR.set(t,e)),e},YR=(t,e,n)=>new Promise(r=>{let o=null,s=()=>{o!==null&&clearTimeout(o),o=null,t.wake===s&&(t.wake=null),r()};t.wake=s,Promise.resolve(e).then(s,s),n>0&&(o=setTimeout(s,n))}),XR=(t,e)=>!!(t?.translations&&t.translations[e]),m3=3e3,y3=2147483647,b3=t=>{let e=t?.fontWait;return e===!1?0:typeof e=="number"?e>0?Math.min(e,y3):0:m3},_3=new RegExp("\\p{L}","gu"),w3=(...t)=>{let e=new Set,n=(r,o)=>{if(typeof r=="string"){let s=r.match(_3);if(s)for(let i=0;i<s.length;i++)e.add(s[i])}else if(r&&typeof r=="object"&&o<8)for(let s in r)n(r[s],o+1)};for(let r=0;r<t.length;r++)n(t[r],0);return Array.from(e).join("")},S3=(t,e)=>{let n=t?.fonts;if(!e||!n||!t.body||typeof n.check!="function"||typeof n.load!="function")return null;try{let o=(t.defaultView||globalThis).getComputedStyle(t.body).fontFamily;if(!o)return null;let s="1em "+o;return n.check(s,e)?null:Promise.resolve(n.load(s,e)).then(()=>{},()=>{})}catch{return null}};function Lr(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||t?.state?.lang||e?.defaultLang||"en"}function Kl(){let t=this?.context,e=JR(t,this?.state?.root||t?.state?.root);return e?tP(e).pending.get():null}function Gl(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var Np=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let n=e.split("."),r=t;for(let o=0;o<n.length;o++){if(r==null)return;r=r[n[o]]}return r},ZR=(t,e,n)=>{let r=e.lastIndexOf(".");if(r===-1)return t[e+"_"+n];let o=Np(t,e.substring(0,r));if(o!=null)return o[e.substring(r+1)+"_"+n]};function Yl(t,e){if(!t)return"";let n=this?.context,r=n?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let l=ZR(s,t,o);if(l!==void 0)return l}if(r?.translations){let l=r.translations[o];if(l){let f=Np(l,t);if(f!==void 0)return f}}let a=(s?.root||n?.state?.root)?.translations;if(a){let l=a[o];if(l){let f=Np(l,t);if(f!==void 0)return f}}let c=r?.defaultLang||"en";if(s){let l=ZR(s,t,c);if(l!==void 0)return l}if(r?.translations){let l=r.translations[c];if(l){let f=Np(l,t);if(f!==void 0)return f}}return t}async function Xl(t){let e=this?.context,n=e?.polyglot,r=this?.state?.root||e?.state?.root;if(!n||!r)return;let o=n.storagePrefix||h3,s=n.storageVersionPrefix||(n.storagePrefix?n.storagePrefix.replace(/_$/,"v_"):g3);if(n.translations&&n.translations[t]&&!n.fetch||!n.fetch||n._fetchFailed?.[t])return;if(!r.translations?.[t]){let c=Li.get(o+t);if(c)try{let l=JSON.parse(c),f={translations:{...r.translations||{}}};f.translations[t]=l,r.update&&r.update(f)}catch(l){console.warn("[polyglot] Failed to apply language update:",l.message)}}let i=(n.storagePrefix||"smbls")+":"+t;if(ql[i])return ql[i];let a=this;return ql[i]=(async()=>{try{let c=n.fetch,l=parseInt(Li.get(s+t),10)||0,f,u,d;if(R(c)){let g=await c(t,l,a);if(!g||g.changed===!1)return;f=g.translations||g.data||g,u=g.version||0,d=!0}else if(E(c)){let g=a.getDB||(()=>e.fetch),h=R(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||{}},S=await h.rpc({from:m,params:y});if(S.error)throw n._fetchFailed||(n._fetchFailed={}),n._fetchFailed[t]=!0,S.error;let b=S.data;if(!b||!b.changed)return;f=b.translations||{},u=b.version||0,d=!0}else return;if(!d||!f)return;Li.set(o+t,JSON.stringify(f)),u&&Li.set(s+t,String(u));let p={translations:{...r.translations||{}}};p.translations[t]=f,r.update&&r.update(p)}catch(c){if(n.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 ql[i]}})(),ql[i]}var x3=(t,e,n)=>{let r=t.__ref;if(!r||r.contentManaged||n==null||typeof n=="object")return;let o=r.__textNode;if(!o||o.parentNode!==e)return;let s=String(n);o.nodeValue!==s&&(o.nodeValue=s)};async function Zl(t,e){let n=this?.context,r=n?.polyglot,o=this?.state?.root||n?.state?.root,s=n?.document||globalThis.document;if(!o)return;if(e?.persist!==!1){let l=r?.storageLangKey||QR;Li.set(l,t)}let i=tP(JR(n,o)),a=++i.seq;i.wake&&i.wake();let c=()=>i.seq===a;if(this.call("getActiveLang")===t){i.pending.set(null),s?.documentElement&&(s.documentElement.lang=t);return}try{if(r?.fetch){let f=this.call("loadTranslations",t);if(!XR(o,t)){i.pending.set(t);let u=null;if(await YR(i,Promise.resolve(f).then(null,d=>{u=d}),0),!c())return;if(u)throw u;if(!XR(o,t)&&!r.translations?.[t])return}}let l=b3(r);if(l>0&&s?.fonts&&s.documentElement?.lang!==t){let f=S3(s,w3(r?.translations?.[t],o.translations?.[t]));if(f&&(i.pending.set(t),await YR(i,f,l),!c()))return}i.pending.set(null),k3(n,r,o,s,t)}finally{c()&&i.pending.set(null)}}function k3(t,e,n,r,o){t?.state&&(t.state.lang=o);let s=e?.translations?.[o],i={lang:o},a=c=>Ua(t,c,n);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;let l=s[c];(Array.isArray(l)||typeof l=="string"||typeof l=="number")&&(i[c]=l)}n.update&&n.update(i);for(let c in i)c!=="lang"&&mn(t,c,i[c]);if(s&&typeof s=="object")for(let c in s){if(!a(c))continue;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];mn(t,c,n[c])}}if(r&&s){let c=r.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{x3(f,l,f.call("replaceLiteralsWithObjectFields",u,f.state))}catch{}}}r?.documentElement&&(r.documentElement.lang=o)}async function Ql(t,e,n){let r=this?.context,o=r?.polyglot,s=this?.state?.root||r?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=n),o?.translations?.[e]&&(o.translations[e][t]=n),o?.fetch&&E(o.fetch)){let i=this.getDB||(()=>r.fetch),a=R(i)?await i.call(this):r.fetch;if(!a)return;let c=o.fetch.table||"translations",l=await a.upsert({from:c,data:{key:t,lang:e,text:n}});if(l?.error)throw l.error;return l.data}}async function Fp(){let t=this?.context,e=t?.polyglot;if(!e)return;let n=this?.state?.root||t?.state?.root;if(!n)return;let r=e.storageLangKey||QR,s=Li.get(r)||Lr.call(this),i=t?.document||globalThis.document;i?.documentElement&&(i.documentElement.lang=s),n.update&&n.lang!==s&&n.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function Jl(t){try{let e=Lr.call(this),n=this?.state;if(!n)return"";let r=t.lastIndexOf(".");if(r===-1)return n[t+e]??"";let o=t.substring(0,r).split("."),s=n;for(let i=0;i<o.length;i++){if(s==null)return"";s=s[o[i]]}return s==null?"":s[t.substring(r+1)+e]??""}catch{return""}}var Di={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Fp.call(t))}},v3=Di;Ja();var mx={};F(mx,{SYSTEM_METRICS:()=>tf,capsizeHandler:()=>gx,capsizePlugin:()=>Bp,computeCapsize:()=>eP,default:()=>E3,resolveFontSizePx:()=>nP,resolveMetrics:()=>rP});var tf={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}},jp=t=>parseFloat(t.toFixed(4)),eP=(t,e,n)=>{let{ascent:r,descent:o,lineGap:s,unitsPerEm:i,capHeight:a}=e,c=Math.abs(o),l=r+c+s,f=n!==void 0?n:l/i*t,u=f/t,d=l/i,p=(r-a+s/2)/i-(u-d)/2,g=(c+s/2)/i-(u-d)/2;return{fontSize:`${jp(t/16)}rem`,lineHeight:`${jp(f)}px`,capHeightTrim:`${jp(-p)}em`,baselineTrim:`${jp(-g)}em`}},nP=(t,e)=>{if(typeof t=="number")return t;let n=e?.designSystem;if(!n)return null;let{typography:r}=n;if(r?.sequence){let s=String(t).toUpperCase(),i=r.sequence[s];if(i)return i.decimal||i.val}let o=parseFloat(t);return isNaN(o)?null:typeof t=="string"&&t.endsWith("rem")?o*(n.typography?.browserDefault||16):o},rP=(t,e)=>{let r=e?.designSystem?.font_family||{};if(t){let s=r[t];if(s?.metrics)return s.metrics;let i=String(t).toLowerCase().replace(/['"]/g,"").trim();if(tf[i])return tf[i]}let o=r.default||Object.keys(r)[0];if(o){let s=r[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(tf[a])return tf[a]}}return null},gx=(t,e,n,r)=>{if(!t)return;let o=nP(e.fontSize,r);if(!o)return;let s=rP(e.fontFamily,r);if(!s)return;let i=e.lineHeight?parseFloat(e.lineHeight):void 0,{lineHeight:a,capHeightTrim:c,baselineTrim:l}=eP(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},Bp={name:"capsize",init(t){t.useCapsize===void 0&&t.fontSize&&(t.useCapsize=!0)}},E3=Bp;var kx={};F(kx,{PRESERVE_VALUE_KEYS:()=>Gt,SKIP_INLINE_KEYS:()=>Dr,abbrToProp:()=>Kt,decode:()=>cP,encode:()=>sP,expand:()=>Fo,isComponentKey:()=>an,isSelectorKey:()=>cn,parse:()=>jo,parseFurther:()=>Vo,propToAbbr:()=>Ke,shorten:()=>ef,shorthandPlugin:()=>nf,stringify:()=>No,stringifyFurther:()=>Bo});var Ke={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"},Kt=Object.create(null);for(let t in Ke)Kt[Ke[t]]=t;var yx=Object.create(null);for(let t in Ke){let e=Ke[t];if(yx[e])throw new Error(`Duplicate abbreviation "${e}" for "${t}" \u2014 already used by "${yx[e]}"`);yx[e]=t}var Gt=new Set(["state","st","scope","scp","attr","at","style","sy","data","dt","context","ctx","query","qy","class","cl"]),Dr=new Set(["text","tx","html","htm","content","cnt","placeholder","phd","src","href","hrf"]);function an(t){return/^[A-Z]/.test(t)}function cn(t){return/^[:@.!$>&]/.test(t)||t.startsWith("> ")}function sP(t){if(!t||typeof t!="object")return"";let e=[];for(let n in t){let r=t[n];if(typeof r=="function"||r!==null&&typeof r=="object"&&!Array.isArray(r)||r===void 0)continue;let o=Ke[n]||n;if(r===!0)e.push(o);else if(r===!1)e.push("!"+o);else if(Array.isArray(r)){let s=r.map(i=>Vp(i));e.push(o+":"+s.join(","))}else e.push(o+":"+Vp(r))}return e.join(" ")}function Vp(t){return String(t).replace(/ /g,"_")}function ef(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?ef(n):n});let e={};for(let n in t){let r=t[n];if(an(n)){e[n]=bx(r);continue}if(cn(n)){e[n]=bx(r);continue}let o=Ke[n]||n;if(Gt.has(n)||Gt.has(o)){e[o]=r;continue}e[o]=bx(r)}return e}function bx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?ef(e):e}):typeof t=="object"?ef(t):t}function No(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?No(r):r});let e={},n=[];for(let r in t){let o=t[r];if(an(r)){e[r]=oP(o);continue}if(cn(r)){e[r]=oP(o);continue}let s=Ke[r]||r;if(Gt.has(r)||Gt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Dr.has(r)||Dr.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?No(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(Vp).join(","));continue}if(typeof o=="object"){e[s]=No(o);continue}o===!0?n.push(s):o===!1?n.push("!"+s):typeof o=="number"||typeof o=="string"&&(o.includes(",")||o.includes("_"))?e[s]=o:n.push(s+":"+Vp(o))}return n.length&&(e.in=n.join(" ")),e}function oP(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?No(e):e}):typeof t=="object"?No(t):t}function cP(t){if(!t||typeof t!="string")return{};let e={},n=lP(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Kt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(iP);continue}e[a]=iP(i)}return e}function lP(t){return t.trim().split(/\s+/).filter(Boolean)}function iP(t){let e=t.replace(/_/g," ");return/^-?\d+(\.\d+)?$/.test(e)?Number(e):e}function aP(t){return t.replace(/_/g," ")}function A3(t){if(!t||typeof t!="string")return{};let e={},n=lP(t);for(let r of n){if(r.startsWith("!")){let c=r.slice(1),l=Kt[c]||c;e[l]=!1;continue}let o=r.indexOf(":");if(o===-1){let c=Kt[r]||r;e[c]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s;if(i.includes(",")){e[a]=i.split(",").map(aP);continue}e[a]=aP(i)}return e}function Fo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Fo(n):n});let e={};for(let n in t){let r=t[n];if(an(n)){e[n]=_x(r);continue}let o=Kt[n]||n;if(cn(n)&&o===n){e[n]=_x(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=_x(r)}return e}function _x(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Fo(e):e}):typeof t=="object"?Fo(t):t}function jo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?jo(n):n});let e={};if(typeof t.in=="string"){let n=A3(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(an(n)){e[n]=wx(r);continue}let o=Kt[n]||n;if(cn(n)&&o===n){e[n]=wx(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=wx(r)}return e}function wx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?jo(e):e}):typeof t=="object"?jo(t):t}function fP(t){return String(t).replace(/\\/g,"\\\\").replace(/_/g,"\\_").replace(/,/g,"\\,").replace(/ /g,"_")}function C3(t){let e="",n=0;for(;n<t.length;){if(t[n]==="\\"&&n+1<t.length){let r=t[n+1];if(r===","||r==="_"||r==="\\"){e+=r,n+=2;continue}}t[n]==="_"?e+=" ":e+=t[n],n++}return e}function T3(t){let e=[],n="",r=0;for(;r<t.length;){if(t[r]==="\\"&&r+1<t.length){n+=t[r]+t[r+1],r+=2;continue}if(t[r]===","){e.push(n),n="",r++;continue}n+=t[r],r++}return e.push(n),e}function uP(t){if(t==null||typeof t!="object"||Array.isArray(t))return!1;let e=Object.keys(t);return e.length===1&&e[0]==="in"&&typeof t.in=="string"}function Bo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(r){return r!==null&&typeof r=="object"?Bo(r):r});let e={},n=[];for(let r in t){let o=t[r];if(an(r)){let i=dP(o);e[r]=uP(i)?i.in:i;continue}if(cn(r)){let i=dP(o);e[r]=uP(i)?i.in:i;continue}let s=Ke[r]||r;if(Gt.has(r)||Gt.has(s)){e[s]=o;continue}if(typeof o=="function"){e[s]=o;continue}if(o==null){e[s]=o;continue}if(Dr.has(r)||Dr.has(s)){e[s]=o;continue}if(Array.isArray(o)){if(o.some(function(a){return a!==null&&typeof a=="object"})){e[s]=o.map(function(a){return a!==null&&typeof a=="object"?Bo(a):a});continue}if(o.length<=1){e[s]=o;continue}n.push(s+":"+o.map(fP).join(","));continue}if(typeof o=="object"){e[s]=Bo(o);continue}if(o===!0){n.push(s);continue}if(o===!1){n.push("!"+s);continue}if(typeof o=="number"){n.push(s+":#"+o);continue}n.push(s+":"+fP(o))}return n.length&&(e.in=n.join(" ")),e}function dP(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Bo(e):e}):typeof t=="object"?Bo(t):t}function pP(t){return t.startsWith("#")&&/^#-?\d+(\.\d+)?$/.test(t)?Number(t.slice(1)):C3(t)}function Sx(t){if(!t||typeof t!="string")return{};let e={},n=t.trim().split(/\s+/).filter(Boolean);for(let r of n){if(r.startsWith("!")){let l=r.slice(1),f=Kt[l]||l;e[f]=!1;continue}let o=r.indexOf(":");if(o===-1){let l=Kt[r]||r;e[l]=!0;continue}let s=r.slice(0,o),i=r.slice(o+1),a=Kt[s]||s,c=T3(i);if(c.length>1){e[a]=c.map(pP);continue}e[a]=pP(i)}return e}function Vo(t){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(function(n){return n!==null&&typeof n=="object"?Vo(n):n});let e={};if(typeof t.in=="string"){let n=Sx(t.in);for(let r in n)e[r]=n[r]}for(let n in t){if(n==="in")continue;let r=t[n];if(an(n)){typeof r=="string"?e[n]=Sx(r):e[n]=xx(r);continue}let o=Kt[n]||n;if(cn(n)&&o===n){typeof r=="string"?e[n]=Sx(r):e[n]=xx(r);continue}if(Gt.has(o)||Gt.has(n)){e[o]=r;continue}e[o]=xx(r)}return e}function xx(t){return t==null||typeof t=="function"?t:Array.isArray(t)?t.map(function(e){return e!==null&&typeof e=="object"?Vo(e):e}):typeof t=="object"?Vo(t):t}var O3={shorten:Fo,stringify:jo,stringifyFurther:Vo};function R3(t,e){if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>e(r));let n={};for(let r in t){let o=t[r];n[r]=o&&typeof o=="object"?e(o):o}return n}var P3=["components","pages","snippets"],nf={name:"shorthand",prepareContext(t){let e=t.shorthand;if(!e)return;let r=O3[e===!0?"shorten":e];if(r){for(let o of P3)t[o]&&(t[o]=R3(t[o],r));t.app&&typeof t.app=="object"&&(t.app=r(t.app))}}};var $x={};F($x,{LEVELS:()=>rf,analyzePlugin:()=>$i,attachBrowserListeners:()=>Xp,attachNetworkListeners:()=>sf,classifyEvent:()=>Rx,createAnalyzeState:()=>Zp,createBeaconSink:()=>Dx,createConsoleSink:()=>Px,createDedupe:()=>Cx,createEnrich:()=>Ex,createMemorySink:()=>Lx,createPipeline:()=>Wp,createRedact:()=>Hp,createRemoteSink:()=>Kp,createSample:()=>Tx,createSummarize:()=>Ax,default:()=>$i,emitFetchEvent:()=>SP,makeEvent:()=>rt,meetsLevel:()=>Up,normalizeLevel:()=>of,resolveSinks:()=>Yp,summarizeElement:()=>Uo});var L3=0,D3=()=>`${Date.now().toString(36)}-${(L3++).toString(36)}`,rt=(t,e,n={})=>({id:D3(),ts:Date.now(),type:t,level:e,...n}),I3=t=>{let e=[],n=t,r=0;for(;n&&r<32;)n.key!=null&&e.unshift(String(n.key)),n=n.parent,r++;return e.join(" > ")},Uo=t=>t?{key:t.key!=null?String(t.key):null,name:t.__name||t.name||null,path:I3(t),tag:t.tag||null,component:t.component||null,route:t.context?.routerOptions?.currentRoute||null}:null;var Ii=t=>t?.context?.analyze,$3={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"}},M3=(t,{category:e,type:n,level:r})=>o=>{let s=Ii(o);!s||!s.shouldCapture(e)||s.emit(rt(n,r,{hook:t,element:Uo(o)}))},hP=t=>(e,n)=>{let r=Ii(e);!r||!r.shouldCapture("state")||r.emit(rt("state","debug",{hook:t,element:Uo(e),changedKeys:n?.changedKeys||null}))},$i={name:"analyze",error(t,e){let n=Ii(t);if(!n||n.config.enabled===!1||!n.shouldCapture("errors"))return;let r=e?.error||e?.err||(e instanceof Error?e:null);n.emit(rt("error","error",{hook:e?.hook||"error",element:Uo(t),error:r,message:r?.message||(typeof e?.message=="string"?e.message:null)}))},renderRouter(t){let e=Ii(t);e&&(!e.shouldCapture("navigation")&&!e.shouldCapture("lifecycle")||e.emit(rt("navigation","info",{hook:"renderRouter",route:t.context?.routerOptions?.currentRoute||null})))},beforeUpdate(t){let e=Ii(t);!e||!e.shouldCapture("updates")||t.__ref&&(t.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(t){let e=Ii(t);if(!e||!e.shouldCapture("updates"))return;let n=null;t.__ref?.__analyzeUpdateStart!=null&&(n=(typeof performance<"u"?performance.now():Date.now())-t.__ref.__analyzeUpdateStart,t.__ref.__analyzeUpdateStart=null),e.emit(rt("update","debug",{hook:"update",element:Uo(t),durationMs:n}))},beforeStateUpdate:hP("beforeStateUpdate"),stateUpdate:hP("stateUpdate")};for(let[t,e]of Object.entries($3))$i[t]=M3(t,e);$();var rf={error:0,warn:1,info:2,debug:3,trace:4};var Up=(t,e)=>{let n=rf[t],r=rf[e];return n==null||r==null?!0:n<=r},of=t=>rf[t]!=null?t:"warn";$();var zp=/password|token|secret|ssn|card|cvv|pin|apikey|api_key|auth|email|otp/i;var N3=(t,e)=>{for(let n of e)if(n instanceof RegExp){if(n.test(t))return!0}else if(typeof n=="string"&&t.toLowerCase().includes(n.toLowerCase()))return!0;return!1},F3=(t,e)=>{if(e!=="redact"){if(e==="hash"){let n=0,r=String(t);for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},vx=(t,e,n,r)=>{if(r>6||t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(s=>vx(s,e,n,r+1));let o={};for(let s of Object.keys(t))if(N3(s,e)||zp.test(s)){let a=F3(t[s],n);a!==void 0&&(o[s]=a)}else o[s]=vx(t[s],e,n,r+1);return o},Hp=(t=[],e="mask")=>{let n=Array.isArray(t)?t:[t];return r=>{if(!r)return r;let{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...g}=r,h=vx(g,n,e,0);return{id:o,ts:s,type:i,level:a,hook:c,error:l,message:f,durationMs:u,element:d,target:p,...h}}};var Ex=t=>{let e=`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,8)}`,n=typeof navigator<"u"?navigator.userAgent:null,r=t.config.buildHash||null,o=t.config.appId||null;return s=>{if(!s)return s;let i=t.context?.routerOptions?.currentRoute||null,a=C,c=a&&a.innerWidth?{w:a.innerWidth,h:a.innerHeight}:null;return{...s,session:e,app:{id:o,build:r,route:i},meta:{ua:n,viewport:c}}}},Ax=()=>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},Cx=(t=1e3,e=500)=>{let n=new Map;return r=>{if(!r)return r;let o=`${r.type}:${r.level}:${r.message||""}:${r.error?.message||""}`,s=n.get(o),i=r.ts||Date.now();if(s&&i-s<t)return null;if(n.set(o,i),n.size>e){let a=Math.ceil(e/10),c=0;for(let l of n.keys()){if(c++>=a)break;n.delete(l)}}return r}},Tx=t=>e=>{if(!e)return e;let n=t[e.type];return n==null||n>=1?e:Math.random()>n?null:e},gP={redact:t=>Hp(t.config.redact||[],t.config.maskStrategy),enrich:t=>Ex(t),summarize:()=>Ax(),dedupe:t=>Cx(t.config.cache?.dedupeWindowMs||1e3),sample:t=>Tx(t.config.sample||{})},j3=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){let n=gP[t];return n?n(e):null}return null},Wp=t=>{let e=t.config,n=Array.isArray(e.transformers)?e.transformers.slice():[],r=n.findIndex(s=>s==="redact");r>=0&&n.splice(r,1);let o=[];e.redact!==!1&&o.push(gP.redact(t));for(let s of n){let i=j3(s,t);i&&o.push(i)}return s=>{let i=s;for(let a of o){if(i==null)return null;let c=a(i);if(c==null)return null;if(Array.isArray(c)){let l=o.slice(o.indexOf(a)+1),f=[];for(let u of c){let d=u,p=!1;for(let g of l)if(d=g(d),d==null){p=!0;break}!p&&d!=null&&f.push(d)}return f}i=c}return i}};$();$();var qp=typeof C<"u"&&typeof C.document<"u",B3=5e3,V3=50,U3=3,z3=1500,H3=1e3,Rx=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",W3=t=>{try{return JSON.stringify(t)}catch{return null}},q3=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||null}catch{return null}},K3=t=>{if(!t)return null;let e=String(t),n;return(n=e.match(/Edg\/([\d.]+)/))?{name:"Edge",version:n[1]}:(n=e.match(/OPR\/([\d.]+)/))?{name:"Opera",version:n[1]}:(n=e.match(/Firefox\/([\d.]+)/))?{name:"Firefox",version:n[1]}:/Chrome\/([\d.]+)/.test(e)&&/Safari\//.test(e)?(n=e.match(/Chrome\/([\d.]+)/),{name:"Chrome",version:n[1]}):(n=e.match(/Version\/([\d.]+).*Safari/))?{name:"Safari",version:n[1]}:{name:null,version:null}},G3=()=>{if(!qp)return null;try{let t=C.document?.documentElement?.getAttribute("data-theme")||null,e=typeof C.matchMedia=="function"?C.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}},Y3=()=>{if(!qp)return null;let t=C.location,e=typeof navigator<"u"?navigator:null,n=typeof screen<"u"?screen:null;return{url:t?.href||null,path:t?.pathname||null,referrer:C.document?.referrer||null,title:C.document?.title||null,ua:e?.userAgent||null,browser:K3(e?.userAgent),language:e?.language||null,languages:e?.languages||null,timezone:q3(),viewport:C.innerWidth?{w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}:null,screen:n?{w:n.width||null,h:n.height||null,availW:n.availWidth||null,availH:n.availHeight||null,colorDepth:n.colorDepth||null,orientation:n.orientation?.type||null}:null,theme:G3()}},Kp=(t={})=>{let e=t.url,n=typeof t.transport=="function"?t.transport:null,r=typeof t.syncTransport=="function"?t.syncTransport:null;if(!e&&!n)return()=>{};let o=t.apiKey||null,s=t.appKey||t.appId||null,i=t.tenantKey||t.tenant||null,a=t.release||null,c=t.env||null,l=t.sdk||null,f=typeof t.getAuth=="function"?t.getAuth:null,u=typeof t.getContext=="function"?t.getContext:null,d=typeof t.classify=="function"?t.classify:Rx,p=typeof t.beforeSend=="function"?t.beforeSend:null,g=t.debug===!0,h=typeof t.getDebug=="function"?t.getDebug:null,m=t.batchMs!=null?t.batchMs:B3,y=t.maxBatch||V3,S=t.maxRetries!=null?t.maxRetries:U3,b=t.backoffMs||z3,x=t.queueLimit||H3,_=t.sampleRate!=null?t.sampleRate:1,w=()=>typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,k=t.sessionId||w(),A=[],T=[],M=null,P=null,L=()=>{M||!A.length||(M=setTimeout(ft,m))},H=U=>{if(P)return;let j=b*Math.pow(2,Math.max(0,U-1));P=setTimeout(()=>{if(P=null,!T.length)return;let et=T.shift();Z(et.envelope,et.attempt)},j)},lt=(U,j=!1)=>{let et=u?Ox(u):null,B={id:k,sentAt:Date.now()};j&&(B.endedAt=Date.now());let V={v:1,session:B,app:{key:s,release:a,env:c},tenant:i,sdk:l,page:Y3(),user:et?.user||null,traits:et?.traits||null,tags:et?.tags||null,events:U};if((h?Ox(h)===!0:g)&&(V.app.debug=!0),p)try{return p(V)||null}catch{return V}return V},Z=async(U,j=1)=>{if(U)try{let et=!0;if(n){let B=await n(U);et=B!==!1&&B?.ok!==!1}else et=await X3(e,U,{apiKey:o,getAuth:f});!et&&j<S&&(T.push({envelope:U,attempt:j+1}),H(j+1))}catch{j<S&&(T.push({envelope:U,attempt:j+1}),H(j+1))}},ft=(U=!1,j=!1)=>{if(M&&(clearTimeout(M),M=null),!A.length&&!j)return;let et=A;A=[];let B=lt(et,j);if(B){if(U&&qp){if(typeof r=="function"&&Ox(()=>r(B)))return;if(navigator.sendBeacon&&e){let V=W3(B);if(V)try{navigator.sendBeacon(e,new C.Blob([V],{type:"application/json"}));return}catch{}}}Z(B)}},wt=!1,Pt=()=>{wt||(wt=!0,ft(!0,!0))};qp&&(C.addEventListener("pagehide",Pt,{passive:!0}),C.addEventListener("beforeunload",Pt,{passive:!0}),C.addEventListener("visibilitychange",()=>{C.document.visibilityState==="hidden"&&ft(!0)},{passive:!0}));let bt=U=>{if(!U||_<1&&Math.random()>_)return;wt&&(wt=!1);let j={...U,log_type:d(U)};A.push(j),A.length>x&&(A=A.slice(-x)),A.length>=y?ft():L()},$t=U=>(ft(!1,!0),k=U||w(),wt=!1,bt.sessionId=k,k);return bt.flush=()=>ft(!1),bt.endSession=Pt,bt.startNewSession=$t,bt.sessionId=k,bt},Ox=t=>{try{return t()}catch{return null}},X3=async(t,e,{apiKey:n,getAuth:r})=>{let o={"Content-Type":"application/json","X-Analyze-Beacon":"1"};if(n&&(o["X-Analyze-Key"]=n),r)try{let s=await r();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 Z3={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[36m",debug:"\x1B[90m",trace:"\x1B[90m"},Q3="\x1B[0m",Gp=typeof C<"u"&&typeof C.document<"u",Px=(t={})=>{let e=t.minLevel||null,n=console.error.bind(console),r=console.warn.bind(console),o=console.log.bind(console);return s=>{if(!s)return;let i=s.level==="error"?n:s.level==="warn"?r:o,a=`[analyze:${s.type}]`;if(Gp)i(a,s);else{let c=Z3[s.level]||"";i(`${c}${a}${Q3}`,s)}}},Lx=(t,e={})=>{let n=e.max||t.config.cache?.max||500,r=new Array(n),o=0,s=0,i=a=>{r[o]=a,o=(o+1)%n,s<n&&s++};return t.__memory={push:i,snapshot:()=>{let a=new Array(s),c=(o-s+n)%n;for(let l=0;l<s;l++)a[l]=r[(c+l)%n];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},Dx=(t={})=>{let e=t.url,n=t.batchMs!=null?t.batchMs:5e3,r=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=Gp?new C.Blob([c],{type:"application/json"}):c;if(Gp&&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(()=>{})};Gp&&(C.addEventListener("pagehide",i,{passive:!0}),C.addEventListener("beforeunload",i,{passive:!0}));let a=c=>{c&&(o.push(c),o.length>=r?i():s||(s=setTimeout(i,n)))};return a.flush=i,a},mP={console:Px,memory:Lx,beacon:Dx,remote:Kp},yP=(t,e)=>e.getDebug!=null||e.debug!=null?e:{...e,getDebug:()=>t.config.debug===!0},Yp=t=>{let e=Array.isArray(t.config.sinks)?t.config.sinks:["console"],n=[];for(let r of e)if(typeof r=="function")n.push(r);else if(typeof r=="string"){let o=mP[r];if(!o)continue;n.push(r==="memory"?o(t,{}):o(r==="remote"?yP(t,{}):{}))}else if(r&&typeof r=="object"&&r.type){let o=mP[r.type];if(!o)continue;n.push(r.type==="memory"?o(t,r):o(r.type==="remote"?yP(t,r):r))}return n};$();var J3=typeof C<"u"&&typeof C.document<"u",t4=new Set(["password","hidden"]),bP=(t,e)=>{let n=0,r=null,o=null;return(...s)=>{let i=Date.now();i-n>=e?(n=i,t(...s)):(o=s,r||(r=setTimeout(()=>{n=Date.now(),r=null,o&&(t(...o),o=null)},e-(i-n))))}},Ix="__analyzeKeyPath",Mi=t=>{let e=t.target;if(!e)return{selector:null,key:null,path:null};if(e[Ix])return e[Ix];let n=[],r=e,o=0,s=null;for(;r&&o<64;){if(r.getAttribute){let a=r.getAttribute("data-key");a&&(s==null&&(s=a),n.unshift(a))}r=r.parentNode,o++}let i;if(n.length)i={selector:null,key:s,path:n.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[Ix]=i}catch{}return i},e4=(t,e)=>{if(e==="mask")return"***";if(e!=="redact"){if(e==="hash"){let n=0,r=String(t||"");for(let o=0;o<r.length;o++)n=(n<<5)-n+r.charCodeAt(o)|0;return`#${(n>>>0).toString(36)}`}return"***"}},n4=t=>!!(!t||t.tagName==="INPUT"&&t4.has(t.type)||zp.test(t.name||"")||zp.test(t.id||"")||t.dataset?.analyze==="skip"),Xp=t=>{if(!J3)return;let e=t.config.capture,n=t.config.throttle,r=t.__teardown,o=(s,i,a,c)=>{s.addEventListener(i,a,c),r.push(()=>s.removeEventListener(i,a,c))};if(e.errors&&(o(C,"error",s=>{t.emit(rt("error","error",{hook:"window.onerror",message:s.message||null,error:s.error||null,source:s.filename||null,line:s.lineno||null,col:s.colno||null}))}),o(C,"unhandledrejection",s=>{let i=s.reason,a=i instanceof Error?i:null;t.emit(rt("error","error",{hook:"unhandledrejection",message:a?.message||(typeof i=="string"?i:"Unhandled promise rejection"),error:a}))})),e.pointer){o(C,"click",i=>{t.emit(rt("pointer","info",{hook:"click",target:Mi(i),button:i.button,x:i.clientX,y:i.clientY,modifiers:_P(i)}))},{passive:!0,capture:!0}),o(C,"dblclick",i=>{t.emit(rt("pointer","info",{hook:"dblclick",target:Mi(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0}),o(C,"contextmenu",i=>{t.emit(rt("pointer","info",{hook:"contextmenu",target:Mi(i),x:i.clientX,y:i.clientY}))},{passive:!0,capture:!0});let s=bP(i=>{t.emit(rt("pointer","trace",{hook:"pointermove",x:i.clientX,y:i.clientY}))},n.pointermove);o(C,"pointermove",s,{passive:!0})}if(e.keyboard&&o(C,"keydown",s=>{t.emit(rt("keyboard","info",{hook:"keydown",code:s.code,key:s.key&&s.key.length===1?"\xB7":s.key,modifiers:_P(s),target:Mi(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=n4(a),f=a.dataset?.analyze==="track",u=null;f&&!l?u=a.value:t.config.maskFormValues!==!1&&(u=e4(a.value,t.config.maskStrategy)),t.emit(rt("forms","info",{hook:i.type,target:Mi(i),field:{name:a.name||null,type:a.type||a.tagName.toLowerCase()},value:u}))};o(C,"input",s,{passive:!0,capture:!0}),o(C,"change",s,{passive:!0,capture:!0}),o(C,"submit",i=>{t.emit(rt("forms","info",{hook:"submit",target:Mi(i)}))},{passive:!0,capture:!0})}if(e.scroll){let s=bP(()=>{t.emit(rt("scroll","trace",{hook:"scroll",x:C.scrollX,y:C.scrollY}))},n.scroll);o(C,"scroll",s,{passive:!0,capture:!0})}if(e.viewport){let s=Ca(()=>{t.emit(rt("viewport","info",{hook:"resize",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))},n.resize);o(C,"resize",s,{passive:!0}),o(C,"orientationchange",()=>{t.emit(rt("viewport","info",{hook:"orientationchange",orientation:typeof screen<"u"&&screen.orientation?screen.orientation.type:null}))},{passive:!0}),o(C.document,"visibilitychange",()=>{t.emit(rt("viewport","info",{hook:"visibilitychange",hidden:C.document.hidden}))},{passive:!0}),t.emit(rt("viewport","info",{hook:"initial",w:C.innerWidth,h:C.innerHeight,dpr:C.devicePixelRatio||1}))}if(e.console)for(let s of["log","warn","error","debug"]){let i=console[s];console[s]=function(...a){try{t.emit(rt("console",s==="error"?"error":s==="warn"?"warn":"debug",{hook:`console.${s}`,args:a.map(wP)}))}catch{}return i.apply(console,a)},r.push(()=>{console[s]=i})}if(e.performance&&typeof PerformanceObserver<"u")try{let s=new PerformanceObserver(a=>{for(let c of a.getEntries())t.emit(rt("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{}r.push(()=>s.disconnect())}catch{}},_P=t=>({shift:!!t.shiftKey,ctrl:!!t.ctrlKey,alt:!!t.altKey,meta:!!t.metaKey}),r4=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=wP(t.cause)),e},wP=t=>{if(t==null)return t;if(t instanceof Error)return r4(t);if(typeof t=="object")try{return JSON.parse(JSON.stringify(t))}catch{return String(t)}return t};$();var o4=typeof C<"u"&&typeof C.document<"u",SP=(t,e)=>{let n=t?.analyze;if(!n||!n.shouldCapture("network"))return;let r=e.phase==="error"?"error":"info";n.emit(rt("network",r,{hook:`fetch.${e.phase}`,source:"symbo-fetch",...e}))},sf=t=>{if(o4&&t.config.capture.network&&!t.__networkListeners){if(t.__networkListeners=!0,t.__teardown.push(()=>{t.__networkListeners=!1}),typeof C.fetch=="function"){let e=C.fetch.bind(C),n=function(r,o){if(o?.headers?.["X-Analyze-Beacon"]||!t.shouldCapture("network"))return e(r,o);let s=typeof r=="string"?r:r&&r.url||"",i=(o?.method||typeof r=="object"&&r?.method||"GET").toUpperCase(),a=typeof performance<"u"?performance.now():Date.now();return t.emit(rt("network","info",{hook:"fetch.start",source:"window.fetch",url:s,method:i})),e(r,o).then(c=>{let l=(typeof performance<"u"?performance.now():Date.now())-a;return t.emit(rt("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(rt("network","error",{hook:"fetch.error",source:"window.fetch",url:s,method:i,error:c,durationMs:l})),c})};C.fetch=n,t.__teardown.push(()=>{C.fetch=e})}if(typeof C.XMLHttpRequest=="function"){let e=C.XMLHttpRequest,n=e.prototype.open,r=e.prototype.send;e.prototype.open=function(o,s){return this.__analyze={method:String(o).toUpperCase(),url:String(s)},n.apply(this,arguments)},e.prototype.send=function(o){let s=this.__analyze;if(!s||!t.shouldCapture("network"))return r.apply(this,arguments);let i=typeof performance<"u"?performance.now():Date.now();t.emit(rt("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(rt("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(rt("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),r.apply(this,arguments)},t.__teardown.push(()=>{e.prototype.open=n,e.prototype.send=r})}}};var s4={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},i4={errors:!0,warnings:!0,pointer:!0,keyboard:!0,forms:!0,scroll:!0,viewport:!0,navigation:!0,state:!0},a4={errors:!0,warnings:!0,pointer:!0,navigation:!0,performance:!0,viewport:!0},c4={errors:!0,warnings:!0,console:!0,network:!1,navigation:!0,performance:!0,viewport:!0,lifecycle:!1,state:!1,updates:!1},l4=t=>{let e={...s4,...t};return e.replay&&Object.assign(e,i4),e.telemetry&&Object.assign(e,a4),e.remote&&Object.assign(e,c4),Object.assign(e,t),e},f4=64,u4=()=>{if(typeof C>"u"||!C.location)return null;try{let e=new URLSearchParams(C.location.search).get("analyze");return e||null}catch{return null}},Zp=(t={})=>{let e=t===!0?{}:{...t};e.capture=l4(e.capture||{});let n=u4();(n==="debug"||e.debug)&&(e.level="debug",e.debug=!0,e.capture={...e.capture,lifecycle:!0,state:!0,updates:!0,console:!0,network:!0}),n==="off"&&(e.enabled=!1),e.level=of(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 r={config:e,context:null,__ready:!1,__paused:!1,__preBuffer:[],__teardown:[],__pipeline:null,__sinks:null,__memory:null,__initialSnapshot:null},o=()=>{r.__pipeline||(r.__pipeline=Wp(r),r.__sinks=Yp(r))};return r.shouldCapture=s=>r.config.enabled===!1?!1:!!r.config.capture[s],r.emit=s=>{if(s&&r.config.enabled!==!1&&!r.__paused&&Up(s.level,r.config.level)){if(!r.__ready){if(s.level!=="error"&&!r.config.captureDuringHydration)return;r.__preBuffer.length<f4&&r.__preBuffer.push(s);return}o(),xP(r,s)}},r.activate=s=>{if(r.context==null&&(r.context=s||null),r.__ready)return;r.__ready=!0;let i=r.__preBuffer;if(r.__preBuffer=[],i.length){o();for(let a of i)xP(r,a)}try{Xp(r)}catch(a){console.error("[analyze] browser attach error:",a)}try{sf(r)}catch(a){console.error("[analyze] network attach error:",a)}for(let a of r.__onActivate||[])try{a(r)}catch(c){console.error("[analyze] onActivate error:",c)}},r.pause=()=>{r.__paused=!0},r.resume=()=>{r.__paused=!1},r.setLevel=s=>{r.config.level=of(s)},r.setCapture=(s,i)=>{if(r.config.capture[s]=!!i,s==="network"&&i&&r.__ready)try{sf(r)}catch(a){console.error("[analyze] network attach error:",a)}},r.query=s=>r.__memory?r.__memory.query(s):[],r.snapshot=()=>r.__memory?r.__memory.snapshot():[],r.emitNetwork=s=>{if(!r.shouldCapture("network"))return;let i=s?.phase,a=i==="error"?"error":i==="success"&&s.ok===!1?"warn":"info";r.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})},r.flush=()=>{if(r.__sinks)for(let s of r.__sinks)typeof s.flush=="function"&&s.flush()},r.startNewSession=s=>{let i=s||(typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`),a=Array.isArray(r.config.sinks)?r.config.sinks:[];for(let c of a)c&&typeof c=="object"&&c.type==="remote"&&(c.sessionId=i);if(r.__sinks)for(let c of r.__sinks)typeof c.startNewSession=="function"&&c.startNewSession(i);return i},r.replay=()=>({initialSnapshot:r.__initialSnapshot,events:r.snapshot()}),r.destroy=()=>{for(let s of r.__teardown)try{s()}catch{}r.__teardown=[],r.__ready=!1,r.__paused=!0},r.__onActivate=[],r.onActivate=s=>{r.__onActivate.push(s)},r},xP=(t,e)=>{let n=t.__pipeline(e);if(n==null)return;let r=Array.isArray(n)?n:[n];for(let o of r){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 Fx={};F(Fx,{Inspect:()=>Qp,inspectPlugin:()=>Nx});$();function kP(t){return v(t)?t:I(t)?t.find(e=>v(e)):""}function Mx(t){if(!t)return;let e=t.__ref.__componentKey,n=t.extends&&kP(t.extends),r=t.parent&&t.parent.childExtends&&kP(t.parent.childExtends);return(e||n||r||"").split("_")[0].split(".")[0].split("+")[0]}function Jp(t){if(!t||!t.__ref)return;let{components:e,pages:n,editor:r}=t.context,o=Mx(t);return r&&r.onInitInspect&&!r.onInitInspect(o,t,t.state)?Jp(t.parent):o&&(e[o]||n[o])?t:Jp(t.parent)}var d4=(t,e,n)=>{let r=n.window||window;r.onkeydown=o=>{o.altKey&&o.shiftKey&&t.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},r.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}))}},Qp={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:d4,onMousemove:(t,e,n)=>{let r=t.target.ref,o=Jp(r),s=e.Inspector.state;if(!o||!n.debugging||!o.__ref)return s.update({area:!1});let i=Mx(o),a=l=>{s.update({area:l,focusKey:i})},c=()=>{if(t.altKey&&t.shiftKey){let{x:l,y:f,width:u,height:d}=o.node.getBoundingClientRect(),p={x:l,y:f,width:u,height:d};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{c(),window.requestAnimationFrame(c)})},onMousedown:(t,e,n)=>{if(!n.debugging)return;let r=t.target.ref,o=Jp(r);if(!o)return;let s=Mx(o);if(!s)return;let i=r.context.editor;if(i&&i.onInspect)return i.onInspect(s,r,r.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return r.context.socket?.emit&&r.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(E(e)){let{Content:n,...r}=e;for(let o in r)Ai[o]||(r[o].__ref||(r[o].__ref={}),r[o].__ref.__componentKey||(r[o].__ref.__componentKey=o))}},onBeforeUpdate:(t,e,n)=>{let{area:r}=n,o=n.area&&n.parent.debugging,s;if(!o)s="display: none !important";else if(r){let{x:i,y:a,width:c,height:l}=r;s=`
94
94
  display: block !important;
95
95
  top: ${a-6}px;
96
96
  left: ${i-6}px;
97
97
  width: ${c+12}px;
98
98
  height: ${l+12}px;
99
- `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},$x={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Zp):t.extends?t.extends=[t.extends,Zp]:t.extends=[Zp]}};var Fx={};F(Fx,{apiUrl:()=>Nx,channelByApiUrl:()=>p4,channelNames:()=>u4,channels:()=>ye,currentChannel:()=>Ir,defaultChannel:()=>S4,deployTarget:()=>b4,isKnownChannel:()=>w4,mermaidUrl:()=>y4,normalizeOwnerSegment:()=>x4,normalizeProjectKey:()=>v4,normalizeProjectSlug:()=>k4,parseSymboLsHost:()=>E4,previewProjectUrl:()=>m4,previewUrl:()=>vP,resolveChannel:()=>zo,screenshotCdnHost:()=>EP,screenshotCdnUrl:()=>_4,setChannel:()=>d4,shellUrl:()=>g4,socketUrl:()=>h4});var ye={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var u4=Object.keys(ye.channels),Gn=t=>!!(t&&ye.channels[t]),zo=t=>Gn(t)?ye.channels[t]:ye.channels[ye.defaultChannel],d4=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Gn(t)?t:null,$i=void 0)},$i,sf=t=>typeof process<"u"&&process.env&&process.env[t]||null,Ir=()=>{if($i!==void 0)return $i;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=sf("SYMBOLS_CHANNEL"),n=sf("NODE_ENV");return $i=Gn(t)&&t||Gn(e)&&e||Gn(n)&&n||ye.defaultChannel,$i===ye.defaultChannel&&!Gn(t)&&!Gn(e)&&!Gn(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${ye.defaultChannel}". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),$i},SP=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],xP=t=>{let e=SP.indexOf(t);return e===-1?SP.length:e},p4=t=>{if(!t)return null;let e=Object.keys(ye.channels).filter(n=>ye.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>xP(n)-xP(r))[0]},Nx=(t=Ir())=>sf("SYMBOLS_API_URL")||zo(t).api,h4=(t=Ir())=>sf("SYMBOLS_SOCKET_URL")||zo(t).socket,g4=(t=Ir())=>zo(t).shell||null,vP=(t=Ir())=>zo(t).preview||null,m4=({owner:t,key:e,env:n="production"}={},r=Ir())=>{let o=vP(r);if(!o||!t||!e)return null;let s=o.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},y4=({owner:t,key:e,env:n="production"}={},r=Ir())=>{let o=zo(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},b4=(t=Ir())=>zo(t).deploy||{},EP=()=>sf("SYMBOLS_SCREENSHOT_CDN")||ye.screenshotCdn,_4=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];o&&o!=="production"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${EP()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},w4=Gn,S4=ye.defaultChannel,x4=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",k4=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",v4=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},kP={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},E4=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=kP[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?kP[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};var AP={"@symbo.ls/signal":pg,"@symbo.ls/scratch":l_,"@symbo.ls/element":Pw,"@symbo.ls/css":Ud,"@symbo.ls/utils":Ls,"@symbo.ls/state":sw,"@symbo.ls/router":ki,"@symbo.ls/polyglot":dx,"@symbo.ls/helmet":fx,"@symbo.ls/fetch":Nu,"@symbo.ls/capsize":hx,"@symbo.ls/shorthand":Sx,"@symbo.ls/analyze":Dx,"@symbo.ls/inspect":Mx,"@symbo.ls/channels":Fx},CP=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in AP)r[o]||(r[o]=AP[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},TP=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},OP=["@symbo.ls/sdk"],RP=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r},PP=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of Os(t,Rs))r[o]||(r[o]=s);return r};$();var LP=t=>{let e={faces:0,links:0};if(!t)return e;for(let n in t){let r=t[n];if(!r||!r.fontFace)continue;let o=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let s of o){if(DP(s)){let i=C4(s);i&&T4(i)&&e.links++;continue}if(A4(s)){vt(s.trim()),e.faces++;continue}typeof s=="string"&&s.includes("font-family")&&(vt(`@font-face { ${s} }`),e.faces++)}}return e},DP=t=>typeof t=="string"&&t.trim().startsWith("@import"),A4=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),C4=t=>{if(!DP(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},T4=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Eo();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s};var NP=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.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=r||e,t.window},IP=(t="smbls")=>{let e={};for(let n in Mo)Object.prototype.hasOwnProperty.call(Mo,n)&&(hn(n)?e[`smbls.${n}`]=Mo[n]:e[n]=Mo[n]);return e},FP=t=>t.components?{...IP(),...t.components}:IP(),jP=t=>({...Ul,...ki,...mr,...t.utils,...t.snippets,...t.functions}),BP=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var VP=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,O4=3e3,R4=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=Promise.resolve().then(()=>n(e)).then(i=>(i&&!r[t]&&(r[t]=i),r[t]||null)).catch(()=>null);return new Promise(i=>{let a=setTimeout(()=>i(null),O4);o.then(c=>{clearTimeout(a),i(c)})})}catch{return Promise.resolve(null)}},$P={},Ux=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=R4})=>{if(o||(o=ur[s]||As(i)||"esmsh"),!t)return null;if(!ro(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=ar()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=Ze(d,p,o)+l;try{await Promise.race([Cs(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=Ze(d,p,"symbols")+l;await Promise.race([Cs(m,{document:n,type:"module"}),new Promise((y,S)=>setTimeout(()=>S(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!$P[d]&&($P[d]=!0,!dr(d))){if(no(d)){console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}VP(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},MP=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,P4=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof we=="function"?we(t):Function.prototype.toString.call(t)}catch{return""}return""},L4=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];if(!o||typeof o!="object")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=P4(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;MP.lastIndex=0;let l;for(;(l=MP.exec(c))!==null;)e.add(l[1])}}return e},D4=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].textContent||"")}catch{continue}let s=o&&typeof o=="object"?o.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},I4=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},UP=(t,{syncRead:e=L4(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=D4(n)}={})=>{let o=t&&t.dependencies;if(!ro(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&I4(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},$4=t=>import(t),jx={},M4=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},N4=(t,{importModule:e=$4}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)dr(r)||no(r)||VP(r)||(jx[r]||(jx[r]=Promise.resolve().then(()=>e(r)).then(o=>(M4(r,o),o||null),()=>null)),n.push(jx[r]));return Promise.all(n)},F4=2e3,j4=3e3,zP=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=j4}={})=>t?new Promise(o=>{let s=()=>{N4(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:F4}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,r)}else i()}):null,HP=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||As(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=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&dr(a))return await u.require(a,c);if(!u.packages[a]){let d=ar()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=Ze(a,p,c)+d;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=Ze(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=Ze(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=Ze(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=xt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},B4=/\s+/g,WP=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,V4=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${WP(o,e)}`)}return n},U4=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=V4(t,e));let o=t.replace(B4," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},z4=()=>(t,e,n)=>{let r=WP(t,e);if(t){let{__ref:o}=e;o.__class.style=r}qP()(e.classlist,e,e.state,!0)},qP=()=>(t,e,n,r)=>{if(e.style&&!r)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=Te(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&U4(i,e,e.node)}},H4=()=>({style:z4(),classlist:qP()}),W4=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Bx=new WeakSet,Vx=!1,q4=t=>!!t&&typeof t=="object",KP=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||H4(),s=e.designSystem?at(ut(e.designSystem),ut(Dl),ve):ut(Dl),i={};for(let h of W4)e[h]!==void 0&&(i[h]=e[h]);let a,c=q4(n),f=c&&Bx.has(n)&&!e.skipDesignSystemInit,u=!f&&!Vx,d=f?`[data-smbls-app="${t}"]`:":root";if(e.scopeSelector=d,e.skipDesignSystemInit){if(a=O(t)||O(),a&&(a.__domDocument=n),a?.CSS_VARS){J(a);try{vt({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&vt(Rp(a.CSS_MEDIA_VARS,d));let h=ko(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(h).length&&vt(h)}finally{X()}}}else if(u){let h=O();h&&(h.__domDocument=n),a=qn(s,{key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...$p,...i,...r}),a&&a!==h&&(a.__domDocument=n),c&&Bx.add(n),Vx=!0}else{let h=Lc(t,s,{cleanBase:!0});for(let m in i)h[m]=i[m];if(h.__domDocument=n,f){let m=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=m,h.varPrefix=m}J(h);try{a=qn(h,{key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...$p,...i,...r})}finally{X()}c&&Bx.add(n),Vx=!0}let p=a?.CONFIG||a,g=p?.font;if(g){J(p);try{LP(g)}finally{X()}}return[a,o]},GP=(t,e)=>{let n={};e.state&&at(n,e.state),t&&t.state&&at(n,t.state);let r=e.polyglot;if(r?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||n.lang||r.defaultLang||"en";o&&o!==n.lang&&(n.lang=o);let i=new Set,a=new Set,c=(u,d)=>{if(!a.has(u)){if(!Jr(e,u,n)){i.add(u);return}n[u]=d,a.add(u),gn(e,u,d)}},l=r.translations[s];if(l&&typeof l=="object")for(let u in l)c(u,l[u]);let f=new Set(r.languages||[]);for(let u in r.translations)f.has(u)||c(u,r.translations[u]);i.size&&r.verbose!==!1&&e.verbose!==!1&&console.warn(`[polyglot] ${i.size} translation key${i.size===1?"":"s"} collide${i.size===1?"s":""} with a declared root-state key (${[...i].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`)}return n.isRootState=!0,ut(n)},YP=(t,e)=>{E(t.routes)&&E(e.pages)&&xt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`),n},XP=t=>{_c(t,t.sharedLibraries)};var af={polyglot:Gl,getLocalStateLang:Ql,getActiveLang:Lr,getLang:Lr,setLang:Xl,getPendingLang:ql,getLanguages:Kl,loadTranslations:Yl,upsertTranslation:Zl};Za();$();$();var Jp=new Set(["__proto__","constructor","prototype"]),zx=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(Jp.has(t[e]))return!1;return!0},ZP=(t,e)=>{!t||!zx(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},QP=(t,e,n,r=!1)=>{!t||!zx(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},th=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":ZP(t,o);break;case"update":case"set":QP(t,o,s,!0);break;default:break}return n},JP=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))Jp.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},cf=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},tL=(t,e,n,r="designSystem")=>{for(let o in e){if(Jp.has(o))continue;let s=`${r}/${o}`;if(n.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(o in t)continue;t[o]={}}tL(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},Hx=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};th(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return wc(n,r,tL)};$();var eL=(t,e,n)=>{let r=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(cf(n,c),r){let l=Hx(n);l&&qn(l)}}else Zr(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},nL=(t,e,n)=>(r={})=>{let{changes:o}=r;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=th(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=Hx(n,s);c?qn(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=JP(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var K4={success:"green",error:"red",warning:"yellow"},rL=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},oL={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:K4[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var T5=!1,O5=()=>T5?"http://localhost:8080":"https://api.symbols.app",R5=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}},m0=null,P5=()=>(m0||(m0=Promise.resolve().then(()=>(XL(),YL)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),m0),L5=async t=>{try{let e=t||O5(),n=await C.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},JL=(t,e,n,r)=>{t.on("snapshot",eL(e,n,r)),t.on("ops",nL(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&rL(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},D5=async(t,e,n,r,o)=>{let s=await L5(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),JL(l,t,e,n),l},I5=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),JL(s,t,e,n),s.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),s},$5=async(t,e,n)=>{let{mode:r,baseUrl:o}=R5(n);if(!r)return null;let s=P5();return r==="collab"?D5(t,e,n,o,s):r==="runner"?I5(t,e,n,s):null},M5={onInit:$5};var tD=t=>typeof t>"u",ZL=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),QL=t=>t?.editor?.runtime==="runner",eD=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},nD={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!tD(n.liveSync)?n.liveSync:ZL(e)||QL(e))&&(ZL(e)&&!QL(e)&&!e?.key||eD(t,M5))}},rD={name:"notifications",beforeCreate(t,e){if(!e)return;let n=tD(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&eD(t,oL)}};var _0={};F(_0,{AlertTemplate:()=>Ch,ConfirmTemplate:()=>Ah,CustomTemplate:()=>Oh,ModalLayer:()=>Eh,ModalRoot:()=>vh,PromptTemplate:()=>Th,windowsComponents:()=>b0});var y0={};F(y0,{alertDialog:()=>xh,closeAllModals:()=>wh,closeModal:()=>bh,confirmDialog:()=>Sh,getLayer:()=>yh,openModal:()=>_h,promptDialog:()=>kh,windowsFunctions:()=>tr});function ot(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function zi(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function yh(){return ot(this)}var N5=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},oD=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function bh(t){let e=zi(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)N5(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function _h(t={}){let e=zi(this);if(!e)return console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=o.length;return oD(e,s),e.state.update({stack:[...o,r]}),n}function wh(){let t=zi(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function Sh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function xh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function kh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var tr={openModal:_h,closeModal:bh,closeAllModals:wh,confirmDialog:Sh,alertDialog:xh,promptDialog:kh,getLayer:yh};var F5=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),sD=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(F5),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},iD=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},vh={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let a in tr)a in n.functions||(n.functions[a]=tr[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=()=>{let a=t.state?.stack||[];if(!a.length)return;let c=a.length-1,l=a[c];t.state.update({stack:a.slice(0,-1)});let f=t["ModalLayer_"+c],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty("display","none","important"),u.style.setProperty("opacity","0","important"),u.style.setProperty("visibility","hidden","important"),u.style.setProperty("pointer-events","none","important")),typeof l?.onClose=="function")try{l.onClose()}catch(d){console.warn("[windows] onClose threw:",d)}},o=a=>{let c=t.state?.stack;if(c?.length){if(a.key==="Tab"){let l=iD(t);if(!l)return;let f=sD(l);if(!f.length){a.preventDefault();let g=l.querySelector?.('[role="dialog"]')||l;try{g.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],p=document.activeElement;if(!l.contains(p)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&p===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&p===d){a.preventDefault();try{u.focus()}catch{}}return}a.key!=="Escape"||a.defaultPrevented||c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),r())}};window.addEventListener("keydown",o),t.__escHandler=o;let s=a=>{let c=t.state?.stack||[];if(a<0||a>=c.length)return;let l=c[a];t.state.update({stack:c.filter((d,p)=>p!==a)});let f=t["ModalLayer_"+a],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty("display","none","important"),u.style.setProperty("opacity","0","important"),u.style.setProperty("visibility","hidden","important"),u.style.setProperty("pointer-events","none","important")),typeof l?.onClose=="function")try{l.onClose()}catch(d){console.warn("[windows] onClose threw:",d)}},i=a=>{let c=t.state?.stack||[];if(!c.length)return;let l=a.target?.closest?.('[data-key="Close"]');if(l){for(let f=c.length-1;f>=0;f--){let u=t["ModalLayer_"+f],d=u?.node||u?.__ref?.node;if(d&&d.contains(l)){a.preventDefault(),a.stopPropagation(),s(f);return}}return}for(let f=c.length-1;f>=0;f--){let u=t["ModalLayer_"+f];if((u?.node||u?.__ref?.node)===a.target){if(c[f]?.dismissOnBackdrop===!1)return;a.preventDefault(),a.stopPropagation(),s(f);return}}};document.addEventListener("click",i,!0),t.__clickDelegate=i},onUpdate:t=>{if(typeof window>"u")return;let e=(t.state&&t.state.stack||[]).length,n=t.__prevStackLen||0;if(e!==n)if(t.__prevStackLen=e,t.__modalOpeners=t.__modalOpeners||[],e>n)t.__modalOpeners[e]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[e]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let r=iD(t);if(!r)return;let o=sD(r)[0]||r.querySelector&&r.querySelector('[role="dialog"]')||r;try{o.focus&&o.focus()}catch{}});else{let r=null;for(let o=n;o>e;o--)t.__modalOpeners[o]&&(r=r||t.__modalOpeners[o]),t.__modalOpeners[o]=null;if(r&&typeof r.focus=="function"&&r.isConnected!==!1)try{r.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Eh={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}},width:t=>ot(t)?.width||"H",maxWidth:t=>ot(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>ot(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>ot(t)?.template!=="confirm"},AlertTemplate:{hide:t=>ot(t)?.template!=="alert"},PromptTemplate:{hide:t=>ot(t)?.template!=="prompt"},CustomTemplate:{hide:t=>ot(t)?.template!=="custom"}}};var Hi=(t,e,n)=>ot(t)?.[e]||n,j5=t=>{let e=ot(t)?.icon;return e===null||e===!1},Ah={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>Hi(t,"title","Are you sure?"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>j5(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>Hi(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>Hi(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Hi(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>Hi(t,"confirmTheme","primary"),text:t=>Hi(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var _f=(t,e,n)=>ot(t)?.[e]||n,Ch={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>_f(t,"title","Notice"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>_f(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!_f(t,"message",""),P:{tag:"p",margin:"0",text:t=>_f(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>_f(t,"okText","OK"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Wi=(t,e,n)=>ot(t)?.[e]||n,Th={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Wi(t,"title","Enter a value"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Wi(t,"message",""),P:{tag:"p",margin:"0",text:t=>Wi(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Wi(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=ot(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Wi(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>Wi(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=ot(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var Oh={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>ot(t)?.title||"",hide:t=>!ot(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=K(()=>{let n=ot(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in tr)i in s.functions||(s.functions[i]=tr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var aD={extends:"Button",theme:"tertiary"};var b0={ModalRoot:vh,ModalLayer:Eh,ConfirmTemplate:Ah,AlertTemplate:Ch,PromptTemplate:Th,CustomTemplate:Oh,"smbls.CancelButton":aD};var E0={};F(E0,{Dropdown:()=>$h,DropdownList:()=>Mh,DropdownParent:()=>Nh,DropdownParentFocus:()=>Fh,DropdownRoot:()=>Dh,DropdownSiblingFocus:()=>jh,DropdownTrigger:()=>Ih,dropdownComponents:()=>v0});var cD=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),B5=(t,e,n,r)=>{let o=cD(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},V5=(t,e,n,r,o)=>{let s=cD(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var w0=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},Rh=(t,e,n)=>Math.max(e,Math.min(n,t)),er=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:w0("center",null,g)}}let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=w0("center",t,o),h=Math.min(s.height,g),m=Rh((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Rh((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=B5(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=V5(i,t,s,r,o)}let c=w0(i,t,o),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,r-s.width-8),p=Math.max(8,o-l-8);return f=Rh(f,8,d),u=Rh(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},qi=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Mr={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},U5=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},S0=t=>t?.getRoot?.()?.DropdownRoot||null,z5=0,H5=()=>`dropdown_${++z5}_${Date.now().toString(36)}`;function Ph(t={}){let e=S0(this);if(!e)return console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||U5(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||H5(),s=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),i={id:o,content:t.content||null,anchor:r,placement:t.placement||Mr.placement,trigger:t.trigger||Mr.trigger,offset:t.offset??Mr.offset,minWidth:t.minWidth||Mr.minWidth,maxWidth:t.maxWidth||Mr.maxWidth,maxHeight:t.maxHeight||Mr.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:s},a=e.state?.layer;if(a?.onClose)try{a.onClose(a)}catch(c){console.warn("[dropdown] prev onClose threw:",c)}if(e.state.update({layer:i}),typeof i.onOpen=="function")try{i.onOpen(i)}catch(c){console.warn("[dropdown] onOpen threw:",c)}return o}function Lh(t){let e=S0(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function Jo(t){let e=S0(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof o=="function")try{o(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var x0=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},lD=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},W5=`
99
+ `}return e.node.style=s,e.Span.node.innerText=n.focusKey,!1}}},Nx={name:"inspect",beforeCreate(t,e){Array.isArray(t.extends)?t.extends.push(Qp):t.extends?t.extends=[t.extends,Qp]:t.extends=[Qp]}};var Bx={};F(Bx,{apiUrl:()=>jx,channelByApiUrl:()=>m4,channelNames:()=>h4,channels:()=>ye,currentChannel:()=>Ir,defaultChannel:()=>v4,deployTarget:()=>S4,isKnownChannel:()=>k4,mermaidUrl:()=>w4,normalizeOwnerSegment:()=>E4,normalizeProjectKey:()=>C4,normalizeProjectSlug:()=>A4,parseSymboLsHost:()=>T4,previewProjectUrl:()=>_4,previewUrl:()=>CP,resolveChannel:()=>zo,screenshotCdnHost:()=>TP,screenshotCdnUrl:()=>x4,setChannel:()=>g4,shellUrl:()=>b4,socketUrl:()=>y4});var ye={channels:{local:{api:"http://localhost:8080",socket:"http://localhost:8080",shell:"http://my.localhost:1355",preview:"http://preview.localhost:1355",mermaidApex:"localhost:1355",deploy:{}},development:{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.my.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},"demo-dev":{api:"https://dev.api.symbols.app",socket:"https://dev.api.symbols.app",shell:"https://dev.demo.symbols.app",preview:"https://dev.preview.symbols.app",mermaidApex:"dev.symbo.ls",deploy:{shellBucket:"smbls-my-demo-dev",previewWorker:"smbls-preview-dev",mermaidWorker:"mermaid-dev"}},next:{api:"https://next.api.symbols.app",socket:"https://next.api.symbols.app",shell:"https://next.my.symbols.app",preview:"https://next.preview.symbols.app",mermaidApex:"next.symbo.ls",deploy:{shellBucket:"smbls-my-next",previewWorker:"smbls-preview-next",mermaidWorker:"mermaid-next"}},test:{api:"https://test.api.symbols.app",socket:"https://test.api.symbols.app",shell:"https://test.my.symbols.app",preview:"https://test.preview.symbols.app",mermaidApex:"test.symbo.ls",deploy:{shellBucket:"smbls-my-test",previewWorker:"smbls-preview-test",mermaidWorker:"mermaid-test"}},upcoming:{api:"https://upcoming.api.symbols.app",socket:"https://upcoming.api.symbols.app",shell:"https://upcoming.my.symbols.app",preview:"https://upcoming.preview.symbols.app",mermaidApex:"upcoming.symbo.ls",deploy:{shellBucket:"smbls-my-upcoming",previewWorker:"smbls-preview-upcoming",mermaidWorker:"mermaid-upcoming"}},staging:{api:"https://staging.api.symbols.app",socket:"https://staging.api.symbols.app",shell:"https://staging.my.symbols.app",preview:"https://staging.preview.symbols.app",mermaidApex:"staging.symbo.ls",deploy:{shellBucket:"smbls-my-staging",previewWorker:"smbls-preview-staging",mermaidWorker:"mermaid-staging"}},demo:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://demo.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-demo",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}},production:{api:"https://api.symbols.app",socket:"https://api.symbols.app",shell:"https://my.symbols.app",preview:"https://preview.symbols.app",mermaidApex:"at.symbo.ls",deploy:{shellBucket:"smbls-my-prod",previewWorker:"smbls-preview",mermaidWorker:"mermaid"}}},defaultChannel:"production",screenshotCdn:"screenshots.api.symbols.app"};var h4=Object.keys(ye.channels),Gn=t=>!!(t&&ye.channels[t]),zo=t=>Gn(t)?ye.channels[t]:ye.channels[ye.defaultChannel],g4=t=>{typeof globalThis>"u"||(globalThis.__SYMBOLS_CHANNEL__=Gn(t)?t:null,Ni=void 0)},Ni,af=t=>typeof process<"u"&&process.env&&process.env[t]||null,Ir=()=>{if(Ni!==void 0)return Ni;let t=typeof globalThis<"u"?globalThis.__SYMBOLS_CHANNEL__:null,e=af("SYMBOLS_CHANNEL"),n=af("NODE_ENV");return Ni=Gn(t)&&t||Gn(e)&&e||Gn(n)&&n||ye.defaultChannel,Ni===ye.defaultChannel&&!Gn(t)&&!Gn(e)&&!Gn(n)&&typeof process<"u"&&process.versions&&process.versions.node&&console.warn(`[channels] no channel configured (NODE_ENV=${n||"unset"}, __SYMBOLS_CHANNEL__ unset) \u2014 falling back to "${ye.defaultChannel}". Outbound URLs (shellUrl/apiUrl) will target production; set SYMBOLS_CHANNEL (preferred), NODE_ENV, or globalThis.__SYMBOLS_CHANNEL__ to a known channel.`),Ni},vP=["production","staging","upcoming","next","test","development","local","demo","demo-dev"],EP=t=>{let e=vP.indexOf(t);return e===-1?vP.length:e},m4=t=>{if(!t)return null;let e=Object.keys(ye.channels).filter(n=>ye.channels[n].api===t);return e.length===0?null:e.length===1?e[0]:e.sort((n,r)=>EP(n)-EP(r))[0]},jx=(t=Ir())=>af("SYMBOLS_API_URL")||zo(t).api,y4=(t=Ir())=>af("SYMBOLS_SOCKET_URL")||zo(t).socket,b4=(t=Ir())=>zo(t).shell||null,CP=(t=Ir())=>zo(t).preview||null,_4=({owner:t,key:e,env:n="production"}={},r=Ir())=>{let o=CP(r);if(!o||!t||!e)return null;let s=o.match(/^(https?:\/\/)(.+)$/);if(!s)return null;let[,i,a]=s,c=`${encodeURIComponent(t)}--${encodeURIComponent(e)}`,l=`${i}${c}.${a}/`;return!n||n==="production"||n==="prod"?l:`${l}?env=${encodeURIComponent(n)}`},w4=({owner:t,key:e,env:n="production"}={},r=Ir())=>{let o=zo(r).mermaidApex;if(!o||!t||!e)return null;let i=!n||n==="production"||n==="prod"?"":`--${encodeURIComponent(n)}`,a=`${encodeURIComponent(t)}--${encodeURIComponent(e)}${i}`;return`${o.startsWith("localhost")?"http":"https"}://${a}.${o}`},S4=(t=Ir())=>zo(t).deploy||{},TP=()=>af("SYMBOLS_SCREENSHOT_CDN")||ye.screenshotCdn,x4=({owner:t,key:e,page:n="root",componentKey:r,env:o="production",width:s}={})=>{if(!t||!e)return null;let i=r?`component/${encodeURIComponent(r)}`:encodeURIComponent(String(n||"root").replace(/^\/+/,"").replace(/\//g,"-")||"root"),a=[];o&&o!=="production"&&a.push(`env=${encodeURIComponent(o)}`),s&&a.push(`w=${Number(s)}`);let c=a.length?`?${a.join("&")}`:"";return`https://${TP()}/${encodeURIComponent(t)}/${encodeURIComponent(e)}/${i}.webp${c}`},k4=Gn,v4=ye.defaultChannel,E4=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"",A4=t=>t==null||typeof t!="string"?"":String(t).toLowerCase().trim().replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"").slice(0,48)||"",C4=(t,e={})=>{let n=String(t||"").trim();if(!n)return"";/\.symbo\.ls$/iu.test(n)&&(n=n.replace(/\.symbo\.ls$/iu,"")),n.includes("/")&&(n=n.split("/").pop());let r=typeof e.owner=="string"?e.owner.trim():"";return r&&n.startsWith(`${r}--`)?n=n.slice(r.length+2):!r&&n.includes("--")&&(n=n.slice(n.indexOf("--")+2)),n},AP={at:"production",prod:"production",production:"production",dev:"development",development:"development",next:"next",upcoming:"upcoming",test:"test",staging:"staging"},T4=t=>{if(typeof t!="string"||!t)return null;let e=t.toLowerCase().replace(/^www\./,"").replace(/\/$/,"");if(!e.endsWith(".symbo.ls"))return null;let n=e.split(".");if(n.length<4||n.slice(-2).join(".")!=="symbo.ls")return null;if(n.length===4){let s=n[1],i=n[0],a=AP[s];if(a&&i.includes("--")){let c=i.split("--");if(c.length===2||c.length===3){let[l,f,u]=c;if(l&&f){let d=u?AP[u]||u:null;return{projectKey:f,owner:l,env:d||a,sysEnv:a}}}}}if(n.length>=5)return{projectKey:n[1],owner:n[2],env:n[0]};let r=n[1],o=n[0];if(o.includes("--")){let[s,i]=o.split("--",2);return!s||!i?null:{projectKey:s,owner:r,env:i}}return{projectKey:o,owner:r,env:"production"}};var OP={"@symbo.ls/signal":hg,"@symbo.ls/scratch":f_,"@symbo.ls/element":Dw,"@symbo.ls/css":zd,"@symbo.ls/utils":Ls,"@symbo.ls/state":aw,"@symbo.ls/router":Ei,"@symbo.ls/polyglot":hx,"@symbo.ls/helmet":dx,"@symbo.ls/fetch":Fu,"@symbo.ls/capsize":mx,"@symbo.ls/shorthand":kx,"@symbo.ls/analyze":$x,"@symbo.ls/inspect":Fx,"@symbo.ls/channels":Bx},RP=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:{}),r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in OP)r[o]||(r[o]=OP[o]);if(e)for(let o in e)r[o]||(r[o]=e[o]);return r},PP=(t,e)=>{let n=t||(typeof globalThis<"u"?globalThis:null);if(!n||!e||typeof e!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in e){let s=e[o];if(typeof s!="function"||Object.prototype.hasOwnProperty.call(r,o))continue;let i=a=>(Object.defineProperty(r,o,{configurable:!0,enumerable:!0,writable:!0,value:a}),a);Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i(s()),set:i})}return r},LP=["@symbo.ls/sdk"],DP=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!t||typeof t!="object")return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let o in t){let s=t[o];!s||typeof s!="object"&&typeof s!="function"||r[o]||(r[o]=s)}return r},IP=(t,e)=>{let n=e||(typeof globalThis<"u"?globalThis:null);if(!n||!Array.isArray(t))return null;let r=n.__SMBLS_PKGS__||(n.__SMBLS_PKGS__={});for(let[o,s]of Os(t,Rs))r[o]||(r[o]=s);return r};$();var $P=t=>{let e={faces:0,links:0};if(!t)return e;for(let n in t){let r=t[n];if(!r||!r.fontFace)continue;let o=Array.isArray(r.fontFace)?r.fontFace:[r.fontFace];for(let s of o){if(MP(s)){let i=R4(s);i&&P4(i)&&e.links++;continue}if(O4(s)){vt(s.trim()),e.faces++;continue}typeof s=="string"&&s.includes("font-family")&&(vt(`@font-face { ${s} }`),e.faces++)}}return e},MP=t=>typeof t=="string"&&t.trim().startsWith("@import"),O4=t=>typeof t=="string"&&t.trim().startsWith("@font-face"),R4=t=>{if(!MP(t))return null;let e=String(t).match(/url\(\s*['"]?([^'")]+)['"]?\s*\)/);return e?e[1].trim():null},P4=(t,e)=>{if(typeof t!="string"||!t)return null;let n=e||Eo();if(!n||!n.head)return null;let r="data-smbls-font",o=n.head.querySelectorAll(`link[rel="stylesheet"][${r}]`);for(let i=0;i<o.length;i++)if(o[i].getAttribute(r)===t)return o[i];let s=n.createElement("link");return s.setAttribute("rel","stylesheet"),s.setAttribute("href",t),s.setAttribute(r,t),n.head.appendChild(s),s};var BP=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let n=typeof document<"u"?document:e.document;t.document=t.document||n;let r=t.window;return r&&r!==e&&typeof r.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=r||e,t.window},NP=(t="smbls")=>{let e={};for(let n in Mo)Object.prototype.hasOwnProperty.call(Mo,n)&&(gn(n)?e[`smbls.${n}`]=Mo[n]:e[n]=Mo[n]);return e},VP=t=>t.components?{...NP(),...t.components}:NP(),UP=t=>({...zl,...Ei,...mr,...t.utils,...t.snippets,...t.functions}),zP=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router});var HP=t=>typeof globalThis<"u"&&globalThis.__SMBLS_PKGS__&&globalThis.__SMBLS_PKGS__[t]||null,L4=3e3,D4=(t,e,n=r=>import(r))=>{if(typeof globalThis>"u")return Promise.resolve(null);try{let r=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});if(r[t])return Promise.resolve(r[t]);let o=Promise.resolve().then(()=>n(e)).then(i=>(i&&!r[t]&&(r[t]=i),r[t]||null)).catch(()=>null);return new Promise(i=>{let a=setTimeout(()=>i(null),L4);o.then(c=>{clearTimeout(a),i(c)})})}catch{return Promise.resolve(null)}},FP={},Hx=async({dependencies:t,dependenciesOnDemand:e,document:n,preventCaching:r=!1,cdnProvider:o,packageManager:s,symbolsConfig:i,registerDependency:a=D4})=>{if(o||(o=ur[s]||As(i)||"esmsh"),!t)return null;if(!ro(t))return console.warn(`[smbls] dependencies is ${Array.isArray(t)?"an ARRAY":`a ${typeof t}`}, not a package-name-keyed object \u2014 skipping the CDN fetch loop. This usually means a project's config.js declares its own "dependencies" field that collides with the platform package map once context.js spreads them together.`),null;let c=!1;for(let d in t){c=!0;break}if(!c)return null;let l=ar()&&r?`?${Math.random()}`:"",f=async(d,p)=>{let g=Qe(d,p,o)+l;try{await Promise.race([Cs(g,{document:n,type:"module"}),new Promise((h,m)=>setTimeout(()=>m(new Error(`Timeout loading ${d}`)),1e4))]),await a(d,g)}catch(h){if(console.error(`Failed to load ${d} from ${o}:`,h),o!=="symbols")try{let m=Qe(d,p,"symbols")+l;await Promise.race([Cs(m,{document:n,type:"module"}),new Promise((y,S)=>setTimeout(()=>S(new Error(`Timeout fallback ${d}`)),2e4))]),console.log(`Successfully loaded ${d} from fallback (symbols.ls)`),await a(d,m)}catch(m){console.error(`Failed to load ${d} from fallback:`,m)}}},u=[];for(let d in t){let p=t[d];if(!(e&&e[d])&&!FP[d]&&(FP[d]=!0,!dr(d))){if(no(d)){console.warn(`[smbls] dependency "${d}" looks like an un-interpolated template placeholder, not a real package specifier \u2014 skipping the CDN fetch (this is a bug upstream of the dependency loader, not a network failure).`);continue}HP(d)||u.push(f(d,p))}}return u.length&&await Promise.allSettled(u),t},jP=/\[smbls\] runtime dependency "([^"]+)" is not registered on globalThis\.__SMBLS_PKGS__/g,I4=t=>{if(typeof t=="string")return t;if(typeof t=="function")try{return typeof we=="function"?we(t):Function.prototype.toString.call(t)}catch{return""}return""},$4=t=>{let e=new Set;if(!t)return e;let n=[t.globalScope,t.functions,t.methods,t.snippets];for(let r=0;r<n.length;r++){let o=n[r];if(!o||typeof o!="object")continue;let s=Object.keys(o);for(let i=0;i<s.length;i++){let a;try{a=o[s[i]]}catch{continue}let c=I4(a);if(!c||c.indexOf("__SMBLS_PKGS__")===-1)continue;jP.lastIndex=0;let l;for(;(l=jP.exec(c))!==null;)e.add(l[1])}}return e},M4=t=>{let e=new Set;if(!t||typeof t.querySelectorAll!="function")return e;let n;try{n=t.querySelectorAll('script[type="importmap"]')}catch{return e}for(let r=0;r<n.length;r++){let o;try{o=JSON.parse(n[r].textContent||"")}catch{continue}let s=o&&typeof o=="object"?o.imports:null;if(s&&typeof s=="object"){let i=Object.keys(s);for(let a=0;a<i.length;a++)e.add(i[a])}}return e},N4=(t,e)=>{if(!e||!e.size)return!1;if(e.has(t))return!0;for(let n of e)if(n.length>1&&n.endsWith("/")&&t.length>n.length&&t.startsWith(n))return!0;return!1},WP=(t,{syncRead:e=$4(t),runtimeDocument:n=typeof document<"u"?document:null,importMap:r=M4(n)}={})=>{let o=t&&t.dependencies;if(!ro(o))return null;let s=!t.document||t.document===n,i=t.dependenciesOnDemand,a=null,c=null;for(let l in o)s&&!(i&&i[l])&&!e.has(l)&&N4(l,r)?(c||(c={}))[l]=o[l]:(a||(a={}))[l]=o[l];return{blocking:a,deferred:c}},F4=t=>import(t),Vx={},j4=(t,e)=>{if(!e||typeof globalThis>"u")return;let n=globalThis.__SMBLS_PKGS__||(globalThis.__SMBLS_PKGS__={});n[t]||(n[t]=e)},B4=(t,{importModule:e=F4}={})=>{let n=[];if(!t)return Promise.resolve([]);for(let r in t)dr(r)||no(r)||HP(r)||(Vx[r]||(Vx[r]=Promise.resolve().then(()=>e(r)).then(o=>(j4(r,o),o||null),()=>null)),n.push(Vx[r]));return Promise.all(n)},V4=2e3,U4=3e3,qP=(t,{win:e=typeof window<"u"?window:null,importModule:n,loadTimeoutMs:r=U4}={})=>t?new Promise(o=>{let s=()=>{B4(t,{importModule:n}).then(o,o)},i=()=>{e&&typeof e.requestIdleCallback=="function"?e.requestIdleCallback(s,{timeout:V4}):setTimeout(s,0)},a=e&&e.document;if(a&&a.readyState&&a.readyState!=="complete"&&typeof e.addEventListener=="function"){let c=!0,l=null,f=()=>{c&&(c=!1,clearTimeout(l),typeof e.removeEventListener=="function"&&e.removeEventListener("load",f),i())};e.addEventListener("load",f,{once:!0}),l=setTimeout(f,r)}else i()}):null,KP=async(t,e)=>{let n=e.window||window,r=e.cdnProvider||As(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=r)=>{let{dependenciesOnDemand:l}=i,f=i.document||document,u=i.window||window;if(!u.packages[a]&&dr(a))return await u.require(a,c);if(!u.packages[a]){let d=ar()?`?${Math.random()}`:"";if(l&&l[a]){let p=l[a],g=Qe(a,p,c)+d;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=Qe(a,p,"symbols")+d;await i.utils.loadRemoteScript(m,{window:u,document:f})}}}else{let p=Qe(a,"latest",c)+d;try{await i.utils.loadRemoteScript(p,{window:u,document:f})}catch(g){if(console.error(`Failed to load ${a} from ${c}:`,g),c!=="symbols"){let h=Qe(a,"latest","symbols")+d;await i.utils.loadRemoteScript(h,{window:u,document:f})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};n.packages?n.packages=xt(n.packages,t):n.packages=t,n.require||(e.utils.require=await o(e),n.require=e.utils.require),n.requireOnDemand||(e.utils.requireOnDemand=await s(e),n.requireOnDemand=e.utils.requireOnDemand)},z4=/\s+/g,GP=(t,e)=>typeof t=="function"?t(e,e?.state,e?.context):t,H4=(t,e)=>{let n="";for(let r in t){let o=t[r];typeof o=="boolean"&&o?n+=` ${r}`:typeof o=="string"?n+=` ${o}`:typeof o=="function"&&(n+=` ${GP(o,e)}`)}return n},W4=(t,e,n)=>{if(!t)return;let{key:r}=e;t===!0&&(t=e.classlist={key:r}),typeof t=="string"&&(t=e.classlist={default:t}),t!==null&&typeof t=="object"&&!Array.isArray(t)&&(t=H4(t,e));let o=t.replace(z4," ").trim();if(n&&typeof n.setAttribute=="function")n.setAttribute("class",o);else if(n)try{n.className=o}catch{}return o},q4=()=>(t,e,n)=>{let r=GP(t,e);if(t){let{__ref:o}=e;o.__class.style=r}YP()(e.classlist,e,e.state,!0)},YP=()=>(t,e,n,r)=>{if(e.style&&!r)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=Te(c),i[a]=l}for(let a in i)a==="classProps"||a==="class"||s[a]===void 0&&delete i[a];e.node&&W4(i,e,e.node)}},K4=()=>({style:q4(),classlist:YP()}),G4=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Ux=new WeakSet,zx=!1,Y4=t=>!!t&&typeof t=="object",XP=(t,e)=>{let n=e.document||(e.parent&&e.parent.documentElement?e.parent:null)||document,r=e.initOptions||{},o=e.registry||K4(),s=e.designSystem?at(ut(e.designSystem),ut(Il),ve):ut(Il),i={};for(let h of G4)e[h]!==void 0&&(i[h]=e[h]);let a,c=Y4(n),f=c&&Ux.has(n)&&!e.skipDesignSystemInit,u=!f&&!zx,d=f?`[data-smbls-app="${t}"]`:":root";if(e.scopeSelector=d,e.skipDesignSystemInit){if(a=O(t)||O(),a&&(a.__domDocument=n),a?.CSS_VARS){J(a);try{vt({[d]:a.CSS_VARS}),a.CSS_MEDIA_VARS&&vt(Pp(a.CSS_MEDIA_VARS,d));let h=ko(a.cssSkinVars,a.cssSkinFallback,d);Object.keys(h).length&&vt(h)}finally{X()}}}else if(u){let h=O();h&&(h.__domDocument=n),a=qn(s,{key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...Mp,...i,...r}),a&&a!==h&&(a.__domDocument=n),c&&Ux.add(n),zx=!0}else{let h=Ic(t,s,{cleanBase:!0});for(let m in i)h[m]=i[m];if(h.__domDocument=n,f){let m=t.replace(/[^a-zA-Z0-9]/g,"").substring(0,6);e.cssPrefix=m,h.varPrefix=m}J(h);try{a=qn(h,{key:t,document:n,files:e.files,assets:e.assets,scopeSelector:d,...Mp,...i,...r})}finally{X()}c&&Ux.add(n),zx=!0}let p=a?.CONFIG||a,g=p?.font;if(g){J(p);try{$P(g)}finally{X()}}return[a,o]},ZP=(t,e)=>{let n={};e.state&&at(n,e.state),t&&t.state&&at(n,t.state);let r=e.polyglot;if(r?.translations){let o=null;try{typeof localStorage<"u"&&(o=localStorage.getItem(r.storageLangKey||"smbls_lang")||localStorage.getItem("lang"))}catch{}let s=o||n.lang||r.defaultLang||"en";o&&o!==n.lang&&(n.lang=o);let i=new Set,a=new Set,c=(u,d)=>{if(!a.has(u)){if(!Jr(e,u,n)){i.add(u);return}n[u]=d,a.add(u),mn(e,u,d)}},l=r.translations[s];if(l&&typeof l=="object")for(let u in l)c(u,l[u]);let f=new Set(r.languages||[]);for(let u in r.translations)f.has(u)||c(u,r.translations[u]);i.size&&r.verbose!==!1&&e.verbose!==!1&&console.warn(`[polyglot] ${i.size} translation key${i.size===1?"":"s"} collide${i.size===1?"s":""} with a declared root-state key (${[...i].join(", ")}) \u2014 the declared value wins and the translation is NOT seeded into state. Rename the translation key, or read it with \`{{ key | polyglot }}\` instead of a bare \`{{ key }}\`.`)}return n.isRootState=!0,ut(n)},QP=(t,e)=>{E(t.routes)&&E(e.pages)&&xt(t.routes,e.pages);let n=t.routes||e.pages||{},r=[];for(let o in n){if(o.charCodeAt(0)===47)continue;let i="/"+(o==="index"?"":o);Object.prototype.hasOwnProperty.call(n,i)?r.push(`${o} -> ${i}`):n[i]=n[o],delete n[o]}return r.length&&e&&e.verbose!==!1&&console.warn(`[smbls] preparePages kept ${r.length} explicitly declared route${r.length===1?"":"s"} over a same-named page key (${r.join(", ")}). A bare page NAME never overwrites a declared '/route'. This usually means a shared library ships a page under its export name that collides with one of your routes \u2014 add it to that library's ignoreList if you did not intend the collision.`),n},JP=t=>{Sc(t,t.sharedLibraries)};var cf={polyglot:Yl,getLocalStateLang:Jl,getActiveLang:Lr,getLang:Lr,setLang:Zl,getPendingLang:Kl,getLanguages:Gl,loadTranslations:Xl,upsertTranslation:Ql};Ja();$();$();var th=new Set(["__proto__","constructor","prototype"]),Wx=t=>{if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++)if(th.has(t[e]))return!1;return!0},tL=(t,e)=>{!t||!Wx(e)||e.reduce((n,r,o,s)=>{if(n&&r in n){if(o!==s.length-1)return n[r];delete n[r]}},t)},eL=(t,e,n,r=!1)=>{!t||!Wx(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&r&&(o[s]={}),o[s];o[s]=n}},t)},eh=(t,e)=>{let n=new Set;if(!Array.isArray(e))return n;for(let[r,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(n.add(o[0]),r){case"delete":tL(t,o);break;case"update":case"set":eL(t,o,s,!0);break;default:break}return n},nL=(t,e)=>{if(!e||typeof e!="object"||Array.isArray(e))return null;let n=t&&(t.__raw||t)||{},r=null;for(let o of Object.keys(e))th.has(o)||Object.prototype.hasOwnProperty.call(n,o)||(r||(r={}),r[o]=e[o]);return r},lf=(t,e)=>{!t||!e||typeof e!="object"||(t.__rawDesignSystem=JSON.parse(JSON.stringify(e)))},rL=(t,e,n,r="designSystem")=>{for(let o in e){if(th.has(o))continue;let s=`${r}/${o}`;if(n.has(s))continue;let i=e[o],a=t[o];if(i&&typeof i=="object"&&!Array.isArray(i)){if(!a||typeof a!="object"||Array.isArray(a)){if(o in t)continue;t[o]={}}rL(t[o],i,n,s)}else o in t||(t[o]=Array.isArray(i)?JSON.parse(JSON.stringify(i)):i)}},qx=(t,e)=>{if(!t||!t.__rawDesignSystem)return null;if(Array.isArray(e)&&e.length){let o={designSystem:t.__rawDesignSystem};eh(o,e)}let n=JSON.parse(JSON.stringify(t.__rawDesignSystem)),r=Array.isArray(t.sharedLibraries)?t.sharedLibraries:[];return xc(n,r,rL)};$();var oL=(t,e,n)=>{let r=!1;return(o={})=>{let{data:s}=o,{schema:i}=o;s&&(s=t.call("deepDestringifyFunctions",s,Array.isArray(s)?[]:{}),Object.entries(s).forEach(([a,c])=>{if(n[a]&&typeof n[a]=="object")if(a==="designSystem"){if(lf(n,c),r){let l=qx(n);l&&qn(l)}}else Zr(n[a],c);else n[a]=c}),r=!0,i&&(n.schema=i))}},sL=(t,e,n)=>(r={})=>{let{changes:o}=r;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=o.filter(c=>Array.isArray(c)&&Array.isArray(c[1])&&c[1][0]==="designSystem"),i=s.length?o.filter(c=>!s.includes(c)):o,a=eh(n,i);if(s.length&&a.add("designSystem"),a.has("designSystem")){let c=qx(n,s);c?qn(c):n.__warnedNoRawDesignSystem||(n.__warnedNoRawDesignSystem=!0,console.warn("[sync] design-system op ignored: no raw design system was seeded on this client. Re-initing from the processed config would corrupt every token, so the update is skipped \u2014 reload to pick it up. Seed it at boot with seedRawDesignSystem(ctx, ds)."))}if(a.has("state")){let c=nL(e,n.state);if(c){let l=typeof e.$update=="function"?e.$update:e.update;typeof l=="function"&&l.call(e,c)}}if(["pages","components","snippets","functions","assets"].some(c=>a.has(c))){let{pathname:c,search:l,hash:f}=n.window.location;t.call("router",c+l+f,t.__ref.root,{},{scrollToTop:!1,force:!0})}};var X4={success:"green",error:"red",warning:"yellow"},iL=(t,e,n)=>{if(t.symbols){if(!n.connected){n.notifications.connected={title:"Connected",message:"to the Symbols live server"},n.update({connected:!0});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}}else if(n.connected){n.notifications.connected={title:"Disconnected",type:"error"},n.update({connected:!1});let r=setTimeout(()=>{delete n.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.update({animation:"fadeOutDown"}),n.update({connected:!0}),clearTimeout(r)},3e3)}},aL={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:X4[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,n,r)=>{n.update({animation:"fadeInUp"})},onClick:(e,n,r)=>{delete r.notifications[n.key],n.update({animation:"fadeOutDown"}),r.onClose&&r.onClose(e,n,r)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var P5=!1,L5=()=>P5?"http://localhost:8080":"https://api.symbols.app",D5=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}},b0=null,I5=()=>(b0||(b0=Promise.resolve().then(()=>(JL(),QL)).then(t=>{let e=t&&(t.io||t.default);if(typeof e!="function")throw new TypeError("socket.io-client exports no io()");return e}).catch(t=>(console.warn("[sync] socket.io-client failed to load \u2014 live sync disabled",t),null))),b0),$5=async t=>{try{let e=t||L5(),n=await C.fetch(`${e}/service-token`,{method:"GET"}),r;try{let o=await n.clone().json();if(o&&typeof o.token=="string")return o.token.trim();r=await n.text()}catch{r=await n.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(e){console.error("[sync] Failed to fetch service-token",e)}},nD=(t,e,n,r)=>{t.on("snapshot",oL(e,n,r)),t.on("ops",sL(e,n,r)),t.on("clients",o=>{r.editor?.verbose&&iL(o,e,n)}),t.on("disconnect",o=>{r.editor?.verbose&&console.info("[sync] disconnected",o)})},M5=async(t,e,n,r,o)=>{let s=await $5(r);if(!s)return console.warn("[sync] no service token \u2014 collab disabled"),null;let i=n.key;if(!i)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let a=n.editor?.projectId||null,c=await o;if(!c)return null;let l=c(r,{path:"/collab-socket",transports:["websocket"],auth:{token:s,projectId:a,projectKey:i,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return l.on("connect",()=>{n.editor?.verbose&&console.info("[sync] connected (collab)")}),nD(l,t,e,n),l},N5=async(t,e,n,r)=>{let o=await r;if(!o)return null;let s=o({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return s.on("connect",()=>{n.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),nD(s,t,e,n),s.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),s},F5=async(t,e,n)=>{let{mode:r,baseUrl:o}=D5(n);if(!r)return null;let s=I5();return r==="collab"?M5(t,e,n,o,s):r==="runner"?N5(t,e,n,s):null},j5={onInit:F5};var rD=t=>typeof t>"u",tD=t=>!!(t?.editor?.socketUrl||t?.settings?.socketUrl),eD=t=>t?.editor?.runtime==="runner",oD=(t,e)=>{Array.isArray(t.extends)?t.extends.push(e):t.extends?t.extends=[t.extends,e]:t.extends=[e]},sD={name:"sync",beforeCreate(t,e){let n=e&&e.editor;(n&&!rD(n.liveSync)?n.liveSync:tD(e)||eD(e))&&(tD(e)&&!eD(e)&&!e?.key||oD(t,j5))}},iD={name:"notifications",beforeCreate(t,e){if(!e)return;let n=rD(e.notifications)?null:e.notifications,r=e.editor&&e.editor.verbose===!0;(n===!0||n!==!1&&r)&&oD(t,aL)}};var S0={};F(S0,{AlertTemplate:()=>Th,ConfirmTemplate:()=>Ch,CustomTemplate:()=>Rh,ModalLayer:()=>Ah,ModalRoot:()=>Eh,PromptTemplate:()=>Oh,windowsComponents:()=>w0});var _0={};F(_0,{alertDialog:()=>kh,closeAllModals:()=>Sh,closeModal:()=>_h,confirmDialog:()=>xh,getLayer:()=>bh,openModal:()=>wh,promptDialog:()=>vh,windowsFunctions:()=>tr});function ot(t){let e=t;for(;e;){if(e.layer!==void 0)return e.layer;e=e.parent}return null}function Wi(t){let e=t;for(;e;){if(e.key==="ModalRoot")return e;if(e.ModalRoot&&e.ModalRoot.__ref)return e.ModalRoot;e=e.parent}let n=t?.getRoot?.();return n?.ModalRoot?n.ModalRoot:typeof globalThis<"u"&&globalThis.__SMBLS_WINDOWS_MODAL_ROOT__?.__ref?globalThis.__SMBLS_WINDOWS_MODAL_ROOT__:null}function bh(){return ot(this)}var B5=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.setProperty!="function"||(r.style.setProperty("display","none","important"),r.style.setProperty("opacity","0","important"),r.style.setProperty("visibility","hidden","important"),r.style.setProperty("pointer-events","none","important"))},aD=(t,e)=>{let n=t&&t["ModalLayer_"+e],r=n?.node||n?.__ref?.node;!r||typeof r.style?.removeProperty!="function"||(r.style.removeProperty("display"),r.style.removeProperty("opacity"),r.style.removeProperty("visibility"),r.style.removeProperty("pointer-events"))};function _h(t){let e=Wi(this);if(!e)return;let n=e.state?.stack||[];if(!n.length)return;let r,o,s;if(t){if(s=[],r=n.filter((i,a)=>{let c=i.id!==t;return c||s.push(a),c}),r.length===n.length)return;o=n.filter(i=>i.id===t)}else r=n.slice(0,-1),o=n.slice(-1),s=[n.length-1];e.state.update({stack:r});for(let i of s)B5(e,i);for(let i of o)if(typeof i.onClose=="function")try{i.onClose()}catch(a){console.warn("[windows] onClose threw:",a)}}function wh(t={}){let e=Wi(this);if(!e)return console.warn("[windows] openModal: ModalRoot is not mounted on the app root. Add `ModalRoot: {}` to your shell tree and import windowsComponents into context."),null;e.__modalIdCounter=(e.__modalIdCounter||0)+1;let n=t.id||`modal_${e.__modalIdCounter}_${Date.now().toString(36)}`,r={id:n,template:t.template||"custom",title:t.title,message:t.message,icon:t.icon,confirmText:t.confirmText,cancelText:t.cancelText,okText:t.okText,confirmTheme:t.confirmTheme,placeholder:t.placeholder,defaultValue:t.defaultValue,dismissOnBackdrop:t.dismissOnBackdrop,content:t.content,width:t.width,maxWidth:t.maxWidth,maxHeight:t.maxHeight,onConfirm:t.onConfirm,onCancel:t.onCancel,onOk:t.onOk,onClose:t.onClose},o=e.state?.stack||[];if(o.length>=5)return console.warn("[windows] openModal: stack already at the 5-layer maximum, dropping the new layer. Close some modals first."),null;let s=o.length;return aD(e,s),e.state.update({stack:[...o,r]}),n}function Sh(){let t=Wi(this);!t||!t.state?.stack?.length||t.state.update({stack:[]})}function xh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"confirm"})}function kh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"alert"})}function vh(t){let e=typeof t=="string"?{message:t}:t||{};return this.call("openModal",{...e,template:"prompt"})}var tr={openModal:wh,closeModal:_h,closeAllModals:Sh,confirmDialog:xh,alertDialog:kh,promptDialog:vh,getLayer:bh};var V5=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),cD=t=>{if(!t?.querySelectorAll)return[];let e=t.querySelectorAll(V5),n=[];for(let r=0;r<e.length;r++){let o=e[r];(o.offsetParent!==null||o===document.activeElement)&&n.push(o)}return n},lD=t=>{let e=t.state?.stack||[];if(!e.length)return null;let n=t["ModalLayer_"+(e.length-1)];return n?.node||n?.__ref?.node||null},Eh={tag:"div",position:"fixed",inset:"0",zIndex:"2000",pointerEvents:"none",state:{stack:[]},subscribeTo:["stack"],ModalLayer_0:{__slotIndex:0,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[0]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_1:{__slotIndex:1,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[1]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_2:{__slotIndex:2,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[2]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_3:{__slotIndex:3,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[3]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},ModalLayer_4:{__slotIndex:4,subscribeTo:["stack"],layer:(t,e)=>e?.stack?.[4]||null,opacity:t=>t.layer?"1":"0",visibility:t=>t.layer?"visible":"hidden",pointerEvents:t=>t.layer?"auto":"none"},onInit:(t,e)=>{if(typeof window>"u")return;globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=t;let n=t.context;if(n){n.functions||(n.functions={});for(let a in tr)a in n.functions||(n.functions[a]=tr[a])}t.__modalOpeners=t.__modalOpeners||[],t.__prevStackLen=t.state&&t.state.stack&&t.state.stack.length||0;let r=()=>{let a=t.state?.stack||[];if(!a.length)return;let c=a.length-1,l=a[c];t.state.update({stack:a.slice(0,-1)});let f=t["ModalLayer_"+c],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty("display","none","important"),u.style.setProperty("opacity","0","important"),u.style.setProperty("visibility","hidden","important"),u.style.setProperty("pointer-events","none","important")),typeof l?.onClose=="function")try{l.onClose()}catch(d){console.warn("[windows] onClose threw:",d)}},o=a=>{let c=t.state?.stack;if(c?.length){if(a.key==="Tab"){let l=lD(t);if(!l)return;let f=cD(l);if(!f.length){a.preventDefault();let g=l.querySelector?.('[role="dialog"]')||l;try{g.focus?.()}catch{}return}let u=f[0],d=f[f.length-1],p=document.activeElement;if(!l.contains(p)){a.preventDefault();try{u.focus()}catch{}return}if(a.shiftKey&&p===u){a.preventDefault();try{d.focus()}catch{}}else if(!a.shiftKey&&p===d){a.preventDefault();try{u.focus()}catch{}}return}a.key!=="Escape"||a.defaultPrevented||c[c.length-1]?.dismissOnBackdrop!==!1&&(a.preventDefault(),r())}};window.addEventListener("keydown",o),t.__escHandler=o;let s=a=>{let c=t.state?.stack||[];if(a<0||a>=c.length)return;let l=c[a];t.state.update({stack:c.filter((d,p)=>p!==a)});let f=t["ModalLayer_"+a],u=f?.node||f?.__ref?.node;if(u?.style?.setProperty&&(u.style.setProperty("display","none","important"),u.style.setProperty("opacity","0","important"),u.style.setProperty("visibility","hidden","important"),u.style.setProperty("pointer-events","none","important")),typeof l?.onClose=="function")try{l.onClose()}catch(d){console.warn("[windows] onClose threw:",d)}},i=a=>{let c=t.state?.stack||[];if(!c.length)return;let l=a.target?.closest?.('[data-key="Close"]');if(l){for(let f=c.length-1;f>=0;f--){let u=t["ModalLayer_"+f],d=u?.node||u?.__ref?.node;if(d&&d.contains(l)){a.preventDefault(),a.stopPropagation(),s(f);return}}return}for(let f=c.length-1;f>=0;f--){let u=t["ModalLayer_"+f];if((u?.node||u?.__ref?.node)===a.target){if(c[f]?.dismissOnBackdrop===!1)return;a.preventDefault(),a.stopPropagation(),s(f);return}}};document.addEventListener("click",i,!0),t.__clickDelegate=i},onUpdate:t=>{if(typeof window>"u")return;let e=(t.state&&t.state.stack||[]).length,n=t.__prevStackLen||0;if(e!==n)if(t.__prevStackLen=e,t.__modalOpeners=t.__modalOpeners||[],e>n)t.__modalOpeners[e]=document.activeElement&&document.activeElement!==document.body?document.activeElement:t.__modalOpeners[e]||null,typeof requestAnimationFrame=="function"&&requestAnimationFrame(()=>{let r=lD(t);if(!r)return;let o=cD(r)[0]||r.querySelector&&r.querySelector('[role="dialog"]')||r;try{o.focus&&o.focus()}catch{}});else{let r=null;for(let o=n;o>e;o--)t.__modalOpeners[o]&&(r=r||t.__modalOpeners[o]),t.__modalOpeners[o]=null;if(r&&typeof r.focus=="function"&&r.isConnected!==!1)try{r.focus()}catch{}}},onDestroy:t=>{typeof window>"u"||(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__===t&&(globalThis.__SMBLS_WINDOWS_MODAL_ROOT__=null),t.__escHandler&&(window.removeEventListener("keydown",t.__escHandler),delete t.__escHandler),t.__clickDelegate&&(document.removeEventListener("click",t.__clickDelegate,!0),delete t.__clickDelegate))}};var Ah={tag:"div",position:"fixed",inset:"0",alignItems:"center",justifyContent:"center",padding:"A",theme:"backdrop",transition:"opacity C defaultBezier",zIndex:(t,e)=>`${2e3+(t.__slotIndex||0)*10}`,display:(t,e)=>t.layer?"flex":"none",opacity:(t,e)=>t.layer?"1":"0",visibility:(t,e)=>t.layer?"visible":"hidden",pointerEvents:(t,e)=>t.layer?"auto":"none",ModalWindow:{attr:{role:"dialog","aria-modal":"true",tabindex:"-1","aria-labelledby":t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}},width:t=>ot(t)?.width||"H",maxWidth:t=>ot(t)?.maxWidth||"90vw",flow:"y",maxHeight:t=>ot(t)?.maxHeight||"100%",animation:"modalIn",animationDuration:"D",animationTimingFunction:"springBezier",onClick:t=>t.stopPropagation(),onMousedown:t=>t.stopPropagation(),ModalHeader:{display:"none"},overflow:"visible",ConfirmTemplate:{hide:t=>ot(t)?.template!=="confirm"},AlertTemplate:{hide:t=>ot(t)?.template!=="alert"},PromptTemplate:{hide:t=>ot(t)?.template!=="prompt"},CustomTemplate:{hide:t=>ot(t)?.template!=="custom"}}};var qi=(t,e,n)=>ot(t)?.[e]||n,U5=t=>{let e=ot(t)?.icon;return e===null||e===!1},Ch={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>qi(t,"title","Are you sure?"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{hide:t=>U5(t),Indicator:{extends:"Icon",opacity:".7",icon:t=>qi(t,"icon","warning")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",P:{tag:"p",margin:"0",text:t=>qi(t,"message","This action cannot be undone."),color:"dim"}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>qi(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] confirm.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:t=>qi(t,"confirmTheme","primary"),text:t=>qi(t,"confirmText","Confirm"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onConfirm)try{r.onConfirm()}catch(o){console.warn("[windows] confirm.onConfirm threw:",o)}e.call("closeModal",r?.id)}}}};var wf=(t,e,n)=>ot(t)?.[e]||n,Th={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",ModalHeader:{Hgroup:{H:{text:t=>wf(t,"title","Notice"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}},Icons:{Indicator:{extends:"Icon",opacity:".7",icon:t=>wf(t,"icon","info")}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!wf(t,"message",""),P:{tag:"p",margin:"0",text:t=>wf(t,"message",""),color:"dim"}},ModalFooter:{flow:"x",align:"center end",flexShrink:"0",OkBtn:{extends:"Button",theme:"primary",text:t=>wf(t,"okText","OK"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onOk)try{r.onOk()}catch(o){console.warn("[windows] alert.onOk threw:",o)}e.call("closeModal",r?.id)}}}};var Ki=(t,e,n)=>ot(t)?.[e]||n,Oh={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",scope:{value:""},onRender:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},onUpdate:(t,e)=>{let n=ot(t);if(!n||t.scope._seededLayerId===n.id)return;t.scope._seededLayerId=n.id,t.scope.value=n.defaultValue||"";let r=t.InputRow&&t.InputRow.node;r&&(r.value=t.scope.value)},ModalHeader:{Hgroup:{H:{text:t=>Ki(t,"title","Enter a value"),attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},P:{if:()=>!1}}},ModalBody:{flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",hide:t=>!Ki(t,"message",""),P:{tag:"p",margin:"0",text:t=>Ki(t,"message",""),color:"dim"}},InputRow:{extends:"Input",flexShrink:"0",autofocus:!0,placeholder:t=>Ki(t,"placeholder",""),value:(t,e)=>t.parent.scope?.value||"",onInput:(t,e,n)=>{e.parent.scope.value=t.target.value},onKeydown:(t,e,n)=>{if(t.key!=="Enter")return;t.preventDefault();let r=ot(e),o=e.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}},ModalFooter:{flow:"x",gap:"Z1",align:"center end",flexShrink:"0",CancelBtn:{extends:"CancelButton",text:t=>Ki(t,"cancelText","Cancel"),onClick:(t,e,n)=>{let r=ot(e);if(r?.onCancel)try{r.onCancel()}catch(o){console.warn("[windows] prompt.onCancel threw:",o)}e.call("closeModal",r?.id)}},ConfirmBtn:{extends:"Button",theme:"primary",text:t=>Ki(t,"confirmText","OK"),onClick:(t,e,n)=>{let r=ot(e),o=e.parent.parent.scope?.value||"";if(r?.onConfirm)try{r.onConfirm(o)}catch(s){console.warn("[windows] prompt.onConfirm threw:",s)}e.call("closeModal",r?.id)}}}};var Rh={tag:"div",flow:"y",gap:"B",flex:"1 1 auto",minHeight:"0",Title:{tag:"h2",text:t=>ot(t)?.title||"",hide:t=>!ot(t)?.title,position:"absolute",width:"1px",height:"1px",margin:"-1px",padding:"0",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0",attr:{id:t=>{let e=ot(t)?.id;return e?"modal-title-"+e:null}}},Slot:{tag:"div",flex:"1 1 auto",minHeight:"0",overflowY:"auto",overscrollBehavior:"contain",onInit:t=>{let e=K(()=>{let n=ot(t),r=n?.content||null,o=n?.id||null;if(!r){t.__lastLayerId!=null&&(t.removeContent(),t.__lastLayerId=null);return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r);let s=t.content?.context;if(s){s.functions||(s.functions={});for(let i in tr)i in s.functions||(s.functions[i]=tr[i])}}catch(s){console.warn("[windows] custom.content set failed:",s)}}});t.__ref&&t.__ref.__effects.push(e)}}};var fD={extends:"Button",theme:"tertiary"};var w0={ModalRoot:Eh,ModalLayer:Ah,ConfirmTemplate:Ch,AlertTemplate:Th,PromptTemplate:Oh,CustomTemplate:Rh,"smbls.CancelButton":fD};var C0={};F(C0,{Dropdown:()=>Mh,DropdownList:()=>Nh,DropdownParent:()=>Fh,DropdownParentFocus:()=>jh,DropdownRoot:()=>Ih,DropdownSiblingFocus:()=>Bh,DropdownTrigger:()=>$h,dropdownComponents:()=>A0});var uD=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),z5=(t,e,n,r)=>{let o=uD(t,n,r),s=i=>o[i]>=e.height+8;return s("bottom")?"bottom":s("top")?"top":o.bottom>=o.top?"bottom":"top"},H5=(t,e,n,r,o)=>{let s=uD(e,r,o),i=t==="top"||t==="bottom"?n.height+8:n.width+8;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i||a&&s[a]>s[t]?a:t};var x0=(t,e,n)=>{let r;return t==="bottom"?r=n-e.bottom-16:t==="top"?r=e.top-16:r=n-16,Math.max(40,Math.floor(r))},Ph=(t,e,n)=>Math.max(e,Math.min(n,t)),er=(t,e,n="auto")=>{if(!t){let g=typeof window<"u"?window.innerHeight:768;return{left:0,top:0,side:"bottom",align:"start",maxHeight:x0("center",null,g)}}let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s={width:Math.max(120,e?.width||0),height:Math.max(40,e?.height||0)};if(n==="center"){let g=x0("center",t,o),h=Math.min(s.height,g),m=Ph((r-s.width)/2,8,Math.max(8,r-s.width-8)),y=Ph((o-h)/2,8,Math.max(8,o-h-8));return{left:m,top:y,side:"center",align:"center",maxHeight:g}}let i,a;if(n==="auto")i=z5(t,s,r,o),a="start";else{let g=n.split("-");i=g[0],a=g[1]||"start",i=H5(i,t,s,r,o)}let c=x0(i,t,o),l=Math.min(s.height,c),f,u;i==="bottom"||i==="top"?(a==="start"?f=t.left:a==="end"?f=t.right-s.width:f=t.left+(t.width-s.width)/2,u=i==="bottom"?t.bottom+8:t.top-l-8):(a==="start"?u=t.top:a==="end"?u=t.bottom-l:u=t.top+(t.height-l)/2,f=i==="right"?t.right+8:t.left-s.width-8);let d=Math.max(8,r-s.width-8),p=Math.max(8,o-l-8);return f=Ph(f,8,d),u=Ph(u,8,p),{left:f,top:u,side:i,align:a,maxHeight:c}},Gi=t=>{switch(t){case"bottom":return"translateY(-6px)";case"top":return"translateY(6px)";case"left":return"translateX(6px)";case"right":return"translateX(-6px)";case"center":return"translateY(0px)";default:return"translateY(-6px)"}};var Mr={placement:"auto",trigger:"click",offset:8,minWidth:"180px",maxWidth:"90vw",maxHeight:null},W5=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},k0=t=>t?.getRoot?.()?.DropdownRoot||null,q5=0,K5=()=>`dropdown_${++q5}_${Date.now().toString(36)}`;function Lh(t={}){let e=k0(this);if(!e)return console.warn("[dropdown] openDropdown: DropdownRoot is not mounted on the app root. Add `DropdownRoot: {}` to your shell tree and import dropdown components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||W5(n);if(!r)return console.warn("[dropdown] openDropdown: no anchor element/rect provided \u2014 pass anchorEl or anchorRect."),null;let o=t.id||K5(),s=t.restoreEl?.node||t.restoreEl||n||(typeof document<"u"?document.activeElement:null),i={id:o,content:t.content||null,anchor:r,placement:t.placement||Mr.placement,trigger:t.trigger||Mr.trigger,offset:t.offset??Mr.offset,minWidth:t.minWidth||Mr.minWidth,maxWidth:t.maxWidth||Mr.maxWidth,maxHeight:t.maxHeight||Mr.maxHeight,theme:t.theme||null,shadow:t.shadow||null,background:t.background||null,round:t.round||null,role:t.role||null,ariaLabel:t.ariaLabel||null,ariaLabelledby:t.ariaLabelledby||null,focusIn:!!t.focusIn,onOpen:t.onOpen,onClose:t.onClose,restoreEl:s},a=e.state?.layer;if(a?.onClose)try{a.onClose(a)}catch(c){console.warn("[dropdown] prev onClose threw:",c)}if(e.state.update({layer:i}),typeof i.onOpen=="function")try{i.onOpen(i)}catch(c){console.warn("[dropdown] onOpen threw:",c)}return o}function Dh(t){let e=k0(this);if(!e)return;let n=e.state?.layer;n&&e.state.update({layer:{...n,inert:!!t}})}function Jo(t){let e=k0(this);if(!e)return;let n=e.state?.layer;if(!n)return;let r=typeof t=="string"?t:t?.id;if(r&&n.id&&r!==n.id)return;let o=n.onClose,s=n.restoreEl,i=typeof document<"u"?document:null,a=i?i.activeElement:null,c=e.node?.querySelector?.('[data-smbls-dropdown="panel"]'),l=!a||a===i?.body,f=!!(c&&a&&c.contains(a)),u=l||f;if(e.state.update({layer:null}),u&&s&&typeof s.focus=="function")try{s.focus()}catch(d){console.warn("[dropdown] focus restore threw:",d)}if(typeof o=="function")try{o(n)}catch(d){console.warn("[dropdown] onClose threw:",d)}}var v0=(t,e)=>{let n=`${e.maxHeight}px`;return t?.maxHeight?`min(${t.maxHeight}, ${n})`:n},dD=t=>{let e=t.getBoundingClientRect();return{width:e.width,height:Math.max(e.height,t.scrollHeight||0)}},G5=`
100
100
  @keyframes smbls-dropdown-fade-in {
101
101
  from { opacity: 0; transform: var(--smbls-dropdown-from, translateY(-6px)) scale(0.98); }
102
102
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
@@ -163,13 +163,13 @@ ${a}`}var HS=null;function Op(t){HS=t}var on={structuralHash:Ap,deepEqual:Cp,mer
163
163
  [data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
164
164
  box-shadow: none !important;
165
165
  }
166
- `,q5=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=W5,document.head.appendChild(t)},fD=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},K5=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},G5=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},Y5=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],uD=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of Y5){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},X5='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',Z5=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(X5)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Dh={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(q5(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),Jo.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}Jo.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return er(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return er(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":qi(er(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return x0(e,er(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=K(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,uD(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=K5(t.content)),fD(t,n),uD(t,n),G5(t),n.focusIn&&Z5(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;fD(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=lD(t.node);t._lastSize=i;let a=er(s.anchor,i,s.placement);t.node.style.maxHeight=x0(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",qi(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=lD(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=er(e.anchor,n,e.placement);t.node.style.maxHeight=x0(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",qi(o.side))}}}};var k0=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},Ih={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),k0(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&k0(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>k0(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var $h={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Mh={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",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"}}},Nh={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Fh={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()}}},jh={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 v0={DropdownRoot:Dh,DropdownTrigger:Ih,Dropdown:$h,DropdownList:Mh,DropdownParent:Nh,DropdownParentFocus:Fh,DropdownSiblingFocus:jh};var C0={};F(C0,{DROPDOWN_DEFAULTS:()=>Mr,closeDropdown:()=>Jo,computePosition:()=>er,dropdownFunctions:()=>A0,fadeInTransform:()=>qi,openDropdown:()=>Ph,setDropdownInert:()=>Lh});var A0={openDropdown:Ph,closeDropdown:Jo,setDropdownInert:Lh};var Q5=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),J5=(t,e,n,r,o)=>{let s=Q5(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},dD=(t,e,n)=>Math.max(e,Math.min(n,t)),pD=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=J5(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=dD(i,6,r-e.width-6),a=dD(a,6,o-e.height-6),{left:i,top:a,side:s}},hD=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var Bh={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},t6=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},gD=t=>t?.getRoot?.()?.TooltipRoot||null,mD=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},yD=(t,e,n=0)=>{let r=mD(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>yD(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},e6=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},n6=0,r6=()=>`tooltip_${++n6}_${Date.now().toString(36)}`;function bD(t={}){let e=gD(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||t6(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||r6(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||Bh.placement,theme:t.theme||Bh.theme,open:!0,size:null};return e.state.update({tip:s}),e6(()=>yD(e,o)),o}function _D(t){let e=gD(this);if(!e)return;let n=mD(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var T0=t=>{let e=t.tip;return e?.anchor?pD(e.anchor,e.size||{width:0,height:0},e.placement):null},Vh=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},wD={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=T0(t);return e?e.left+"px":"-9999px"},top:t=>{let e=T0(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Bh.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>Vh(t)?"1":"0",visibility:t=>Vh(t)?"visible":"hidden",transform:t=>{if(Vh(t))return"none";let e=T0(t);return hD(e?e.side:"bottom")},transition:t=>{let e=Vh(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var O0=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},o6=t=>{t.tooltipText&&(O0(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},SD=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,o6(t)},t.tooltipDelay??250))},xD=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},kD={onMouseenter:(t,e)=>SD(e),onMouseleave:(t,e)=>xD(e),onFocus:(t,e)=>SD(e),onBlur:(t,e)=>xD(e),onMouseover:(t,e)=>O0(e),onFocusin:(t,e)=>O0(e)};var vD={display:"flex",theme:"dialog",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=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",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:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},ED={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)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},AD={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var CD={TooltipRoot:wD,TooltipTrigger:kD,Tooltip:vD,TooltipHidden:ED,TooltipParent:AD};var TD={openTooltip:bD,closeTooltip:_D};var L0=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),D0=t=>Qe(t)?t.library!==void 0?t.library:t.key??t.name:t,s6=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=D0(i);if(!L0(a))return i;let c=s(a);return c?Qe(i)?{...i,library:c}:c:null}).filter(Boolean)},I0=new WeakMap,i6={lazy:!0,window:globalThis},OD=["components","pages","functions","methods","snippets"],R0=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},a6=(t,e)=>{if(Yr(e)||Yr(t))return"boot-revived";if(R0(t))return"local";if(e&&typeof e=="object"){if(R0(e.app))return"local";for(let n of OD)if(R0(e[n]))return"local"}return"raw-json"},RD=(t,e)=>{let n=e?t[e]:t;if(!E(n))return;let r=ie(n,{},i6);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},c6=t=>{if(!E(t)||Yr(t))return t;for(let e of[...OD,"app"])RD(t,e);return us(t)},l6=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=Qe(n)?n.library:n;E(r)&&!e.has(r)&&c6(r)}return t},P0=t=>{let e=I0.get(t);e&&(I0.delete(t),zP(e))},$0=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");e.define=e.define||Oi,e.cssPropsRegistry=_t,e.window=NP(e);let s=a6(t,e);if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(m=>{let y=D0(m);return typeof y=="string"||L0(y)})){e.sharedLibraries=s6(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:m}=await Promise.resolve().then(()=>($(),Ls)),y=new Set(e.sharedLibraries.map(b=>D0(b)).filter(b=>E(b)&&!L0(b))),S=await m(e.sharedLibraries,{apiBaseUrl:Nx()});e.sharedLibraries=s==="raw-json"?S:l6(S,y)}PP(e.sharedLibraries),XP(e)}cf(e,e.designSystem);let[i,a]=KP(o,e);e.designSystem=i,e.registry=a,e.cases||(e.cases={}),e.shorthand&&ef.prepareContext(e);let c=GP(t,e);if(e.state=c,ec(c),e.pages=YP(t,e),e.components=FP(e),e.utils=jP(e),ur[e.packageManager]){let h=UP(e);h&&h.deferred?(h.blocking&&await Ux({...e,dependencies:h.blocking}),I0.set(e,h.deferred)):e.dependencies=await Ux(e)}if(e.methods=BP(e),e.routerOptions=mR(t,e),e.defaultExtends=[bp],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(m=>!m||typeof m!="object");e.plugins=e.plugins.filter(m=>m&&typeof m=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(m=>JSON.stringify(m)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}let l=e.globalScope;e.globalScope&&E(e.globalScope)&&(e.globalScope=Xr(e.globalScope));let f=(h,m)=>{s==="raw-json"&&RD(h,m)};f(t),f(e,"components"),f(e,"pages"),f(e,"functions"),f(e,"methods"),f(e,"snippets"),f(e,"app"),yc(e,l),bc(e);let u=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!u(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!u(e.db.__resolved)&&delete e.db.__resolved;let d=h=>e.plugins.some(m=>m&&m.name===h);if(e.polyglot&&!d("polyglot")){e.plugins.push(Pi);for(let h in af)typeof e.functions[h]!="function"&&(e.functions[h]=af[h])}if(d("helmet")||e.plugins.push(lx),d("inertOutside")||e.plugins.push(hp),e.fetch&&!d("fetch")&&e.plugins.push(my),e.fetch)for(let h in Mu)typeof e.functions[h]!="function"&&(e.functions[h]=Mu[h]);if(e.designSystem?.typography?.useCapsize!==!1&&!d("capsize")&&(e.plugins.push(jp),e.cssPropsRegistry.useCapsize=px),e.shorthand&&!d("shorthand")&&e.plugins.push(ef),e.analyze&&!d("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=Xp(h),e.plugins.push(Di)}e.sync!==!1&&!d("sync")&&e.plugins.push(nD),e.inspect&&!d("inspect")&&e.plugins.push($x),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!d("notifications")&&e.plugins.push(rD);let g=(h,m,y)=>{if(e[h]!==!1){for(let S in m)E(e.components[S])||(e.components[S]=m[S]);for(let S in y)typeof e.functions[S]!="function"&&(e.functions[S]=y[S])}};return g("windows",b0,tr),g("dropdown",v0,A0),g("tooltip",CD,TD),e},wf=async(t,e)=>{E(e)||(e={}),En(t)?(t={},e.parent=t):v(t)?(t={},e.key=t):E(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]')))}if(await $0(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&&E(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=HR(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await HP({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 P0(e),t;let i=e.parent||s.body;if(r){let l=(f6(e,n)?u6(ee,t,i,e,n,o):null)||d6(ee,t,i,e,n,o);return P0(e),l}let a=ee(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return P0(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},f6=(t,e)=>!e||!E(e.__BR_REGISTRY__)||t.hydrate===!1?!1:t.hydrate===!0||e.__BRENDER_HYDRATE__===!0,u6=(t,e,n,r,o,s)=>{let i=f=>{for(let u=f;u&&u!==n;u=u.parentNode)if(u.parentNode===n&&u.localName==="svg"&&u.id)return!0;return!1},a={};for(let f of n.querySelectorAll("[data-br]")){if(i(f)){f.removeAttribute("data-br");continue}a[f.getAttribute("data-br")]=f}let c={registry:o.__BR_REGISTRY__,nodes:a,claimed:new Set,adopted:0,misses:0};r.__hydration=c;let l;try{l=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions})}catch(f){console.error("[smbls] hydration failed, rendering fresh:",f),delete r.__hydration;for(let u of c.claimed)u.parentNode&&u.remove();return null}finally{delete r.__hydration}for(let f in a){let u=a[f];!c.claimed.has(u)&&u.parentNode&&u.remove()}return s&&s.forEach(f=>{f.parentNode&&f.remove()}),o.__BRENDER_HYDRATION__={adopted:c.adopted,misses:c.misses},PD(o),l},d6=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.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,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return PD(o),c},PD=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__)};var M0=(t,e)=>at(t,E(e)?e:{}),p6=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 n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},h6=()=>{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}},LD=t=>{let e=h6();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},N0=(t,e=Pr,n)=>{let r={...Pr,...M0(e,n)};return LD(r),p6(r),wf(t,r).then(s=>{if(XS(s,r),s.destroy=()=>Hl(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zl(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),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})},g6=(t,e=Pr,n)=>{let r=N0(t,e,n),o={...Pr,...M0(e,n)},s=o.key;return SR(r,s,{utils:Ul,...o}),r},m6=async(t,e=Pr,n)=>{let r={...Pr,...M0(e,n)};LD(r);let o=e.key;await wR(o,r);let s=await wf(t,r);return XS(s,r),s.destroy=()=>Hl(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=zl(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},y6=(t={},e=Pr,n)=>N0({deps:{isUndefined:Ft},...t},at({domqlOptions:{onlyResolveExtends:!0}},e),n);var B0={};F(B0,{BUILD_DOMQL_SYSTEM_PROMPT:()=>HD,DEFAULT_MAX_TOKENS:()=>Kh,DEFAULT_MODEL:()=>Nr,DEFAULT_PROVIDER:()=>kf,DEFAULT_TEMPERATURE:()=>qh,MODEL_TIER_ALIASES:()=>j0,PROVIDER_MODELS:()=>xf,SIMONE_BASE_URL:()=>Sf,SIMONE_CHAT_PATH:()=>Uh,SIMONE_CODE_PATH:()=>zh,SIMONE_CODE_SYMBOLS_PATH:()=>Hh,SIMONE_HEALTH_PATH:()=>Wh,SIMONE_TOOLS_PATH:()=>DD,WORKSPACE_SYSTEM_PROMPT:()=>zD,buildMessages:()=>FD,chat:()=>vf,health:()=>ND,parseSimoneResponse:()=>VD,resolveModel:()=>WD,streamChat:()=>vf,streamCode:()=>$D,streamCodeSymbols:()=>MD,toLegacyEnvelope:()=>UD});var Sf="https://symbols-service-production.up.railway.app",Uh="/api/chat",zh="/api/code",Hh="/api/code-symbols",Wh="/api/health",DD="/api/tools",xf={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-2.5-pro","gemini-3.1-pro-preview"]},kf="gemini",Nr=xf[kf][0],qh=.7,Kh=4096;function b6(t){if(!t)return null;for(let[e,n]of Object.entries(xf))if(n.includes(t))return e;return null}function ID(t,e){return t?t.replace(/\/$/,"")+e:e}function _6(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function vf(t,e={},n){let{baseUrl:r=Sf,path:o=Uh,model:s=Nr,provider:i=b6(s)||kf,temperature:a=qh,maxTokens:c=Kh,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(ID(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let x=g.statusText;try{let w=await g.text();try{let k=JSON.parse(w);x=k.error||k.detail||x}catch{x=w||x}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${x}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let x=await g.text();return n&&n(x),{text:x,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],S=[],b="";try{for(;;){let{done:x,value:_}=await h.read();if(x)break;b+=m.decode(_,{stream:!0});let w=b.indexOf(`
167
- `);for(;w!==-1;){let k=b.slice(0,w).trim();if(b=b.slice(w+1),k){let A=_6(k);if(A?.done)return{text:y.join(""),errors:S};let T=A?.chunk;T?.delta&&(y.push(T.delta),n&&n(T.delta)),T?.error&&S.push(T.error)}w=b.indexOf(`
168
- `)}}return{text:y.join(""),errors:S}}finally{h.cancel().catch(()=>{})}}function $D(t,e={},n){return vf(t,{...e,path:zh},n)}function MD(t,e={},n){return vf(t,{...e,path:Hh},n)}async function ND(t={}){let{baseUrl:e=Sf,signal:n,headers:r}=t,o=await fetch(ID(e,Wh),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function FD({system:t,history:e=[],user:n,context:r}){let o=[];t&&o.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||o.push({role:s.role,content:s.content});if(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
166
+ `,Y5=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=G5,document.head.appendChild(t)},pD=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},X5=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},Z5=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},Q5=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],hD=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of Q5){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},J5='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',t6=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(J5)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Ih={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(Y5(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),Jo.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}Jo.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return er(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return er(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Gi(er(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return v0(e,er(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=K(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,hD(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=X5(t.content)),pD(t,n),hD(t,n),Z5(t),n.focusIn&&t6(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;pD(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=dD(t.node);t._lastSize=i;let a=er(s.anchor,i,s.placement);t.node.style.maxHeight=v0(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Gi(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=dD(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=er(e.anchor,n,e.placement);t.node.style.maxHeight=v0(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Gi(o.side))}}}};var E0=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},$h={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),E0(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&E0(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>E0(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Mh={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Nh={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",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"}}},Fh={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},jh={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()}}},Bh={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 A0={DropdownRoot:Ih,DropdownTrigger:$h,Dropdown:Mh,DropdownList:Nh,DropdownParent:Fh,DropdownParentFocus:jh,DropdownSiblingFocus:Bh};var O0={};F(O0,{DROPDOWN_DEFAULTS:()=>Mr,closeDropdown:()=>Jo,computePosition:()=>er,dropdownFunctions:()=>T0,fadeInTransform:()=>Gi,openDropdown:()=>Lh,setDropdownInert:()=>Dh});var T0={openDropdown:Lh,closeDropdown:Jo,setDropdownInert:Dh};var e6=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),n6=(t,e,n,r,o)=>{let s=e6(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},gD=(t,e,n)=>Math.max(e,Math.min(n,t)),mD=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=n6(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=gD(i,6,r-e.width-6),a=gD(a,6,o-e.height-6),{left:i,top:a,side:s}},yD=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var Vh={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},r6=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},bD=t=>t?.getRoot?.()?.TooltipRoot||null,_D=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},wD=(t,e,n=0)=>{let r=_D(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>wD(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},o6=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},s6=0,i6=()=>`tooltip_${++s6}_${Date.now().toString(36)}`;function SD(t={}){let e=bD(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||r6(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||i6(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||Vh.placement,theme:t.theme||Vh.theme,open:!0,size:null};return e.state.update({tip:s}),o6(()=>wD(e,o)),o}function xD(t){let e=bD(this);if(!e)return;let n=_D(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var R0=t=>{let e=t.tip;return e?.anchor?mD(e.anchor,e.size||{width:0,height:0},e.placement):null},Uh=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},kD={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=R0(t);return e?e.left+"px":"-9999px"},top:t=>{let e=R0(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Vh.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>Uh(t)?"1":"0",visibility:t=>Uh(t)?"visible":"hidden",transform:t=>{if(Uh(t))return"none";let e=R0(t);return yD(e?e.side:"bottom")},transition:t=>{let e=Uh(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var P0=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},a6=t=>{t.tooltipText&&(P0(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},vD=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,a6(t)},t.tooltipDelay??250))},ED=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},AD={onMouseenter:(t,e)=>vD(e),onMouseleave:(t,e)=>ED(e),onFocus:(t,e)=>vD(e),onBlur:(t,e)=>ED(e),onMouseover:(t,e)=>P0(e),onFocusin:(t,e)=>P0(e)};var CD={display:"flex",theme:"dialog",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=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",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:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},TD={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)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},OD={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var RD={TooltipRoot:kD,TooltipTrigger:AD,Tooltip:CD,TooltipHidden:TD,TooltipParent:OD};var PD={openTooltip:SD,closeTooltip:xD};var I0=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),$0=t=>Je(t)?t.library!==void 0?t.library:t.key??t.name:t,c6=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=$0(i);if(!I0(a))return i;let c=s(a);return c?Je(i)?{...i,library:c}:c:null}).filter(Boolean)},M0=new WeakMap,l6={lazy:!0,window:globalThis},LD=["components","pages","functions","methods","snippets"],f6=LD.filter(t=>t!=="methods"),L0=t=>{if(!t||typeof t!="object")return!1;let e=new WeakSet,n=[t];for(;n.length;){let r=n.pop();if(!r||typeof r!="object"||e.has(r))continue;e.add(r);let o;try{o=Object.keys(r)}catch{continue}for(let s of o){let i;try{i=r[s]}catch{continue}if(typeof i=="function")return!0;i&&typeof i=="object"&&n.push(i)}}return!1},u6=(t,e)=>{if(Yr(e)||Yr(t))return"boot-revived";if(L0(t))return"local";if(e&&typeof e=="object"){if(L0(e.app))return"local";for(let n of f6)if(L0(e[n]))return"local"}return"raw-json"},DD=(t,e)=>{let n=e?t[e]:t;if(!E(n))return;let r=ie(n,{},l6);try{Object.assign(n,r)}catch(o){if(e)t[e]=r;else throw o}},d6=t=>{if(!E(t)||Yr(t))return t;for(let e of[...LD,"app"])DD(t,e);return us(t)},p6=(t,e)=>{if(!Array.isArray(t))return t;for(let n of t){let r=Je(n)?n.library:n;E(r)&&!e.has(r)&&d6(r)}return t},D0=t=>{let e=M0.get(t);e&&(M0.delete(t),qP(e))},N0=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(v(t)?t:"smblsapp");e.define=e.define||Pi,e.cssPropsRegistry=_t,e.window=BP(e);let s=u6(t,e);if(e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(m=>{let y=$0(m);return typeof y=="string"||I0(y)})){e.sharedLibraries=c6(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:m}=await Promise.resolve().then(()=>($(),Ls)),y=new Set(e.sharedLibraries.map(b=>$0(b)).filter(b=>E(b)&&!I0(b))),S=await m(e.sharedLibraries,{apiBaseUrl:jx()});e.sharedLibraries=s==="raw-json"?S:p6(S,y)}IP(e.sharedLibraries),JP(e)}lf(e,e.designSystem);let[i,a]=XP(o,e);e.designSystem=i,e.registry=a,e.cases||(e.cases={}),e.shorthand&&nf.prepareContext(e);let c=ZP(t,e);if(e.state=c,rc(c),e.pages=QP(t,e),e.components=VP(e),e.utils=UP(e),ur[e.packageManager]){let h=WP(e);h&&h.deferred?(h.blocking&&await Hx({...e,dependencies:h.blocking}),M0.set(e,h.deferred)):e.dependencies=await Hx(e)}if(e.methods=zP(e),e.routerOptions=_R(t,e),e.defaultExtends=[_p],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(m=>!m||typeof m!="object");e.plugins=e.plugins.filter(m=>m&&typeof m=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(m=>JSON.stringify(m)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}let l=e.globalScope;e.globalScope&&E(e.globalScope)&&(e.globalScope=Xr(e.globalScope));let f=(h,m)=>{s==="raw-json"&&DD(h,m)};f(t),f(e,"components"),f(e,"pages"),f(e,"functions"),f(e,"methods"),f(e,"snippets"),f(e,"app"),_c(e,l),wc(e);let u=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!u(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!u(e.db.__resolved)&&delete e.db.__resolved;let d=h=>e.plugins.some(m=>m&&m.name===h);if(e.polyglot&&!d("polyglot")){e.plugins.push(Di);for(let h in cf)typeof e.functions[h]!="function"&&(e.functions[h]=cf[h])}if(d("helmet")||e.plugins.push(ux),d("inertOutside")||e.plugins.push(gp),e.fetch&&!d("fetch")&&e.plugins.push(yy),e.fetch)for(let h in Nu)typeof e.functions[h]!="function"&&(e.functions[h]=Nu[h]);if(e.designSystem?.typography?.useCapsize!==!1&&!d("capsize")&&(e.plugins.push(Bp),e.cssPropsRegistry.useCapsize=gx),e.shorthand&&!d("shorthand")&&e.plugins.push(nf),e.analyze&&!d("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=Zp(h),e.plugins.push($i)}e.sync!==!1&&!d("sync")&&e.plugins.push(sD),e.inspect&&!d("inspect")&&e.plugins.push(Nx),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!d("notifications")&&e.plugins.push(iD);let g=(h,m,y)=>{if(e[h]!==!1){for(let S in m)E(e.components[S])||(e.components[S]=m[S]);for(let S in y)typeof e.functions[S]!="function"&&(e.functions[S]=y[S])}};return g("windows",w0,tr),g("dropdown",A0,T0),g("tooltip",RD,PD),e},Sf=async(t,e)=>{E(e)||(e={}),En(t)?(t={},e.parent=t):v(t)?(t={},e.key=t):E(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll('style[data-emotion="smbls"], style[data-brender]')))}if(await N0(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&&E(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=KR(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await KP({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 D0(e),t;let i=e.parent||s.body;if(r){let l=(h6(e,n)?g6(ee,t,i,e,n,o):null)||m6(ee,t,i,e,n,o);return D0(e),l}let a=ee(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return D0(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},h6=(t,e)=>!e||!E(e.__BR_REGISTRY__)||t.hydrate===!1?!1:t.hydrate===!0||e.__BRENDER_HYDRATE__===!0,g6=(t,e,n,r,o,s)=>{let i=f=>{for(let u=f;u&&u!==n;u=u.parentNode)if(u.parentNode===n&&u.localName==="svg"&&u.id)return!0;return!1},a={};for(let f of n.querySelectorAll("[data-br]")){if(i(f)){f.removeAttribute("data-br");continue}a[f.getAttribute("data-br")]=f}let c={registry:o.__BR_REGISTRY__,nodes:a,claimed:new Set,adopted:0,misses:0};r.__hydration=c;let l;try{l=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions})}catch(f){console.error("[smbls] hydration failed, rendering fresh:",f),delete r.__hydration;for(let u of c.claimed)u.parentNode&&u.remove();return null}finally{delete r.__hydration}for(let f in a){let u=a[f];!c.claimed.has(u)&&u.parentNode&&u.remove()}return s&&s.forEach(f=>{f.parentNode&&f.remove()}),o.__BRENDER_HYDRATION__={adopted:c.adopted,misses:c.misses},ID(o),l},m6=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.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,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return ID(o),c},ID=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__,delete t.__BRENDER_HYDRATE__)};var F0=(t,e)=>at(t,E(e)?e:{}),y6=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 n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},b6=()=>{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}},$D=t=>{let e=b6();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},j0=(t,e=Pr,n)=>{let r={...Pr,...F0(e,n)};return $D(r),y6(r),Sf(t,r).then(s=>{if(QS(s,r),s.destroy=()=>Wl(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hl(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),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})},_6=(t,e=Pr,n)=>{let r=j0(t,e,n),o={...Pr,...F0(e,n)},s=o.key;return vR(r,s,{utils:zl,...o}),r},w6=async(t,e=Pr,n)=>{let r={...Pr,...F0(e,n)};$D(r);let o=e.key;await kR(o,r);let s=await Sf(t,r);return QS(s,r),s.destroy=()=>Wl(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Hl(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},S6=(t={},e=Pr,n)=>j0({deps:{isUndefined:Ft},...t},at({domqlOptions:{onlyResolveExtends:!0}},e),n);var U0={};F(U0,{BUILD_DOMQL_SYSTEM_PROMPT:()=>KD,DEFAULT_MAX_TOKENS:()=>Gh,DEFAULT_MODEL:()=>Nr,DEFAULT_PROVIDER:()=>vf,DEFAULT_TEMPERATURE:()=>Kh,MODEL_TIER_ALIASES:()=>V0,PROVIDER_MODELS:()=>kf,SIMONE_BASE_URL:()=>xf,SIMONE_CHAT_PATH:()=>zh,SIMONE_CODE_PATH:()=>Hh,SIMONE_CODE_SYMBOLS_PATH:()=>Wh,SIMONE_HEALTH_PATH:()=>qh,SIMONE_TOOLS_PATH:()=>MD,WORKSPACE_SYSTEM_PROMPT:()=>qD,buildMessages:()=>VD,chat:()=>Ef,health:()=>BD,parseSimoneResponse:()=>HD,resolveModel:()=>GD,streamChat:()=>Ef,streamCode:()=>FD,streamCodeSymbols:()=>jD,toLegacyEnvelope:()=>WD});var xf="https://symbols-service-production.up.railway.app",zh="/api/chat",Hh="/api/code",Wh="/api/code-symbols",qh="/api/health",MD="/api/tools",kf={"openai-compatible":["claude-sonnet-4-6","claude-opus-4-6","gpt-4o","gpt-4o-mini","deepseek-chat"],anthropic:["claude-sonnet-4-6","claude-sonnet-4-5-20250929","claude-opus-4-1-20250805","claude-haiku-4-5-20251001"],openrouter:["google/gemini-3-pro-preview"],gemini:["gemini-2.5-pro","gemini-3.1-pro-preview"]},vf="gemini",Nr=kf[vf][0],Kh=.7,Gh=4096;function x6(t){if(!t)return null;for(let[e,n]of Object.entries(kf))if(n.includes(t))return e;return null}function ND(t,e){return t?t.replace(/\/$/,"")+e:e}function k6(t){if(!t.startsWith("data: "))return null;let e=t.slice(6);if(e==="[DONE]")return{done:!0};try{return{chunk:JSON.parse(e)}}catch{return{raw:e}}}async function Ef(t,e={},n){let{baseUrl:r=xf,path:o=zh,model:s=Nr,provider:i=x6(s)||vf,temperature:a=Kh,maxTokens:c=Gh,effort:l,apiKeys:f,signal:u,headers:d}=e;if(!Array.isArray(t)||t.length===0)throw new TypeError("simone: messages must be a non-empty array");let p={messages:t,provider:i,model:s,temperature:a,maxTokens:c};l&&(p.effort=l),f&&(p.apiKeys=f);let g=await fetch(ND(r,o),{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...d},body:JSON.stringify(p),signal:u});if(!g.ok){let x=g.statusText;try{let w=await g.text();try{let k=JSON.parse(w);x=k.error||k.detail||x}catch{x=w||x}}catch{}let _=new Error(`simone: HTTP ${g.status} \u2014 ${x}`);throw _.status=g.status,_}if(!g.body||typeof g.body.getReader!="function"){let x=await g.text();return n&&n(x),{text:x,errors:[]}}let h=g.body.getReader(),m=new TextDecoder,y=[],S=[],b="";try{for(;;){let{done:x,value:_}=await h.read();if(x)break;b+=m.decode(_,{stream:!0});let w=b.indexOf(`
167
+ `);for(;w!==-1;){let k=b.slice(0,w).trim();if(b=b.slice(w+1),k){let A=k6(k);if(A?.done)return{text:y.join(""),errors:S};let T=A?.chunk;T?.delta&&(y.push(T.delta),n&&n(T.delta)),T?.error&&S.push(T.error)}w=b.indexOf(`
168
+ `)}}return{text:y.join(""),errors:S}}finally{h.cancel().catch(()=>{})}}function FD(t,e={},n){return Ef(t,{...e,path:Hh},n)}function jD(t,e={},n){return Ef(t,{...e,path:Wh},n)}async function BD(t={}){let{baseUrl:e=xf,signal:n,headers:r}=t,o=await fetch(ND(e,qh),{method:"GET",headers:r,signal:n});if(!o.ok)throw new Error(`simone health: HTTP ${o.status}`);return o.json()}function VD({system:t,history:e=[],user:n,context:r}){let o=[];t&&o.push({role:"system",content:t});for(let s of e)!s||!s.role||typeof s.content!="string"||!s.content||o.push({role:s.role,content:s.content});if(n){let s=n;if(r!=null){let i=typeof r=="string"?r:JSON.stringify(r,null,2);s=`${s}
169
169
 
170
170
  ---
171
171
  Context:
172
172
  \`\`\`json
173
173
  ${i}
174
- \`\`\``}o.push({role:"user",content:s})}return o}var BD=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,w6=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function S6(t){let e=[];for(let n of t.matchAll(BD))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function x6(t){return t.replace(BD,"").trim()}function F0(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function jD(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&w6.has(t.type)}function VD(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=S6(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=x6(e);for(let i of o){let a=F0(i.code);if(jD(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=F0("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=F0(e);if(jD(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function UD(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var zD=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),HD=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
175
- `),j0={Starter:Nr,Free:Nr,Pro:"claude-opus-4-6"};function WD(t){return t?j0[t]||t:Nr}Op(ul);CP(void 0,{smbls:V0,"@symbo-ls/simone-server":B0});TP(void 0,{"@symbo.ls/windows":()=>({..._0,...y0}),"@symbo.ls/dropdown":()=>({...E0,...C0})});
174
+ \`\`\``}o.push({role:"user",content:s})}return o}var zD=/```(?<lang>[a-zA-Z0-9_+-]*)\n(?<code>[\s\S]*?)```/g,v6=new Set(["component","components","page","pages","function","method","state","theme","color","font","icon"]);function E6(t){let e=[];for(let n of t.matchAll(zD))e.push({lang:(n.groups?.lang||"").toLowerCase(),code:n.groups?.code??""});return e}function A6(t){return t.replace(zD,"").trim()}function B0(t){if(!t||!/[{[]/.test(t))return null;try{return JSON.parse(t)}catch{}try{return JSON.parse(t.replace(/,\s*([}\]])/g,"$1"))}catch{}return null}function UD(t){return!!t&&typeof t=="object"&&typeof t.type=="string"&&v6.has(t.type)}function HD(t){let e=(typeof t=="string"?t:"").trim();if(!e)return{kind:"text",text:"",message:""};let n=E6(e),r=n.filter(i=>/^(js|javascript|ts|typescript|jsx|tsx)$/.test(i.lang)),o=n.filter(i=>i.lang==="json"),s=A6(e);for(let i of o){let a=B0(i.code);if(UD(a))return{kind:"asset",text:s||a.description||"",asset:a,message:a.description||s||`Generated ${a.type}: ${a.title||a.key||""}`.trim()}}if(r.length>0){let i=r[0].code,a=B0("["+i+"]");return Array.isArray(a)&&a.length>1?{kind:"multi",text:s,assets:a,code:i,message:s||`Generated ${a.length} items`}:{kind:"component",text:s,code:i,message:s||"Generated a component"}}if(e.startsWith("{")){let i=B0(e);if(UD(i))return{kind:"asset",text:i.description||"",asset:i,message:i.description||`Generated ${i.type}: ${i.title||i.key||""}`.trim()}}return{kind:"text",text:e,message:e}}function WD(t){if(!t)return{code_response:{type:"error",content:"Empty response from assistant"}};switch(t.kind){case"asset":return{code_response:{type:"json_response",data:t.asset}};case"multi":return{code_response:{type:"symbols_component_code",component_code:t.code}};case"component":return{code_response:{type:"symbols_component_code",component_code:t.code,analysis_text:t.text}};default:return{code_response:{type:"plain_text_response",content:t.text||t.message||""}}}}var qD=["You are Simone, the Symbols.app assistant.","You help users build DOMQL v3 components, pages, and design-system entries.",'When the user asks for a component or page, return a single ```json fenced block whose body is one asset object with shape { type, key, title, description, value }. type is one of "component", "page", "function", "state", "color", "font", "icon", "theme".',"For multiple assets, return one ```js fenced block with comma-separated asset objects.","For general questions, reply with prose only."].join(" "),KD=["You are a DOMQL v3.14 code generator for the Symbols workspace.","Output EXECUTABLE DOMQL v3.14 for the requested page(s)/component(s) \u2014 never a description, never a plan, never an explanation.","Author data-first object schemas: child elements are UPPERCASE keys; styling lives in flat element props (NO attr/props/on wrappers); use design-system tokens (color/typography/spacing keys), never raw px/rem/hex/rgba; `extends` and `childExtends` are quoted strings; event handlers are flat (onClick, onInit) \u2014 never on:{} or props:{} wrappers.","OUTPUT FORMAT \u2014 pick ONE:","- SINGLE page/component: emit exactly one ```js fenced code block whose body is a single DOMQL object literal (an expression \u2014 start with `{`, no `export`, no variable assignment, no surrounding prose).",'- MULTIPLE pages/components: emit exactly one ```json fenced code block whose body is an object of the shape { "pages": { "PageKey": "<DOMQL object-literal source string>" }, "components": { "CompKey": "<DOMQL object-literal source string>" } }. Include only the sections you produce; each value is the DOMQL source for that key.',"Keys are PascalCase. Default to a single page unless the request clearly needs several distinct pages/components.","Emit ONLY the single fenced block. No text before or after it."].join(`
175
+ `),V0={Starter:Nr,Free:Nr,Pro:"claude-opus-4-6"};function GD(t){return t?V0[t]||t:Nr}Rp(dl);RP(void 0,{smbls:z0,"@symbo-ls/simone-server":U0});PP(void 0,{"@symbo.ls/windows":()=>({...S0,..._0}),"@symbo.ls/dropdown":()=>({...C0,...O0})});