smbls 3.14.306 → 3.14.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- "use strict";var SymbolsEmbed=(()=>{var zt=Object.defineProperty;var Es=Object.getOwnPropertyDescriptor;var Ts=Object.getOwnPropertyNames;var $s=Object.prototype.hasOwnProperty;var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var je=(e,t)=>{for(var n in t)zt(e,n,{get:t[n],enumerable:!0})},Ps=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ts(t))!$s.call(e,o)&&o!==n&&zt(e,o,{get:()=>t[o],enumerable:!(r=Es(t,o))||r.enumerable});return e};var Rs=e=>Ps(zt({},"__esModule",{value:!0}),e);var ie,Ee,an=w(()=>{"use strict";ie=globalThis,Ee=ie.document});var St,ln=w(()=>{"use strict";an();St=e=>typeof ie<"u"&&(ie.Node&&e instanceof ie.Node||ie.Window&&e instanceof ie.Window||e===ie||e===document)});var R,S,wt,C,P,be,tr,Qe=w(()=>{"use strict";R=e=>e===null?!1:typeof e=="object"&&e.constructor===Object,S=e=>typeof e=="string",wt=e=>typeof e=="number",C=e=>typeof e=="function",P=e=>Array.isArray(e),be=e=>e===null?!1:typeof e=="object",tr=e=>e===void 0});var nr,fn=w(()=>{"use strict";vt();nr=(e,t=[])=>e.reduce((n,r)=>un(n,Ne(r,{exclude:t}),t),{})});function Ct(e,t,n={}){let{bracketsLength:r=2}=n,o=r===3?"{{{":"{{";if(!e.includes(o))return e;let s=Fs[r],i=t||this.state||{},a=this;return e.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let h=a?.context,d=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||a?.[u];if(d&&typeof d=="function")try{return String(d.call(a,p)??"")}catch{return""}return""}if(f){let h=(f.match(/\.\.\//g)||[]).length,d=i;for(let b=0;b<h;b++){if(!d||!d.parent)return"";d=d.parent}if(p==="parent")return String(d.value??"");let g=Je(d,p);return String(g??"")}else{let h=Je(i,p);if(h!=null)return String(h);let d=a?.context?.polyglot;if(d?.translations){let g=i?.root?.lang||i?.lang||a?.context?.state?.lang||d.defaultLang||"en",b=d.translations[g];if(b){let m=Je(b,p);if(m!=null&&typeof m!="object")return String(m);for(let x in b){let _=b[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let v=Je(_,p);if(v!=null&&typeof v!="object")return String(v)}}}let y=Je(d.translations,p);if(y!=null&&typeof y!="object")return String(y)}return""}})}var Fs,Je,rr=w(()=>{"use strict";Fs={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Je=(e,t)=>t.split(".").reduce((n,r)=>n?.[r],e)});var Ls,Vs,Bs,or,pn=w(()=>{"use strict";Ls=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"]),Vs=new Set(["update","__element"]),Bs=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"]),or=new Set(["node","context","extends","__element","__ref",...Bs,...Ls,...Vs])});var sr,Me,un,ir,Ne,vt=w(()=>{"use strict";Qe();fn();ln();pn();sr=e=>e.charCodeAt(0)===95&&e.charCodeAt(1)===95,Me=(e,t,n,r)=>{if(C(e))return t?typeof e.call!="function"?e:e.call(t,t,n||t.state,r||t.context):void 0;if(e!=null&&t?.context?.plugins&&(P(e)||R(e)&&!St(e))){let o=t.context.plugins;for(let s of o)if(s.resolveHandler){let i=s.resolveHandler(e,t);if(typeof i=="function")return Me(i,t,n,r)}}return e},un=(e,t,n=or)=>ir(e,t,n,null),ir=(e,t,n,r)=>{if(e===t)return e;if(r){for(let s=0;s<r.length;s+=2)if(r[s]===e&&r[s+1]===t)return e}let o=n instanceof Set;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||sr(s)||s==="constructor"||s==="prototype"||(o?n.has(s):n.includes(s)))continue;let i=e[s],a=t[s];if(be(i)&&be(a)){let c=r||[];c.push(e,t),ir(i,a,n,c),c.length-=2}else i===void 0&&(e[s]=a)}return e},Ne=(e,t={})=>{let{exclude:n=[],cleanUndefined:r=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=t;if(!be(e)||St(e))return e;if(s.has(e))return s.get(e);let a=n instanceof Set?n:n.length>3?new Set(n):null,c=u=>a?a.has(u):n.includes(u),f=P(e)?[]:{};s.set(e,f);let l=[[e,f]];for(;l.length;){let[u,p]=l.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||sr(h)||h==="__proto__"||c(h))continue;let d=u[h];if(!(r&&d===void 0)&&!(o&&d===null)){if(St(d)){p[h]=d;continue}if(i&&h==="extends"&&P(d)){p[h]=nr(d,n);continue}if(C(d)){p[h]=d;continue}if(be(d))if(s.has(d))p[h]=s.get(d);else{let g=P(d)?[]:{};s.set(d,g),p[h]=g,l.push([d,g])}else p[h]=d}}}return f}});var cr=w(()=>{"use strict"});var ar,Us,dn,lr=w(()=>{"use strict";ar="production",Us=(e=ar)=>e==="production",dn=(e=ar)=>!Us(e)});var Fe,kt=w(()=>{"use strict";Fe=(e,t,...n)=>{let r=t?.context?.plugins;if(!r)return!1;let o=!1;for(let s of r)typeof s[e]=="function"&&(s[e](t,...n),o=!0);return o}});var fr=w(()=>{"use strict"});var ur=w(()=>{"use strict"});var La,pr=w(()=>{"use strict";La=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent)});var dr=w(()=>{"use strict"});var hr=w(()=>{"use strict"});var gr=w(()=>{"use strict"});var mr=w(()=>{"use strict"});var yr=w(()=>{"use strict"});var br=w(()=>{"use strict"});var xr=w(()=>{"use strict"});var _r=w(()=>{"use strict"});var Sr,hn=w(()=>{"use strict";Sr={}});var Cr={};je(Cr,{setup:()=>Ws,supabaseAdapter:()=>vr});var wr,Gs,Ws,gn,zs,vr,kr=w(()=>{"use strict";wr=new Map,Gs=(e,t,n)=>`${e}|${t}|${n?"off":"on"}`,Ws=async({url:e,key:t,projectId:n,createClient:r,auth:o,retry:s,adapter:i,...a})=>{let c=e||n&&`https://${n}.supabase.co`;if(!c||!t)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");r||(r=(await import("@supabase/supabase-js")).createClient),o===!1&&(a.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let f=Gs(c,t,o===!1),l=wr.get(f);return l||(l=await r(c,t,a),l?.auth&&wr.set(f,l)),!l||!l.auth?null:vr(l)},gn=(e,t)=>{if(!t)return e;for(let n in t){let r=t[n];if(r===null)e=e.is(n,null);else if(Array.isArray(r))e=e.in(n,r);else if(typeof r=="object")for(let o in r)o==="gt"?e=e.gt(n,r[o]):o==="gte"?e=e.gte(n,r[o]):o==="lt"?e=e.lt(n,r[o]):o==="lte"?e=e.lte(n,r[o]):o==="neq"?e=e.neq(n,r[o]):o==="like"?e=e.like(n,r[o]):o==="ilike"?e=e.ilike(n,r[o]):o==="in"?e=e.in(n,r[o]):o==="is"?e=e.is(n,r[o]):o==="contains"?e=e.contains(n,r[o]):o==="containedBy"?e=e.containedBy(n,r[o]):o==="textSearch"&&(e=e.textSearch(n,r[o]));else e=e.eq(n,r)}return e},zs=(e,{limit:t,offset:n,order:r,single:o}={})=>{if(r)if(Array.isArray(r))for(let s of r){let i=typeof s=="string"?s:s.by;e=e.order(i,{ascending:s.asc!==!1})}else{let s=typeof r=="string"?r:r.by;e=e.order(s,{ascending:r.asc!==!1})}return t&&(e=e.limit(t)),n&&(e=e.range(n,n+(t||20)-1)),o&&(e=e.single()),e},vr=e=>({name:"supabase",client:e,getSession:async()=>{let{data:t}=await e.auth.getSession();return t?.session||null},getUser:async()=>{let{data:t}=await e.auth.getUser();return t?.user||null},signIn:t=>t.provider?e.auth.signInWithOAuth({provider:t.provider}):t.token?e.auth.signInWithIdToken(t):e.auth.signInWithPassword(t),signUp:t=>e.auth.signUp(t),signOut:()=>e.auth.signOut(),onAuthStateChange:t=>{let{data:{subscription:n}}=e.auth.onAuthStateChange((r,o)=>t(r,o));return()=>n.unsubscribe()},select:async({from:t,schema:n,select:r,params:o,headers:s,...i})=>{let c=(n?e.schema(n):e).from(t).select(r||"*");if(c=gn(c,o),c=zs(c,i),s)try{for(let f in s)c.setHeader?c=c.setHeader(f,s[f]):e.rest&&(e.rest.headers[f]=s[f])}catch(f){console.warn("[supabase] setHeader failed:",f.message)}return c},rpc:({from:t,params:n})=>e.rpc(t,n),insert:({from:t,schema:n,data:r,select:o})=>(n?e.schema(n):e).from(t).insert(r).select(o||"*"),update:({from:t,schema:n,data:r,params:o,select:s})=>{let a=(n?e.schema(n):e).from(t).update(r);return a=gn(a,o),a.select(s||"*")},upsert:({from:t,schema:n,data:r,select:o})=>(n?e.schema(n):e).from(t).upsert(r).select(o||"*"),delete:({from:t,params:n})=>{let r=e.from(t).delete();return r=gn(r,n),r},subscribe:({from:t,params:n,on:r},o)=>{let s=r||"*",i=e.channel(`db-${t}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:t,...n?.id?{filter:`id=eq.${n.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>e.removeChannel(i)},upload:({bucket:t,path:n,file:r,options:o})=>e.storage.from(t).upload(n,r,o),download:({bucket:t,path:n})=>e.storage.from(t).download(n),getPublicUrl:({bucket:t,path:n})=>e.storage.from(t).getPublicUrl(n)})});var Or={};je(Or,{restAdapter:()=>Ar,setup:()=>qs});var Hs,xe,qs,Ar,Er=w(()=>{"use strict";Hs=(e,t,n)=>{let r=t&&!t.startsWith("/")?"/":"",o=new URL(`${e}${r}${t}`);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()},xe=async(e,t)=>{let n=await globalThis.fetch(e,t),r=n.headers.get("content-type"),o=r&&r.includes("json")?await n.json():await n.text();return{data:o,error:n.ok?null:o?.message||o?.error||n.statusText,status:n.status}},qs=async({url:e,headers:t,auth:n,fetchOptions:r})=>{if(!e)throw new Error("@symbo.ls/fetch rest: url is required");return Ar(e,t,n,r)},Ar=(e,t={},n,r={})=>{let o=n?.token||null,s=l=>{let u={...t,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...r,...l}),c=(l,u)=>{let p=u||e;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let h=l&&!l.startsWith("/")?"/":"";return`${p}${h}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!n?.sessionUrl)return o?{token:o}:null;let l=await xe(c(n.sessionUrl,n.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!n?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await xe(c(n.signInUrl,n.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(n?.signOutUrl&&await xe(c(n.signOutUrl,n.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:h,offset:d,order:g,single:b,headers:y,baseUrl:m})=>{let x={...u};return p&&(x.select=p),h&&(x.limit=h),d&&(x.offset=d),b&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),xe(Hs(m||e,l||"",x),a({headers:s(y)}))},rpc:({from:l,params:u,headers:p,baseUrl:h})=>xe(c(`rpc/${l}`,h),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:h})=>xe(c(l,h),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:h,headers:d,baseUrl:g})=>{let b=p?.id||u?.id,y=b?`${l}/${b}`:l;return xe(c(y,g),a({method:h||"PATCH",headers:i(d),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:h})=>{let d=u?.id,g=d?`${l}/${d}`:l;return xe(c(g,h),a({method:"DELETE",headers:s(p)}))}}}});var $r={};je($r,{localAdapter:()=>Tr,setup:()=>Qs});var mn,Ks,Qs,Tr,Pr=w(()=>{"use strict";mn=(e,t)=>{if(!t)return!0;for(let n in t){let r=t[n];if(r===null){if(e[n]!==null&&e[n]!==void 0)return!1}else if(Array.isArray(r)){if(!r.includes(e[n]))return!1}else if(typeof r=="object"){for(let o in r)if(o==="gt"&&!(e[n]>r[o])||o==="gte"&&!(e[n]>=r[o])||o==="lt"&&!(e[n]<r[o])||o==="lte"&&!(e[n]<=r[o])||o==="neq"&&e[n]===r[o]||o==="like"&&!String(e[n]).includes(r[o]))return!1}else if(e[n]!==r)return!1}return!0},Ks=(e,{order:t,limit:n,offset:r,single:o})=>{let s=[...e];if(t){let i=typeof t=="string"?t:t.by,a=t.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[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}},Qs=async({data:e,...t})=>Tr(e,t),Tr=(e={},t={})=>{let n={},r={},o=t.persist!==!1&&typeof localStorage<"u",s=t.prefix||"smbls_db_",i=l=>{if(!n[l])if(o)try{let u=localStorage.getItem(s+l);n[l]=u?JSON.parse(u):e[l]||[]}catch{n[l]=e[l]||[]}else n[l]=e[l]||[];return n[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(n[l]))}catch{}},c=(l,u,p,h)=>{let d=r[l];if(d)for(let g of d)g(p,h,{event:u,table:l})},f=Date.now();return{name:"local",store:n,select:async({from:l,params:u,...p})=>{let d=i(l).filter(g=>mn(g,u));return Ks(d,p)},insert:async({from:l,data:u})=>{let p=i(l),d=(Array.isArray(u)?u:[u]).map(g=>{let b={id:g.id||++f,...g};return p.push(b),b});a(l);for(let g of d)c(l,"INSERT",g,null);return{data:Array.isArray(u)?d:d[0],error:null}},update:async({from:l,data:u,params:p})=>{let h=i(l),d=[];for(let g=0;g<h.length;g++)if(mn(h[g],p)){let b={...h[g]};Object.assign(h[g],u),d.push(h[g]),c(l,"UPDATE",h[g],b)}return a(l),{data:d,error:null}},delete:async({from:l,params:u})=>{let p=i(l),h=[];for(let d=p.length-1;d>=0;d--)mn(p[d],u)&&(h.push(p[d]),p.splice(d,1),c(l,"DELETE",null,h[h.length-1]));return a(l),{data:h,error:null}},subscribe:({from:l,on:u},p)=>{r[l]||(r[l]=[]);let h=(d,g,b)=>{u&&u!=="*"&&u!==b.event||p(d,g,b)};return r[l].push(h),()=>{let d=r[l].indexOf(h);d>-1&&r[l].splice(d,1)}}}}});var st={};je(st,{createAdapter:()=>ti,default:()=>pi,executeFetch:()=>Sn,fetchPlugin:()=>ui,initAdapterAuth:()=>$t,parseDuration:()=>et,queryClient:()=>fi,registerAdapter:()=>ei,resolveDb:()=>Dr});var Js,Xs,At,Ze,Ot,Ye,Zs,Ys,ei,ti,Dr,et,K,Nr,Xe,ni,ot,tt,nt,Et,xn,Tt,ri,Rr,yn,Mr,Fr,Le,Ir,oi,jr,si,Pt,Lr,$t,_n,ee,ce,rt,Te,ue,_e,ii,ci,ai,bn,li,Sn,fi,ui,pi,it=w(()=>{"use strict";D();Js=["select","rpc","insert","update","delete","subscribe"],Xs={supabase:()=>Promise.resolve().then(()=>(kr(),Cr)),rest:()=>Promise.resolve().then(()=>(Er(),Or)),local:()=>Promise.resolve().then(()=>(Pr(),$r))},At=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Ze=(()=>{if(typeof globalThis<"u"&&globalThis[At])return globalThis[At];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,At,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[At]}catch{}return e})(),Ot=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Ye=(()=>{if(typeof globalThis<"u"&&globalThis[Ot])return globalThis[Ot];let e={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ot,{value:e,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ot]}catch{}return e})(),Zs=5e3,Ys=e=>new Promise(t=>{if(Ze[e])return t(Ze[e]);let n=Ye[e]||(Ye[e]=[]),r=!1,o=()=>{r||(r=!0,t(Ze[e]||null))};n.push(o),setTimeout(o,Zs)}),ei=(e,t)=>{Ze[e]=t;let n=Ye[e];if(n&&n.length){Ye[e]=[];for(let r of n)r()}},ti=e=>{let t={};for(let n of Js)e[n]&&(t[n]=e[n]);return t.name=e.name||"custom",t},Dr=async e=>{if(!e)return null;if(typeof e.select=="function")return e;let{adapter:t,...n}=e,r=typeof t=="string"?t:typeof e=="string"?e:null;if(!r)return null;let o=Ze[r]||Xs[r];if(!o&&(o=await Ys(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)},et=e=>{if(!e)return 0;if(typeof e=="number")return e;let t=e.match(/^(\d+)(ms|s|m|h)$/);if(!t)return 0;let n=parseInt(t[1]),r=t[2];return r==="ms"?n:r==="s"?n*1e3:r==="m"?n*6e4:r==="h"?n*36e5:0},K=new Map,Nr=new Map,Xe=new Map,ni=(e,t)=>{if(e.cache?.key)return e.cache.key;let n=si(e.params),r=`${e.from}:${e.method}:${JSON.stringify(n||"")}`;return t?`${r}:${t}`:r},ot=e=>K.get(e)||null,tt=(e,t,n)=>{let r=K.get(e),o={data:t,error:n,time:Date.now(),stale:!1};K.set(e,o);let s=Nr.get(e);if(s)for(let i of s)C(i)&&i(o);return o},nt=e=>{if(e){let t=K.get(e);t&&(t.stale=!0);return}for(let[,t]of K)t.stale=!0},Et=e=>{if(e){K.delete(e);return}K.clear()},xn=e=>!e&&e!==!1?{staleTime:6e4,gcTime:3e5}:e===!1?null:e===!0?{staleTime:6e4,gcTime:3e5}:typeof e=="number"?{staleTime:e,gcTime:Math.max(e*5,3e5)}:S(e)?{staleTime:et(e),gcTime:3e5}:{staleTime:et(e.stale||e.staleTime)||6e4,gcTime:et(e.gc||e.gcTime||e.expire)||3e5,key:e.key},Tt=null,ri=()=>{Tt||(Tt=setInterval(()=>{let e=Date.now();for(let[t,n]of K){let r=Nr.get(t);!(r&&r.size>0)&&e-n.time>(n.gcTime||3e5)&&K.delete(t)}},3e4),Tt.unref&&Tt.unref())};ri();Rr=3,yn=e=>Math.min(1e3*2**e,3e4),Mr=e=>{let t=e.retry;return t===!1?{count:0}:t===!0||t===void 0?{count:Rr,delay:yn}:typeof t=="number"?{count:t,delay:yn}:{count:t.count??Rr,delay:C(t.delay)?t.delay:typeof t.delay=="number"?()=>t.delay:yn}},Fr=async(e,t)=>{let{count:n,delay:r}=t,o;for(let s=0;s<=n;s++)try{let i=await e();if(i?.error){if(o=i.error,s<n){let a=C(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=C(r)?r(s,i):r;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},Le={focus:new Set,online:new Set},Ir=!1,oi=()=>{if(Ir||typeof window>"u")return;Ir=!0;let e=()=>{for(let n of Le.focus)n()},t=()=>{for(let n of Le.online)n()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&e()}),window.addEventListener("focus",e),window.addEventListener("online",t)},jr=(e,t)=>{let n=t.__ref;if(e===!0)return{from:n.__state||t.key,method:"select",query:!0,on:"create"};if(S(e))return{from:e,method:"select",query:!0,on:"create"};if(R(e)){let r={...e};return r.from=r.from||n.__state||t.key,r.method=r.method||"select",r.on=r.on||"create",r.query===void 0&&(r.query=!0),r}return null},si=e=>(!e||C(e),e),Pt=(e,t)=>{let n=e?.state?.root||t?.state?.root;if(n?.lang)return n.lang},Lr=(e,t,n)=>{let r;if(!e)r=void 0;else if(C(e))r=e(t,t.state);else{r={};for(let o in e){let s=e[o];r[o]=C(s)?s(t,t.state):s}}return r},$t=async(e,t)=>{if(!e||e.__authInitialized||(e.__authInitialized=!0,!e.getSession))return;let n=(r,o)=>{let s=t.state?.root;s?.update&&s.update({auth:{user:r,session:o,loading:!1}})};try{let r=await e.getSession();n(r?.user||null,r)}catch(r){console.warn("[fetch] Failed to restore auth session:",r.message)}e.onAuthStateChange&&e.onAuthStateChange((r,o)=>{n(o?.user||null,o)})},_n=async(e,t)=>{if(C(e.select))return e.auth!==!1&&await $t(e,t),e;if(e.__resolved)return e.auth!==!1&&await $t(e.__resolved,t),e.__resolved;if(e.__resolving)return e.__resolving;e.__resolving=Dr(e);let n=await e.__resolving;return delete e.__resolving,n?(n.auth=e.auth,n.url=e.url,n.key=e.key,e.__resolved=n,t.fetch=n,e.auth!==!1&&await $t(n,t),n):null},ee=(e,t,...n)=>{let r=C(e[t])?e[t]:null;r&&r.call(e,...n,e,e.state,e.context)},ce=(e,t,n,...r)=>{let o=e&&C(e[n])?e[n]:null;o&&o.call(t,...r,t,t.state,t.context)},rt=e=>{let t={},n=e.node;if(!n)return t;if(n.tagName==="FORM"){let o=new FormData(n);for(let[s,i]of o.entries())t[s]=i;return t}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"?t[i]=s.checked:s.type==="file"?t[i]=s.files:t[i]=s.value)}return t},Te=(e,t,n,r={})=>{let o=n&&n.startsWith("~/"),s=o&&e.state?.root||e.state;if(s?.update)if(o){let i=n.slice(2);t&&typeof t=="object"&&!Array.isArray(t)&&i in t?s.update(t,{preventFetch:!0,...r}):s.update({[i]:t},{preventFetch:!0,...r})}else{let i=n?{[n]:t}:t;s.update(i,{preventFetch:!0,...r})}},ue=(e,t)=>{let n=e?.__ref;n&&(n.__fetchStatus=t,n.__fetching=t.isFetching,n.__fetchError=t.error)},_e=async(e,t,n,r={})=>{let o=n?.fetch;if(!o||!t||!t.__ref||e.enabled===!1||C(e.enabled)&&!e.enabled(t,t.state)||e.skip===!0||C(e.skip)&&e.skip(t,t.state))return;let s=await _n(o,n);if(!s||!t.__ref)return;let i=t.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:h,auth:d,fields:g,as:b,limit:y,offset:m,order:x,headers:_,baseUrl:v,page:E,cursor:H,getNextPageParam:B,getPreviousPageParam:V,infinite:N,placeholderData:L,initialData:Ie,select:le,keepPreviousData:he}=e,re=S(le)?le:void 0;if(f&&C(t.getQuery)){let $=t.getQuery(s.name||"paths");$&&(re=$.select||$.length&&$.join(",")||re)}let fe=Lr(l,t,n),oe=xn(u),gt=Mr(e),Ut=Pt(t,n),As=Ut?`:${Ut}`:"",M=oe?u?.key||`${a}:${c}:${JSON.stringify(fe||"")}${N?":infinite":""}${E?":p"+JSON.stringify(E):""}${As}`:null;if(!i.__fetchInitialized&&M&&(i.__fetchInitialized=!0,Ie!==void 0)){let $=C(Ie)?Ie():Ie;tt(M,$,null)}if((c==="select"||c==="rpc")&&M&&oe){let $=ot(M);if($&&!$.error){let T=Date.now()-$.time,I=$.stale||T>(oe.staleTime||0),A=$.data;if(C(le)&&(A=le(A,t,t.state)),p&&(A=p(A,t,t.state)),Te(t,A,b),!I){ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(L!==void 0){let T=C(L)?L(t,t.state):L;T!==void 0&&Te(t,T,b)}}if(M&&Xe.has(M)&&!r.force){let $=Xe.get(M);try{let T=await Promise.race([$,new Promise((I,A)=>setTimeout(()=>A("DEDUP_TIMEOUT"),15e3))]);if(T?.data!==void 0){let I=T.data;C(le)&&(I=le(I,t,t.state)),p&&(I=p(I,t,t.state)),Te(t,I,b),ee(t,"onFetchComplete",I),ce(e,t,"onFetchComplete",I)}}catch{}return}let Os=!ot(M)?.data;ue(t,{isFetching:!0,isLoading:Os,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ee(t,"onFetchStart"),ce(e,t,"onFetchStart");let ge=n?.analyze?.emitNetwork,Gt=ge?typeof performance<"u"?performance.now():Date.now():0;ge&&ge({phase:"start",mode:"query",from:a,method:c,cacheKey:M,lang:Ut});let Xn=Fr(async()=>{if(d!==!1&&s.auth!==!1&&s.getSession){let A=await s.getSession();if(d===!0&&!A){let q={message:"Not authenticated"};return ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:q,status:"error",fetchStatus:"idle"}),ee(t,"onFetchError",q),ce(e,t,"onFetchError",q),{data:null,error:q}}}let $=s[c];if(!C($))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let T={from:a,select:re,params:fe,single:h,limit:y,offset:m,order:x,headers:_,baseUrl:v},I=Pt(t,n);if(I&&(T.headers={...T.headers,"Accept-Language":I}),E!==void 0){if(R(E))E.offset!==void 0&&(T.offset=E.offset),E.limit!==void 0&&(T.limit=E.limit),E.cursor!==void 0&&(T.params={...T.params,cursor:E.cursor});else if(typeof E=="number"){let A=e.pageSize||y||20;T.offset=(E-1)*A,T.limit=A}}if(H!==void 0&&(T.params={...T.params,cursor:H}),c==="insert"||c==="update"||c==="upsert"){let A;if(g===!0||e.on==="submit")A=rt(t);else if(P(g)){let q=rt(t);A={};for(let Wt of g)A[Wt]=q[Wt]}else t.state?.parse?A=t.state.parse():R(t.state)&&(A={...t.state});p&&(A=p(A,t,t.state)),T.data=A}if(c==="rpc"){let A=fe;if(e.on==="submit"){let q=rt(t);A=e.transformParams?e.transformParams(q,t,t.state):q}T.params=A}if(c==="subscribe"){let A=s.subscribe({from:a,params:fe,on:e.subscribeOn},(q,Wt,oa)=>{Te(t,q,b),ee(t,"onFetchComplete",q),ce(e,t,"onFetchComplete",q)});return i.__unsubscribe=A,{data:null,error:null,subscribed:!0}}return $(T)},gt);M&&Xe.set(M,Xn);try{let $=await Xn;if($?.subscribed)return;let{data:T,error:I}=$||{};if(I){M&&tt(M,null,I),ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:I,status:"error",fetchStatus:"idle"}),ee(t,"onFetchError",I),ce(e,t,"onFetchError",I),ge&&ge({phase:"error",mode:"query",from:a,method:c,cacheKey:M,error:I.message||I,durationMs:(typeof performance<"u"?performance.now():Date.now())-Gt});return}if(T!==void 0){if((c==="select"||c==="rpc")&&M){let q=tt(M,T,null);q.gcTime=oe?.gcTime||3e5}let A=T;N&&P(T)&&(i.__pages||(i.__pages=[]),r.direction==="previous"?i.__pages.unshift(T):i.__pages.push(T),A=i.__pages.flat(),B&&(i.__nextPageParam=B(T,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),V&&(i.__prevPageParam=V(T,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),C(le)&&(A=le(A,t,t.state)),p&&(A=p(A,t,t.state)),(!he||A!==void 0)&&Te(t,A,b),ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ee(t,"onFetchComplete",A),ce(e,t,"onFetchComplete",A),ge&&ge({phase:"success",mode:"query",ok:!0,from:a,method:c,cacheKey:M,durationMs:(typeof performance<"u"?performance.now():Date.now())-Gt})}}catch($){ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:$,status:"error",fetchStatus:"idle"}),ee(t,"onFetchError",$),ce(e,t,"onFetchError",$),ge&&ge({phase:"error",mode:"query",from:a,method:c,cacheKey:M,error:$.message||String($),durationMs:(typeof performance<"u"?performance.now():Date.now())-Gt})}finally{M&&Xe.delete(M)}},ii=(e,t,n)=>{let r=e.on,o=t.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=e.__runner||_e;if(r==="submit"){let i=c=>{c.preventDefault(),s(e,t,n)},a=t.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(r==="click"){let i=()=>s(e,t,n),a=t.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else r==="stateChange"&&(o.__fetchOnStateChange=()=>s(e,t,n))},ci=(e,t,n)=>{let r=t.__ref;r.__fetchCleanups||(r.__fetchCleanups=[]),oi();let o=e.refetchInterval;if(o){let s=typeof o=="number"?o:et(o);if(s>0){let i=setInterval(()=>{(e.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&_e(e,t,n,{force:!0})},s);r.__fetchCleanups.push(()=>clearInterval(i))}}if(e.refetchOnWindowFocus!==!1){let s=()=>{let i=Pt(t,n),a=ni(e,i),c=ot(a),f=xn(e.cache);(!c||c.stale||Date.now()-c.time>(f?.staleTime||0))&&_e(e,t,n,{force:!0})};Le.focus.add(s),r.__fetchCleanups.push(()=>Le.focus.delete(s))}if(e.refetchOnReconnect!==!1){let s=()=>_e(e,t,n,{force:!0});Le.online.add(s),r.__fetchCleanups.push(()=>Le.online.delete(s))}},ai=(e,t,n)=>{if(!t.optimistic)return null;let r=e.__ref,o=t.as,s=e.state?.parse?e.state.parse():R(e.state)?{...e.state}:e.state;r.__optimisticSnapshot=s;let i=C(t.optimistic)?t.optimistic(n,s,e):t.optimistic;return i!==void 0&&Te(e,i,o),s},bn=(e,t)=>{let n=e.__ref,r=n.__optimisticSnapshot;r!==void 0&&(Te(e,r,t.as),delete n.__optimisticSnapshot)},li=async(e,t,n)=>{let r=n?.fetch;if(!r)return;let o=await _n(r,n);if(!o)return;let s=t.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:h,baseUrl:d,invalidates:g,optimistic:b,onMutate:y,onSuccess:m,onError:x,onSettled:_}=e,v;if(c===!0||u==="submit")v=rt(t);else if(P(c)){let V=rt(t);v={};for(let N of c)v[N]=V[N]}else t.state?.parse?v=t.state.parse():R(t.state)&&(v={...t.state});f&&(v=f(v,t,t.state)),C(y)&&y(v,t,t.state);let E=b?ai(t,e,v):null;s.__fetching=!0,ue(t,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),ee(t,"onFetchStart"),ce(e,t,"onFetchStart");let H=n?.analyze?.emitNetwork,B=H?typeof performance<"u"?performance.now():Date.now():0;H&&H({phase:"start",mode:"mutation",from:a,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let fe=await o.getSession();if(p===!0&&!fe){E!==void 0&&bn(t,e);let oe={message:"Not authenticated"};ee(t,"onFetchError",oe),ce(e,t,"onFetchError",oe);return}}let V=o[i];if(!C(V))return;let N={from:a,data:v,headers:h,baseUrl:d};e.params&&(N.params=Lr(e.params,t,n));let L=Pt(t,n);L&&(N.headers={...N.headers,"Accept-Language":L});let Ie=Mr(e),le=await Fr(()=>V(N),Ie),{data:he,error:re}=le||{};if(re){E!==void 0&&bn(t,e),ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:re,status:"error",fetchStatus:"idle"}),ee(t,"onFetchError",re),C(x)&&x(re,v,t),C(_)&&_(null,re,v,t),H&&H({phase:"error",mode:"mutation",from:a,method:i,error:re.message||String(re),durationMs:(typeof performance<"u"?performance.now():Date.now())-B});return}if(delete s.__optimisticSnapshot,he!==void 0){let fe=l?{[l]:he}:he;t.state?.update&&t.state.update(fe,{preventFetch:!0})}if(ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),ee(t,"onFetchComplete",he),ce(e,t,"onFetchComplete",he),C(m)&&m(he,v,t),C(_)&&_(he,null,v,t),H&&H({phase:"success",mode:"mutation",ok:!0,from:a,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-B}),g){let fe=P(g)?g:[g];for(let oe of fe)if(oe===!0||oe==="*")for(let[gt]of K)gt.startsWith(a+":")&&nt(gt);else nt(oe)}}catch(V){E!==void 0&&bn(t,e),ue(t,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:V,status:"error",fetchStatus:"idle"}),ee(t,"onFetchError",V),ce(e,t,"onFetchError",V),C(x)&&x(V,v,t),C(_)&&_(null,V,v,t),H&&H({phase:"error",mode:"mutation",from:a,method:i,error:V.message||String(V),durationMs:(typeof performance<"u"?performance.now():Date.now())-B})}finally{s.__fetching=!1}},Sn=(e,t,n,r)=>{if(!e||!r?.fetch)return;let s=Me(e,t);if(!s)return;let i=P(s)?s.map(c=>jr(Me(c,t),t)).filter(Boolean):[jr(s,t)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?li:_e;c.on==="create"?l(c,t,r):Promise.resolve().then(()=>{ii({...c,__runner:l},t,r)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&ci(c,t,r)}let a=t.__ref;a.refetch=c=>{for(let f of i)_e(f,t,r,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};_e(l,t,r,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};_e(l,t,r,{direction:"previous",force:!0})}},fi={invalidateQueries:e=>{if(!e){nt();return}if(S(e))for(let[t]of K)(t.startsWith(e)||t.includes(e))&&nt(t);else if(P(e)){let t=e.join(":");for(let[n]of K)n.includes(t)&&nt(n)}},removeQueries:e=>{if(!e){Et();return}if(S(e))for(let[t]of K)(t.startsWith(e)||t.includes(e))&&Et(t)},getQueryData:e=>ot(e)?.data??void 0,setQueryData:(e,t)=>{let n=ot(e),r=C(t)?t(n?.data):t;tt(e,r,null)},prefetchQuery:async(e,t)=>{let n=t?.fetch;if(!n)return;let r=await _n(n,t);if(!r)return;let o=e.cache?.key||`${e.from}:${e.method||"select"}:${JSON.stringify(e.params||"")}`,s=r[e.method||"select"];if(!C(s))return;let i=await s({from:e.from,params:e.params,limit:e.limit,offset:e.offset,order:e.order,single:e.single});if(i?.data!==void 0&&!i?.error){let a=tt(o,i.data,null);a.gcTime=xn(e.cache)?.gcTime||3e5}return i},getCache:()=>K,clear:()=>Et(),dropNonLang:e=>{if(!e)return;let t=`:${e}`;for(let[n]of K)n.match(/:([a-z]{2,3})$/i)&&(n.endsWith(t)||Et(n))}},ui={name:"fetch",create(e){let t=e.fetch;t&&(e.parent||Xe.clear(),Sn(t,e,e.state,e.context))}},pi=Sn});function Ur(e){let t=this,{__ref:n}=t,r=[].concat(e),o=n.root[r[0]];if(!r||!r.length)return console.log(r,"on",t.key,"is undefined");for(;o.key===r[0]&&(r.shift(),!!r.length);)if(o=o[r[0]],!o)return;return o}function Gr(){return this.getRef("__children").map(t=>this[t])}function Wr(){return this.getRef().path}function zr(e){let t=null,n=r=>r.__element&&r.root?.isRootState;if(!this)t=Vr();else if(n(this))t=this.root;else if(this.__ref&&this.__ref.path){let r=this.state&&n(this.state),o=C(this.state)&&this.parent.state&&n(this.parent.state);(r||o)&&(t=this.state.root||this.parent.state.root)}return t||(t=Vr()),e?t?.[e]:t}function Hr(e){let t=this.getRootState()?.__element;return t&&Object.keys(t).length>0&&e?t[e]:t}function qr(e){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&e?this.getRoot("data")[e]:this.getRoot("data")}function Kr(e){let t=this.getRoot()?.context;return e?t[e]:t}function Qr(e){let t=this.context;return e?t[e]:t}function vn(...e){if(Ve!=="test"&&Ve!=="development")return;let t=this,{__ref:n}=t;return console.groupCollapsed(t.key),e.length?e.forEach(r=>console.log(`%c${r}:
2
- `,"font-weight: bold",t[r])):(console.log(n.path),t.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",t[o]))),console.log(t),console.groupEnd(t.key),t}function Jr(...e){(Ve==="test"||Ve==="development")&&console.warn(...e)}function Xr(...e){if(Ve==="test"||Ve==="development"){if(e[e.length-1]?.debugger)debugger;throw e[e.length-1]?.verbose&&vn.call(this),new Error(...e)}}function Zr(){let e=this,{key:t,parent:n}=e,{__children:r}=n.__ref,o=r.indexOf(t),s=r[o+1];return n[s]}function Yr(e){let t=e||this,{key:n,parent:r}=t,{__children:o}=r.__ref;if(!o)return;let s=o.indexOf(n);return r[o[s-1]]}function eo(e={}){let t=this;t.data||(t.data={}),t.data.varCaches||(t.data.varCaches={});let n=t.data.varCaches,r={},o;for(let s in e)e[s]!==n[s]&&(o=!0,r[s]=e[s]);return{changed:s=>{if(!o)return;let i=s(r,Ne(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)}}}async function to(){let e=this,t=e.context?.fetch;if(!t)return null;if(typeof t.select=="function"){if(!t.__authInitialized&&t.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(it(),st));await o(t,e.context)}return t}if(t.__resolved){if(!t.__resolved.__authInitialized&&t.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(it(),st));await o(t.__resolved,e.context)}return t.__resolved}if(t.__resolving)return t.__resolving;let n=Promise.resolve().then(()=>(it(),st)).then(({resolveDb:o})=>o(t));t.__resolving=n;let r=await n;if(t.__resolved=r,e.context.fetch=r,delete t.__resolving,r?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(it(),st));await o(r,e.context)}return r}function no(e){let t=this,n=e||Sr.useStateQuery||t.context?.useStateQuery;if(!n)return null;let r={};if(wn(t,r),n===!0)return r;let o=Si[n];return o?o(r):r}var Ve,di,Vr,wn,hi,ro,gi,mi,yi,bi,xi,_i,Si,oo=w(()=>{"use strict";Qe();vt();hn();Ve="production";di=null,Vr=()=>di||null;wn=(e,t)=>{let n=e.__ref;if(!n)return;let r=n.__state;r&&typeof r=="string"&&hi(t,r);let o=n.__children;if(o)for(let a=0;a<o.length;a++){let c=e[o[a]];c&&c.__ref&&wn(c,t)}let s=n.contentElementKey||"content",i=e[s];i&&i.__ref&&wn(i,t)},hi=(e,t)=>{let r=t.replaceAll("../","").replaceAll("~/","").split("/"),o=e;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])}},ro=(e,t=0)=>{let n=" ".repeat(t),r=Object.entries(e);return r.length?r.map(([s,i])=>i===!0?`${n}${s}`:`${n}${s} {
3
- ${ro(i,t+1)}
4
- ${n}}`).join(`
5
- `):""},gi=e=>`{
6
- ${ro(e,1)}
7
- }`,mi=e=>{let t={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;t.include.push(a),n(r[i],a)}s.length&&(t.fields[o||"_root"]=s)};return n(e,""),t},yi=e=>{let t=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=t(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:r}=t(e),o=[];return n&&o.push(`$select=${n}`),r&&o.push(`$expand=${r}`),o.join("&")},bi=(e,t)=>{let n=[],r=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&r.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let h in l)l[h]===!0?n.push(`${u}.${h}`):s(l[h],h,u)},i=Object.keys(e);i.length===1&&e[i[0]]!==!0?s(e[i[0]],i[0],null):s(e,"_root",null);let a=[...o][0]||"_root",c=n.length?n.join(", "):"*",f=r.length?`
8
- `+r.join(`
9
- `):"";return`SELECT ${c}
10
- FROM ${a}${f}`},xi=e=>{let t=[],n=(r,o)=>{for(let s in r){let i=o?`${o}/${s}`:s;r[s]===!0?t.push(i):n(r[s],i)}};return n(e,""),t},_i=e=>{let t=r=>{let o=[];for(let s in r)r[s]===!0?o.push(s):o.push(`${s}(${t(r[s])})`);return o.join(", ")},n=Object.keys(e);return n.length===1&&e[n[0]]!==!0?{from:n[0],select:t(e[n[0]])}:{from:null,select:t(e)}},Si={graphql:gi,"json-api":mi,odata:yi,sql:bi,supabase:_i,paths:xi}});var so=w(()=>{"use strict"});var io=w(()=>{});var co=w(()=>{"use strict"});var ao=w(()=>{"use strict"});var lo=w(()=>{"use strict"});var fo=w(()=>{"use strict"});var uo=w(()=>{"use strict"});var po=w(()=>{"use strict"});var ho=w(()=>{"use strict"});var go=w(()=>{"use strict"});var mo=w(()=>{"use strict"});var yo=w(()=>{"use strict"});var bo,xo,_o,So=w(()=>{"use strict";Qe();bo=e=>(typeof e!="string"&&(e=String(e||"")),e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(t,n){return n===0?t.toLowerCase():t.toUpperCase()}).replace(/\s+/g,"")),xo=e=>e.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),_o=e=>{if(P(e))return e;if(S(e))return e.split(" ");if(R(e))return Object.values(e);if(wt(e))return[e]}});var wo=w(()=>{"use strict"});var vo=w(()=>{"use strict"});var D=w(()=>{"use strict";cr();lr();Qe();vt();kt();fn();ln();fr();ur();rr();an();pr();dr();gr();mr();hr();yr();br();pn();xr();oo();hn();so();_r();io();co();ao();lo();fo();uo();po();ho();go();mo();yo();So();wo();vo()});var na={};je(na,{FACTORY:()=>Nt,REGISTRY:()=>J,applyExtends:()=>pt,batch:()=>me,create:()=>ne,createEffect:()=>j,createElement:()=>ea,createSignal:()=>se,createStore:()=>Y,getActiveConfig:()=>O,mount:()=>ta,popConfig:()=>W,pushConfig:()=>Q,registerEvent:()=>ut});var Ae=null,mt=0,yt=[],xt=()=>Ae;var bt=0,Ht=[];function se(e){let t=new Set;function n(){return Ae&&(t.add(Ae),Ae._sources.add(s)),e}function r(i){i!==e&&(e=i,Ns(t))}function o(){return e}let s={get:n,set:r,peek:o,_subscribers:t,_type:"signal"};return s}var ke=new Set,qt=!1;function j(e,t){let n=t?.depth??0,r={_sources:new Set,_type:"effect",_depth:n,_disposed:!1,_subscribers:new Set,_execute(){if(r._disposed)return;Zn(r);let o=Ae;Ae=r;try{e()}catch(s){console.error("[smbls] effect error:",s)}finally{Ae=o}},_notify(){r._disposed||(mt>0?yt.push(r):bt>0?Ht.push(r):Kt(r))},dispose(){r._disposed=!0,Zn(r)}};return r._execute(),r}function me(e){mt++;try{e()}finally{mt--,mt===0&&js()}}function Kt(e){ke.add(e),qt||(qt=!0,queueMicrotask(Is))}var De=[];function Is(){if(qt=!1,ke.size!==0){if(ke.size===1){let[e]=ke;ke.clear(),e._disposed||e._execute();return}De.length=0;for(let e of ke)De.push(e);ke.clear(),De.sort((e,t)=>e._depth-t._depth);for(let e=0;e<De.length;e++){let t=De[e];t._disposed||t._execute()}De.length=0}}function js(){for(let e=0;e<yt.length;e++)Kt(yt[e]);yt.length=0}function Ds(e){bt++;try{for(let t of e)t._notify()}finally{if(bt--,bt===0&&Ht.length>0){let t=Ht.splice(0);for(let n=0;n<t.length;n++)Kt(t[n])}}}function Ns(e){Ds(e)}function Zn(e){for(let t of e._sources)t._subscribers.delete(e);e._sources.clear()}var Oe=Symbol("store"),Xt=Symbol("signals"),Qt=e=>!e||typeof e!="object"||Array.isArray(e)||e[Oe]||Object.isFrozen(e)||typeof Node<"u"&&e instanceof Node||e.__ref||e.nodeType||e.nodeName;function Y(e,t,n){n===void 0&&(n=0);let r={},o={},s=t&&t.maxDepth||8;if(e&&typeof e=="object")for(let y in e){if(y==="__proto__"||!Object.prototype.hasOwnProperty.call(e,y))continue;let m=e[y];n<s&&m&&typeof m=="object"&&!Qt(m)?(o[y]=m,r[y]=se(Y(m,t,n+1))):(o[y]=m,r[y]=se(m))}let i=new Proxy(o,{get(y,m){if(m===Oe)return!0;if(m===Xt)return r;if(m==="__raw")return y;if(m==="update")return a;if(m==="parse")return f;if(m==="clean")return l;if(m==="keys")return u;if(m==="values")return p;if(m==="replace")return h;if(m==="add")return d;if(m==="remove")return g;if(m==="destroy")return b;if(m==="quietUpdate")return c;if(m==="__element")return y.__element;if(m==="parent")return y.parent;if(m==="root")return y.root;if(Object.prototype.hasOwnProperty.call(r,m))return r[m].get();if(y[m]!==void 0)return y[m];if(m!=="root"&&y.root&&y.root!==i)return y.root[m];if(typeof m=="string"&&!m.startsWith("__")&&m!=="then"&&m!=="constructor"&&xt()!=null)return r[m]=se(void 0),r[m].get()},set(y,m,x){return m==="__proto__"?!1:m==="__element"||m==="parent"||m==="root"?(y[m]=x,!0):(Object.prototype.hasOwnProperty.call(r,m)?(y[m]=x,x&&typeof x=="object"&&!Qt(x)?r[m].set(Y(x,t,n+1)):r[m].set(x)):(y[m]=x,x&&typeof x=="object"&&!Qt(x)?r[m]=se(Y(x,t,n+1)):r[m]=se(x)),!0)},has(y,m){return m in r||m in y},ownKeys(y){return Object.keys(r)},getOwnPropertyDescriptor(y,m){return m in r?{enumerable:!0,configurable:!0,value:r[m].peek()}:Object.getOwnPropertyDescriptor(y,m)},deleteProperty(y,m){return r[m]&&(r[m].set(void 0),delete r[m]),delete y[m],!0}});function a(y,m){me(()=>{for(let _ in y)_!=="__proto__"&&(i[_]=y[_])});let x=o.__element;return x&&x.onUpdate&&!m?.quiet&&x.onUpdate(x,i,x.context),i}function c(y){return a(y,{quiet:!0})}function f(y){if(y||(y=new Set),y.has(i))return"[Circular]";y.add(i);let m={};for(let x in r){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=r[x].peek();_&&_[Oe]?m[x]=_.parse(y):m[x]=_}return m}function l(){return me(()=>{for(let y in r)delete i[y]}),i}function u(){return Object.keys(r)}function p(){return Object.keys(r).map(y=>r[y].peek())}function h(y){return me(()=>{for(let m in r)m in y||delete i[m];for(let m in y)m!=="__proto__"&&(i[m]=y[m])}),i}function d(y,m){return i[y]=m,i}function g(y){return delete i[y],i}function b(){l(),o.__element=null,o.parent=null}return i}function U(e){return e&&e[Oe]===!0}function Zt(e,t){let n={},r={};if(e&&typeof e=="object")for(let i in e)r[i]=e[i],n[i]=se(e[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(n,i))return n;let a=t;for(;a;){let c=a[Xt];if(c&&Object.prototype.hasOwnProperty.call(c,i))return c;a=a[Oe]?a[Jt]:null}return null};return new Proxy(r,{get(i,a){return a===Oe?!0:a===Xt?n:a===Jt?t:a==="__raw"?i:Object.prototype.hasOwnProperty.call(n,a)?n[a].get():t&&a!=="then"&&a!=="constructor"?t[a]:i[a]},set(i,a,c){let f=o(a);return f?(f===n&&(i[a]=c),f[a].set(c),!0):(i[a]=c,n[a]=se(c),!0)},has(i,a){if(a in n||a in i)return!0;let c=t;for(;c;){if(a in c)return!0;c=c[Oe]?c[Jt]: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 Jt=Symbol("scope.parent");var Yt="http://www.w3.org/2000/svg",nn=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"]),Ms=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 en(e){return Ms.has(e)||nn.has(e)}function rn(e){return nn.has(e)}function He(e){let{tag:t,key:n}=e;if(typeof t=="function"&&(t=t(e)),t===!0&&(t=n),typeof t=="string"&&en(t))return t;if(!n||typeof n!="string")return"div";let r=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=n.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),en(o)&&!r.has(o)?o:"div"}var Yn={};function tn(e,t){let n=t?.context?.document||globalThis.document;if(!n)return null;if(e==="string")return n.createTextNode(t?.text||"");if(e==="fragment")return n.createDocumentFragment();if(rn(e)){let r=t?.parent;if(e==="svg"||r?.node?.namespaceURI===Yt)return n.createElementNS(Yt,e);if(e!=="svg")return n.createElement("div")}return n.createElement(e)}function qe(e){let t=e.tag=He(e),n=rn(t)&&(t==="svg"||e.parent?.node?.namespaceURI===Yt)?"svg:"+t:t,r=e?.context?.document||globalThis.document,o=Yn[n];if(o||(o=Yn[n]=tn(t,e)),!o)return null;let s=r&&o.ownerDocument!==r?tn(t,e):o.cloneNode(!0);return t==="string"&&(s.nodeValue=e.text||""),s}var J=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]);var Ke=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),on=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),er=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),sn=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var cn=e=>e==="em"||e==="rem"||e==="vw"||e==="vh"||e==="vmax"||e==="vmin",_t=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];D();var Co=e=>{if(e==="")return[0,0,0,0];if(e.toLowerCase()==="transparent")return[0,0,0,0];if(e[0]==="#")return e.length<7&&(e="#"+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+(e.length>4?e[4]+e[4]:"")),[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16),e.length>7?parseInt(e.substr(7,2),16)/255:1];if(e.indexOf("rgb")===-1&&Ee&&ie){let t=Ee.body.appendChild(Ee.createElement("fictum")),n="rgb(1, 2, 3)";if(t.style.color=n,t.style.color!==n){Ee.body.removeChild(t);return}if(t.style.color=e,t.style.color===n||t.style.color==="")return Ee.body.removeChild(t),[0,0,0,0];e=ie.getComputedStyle(t).color,Ee.body.removeChild(t)}return e.indexOf("rgb")===0?(e.indexOf("rgba")===-1&&(e=`${e}, 1`),e.match(/[\.\d]+/g).map(t=>+t)):[0,0,0,0]};var wi=(e,t=1)=>{let[n,r,o]=e.match(/\w\w/g).map(s=>parseInt(s,16));return[n,r,o]};var vi=([e,t,n])=>((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1);var Ci=(e,t,n)=>{let r=Math.max(e,t,n),o=r-Math.min(e,t,n),s=1-Math.abs(r+r-o-1),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),s?o/s:0,(r+r-o)/2]},ki=(e,t,n,r=t*Math.min(n,1-n),o=(s,i=(s+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Ai=(e,t)=>{let n=parseInt(e,16),r=(n>>16)+t;r>255?r=255:r<0&&(r=0);let o=(n>>8&255)+t;o>255?o=255:o<0&&(o=0);let s=(n&255)+t;return s>255?s=255:s<0&&(s=0),((s|o<<8|r<<16)+16777216).toString(16).slice(1)};var G=e=>e.charCodeAt(0)===45&&e.charCodeAt(1)===45,$e=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Oi=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ct=e=>{if(!S(e))return null;if($e.test(e))return{passthrough:e};if(G(e))return{cssVar:e};let t=e.match(Oi);if(!t)return null;let[,n,r,o]=t,s=r!==void 0?`0.${r}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:n,alpha:s,tone:i}},Be=e=>S(e)&&(e.includes("rgb")||e.includes("var(")||e.includes("#")),Rt=e=>{let t=[],n="",r=0;for(let o of e){if(o==="("?r+=1:o===")"&&r>0&&(r-=1),o===","&&r===0){t.push(n),n="";continue}n+=o}return(n.length||!t.length)&&t.push(n),t},ko=(e,t)=>{S(e)&&e.includes("rgb")&&(e=Co(e).join(", ")),S(e)&&(e=e.split(",").map(o=>parseFloat(o.trim()))),wt(t)&&(t+="");let n=vi(e),r=t.slice(0,1);if(r==="-"||r==="+"){let o=Ai(n,parseFloat(t));return wi(o).join(", ")}else{let[o,s,i]=e,a=Ci(o,s,i),[c,f,l]=a;return ki(c,f,parseFloat(t)/100*255)}};var Cn=(e,t)=>{if(e[t])return e[t].value;if(e.default)return e[e.default].value;let n=Object.keys(e)[0];return n&&e[n]&&e[n].value};D();D();D();var It={};je(It,{animation:()=>Ki,breakpoints:()=>Hi,class:()=>ec,color:()=>Mi,devices:()=>qi,document:()=>zi,font:()=>$i,fontFace:()=>Ii,fontFamily:()=>Pi,fontFamilyTypes:()=>Ri,gradient:()=>Fi,grid:()=>Yi,icons:()=>Bi,media:()=>ji,reset:()=>tc,semanticIcons:()=>Ui,sequence:()=>Pe,shadow:()=>Vi,sizes:()=>rc,spacing:()=>Ni,svg:()=>Qi,svgData:()=>Ji,templates:()=>Xi,theme:()=>Li,timing:()=>Wi,typography:()=>kn,unit:()=>Ei,vars:()=>nc});var Pe={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var Ei={default:"em"};var Ti={browserDefault:16,base:16,type:"font-size",ratio:Pe["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},kn=Ti;var $i={};var Pi={},Ri={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Ii={};var ji={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Di={base:kn.base,type:"spacing",ratio:Pe.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Ni=Di;var Mi={},Fi={};var Li={};var Vi={};var Bi={},Ui={};var Gi={default:150,base:150,type:"timing",ratio:Pe["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},Wi=Gi;var zi={};var Hi={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},qi={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 Ki={};var Qi={},Ji={};var Xi={};var Zi={},Yi=Zi;var ec={};var tc={},nc={},rc={};var Ao={},Oo={},jt=It,Dt={},Eo=e=>e.replace(/_([a-z])/g,(t,n)=>n.toUpperCase());for(let e in jt){let t=e.toLowerCase();Dt[t]=jt[e];let n=Eo(t);n!==t&&(Dt[n]=jt[e]),t!==e&&(Dt[e]=jt[e])}var An={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Ao,cssMediaVars:Oo,CSS_VARS:Ao,CSS_MEDIA_VARS:Oo,_scratchConfig:!0,...Dt},Jf=Ne(An),Nt={active:"0",0:An};var at=[],Q=e=>{e&&e._scratchConfig&&at.push(e)},W=()=>{at.pop()},O=e=>at.length?at[at.length-1]:Nt[e||Nt.active]||An;var Mt={"-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"},To=(e,t)=>{let{key:n,variable:r,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[n]={key:n,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:r},t.scales[n]=s;let c=$o.has(t.unit)?"rem":t.unit;t.vars[r]=s+c},Ue=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],n=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,n]},$o=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),oc=(e,t)=>{let{base:n,type:r,unit:o}=t,s=$o.has(o)?"rem":o,i=(cn(s)?1:n)+s;if(e===0)return i;let c="--"+(t.varPrefix?t.varPrefix+"-":"")+(r&&r.replace(".","-")),f=`${c}-ratio`;if(e>0){let l=Mt[e-1];return`calc(var(${c}-${l}) * var(${f}))`}if(e<0){let l=Mt[e+1],u=Math.abs(e),p=Math.pow(Po,2*u),h=Mt[u];return h?`max(calc(var(${c}-${l}) / var(${f})), calc(var(${c}-${h}) / ${p.toFixed(4)}))`:`calc(var(${c}-${l}) / var(${f}))`}},sc=(e,t,n,r)=>{let{type:o}=r,i=e===2&&t.length===2?e+1:e,f=`${"--"+(r.varPrefix?r.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${n}) * var(${f+i}))`},ic=(e,t)=>{let r=(e*t-e)/1.618,o=e*t-r,s=e+r,i=(o+s)/2;return[o,i,s]};var cc=(e,t)=>{let{key:n,base:r,value:o,ratio:s,variable:i,index:a}=e,f=~~(o*s)-~~o,l,[u,p,h]=ic(o,s);f>16?l=[u,p,h]:l=[u,h],l.forEach((d,g)=>{let b=~~(d/r*1e3)/1e3,y=i+(g+1),m=a+(g+1)/10,x=sc(g+1,l,i,t),_={key:n+(g+1),variable:y,value:d,scaling:b,scalingVariable:x,index:m};To(_,t)})},Po=1.618,ac=(e,t,n)=>{if(e>=0)return t*Math.pow(n,e);let r=Math.abs(e),o=t*Math.pow(n,e),s=t*Math.pow(n,r)/Math.pow(Po,2*r);return Math.max(o,s)},lt=e=>{let{type:t,base:n,ratio:r,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),c="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let f=0;f<=i;f++){let l=o[1]-f,u=Mt[l],p=ac(l,n,r),h=~~(p/n*100)/100,d=c+u,g=oc(l,e),b={key:u,variable:d,value:p,base:n,scaling:h,scalingVariable:g,ratio:r,index:l};To(b,e),s&&cc(b,e)}return e};var Ro=(e="A",t)=>{let n=O(),{unit:r}=n;if(S(e)&&G(e))return`var(${e})`;let{sequence:o,unit:s=r.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,c=a.test(e);if(_t.some(_=>e.includes(_))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let p=`--${t.varPrefix?t.varPrefix+"-":""}${xo(t.type.replace(".","-"))}-`,h=e.toUpperCase(),d=h.slice(0,1)==="-"?"-":"",g=d?h.slice(1):h,b="";g.includes("_")&&(b="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let y=_=>a.test(_)?`var(${p}${_}${b})`:_;if(g.includes("+")){let[_,v]=g.split("+"),E=`${y(_)} + ${y(v)}`;return d?`calc((${E}) * -1)`:`calc(${E})`}else if(g.includes("*")){let[_,v]=g.split("*"),E=`${y(_)} * ${y(v)}`;return d?`calc((${E}) * -1)`:`calc(${E})`}else if(g.includes("-")){let[_,v]=g.split("-"),E=`${y(_)} - ${y(v)}`;return d?`calc((${E}) * -1)`:`calc(${E})`}let m=n.sizes;if(m){let _=m[e]||m[e.toLowerCase()];if(_!==void 0)return d?`calc(${_} * -1)`:_}if(!o[g]&&g.length===2&&(n.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||n.useVariable){let _=`var(${p}${g}${b})`;return d?`calc(${_} * -1)`:_}let x=o?o[g]:null;return x?s==="ms"||s==="s"?d+x.val+s:d+x.scaling+s:console.warn("can't find",o,g)},lc=(e,t)=>{if(!["+","-","*","/",","].filter(s=>e.includes(s+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ro(i,t)}).join("")},Re=(e,t,n,r)=>{if(typeof e!="string")return O().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!r&&e.includes("(")){let s=Ue(e);r=s[0],e=s[1]}return["+","-","*","/",","].filter(s=>e.includes(s+" ")).length?e=lc(e,n):e=Ro(e,n),{[t]:r?`${r}(${e})`:e}};D();var pu=dn();var fc="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",du=new RegExp(`<(${fc})\\b([^>]*?)\\s*/>`,"g");D();var pe=(e,t,n)=>{let r=n||O();if(!S(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(G(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(P(e))[o,s,i]=e;else{let u=ct(e);if(!u){let{color:p,gradient:h}=r,d=h[e]||p[e];return d?r.useVariable?`var(${d.var})`:d.value:e}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,f=a[o]||c[o];if(!f)return r.verbose&&console.warn("Can't find color ",o),e;t&&(f[t]?f=f[t]:r.verbose&&console.warn(e," - does not have ",t));let l=f.rgb;return l?(i&&!f[i]&&(l=ko(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:r.useVariable?`var(${f.var})`:`rgb(${l})`):r.useVariable?`var(${f.var})`:f.value},te=(e,t,n)=>{let r=n||O();if(t||(t=r.globalTheme==="auto"?null:r.globalTheme),!S(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(G(e))return`var(${e})`;let o;if(P(e))o=e[0];else{let f=ct(e);if(!f)return e;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=r,a=s[o]||i[o],c=R(a);if(c&&a.value)return pe(e,`@${t}`,n);if(c){if(r.useVariable&&a.var)return`var(${a.var})`;if(t)return pe(e,`@${t}`,n);{let f={};for(let l in a){if(l.charCodeAt(0)!==64)continue;let u=r.media[l.slice(1)];if(!u)continue;let p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=pe(e,l,n)}return f}}else return r.verbose&&console.warn("Can't find color",e),e};D();var On=e=>{let t=O(),n={};for(let r in e){let o=r.slice(0,1);if(be(e[r])){if(o==="@")continue;o===":"?n[`&${r}`]=On(e[r]):o==="."&&(n[`&${r}`]=On(e[r]))}else n[r]=e[r]}return n},jo=(e,t)=>{let n=t.shift();return e[n]?jo(e[n],t):e},Io=(e,t)=>P(t)?jo(e,t):S(t)&&e[t]?e[t]:e;var ft=(e,t)=>{let n=O();if(S(e)&&G(e)&&(e=ft(e.slice(2))),!e||!S(e)){n.verbose&&console.warn(`${e} - Theme is not a string`);return}let[r,...o]=P(e)?e:e.split(" "),s=n.theme[r];return s&&o.length?s=Io(s,o):s&&t&&(s=Io(s,t)),On(s)};var Do=(e,t)=>{let n=O(),{fontFamily:r}=n;return Cn(t||r,e)};var Mo=e=>{let t=O(),{typography:n}=t;return Re(e,"fontSize",n)};D();D();var dc=e=>{let n=O().spacing||{},r=parseFloat(e.spacingRatio),o={...n,ratio:Number.isFinite(r)?r:n.ratio,sequence:{},scales:{}};return lt(o),o};var Fo=e=>{let t=e.toLowerCase(),n=t.includes("width")||t.includes("height"),r=t.includes("border")||t.includes("outline");return n&&!r};var hc=e=>{let t=O(),{spacing:n}=t;return!e||!e.sequence?n:Object.keys(e.sequence).length>0?e:lt(e)},z=(e,t="padding",n,r)=>{let o=hc(n);if(S(e)&&!r&&e.includes("(")){let i=Ue(e);r=i[0],e=i[1]}let s=r?[e]:_o(e);if(P(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>Re(s[l],t+f+i,o,r);return a[s.length].map((f,l)=>c(f,l))}return Re(e,t,o,r)}},Ge=(e,t,n,r)=>{let o=O(),{spacing:s}=o,i=n||e[t];if(!r&&S(i)&&i.includes("(")){let a=Ue(i);r=a[0],i=a[1]}if(e.spacingRatio){let a=dc(e);return z(i,t,a,r)}return z(i,t,s,r)},Lo=e=>{let t=n=>{let r=["+","-","*","/"].includes(n),o=_t.some(i=>e.includes(i));return r||o?n:n.length<3&&/[A-Z]/.test(n)?n+"_default":n};return e.split(",").map(n=>n.trim()).map(t).join(",").split(" ").map(t).join(" ")};D();var Vo=(e,t)=>{let n=O();if(t||(t=n.globalTheme),!S(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(G(e))return`var(${e})`;let[r]=P(e)?e:e.split(" "),s=n.shadow[r],i=R(s);if(!s)return n.verbose&&console.warn("Can't find color ",r),e;if(t){if(s[t])return s[t].value;n.verbose&&console.warn(e," - does not have ",t)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=n.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return n.verbose&&console.warn("Can't find color",e),e};D();var ye=e=>{let t=O(),{timing:n}=t;return n[e]||n[bo(e)]||e},de=(e,t="timing")=>{let n=O(),{timing:r}=n;return Re(e,t,r)};D();var mc=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),yc=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),bc=e=>mc.has(e),Se=e=>{let t=e+"";if($e.test(t))return t;let n=t.trim();return n==="none"||n==="0"||n==="initial"||n==="inherit"||n==="unset"?t:t.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(G(o))return`var(${o})`;if(bc(o)||/^\d/.test(o)||o==="0")return o;let s=pe(o);if(Be(s))return s;let i=z(o,"border");return i&&i.border?i.border:o}).join(" ")},Bo=e=>$e.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(G(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let n=pe(t);return Be(n)?n:t}).join(" "),Uo=(e,t)=>Vo(e,t),En=(e,t)=>$e.test(e)?e:Rt(e).map(n=>(n=n.trim(),n?n.split(/\s+/).map(r=>{if(r=r.trim(),!r)return"";if(G(r))return`var(${r})`;if(r==="inset"||r==="none")return r;let o=pe(r);if(Be(o)){let i=te(r,t);return R(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(r)||r==="0"||r.includes("px")||r.slice(-2)==="em")return r;let s=z(r,"shadow");return s&&s.shadow?s.shadow:r}).join(" "):"")).join(", "),Tn=(e,t)=>{let n=e.indexOf("(");if(n===-1)return e;let r=e.slice(0,n+1),o=e.slice(n+1,e.lastIndexOf(")")),s=")",a=Rt(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||yc.has(l)||l==="transparent"||$e.test(l))return l;let u=pe(l);return Be(u)?u:l}).join(" ")));return r+a.join(", ")+s},Go=(e,t)=>{let n=O();return e.split(", ").map(r=>G(r)?`var(${r})`:r.includes("url")?r:r.includes("gradient")?Tn(r,t):n.gradient[e]?{backgroundImage:te(e,t||n.globalTheme)}:r.includes("/")||r.startsWith("http")||r.includes(".")&&!ct(r)?`url(${r})`:r).join(" ")},Wo=e=>S(e)&&e.split(" ").map(t=>z(t,"gap").gap).join(" "),xc=e=>{let t=e.split(" ");return t.length?t.map(n=>G(n)?`var(${n})`:n.length<3||n.includes("ms")?de(n).timing||n:ye(n)?ye(n):n).join(" "):e},$n=(e,t,n)=>{if(S(e))return e.split(",").map(r=>de(r).timing||r).join(",")},zo=e=>{let t=e.split(",");if(t.length)return t.map(xc).join(",")};function F(e,t,n={},r={}){let o=Me.call(this,t||n[e]);if(o==null)return;let s;if(S(o)){if(o.includes("(")){let c=Ue(o);s=c[0],o=c[1]}let i=n.scaleBoxSize,a=Fo(e);!i&&a&&!r.ratio&&(o=Lo(o))}return r.ratio?Ge(n,e,o,s):z(o,e,void 0,s)}var k=(e,t=null,n)=>F(e,t,n,{ratio:!0}),Pn=(e,t,n)=>{if(S(e))return{borderRadius:e.split(" ").map((r,o)=>Ge(t,n,r)[n]).join(" ")}};var Rn=new WeakMap,_c={passive:!0},Sc={passive:!0,capture:!0},In=(e,t)=>er.has(e)?t?Sc:_c:t||!1;function qo(e){let t=Rn.get(e);return t||(t={handlers:new Map,installed:new Set},Rn.set(e,t)),t}function wc(e,t){let n=qo(t);if(n.installed.has(e))return;n.installed.add(e);let r=e==="focus"||e==="blur"||e==="focusin"||e==="focusout"||e==="mouseenter"||e==="mouseleave",o=e==="mouseenter"||e==="mouseleave";t.addEventListener(e,s=>{let i=s.target;for(;i&&i!==t;){let a=n.handlers.get(e);if(a){let c=a.get(i);if(c){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(c(s),s.cancelBubble)return}}i=i.parentNode}},In(e,r))}function Ko(e,t,n,r){r||(r=t.ownerDocument?.documentElement||t.getRootNode());let o=qo(r);wc(e,r),o.handlers.has(e)||o.handlers.set(e,new WeakMap),o.handlers.get(e).set(t,n)}function Qo(e,t,n){n||(n=t.ownerDocument?.documentElement||t.getRootNode());let r=Rn.get(n);if(!r)return;let o=r.handlers.get(e);o&&o.delete(t)}function Ho(e){return sn.has(e)&&!Ke.has(e)}function ut(e,t,n){let{node:r,context:o}=t;if(!r)return;let s=o?.designSystem,i=c=>{s&&Q(s);try{let f=n.call(t,c,t,t.state,o);if(f&&typeof f.then=="function"){f.catch(l=>{t.error=l,console.error("[DOMQL] Async event error:",l)}).finally(()=>{s&&W()});return}}catch(f){if(t.error=f,console.error("[DOMQL] Event error:",f),o?.strictMode)throw f}s&&W()},a=on.has(e);if(!a&&Ho(e)){let c=o?.rootNode||r.ownerDocument?.documentElement;Ko(e,r,i,c)}else r.addEventListener(e,i,In(e,!1));t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{if(!a&&Ho(e)){let c=o?.rootNode||r.ownerDocument?.documentElement;Qo(e,r,c)}else r.removeEventListener(e,i,In(e,!1))})}function Jo(e){let t=[];return e.extends&&(Array.isArray(e.extends)?t.push(...e.extends):t.push(e.extends)),e.extend&&(Array.isArray(e.extend)?t.push(...e.extend):t.push(e.extend)),t}function pt(e,t,n){let r=Jo(t);if(!r.length)return;let o=(e.context||n?.context||{}).components||{};for(let s=0;s<r.length;s++){let i=Xo(r[s],o);i&&i!==t&&Zo(e,i,n,new Set([t]))}}function Xo(e,t){if(typeof e=="string"){if(e.includes(">")){let n=e.split(">").map(o=>o.trim()),r=t[n[0]]||t[`smbls.${n[0]}`];for(let o=1;o<n.length&&r;o++)r=r[n[o]];return r||null}return t[e]||t[`smbls.${e}`]||null}return typeof e=="object"&&e!==null?e:null}function Zo(e,t,n,r=new Set){if(r.has(t))return;r.add(t);let o=Jo(t);if(o.length){let s=(e.context||n?.context||{}).components||{};for(let i=0;i<o.length;i++){let a=Xo(o[i],s);a&&Zo(e,a,n,r)}}for(let s in t){if(s==="extends"||s==="extend")continue;let i=t[s];e[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?e[s]={...i}:e[s]=i:typeof e[s]=="object"&&typeof i=="object"&&!Array.isArray(e[s])&&!Array.isArray(i)&&e[s]!==null&&i!==null?e[s]=Yo(e[s],i):e[s]=i}}function Yo(e,t){let n={...e};for(let r in t){let o=n[r],s=t[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=Yo(o,s):n[r]=s}return n}kt();function jn(e={},t={}){let n=this,r=n.__ref;if(r){if((typeof e=="string"||typeof e=="number")&&(e={text:e}),!t.preventListeners&&typeof n.onBeforeUpdate=="function"&&n.onBeforeUpdate(n,n.state,n.context,t)===!1)return n;if(me(()=>{if(e.state&&U(n.state)&&n.state.update(e.state),e.text!==void 0&&(n.text=e.text,!r.__exec.text&&n.node&&(n.tag==="string"?n.node.nodeValue=e.text??"":n.node.textContent=e.text??"")),e.html!==void 0&&(n.html=e.html,!r.__exec.html&&n.node&&(n.node.innerHTML=e.html)),e.style&&n.node?.style){if(!r.__exec.style)for(let o in e.style){let s=e.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=String(s).replace(/\s*!important\s*$/,"");n.node.style.setProperty(i,a,"important")}n.style||(n.style={}),Object.assign(n.style,e.style)}if(e.attr&&n.node?.setAttribute){for(let o in e.attr){let s=e.attr[o];s==null||s===!1?n.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&n.node.setAttribute(o,s===!0?"":s)}n.attr||(n.attr={}),Object.assign(n.attr,e.attr)}if(e.data&&n.node?.dataset){for(let o in e.data)n.node.dataset[o]=e.data[o];n.data||(n.data={}),Object.assign(n.data,e.data)}for(let o in e){if(J.has(o)||o==="state")continue;let s=e[o],i=n[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,t);else if(typeof s=="object"&&s!==null){let a=o.charCodeAt(0);a>=65&&a<=90&&ne(s,n,o,t)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(n[o]=s)}}),n.node&&r.__conditionalRunners)for(let o of r.__conditionalRunners)o();return Fe("update",n),!t.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,t),n}}function Dn(e){if(!e)return;let t=e.__ref;if(t){try{typeof e.onBeforeRemove=="function"&&e.onBeforeRemove(e,e.state,e.context)}catch(n){console.error("[smbls] onBeforeRemove error:",n)}if(t.__effects){for(let n=0;n<t.__effects.length;n++)t.__effects[n].dispose();t.__effects.length=0}if(t.__eventCleanup){for(let n=0;n<t.__eventCleanup.length;n++)t.__eventCleanup[n]();t.__eventCleanup.length=0}if(t.__children){for(let n=0;n<t.__children.length;n++){let r=t.__children[n],o=e[r];o&&o.__ref&&Dn(o)}t.__children.length=0}if(e.node?.parentNode&&e.node.remove(),e.state?.destroy&&e.state.__element===e&&e.state.destroy(),e.parent?.__ref?.__children){let n=e.parent.__ref.__children.indexOf(e.key);n!==-1&&e.parent.__ref.__children.splice(n,1),delete e.parent[e.key]}try{typeof e.onRemove=="function"&&e.onRemove(e)}catch(n){console.error("[smbls] onRemove error:",n)}e.node=null,e.parent=null,e.__ref=null}}function Nn(){Dn(this)}D();var dt=new Map,vc=null,es=null;function os(){try{let e=O();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}var Cc={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 Ft(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function Lt(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=t*16777619>>>0;return t.toString(36)}function kc(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Lt(t)}function ts(e,t,n){let r=(n?n+"":"")+e+":"+t,o=dt.get(r),s=o?null:Ft(e);if(!o){let a=Cc[e]||Lt(e),c=kc(t);o=n?`_${n}_${a}-${c}`:`_${a}-${c}`,dt.set(r,o)}if(typeof t=="string"&&(t.indexOf("}")!==-1||t.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ft(e)}:${t}}`;return we(i),o}var ns=new WeakMap;function we(e,t){let n=Ac(t);if(!n)return;let r=ns.get(n);if(r||(r=new Set,ns.set(n,r)),!r.has(e)){r.add(e);try{n.insertRule(e,n.cssRules.length)}catch{}}}var rs=new WeakMap;function Ac(e){let t=e||os();if(!t||!t.head)return null;let n=rs.get(t);if(n&&n.ownerNode&&n.ownerNode.parentNode===t.head)return n;let r=t.head.querySelector("style[data-smbls]");r||(r=t.createElement("style"),r.setAttribute("data-smbls",""),t.head.appendChild(r));let o=r.sheet;return rs.set(t,o),vc=o,o}var Oc=8;function Fn(e,t,n){if(!e||typeof e!="object")return"";let r=null,o=0,s=[],i=[];for(let c in e){let f=e[c];f==null||f===!1||f===""||(typeof f=="object"?i.push([c,f]):es?(r||(r=[]),r.push(c,String(f)),o++):s.push(ts(c,String(f),n)))}if(r&&o>=Oc){let c=r.join("\0"),f=es(c),l=f.indexOf("\0"),u=f.substring(0,l),p=f.substring(l+1);if(p){let h=p.split(`
11
- `);for(let d=0;d<h.length;d++)h[d]&&we(h[d])}s.push(u)}else if(r)for(let c=0;c<r.length;c+=2)s.push(ts(r[c],r[c+1],n));let a=[];for(let c=0;c<i.length;c++)a.push(Ec(i[c][0],i[c][1],n));return s.concat(a).join(" ").trim()}var Mn=new Map;function Ec(e,t,n){let r=(n?n+"":"")+e+JSON.stringify(t),o=dt.get(r);if(o){let p=Mn.get(o);if(p)for(let h=0;h<p.length;h++)we(p[h]);return o}o=n?`_${n}_c${Lt(r)}`:`_c${Lt(r)}`;let s="",i=[],a=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),c=(p,h)=>{let d="";for(let g in h){let b=h[g];if(b!=null)if(typeof b=="object")c([...p,g],b);else{if(a(b))continue;d+=`${Ft(g)}:${b};`}}d&&(p.length===0?s+=d:i.push({chain:p,body:d}))};c([],t);let f=p=>{if(!p.length)return`.${o}`;let h=p[0].split(",").map(d=>d.trim()).map(d=>d.includes("&")?d.replace(/&/g,`.${o}`):d.startsWith(":")?`.${o}${d}`:`.${o} ${d}`);for(let d=1;d<p.length;d++){let g=p[d].split(",").map(y=>y.trim()),b=[];for(let y of h)for(let m of g)m.includes("&")?b.push(m.replace(/&/g,y)):m.startsWith(":")?b.push(y+m):b.push(y+" "+m);h=b}return h.join(", ")},l=[];if(e.startsWith("@media")||e.startsWith("@supports")){if(s){let p=`${e}{.${o}{${s}}}`;l.push(p),we(p)}for(let p of i){let h=f(p.chain),d=`${e}{${h}{${p.body}}}`;l.push(d),we(d)}return Mn.set(o,l),dt.set(r,o),o}let u=f([e]);if(s){let p=`${u}{${s}}`;l.push(p),we(p)}for(let p of i){let d=`${f([e,...p.chain])}{${p.body}}`;l.push(d),we(d)}return Mn.set(o,l),dt.set(r,o),o}function Vt(e,t){let n="";for(let r in t){let o="";for(let s in t[r])o+=`${Ft(s)}:${t[r][s]};`;n+=`${r}{${o}}`}return we(`@keyframes ${e}{${n}}`),e}var Tc=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],$c=["none","forwards","backwards","both"],Pc=["normal","reverse","alternate","alternate-reverse"],Rc=["running","paused"],Ic=e=>/^[\d.]+m?s$/.test(e),jc=0,ss=new Map,Ln=(e,t)=>{let{animation:n}=t.context&&t.context.designSystem||{};if(R(e)){let o=JSON.stringify(e),s=ss.get(o);if(s)return s;let i=`smbls-anim-${jc++}`,a=Vt(i,e);return ss.set(o,a),a}let r=n&&n[e];return R(r)?Vt(e,r):e},Dc=(e,t)=>{let{animation:n}=t.context&&t.context.designSystem||{},r=e.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of r)n&&n[u]?o=u:Ic(u)?s.push(u):Tc.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):Pc.includes(u)?c=u:$c.includes(u)?f=u:Rc.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},is={animation:(e,t)=>{if(S(e)&&e.includes(" ")){let n=Dc(e,t);return{animationName:Ln(n.name||e,t),animationDuration:n.durations[0]||de(t.animationDuration||"A").timing,animationDelay:n.durations[1]||de(t.animationDelay||"0s").timing,animationTimingFunction:n.timingFunction||ye(t.animationTimingFunction||"ease"),animationFillMode:n.fillMode||t.animationFillMode||"both",animationIterationCount:n.iterationCount!=null?n.iterationCount:t.animationIterationCount||1,animationPlayState:n.playState||t.animationPlayState,animationDirection:n.direction||t.animationDirection}}return{animationName:Ln(e,t),animationDuration:de(t.animationDuration||"A").timing,animationDelay:de(t.animationDelay||"0s").timing,animationTimingFunction:ye(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:Ln(e,t)}),animationDuration:e=>({animationDuration:de(e).timing}),animationDelay:e=>({animationDelay:de(e).timing}),animationTimingFunction:e=>({animationTimingFunction:ye(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};D();var cs={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>k("height",e,t),width:(e,t)=>k("width",e,t),boxSizing:e=>tr(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("height",t),...F("width",n||t)}},inlineSize:(e,t)=>k("inlineSize",e,t),blockSize:(e,t)=>k("blockSize",e,t),minWidth:(e,t)=>k("minWidth",e,t),maxWidth:(e,t)=>k("maxWidth",e,t),widthRange:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("minWidth",t),...F("maxWidth",n||t)}},minHeight:(e,t)=>k("minHeight",e,t),maxHeight:(e,t)=>k("maxHeight",e,t),heightRange:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("minHeight",t),...F("maxHeight",n||t)}},size:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...k("inlineSize",t),...k("blockSize",n||t)}},minBlockSize:(e,t)=>k("minBlockSize",e,t),minInlineSize:(e,t)=>k("minInlineSize",e,t),maxBlockSize:(e,t)=>k("maxBlockSize",e,t),maxInlineSize:(e,t)=>k("maxInlineSize",e,t),minSize:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("minInlineSize",t),...F("minBlockSize",n||t)}},maxSize:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("maxInlineSize",t),...F("maxBlockSize",n||t)}},borderWidth:(e,t)=>k("borderWidth",e,t),padding:(e,t)=>k("padding",e,t),scrollPadding:(e,t)=>k("scrollPadding",e,t),paddingInline:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("paddingInlineStart",t),...F("paddingInlineEnd",n||t)}},paddingBlock:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("paddingBlockStart",t),...F("paddingBlockEnd",n||t)}},paddingTop:(e,t)=>k("paddingBlockStart",e,t),paddingBottom:(e,t)=>k("paddingBlockEnd",e,t),paddingLeft:(e,t)=>k("paddingInlineStart",e,t),paddingRight:(e,t)=>k("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>k("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>k("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>k("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>k("paddingInlineEnd",e,t),margin:(e,t)=>k("margin",e,t),marginInline:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{...F("marginInlineStart",t),...F("marginInlineEnd",n||t)}},marginBlock:(e,t)=>{if(!S(t.marginBlock))return;let[n,r]=t.marginBlock.split(" ");return{...F("marginBlockStart",n),...F("marginBlockEnd",r||n)}},marginTop:(e,t)=>k("marginBlockStart",e,t),marginBottom:(e,t)=>k("marginBlockEnd",e,t),marginLeft:(e,t)=>k("marginInlineStart",e,t),marginRight:(e,t)=>k("marginInlineEnd",e,t),marginInlineStart:(e,t)=>k("marginInlineStart",e,t),marginInlineEnd:(e,t)=>k("marginInlineEnd",e,t),marginBlockStart:(e,t)=>k("marginBlockStart",e,t),marginBlockEnd:(e,t)=>k("marginBlockEnd",e,t),gap:e=>({gap:Wo(e)}),columnGap:(e,t)=>Ge(t,"columnGap",e),rowGap:(e,t)=>Ge(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let n=t.reverse;if(!S(e))return;let[r,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!S(e))return;let[t,n]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:n}},round:(e,t)=>Pn(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>Pn(e??t.round,t,"borderRadius")};var as={fontSize:e=>Mo(e)||e,fontFamily:e=>({fontFamily:Do(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})};var ls={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,n,r)=>{if(!e)return;let o=r.assets&&r.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=r.files&&r.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0};var fs={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(n=>z(n,"k").k).join(" ")}},left:e=>z(e,"left"),top:e=>z(e,"top"),right:e=>z(e,"right"),bottom:e=>z(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(n=>z(n,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(n=>z(n,"k").k);return{left:t[0],right:t[1]||t[0]}}};D();var ae=({context:e,state:t})=>{let n=t?.root?.globalTheme||e.designSystem?.globalTheme;return n==="auto"?null:n},us={theme:(e,t)=>{if(e)return t.themeModifier?ft(e,`@${t.themeModifier}`):ft(e)},color:(e,t)=>{let n=ae(t);if(e)return{color:te(e,n)}},background:(e,t)=>{let n=ae(t);if(e)return S(e)&&e.includes("gradient")?{background:Tn(e,n)}:{background:te(e,n)}},backgroundColor:(e,t)=>{let n=ae(t);if(e)return{backgroundColor:te(e,n)}},backgroundImage:(e,t,n,r)=>{let o=ae(t);if(!e)return;let s=r.assets&&r.assets[e];if(s&&s.content)e=s.content.src;else{let i=r.files&&r.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:Go(e,o)}},textStroke:e=>({WebkitTextStroke:Bo(e)}),outline:e=>({outline:Se(e)}),outlineOffset:(e,t)=>k("outlineOffset",e,t),border:e=>({border:Se(e)}),borderColor:(e,t)=>{let n=ae(t);if(e)return{borderColor:te(e,n)}},borderTopColor:(e,t)=>{let n=ae(t);if(e)return{borderTopColor:te(e,n)}},borderBottomColor:(e,t)=>{let n=ae(t);if(e)return{borderBottomColor:te(e,n)}},borderLeftColor:(e,t)=>{let n=ae(t);if(e)return{borderLeftColor:te(e,n)}},borderRightColor:(e,t)=>{let n=ae(t);if(e)return{borderRightColor:te(e,n)}},borderLeft:e=>({borderLeft:Se(e)}),borderTop:e=>({borderTop:Se(e)}),borderRight:e=>({borderRight:Se(e)}),borderBottom:e=>({borderBottom:Se(e)}),shadow:(e,t)=>{let n=ae(t);if(e)return{boxShadow:Uo(e,n)}},boxShadow:(e,t)=>{if(!S(e))return;let[n,r]=e.split("!importan"),o=ae(t),s=r?" !important":"";return{boxShadow:En(n.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:En(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:Se(e)})};var ps={transition:e=>({transition:zo(e)}),transitionDuration:e=>({transitionDuration:$n(e)}),transitionDelay:e=>({transitionDelay:$n(e)}),transitionTimingFunction:e=>({transitionTimingFunction:ye(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};D();var ds={flow:(e,t)=>{let n=t.reverse;if(!S(e))return;let[r,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+(!r.includes("-reverse")&&n?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[n,r]=e.split(" ");return{display:"flex",alignItems:n,justifyContent:r}}};var hs={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})};var X={...is,...cs,...as,...ls,...fs,...us,...ps,...ds,...hs};var Z=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);D();function ys(e,t,n){let r=e?.context?.analyze;if(!r||!r.emit||t==="warn"&&!r.shouldCapture("warnings")||t==="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:t==="error"?"error":"warning",level:t,hook:t==="error"?"el.error":"el.warn",element:{key:e.key!=null?String(e.key):null,name:e.__name||null,tag:e.tag||null},message:o||null,args:n})}function Nc(...e){return ys(this,"warn",e),Jr.apply(this,e)}function Mc(...e){return ys(this,"error",e),Xr.apply(this,e)}var gs={update:jn,remove:Nn,getDB:to,getQuery:no,getRootData:qr,getChildren:Gr,getPath:Wr,nextElement:Zr,previousElement:Yr,verbose:vn,warn:Nc,error:Mc,variables:eo,spotByPath:Ur,set(e,t){if(this.removeContent(),e!=null){let n=this.context?.__create;n&&n(e,this,"content",t)}this.__ref&&(this.__ref.contentManaged=!0)},reset(e){let t=this.context?.__create;if(!t)return this;let n=this.parent,r=this.key,o=this.parse();return this.remove(),t(o,n,r,e)},lookup(e){let t=this.parent;for(;t;){if(typeof e=="function"){if(e(t))return t}else if(typeof e=="string"){if(t.key===e)return t;if(t[e]&&t[e].__ref)return t[e]}t=t.parent}return null},lookdown(e){let t=this.__ref;if(!t?.__children)return null;for(let n of t.__children){let r=this[n];if(!r)continue;if(typeof e=="function"){if(e(r))return r}else if(typeof e=="string"&&r.key===e)return r;let o=r.lookdown?.(e);if(o)return o}return null},lookdownAll(e,t=[]){let n=this.__ref;if(!n?.__children)return t;for(let r of n.__children){let o=this[r];o&&(typeof e=="function"?e(o)&&t.push(o):typeof e=="string"&&o.key===e&&t.push(o),o.lookdownAll?.(e,t))}return t},getRef(){return this.__ref},getRoot:Hr,getRootState:zr,getRootContext:Kr,getContext:Qr,parse(e){let t={},n=e?new Set(e):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){t[o]=r[o];continue}typeof this[o]!="function"&&(t[o]=this[o])}return t},parseDeep(e){let t=this.parse(e),n=this.__ref;if(n?.__children)for(let r of n.__children)this[r]?.parseDeep&&(t[r]=this[r].parseDeep(e));return t},keys(){return Object.keys(this)},log(...e){if(e.length){let t={};for(let n of e)t[n]=this[n];console.log(t)}else console.log(this)},setProps(e,t){return this.update(e,t)},setNodeStyles(e){if(this.node?.style)for(let t in e){let n=e[t];if(n==null)continue;let r=t.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(r,o,"important")}},call(e,...t){let n=this.context,r=n?.methods?.[e]||n?.functions?.[e]||n?.utils?.[e]||this[e];if(typeof r=="function")return r.call(this,...t)},removeContent(){let e=this.__ref;if(!e?.__children)return;let t=this.content;if(t?.remove){t.remove(),delete this.content;let n=e.__children.indexOf("content");n!==-1&&e.__children.splice(n,1)}t?.node?.parentNode&&t.node.parentNode.removeChild(t.node)}},ms=new WeakMap;function Fc(e){if(!e)return gs;let t=ms.get(e);if(t)return t;t=Object.create(gs);let n=e.methods;if(n)for(let r in n)t[r]=n[r];return ms.set(e,t),t}function Vn(e){let t=Fc(e.context);Object.setPrototypeOf(e,t)}D();kt();var Lc=(e,t,n)=>{Object.defineProperty(e,t,{value:n,enumerable:!1,configurable:!0,writable:!0})},ve=(e,t)=>{if(U(t)){let o=t.__raw||t;t.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){t[s]=!t[s]},enumerable:!1,configurable:!0}),t.set||Object.defineProperty(o,"set",{value:function(s,i={}){return t.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&t.update(s,i),t},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,a={}){let c=s.split("."),f=t;for(let l=0;l<c.length-1;l++)f[c[l]]===void 0&&(f[c[l]]={}),f=f[c[l]];return f[c[c.length-1]]=i,t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),a=t;for(let c=0;c<i.length;c++){if(a==null)return;a=a[i[c]]}return a},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let a=s.split("."),c=t;for(let f=0;f<a.length-1;f++){if(c==null)return t;c=c[a[f]]}return c&&delete c[a[a.length-1]],t},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=t.parse();return t.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let a=s(t);return t.update(a,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(t),t.update(t.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let a=t;for(;a?.parent&&U(a.parent);)a=a.parent;return a.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(t.parent)return t.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return t.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=t,i=U(s)?s:null;for(let a=0;a<64&&s?.parent&&s.parent!==s;a++)s=s.parent,U(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!t||typeof t!="object")return;let n=()=>{for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&delete t[o]},r={update(o){if(!o||typeof o!="object")return t;for(let s in o)t[s]=o[s];return t},apply(o){if(typeof o!="function")return t;let s=o(t);return s?t.update(s):t},parse(){return{...t}},toggle(o){return t[o]=!t[o],t},set(o){if(!o||typeof o!="object")return t;n();for(let s in o)t[s]=o[s];return t},replace(o){return t.set(o)},clean(){return n(),t}};for(let o in r)typeof t[o]!="function"&&Lc(t,o,r[o])};var vh=new Proxy(Object.create(null),{get(){},has(){return!1}});D();var Bn={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]};var Vc=e=>e.startsWith("aria")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"aria-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):e.startsWith("data")&&e.length>4&&e.charCodeAt(4)>=65&&e.charCodeAt(4)<=90?"data-"+e.charAt(4).toLowerCase()+e.slice(5).replace(/([A-Z])/g,t=>"-"+t.toLowerCase()):null,ht=(e,t)=>t.startsWith("aria-")||t.startsWith("data-")||Vc(t)||Bn.default.includes(t)?!0:Object.prototype.hasOwnProperty.call(Bn,e)?Bn[e].includes(t):!1;var Bt=(e,t)=>{let n=e.call("exec",t,e);if(n)return S(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n)),n},bs=(e,t)=>{let n=(e.preSrc||"")+(Bt(e,t)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:r}=e;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},xs={src:e=>bs(e,e.src),href:e=>Bt(e,e.href),action:e=>Bt(e,e.action),poster:e=>bs(e,e.poster),data:e=>Bt(e,e.data)},_s=e=>{let t=e.tag||"div",n={};for(let r in xs)if(e[r]!==void 0&&ht(t,r)){let o=xs[r](e);o!==void 0&&(n[r]=o)}return n};var Bc=1;function ze(e){return e.length>2&&e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90}function Uc(e){return e.charAt(2).toLowerCase()+e.slice(3)}function Gc(e){return e.toLowerCase()}function zn(e,t){let n={...e};for(let r in t){let o=n[r],s=t[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=zn(o,s):n[r]=s}return n}function ne(e,t,n,r={},o){if(e==null||e===!1)return null;(typeof e=="string"||typeof e=="number")&&(e={text:e});let s=Object.create(null);s.key=n||e.key||`_${Bc++}`,s.parent=t||null,s.context=e.context||t?.context||r.context||{},s.context.__create||(s.context.__create=ne);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:t?.__ref?.root||s,path:t?.__ref?.path?[...t.__ref.path,s.key]:[s.key]};if(n&&!e.extends&&!e.extend){let g=n.indexOf("_");if(g>0){let b=n.substring(0,g),y=s.context?.components;y&&(y[b]||y["smbls."+b])&&(e={extends:b,...e})}}pt(s,e,r);let a=new Set(["childProps","attr","style","scope","data"]),c=s.props&&typeof s.props=="object"?s.props:null;for(let g in e){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let b=e[g],y=s[g],m=y&&b&&typeof y=="object"&&typeof b=="object"&&!Array.isArray(y)&&!Array.isArray(b)&&typeof y!="function"&&typeof b!="function";m&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=zn(y,b):m&&a.has(g)?s[g]={...y,...b}:s[g]=b}function f(g){for(let b in g){let y=g[b],m=s[b],x=m&&y&&typeof m=="object"&&typeof y=="object"&&!Array.isArray(m)&&!Array.isArray(y)&&typeof m!="function"&&typeof y!="function";x&&b.charCodeAt(0)>=65&&b.charCodeAt(0)<=90?s[b]=zn(m,y):x&&a.has(b)?s[b]={...m,...y}:s[b]=y}}c&&f(c),e.props&&typeof e.props=="object"&&f(e.props),e.data!==void 0&&(s.data=e.data),e.classlist!==void 0&&(s.classlist=e.classlist),e.text!==void 0&&(s.text=e.text),e.html!==void 0&&(s.html=e.html);let l=s.scope&&typeof s.scope=="object"?s.scope:null,u=t?.scope,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,h=u||p||null;if(e.scope!==void 0||l){let g={};l&&Object.assign(g,l),e.scope!==void 0&&Object.assign(g,e.scope),s.scope=Zt(g,h)}else h&&(s.scope=h);if(e.if!==void 0&&(s.if=e.if),Vn(s),Wc(s,t,e),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(b){if(g=!1,i.__ifError=b,typeof console<"u"&&console.warn){let y=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${y} \u2014 treating as false:`,b?.message||b)}}else g=s.if;i.__if=!!g}if(i.__if)typeof e.if=="function"&&(i.__ifInitialized=!0);else return t&&(t[s.key]=s),typeof e.if=="function"&&Hn(s,{if:e.if}),s;s.tag||(s.tag=He(s)),Ce("Init",s,r);let d=s.node=qe(s);if(!d)return s;Ce("AttachNode",s,r),d.setAttribute&&s.key&&d.setAttribute("data-key",s.key),d.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&d.setAttribute("data-smbls-app",s.context.key),s.id&&d.setAttribute&&(d.id=s.id),Cs(s,r),Hn(s,e),qn(s),ws(s),Zc(s);try{ks(s,r)}catch(g){if(typeof console<"u"&&console.error){let b=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${b}:`,g?.message||g,g?.stack?`
1
+ "use strict";var SymbolsEmbed=(()=>{var ze=Object.defineProperty;var Ts=Object.getOwnPropertyDescriptor;var $s=Object.getOwnPropertyNames;var Ps=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(t&&(e=t(t=0)),e);var Dt=(t,e)=>{for(var r in e)ze(t,r,{get:e[r],enumerable:!0})},Rs=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $s(e))!Ps.call(t,o)&&o!==r&&ze(t,o,{get:()=>e[o],enumerable:!(n=Ts(e,o))||n.enumerable});return t};var Is=t=>Rs(ze({},"__esModule",{value:!0}),t);var at,Tt,cr=C(()=>{"use strict";at=globalThis,Tt=at.document});var Se,ar=C(()=>{"use strict";cr();Se=t=>typeof at<"u"&&(at.Node&&t instanceof at.Node||at.Window&&t instanceof at.Window||t===at||t===document)});var I,S,we,k,R,xt,tn,Qt=C(()=>{"use strict";I=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,S=t=>typeof t=="string",we=t=>typeof t=="number",k=t=>typeof t=="function",R=t=>Array.isArray(t),xt=t=>t===null?!1:typeof t=="object",tn=t=>t===void 0});var en,fr=C(()=>{"use strict";Ce();en=(t,e=[])=>t.reduce((r,n)=>lr(r,Ft(n,{exclude:e}),e),{})});function ve(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Ls[n],i=e||this.state||{},c=this;return t.replace(s,(a,l,f,u)=>{let p=f.trim();if(u){let h=c?.context,d=h?.functions?.[u]||h?.utils?.[u]||h?.methods?.[u]||h?.snippets?.[u]||c?.[u];if(d&&typeof d=="function")try{return String(d.call(c,p)??"")}catch{return""}return""}if(l){let h=(l.match(/\.\.\//g)||[]).length,d=i;for(let b=0;b<h;b++){if(!d||!d.parent)return"";d=d.parent}if(p==="parent")return String(d.value??"");let g=Jt(d,p);return String(g??"")}else{let h=Jt(i,p);if(h!=null)return String(h);let d=c?.context?.polyglot;if(d?.translations){let g=i?.root?.lang||i?.lang||c?.context?.state?.lang||d.defaultLang||"en",b=d.translations[g];if(b){let y=Jt(b,p);if(y!=null&&typeof y!="object")return String(y);for(let x in b){let _=b[x];if(_&&typeof _=="object"&&!Array.isArray(_)){let w=Jt(_,p);if(w!=null&&typeof w!="object")return String(w)}}}let m=Jt(d.translations,p);if(m!=null&&typeof m!="object")return String(m)}return""}})}var Ls,Jt,rn=C(()=>{"use strict";Ls={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Jt=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t)});var Vs,Bs,Us,nn,ur=C(()=>{"use strict";Vs=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"]),Bs=new Set(["update","__element"]),Us=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"]),nn=new Set(["node","context","extends","__element","__ref",...Us,...Vs,...Bs])});var on,Mt,lr,sn,Ft,Ce=C(()=>{"use strict";Qt();fr();ar();ur();on=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,Mt=(t,e,r,n)=>{if(k(t))return e?typeof t.call!="function"?t:t.call(e,e,r||e.state,n||e.context):void 0;if(t!=null&&e?.context?.plugins&&(R(t)||I(t)&&!Se(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 Mt(i,e,r,n)}}return t},lr=(t,e,r=nn)=>sn(t,e,r,null),sn=(t,e,r,n)=>{if(t===e)return t;if(n){for(let s=0;s<n.length;s+=2)if(n[s]===t&&n[s+1]===e)return t}let o=r instanceof Set;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||on(s)||s==="constructor"||s==="prototype"||(o?r.has(s):r.includes(s)))continue;let i=t[s],c=e[s];if(xt(i)&&xt(c)){let a=n||[];a.push(t,e),sn(i,c,r,a),a.length-=2}else i===void 0&&(t[s]=c)}return t},Ft=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,visited:s=new WeakMap,handleExtends:i=!1}=e;if(!xt(t)||Se(t))return t;if(s.has(t))return s.get(t);let c=r instanceof Set?r:r.length>3?new Set(r):null,a=u=>c?c.has(u):r.includes(u),l=R(t)?[]:{};s.set(t,l);let f=[[t,l]];for(;f.length;){let[u,p]=f.pop();for(let h in u){if(!Object.prototype.hasOwnProperty.call(u,h)||on(h)||h==="__proto__"||a(h))continue;let d=u[h];if(!(n&&d===void 0)&&!(o&&d===null)){if(Se(d)){p[h]=d;continue}if(i&&h==="extends"&&R(d)){p[h]=en(d,r);continue}if(k(d)){p[h]=d;continue}if(xt(d))if(s.has(d))p[h]=s.get(d);else{let g=R(d)?[]:{};s.set(d,g),p[h]=g,f.push([d,g])}else p[h]=d}}}return l}});var cn=C(()=>{"use strict"});var an,Gs,pr,fn=C(()=>{"use strict";an="production",Gs=(t=an)=>t==="production",pr=(t=an)=>!Gs(t)});var Nt,ke=C(()=>{"use strict";Nt=(t,e,...r)=>{let n=e?.context?.plugins;if(!n)return!1;let o=!1;for(let s of n)typeof s[t]=="function"&&(s[t](e,...r),o=!0);return o}});var ln=C(()=>{"use strict"});var un=C(()=>{"use strict"});var Va,pn=C(()=>{"use strict";Va=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent)});var dn=C(()=>{"use strict"});var hn=C(()=>{"use strict"});var gn=C(()=>{"use strict"});var yn=C(()=>{"use strict"});var mn=C(()=>{"use strict"});var bn=C(()=>{"use strict"});var xn=C(()=>{"use strict"});var _n=C(()=>{"use strict"});var Sn,dr=C(()=>{"use strict";Sn={}});var vn={};Dt(vn,{setup:()=>zs,supabaseAdapter:()=>Cn});var wn,Ws,zs,hr,Hs,Cn,kn=C(()=>{"use strict";wn=new Map,Ws=(t,e,r)=>`${t}|${e}|${r?"off":"on"}`,zs=async({url:t,key:e,projectId:r,createClient:n,auth:o,retry:s,adapter:i,...c})=>{let a=t||r&&`https://${r}.supabase.co`;if(!a||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient),o===!1&&(c.auth={autoRefreshToken:!1,persistSession:!1,detectSessionInUrl:!1});let l=Ws(a,e,o===!1),f=wn.get(l);return f||(f=await n(a,e,c),f?.auth&&wn.set(l,f)),!f||!f.auth?null:Cn(f)},hr=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},Hs=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},Cn=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,schema:r,select:n,params:o,headers:s,...i})=>{let a=(r?t.schema(r):t).from(e).select(n||"*");if(a=hr(a,o),a=Hs(a,i),s)try{for(let l in s)a.setHeader?a=a.setHeader(l,s[l]):t.rest&&(t.rest.headers[l]=s[l])}catch(l){console.warn("[supabase] setHeader failed:",l.message)}return a},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).insert(n).select(o||"*"),update:({from:e,schema:r,data:n,params:o,select:s})=>{let c=(r?t.schema(r):t).from(e).update(n);return c=hr(c,o),c.select(s||"*")},upsert:({from:e,schema:r,data:n,select:o})=>(r?t.schema(r):t).from(e).upsert(n).select(o||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=hr(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},c=>o(c.new,c.old,c)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var En={};Dt(En,{restAdapter:()=>An,setup:()=>qs});var Ks,_t,qs,An,On=C(()=>{"use strict";Ks=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},_t=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},qs=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return An(t,e,r,n)},An=(t,e={},r,n={})=>{let o=r?.token||null,s=f=>{let u={...e,...f};return o&&(u.Authorization=`Bearer ${o}`),u},i=f=>({...s(f),"Content-Type":"application/json"}),c=f=>({...n,...f}),a=(f,u)=>{let p=u||t;if(f&&(f.startsWith("http://")||f.startsWith("https://")))return f;let h=f&&!f.startsWith("/")?"/":"";return`${p}${h}${f||""}`};return{name:"rest",setToken:f=>{o=f},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let f=await _t(a(r.sessionUrl,r.baseUrl),c({headers:s()}));return f.error?null:f.data},signIn:async f=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await _t(a(r.signInUrl,r.baseUrl),c({method:"POST",headers:i(),body:JSON.stringify(f)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await _t(a(r.signOutUrl,r.baseUrl),c({method:"POST",headers:s()})),o=null,{error:null}),select:({from:f,params:u,select:p,limit:h,offset:d,order:g,single:b,headers:m,baseUrl:y})=>{let x={...u};return p&&(x.select=p),h&&(x.limit=h),d&&(x.offset=d),b&&(x.single=!0),g&&(typeof g=="string"?x.order=g:Array.isArray(g)?x.order=g.map(_=>`${_.by}:${_.asc===!1?"desc":"asc"}`).join(","):g.by&&(x.order=`${g.by}:${g.asc===!1?"desc":"asc"}`)),_t(Ks(y||t,f||"",x),c({headers:s(m)}))},rpc:({from:f,params:u,headers:p,baseUrl:h})=>_t(a(`rpc/${f}`,h),c({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:f,data:u,headers:p,baseUrl:h})=>_t(a(f,h),c({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:f,data:u,params:p,method:h,headers:d,baseUrl:g})=>{let b=p?.id||u?.id,m=b?`${f}/${b}`:f;return _t(a(m,g),c({method:h||"PATCH",headers:i(d),body:JSON.stringify(u)}))},delete:({from:f,params:u,headers:p,baseUrl:h})=>{let d=u?.id,g=d?`${f}/${d}`:f;return _t(a(g,h),c({method:"DELETE",headers:s(p)}))}}}});var $n={};Dt($n,{localAdapter:()=>Tn,setup:()=>Js});var gr,Qs,Js,Tn,Pn=C(()=>{"use strict";gr=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Qs=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,c=e.asc!==!1;s.sort((a,l)=>a[i]<l[i]?c?-1:1:a[i]>l[i]?c?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Js=async({data:t,...e})=>Tn(t,e),Tn=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=f=>{if(!r[f])if(o)try{let u=localStorage.getItem(s+f);r[f]=u?JSON.parse(u):t[f]||[]}catch{r[f]=t[f]||[]}else r[f]=t[f]||[];return r[f]},c=f=>{if(o)try{localStorage.setItem(s+f,JSON.stringify(r[f]))}catch{}},a=(f,u,p,h)=>{let d=n[f];if(d)for(let g of d)g(p,h,{event:u,table:f})},l=Date.now();return{name:"local",store:r,select:async({from:f,params:u,...p})=>{let d=i(f).filter(g=>gr(g,u));return Qs(d,p)},insert:async({from:f,data:u})=>{let p=i(f),d=(Array.isArray(u)?u:[u]).map(g=>{let b={id:g.id||++l,...g};return p.push(b),b});c(f);for(let g of d)a(f,"INSERT",g,null);return{data:Array.isArray(u)?d:d[0],error:null}},update:async({from:f,data:u,params:p})=>{let h=i(f),d=[];for(let g=0;g<h.length;g++)if(gr(h[g],p)){let b={...h[g]};Object.assign(h[g],u),d.push(h[g]),a(f,"UPDATE",h[g],b)}return c(f),{data:d,error:null}},delete:async({from:f,params:u})=>{let p=i(f),h=[];for(let d=p.length-1;d>=0;d--)gr(p[d],u)&&(h.push(p[d]),p.splice(d,1),a(f,"DELETE",null,h[h.length-1]));return c(f),{data:h,error:null}},subscribe:({from:f,on:u},p)=>{n[f]||(n[f]=[]);let h=(d,g,b)=>{u&&u!=="*"&&u!==b.event||p(d,g,b)};return n[f].push(h),()=>{let d=n[f].indexOf(h);d>-1&&n[f].splice(d,1)}}}}});var se={};Dt(se,{createAdapter:()=>ri,default:()=>di,executeFetch:()=>_r,fetchPlugin:()=>pi,initAdapterAuth:()=>$e,parseDuration:()=>te,queryClient:()=>ui,registerAdapter:()=>ei,resolveDb:()=>jn});var Xs,Ys,Ae,Yt,Ee,Zt,Zs,ti,ei,ri,jn,te,q,Fn,Xt,ni,oe,ee,re,Oe,br,Te,oi,Rn,yr,Mn,Nn,Lt,In,si,Dn,ii,Pe,Ln,$e,xr,rt,ft,ne,$t,pt,St,ci,ai,fi,mr,li,_r,ui,pi,di,ie=C(()=>{"use strict";M();Xs=["select","rpc","insert","update","delete","subscribe"],Ys={supabase:()=>Promise.resolve().then(()=>(kn(),vn)),rest:()=>Promise.resolve().then(()=>(On(),En)),local:()=>Promise.resolve().then(()=>(Pn(),$n))},Ae=Symbol.for("@symbo.ls/fetch:CUSTOM_ADAPTERS"),Yt=(()=>{if(typeof globalThis<"u"&&globalThis[Ae])return globalThis[Ae];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ae,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ae]}catch{}return t})(),Ee=Symbol.for("@symbo.ls/fetch:PENDING_ADAPTERS"),Zt=(()=>{if(typeof globalThis<"u"&&globalThis[Ee])return globalThis[Ee];let t={};if(typeof globalThis<"u")try{return Object.defineProperty(globalThis,Ee,{value:t,writable:!1,configurable:!1,enumerable:!1}),globalThis[Ee]}catch{}return t})(),Zs=5e3,ti=t=>new Promise(e=>{if(Yt[t])return e(Yt[t]);let r=Zt[t]||(Zt[t]=[]),n=!1,o=()=>{n||(n=!0,e(Yt[t]||null))};r.push(o),setTimeout(o,Zs)}),ei=(t,e)=>{Yt[t]=e;let r=Zt[t];if(r&&r.length){Zt[t]=[];for(let n of r)n()}},ri=t=>{let e={};for(let r of Xs)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},jn=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=Yt[n]||Ys[n];if(!o&&(o=await ti(n),!o))throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);let s=await o();if(!s||typeof s.setup!="function")throw new Error(`Adapter "${n}" loader returned a module without a setup() function. Got keys: [${Object.keys(s||{}).join(", ")}]. Likely a bundler chunk-resolution issue.`);return s.setup(r)},te=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},q=new Map,Fn=new Map,Xt=new Map,ni=(t,e)=>{if(t.cache?.key)return t.cache.key;let r=ii(t.params),n=`${t.from}:${t.method}:${JSON.stringify(r||"")}`;return e?`${n}:${e}`:n},oe=t=>q.get(t)||null,ee=(t,e,r)=>{let n=q.get(t),o={data:e,error:r,time:Date.now(),stale:!1};q.set(t,o);let s=Fn.get(t);if(s)for(let i of s)k(i)&&i(o);return o},re=t=>{if(t){let e=q.get(t);e&&(e.stale=!0);return}for(let[,e]of q)e.stale=!0},Oe=t=>{if(t){q.delete(t);return}q.clear()},br=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:S(t)?{staleTime:te(t),gcTime:3e5}:{staleTime:te(t.stale||t.staleTime)||6e4,gcTime:te(t.gc||t.gcTime||t.expire)||3e5,key:t.key},Te=null,oi=()=>{Te||(Te=setInterval(()=>{let t=Date.now();for(let[e,r]of q){let n=Fn.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&q.delete(e)}},3e4),Te.unref&&Te.unref())};oi();Rn=3,yr=t=>Math.min(1e3*2**t,3e4),Mn=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Rn,delay:yr}:typeof e=="number"?{count:e,delay:yr}:{count:e.count??Rn,delay:k(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:yr}},Nn=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let c=k(n)?n(s,o):n;await new Promise(a=>setTimeout(a,c));continue}return i}return i}catch(i){if(o=i,s<r){let c=k(n)?n(s,i):n;await new Promise(a=>setTimeout(a,c));continue}throw i}return{data:null,error:o}},Lt={focus:new Set,online:new Set},In=!1,si=()=>{if(In||typeof window>"u")return;In=!0;let t=()=>{for(let r of Lt.focus)r()},e=()=>{for(let r of Lt.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Dn=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(S(t))return{from:t,method:"select",query:!0,on:"create"};if(I(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},ii=t=>(!t||k(t),t),Pe=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},Ln=(t,e,r)=>{let n;if(!t)n=void 0;else if(k(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=k(s)?s(e,e.state):s}}return n},$e=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},xr=async(t,e)=>{if(k(t.select))return t.auth!==!1&&await $e(t,e),t;if(t.__resolved)return t.auth!==!1&&await $e(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=jn(t);let r=await t.__resolving;return delete t.__resolving,r?(r.auth=t.auth,r.url=t.url,r.key=t.key,t.__resolved=r,e.fetch=r,t.auth!==!1&&await $e(r,e),r):null},rt=(t,e,...r)=>{let n=k(t[e])?t[e]:null;n&&n.call(t,...r,t,t.state,t.context)},ft=(t,e,r,...n)=>{let o=t&&k(t[r])?t[r]:null;o&&o.call(e,...n,e,e.state,e.context)},ne=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},$t=(t,e,r,n={})=>{let o=r&&r.startsWith("~/"),s=o&&t.state?.root||t.state;if(s?.update)if(o){let i=r.slice(2);e&&typeof e=="object"&&!Array.isArray(e)&&i in e?s.update(e,{preventFetch:!0,...n}):s.update({[i]:e},{preventFetch:!0,...n})}else{let i=r?{[r]:e}:e;s.update(i,{preventFetch:!0,...n})}},pt=(t,e)=>{let r=t?.__ref;r&&(r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error)},St=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||!e||!e.__ref||t.enabled===!1||k(t.enabled)&&!t.enabled(e,e.state)||t.skip===!0||k(t.skip)&&t.skip(e,e.state))return;let s=await xr(o,r);if(!s||!e.__ref)return;let i=e.__ref,{from:c,method:a,query:l,params:f,cache:u,transform:p,single:h,auth:d,fields:g,as:b,limit:m,offset:y,order:x,headers:_,baseUrl:w,page:v,cursor:T,getNextPageParam:Y,getPreviousPageParam:B,infinite:Z,placeholderData:U,initialData:gt,select:N,keepPreviousData:D}=t,st=S(N)?N:void 0;if(l&&k(e.getQuery)){let P=e.getQuery(s.name||"paths");P&&(st=P.select||P.length&&P.join(",")||st)}let ut=Ln(f,e,r),it=br(u),ge=Mn(t),Ue=Pe(e,r),Es=Ue?`:${Ue}`:"",L=it?u?.key||`${c}:${a}:${JSON.stringify(ut||"")}${Z?":infinite":""}${v?":p"+JSON.stringify(v):""}${Es}`:null;if(!i.__fetchInitialized&&L&&(i.__fetchInitialized=!0,gt!==void 0)){let P=k(gt)?gt():gt;ee(L,P,null)}if((a==="select"||a==="rpc")&&L&&it){let P=oe(L);if(P&&!P.error){let $=Date.now()-P.time,j=P.stale||$>(it.staleTime||0),E=P.data;if(k(N)&&(E=N(E,e,e.state)),p&&(E=p(E,e,e.state)),$t(e,E,b),!j){pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(U!==void 0){let $=k(U)?U(e,e.state):U;$!==void 0&&$t(e,$,b)}}if(L&&Xt.has(L)&&!n.force){let P=Xt.get(L);try{let $=await Promise.race([P,new Promise((j,E)=>setTimeout(()=>E("DEDUP_TIMEOUT"),15e3))]);if($?.data!==void 0){let j=$.data;k(N)&&(j=N(j,e,e.state)),p&&(j=p(j,e,e.state)),$t(e,j,b),rt(e,"onFetchComplete",j),ft(t,e,"onFetchComplete",j)}}catch{}return}let Os=!oe(L)?.data;pt(e,{isFetching:!0,isLoading:Os,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),rt(e,"onFetchStart"),ft(t,e,"onFetchStart");let yt=r?.analyze?.emitNetwork,Ge=yt?typeof performance<"u"?performance.now():Date.now():0;yt&&yt({phase:"start",mode:"query",from:c,method:a,cacheKey:L,lang:Ue});let Jr=Nn(async()=>{if(d!==!1&&s.auth!==!1&&s.getSession){let E=await s.getSession();if(d===!0&&!E){let K={message:"Not authenticated"};return pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:K,status:"error",fetchStatus:"idle"}),rt(e,"onFetchError",K),ft(t,e,"onFetchError",K),{data:null,error:K}}}let P=s[a];if(!k(P))return{data:null,error:{message:`Method "${a}" not found on adapter`}};let $={from:c,select:st,params:ut,single:h,limit:m,offset:y,order:x,headers:_,baseUrl:w},j=Pe(e,r);if(j&&($.headers={...$.headers,"Accept-Language":j}),v!==void 0){if(I(v))v.offset!==void 0&&($.offset=v.offset),v.limit!==void 0&&($.limit=v.limit),v.cursor!==void 0&&($.params={...$.params,cursor:v.cursor});else if(typeof v=="number"){let E=t.pageSize||m||20;$.offset=(v-1)*E,$.limit=E}}if(T!==void 0&&($.params={...$.params,cursor:T}),a==="insert"||a==="update"||a==="upsert"){let E;if(g===!0||t.on==="submit")E=ne(e);else if(R(g)){let K=ne(e);E={};for(let We of g)E[We]=K[We]}else e.state?.parse?E=e.state.parse():I(e.state)&&(E={...e.state});p&&(E=p(E,e,e.state)),$.data=E}if(a==="rpc"){let E=ut;if(t.on==="submit"){let K=ne(e);E=t.transformParams?t.transformParams(K,e,e.state):K}$.params=E}if(a==="subscribe"){let E=s.subscribe({from:c,params:ut,on:t.subscribeOn},(K,We,sa)=>{$t(e,K,b),rt(e,"onFetchComplete",K),ft(t,e,"onFetchComplete",K)});return i.__unsubscribe=E,{data:null,error:null,subscribed:!0}}return P($)},ge);L&&Xt.set(L,Jr);try{let P=await Jr;if(P?.subscribed)return;let{data:$,error:j}=P||{};if(j){L&&ee(L,null,j),pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:j,status:"error",fetchStatus:"idle"}),rt(e,"onFetchError",j),ft(t,e,"onFetchError",j),yt&&yt({phase:"error",mode:"query",from:c,method:a,cacheKey:L,error:j.message||j,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ge});return}if($!==void 0){if((a==="select"||a==="rpc")&&L){let K=ee(L,$,null);K.gcTime=it?.gcTime||3e5}let E=$;Z&&R($)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift($):i.__pages.push($),E=i.__pages.flat(),Y&&(i.__nextPageParam=Y($,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),B&&(i.__prevPageParam=B($,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),k(N)&&(E=N(E,e,e.state)),p&&(E=p(E,e,e.state)),(!D||E!==void 0)&&$t(e,E,b),pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),rt(e,"onFetchComplete",E),ft(t,e,"onFetchComplete",E),yt&&yt({phase:"success",mode:"query",ok:!0,from:c,method:a,cacheKey:L,durationMs:(typeof performance<"u"?performance.now():Date.now())-Ge})}}catch(P){pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:P,status:"error",fetchStatus:"idle"}),rt(e,"onFetchError",P),ft(t,e,"onFetchError",P),yt&&yt({phase:"error",mode:"query",from:c,method:a,cacheKey:L,error:P.message||String(P),durationMs:(typeof performance<"u"?performance.now():Date.now())-Ge})}finally{L&&Xt.delete(L)}},ci=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||St;if(n==="submit"){let i=a=>{a.preventDefault(),s(t,e,r)},c=e.node;c&&(c.addEventListener("submit",i),o.__fetchListeners.push(()=>c.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),c=e.node;c&&(c.addEventListener("click",i),o.__fetchListeners.push(()=>c.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},ai=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),si();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:te(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&St(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Pe(e,r),c=ni(t,i),a=oe(c),l=br(t.cache);(!a||a.stale||Date.now()-a.time>(l?.staleTime||0))&&St(t,e,r,{force:!0})};Lt.focus.add(s),n.__fetchCleanups.push(()=>Lt.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>St(t,e,r,{force:!0});Lt.online.add(s),n.__fetchCleanups.push(()=>Lt.online.delete(s))}},fi=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():I(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=k(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&$t(t,i,o),s},mr=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&($t(t,n,e.as),delete r.__optimisticSnapshot)},li=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await xr(n,r);if(!o)return;let s=e.__ref,{method:i,from:c,fields:a,transform:l,as:f,on:u,auth:p,headers:h,baseUrl:d,invalidates:g,optimistic:b,onMutate:m,onSuccess:y,onError:x,onSettled:_}=t,w;if(a===!0||u==="submit")w=ne(e);else if(R(a)){let B=ne(e);w={};for(let Z of a)w[Z]=B[Z]}else e.state?.parse?w=e.state.parse():I(e.state)&&(w={...e.state});l&&(w=l(w,e,e.state)),k(m)&&m(w,e,e.state);let v=b?fi(e,t,w):null;s.__fetching=!0,pt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),rt(e,"onFetchStart"),ft(t,e,"onFetchStart");let T=r?.analyze?.emitNetwork,Y=T?typeof performance<"u"?performance.now():Date.now():0;T&&T({phase:"start",mode:"mutation",from:c,method:i});try{if(p!==!1&&o.auth!==!1&&o.getSession){let ut=await o.getSession();if(p===!0&&!ut){v!==void 0&&mr(e,t);let it={message:"Not authenticated"};rt(e,"onFetchError",it),ft(t,e,"onFetchError",it);return}}let B=o[i];if(!k(B))return;let Z={from:c,data:w,headers:h,baseUrl:d};t.params&&(Z.params=Ln(t.params,e,r));let U=Pe(e,r);U&&(Z.headers={...Z.headers,"Accept-Language":U});let gt=Mn(t),N=await Nn(()=>B(Z),gt),{data:D,error:st}=N||{};if(st){v!==void 0&&mr(e,t),pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:st,status:"error",fetchStatus:"idle"}),rt(e,"onFetchError",st),k(x)&&x(st,w,e),k(_)&&_(null,st,w,e),T&&T({phase:"error",mode:"mutation",from:c,method:i,error:st.message||String(st),durationMs:(typeof performance<"u"?performance.now():Date.now())-Y});return}if(delete s.__optimisticSnapshot,D!==void 0){let ut=f?{[f]:D}:D;e.state?.update&&e.state.update(ut,{preventFetch:!0})}if(pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),rt(e,"onFetchComplete",D),ft(t,e,"onFetchComplete",D),k(y)&&y(D,w,e),k(_)&&_(D,null,w,e),T&&T({phase:"success",mode:"mutation",ok:!0,from:c,method:i,durationMs:(typeof performance<"u"?performance.now():Date.now())-Y}),g){let ut=R(g)?g:[g];for(let it of ut)if(it===!0||it==="*")for(let[ge]of q)ge.startsWith(c+":")&&re(ge);else re(it)}}catch(B){v!==void 0&&mr(e,t),pt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:B,status:"error",fetchStatus:"idle"}),rt(e,"onFetchError",B),ft(t,e,"onFetchError",B),k(x)&&x(B,w,e),k(_)&&_(null,B,w,e),T&&T({phase:"error",mode:"mutation",from:c,method:i,error:B.message||String(B),durationMs:(typeof performance<"u"?performance.now():Date.now())-Y})}finally{s.__fetching=!1}},_r=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=Mt(t,e);if(!s)return;let i=R(s)?s.map(a=>Dn(Mt(a,e),e)).filter(Boolean):[Dn(s,e)].filter(Boolean);for(let a of i){let l=a.method==="insert"||a.method==="update"||a.method==="upsert"||a.method==="delete",f=l?li:St;a.on==="create"?f(a,e,n):Promise.resolve().then(()=>{ci({...a,__runner:f},e,n)}),!l&&a.on==="create"&&(a.refetchInterval||a.refetchOnWindowFocus!==!1||a.refetchOnReconnect!==!1)&&ai(a,e,n)}let c=e.__ref;c.refetch=a=>{for(let l of i)St(l,e,n,{force:!0,...a})},c.fetchNextPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=c.__nextPageParam;if(l==null)return;let f={...a,cursor:l};St(f,e,n,{direction:"next",force:!0})},c.fetchPreviousPage=()=>{let a=i[0];if(!a||!a.infinite)return;let l=c.__prevPageParam;if(l==null)return;let f={...a,cursor:l};St(f,e,n,{direction:"previous",force:!0})}},ui={invalidateQueries:t=>{if(!t){re();return}if(S(t))for(let[e]of q)(e.startsWith(t)||e.includes(t))&&re(e);else if(R(t)){let e=t.join(":");for(let[r]of q)r.includes(e)&&re(r)}},removeQueries:t=>{if(!t){Oe();return}if(S(t))for(let[e]of q)(e.startsWith(t)||e.includes(t))&&Oe(e)},getQueryData:t=>oe(t)?.data??void 0,setQueryData:(t,e)=>{let r=oe(t),n=k(e)?e(r?.data):e;ee(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await xr(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!k(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let c=ee(o,i.data,null);c.gcTime=br(t.cache)?.gcTime||3e5}return i},getCache:()=>q,clear:()=>Oe(),dropNonLang:t=>{if(!t)return;let e=`:${t}`;for(let[r]of q)r.match(/:([a-z]{2,3})$/i)&&(r.endsWith(e)||Oe(r))}},pi={name:"fetch",create(t){let e=t.fetch;e&&(t.parent||Xt.clear(),_r(e,t,t.state,t.context))}},di=_r});function Un(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function Gn(){return this.getRef("__children").map(e=>this[e])}function Wn(){return this.getRef().path}function zn(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=Vn();else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=k(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=Vn()),t?e?.[t]:e}function Hn(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function Kn(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function qn(t){let e=this.getRoot()?.context;return t?e[t]:e}function Qn(t){let e=this.context;return t?e[t]:e}function wr(...t){if(Vt!=="test"&&Vt!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
2
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function Jn(...t){(Vt==="test"||Vt==="development")&&console.warn(...t)}function Xn(...t){if(Vt==="test"||Vt==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&wr.call(this),new Error(...t)}}function Yn(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function Zn(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function to(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,Ft(r));for(let c in n)r[c]=n[c];return i},timeout:(s,i)=>{if(!o)return;let c=setTimeout(()=>{s(n),clearTimeout(c)},i)}}}async function eo(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ie(),se));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ie(),se));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(ie(),se)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n?.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(ie(),se));await o(n,t.context)}return n}function ro(t){let e=this,r=t||Sn.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(Sr(e,n),r===!0)return n;let o=wi[r];return o?o(n):n}var Vt,hi,Vn,Sr,gi,no,yi,mi,bi,xi,_i,Si,wi,oo=C(()=>{"use strict";Qt();Ce();dr();Vt="production";hi=null,Vn=()=>hi||null;Sr=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&gi(e,n);let o=r.__children;if(o)for(let c=0;c<o.length;c++){let a=t[o[c]];a&&a.__ref&&Sr(a,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&Sr(i,e)},gi=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},no=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
3
+ ${no(i,e+1)}
4
+ ${r}}`).join(`
5
+ `):""},yi=t=>`{
6
+ ${no(t,1)}
7
+ }`,mi=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let c=o?`${o}.${i}`:i;e.include.push(c),r(n[i],c)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},bi=t=>{let e=s=>{let i=[],c=[];for(let a in s)if(s[a]===!0)i.push(a);else{let l=e(s[a]),f=[];l.select&&f.push(`$select=${l.select}`),l.expand&&f.push(`$expand=${l.expand}`),c.push(f.length?`${a}(${f.join(";")})`:a)}return{select:i.length?i.join(","):"",expand:c.length?c.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},xi=(t,e)=>{let r=[],n=[],o=new Set,s=(f,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let h in f)f[h]===!0?r.push(`${u}.${h}`):s(f[h],h,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let c=[...o][0]||"_root",a=r.length?r.join(", "):"*",l=n.length?`
8
+ `+n.join(`
9
+ `):"";return`SELECT ${a}
10
+ FROM ${c}${l}`},_i=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},Si=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},wi={graphql:yi,"json-api":mi,odata:bi,sql:xi,supabase:Si,paths:_i}});var so=C(()=>{"use strict"});var io=C(()=>{});var co=C(()=>{"use strict"});var ao=C(()=>{"use strict"});var fo=C(()=>{"use strict"});var lo=C(()=>{"use strict"});var uo=C(()=>{"use strict"});var po=C(()=>{"use strict"});var ho=C(()=>{"use strict"});var go=C(()=>{"use strict"});var yo=C(()=>{"use strict"});var mo=C(()=>{"use strict"});var bo,xo,_o,So=C(()=>{"use strict";Qt();bo=t=>(typeof t!="string"&&(t=String(t||"")),t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")),xo=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),_o=t=>{if(R(t))return t;if(S(t))return t.split(" ");if(I(t))return Object.values(t);if(we(t))return[t]}});var wo=C(()=>{"use strict"});var Co=C(()=>{"use strict"});var M=C(()=>{"use strict";cn();fn();Qt();Ce();ke();fr();ar();ln();un();rn();cr();pn();dn();gn();yn();hn();mn();bn();ur();xn();oo();dr();so();_n();io();co();ao();fo();lo();uo();po();ho();go();yo();mo();So();wo();Co()});var na={};Dt(na,{FACTORY:()=>Fe,REGISTRY:()=>J,applyExtends:()=>pe,batch:()=>mt,create:()=>ot,createEffect:()=>F,createElement:()=>ea,createSignal:()=>ct,createStore:()=>et,getActiveConfig:()=>O,mount:()=>ra,popConfig:()=>z,pushConfig:()=>Q,registerEvent:()=>ue});var Et=null,ye=0,me=[],xe=()=>Et;var be=0,He=[];function ct(t){let e=new Set;function r(){return Et&&(e.add(Et),Et._sources.add(s)),t}function n(i){i!==t&&(t=i,Ms(e))}function o(){return t}let s={get:r,set:n,peek:o,_subscribers:e,_type:"signal"};return s}var At=new Set,Ke=!1;function F(t,e){let r=e?.depth??0,n={_sources:new Set,_type:"effect",_depth:r,_disposed:!1,_subscribers:new Set,_execute(){if(n._disposed)return;Xr(n);let o=Et;Et=n;try{t()}catch(s){console.error("[smbls] effect error:",s)}finally{Et=o}},_notify(){n._disposed||(ye>0?me.push(n):be>0?He.push(n):qe(n))},dispose(){n._disposed=!0,Xr(n)}};return n._execute(),n}function mt(t){ye++;try{t()}finally{ye--,ye===0&&js()}}function qe(t){At.add(t),Ke||(Ke=!0,queueMicrotask(Ds))}var jt=[];function Ds(){if(Ke=!1,At.size!==0){if(At.size===1){let[t]=At;At.clear(),t._disposed||t._execute();return}jt.length=0;for(let t of At)jt.push(t);At.clear(),jt.sort((t,e)=>t._depth-e._depth);for(let t=0;t<jt.length;t++){let e=jt[t];e._disposed||e._execute()}jt.length=0}}function js(){for(let t=0;t<me.length;t++)qe(me[t]);me.length=0}function Fs(t){be++;try{for(let e of t)e._notify()}finally{if(be--,be===0&&He.length>0){let e=He.splice(0);for(let r=0;r<e.length;r++)qe(e[r])}}}function Ms(t){Fs(t)}function Xr(t){for(let e of t._sources)e._subscribers.delete(t);t._sources.clear()}var Ot=Symbol("store"),Xe=Symbol("signals"),Qe=t=>!t||typeof t!="object"||Array.isArray(t)||t[Ot]||Object.isFrozen(t)||typeof Node<"u"&&t instanceof Node||t.__ref||t.nodeType||t.nodeName;function et(t,e,r){r===void 0&&(r=0);let n={},o={},s=e&&e.maxDepth||8;if(t&&typeof t=="object")for(let m in t){if(m==="__proto__"||!Object.prototype.hasOwnProperty.call(t,m))continue;let y=t[m];r<s&&y&&typeof y=="object"&&!Qe(y)?(o[m]=y,n[m]=ct(et(y,e,r+1))):(o[m]=y,n[m]=ct(y))}let i=new Proxy(o,{get(m,y){if(y===Ot)return!0;if(y===Xe)return n;if(y==="__raw")return m;if(y==="update")return c;if(y==="parse")return l;if(y==="clean")return f;if(y==="keys")return u;if(y==="values")return p;if(y==="replace")return h;if(y==="add")return d;if(y==="remove")return g;if(y==="destroy")return b;if(y==="quietUpdate")return a;if(y==="__element")return m.__element;if(y==="parent")return m.parent;if(y==="root")return m.root;if(Object.prototype.hasOwnProperty.call(n,y))return n[y].get();if(m[y]!==void 0)return m[y];if(y!=="root"&&m.root&&m.root!==i)return m.root[y];if(typeof y=="string"&&!y.startsWith("__")&&y!=="then"&&y!=="constructor"&&xe()!=null)return n[y]=ct(void 0),n[y].get()},set(m,y,x){return y==="__proto__"?!1:y==="__element"||y==="parent"||y==="root"?(m[y]=x,!0):(Object.prototype.hasOwnProperty.call(n,y)?(m[y]=x,x&&typeof x=="object"&&!Qe(x)?n[y].set(et(x,e,r+1)):n[y].set(x)):(m[y]=x,x&&typeof x=="object"&&!Qe(x)?n[y]=ct(et(x,e,r+1)):n[y]=ct(x)),!0)},has(m,y){return y in n||y in m},ownKeys(m){return Object.keys(n)},getOwnPropertyDescriptor(m,y){return y in n?{enumerable:!0,configurable:!0,value:n[y].peek()}:Object.getOwnPropertyDescriptor(m,y)},deleteProperty(m,y){return n[y]&&(n[y].set(void 0),delete n[y]),delete m[y],!0}});function c(m,y){mt(()=>{for(let _ in m)_!=="__proto__"&&(i[_]=m[_])});let x=o.__element;return x&&x.onUpdate&&!y?.quiet&&x.onUpdate(x,i,x.context),i}function a(m){return c(m,{quiet:!0})}function l(m){if(m||(m=new Set),m.has(i))return"[Circular]";m.add(i);let y={};for(let x in n){if(x==="parent"||x==="root"||x.startsWith("__"))continue;let _=n[x].peek();_&&_[Ot]?y[x]=_.parse(m):y[x]=_}return y}function f(){return mt(()=>{for(let m in n)delete i[m]}),i}function u(){return Object.keys(n)}function p(){return Object.keys(n).map(m=>n[m].peek())}function h(m){return mt(()=>{for(let y in n)y in m||delete i[y];for(let y in m)y!=="__proto__"&&(i[y]=m[y])}),i}function d(m,y){return i[m]=y,i}function g(m){return delete i[m],i}function b(){f(),o.__element=null,o.parent=null}return i}function G(t){return t&&t[Ot]===!0}function Ye(t,e){let r={},n={};if(t&&typeof t=="object")for(let i in t)n[i]=t[i],r[i]=ct(t[i]);let o=i=>{if(Object.prototype.hasOwnProperty.call(r,i))return r;let c=e;for(;c;){let a=c[Xe];if(a&&Object.prototype.hasOwnProperty.call(a,i))return a;c=c[Ot]?c[Je]:null}return null};return new Proxy(n,{get(i,c){return c===Ot?!0:c===Xe?r:c===Je?e:c==="__raw"?i:Object.prototype.hasOwnProperty.call(r,c)?r[c].get():e&&c!=="then"&&c!=="constructor"?e[c]:i[c]},set(i,c,a){let l=o(c);return l?(l===r&&(i[c]=a),l[c].set(a),!0):(i[c]=a,r[c]=ct(a),!0)},has(i,c){if(c in r||c in i)return!0;let a=e;for(;a;){if(c in a)return!0;a=a[Ot]?a[Je]:null}return!1},ownKeys(){return Object.keys(r)},getOwnPropertyDescriptor(i,c){return c in r?{enumerable:!0,configurable:!0,value:r[c].peek()}:Object.getOwnPropertyDescriptor(i,c)}})}var Je=Symbol("scope.parent");var Ze="http://www.w3.org/2000/svg",rr=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"]),Ns=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 tr(t){return Ns.has(t)||rr.has(t)}function nr(t){return rr.has(t)}function Ht(t){let{tag:e,key:r}=t;if(typeof e=="function"&&(e=e(t)),e===!0&&(e=r),typeof e=="string"&&tr(e))return e;if(!r||typeof r!="string")return"div";let n=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template"]),o=r.toLowerCase();return o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),tr(o)&&!n.has(o)?o:"div"}var Yr={};function er(t,e){let r=e?.context?.document||globalThis.document;if(!r)return null;if(t==="string")return r.createTextNode(e?.text||"");if(t==="fragment")return r.createDocumentFragment();if(nr(t)){let n=e?.parent;if(t==="svg"||n?.node?.namespaceURI===Ze)return r.createElementNS(Ze,t);if(t!=="svg")return r.createElement("div")}return r.createElement(t)}function Kt(t){let e=t.tag=Ht(t),n=nr(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Ze)?"svg:"+e:e,o=t?.context?.document||globalThis.document,s=Yr[n];if(s||(s=Yr[n]=er(e,t)),!s)return null;let i=o&&s.ownerDocument!==o?er(e,t):s.cloneNode(!0);return e==="string"&&(i.nodeValue=t.text||""),i}var J=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","define","deps","tag","attr","style","text","html","value","data","classlist","class","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","__name","__ref","__hash","__text","parent","node"]);var qt=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove"]),or=new Set(["load","error","abort","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Zr=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),sr=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","scroll","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var ir=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",_e=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];M();var vo=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&Tt&&at){let e=Tt.body.appendChild(Tt.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){Tt.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return Tt.body.removeChild(e),[0,0,0,0];t=at.getComputedStyle(e).color,Tt.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]};var Ci=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]};var vi=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1);var ki=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Ai=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Ei=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)};var W=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Pt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Oi=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,ce=t=>{if(!S(t))return null;if(Pt.test(t))return{passthrough:t};if(W(t))return{cssVar:t};let e=t.match(Oi);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},Bt=t=>S(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Re=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},ko=(t,e)=>{S(t)&&t.includes("rgb")&&(t=vo(t).join(", ")),S(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),we(e)&&(e+="");let r=vi(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Ei(r,parseFloat(e));return Ci(o).join(", ")}else{let[o,s,i]=t,c=ki(o,s,i),[a,l,f]=c;return Ai(a,l,parseFloat(e)/100*255)}};var Cr=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value};M();M();M();var Ie={};Dt(Ie,{animation:()=>Qi,breakpoints:()=>Ki,class:()=>ec,color:()=>Ni,devices:()=>qi,document:()=>Hi,font:()=>Pi,fontFace:()=>Di,fontFamily:()=>Ri,fontFamilyTypes:()=>Ii,gradient:()=>Li,grid:()=>tc,icons:()=>Ui,media:()=>ji,reset:()=>rc,semanticIcons:()=>Gi,sequence:()=>Rt,shadow:()=>Bi,sizes:()=>oc,spacing:()=>Mi,svg:()=>Ji,svgData:()=>Xi,templates:()=>Yi,theme:()=>Vi,timing:()=>zi,typography:()=>vr,unit:()=>Ti,vars:()=>nc});var Rt={"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 Ti={default:"em"};var $i={browserDefault:16,base:16,type:"font-size",ratio:Rt["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},vr=$i;var Pi={};var Ri={},Ii={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},Di={};var ji={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Fi={base:vr.base,type:"spacing",ratio:Rt.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},Mi=Fi;var Ni={},Li={};var Vi={};var Bi={};var Ui={},Gi={};var Wi={default:150,base:150,type:"timing",ratio:Rt["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},zi=Wi;var Hi={};var Ki={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},qi={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 Qi={};var Ji={},Xi={};var Yi={};var Zi={},tc=Zi;var ec={};var rc={},nc={},oc={};var Ao={},Eo={},De=Ie,je={},Oo=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase());for(let t in De){let e=t.toLowerCase();je[e]=De[t];let r=Oo(e);r!==e&&(je[r]=De[t]),e!==t&&(je[t]=De[t])}var kr={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:Ao,cssMediaVars:Eo,CSS_VARS:Ao,CSS_MEDIA_VARS:Eo,_scratchConfig:!0,...je},Xl=Ft(kr),Fe={active:"0",0:kr};var ae=[],Q=t=>{t&&t._scratchConfig&&ae.push(t)},z=()=>{ae.pop()},O=t=>ae.length?ae[ae.length-1]:Fe[t||Fe.active]||kr;var Me={"-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"},To=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:c}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:c,variable:n},e.scales[r]=s;let a=$o.has(e.unit)?"rem":e.unit;e.vars[n]=s+a},Ut=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},$o=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),sc=(t,e)=>{let{base:r,type:n,unit:o}=e,s=$o.has(o)?"rem":o,i=(ir(s)?1:r)+s;if(t===0)return i;let a="--"+(e.varPrefix?e.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(t>0){let f=Me[t-1];return`calc(var(${a}-${f}) * var(${l}))`}if(t<0){let f=Me[t+1],u=Math.abs(t),p=Math.pow(Po,2*u),h=Me[u];return h?`max(calc(var(${a}-${f}) / var(${l})), calc(var(${a}-${h}) / ${p.toFixed(4)}))`:`calc(var(${a}-${f}) / var(${l}))`}},ic=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,l=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${l+i}))`},cc=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]};var ac=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:c}=t,l=~~(o*s)-~~o,f,[u,p,h]=cc(o,s);l>16?f=[u,p,h]:f=[u,h],f.forEach((d,g)=>{let b=~~(d/n*1e3)/1e3,m=i+(g+1),y=c+(g+1)/10,x=ic(g+1,f,i,e),_={key:r+(g+1),variable:m,value:d,scaling:b,scalingVariable:x,index:y};To(_,e)})},Po=1.618,fc=(t,e,r)=>{if(t>=0)return e*Math.pow(r,t);let n=Math.abs(t),o=e*Math.pow(r,t),s=e*Math.pow(r,n)/Math.pow(Po,2*n);return Math.max(o,s)},fe=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(t.varPrefix?t.varPrefix+"-":"")+(e&&e.replace(".","-"))+"-";for(let l=0;l<=i;l++){let f=o[1]-l,u=Me[f],p=fc(f,r,n),h=~~(p/r*100)/100,d=a+u,g=sc(f,t),b={key:u,variable:d,value:p,base:r,scaling:h,scalingVariable:g,ratio:n,index:f};To(b,t),s&&ac(b,t)}return t};var Ro=(t="A",e)=>{let r=O(),{unit:n}=r;if(S(t)&&W(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,c=/^-?[a-zA-Z]/i,a=c.test(t);if(_e.some(_=>t.includes(_))||!a||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let p=`--${e.varPrefix?e.varPrefix+"-":""}${xo(e.type.replace(".","-"))}-`,h=t.toUpperCase(),d=h.slice(0,1)==="-"?"-":"",g=d?h.slice(1):h,b="";g.includes("_")&&(b="_"+g.split("_")[1].toLowerCase(),g=g.split("_")[0]);let m=_=>c.test(_)?`var(${p}${_}${b})`:_;if(g.includes("+")){let[_,w]=g.split("+"),v=`${m(_)} + ${m(w)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("*")){let[_,w]=g.split("*"),v=`${m(_)} * ${m(w)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}else if(g.includes("-")){let[_,w]=g.split("-"),v=`${m(_)} - ${m(w)}`;return d?`calc((${v}) * -1)`:`calc(${v})`}let y=r.sizes;if(y){let _=y[t]||y[t.toLowerCase()];if(_!==void 0)return d?`calc(${_} * -1)`:_}if(!o[g]&&g.length===2&&(r.verbose&&console.warn(g,"- value is not found because `subSequence` is set to false"),g=g.slice(0,1)),i||r.useVariable){let _=`var(${p}${g}${b})`;return d?`calc(${_} * -1)`:_}let x=o?o[g]:null;return x?s==="ms"||s==="s"?d+x.val+s:d+x.scaling+s:console.warn("can't find",o,g)},lc=(t,e)=>{if(!["+","-","*","/",","].filter(s=>t.includes(s+" ")).length)return t;let n=/(\s*[+\-*/,]\s*)/;return t.split(n).map(s=>{let i=s.trim();return!i||["+","-","*","/",","].includes(i)?s:Ro(i,e)}).join("")},It=(t,e,r,n)=>{if(typeof t!="string")return O().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=Ut(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=lc(t,r):t=Ro(t,r),{[e]:n?`${n}(${t})`:t}};M();var du=pr();var uc="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",hu=new RegExp(`<(${uc})\\b([^>]*?)\\s*/>`,"g");M();var dt=(t,e,r)=>{let n=r||O();if(!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(W(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(R(t))[o,s,i]=t;else{let u=ce(t);if(!u){let{color:p,gradient:h}=n,d=h[t]||p[t];return d?n.useVariable?`var(${d.var})`:d.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:c,gradient:a}=n,l=c[o]||a[o];if(!l)return n.verbose&&console.warn("Can't find color ",o),t;e&&(l[e]?l=l[e]:n.verbose&&console.warn(t," - does not have ",e));let f=l.rgb;return f?(i&&!l[i]&&(f=ko(f,i),l[i]={rgb:f,var:`${l.var}-${i}`}),l[i]&&(f=l[i].rgb),s?`rgba(${f}, ${s})`:i?`rgba(${f}, 1)`:n.useVariable?`var(${l.var})`:`rgb(${f})`):n.useVariable?`var(${l.var})`:l.value},nt=(t,e,r)=>{let n=r||O();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!S(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(W(t))return`var(${t})`;let o;if(R(t))o=t[0];else{let l=ce(t);if(!l)return t;if(l.passthrough)return l.passthrough;if(l.cssVar)return`var(${l.cssVar})`;o=l.name}let{color:s,gradient:i}=n,c=s[o]||i[o],a=I(c);if(a&&c.value)return dt(t,`@${e}`,r);if(a){if(n.useVariable&&c.var)return`var(${c.var})`;if(e)return dt(t,`@${e}`,r);{let l={};for(let f in c){if(f.charCodeAt(0)!==64)continue;let u=n.media[f.slice(1)];if(!u)continue;let p="@media "+(u==="print"?`${u}`:`screen and ${u}`);l[p]=dt(t,f,r)}return l}}else return n.verbose&&console.warn("Can't find color",t),t};M();var Ar=t=>{let e=O(),r={};for(let n in t){let o=n.slice(0,1);if(xt(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Ar(t[n]):o==="."&&(r[`&${n}`]=Ar(t[n]))}else r[n]=t[n]}return r},Do=(t,e)=>{let r=e.shift();return t[r]?Do(t[r],e):t},Io=(t,e)=>R(e)?Do(t,e):S(e)&&t[e]?t[e]:t;var le=(t,e)=>{let r=O();if(S(t)&&W(t)&&(t=le(t.slice(2))),!t||!S(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=R(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Io(s,o):s&&e&&(s=Io(s,e)),Ar(s)};var jo=(t,e)=>{let r=O(),{fontFamily:n}=r;return Cr(e||n,t)};var Mo=t=>{let e=O(),{typography:r}=e;return It(t,"fontSize",r)};M();M();var hc=t=>{let r=O().spacing||{},n=parseFloat(t.spacingRatio),o={...r,ratio:Number.isFinite(n)?n:r.ratio,sequence:{},scales:{}};return fe(o),o};var No=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n};var gc=t=>{let e=O(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:fe(t)},H=(t,e="padding",r,n)=>{let o=gc(r);if(S(t)&&!n&&t.includes("(")){let i=Ut(t);n=i[0],t=i[1]}let s=n?[t]:_o(t);if(R(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let c={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},a=(l,f)=>It(s[f],e+l+i,o,n);return c[s.length].map((l,f)=>a(l,f))}return It(t,e,o,n)}},Gt=(t,e,r,n)=>{let o=O(),{spacing:s}=o,i=r||t[e];if(!n&&S(i)&&i.includes("(")){let c=Ut(i);n=c[0],i=c[1]}if(t.spacingRatio){let c=hc(t);return H(i,e,c,n)}return H(i,e,s,n)},Lo=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=_e.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};M();var Vo=(t,e)=>{let r=O();if(e||(e=r.globalTheme),!S(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(W(t))return`var(${t})`;let[n]=R(t)?t:t.split(" "),s=r.shadow[n],i=I(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let c={};for(let a in s){let l=r.media[a.slice(1)],f="@media "+(l==="print"?`${l}`:`screen and ${l}`);c[f]=s.value}return c}return r.verbose&&console.warn("Can't find color",t),t};M();var bt=t=>{let e=O(),{timing:r}=e;return r[t]||r[bo(t)]||t},ht=(t,e="timing")=>{let r=O(),{timing:n}=r;return It(t,e,n)};M();var mc=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),bc=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),xc=t=>mc.has(t),wt=t=>{let e=t+"";if(Pt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(W(o))return`var(${o})`;if(xc(o)||/^\d/.test(o)||o==="0")return o;let s=dt(o);if(Bt(s))return s;let i=H(o,"border");return i&&i.border?i.border:o}).join(" ")},Bo=t=>Pt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(W(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=dt(e);return Bt(r)?r:e}).join(" "),Uo=(t,e)=>Vo(t,e),Er=(t,e)=>Pt.test(t)?t:Re(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(W(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=dt(n);if(Bt(o)){let i=nt(n,e);return I(i)?Object.values(i).filter(c=>c.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=H(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),Or=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",c=Re(o).map(a=>(a=a.trim(),a.split(/\s+/).map(f=>{if(!f||/^\d/.test(f)||f==="0"||bc.has(f)||f==="transparent"||Pt.test(f))return f;let u=dt(f);return Bt(u)?u:f}).join(" ")));return n+c.join(", ")+s},Go=(t,e)=>{let r=O();return t.split(", ").map(n=>W(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?Or(n,e):r.gradient[t]?{backgroundImage:nt(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!ce(n)?`url(${n})`:n).join(" ")},Wo=t=>S(t)&&t.split(" ").map(e=>H(e,"gap").gap).join(" "),_c=t=>{let e=t.split(" ");return e.length?e.map(r=>W(r)?`var(${r})`:r.length<3||r.includes("ms")?ht(r).timing||r:bt(r)?bt(r):r).join(" "):t},Tr=(t,e,r)=>{if(S(t))return t.split(",").map(n=>ht(n).timing||n).join(",")},zo=t=>{let e=t.split(",");if(e.length)return e.map(_c).join(",")};function V(t,e,r={},n={}){let o=Mt.call(this,e||r[t]);if(o==null)return;let s;if(S(o)){if(o.includes("(")){let a=Ut(o);s=a[0],o=a[1]}let i=r.scaleBoxSize,c=No(t);!i&&c&&!n.ratio&&(o=Lo(o))}return n.ratio?Gt(r,t,o,s):H(o,t,void 0,s)}var A=(t,e=null,r)=>V(t,e,r,{ratio:!0}),$r=(t,e,r)=>{if(S(t))return{borderRadius:t.split(" ").map((n,o)=>Gt(e,r,n)[r]).join(" ")}};var Pr=new WeakMap,Sc={passive:!0},wc={passive:!0,capture:!0},Rr=(t,e)=>Zr.has(t)?e?wc:Sc:e||!1;function Ko(t){let e=Pr.get(t);return e||(e={handlers:new Map,installed:new Set},Pr.set(t,e)),e}function Cc(t,e){let r=Ko(e);if(r.installed.has(t))return;r.installed.add(t);let n=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave",o=t==="mouseenter"||t==="mouseleave";e.addEventListener(t,s=>{let i=s.target;for(;i&&i!==e;){let c=r.handlers.get(t);if(c){let a=c.get(i);if(a){if(o&&s.relatedTarget&&i.contains(s.relatedTarget)){i=i.parentNode;continue}if(a(s),s.cancelBubble)return}}i=i.parentNode}},Rr(t,n))}function qo(t,e,r,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Ko(n);Cc(t,n),o.handlers.has(t)||o.handlers.set(t,new WeakMap),o.handlers.get(t).set(e,r)}function Qo(t,e,r){r||(r=e.ownerDocument?.documentElement||e.getRootNode());let n=Pr.get(r);if(!n)return;let o=n.handlers.get(t);o&&o.delete(e)}function Ho(t){return sr.has(t)&&!qt.has(t)}function ue(t,e,r){let{node:n,context:o}=e;if(!n)return;let s=o?.designSystem,i=a=>{s&&Q(s);try{let l=r.call(e,a,e,e.state,o);if(l&&typeof l.then=="function"){l.catch(f=>{e.error=f,console.error("[DOMQL] Async event error:",f)}).finally(()=>{s&&z()});return}}catch(l){if(e.error=l,console.error("[DOMQL] Event error:",l),o?.strictMode)throw l}s&&z()},c=or.has(t);if(!c&&Ho(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;qo(t,n,i,a)}else n.addEventListener(t,i,Rr(t,!1));e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(!c&&Ho(t)){let a=o?.rootNode||n.ownerDocument?.documentElement;Qo(t,n,a)}else n.removeEventListener(t,i,Rr(t,!1))})}function Jo(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 pe(t,e,r){let n=Jo(e);if(!n.length)return;let s=(t.context||r?.context||{}).components||{};for(let i=0;i<n.length;i++){let c=Xo(n[i],s);c&&c!==e&&Yo(t,c,r,new Set([e]))}}function Xo(t,e){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(o=>o.trim()),n=e[r[0]]||e[`smbls.${r[0]}`];for(let o=1;o<r.length&&n;o++)n=n[r[o]];return n||null}return e[t]||e[`smbls.${t}`]||null}return typeof t=="object"&&t!==null?t:null}function Yo(t,e,r,n=new Set){if(n.has(e))return;n.add(e);let o=Jo(e);if(o.length){let i=(t.context||r?.context||{}).components||{};for(let c=0;c<o.length;c++){let a=Xo(o[c],i);a&&Yo(t,a,r,n)}}for(let s in e){if(s==="extends"||s==="extend")continue;let i=e[s];t[s]===void 0?i&&typeof i=="object"&&!Array.isArray(i)&&typeof i!="function"?t[s]={...i}:t[s]=i:typeof t[s]=="object"&&typeof i=="object"&&!Array.isArray(t[s])&&!Array.isArray(i)&&t[s]!==null&&i!==null?t[s]=Zo(t[s],i):t[s]=i}}function Zo(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Zo(o,s):r[n]=s}return r}ke();function Ir(t={},e={}){let r=this,n=r.__ref;if(n){if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof r.onBeforeUpdate=="function"&&r.onBeforeUpdate(r,r.state,r.context,e)===!1)return r;if(mt(()=>{if(t.state&&G(r.state)&&r.state.update(t.state),t.text!==void 0&&(r.text=t.text,!n.__exec.text&&r.node&&(r.tag==="string"?r.node.nodeValue=t.text??"":r.node.textContent=t.text??"")),t.html!==void 0&&(r.html=t.html,!n.__exec.html&&r.node&&(r.node.innerHTML=t.html)),t.style&&r.node?.style){if(!n.__exec.style)for(let o in t.style){let s=t.style[o];if(s==null)continue;let i=o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),c=String(s).replace(/\s*!important\s*$/,"");r.node.style.setProperty(i,c,"important")}r.style||(r.style={}),Object.assign(r.style,t.style)}if(t.attr&&r.node?.setAttribute){for(let o in t.attr){let s=t.attr[o];s==null||s===!1?r.node.removeAttribute(o):typeof s!="function"&&typeof s!="object"&&r.node.setAttribute(o,s===!0?"":s)}r.attr||(r.attr={}),Object.assign(r.attr,t.attr)}if(t.data&&r.node?.dataset){for(let o in t.data)r.node.dataset[o]=t.data[o];r.data||(r.data={}),Object.assign(r.data,t.data)}for(let o in t){if(J.has(o)||o==="state")continue;let s=t[o],i=r[o];if(i&&i.__ref&&typeof i.update=="function")i.update(s,e);else if(typeof s=="object"&&s!==null){let c=o.charCodeAt(0);c>=65&&c<=90&&ot(s,r,o,e)}else o!=="text"&&o!=="html"&&o!=="style"&&o!=="attr"&&o!=="data"&&(r[o]=s)}}),r.node&&n.__conditionalRunners)for(let o of n.__conditionalRunners)o();return Nt("update",r),!e.preventListeners&&typeof r.onUpdate=="function"&&r.onUpdate(r,r.state,r.context,e),r}}function Dr(t){if(!t)return;let e=t.__ref;if(e){try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(r){console.error("[smbls] onBeforeRemove error:",r)}if(e.__effects){for(let r=0;r<e.__effects.length;r++)e.__effects[r].dispose();e.__effects.length=0}if(e.__eventCleanup){for(let r=0;r<e.__eventCleanup.length;r++)e.__eventCleanup[r]();e.__eventCleanup.length=0}if(e.__children){for(let r=0;r<e.__children.length;r++){let n=e.__children[r],o=t[n];o&&o.__ref&&Dr(o)}e.__children.length=0}if(t.node?.parentNode&&t.node.remove(),t.state?.destroy&&t.state.__element===t&&t.state.destroy(),t.parent?.__ref?.__children){let r=t.parent.__ref.__children.indexOf(t.key);r!==-1&&t.parent.__ref.__children.splice(r,1),delete t.parent[t.key]}try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(r){console.error("[smbls] onRemove error:",r)}t.node=null,t.parent=null,t.__ref=null}}function jr(){Dr(this)}M();var de=new Map,vc=null,ts=null;function os(){try{let t=O();if(t?.document)return t.document}catch{}return typeof document<"u"?document:null}var kc={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 Ne(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}function Le(t){let e=2166136261;for(let r=0;r<t.length;r++)e^=t.charCodeAt(r),e=e*16777619>>>0;return e.toString(36)}function Ac(t){let e=String(t);return e.length<=20?e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Le(e)}function es(t,e,r){let n=(r?r+"":"")+t+":"+e,o=de.get(n),s=o?null:Ne(t);if(!o){let c=kc[t]||Le(t),a=Ac(e);o=r?`_${r}_${c}-${a}`:`_${c}-${a}`,de.set(n,o)}if(typeof e=="string"&&(e.indexOf("}")!==-1||e.indexOf("{")!==-1))return o;let i=`.${o}{${s||Ne(t)}:${e}}`;return Ct(i),o}var rs=new WeakMap;function Ct(t,e){let r=Ec(e);if(!r)return;let n=rs.get(r);if(n||(n=new Set,rs.set(r,n)),!n.has(t)){n.add(t);try{r.insertRule(t,r.cssRules.length)}catch{}}}var ns=new WeakMap;function Ec(t){let e=t||os();if(!e||!e.head)return null;let r=ns.get(e);if(r&&r.ownerNode&&r.ownerNode.parentNode===e.head)return r;let n=e.head.querySelector("style[data-smbls]");n||(n=e.createElement("style"),n.setAttribute("data-smbls",""),e.head.appendChild(n));let o=n.sheet;return ns.set(e,o),vc=o,o}var Oc=8;function Mr(t,e,r){if(!t||typeof t!="object")return"";let n=null,o=0,s=[],i=[];for(let a in t){let l=t[a];l==null||l===!1||l===""||(typeof l=="object"?i.push([a,l]):ts?(n||(n=[]),n.push(a,String(l)),o++):s.push(es(a,String(l),r)))}if(n&&o>=Oc){let a=n.join("\0"),l=ts(a),f=l.indexOf("\0"),u=l.substring(0,f),p=l.substring(f+1);if(p){let h=p.split(`
11
+ `);for(let d=0;d<h.length;d++)h[d]&&Ct(h[d])}s.push(u)}else if(n)for(let a=0;a<n.length;a+=2)s.push(es(n[a],n[a+1],r));let c=[];for(let a=0;a<i.length;a++)c.push(Tc(i[a][0],i[a][1],r));return s.concat(c).join(" ").trim()}var Fr=new Map;function Tc(t,e,r){let n=(r?r+"":"")+t+JSON.stringify(e),o=de.get(n);if(o){let p=Fr.get(o);if(p)for(let h=0;h<p.length;h++)Ct(p[h]);return o}o=r?`_${r}_c${Le(n)}`:`_c${Le(n)}`;let s="",i=[],c=p=>typeof p=="string"&&(p.indexOf("{")!==-1||p.indexOf("}")!==-1),a=(p,h)=>{let d="";for(let g in h){let b=h[g];if(b!=null)if(typeof b=="object")a([...p,g],b);else{if(c(b))continue;d+=`${Ne(g)}:${b};`}}d&&(p.length===0?s+=d:i.push({chain:p,body:d}))};a([],e);let l=p=>{if(!p.length)return`.${o}`;let h=p[0].split(",").map(d=>d.trim()).map(d=>d.includes("&")?d.replace(/&/g,`.${o}`):d.startsWith(":")?`.${o}${d}`:`.${o} ${d}`);for(let d=1;d<p.length;d++){let g=p[d].split(",").map(m=>m.trim()),b=[];for(let m of h)for(let y of g)y.includes("&")?b.push(y.replace(/&/g,m)):y.startsWith(":")?b.push(m+y):b.push(m+" "+y);h=b}return h.join(", ")},f=[];if(t.startsWith("@media")||t.startsWith("@supports")){if(s){let p=`${t}{.${o}{${s}}}`;f.push(p),Ct(p)}for(let p of i){let h=l(p.chain),d=`${t}{${h}{${p.body}}}`;f.push(d),Ct(d)}return Fr.set(o,f),de.set(n,o),o}let u=l([t]);if(s){let p=`${u}{${s}}`;f.push(p),Ct(p)}for(let p of i){let d=`${l([t,...p.chain])}{${p.body}}`;f.push(d),Ct(d)}return Fr.set(o,f),de.set(n,o),o}function Ve(t,e){let r="";for(let n in e){let o="";for(let s in e[n])o+=`${Ne(s)}:${e[n][s]};`;r+=`${n}{${o}}`}return Ct(`@keyframes ${t}{${r}}`),t}var $c=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],Pc=["none","forwards","backwards","both"],Rc=["normal","reverse","alternate","alternate-reverse"],Ic=["running","paused"],Dc=t=>/^[\d.]+m?s$/.test(t),jc=0,ss=new Map,Nr=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{};if(I(t)){let o=JSON.stringify(t),s=ss.get(o);if(s)return s;let i=`smbls-anim-${jc++}`,c=Ve(i,t);return ss.set(o,c),c}let n=r&&r[t];return I(n)?Ve(t,n):t},Fc=(t,e)=>{let{animation:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,c=null,a=null,l=null,f=null;for(let u of n)r&&r[u]?o=u:Dc(u)?s.push(u):$c.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?c=u==="infinite"?u:Number(u):Rc.includes(u)?a=u:Pc.includes(u)?l=u:Ic.includes(u)?f=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:c,direction:a,fillMode:l,playState:f}},is={animation:(t,e)=>{if(S(t)&&t.includes(" ")){let r=Fc(t,e);return{animationName:Nr(r.name||t,e),animationDuration:r.durations[0]||ht(e.animationDuration||"A").timing,animationDelay:r.durations[1]||ht(e.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||bt(e.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.animationIterationCount||1,animationPlayState:r.playState||e.animationPlayState,animationDirection:r.direction||e.animationDirection}}return{animationName:Nr(t,e),animationDuration:ht(e.animationDuration||"A").timing,animationDelay:ht(e.animationDelay||"0s").timing,animationTimingFunction:bt(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||"both",animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}},animationName:(t,e)=>({animationName:Nr(t,e)}),animationDuration:t=>({animationDuration:ht(t).timing}),animationDelay:t=>({animationDelay:ht(t).timing}),animationTimingFunction:t=>({animationTimingFunction:bt(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};M();var cs={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>A("height",t,e),width:(t,e)=>A("width",t,e),boxSizing:t=>tn(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("height",e),...V("width",r||e)}},inlineSize:(t,e)=>A("inlineSize",t,e),blockSize:(t,e)=>A("blockSize",t,e),minWidth:(t,e)=>A("minWidth",t,e),maxWidth:(t,e)=>A("maxWidth",t,e),widthRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("minWidth",e),...V("maxWidth",r||e)}},minHeight:(t,e)=>A("minHeight",t,e),maxHeight:(t,e)=>A("maxHeight",t,e),heightRange:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("minHeight",e),...V("maxHeight",r||e)}},size:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...A("inlineSize",e),...A("blockSize",r||e)}},minBlockSize:(t,e)=>A("minBlockSize",t,e),minInlineSize:(t,e)=>A("minInlineSize",t,e),maxBlockSize:(t,e)=>A("maxBlockSize",t,e),maxInlineSize:(t,e)=>A("maxInlineSize",t,e),minSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("minInlineSize",e),...V("minBlockSize",r||e)}},maxSize:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("maxInlineSize",e),...V("maxBlockSize",r||e)}},borderWidth:(t,e)=>A("borderWidth",t,e),padding:(t,e)=>A("padding",t,e),scrollPadding:(t,e)=>A("scrollPadding",t,e),paddingInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("paddingInlineStart",e),...V("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("paddingBlockStart",e),...V("paddingBlockEnd",r||e)}},paddingTop:(t,e)=>A("paddingBlockStart",t,e),paddingBottom:(t,e)=>A("paddingBlockEnd",t,e),paddingLeft:(t,e)=>A("paddingInlineStart",t,e),paddingRight:(t,e)=>A("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>A("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>A("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>A("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>A("paddingInlineEnd",t,e),margin:(t,e)=>A("margin",t,e),marginInline:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{...V("marginInlineStart",e),...V("marginInlineEnd",r||e)}},marginBlock:(t,e)=>{if(!S(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...V("marginBlockStart",r),...V("marginBlockEnd",n||r)}},marginTop:(t,e)=>A("marginBlockStart",t,e),marginBottom:(t,e)=>A("marginBlockEnd",t,e),marginLeft:(t,e)=>A("marginInlineStart",t,e),marginRight:(t,e)=>A("marginInlineEnd",t,e),marginInlineStart:(t,e)=>A("marginInlineStart",t,e),marginInlineEnd:(t,e)=>A("marginInlineEnd",t,e),marginBlockStart:(t,e)=>A("marginBlockStart",t,e),marginBlockEnd:(t,e)=>A("marginBlockEnd",t,e),gap:t=>({gap:Wo(t)}),columnGap:(t,e)=>Gt(e,"columnGap",t),rowGap:(t,e)=>Gt(e,"rowGap",t),flexWrap:t=>({display:"flex",flexWrap:t}),flexFlow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!S(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,e)=>$r(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>$r(t??e.round,e,"borderRadius")};var as={fontSize:t=>Mo(t)||t,fontFamily:t=>({fontFamily:jo(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var fs={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.assets&&n.assets[t];if(o&&o.content)t=`url(${o.content.src})`;else{let s=n.files&&n.files[t];s&&s.content&&(t=`url(${s.content.src})`)}return{cursor:t}},opacity:t=>t!=null?{opacity:String(t)}:void 0,visibility:t=>t!=null?{visibility:t}:void 0,pointerEvents:t=>t!=null?{pointerEvents:t}:void 0};var ls={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>H(r,"k").k).join(" ")}},left:t=>H(t,"left"),top:t=>H(t,"top"),right:t=>H(t,"right"),bottom:t=>H(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>H(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>H(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};M();var lt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},us={theme:(t,e)=>{if(t)return e.themeModifier?le(t,`@${e.themeModifier}`):le(t)},color:(t,e)=>{let r=lt(e);if(t)return{color:nt(t,r)}},background:(t,e)=>{let r=lt(e);if(t)return S(t)&&t.includes("gradient")?{background:Or(t,r)}:{background:nt(t,r)}},backgroundColor:(t,e)=>{let r=lt(e);if(t)return{backgroundColor:nt(t,r)}},backgroundImage:(t,e,r,n)=>{let o=lt(e);if(!t)return;let s=n.assets&&n.assets[t];if(s&&s.content)t=s.content.src;else{let i=n.files&&n.files[t];i&&i.content&&(t=i.content.src)}return{backgroundImage:Go(t,o)}},textStroke:t=>({WebkitTextStroke:Bo(t)}),outline:t=>({outline:wt(t)}),outlineOffset:(t,e)=>A("outlineOffset",t,e),border:t=>({border:wt(t)}),borderColor:(t,e)=>{let r=lt(e);if(t)return{borderColor:nt(t,r)}},borderTopColor:(t,e)=>{let r=lt(e);if(t)return{borderTopColor:nt(t,r)}},borderBottomColor:(t,e)=>{let r=lt(e);if(t)return{borderBottomColor:nt(t,r)}},borderLeftColor:(t,e)=>{let r=lt(e);if(t)return{borderLeftColor:nt(t,r)}},borderRightColor:(t,e)=>{let r=lt(e);if(t)return{borderRightColor:nt(t,r)}},borderLeft:t=>({borderLeft:wt(t)}),borderTop:t=>({borderTop:wt(t)}),borderRight:t=>({borderRight:wt(t)}),borderBottom:t=>({borderBottom:wt(t)}),shadow:(t,e)=>{let r=lt(e);if(t)return{boxShadow:Uo(t,r)}},boxShadow:(t,e)=>{if(!S(t))return;let[r,n]=t.split("!importan"),o=lt(e),s=n?" !important":"";return{boxShadow:Er(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:Er(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:wt(t)})};var ps={transition:t=>({transition:zo(t)}),transitionDuration:t=>({transitionDuration:Tr(t)}),transitionDelay:t=>({transitionDelay:Tr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:bt(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};M();var ds={flow:(t,e)=>{let r=e.reverse;if(!S(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(t,e)=>({display:"flex",flexWrap:t}),align:(t,e)=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var hs={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var X={...is,...cs,...as,...fs,...ls,...us,...ps,...ds,...hs};var tt=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);M();function ms(t,e,r){let n=t?.context?.analyze;if(!n||!n.emit||e==="warn"&&!n.shouldCapture("warnings")||e==="error"&&!n.shouldCapture("errors"))return;let o=r.map(s=>s?.message||(typeof s=="string"?s:null)).filter(Boolean).join(" ");n.emit({id:`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,6)}`,ts:Date.now(),type:e==="error"?"error":"warning",level:e,hook:e==="error"?"el.error":"el.warn",element:{key:t.key!=null?String(t.key):null,name:t.__name||null,tag:t.tag||null},message:o||null,args:r})}function Mc(...t){return ms(this,"warn",t),Jn.apply(this,t)}function Nc(...t){return ms(this,"error",t),Xn.apply(this,t)}var gs={update:Ir,remove:jr,getDB:eo,getQuery:ro,getRootData:Kn,getChildren:Gn,getPath:Wn,nextElement:Yn,previousElement:Zn,verbose:wr,warn:Mc,error:Nc,variables:to,spotByPath:Un,set(t,e){if(this.removeContent(),t!=null){let r=this.context?.__create;r&&r(t,this,"content",e)}this.__ref&&(this.__ref.contentManaged=!0)},reset(t){let e=this.context?.__create;if(!e)return this;let r=this.parent,n=this.key,o=this.parse();return this.remove(),e(o,r,n,t)},lookup(t){let e=this.parent;for(;e;){if(typeof t=="function"){if(t(e))return e}else if(typeof t=="string"){if(e.key===t)return e;if(e[t]&&e[t].__ref)return e[t]}e=e.parent}return null},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let r of e.__children){let n=this[r];if(!n)continue;if(typeof t=="function"){if(t(n))return n}else if(typeof t=="string"&&n.key===t)return n;let o=n.lookdown?.(t);if(o)return o}return null},lookdownAll(t,e=[]){let r=this.__ref;if(!r?.__children)return e;for(let n of r.__children){let o=this[n];o&&(typeof t=="function"?t(o)&&e.push(o):typeof t=="string"&&o.key===t&&e.push(o),o.lookdownAll?.(t,e))}return e},getRef(){return this.__ref},getRoot:Hn,getRootState:zn,getRootContext:qn,getContext:Qn,parse(t){let e={},r=t?new Set(t):null,n=this.__ref?.__exec;for(let o in this)if(!(o==="parent"||o==="node"||o==="__ref")&&!r?.has(o)){if(n&&n[o]!==void 0){e[o]=n[o];continue}typeof this[o]!="function"&&(e[o]=this[o])}return e},parseDeep(t){let e=this.parse(t),r=this.__ref;if(r?.__children)for(let n of r.__children)this[n]?.parseDeep&&(e[n]=this[n].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let r of t)e[r]=this[r];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let r=t[e];if(r==null)continue;let n=e.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),o=String(r).replace(/\s*!important\s*$/,"");this.node.style.setProperty(n,o,"important")}},call(t,...e){let r=this.context,n=r?.methods?.[t]||r?.functions?.[t]||r?.utils?.[t]||this[t];if(typeof n=="function")return n.call(this,...e)},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let r=t.__children.indexOf("content");r!==-1&&t.__children.splice(r,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},ys=new WeakMap;function Lc(t){if(!t)return gs;let e=ys.get(t);if(e)return e;e=Object.create(gs);let r=t.methods;if(r)for(let n in r)e[n]=r[n];return ys.set(t,e),e}function Lr(t){let e=Lc(t.context);Object.setPrototypeOf(t,e)}M();ke();var Vc=(t,e,r)=>{Object.defineProperty(t,e,{value:r,enumerable:!1,configurable:!0,writable:!0})},vt=(t,e)=>{if(G(e)){let o=e.__raw||e;e.toggle||Object.defineProperty(o,"toggle",{value:function(s,i={}){e[s]=!e[s]},enumerable:!1,configurable:!0}),e.set||Object.defineProperty(o,"set",{value:function(s,i={}){return e.clean({preventStateUpdate:!0}),typeof s=="object"&&s!==null&&e.update(s,i),e},enumerable:!1,configurable:!0}),Object.defineProperty(o,"setByPath",{value:function(s,i,c={}){let a=s.split("."),l=e;for(let f=0;f<a.length-1;f++)l[a[f]]===void 0&&(l[a[f]]={}),l=l[a[f]];return l[a[a.length-1]]=i,e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"getByPath",{value:function(s){let i=s.split("."),c=e;for(let a=0;a<i.length;a++){if(c==null)return;c=c[i[a]]}return c},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"removeByPath",{value:function(s,i={}){let c=s.split("."),a=e;for(let l=0;l<c.length-1;l++){if(a==null)return e;a=a[c[l]]}return a&&delete a[c[c.length-1]],e},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"reset",{value:function(s={}){let i=e.parse();return e.set(i,s)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"apply",{value:function(s,i={}){if(typeof s=="function"){let c=s(e);return e.update(c,i)}},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"applyFunction",{value:function(s,i={}){if(typeof s=="function")return s(e),e.update(e.parse(),i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"rootUpdate",{value:function(s,i={}){let c=e;for(;c?.parent&&G(c.parent);)c=c.parent;return c.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"parentUpdate",{value:function(s,i={}){if(e.parent)return e.parent.update(s,i)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(o,"quietReplace",{value:function(s,i={}){return e.replace(s,{quiet:!0,...i})},enumerable:!1,configurable:!0,writable:!0}),Object.getOwnPropertyDescriptor(o,"root")||Object.defineProperty(o,"root",{get:function(){let s=e,i=G(s)?s:null;for(let c=0;c<64&&s?.parent&&s.parent!==s;c++)s=s.parent,G(s)&&(i=s);return i||s},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let r=()=>{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&delete e[o]},n={update(o){if(!o||typeof o!="object")return e;for(let s in o)e[s]=o[s];return e},apply(o){if(typeof o!="function")return e;let s=o(e);return s?e.update(s):e},parse(){return{...e}},toggle(o){return e[o]=!e[o],e},set(o){if(!o||typeof o!="object")return e;r();for(let s in o)e[s]=o[s];return e},replace(o){return e.set(o)},clean(){return r(),e}};for(let o in n)typeof e[o]!="function"&&Vc(e,o,n[o])};var vh=new Proxy(Object.create(null),{get(){},has(){return!1}});M();var Vr={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]};var Bc=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,he=(t,e)=>e.startsWith("aria-")||e.startsWith("data-")||Bc(e)||Vr.default.includes(e)?!0:Object.prototype.hasOwnProperty.call(Vr,t)?Vr[t].includes(e):!1;var Be=(t,e)=>{let r=t.call("exec",e,t);if(r)return S(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},bs=(t,e)=>{let r=(t.preSrc||"")+(Be(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files&&!n.assets)return r;if(r.startsWith("/assets/")){let o=r.slice(8),s=n.assets&&(n.assets[r]||n.assets[o]);return s&&s.content?s.content.src:r}if(r.startsWith("/files/")){let o=r.slice(7),s=n.files&&(n.files[r]||n.files[o]);return s&&s.content?s.content.src:r}if(n.assets){let o=n.assets[r];if(o&&o.content)return o.content.src}if(n.files){let o=n.files[r];if(o&&o.content)return o.content.src}return r},xs={src:t=>bs(t,t.src),href:t=>Be(t,t.href),action:t=>Be(t,t.action),poster:t=>bs(t,t.poster),data:t=>Be(t,t.data)},_s=t=>{let e=t.tag||"div",r={};for(let n in xs)if(t[n]!==void 0&&he(e,n)){let o=xs[n](t);o!==void 0&&(r[n]=o)}return r};var Uc=1;function zt(t){return t.length>2&&t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>=65&&t.charCodeAt(2)<=90}function Gc(t){return t.charAt(2).toLowerCase()+t.slice(3)}function Wc(t){return t.toLowerCase()}function Wr(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Wr(o,s):r[n]=s}return r}function ot(t,e,r,n={},o){if(t==null||t===!1)return null;(typeof t=="string"||typeof t=="number")&&(t={text:t});let s=Object.create(null);s.key=r||t.key||`_${Uc++}`,s.parent=e||null,s.context=t.context||e?.context||n.context||{},s.context.__create||(s.context.__create=ot);let i=s.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||s,path:e?.__ref?.path?[...e.__ref.path,s.key]:[s.key]};if(r&&!t.extends&&!t.extend){let g=r.indexOf("_");if(g>0){let b=r.substring(0,g),m=s.context?.components;m&&(m[b]||m["smbls."+b])&&(t={extends:b,...t})}}pe(s,t,n);let c=new Set(["childProps","attr","style","scope","data"]),a=s.props&&typeof s.props=="object"?s.props:null;for(let g in t){if(g==="parent"||g==="node"||g==="__ref"||g==="extends"||g==="context"||g==="props")continue;let b=t[g],m=s[g],y=m&&b&&typeof m=="object"&&typeof b=="object"&&!Array.isArray(m)&&!Array.isArray(b)&&typeof m!="function"&&typeof b!="function";y&&g.charCodeAt(0)>=65&&g.charCodeAt(0)<=90?s[g]=Wr(m,b):y&&c.has(g)?s[g]={...m,...b}:s[g]=b}function l(g){for(let b in g){let m=g[b],y=s[b],x=y&&m&&typeof y=="object"&&typeof m=="object"&&!Array.isArray(y)&&!Array.isArray(m)&&typeof y!="function"&&typeof m!="function";x&&b.charCodeAt(0)>=65&&b.charCodeAt(0)<=90?s[b]=Wr(y,m):x&&c.has(b)?s[b]={...y,...m}:s[b]=m}}a&&l(a),t.props&&typeof t.props=="object"&&l(t.props),t.data!==void 0&&(s.data=t.data),t.classlist!==void 0&&(s.classlist=t.classlist),t.text!==void 0&&(s.text=t.text),t.html!==void 0&&(s.html=t.html);let f=s.scope&&typeof s.scope=="object"?s.scope:null,u=e?.scope,p=s.context&&typeof s.context.globalScope=="object"&&s.context.globalScope||null,h=u||p||null;if(t.scope!==void 0||f){let g={};f&&Object.assign(g,f),t.scope!==void 0&&Object.assign(g,t.scope),s.scope=Ye(g,h)}else h&&(s.scope=h);if(t.if!==void 0&&(s.if=t.if),Lr(s),zc(s,e,t),s.if!=null){let g;if(typeof s.if=="function")try{g=s.if(s,s.state,s.context)}catch(b){if(g=!1,i.__ifError=b,typeof console<"u"&&console.warn){let m=s.key||s.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${m} \u2014 treating as false:`,b?.message||b)}}else g=s.if;i.__if=!!g}if(i.__if)typeof t.if=="function"&&(i.__ifInitialized=!0);else return e&&(e[s.key]=s),typeof t.if=="function"&&zr(s,{if:t.if}),s;s.tag||(s.tag=Ht(s)),kt("Init",s,n);let d=s.node=Kt(s);if(!d)return s;kt("AttachNode",s,n),d.setAttribute&&s.key&&d.setAttribute("data-key",s.key),d.setAttribute&&s.context?.scopeSelector&&s.context.scopeSelector!==":root"&&s.context.key&&s.key===s.context.key&&d.setAttribute("data-smbls-app",s.context.key),s.id&&d.setAttribute&&(d.id=s.id),ks(s,n),zr(s,t),Hr(s),Cs(s),Zc(s);try{As(s,n)}catch(g){if(typeof console<"u"&&console.error){let b=s.__ref?.path?.join(".")||s.key||"<root>";console.error(`[smbls] createChildren failed at ${b}:`,g?.message||g,g?.stack?`
12
12
  `+g.stack.split(`
13
13
  `).slice(0,6).join(`
14
- `):"")}}if(Jn(s,t,o),t&&(t[s.key]=s,t.__ref?.__children&&(t.__ref.__children.includes(s.key)||t.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&Q(g);try{let b=s.html(s,s.state,s.context);b!=null&&typeof b!="function"&&(s.node.innerHTML=b)}catch{}finally{g&&W()}}if(Ce("Create",s,r),Ce("Complete",s,r),Ce("Render",s,r),Ce("RenderRouter",s,r),typeof s.onFrame=="function"){let g=s.onFrame,b=s.context?.designSystem,y=()=>{if(s.node){if(s.node.isConnected){b&&Q(b);try{g(s,s.state,s.context)}catch(m){console.error("[DOMQL] onFrame error:",m)}finally{b&&W()}}requestAnimationFrame(y)}};requestAnimationFrame(y)}return s}function Wc(e,t,n){let r=!t,o=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,s=r&&o&&e.context?.state,i=n.state!==void 0&&!s?n.state:e.state&&!U(e.state)?e.state:void 0;if(i==null){if(t?.state)e.state=t.state,ve(e,e.state);else if(e.context?.state){let a=e.context.state,c={...a},f=e.context?.polyglot;if(f?.translations){let l=a.lang||f.defaultLang||"en",u=f.translations[l];if(u&&typeof u=="object")for(let h in u)c[h]===void 0&&(c[h]=u[h]);let p=new Set(f.languages||[]);for(let h in f.translations)!p.has(h)&&c[h]===void 0&&(c[h]=f.translations[h])}e.state=U(c)?c:Y(c),e.state.__element=e,e.state.root=e.state,ve(e,e.state)}else e.state={},Object.defineProperty(e.state,"root",{value:e.state,enumerable:!1,configurable:!0,writable:!0}),ve(e,e.state);return}if(typeof i=="string"){if(e.state=Ss(i,t),e.state&&typeof e.state=="object"&&!U(e.state)){let a=t?.state?.root||t?.state||e.state;Object.defineProperty(e.state,"root",{value:a,enumerable:!1,configurable:!0,writable:!0})}ve(e,e.state);return}if(typeof i=="function"){let a=i(e,t?.state);e.state=Y(a||{})}else e.state=Y({...i});e.state.__element=e,t?.state?(e.state.parent=t.state,e.state.root=t.state.root||t.state):e.state.root=e.state,ve(e,e.state)}function Un(e,t){if(!t)return e;let n=t.split("/"),r=e;for(let o of n){if(r==null)return{};r=r[o]}return r??{}}function Ss(e,t){if(!t)return{};if(e===".")return t.state||{};if(e.startsWith("../")){let o=e.slice(3);return o?Un(t.state,o):t.state??{}}if(e.startsWith("~/")){let o=t.state?.root||t.state,s=e.slice(2);return s?Un(o,s):o??{}}if(t.state?.[e]!==void 0)return t.state[e];let n=Un(t.state,e);if(n!=null&&Object.keys(n).length>0)return n;let r=t.context?.polyglot;if(r?.translations){let o=t.state?.root?.lang||r.defaultLang||"en",s=r.translations[o];if(s?.[e]!==void 0)return s[e];if(r.translations[e]!==void 0)return r.translations[e]}return{}}function zc(e){let t=e.__ref,n=e.tag||"div",r=e.context?.designSystem,o=[],s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];if(typeof e[a]!="function"||J.has(a))continue;let c=a.charCodeAt(0);c>=65&&c<=90||ze(a)||X[a]||Z&&Z.has(a)||ht(n,a)||o.push({prop:a,fn:e[a]})}for(let i=0;i<o.length;i++){let{prop:a,fn:c}=o[i];t.__exec[a]=c,Object.defineProperty(e,a,{get(){r&&Q(r);try{return c(e,e.state,e.context)}catch{return}finally{r&&W()}},set(f){delete t.__exec[a],Object.defineProperty(e,a,{value:f,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Hn(e,t){let n=e.__ref;if(zc(e),typeof e.text=="function"){let o=e.text,s=j(()=>{if(!n.contentManaged)try{let i=o(e,e.state,e.context);e.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=Ct.call(e,i,e.state)),e.tag==="string"?e.node.nodeValue=i:e.node.textContent=i)}catch{}},{depth:n.path.length});n.__effects.push(s),n.__exec.text=o}else if(typeof e.text=="string"&&e.text.includes("{{")){let o=e.text,s=j(()=>{if(n.contentManaged)return;let i=Ct.call(e,o,e.state);i!=null&&(e.text=i),e.node&&(e.tag==="string"?e.node.nodeValue=i??"":e.node.textContent=i??"")},{depth:n.path.length});n.__effects.push(s),n.__exec.text=o}for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&typeof e[o]=="function"&&!J.has(o)&&!ze(o)&&!n.__exec[o]){if(X[o]){let s=e[o],i=o,a=j(()=>{let c=e.context?.designSystem;c&&Q(c);try{let f=s(e,e.state,e.context),l=X[i](f,e,e.state,e.context);l&&e.node?We(e.node,l):e.node&&(i==="show"||i==="hide")&&(e.node.style.display="")}finally{c&&W()}},{depth:n.path.length});n.__effects.push(a),n.__exec[o]=s}else if(Z&&Z.has(o)){let s=e[o],i=o,a=j(()=>{let c=e.context?.designSystem;c&&Q(c);try{let f=s(e,e.state,e.context);e.node&&(f!=null?We(e.node,{[i]:f}):e.node.style[i]="")}finally{c&&W()}},{depth:n.path.length});n.__effects.push(a),n.__exec[o]=s}}if(typeof t.html=="function"){let o=t.html,s=j(()=>{let i=e.context?.designSystem;i&&Q(i);try{let a=o(e,e.state,e.context);e.node&&a!=null&&typeof a!="function"&&(e.node.innerHTML=a)}finally{i&&W()}},{depth:n.path.length});n.__effects.push(s),n.__exec.html=o}if(typeof t.value=="function"){let o=t.value,s=j(()=>{try{let i=o(e,e.state,e.context);if(!e.node||!("value"in e.node))return;let a=i==null?"":String(i);if(e.node.value===a)return;let c=typeof document<"u"&&document.activeElement===e.node,f=c&&typeof e.node.selectionStart=="number"?e.node.selectionStart:null,l=c&&typeof e.node.selectionEnd=="number"?e.node.selectionEnd:null;if(e.node.value=a,c&&f!=null&&l!=null)try{e.node.setSelectionRange(f,l)}catch{}}catch{}},{depth:n.path.length});n.__effects.push(s),n.__exec.value=o}if(typeof t.style=="function"){let o=t.style,s=j(()=>{let i=o(e,e.state,e.context);We(e.node,i)},{depth:n.path.length});n.__effects.push(s),n.__exec.style=o}else if(e.style&&typeof e.style=="object")for(let o in e.style){let s=e.style[o];if(typeof s!="function")continue;let i=j(()=>{try{let a=s(e,e.state,e.context);e.node&&We(e.node,{[o]:a})}catch{}},{depth:n.path.length});n.__effects.push(i)}if(e.attr&&typeof e.attr=="object"){for(let o in e.attr)if(typeof e.attr[o]=="function"){let s=e.attr[o],i=o,a=j(()=>{try{let c=s(e,e.state,e.context);e.node?.setAttribute&&(c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c))}catch{}},{depth:n.path.length});n.__effects.push(a)}}if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=j(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:n.path.length});n.__effects.push(a)}if(e.data&&typeof e.data=="object")for(let o in e.data){let s=e.data[o];if(typeof s!="function")continue;let i="data-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase()),a=j(()=>{try{let c=s(e,e.state,e.context);if(!e.node?.setAttribute)return;c==null||c===!1?e.node.removeAttribute(i):typeof c!="function"&&typeof c!="object"&&e.node.setAttribute(i,c===!0?"":c)}catch{}},{depth:n.path.length});n.__effects.push(a)}let r=e.classlist&&typeof e.classlist=="object"&&!Array.isArray(e.classlist)?e.classlist:e.class&&typeof e.class=="object"&&!Array.isArray(e.class)?e.class:null;if(r)for(let o in r){let s=r[o];if(typeof s!="function")continue;let i=j(()=>{try{let a=s(e,e.state,e.context);if(!e.node?.classList)return;typeof a=="string"?e.node.classList.add(a):a?e.node.classList.add(o):e.node.classList.remove(o)}catch{}},{depth:n.path.length});n.__effects.push(i)}if(typeof t.if=="function"){let o=t.if,s=j(()=>{let i;try{i=o(e,e.state,e.context)}catch(c){if(i=!1,n.__ifError=c,typeof console<"u"&&console.warn){let f=e.key||e.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${f} \u2014 treating as false:`,c?.message||c)}return}let a=n.__if;if(n.__if=!!i,a&&!n.__if&&e.node)e.node.remove();else if(!a&&n.__if)if(n.__ifInitialized){e.node||(e.node=qe(e));let c=e.parent,f=c?.node;if(f&&e.node){let l=null,u=Object.keys(c),p=u.indexOf(e.key);for(let h=p+1;h<u.length;h++){let d=c[u[h]];if(d?.node?.parentNode===f){l=d.node;break}}l?f.insertBefore(e.node,l):f.appendChild(e.node)}else Jn(e,e.parent);qn(e)}else{if(n.__ifInitialized=!0,e.tag||(e.tag=He(e)),Ce("Init",e,{}),e.node||(e.node=qe(e)),!e.node)return;Ce("AttachNode",e,{}),e.node.setAttribute&&e.key&&e.node.setAttribute("data-key",e.key),e.id&&e.node.setAttribute&&(e.node.id=e.id),Cs(e,{});let c=t.if;delete t.if;try{Hn(e,t)}finally{t.if=c}qn(e),ws(e),ks(e,{}),Jn(e,e.parent)}},{depth:n.path.length});n.__effects.push(s)}for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||J.has(o)||typeof e[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||ze(o))continue;let i=e[o];n.__exec[o]=i;let a=e.tag||"div";if(ht(a,o)&&!X[o]&&!(Z&&Z.has(o))){let c=o,f=j(()=>{try{let l=i(e,e.state,e.context);e.node?.setAttribute&&(l==null||l===!1?e.node.removeAttribute(c):typeof l!="function"&&typeof l!="object"&&(c==="src"&&"src"in e.node?e.node.src=l:e.node.setAttribute(c,l===!0?"":l)))}catch{}},{depth:n.path.length});n.__effects.push(f)}}Kc(e),Qc(e)}function qn(e){let{node:t}=e;if(t){if(typeof e.text=="string"&&!e.text.includes("{{")?e.tag==="string"?t.nodeValue=e.text:t.textContent=e.text:typeof e.text=="number"&&(t.textContent=e.text),Xc(e),typeof e.html=="string"&&(t.innerHTML=e.html),e.value!=null&&typeof e.value!="function"&&"value"in t){let n=String(e.value);t.value!==n&&(t.value=n)}if(e.style&&typeof e.style=="object"&&We(t,e.style),e.attr&&typeof e.attr=="object")for(let n in e.attr){let r=e.attr[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||t.setAttribute&&t.setAttribute(n,r===!0?"":r)}if(e.data&&typeof e.data=="object")for(let n in e.data){let r=e.data[n];typeof r=="function"||typeof r=="object"||r==null||r===!1||t.dataset&&(t.dataset[n]=r===!0?"":r)}if(e.classlist||e.class){let n=e.classlist||e.class;if(typeof n=="string")n.split(" ").forEach(r=>r&&t.classList.add(r));else if(typeof n=="object")for(let r in n){let o=typeof n[r]=="function"?n[r](e,e.state,e.context):n[r];o&&t.classList.add(typeof o=="string"?o:r)}}}}function We(e,t){if(!e||!t||!e.style)return;let n=null;for(let r in t){let o=t[r];if(o!=null){if(r.charAt(0)==="&"&&typeof o=="object"){n||(n={}),n[r]=o;continue}try{let s=String(o),i=r.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=s.trim(),c=/\s*!important\s*$/.test(a),f=a.replace(/\s*!important\s*$/,"");e.style.setProperty(i,f,c?"important":"")}catch{}}}n&&qc(e,n)}var Hc=0;function qc(e,t){let n=`_ds${Hc++}`;e.classList.add(n);let r=e.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 t){let a="."+n,c=i.replace(/&/g,a).split(",").map(l=>{let u=l.trim();return u.includes(a)?u:a+u}).join(", "),f=t[i];if(typeof f=="object"){let l="",u="";for(let p in f){let h=f[p];if(typeof h=="object"){let d=p.includes("&")?c.split(", ").map(b=>p.replace(/&/g,b)).join(", "):c.split(", ").map(b=>`${b} ${p}`).join(", "),g="";for(let b in h)g+=`${b.replace(/[A-Z]/g,y=>"-"+y.toLowerCase())}: ${h[b]};`;u+=`${d} { ${g} }
15
- `}else l+=`${p.replace(/[A-Z]/g,d=>"-"+d.toLowerCase())}: ${h};`}l&&(s+=`${c} { ${l} }
16
- `),u&&(s+=u)}}s&&(o.textContent+=s)}function Kc(e){let t=e.subscribeTo;if(!Array.isArray(t)||t.length===0)return;let n=e.__ref;for(let r=0;r<t.length;r++){let o=t[r];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],a=s.slice(1),c={value:!1},f=j(()=>{let l=e.state&&(U(e.state)?e.state.root:null);if(!l||!U(l))return;let u=l;u=u[i];for(let p=0;p<a.length&&!(u==null||typeof u!="object")&&U(u);p++)u=u[a[p]];if(c.value&&typeof e.onUpdate=="function"){let p=e.context?.designSystem;p&&Q(p);try{e.onUpdate(e,e.state,e.context)}catch(h){e.context?.plugins?.length&&Fe("error",e,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}finally{p&&W()}}},{depth:n.path.length});c.value=!0,n.__effects.push(f)}}function Qc(e){let t=e.__ref;t.__conditionalRunners=[];for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=n.charAt(0);if(r!=="."&&r!=="!")continue;let o=n.slice(1);if(!o)continue;let s=e[n];if(!s||typeof s!="object")continue;let i=r==="!",a={lastMatch:!1,appliedKeys:null},c=()=>{if(!e.node)return;let l,u=e[o];if(u===void 0)if(e.state&&o in e.state)l=e.state[o];else{let d=e.context?.cases?.[o];if(d===void 0)return;try{l=typeof d=="function"?d.call(e,e):d}catch(g){l=!1,t.__conditionalError=g,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` case fn threw on ${e.key||"?"} \u2014 treating as false:`,g?.message||g)}}else if(typeof u=="function")try{l=u(e,e.state,e.context)}catch(d){l=!1,t.__conditionalError=d,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${n}\` predicate threw on ${e.key||"?"} \u2014 treating as false:`,d?.message||d)}else l=u;let p=i?!l:!!l;if(p===a.lastMatch)return;a.lastMatch=p;let h=e.context?.designSystem;h&&Q(h);try{if(p){let d={};for(let b in s){if(!Object.prototype.hasOwnProperty.call(s,b))continue;let y=typeof s[b]=="function"?s[b](e,e.state,e.context):s[b];if(y!=null)if(X[b]){let m=X[b](y,e,e.state,e.context);if(m){let x=Array.isArray(m)?m:[m];for(let _ of x)_&&Object.assign(d,_)}}else Z&&Z.has(b)&&(d[b]=y)}let g=Object.keys(d);g.length?(We(e.node,d),a.appliedKeys=g):a.appliedKeys=null}else if(a.appliedKeys){for(let d of a.appliedKeys)e.node.style[d]="";a.appliedKeys=null}}finally{h&&W()}};t.__conditionalRunners.push(c);let f=j(c,{depth:t.path.length});t.__effects.push(f)}}var Gn=new WeakSet;function Jc(e){let t=e.ownerDocument;!t||Gn.has(t)||(Gn.add(t),queueMicrotask(()=>{Gn.delete(t);let n=t.body||t.documentElement;n&&n.offsetWidth}))}var Wn=new WeakSet;function Xc(e){let{node:t}=e;if(!t)return;if(Wn.has(e)){console.error("[applyCssInProps] re-entry detected for element",e.key,"prop path:",e.__ref?.path);return}Wn.add(e);let n=e.context?.designSystem;n&&Q(n);try{let r={},o=!1;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s)||typeof e[s]=="function"||J.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!ze(s)){if(X[s]){let a=e[s],c=X[s](a,e,e.state,e.context);if(c){if(Array.isArray(c))for(let f of c)f&&Object.assign(r,f);else Object.assign(r,c);o=!0}}else if(Z&&Z.has(s)){let a=e[s];a!=null&&typeof a!="object"&&(r[s]=a,o=!0)}else if(s.charCodeAt(0)===45){let a=e[s];a!=null&&typeof a!="object"&&(r[s]=a,o=!0)}else if(s.charAt(0)==="&"){let a=e[s];a&&typeof a=="object"&&(r[s]=a,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let a=e[s];if(a&&typeof a=="object"){let c={};for(let f in a){let l=a[f];if(typeof l=="function"&&(l=l(e,e.state,e.context)),!(l==null||typeof l=="function"))if(X[f]){let u=X[f](l,e,e.state,e.context);if(u)if(Array.isArray(u))for(let p of u)p&&Object.assign(c,p);else Object.assign(c,u)}else c[f]=l}if(Object.keys(c).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!e.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let u in c){let p=c[u];f[u]=typeof p=="string"&&!p.includes("!important")?p+" !important":p}let l=s.slice(1);r[`[data-theme="${l}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let u=s.slice(1),p=e.context?.designSystem?.media?.[u]||e.context?.designSystem?.media?.[u];p&&(f=`@media ${p}`)}let l={};for(let u in c){let p=c[u];if(p&&typeof p=="object"&&!Array.isArray(p)){let h={};for(let g in p)if(X[g]){let b=X[g](p[g],e,e.state,e.context);if(b)if(Array.isArray(b))for(let y of b)y&&Object.assign(h,y);else Object.assign(h,b)}else h[g]=p[g];let d=u.startsWith(":")?"":" ";if(f.includes(",")){let g=f.split(",").map(b=>`${b.trim()}${d}${u}`).join(", ");r[g]=h}else r[`${f}${d}${u}`]=h}else l[u]=p}Object.keys(l).length&&(r[f]=l)}o=!0}o=!0}}}}if(o){r.display&&String(r.display).includes("!important")&&(t.style.setProperty("display",String(r.display).replace(/\s*!important\s*$/,""),"important"),delete r.display);let s=Fn(r,null,e.context?.cssPrefix);if(s&&t.classList){let a=s.split(" ").filter(Boolean),c=!1;for(let f of a)t.classList.add(f),c||(f.charCodeAt(0)===95&&f.charCodeAt(1)===99||f.charCodeAt(0)===95&&f.indexOf("_c",1)!==-1)&&(c=!0);c&&Jc(t)}let i=e.display!=null&&typeof e.display!="function"?e.display:e.hide===!0||e.show===!1?"none":null;if(i!=null){let a=r.display;if(a&&a!==i)if(i==="none"){let c=[];for(let f of t.classList)f.startsWith("_d-")&&f!=="_d-none"&&c.push(f);for(let f of c)t.classList.remove(f);t.classList.add("_d-none")}else t.style.display=e.display}}}finally{n&&W(),Wn.delete(e)}}function ws(e){let{node:t}=e;if(!t||!t.setAttribute)return;if(e.aria&&typeof e.aria=="object")for(let o in e.aria){let s=e.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());t.setAttribute(i,s===!0?"":s)}let n=_s(e);for(let o in n){let s=n[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&t.setAttribute(o,s===!0?"":s)}let r=e.tag||"div";for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||typeof e[o]=="function"||J.has(o)||o==="on"||n[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!ze(o)&&!(X[o]||Z&&Z.has(o))&&ht(r,o)){let i=e[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=Ct(i,e,e.state,e.context),e[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;t.setAttribute(o,i===!0?"":i)}}}function Zc(e){if(!e.autoGrow)return;let t=e.node;if(!t||t.tagName!=="TEXTAREA")return;let n=e.autoGrow,r=n&&typeof n=="object"&&n.max?String(n.max):null;r&&(t.style.maxHeight=r);let o=()=>{t.style.height="auto",t.style.height=t.scrollHeight+"px"};o(),t.addEventListener("input",o),e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{try{t.removeEventListener("input",o)}catch{}})}var vs=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function Cs(e,t){for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||!ze(n)||vs.has(n))continue;let r=e[n];if(typeof r=="string"&&/^[A-Za-z_$][\w$]*$/.test(r)){let s=r;r=function(i){return e.call(s,i)}}if(typeof r!="function")continue;let o=Uc(n);Ke.has(o)||ut(Gc(o),e,r)}Yc(e)}function Yc(e){let t=e.node;if(!t||!t.addEventListener)return;let n={},r=!1;for(let p of vs){let h=e[p];typeof h=="function"&&(n[p]=h,r=!0)}if(!r)return;let o=typeof e.swipeThreshold=="number"?e.swipeThreshold:40,s=typeof e.swipeMaxDuration=="number"?e.swipeMaxDuration:600,i=0,a=0,c=0,f=!1,l=p=>{let h=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];h&&(i=h.clientX,a=h.clientY,c=Date.now(),f=!0)},u=p=>{if(!f)return;f=!1;let h=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!h)return;let d=h.clientX-i,g=h.clientY-a,b=Date.now()-c;if(b>s)return;let y=Math.abs(d),m=Math.abs(g);if(Math.max(y,m)<o)return;let x;if(y>m*1.2)x=d<0?"left":"right";else if(m>y*1.2)x=g<0?"up":"down";else return;let _="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),v=n[_],E=n.onSwipe;v&&v.call(e,p,e,e.state,e.context),E&&E.call(e,{direction:x,dx:d,dy:g,dt:b,event:p},e,e.state,e.context)};t.addEventListener("touchstart",l,{passive:!0}),t.addEventListener("touchend",u,{passive:!0}),e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{try{t.removeEventListener("touchstart",l)}catch{}try{t.removeEventListener("touchend",u)}catch{}})}function Kn(e,t){let n={...e};for(let r in t){let o=n[r],s=t[r];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?n[r]=Kn(o,s):n[r]=s}return n}function Qn(e,t,n){if(!t||!e.node)return;let r=e.childExtends;if(Array.isArray(t)){let o=(e.context?.document||globalThis.document)?.createDocumentFragment();if(!o)return;let s=e.childProps,i=e.childrenAs;for(let a=0;a<t.length;a++){let c=t[a],f=c;(typeof c=="string"||typeof c=="number")&&(c={text:c});let l=s;if(typeof s=="function")try{l=s(e,c)}catch{l=null}if(i==="state"){let h=f;(typeof f=="string"||typeof f=="number")&&(h={value:f,text:f}),c=l?{...l,state:h}:{state:h}}else l&&(c=Kn(l,c));if(r&&!c.ignoreChildExtends)if(c.extends){let h=Array.isArray(c.extends)?c.extends:[c.extends],d=Array.isArray(r)?r:[r];c={...c,extends:[...d,...h]}}else c={extends:r,...c};let u=c?.key||`${a}`,p=ne(c,e,u,n);p?.node&&o.appendChild(p.node)}e.node.appendChild(o);return}if(typeof t=="string"){let o=Ss(t,e);if(Array.isArray(o)){Qn(e,o,n);return}}if(typeof t=="object")for(let o in t){if(J.has(o))continue;let s=t[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),e.childProps&&(s=Kn(e.childProps,s)),r&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],a=Array.isArray(r)?r:[r];s={...s,extends:[...a,...i]}}else s={extends:r,...s};ne(s,e,o,n)}}}function ks(e,t){let{children:n,content:r}=e,o=e.childExtends;if(typeof n=="function"){let i=n;n=i(e,e.state,e.context),e.children=n;let a=e.__ref,c=!1,f=j(()=>{let l=i(e,e.state,e.context);if(!c){c=!0;return}if(l!==e.children){if(e.children=l,Array.isArray(l)&&e.childrenAs==="state"){let u=e.childProps,p=[],h=new Map;for(let m=0;m<l.length;m++){let x=l[m],_=u;if(typeof u=="function")try{_=u(e,x)}catch{_=null}let v=_&&_.key||x&&x.key||`${m}`;p.push(v),h.set(v,{rawChild:x,childProps:_})}let d=new Set(p),g=a.__children.slice();for(let m of g)if(!d.has(m)){let x=e[m];x?.remove&&x.remove(),delete e[m]}let b=e.childExtends,y=(e.context?.document||globalThis.document)?.createDocumentFragment();for(let m of p){let x=h.get(m),_=x.rawChild,v=e[m];if(v&&v.state){if(_&&typeof _=="object"){let N=v.state;if(typeof N.replace=="function")N.replace(_);else if(typeof N.update=="function"){for(let L in N)if(!(L==="__element"||L==="root"||L==="parent"||L==="update")&&!Object.prototype.hasOwnProperty.call(_,L))try{N[L]=void 0}catch{}N.update(_)}else for(let L in _)N[L]=_[L]}continue}let E=_;(typeof _=="string"||typeof _=="number")&&(E={value:_,text:_});let H=x.childProps,B=H?{...H,state:E}:{state:E};if(b&&!B.ignoreChildExtends)if(B.extends){let N=Array.isArray(B.extends)?B.extends:[B.extends],L=Array.isArray(b)?b:[b];B={...B,extends:[...L,...N]}}else B={extends:b,...B};let V=ne(B,e,m,t);V?.node&&y&&y.appendChild(V.node)}y&&y.childNodes.length&&e.node&&e.node.appendChild(y),a.__children=p;return}for(let u of[...a.__children]){let p=e[u];p?.remove&&p.remove(),delete e[u]}a.__children=[],Qn(e,l,t)}},{depth:a.path.length});a.__effects.push(f)}if(Qn(e,n||r,t),n||r)return;let s=e.context?.components||{};{let i=Object.keys(e);for(let a=0;a<i.length;a++){let c=i[a];if(!c.endsWith("Extends")||typeof e[c]!="string")continue;let f=c.slice(0,-7);if(!f||f.charCodeAt(0)<65||f.charCodeAt(0)>90)continue;let l={extends:e[c]};delete e[c];for(let u=a+1;u<i.length;u++){let p=i[u],h=p.charCodeAt(0);if(h>=65&&h<=90||J.has(p)||typeof e[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let d=e[p];d!==void 0&&(l[p]=d,delete e[p])}e[f]&&typeof e[f]=="object"?e[f]={...l,...e[f]}:e[f]=l}}for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)||J.has(i)||typeof e[i]!="object"||e[i]===null)continue;let a=i.charCodeAt(0);if(a<65||a>90)continue;let c=e[i];if(!c.__ref){if(!c.extends&&!c.extend){let f=s[i]||s[`smbls.${i}`];f&&(c={extends:f,...c})}if(e.childProps&&(c={...e.childProps,...c}),o&&!c.ignoreChildExtends)if(c.extends){let f=Array.isArray(c.extends)?c.extends:[c.extends],l=Array.isArray(o)?o:[o];c={...c,extends:[...l,...f]}}else c={extends:o,...c};ne(c,e,i,t)}}}function Jn(e,t,n){let{node:r}=e;if(!r)return;let o=t?.node||(t?.nodeType?t:null);if(o)if(n?.position==="before"&&n.node)o.insertBefore(r,n.node);else if(n?.position==="after"&&n.node){let s=n.node.nextSibling;s?o.insertBefore(r,s):o.appendChild(r)}else o.appendChild(r)}function Ce(e,t,n){let r=e.charAt(0).toLowerCase()+e.slice(1);t.context?.plugins?.length&&Fe(r,t,n);let o="on"+e,s=t[o];if(typeof s=="function"){let i=e==="Render"||e==="RenderRouter";if(i){if(t.__ref.__inRender)return!0;t.__ref.__inRender=!0}let a=t.context?.designSystem;a&&Q(a);try{if(s(t,t.state,t.context,n)===!1)return!1}catch(c){if(t.context?.plugins?.length&&Fe("error",t,{hook:o,error:c})||console.error(`[DOMQL] Lifecycle "${o}" error:`,c),t.context?.strictMode)throw c}finally{a&&W(),i&&(t.__ref.__inRender=!1)}}return!0}var ea=ne;var ta=(e,t,n={})=>{if(!e||typeof e!="object")throw new Error("[SymbolsEmbed.mount] rootDef must be an object");if(typeof Node>"u"||!(t instanceof Node))throw new Error("[SymbolsEmbed.mount] host must be a DOM element");let r=n.state?Y(n.state):void 0;return ne(e,t,"Root",{state:r,context:n.context||{}})};return Rs(na);})();
14
+ `):"")}}if(Qr(s,e,o),e&&(e[s.key]=s,e.__ref?.__children&&(e.__ref.__children.includes(s.key)||e.__ref.__children.push(s.key))),typeof s.html=="function"&&s.node&&!s.node.innerHTML){let g=s.context?.designSystem;g&&Q(g);try{let b=s.html(s,s.state,s.context);b!=null&&typeof b!="function"&&(s.node.innerHTML=b)}catch{}finally{g&&z()}}if(kt("Create",s,n),kt("Complete",s,n),kt("Render",s,n),kt("RenderRouter",s,n),typeof s.onFrame=="function"){let g=s.onFrame,b=s.context?.designSystem,m=()=>{if(s.node){if(s.node.isConnected){b&&Q(b);try{g(s,s.state,s.context)}catch(y){console.error("[DOMQL] onFrame error:",y)}finally{b&&z()}}requestAnimationFrame(m)}};requestAnimationFrame(m)}return s}function zc(t,e,r){let n=!e,o=r.state&&typeof r.state=="object"&&!Array.isArray(r.state)&&Object.keys(r.state).length===0,s=n&&o&&t.context?.state,i=r.state!==void 0&&!s?r.state:t.state&&!G(t.state)?t.state:void 0;if(i==null){if(e?.state)t.state=e.state,vt(t,t.state);else if(t.context?.state){let c=t.context.state,a={...c},l=t.context?.polyglot;if(l?.translations){let f=c.lang||l.defaultLang||"en",u=l.translations[f];if(u&&typeof u=="object")for(let h in u)a[h]===void 0&&(a[h]=u[h]);let p=new Set(l.languages||[]);for(let h in l.translations)!p.has(h)&&a[h]===void 0&&(a[h]=l.translations[h])}t.state=G(a)?a:et(a),t.state.__element=t,t.state.root=t.state,vt(t,t.state)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),vt(t,t.state);return}if(typeof i=="string"){if(t.state=ws(i,e),t.state&&typeof t.state=="object"&&!G(t.state)){let c=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:c,enumerable:!1,configurable:!0,writable:!0})}vt(t,t.state);return}if(typeof i=="function"){let c=i(t,e?.state);t.state=et(c||{})}else t.state=et({...i});t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,vt(t,t.state)}function Br(t,e){if(!e)return t;let r=e.split("/"),n=t;for(let o of r){if(n==null)return{};n=n[o]}return n??{}}function ws(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")){let o=t.slice(3);return o?Br(e.state,o):e.state??{}}if(t.startsWith("~/")){let o=e.state?.root||e.state,s=t.slice(2);return s?Br(o,s):o??{}}if(e.state?.[t]!==void 0)return e.state[t];let r=Br(e.state,t);if(r!=null&&Object.keys(r).length>0)return r;let n=e.context?.polyglot;if(n?.translations){let o=e.state?.root?.lang||n.defaultLang||"en",s=n.translations[o];if(s?.[t]!==void 0)return s[t];if(n.translations[t]!==void 0)return n.translations[t]}return{}}function Hc(t){let e=t.__ref,r=t.tag||"div",n=t.context?.designSystem,o=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let c=s[i];if(typeof t[c]!="function"||J.has(c))continue;let a=c.charCodeAt(0);a>=65&&a<=90||zt(c)||X[c]||tt&&tt.has(c)||he(r,c)||o.push({prop:c,fn:t[c]})}for(let i=0;i<o.length;i++){let{prop:c,fn:a}=o[i];e.__exec[c]=a,Object.defineProperty(t,c,{get(){n&&Q(n);try{return a(t,t.state,t.context)}catch{return}finally{n&&z()}},set(l){delete e.__exec[c],Object.defineProperty(t,c,{value:l,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function zr(t,e){let r=t.__ref;if(Hc(t),typeof t.text=="function"){let o=t.text,s=F(()=>{if(!r.contentManaged)try{let i=o(t,t.state,t.context);t.node&&i!=null&&typeof i!="function"&&typeof i!="object"&&(typeof i=="string"&&i.includes("{{")&&(i=ve.call(t,i,t.state)),t.tag==="string"?t.node.nodeValue=i:t.node.textContent=i)}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}else if(typeof t.text=="string"&&t.text.includes("{{")){let o=t.text,s=F(()=>{if(r.contentManaged)return;let i=ve.call(t,o,t.state);i!=null&&(t.text=i),t.node&&(t.tag==="string"?t.node.nodeValue=i??"":t.node.textContent=i??"")},{depth:r.path.length});r.__effects.push(s),r.__exec.text=o}for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof t[o]=="function"&&!J.has(o)&&!zt(o)&&!r.__exec[o]){if(X[o]){let s=t[o],i=o,c,a=F(()=>{let l=t.context?.designSystem;l&&Q(l);try{let f=s(t,t.state,t.context),u=X[i](f,t,t.state,t.context);if(u&&t.node){let p=Ss(u);(p===null||p!==c)&&(c=p,Wt(t.node,u))}else t.node&&(i==="show"||i==="hide")&&(c=void 0,t.node.style.display="")}finally{l&&z()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}else if(tt&&tt.has(o)){let s=t[o],i=o,c,a=F(()=>{let l=t.context?.designSystem;l&&Q(l);try{let f=s(t,t.state,t.context);if(t.node)if(f!=null){let u=i+":"+String(f);u!==c&&(c=u,Wt(t.node,{[i]:f}))}else c=void 0,t.node.style[i]=""}finally{l&&z()}},{depth:r.path.length});r.__effects.push(a),r.__exec[o]=s}}if(typeof e.html=="function"){let o=e.html,s=F(()=>{let i=t.context?.designSystem;i&&Q(i);try{let c=o(t,t.state,t.context);t.node&&c!=null&&typeof c!="function"&&(t.node.innerHTML=c)}finally{i&&z()}},{depth:r.path.length});r.__effects.push(s),r.__exec.html=o}if(typeof e.value=="function"){let o=e.value,s=F(()=>{try{let i=o(t,t.state,t.context);if(!t.node||!("value"in t.node))return;let c=i==null?"":String(i);if(t.node.value===c)return;let a=typeof document<"u"&&document.activeElement===t.node,l=a&&typeof t.node.selectionStart=="number"?t.node.selectionStart:null,f=a&&typeof t.node.selectionEnd=="number"?t.node.selectionEnd:null;if(t.node.value=c,a&&l!=null&&f!=null)try{t.node.setSelectionRange(l,f)}catch{}}catch{}},{depth:r.path.length});r.__effects.push(s),r.__exec.value=o}if(typeof e.style=="function"){let o=e.style,s,i=F(()=>{let c=o(t,t.state,t.context),a=Ss(c);(a===null||a!==s)&&(s=a,Wt(t.node,c))},{depth:r.path.length});r.__effects.push(i),r.__exec.style=o}else if(t.style&&typeof t.style=="object")for(let o in t.style){let s=t.style[o];if(typeof s!="function")continue;let i,c=F(()=>{try{let a=s(t,t.state,t.context);if(t.node){let l=o+":"+String(a);l!==i&&(i=l,Wt(t.node,{[o]:a}))}}catch{}},{depth:r.path.length});r.__effects.push(c)}if(t.attr&&typeof t.attr=="object"){for(let o in t.attr)if(typeof t.attr[o]=="function"){let s=t.attr[o],i=o,c=F(()=>{try{let a=s(t,t.state,t.context);t.node?.setAttribute&&(a==null||a===!1?t.node.removeAttribute(i):typeof a!="function"&&typeof a!="object"&&t.node.setAttribute(i,a===!0?"":a))}catch{}},{depth:r.path.length});r.__effects.push(c)}}if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s!="function")continue;let i="aria-"+o.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),c=F(()=>{try{let a=s(t,t.state,t.context);if(!t.node?.setAttribute)return;a==null||a===!1?t.node.removeAttribute(i):typeof a!="function"&&typeof a!="object"&&t.node.setAttribute(i,a===!0?"":a)}catch{}},{depth:r.path.length});r.__effects.push(c)}if(t.data&&typeof t.data=="object")for(let o in t.data){let s=t.data[o];if(typeof s!="function")continue;let c="data-"+o.replace(/[A-Z]/g,l=>"-"+l.toLowerCase()),a=F(()=>{try{let l=s(t,t.state,t.context);if(!t.node?.setAttribute)return;l==null||l===!1?t.node.removeAttribute(c):typeof l!="function"&&typeof l!="object"&&t.node.setAttribute(c,l===!0?"":l)}catch{}},{depth:r.path.length});r.__effects.push(a)}let n=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(n)for(let o in n){let s=n[o];if(typeof s!="function")continue;let i=F(()=>{try{let c=s(t,t.state,t.context);if(!t.node?.classList)return;typeof c=="string"?t.node.classList.add(c):c?t.node.classList.add(o):t.node.classList.remove(o)}catch{}},{depth:r.path.length});r.__effects.push(i)}if(typeof e.if=="function"){let o=e.if,s=F(()=>{let i;try{i=o(t,t.state,t.context)}catch(a){if(i=!1,r.__ifError=a,typeof console<"u"&&console.warn){let l=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${l} \u2014 treating as false:`,a?.message||a)}return}let c=r.__if;if(r.__if=!!i,c&&!r.__if&&t.node)t.node.remove();else if(!c&&r.__if)if(r.__ifInitialized){t.node||(t.node=Kt(t));let a=t.parent,l=a?.node;if(l&&t.node){let f=null,u=Object.keys(a),p=u.indexOf(t.key);for(let h=p+1;h<u.length;h++){let d=a[u[h]];if(d?.node?.parentNode===l){f=d.node;break}}f?l.insertBefore(t.node,f):l.appendChild(t.node)}else Qr(t,t.parent);Hr(t)}else{if(r.__ifInitialized=!0,t.tag||(t.tag=Ht(t)),kt("Init",t,{}),t.node||(t.node=Kt(t)),!t.node)return;kt("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),ks(t,{});let a=e.if;delete e.if;try{zr(t,e)}finally{e.if=a}Hr(t),Cs(t),As(t,{}),Qr(t,t.parent)}},{depth:r.path.length});r.__effects.push(s)}for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||J.has(o)||typeof t[o]!="function")continue;let s=o.charCodeAt(0);if(s>=65&&s<=90||zt(o))continue;let i=t[o];r.__exec[o]=i;let c=t.tag||"div";if(he(c,o)&&!X[o]&&!(tt&&tt.has(o))){let a=o,l=F(()=>{try{let f=i(t,t.state,t.context);t.node?.setAttribute&&(f==null||f===!1?t.node.removeAttribute(a):typeof f!="function"&&typeof f!="object"&&(a==="src"&&"src"in t.node?t.node.src=f:t.node.setAttribute(a,f===!0?"":f)))}catch{}},{depth:r.path.length});r.__effects.push(l)}}Qc(t),Jc(t)}function Hr(t){let{node:e}=t;if(e){if(typeof t.text=="string"&&!t.text.includes("{{")?t.tag==="string"?e.nodeValue=t.text:e.textContent=t.text:typeof t.text=="number"&&(e.textContent=t.text),Yc(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&"value"in e){let r=String(t.value);e.value!==r&&(e.value=r)}if(t.style&&typeof t.style=="object"&&Wt(e,t.style),t.attr&&typeof t.attr=="object")for(let r in t.attr){let n=t.attr[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.setAttribute&&e.setAttribute(r,n===!0?"":n)}if(t.data&&typeof t.data=="object")for(let r in t.data){let n=t.data[r];typeof n=="function"||typeof n=="object"||n==null||n===!1||e.dataset&&(e.dataset[r]=n===!0?"":n)}if(t.classlist||t.class){let r=t.classlist||t.class;if(typeof r=="string")r.split(" ").forEach(n=>n&&e.classList.add(n));else if(typeof r=="object")for(let n in r){let o=typeof r[n]=="function"?r[n](t,t.state,t.context):r[n];o&&e.classList.add(typeof o=="string"?o:n)}}}}function Ss(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function Wt(t,e){if(!t||!e||!t.style)return;let r=null;for(let n in e){let o=e[n];if(o!=null){if(n.charAt(0)==="&"&&typeof o=="object"){r||(r={}),r[n]=o;continue}try{let s=String(o),i=n.replace(/[A-Z]/g,f=>"-"+f.toLowerCase()),c=s.trim(),a=/\s*!important\s*$/.test(c),l=c.replace(/\s*!important\s*$/,"");t.style.setProperty(i,l,a?"important":"")}catch{}}}r&&qc(t,r)}var Kc=0;function qc(t,e){let r=`_ds${Kc++}`;t.classList.add(r);let n=t.ownerDocument,o=n.querySelector("style[data-smbls-scoped]");o||(o=n.createElement("style"),o.setAttribute("data-smbls-scoped",""),n.head.appendChild(o));let s="";for(let i in e){let c="."+r,a=i.replace(/&/g,c).split(",").map(f=>{let u=f.trim();return u.includes(c)?u:c+u}).join(", "),l=e[i];if(typeof l=="object"){let f="",u="";for(let p in l){let h=l[p];if(typeof h=="object"){let d=p.includes("&")?a.split(", ").map(b=>p.replace(/&/g,b)).join(", "):a.split(", ").map(b=>`${b} ${p}`).join(", "),g="";for(let b in h)g+=`${b.replace(/[A-Z]/g,m=>"-"+m.toLowerCase())}: ${h[b]};`;u+=`${d} { ${g} }
15
+ `}else f+=`${p.replace(/[A-Z]/g,d=>"-"+d.toLowerCase())}: ${h};`}f&&(s+=`${a} { ${f} }
16
+ `),u&&(s+=u)}}s&&(o.textContent+=s)}function Qc(t){let e=t.subscribeTo;if(!Array.isArray(e)||e.length===0)return;let r=t.__ref;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o!="string"||o.length===0)continue;let s=o.split("."),i=s[0],c=s.slice(1),a={value:!1},l=F(()=>{let f=t.state&&(G(t.state)?t.state.root:null);if(!f||!G(f))return;let u=f;u=u[i];for(let p=0;p<c.length&&!(u==null||typeof u!="object");p++)if(G(u))u=u[c[p]];else break;if(a.value&&typeof t.onUpdate=="function"){let p=t.context?.designSystem;p&&Q(p);try{t.onUpdate(t,t.state,t.context)}catch(h){t.context?.plugins?.length&&Nt("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}finally{p&&z()}}},{depth:r.path.length});a.value=!0,r.__effects.push(l)}}function Jc(t){let e=t.__ref;e.__conditionalRunners=[];for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=r.charAt(0);if(n!=="."&&n!=="!")continue;let o=r.slice(1);if(!o)continue;let s=t[r];if(!s||typeof s!="object")continue;let i=n==="!",c={lastMatch:!1,appliedKeys:null},a=()=>{if(!t.node)return;let f,u=t[o];if(u===void 0)if(t.state&&o in t.state)f=t.state[o];else{let d=t.context?.cases?.[o];if(d===void 0)return;try{f=typeof d=="function"?d.call(t,t):d}catch(g){f=!1,e.__conditionalError=g,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,g?.message||g)}}else if(typeof u=="function")try{f=u(t,t.state,t.context)}catch(d){f=!1,e.__conditionalError=d,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,d?.message||d)}else f=u;let p=i?!f:!!f;if(p===c.lastMatch)return;c.lastMatch=p;let h=t.context?.designSystem;h&&Q(h);try{if(p){let d={};for(let b in s){if(!Object.prototype.hasOwnProperty.call(s,b))continue;let m=typeof s[b]=="function"?s[b](t,t.state,t.context):s[b];if(m!=null)if(X[b]){let y=X[b](m,t,t.state,t.context);if(y){let x=Array.isArray(y)?y:[y];for(let _ of x)_&&Object.assign(d,_)}}else tt&&tt.has(b)&&(d[b]=m)}let g=Object.keys(d);g.length?(Wt(t.node,d),c.appliedKeys=g):c.appliedKeys=null}else if(c.appliedKeys){for(let d of c.appliedKeys)t.node.style[d]="";c.appliedKeys=null}}finally{h&&z()}};e.__conditionalRunners.push(a);let l=F(a,{depth:e.path.length});e.__effects.push(l)}}var Ur=new WeakSet;function Xc(t){let e=t.ownerDocument;!e||Ur.has(e)||(Ur.add(e),queueMicrotask(()=>{Ur.delete(e);let r=e.body||e.documentElement;r&&r.offsetWidth}))}var Gr=new WeakSet;function Yc(t){let{node:e}=t;if(!e)return;if(Gr.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}Gr.add(t);let r=t.context?.designSystem;r&&Q(r);try{let n={},o=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s)||typeof t[s]=="function"||J.has(s))continue;let i=s.charCodeAt(0);if(!(i>=65&&i<=90)&&!zt(s)){if(X[s]){let c=t[s],a=X[s](c,t,t.state,t.context);if(a){if(Array.isArray(a))for(let l of a)l&&Object.assign(n,l);else Object.assign(n,a);o=!0}}else if(tt&&tt.has(s)){let c=t[s];c!=null&&typeof c!="object"&&(n[s]=c,o=!0)}else if(s.charCodeAt(0)===45){let c=t[s];c!=null&&typeof c!="object"&&(n[s]=c,o=!0)}else if(s.charAt(0)==="&"){let c=t[s];c&&typeof c=="object"&&(n[s]=c,o=!0)}else if(s.charAt(0)==="@"||s.charAt(0)===":"){let c=t[s];if(c&&typeof c=="object"){let a={};for(let l in c){let f=c[l];if(typeof f=="function"&&(f=f(t,t.state,t.context)),!(f==null||typeof f=="function"))if(X[l]){let u=X[l](f,t,t.state,t.context);if(u)if(Array.isArray(u))for(let p of u)p&&Object.assign(a,p);else Object.assign(a,u)}else a[l]=f}if(Object.keys(a).length){if(s.length>1&&s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")&&!s.startsWith("@supports")&&(s==="@dark"||s==="@light"||!t.context?.designSystem?.media?.[s.slice(1)])){let f={};for(let p in a){let h=a[p];f[p]=typeof h=="string"&&!h.includes("!important")?h+" !important":h}let u=s.slice(1);n[`[data-theme="${u}"] &`]=f}else{let f=s;if(s.charAt(0)==="@"&&!s.startsWith("@media")&&!s.startsWith("@keyframes")){let p=s.slice(1),h=t.context?.designSystem?.media?.[p]||t.context?.designSystem?.media?.[p];h&&(f=`@media ${h}`)}let u={};for(let p in a){let h=a[p];if(h&&typeof h=="object"&&!Array.isArray(h)){let d={};for(let b in h)if(X[b]){let m=X[b](h[b],t,t.state,t.context);if(m)if(Array.isArray(m))for(let y of m)y&&Object.assign(d,y);else Object.assign(d,m)}else d[b]=h[b];let g=p.startsWith(":")?"":" ";if(f.includes(",")){let b=f.split(",").map(m=>`${m.trim()}${g}${p}`).join(", ");n[b]=d}else n[`${f}${g}${p}`]=d}else u[p]=h}Object.keys(u).length&&(n[f]=u)}o=!0}o=!0}}}}if(o){n.display&&String(n.display).includes("!important")&&(e.style.setProperty("display",String(n.display).replace(/\s*!important\s*$/,""),"important"),delete n.display);let s=Mr(n,null,t.context?.cssPrefix);if(s&&e.classList){let c=s.split(" ").filter(Boolean),a=!1;for(let l of c)e.classList.add(l),a||(l.charCodeAt(0)===95&&l.charCodeAt(1)===99||l.charCodeAt(0)===95&&l.indexOf("_c",1)!==-1)&&(a=!0);a&&Xc(e)}let i=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;if(i!=null){let c=n.display;if(c&&c!==i)if(i==="none"){let a=[];for(let l of e.classList)l.startsWith("_d-")&&l!=="_d-none"&&a.push(l);for(let l of a)e.classList.remove(l);e.classList.add("_d-none")}else e.style.display=t.display}}}finally{r&&z(),Gr.delete(t)}}function Cs(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let s=t.aria[o];if(typeof s=="function"||typeof s=="object"||s==null||s===!1)continue;let i="aria-"+o.replace(/[A-Z]/g,c=>"-"+c.toLowerCase());e.setAttribute(i,s===!0?"":s)}let r=_s(t);for(let o in r){let s=r[o];s!=null&&s!==!1&&typeof s!="function"&&typeof s!="object"&&e.setAttribute(o,s===!0?"":s)}let n=t.tag||"div";for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o)||typeof t[o]=="function"||J.has(o)||o==="on"||r[o]!==void 0)continue;let s=o.charCodeAt(0);if(!(s>=65&&s<=90)&&!zt(o)&&!(X[o]||tt&&tt.has(o))&&he(n,o)){let i=t[o];if(i==null||i===!1||(typeof i=="string"&&i.includes("{{")&&(i=ve(i,t,t.state,t.context),t[o]=i),i==null||i===!1||typeof i=="function"||typeof i=="object"))continue;e.setAttribute(o,i===!0?"":i)}}}function Zc(t){if(!t.autoGrow)return;let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let r=t.autoGrow,n=r&&typeof r=="object"&&r.max?String(r.max):null;n&&(e.style.maxHeight=n);let o=()=>{e.style.height="auto",e.style.height=e.scrollHeight+"px"};o(),e.addEventListener("input",o),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("input",o)}catch{}})}var vs=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function ks(t,e){for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||!zt(r)||vs.has(r))continue;let n=t[r];if(typeof n=="string"&&/^[A-Za-z_$][\w$]*$/.test(n)){let s=n;n=function(c){return t.call(s,c)}}if(typeof n!="function")continue;let o=Gc(r);qt.has(o)||ue(Wc(o),t,n)}ta(t)}function ta(t){let e=t.node;if(!e||!e.addEventListener)return;let r={},n=!1;for(let p of vs){let h=t[p];typeof h=="function"&&(r[p]=h,n=!0)}if(!n)return;let o=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,s=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,i=0,c=0,a=0,l=!1,f=p=>{let h=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];h&&(i=h.clientX,c=h.clientY,a=Date.now(),l=!0)},u=p=>{if(!l)return;l=!1;let h=p.changedTouches&&p.changedTouches[0]||p.touches&&p.touches[0];if(!h)return;let d=h.clientX-i,g=h.clientY-c,b=Date.now()-a;if(b>s)return;let m=Math.abs(d),y=Math.abs(g);if(Math.max(m,y)<o)return;let x;if(m>y*1.2)x=d<0?"left":"right";else if(y>m*1.2)x=g<0?"up":"down";else return;let _="onSwipe"+x.charAt(0).toUpperCase()+x.slice(1),w=r[_],v=r.onSwipe;w&&w.call(t,p,t,t.state,t.context),v&&v.call(t,{direction:x,dx:d,dy:g,dt:b,event:p},t,t.state,t.context)};e.addEventListener("touchstart",f,{passive:!0}),e.addEventListener("touchend",u,{passive:!0}),t.__ref.__eventCleanup||(t.__ref.__eventCleanup=[]),t.__ref.__eventCleanup.push(()=>{try{e.removeEventListener("touchstart",f)}catch{}try{e.removeEventListener("touchend",u)}catch{}})}function Kr(t,e){let r={...t};for(let n in e){let o=r[n],s=e[n];o&&s&&typeof o=="object"&&typeof s=="object"&&!Array.isArray(o)&&!Array.isArray(s)&&typeof o!="function"&&typeof s!="function"?r[n]=Kr(o,s):r[n]=s}return r}function qr(t,e,r){if(!e||!t.node)return;let n=t.childExtends;if(Array.isArray(e)){let s=(t.context?.document||globalThis.document)?.createDocumentFragment();if(!s)return;let i=t.childProps,c=t.childrenAs;for(let a=0;a<e.length;a++){let l=e[a],f=l;(typeof l=="string"||typeof l=="number")&&(l={text:l});let u=i;if(typeof i=="function")try{u=i(t,l)}catch{u=null}if(c==="state"){let d=f;(typeof f=="string"||typeof f=="number")&&(d={value:f,text:f}),l=u?{...u,state:d}:{state:d}}else u&&(l=Kr(u,l));if(n&&!l.ignoreChildExtends)if(l.extends){let d=Array.isArray(l.extends)?l.extends:[l.extends],g=Array.isArray(n)?n:[n];l={...l,extends:[...g,...d]}}else l={extends:n,...l};let p=l?.key||`${a}`,h=ot(l,t,p,r);h?.node&&s.appendChild(h.node)}t.node.appendChild(s);return}if(typeof e=="string"){let o=ws(e,t);if(Array.isArray(o)){qr(t,o,r);return}}if(typeof e=="object")for(let o in e){if(J.has(o))continue;let s=e[o];if(!(s==null||s===!1)){if((typeof s=="string"||typeof s=="number")&&(s={text:s}),t.childProps&&(s=Kr(t.childProps,s)),n&&!s.ignoreChildExtends)if(s.extends){let i=Array.isArray(s.extends)?s.extends:[s.extends],c=Array.isArray(n)?n:[n];s={...s,extends:[...c,...i]}}else s={extends:n,...s};ot(s,t,o,r)}}}function As(t,e){let{children:r,content:n}=t,o=t.childExtends;if(typeof r=="function"){let i=r;r=i(t,t.state,t.context),t.children=r;let c=t.__ref,a=!1,l=F(()=>{let f=i(t,t.state,t.context);if(!a){a=!0;return}if(f===t.children)return;if(t.children=f,Array.isArray(f)&&t.childrenAs==="state"){let h=t.childProps,d=[],g=new Map;for(let w=0;w<f.length;w++){let v=f[w],T=h;if(typeof h=="function")try{T=h(t,v)}catch{T=null}let Y=T&&T.key||v&&v.key||`${w}`;d.push(Y),g.set(Y,{rawChild:v,childProps:T})}let b=new Set(d),m=c.__children.slice();for(let w of m)if(!b.has(w)){let v=t[w];v?.remove&&v.remove(),delete t[w]}let y=t.childExtends,_=(t.context?.document||globalThis.document)?.createDocumentFragment();for(let w of d){let v=g.get(w),T=v.rawChild,Y=t[w];if(Y&&Y.state){if(T&&typeof T=="object"){let N=Y.state;if(typeof N.replace=="function")N.replace(T);else if(typeof N.update=="function"){for(let D in N)if(!(D==="__element"||D==="root"||D==="parent"||D==="update")&&!Object.prototype.hasOwnProperty.call(T,D))try{N[D]=void 0}catch{}N.update(T)}else for(let D in T)N[D]=T[D]}continue}let B=T;(typeof T=="string"||typeof T=="number")&&(B={value:T,text:T});let Z=v.childProps,U=Z?{...Z,state:B}:{state:B};if(y&&!U.ignoreChildExtends)if(U.extends){let N=Array.isArray(U.extends)?U.extends:[U.extends],D=Array.isArray(y)?y:[y];U={...U,extends:[...D,...N]}}else U={extends:y,...U};let gt=ot(U,t,w,e);gt?.node&&_&&_.appendChild(gt.node)}_&&_.childNodes.length&&t.node&&t.node.appendChild(_),c.__children=d;return}for(let h of[...c.__children]){let d=t[h];d?.remove&&d.remove(),delete t[h]}c.__children=[],qr(t,f,e)},{depth:c.path.length});c.__effects.push(l)}if(qr(t,r||n,e),r||n)return;let s=t.context?.components||{};{let i=Object.keys(t);for(let c=0;c<i.length;c++){let a=i[c];if(!a.endsWith("Extends")||typeof t[a]!="string")continue;let l=a.slice(0,-7);if(!l||l.charCodeAt(0)<65||l.charCodeAt(0)>90)continue;let f={extends:t[a]};delete t[a];for(let u=c+1;u<i.length;u++){let p=i[u],h=p.charCodeAt(0);if(h>=65&&h<=90||J.has(p)||typeof t[p]=="function"&&(p.startsWith("on")||p.startsWith(".")))break;let d=t[p];d!==void 0&&(f[p]=d,delete t[p])}t[l]&&typeof t[l]=="object"?t[l]={...f,...t[l]}:t[l]=f}}for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||J.has(i)||typeof t[i]!="object"||t[i]===null)continue;let c=i.charCodeAt(0);if(c<65||c>90)continue;let a=t[i];if(!a.__ref){if(!a.extends&&!a.extend){let l=s[i]||s[`smbls.${i}`];l&&(a={extends:l,...a})}if(t.childProps&&(a={...t.childProps,...a}),o&&!a.ignoreChildExtends)if(a.extends){let l=Array.isArray(a.extends)?a.extends:[a.extends],f=Array.isArray(o)?o:[o];a={...a,extends:[...f,...l]}}else a={extends:o,...a};ot(a,t,i,e)}}}function Qr(t,e,r){let{node:n}=t;if(!n)return;let o=e?.node||(e?.nodeType?e:null);if(o)if(r?.position==="before"&&r.node)o.insertBefore(n,r.node);else if(r?.position==="after"&&r.node){let s=r.node.nextSibling;s?o.insertBefore(n,s):o.appendChild(n)}else o.appendChild(n)}function kt(t,e,r){let n=t.charAt(0).toLowerCase()+t.slice(1);e.context?.plugins?.length&&Nt(n,e,r);let o="on"+t,s=e[o];if(typeof s=="function"){let i=t==="Render"||t==="RenderRouter";if(i){if(e.__ref.__inRender)return!0;e.__ref.__inRender=!0}let c=e.context?.designSystem;c&&Q(c);try{if(s(e,e.state,e.context,r)===!1)return!1}catch(a){if(e.context?.plugins?.length&&Nt("error",e,{hook:o,error:a})||console.error(`[DOMQL] Lifecycle "${o}" error:`,a),e.context?.strictMode)throw a}finally{c&&z(),i&&(e.__ref.__inRender=!1)}}return!0}var ea=ot;var ra=(t,e,r={})=>{if(!t||typeof t!="object")throw new Error("[SymbolsEmbed.mount] rootDef must be an object");if(typeof Node>"u"||!(e instanceof Node))throw new Error("[SymbolsEmbed.mount] host must be a DOM element");let n=r.state?et(r.state):void 0;return ot(t,e,"Root",{state:n,context:r.context||{}})};return Is(na);})();