smbls 3.14.882 → 3.14.883

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.
Files changed (84) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/production/smbls.core.analyze-QZRYNGC7.esm.js +2 -0
  3. package/dist/production/smbls.core.analyze-QZRYNGC7.esm.js.map +6 -0
  4. package/dist/production/{smbls.core.chunk-5YDGBDYW.esm.js → smbls.core.chunk-2JVAT2O2.esm.js} +2 -2
  5. package/dist/production/{smbls.core.chunk-IM5DFPOT.esm.js → smbls.core.chunk-5KFHDM6F.esm.js} +2 -2
  6. package/dist/production/{smbls.core.chunk-4JQUVKGV.esm.js → smbls.core.chunk-AVWRTNG5.esm.js} +3 -3
  7. package/dist/production/{smbls.core.chunk-4JQUVKGV.esm.js.map → smbls.core.chunk-AVWRTNG5.esm.js.map} +1 -1
  8. package/dist/production/{smbls.core.chunk-HP7RGC54.esm.js → smbls.core.chunk-EBDZRHJA.esm.js} +2 -2
  9. package/dist/production/smbls.core.chunk-L6DO7X4H.esm.js +28 -0
  10. package/dist/production/smbls.core.chunk-L6DO7X4H.esm.js.map +1 -0
  11. package/dist/production/{smbls.core.chunk-E7TCEHEP.esm.js → smbls.core.chunk-VACBBPO6.esm.js} +4 -4
  12. package/dist/production/{smbls.core.chunk-CARDUUUZ.esm.js → smbls.core.chunk-YXDZZRHE.esm.js} +2 -2
  13. package/dist/production/{smbls.core.chunk-CARDUUUZ.esm.js.map → smbls.core.chunk-YXDZZRHE.esm.js.map} +1 -1
  14. package/dist/production/{smbls.core.dropdown-QN3US3A5.esm.js → smbls.core.dropdown-ARSQNGRN.esm.js} +2 -2
  15. package/dist/production/smbls.core.esm.js +1 -1
  16. package/dist/production/{smbls.core.fetch-AL5D5IDC.esm.js → smbls.core.fetch-I3IR2OTE.esm.js} +2 -2
  17. package/dist/production/{smbls.core.fetchOnCreate-4SSQ2LUY.esm.js → smbls.core.fetchOnCreate-5BZEZL2U.esm.js} +2 -2
  18. package/dist/production/{smbls.core.inspect-QKBUB7S7.esm.js → smbls.core.inspect-ER2FC57P.esm.js} +2 -2
  19. package/dist/production/{smbls.core.lazyParts-B75GZNSM.esm.js → smbls.core.lazyParts-5CPSIGEW.esm.js} +2 -2
  20. package/dist/production/{smbls.core.sync-6UATZWWS.esm.js → smbls.core.sync-HE4WDVBM.esm.js} +2 -2
  21. package/dist/production/{smbls.core.windows-MXBDADFX.esm.js → smbls.core.windows-5IZO5BDT.esm.js} +2 -2
  22. package/dist/production/smbls.esm.js +45 -45
  23. package/dist/production/smbls.esm.js.map +1 -1
  24. package/dist/smbls.cjs +45 -45
  25. package/dist/smbls.cjs.map +3 -3
  26. package/dist/smbls.core.analyze-XPFBFSMS.esm.js +2 -0
  27. package/dist/smbls.core.analyze-XPFBFSMS.esm.js.map +6 -0
  28. package/dist/{smbls.core.chunk-GBKTEN3N.esm.js → smbls.core.chunk-5DJIR5BJ.esm.js} +2 -2
  29. package/dist/{smbls.core.chunk-GBKTEN3N.esm.js.map → smbls.core.chunk-5DJIR5BJ.esm.js.map} +1 -1
  30. package/dist/{smbls.core.chunk-RBQDCCBI.esm.js → smbls.core.chunk-AWSETAGO.esm.js} +4 -4
  31. package/dist/smbls.core.chunk-DCCGDBMF.esm.js +28 -0
  32. package/dist/smbls.core.chunk-DCCGDBMF.esm.js.map +1 -0
  33. package/dist/{smbls.core.chunk-62F4NZJ5.esm.js → smbls.core.chunk-RIAG4SJZ.esm.js} +3 -3
  34. package/dist/{smbls.core.chunk-62F4NZJ5.esm.js.map → smbls.core.chunk-RIAG4SJZ.esm.js.map} +1 -1
  35. package/dist/{smbls.core.chunk-AU6S3R2A.esm.js → smbls.core.chunk-UH3U4WXX.esm.js} +2 -2
  36. package/dist/{smbls.core.chunk-HQ3UVUQH.esm.js → smbls.core.chunk-X5GDERZS.esm.js} +2 -2
  37. package/dist/{smbls.core.chunk-627QWF64.esm.js → smbls.core.chunk-Z6P4HD4V.esm.js} +2 -2
  38. package/dist/{smbls.core.dropdown-7Q5JRRY7.esm.js → smbls.core.dropdown-6V5VTEAX.esm.js} +2 -2
  39. package/dist/smbls.core.esm.js +1 -1
  40. package/dist/{smbls.core.fetch-5KG5VPXI.esm.js → smbls.core.fetch-QH223J7W.esm.js} +2 -2
  41. package/dist/{smbls.core.fetchOnCreate-4CP3V6UD.esm.js → smbls.core.fetchOnCreate-IT2CTE42.esm.js} +2 -2
  42. package/dist/{smbls.core.inspect-VLF77CO6.esm.js → smbls.core.inspect-3FOHAKVL.esm.js} +2 -2
  43. package/dist/{smbls.core.lazyParts-DMRXUELR.esm.js → smbls.core.lazyParts-LZGJ7IZV.esm.js} +2 -2
  44. package/dist/{smbls.core.sync-QHT6NWS7.esm.js → smbls.core.sync-MPGXGA5T.esm.js} +2 -2
  45. package/dist/{smbls.core.windows-N2ZJ35P6.esm.js → smbls.core.windows-P2ADUXHD.esm.js} +2 -2
  46. package/dist/smbls.embed.iife.js +1 -1
  47. package/dist/smbls.embed.iife.js.map +1 -1
  48. package/dist/smbls.esm.js +45 -45
  49. package/dist/smbls.esm.js.map +1 -1
  50. package/dist/smbls.iife-prod-string.js +2 -2
  51. package/dist/smbls.iife-string.js +2 -2
  52. package/dist/smbls.iife.js +1 -1
  53. package/dist/smbls.iife.js.map +1 -1
  54. package/package.json +4 -4
  55. package/dist/production/smbls.core.analyze-E5K675J7.esm.js +0 -2
  56. package/dist/production/smbls.core.analyze-E5K675J7.esm.js.map +0 -6
  57. package/dist/production/smbls.core.chunk-O7AIVWSV.esm.js +0 -28
  58. package/dist/production/smbls.core.chunk-O7AIVWSV.esm.js.map +0 -1
  59. package/dist/smbls.core.analyze-VTXSSOLD.esm.js +0 -2
  60. package/dist/smbls.core.analyze-VTXSSOLD.esm.js.map +0 -6
  61. package/dist/smbls.core.chunk-25GH47VB.esm.js +0 -28
  62. package/dist/smbls.core.chunk-25GH47VB.esm.js.map +0 -1
  63. /package/dist/production/{smbls.core.chunk-5YDGBDYW.esm.js.map → smbls.core.chunk-2JVAT2O2.esm.js.map} +0 -0
  64. /package/dist/production/{smbls.core.chunk-IM5DFPOT.esm.js.map → smbls.core.chunk-5KFHDM6F.esm.js.map} +0 -0
  65. /package/dist/production/{smbls.core.chunk-HP7RGC54.esm.js.map → smbls.core.chunk-EBDZRHJA.esm.js.map} +0 -0
  66. /package/dist/production/{smbls.core.chunk-E7TCEHEP.esm.js.map → smbls.core.chunk-VACBBPO6.esm.js.map} +0 -0
  67. /package/dist/production/{smbls.core.dropdown-QN3US3A5.esm.js.map → smbls.core.dropdown-ARSQNGRN.esm.js.map} +0 -0
  68. /package/dist/production/{smbls.core.fetch-AL5D5IDC.esm.js.map → smbls.core.fetch-I3IR2OTE.esm.js.map} +0 -0
  69. /package/dist/production/{smbls.core.fetchOnCreate-4SSQ2LUY.esm.js.map → smbls.core.fetchOnCreate-5BZEZL2U.esm.js.map} +0 -0
  70. /package/dist/production/{smbls.core.inspect-QKBUB7S7.esm.js.map → smbls.core.inspect-ER2FC57P.esm.js.map} +0 -0
  71. /package/dist/production/{smbls.core.lazyParts-B75GZNSM.esm.js.map → smbls.core.lazyParts-5CPSIGEW.esm.js.map} +0 -0
  72. /package/dist/production/{smbls.core.sync-6UATZWWS.esm.js.map → smbls.core.sync-HE4WDVBM.esm.js.map} +0 -0
  73. /package/dist/production/{smbls.core.windows-MXBDADFX.esm.js.map → smbls.core.windows-5IZO5BDT.esm.js.map} +0 -0
  74. /package/dist/{smbls.core.chunk-RBQDCCBI.esm.js.map → smbls.core.chunk-AWSETAGO.esm.js.map} +0 -0
  75. /package/dist/{smbls.core.chunk-AU6S3R2A.esm.js.map → smbls.core.chunk-UH3U4WXX.esm.js.map} +0 -0
  76. /package/dist/{smbls.core.chunk-HQ3UVUQH.esm.js.map → smbls.core.chunk-X5GDERZS.esm.js.map} +0 -0
  77. /package/dist/{smbls.core.chunk-627QWF64.esm.js.map → smbls.core.chunk-Z6P4HD4V.esm.js.map} +0 -0
  78. /package/dist/{smbls.core.dropdown-7Q5JRRY7.esm.js.map → smbls.core.dropdown-6V5VTEAX.esm.js.map} +0 -0
  79. /package/dist/{smbls.core.fetch-5KG5VPXI.esm.js.map → smbls.core.fetch-QH223J7W.esm.js.map} +0 -0
  80. /package/dist/{smbls.core.fetchOnCreate-4CP3V6UD.esm.js.map → smbls.core.fetchOnCreate-IT2CTE42.esm.js.map} +0 -0
  81. /package/dist/{smbls.core.inspect-VLF77CO6.esm.js.map → smbls.core.inspect-3FOHAKVL.esm.js.map} +0 -0
  82. /package/dist/{smbls.core.lazyParts-DMRXUELR.esm.js.map → smbls.core.lazyParts-LZGJ7IZV.esm.js.map} +0 -0
  83. /package/dist/{smbls.core.sync-QHT6NWS7.esm.js.map → smbls.core.sync-MPGXGA5T.esm.js.map} +0 -0
  84. /package/dist/{smbls.core.windows-N2ZJ35P6.esm.js.map → smbls.core.windows-P2ADUXHD.esm.js.map} +0 -0
@@ -0,0 +1,28 @@
1
+ function __smblsNs(c,a){for(var b in a)Object.defineProperty(c,b,{get:a[b],enumerable:!0});return c}import{$c as E,Bc as Of,E as ss,Ec as He,Fc as xe,I as kf,Jc as Ef,Kc as Rf,Lb as xr,Mb as kr,Nc as If,Oc as Df,Pc as Lf,Q as Af,Qb as so,Qc as cs,R as Q,Rc as Pf,Sc as ls,Tc as fs,Uc as co,Vc as Bf,Wc as Mf,Xb as It,Yc as us,Zc as Nf,_b as Cf,_c as ot,ad as Ve,db as at,eb as it,ec as we,fb as Z,fc as ao,kb as wr,l as wf,ld as I,md as An,nd as ke,od as zt,pd as Ar,q as xf,qd as Ff,rd as jf,sd as ae,td as Dt,uc as as,ud as ds,vb as Tf,vd as Ge,wc as vf,wd as Lt,xd as bt}from"./smbls.core.chunk-AVWRTNG5.esm.js";import{L as Sr,O as bf,P as Sf}from"./smbls.core.chunk-EBDZRHJA.esm.js";import{f as hr,h as P,i as nf,j as ie,l as ns,m as of,n as rf,o as $e,p as sf,q as H,u as af}from"./smbls.core.chunk-EPCSF55E.esm.js";import{Ba as ro,Ca as _f,Ea as ze,I as ff,Ka as mr,R as is,T as uf,Wa as yf,Xa as mf,Ya as io,ba as ht,d as j,e as D,g as nt,j as os,ja as df,ka as pf,kb as br,l as se,m as Se,ma as yr,n as _r,oa as hf,p as oo,qa as gf,ya as Y,z as lf,za as kn}from"./smbls.core.chunk-5KFHDM6F.esm.js";import{c as gr,d as cf,j as rs,k as Ue}from"./smbls.core.chunk-YXDZZRHE.esm.js";import{a as N}from"./smbls.core.chunk-WFARPHWF.esm.js";var Tv=t=>{let{state:e,props:n,__ref:o}=t,r=n?.state||e;return oo(r)("string","number")?(o.__state=r,{value:r}):r===!0?(o.__state=t.key,{}):r?(o.__hasRootState=!0,r):!1},ub=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},db=(t,e)=>{if(!t.includes("../"))return;let o=t.split("../").length-1;for(let r=0;r<o;r++){if(!e.parent)return null;e=e.parent}return e},pb=(t,e,n={})=>{let o=D(t)?t.split("/"):[t],r=o.length-1;for(let i=0;i<r;i++){let s=o[i],a=o[i+1];if(s==="__proto__"||a==="__proto__")return;let l=e[s];l||(l=e[s]={}),l[a]||(l[a]={}),t=a,e=l}return n.returnParent?e:e[t]},hb=(t,e,n={})=>{let r=t.__ref.__state;if(!gb(t))return;let i=ub(r,e.state),s=e.state;if(i)s=i,r=r.replaceAll("~/","");else{let a=db(r,e.state);a&&(s=a,r=r.replaceAll("../",""))}if(s)return pb(r,s,n)},Cv=(t,e)=>{let n=t.__ref,o=hb(t,e);if(o===void 0)return t.state;if(oo(o)("object","array"))return ze(o);if(oo(o)("string","number","boolean"))return n.__stateType=typeof o,{value:o}},gb=t=>{let{__ref:e}=t,n=e?.__state;return!!(n&&oo(n)("number","string","boolean"))},vv=function(t){return se(t)?!!(t.update&&t.parse&&t.clean&&t.create&&t.parent&&t.destroy&&t.rootUpdate&&t.parentUpdate&&t.keys&&t.values&&t.toggle&&t.replace&&t.quietUpdate&&t.quietReplace&&t.add&&t.apply&&t.applyReplace&&t.setByPath&&t.setPathCollection&&t.removeByPath&&t.removePathCollection&&t.getByPath&&t.applyFunction&&t.__element&&t.__children):!1},Ov=(t,e)=>{if(!t)return e||{};let n=t.split("/"),o={},r=o,i=n.length-1;for(let s=0;s<=i;s++)r[n[s]]=s===i?e||{}:{},r=r[n[s]];return o},Ev=(t,e)=>{let{__element:n}=e,o=n?.state;if(!o)return;let r=ze(o,yr),i={[t.key]:r},s=j(o.__depends)?{...o.__depends,...i}:i;return Array.isArray(o)?ff(o,{...Object.getPrototypeOf(o),__depends:s}):Object.setPrototypeOf(o,{...Object.getPrototypeOf(o),__depends:s}),r},_b=new Set(["parent","root"]),Wf=new Set,yb=t=>{Wf.has(t)||Wf.add(t)},zf=(t,e,n,o)=>{if(t===e)return t;for(let r=0;r<o.length;r+=2)if(o[r]===t&&o[r+1]===e)return t;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r.charCodeAt(0)===95&&r.charCodeAt(1)===95||r==="constructor"||r==="prototype")continue;let i=n?n+"."+r:r;if(_b.has(r)){yb(i);continue}let s=t[r],a=e[r];se(s)&&se(a)?(o.push(t,e),zf(s,a,i,o),o.length-=2):s===void 0&&(t[r]=a)}return t},Rv=(t,e)=>!se(t)||!se(e)?t:zf(t,e,"",[]),Iv=(t,e,n={})=>{let{overwrite:o}=n;if(!o)return;let r=o==="shallow";if(o==="merge"){_f(t,e,yr);return}(r?mf:io)(t,e,yr)},$f="__polyglotSeededKeys",lo=t=>{if(!j(t))return new Set;let e=t[$f];if(!(e instanceof Set)){e=new Set;try{Object.defineProperty(t,$f,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Hf=(t,e,n)=>lo(t).has(e)?!0:!j(n)||n[e]===void 0,Uf="__polyglotSeededValues",Vf=t=>{if(!j(t))return new Map;let e=t[Uf];if(!(e instanceof Map)){e=new Map;try{Object.defineProperty(t,Uf,{value:e,enumerable:!1,writable:!0,configurable:!0})}catch{}}return e},Gf=t=>{if(t===null||typeof t!="object")return typeof t+":"+String(t);try{return"json:"+JSON.stringify(t)}catch{return null}},Dv=(t,e,n)=>{if(!lo(t).has(e))return!1;let o=Vf(t);if(!o.has(e))return!0;let r=j(n)||Array.isArray(n)?n[e]:void 0,i=Gf(r);return i!==null&&i===o.get(e)},Kf=(t,e,...n)=>(lo(t).add(e),n.length&&Vf(t).set(e,Gf(n[0])),e);var qf=t=>"on"+t.charAt(0).toUpperCase()+t.slice(1),Tr=(t,e,n)=>(t.error=n,Ue("error",t,{hook:e,error:n})),mb=(t,e,n,o,r,i)=>{if(t=rs(t,e),!!nt(t))try{let s=t.call(e,e,n||e.state,o||e.context,r);return s&&typeof s.then=="function"&&s.catch(a=>{Tr(e,i,a)||(a instanceof ReferenceError?console.warn("[DOMQL] Async event warning:",a.message):console.error("[DOMQL] Async event error:",a))}),s}catch(s){if(Tr(e,i,s)||(s instanceof ReferenceError?console.warn("[DOMQL] Event handler warning:",s.message):console.error("[DOMQL] Event handler error:",s)),e.context?.strictMode)throw s}},Tn=(t,e,n)=>{if(!e)throw new Error("Element is required");Ue(t,e,n);let o=qf(t),r=e[o];if(r){let{state:i,context:s}=e;return mb(r,e,i,s,n,o)}},bb=(t,e,n,o,r,i,s)=>{if(t=rs(t,n),!!nt(t))try{let a=t.call(n,e,n,o||n.state,r||n.context,i);return a&&typeof a.then=="function"&&a.catch(l=>{Tr(n,s,l)||console.error("[DOMQL] Async event update error:",l)}),a}catch(a){if(Tr(n,s,a)||console.error("[DOMQL] Event update error:",a),n.context?.strictMode)throw a}},Mv=(t,e,n,o)=>{Ue(t,n,e,o);let r=qf(t),i=n[r];if(i){let{state:s,context:a}=n;return bb(i,e,n,s,a,o,r)}};var Fv={},Yf={};var Ae="production";function Xf(t){let e=this,{__ref:n}=e,o=[].concat(t),r=n.root[o[0]];if(!o||!o.length)return console.log(o,"on",e.key,"is undefined");for(;r.key===o[0]&&(o.shift(),!!o.length);)if(r=r[o[0]],!r)return;return r}function Kv(t){let e=this,{parent:n}=e;if(nt(t))return n.state&&t(n,n.state,n.context)?n:n.parent?n.lookup(t):void 0;if(e[t])return e[t];for(;n.param!==t;){if(n[t])return n[t];if(n=n.parent,!n)return}return n}function qv(t){let e=this,{__ref:n}=e,o=n?.__children;if(o)for(let r=0;r<o.length;r++){let i=o[r],s=e[i];if(i===t)return s;if(nt(t)){let l=t(s,s.state,s.context);if(s.state&&l)return s}let a=s?.lookdown?.(t);if(a)return a}}function Yv(t,e=[]){let n=this,{__ref:o}=n,r=o?.__children;if(r){for(let i=0;i<r.length;i++){let s=r[i],a=n[s];if(s===t)e.push(a);else if(nt(t)){let l=t(a,a.state,a.context);a.state&&l&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function Sb(t={}){let e=this;if(e.node?.style){for(let n in t){let o=t[n],r=e[n];if(j(o)&&r)Sb.call(r,o);else if(o!=null){let i=n.replace(/[A-Z]/g,a=>"-"+a.toLowerCase()),s=String(o).replace(/\s*!important\s*$/,"");e.node.style.setProperty(i,s,"important")}}return e}}function Zv(t){let e=this;if(Tn("beforeRemove",e,t)===!1)return e;nt(e.node.remove)?e.node.remove():br()||e.log(),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=lf(e.parent.__ref.__children,e.key)),Tn("remove",e,t)}function Qv(t){return this[t]}function Xv(t,e){let n=this;if(t)return n.update(t,e),n}function Jv(t){return t?this.__ref&&this.__ref[t]:this.__ref}function t0(){let t=this.getRef("__children");return Array.isArray(t)?t.map(e=>this[e]):[]}function Jf(){return this.getRef().path}var vr=null,e0=t=>{vr=t||null},hs=(t,e)=>{t&&e&&vr===t&&(vr=e)},Zf=()=>vr||null;function tu(t){let e=null,n=o=>o.__element&&o.root?.isRootState;if(!this)e=Zf();else if(n(this))e=this.root;else if(this.__ref&&this.__ref.path){let o=this.state&&n(this.state),r=nt(this.state)&&this.parent.state&&n(this.parent.state);(o||r)&&(e=this.state.root||this.parent.state.root)}return e||(e=Zf()),t?e?.[t]:e}function eu(t){let e=this?.__ref?.root||this.getRootState()?.__element;if(!e)throw new Error(`[smbls] getRoot() could not resolve a root element for "${this?.key||"<unknown>"}" \u2014 it has no __ref (never went through create()) and no root state is registered. Answering undefined here used to no-op silently for every caller.`);return Object.keys(e).length>0&&t?e[t]:e}function nu(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function ou(t){let e=this.getRoot()?.context;return t?e[t]:e}function ru(t){let e=this.context;return t?e[t]:e}var n0=(t,e,n,o)=>Object.defineProperty(t,e,{get:n,set:o});function wb(){let t=this,e=[];for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||df.has(n)&&!pf.has(n)||e.push(n);return e}function xb(t=[]){let e=this,n={},o=wb.call(e),r=o.includes("children"),i=t.length?new Set(t):null;for(let s=0;s<o.length;s++){let a=o[s];if(i&&i.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||r&&a==="content")continue;let l=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let c=nt(l&&l.parse)?l.parse():l;n[a]=nt(c)?c:JSON.parse(JSON.stringify(c||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;n[a]=JSON.parse(JSON.stringify(l||{}))}else if(a==="props"){let{__element:c,update:f,...u}=e[a];n[a]=u}else Se(l)&&Object.prototype.hasOwnProperty.call(e,a)&&(n[a]=l)}return n}function Qf(t=[],e=new WeakSet){let n=this;if(e.has(n))return;e.add(n);let o=xb.call(n,t),r=t.length?new Set(t):null;for(let i in o){if(r&&r.has(i)||!Object.prototype.hasOwnProperty.call(n,i))continue;let s=o[i];Array.isArray(s)?o[i]=s.map(a=>se(a)?Qf.call(a,t,e):a):se(s)&&(o[i]=Qf.call(s,t,e))}return o}function gs(...t){if(Ae!=="test"&&Ae!=="development")return;let e=this,{__ref:n}=e;return console.groupCollapsed(e.key),t.length?t.forEach(o=>console.log(`%c${o}:
2
+ `,"font-weight: bold",e[o])):(console.log(n.path),e.keys().forEach(r=>console.log(`%c${r}:`,"font-weight: bold",e[r]))),console.log(e),console.groupEnd(e.key),e}function o0(...t){(Ae==="test"||Ae==="development")&&console.log(...t)}function iu(...t){(Ae==="test"||Ae==="development")&&console.warn(...t)}function Or(...t){if(Ae==="test"||Ae==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&gs.call(this),new Error(...t)}}function su(){let t=this,{key:e,parent:n}=t,{__children:o}=n.__ref,r=o.indexOf(e),i=o[r+1];return n[i]}function au(t){let e=t||this,{key:n,parent:o}=e,{__children:r}=o.__ref;if(!r)return;let i=r.indexOf(n);return o[r[i-1]]}function cu(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let n=e.data.varCaches,o={},r;for(let i in t)t[i]!==n[i]&&(r=!0,o[i]=t[i]);return{changed:i=>{if(!r)return;let s=i(o,ze(n));for(let a in o)n[a]=o[a];return s},timeout:(i,s)=>{if(!r)return;let a=setTimeout(()=>{i(o),clearTimeout(a)},s)}}}function r0(t,...e){let n=this.context,o=n.utils?.[t]||n.functions?.[t]||n.methods?.[t]||n.snippets?.[t];if(o&&!mr(o))try{let r=o.call(this,...e);return r&&typeof r.then=="function"&&r.catch(i=>{Or.call(this,i)}),r}catch(r){if(Or.call(this,r),n?.strictMode)throw r}}var kb="[smbls] getDB needs @symbo.ls/fetch, which the smbls embed bundle does not include: add @symbo.ls/fetch to the page's importmap (the runtime import then resolves) or use the full smbls bundle.",Cr=()=>import("./smbls.core.fetch-I3IR2OTE.esm.js").catch(t=>{throw new Error(kb,{cause:t})});async function lu(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:r}=await Cr();await r(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:r}=await Cr();await r(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let n=Cr().then(({resolveDb:r})=>r(e));e.__resolving=n;let o=await n;if(e.__resolved=o,t.context.fetch=o,delete e.__resolving,o?.getSession){let{initAdapterAuth:r}=await Cr();await r(o,t.context)}return o}function fu(t){let e=this,n=t||Yf.useStateQuery||e.context?.useStateQuery;if(!n)return null;let o={};if(ps(e,o),n===!0)return o;let r=Rb[n];return r?r(o):o}var ps=(t,e)=>{let n=t.__ref;if(!n)return;let o=n.__state;o&&typeof o=="string"&&Ab(e,o);let r=n.__children;if(r)for(let a=0;a<r.length;a++){let l=t[r[a]];l&&l.__ref&&ps(l,e)}let i=n.contentElementKey||"content",s=t[i];s&&s.__ref&&ps(s,e)},Ab=(t,e)=>{let o=e.replaceAll("../","").replaceAll("~/","").split("/"),r=t;for(let i=0;i<o.length;i++){let s=o[i];i===o.length-1?r[s]||(r[s]=!0):(r[s]===!0&&(r[s]={}),r[s]||(r[s]={}),r=r[s])}},uu=(t,e=0)=>{let n=" ".repeat(e),o=Object.entries(t);return o.length?o.map(([i,s])=>s===!0?`${n}${i}`:`${n}${i} {
3
+ ${uu(s,e+1)}
4
+ ${n}}`).join(`
5
+ `):""},Tb=t=>`{
6
+ ${uu(t,1)}
7
+ }`,Cb=t=>{let e={fields:{},include:[]},n=(o,r)=>{let i=[];for(let s in o)if(o[s]===!0)i.push(s);else{let a=r?`${r}.${s}`:s;e.include.push(a),n(o[s],a)}i.length&&(e.fields[r||"_root"]=i)};return n(t,""),e},vb=t=>{let e=i=>{let s=[],a=[];for(let l in i)if(i[l]===!0)s.push(l);else{let c=e(i[l]),f=[];c.select&&f.push(`$select=${c.select}`),c.expand&&f.push(`$expand=${c.expand}`),a.push(f.length?`${l}(${f.join(";")})`:l)}return{select:s.length?s.join(","):"",expand:a.length?a.join(","):""}},{select:n,expand:o}=e(t),r=[];return n&&r.push(`$select=${n}`),o&&r.push(`$expand=${o}`),r.join("&")},Ob=(t,e)=>{let n=[],o=[],r=new Set,i=(f,u,d)=>{r.add(u),d&&o.push(`LEFT JOIN ${u} ON ${u}.${d}_id = ${d}.id`);for(let p in f)f[p]===!0?n.push(`${u}.${p}`):i(f[p],p,u)},s=Object.keys(t);s.length===1&&t[s[0]]!==!0?i(t[s[0]],s[0],null):i(t,"_root",null);let a=[...r][0]||"_root",l=n.length?n.join(", "):"*",c=o.length?`
8
+ `+o.join(`
9
+ `):"";return`SELECT ${l}
10
+ FROM ${a}${c}`},Eb=t=>{let e=[],n=(o,r)=>{for(let i in o){let s=r?`${r}/${i}`:i;o[i]===!0?e.push(s):n(o[i],s)}};return n(t,""),e},Rb={graphql:Tb,"json-api":Cb,odata:vb,sql:Ob,paths:Eb};function i0(t,e){return!!(hf.has(t)||e?.context?.methods?.[t])}var Er=Symbol.for("@symbo.ls/utils:textReady"),Ib=()=>{let t=globalThis[Er];if(!t){t={depth:0,ready:!0};try{Object.defineProperty(globalThis,Er,{value:t,configurable:!0})}catch{globalThis[Er]=t}}return t};function fo(t){let e=Ib(),n=e.ready;e.depth++,e.ready=!0;try{return{value:t(),ready:e.ready}}finally{e.depth--,e.ready=n}}function a0(){let t=globalThis[Er];t&&t.depth>0&&(t.ready=!1)}var Ht=t=>{let e=t&&t.src;if(!e||typeof e!="string")return null;let n=t.context;if(!n)return null;let o=n.assets&&n.assets[e]||n.files&&n.files[e];if(!o)return null;if(typeof o=="string")return{src:o,type:null,variants:null};if(typeof o=="object"){if(typeof o.src=="string")return o;let r=o.content,i=r&&r.src;if(typeof i=="string")return{...o,src:i,type:o.type??r.type??null,variants:o.variants??r.variants??null}}return null},_s=(t,{keepOneX:e=!0}={})=>{if(!Array.isArray(t)||!t.length)return"";let n=t.some(r=>typeof r.width=="number"),o=[];for(let r of t)n&&typeof r.width=="number"?o.push(`${r.src} ${r.width}w`):n||(r.scale===1&&e?o.push(r.src):r.scale&&r.scale!==1&&o.push(`${r.src} ${r.scale}x`));return o.join(", ")},du=t=>{if(!t||!Array.isArray(t.variants))return"";let e=t.variants.filter(n=>n.format===t.type);return _s(e,{keepOneX:!1})},pu=(t,e)=>{if(!t||typeof t!="object"||typeof t.src!="string")return[];if(!Array.isArray(t.variants)||!t.variants.length)return[{tag:"img",attr:{src:t.src,alt:e||""}}];let n=new Map;for(let a of t.variants)n.has(a.format)||n.set(a.format,[]),n.get(a.format).push(a);let o=[];for(let[a,l]of n)a!==t.type&&o.push({tag:"source",attr:{type:a,srcset:_s(l,{keepOneX:!0})}});let r=n.get(t.type)||[],i=_s(r,{keepOneX:!1}),s={src:t.src,alt:e||""};return i&&(s.srcset=i),[...o,{tag:"img",attr:s}]};var R=(t,e)=>e.split(" ").map(n=>t+"-"+n),bs="top right bottom left",Ss=bs+" block block-start block-end inline inline-start inline-end",St="start end",le="width style color",Rr=t=>R(t,Ss),Db=(()=>{let t=R("border","width style color image");for(let e of Ss.split(" "))t.push("border-"+e,...R("border-"+e,le));return t})(),hu=t=>[...R("border-"+t,le+" start end"),...R("border-"+t+"-start",le),...R("border-"+t+"-end",le)],V={animation:R("animation","name duration timing-function delay iteration-count direction fill-mode play-state timeline range range-start range-end"),background:R("background","image position position-x position-y size repeat origin clip attachment color"),border:Db};for(let t of["width","style","color"])V["border-"+t]=Ss.split(" ").map(e=>"border-"+e+"-"+t);for(let t of bs.split(" "))V["border-"+t]=R("border-"+t,le);V["border-block"]=hu("block");V["border-inline"]=hu("inline");Object.assign(V,{"border-image":R("border-image","source slice width outset repeat"),"border-radius":"top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" ").map(t=>"border-"+t+"-radius"),columns:R("column","width count"),"column-rule":R("column-rule",le),container:R("container","name type"),"contain-intrinsic-size":R("contain-intrinsic","width height"),flex:R("flex","grow shrink basis"),"flex-flow":R("flex","direction wrap"),font:[...R("font","style variant weight stretch size"),"line-height",...R("font","family size-adjust kerning feature-settings variation-settings optical-sizing")],gap:["row-gap","column-gap"],grid:R("grid","template template-rows template-columns template-areas auto-rows auto-columns auto-flow"),"grid-template":R("grid-template","rows columns areas"),"grid-area":R("grid","row column row-start row-end column-start column-end"),"grid-row":R("grid-row",St),"grid-column":R("grid-column",St),inset:[...bs.split(" "),...R("inset","block block-start block-end inline inline-start inline-end")],"inset-block":R("inset-block",St),"inset-inline":R("inset-inline",St),"list-style":R("list-style","type position image"),margin:Rr("margin"),"margin-block":R("margin-block",St),"margin-inline":R("margin-inline",St),mask:R("mask","image mode repeat position clip origin size composite"),offset:R("offset","position path distance rotate anchor"),outline:R("outline",le),overflow:R("overflow","x y"),"overscroll-behavior":R("overscroll-behavior","x y"),padding:Rr("padding"),"padding-block":R("padding-block",St),"padding-inline":R("padding-inline",St)});for(let t of["content","items","self"])V["place-"+t]=["align-"+t,"justify-"+t];Object.assign(V,{"scroll-margin":Rr("scroll-margin"),"scroll-padding":Rr("scroll-padding"),"text-decoration":R("text-decoration","line style color thickness"),"text-emphasis":R("text-emphasis","style color"),transition:R("transition","property duration timing-function delay behavior")});var Lb="block-start block-end inline-start inline-end".split(" ");for(let t of Lb)V["border-"+t]=R("border-"+t,le);for(let t of["block","inline"])for(let e of le.split(" "))V["border-"+t+"-"+e]=R("border-"+t,St.split(" ").map(n=>n+"-"+e).join(" "));Object.assign(V,{"animation-range":R("animation-range",St),"background-position":R("background-position","x y"),"font-variant":R("font-variant","alternates caps east-asian emoji ligatures numeric position"),"font-synthesis":R("font-synthesis","weight style small-caps"),marker:R("marker","start mid end"),"position-try":R("position-try","order fallbacks"),"scroll-margin-block":R("scroll-margin-block",St),"scroll-margin-inline":R("scroll-margin-inline",St),"scroll-padding-block":R("scroll-padding-block",St),"scroll-padding-inline":R("scroll-padding-inline",St),"scroll-timeline":R("scroll-timeline","name axis"),"view-timeline":R("view-timeline","name axis inset"),"text-box":R("text-box","trim edge"),"text-wrap":R("text-wrap","mode style"),"white-space":["white-space-collapse","text-wrap-mode"]});V.font.push("font-language-override");var ce=t=>"corner-"+t+"-shape";V["corner-shape"]=[..."top-left top-right bottom-right bottom-left start-start start-end end-start end-end".split(" "),..."top right bottom left block-start block-end inline-start inline-end".split(" ")].map(ce);Object.assign(V,{"corner-top-shape":["top-left","top-right"].map(ce),"corner-right-shape":["top-right","bottom-right"].map(ce),"corner-bottom-shape":["bottom-left","bottom-right"].map(ce),"corner-left-shape":["top-left","bottom-left"].map(ce),"corner-block-start-shape":["start-start","start-end"].map(ce),"corner-block-end-shape":["end-start","end-end"].map(ce),"corner-inline-start-shape":["start-start","end-start"].map(ce),"corner-inline-end-shape":["start-end","end-end"].map(ce)});for(let t in V){let e=V[t],n=new Set(e);for(let o=0;o<e.length;o++){let r=V[e[o]];if(r)for(let i of r)n.has(i)||(n.add(i),e.push(i))}}var Zt={};for(let t in V)for(let e of V[t])(Zt[e]||(Zt[e]=[])).push(t);var ys=new Map,gu=t=>{let e=ys.get(t);if(e!==void 0)return e;ys.set(t,0),e=0;let n=Zt[t];if(n)for(let o=0;o<n.length;o++)e=Math.max(e,gu(n[o])+1);return ys.set(t,e),e};function Ir(t){if(typeof t!="string")return 0;let e=t.charCodeAt(0)===45&&t.charCodeAt(1)!==45?t.replace(/^-(webkit|moz|ms|o)-/,""):t;return Object.prototype.hasOwnProperty.call(Zt,e)?gu(e):0}var Pb=/^(?:margin|padding|inset|scroll-margin|scroll-padding)(?:-(?:block|inline))?$|^border(?:-(?:block|inline))?-(?:width|style|color)$|^(?:border-radius|corner(?:-[a-z]+)*-shape|gap|overflow|overscroll-behavior|place-(?:content|items|self)|background-position|contain-intrinsic-size)$/,_u=/^(?:border(?:-(?:top|right|bottom|left|block|inline)(?:-(?:start|end))?)?|outline|column-rule)$/,Bb=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","auto"]),ms=t=>Q(String(t).replace(/\s*!important\s*$/,""));function Dr(t,e,n){let o=V[t];if(!o||o.indexOf(n)===-1)return!1;if(Pb.test(t))return!0;if(!_u.test(t)||typeof e=="function"||e==null||n.indexOf("border-image")===0)return!1;let r=ms(e);return r.length>=3?!0:/-style$/.test(n)&&r.some(i=>Bb.has(i.toLowerCase()))}var Mb=new Set(["thin","medium","thick"]),Nb=t=>/^[+-]?\.?\d/.test(t)||Mb.has(t.toLowerCase())||/^(?:calc|min|max|clamp)\(/i.test(t)||/^var\(--(?:[a-zA-Z0-9]{1,6}-)?spacing-/.test(t),Fb=t=>t==="transparent"||t==="currentcolor"||Object.prototype.hasOwnProperty.call(xf,t),jb=t=>kf(t)||/^var\(--(?:(?!theme-|shadow-)[a-zA-Z0-9]{1,6}-)?color-/.test(t)||Fb(t.toLowerCase()),Wb=/-(width|style|color)$/;function ws(t,e,n){if(Dr(t,e,n))return!0;let o=V[t];if(!o||o.indexOf(n)===-1||typeof e=="function"||e==null)return!1;if(_u.test(t)){if(n.indexOf("border-image")===0)return!1;let r=Wb.exec(n);if(!r)return!1;let i=ms(e);return i.length===1&&/^(?:0|none)$/i.test(i[0])?r[1]!=="color":r[1]==="width"&&i.some(Nb)}if(t==="background"&&n==="background-color"){let r=ms(e);return r.length===1&&jb(r[0])}return!1}var ho=new Map,$b=null,xs=null,Ub=null;function zb(t){t.batchAtomicCss&&(xs=t.batchAtomicCss),t.compoundCssClass&&(Ub=t.compoundCssClass)}var Hb=new Set,mu=t=>!!(t&&t.documentElement&&typeof t.createElement=="function"&&t.head!==void 0);function Vb(t){try{let e=Z();e&&(e.__domDocument=t)}catch{}t&&Hb.add(t)}function go(){try{let t=Z();if(t){if(mu(t.__domDocument))return t.__domDocument;if(mu(t.document))return t.document}}catch{}return typeof document<"u"?document:null}var wt={atomic:0,variable:0,global:0,keyframes:0,duplicate:0,invalid:0,dropped:0};function Iu(){return{...wt}}function Gb(){for(let t in wt)wt[t]=0;Nr=!1}var Nr=!1,Br=(t,e)=>`${t} ${e}${t===1?"":"s"}`;function Kb(t){let e=Date.parse(t);if(!isFinite(e))return"";let n=Math.floor((Date.now()-e)/864e5);return n<1?" (today)":` (${Br(n,"day")} ago)`}function qb(){try{let t=uS();if(!t.length)return-1;let e=0;for(let n=0;n<t.length;n++)e+=t[n].cssRules?t[n].cssRules.length:0;return e}catch{return-1}}function Yb(t,e){if(Nr)return!1;Nr=!0;let n="n/a \u2014 running from src/ (unbuilt), so no dist is in play",o="this IS the source",r="@symbo.ls/css";return console.error(`[@symbo.ls/css] CSS EMIT FAILURE (${t}) \u2014 the engine emitted ${Br(wt.variable,"variable rule")} and ${Br(wt.atomic,"atomic rule")}, while the design system held ${Br(e,"CSS variable")}.
11
+ The document will render UNSTYLED and nothing else will report an error.
12
+ This is what a STALE dist/ looks like: an obsolete emitter against a current design system.
13
+ package : ${r}
14
+ built : ${n}
15
+ source : ${o}
16
+ emitted : ${JSON.stringify(wt)}
17
+ sheets : the style[data-smbls] tiers currently hold ${qb()} rule(s)
18
+ FIX : cd smbls && npm run check:stale # every package whose src is newer than its dist
19
+ then rebuild the listed packages and clear the app's .parcel-cache
20
+ Do NOT trust any browser measurement taken on this page until that reads clean.`),!0}function Du(){try{let t=Z(),e=t&&(t.CSS_VARS||t.cssVars);return e?Object.keys(e).length:0}catch{return 0}}function ks(t){Nr||wt.variable>0||wt.atomic>0||Lu(Math.max(t,Du()))}function Zb(t){let e=t&&(t.CSS_VARS||t.cssVars);return Lu(e?Object.keys(e).length:Du())}function Lu(t){let e=Iu();if(t===0)return{ok:!0,reason:"no-design-system",stats:e,varCount:t};if(!Bs())return{ok:!0,reason:"no-sheet",stats:e,varCount:t};if(e.variable>0||e.atomic>0)return{ok:!0,reason:null,stats:e,varCount:t};let n=e.invalid>0?"every rule was rejected as malformed":"no rule was ever produced";return Yb(n,t),{ok:!1,reason:n,stats:e,varCount:t}}var Qb={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function Xb(t){return t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}var vn=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,bu=new Map,Bt=t=>{if(vn(t))return t;let e=bu.get(t);return e===void 0&&(e=Xb(t),bu.set(t,e)),e},Su=new Map,Ds=t=>{if(vn(t))return t;let e=Su.get(t);return e===void 0&&(e=t.replace(/-([a-z])/g,(n,o)=>o.toUpperCase()),Su.set(t,e)),e};function Ke(t){let e=2166136261;for(let n=0;n<t.length;n++)e=Math.imul(e^t.charCodeAt(n),16777619);return(e>>>0).toString(36)}var Jb=/^[a-z0-9-]+(?: [a-z0-9-]+)*$/,tS=/^var\(--[a-z0-9-]+\)$/;function eS(t){let e=String(t);if(e.length>20)return Ke(e);if(tS.test(e))return"var"+e.slice(4,-1);if(Jb.test(e)){let o=e.replace(/ /g,"_");return o.startsWith("var--")?`${o}-${Ke(e)}`:o}let n=e.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase();return n?`${n}-${Ke(e)}`:Ke(e)}var nS={"backdrop-filter":"-webkit-backdrop-filter","user-select":"-webkit-user-select","mask-image":"-webkit-mask-image","mask-size":"-webkit-mask-size","mask-repeat":"-webkit-mask-repeat","mask-position":"-webkit-mask-position","mask-clip":"-webkit-mask-clip","mask-origin":"-webkit-mask-origin","background-clip":"-webkit-background-clip"};function qe(t,e){let n=nS[t];return n?`${t}:${e};${n}:${e};`:`${t}:${e};`}function As(t){let e="";for(let n in t){let o=t[n];if(typeof o!="object"||o===null)continue;let r="";for(let i in o)o[i]!=null&&(r+=qe(Bt(i),o[i]));e+=`${n}{${r}}`}return e}function Ts(t){return t.charCodeAt(0)===64&&!On(t)}function wu(t){let e="";for(let n in t){let o=t[n];if(!Ts(n)||typeof o!="object"||o===null)continue;let r="";for(let i in o){let s=o[i];s==null||typeof s=="object"||(r+=qe(Bt(i),s))}e+=`${n}{${r}}`}return e}var oS="@media (hover: hover)",rS=/(?:^|[^\\]):hover(?![\w-])/;function Ls(){try{let t=Z();if(t&&t.hoverMedia===!1)return!1}catch{}return!0}function Ye(t,e,n){return n===!1||!rS.test(e)||n===void 0&&!Ls()?t:`${oS}{${t}}`}var Pu=new Map;function iS(t,e,n,o){let r=ho.get(t);if(!r){let l=Qb[e]||Ke(e),c=eS(n);r=o?`_${o}_${l}-${c}`:`_${l}-${c}`,ho.set(t,r)}let s=typeof n=="string"&&(n.indexOf("}")!==-1||n.indexOf("{")!==-1)?null:`.${r}{${qe(Bt(e),n)}}`,a={className:r,rule:s,tier:s===null?null:Ps(s,!0,"atomic")};return Pu.set(t,a),a}function xu(t,e,n){let o=(n?n+"":"")+t+":"+e,r=Pu.get(o)||iS(o,t,e,n);return r.rule!==null&&Pt(r.rule,void 0,"atomic",!0,r.tier),r.className}var ku=new WeakMap,Au=new WeakMap;function Pt(t,e,n,o,r){let i=r||Ps(t,o,n);po&&!e&&po.push([t,n||"global",i]);let s=fS(e,i);if(!s)return wt.dropped++,"dropped";let a=s.sheet,l=s.rules;if(l||(l=ku.get(a),l||(l=new Set,ku.set(a,l)),s.rules=l),l.has(t))return wt.duplicate++,wt[n||"global"]++,"duplicate";let c=Au.get(a);if(c&&c.has(t))return wt.invalid++,"invalid";try{a.insertRule(t,a.cssRules.length)}catch{return c||(c=new Set,Au.set(a,c)),c.add(t),wt.invalid++,"invalid"}return l.add(t),wt[n||"global"]++,"inserted"}var xt="0:0",Cs="1:0",Bu="0:99",Tu=/\((max|min)-width:\s*([\d.]+)(px|em|rem)?\)/g;function Ps(t,e,n){if(typeof t!="string"||!t)return xt;if(t.charCodeAt(0)===64){if(!t.startsWith("@media")&&!t.startsWith("@supports")&&!t.startsWith("@container"))return xt;let s=1/0,a=-1/0;Tu.lastIndex=0;let l;for(;l=Tu.exec(t);){let c=parseFloat(l[2])*(l[3]==="em"||l[3]==="rem"?16:1);l[1]==="max"?s=Math.min(s,c):a=Math.max(a,c)}return s!==1/0?"2:"+-s:a!==-1/0?"3:"+a:Cs}if(t.charCodeAt(0)!==46)return n==="atomic"&&!e?Bu:xt;if(!/^\.[\w-]+\{/.test(t))return Cs;if(!e)return xt;let o=t.indexOf("{"),r=t.indexOf(":",o);if(r===-1)return xt;let i=Ir(t.slice(o+1,r).trim());return i?"0:"+i:xt}var Cn=null,sS=()=>{if(Cn)return Cn;let t=0;for(let e in Zt)t=Math.max(t,Ir(e));Cn=[xt];for(let e=1;e<=t;e++)Cn.push("0:"+e);return Cn.push(Bu,Cs),Cn},Cu=t=>{let e=t.indexOf(":");return[Number(t.slice(0,e)),Number(t.slice(e+1))]},Mu=(t,e)=>{let[n,o]=Cu(t),[r,i]=Cu(e);return n!==r?n-r:o-i},vu=(t,e)=>Mu(t,e)<0,Nu=t=>t.getAttribute("data-tier")||xt,aS=/^\d+:-?\d+(?:\.\d+)?$/;function cS(t){return!t||typeof t.hasAttribute!="function"||!t.hasAttribute("data-smbls")?null:Nu(t)}function lS(t,e){let n=Array.from(t||[],(o,r)=>{let i=typeof e=="function"?e(o):null;return{item:o,i:r,tier:typeof i=="string"&&aS.test(i)?i:xt}});return n.sort((o,r)=>Mu(o.tier,r.tier)||o.i-r.i),n.map(o=>o.item)}var vs=new WeakMap,Mr=!1,uo=null,Os=0;function fS(t,e){if(Mr&&!t){let n=uo&&vs.get(uo),o=n&&n.get(e);if(o&&o.epoch===Os)return o;let r=Fr(uo,e);return r&&(r.epoch=Os),r}return Fr(t||go(),e)}function Bs(t,e){let n=Fr(t||go(),e);return n?n.sheet:null}function Fr(t,e){if(!t||!t.head)return null;let n=e||xt,o=vs.get(t);o||(o=new Map,vs.set(t,o));let r=o.get(n);if(r&&r.node.parentNode===t.head&&r.node.sheet===r.sheet)return r;if(n!==xt){let l=sS();for(let c=0;c<l.length&&vu(l[c],n);c++)Fr(t,l[c])}let i=n===xt?t.head.querySelector("style[data-smbls]:not([data-tier])"):t.head.querySelector(`style[data-smbls][data-tier="${n}"]`);if(!i){i=t.createElement("style"),i.setAttribute("data-smbls",""),n!==xt&&i.setAttribute("data-tier",n);let l=t.head.querySelectorAll("style[data-smbls]"),c=null;for(let u=0;u<l.length;u++)if(vu(n,Nu(l[u]))){c=l[u];break}let f=l.length?l[l.length-1]:null;if(c)t.head.insertBefore(i,c);else if(f)t.head.insertBefore(i,f.nextSibling);else{let u=t.head.querySelector('style[data-brender], style[data-emotion="smbls"]');u?t.head.insertBefore(i,u):t.head.appendChild(i)}}let s=i.sheet;if(!s)return o.delete(n),null;let a={sheet:s,node:i,rules:null,epoch:0};return o.set(n,a),n===xt&&($b=s),a}function uS(t){let e=t||go();if(!e||!e.head)return[];let n=[],o=e.head.querySelectorAll("style[data-smbls]");for(let r=0;r<o.length;r++)o[r].sheet&&n.push(o[r].sheet);return n}var dS=8,pS=t=>t.indexOf(`
21
+ `)===-1&&t.indexOf("\0")===-1;function Qe(t,e,n,o){if(!t||typeof t!="object")return"";if(Mr)return Ou(t,n,o);Mr=!0,uo=go(),Os++;try{return Ou(t,n,o)}finally{Mr=!1,uo=null}}function Ou(t,e,n){let o=!!(n&&n.state),r=null,i=0,s=[],a=[],l=Object.keys(t);for(let f=0;f<l.length;f++){let u=l[f],d=t[u];d==null||d===!1||d===""||(typeof d=="object"?a.push([u,d]):xs&&!e&&!vn(u)&&pS(String(d))?(r||(r=[]),r.push(u,String(d)),i++):s.push(xu(u,String(d),e)))}if(r&&i>=dS){let f=r.join("\0"),u=xs(f),d=u.indexOf("\0"),p=u.substring(0,d),g=u.substring(d+1);if(g){let h=g.split(`
22
+ `);for(let _=0;_<h.length;_++)h[_]&&Pt(h[_],void 0,"atomic",!0)}s.push(p)}else if(r)for(let f=0;f<r.length;f+=2)s.push(xu(r[f],r[f+1],e));let c=[];for(let f=0;f<a.length;f++)c.push(yS(a[f][0],a[f][1],e,o));return s.concat(c).join(" ").trim()}var Eu=new Map,hS=/^&?:(hover|focus|focus-visible|focus-within|active)(?![\w-])/;function On(t){return/^@(media|supports|container)\b/.test(t)}function Ze(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i===40?n++:i===41?n--:i===44&&n===0&&(e.push(t.slice(o,r).trim()),o=r+1)}return e.push(t.slice(o).trim()),e}function gS(t){return typeof t!="string"||!t||On(t)?!1:Ze(t).every(e=>hS.test(e))}var Fu=t=>{let e=Object.prototype.toString.call(t);return e==="[object Object]"||e==="[object Array]"},Es=32,Rs=1024,Ru=!1;function Pr(t,e,n){if(Ru)return;Ru=!0;let o=[e,...n],r=o.length>12?[...o.slice(0,6),`\u2026${o.length-9} more\u2026`,...o.slice(-3)]:o}function _S(t){try{return JSON.stringify(t)}catch{let n=[],o=0;return JSON.stringify(t,function(r,i){if(!i||typeof i!="object")return i;for(;n.length&&n[n.length-1]!==this;)n.pop();if(!(n.length&&(n.includes(i)||!Fu(i)||n.length>Es||++o>Rs)))return n.push(i),i})}}function yS(t,e,n,o){let r=_S(e),i=t.indexOf(":hover")!==-1||r.indexOf(":hover")!==-1,s=i&&Ls(),a=(n?n+"":"")+t+r+(i&&!s?"rawhover":"")+(o?"state":""),l=ho.get(a);if(l){let m=Eu.get(l);if(m)for(let S=0;S<m.length;S+=2)Pt(m[S],void 0,"atomic",void 0,m[S+1]);return l}l=n?`_${n}_c${Ke(a)}`:`_c${Ke(a)}`;let c=o?`.${l}.${l}`:`.${l}`,f=gS(t)?`${c}.${l}`:c,u="",d=[],p=m=>typeof m=="string"&&(m.indexOf("{")!==-1||m.indexOf("}")!==-1),g=new Set,h=0,_=(m,S)=>{g.add(S);let w="",x=Object.keys(S);for(let C=0;C<x.length;C++){let v=x[C],T=S[v];if(T!=null)if(typeof T=="object"){let M=[...m,v];g.has(T)?Pr("a style value that loops back to one of its own ancestors",t,M):Fu(T)?M.length>Es?Pr(`a style block nested more than ${Es} levels deep`,t,M):++h>Rs?Pr(`a style object with more than ${Rs} nested blocks`,t,M):_(M,T):Pr(`a ${Object.prototype.toString.call(T).slice(8,-1)} (not a style block)`,t,M)}else{if(p(T))continue;w+=qe(Bt(v),T)}}g.delete(S),w&&(m.length===0?u+=w:d.push({chain:m,body:w}))};_([],e);let y=m=>m.startsWith(":")||m.startsWith("["),b=(m,S=!0)=>{let w=S&&m.length===1?f:c;if(!m.length)return w;let x=Ze(m[0]).map(C=>C.includes("&")?C.replace(/&/g,w):y(C)?`${w}${C}`:`${w} ${C}`);for(let C=1;C<m.length;C++){let v=Ze(m[C]),T=[];for(let M of x)for(let B of v)B.includes("&")?T.push(B.replace(/&/g,M)):y(B)?T.push(M+B):T.push(M+" "+B);x=T}return x.join(", ")},A=[],O=(m,S)=>{let w=m.filter(On),x=b(m.filter(T=>!On(T)),w.length===0),C=`${x}{${S}}`;for(let T=w.length-1;T>=0;T--)C=`${w[T]}{${C}}`;C=Ye(C,x,s);let v=Ps(C,void 0,"atomic");A.push(C,v),Pt(C,void 0,"atomic",void 0,v)};u&&O([t],u);for(let m of d)O([t,...m.chain],m.body);return Eu.set(l,A),ho.set(a,l),l}var po=null;function mS(t){let e=po,n=[];po=n;try{t()}finally{po=e}return n}function bS(t){if(!Array.isArray(t))return;Bs();let e=0;for(let n of t){if(!Array.isArray(n)||typeof n[0]!="string")continue;let o=n[1]||"global";o==="variable"&&e++,Pt(n[0],void 0,o,void 0,n[2]||void 0)}e>0&&ks(e)}function Is(t){if(t==null||typeof t!="string"&&typeof t!="object")return;if(Bs(),typeof t=="string"){let i=t.indexOf("--")!==-1;Pt(t,void 0,i?"variable":"global"),i&&ks(1);return}let e=Ls(),n=0,o=Object.keys(t),r=i=>{let s=i.match(/max-width:\s*(\d+)/);return s?parseInt(s[1]):0};o.sort((i,s)=>{let a=i.startsWith("@media"),l=s.startsWith("@media");return!a&&!l?0:a?l?r(s)-r(i):1:-1});for(let i of o){let s=t[i];if(i.startsWith("@keyframes")){let a=As(s);a&&Pt(`${i}{${a}}`,void 0,"keyframes");continue}if(On(i))for(let a in s){let l=s[a];if(a.startsWith("@keyframes")){let c=As(l);c&&Pt(`${i}{${a}{${c}}}`,void 0,"keyframes");continue}if(typeof l=="object"&&l!==null){let c="",f=0,u=a.charCodeAt(0)===64;for(let d in l){let p=l[d];p!=null&&(u&&typeof p=="object"||(vn(d)&&f++,c+=qe(Bt(d),p)))}u&&(c+=wu(l)),n+=f,Pt(Ye(`${i}{${a}{${c}}}`,a,e),void 0,f?"variable":"global")}else if(l!=null){let c=vn(a);c&&n++,Pt(`${i}{${qe(Bt(a),l)}}`,void 0,c?"variable":"global")}}else{let a="",l=!1,c=0,f=i.charCodeAt(0)===64;for(let u in s){let d=s[u];if(d!=null)if(typeof d=="object"){if(f&&Ts(u))continue;l=!0}else vn(u)&&c++,a+=qe(Bt(u),d)}if(f&&(a+=wu(s)),n+=c,a&&Pt(Ye(`${i}{${a}}`,i,e),void 0,c?"variable":"global"),l){let u=[],d=[];for(let p in s)if(typeof s[p]=="object"&&s[p]!==null){if(f&&Ts(p))continue;On(p)?u.push(p):d.push(p)}u.sort((p,g)=>{let h=_=>{let y=_.match(/max-width:\s*(\d+)/);return y?parseInt(y[1]):0};return h(g)-h(p)});for(let p of d)Is({[`${i} ${p}`]:s[p]});for(let p of u)Is({[p]:{[i]:s[p]}})}}}n>0&&ks(n)}function jr(t,e){return Pt(`@keyframes ${t}{${As(e)}}`,void 0,"keyframes"),t}function SS(){return ho.size}var ct=new Set(["extends","children","content","childrenAs","childExtends","childExtendsRecursive","childProps","inheritParentProps","state","if","deferUntil","define","deps","tag","attr","style","text","html","value","data","classlist","class","vars","scope","root","context","$router","routes","fetch","variables","query","key","component","preventContentUpdate","preventContentRecreate","subscribeTo","autoGrow","faceWait","srcObject","allowRuntimeTemplates","__name","__ref","__hash","__text","parent","node"]),xS={text:"text",html:"html",style:"style",attr:"attr",data:"data",classlist:"classlist",state:"state",scope:"scope"},Xe=new Set(["start","init","complete","attachNode","stateInit","stateCreated","beforeUpdate","update","afterUpdate","beforeClassAssign","lazyLoad","render","renderRouter","done","create","frame","mounted","contentUpdate","startUpdate","stateUpdate","beforeStateUpdate","initInspect","initSync","beforeRemove","remove","bridgeMount","bridgeUpdate","bridgeDestroy"]),Ms=new Set(["load","error","abort","scroll","canplay","canplaythrough","ended","pause","play","playing","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","durationchange","loadeddata","loadedmetadata","progress","emptied","resize"]),Wr=new Set(["wheel","mousewheel","touchstart","touchmove","touchend","touchcancel"]),Ns=new Set(["click","dblclick","mousedown","mouseup","mousemove","mouseenter","mouseleave","mouseover","mouseout","pointerdown","pointerup","pointermove","pointerenter","pointerleave","pointerover","pointerout","touchstart","touchend","touchmove","keydown","keyup","keypress","input","change","submit","reset","focus","blur","focusin","focusout","wheel","contextmenu","drag","dragstart","dragend","dragenter","dragleave","dragover","drop"]);var Ws=new WeakMap,kS={passive:!0},AS={passive:!0,capture:!0},Wu=(t,e)=>Wr.has(t)?e?AS:kS:e||!1;function $u(t){let e=Ws.get(t);return e||(e={handlers:new Map,installed:new Set},Ws.set(t,e)),e}function TS(t,e){let n=$u(e);if(n.installed.has(t))return;n.installed.add(t);let o=t==="focus"||t==="blur"||t==="focusin"||t==="focusout"||t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave",r=t==="mouseenter"||t==="mouseleave"||t==="pointerenter"||t==="pointerleave";e.addEventListener(t,i=>{if(r){let a=i.target,l=n.handlers.get(t),c=l&&a?l.get(a):null;if(!c||i.relatedTarget&&typeof a.contains=="function"&&a.contains(i.relatedTarget))return;c(i);return}let s=i.target;for(;s&&s!==e;){let a=n.handlers.get(t);if(a){let l=a.get(s);if(l&&(l(i),i.cancelBubble))return}s=s.parentNode}},Wu(t,o))}function Uu(t,e,n,o){o||(o=e.ownerDocument?.documentElement||e.getRootNode());let r=$u(o);TS(t,o),r.handlers.has(t)||r.handlers.set(t,new WeakMap),r.handlers.get(t).set(e,n)}function zu(t,e,n){n||(n=e.ownerDocument?.documentElement||e.getRootNode());let o=Ws.get(n);if(!o)return;let r=o.handlers.get(t);r&&r.delete(e)}function Mt(t){if(t.charCodeAt(0)!==111||t.charCodeAt(1)!==110)return!1;let e=t.charCodeAt(2);return e>=65&&e<=90}function $r(t){return t.charAt(2).toLowerCase()+t.slice(3)}var CS=/^[A-Za-z_$][\w$]*$/;function _o(t,e){return typeof e!="string"||!CS.test(e)?e:function(o){return t.call(e,o)}}function vS(t){return Ns.has(t)&&!Xe.has(t)}function En(t,e,n){let{context:o}=t,r=o?.designSystem;return i=>{r&&at(r);let s=!!r;try{let a=e.call(t,i,t,t.state,o);a&&typeof a.then=="function"&&(a.catch(l=>ds(t,n,l,!0)).finally(()=>{r&&it()}),s=!1)}catch(a){if(ds(t,n,a),o?.strictMode)throw a}finally{s&&it()}}}var Hu=t=>!!t&&(t.capture===!0||typeof t.passive=="boolean"||t.once===!0);function OS(t,e){return Hu(e)?{capture:e.capture===!0,passive:typeof e.passive=="boolean"?e.passive:Wr.has(t),once:e.once===!0}:Wu(t,!1)}function ES(t,e,n){return o=>{let r=o.target;if(r&&r.nodeType!==1&&(r=r.parentElement),!r||typeof r.closest!="function")return;let i;try{i=r.closest(e)}catch{return}i&&t.contains(i)&&n(o)}}function $s(t,e,n,o,r){let{node:i,context:s}=e;if(!i)return;let a=En(e,n,r||"on"+t),l=o&&typeof o.selector=="string"&&o.selector;l&&(a=ES(i,l,a));let f=!Ms.has(t)&&vS(t)&&!Hu(o),u=f?null:OS(t,o);if(f){let d=s?.rootNode||i.ownerDocument?.documentElement;Uu(t,i,a,d)}else i.addEventListener(t,a,u);e.__ref.__eventCleanup||(e.__ref.__eventCleanup=[]),e.__ref.__eventCleanup.push(()=>{if(f){let d=s?.rootNode||i.ownerDocument?.documentElement;zu(t,i,d)}else i.removeEventListener(t,a,u)})}var Fs=[["onDocument","document"],["onWindow","window"],["onVisualViewport","visualViewport"],["onMediaQuery","mediaQuery"]];function Us(t){if(typeof t!="string")return null;for(let e=0;e<Fs.length;e++){let n=Fs[e][0];if(t.length<=n.length||!t.startsWith(n))continue;let o=t.charCodeAt(n.length);if(!(o<65||o>90))return{target:Fs[e][1],eventName:t.slice(n.length).toLowerCase()}}return null}function RS(t,e,n){let o=e,r=!1,i,s=!1,a=null;return e&&typeof e=="object"&&typeof e!="function"&&(o=e.handler,r=!!e.capture,s=!!e.once,typeof e.passive=="boolean"&&(i=e.passive),typeof e.query=="string"&&(a=e.query)),o=_o(t,o),typeof o!="function"?null:(i===void 0&&(i=Wr.has(n)),{handler:o,capture:r,passive:i,once:s,query:a})}function IS(t,e,n){let o=t.node?.ownerDocument||t.context?.document||(typeof document<"u"?document:null);if(!o||typeof o.addEventListener!="function")return null;if(e==="document")return o;let r=o.defaultView||(typeof window<"u"?window:null);if(!r)return null;if(e==="window")return typeof r.addEventListener=="function"?r:null;if(e==="visualViewport"){let i=r.visualViewport;return i&&typeof i.addEventListener=="function"?i:null}if(e==="mediaQuery"){let i=n&&n.query;if(typeof i!="string"||!i.trim()||typeof r.matchMedia!="function")return null;try{return r.matchMedia(i)||null}catch{return null}}return null}var js=/^@media\s+/i,DS=/^[@[.#&:>*~+]/;function LS(t,e){if(typeof e!="string")return null;let n=e.trim();if(!n)return null;let o=t.context?.designSystem?.media,r=s=>{let a=o&&typeof o=="object"?o[s]:void 0;return typeof a=="string"&&a.trim()?a.trim():null},i=n;if(n.charCodeAt(0)===64&&!js.test(n)){if(i=r(n.slice(1)),!i)return null}else i=r(n)||n;return js.test(i)?i.replace(js,"").trim()||null:DS.test(i)?(`${i}`,null):i}function PS(t,e,n,o){try{return t.addEventListener(e,n,o),!0}catch{return typeof t.addListener=="function"?(t.addListener(n),!0):!1}}function Vu(t,e,n,o){try{t.removeEventListener(e,n,o)}catch{typeof t.removeListener=="function"&&t.removeListener(n)}}function zs(t,e,n,o){if(e.__ref){if(Array.isArray(n)){if(t.target!=="mediaQuery")return;for(let i=0;i<n.length;i++)ju(t,e,n[i],o);return}ju(t,e,n,o)}}function ju(t,e,n,o){let r=e.__ref,i=RS(e,n,t.eventName);if(!i||t.target==="mediaQuery"&&t.eventName!=="change"||t.target==="mediaQuery"&&(i.query=LS(e,i.query),!i.query))return;let s=IS(e,t.target,i);if(!s)return;let a=t.target+":"+(i.query?i.query+":":"")+t.eventName+":"+(i.capture?1:0);if(r.__globalEvents&&r.__globalEvents.has(a))return;let l=En(e,i.handler,o||"on"+t.eventName),c=t.target==="window"&&t.eventName==="load",f=!1,u=g=>{if(ke(e)){if(c){if(f)return;f=!0}l(g)}},d={capture:i.capture,passive:i.passive,once:i.once};if(!PS(s,t.eventName,u,d))return;r.__globalEvents||(r.__globalEvents=new Map);let p={target:s,eventName:t.eventName,listener:u,options:d};r.__globalEvents.set(a,p),r.__eventCleanup||(r.__eventCleanup=[]),r.__eventCleanup.push(()=>{Vu(s,t.eventName,u,d),r.__globalEvents&&r.__globalEvents.delete(a)}),c&&BS(e,a,p,()=>f)}function BS(t,e,n,o){let r=n.target.document;!r||r.readyState!=="complete"||zt(t,()=>queueMicrotask(()=>{let i=t.__ref;if(o()||!i||!i.__globalEvents||i.__globalEvents.get(e)!==n)return;let s=n.target,a=typeof s.Event=="function"?s.Event:typeof Event=="function"?Event:null;a&&(n.listener(new a("load")),n.options.once&&o()&&Vu(s,"load",n.listener,n.options))}))}var Yu=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],MS=["none","forwards","backwards","both"],NS=["normal","reverse","alternate","alternate-reverse"],FS=["running","paused"],jS=/^(?:translate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|scale(?:3d|x|y|z)?\((?:\s*1(?:\.0+)?\s*,?)+\)|rotate(?:3d|x|y|z)?\((?:\s*0[a-z%]*\s*,?)+\)|skew(?:x|y)?\((?:\s*0[a-z%]*\s*,?)+\)|matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\))$/,WS=t=>{let e=String(t).trim().toLowerCase();if(e===""||e==="none"||e==="initial"||e==="unset")return!0;let n=e.match(/[a-z0-9]+\([^()]*\)/g);return!n||n.join("").replace(/\s+/g,"")!==e.replace(/\s+/g,"")?!1:n.every(o=>jS.test(o.replace(/\s+/g,"")))},Gu=t=>/^(?:\s*0[a-z%]*)+\s*$/.test(String(t).toLowerCase())||/^(none|initial|unset)$/.test(String(t).trim().toLowerCase()),$S={transform:WS,translate:Gu,rotate:t=>Gu(t)||/^\s*(?:[xyz]\s+)?0(?:deg|rad|turn|grad)?\s*$/.test(String(t).toLowerCase()),scale:t=>/^(none|initial|unset)$/.test(String(t).trim().toLowerCase())||/^(?:\s*1(?:\.0+)?)+\s*$/.test(String(t)),opacity:t=>/^(initial|unset)$/.test(String(t).trim().toLowerCase())||Number(t)===1},US=t=>{let e=String(t).trim().toLowerCase();if(e==="from")return 0;if(e==="to")return 100;let n=e.match(/^(\d+(?:\.\d+)?)%$/);return n?Number(n[1]):null},zS=t=>{if(!j(t))return null;let e=null,n=-1;for(let o in t){let r=US(o);r==null||!j(t[o])||r>=n&&(n=r,e=t[o])}return e},HS=t=>{let e=zS(t);if(!e)return!1;let n=Object.keys(e);if(!n.length)return!1;for(let o of n){let r=$S[o];if(!r)return!1;let i=e[o];if(i==null||typeof i=="object"||typeof i=="function"||!r(i))return!1}return!0},VS=(t,e)=>{if(j(t))return t;let{animation:n}=e.context&&e.context.designSystem||{},o=n&&n[t];return j(o)?o:null},GS=["reverse","alternate","alternate-reverse"],Zu=(t,e,n)=>{let o=n||e.animationDirection;return o&&GS.includes(String(o))?"both":HS(VS(t,e))?"backwards":"both"},KS=0,Ku=new Map,Hs=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{};if(j(t)){let r=JSON.stringify(t),i=Ku.get(r);if(i)return i;let s=`smbls-anim-${KS++}`,a=jr(s,t);return Ku.set(r,a),a}let o=n&&n[t];return j(o)?jr(t,o):t},Qu=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)m?s$/i,qS=/^(?:\d+(?:\.\d*)?|\.\d+)$/,Xu=/^(?:cubic-bezier|steps|linear)\(/,YS=/^(?:calc|min|max|clamp)\(/,ZS=t=>t.includes("(")||t.startsWith("--"),QS=(t,e)=>{if(!wr.test(t))return!1;let n=e&&e.sequence;if(!j(n))return!1;let o=t.charCodeAt(0)===45?t.slice(1):t;return!!(n[o]||o.length===2&&n[o[0]])},XS=t=>{if(!D(t))return!1;let e=t.trim();return Yu.includes(e)||Xu.test(e)||e.startsWith("var(")},JS=(t,e)=>!!e&&XS(e[t]||e[wf(t)]),tw=["duration","timingFunction","delay","iterationCount","direction","fillMode","playState"],ew=t=>Q(String(t)),nw=(t,e,n)=>{let o={duration:null,delay:null,timingFunction:null,iterationCount:null,direction:null,fillMode:null,playState:null},r=null,i=[],s=[],a=(u,d)=>o[u]!=null?!1:(o[u]=d,!0),l=(u,d)=>{a(u,d)||i.push(d)};for(let u of ew(t))e&&e[u]?r=u:Qu.test(u)||QS(u,n)?a("duration",u)||a("delay",u):Yu.includes(u)||JS(u,n)?l("timingFunction",u):Xu.test(u)?a("timingFunction",u):u==="infinite"?l("iterationCount",u):qS.test(u)?a("iterationCount",Number(u)):NS.includes(u)?l("direction",u):MS.includes(u)?l("fillMode",u):FS.includes(u)?l("playState",u):ZS(u)?s.push(u):i.push(u);let c=r||i[0]||s.shift()||null,f=new Set;for(let u of s){let d=tw.find(p=>o[p]==null);if(!d)break;o[d]=u.startsWith("--")?`var(${u})`:u,f.add(d)}return{name:c,...o,opaqueSlots:f}},ow=(t,e)=>{let{animation:n}=e.context&&e.context.designSystem||{},{timing:o}=Z()||{};return Af(String(t)).map(r=>r.trim()).filter(Boolean).map(r=>nw(r,n,o))},qu=(t,e)=>Qu.test(t)||e&&!YS.test(t)&&!/^(?:var|env)\(/.test(t)?t:xe(t).timing||t,rw=(t,e)=>{let n=o=>t.opaqueSlots.has(o);return{animationName:t.name==null?void 0:Hs(t.name,e),animationDuration:t.duration!=null?qu(t.duration,n("duration")):xe(e.animationDuration||"A").timing,animationDelay:t.delay!=null?qu(t.delay,n("delay")):xe(e.animationDelay||"0s").timing,animationTimingFunction:t.timingFunction!=null?n("timingFunction")?t.timingFunction:He(t.timingFunction):He(e.animationTimingFunction||"ease"),animationFillMode:t.fillMode||e.animationFillMode||Zu(t.name,e,t.direction),animationIterationCount:t.iterationCount!=null?t.iterationCount:e.animationIterationCount||1,animationPlayState:t.playState||e.animationPlayState,animationDirection:t.direction||e.animationDirection}},iw={animationName:"none",animationPlayState:"running",animationDirection:"normal"},sw=(t,e)=>{let n=t.map(r=>rw(r,e));if(n.length===1)return n[0];let o={};for(let r in n[0]){let i=n.map(s=>s[r]);i.every(s=>s==null)||(o[r]=i.map(s=>s??iw[r]).join(", "))}return o},Ju={animation:(t,e)=>{if(t!=null){if(D(t)&&/[\s,]/.test(t)){let n=ow(t,e);if(n.length)return sw(n,e)}return{animationName:Hs(t,e),animationDuration:xe(e.animationDuration||"A").timing,animationDelay:xe(e.animationDelay||"0s").timing,animationTimingFunction:He(e.animationTimingFunction||"ease"),animationFillMode:e.animationFillMode||Zu(t,e),animationIterationCount:e.animationIterationCount||1,animationPlayState:e.animationPlayState,animationDirection:e.animationDirection}}},animationName:(t,e)=>({animationName:Hs(t,e)}),animationDuration:t=>({animationDuration:xe(t).timing}),animationDelay:t=>({animationDelay:xe(t).timing}),animationTimingFunction:t=>({animationTimingFunction:He(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};var Ur=(t,e,n)=>{if(typeof e=="number"&&(e=String(e)),!D(e))return;let[o,r]=Q(e);return{...E(t+"Start",o,n),...E(t+"End",r||o,n)}},td={show:t=>t?void 0:{display:"none !important"},hide:t=>t?{display:"none !important"}:void 0,height:(t,e)=>E("height",t,e),width:(t,e)=>E("width",t,e),boxSizing:t=>_r(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("height",e),...ot("width",n||e)}},inlineSize:(t,e)=>E("inlineSize",t,e),blockSize:(t,e)=>E("blockSize",t,e),minWidth:(t,e)=>E("minWidth",t,e),maxWidth:(t,e)=>E("maxWidth",t,e),widthRange:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("minWidth",e),...ot("maxWidth",n||e)}},minHeight:(t,e)=>E("minHeight",t,e),maxHeight:(t,e)=>E("maxHeight",t,e),heightRange:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("minHeight",e),...ot("maxHeight",n||e)}},size:t=>{if(!D(t))return;let[e,n]=Q(t);return{...E("inlineSize",e),...E("blockSize",n||e)}},minBlockSize:(t,e)=>E("minBlockSize",t,e),minInlineSize:(t,e)=>E("minInlineSize",t,e),maxBlockSize:(t,e)=>E("maxBlockSize",t,e),maxInlineSize:(t,e)=>E("maxInlineSize",t,e),minSize:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("minInlineSize",e),...ot("minBlockSize",n||e)}},maxSize:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("maxInlineSize",e),...ot("maxBlockSize",n||e)}},borderWidth:(t,e)=>E("borderWidth",t,e),borderTopWidth:(t,e)=>E("borderTopWidth",t,e),borderRightWidth:(t,e)=>E("borderRightWidth",t,e),borderBottomWidth:(t,e)=>E("borderBottomWidth",t,e),borderLeftWidth:(t,e)=>E("borderLeftWidth",t,e),textDecorationThickness:(t,e)=>E("textDecorationThickness",t,e),textUnderlineOffset:(t,e)=>E("textUnderlineOffset",t,e),padding:(t,e)=>E("padding",t,e),paddingInline:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("paddingInlineStart",e),...ot("paddingInlineEnd",n||e)}},paddingBlock:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("paddingBlockStart",e),...ot("paddingBlockEnd",n||e)}},paddingTop:(t,e)=>E("paddingBlockStart",t,e),paddingBottom:(t,e)=>E("paddingBlockEnd",t,e),paddingLeft:(t,e)=>E("paddingInlineStart",t,e),paddingRight:(t,e)=>E("paddingInlineEnd",t,e),paddingBlockStart:(t,e)=>E("paddingBlockStart",t,e),paddingBlockEnd:(t,e)=>E("paddingBlockEnd",t,e),paddingInlineStart:(t,e)=>E("paddingInlineStart",t,e),paddingInlineEnd:(t,e)=>E("paddingInlineEnd",t,e),margin:(t,e)=>E("margin",t,e),marginInline:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("marginInlineStart",e),...ot("marginInlineEnd",n||e)}},marginBlock:t=>{if(!D(t))return;let[e,n]=Q(t);return{...ot("marginBlockStart",e),...ot("marginBlockEnd",n||e)}},marginTop:(t,e)=>E("marginBlockStart",t,e),marginBottom:(t,e)=>E("marginBlockEnd",t,e),marginLeft:(t,e)=>E("marginInlineStart",t,e),marginRight:(t,e)=>E("marginInlineEnd",t,e),marginInlineStart:(t,e)=>E("marginInlineStart",t,e),marginInlineEnd:(t,e)=>E("marginInlineEnd",t,e),marginBlockStart:(t,e)=>E("marginBlockStart",t,e),marginBlockEnd:(t,e)=>E("marginBlockEnd",t,e),scrollMargin:(t,e)=>E("scrollMargin",t,e),scrollMarginTop:(t,e)=>E("scrollMarginTop",t,e),scrollMarginRight:(t,e)=>E("scrollMarginRight",t,e),scrollMarginBottom:(t,e)=>E("scrollMarginBottom",t,e),scrollMarginLeft:(t,e)=>E("scrollMarginLeft",t,e),scrollMarginBlock:(t,e)=>Ur("scrollMarginBlock",t,e),scrollMarginInline:(t,e)=>Ur("scrollMarginInline",t,e),scrollMarginBlockStart:(t,e)=>E("scrollMarginBlockStart",t,e),scrollMarginBlockEnd:(t,e)=>E("scrollMarginBlockEnd",t,e),scrollMarginInlineStart:(t,e)=>E("scrollMarginInlineStart",t,e),scrollMarginInlineEnd:(t,e)=>E("scrollMarginInlineEnd",t,e),scrollPadding:(t,e)=>E("scrollPadding",t,e),scrollPaddingTop:(t,e)=>E("scrollPaddingTop",t,e),scrollPaddingRight:(t,e)=>E("scrollPaddingRight",t,e),scrollPaddingBottom:(t,e)=>E("scrollPaddingBottom",t,e),scrollPaddingLeft:(t,e)=>E("scrollPaddingLeft",t,e),scrollPaddingBlock:(t,e)=>Ur("scrollPaddingBlock",t,e),scrollPaddingInline:(t,e)=>Ur("scrollPaddingInline",t,e),scrollPaddingBlockStart:(t,e)=>E("scrollPaddingBlockStart",t,e),scrollPaddingBlockEnd:(t,e)=>E("scrollPaddingBlockEnd",t,e),scrollPaddingInlineStart:(t,e)=>E("scrollPaddingInlineStart",t,e),scrollPaddingInlineEnd:(t,e)=>E("scrollPaddingInlineEnd",t,e),gap:t=>({gap:Bf(t)}),columnGap:(t,e)=>ao(e,"columnGap",t),rowGap:(t,e)=>ao(e,"rowGap",t),flexWrap:t=>{if(t!=null)return{display:"flex",flexWrap:t}},flexFlow:(t,e)=>{let n=e.reverse;if(!D(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},flexAlign:t=>{if(!D(t))return;let[e,n]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:n}},round:(t,e)=>Ve(t??e.borderRadius,e,"round"),borderRadius:(t,e)=>Ve(t??e.round,e,"borderRadius"),borderTopLeftRadius:(t,e)=>Ve(t,e,"borderTopLeftRadius","borderTopLeftRadius"),borderTopRightRadius:(t,e)=>Ve(t,e,"borderTopRightRadius","borderTopRightRadius"),borderBottomLeftRadius:(t,e)=>Ve(t,e,"borderBottomLeftRadius","borderBottomLeftRadius"),borderBottomRightRadius:(t,e)=>Ve(t,e,"borderBottomRightRadius","borderBottomRightRadius"),backgroundSize:(t,e)=>({backgroundSize:co(t,"backgroundSize",ls,e)}),backgroundPosition:(t,e)=>({backgroundPosition:co(t,"backgroundPosition",fs,e)}),maskSize:(t,e)=>({maskSize:co(t,"maskSize",ls,e)}),maskPosition:(t,e)=>({maskPosition:co(t,"maskPosition",fs,e)})};var ed={fontSize:t=>Of(t)||t,fontFamily:t=>({fontFamily:vf(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t}),lineClamp:t=>{if(t!=null)return t==="none"?{WebkitLineClamp:"none",lineClamp:"none"}:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:String(t),lineClamp:String(t),overflow:"hidden"}}};var nd={overflow:t=>({overflow:t}),cursor:(t,e,n,o)=>{if(!t)return;let r=o.assets&&o.assets[t];if(r&&r.content)t=`url(${r.content.src})`;else{let i=o.files&&o.files[t];i&&i.content&&(t=`url(${i.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 od={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:Q(t).map(n=>we(n,"k").k).join(" ")}},left:t=>we(t,"left"),top:t=>we(t,"top"),right:t=>we(t,"right"),bottom:t=>we(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=Q(t).map(n=>we(n,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=Q(t).map(n=>we(n,"k").k);return{left:e[0],right:e[1]||e[0]}}};var zr=0,Vs=()=>{zr++},Gs=()=>{zr>0&&zr--},kt=({context:t,state:e})=>{let n=t?.designSystem,o=e?.root?.globalTheme||n?.globalTheme;return o&&o!=="auto"?o:zr>0?null:n&&n.resolvedTheme||null},gt=(t,e)=>{if(e==null||e==="")return;if(!j(e))return{[t]:e};let n={},o=!1;for(let r in e){let i=e[r];if(!(i==null||i==="")){if(j(i)){let s=gt(t,i);s&&(n[r]=s,o=!0);continue}n[r]={[t]:i},o=!0}}return o?n:void 0},rd=t=>{let e={};for(let n in t){let o=t[n];e[n]=j(o)?rd(o):D(o)?o+" !important":o}return e},Je=t=>(e,n)=>{let o=n&&D(e)&&!Z().useVariable,r=If(e,o?kt(n):null);return j(r)?gt(t,r):{[t]:r}},id={theme:(t,e)=>{if(t)return e.themeModifier?as(t,`@${e.themeModifier}`):as(t)},color:(t,e)=>{let n=kt(e);if(t)return gt("color",It(t,n))},background:(t,e)=>{let n=kt(e);if(t)return D(t)&&t.includes("gradient")&&t.includes("(")?{background:Cf(t,n)}:gt("background",It(t,n))},backgroundColor:(t,e)=>{let n=kt(e);if(t)return gt("backgroundColor",It(t,n))},backgroundImage:(t,e,n,o)=>{let r=kt(e);if(!t)return;let i=o.assets&&o.assets[t];if(i&&i.content)t=i.content.src;else{let s=o.files&&o.files[t];s&&s.content&&(t=s.content.src)}return gt("backgroundImage",Pf(t,r))},textStroke:t=>{let e=Df(t);if(e!=null)return{WebkitTextStroke:e}},outline:Je("outline"),outlineWidth:(t,e)=>E("outlineWidth",t,e),outlineColor:(t,e)=>{let n=kt(e);if(t)return gt("outlineColor",It(t,n))},outlineOffset:(t,e)=>E("outlineOffset",t,e),border:Je("border"),borderColor:(t,e)=>{let n=kt(e);if(t)return gt("borderColor",It(t,n))},borderTopColor:(t,e)=>{let n=kt(e);if(t)return gt("borderTopColor",It(t,n))},borderBottomColor:(t,e)=>{let n=kt(e);if(t)return gt("borderBottomColor",It(t,n))},borderLeftColor:(t,e)=>{let n=kt(e);if(t)return gt("borderLeftColor",It(t,n))},borderRightColor:(t,e)=>{let n=kt(e);if(t)return gt("borderRightColor",It(t,n))},borderLeft:Je("borderLeft"),borderTop:Je("borderTop"),borderRight:Je("borderRight"),borderBottom:Je("borderBottom"),shadow:(t,e)=>{let n=kt(e);if(t)return gt("boxShadow",Lf(t,n))},boxShadow:(t,e)=>{if(!D(t))return;let[n,o]=t.split("!importan"),r=kt(e),i=o?" !important":"",s=cs(n.trim(),r);return D(s)?{boxShadow:s+i}:gt("boxShadow",i?rd(s):s)},textShadow:(t,e)=>gt("textShadow",cs(t,e?kt(e):null)),columnRule:Je("columnRule")};var Hr={transition:t=>{let e=Nf(t);if(e!=null)return{transition:e}},transitionDuration:t=>({transitionDuration:us(t)}),transitionDelay:t=>({transitionDelay:us(t)}),transitionTimingFunction:t=>({transitionTimingFunction:He(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var sd={flow:(t,e)=>{let n=e.reverse;if(!D(t))return;let[o,r]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(o="row"),(t.startsWith("y")||t==="column")&&(o="column"),{display:"flex",flexFlow:(o||"")+(!o.includes("-reverse")&&n?"-reverse":"")+" "+(r||"")}},wrap:(t,e)=>{if(t!=null)return{display:"flex",flexWrap:t}},align:(t,e)=>{if(!D(t))return;let[n,o]=t.split(" ");return{display:"flex",alignItems:n,justifyContent:o}}};var aw=/(^|[^\w.-])([A-Za-z_][\w-]*)/g,cw=t=>{if(!D(t))return t;let e=Z().sizes;return e?t.replace(aw,(n,o,r)=>{let i=e[r];return i==null?n:o+String(i)}):t},Qt=t=>cw(Mf(t)),ad={gridTemplateColumns:t=>({gridTemplateColumns:Qt(t)}),gridTemplateRows:t=>({gridTemplateRows:Qt(t)}),gridAutoColumns:t=>({gridAutoColumns:Qt(t)}),gridAutoRows:t=>({gridAutoRows:Qt(t)}),area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:Qt(t)}),templateColumns:t=>({gridTemplateColumns:Qt(t)}),autoColumns:t=>({gridAutoColumns:Qt(t)}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:Qt(t)}),templateRows:t=>({gridTemplateRows:Qt(t)}),autoRows:t=>({gridAutoRows:Qt(t)}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var lw="breakpoints",fw=new Set(["window","media"]),cd=/^-?[A-Za-z_][\w-]*$/,ld=new Set(["none","and","or","not","initial","inherit","unset","revert","revert-layer","default"]),uw=t=>{let e=t&&t.containerName;if(typeof e!="string")return null;let n=e.trim().split(/\s+/)[0];return n&&cd.test(n)&&!ld.has(n)?n:null},yo=(t,e)=>{if(typeof t=="function")try{t=t(e,e&&e.state,e&&e.context)}catch{return null}if(typeof t!="string")return null;let n=t.trim();return!n||fw.has(n)?null:n==="container"?uw(e)||lw:cd.test(n)&&!ld.has(n)?n:null},dw=/^@media\s+/i,pw=/^(?:only\s+)?(?:screen|all)\s+and\s+/i,hw=/(?:^|[^\w-])(?:(?:min|max)-)?(?:width|inline-size)(?![\w-])/i,gw=/height|block-size|aspect-ratio|orientation|device-|resolution/i,fd=t=>{if(typeof t!="string")return null;let e=t.trim().replace(dw,"").replace(pw,"").trim();if(!e||e.indexOf(",")!==-1)return null;let n=e.split(/\s+(?:and|or)\s+/i);for(let o of n){let r=o.trim();if(r.charCodeAt(0)!==40||r.charCodeAt(r.length-1)!==41)return null;let i=r.slice(1,-1);if(i.indexOf("(")!==-1||i.indexOf(")")!==-1||!hw.test(i)||gw.test(i))return null}return e},ud={breakpointsFrom:(t,e)=>{let n=yo(t,e);if(!n)return;let o={},r=e&&e.container!=null;return!r&&(!e||e.containerType==null)&&(o.containerType="inline-size"),!r&&(!e||e.containerName==null)&&(o.containerName=n),o}};var dd={show:["display"],hide:["display"],boxSize:["height","width"],widthRange:["minWidth","maxWidth"],heightRange:["minHeight","maxHeight"],size:["inlineSize","blockSize"],minSize:["minInlineSize","minBlockSize"],maxSize:["maxInlineSize","maxBlockSize"],marginTop:["marginBlockStart"],marginBottom:["marginBlockEnd"],marginLeft:["marginInlineStart"],marginRight:["marginInlineEnd"],paddingTop:["paddingBlockStart"],paddingBottom:["paddingBlockEnd"],paddingLeft:["paddingInlineStart"],paddingRight:["paddingInlineEnd"],flexWrap:["display","flexWrap"],flexFlow:["display","flexFlow"],flexAlign:["display","alignItems","justifyContent"],round:["borderRadius"],flow:["display","flexFlow"],wrap:["display","flexWrap"],align:["display","alignItems","justifyContent"],fontWeight:["fontWeight","fontVariationSettings"],lineClamp:["display","WebkitBoxOrient","WebkitLineClamp","lineClamp","overflow"],transitionProperty:["transitionProperty","willChange"],area:["gridArea"],template:["gridTemplate"],templateAreas:["gridTemplateAreas"],column:["gridColumn"],columns:["gridTemplateColumns"],templateColumns:["gridTemplateColumns"],autoColumns:["gridAutoColumns"],columnStart:["gridColumnStart"],row:["gridRow"],rows:["gridTemplateRows"],templateRows:["gridTemplateRows"],autoRows:["gridAutoRows"],rowStart:["gridRowStart"],autoFlow:["gridAutoFlow"],verticalInset:["top","bottom"],horizontalInset:["left","right"],shadow:["boxShadow"],textStroke:["WebkitTextStroke"],breakpointsFrom:["containerType","containerName"]};var z={...Ju,...td,...ed,...nd,...od,...id,...Hr,...sd,...ad,...ud};var X=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","anchorName","anchorScope","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationRange","animationRangeEnd","animationRangeStart","animationTimeline","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","containIntrinsicBlockSize","containIntrinsicHeight","containIntrinsicInlineSize","containIntrinsicSize","containIntrinsicWidth","container","containerName","containerType","content","contentVisibility","counterIncrement","counterReset","cursor","direction","display","emptyCells","fieldSizing","fill","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","interpolateSize","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","overscrollBehavior","overscrollBehaviorX","overscrollBehaviorY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","positionAnchor","positionArea","positionTry","positionTryFallbacks","positionTryOrder","positionVisibility","resize","right","rotate","rowGap","scrollBehavior","scrollMargin","scrollMarginBlock","scrollMarginBlockEnd","scrollMarginBlockStart","scrollMarginBottom","scrollMarginInline","scrollMarginInlineEnd","scrollMarginInlineStart","scrollMarginLeft","scrollMarginRight","scrollMarginTop","scrollPadding","scrollPaddingBlock","scrollPaddingBlockEnd","scrollPaddingBlockStart","scrollPaddingBottom","scrollPaddingInline","scrollPaddingInlineEnd","scrollPaddingInlineStart","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop","scrollSnapAlign","scrollSnapStop","scrollSnapType","scrollTimeline","scrollTimelineAxis","scrollTimelineName","scrollbarColor","scrollbarGutter","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","stroke","tabSize","tableLayout","textAlign","textAlignLast","textBox","textBoxEdge","textBoxTrim","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","textWrap","textWrapMode","textWrapStyle","timelineScope","top","touchAction","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","viewTimeline","viewTimelineAxis","viewTimelineInset","viewTimelineName","viewTransitionClass","viewTransitionName","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);var _w=/^[a-z][0-9]?$/,pd=/var\(\s*(--[A-Za-z0-9-]+)/g,yw=t=>{let e=new Set,n=new Set;if(!t||typeof t!="object")return{knownLetters:e,knownVars:n};for(let o in t){let r=t[o];if(!(!r||typeof r!="object")){if(r.sequence&&typeof r.sequence=="object")for(let i in r.sequence)e.add(i);if(r.vars&&typeof r.vars=="object")for(let i in r.vars)n.add(i)}}return{knownLetters:e,knownVars:n}},mw=Object.prototype.propertyIsEnumerable,hd=(t,e)=>{if(!t||typeof t!="object")return!1;for(let n in t){let o=t[n];if(!o||typeof o!="object")continue;let r=o.sequence;if(r&&typeof r=="object"&&mw.call(r,e))return!0}return!1},Ks=/[(),\s]+/,qs=(t,e)=>{let n=null,o=t.split(Ks);for(let r=0;r<o.length;r++){let i=o[r];i&&e(i)&&(n||(n=[])).push(i)}return n},Ys=(t,e)=>wr.test(t)&&e(t.charCodeAt(0)===45?t.slice(1):t),bw=(t,e)=>{if(!e.size)return[];let n=r=>e.has(r),o=qs(t,r=>Ys(r,n));return o?[...new Set(o)]:[]},Sw=(t,e)=>{if(!e.size)return[];let n=[];pd.lastIndex=0;let o;for(;o=pd.exec(t);){let r=o[1];if(e.has(r))continue;let i=r.lastIndexOf("-");if(i===-1)continue;let s=r.slice(i+1);if(!_w.test(s))continue;let a=r.slice(0,i+1)+s.toUpperCase();a!==r&&e.has(a)&&n.push({varName:r,corrected:a})}return n},Vr=new Set,gd=(t,e,n)=>{};var Gr=br(),ww=(t,e,n)=>{let o=e?.context?.designSystem;o&&at(o);try{let r={},i={},s=(a,l)=>{if(n.unpack){r={...r,...l};return}r[a]=l};for(let a in t){let l=t[a];if(l!==null)if(a==="class"&&D(l)){let c=xw(l,e);c&&(n.unpack?ro(r,c):r.designSystemClass=c)}else if(a==="true"){let c=kn(l,e);ro(r,_d(c,e))}else if(e.classlist?.[a]){let c=e.classlist[a],f=nt(c)?c(e,e.state,e.context):c;f&&s(a,f),!Gr&&j(r[a])&&(r[a].label=a)}else if(z[a]){let c=kn(l,e);if(c===null)continue;os(c)&&(c=c.reduce((u,d)=>ro(u,d),{}));let f=z[a](c,e,e.state,e.context);os(f)&&(f=f.reduce((u,d)=>ro(u,d),{})),f&&s(a,f),!Gr&&j(r[a])&&(r[a].label=a)}else if(X.has(a)){let c=kn(l,e);if(c===null)continue;typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),Gr||gd(a,c,e),s(a,{[a]:c}),!Gr&&j(r[a])&&(r[a].label=a)}else i[a]=l}return[r,i]}finally{o&&it()}},xw=(t,e)=>{if(!D(t))return;let n=e?.context?.designSystem?.class;if(!n)return;let o;for(let r of t.split(" ")){if(!r)continue;let i=n[r];if(!j(i))continue;let s=ze(i);o=o?io(o,s):s}if(o)return Nt(o,e)},kw=(t,e)=>{let n={};for(let o in t){let r=yd[o.slice(0,1)];if(r){let i=r(o,t[o],e);if(i)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]&&typeof n[s]=="object"&&typeof i[s]=="object"?io(n[s],i[s]):n[s]=i[s])}}return n},Nt=(t,e,n={unpack:!0})=>{let[o,r]=ww(t,e,n),i=kw(r,e),s=!1;for(let a in i){s=!0;break}if(s){if(n.unpack)return yf(o,i);o._selectors=i}return o},PO=(t,e)=>{let n={};if(t.class)for(let o in t.class)n[o]=t.class[o](e);return n};var Aw=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,Tw=(t,e,n)=>{let{context:o}=n;if(!o.designSystem?.media)return;let r=t.slice(1),i=o.designSystem.media[r],s=kr(i||t)?xr(()=>Nt(e,n)):Nt(e,n);if(!i)return{[t]:s};if(/^@(media|supports|container)\b/.test(i))return{[i]:s};if(i==="print")return{"@media print":s};if(i[0]==="(")return{[`@media screen and ${i}`]:s};let a=i.match(Aw),l=a?a[1]||a[2]:r,c={[`${i} &`]:s};if(l==="dark"||l==="light"){let f=o.designSystem?.scopeSelector||":root",u=f===":root"?":root:not([data-theme])":`${f}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${u} &`]:s}}return c},md=(t,e,n)=>({[t]:Nt(e,n)}),mo=(t,e,n)=>{let o=`&${t}`,r=Nt(e,n);if(t.includes(",")&&r){let i={},s={};for(let a in r)typeof r[a]=="object"&&r[a]!==null?s[a]=r[a]:i[a]=r[a];if(Object.keys(s).length){let a=o.split(",").map(c=>c.trim()),l={};Object.keys(i).length&&(l[o]=i);for(let c in s){let f=a.map(u=>`${u} ${c}`).join(", ");l[f]=s[c]}return l}}return{[o]:r}},Zs=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return nt(n)?n.call(e,e):!!n},Cw=(t,e,n)=>{let o=t.slice(1),r=Zs(o,n);if(r===void 0&&(r=!!n[o]),!!r)return Nt(e,n)},vw=(t,e,n)=>({[t]:e}),Ow=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let i=Zs(o,n);i!==void 0&&(r=i)}if(r)return Nt(e,n)},Ew=(t,e,n)=>{let o=t.slice(1),r=n[o]===!0||n.state?.[o];if(!r)if(typeof n[o]=="function")try{r=n[o](n,n.state,n.context)}catch{}else{let i=Zs(o,n);i!==void 0&&(r=i)}if(!r)return Nt(e,n)},_d=(t,e)=>Nt(t,e),yd={"@":Tw,":":mo,"[":mo,"*":mo,"+":mo,"~":mo,"&":md,">":md,$:Cw,"-":vw,".":Ow,"!":Ew};var bd=/\s*!important\s*$/,Rw=()=>{let t;try{t=Z()}catch{t=null}let e=t&&t.sizes&&typeof t.sizes=="object"?t.sizes:null,n=null,o=i=>{n||(n=new Map);let s=n.get(i);return s===void 0&&(s=hd(t,i),n.set(i,s)),s},r=i=>Tf(e,i)!==void 0;return{isToken:i=>i.charCodeAt(0)!==35&&(Ys(i,o)||r(i))}},Iw=(t,e)=>{let n=String(t).split(Ks);for(let o=0;o<n.length;o++)if(n[o]===e)return!0;return!1},Dw=(t,e)=>{let n=typeof globalThis<"u"?globalThis.CSS:void 0;if(!n||typeof n.supports!="function")return!1;try{return n.supports(Bt(t),e)}catch{return!1}},Sd=new Set,Lw=(t,e,n)=>{},Pw=(t,e)=>{if(!t||typeof t!="object")return!1;let n=!1;for(let o in t){let r=t[o];if(r!=null){if(typeof r=="object"||typeof r=="function")return!1;for(let i of e)if(Iw(r,i))return!1;n=!0}}return n},Bw=(t,e,n,o)=>{if(!D(e)||!e||t.charCodeAt(0)===45&&t.charCodeAt(1)===45)return null;let r=z[t];if(!r||!X.has(t))return null;let i=bd.test(e),s=i?e.replace(bd,""):e,a=qs(s,o.isToken);if(!a||Dw(t,s))return null;let l;try{l=r(s,n,n?.state,n?.context)}catch{l=null}if(Array.isArray(l)){let f={};for(let u of l)u&&typeof u=="object"&&Object.assign(f,u);l=f}if(!Pw(l,a))return Lw(n,t,e),null;let c={};for(let f in l){let u=l[f];u!=null&&(c[f]=i?String(u)+" !important":u)}return c},wd=(t,e,n)=>{let o={},r=!1;for(let i in t){let s=t[i];if(i.charCodeAt(0)===38&&s&&typeof s=="object"&&!Array.isArray(s)){let l=wd(s,e,n);l!==s&&(r=!0),o[i]=l;continue}let a=Bw(i,s,e,n);a?(r=!0,Object.assign(o,a)):o[i]=s}return r?o:t},xd=(t,e)=>!t||typeof t!="object"||Array.isArray(t)?t:wd(t,e,Rw());if(!V||!Zt)throw new Error("@symbo.ls/element: the installed @symbo.ls/css does not export CSS_SHORTHAND_LONGHANDS / CSS_LONGHAND_SHORTHANDS (the CSS shorthand family table, packages/css/src/cssLonghands.js). This element needs the @symbo.ls/css published in the same release \u2014 update @symbo.ls/css.");var Kr=V,Te=Zt,qr=Dr||(()=>!1),kd=ws||qr,Ad=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,fe=Bt||(t=>Ad(t)?t:t.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),bo=Ds||(t=>Ad(t)?t:t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase()));function Cd(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 Xs(t,e,n){let o=Cd(e);if(!o.length)return;let r=t.context||n?.context||{},i=r.components||{};for(let s=0;s<o.length;s++){let a=vd(o[s],i,r,e);a&&a!==e&&Od(t,a,n,new Set([e]))}}var Mw=Symbol.for("smbls.shadowedComponents");function Nw(t,e,n,o){let r=o&&o[Mw],i=r?r.get(e):void 0,s=i?i.length+1:1,a=null,l=!1;for(let c=0;c<=s;c++){let f=c===0?t[e]:c===s?t[`smbls.${e}`]:i[c-1];if(f)if(f===n)l=!0;else{if(l)return f;a===null&&(a=f)}}return l?null:a}function vd(t,e,n,o){if(typeof t=="string"){if(t.includes(">")){let r=t.split(">").map(s=>s.trim()),i=e[r[0]]||e[`smbls.${r[0]}`];for(let s=1;s<r.length&&i;s++)i=i[r[s]];return i||null}return Nw(e,t,o,n)}return typeof t=="object"&&t!==null?t:null}function Od(t,e,n,o=new Set){if(o.has(e))return;o.add(e);let r=Cd(e);if(r.length){let s=t.context||n?.context||{},a=s.components||{};for(let l=0;l<r.length;l++){let c=vd(r[l],a,s,e);c&&Od(t,c,n,o)}}let i=Js(t);for(let s in e){if(s==="extends"||s==="extend")continue;let a=e[s];i&&i.mark(s);let l=I.chains;l!==null&&l(t,s,t[s],a)||(t[s]===void 0?a&&typeof a=="object"&&!Array.isArray(a)&&typeof a!="function"?t[s]={...a}:t[s]=a:typeof t[s]=="object"&&typeof a=="object"&&!Array.isArray(t[s])&&!Array.isArray(a)&&t[s]!==null&&a!==null?t[s]=Ot(t[s],a):t[s]=a)}}var Qs=class{constructor(){this.rank=0,this.ranks=null}mark(e){Fw(e)&&(this.ranks||(this.ranks=new Map),this.ranks.set(e,this.rank))}get(e){return this.ranks?this.ranks.get(e):void 0}get size(){return this.ranks?this.ranks.size:0}},Yr=new Set;for(let t of[Te,Kr])for(let e in t)Yr.add(e),Yr.add(bo(e));var Td=new Map;function Fw(t){let e=t.charCodeAt(0);if(e>=65&&e<=90||e>=48&&e<=57)return!1;let n=Td.get(t);return n===void 0&&(n=!!z[t]||Yr.has(t)||t.indexOf("-")>=0&&!(t.charCodeAt(0)===45&&t.charCodeAt(1)===45)&&Yr.has(fe(t)),Td.set(t,n)),n}function Js(t){let e=t&&t.__ref;if(!e)return null;let n=e.__mergeLayer;return n||(n=e.__mergeLayer=new Qs),n.rank++,n}function Ed(t){let e=t&&t.__ref&&t.__ref.__mergeLayer;if(!e||!e.ranks)return;let n;for(let o of e.ranks.values())if(n===void 0)n=o;else if(o!==n)return;e.ranks=null}function Ot(t,e){let n={...t},o=I.chains;for(let r in e){let i=n[r],s=e[r];o!==null&&o(n,r,i,s)||(i&&s&&typeof i=="object"&&typeof s=="object"&&!Array.isArray(i)&&!Array.isArray(s)&&typeof i!="function"&&typeof s!="function"?n[r]=Ot(i,s):n[r]=s)}return n}var Xt="http://www.w3.org/2000/svg",na=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"]),jw=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 ta(t){return jw.has(t)||na.has(t)}function Ce(t){return na.has(t)}function ve(t){let{tag:e,key:n}=t;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch(i){e=void 0,typeof console<"u"&&console.error&&console.error(`[smbls] \`tag:\` factory threw on "${n||"<anon>"}" \u2014 falling back to key-based tag detection:`,i?.message||i)}if(e===!0&&(e=n),typeof e=="string"&&ta(e))return e;if(!n||typeof n!="string")return"div";let o=new Set(["html","head","body","meta","link","script","style","title","base","noscript","template","th","tr","td","thead","tbody","tfoot","caption","col","colgroup"]),r=n.toLowerCase();return r.includes(".")&&(r=r.split(".")[0]),r.includes("_")&&(r=r.split("_")[0]),ta(r)&&!o.has(r)?r:"div"}var Rd={};function ea(t,e){let n=e?.context?.document||globalThis.document;if(!n)return null;if(t==="string")return n.createTextNode(e?.text||"");if(t==="fragment")return n.createDocumentFragment();if(Ce(t)){let o=e?.parent;if(t==="svg"||o?.node?.namespaceURI===Xt)return n.createElementNS(Xt,t);if(t!=="svg")return n.createElement("div")}return n.createElement(t)}function So(t){let e=t.tag=ve(t),o=Ce(e)&&(e==="svg"||t.parent?.node?.namespaceURI===Xt)?"svg:"+e:e,r=t?.context?.document||globalThis.document,i=Rd[o];if(i||(i=Rd[o]=ea(e,t)),!i)return null;let s=r&&i.ownerDocument!==r?ea(e,t):i.cloneNode(!0);return e==="string"&&(s.nodeValue=t.text||""),s}function wo(t,e){return e&&e.parentNode===t?e.nextSibling:t.firstChild}var Ww=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Dd(t,e,n){return bt(()=>Lt(t,()=>e.call(t,n,t,t.state,t.context)))}function Ld(t){let e=t.__ref,n=t.node;if(!e||!n||e.__bridge||typeof t.onBridgeMount!="function")return;if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return Y("bridge",t);if(!("scrollHeight"in n))return;let o=e.__bridge={settled:!1,failed:!1,disposed:!1,destroyed:!1,instance:void 0,effect:null};e.contentManaged=!0;let r;try{r=Dd(t,t.onBridgeMount,n)}catch(i){if(o.failed=!0,Dt(t,"onBridgeMount",i),t.context?.strictMode)throw i;return}if(r&&typeof r.then=="function"){r.then(i=>Id(t,o,i),i=>{o.failed=!0,Dt(t,"onBridgeMount",i)});return}Id(t,o,r)}function Id(t,e,n){if(e.settled=!0,e.instance=n,e.disposed){Bd(t,e);return}if(Object.defineProperty(t,"bridge",{value:n,writable:!0,configurable:!0,enumerable:!1}),typeof t.onBridgeUpdate!="function")return;let o=t.__ref;e.effect=P(()=>{e.disposed||Lt(t,()=>{try{let r=t.onBridgeUpdate.call(t,e.instance,t,t.state,t.context);r&&typeof r.then=="function"&&r.catch(i=>Dt(t,"onBridgeUpdate",i))}catch(r){Dt(t,"onBridgeUpdate",r)}})},{depth:o.path.length,label:()=>o.path.join(".")+"::onBridgeUpdate"}),o.__effects.push(e.effect)}function Pd(t){if(globalThis.__SMBLS_BUILD_DROP_F_bridge__)return;let e=t.__ref?.__bridge;!e||e.disposed||(e.disposed=!0,e.effect&&e.effect.dispose(),e.settled&&Bd(t,e))}function Bd(t,e){if(e.destroyed)return;e.destroyed=!0;let n=e.instance;if(e.instance=void 0,Ww(t,"bridge")&&(t.bridge=void 0),typeof t.onBridgeDestroy=="function")try{let o=Dd(t,t.onBridgeDestroy,n);o&&typeof o.then=="function"&&o.catch(r=>Dt(t,"onBridgeDestroy",r))}catch(o){Dt(t,"onBridgeDestroy",o)}}function Rn(t){return t.__mount||(t.__mount={pending:0,tail:null,holder:null,waiters:null,chunkGen:0,attachLater:!1,held:!1})}function xo(t){let e=t.__mount;return e?e.pending:0}function ko(t){if(!t)return;let e=t.__ref;if(!e)return;if(e.__onConnected&&Ff(t),ie())return bt(()=>ko(t));e.__disposed=!0,(e.__faceWait||e.__faceWaitLate)&&I.faceWait!==null&&I.faceWait.dispose(t);let n=e.__if===!1&&!e.__ifInitialized;if(!n)try{typeof t.onBeforeRemove=="function"&&t.onBeforeRemove(t,t.state,t.context)}catch(i){console.error("[smbls] onBeforeRemove error:",i)}if(e.__bridge&&(globalThis.__SMBLS_BUILD_DEFER_F_bridge__?An.bridge&&An.bridge.destroy(t):Pd(t)),e.__effects){for(let i=0;i<e.__effects.length;i++)e.__effects[i].dispose();e.__effects.length=0}if(typeof e.__releaseMedia=="function"&&(e.__releaseMedia(),e.__releaseMedia=null),e.__eventCleanup){for(let i=0;i<e.__eventCleanup.length;i++)e.__eventCleanup[i]();e.__eventCleanup.length=0}if(e.__children){let i=e.__children.slice();e.__children.length=0;for(let s=0;s<i.length;s++){let a=t[i[s]];a&&a.__ref&&ko(a)}}if(e.__ifParked&&e.__ifParked.size){let i=[...e.__ifParked];e.__ifParked.clear();for(let s=0;s<i.length;s++){let a=t[i[s]];a&&a.__ref&&a.parent===t&&ko(a)}}let o=I.hydration!==null?t.context?.__replacing:void 0;o&&I.hydration.releaseReplaced(o,t),e.__keepNode?e.__keepNode=!1:t.node?.parentNode?t.node.remove():t.tag==="fragment"&&e.__fragmentAnchor?.parentNode&&e.__fragmentAnchor.remove();let r=t.state?.$destroy||t.state?.destroy;if(typeof r=="function"&&t.state.__element===t&&r.call(t.state),t.parent?.__ref?.__children){let i=t.parent.__ref.__children.indexOf(t.key);i!==-1&&t.parent.__ref.__children.splice(i,1),t.parent.__ref.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),delete t.parent[t.key]}if(!n)try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(i){console.error("[smbls] onRemove error:",i)}e.__mount&&e.__mount.tail&&I.mount.abandon(t,e),t.node=null,t.parent=null,t.__ref=null}function oa(){ko(this)}function Fd(t,e,n){let o=t?.context?.analyze;if(!o||!o.emit||e==="warn"&&!o.shouldCapture("warnings")||e==="error"&&!o.shouldCapture("errors"))return;let r=n.map(i=>i?.message||(typeof i=="string"?i:null)).filter(Boolean).join(" ");o.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:r||null,args:n})}var jd=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Uw=new Set,Wd=t=>jd(ra,t)&&!(gf||Uw).has(t),Md=new Set;function $d(t,e){Md.has(t)||Md.add(t)}function zw(...t){return Fd(this,"warn",t),iu.apply(this,t)}function Hw(...t){return Fd(this,"error",t),Or.apply(this,t)}var ra={update:sa,remove:oa,getDB:lu,getQuery:fu,getRootData:nu,getPath:Jf,nextElement:su,previousElement:au,verbose:gs,warn:zw,error:Hw,variables:cu,spotByPath:Xf,set(t,e,n){let o=this.__ref;if(o){if(o.__setLocked){o.__setQueued={content:t,options:e};return}o.__setLocked=!0}let r,i=t!=null?I.hydration:null,s=i&&typeof i.handBack=="function"?this.context?.__hydration:null,a=s&&o?.__children&&this.content?.__ref?i.handBack(s,this.content):null;try{if(this.removeContent(),t!=null){let l=this.context?.__create;try{l&&(r=l(t,this,"content",e,n))}finally{a&&i.settleHandBack(s,a)}}this.__ref&&(this.__ref.contentManaged=!0)}finally{if(o){o.__setLocked=!1;let l=o.__setQueued;l&&(o.__setQueued=null,this.set(l.content,l.options))}}return r},reset(t){let e=this.context?.__create;if(!e)return this;let n=this.parent,o=this.key,r=this.parse();return this.remove(),e(r,n,o,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},whenConnected(t){return zt(this,t)},lookdown(t){let e=this.__ref;if(!e?.__children)return null;for(let n of e.__children){let o=this[n];if(!o)continue;if(typeof t=="function"){if(t(o))return o}else if(typeof t=="string"&&o.key===t)return o;let r=o.lookdown?.(t);if(r)return r}return null},lookdownAll(t,e=[]){let n=this.__ref;if(!n?.__children)return e;for(let o of n.__children){let r=this[o];r&&(typeof t=="function"?t(r)&&e.push(r):typeof t=="string"&&r.key===t&&e.push(r),r.lookdownAll?.(t,e))}return e},getRef(t){return t?this.__ref&&this.__ref[t]:this.__ref},getChildren(){let t=this.__ref&&this.__ref.__children;return Array.isArray(t)?t.map(e=>this[e]):[]},getAdoption(){let t=this.__ref&&this.__ref.__adoption;if(t)return t;if(this.node)return null;let e=I.hydration;return e&&typeof e.foresee=="function"?e.foresee(this):null},facesReady(){if(globalThis.__SMBLS_BUILD_DROP_F_faceWait__)return Promise.resolve(Y("faceWait",this)||[]);let t=I.faceWait;return t?t.ready(this):Promise.resolve([])},checkFaces(){if(globalThis.__SMBLS_BUILD_DROP_F_faceWait__){Y("faceWait",this);return}let t=I.faceWait;t&&t.recheck(this)},getRoot:eu,getRootState:tu,getRootContext:ou,getContext:ru,parse(t){let e={},n=t?new Set(t):null,o=this.__ref?.__exec;for(let r in this)if(!(r==="parent"||r==="node"||r==="__ref")&&!n?.has(r)){if(o&&o[r]!==void 0){e[r]=o[r];continue}typeof this[r]!="function"&&(e[r]=this[r])}return e},parseDeep(t){let e=this.parse(t),n=this.__ref;if(n?.__children)for(let o of n.__children)this[o]?.parseDeep&&(e[o]=this[o].parseDeep(t));return e},keys(){return Object.keys(this)},log(...t){if(t.length){let e={};for(let n of t)e[n]=this[n];console.log(e)}else console.log(this)},setProps(t,e){return this.update(t,e)},setNodeStyles(t){if(this.node?.style)for(let e in t){let n=t[e];if(n==null)continue;let o=e.replace(/[A-Z]/g,i=>"-"+i.toLowerCase()),r=String(n).replace(/\s*!important\s*$/,"");this.node.style.setProperty(o,r,"important")}},call(t,...e){let n=this.context,o=Wd(t);o&&n?.methods?.[t]&&n.methods[t]!==this[t]&&$d(t,"el.call");let r=o?this[t]:n?.methods?.[t]||n?.functions?.[t]||n?.utils?.[t]||this[t];if(typeof r=="function"){let i=mr;return!i||!i(r)?r.call(this,...e):void 0}},removeContent(){let t=this.__ref;if(!t?.__children)return;let e=this.content;if(e?.remove){e.remove(),delete this.content;let n=t.__children.indexOf("content");n!==-1&&t.__children.splice(n,1)}e?.node?.parentNode&&e.node.parentNode.removeChild(e.node)}},ia=new WeakMap;function Vw(t){if(!t)return ra;let e=ia.get(t);if(e)return e;e=Object.create(ra);let n=t.methods;if(n)for(let o in n)e[o]=n[o];return ia.set(t,e),e}function aa(t){let e=Vw(t.context);Object.setPrototypeOf(t,e)}function ca(t){if(!t)return!1;let e=ia.get(t);if(!e)return!1;let n=t.methods;if(!n)return!1;for(let o in n){if(Wd(o)&&!jd(e,o)){$d(o,"refreshContextProto");continue}e[o]=n[o]}return!0}var Ao=(t,e,n)=>{Object.defineProperty(t,e,{value:n,enumerable:!1,configurable:!0,writable:!0})},Vt=(t,e,n,{onlyIfAbsent:o}={})=>{Ao(t,"$"+e,n),!(o&&Object.prototype.hasOwnProperty.call(t,e))&&Ao(t,e,n)},la=(t,e,...n)=>{if(!t)return;let o=t["$"+e];if(typeof o=="function")return o.apply(t,n);let r=t[e];if(typeof r=="function")return r.apply(t,n)},Ft=(t,e)=>{if(H(e)){let r=e.__raw||e;Vt(r,"toggle",function(i,s={}){e[i]=!e[i]},{onlyIfAbsent:!0}),Vt(r,"set",function(i,s={}){let a=e.__element;return typeof i=="object"&&i!==null&&a&&typeof a.onBeforeStateUpdate=="function"&&!s.preventBeforeStateUpdateListener&&a.onBeforeStateUpdate(a,e,a.context,{changes:i,options:s})===!1||(e.$clean({preventStateUpdate:!0}),typeof i=="object"&&i!==null&&e.$update(i,{...s,preventBeforeStateUpdateListener:!0})),e},{onlyIfAbsent:!0}),Vt(r,"setByPath",function(i,s,a={}){let l=i.split("."),c=e;for(let f=0;f<l.length-1;f++)c[l[f]]===void 0&&(c[l[f]]={}),c=c[l[f]];return c[l[l.length-1]]=s,e}),Vt(r,"getByPath",function(i){let s=i.split("."),a=e;for(let l=0;l<s.length;l++){if(a==null)return;a=a[s[l]]}return a}),Vt(r,"removeByPath",function(i,s={}){let a=i.split("."),l=e;for(let c=0;c<a.length-1;c++){if(l==null)return e;l=l[a[c]]}return l&&delete l[a[a.length-1]],e}),Vt(r,"reset",function(i={}){let s=e.$parse();return e.$set(s,i)}),Vt(r,"apply",function(i,s={}){if(typeof i=="function"){let a=i(e);return e.$update(a,s)}}),Vt(r,"applyFunction",function(i,s={}){if(typeof i=="function")return i(e),e.$update(e.$parse(),s)}),Vt(r,"rootUpdate",function(i,s={}){let a=e;for(;a?.parent&&H(a.parent);)a=a.parent;return la(a,"update",i,s)}),Vt(r,"parentUpdate",function(i,s={}){if(e.parent)return la(e.parent,"update",i,s)}),Vt(r,"quietReplace",function(i,s={}){return e.$replace(i,{quiet:!0,...s})}),Object.getOwnPropertyDescriptor(r,"root")||Object.defineProperty(r,"root",{get:function(){let i=e,s=H(i)?i:null;for(let a=0;a<64&&i?.parent&&i.parent!==i;a++)i=i.parent,H(i)&&(s=i);return s||i},enumerable:!1,configurable:!0});return}if(!e||typeof e!="object")return;let n=()=>{for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r]},o={update(r){if(!r||typeof r!="object")return e;for(let i in r)e[i]=r[i];return e},apply(r){if(typeof r!="function")return e;let i=r(e);return i?e.$update(i):e},parse(){return{...e}},toggle(r){return e[r]=!e[r],e},set(r){if(!r||typeof r!="object")return e;n();for(let i in r)e[i]=r[i];return e},replace(r){return e.$set(r)},clean(){return n(),e}};Ao(e,"$settled",function(){return of().then(()=>e)});for(let r in o)if(Ao(e,"$"+r,o[r]),typeof e[r]!="function"){if(Object.prototype.hasOwnProperty.call(e,r)){af(r,"");continue}Ao(e,r,o[r])}};var Gw=function(t,e,n){return t.state=Ud(t,e,n),t.state},Ud=function(t,e,n){let{__ref:o}=t,r=t.state;if(r==null||r===!1){let i=e?.state||{};return Ft(t,i),i}if(typeof r=="string")return o&&(o.__state=r),o.__stateType="string",Kw(r,t,e);if(typeof r=="number"||typeof r=="boolean"){o&&(o.__state=r,o.__stateType=typeof r,o.__hasRootState=!0);let i=$e({value:r});return i.__element=t,e?.state&&(i.parent=e.state),Ft(t,i),i}if(typeof r=="function"&&(r=r(t,e?.state)||{}),typeof r=="object"&&!H(r)){o&&(o.__hasRootState=!0),r.isRootState&&o&&(o.__hasRootState=!0);let i=$e({...r});if(i.__element=t,!Object.getOwnPropertyDescriptor(i,"root")){let s=e?.state?.root||e?.state||i;Object.defineProperty(i,"root",{get:()=>s,enumerable:!1,configurable:!0})}return e?.state&&(i.parent=e.state,e.state.__children&&(e.state.__children[t.key]=i)),Ft(t,i),typeof t.onStateCreated=="function"&&t.onStateCreated(t,i,t.context,n),i}return H(r)?(r.__element=t,r):e?.state||{}};function fa(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function Kw(t,e,n){if(!n?.state)return{};if(t===".")return n.state;if(t.startsWith("../")){let r=t.slice(3),i=n.state?.parent;return r&&i?fa(i,r):i??n.state??{}}if(t.startsWith("~/")){let r=n.state;for(;r?.parent;)r=r.parent;let i=t.slice(2);return i?fa(r,i):r??{}}let o=fa(n.state,t);if(o&&typeof o=="object"&&!H(o)&&!Object.getOwnPropertyDescriptor(o,"root")){let r=n.state?.root||n.state;Object.defineProperty(o,"root",{get:()=>r,enumerable:!1,configurable:!0})}return o}var qw=(t,e)=>{if(!t)return Hd;let n=Qw(t,e);return!n||!n.state?Hd:Jw(n.state)},Yw=()=>ie()!=null,Zw=128;function Qw(t,e){let n=typeof e=="function"?e:typeof e=="string"?i=>!!i?.[e]:i=>!!i?.state,o=t,r=null;for(let i=0;i<Zw&&o;i++){if(n(o)&&o.state)return o;if(o.state&&!r&&(r=o),!o.parent||o.parent===o)break;o=o.parent}return r}var Xw={get(t,e){return t[e]}},zd=new WeakMap,Jw=t=>{let e=zd.get(t);return e||(e=new Proxy(t,Xw),zd.set(t,e)),e},Hd=new Proxy(Object.create(null),{get(){},has(){return!1}});var jE=["alert","alertdialog","application","article","banner","button","cell","checkbox","columnheader","combobox","complementary","contentinfo","definition","dialog","directory","document","feed","figure","form","grid","gridcell","group","heading","img","link","list","listbox","listitem","log","main","marquee","math","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","switch","tab","table","tablist","tabpanel","term","textbox","timer","toolbar","tooltip","tree","treegrid","treeitem"],tx=["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","mask-type","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"],ex=["requiredExtensions","systemLanguage"],Vd={circle:["cx","cy","r","pathLength"],ellipse:["cx","cy","rx","ry","pathLength"],line:["x1","y1","x2","y2","pathLength"],path:["d","pathLength"],polygon:["points","pathLength"],polyline:["points","pathLength"],rect:["x","y","width","height","rx","ry","pathLength"],g:[],defs:[],switch:[],symbol:["viewBox","preserveAspectRatio","refX","refY","x","y","width","height"],use:["href","xlink:href","x","y","width","height"],image:["href","xlink:href","x","y","width","height","preserveAspectRatio","crossorigin"],foreignObject:["x","y","width","height"],text:["x","y","dx","dy","rotate","textLength","lengthAdjust"],tspan:["x","y","dx","dy","rotate","textLength","lengthAdjust"],textPath:["href","xlink:href","path","startOffset","method","spacing","side","textLength","lengthAdjust"],linearGradient:["x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],radialGradient:["cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],stop:["offset"],pattern:["x","y","width","height","patternUnits","patternContentUnits","patternTransform","viewBox","preserveAspectRatio","href","xlink:href"],clipPath:["clipPathUnits"],mask:["x","y","width","height","maskUnits","maskContentUnits"],marker:["viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],filter:["x","y","width","height","filterUnits","primitiveUnits"]},nx=new Set(["linearGradient","radialGradient","stop","clipPath","mask","marker","pattern","filter","symbol"]),ox=()=>{let t={};for(let e in Vd)t[e]=[...Vd[e],...nx.has(e)?[]:ex,...tx];return t},Oe={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","enterkeyhint","exportparts","headingoffset","headingreset","hidden","id","inputmode","lang","nonce","part","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loading","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["command","commandfor","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["name","open"],del:["cite","datetime"],dialog:["closedby","open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["accept-charset","acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","controls","crossorigin","decoding","fetchpriority","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alpha","alt","autocomplete","capture","checked","colorspace","crossorigin","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","popovertarget","popovertargetaction","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","blocking","crossorigin","disabled","fetchpriority","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],q:["cite"],slot:["name"],script:["async","blocking","charset","crossorigin","defer","fetchpriority","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["blocking","media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],template:["for","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootmode","shadowrootserializable","shadowrootslotassignment"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loading","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","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"],...ox()},rx=["oncopy","oncut","onpaste","oncompositionend","oncompositionstart","oncompositionupdate","onfocus","onfocusin","onfocusout","onblur","onchange","onbeforeinput","oninput","onreset","onsubmit","oninvalid","onformdata","onload","onerror","ontoggle","onkeydown","onkeypress","onkeyup","onabort","oncanplay","oncanplaythrough","oncuechange","ondurationchange","onemptied","onencrypted","onended","onloadeddata","onloadedmetadata","onloadstart","onpause","onplay","onplaying","onprogress","onratechange","onseeked","onseeking","onstalled","onsuspend","ontimeupdate","onvolumechange","onwaiting","onauxclick","onclick","oncontextmenu","ondblclick","ondrag","ondragend","ondragenter","ondragexit","ondragleave","ondragover","ondragstart","ondrop","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onselect","onselectionchange","onselectstart","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ongotpointercapture","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onlostpointercapture","onscroll","onresize","onwheel","onanimationstart","onanimationend","onanimationiteration","ontransitionstart","ontransitionrun","ontransitionend","ontransitioncancel","onoutrostart","onoutroend","onintrostart","onintroend","onmessage","onmessageerror","onvisibilitychange","oncancel","onclose","onfullscreenchange","onfullscreenerror"],Qd=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,Gd=new Map,Ee=t=>{let e=Gd.get(t);return e===void 0&&(e=Qd(t)||ix(t),Gd.set(t,e)),e},Xd=new Set(["tabIndex","readOnly","maxLength","minLength","autoComplete","autoFocus","autoPlay","contentEditable","spellCheck","colSpan","rowSpan","srcSet","crossOrigin","accessKey","inputMode","enterKeyHint","formAction","noValidate","autoCapitalize","autoCorrect","writingSuggestions","headingOffset","headingReset","exportParts"]),ua=new Set;for(let t in Oe)t==="default"||t==="aria"||t==="svg"||Oe[t].forEach(e=>{e.startsWith("on")||ua.add(e)});var Jd=t=>{let e=t.charCodeAt(0);if(e<97||e>122||!/[A-Z]/.test(t))return null;let n=t.replace(/[A-Z]/g,r=>"-"+r.toLowerCase());if(ua.has(n))return n;let o=t.toLowerCase();return ua.has(o)?o:null},ix=t=>Xd.has(t)?t.toLowerCase():Jd(t),sx=new Set(["draggable","contenteditable","spellcheck","autocorrect","writingsuggestions","translate"]),ax=new Map([["autocorrect",["on","off"]],["translate",["yes","no"]]]),In=t=>typeof t=="string"&&(sx.has(t)||t.startsWith("aria-")),ue=(t,e)=>{if(e!==!0&&e!==!1)return e;if(In(t)){let n=ax.get(t);return n?e?n[0]:n[1]:e?"true":"false"}return e===!0?"":e},Kd=new Map,Gt=(t,e)=>{let n=Oe.default,o=Object.prototype.hasOwnProperty.call(Oe,t)?Oe[t]:null,r=o?o.length:-1,i=Kd.get(t);(!i||i.def!==n||i.defLen!==n.length||i.own!==o||i.ownLen!==r)&&(i={def:n,defLen:n.length,own:o,ownLen:r,answers:new Map},Kd.set(t,i));let s=i.answers.get(e);return s===void 0&&(s=cx(t,e),i.answers.set(e,s)),s},cx=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||Qd(e)||Xd.has(e)||Oe.default.includes(e))return!0;if(Object.prototype.hasOwnProperty.call(Oe,t)){let n=Oe[t];if(n.includes(e))return!0;let o=Jd(e);return o!==null&&n.includes(o)}return!1},tp=t=>{if(!D(t))return!1;let e=t.toLowerCase();return rx.includes(e)},WE=(t,e,n)=>{let o={};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n&&r in n)continue;if(r==="aria"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])Se(e[r][a])&&(o["aria-"+a]=e[r][a]);continue}if(r==="data"&&e[r]&&typeof e[r]=="object"){for(let a in e[r])if(Se(e[r][a])){let l=a.replace(/([A-Z])/g,c=>"-"+c.toLowerCase());o["data-"+l]=e[r][a]}continue}let i=Gt(t,r),s=tp(r);if(Se(e[r])&&(i||s)){let a=Ee(r)||r;o[a]=e[r]}}return o},$E=(t,e)=>{let n={};if(t.attr)for(let o in t.attr)n[o]=t.attr[o](e,e.state,e.context);if(t.aria&&typeof t.aria=="object")for(let o in t.aria){let r=t.aria[o];typeof r=="function"&&(n["aria-"+o]=r(e,e.state,e.context))}if(t.data&&typeof t.data=="object")for(let o in t.data){let r=t.data[o];if(typeof r=="function"){let i=o.replace(/([A-Z])/g,s=>"-"+s.toLowerCase());n["data-"+i]=r(e,e.state,e.context)}}return n},tn=(t,e)=>{let n=t.call("exec",e,t);if(n)return D(n)&&n.includes("{{")&&(n=t.call("replaceLiteralsWithObjectFields",n)),n},qd=(t,e)=>{let n=(t.preSrc||"")+(tn(t,e)||"");if(!n)return;try{return new URL(n),n}catch{}let{context:o}=t;if(!o.files&&!o.assets)return n;if(n.startsWith("/assets/")){let r=n.slice(8),i=o.assets&&(o.assets[n]||o.assets[r]);return i&&i.content?i.content.src:n}if(n.startsWith("/files/")){let r=n.slice(7),i=o.files&&(o.files[n]||o.files[r]);return i&&i.content?i.content.src:n}if(o.assets){let r=o.assets[n];if(r&&r.content)return r.content.src}if(o.files){let r=o.files[n];if(r&&r.content)return r.content.src}return n},Yd=new WeakSet,da=(t,e)=>{if(!D(e)||e.charAt(0)!=="/")return e;let n=e.charAt(1);if(n==="/"||n==="\\")return e;let o=t&&t.context;if(!o)return e;let{functions:r,snippets:i,utils:s}=o,a=r&&r.routerHref||i&&i.routerHref||s&&s.routerHref;if(!nt(a))return e;try{let l=a.call(t,e,t);return D(l)&&l?l:e}catch(l){return Yd.has(a)||(Yd.add(a),typeof console<"u"&&console.warn("[smbls] routerHref threw; links keep the href as written",l)),e}},lx={a:!0,area:!0},en={src:t=>qd(t,t.src),href:t=>{let e=tn(t,t.href);return lx[t.tag]?da(t,e):e},action:t=>tn(t,t.action),poster:t=>qd(t,t.poster),data:t=>tn(t,t.data)},ep=t=>{let e=t.tag||"div",n={};for(let o in en)if(t[o]!==void 0&&Gt(e,o)){let r=en[o](t);r!==void 0&&(n[o]=r)}return n},Zd=(t,e)=>{let n=e.context?.cases?.[t];if(n!==void 0)return nt(n)?n.call(e,e):!!n},fx=(t,e,n)=>{if(t==="$"){let r=Zd(e,n);return r===void 0&&(r=!!n[e]),r}let o=n[e]===!0||n.state[e];if(!o){let r=Zd(e,n);r!==void 0&&(o=r)}return t==="."?!!o:!o},ux=new Set(["$",".","!"]),np=(t,e,n,o=fx)=>{let r={},i=(s,a,l,c)=>{let f=a;r[s]=u=>{if(o(l,c,u))return nt(f)?f(u,u.state,u.context):f}};for(let s in t){let a=s.charAt(0);if(!ux.has(a))continue;let l=t[s];if(!l||typeof l!="object")continue;let c=s.slice(1);for(let f in l){if(n&&f in n)continue;if(f==="aria"&&l[f]&&typeof l[f]=="object"){for(let g in l[f])i("aria-"+g,l[f][g],a,c);continue}if(f==="data"&&l[f]&&typeof l[f]=="object"){for(let g in l[f]){let h=g.replace(/([A-Z])/g,_=>"-"+_.toLowerCase());i("data-"+h,l[f][g],a,c)}continue}let u=Gt(e,f),d=tp(f);if(!u&&!d)continue;let p=Ee(f)||f;i(p,l[f],a,c)}}return r};var Zr="3.14.834";var op="__SMBLS_ELEMENT_ID_ENGINE__",rp=(t,e,n)=>{let o=e||Zr,r=n||(typeof globalThis<"u"?globalThis:null);if(!r)return t;let i=r[op];return i&&i.engine&&i.version===o?i.engine:(i||(r[op]={version:o,engine:t}),t)};var dx=new Set(["rows","cols","wrap","fill","stroke","offset"]),Qr=(t,e)=>dx.has(e)&&Gt(t,e),Re=(t,e)=>!!(z[e]||X&&X.has(e))&&!Qr(t,e);var Dp=rp({uniqId:1,scopedStyleId:0},Zr),Ln=[],Ie=new Set,Ra=!1,Lp=0,Mn=null,Ro=null;function Fn(){return typeof Date<"u"&&typeof Date.now=="function"?Date.now():0}function Pp(){return typeof document<"u"&&document.visibilityState==="hidden"}var px=250,hx=1e3;function gx(){return Ro&&(Ro!==(typeof requestAnimationFrame=="function"?requestAnimationFrame:null)||Pp())?!0:Fn()-Lp>=hx}function _x(){if(Ra=!0,Lp=Fn(),Ro=null,typeof requestAnimationFrame!="function"){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Oo,0);Mn=t?()=>t(e):null;return}if(Pp()){let t=typeof clearTimeout=="function"?clearTimeout:null,e=setTimeout(Oo,px);Mn=t?()=>t(e):null}else{let t=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:null;Ro=requestAnimationFrame;let e=requestAnimationFrame(Oo);Mn=t?()=>t(e):null}}function No(){if(Ra){if(!gx())return;let t=Mn;if(Mn=null,t)try{t()}catch{}}_x()}var Bp=300,Mp=15e4,Aa=0;function Np(){Aa++;let t=!1;return()=>{t||(t=!0,!(--Aa>0)&&(Ln.length||Ie.size)&&No())}}function Oo(){if(Ra=!1,Mn=null,Ro=null,Aa>0||(!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&Ie.size&&Sk(),!Ln.length))return;let t=Ln.splice(0,Ln.length);for(let e=0;e<t.length;e++){let n=t[e];if(n.node){if(!n.node.isConnected){let o=n.__ref||(n.__ref={});o.__mountAttempts=(o.__mountAttempts||0)+1,o.__mountFirstAttemptAt==null&&(o.__mountFirstAttemptAt=Fn());let r=Fn()-o.__mountFirstAttemptAt;o.__mountAttempts<=Bp&&r<Mp?(Ln.push(n),No()):console.warn("[DOMQL] onMounted dropped after",o.__mountAttempts,"attempts /",r,"ms \u2014 node never connected:",n.key||n.tag||n);continue}typeof n.onBridgeMount=="function"&&(globalThis.__SMBLS_BUILD_DEFER_F_bridge__?An.bridge?An.bridge.mount(n):Y("bridge",n):Ld(n)),typeof n.onMounted=="function"&&_t("Mounted",n,n.__ref?.__mountOptions||{})}}}function Ia(t,e){let n=!globalThis.__SMBLS_BUILD_DROP_F_autoGrow__&&t.__ref?.__autoGrow;n&&n.active&&Mo(t,!0),!(typeof t.onMounted!="function"&&typeof t.onBridgeMount!="function")&&(t.__ref.__mountOptions=e,Ln.push(t),No())}function ti(t,e){typeof t.onContentUpdate=="function"&&(ae("contentUpdate",t,e),Lt(t,()=>{try{t.onContentUpdate(t,t.state,t.context,e)}catch(n){if(Dt(t,"onContentUpdate",n),t.context?.strictMode)throw n}}))}function yx(t){return t.toLowerCase()}function Fp(t){let e=t.charCodeAt(0);return e===58||e===64||e===38||e===91}function ei(t){if(typeof t=="string")return t||void 0;if(typeof t=="number"||typeof t=="bigint")return String(t)}function jp(t,e,n,o){return si(o,ei(t)||(e&&typeof e=="object"?ei(e.key):void 0)||String(n))}function si(t,e){if(!t||typeof e!="string")return e;let n=e;for(;mx(t,n);)n="$"+n;return n!==e&&void 0,n}function mx(t,e){if(ct.has(e)&&e!=="content")return!0;if(!(e in t))return!1;let n=t[e];return!(n&&typeof n=="object"&&n.__ref&&n.parent===t)}function Et(t,e,n,o={},r){if(ie())return bt(()=>Et(t,e,n,o,r));if(t==null||t===!1)return null;let i=Dx(t);(typeof t=="string"||typeof t=="number")&&(t={text:t}),n=ei(n);let s=ei(t.key),a=Object.create(null);a.key=n||(s&&e?si(e,s):s)||`_${Dp.uniqId++}`,a.parent=e||null,a.context=t.context||e?.context||o.context||{},a.context.__create||(a.context.__create=Et);let l=a.__ref={__if:!0,__children:[],__exec:{},__effects:[],__eventCleanup:[],root:e?.__ref?.root||a,path:e?.__ref?.path?[...e.__ref.path,a.key]:[a.key],origin:t,__mount:null,__plainRows:null,__ifParked:null};i&&(l.__runtimeSource=i);let c=r;r&&(r.holdTail||r.deferAttach)&&(r.holdTail&&I.mount!==null&&I.mount.hold(a),r.deferAttach&&(Rn(l).attachLater=!0),c=void 0);let f=t;t=$p(a,t,n,s,e,o);let u=La(a,l);if(u!=null){let _;if(typeof u=="function")try{_=u(a,a.state,a.context)}catch(y){if(_=!1,l.__ifError=y,typeof console<"u"&&console.warn){let b=a.key||a.tag||"?";console.warn(`[smbls] \`if:\` evaluator threw on ${b} \u2014 treating as false:`,y?.message||y)}}else _=u;l.__if=!!_}if(l.__if)typeof u=="function"&&(l.__ifInitialized=!0);else{if(e){e[a.key]=a;let y=e.__ref;y&&(y.__ifParked||(y.__ifParked=new Set)).add(a.key)}let _=kx(t,n,a.context?.components);return _.length&&(l.__ifLateMerge={definition:f,key:n,ownKey:s,names:_,options:o}),typeof u=="function"&&Zp(a,l,u),a}a.tag||(a.tag=ve(a)),_t("Init",a,o);let d=I.hydration,p=a.node=d!==null&&d.adopt(a)||So(a);if(!p)return a;let g=d!==null?a.context?.__replacing:void 0;if(g&&d.markReplaced(g,a,p),a.tag==="fragment"){let y=(a.context?.document||globalThis.document).createComment("");p.appendChild(y),l.__fragmentAnchor=y}if(_t("AttachNode",a,o),p.setAttribute&&a.key&&p.getAttribute("data-key")!==String(a.key)&&p.setAttribute("data-key",a.key),e){let _=e[a.key];e[a.key]=a;let y=e.__ref?.__children;y&&(_===void 0||!y.includes(a.key))&&y.push(a.key)}p.setAttribute&&a.context?.scopeSelector&&a.context.scopeSelector!==":root"&&a.context.key&&a.key===a.context.key&&p.setAttribute("data-smbls-app",a.context.key),a.id&&p.setAttribute&&(p.id=a.id),yh(a,o),Kp(a),Yp(a);try{Ea(a,o)}catch(_){ai(a,_)}let h=l.__mount;return h!==null&&h.pending>0?(h.attachLater||(o.mountWhole===!0&&!(r&&r.holdTail)&&bx(a,e)?h.held=!0:jn(a,e,c)),h.tail=()=>I.mount.finish(a,o),a):(Nn(a,!0),(h===null||!h.attachLater)&&jn(a,e,c),Da(a,o),a)}function Fo(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.attachLater||(e.attachLater=!1,!t.node||t.__ref.__if===!1)?!1:(jn(t,t.parent),!0)}function bx(t,e){if(!e||e.tag==="fragment")return!1;let n=t.node;if(!n||n.nodeType===11)return!1;let o=e.node||(e.nodeType?e:null);return!!o&&n.parentNode!==o}function Wp(t){let e=t.__ref,n=e&&e.__mount;if(!n||!n.held||(n.held=!1,e.__if===!1))return;let o=t.node,r=t.parent;if(!o||!r)return;let i=r.__ref;if(!i){jn(t,r);return}let s=r.node;if(!s)return;let a=i.__children,l=a?a.lastIndexOf(t.key):-1,c;for(let f=l-1;f>=0;f--){let u=r[a[f]],d=u&&(pe(u)||(u.tag==="fragment"&&u.__ref?u.__ref.__fragmentAnchor:null));if(d&&d.parentNode===s){c=d.nextSibling;break}}c===void 0&&(c=wo(s,i.__textNode)),jn(t,r,c?{position:"before",node:c}:void 0)}function ai(t,e){if(typeof console<"u"&&console.error){let n=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] createChildren failed at ${n}:`,e?.message||e,e?.stack?`
23
+ `+e.stack.split(`
24
+ `).slice(0,6).join(`
25
+ `):"")}Ge(t,{where:"createChildren",error:e})}var pa=["Create","Complete","Render","RenderRouter"];function Da(t,e){typeof t.html=="function"&&t.node&&!t.node.innerHTML&&Lt(t,()=>{try{let n=t.html(t,t.state,t.context);n!=null&&typeof n!="function"&&(t.node.innerHTML=n)}catch{}});for(let n=0;n<pa.length;n++){if(_t(pa[n],t,e),!t.__ref)return;pa[n]==="Render"&&Pa(t)}if(t.__ref.__if!==!1&&Ia(t,e),typeof t.onFrame=="function"){let n=t.onFrame,o=t.context?.designSystem,r=()=>{if(t.node){if(t.node.isConnected){o&&at(o);try{n(t,t.state,t.context)}catch(i){console.error("[DOMQL] onFrame error:",i)}finally{o&&it()}}requestAnimationFrame(r)}};requestAnimationFrame(r)}}function ni(t,e){let n=e&&e.__ref&&e.__ref.__mount;!n||!n.tail||n.holder||(n.holder=t,I.mount.hold(t))}var Sx=new Set(["childProps","attr","style","scope","data","vars"]);function $p(t,e,n,o,r,i){if(n&&!e.extends&&!e.extend){let h=n.indexOf("_"),_=n.indexOf("."),y=h>0?h:-1;if(_>0&&(y<0||_<y)&&(y=_),y>0){let b=n.substring(0,y),A=t.context?.components;A&&(A[b]||A["smbls."+b])&&(e={...e,extends:b})}}t.__ref&&(t.__ref.__mergeLayer=null),Xs(t,e,i);let s=Js(t),a=t.props&&typeof t.props=="object"?t.props:null;for(let h in e)if(!(h==="parent"||h==="node"||h==="__ref"||h==="extends"||h==="context"||h==="props")){if(h==="key"){o&&(t.key=r?si(r,o):o);continue}s&&s.mark(h),ha(t,h,e[h])}if(a)for(let h in a)ha(t,h,a[h]);let l=e.props;if(l&&typeof l=="object"){for(let h in l)ha(t,h,l[h]);if(s)for(let h in l)s.mark(h)}Ed(t),e.classlist!==void 0&&(t.classlist=e.classlist),e.text!==void 0&&(t.text=e.text),e.html!==void 0&&(t.html=e.html);let c=t.scope&&typeof t.scope=="object"?t.scope:null,f=r?.scope,u=t.context&&typeof t.context.globalScope=="object"&&t.context.globalScope||null,d=f||u||null;if(e.scope!==void 0||c){let h={};c&&Object.assign(h,c),e.scope!==void 0&&Object.assign(h,e.scope),t.scope=sf(h,d)}else d&&(t.scope=d);e.if!==void 0&&(t.if=e.if);let p=t.__ref,g=Lx(t,p&&p.__runtimeSource);return p&&(p.__declaredArrays=g||void 0),aa(t),Ax(t,r,e,i),e}function ha(t,e,n){let o=t[e],r=I.chains;if(r!==null&&r(t,e,o,n))return;let i=o&&n&&typeof o=="object"&&typeof n=="object"&&!Array.isArray(o)&&!Array.isArray(n);i&&e.charCodeAt(0)>=65&&e.charCodeAt(0)<=90?t[e]=Ot(o,n):i&&Sx.has(e)?t[e]={...o,...n}:i&&Fp(e)?t[e]=Ot(o,n):t[e]=n}var wx=new Set(["key","parent","context","__ref"]);function xx(t,e){for(let o of Object.keys(t))wx.has(o)||delete t[o];let n=e.definition;if(!n.extends&&!n.extend&&typeof e.key=="string"){let o=t.context?.components||{},r=o[e.key]||o["smbls."+e.key];r&&(n={...n,extends:r})}bt(()=>$p(t,n,e.key,e.ownKey,t.parent,e.options))}function kx(t,e,n){let o=n||{},r=a=>!!(o[a]||o["smbls."+a]),i=[],s=[];if(t.extends&&s.push(...Array.isArray(t.extends)?t.extends:[t.extends]),t.extend&&s.push(...Array.isArray(t.extend)?t.extend:[t.extend]),s.length){for(let a of s){if(typeof a!="string")continue;let l=a.includes(">")?a.split(">")[0].trim():a;r(l)||i.push(l)}return i}if(typeof e=="string"&&/^[A-Z]/.test(e)){let a=-1,l=e.indexOf("_"),c=e.indexOf(".");l>0&&(a=l),c>0&&(a<0||c<a)&&(a=c);let f=a>0?e.substring(0,a):e;r(f)||i.push(f)}return i}function ga(t,e,n){if(typeof t.onStateInit!="function"&&!jf(t,"stateInit"))return;let o=t.state;t.state=e;try{_t("StateInit",t,n)}finally{t.state=o}}var _a=t=>({isDataOnlyKey:e=>lo(t).has(e)});function Ax(t,e,n,o){let r=!e,i=n.state&&typeof n.state=="object"&&!Array.isArray(n.state)&&Object.keys(n.state).length===0,s=r&&i&&t.context?.state,a=n.state!==void 0&&!s?n.state:t.state&&!H(t.state)?t.state:void 0;if(a==null){if(e?.state)t.state=e.state,Ft(t,t.state);else if(t.context?.state){let l=t.context.state,c={...l},f=t.context?.polyglot;if(f?.translations){let u=t.context,d=is(l.lang,f),p=new Set,g=(y,b)=>{p.has(y)||Hf(u,y,c)&&(c[y]=b,p.add(y),Kf(u,y,b))},h=f.translations[d];if(h&&typeof h=="object")for(let y in h)g(y,h[y]);let _=new Set(uf(f,!1));for(let y in f.translations)_.has(y)||g(y,f.translations[y])}H(c)||ga(t,c,o),t.state=H(c)?c:$e(c,_a(t.context)),t.state.__element=t,t.state.root=t.state,Ft(t,t.state),hs?.(l,t.state),_t("StateCreated",t,o)}else t.state={},Object.defineProperty(t.state,"root",{value:t.state,enumerable:!1,configurable:!0,writable:!0}),Ft(t,t.state);return}if(typeof a=="string"){if(t.state=zp(a,e),t.state&&typeof t.state=="object"&&!H(t.state)){let l=e?.state?.root||e?.state||t.state;Object.defineProperty(t.state,"root",{value:l,enumerable:!1,configurable:!0,writable:!0})}Ft(t,t.state),Cx(t,a,e),_t("StateCreated",t,o);return}if(typeof a=="function"){let l=a(t,e?.state);if(H(l))t.state=l;else{let c=l||{};ga(t,c,o),t.state=$e(c,e?.state?void 0:_a(t.context))}}else if(H(a))t.state=a;else{let l={...a};ga(t,l,o),t.state=$e(l,e?.state?void 0:_a(t.context))}t.state.__element=t,e?.state?(t.state.parent=e.state,t.state.root=e.state.root||e.state):t.state.root=t.state,Ft(t,t.state),hs?.(a,t.state),_t("StateCreated",t,o)}function ip(t,e){if(!e)return t;let n=e.split("/"),o=t;for(let r of n){if(o==null)return{};o=o[r]}return o??{}}function Up(t,e){let n=e.state;return t.startsWith("~/")?[n&&(n.root||n),t.slice(2)]:t.startsWith("../")?[n,t.slice(3)]:[n,t]}function zp(t,e){if(!e)return{};if(t===".")return e.state||{};if(t.startsWith("../")||t.startsWith("~/")){let[r,i]=Up(t,e);return i?ip(r,i):r??{}}if(e.state?.[t]!==void 0)return e.state[t];let n=ip(e.state,t);if(n!=null&&Object.keys(n).length>0)return n;let o=e.context?.polyglot;if(o?.translations){let r=is(e.state?.root?.lang,o),i=o.translations[r];if(i?.[t]!==void 0)return i[t];if(o.translations[t]!==void 0)return o.translations[t]}return{}}function Tx(t,e){let[n,o]=Up(t,e);if(!o||!n||typeof n!="object")return;let r=n[o];if(r!==void 0||o.indexOf("/")===-1)return r;let i=n;for(let s of o.split("/")){if(i==null||typeof i!="object")return;i=i[s]}return i}function Cx(t,e,n){let o=t.__ref;if(!o||!n||e==="."||!H(n.state))return;o.__stateBinding&&o.__stateBinding.dispose();let r=bt(()=>P(()=>{let i=Tx(e,n);!i||typeof i!="object"||i===t.state||bt(()=>Hp(t,t.state,i,!0))},{depth:o.path?o.path.length:0,label:$(o,"state")}));r._isStateBinding=!0,o.__stateBinding=r,o.__effects&&o.__effects.push(r)}function Hp(t,e,n,o){let r=t.__ref;if(!r)return;if(o||t.state===e){t.state=n,o&&Ft(t,n),ap(r);let s=r.__children;if(s)for(let a=0;a<s.length;a++){let l=t[s[a]];l&&l.__ref&&l.parent===t&&Hp(l,e,n,!1)}return}if(r.__stateBinding){r.__stateBinding._notify();return}let i=t.state;i&&typeof i=="object"&&i.parent===e&&(i.parent=n,ap(r))}function sp(t,e){let n=t.__ifParked;if(!n||!n.size)return e;for(let o of n)e.includes(o)||e.push(o);return e}function ap(t){let e=t.__effects;if(e)for(let n=0;n<e.length;n++){let o=e[n];o&&!o._disposed&&!o._isStateBinding&&!o._isSubscribeToEffect&&typeof o._notify=="function"&&o._notify()}}function vx(t){let e=t.__ref,n=t.tag||"div",o=t.context?.designSystem,r=[],i=Object.keys(t);for(let s=0;s<i.length;s++){let a=i[s];if(typeof t[a]!="function"||ct.has(a))continue;let l=a.charCodeAt(0);l>=65&&l<=90||Mt(a)||z[a]||X&&X.has(a)||l!==45&&(Gt(n,a)||r.push({prop:a,fn:t[a]}))}for(let s=0;s<r.length;s++){let{prop:a,fn:l}=r[s];e.__exec[a]=l,Object.defineProperty(t,a,{get(){o&&at(o);try{return l(t,t.state,t.context)}catch{return}finally{o&&it()}},set(c){delete e.__exec[a],Object.defineProperty(t,a,{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}}function Ox(t,e){if(!(!Array.isArray(e)||e.length===0))for(let n=0;n<e.length;n++){let o=e[n];try{typeof o=="function"?o(t,t.state,t.context):typeof o=="string"&&t.state?.[o]}catch{}}}function J(t,e,n){return!Array.isArray(e)||e.length===0?n:function(...o){return Ox(t,e),n.apply(this,o)}}function Dn(t,e){if(!(!t||Array.isArray(t)||typeof t!="object"))return t[e]}function $(t,e){return()=>t.path.join(".")+"::"+e}var cp=/(['"`])((?:\\.|(?!\1)[^\\])*)\1/g,lp=new WeakMap,Ex=t=>{let e=lp.get(t);if(e!==void 0)return e;e=null;let n;try{n=String(t)}catch{n=""}if(n.includes("{{")){cp.lastIndex=0;let o;for(;(o=cp.exec(n))!==null;)o[2].includes("{{")&&(e||(e=[])).push(o[2])}return lp.set(t,e),e},Rx=(t,e)=>{let n=Ex(t);if(n)for(let o=0;o<n.length;o++)e.add(n[o])},Ix=(t,e)=>!Mt(t)&&!Re(e,t),ya=(t,e,n,o,r)=>{if(typeof e=="string"){!r&&e.includes("{{")&&n.add(e);return}typeof e=="function"&&Ix(t,o)&&Rx(e,n)},Ta=new WeakMap,Io=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Do=t=>{if(typeof t=="string"||typeof t=="number")return{text:t};if(!t||typeof t!="object"||Array.isArray(t))return null;let e=t.props;return e&&typeof e=="object"&&!Array.isArray(e)?Ot(t,e):t},Lo=(t,e)=>t&&e?Ot(t,e):t||e||null,Vp=(t,e)=>{let n=t.__ref&&t.__ref.__runtimeSource;return!!n&&Io(n,e)},De=(t,e)=>Vp(t,e)?Do(t.__ref.__runtimeSource[e]):null,rn=(t,e)=>(e&&t&&typeof t=="object"&&Ta.set(t,e),t),Dx=t=>{if(!t||typeof t!="object")return;let e=Ta.get(t);return e&&Ta.delete(t),e},Ca=(t,e,n)=>{if(typeof t=="string"){t.includes("{{")&&e.add(t);return}if(!(!t||typeof t!="object"||n.has(t))){if(n.add(t),Array.isArray(t)){for(let o=0;o<t.length;o++)Ca(t[o],e,n);return}if(!t.__ref)for(let o of Object.keys(t)){if(o==="state")continue;let r=Object.getOwnPropertyDescriptor(t,o);r&&"value"in r&&Ca(r.value,e,n)}}},Lx=(t,e)=>{let n=null;for(let o of Object.keys(t)){if(ct.has(o)||e&&Io(e,o))continue;let r=Object.getOwnPropertyDescriptor(t,o),i=r&&r.value;if(!Array.isArray(i))continue;let s=new Set;Ca(i,s,new Set),s.size&&(n||(n=new Map),n.set(i,s))}return n},fp=(t,e)=>{if(Array.isArray(e))for(let n=t;n;n=n.parent){let o=n.__ref&&n.__ref.__declaredArrays,r=o&&o.get(e);if(!r)continue;let i=t.__ref;i.__authoredTemplates||(i.__authoredTemplates=new Set);for(let s of r)i.__authoredTemplates.add(s);return}},Gp=["attr","aria","data","metadata"],Px=t=>{if(Gp.includes(t))return!0;let e=t.charCodeAt(0);return e===46||e===33||e===64},Bx=(t,e)=>{let n=new Set,o=t.tag||"div";for(let r of Object.keys(t)){let i=Object.getOwnPropertyDescriptor(t,r),s=i&&i.value,a=!!e&&Io(e,r);if(s&&typeof s=="object"&&!Array.isArray(s)){if(!Px(r))continue;let l=a?e[r]:null,c=l&&typeof l=="object"?l:null,f=r.charCodeAt(0)===46||r.charCodeAt(0)===33;for(let u in s){let d=a&&(!c||Io(c,u)),p=s[u];if(f&&p&&typeof p=="object"&&!Array.isArray(p)&&Gp.includes(u)){for(let g in p)ya(g,p[g],n,o,d);continue}ya(u,p,n,o,d)}continue}ya(r,s,n,o,a)}return n};function Kp(t,e){let n=t.__ref,o=!!(e&&e.skipIfEffect),r=Bx(t,n.__runtimeSource);if(n.__authoredTemplates)for(let c of r)n.__authoredTemplates.add(c);else n.__authoredTemplates=r;if(vx(t),typeof t.text=="function"){let c=t.text,f=J(t,t.textDeps,c),u=()=>{let p=f(t,t.state,t.context);return t.node&&typeof p=="string"&&p.includes("{{")&&(p=ht.call(t,p,t.state)),p},d=P(()=>{if(!n.contentManaged)try{let p=dp(t,n,u);if(p===At)return;t.node&&p!=null&&typeof p!="function"&&typeof p!="object"&&sn(t,p)}catch(p){}},{depth:n.path.length,label:$(n,"text")});n.__effects.push(d),n.__exec.text=c}else if(typeof t.text=="string"&&t.text.includes("{{")){let c=t.text,f=()=>ht.call(t,c,t.state),u=P(()=>{if(n.contentManaged)return;let d=dp(t,n,f);d!==At&&(d!=null&&(t.text=d),t.node&&sn(t,d??""))},{depth:n.path.length,label:$(n,"text")});n.__effects.push(u),n.__exec.text=c}let i=t.tag||"div";for(let c of Object.keys(t))if(typeof t[c]=="function"&&!ct.has(c)&&!Mt(c)&&!n.__exec[c]&&!Qr(i,c)){if(z[c]){let f=t[c],u=J(t,t[c+"Deps"],f),d=c,p,g=null,h=null,_,y=()=>{for(let O of h)t.node.classList.remove(O);h=null,_=void 0},b=()=>{th(t,d,g,null),Xr(t,d,null),g=null},A=P(()=>{let O=t.context?.designSystem;O&&at(O);try{let m=u(t,t.state,t.context);Vs();let S;try{S=z[d](m,t,t.state,t.context)}finally{Gs()}if(Array.isArray(S)){let w={};for(let x of S)if(x)for(let C in x)w[C]=x[C];S=w}if(d==="show"||d==="hide"){t.node&&ri(t,d,!!(S&&S.display),!0);return}if(S&&t.node&&Fx(S)){let w=Pn(S);if(w===null||w!==_){_=w;let x=Qe(Le(t,S),null,t.context?.cssPrefix),C=x?x.split(" ").filter(Boolean):null;if(t.node.classList){if(h)for(let v of h)t.node.classList.remove(v);if(C&&C.length)for(let v of C)t.node.classList.add(v);h=C}}g&&b(),p=void 0}else if(S&&t.node){h&&y();let w=Pn(S);if(w===null||w!==p||!Bn(t.node,g,t)){p=w;let x=hp(t,S,g,d);g=vo(t.node,x,t),Xr(t,d,g)}}else t.node&&(h&&y(),g&&b(),p=void 0)}finally{O&&it()}},{depth:n.path.length,label:$(n,d)});n.__effects.push(A),n.__exec[c]=f}else if(X&&X.has(c)){let f=t[c],u=J(t,t[c+"Deps"],f),d=c,p,g=null,h=P(()=>{let _=t.context?.designSystem;_&&at(_);try{let y=u(t,t.state,t.context);if(t.node)if(y!=null){let b=d+":"+String(y);if(b!==p||!Bn(t.node,g,t)){p=b;let A={[d]:y},O=hp(t,A);g=vo(t.node,O,t),Xr(t,d,g)}}else p=void 0,g=null,Xr(t,d,null),d==="display"?jo(t,""):t.node.style[d]=""}finally{_&&it()}},{depth:n.path.length,label:$(n,d)});n.__effects.push(h),n.__exec[c]=f}else if(c.charCodeAt(0)===45){let f=t[c];nh(t,c,f,t[c+"Deps"],c),n.__exec[c]=f}}if($x(t),typeof t.html=="function"){let c=t.html,f=J(t,t.htmlDeps,c),u=P(()=>{Lt(t,()=>{let d=f(t,t.state,t.context);t.node&&d!=null&&typeof d!="function"&&(t.node.innerHTML=d)})},{depth:n.path.length,label:$(n,"html")});n.__effects.push(u),n.__exec.html=c}if(typeof t.value=="function"){let c=t.value,f=J(t,t.valueDeps,c),u=()=>{let p=f(t,t.state,t.context);return typeof p=="string"&&p.includes("{{")&&(p=ht.call(t,p,t.state)),p},d=P(()=>{try{let p=Jt(t,n,"value",u);if(p===At)return;pp(t,p)}catch(p){}},{depth:n.path.length,label:$(n,"value")});n.__effects.push(d),n.__exec.value=c}else if(typeof t.value=="string"&&t.value.includes("{{")){let c=t.value,f=()=>ht.call(t,c,t.state),u=P(()=>{try{let d=Jt(t,n,"value",f);if(d===At)return;pp(t,d)}catch(d){}},{depth:n.path.length,label:$(n,"value")});n.__effects.push(u),n.__exec.value=c}if(typeof t.style=="function"){let c=t.style,f=J(t,t.styleDeps,c),u,d=null,p,g,h,_,y=P(()=>{let b=f(t,t.state,t.context),A=t.context&&t.context.designSystem,O;if(b&&typeof b=="object"&&b===p&&A===h){let S=Pn(b);O=S!==null&&S===g?_:on(t,b),g=S}else O=on(t,b),g=void 0;p=b,h=A,_=O;let m=Pn(O);(m===null||m!==u||!Bn(t.node,d,t))&&(u=m,va(t.node,d,O,t),ee(t.node,O,t),d=vo(t.node,O,t))},{depth:n.path.length,label:$(n,"style")});n.__effects.push(y),n.__exec.style=c}else if(t.style&&typeof t.style=="object")for(let c in t.style){let f=t.style[c];if(typeof f!="function")continue;let u=J(t,Dn(t.styleDeps,c),f),d,p=null,g=P(()=>{try{let h=u(t,t.state,t.context);if(t.node){let _=c+":"+String(h);if(_!==d||!Bn(t.node,p,t)){d=_;let y=on(t,{[c]:h});va(t.node,p,Object.assign({},y,{[c]:""}),t),ee(t.node,y,t),p=vo(t.node,y,t)}}}catch(h){""+c}},{depth:n.path.length,label:$(n,"style."+c)});n.__effects.push(g)}if(t.attr&&typeof t.attr=="object"){for(let c in t.attr)if(typeof t.attr[c]=="function"){let f=J(t,Dn(t.attrDeps,c),t.attr[c]),u=c,d=u.toLowerCase(),p=()=>{let h=f(t,t.state,t.context);return typeof h=="string"&&h.includes("{{")&&(h=ht.call(t,h,t.state)),h},g=P(()=>{try{let h=Jt(t,n,d,p);if(h===At)return;t.node?.setAttribute&&nn(t.node,u,h)}catch(h){""+u}},{depth:n.path.length,label:$(n,"attr."+u)});g._attrName=u.toLowerCase(),n.__effects.push(g)}else if(typeof t.attr[c]=="string"&&t.attr[c].includes("{{")){let f=t.attr[c],u=c,d=u.toLowerCase(),p=()=>ht.call(t,f,t.state),g=P(()=>{try{let h=Jt(t,n,d,p);if(h===At||!t.node||!t.node.setAttribute)return;t.node.setAttribute(u,ue(u,h??""))}catch(h){""+u}},{depth:n.path.length,label:$(n,"attr."+u)});g._attrName=u.toLowerCase(),n.__effects.push(g)}}if(t.aria&&typeof t.aria=="object")for(let c in t.aria){let f=t.aria[c];if(typeof f=="string"&&f.includes("{{")){let h=f,_="aria-"+c.replace(/[A-Z]/g,A=>"-"+A.toLowerCase()),y=()=>ht.call(t,h,t.state),b=P(()=>{try{let A=Jt(t,n,_,y);if(A===At||!t.node||!t.node.setAttribute)return;t.node.setAttribute(_,ue(_,A??""))}catch(A){""+c}},{depth:n.path.length,label:$(n,"aria."+c)});b._attrName=_,n.__effects.push(b);continue}if(typeof f!="function")continue;let u=J(t,Dn(t.ariaDeps,c),t.aria[c]),d="aria-"+c.replace(/[A-Z]/g,h=>"-"+h.toLowerCase()),p=()=>u(t,t.state,t.context),g=P(()=>{try{let h=Jt(t,n,d,p);if(h===At||!t.node?.setAttribute)return;nn(t.node,d,h)}catch(h){""+c}},{depth:n.path.length,label:$(n,"aria."+c)});g._attrName=d,n.__effects.push(g)}if(t.data&&typeof t.data=="object")for(let c in t.data){let f=t.data[c];if(typeof f=="string"&&f.includes("{{")){let _=f,y="data-"+c.replace(/[A-Z]/g,O=>"-"+O.toLowerCase()),b=()=>ht.call(t,_,t.state),A=P(()=>{try{let O=Jt(t,n,y,b);if(O===At||!t.node||!t.node.setAttribute)return;t.node.setAttribute(y,O??"")}catch(O){""+c}},{depth:n.path.length,label:$(n,"data."+c)});A._attrName=y,n.__effects.push(A);continue}if(typeof f!="function")continue;let u=J(t,Dn(t.dataDeps,c),t.data[c]),p="data-"+c.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g=()=>u(t,t.state,t.context),h=P(()=>{try{let _=Jt(t,n,p,g);if(_===At||!t.node?.setAttribute)return;_==null||_===!1?t.node.removeAttribute(p):typeof _!="function"&&typeof _!="object"&&t.node.setAttribute(p,_===!0?"":_)}catch(_){""+c}},{depth:n.path.length,label:$(n,"data."+c)});h._attrName=p,n.__effects.push(h)}let s=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(s)for(let c in s){if(typeof s[c]!="function")continue;let f=J(t,Dn(t.classDeps,c),s[c]),u=P(()=>{try{let d=f(t,t.state,t.context);if(!t.node?.classList)return;typeof d=="string"?t.node.classList.add(d):d?t.node.classList.add(c):t.node.classList.remove(c)}catch(d){""+c}},{depth:n.path.length,label:$(n,"class."+c)});n.__effects.push(u)}let a=o?null:La(t,n);typeof a=="function"&&Zp(t,n,a);for(let c of Object.keys(t)){if(ct.has(c)||typeof t[c]!="function")continue;let f=c.charCodeAt(0);if(f>=65&&f<=90||Mt(c))continue;let u=t[c];n.__exec[c]=u;let d=t.tag||"div";if(Gt(d,c)&&!Re(d,c)){let p=Ee(c)||c,g=J(t,t[c+"Deps"],u),h=p.toLowerCase(),_=()=>{let b=g(t,t.state,t.context);return typeof b=="string"&&b.includes("{{")&&(b=ht.call(t,b,t.state)),b},y=P(()=>{try{let b=Jt(t,n,h,_);if(b===At)return;let A=en[c];if(A&&b!=null){let O=A(t);O!==void 0&&(b=O)}t.node?.setAttribute&&nn(t.node,p,b,!0)}catch(b){}},{depth:n.path.length,label:$(n,c)});y._attrName=p.toLowerCase(),n.__effects.push(y)}}let l=t.tag||"div";for(let c of Object.keys(t)){if(ct.has(c))continue;let f=t[c];if(typeof f!="string"||!f.includes("{{"))continue;let u=c.charCodeAt(0);if(u>=65&&u<=90||Mt(c)||Re(l,c)||en[c]||!Gt(l,c))continue;let d=Ee(c)||c,p=d.toLowerCase(),g=()=>ht.call(t,f,t.state),h=P(()=>{try{let _=Jt(t,n,p,g);if(_===At||!t.node||!t.node.setAttribute)return;t.node.setAttribute(d,ue(d,_??""))}catch(_){}},{depth:n.path.length,label:$(n,c)});h._attrName=d.toLowerCase(),n.__effects.push(h)}if(qx(t),uk(t),typeof t.onStateUpdate=="function"&&Array.isArray(t.stateDeps)){let c=t.onStateUpdate,f=t.stateDeps,u=!1,d=[],p=P(()=>{let g=[];for(let y=0;y<f.length;y++){let b=f[y];try{g[y]=typeof b=="function"?b(t,t.state,t.context):t.state?.[b]}catch{g[y]=void 0}}if(!u){u=!0,d=g;return}let h=g.length!==d.length;for(let y=0;!h&&y<g.length;y++)g[y]!==d[y]&&(h=!0);let _=d;d=g,h&&Lt(t,()=>{try{c(t,t.state,t.context,{prev:_,next:g})}catch(y){if(Dt(t,"onStateUpdate",y),t.context?.strictMode)throw y}})},{depth:n.path.length,label:$(n,"onStateUpdate")});n.__effects.push(p)}ik(t)}function qp(t){let e=t.__ref.__mount;if(e!==null&&e.attachLater)return;let n=t.parent,o=n?.node;if(!o||!t.node){jn(t,t.parent);return}let r=null,i=Object.keys(n),s=i.indexOf(t.key);for(let l=s+1;l<i.length;l++){let c=n[i[l]];if(c?.node?.parentNode===o){r=c.node;break}}t.node.parentNode===o&&t.node.nextSibling===r||(r?o.insertBefore(t.node,r):o.appendChild(t.node)),Ar()}function Yp(t){Qp(t),mk(t),dh(t),Rk(t),Ek(t)}function La(t,e){let n=t.deferUntil;if(typeof n!="function"||e.__deferOpen)return t.if;let o=t.if;return(r,i,s)=>{if(!e.__deferOpen){let a;try{a=n(r,i,s)}catch(l){let c=e.__deferUntilError===void 0;if(e.__deferUntilError=l,c&&typeof console<"u"&&console.warn){let f=r.key||r.tag||"?";console.warn(`[smbls] \`deferUntil:\` threw on ${f} \u2014 treating as false:`,l?.message||l)}return!1}if(!a)return!1;e.__deferOpen=!0}return o==null?!0:typeof o=="function"?o(r,i,s):o}}function up(t,e){e||qp(t),_t("Create",t,{}),_t("Complete",t,{}),_t("Render",t,{}),Pa(t),_t("RenderRouter",t,{}),e||Ia(t,{})}function Zp(t,e,n){let o=J(t,t.ifDeps,n),r=P(()=>{let i=!e.__ifInitialized&&e.__ifLateMerge;if(i){let c=t.context?.components||{};if(i.names.some(f=>c[f]||c["smbls."+f])){e.__ifLateMerge=null,xx(t,i);let f=La(t,e);o=J(t,t.ifDeps,typeof f=="function"?f:n)}}let s;try{s=o(t,t.state,t.context)}catch(c){if(s=!1,e.__ifError=c,typeof console<"u"&&console.warn){let f=t.key||t.tag||"?";console.warn(`[smbls] \`if:\` reactive effect threw on ${f} \u2014 treating as false:`,c?.message||c)}return}let a=e.__if;e.__if=!!s;let l=e.__mount;if(!(!a&&e.__if&&l!==null&&l.held)){if(a&&!e.__if&&t.node&&!(l!==null&&l.held)){t.node.remove();try{typeof t.onRemove=="function"&&t.onRemove(t)}catch(c){console.error("[smbls] onRemove error:",c)}}else if(!a&&e.__if)if(e.__ifInitialized)t.node||(t.node=So(t)),t.node&&(t.node.ref=t),qp(t),Qp(t),dh(t),_t("Render",t,{}),Pa(t),Ia(t,{});else{e.__ifInitialized=!0,e.__ifLateMerge=null,t.tag||(t.tag=ve(t)),_t("Init",t,{});let c=I.hydration;if(!t.node){t.node=c!==null&&c.adopt(t)||So(t);let f=c!==null&&t.node?t.context?.__replacing:void 0;f&&c.markReplaced(f,t,t.node)}if(!t.node)return;if(t.node.ref=t,t.parent?.__ref?.__children&&!t.parent.__ref.__children.includes(t.key)&&t.parent.__ref.__children.push(t.key),t.parent?.__ref?.__ifParked&&t.parent.__ref.__ifParked.delete(t.key),t.tag==="fragment"&&!e.__fragmentAnchor){let u=(t.context?.document||globalThis.document).createComment("");t.node.appendChild(u),e.__fragmentAnchor=u}if(_t("AttachNode",t,{}),t.node.setAttribute&&t.key&&t.node.setAttribute("data-key",t.key),t.id&&t.node.setAttribute&&(t.node.id=t.id),yh(t,{}),Kp(t,{skipIfEffect:!0}),Yp(t),t.yieldChildren&&I.mount!==null&&I.mount.open(t,Ea,up))return;Ea(t,{}),up(t)}}},{depth:e.path.length,label:$(e,"if")});e.__effects.push(r)}var At=Symbol("builtTextKept");function dp(t,e,n){let o=e.__builtText;if(!o)return n();if(o.parentNode!==t.node||typeof fo!="function")return e.__builtText=null,n();let{value:r,ready:i}=fo(n);return i?r:At}function Jt(t,e,n,o){let r=e.__builtAttrs;if(!r||!r.values.has(n))return o();let i=t.node;if(i!==r.node||typeof fo!="function")return e.__builtAttrs=null,o();let{value:s,ready:a}=fo(o);return a?(r.values.delete(n),r.values.size||(e.__builtAttrs=null),s):(i.setAttribute(n,r.values.get(n)),At)}function sn(t,e){let n=t.node;if(!n)return;t.__ref&&t.__ref.__builtText&&(t.__ref.__builtText=null);let o=e==null||typeof e=="object"?"":String(e);if(t.tag==="string"){n.nodeValue!==o&&(n.nodeValue=o);return}let r=t.__ref,i=r?r.__textNode:null;if(i&&i.parentNode!==n&&(i=null),!i){let a=n.firstChild;a&&a.nodeType===3&&(i=a)}i?i.nodeValue!==o&&(i.nodeValue=o):n.firstChild?(i=(n.ownerDocument||t.context?.document||globalThis.document).createTextNode(o),n.insertBefore(i,n.firstChild)):(n.textContent=o,i=n.firstChild&&n.firstChild.nodeType===3?n.firstChild:null),r&&(r.__textNode=i||null);let s=I.faceWait;s!==null&&s.active&&s.text(t)}function Pa(t){let e=I.faceWait;e!==null&&e.rendered(t)}function Mx(t,e){return e!=="checked"||!t||t.tagName!=="INPUT"?null:t.hasAttribute("checked")}function Nx(t,e){if(e===null)return;let n=t.hasAttribute("checked");n!==e&&t.checked!==n&&(t.checked=n)}function nn(t,e,n,o){n==null||n===!1&&!In(e)?oi(t,e,null):typeof n=="function"||typeof n=="object"||(o&&e==="src"&&"src"in t?t.src=n:oi(t,e,ue(e,n)))}function oi(t,e,n){let o=Mx(t,e);n==null?t.removeAttribute(e):t.setAttribute(e,n),Nx(t,o)}function pp(t,e){let n=t.node;if(!n||!("value"in n))return;let o=e==null?"":String(e);if(n.value===o)return;let r=n.ownerDocument,i=!!r&&r.activeElement===n,s=i&&typeof n.selectionStart=="number"?n.selectionStart:null,a=i&&typeof n.selectionEnd=="number"?n.selectionEnd:null;if(n.value=o,i&&s!=null&&a!=null)try{n.setSelectionRange(s,a)}catch{}let l=t.__ref&&t.__ref.__autoGrow;l&&l.active&&l.resize()}function Qp(t){let{node:e}=t;if(e){if((typeof t.text=="string"&&!t.text.includes("{{")||typeof t.text=="number")&&sn(t,t.text),hh(t),typeof t.html=="string"&&(e.innerHTML=t.html),t.value!=null&&typeof t.value!="function"&&!(typeof t.value=="string"&&t.value.includes("{{"))&&"value"in e){let n=String(t.value);e.value!==n&&(e.value=n)}if(t.style&&typeof t.style=="object"){let n=t.style;for(let o in t.style)if(typeof t.style[o]=="function"){n={};for(let r in t.style)typeof t.style[r]!="function"&&(n[r]=t.style[r]);break}ee(e,on(t,n),t)}if(t.attr&&typeof t.attr=="object")for(let n in t.attr){let o=t.attr[n];typeof o=="function"||typeof o=="object"||o!=null&&(typeof o=="string"&&o.includes("{{")||o===!1&&!In(n)||e.setAttribute&&e.setAttribute(n,ue(n,o)))}if(typeof t.themeModifier=="string"&&t.themeModifier&&e.setAttribute&&e.setAttribute("data-theme",t.themeModifier),t.data&&typeof t.data=="object")for(let n in t.data){let o=t.data[n];typeof o=="function"||typeof o=="object"||o==null||o===!1||typeof o=="string"&&o.includes("{{")||e.dataset&&(e.dataset[n]=o===!0?"":o)}if(t.classlist||t.class){let n=t.classlist||t.class;if(typeof n=="string")n.split(" ").forEach(o=>o&&e.classList.add(o));else if(typeof n=="object")for(let o in n){let r=typeof n[o]=="function"?n[o](t,t.state,t.context):n[o];r&&e.classList.add(typeof r=="string"?r:o)}}}}function Pn(t){if(t==null||typeof t!="object")return"s:"+String(t);try{return"o:"+JSON.stringify(t)}catch{return null}}function Fx(t){if(!t||typeof t!="object")return!1;for(let e in t){let n=t[e];if(n&&typeof n=="object"&&!Array.isArray(n))return!0}return!1}function vo(t,e,n){if(!t||!t.style||!e)return null;let o=t.style,r=[];for(let i in e){if(e[i]==null||i.charAt(0)==="&")continue;let a=de(i);r.push(a,Wn(n,o,a),Na(n,o,a))}return r}function Xp(t,e){return typeof t.getPropertyValue=="function"?t.getPropertyValue(e):""}function Jp(t,e){return typeof t.getPropertyPriority=="function"?t.getPropertyPriority(e):""}function de(t){return fe(t)}function va(t,e,n,o){if(!t||!t.style||!e||!e.length)return;let r=t.style,i=new Set;if(n&&typeof n=="object")for(let s in n)n[s]==null||s.charAt(0)==="&"||i.add(de(s));for(let s=0;s<e.length;s+=3){let a=e[s];i.has(a)||Wn(o,r,a)===e[s+1]&&(o&&a==="display"?jo(o,""):typeof r.removeProperty=="function"&&r.removeProperty(a))}}function Xr(t,e,n){let o=t.__ref;o&&(n?(o.__heldInline||(o.__heldInline=new Map)).set(e,n):o.__heldInline&&o.__heldInline.delete(e))}function jx(t,e,n){if(t.__heldInline){for(let[o,r]of t.__heldInline)if(o!==e){for(let i=0;i<r.length;i+=3)if(r[i]===n)return!0}}return!1}function th(t,e,n,o){let r=t.__ref,i=t.node;if(!r||!n||!i||!i.style)return;let s=r.__inlineCssKeys,a=null;for(let u=0;u<n.length;u+=3){let d=n[u];o&&o.has(d)||jx(r,e,d)||(a||(a=[]),a.push(u),s&&s.delete(d))}if(!a)return;let l=s&&Ba(t,s),c=i.style,f=[];for(let u of a){let d=n[u];l&&l[d]!==void 0||Wn(t,c,d)===n[u+1]&&f.push(d)}for(let u of f)u==="display"?jo(t,""):typeof c.removeProperty=="function"&&c.removeProperty(u)}function Wx(t,e,n){let o=[];for(let s=0;s<e.length;s+=3)o.push(e[s]);let r=!1;for(let s in n){let a=Te[s];o.some(l=>a.includes(l))&&(r=!0,o.includes(s)||o.push(s))}if(!r)return;let i=t.node.style;e.length=0;for(let s of o)e.push(s,Wn(t,i,s),Na(t,i,s))}function Bn(t,e,n){if(!e||!t||!t.style)return!1;let o=t.style;for(let r=0;r<e.length;r+=3)if(Wn(n,o,e[r])!==e[r+1]||Na(n,o,e[r])!==e[r+2])return!1;return!0}var Po=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,eh=t=>typeof t=="number"||t===!0||typeof t=="string"&&t!=="",ci=t=>Po(t)?t:"--"+t;function li(t,e){if(!ne(t))return null;let n=null;for(let o of Object.keys(t)){if(!o)continue;let r=t[o];if(typeof r=="function"){if(!e)continue;r=r(e,e.state,e.context)}eh(r)&&(n||(n={}),n[ci(o)]=r)}return n}function nh(t,e,n,o,r){oh(t,r,J(t,o,n),i=>eh(i)?{[e]:i}:null)}function oh(t,e,n,o,r){let i=t.__ref,s,a=null,l=P(()=>{Lt(t,()=>{try{let c=o(n(t,t.state,t.context)),f=t.node;if(!f||!f.style)return;let u=Pn(c);(u===null||u!==s||!Bn(f,a))&&(s=u,va(f,a,c),c&&ee(f,Le(t,c)),a=c?vo(f,c):null,r&&r(c))}catch(c){}})},{depth:i.path.length,label:$(i,e)});i.__effects.push(l)}function $x(t){let e=t.__ref,n=t.vars;if(typeof n=="function"){Ux(t,n),e.__exec.vars=n;return}if(ne(n))for(let o of Object.keys(n)){let r=n[o];!o||typeof r!="function"||nh(t,ci(o),r,Dn(t.varsDeps,o),"vars."+o)}}function Ux(t,e){let n=t.__ref;oh(t,"vars",J(t,t.varsDeps,e),o=>li(o),o=>{n.__varsInline=o?new Set(Object.keys(o)):null})}function zx(t,e){if(typeof t[e]=="function"&&(Re(t.tag||"div",e)||e.charCodeAt(0)===45))return!0;if(!Po(e))return!1;let n=t.vars;if(typeof n=="function"){let o=t.__ref&&t.__ref.__varsInline;return!!(o&&o.has(e))}if(!ne(n))return!1;for(let o of Object.keys(n))if(typeof n[o]=="function"&&ci(o)===e)return!0;return!1}function Hx(t){let e=null;for(let n in t)t[n]!=null&&n.charAt(0)!=="&"&&(e||(e=new Set),e.add(de(n)));return e}function Vx(t,e,n,o){let r=t.__ref;if(!r)return;let i=null;if(n)for(let s of n){if(o&&o.has(s))continue;let a=e[s];if(a==null||typeof a=="object")continue;let l=de(s);Te[l]&&(i||(i={}),i[l]=a)}r.__declaredLonghands=i}function Ba(t,e){let n=t.__ref,o=n&&n.__declaredLonghands;if(!o||!e)return null;let r=null;for(let i in o){if(e.has(i))continue;let s=Te[i],a=!1;for(let l=0;l<s.length;l++)if(e.has(s[l])){a=!0;break}a&&(r||(r={}),r[i]=o[i])}return r}function hp(t,e,n,o){let r=t.node,i=Hx(e),s=i&&Ba(t,i);if(n&&th(t,o,n,s?new Set([...i,...Object.keys(s)]):i),ee(r,e,t),!i)return e;let a=t.__ref;if(a)if(a.__inlineCssKeys)for(let l of i)a.__inlineCssKeys.add(l);else a.__inlineCssKeys=new Set(i);return s?(ee(r,Le(t,s)),Object.assign({},e,s)):e}function Gx(t){let e=t.__ref;if(!e||!e.__inlineCssKeys||!e.__declaredLonghands)return;let n=Ba(t,e.__inlineCssKeys);if(!n)return;let o=[];if(e.__heldInline)for(let r of e.__heldInline.values())Bn(t.node,r,t)&&o.push(r);ee(t.node,Le(t,n));for(let r of o)Wx(t,r,n)}function on(t,e){return!e||typeof e!="object"?e:Lt(t,()=>{try{return xd(e,t)}catch{return e}})}var rh="none",Ma=t=>!!(t&&t.__hiddenBy&&t.__hiddenBy.size),gp=t=>Xp(t,"display")===rh&&Jp(t,"display")==="important";function ih(t,e){e?t.setProperty("display",e[0],e[1]):typeof t.removeProperty=="function"?t.removeProperty("display"):t.display=""}function ri(t,e,n,o){let r=t.__ref,i=t.node;if(!r||!i||!i.style)return;let s=r.__hiddenBy,a=!!(s&&s.size);n?(s||(s=r.__hiddenBy=new Set),s.add(e)):s&&s.delete(e);let l=i.style;s&&s.size?gp(l)||l.setProperty("display",rh,"important"):(a||o&&gp(l))&&ih(l,r.__shownDisplay||null)}function jo(t,e,n){let o=t.__ref,r=e?[String(e),n||""]:null;o&&(o.__shownDisplay=r);let i=t.node;!i||!i.style||Ma(o)||ih(i.style,r)}function Wn(t,e,n){let o=n==="display"&&t&&t.__ref;return Ma(o)?o.__shownDisplay?o.__shownDisplay[0]:"":Xp(e,n)}function Na(t,e,n){let o=n==="display"&&t&&t.__ref;return Ma(o)?o.__shownDisplay?o.__shownDisplay[1]:"":Jp(e,n)}function ee(t,e,n){if(!t||!e||!t.style)return;n&&(e=Le(n,e));let o=null;for(let r in e){let i=e[r];if(i!=null){if(r.charAt(0)==="&"&&typeof i=="object"){o||(o={}),o[r]=i;continue}try{let s=String(i);if(typeof i=="object"&&s==="[object Object]")continue;let a=fe(r),l=s.trim(),c=/\s*!important\s*$/.test(l),f=l.replace(/\s*!important\s*$/,"");if(n&&a==="display"){jo(n,f,c?"important":"");continue}t.style.setProperty(a,f,c?"important":"")}catch{}}}o&&Kx(t,o)}function Kx(t,e){let n=`_ds${Dp.scopedStyleId++}`;t.classList.add(n);let o=t.ownerDocument,r=o.querySelector("style[data-smbls-scoped]");r||(r=o.createElement("style"),r.setAttribute("data-smbls-scoped",""),o.head.appendChild(r));let i="";for(let s in e){let a="."+n,l=Ze(s.replace(/&/g,a)).map(f=>f.includes(a)?f:a+f).join(", "),c=e[s];if(typeof c=="object"){let f="",u="";for(let d in c){let p=c[d];if(typeof p=="object"){let g=Ze(l),h=d.includes("&")?g.map(y=>d.replace(/&/g,y)).join(", "):g.map(y=>`${y} ${d}`).join(", "),_="";for(let y in p)_+=`${de(y)}: ${p[y]};`;u+=Ye(`${h} { ${_} }`,h)+`
26
+ `}else f+=`${de(d)}: ${p};`}f&&(i+=Ye(`${l} { ${f} }`,l)+`
27
+ `),u&&(i+=u)}}i&&(r.textContent+=i)}function qx(t){let e=t.subscribeTo,n=typeof e=="function",o=e;if(n)try{o=e(t,t.state,t.context)}catch{o=null}if(!Array.isArray(o)||o.length===0)return;let r=t.__ref;for(let i=0;i<o.length;i++){let s=o[i];if(typeof s!="string"||s.length===0)continue;let a=s.split("."),l=a[0],c=a.slice(1),f={value:!1},u=P(()=>{let d=t.state&&(H(t.state)?t.state.root:null);if(!d||!H(d))return;let p=d;p=p[l];for(let h=0;h<c.length&&!(p==null||typeof p!="object");h++)if(H(p))p=p[c[h]];else break;if(!f.value)return;let g=!1;if(typeof t.onBeforeUpdate=="function"&&Lt(t,()=>{try{if(ui(r)){let h=t.onBeforeUpdate(t,t.state,t.context,{updateBySubscription:!0});h&&typeof h.then=="function"?h.then(()=>te(r,!1),_=>{te(r,!0),ae("error",t,{hook:"onBeforeUpdate",error:_})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",_)}):(te(r,!1),h===!1&&(g=!0))}}catch(h){te(r,!0),ae("error",t,{hook:"onBeforeUpdate",error:h})||console.error("[DOMQL] subscribeTo onBeforeUpdate error:",h)}}),!g&&t.node&&r.__effects)for(let h=0;h<r.__effects.length;h++){let _=r.__effects[h];_&&_!==u&&!_._disposed&&!_._isSubscribeToEffect&&typeof _._execute=="function"&&_._execute()}!g&&typeof t.onUpdate=="function"&&Lt(t,()=>{try{t.onUpdate(t,t.state,t.context)}catch(h){ae("error",t,{hook:"onUpdate",error:h})||console.error("[DOMQL] subscribeTo onUpdate error:",h)}})},{depth:r.path.length,label:$(r,"subscribeTo("+s+")")});f.value=!0,u._isSubscribeToEffect=!0,r.__effects.push(u)}}function Fa(t,e){return t.charCodeAt(0)===64&&t.length>1&&!t.startsWith("@media")&&!t.startsWith("@keyframes")&&!t.startsWith("@supports")&&!t.startsWith("@container")&&(t==="@dark"||t==="@light"||!e.context?.designSystem?.media?.[t.slice(1)])}function ja(t,e){if(t.charCodeAt(0)!==64||/^@(media|supports|container|keyframes)\b/.test(t))return t;let n=e.context?.designSystem?.media?.[t.slice(1)];if(!n)return t;if(typeof n=="string"&&!/^@(supports|container)\b/.test(n)){let o=ch(e);if(o){let r=fd(n);if(r)return`@container ${o} ${r}`}}return/^@(media|supports|container)\b/.test(n)?n:`@media ${n}`}function Wa(t,e,n,o,r){let i=r||Zx(t);return kr(t)?xr(()=>Bo(e,n,!1,o,i)):Bo(e,n,!1,o,i)}var Yx=/(::[a-z-]+(?:\([^()]*\))?|:(?:before|after|first-line|first-letter))(?::[a-z-]+(?:\([^()]*\))?)*\s*$/i;function Zx(t){if(typeof t!="string"||t.charCodeAt(0)===64)return null;let e=t.match(Yx);return e?e[1]:null}var Qx=/^::(?:-webkit-scrollbar|part\()/i,Xx=/^(?::[a-z-]+(?:\([^()]*\))?)+$/i;function Jx(t){let e=[],n=0,o=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i===40?n++:i===41?n--:i===44&&n===0&&(e.push(t.slice(o,r)),o=r+1)}return e.push(t.slice(o)),e}function sh(t,e){if(t.charCodeAt(0)===64)return!0;let n=Qx.test(e);for(let o of Jx(t)){let r=o.trim(),i=r.lastIndexOf("&"),s=i===-1?r:r.slice(i+1);if(!(i!==-1&&s==="")&&!(n&&Xx.test(s)))return!1}return!0}function ah(t,e){let n=null;for(let o in t){let r=t[o];if(!ne(r))continue;let i=sh(o,e)?ah(r,e):void 0;i!==r&&(n||(n={...t}),i===void 0?delete n[o]:n[o]=i)}return n||t}function ch(t){let e=t.__ref;if(e&&e.__breakpointContainer!==void 0)return e.__breakpointContainer;let n=null;for(let o=t.parent;o&&typeof o=="object";o=o.parent){let r=o.breakpointsFrom;if(r!=null&&r!==!1){n=yo(r,o);break}}return e&&(e.__breakpointContainer=n),n}function Le(t,e){let n=I.containerVw;return n!==null&&n.on&&e&&ch(t)?n.lengths(e):e}function tk(t,e){return globalThis.__SMBLS_BUILD_DROP_F_containerVw__?Y("containerVw",t):I.containerVw!==null&&I.containerVw.scope(t,e)}var _p=new Map;function ek(t){let e=_p.get(t);if(e)return e;e=[];let n=o=>{if(o)for(let r of o)e.push(bo(r))};return n(Te[t]),n(Kr[t]),_p.set(t,e),e}function Eo(t,e,n){return zx(t,e)||!!(n&&n.has(e))}var To=null;function nk(t){if(!To){To=new Map;let e=dd;if(e){for(let n of Object.keys(e))if(!(n==="hide"||n==="show"))for(let o of e[n]){if(o===n)continue;let r=To.get(o);r||To.set(o,r=[]),r.push(n)}}}return To.get(t)}function yp(t,e,n){if(Eo(t,e,n))return!0;let o=nk(e);if(o){for(let r=0;r<o.length;r++)if(Eo(t,o[r],n))return!0}return!1}function ok(t,e,n){if(yp(t,e,n))return!0;let o=ek(de(e));for(let r=0;r<o.length;r++)if(yp(t,o[r],n))return!0;return!1}function Bo(t,e,n,o,r){let i={},s=new Set,a=(c,f,u)=>{if(r&&ne(f)){if(!sh(c,r))return;f=ah(f,r)}let d=!Object.prototype.hasOwnProperty.call(i,c);i[c]=f,d&&(u||ok(e,c,o))&&s.add(c)},l=(c,f,u)=>{if(z[c]){let d=z[c](f,e,e.state,e.context);if(d){let p=Array.isArray(d)?d:[d];for(let g of p)if(g)for(let h of Object.keys(g))a(h,g[h],u)}}else a(c,f,u)};for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let f=t[c];if(typeof f=="function"&&(f=f(e,e.state,e.context)),!(f==null||typeof f=="function")){if(typeof f=="object"&&!Array.isArray(f)){if(c==="style"){for(let p in f){let g=f[p];typeof g=="function"&&(g=g(e,e.state,e.context)),!(g==null||typeof g=="function")&&l(p,g,Eo(e,p,o))}continue}if(c==="vars"){let p=li(f,e);if(p)for(let g in p)l(g,p[g],Eo(e,g,o));continue}if(Fa(c,e)){let p=Bo(f,e,!1,o,r);Object.keys(p).length&&(i[`[data-theme="${c.slice(1)}"] &`]=p);continue}if(/^[A-Z][A-Za-z0-9]*$/.test(c))continue;let u=ja(c,e),d=Wa(u,f,e,o,r);Object.keys(d).length&&(i[u]=d);continue}l(c,f,Eo(e,c,o))}}if(n)for(let c in i)s.add(c);for(let c of s){let f=i[c];typeof f=="string"&&!f.includes("!important")&&(i[c]=f+" !important")}return i}var ne=t=>!!t&&typeof t=="object"&&!Array.isArray(t);function lh(t,e){for(let n in e){let o=e[n];t[n]=ne(o)?lh(ne(t[n])?t[n]:{},o):o}return t}function rk(t,e){if(!ne(e))return;let n;for(let o of t.split(" ")){let r=o?e[o]:null;ne(r)&&(n=lh(n||{},r))}return n}function $a(t,e){if(e===void 0&&(e=0),e>8)return!1;if(typeof t=="function")return!0;if(t&&typeof t=="object"&&!Array.isArray(t)){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&$a(t[n],e+1))return!0}return!1}function fh(t,e,n){if(!e||typeof e!="object"||Array.isArray(e))return null;if(Fa(t,n)){let i=Bo(e,n,!1);return Object.keys(i).length?{cssProp:`[data-theme="${t.slice(1)}"] &`,block:i}:null}let o=ja(t,n),r=Wa(o,e,n);return Object.keys(r).length?{cssProp:o,block:r}:null}function ik(t){let e=t.__ref;for(let n of Object.keys(t)){if(!Fp(n))continue;let o=t[n];if(!o||typeof o!="object"||Array.isArray(o)||!$a(o))continue;let r=null,i,s=P(()=>{if(!t.node)return;let a=t.context?.designSystem;a&&at(a);let l,c=!1;try{let f=fh(n,o,t),u=f?Pn(f.block)+"::"+f.cssProp:null;if(u!==null&&u===i)c=!0;else if(i=u,f){let d=Qe(Le(t,{[f.cssProp]:f.block}),null,t.context?.cssPrefix);l=d?d.split(" ").filter(Boolean):null}else l=null}finally{a&&it()}if(!(c||!t.node.classList)){if(r)for(let f of r)t.node.classList.remove(f);if(l&&l.length)for(let f of l)t.node.classList.add(f);r=l}},{depth:e.path.length,label:$(e,"cssBlock("+n+")")});e.__effects.push(s)}}var sk=()=>!0,ak=(t,e)=>{let n=t.charAt(0);return(n===":"||n==="@"||n==="&"||n==="[")&&e&&typeof e=="object"&&!Array.isArray(e)?!0:!!z[t]||!!(X&&X.has(t))||Po(t)||t==="vars"};function ck(t,e,n){let o={},r=!1;for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&(a!=="data"&&a!=="aria"&&(ak(a,n[a])||ct.has(a))?o[a]=!0:r=!0);if(!r)return null;let i=np({[e]:n},t.tag||"div",o,sk),s=null;for(let a in i)/^on/i.test(a)||(s||(s={}),s[a]=i[a]);return s}function mp(t,e,n,o,r,i){let s=t.node,a=null,l=c=>{(a||(a=[])).push(c)};for(let c in o){let f=e.owners.get(c),u=f===n;if(!i&&f!==void 0&&!u)continue;let d;try{d=o[c](t)}catch(g){t.__ref,""+n+c,u&&l(c);continue}if(typeof d=="string"&&d.includes("{{")&&(d=ht.call(t,d,t.state)),u&&s.getAttribute(c)!==e.written.get(c)){l(c);continue}if(d==null||typeof d=="object"||typeof d=="function"){u&&uh(s,e,c);continue}let p=d===!1&&!In(c)?null:String(ue(c,d));l(c),!(u&&p===e.written.get(c))&&(f===void 0&&e.base.set(c,s.getAttribute(c)),oi(s,c,p),e.owners.set(c,n),e.written.set(c,p))}r.appliedAttrs=a}function uh(t,e,n){t.getAttribute(n)===e.written.get(n)&&oi(t,n,e.base.get(n)),e.owners.delete(n),e.base.delete(n),e.written.delete(n)}function lk(t,e,n,o){let r=o.appliedAttrs;if(o.appliedAttrs=null,!!r)for(let i of r)e.owners.get(i)===n&&uh(t.node,e,i)}function dh(t){let e=t.__ref&&t.__ref.__conditionalAttrs,n=t.node;if(!(!e||!e.owners.size||!n||!n.getAttribute))for(let o of e.owners.keys()){let r=e.written.get(o),i=n.getAttribute(o);i!==r&&(e.base.set(o,i),r==null?n.removeAttribute(o):n.setAttribute(o,r))}}var ma,fk=()=>ma===void 0?ma=!1:ma;function bp(t,e){let n=rf;typeof n=="function"?t.untrackedReads+=n(e):e()}function uk(t){let e=t.__ref;e.__conditionalRunners=[];let n=null,o=new Map;for(let r of Object.keys(t)){let i=r.charAt(0);if(i!=="."&&i!=="!")continue;let s=r.slice(1);if(!s)continue;if(/[:@\s>~+[\]]/.test(s)){if(typeof console<"u"&&console.warn){let _=s.split(/[:@\s>~+[\]]/)[0]}continue}let a=t[r];if(!a||typeof a!="object")continue;let l=i==="!",c={lastMatch:!1,appliedKeys:null,appliedClasses:null,appliedAttrs:null,hides:!1,probe:!1,untrackedReads:0},f=ck(t,r,a);f&&!n&&(n=e.__conditionalAttrs={owners:new Map,base:new Map,written:new Map});let u=new Set;for(let _ in a){if(!Object.prototype.hasOwnProperty.call(a,_))continue;let y=_.charAt(0),b=a[_];if(!((y===":"||y==="@"||y==="&"||y==="[")&&b&&typeof b=="object"&&!Array.isArray(b))){if(_==="vars"&&ne(b)){for(let A of Object.keys(b))A&&u.add(ci(A));continue}u.add(_)}}let d=()=>{let _,y=c.probe,b;if(y?bp(c,()=>{b=t[s]}):b=t[s],b===void 0){let m=!!t.state&&s in t.state,S=t.state?t.state[s]:void 0;if(m||S!==void 0)_=S;else{let w=t.context?.cases?.[s];if(w===void 0)return;try{_=typeof w=="function"?w.call(t,t):w}catch(x){_=!1,e.__conditionalError=x,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` case fn threw on ${t.key||"?"} \u2014 treating as false:`,x?.message||x)}}}else if(typeof b=="function")try{y?bp(c,()=>{_=b(t,t.state,t.context)}):_=b(t,t.state,t.context)}catch(m){_=!1,e.__conditionalError=m,typeof console<"u"&&console.warn&&console.warn(`[smbls] conditional \`${r}\` predicate threw on ${t.key||"?"} \u2014 treating as false:`,m?.message||m)}else _=b;y&&(c.probe=!1);let A=l?!_:!!_;if(!t.node)return;let O=t.context?.designSystem;if(A===c.lastMatch){if(A&&f&&t.node.setAttribute){O&&at(O);try{mp(t,n,r,f,c,!1)}finally{O&&it()}}return}c.lastMatch=A,O&&at(O);try{if(A){let m={},S={},w=!1,x=!1;for(let v in a){if(!Object.prototype.hasOwnProperty.call(a,v))continue;let T=a[v],M=v.charAt(0);if((M===":"||M==="@"||M==="&"||M==="[")&&T&&typeof T=="object"&&!Array.isArray(T)){if(Fa(v,t)){let L=Bo(T,t,!1,u);Object.keys(L).length&&(S[`[data-theme="${v.slice(1)}"] &`]=L,w=!0)}else{let L=ja(v,t),ye=Wa(L,T,t,u);Object.keys(ye).length&&(S[L]=ye,w=!0)}continue}let B=typeof T=="function"?T(t,t.state,t.context):T;if(B!=null){if(v==="hide"||v==="show"){let L=z[v](B,t,t.state,t.context);L&&L.display&&(x=!0)}else if(z[v]){let L=z[v](B,t,t.state,t.context);if(L){let ye=Array.isArray(L)?L:[L];for(let lt of ye)lt&&Object.assign(m,lt)}}else if(X&&X.has(v))m[v]=B;else if(Po(v))m[v]=B;else if(v==="vars"){let L=li(B,t);L&&Object.assign(m,L)}}}(x||c.hides)&&(c.hides=x,ri(t,r,x));let C=Object.keys(m);if(C.length){ee(t.node,m,t);for(let v of C){let T=o.get(v);T||(T=[],o.set(v,T));let M=T.findIndex(B=>B.key===r);M!==-1&&T.splice(M,1),T.push({key:r,value:m[v]})}c.appliedKeys=C}else c.appliedKeys=null;if(w){let v=Qe(Le(t,S),null,t.context?.cssPrefix,{state:!0}),T=v?v.split(" ").filter(Boolean):[];if(T.length&&t.node.classList){for(let M of T)t.node.classList.add(M);c.appliedClasses=T}else c.appliedClasses=null}else if(c.appliedClasses){for(let v of c.appliedClasses)t.node.classList.remove(v);c.appliedClasses=null}f&&t.node.setAttribute&&mp(t,n,r,f,c,!0)}else{if(c.appliedAttrs&&lk(t,n,r,c),c.appliedKeys){for(let m of c.appliedKeys){let S=o.get(m);if(!S)continue;let w=S.findIndex(x=>x.key===r);if(w!==-1)if(S.splice(w,1),S.length){let x=S[S.length-1].value,C=fe(m),v=String(x).trim().replace(/\s*!important\s*$/,"");Wn(t,t.node.style,C)!==v&&ee(t.node,{[m]:x},t)}else o.delete(m),Po(m)?t.node.style.removeProperty(m):fe(m)==="display"?jo(t,""):t.node.style[m]=""}c.appliedKeys=null}if(c.hides&&(c.hides=!1,ri(t,r,!1)),c.appliedClasses){for(let m of c.appliedClasses)t.node.classList.remove(m);c.appliedClasses=null}}}finally{O&&it()}};e.__conditionalRunners.push(d);let p=t[s+"Deps"],g=J(t,p,d);fk()&&typeof(e.__exec&&e.__exec[s]||t[s])=="function"&&!(Array.isArray(p)&&p.length===0)&&(c.probe=!0);let h=P(g,{depth:e.path.length,label:$(e,"conditional("+r+")")});c.probe&&(c.probe=!1),c.untrackedReads>0&&h._sources.size,e.__effects.push(h)}}var ba=new WeakSet,Sa=new WeakMap;function dk(t){let e=Sa.get(t);if(e==="painted")return!1;if(e===void 0){Sa.set(t,"open");let n=t.defaultView,o=()=>{Sa.set(t,"painted")};n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(o):setTimeout(o,0)}return!0}var wa=new WeakSet;function pk(t){if(wa.has(t))return;wa.add(t);let e=()=>{wa.delete(t);let o=t.body||t.documentElement;o&&o.offsetWidth},n=t.defaultView;n&&typeof n.requestAnimationFrame=="function"?n.requestAnimationFrame(e):setTimeout(e,0)}var Jr;function hk(t){if(Jr!==void 0)return Jr;let e=t.defaultView&&t.defaultView.navigator||(typeof navigator<"u"?navigator:null);if(!e||typeof e.vendor!="string")return!0;let n=typeof e.userAgent=="string"?e.userAgent:"",o=e.vendor==="Google Inc.",r=e.vendor===""&&/\bGecko\/\d/.test(n)&&/\bFirefox\//.test(n);return Jr=!(o||r),Jr}function gk(t,e){let n=t.ownerDocument;if(n&&hk(n)&&!dk(n)){if(I.hydration!==null&&e&&e.context&&e.context.__hydration){pk(n);return}ba.has(n)||(ba.add(n),queueMicrotask(()=>{ba.delete(n);let o=n.body||n.documentElement;o&&o.offsetWidth}))}}var xa=new WeakSet,Sp=!1;function wp(t){return t.startsWith("[data-theme=")||t.startsWith("[data-skin=")||t.startsWith("@media")&&(t.includes("prefers-color-scheme")||t.includes("prefers-reduced-transparency"))}function Oa(t,e){let n={...t};for(let o in e){let r=e[o],i=n[o];n[o]=r&&typeof r=="object"&&i&&typeof i=="object"?Oa(i,r):r}return n}function ph(t,e){let n={};for(let o in t){let r=t[o];if(r&&typeof r=="object"){let i=ph(r,e);Object.keys(i).length&&(n[o]=i)}else e(o)||(n[o]=r)}return n}function xp(t,e,n){let o=Ua(t);if(!o)return!1;for(let r=0;r<o.length;r+=3){let i=o[r+1];if(!n.has(i))continue;let s=e[i];if(!(s==null||typeof s=="object")&&kd(o[r],s,o[r+2]))return!0}return!1}function _k(t,e,n){let o=1/0,r=-1/0;for(let s of e.values())s<o&&(o=s),s>r&&(r=s);if(n)for(let s of n.values())s>r&&(r=s);if(r<=o)return null;let i=null;for(let[s,a]of e){if(a===r)continue;let l=Ua(s);if(l)for(let c=0;c<l.length;c+=3){let f=l[c],u=l[c+1],d=l[c+2],p=t[u]!=null?e.get(u):void 0,g=n&&n.get(f),h=p!==void 0&&p>a&&qr(f,t[u],d),_=!h&&g!==void 0&&g>a&&qr(f,void 0,d);if(h||_){h&&delete t[s],i||(i=new Set),i.add(s);break}}}return i}var kp=new Map;function Ua(t){let e=kp.get(t);if(e!==void 0)return e;let n=de(t),o=Te[n];if(e=null,Array.isArray(o)){e=[];for(let r of o)e.push(r,bo(r),n)}return kp.set(t,e),e}var yk=new Set(["page","zoom"]);function hh(t){let{node:e}=t;if(!e)return;if(Sp||(Sp=!0,Qe({display:"none"})),xa.has(t)){console.error("[applyCssInProps] re-entry detected for element",t.key,"prop path:",t.__ref?.path);return}xa.add(t);let n=t.context?.designSystem;n&&at(n),Vs();try{let o={},r=!1,i=[],s=null,a=null,l=null,c=null,f=t.__ref&&t.__ref.__mergeLayer,u,d=null,p=null,g=!1,h=(m,S)=>{if(S&&typeof S=="object"&&wp(m)){l||(l={});let w=l[m];w&&(S=Oa(w,S)),l[m]=S}else(S===null||typeof S!="object")&&(c||(c=new Set),c.add(m),u!==void 0&&(d||(d=new Map),d.set(m,u)));o[m]=S};if(Object.prototype.hasOwnProperty.call(t,"theme")&&typeof t.theme!="function"&&z.theme){let m=z.theme(t.theme,t,t.state,t.context);if(m){let S=w=>{for(let x in w){let C=w[x];C&&typeof C=="object"?wp(x)&&(s||(s={}),s[x]=C):Ua(x)&&(a||(a=[])).push(x),o[x]=C}};if(Array.isArray(m))for(let w of m)w&&S(w);else S(m);r=!0}}let _=(m,S)=>{if(m==="vars"){let w=li(S);if(w){for(let x in w)h(x,w[x]);r=!0}return}if(m==="hide"||m==="show"){let w=z[m](S,t,t.state,t.context);w&&w.display&&(g=!0);return}if(z[m]){let w=z[m](S,t,t.state,t.context);if(w){if(Array.isArray(w)){for(let x of w)if(x)for(let C in x)h(C,x[C])}else for(let x in w)h(x,w[x]);r=!0}}else if(X&&X.has(m))S!=null&&typeof S!="object"&&(h(m,S),r=!0);else if(m.charCodeAt(0)===45)S!=null&&typeof S!="object"&&(h(m,S),r=!0);else if(m.charAt(0)==="&"||m.charAt(0)==="@"||m.charAt(0)===":"||m.charAt(0)==="["){if(S&&typeof S=="object"&&!Array.isArray(S)){if($a(S))return;let w=fh(m,S,t);w&&(h(w.cssProp,w.block),r=!0)}}else(typeof S=="string"||typeof S=="number")&&yk.has(m)};if(typeof t.class=="string"){let m=rk(t.class,t.context?.designSystem?.class);if(m)for(let S in m)_(S,m[S])}let y=c?new Set(c):null,b=t.tag||"div";for(let m of Object.keys(t)){if(typeof t[m]=="function"){let w=f&&f.get(m);w!==void 0&&Re(b,m)&&(p||(p=new Map),p.set(de(m),w));continue}if(u=f?f.get(m):void 0,m==="vars"){_(m,t[m]);continue}if(ct.has(m)||m==="theme")continue;let S=m.charCodeAt(0);S>=65&&S<=90||Mt(m)||Qr(b,m)||_(m,t[m])}u=void 0;let A=d?_k(o,d,p):null;if(a&&c)for(let m of a)c.has(m)||!(m in o)||xp(m,o,c)&&delete o[m];if(s){let m=c?S=>c.has(S)||xp(S,o,c):null;for(let S in s){let w=m?ph(s[S],m):s[S];l&&l[S]&&(w=Oa(w,l[S])),Object.keys(w).length?o[S]=w:delete o[S]}}if(Vx(t,o,c,A?new Set([...y||[],...A]):y),ri(t,"static",g),t.breakpointsFrom!=null&&tk(t,o)&&(r=!0),r){o.display&&String(o.display).includes("!important")&&(ee(e,{display:o.display},t),delete o.display);let m=t.display!=null&&typeof t.display!="function"?t.display:t.hide===!0||t.show===!1?"none":null;typeof m=="string"&&m!==""&&o.display&&o.display!==m&&(o.display=m);let S=Qe(Le(t,o),null,t.context?.cssPrefix);if(i=S?S.split(" ").filter(Boolean):[],S&&e.classList){let w=i,x=!1;for(let C of w)e.classList.add(C),x||(C.charCodeAt(0)===95&&C.charCodeAt(1)===99||C.charCodeAt(0)===95&&C.indexOf("_c",1)!==-1)&&(x=!0);x&&gk(e,t)}}let O=t.__ref;if(O){let m=O.__staticCssClasses;if(m&&e.classList){let S=new Set(i);for(let w of m)S.has(w)||e.classList.remove(w)}O.__staticCssClasses=i}Gx(t)}finally{Gs(),n&&it(),xa.delete(t)}}var za=t=>!!z[t]||!!(X&&X.has(t))||typeof t=="string"&&t.charCodeAt(0)===45;function Ha(t){t&&t.node&&hh(t)}function mk(t){let{node:e}=t;if(!e||!e.setAttribute)return;if(t.aria&&typeof t.aria=="object")for(let r in t.aria){let i=t.aria[r];if(typeof i=="function"||typeof i=="object"||i==null||typeof i=="string"&&i.includes("{{"))continue;let s="aria-"+r.replace(/[A-Z]/g,a=>"-"+a.toLowerCase());e.setAttribute(s,ue(s,i))}let n=ep(t);for(let r in n){let i=n[r];i!=null&&i!==!1&&typeof i!="function"&&typeof i!="object"&&e.setAttribute(r,i===!0?"":i)}let o=t.tag||"div";for(let r of Object.keys(t)){if(typeof t[r]=="function"||ct.has(r)||r==="on"||n[r]!==void 0)continue;let i=r.charCodeAt(0);if(!(i>=65&&i<=90)&&!Mt(r)&&!Re(o,r)&&Gt(o,r)){let s=t[r];if(s==null)continue;if(typeof s=="string"&&s.includes("{{")){if(!en[r])continue;s=ht.call(t,s,t.state)}if(s==null||typeof s=="function"||typeof s=="object"||s===!1&&!In(Ee(r)||r))continue;let a=Ee(r)||r;e.setAttribute(a,ue(a,s))}}}function Va(t,e){let{node:n}=t;if(!n||!n.setAttribute)return;let o=e.charCodeAt(0);if(o>=65&&o<=90||Mt(e))return;let r=t.tag||"div";if(Re(r,e)||!Gt(r,e))return;let i=Ee(e)||e,s=i.toLowerCase(),a=t.__ref&&t.__ref.__effects,l=!1;if(a)for(let u=0;u<a.length;u++){let d=a[u];d&&d._attrName===s&&!d._disposed&&typeof d._execute=="function"&&(l=!0,d._execute())}if(l)return;let c=t[e],f=en[e];if(f&&c!=null){let u=f(t);u!==void 0&&(c=u)}typeof c=="string"&&c.includes("{{")&&(c=ht.call(t,c,t.state)),nn(n,i,c)}function bk(t,e){let n=t.node,o=t.__ref,r=o.__autoGrow;if(!e){if(r&&r.active){try{n.removeEventListener("input",r.resize)}catch{}Tp(r),Ie.delete(t),n.style.height="",r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""),vp(n,r,!1),r.active=!1,r.appliedMax=null,r.lastMeasure=0}return}r||(r=o.__autoGrow={active:!1,appliedMax:null,lastMeasure:0,lastWidth:null,watch:null,awaitingLayout:!1,appliedScroll:!1,fontsHooked:!1,attachAttempts:0,firstAttemptAt:null,resize:()=>{if(!n.isConnected){Mo(t,!0);return}if(!(n.scrollHeight>0)){r.awaitingLayout=!0,Ap(t,r);return}r.awaitingLayout=!1;let s=xk(n),a=kk(s),l=n.style.height;n.style.height="0px",a&&ka(n);let c=n.scrollHeight;if(!(c>0)){n.style.height=l,a&&ka(n);return}let f=Ak(n,s),u=f!=null&&c<f?f:c,d=vk(s),p=d!=null&&u>d;n.style.height=Ck(p?d:u,s)+"px",a&&ka(n),vp(n,r,p),r.lastMeasure=c,r.lastWidth=n.clientWidth,Ap(t,r)}},o.__eventCleanup||(o.__eventCleanup=[]),o.__eventCleanup.push(()=>{try{n.removeEventListener("input",r.resize)}catch{}Tp(r),Ie.delete(t)})),r.active||(n.addEventListener("input",r.resize),r.active=!0,wk(t,r));let i=typeof e=="object"&&e.max!=null?String(e.max):null;i!==r.appliedMax&&(i==null?r.appliedMax!=null&&n.style.maxHeight===r.appliedMax&&(n.style.maxHeight=""):n.style.maxHeight=i,r.appliedMax=i),r.resize()}function Mo(t,e){let n=t.__ref?.__autoGrow;n&&(e&&(n.attachAttempts=0,n.firstAttemptAt=null),Ie.add(t),No())}function Sk(){let t=Array.from(Ie);Ie.clear();for(let e=0;e<t.length;e++){let n=t[e],o=n.node,r=n.__ref?.__autoGrow;if(!(!o||!r||!r.active)){if(!o.isConnected){r.firstAttemptAt==null&&(r.firstAttemptAt=Fn()),r.attachAttempts+=1,r.attachAttempts<=Bp&&Fn()-r.firstAttemptAt<Mp&&(Ie.add(n),No());continue}r.attachAttempts=0,r.firstAttemptAt=null,r.resize()}}}function Ap(t,e){if(e.watch)return;let n=t.node;if(!n)return;let o=n.ownerDocument&&n.ownerDocument.defaultView,r=o&&o.ResizeObserver||(typeof ResizeObserver=="function"?ResizeObserver:null);if(typeof r!="function")return;let i=()=>{if(!e.active||!n.isConnected||!(n.scrollHeight>0))return;if(e.awaitingLayout){e.awaitingLayout=!1,Mo(t,!0);return}let a=n.clientWidth;e.lastWidth!=null&&Math.abs(a-e.lastWidth)<.5||(e.lastWidth=a,Mo(t,!0))},s;try{s=new r(i),s.observe(n)}catch{return}e.watch=s}function Tp(t){let e=t.watch;if(e){t.watch=null;try{e.disconnect()}catch{}}}function wk(t,e){if(e.fontsHooked)return;e.fontsHooked=!0;let n=t.node&&t.node.ownerDocument,o=n&&n.fonts&&n.fonts.ready;!o||typeof o.then!="function"||o.then(()=>{e.active&&t.node&&Mo(t,!0)},()=>{})}function xk(t){let e=t.ownerDocument&&t.ownerDocument.defaultView;try{return e&&e.getComputedStyle?e.getComputedStyle(t):null}catch{return null}}var an=t=>typeof t=="string"&&/^\s*-?\d*\.?\d+px\s*$/.test(t)?parseFloat(t):null,Ga=t=>(an(t.paddingTop)||0)+(an(t.paddingBottom)||0),gh=t=>(an(t.borderTopWidth)||0)+(an(t.borderBottomWidth)||0);function kk(t){if(!t)return!1;let e=String(t.transitionProperty||"").split(","),n=String(t.transitionDuration||"0s").split(",");for(let o=0;o<e.length;o++){let r=e[o].trim();if(!(r!=="all"&&r!=="height")&&parseFloat(n[o%n.length])>0)return!0}return!1}function ka(t){if(typeof t.getAnimations!="function")return;let e;try{e=t.getAnimations()}catch{return}for(let n=0;n<e.length;n++){let o=e[n];if(o&&o.transitionProperty==="height")try{o.cancel()}catch{}}}function Ak(t,e){if(!e||!t.hasAttribute||!t.hasAttribute("rows"))return null;let n=parseInt(t.getAttribute("rows"),10);if(!(n>0))return null;let o=an(e.lineHeight)||Tk(t,e);return o>0?n*o+Ga(e):null}var Co=["fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontFamily","lineHeight","letterSpacing"],Cp=new WeakMap;function Tk(t,e){let n=t.ownerDocument,o=n&&(n.body||n.documentElement);if(!o||!n.createElement)return null;let r=Cp.get(n);r||(r=new Map,Cp.set(n,r));let i=Co.map(c=>e[c]||"").join("|");if(r.has(i))return r.get(i);let s=n.createElement("textarea");s.rows=1,s.setAttribute("aria-hidden","true"),s.tabIndex=-1;let a=s.style;a.position="absolute",a.visibility="hidden",a.top="0",a.left="-9999px",a.height="auto",a.minHeight="0",a.maxHeight="none",a.padding="0",a.border="0",a.boxSizing="content-box",a.overflow="hidden";for(let c=0;c<Co.length;c++)e[Co[c]]&&(a[Co[c]]=e[Co[c]]);let l=0;try{o.appendChild(s),l=s.clientHeight}catch{l=0}finally{s.parentNode&&s.parentNode.removeChild(s)}return l>0?(r.set(i,l),l):null}function Ck(t,e){return e?e.boxSizing==="border-box"?t+gh(e):e.boxSizing==="content-box"?Math.max(0,t-Ga(e)):t:t}function vk(t){if(!t)return null;let e=an(t.maxHeight);if(e==null||!(e>0))return null;let n=Ga(t),o=gh(t),r=t.boxSizing==="border-box"?e-o:e+n,i=an(t.lineHeight);if(!(i>0))return r;let s=Math.floor((r-n)/i+1e-6);return s>=1?s*i+n:r}function vp(t,e,n){n?e.appliedScroll||(t.style.overflowY="auto",e.appliedScroll=!0):e.appliedScroll&&(t.style.overflowY==="auto"&&(t.style.overflowY=""),e.appliedScroll=!1)}var Op=["srcObject","muted"],Ok=(t,e)=>t==="muted"?e===!0||e===""||e==="true"||e==="muted":e??null;function Ek(t){let e=t.node,n=t.__ref;if(!(!e||!n))for(let o=0;o<Op.length;o++){let r=Op[o],i=t[r];if(i===void 0||!(r in e))continue;let s=a=>{let l=Ok(r,a);if(e[r]!==l)try{e[r]=l}catch(c){}};if(typeof i=="function"){let a=J(t,t[r+"Deps"],i),l=P(()=>{try{s(a(t,t.state,t.context))}catch(c){}},{depth:n.path.length,label:$(n,r)});n.__effects.push(l),n.__exec[r]=i}else s(i);r==="srcObject"&&(n.__releaseMedia=()=>{try{e.srcObject!=null&&(e.srcObject=null)}catch{}})}}function Rk(t){if(!t.autoGrow)return;if(globalThis.__SMBLS_BUILD_DROP_F_autoGrow__)return Y("autoGrow",t);let e=t.node;if(!e||e.tagName!=="TEXTAREA")return;let n=t.__ref,o=t.autoGrow,r=typeof o=="function"?J(t,t.autoGrowDeps,o):null,i=P(()=>{let s=t.autoGrow,a=s;if(typeof s=="function")try{a=(s===o&&r?r:s)(t,t.state,t.context)}catch{a=null}bk(t,a)},{depth:n.path.length,label:$(n,"autoGrow")});n.__effects||(n.__effects=[]),n.__effects.push(i),r&&(n.__exec.autoGrow=o)}var _h=new Set(["onSwipe","onSwipeLeft","onSwipeRight","onSwipeUp","onSwipeDown"]);function yh(t,e){let n=!1;for(let o of Object.keys(t)){if(!Mt(o)||_h.has(o))continue;if(o==="onInView"||o==="onLeaveView"){n=!0;continue}let r=Us(o);if(r){zs(r,t,t[o],o);continue}let i=t[o],s=null;if(i&&typeof i=="object"&&!Array.isArray(i)&&(s=i,i=s.handler),i=_o(t,i),typeof i!="function")continue;let a=$r(o);Xe.has(a)||$s(yx(a),t,i,s,o)}Ik(t),n&&I.viewEvents&&I.viewEvents(t)}function Ik(t){let e=t.node;if(!e||!e.addEventListener)return;let n={},o=!1;for(let d of _h){let p=t[d];typeof p=="function"&&(n[d]=En(t,p,d),o=!0)}if(!o)return;let r=typeof t.swipeThreshold=="number"?t.swipeThreshold:40,i=typeof t.swipeMaxDuration=="number"?t.swipeMaxDuration:600,s=0,a=0,l=0,c=!1,f=d=>{let p=d.touches&&d.touches[0]||d.changedTouches&&d.changedTouches[0];p&&(s=p.clientX,a=p.clientY,l=Date.now(),c=!0)},u=d=>{if(!c)return;c=!1;let p=d.changedTouches&&d.changedTouches[0]||d.touches&&d.touches[0];if(!p)return;let g=p.clientX-s,h=p.clientY-a,_=Date.now()-l;if(_>i)return;let y=Math.abs(g),b=Math.abs(h);if(Math.max(y,b)<r)return;let A;if(y>b*1.2)A=g<0?"left":"right";else if(b>y*1.2)A=h<0?"up":"down";else return;let O="onSwipe"+A.charAt(0).toUpperCase()+A.slice(1),m=n[O],S=n.onSwipe;m&&m(d),S&&S({direction:A,dx:g,dy:h,dt:_,event:d})};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 Ka(t,e,n,o,r,i,s,a){let l=e;(typeof l=="string"||typeof l=="number")&&(l={text:l});let c=o;if(typeof o=="function")try{c=o(t,l)}catch{c=null}let f=typeof o=="function"?Do(c):r;if(a&&!s&&(f=Lo(f,Do(e))),s){let u=e;(typeof e=="string"||typeof e=="number")&&(u={value:e,text:e}),l=c?{...c,state:u}:{state:u}}else c&&(l=Ot(c,l));return l=Wo(l,i),{def:l,key:jp(l?.key,e,n,t),supplied:f,props:c}}function Wo(t,e){if(!e||!t||t.ignoreChildExtends)return t;if(!t.extends)return{...t,extends:e};let n=Array.isArray(t.extends)?t.extends:[t.extends],o=Array.isArray(e)?e:[e];return{...t,extends:[...o,...n]}}var pe=t=>{let e=t&&t.__ref;if(!e||e.__if===!1||e.__mount&&e.__mount.held)return null;let n=t.node;return n&&n.nodeType!==11?n:null},mh=(t,e)=>e?e.nextSibling:wo(t.node,t.__ref.__textNode),fi=(t,e,n)=>{let o=mh(t,n);return e!==o&&t.node.insertBefore(e,o),e},$o=(t,e)=>{let n=mh(t,e);return n?{position:"before",node:n}:void 0};function qa(t,e,n){let o=null;for(let r=0;r<e.length;r++){if(n&&n.has(e[r]))continue;let i=pe(t[e[r]]);i&&(o=fi(t,i,o))}}function Ep(t,e,n,o){let r=I.rows,i=r!==null&&t.childrenAs!=="state"&&t.tag!=="fragment"?r.track(t):null,s=Ya(t,e,n,o,!0,i);return t.__ref.__plainRows=i&&(s||e==null||e===!1)?i:null,s}function Ya(t,e,n,o,r,i){if(!e||!t.node)return;let s=t.childExtends,a=De(t,"childProps"),l=t.__ref,c=I.mount,f=o>0&&t.tag!=="fragment"&&l?o:0;if(Array.isArray(e)){let u=t.childProps,d=t.childrenAs==="state",p=(g,h)=>{let _=Ka(t,e[g],g,u,a,s,d,r);i&&i.add(_.key,e[g],_,u,s);try{let y=Et(rn(_.def,_.supplied),t,_.key,n,h);return!y&&i&&i.none(_.key),ni(t,y),y}catch(y){if(i&&i.failed(_.key),typeof console<"u"&&console.error){let b=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${_.key}" failed to construct at ${b} (initial render, skipping this row):`,y?.message||y)}return Ge(t,{where:"child",key:_.key,error:y}),null}};if(!f){for(let g=0;g<e.length&&!(l&&l.__disposed);g++)p(g);return!0}return c.rows(t,e.length,p,f),!0}if(typeof e=="string"){let u=zp(e,t);if(Array.isArray(u))return Ya(t,u,n,o,!0,i)}if(typeof e=="object"){let u=(p,g)=>{if(ct.has(p))return!1;let h=e[p];if(h==null||h===!1)return!1;let _=r?Lo(a,Do(h)):a;(typeof h=="string"||typeof h=="number")&&(h={text:h}),t.childProps&&(h=Ot(t.childProps,h)),h=Wo(h,s);let y=Et(rn(h,_),t,si(t,p),n,g);return ni(t,y),y};if(!f){for(let p in e)u(p);return}let d=[];for(let p in e)d.push(p);c.rows(t,d.length,(p,g)=>u(d[p],g),f)}}function Nn(t,e){let n=t.node;if(!n||n.tagName!=="SELECT")return;let o=n.options;if(!o||!o.length)return;let r=t.__ref,i=r&&r.__exec&&r.__exec.value,s=typeof i=="function",a=t.value!=null&&typeof t.value!="function";if(s||a){let f;if(s)try{f=i(t,t.state,t.context)}catch{return}else f=t.value,typeof f=="string"&&f.includes("{{")&&(f=ht.call(t,f,t.state));let u=f==null?"":String(f);n.value!==u&&(n.value=u);return}let l=e||!(r&&r.__selectSynced);if(r&&(r.__selectSynced=!0),!l)return;let c=-1;for(let f=0;f<o.length;f++)o[f].defaultSelected&&(c=f);c>=0&&n.selectedIndex!==c&&(n.selectedIndex=c)}function Ea(t,e){let{children:n,content:o}=t,r=t.childExtends,i=typeof n=="function",s=i||Vp(t,"children");if(typeof n=="function"){let u=n,d=t.__ref,p=!1,g,h=J(t,t.childrenDeps,u),_=P(()=>{let y=p;p=!0;let b;try{b=h(t,t.state,t.context)}catch(v){if(typeof console<"u"&&console.error){let T=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] \`children:\` factory threw at ${T}${y?"":" (initial run, treating as empty)"}:`,v?.message||v)}Ge(t,{where:"children",error:v});return}if(!y){g=b;return}if(b===t.children)return;fp(t,b),t.children=b,d.__mount&&d.__mount.chunkGen++;let A=typeof t.onContentUpdate=="function",O=A?[]:null,m=A?[]:null,S=A?[]:null;if(Array.isArray(b)&&t.childrenAs==="state"){let v=t.childProps,T=[],M=new Map;for(let K=0;K<b.length;K++){let ft=b[K],q=v;if(typeof v=="function")try{q=v(t,ft)}catch{q=null}let vt=jp(q&&q.key,ft,K,t);T.push(vt),M.set(vt,{rawChild:ft,childProps:q})}let B=new Set(T),L=sp(d,d.__children.slice());for(let K of L)if(!B.has(K)){let ft=t[K];ft?.remove&&ft.remove(),delete t[K],m&&m.push(K)}let ye=t.childExtends,re=!(t.tag==="fragment")&&!!t.node,Sn=null,me=new Set;for(let K of T){let ft=M.get(K),q=ft.rawChild,vt=t[K];if(vt&&vt.state){if(q&&typeof q=="object"){let U=vt.state,rt=U.$replace||U.replace,mt=U.$update||U.update;try{if(typeof rt=="function")rt.call(U,q);else if(typeof mt=="function"){for(let st in U)if(!(st==="__element"||st==="root"||st==="parent"||st==="update")&&!Object.prototype.hasOwnProperty.call(q,st))try{U[st]=void 0}catch{}mt.call(U,q)}else for(let st in q)U[st]=q[st]}catch(st){if(typeof console<"u"&&console.error){let Yt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to patch at ${Yt} (reconcile, keeping its previous data for this pass):`,st?.message||st)}}}if(S&&S.push(K),re){let U=pe(vt);U&&(Sn=fi(t,U,Sn))}continue}let wn=q;(typeof q=="string"||typeof q=="number")&&(wn={value:q,text:q});let xn=ft.childProps,F=Wo(xn?{...xn,state:wn}:{state:wn},ye),et=typeof v=="function"?Do(xn):De(t,"childProps"),We;try{We=Et(rn(F,et),t,K,e,re?$o(t,Sn):void 0)}catch(U){if(typeof console<"u"&&console.error){let rt=t.__ref?.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${K}" failed to construct at ${rt} (reconcile, skipping this row):`,U?.message||U)}Ge(t,{where:"child",key:K,error:U}),me.add(K);continue}if(d.__disposed)return;if(re){let U=pe(We);U&&(Sn=U)}O&&O.push(K)}re&&qa(t,T,me.size?me:null),d.__children=me.size?T.filter(K=>!me.has(K)):T,A&&(O.length||m.length)&&ti(t,{added:O,removed:m,kept:S}),Nn(t,!1);return}if(t.childrenAs!=="state"&&d.__plainRows&&I.rows.reconcile(t,d,b,e,A)){Nn(t,!1);return}let C=A?[...d.__children]:null;for(let v of sp(d,[...d.__children])){let T=t[v];T?.remove&&T.remove(),delete t[v]}d.__children=[],Ep(t,b,e,0),Nn(t,!1),A&&ti(t,{added:[...d.__children],removed:C,kept:[]})},{depth:d.path.length,label:$(d,"children")});d.__effects.push(_),n=g,fp(t,n),t.children=n}let a=I.mount,l=a!==null?a.budgetOf(t,e):0,c=xo(t.__ref),f=i?Ep(t,n,e,l):Ya(t,n,e,l,s);if(l&&xo(t.__ref)>c){a.defer(t,l,()=>Rp(t,e,n,o,r,f,l));return}Rp(t,e,n,o,r,f,l)}function Rp(t,e,n,o,r,i,s){let a=xo(t.__ref);if(o!=null&&!(o&&o.__ref)){let l=o;typeof l=="string"||typeof l=="number"?l={text:l}:typeof l!="object"&&(l={}),t.childProps&&(l=Ot(t.childProps,l)),l=Wo(l,r);let c=Lo(De(t,"childProps"),De(t,"content"));ni(t,Et(rn(l,c),t,"content",e))}if(!(n&&!i)){if(s&&xo(t.__ref)>a){I.mount.defer(t,s,()=>Ip(t,e,r,s));return}Ip(t,e,r,s)}}function Ip(t,e,n,o){let r=t.context?.components||{},i=t.__ref&&t.__ref.__runtimeSource,s=i?{}:null;{let c=Object.keys(t);for(let f=0;f<c.length;f++){let u=c[f];if(!u.endsWith("Extends")||typeof t[u]!="string")continue;let d=u.slice(0,-7);if(!d||d.charCodeAt(0)<65||d.charCodeAt(0)>90)continue;let p={extends:t[u]};delete t[u];for(let g=f+1;g<c.length;g++){let h=c[g],_=h.charCodeAt(0);if(_>=65&&_<=90||ct.has(h)||typeof t[h]=="function"&&(h.startsWith("on")||h.startsWith(".")))break;let y=t[h];y!==void 0&&(p[h]=y,delete t[h],s&&Io(i,h)&&(s[d]||(s[d]={}),s[d][h]=i[h]))}t[d]&&typeof t[d]=="object"?t[d]={...p,...t[d]}:t[d]=p}}let a=Object.keys(t),l=c=>{if(ct.has(c)||typeof t[c]!="object"||t[c]===null)return!1;let f=c.charCodeAt(0);if(f<65||f>90)return!1;let u=t[c];if(u.__ref)return!1;if(!u.extends&&!u.extend){let p=r[c]||r[`smbls.${c}`];p&&(u={...u,extends:p})}t.childProps&&(u=Ot(t.childProps,u)),u=Wo(u,n);let d=i?Lo(De(t,"childProps"),Lo(s[c]||null,De(t,c))):null;ni(t,Et(rn(u,d),t,c,e))};if(!o){for(let c of a)l(c);return}I.mount.run(t,a.length,c=>l(a[c]),o)}function jn(t,e,n){let{node:o}=t;if(!o)return;o.ref=t;let r=e?.tag==="fragment"?e.__ref?.__fragmentAnchor:null;if(r){let l=r.parentNode;if(l){if(n?.position==="before"&&n.node)l.insertBefore(o,n.node);else if(n?.position==="after"&&n.node){let c=n.node.nextSibling;l.insertBefore(o,c||r)}else l.insertBefore(o,r);Ar();return}}let i=e?.node||(e?.nodeType?e:null);if(!i)return;if(!n&&I.hydration!==null){let l=t.context&&t.context.__hydration;if(l&&I.hydration.place(l,t,e,i,o))return}let s=n?.node,a=o.parentNode===i;if(s&&s.parentNode!==i)(!a||o.nextSibling)&&i.appendChild(o);else if(n?.position==="before"&&s)s!==o&&(!a||o.nextSibling!==s)&&i.insertBefore(o,s);else if(n?.position==="after"&&n.node){let l=n.node.nextSibling;l===o||(l?i.insertBefore(o,l):i.appendChild(o))}else(!a||o.nextSibling)&&i.appendChild(o);Ar()}var ii=3;function ui(t){return!t||t.__inBeforeUpdate||(t.__beforeUpdateFailCount||0)>=ii?!1:(t.__inBeforeUpdate=!0,!0)}function te(t,e){t&&(t.__inBeforeUpdate=!1,e?(t.__beforeUpdateFailCount=(t.__beforeUpdateFailCount||0)+1,t.__beforeUpdateFailCount===ii&&typeof console<"u"&&console.error&&console.error(`[DOMQL] onBeforeUpdate failed ${ii}x in a row on this element \u2014 pausing automatic retries until a future prop/state change re-arms it.`)):t.__beforeUpdateFailCount=0)}function _t(t,e,n){let o=t.charAt(0).toLowerCase()+t.slice(1);ae(o,e,n);let r="on"+t,i=e[r];if(typeof i=="function"){let l=t==="Render"?"__inRender":t==="RenderRouter"?"__inRenderRouter":null;if(l){if(e.__ref[l])return!0;e.__ref[l]=!0}let c=e.context?.designSystem;c&&at(c);let f=!!l;try{let u=i(e,e.state,e.context,n);if(u&&typeof u.then=="function"){let d=e.__ref;return u.catch(p=>{Dt(e,r,p)}).finally(()=>{l&&d&&(d[l]=!1)}),f=!1,!0}if(u===!1)return!1}catch(u){if(Dt(e,r,u),e.context?.strictMode)throw u}finally{c&&it(),f&&e.__ref&&(e.__ref[l]=!1)}}return!0}function sa(t={},e={}){let n=this,o=n.__ref;if(!o)return;if((typeof t=="string"||typeof t=="number")&&(t={text:t}),!e.preventListeners&&typeof n.onBeforeUpdate=="function"&&ui(o))try{let a=n.onBeforeUpdate(n,n.state,n.context,e);if(a&&typeof a.then=="function")a.then(()=>te(o,!1),l=>{te(o,!0),ae("error",n,{hook:"onBeforeUpdate",error:l})||console.error("[DOMQL] onBeforeUpdate error:",l)});else if(te(o,!1),a===!1)return n}catch(a){throw te(o,!0),a}let r=!t||Object.keys(t).length===0,i=[],s=!1;nf(()=>{if(t.state&&H(n.state)&&n.state.$update(t.state),t.text!==void 0&&(n.text=t.text,!o.__exec.text&&n.node&&sn(n,t.text??"")),t.html!==void 0&&(n.html=t.html,!o.__exec.html&&n.node&&(n.node.innerHTML=t.html)),t.style&&n.node?.style){if(!o.__exec.style){let a=on(n,t.style);for(let l in a){let c=a[l];if(c==null)continue;let f=fe(l),u=String(c).replace(/\s*!important\s*$/,"");n.node.style.setProperty(f,u,"important")}}n.style||(n.style={}),Object.assign(n.style,t.style)}if(t.attr&&n.node?.setAttribute){for(let a in t.attr){let l=t.attr[a];nn(n.node,a,l)}n.attr||(n.attr={}),Object.assign(n.attr,t.attr)}if(t.data&&n.node?.dataset){for(let a in t.data)n.node.dataset[a]=t.data[a];n.data||(n.data={}),Object.assign(n.data,t.data)}if(t.vars&&typeof t.vars=="object"&&!Array.isArray(t.vars)){let a=n.vars&&typeof n.vars=="object"&&!Array.isArray(n.vars)?n.vars:null;n.vars={...a,...t.vars},s=!0}for(let a in t){if(ct.has(a)||a==="state")continue;let l=t[a],c=n[a];if(c&&c.__ref&&typeof c.update=="function")c.update(l,e);else if(typeof l=="object"&&l!==null){let f=a.charCodeAt(0);f>=65&&f<=90&&Et(l,n,a,e)}else a!=="text"&&a!=="html"&&a!=="style"&&a!=="attr"&&a!=="data"&&(n[a]=l,typeof l!="function"&&i.push(a))}});for(let a=0;a<i.length;a++)Va(n,i[a]);if(n.node){let a=s;for(let l=0;!a&&l<i.length;l++)za(i[l])&&(a=!0);a&&Ha(n)}if(n.node&&r&&o.__effects&&o.__effects.length)for(let a=0;a<o.__effects.length;a++){let l=o.__effects[a];l&&!l._disposed&&!l._isSubscribeToEffect&&typeof l._execute=="function"&&l._execute()}else if(n.node&&o.__conditionalRunners)for(let a of o.__conditionalRunners)a();return ae("update",n),!e.preventListeners&&typeof n.onUpdate=="function"&&n.onUpdate(n,n.state,n.context,e),n}var Za=Symbol("handlerChain.none"),Dk=new Set(["inView","leaveView"]),Lk=new Set(["bridgeMount","bridgeUpdate","bridgeDestroy"]),$n=new WeakMap,bh=new WeakMap,tc=!1,Qa=t=>t!==null&&typeof t=="object"&&t.always===!0;function Pk(t){let e=$r(t);return Dk.has(e)?!0:Xe.has(e)&&!Lk.has(e)}var Sh=new Set;function Bk(t){Sh.has(t)}function Xa(t){return t&&typeof t=="object"?{handler:t.handler,options:t}:{handler:t,options:null}}function Uo(t,e){let n={always:t,own:e,list:e?t.concat(e):t,next:null,prims:null,cleared:null},o=function(...i){return Fk(n,this,i)};return $n.set(o,n),tc=!0,o}function Ja(t){let e=bh.get(t);return e||(e=Uo([Xa(t)],null),bh.set(t,e)),e}function Mk(t,e){let n=$n.get(t);if(e==null||e===!1)return n.own?n.cleared||(n.cleared=Uo(n.always,null)):t;if(typeof e!="object"&&typeof e!="function"){let s=n.prims||(n.prims=new Map),a=s.get(e);return a||s.set(e,a=Uo(n.always,Xa(e))),a}let o=n.next||(n.next=new WeakMap),r=o.get(e);if(r)return r;let i=Qa(e)?$n.get(Ja(e)):typeof e=="function"?$n.get(e):void 0;return r=i?Uo(n.always.concat(i.always),i.own):Uo(n.always,Xa(e)),o.set(e,r),r}function Nk(t,e,n){let o=Qa(e),r=!o&&tc&&typeof e=="function"&&$n.has(e);if(!o&&!r&&!Qa(n))return Za;if(!Pk(t))return Bk(t),Za;let i=o?Ja(e):r?e:null;return i?Mk(i,n):Ja(n)}function wh(t,e,n,o){if(!Mt(e))return!1;let r=Nk(e,n,o);return r===Za?!1:(t[e]=r,!0)}function ec(t){if(typeof t=="function"){let e=tc?$n.get(t):void 0;return e?e.list:[{handler:t,options:null}]}return typeof t=="string"?[{handler:t,options:null}]:t&&typeof t=="object"?[{handler:t.handler,options:t}]:[]}function Fk(t,e,n){let o=t.list,r,i=!1,s=null,a=!1,l;for(let c=0;c<o.length;c++){let f=o[c].handler;if(typeof f!="function")continue;let u;try{u=f.apply(e,n)}catch(d){a?console.error("[smbls] lifecycle handler error:",d):(a=!0,l=d);continue}u===!1?i=!0:u&&typeof u.then=="function"&&(s||(s=[])).push(u),r=u}if(a){if(s)for(let c of s)c.then(null,f=>console.error("[smbls] lifecycle handler error:",f));throw l}return i?!1:s?s.length===1?s[0]:jk(s):r}function jk(t){return Promise.allSettled(t).then(e=>{let n=null;for(let o of e)o.status==="rejected"&&(n?console.error("[smbls] lifecycle handler error:",o.reason):n=o);if(n)throw n.reason})}var Wk=1e-6,xh=new WeakMap;function $k(t,e,n){let o=t.defaultView,r=o&&o.IntersectionObserver;if(typeof r!="function")return null;let i=xh.get(t);i||xh.set(t,i=new Map);let s=e+"|"+n,a=i.get(s);if(a)return a;a={id:s,byKey:i,threshold:e,targets:new Map,observer:null};try{let l=n?{threshold:e,rootMargin:n}:{threshold:e};a.observer=new r(c=>Uk(a,c),l)}catch{return null}return i.set(s,a),a}function Uk(t,e){for(let n=0;n<e.length;n++){let o=e[n],r=t.targets.get(o.target);if(!r)continue;let i=!!o.isIntersecting&&o.intersectionRatio>=t.threshold-Wk;if(i===r.inView)continue;r.inView=i;let s=i?"in":"leave",a=r.subs.slice();for(let l=0;l<a.length;l++){let c=a[l];if(!(c.kind!==s||c.dead)){c.once&&Ah(t,r,c);try{c.run(o)}catch(f){zk(f)}}}}}function zk(t){typeof globalThis.reportError=="function"?globalThis.reportError(t):queueMicrotask(()=>{throw t})}function Ah(t,e,n){if(n.dead)return;n.dead=!0;let o=e.subs.indexOf(n);o!==-1&&e.subs.splice(o,1),!e.subs.length&&(t.targets.delete(e.node),t.observer.unobserve(e.node),!t.targets.size&&(t.observer.disconnect(),t.byKey.delete(t.id)))}function kh(t,e,n,o,r){let i=_o(t,r.handler),s=r.options;if(typeof i!="function")return;let a=s&&s.threshold,l=typeof a=="number"&&a>=0&&a<=1?a:0,c=s&&typeof s.rootMargin=="string"?s.rootMargin.trim():"",f=$k(n,l,c);if(!f)return;let u=f.targets.get(e);u||(u={node:e,inView:!1,subs:[]},f.targets.set(e,u),f.observer.observe(e));let d=En(t,i,o==="in"?"onInView":"onLeaveView"),p={kind:o,once:!!(s&&s.once===!0),run:d,dead:!1};u.subs.push(p);let g=t.__ref;g.__eventCleanup||(g.__eventCleanup=[]),g.__eventCleanup.push(()=>Ah(f,u,p))}function Th(t){if(globalThis.__SMBLS_BUILD_DROP_F_viewEvents__)return Y("viewEvents",t);let e=t.node;if(!e||e.nodeType!==1)return;let n=e.ownerDocument,o=n&&n.defaultView;if(!o||typeof o.IntersectionObserver!="function")return;let r=ec(t.onInView);for(let s=0;s<r.length;s++)kh(t,e,n,"in",r[s]);let i=ec(t.onLeaveView);for(let s=0;s<i.length;s++)kh(t,e,n,"leave",i[s])}var zo=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Eh=1e3,Rh=24,nc=Object.freeze({}),ic=Object.freeze({}),Un=0,di=t=>{if(H(t)||zo(t,"__ref"))return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||e===null};function oc(t,e,n){if(t===null||typeof t!="object")return t;if(--Un<0||e>Rh){Un=-1;return}if(Array.isArray(t)){let r=new Array(t.length);for(let i=0;i<t.length;i++)r[i]=n?t[i]:oc(t[i],e+1,!1);return r}if(n||!di(t))return t;let o={};for(let r in t)zo(t,r)&&(o[r]=oc(t[r],e+1,r==="extends"||r==="childExtends"));return o}function Ch(t){Un=Eh;let e;try{e=oc(t,0,!1)}catch{return nc}return Un<0?nc:e}function rc(t,e,n,o){if(t===e)return!0;if(t===null||typeof t!="object"||e===null||typeof e!="object"||--Un<0||n>Rh)return!1;if(Array.isArray(t)){if(!Array.isArray(e)||e.length!==t.length)return!1;for(let i=0;i<t.length;i++)if(o?t[i]!==e[i]:!rc(t[i],e[i],n+1,!1))return!1;return!0}if(o||Array.isArray(e)||!di(t)||!di(e))return!1;let r=0;for(let i in t)if(zo(t,i)&&(r++,!zo(e,i)||!rc(t[i],e[i],n+1,i==="extends"||i==="childExtends")))return!1;for(let i in e)zo(e,i)&&r--;return r===0}function vh(t,e){if(e===nc||e===ic)return!1;Un=Eh;try{return rc(t,e,0,!1)}catch{return!1}}var pi=t=>ie()?bt(()=>Ch(t)):Ch(t),Oh=(t,e)=>ie()?bt(()=>vh(t,e)):vh(t,e);function Ih(t,e,n,o){let r=t;return r&&typeof r=="object"&&!Array.isArray(r)&&!di(r)&&(o||n&&!r.ignoreChildExtends)&&(r=o?Ot({},r):{...r}),typeof e=="function"?{item:r,props:o}:r}var Dh=t=>({childProps:typeof t.childProps=="function"?void 0:t.childProps,childExtends:t.childExtends}),hi=class{constructor(e,n){this.shared=e,this.rows=n}add(e,n,o,r,i){this.rows.set(e,pi(Ih(n,r,i,o.props)))}failed(e){this.rows.set(e,ic)}none(e){this.rows.delete(e)}},Hk=Object.freeze([]);function Vk(t,e,n,o,r){let i=e.__plainRows.rows,s=e.__plainRows.shared,a=Dh(t),l=Oh(a,s),c=t.childProps,f=De(t,"childProps"),u=t.childExtends,d=new Array(n.length),p=new Map;for(let w=0;w<n.length;w++){let x=Ka(t,n[w],w,c,f,u,!1,!0);if(p.has(x.key))return!1;p.set(x.key,x),d[w]=x}for(let w=0;w<d.length;w++){let x=d[w];x.input=Ih(n[w],c,u,x.props);let C=l?i.get(x.key):void 0;if(C===void 0)continue;let v=t[x.key];v&&v.__ref&&v.parent===t&&Oh(x.input,C)&&(x.kept=!0,x.snap=C)}let g=r?[]:null;for(let w of i.keys()){let x=p.get(w);if(x&&x.kept)continue;let C=t[w];C?.remove&&C.remove(),delete t[w],g&&g.push(w)}let h=r?[]:null,_=r?[]:null,y=new Map,b=null,A=null;for(let w=0;w<d.length;w++){let x=d[w];if(x.kept){y.set(x.key,x.snap),_&&_.push(x.key);let T=pe(t[x.key]);T&&(A=fi(t,T,A));continue}y.set(x.key,pi(x.input));let C;try{C=Et(rn(x.def,x.supplied),t,x.key,o,$o(t,A))}catch(T){if(y.set(x.key,ic),b||(b=new Set),b.add(x.key),typeof console<"u"&&console.error){let M=e.path?.join(".")||t.key||"<root>";console.error(`[smbls] child "${x.key}" failed to construct at ${M} (re-run, skipping this row):`,T?.message||T)}Ge(t,{where:"child",key:x.key,error:T});continue}if(e.__disposed)return!0;if(!C){y.delete(x.key);continue}let v=pe(C);v&&(A=v),h&&h.push(x.key)}e.__plainRows=new hi(l?s:pi(a),y);let O=Array.from(y.keys());qa(t,O,b);let m=new Set(e.__children),S=[];for(let w=0;w<O.length;w++)m.has(O[w])&&S.push(O[w]);for(let w of e.__children)y.has(w)||S.push(w);return e.__children=S,r&&(h.length||g.length)&&ti(t,{added:h,removed:g,kept:_}),!0}var Lh={track:t=>new hi(pi(Dh(t)),new Map),reconcile(t,e,n,o,r){let i=Array.isArray(n)?n:n==null||n===!1?Hk:null;return!!i&&Vk(t,e,i,o,r)}};var Gk=new Set(["src","srcset"]),Kk=new Set(["class","style","id","data-br"]),qk=new Set(["sizes","loading","fetchpriority","decoding","crossorigin","referrerpolicy","width","height"]),Yk=new Set(["sizes","media","type","width","height"]),Zk=t=>t==="img"?qk:t==="source"?Yk:null,Qk=t=>t.charCodeAt(0)===97&&t.startsWith("aria-")||t.charCodeAt(0)===100&&t.startsWith("data-")&&t!=="data-br"&&t!=="data-key",Ph=(t,e)=>{for(let n of e){let o=t.nodes.get(n.target);o&&(o.delete(n.attributeName),o.size||t.nodes.delete(n.target))}},Xk=(t,e,n)=>{let o=t.built;if(!o){let r=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.MutationObserver||(typeof MutationObserver=="function"?MutationObserver:null);if(!r)return!1;let i=new Map;o=t.built={nodes:i,observer:null},o.observer=new r(s=>Ph(o,s))}return o.nodes.set(e,new Set(n)),o.observer.observe(e,{attributes:!0,attributeFilter:n}),!0};function Bh(t){let e=t&&t.built;if(!e)return 0;t.built=null,Ph(e,e.observer.takeRecords()),e.observer.disconnect();let n=0;for(let[o,r]of e.nodes)for(let i of r)o.hasAttribute(i)&&(o.removeAttribute(i),n++);return e.nodes.clear(),n}function Mh(t){let e=t?.context?.__hydration;if(!e)return null;let n=t.tag=ve(t);if(n==="string"||n==="fragment")return null;let o=Sr(t),r=e.registry[o===""?"__root":o],i=r!==void 0?e.nodes[r]:null;if(!i||i.nodeType!==1||e.claimed.has(i))return r!==void 0&&e.misses++,null;let s=Ce(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Xt),a=Ce(n)&&!s&&n!=="svg"?"div":n,l=s?i.namespaceURI===Xt:i.namespaceURI!==Xt;if(i.localName!==a||!l)return e.misses++,null;e.claimed.add(i),e.adopted++,t.__ref&&(t.__ref.__adoption="adopted");let c=e.pending;if(c&&c.delete(i)){let p=i.parentNode,g=p?(e.pendingIn.get(p)||1)-1:0;g>0?e.pendingIn.set(p,g):p&&e.pendingIn.delete(p)}let f=null,u=null,d=Zk(i.localName);for(let p of Array.from(i.getAttributeNames?i.getAttributeNames():[]))Gk.has(p)||p==="data-key"||(Kk.has(p)||(u||(u=new Map)).set(p,i.getAttribute(p)),!(d&&d.has(p))&&(Qk(p)?(f||(f=[])).push(p):i.removeAttribute(p)));if(f&&!Xk(e,i,f))for(let p of f)i.removeAttribute(p);if(u&&t.__ref&&(t.__ref.__builtAttrs={node:i,values:u}),c){let p=0,g=0,h=i.firstChild,_=t.text!=null&&h&&h.nodeType===3&&!c.has(h)?h:null;_&&t.__ref&&(t.__ref.__builtText=_);for(let y=i.firstChild;y;){let b=y.nextSibling;y!==_&&!c.has(y)&&(y.nodeType===3?p++:y.nodeType!==8&&g++,i.removeChild(y)),y=b}(g||p>(t.text!=null&&!_?1:0))&&(e.whole||(e.whole=new Set)).add(t)}else for(;i.firstChild;)i.removeChild(i.firstChild);return i.localName==="img"&&i.complete&&i.naturalWidth>0&&tA(i),i}var Jk=500;function tA(t){let e=!1,n=!1,o=r=>{r.isTrusted&&(n?r.stopImmediatePropagation():e=!0,t.removeEventListener("load",o,!0))};t.addEventListener("load",o,!0),setTimeout(()=>{if(!e){if(!(t.complete&&t.naturalWidth>0)){t.removeEventListener("load",o,!0);return}n=!0,t.dispatchEvent(new Event("load")),setTimeout(()=>t.removeEventListener("load",o,!0),Jk)}},0)}function eA(t,e,n,o,r){if(r.parentNode===o&&t.claimed.has(r))return!0;let i=t.pendingIn;if(!i||!i.has(o))return!1;let s,a=n&&n.__ref,l=a&&a.__children,c=l?l.lastIndexOf(e.key):-1;for(let f=c-1;f>=0;f--){let u=n[l[f]],d=u&&u.node;if(d&&d!==r&&d.parentNode===o){s=d.nextSibling;break}}return s===void 0&&(s=wo(o,a&&a.__textNode)),s===r||o.insertBefore(r,s),!0}function nA(t,e){let n=t.whole;if(!n)return!1;if(n.has(e))return!0;let o=e.parent;return!o||!n.has(o)?!1:(n.add(e),!0)}function oA(t,e){let n=e&&e.__ref,o=e&&e.node;if(!n||!o||!t.pending||!t.claimed.has(o))return null;let r=o.parentNode;return r?(t.claimed.delete(o),t.adopted--,t.pending.add(o),t.pendingIn.set(r,(t.pendingIn.get(r)||0)+1),n.__keepNode=!0,o):null}function rA(t,e){if(!e||!t.pending||!t.pending.delete(e))return;let n=e.parentNode;if(n){let o=(t.pendingIn.get(n)||1)-1;o>0?t.pendingIn.set(n,o):t.pendingIn.delete(n),e.remove()}}var Kt="\0",Ho="#";function iA(t){let e=new Set,n=new Map,o=(r,i)=>{let s=r.getAttribute("data-key"),a=s===null?i:i?i+Kt+s:Ho;if(a){let l=a+Kt+r.localName,c=n.get(l)||0;n.set(l,c+1),e.add(l+Kt+c)}for(let l of r.children)o(l,a)};for(let r of t||[])r&&r.nodeType===1&&o(r,"");return{places:e,chains:new WeakMap,taken:new Map,slots:new WeakMap}}var Nh=t=>{let e=[];for(let n=t;n;n=n.parent){let o=n.node,r=o&&o.nodeType===1?o.getAttribute("data-key"):null;r!==null&&e.push(r)}return e.length?(e.pop(),e.length?Ho+Kt+e.reverse().join(Kt):Ho):""};function sA(t,e,n){let o=e.parent,r=o?t.chains.get(o):"";r===void 0&&(r=Nh(o));let i=n.nodeType===1&&e.key?r?r+Kt+e.key:Ho:r;if(t.chains.set(e,i),n.nodeType!==1||!i)return;let s=i+Kt+n.localName,a=t.taken.get(s);a||t.taken.set(s,a=new Set);let l=0;for(;a.has(l);)l++;a.add(l),t.slots.set(e,[s,l]),t.places.has(s+Kt+l)&&e.__ref&&(e.__ref.__adoption="replaced")}function aA(t){let e=t&&t.context;if(!e||!e.__hydration&&!e.__replacing)return null;let n=typeof t.tag=="string"?t.tag:ve(t);if(n==="string"||n==="fragment")return null;let o=Ce(n)&&(n==="svg"||t.parent?.node?.namespaceURI===Xt),r=Ce(n)&&!o&&n!=="svg"?"div":n,i=e.__hydration;if(i){let g=Sr(t),h=i.registry[g===""?"__root":g],_=h!==void 0?i.nodes[h]:null;if(!_||_.nodeType!==1||i.claimed.has(_))return null;let y=o?_.namespaceURI===Xt:_.namespaceURI!==Xt;return _.localName===r&&y?"adopted":null}let s=e.__replacing;if(!t.key)return null;let a=t.parent,l=a?s.chains.get(a):"";l===void 0&&(l=Nh(a));let c=l?l+Kt+t.key:Ho,f=o?r:String(r).toLowerCase(),u=c+Kt+f,d=s.taken.get(u),p=0;for(;d&&d.has(p);)p++;return s.places.has(u+Kt+p)?"replaced":null}function cA(t,e){let n=t.slots.get(e);if(!n)return;t.slots.delete(e);let o=t.taken.get(n[0]);o&&o.delete(n[1])}var Fh={adopt:Mh,place:eA,whole:nA,settle:Bh,handBack:oA,settleHandBack:rA,markReplaced:sA,releaseReplaced:cA,foresee:aA};var Vn=50;function Gn(t){return t===!0?Vn:typeof t=="number"&&t>0?t:0}var qt=[],Hn=!1,Pe=0,he=Vn,Ko=!1,_i=[],yi=typeof performance<"u"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),gi=[],Vo=null;function lA(t){if(!Vo){let e=new MessageChannel;e.port1.onmessage=()=>{let n=gi.shift();!gi.length&&typeof e.port1.unref=="function"&&e.port1.unref(),n&&n()},Vo=e}gi.push(t),gi.length===1&&typeof Vo.port1.ref=="function"&&Vo.port1.ref(),Vo.port2.postMessage(0)}function lc(t){let e=typeof globalThis<"u"?globalThis.scheduler:null;if(e&&typeof e.yield=="function"){e.yield().then(t,t);return}if(typeof setImmediate=="function"){setImmediate(t);return}if(typeof MessageChannel=="function"){lA(t);return}setTimeout(t,0)}function fA(){return new Promise(t=>lc(t))}var Go=0,ac=0,cc=0,zn=0;function fc(){Go=0,ac=Pe,cc=0,zn=0}function jh(){if(!Pe)return!1;if(Go++,zn>0)return zn--,!1;let t=yi(),e=t-Pe,n=e/Go,o=(t-ac)/(Go-cc),r=o>n?o:n;ac=t,cc=Go;let i=he-e-r;return i<=0?(Ko=!0,!0):(zn=r>0?Math.floor(i/r/2):0,!1)}var cn=0;function Wh(t=Vn){cn===0&&!Pe?(Pe=yi(),Ko=!1,he=t,fc()):t<he&&(he=t,zn=0),cn++}var Rt=null,sc=!1,uA=typeof queueMicrotask=="function"?queueMicrotask:t=>Promise.resolve().then(t);function uc(){Pe=0,Ko=!1,he=Vn,fc()}function dA(){sc||(sc=!0,uA(()=>{sc=!1,cn===0&&uc()}))}function $h(){cn>0&&cn--,!(cn!==0||Rt!==null)&&(Hn?dA():uc())}function dc(t,e=Vn,n=null){let o={fn:t,budget:e,lease:n};Rt?Rt.push(o):qt.push(o),Hn||(Hn=!0,lc(zh))}function pc(t){let e=t&&t.context;return e&&e.__mountLease||null}function Uh(t){if(!t)return;let e=0;for(let n=0;n<qt.length;n++){let o=qt[n];o.lease!==t&&(qt[e++]=o)}if(qt.length=e,Rt){let n=0;for(let o=0;o<Rt.length;o++)Rt[o].lease!==t&&(Rt[n++]=Rt[o]);Rt.length=n}typeof t.lost=="function"&&t.lost()}function pA(t){if(t.lease!==null&&!t.lease.live()){Uh(t.lease);return}let e=Rt;Rt=[];try{t.fn()}catch(n){typeof console<"u"&&console.error&&console.error("[smbls] deferred mount chunk failed:",n?.message||n)}finally{let n=Rt;Rt=e,n.length&&qt.unshift(...n)}}function mi(){return!Hn&&!qt.length?Promise.resolve():new Promise(t=>_i.push(t))}function qo(){return!Hn&&!qt.length}function hA(){if(!_i.length)return;let t=_i;_i=[];for(let e=0;e<t.length;e++)t[e]()}function zh(){for(Pe=yi(),Ko=!1,he=1/0,fc();qt.length;){let t=qt.shift();if(t.budget<he&&(he=t.budget,zn=0),pA(t),Ko||yi()-Pe>=he)break}if(cn=0,uc(),qt.length){lc(zh);return}Hn=!1,hA()}function bi(t){Rn(t.__ref).pending++}function jt(t){let e=t&&t.__ref,n=e&&e.__mount;if(!n||!(n.pending>0)||--n.pending>0||e.__disposed)return;let o=n.tail;o&&(n.tail=null,o())}function hc(t){let e=t&&t.__ref&&t.__ref.__mount;return!!(e&&e.tail)}function gc(t){let e=t&&t.__ref&&t.__ref.__mount;return!e||!e.tail?Promise.resolve(t):new Promise(n=>{(e.waiters||(e.waiters=[])).push(n)})}function Si(t,e=t&&t.__ref){let n=e&&e.__mount,o=n&&n.waiters;if(o){n.waiters=null;for(let r=0;r<o.length;r++)o[r](t)}}function Hh(t,e=t&&t.__ref){let n=e&&e.__mount;if(!n||!n.tail)return;n.tail=null,n.pending=0;let o=n.holder;n.holder=null,Si(t,e),o&&jt(o)}function Vh(t,e){let n=e&&e.mountYield;if(!n&&!t.yieldChildren)return 0;let o=I.hydration!==null&&t.context?t.context.__hydration:null;if(o&&I.hydration.whole(o,t))return 0;let r=n?Gn(n):0,i=Gn(t.yieldChildren);return r&&i?r<i?r:i:r||i}function Gh(t,e,n,o,r){Wh(o);try{Kh(t,t.__ref,0,e,n,o,r,!1)}finally{$h()}}function Kh(t,e,n,o,r,i,s,a){try{for(let l=n;l<o;l++){let c=e.__mount,f=c?c.pending:0;if(r(l)===!1)continue;if(e.__disposed)break;let u=jh(),d=e.__mount;if(l+1<o&&(u||(d?d.pending:0)>f)){s&&s.onSuspend&&s.onSuspend(),a||bi(t);let p=l+1;dc(()=>gA(t,e,p,o,r,i,s),i,pc(t));return}}}catch(l){if(!a)throw l;ai(t,l)}a&&jt(t)}function gA(t,e,n,o,r,i,s){if(e.__disposed||s&&s.isStale&&s.isStale()){jt(t);return}Kh(t,e,n,o,r,i,s,!0)}function _A(t,e,n){bi(t),dc(()=>{try{let o=t.__ref;o&&!o.__disposed&&n()}catch(o){ai(t,o)}finally{jt(t)}},e,pc(t))}function yA(t,e,n,o){let r=t.__ref,i=Rn(r),s=++i.chunkGen,a=t.node,l=[],c=!1;Gh(t,e,f=>{let u=n(f,c?$o(t,mA(a,l)):void 0),d=qh(u);return d?l.push(d):u&&u.__ref.__mount&&u.__ref.__mount.held&&l.push(u),u},o,{isStale:()=>i.chunkGen!==s,onSuspend:()=>{c=!0}})}function qh(t){let e=pe(t);if(e)return e;let n=t&&t.__ref;return n&&n.__if!==!1&&t.tag==="fragment"&&n.__fragmentAnchor||null}function mA(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n].__ref?qh(e[n]):e[n];if(o&&o.parentNode===t)return o}return null}function bA(t,e){let n=t.__ref;try{Nn(t,!0),Wp(t),Da(t,e)}finally{Si(t,n);let o=n.__mount,r=o&&o.holder;r&&(o.holder=null,jt(r))}}function SA(t,e,n){let o=Vh(t,null);if(!o)return!1;let r={mountYield:o};e(t,r);let i=t.__ref.__mount;return!i||!(i.pending>0)?(r.mountYield=void 0,n(t),!0):(i.held=!0,i.tail=()=>{let s=t.__ref;i.held=!1,r.mountYield=void 0;try{n(t,s.__if===!1)}finally{Si(t,s)}},!0)}var Yh={open:SA,budgetOf:Vh,run:Gh,rows:yA,defer:_A,hold:bi,finish:bA,abandon:Hh};var wi="--smbls-cvw",wA=/(^|[^\w.-])(-?(?:\d+\.?\d*|\.\d+))[sld]?vw\b/g,Qh=/\d[sld]?vw\b/,Xh=t=>t.replace(wA,"$1calc($2 * var("+wi+"))"),Jh=t=>{if(typeof t=="string")return Qh.test(t)?Xh(t):t;if(!t||typeof t!="object"||Array.isArray(t))return t;let e=null;for(let n in t){let o=t[n],r=n===wi?o:Jh(o);r!==o&&((e||(e=Object.assign({},t)))[n]=r)}return e||t},xA=t=>{let e=Z().cssVars||{},n={[wi]:t},o=[];for(let r in e){let i=e[r];typeof i=="string"&&Qh.test(i)&&(n[r]=Xh(i),o.push(r))}for(let r=0;r<o.length;r++){let i="var("+o[r];for(let s in e){let a=e[s];!(s in n)&&typeof a=="string"&&(a.includes(i+")")||a.includes(i+","))&&(n[s]=a,o.push(s))}}return n},Zh=new WeakSet,tg={on:!1,lengths:Jh,scope(t,e){let n=t.breakpointsFrom,o="1cqi";if(yo(n,t)){this.on=!0;let r=t.node&&t.node.ownerDocument&&t.node.ownerDocument.defaultView||globalThis;if(!Zh.has(r)){Zh.add(r);try{r.CSS.registerProperty({name:wi,syntax:"<length>",inherits:!0,initialValue:"1vw"})}catch{}}}else{try{typeof n=="function"&&(n=n(t,t.state,t.context))}catch{return}if(!this.on||typeof n!="string"||!/^(window|media)$/.test(n.trim()))return;o="1vw"}return e["& > *"]=Object.assign(xA(o),e["& > *"]),!0}};var Ei=3e3,ln="data-smbls-face-wait",Zo="data-smbls-face-gate",kA="firstView",AA=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","math","emoji","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","inherit","initial","unset","revert"]),eg=new WeakMap,qn=new Set,Ai=!1,Ti=0,Tc=t=>String(t||"").trim().replace(/^(["'])(.*)\1$/,"$2").toLowerCase(),Cc=t=>t&&t.defaultView||null;function Ri(t){if(!t)return null;let e=eg.get(t);if(e!==void 0)return e;let n=Cc(t),o=t.fonts;return e=n&&o&&typeof o.forEach=="function"&&typeof n.getComputedStyle=="function"?{doc:t,win:n,fonts:o,waits:new Map,watches:new Map,links:null,observer:null,attributes:null,fontKeys:null,written:null,sheet:null,inline:null,inlineKey:"",table:null,tableSize:0}:null,eg.set(t,e),e}var Yn=t=>{let e=t&&t.node;return e&&e.ownerDocument||t?.context?.document||(typeof document<"u"?document:null)},TA=t=>{let e=[];for(let n of String(t||"U+0-10FFFF").split(",")){let o=/U\+([0-9A-F?]+)(?:-([0-9A-F]+))?/i.exec(n);if(!o)continue;let r=parseInt(o[1].replace(/\?/g,"0"),16),i=parseInt(o[2]||o[1].replace(/\?/g,"F"),16);e.push([r,i])}return e.length?e:[[0,1114111]]},lg=t=>t==="bold"?700:t==="normal"||t==="bolder"||t==="lighter"?400:Number(t)||400,fg=t=>{let e=String(t||"400").trim().split(/\s+/).map(lg);return[e[0],e[1]===void 0?e[0]:e[1]]},vc=t=>{let e=String(t||"normal").trim().toLowerCase();return e.startsWith("italic")?"italic":e.startsWith("oblique")?"oblique":"normal"},Yo=(t,e)=>{let n=new RegExp(`(?:^|[;{\\s])${e}\\s*:\\s*([^;}]+)`,"i").exec(t);return n?n[1].trim():""},ug=(t,e,n,o)=>Tc(t)+"|"+fg(e).join("-")+"|"+vc(n)+"|"+String(o||"U+0-10FFFF").replace(/\s+/g,"").toUpperCase(),ng=new WeakMap;function CA(t){let e=ng.get(t);if(e===void 0){let n=t.cssText||"";e=(t.type===5||/^\s*@font-face/i.test(n))&&/url\(\s*['"]?data:/i.test(Yo(n,"src"))?ug(Yo(n,"font-family"),Yo(n,"font-weight"),Yo(n,"font-style"),Yo(n,"unicode-range")):"",ng.set(t,e)}return e}function vA(t){let e=t.doc.styleSheets,n=(e?e.length:0)+":"+(t.fonts.size||0);if(t.inline&&t.inlineKey===n)return t.inline;let o=new Set;for(let r=0;e&&r<e.length;r++){let i;try{i=e[r].cssRules}catch{continue}for(let s=0;i&&s<i.length;s++){let a=i[s];if(typeof a.type=="number"&&a.type!==5)continue;let l=CA(a);l&&o.add(l)}}return t.inline=o,t.inlineKey=n,o}function yc(t){let e=t.fonts.size||0;if(t.table&&t.tableSize===e)return t.table;let n=new Map,o=0;t.fonts.forEach(i=>{let s=Tc(i.family),a={face:i,order:o++,ranges:TA(i.unicodeRange),weight:fg(i.weight),style:vc(i.style),key:ug(i.family,i.weight,i.style,i.unicodeRange)},l=n.get(s);l?l.push(a):n.set(s,[a])}),t.table=n,t.tableSize=e;let r=()=>{t.table===n&&(t.table=null)};return typeof queueMicrotask=="function"?queueMicrotask(r):Promise.resolve().then(r),n}var OA={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]};function og(t,[e,n]){if(t>=e&&t<=n)return 0;let o=n<t,r=o?t-n:e-t;return t>=400&&t<=500?!o&&e<=500?1e3+r:o?2e3+r:3e3+r:t<400?o?1e3+r:2e3+r:o?2e3+r:1e3+r}function EA(t,e,n){let o=e.weight+"|"+e.style,r=n.get(o);if(r)return r;let i=t;for(let l of OA[e.style]){let c=t.filter(f=>f.style===l);if(c.length){i=c;break}}let s=1/0;for(let l of i)s=Math.min(s,og(e.weight,l.weight));let a=i.filter(l=>og(e.weight,l.weight)===s);return n.set(o,a),a}var RA=(t,e)=>t.ranges.some(([n,o])=>e>=n&&e<=o);function IA(t,e,n,o,r,i,s){for(let a of n){if(AA.has(a))return null;let l=e.get(a);if(!l){i.missing=!0;continue}let c=s.get(a);c||s.set(a,c=new Map);let f=EA(l,o,c).filter(p=>RA(p,r));if(!f.length)continue;if(f.length===1)return f[0].face;let u=vA(t);return(f.find(p=>u.has(p.key))||f[f.length-1]).face}return null}function DA(t,e){let n=[];if(!t||!t.childNodes)return n;if(!e){for(let i of t.childNodes)i.nodeType===3&&i.nodeValue&&n.push(i);return n}let o=t.ownerDocument;if(o&&typeof o.createTreeWalker=="function"){let i=o.createTreeWalker(t,4);for(let s=i.nextNode();s;s=i.nextNode())s.nodeValue&&n.push(s);return n}let r=i=>{for(let s of i.childNodes)s.nodeType===3?s.nodeValue&&n.push(s):r(s)};return r(t),n}var dg=t=>t.fontFamily+"|"+t.fontWeight+"|"+t.fontStyle;function pg(t,e){let n=t.win.getComputedStyle(e);return{key:dg(n),stack:String(n.fontFamily||"").split(",").map(Tc).filter(Boolean),want:{weight:lg(String(n.fontWeight||"400")),style:vc(n.fontStyle)}}}function ki(t,e,n,o=yc(t),r=null){let i={missing:!1},s=new Set,a=new Map;r&&a.set(e,r);let l=new Map;for(let c of DA(e,n)){let f=c.parentNode;if(!f||f.nodeType!==1)continue;let u=a.get(f);if(u||(u=pg(t,f),a.set(f,u)),!u.stack.length)continue;let d=new Set;for(let p of c.nodeValue){let g=p.codePointAt(0);if(g<32||d.has(g))continue;d.add(g);let h=IA(t,o,u.stack,u.want,g,i,l);h&&s.add(h)}}return{faces:[...s],missing:i.missing}}var hg=(t,e)=>e.status==="loaded"||!!(t.waits.get(e)||{}).done;function mc(t,e){let n=t.waits.get(e);return n||(n={done:!1,promise:null},t.waits.set(e,n),n.promise=new Promise(o=>{let r=()=>{n.done=!0,o()};t.win.setTimeout(r,Ei);try{Promise.resolve(e.load()).then(r,r)}catch{r()}})),n.promise}function Ci(t){if(t.links&&t.links.done)return null;let e=t.doc.querySelectorAll?t.doc.querySelectorAll('link[rel="stylesheet"][data-smbls-font]'):[],n=[];for(let o of e)!o.sheet&&!o.hasAttribute("data-smbls-font-done")&&n.push(o);if(!n.length)return null;if(!t.links){let o=t.links={done:!1,promise:null};o.promise=new Promise(r=>{let i=()=>{o.done=!0,r()};t.win.setTimeout(i,Ei);let s=n.length,a=()=>{--s<=0&&i()};for(let l of n)l.addEventListener("load",a,{once:!0}),l.addEventListener("error",a,{once:!0})})}return t.links.promise}function gg(t){if(t.sheet)return;let e=t.doc,n=e.createElement("style");n.setAttribute(ln,""),(e.head||e.documentElement).appendChild(n);let o=n.sheet,r=[`[${ln}="wait"]{visibility:hidden}`,`@media print{[${ln}="wait"]{visibility:visible}}`];if(o&&typeof o.insertRule=="function")for(let i of r)try{o.insertRule(i,o.cssRules.length)}catch{}else n.textContent=r.join("");t.sheet=n}var fn=null;function bc(t,e){if(fn)return void fn.push(()=>bc(t,e));let n=e.node;!n||!n.setAttribute||(gg(t),n.getAttribute(ln)!=="wait"&&n.setAttribute(ln,"wait"))}function Xo(t){if(fn)return void fn.push(()=>Xo(t));let e=t.node;e&&e.removeAttribute&&e.hasAttribute&&e.hasAttribute(ln)&&e.removeAttribute(ln)}var _g=(t,e)=>{try{return t.win.getComputedStyle(e).display==="contents"}catch{return!1}};function yg(t,e){if(typeof e.checkVisibility=="function"){if(e.checkVisibility())return!0}else if(typeof e.getClientRects!="function"||e.getClientRects().length>0)return!0;if(!_g(t,e))return!1;let n=t.doc;if(typeof n.createRange!="function")return!0;let o=n.createRange();return o.selectNodeContents(e),typeof o.getClientRects!="function"||o.getClientRects().length>0}function LA(t,e){let n=t.win.ResizeObserver;return typeof n!="function"?!1:(t.observer||(t.observer=new n(o=>{let r=[];for(let i of o){let s=i.target&&i.target.__smblsFaceWait;if(!s){t.observer.unobserve(i.target);continue}yg(t,i.target)&&(t.observer.unobserve(i.target),i.target.__smblsFaceWait=null,r.push(s))}r.length&&wg(r)})),e.node.__smblsFaceWait=e,t.observer.observe(e.node),!0)}var PA=["class","style","lang"],un=new Set,Sc=new Set,BA=(t,e)=>{try{return dg(t.win.getComputedStyle(e))}catch{return""}};function MA(t,e){if(un.size){for(let n of e){let o=n.target;o&&o.nodeType===1&&t.written.add(o)}t.written.size&&(Oi.add(t),xg(t.win))}}var rg=t=>!!(t.__ref&&t.__ref.__faceWaitSeen)&&!qn.has(t);function NA(t){let e=t.written;if(t.written=new Set,!un.size||!e.size||!t.fontKeys)return;let n=new Map,o=(i,s)=>{if(!rg(s))return;let a=n.get(i);a?a.push(s):n.set(i,[s])};for(let i of e)for(let s=i;s&&s.nodeType===1;s=s.parentNode){let a=s.__smblsFaceArm;a&&(s===i||a.__ref?.__faceWait==="tree")&&o(i,a)}for(let i of un)if(!(!i.node||!rg(i)))for(let s=i.node.parentNode;s&&s.nodeType===1;s=s.parentNode)e.has(s)&&o(s,i);if(!n.size)return;let r=new Set;for(let[i,s]of n){let a=BA(t,i);if(t.fontKeys.get(i)!==a){t.fontKeys.set(i,a);for(let l of s)r.add(l)}}for(let i of r)Be(i)}function FA(t){if(t.attributes)return;let e=t.win.MutationObserver,n=t.doc.documentElement;typeof e!="function"||!n||(t.fontKeys=new WeakMap,t.written=new Set,t.attributes=new e(o=>{try{MA(t,o)}catch{}}),t.attributes.observe(n,{attributes:!0,subtree:!0,attributeFilter:PA}),Sc.add(t))}function jA(){for(let t of Sc)t.attributes.disconnect(),Oi.delete(t),t.written=null,t.attributes=null,t.fontKeys=null;Sc.clear()}var mg=new Set,bg=t=>t.performance&&typeof t.performance.now=="function"?t.performance.now():Date.now();function WA(t){if(ke(t)){let e=Cc(Yn(t)),n=e&&e.performance,o=!1;try{o=!!n&&typeof n.getEntriesByType=="function"&&n.getEntriesByType("paint").length>0}catch{}if(o){let r=Ri(Yn(t));r&&r.gate===void 0&&(r.gate=null);return}}zt(t,()=>UA(t))}function $A(t,e){let n=e.context;if(!n||n.prerendered||e.__ref&&e.__ref.__adoption)return!1;let o=t.doc.documentElement;if(!o||o.hasAttribute("data-smbls-paint-wait"))return!1;let r=e.node;return!r||r.nodeType!==1||typeof r.setAttribute!="function"?!1:typeof t.win.requestAnimationFrame=="function"&&typeof t.win.ResizeObserver=="function"}function UA(t){let e=Ri(Yn(t));if(!e||e.gate!==void 0)return;if(!$A(e,t)){e.gate=null;return}let n=e.gate={open:!0,top:t,node:t.node,timer:0,observer:null,at:bg(e.win),waiting:!1};mg.add(e),gg(e);let o=e.sheet.sheet,r=[`[${Zo}]>*{opacity:0!important}`,`@media print{[${Zo}]>*{opacity:1!important}}`];if(o&&typeof o.insertRule=="function")for(let i of r)try{o.insertRule(i,o.cssRules.length)}catch{}else e.sheet.textContent+=r.join("");n.node.setAttribute(Zo,""),n.timer=e.win.setTimeout(()=>Ec(e),Ei),n.observer=new e.win.ResizeObserver(()=>zA(e)),Oc(e)}function Oc(t){let e=t.gate,n=e.top&&e.top.node;if(!n||n!==e.node||!n.isConnected)return Ec(t);let o=t.doc.documentElement;e.observer.unobserve(o),e.observer.observe(o)}function ig(t){let e=t.gate;t.win.requestAnimationFrame(()=>{e.open&&Oc(t)})}function zA(t){let e=t.gate;if(!e||!e.open||e.waiting)return;if(!qo()||HA(t))return ig(t);let n=t.fonts,o=n.status==="loading"&&n.ready&&typeof n.ready.then=="function"?n.ready:null;if(!o&&!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&(o=Ci(t)),o){e.waiting=!0;let r=()=>{e.waiting=!1,e.open&&Oc(t)};o.then(r,r);return}Ec(t)}function HA(t){let e=t.gate,n=e.top.node;if(!n||bg(t.win)-e.at>Ag)return!1;try{let o=t.win.getComputedStyle(n);if(o.visibility==="hidden"||o.display!=="contents"&&typeof n.checkVisibility=="function"&&!n.checkVisibility())return!0;for(let r=n;r&&r.nodeType===1;r=r.parentNode)if(Number((r===n?o:t.win.getComputedStyle(r)).opacity)===0)return!0}catch{}return!1}function Ec(t){let e=t.gate;if(!e||!e.open)return;e.open=!1,mg.delete(t),t.win.clearTimeout(e.timer),e.observer&&e.observer.disconnect();let n=e.node;n&&n.hasAttribute&&n.hasAttribute(Zo)&&n.removeAttribute(Zo),e.top=null,e.node=null,e.observer=null}function VA(t){let e=t.faceWait;if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=void 0}if(e===!0)return"tree";if(e===!1||t.tag==="string"||t.context?.designSystem?.faceWait!==!0)return null;let n=t.__ref&&t.__ref.__textNode;return n&&n.nodeValue?"own":"late"}var Sg=0;function xi(t,e){!t.__faceWaitLate!=!e&&(t.__faceWaitLate=e||null,Sg+=e?1:-1)}function sg(t){let e=t.__ref;if(!e||!e.__faceWait)return;if(!ke(t)){e.__faceWaitConnect||(e.__faceWaitConnect=!0,zt(t,()=>{e.__faceWaitConnect=!1,Be(t)}));return}let n=Ri(Yn(t));if(!n)return;let o=t.node;FA(n);let r=null;try{r=pg(n,o)}catch{}n.fontKeys&&n.fontKeys.set(o,r?r.key:"");let{faces:i,missing:s}=ki(n,o,e.__faceWait==="tree",GA(n),r),a=i.filter(f=>!hg(n,f)),l=!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&s?Ci(n):null;if(!a.length&&!l)return Xo(t);if(!yg(n,o)&&LA(n,t)){_g(n,o)||bc(n,t);return}bc(n,t);let c=e.__faceWaitToken=(e.__faceWaitToken||0)+1;Promise.all([...a.map(f=>mc(n,f)),l]).then(()=>{e.__faceWaitToken===c&&e.__faceWait&&Be(t)})}var Qo=null;function GA(t){if(!Qo)return yc(t);let e=Qo.get(t);return e||Qo.set(t,e=yc(t)),e}function wg(t){if(fn){for(let n of t)try{sg(n)}catch{Xo(n)}return}Qo=new Map;let e=fn=[];try{for(let n of t)try{sg(n)}catch{Xo(n)}}finally{Qo=null,fn=null;for(let n of e)try{n()}catch{}}}function wc(){Ai=!1;let t=[...qn];qn.clear(),t.length&&wg(t)}var vi=new Map,xc=!1,kc=new Set,KA=(t,e)=>typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(e):-t.setTimeout(e,16);var Oi=new Set;function qA(t,e){let n=t.MessageChannel||(typeof MessageChannel=="function"?MessageChannel:null);if(n){let o=new n;o.port1.onmessage=()=>{o.port1.close(),e()},o.port2.postMessage(0);return}t.setTimeout(e,0)}function xg(t){!t||vi.has(t)||vi.set(t,KA(t,()=>YA(t)))}function YA(t){vi.delete(t),xc=!0;try{for(let e of[...Oi]){Oi.delete(e);try{e.written&&NA(e)}catch{}}wc()}finally{xc=!1}typeof t.requestAnimationFrame=="function"&&(kc.add(t),qA(t,()=>{kc.delete(t)})),qn.size&&kg()}var ZA=t=>!!t&&typeof t.requestAnimationFrame=="function"&&!(t.document&&t.document.visibilityState==="hidden");function kg(){Ai||(Ai=!0,typeof queueMicrotask=="function"?queueMicrotask(wc):Promise.resolve().then(wc))}function Be(t){if(qn.add(t),xc||Ai)return;let e=Cc(Yn(t));if(!vi.has(e)){if(!kc.has(e)&&ZA(e))return xg(e);kg()}}var Ag=1e4,ag=200,QA=t=>!!t.loaded&&typeof t.loaded.then=="function",cg=(t,e)=>{let n=t.watches.get(e);return n||(n=new Promise(o=>{let r=Math.ceil(Ag/ag),i=()=>{if(e.status==="loaded")return o(e);if(r--<=0)return o(null);t.win.setTimeout(i,ag)};i()}),t.watches.set(e,n),n)},Kn=(t,e=[],n=null)=>{let o=e.filter(r=>r.status!=="loaded"&&(r.status==="error"?!!n:QA(r)));return Object.defineProperty(t,"late",{value:o.length?Promise.all(o.map(r=>r.status==="error"?cg(n,r):r.loaded.then(()=>r,()=>n?cg(n,r):null))).then(r=>r.filter(Boolean)):null}),t};function XA(t){return new Promise(e=>{try{let n=Yn(t),o=Ri(n);if(!o||!t.node)return e(Kn([]));let r=()=>{let{faces:a}=ki(o,t.node,!0);return Kn(a.filter(l=>l.status==="loaded"),a,o)},i=()=>{let{faces:a,missing:l}=ki(o,t.node,!0);if(!a.length&&!l)return e(Kn([]));let c=a.filter(d=>d.status!=="loaded");if(!c.length&&!(!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&l&&Ci(o)))return e(Kn(a));if(t.__ref&&t.__ref.__adoption==="adopted"&&"__smblsFacesReady"in o.win){Promise.resolve(o.win.__smblsFacesReady).then(()=>e(r()),()=>e(r()));return}let u=!globalThis.__SMBLS_BUILD_DROP_F_faceWaitLinks__&&l?Ci(o):null;Promise.all([...c.map(d=>mc(o,d)),u]).then(()=>{if(!u)return e(r());let d=ki(o,t.node,!0).faces.filter(p=>!hg(o,p));Promise.all(d.map(p=>mc(o,p))).then(()=>e(r()))},()=>e(r()))};if(ke(t))return i();let s=!1;o.win.setTimeout(()=>{s||(s=!0,e(Kn([])))},Ei),zt(t,()=>{s||(s=!0,i())})}catch{e(Kn([]))}})}var Tg={get active(){return Ti>0||Ac>0||Sg>0},rendered(t){let e=t.__ref;if(!e)return;(!t.parent||!t.parent.__ref)&&t.context?.designSystem?.faceWait===kA&&(t.context.key===void 0||t.key===t.context.key)&&(globalThis.__SMBLS_BUILD_DROP_F_faceWaitFirstView__?Y("faceWaitFirstView",t):WA(t));let n=VA(t);if(n==="late"?(xi(e,!0),n=null):e.__faceWaitLate&&xi(e,!1),!(!n&&!e.__faceWait)){if(n!==e.__faceWait&&_c(t,n),!n)return Xo(t);if(e.__adoption==="adopted"&&!e.__faceWaitSeen){e.__faceWaitSeen=!0;return}e.__faceWaitSeen=!0,Be(t)}},text(t){let e=t.__ref;if(e&&e.__faceWaitLate){let n=e.__textNode;n&&n.nodeValue&&(xi(e,!1),_c(t,"own"),e.__faceWaitSeen=!0,Be(t))}else e&&e.__faceWait&&e.__faceWaitSeen&&Be(t);if(Ti)for(let n=t.parent;n;n=n.parent){let o=n.__ref;o&&o.__faceWait==="tree"&&o.__faceWaitSeen&&Be(n)}},ready:XA,recheck(t){let e=t&&t.node;for(let n of un)(n===t||e&&n.node&&e.contains(n.node))&&(n.__ref&&(n.__ref.__faceWaitSeen=!0),Be(n))},dispose(t){let e=t.__ref;e&&e.__faceWait&&_c(t,null),e&&e.__faceWaitLate&&xi(e,!1),qn.delete(t)}},Ac=0;function _c(t,e){let n=t.__ref,o=n.__faceWait;o==="tree"?Ti--:o==="own"&&Ac--,e==="tree"?Ti++:e==="own"&&Ac++,n.__faceWait=e||null;let r=t.node;e?(un.add(t),r&&(r.__smblsFaceArm=t)):(un.delete(t),n.__faceWaitToken=(n.__faceWaitToken||0)+1,r&&r.__smblsFaceWait&&(r.__smblsFaceWait=null),r&&r.__smblsFaceArm===t&&(r.__smblsFaceArm=null),un.size||jA())}function Cg(){I.viewEvents=Th,I.chains=wh,I.rows=Lh,I.hydration=globalThis.__SMBLS_BUILD_DROP_F_prerender__?null:Fh,I.mount=Yh,I.containerVw=globalThis.__SMBLS_BUILD_DROP_F_containerVw__?null:tg,I.faceWait=globalThis.__SMBLS_BUILD_DROP_F_faceWait__?null:Tg}Cg();var dn="inertOutside",tT=new Set(["SCRIPT","STYLE","LINK","META","TEMPLATE","NOSCRIPT","BASE","TITLE"]),eT='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',nT={attributes:!0,attributeFilter:["inert"]},vg=new WeakMap,Og=new WeakMap,Jo=new Set,Eg=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);function Me(t){try{return bt(t)}catch(e){console.error("[smbls] inertOutside:",e)}}function Rg(t){let e=()=>Me(t);typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e)}function oT(t){if(!t||!t.defaultView||!("activeElement"in t))return null;let e=vg.get(t);if(e)return e;let n=t.defaultView.MutationObserver||globalThis.MutationObserver;return typeof n!="function"?null:(e={doc:t,layers:[],held:new Map,top:null,observer:null},e.observer=new n(o=>Me(()=>Ii(e,o))),vg.set(t,e),e)}function Rc(t,e){let n=t.element.node;return!!n&&n.nodeType===1&&n.isConnected&&n.ownerDocument===e}function rT(t){let e=t.activeElement;return e&&e!==t.body&&e!==t.documentElement?e:null}var Ig=t=>!!(t.closest&&t.closest("[inert]"));function iT(t){let e=t.ownerDocument,n=new Set,o=[];for(let r=t;r!==e.body;r=r.parentNode){let i=r.parentNode;if(!i||i.nodeType!==1||i===e.documentElement)break;o.push(i);for(let s=i.firstElementChild;s;s=s.nextElementSibling)s!==r&&!tT.has(s.tagName)&&n.add(s)}return{outside:n,parents:o}}function Dg(t,e){for(let n=0;n<e.length;n++){let{type:o,target:r}=e[n];o==="attributes"&&t.held.has(r)&&t.held.set(r,!r.hasAttribute("inert"))}}function Ii(t,e){let{doc:n,held:o,observer:r}=t;e&&Dg(t,e),Dg(t,r.takeRecords());let i=t.top,s=[];for(let u of t.layers){let d=Rc(u,n);d&&!u.live&&(s.push(u),u.returnFocus=rT(n)),u.live=d}s.length&&(t.layers=t.layers.filter(u=>!s.includes(u)).concat(s));let a=null;for(let u=t.layers.length-1;u>=0&&!a;u--)t.layers[u].live&&(a=t.layers[u]);t.top=a;let{outside:l,parents:c}=a?iT(a.element.node):{outside:new Set,parents:[]};for(let[u,d]of o)l.has(u)||(d&&u.removeAttribute("inert"),o.delete(u));for(let u of l)o.has(u)||o.set(u,!1),u.hasAttribute("inert")||(u.setAttribute("inert",""),o.set(u,!0));r.takeRecords(),r.disconnect();for(let u of c)r.observe(u,{childList:!0});for(let u of o.keys())r.observe(u,nT);t.layers.some(u=>!u.live)?Jo.add(t):Jo.delete(t);for(let u of t.layers)!u.live&&!u.connecting&&!ke(u.element)&&(u.connecting=!0,zt(u.element,()=>Me(()=>{u.connecting=!1,u.declared&&!u.live&&Rc(u,t.doc)&&Ii(t)})));if(a===i)return;let f=i&&!(i.declared&&i.live)?i:null;if(a&&s.includes(a))f&&f.returnFocus&&(a.returnFocus=f.returnFocus),Rg(()=>Pg(t,a));else if(f){let u=f.returnFocus;Rg(()=>sT(t,f,u))}f&&(f.returnFocus=null)}function Pg(t,e){let n=e.element.node;if(t.top!==e||!n||!n.isConnected)return;let o=t.doc,r=o.activeElement;if(r&&n.contains(r))return;let i=new Set,s=(a,l)=>{if(i.has(a)||(i.add(a),a.matches(":disabled")))return!1;let c=l&&a.getAttribute("tabindex");return c&&parseInt(c,10)<0?!1:(a.focus(),o.activeElement===a)};for(let a of n.querySelectorAll("[autofocus]"))if(s(a,!1))return;for(let a of n.querySelectorAll(eT))if(s(a,!0))return;r&&r!==o.body&&typeof r.blur=="function"&&r.blur()}function sT(t,e,n){if(e.declared&&e.live)return;let o=t.doc,r=o.activeElement,i=e.element.node;(!r||r===o.body||i&&i.contains(r)||Ig(r))&&(n&&n.isConnected&&n.ownerDocument===o&&!Ig(n)&&(n.focus({preventScroll:!0}),o.activeElement===n)||t.top&&Pg(t,t.top))}function Ic(t,e){if(t.declared===e)return;let n=t.manager;if(t.declared=e,t.live=!1,e)n.layers.push(t);else{let o=n.layers.indexOf(t);o!==-1&&n.layers.splice(o,1)}Ii(n)}function Bg(t){let e=t[dn];if(typeof e=="function")try{e=e(t,t.state,t.context)}catch{e=!1}return!!e}function Lg(t){let e=Og.get(t);if(e)return e;let n=t.__ref,o=t.node;if(!n||!o||o.nodeType!==1)return null;let r=oT(o.ownerDocument);if(!r)return null;e={element:t,manager:r,declared:!1,live:!1,connecting:!1,returnFocus:null},Og.set(t,e);let i=P(()=>{let s=Bg(t);Me(()=>Ic(e,s))},{depth:n.path.length,label:()=>n.path.join(".")+"::"+dn});return n.__effects||(n.__effects=[]),n.__effects.push(i),n.__eventCleanup||(n.__eventCleanup=[]),n.__eventCleanup.push(()=>Me(()=>Ic(e,!1))),e}function aT(){for(let t of Jo){if(!t.doc.defaultView){Jo.delete(t);continue}t.layers.some(e=>!e.live&&Rc(e,t.doc))&&Ii(t)}}var cT={name:dn,create(t){if(Eg(t,dn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Y(dn,t);Me(()=>Lg(t))}},render(){globalThis.__SMBLS_BUILD_DROP_F_inertOutside__||Jo.size&&Me(aT)},update(t){if(Eg(t,dn)){if(globalThis.__SMBLS_BUILD_DROP_F_inertOutside__)return Y(dn,t);Me(()=>{let e=Lg(t);e&&Ic(e,Bg(t))})}}};var iC=/*@__PURE__*/__smblsNs({},{default:()=>rC,getActiveRoute:()=>D_,lastLevel:()=>tl,lastPathname:()=>ir,loadLazy:()=>p_,matchRoute:()=>C_,parseQuery:()=>O_,parseRoutePattern:()=>Xc,resolveRouterElement:()=>I_,router:()=>Fe,runGuards:()=>$T,saveScrollPosition:()=>Qg});var Dc="__smblsRouter",Lc=new WeakMap,fT=0,Pc=()=>Date.now().toString(36)+(++fT).toString(36)+Math.random().toString(36).slice(2,6),Bc=t=>{try{let e=t&&t.history;if(e&&typeof e.pushState=="function"&&typeof e.replaceState=="function"&&typeof e.go=="function")return e}catch{}return null},ge=t=>{try{return t.state}catch{return}},er=t=>{try{let{pathname:e,search:n,hash:o}=t.location;return e+n+o}catch{return null}},jg=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;let e=Object.getPrototypeOf(t);return e===null||Object.getPrototypeOf(e)===null},Wg=t=>{let e=jg(t)?t[Dc]:null;return e&&typeof e.key=="string"&&typeof e.chain=="string"&&Number.isInteger(e.index)?e:null},Mc=(t,e)=>t==null?{[Dc]:e}:jg(t)?{...t,[Dc]:e}:null,Nc=()=>({key:Pc(),index:0,chain:Pc()}),Zn=(t,e)=>{let n=Wg(e);return{key:n?n.key:null,index:n?n.index:null,chain:n?n.chain:null,url:er(t),state:e}},$g=(t,e)=>{let n=Wg(t);return e.key?!!n&&n.key===e.key:!n&&t===e.state},tr=(t,e,n)=>!!n&&er(t)===n.url&&$g(e,n),Fc=(t,e,n)=>({...t,url:e,state:n}),jc=(t,e)=>{let n=ge(e),o=Zn(t,n);if(o.key)return o;let r=Nc(),i=Mc(n,r);if(!i)return o;try{e.replaceState(i,null)}catch{return o}return Fc(r,o.url,i)},uT=(t,e)=>{let n=Lc.get(t);return!n&&e&&(n={current:null,pending:null,expect:null,seq:0,pops:new WeakMap,positions:null,scrollNode:null,restore:null},Lc.set(t,n)),n||null},Ug="smbls.router.scroll",Mg=100,dT=1e3,Ng=["wheel","touchstart","keydown","pointerdown"],zg=t=>{try{return t.sessionStorage||null}catch{return null}},Hg=t=>{try{let e=JSON.parse(t.getItem(Ug)||"[]");return Array.isArray(e)?e.filter(n=>Array.isArray(n)&&typeof n[0]=="string"):[]}catch{return[]}},Vg=(t,e)=>{if(!t.positions){t.positions=new Map;let n=zg(e);if(n)for(let[o,r]of Hg(n))r&&Number.isFinite(r.top)&&Number.isFinite(r.left)&&t.positions.set(o,{top:r.top,left:r.left})}return t.positions},Wc=(t,e,n,o)=>{let r=Vg(t,e);r.delete(n),r.set(n,{top:Math.round(Number(o.scrollTop)||0),left:Math.round(Number(o.scrollLeft)||0)}),r.size>Mg&&r.delete(r.keys().next().value);let i=zg(e);if(i)try{let s=new Map(Hg(i));for(let[a,l]of r)s.delete(a),s.set(a,l);i.setItem(Ug,JSON.stringify(Array.from(s).slice(-Mg)))}catch{}},Fg=(t,e,n)=>{(!e||e.visibilityState!=="hidden")&&typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame(n):typeof t.setTimeout=="function"?t.setTimeout(n,16):setTimeout(n,16)},pT=(t,e,n,o,r,i,s)=>{n.restore&&n.restore.end("replaced"),n.restore=o;let a=typeof s=="number"&&s>=0?s:dT,l=()=>Math.max(0,(Number(r.scrollHeight)||0)-(Number(r.clientHeight)||0)),c=(h,_)=>{typeof r.scrollTo=="function"?r.scrollTo({top:h,left:_,behavior:"instant"}):(r.scrollTop=h,r.scrollLeft=_)},f=typeof t.addEventListener=="function",u=()=>o.end("visitor");if(o.end=h=>{if(!o.outcome&&(o.outcome=h,f))for(let _ of Ng)t.removeEventListener(_,u,!0)},l()>=i.top-1)return c(i.top,i.left),o.end("placed");Number(r.scrollTop)>0&&c(0,0);let d=Number(r.scrollTop)||0,p=Date.now();if(f)for(let h of Ng)t.addEventListener(h,u,{capture:!0,passive:!0});let g=()=>{if(o.outcome)return;if(n.seq!==o.seq)return o.end("overtaken");if(Math.abs((Number(r.scrollTop)||0)-d)>1)return o.end("visitor");let h=l()>=i.top-1;if(!h&&Date.now()-p<a)return Fg(t,e,g);c(Math.min(i.top,l()),i.left),o.end(h?"placed":"clamped")};Fg(t,e,g)},hT=(t,e)=>{let{win:n,history:o,track:r}=t,i=r.pops.get(e);if(i)return i;let s=Zn(n,ge(o)),a=r.expect;r.expect=null;let l;if(a&&s.key===a.key&&s.url===a.url)l={echo:!0};else{let c=r.current,f=!!(s.key&&c&&c.key===s.key),u=f?null:c;u&&u.key&&t.scrollNode&&Wc(r,n,u.key,t.scrollNode),l={to:s,from:u,stay:f,seq:r.seq,settled:!1,committed:!1},r.pending=l}return r.pops.set(e,l),l},gT=t=>{let{win:e,history:n,track:o}=t,r=ge(n);if(o.pending&&tr(e,r,o.pending.to)||o.expect&&tr(e,r,o.expect.away))return;let i=o.current;if(i&&(i.key?$g(r,i):tr(e,r,i))){i.url=er(e),i.state=r;return}o.current=t.restore?jc(e,n):Zn(e,r),o.pending=null,o.seq++},Gg=(t,e,n)=>{let o=e.scrollRestoration==="restore",r=Bc(t),i=o||Array.isArray(e.guards)&&e.guards.length>0,s=r&&uT(r,i);if(!s)return null;let a={win:t,history:r,track:s,restore:o,scrollNode:o&&n?n:null,pop:null};a.scrollNode&&(s.scrollNode=a.scrollNode);let l=e.event;return l&&l.type==="popstate"?a.pop=hT(a,l):gT(a),a},Di=(t,e)=>{e.settled=!0,t.pending===e&&(t.pending=null)},$c=t=>{let e=t&&t.pop;if(!e||e.echo)return!0;if(e.settled)return e.committed;let{win:n,history:o,track:r}=t;return Di(r,e),r.seq!==e.seq||!tr(n,ge(o),e.to)?!1:(r.current=t.restore&&!e.to.key?jc(n,o):e.to,r.seq++,e.committed=!0,!0)},Kg=t=>{let e=t&&t.pop;e&&!e.echo&&!e.settled&&Di(t.track,e)},_T=(t,e,n)=>{try{t.addEventListener("popstate",()=>{e.expect===n&&(e.expect=null)},{once:!0})}catch{}},Uc=(t,e)=>{let n=t&&t.pop;if(!n||n.echo||n.settled)return;let{win:o,history:r,track:i}=t;Di(i,n);let s=n.from;if(!s||i.seq!==n.seq||!tr(o,ge(r),n.to))return;let a=n.to;if(!e&&s.key&&a.key&&s.chain===a.chain&&s.index!==a.index){let f=i.expect={key:s.key,url:s.url,away:a};_T(o,i,f);try{r.go(s.index-a.index)}catch{i.expect=null}return}let l=Nc(),c=Mc(s.state,l);try{r.replaceState(c||s.state,null,s.url)}catch{return}i.current=c?Fc(l,s.url,c):Zn(o,ge(r)),i.seq++},qg=(t,e)=>{let n=er(e);t&&n!==null&&(t.__routerAddress=n)},zc=(t,e,n)=>{let o=t&&t.pop;if(o&&!o.echo&&o.from)return Uc(t,!0);o&&!o.settled&&Di(t.track,o);let r=Bc(n),i=e&&e.__routerAddress;if(!(!r||!i||i===er(n)))try{r.replaceState(ge(r),null,i)}catch{}},Yg=(t,e,n,o,r=t&&t.win)=>{if(!t){try{o?r.history.replaceState(e,null,n):r.history.pushState(e,null,n)}catch{}return}let{history:i,track:s}=t,a=s.current;!o&&a&&a.key&&t.scrollNode&&Wc(s,r,a.key,t.scrollNode);let l=o?Zn(r,ge(i)):jc(r,i),c=l.key?o?{key:l.key,index:l.index,chain:l.chain}:{key:Pc(),index:l.index+1,chain:l.chain}:Nc(),f=Mc(e,c);try{o?i.replaceState(f||e,null,n):i.pushState(f||e,null,n)}catch{return}s.current=f?Fc(c,n,f):Zn(r,ge(i)),s.pending=null,s.expect=null,s.seq++},Zg=(t,e,n,o)=>{if(!t||!t.restore||!e)return!1;let r=t.pop;if(r?r.stay||!r.committed:!n.initialRender)return!1;let{win:i,track:s}=t,a=s.current,l=a&&a.key&&Vg(s,i).get(a.key);if(!l)return!1;let c=s.restore;return!!c&&c.key===a.key&&(r?c.pop===r:!c.pop&&c.seq===s.seq)&&c.outcome==="visitor"||pT(i,o,s,{key:a.key,pop:r,seq:s.seq,outcome:null},e,l,n.scrollRestoreTimeout),!0},Qg=t=>{let e=Bc(t),n=e&&Lc.get(e);!n||!n.scrollNode||!n.current||!n.current.key||Wc(n,t,n.current.key,n.scrollNode)};var e_=["components","functions","methods","snippets"],n_=new Set(["pages",...e_]),Hc=new Set(["default","__esModule"]),Ne=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),tt=t=>!!t&&typeof t=="object"&&!Array.isArray(t),Li=new WeakMap,Xg=new WeakMap,Vc=new WeakMap,Jg=new Set,nr=(t,e=console.warn)=>{Jg.has(t)||(Jg.add(t),e(t))},o_=t=>tt(t&&t.lazy),r_=(t,e)=>{let n=t&&t.lazy;return tt(n)&&Ne(n,e)?n[e]:void 0},or=(t,e)=>{let n=r_(t,e);return tt(n)&&Ne(n,"load")?n.load:n},yT=(t,e)=>{let n=r_(t,e);return tt(n)&&typeof n.when=="function"?n.when:null},mT=t=>{let e=new Error(`[smbls/router] lazy group "${t}" waits: its \`when\` said false \u2014 nothing was requested`);return e.code="LAZY_WAITING",e},Gc=(t,e)=>{let n=Li.get(t);n||(Li.set(t,n=new Map),t.__teardowns=t.__teardowns||[],t.__teardowns.push(()=>{for(let r of n.values())r.disposed=!0,r.waiting.clear();Li.delete(t)}));let o=n.get(e);return o||(o={status:"idle",attempts:0,promise:null,failure:null,disposed:!1,pages:null,waiting:new Set,maps:new Set},n.set(e,o)),o},i_=(t,e)=>!o_(e)||!tt(t)||!Ne(t,"lazy")?null:typeof t.lazy=="string"&&t.lazy?t.lazy:null,Bi=t=>!globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__&&!!t&&typeof t=="object"&&Vc.has(t),s_=(t,e)=>(t&&t.lazy&&typeof t.lazy=="object"&&Y("lazyRoutes",e),null),a_=t=>t&&(t.status==="error"||t.status==="reload"||t.status==="waiting")?t.status:"loading",bT=(t,e)=>typeof or(t,e)!="function"?"error":a_(Li.get(t)?.get(e)),ST=(t,e)=>{let n=Xg.get(t);if(n&&n.group===e)return n;let{lazy:o,state:r,...i}=t,s=r==null||tt(r)||typeof r=="function";s?i.state=(l,c)=>{let f=typeof r=="function"?r(l,c):r;return{...tt(f)?f:null,lazyStatus:bT(l.context,e)}}:i.state=r;let a={definition:i,group:e,hasStatus:s};return Xg.set(t,a),Vc.set(i,a),a},wT=t=>t.__ref&&t.__ref.contentElementKey||"content",Qn=(t,e)=>{let n=t&&t.__ref&&t.__ref.__routerRendered,o=n&&Bi(n.content)?Vc.get(n.content):null;return!o||o.group!==e?null:{record:o,page:t[wT(t)]}},Pi=(t,e,n)=>{let o=Qn(t,e);if(!o||!o.record.hasStatus)return;let r=o.page&&o.page.state;if(!(!r||typeof r.update!="function"||r.lazyStatus===n))try{r.update({lazyStatus:n})}catch(i){console.error(`[smbls/router] lazy group "${e}": could not show the "${n}" status on its placeholder`,i)}},xT=t=>tt(t)?!Object.keys(t).some(n=>n_.has(n))&&tt(t.default)?t.default:t:{},kT=t=>{let e={};if(!tt(t))return e;for(let n of Object.keys(t)){if(Hc.has(n))continue;let o=n.charCodeAt(0)===47,r=o?n:"/"+(n==="index"?"":n);(o||!Ne(e,r))&&(e[r]=t[n])}return e},c_=(t,e,n,o,r)=>{if(!tt(t))return 0;let i=0;for(let s of Object.keys(t))i_(t[s],o)===e&&(i++,Ne(n,s)?t[s]=n[s]:delete t[s]);for(let s of Object.keys(n))Ne(t,s)?t[s]!==n[s]&&r.push(`pages['${s}']`):t[s]=n[s];return i},t_=(t,e,n)=>{let o=t[e];if(!tt(o)){t[e]={...n};return}try{for(let r in n)o[r]=n[r];if(Object.keys(n).every(r=>o[r]===n[r]))return}catch{}t[e]={...o,...n}},AT=t=>{let e=t.__ref&&t.__ref.origin;if(!tt(e))return[];let n=[].concat(e.extends||[],e.extend||[]);if(n.length)return n.filter(i=>typeof i=="string").map(i=>(i.includes(">")?i.split(">")[0]:i).trim());let o=t.key;if(typeof o!="string"||!/^[A-Z]/.test(o))return[];let r=[o.indexOf("_"),o.indexOf(".")].filter(i=>i>0);return[r.length?o.slice(0,Math.min(...r)):o]},TT=(t,e,n,o)=>{let r=new Set;for(let s of o.waiting){let a=Qn(s,e);a&&a.page&&r.add(a.page)}let i=s=>{let a=s&&s.__ref&&s.__ref.__children;if(Array.isArray(a))for(let l of a){let c=s[l];if(!(!c||!c.__ref||r.has(c)||!c.node)){for(let f of AT(c)){if(!n.has(f))continue;let u=(c.__ref.path||[c.key]).join(" \u203A ");nr(`[smbls/router] lazy group "${e}": ${u} was built before the group loaded, so it renders without "${f}". A built element never takes a later registration \u2014 build it after el.call('loadLazy', '${e}') resolves (an \`if:\` gate does that), or keep "${f}" out of the group.`)}i(c)}}};i(t)},CT=(t,e,n,o)=>{let r=t.context,i=xT(n),s=!1,a=[],l=new Set;if(s)for(let p of Object.keys(i))n_.has(p)||Hc.has(p)||nr(`[smbls/router] lazy group "${e}" exports \`${p}\`, which a lazy group cannot add \u2014 it adds pages, components, functions, methods and snippets only. Declare the rest with the app.`);let c=!1;for(let p of e_){let g=i[p];if(!tt(g))continue;let h=tt(r[p])?r[p]:{},_={};for(let b of Object.keys(g))if(!Hc.has(b)){if(Ne(h,b)){h[b]!==g[b]&&a.push(`${p}.${b}`);continue}_[b]=g[b]}let y=Object.keys(_);if(y.length&&(t_(r,p,_),p==="components"&&y.forEach(b=>l.add(b)),p==="methods"&&(c=!0),(p==="functions"||p==="snippets")&&tt(r.utils))){let b={};for(let A of y)Ne(r.utils,A)||(b[A]=_[A]);Object.keys(b).length&&t_(r,"utils",b)}}c&&ca(r);let f=kT(i.pages);o.pages=f;let u=null;try{u=typeof t.getRoot=="function"?t.getRoot():null}catch{}let d=new Set;tt(r.pages)&&d.add(r.pages),u&&tt(u.routes)&&d.add(u.routes);for(let p of o.maps)d.add(p);for(let p of o.waiting)tt(p.routes)&&d.add(p.routes);for(let p of d)c_(p,e,f,r,a);s&&a.length&&nr(`[smbls/router] lazy group "${e}" redefines ${a.join(", ")}, which the app already has \u2014 the app's own value stays. Rename them: frank refuses the same collision at \`smbls push\`.`),s&&l.size&&u&&TT(u,e,l,o)},l_=(t,e)=>{let n=t&&t.__ref,o=n&&n.__lazyRoute;if(!o||o.group!==e||(n.__lazyRoute=null,typeof t.set!="function")||!Qn(t,e))return;let r=()=>o.rerender({pushState:!1,replace:!1,scrollToTop:!1,guards:[],lazy:{group:e,status:"loaded"}}),i=()=>{o.first&&!Qn(t,e)&&f_(t.context,e)};Promise.resolve().then(r).then(i).catch(s=>console.error(`[smbls/router] lazy group "${e}" loaded, but its route failed to render`,s))},rr=t=>!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function",vT=(t,e,n)=>!!t&&(rr(e)&&e===t.returned||!!n&&typeof n=="object"&&n===t.error),Kc=(t,e)=>{let n=t.context,o=Gc(n,e);if(o.status==="loading"||o.status==="loaded")return o.promise;let r=or(n,e),i=yT(n,e),s=o.failure;o.status="loading";let a,l=!1,c=!1,f=()=>i?i(t):!0,u=p=>{if(p===!1)throw c=!0,mT(e);return a=r(o.attempts++)},d=Promise.resolve().then(f).then(u).then(p=>{l=!0,o.disposed||CT(t,e,p,o)}).then(()=>{o.status="loaded",o.failure=null;let p=[...o.waiting];o.waiting.clear();for(let g of p)l_(g,e)},p=>{if(c){if(o.status="waiting",o.promise=null,o.disposed)throw p;for(let h of[...o.waiting])Qn(h,e)?Pi(h,e,"waiting"):o.waiting.delete(h);throw p}let g=!l&&vT(s,a,p);if(o.failure=l?null:{returned:a,error:p},o.status=g?"reload":"error",o.promise=null,o.disposed)throw p;g?nr(`[smbls/router] lazy group "${e}" cannot load in this page: its loader handed back the import that already failed (the same promise or the same error) and requested nothing \u2014 a bundler that keeps a failed dynamic import (parcel) does this. Its routes show their placeholder with lazyStatus 'reload'; reloading the page loads the group.`,h=>console.error(h,p)):console.error(`[smbls/router] lazy group "${e}" failed to load. Its routes show their placeholder with lazyStatus 'error'; the next navigation to one of them, or loadLazy('${e}'), calls the group's loader again.`,p);for(let h of[...o.waiting])Qn(h,e)?Pi(h,e,o.status):o.waiting.delete(h);throw p});d.catch(()=>{}),o.promise=d;for(let p of o.waiting)Pi(p,e,"loading");return d},OT=(t,e)=>{let n=t&&t.lazyFirstView;return n===!0||Array.isArray(n)&&n.includes(e)},f_=(t,e)=>{t&&(t.__lazyFirstViews||(t.__lazyFirstViews=new Set),t.__lazyFirstViews.add(e))},ET=(t,e)=>{let n=t.context,o=()=>(f_(n,e),!0),r=()=>!1;return Promise.resolve(Kc(t,e)).then(o,r)},u_=(t,e,n,o=null)=>{let r=e&&e.context;if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return s_(r,e);let i=i_(t,r);if(!i)return null;let s=Gc(r,i);if(tt(n)&&s.maps.add(n),s.status==="loaded"&&c_(n,i,s.pages||{},r,[])>0)return{rematch:!0};let a=typeof or(r,i)=="function";if(a&&o&&o.initialRender&&!o.__lazyAwaited&&OT(r,i))return{wait:ET(e,i),group:i};let l=o&&o.__lazyAwaited&&(s.status==="error"||s.status==="reload"||s.status==="waiting");return a&&!l?Kc(e,i):nr(`[smbls/router] a route names lazy group "${i}", which context.lazy does not declare as a loader (\`lazy: { ${i}: () => import('./\u2026') }\`) \u2014 it shows its placeholder in the error state.`,console.error),{content:ST(t,i).definition,group:i,status:a?"loading":"error",first:!!(o&&o.initialRender)}},d_=(t,e,n)=>{if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__||!e||!e.group||e.status==="error")return;let o=t.context,r=t.__ref;if(!r||typeof or(o,e.group)!="function")return;let i=Gc(o,e.group);if(r.__lazyRoute={group:e.group,rerender:n,first:!!e.first},Pi(t,e.group,a_(i)),i.status==="loaded"){let s=()=>l_(t,e.group);Promise.resolve().then(s);return}i.waiting.add(t)};function p_(t){let e=this,n=e&&e.context;if(!n)return Promise.reject(new TypeError("[smbls/router] loadLazy runs on an element: el.call('loadLazy', name)"));if(globalThis.__SMBLS_BUILD_DROP_F_lazyRoutes__)return Promise.resolve(s_(n,e));let o=or(n,t);return typeof o!="function"?(o===void 0&&o_(n),Promise.resolve()):Kc(e,t)}var RT=(t,e,n)=>({...t.context&&t.context.domqlOptions,...e.mountOptions,contentElementKey:n}),h_=(t,e,n)=>{let o=n.mountOptions;if(!o)return;let r=e.context&&e.context.domqlOptions;for(let i in o)t[i]=r&&i in r?r[i]:void 0},w_=t=>{let e=Gn;return typeof e=="function"?e(t.mountYield)>0:t.mountYield===!0},IT=t=>{let e=t&&t.context&&t.context.__hydration;return!!e&&e.adopted>0},DT=t=>{let e=hc;return typeof e!="function"||!e(t)?null:gc(t)},Qc=Object.freeze({holdTail:!0}),LT=t=>typeof t.holdPage=="function"&&typeof jt=="function",x_=(t,e)=>{let n=()=>jt(t);rr(e)?e.then(n,n):n()},PT=(t,e)=>{let n=null;try{n=t.holdPage(e)}catch{}x_(e,n)},k_=Object.freeze({holdTail:!0,deferAttach:!0}),BT=(t,e,n,o)=>{let r=t.firstView;if(!r||typeof jt!="function"||typeof Fo!="function")return null;if(!r.committed)return Qc;if(!w_(o))return null;let i=e.node;return!e[n]&&i&&i.isConnected?k_:(o.mountYield=void 0,null)},MT=async()=>{await mi();let t=qo;if(typeof t=="function")for(;!t();)await mi()},NT=(t,e,n,o)=>{if(e===Qc){t.firstView.page=n,x_(n,t.firstView.commit);return}e===k_&&MT().then(()=>{n.__ref&&o()&&Fo(n),jt(n)})},A_=/^:(.+)/,T_=/^\*$/,g_=new Map,Xc=t=>{let e=g_.get(t);if(e)return e;let n=t.replace(/^\//,"").split("/"),o=[],r=!1;for(let s=0;s<n.length;s++){let a=n[s].match(A_);a?o.push({index:s,name:a[1]}):T_.test(n[s])&&(r=!0)}let i={segments:n,params:o,hasWildcard:r,pattern:t};return g_.set(t,i),i},C_=(t,e,n=0)=>{let r=t.replace(/^\//,"").split("/").filter(Boolean).slice(n),i="/"+(r[0]||"");if(!e)return{key:null,content:null,params:{},routePath:i};let s=null,a=-1,l={};for(let c in e){if(c==="/*")continue;let f=Xc(c),u=FT(r,f);u>a&&(a=u,s=c,l=v_(r,f))}return!s&&e["/*"]&&(s="/*"),{key:s,content:s?e[s]:null,params:l,routePath:i}},FT=(t,e)=>{let{segments:n,hasWildcard:o}=e;if(!o&&n.length!==t.length&&n.length!==1&&n.length>t.length)return-1;let r=0,i=Math.min(n.length,t.length);for(let s=0;s<i;s++)if(n[s]===t[s])r+=3;else if(A_.test(n[s]))r+=1;else if(T_.test(n[s]))r+=.5;else return-1;return r},jT=t=>{try{return decodeURIComponent(t)}catch{return t}},v_=(t,e)=>{let n={};for(let{index:o,name:r}of e.params)t[o]&&(n[r]=jT(t[o]));return n},O_=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((o,r)=>{e[r]!==void 0?(Array.isArray(e[r])||(e[r]=[e[r]]),e[r].push(o)):e[r]=o}),e},Yc=t=>!!t&&typeof t=="object"&&typeof t.route=="string",__=t=>t===!1||typeof t=="string"||Yc(t)?t:void 0,WT=10,Jc=(t,e,n=0)=>{for(let o=n;o<t.length;o++){let r=t[o](e);if(rr(r))return Promise.resolve(r).then(s=>{let a=__(s);return a===void 0?Jc(t,e,o+1):a});let i=__(r);if(i!==void 0)return i}return!0},$T=async(t,e)=>!t||!t.length?!0:Jc(t,e),y_=(t,e,n,o)=>{if(typeof t!="string"||!n||!Object.prototype.hasOwnProperty.call(n,t))return null;let r=n[t];if(!r)return null;let i=e.replace(/^\//,"").split("/").filter(Boolean).slice(o||0);return{route:t,content:r,params:t==="/*"?{}:v_(i,Xc(t))}},UT=(t,e)=>{if(globalThis.__SMBLS_BUILD_DROP_F_routeHead__)return t!==e&&Zc(t)===Zc(e)&&Y("routeHead"),t===e;let n=bf;return typeof n=="function"?n(t,e):t===e},Zc=t=>j(t)&&D(t.extends)&&Object.keys(t).every(e=>e==="extends"||e==="metadata"||e==="helmet")?t.extends:t,E_=(t,e,n=0)=>[].concat(t.extends||[],t.extend||[]).reduce((o,r)=>{let i=D(r)?e&&e[r]:r;if(!i||typeof i!="object"||n>7)return o;let s=i.metadata!==void 0?i.metadata:E_(i,e,n+1);return s!==void 0?s:o},void 0),zT=(t,e)=>Zc(t)!==t||t.metadata===void 0||j(t.metadata)&&j(E_(t,e&&e.context&&e.context.components)),R_=(t,e)=>{let n=Sf;if(typeof n=="function")return n(t,e&&e.context&&e.context.components)},HT=(t,e,n)=>{if(!e||typeof e!="object"||e.metadata===void 0&&e.helmet===void 0)return t;if(globalThis.__SMBLS_BUILD_DROP_F_routeHead__)return zT(e,n)&&Y("routeHead",n),t;let o=R_(e,n);return o!==void 0&&o!==e.metadata&&(t.metadata=o),t},VT=(t,e)=>{globalThis.__SMBLS_BUILD_DROP_F_routeHead__||!t||typeof t!="object"||!t.__ref||Ue("routeHead",t,R_(e,t),e)},I_=(t,e)=>{if(!e)return t;let n=Array.isArray(e)?e:e.split("."),o=t;for(let r of n){if(!o||!o[r])return null;o=o[r]}return o},GT=(t,e)=>{let n=e.customRouterElement;if(!n||!t.__ref||t.__ref.root!==t)return t;let o=I_(t,n);return!o||o===t?t:(t.routes&&(o.routes=t.routes),o)},D_=(t=0,e)=>{e||(e=typeof gr<"u"?gr.location.pathname:"/");let o=e.split("/")[t+1];if(o)return`/${o}`},ir,tl=0,m_=0,qc=t=>!t||t==="srcdoc"||t==="about:srcdoc"?"/":t,KT=t=>t&&(t.scrollingElement||t.documentElement)||null,L_={level:tl,pushState:!0,replace:!1,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0,exitTimeout:300,scrollRestoreTimeout:1e3},P_=(t,e)=>{if(!t||t.visibilityState!=="visible")return!1;try{let n=e&&typeof e.matchMedia=="function"&&e.matchMedia("(prefers-reduced-motion: reduce)");if(n&&n.matches)return!1}catch{}return!0},B_=t=>{let e=t.__routeExit;e&&(t.__routeExit=null,e.abort())},qT=(t,e,n,o,r,i,s)=>{let a=e.__routeExit;if(a&&a.page===n)return a.wait;if(B_(e),!n||!n.node||typeof t.onRouteExit>"u"||!P_(i,s))return null;let l=typeof r=="number"&&r>=0?r:L_.exitTimeout,c=typeof AbortController=="function"?new AbortController:null,f={...o,page:n,timeout:l,signal:c?c.signal:void 0},u;try{u=Tn("routeExit",t,f)}catch{return null}if(!u||typeof u.then!="function")return null;let d={page:n,abort:()=>{c&&!c.signal.aborted&&c.abort()}};return d.wait=new Promise(p=>{let g=setTimeout(()=>{d.abort(),p()},l),h=()=>{clearTimeout(g),p()};u.then(h,h)}),e.__routeExit=d,d.wait},sr=new WeakMap,YT=t=>t===!0?{}:t&&typeof t=="object"&&!Array.isArray(t)?t:null,ZT=(t,e,n,o)=>{let r=YT(t.transition);return!r||!e||Bi(e.content)||!n||typeof n.startViewTransition!="function"||sr.get(n)>0||!P_(n,o)?null:r},QT=t=>{let e=t.__routeTransition;if(!(!e||e.updating))try{e.transition.skipTransition()}catch{}},XT=t=>{let e=typeof t.types=="string"?[t.types]:t.types;return Array.isArray(e)?e.filter(n=>typeof n=="string"&&n):[]},JT=t=>{try{let e=t&&t.ViewTransition;return!!e&&"types"in e.prototype}catch{return!1}},tC=100,eC=1e3,b_=(t,e)=>t===!1?1/0:typeof t=="number"&&t>=0?t:e,S_=t=>{let e=t&&t.performance;return e&&typeof e.now=="function"?e.now():Date.now()},nC=t=>{t&&typeof t.then=="function"&&t.then(null,()=>{})},oC=(t,e,n,o,r,i,s)=>{let a=t.node,l=a&&a.style,c=typeof n.name=="string"&&n.name?n.name:null,f=e.__routeTransition,u={transition:null,updating:!1,name:c,previousName:f&&f.name&&l?f.previousName:l&&l.viewTransitionName||""},d=()=>{if(e.__routerNavSeq===i){u.updating=!0,u.swapStarted=S_(r),sr.set(o,(sr.get(o)||0)+1);try{return s()}finally{sr.set(o,sr.get(o)-1),u.updating=!1}}},p=()=>{c&&l&&l.viewTransitionName===c&&(l.viewTransitionName=u.previousName)};c&&l&&(l.viewTransitionName=c);let g=XT(n),h=null;try{h=g.length&&JT(r)?o.startViewTransition({update:d,types:g}):o.startViewTransition(d)}catch{}if(!h)return p(),null;u.transition=h,e.__routeTransition=u,nC(h.ready);let _=!1,y=null,b=()=>{_=!0,y!==null&&(r.clearTimeout(y),y=null),e.__routeTransition===u&&(e.__routeTransition=null,p())},A=()=>{if(!(_||e.__routeTransition!==u))try{h.skipTransition()}catch{}};h.finished&&typeof h.finished.then=="function"?h.finished.then(b,b):b();let O=b_(n.swapBudget,tC),m=b_(n.timeout,eC);m!==1/0&&h.ready&&typeof h.ready.then=="function"&&r&&typeof r.setTimeout=="function"&&h.ready.then(()=>{_||(y=r.setTimeout(()=>{y=null,A()},m))},()=>{});let S=h.updateCallbackDone;return!S||typeof S.then!="function"?Promise.resolve():(O!==1/0&&S.then(()=>{u.swapStarted!==void 0&&S_(r)-u.swapStarted>O&&A()},()=>{}),S)},Fe=async(t,e,n={},o={})=>{let r=e||void 0,i=r?.context?.window||gr,s=r?.context?.document||cf,a={...L_,...r.context.routerOptions,...o};tl=a.lastLevel,r=GT(r,a);let l=!(o&&o.render===!1),c=r.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=c.contentElementKey||a.contentElementKey||"content",u=i.location.origin!=="null"?i.location.origin:"http://localhost";t=qc(t);let d=typeof i.URL=="function"?i.URL:typeof globalThis<"u"&&globalThis.URL||URL,p=new d(u+t),{pathname:g,search:h,hash:_}=p,y=O_(h),b=r.node,A=_&&_!==i.location.hash.slice(1),O=g!==ir,m=ir,S=++m_;ir=g;let w=()=>{m_===S&&(ir=m)},x=c.__routerRendered,C,v,T,M;if(a.useParamsMatching){let F=C_(g,r.routes,a.level);C=F.key,v=F.routePath,T=F.content,M=F.params}else{C=D_(a.level,g),v=C;let F=r.routes;T=F?F[C||"/"]||F["/*"]:null,M={}}if(o&&o.route!=null){let F=y_(o.route,g,r.routes,a.level);!F&&a.silent,C=F?F.route:o.route,T=F?F.content:null,M=F?F.params:{}}a.scrollNode===void 0&&(a.scrollNode=KT(s));let B=a.scrollToNode?b:a.scrollNode;if(r.state?.root?.debugging){r.state.root.debugging=!1;return}let L=Gg(i,a,B);if(L&&L.pop&&L.pop.echo)return;if(!T){w(),a.onNotFound?a.onNotFound({pathname:g,route:C,element:r}):(a.silent||console.warn("[smbls/router] no content matched for path",g,"\u2014 available routes:",Object.keys(r.routes||{})),a.event&&a.event.type==="popstate"&&zc(L,c,i));return}let ye=o&&o.lazy?c.__routerStartSeq:c.__routerStartSeq=(c.__routerStartSeq||0)+1;if(a.guards&&a.guards.length){let F={pathname:g,route:C,params:M,query:y,hash:_,element:r,state:n},et=Jc(a.guards,F);if(rr(et)&&(et=await et,c.__routerStartSeq!==ye)){w(),Kg(L);return}if(et===!1){w(),Uc(L);return}let We=rt=>{let mt=new d(u+qc(rt));return mt.pathname===g&&mt.search===h&&mt.hash===_},U=typeof et=="string"?et:Yc(et)&&typeof et.path=="string"&&!We(et.path)?et.path:null;if(Yc(et)&&U===null){let rt=y_(et.route,g,r.routes,a.level);if(!rt){a.silent,w(),a.onNotFound?a.onNotFound({pathname:g,route:et.route,element:r}):a.event&&a.event.type==="popstate"&&zc(L,c,i);return}C=rt.route,T=rt.content,M=rt.params,o={...o,route:rt.route}}else if(U!==null){let rt=!!(L&&L.pop);if(rt&&!$c(L))return;let mt=[...o&&o.__redirectChain||[],g],st=new d(u+qc(U)).pathname,Yt=mt.includes(st)||mt.length>=WT;Yt&&a.silent;let ut={...o,__redirectChain:mt};return Yt&&(ut.guards=[]),typeof et=="string"?delete ut.route:ut.route=et.route,rt&&(ut.event=void 0),delete ut.render,(rt||a.initialRender)&&(ut.pushState=!0,ut.replace=!0),Fe(U,e,n,ut)}}let lt=l?u_(T,r,r.routes,a):null;if(lt&&lt.rematch)return Fe(t,r,n,o);if(lt&&lt.wait){let F=c.__routerNavSeq;return await lt.wait,c.__routerNavSeq!==F||typeof r?.set!="function"?void 0:Fe(t,r,n,{...o,guards:[],__lazyAwaited:!0})}lt&&(T=lt.content,a.lazy={group:lt.group,status:lt.status});let re=c.__routerNavSeq=(c.__routerNavSeq||0)+1,Sn=!x||x.content!==T||x.route!==C,me=!!x&&UT(x.content,T),ft=!(!l||a.keepSamePage===!0&&me&&a.force!==!0)&&(O||Sn||a.force===!0);if(ft&&x&&!Bi(x.content)){let F=qT(r,c,r[f],{from:x.route,to:C,pathname:g,params:M,query:y,hash:_},a.exitTimeout,s,i);if(F&&(await F,c.__routerNavSeq!==re||(c.__routeExit&&c.__routeExit.wait===F&&(c.__routeExit=null),typeof r?.set!="function")))return}else B_(c);let q=ft?ZT(a,x,s,i):null;if(ft&&QT(c),a.pushState){let F=g+(h||"")+(_||"");Yg(L,n,F,a.replace,i)}else L&&$c(L);qg(c,i);let vt=RT(r,a,f),wn=()=>{let F=ft?BT(a,r,f,vt):null,et=(!!x||w_(vt))&&!!B&&B.scrollTop===0&&!B.scrollLeft,We=!x&&!!a.initialRender&&!!B&&IT(r)&&(Number(B.scrollTop)>0||Number(B.scrollLeft)>0),rt=O||!A?{route:C,routePath:v,hash:_,params:M,query:y,debugging:!1}:{params:M,query:y};a.updateState&&r.state.update(rt,{preventContentUpdate:!0});let mt=null;if(ft){f&&a.removeOldElement&&r[f].remove();let Yt=r.__ref?.origin?.content,ut={};if(Yt)for(let dt in Yt){let pt=Yt[dt];dt==="__ref"||dt==="props"||dt==="node"||dt==="parent"||dt==="key"||(typeof pt=="string"||typeof pt=="number"||typeof pt=="boolean"||typeof pt=="object"&&pt!==null&&!pt.node&&!pt.__ref)&&(ut[dt]=pt)}let be=HT({...ut,...typeof T=="object"?T:{extends:T}},T,r);a.useFragment&&(be.tag="fragment");let no={content:T,route:C},es=c.__routerRendered;try{if(typeof r?.set!="function")return;c.__routerRendered=no;let dt=!F&&LT(a),pt=r.set(be,vt,F||(dt?Qc:void 0));pt&&F?NT(a,F,pt,()=>c.__routerNavSeq===re):pt&&dt&&PT(a,pt),mt=DT(r[f])}catch(dt){c.__routerRendered===no&&(c.__routerRendered=es),console.error("[smbls/router] failed to render route content",g,dt);try{Ue("renderError",r,{where:"route",route:g,error:dt})}catch(pt){console.error("[smbls/router] renderError hook threw:",pt)}}}else me&&x.route!==C&&c.__routerRendered===x&&(c.__routerRendered={content:T,route:C},T!==x.content&&VT(r[f],T));let st=()=>{let Yt=!O&&A,ut=!l||Zg(L,B,a,s);if(!ut&&!We&&a.scrollToTop&&!Yt&&!et&&B?.scrollTo&&B.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!ut&&!We&&a.scrollToNode&&T[f]?.node?.scrollTo&&T[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),!ut&&_){let be=s.getElementById(_.slice(1));if(be&&B?.scrollTo){let no=i.getComputedStyle?i.getComputedStyle(be):null,es=no&&parseFloat(no.scrollMarginTop)||0,dt=be.getBoundingClientRect().top+B.scrollTop-es-(a.scrollToOffset||0);B.scrollTo({...a.scrollToOptions||{},top:dt,left:0})}}lt&&d_(r,lt,be=>Fe(t,r,n,{...o,...be})),Tn("routeChanged",r,a)};if(mt)return mt.then(()=>{h_(vt,r,a),c.__routerNavSeq===re&&st()});h_(vt,r,a),st()},xn=q?oC(r,c,q,s,i,re,wn):null;if(xn){await xn;return}return wn()},rC=Fe;var sC=t=>{for(let e in t)Object.freeze(t[e]);return Object.freeze(t)},el=sC({en:{"dialog.title":"Title","dialog.close":"Close","dialog.cancel":"Cancel","dialog.ok":"OK","dialog.confirm":"Confirm","dialog.confirmTitle":"Are you sure?","dialog.confirmMessage":"This action cannot be undone.","dialog.alertTitle":"Notice","dialog.promptTitle":"Enter a value"},ka:{"dialog.title":"\u10E1\u10D0\u10D7\u10D0\u10E3\u10E0\u10D8","dialog.close":"\u10D3\u10D0\u10EE\u10E3\u10E0\u10D5\u10D0","dialog.cancel":"\u10D2\u10D0\u10E3\u10E5\u10DB\u10D4\u10D1\u10D0","dialog.ok":"\u10D9\u10D0\u10E0\u10D2\u10D8","dialog.confirm":"\u10D3\u10D0\u10D3\u10D0\u10E1\u10E2\u10E3\u10E0\u10D4\u10D1\u10D0","dialog.confirmTitle":"\u10D3\u10D0\u10E0\u10EC\u10DB\u10E3\u10DC\u10D4\u10D1\u10E3\u10DA\u10D8 \u10EE\u10D0\u10E0\u10D7?","dialog.confirmMessage":"\u10D0\u10DB \u10DB\u10DD\u10E5\u10DB\u10D4\u10D3\u10D4\u10D1\u10D8\u10E1 \u10D2\u10D0\u10E3\u10E5\u10DB\u10D4\u10D1\u10D0 \u10E8\u10D4\u10E3\u10EB\u10DA\u10D4\u10D1\u10D4\u10DA\u10D8\u10D0.","dialog.alertTitle":"\u10E8\u10D4\u10E2\u10E7\u10DD\u10D1\u10D8\u10DC\u10D4\u10D1\u10D0","dialog.promptTitle":"\u10E8\u10D4\u10D8\u10E7\u10D5\u10D0\u10DC\u10D4\u10D7 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"}}),M_=(t,e)=>typeof t=="string"&&t!==""&&t!==e,N_=["methods","functions","utils"],F_=(t,e)=>{let n=t&&t.context;if(!n)return!1;for(let o=0;o<N_.length;o++){let r=n[N_[o]];if(r&&typeof r[e]=="function")return!0}return!1},aC=(t,e)=>typeof t=="string"&&Object.prototype.hasOwnProperty.call(el,t)?el[t][e]:void 0;function ar(t,e){if(F_(t,"polyglot")){let r=t.call("polyglot",e);if(M_(r,e))return r}let n=F_(t,"getActiveLang")?t.call("getActiveLang"):void 0,o=aC(n,e);return M_(o,e)?o:el.en[e]||""}var Sv=/*@__PURE__*/__smblsNs({},{A:()=>sm,AssetPicture:()=>iy,Audio:()=>cy,Avatar:()=>Rm,B:()=>vy,Block:()=>U_,Box:()=>Ry,Br:()=>Dy,Bridge:()=>Wy,Button:()=>lm,ButtonSet:()=>pm,COMPONENTS:()=>fb,Caption:()=>my,Checkbox:()=>zy,CheckboxHgroup:()=>Hy,Circle:()=>ny,CircleButton:()=>um,Clickable:()=>J_,Data:()=>Ey,Dialog:()=>mm,DialogFooter:()=>Sm,DialogHeader:()=>bm,Dropdown:()=>ob,DropdownDisclosure:()=>sb,DropdownList:()=>rb,DropdownParent:()=>ib,DropdownParentFocus:()=>ab,DropdownSiblingFocus:()=>cb,FileIcon:()=>rm,Flex:()=>H_,Focusable:()=>ty,FocusableComponent:()=>ey,Footnote:()=>Cy,Form:()=>Z_,Grid:()=>G_,Gutter:()=>q_,H1:()=>uy,H2:()=>dy,H3:()=>py,H4:()=>hy,H5:()=>gy,H6:()=>_y,Headline:()=>Ay,Hgroup:()=>Ny,HgroupButton:()=>jy,HgroupRows:()=>Fy,Hoverable:()=>X_,Hr:()=>Iy,I:()=>Oy,Icon:()=>nm,IconButton:()=>hm,IconText:()=>om,Iframe:()=>Q_,Img:()=>Y_,Inline:()=>z_,InlineFlex:()=>V_,InlineGrid:()=>K_,Input:()=>$y,Italic:()=>xy,KangorooButton:()=>dm,Li:()=>Ly,Link:()=>Rl,Notification:()=>lb,NumberInput:()=>Uy,Ol:()=>By,P:()=>yy,Picture:()=>ry,Radio:()=>Vy,RadioHgroup:()=>Gy,Range:()=>Im,RouteLink:()=>am,RouterLink:()=>Il,SHAPES:()=>Ni,Select:()=>cm,Shape:()=>ll,Span:()=>fy,SquareButton:()=>fm,Strong:()=>by,Subhead:()=>Ty,Svg:()=>sy,Text:()=>ly,Textarea:()=>Yy,TextareaWithButton:()=>Zy,Theme:()=>oy,Title:()=>ky,Toggle:()=>Ky,ToggleHgroup:()=>qy,Tooltip:()=>vm,TooltipHidden:()=>Om,TooltipLayer:()=>$l,TooltipParent:()=>Em,U:()=>Sy,Ul:()=>Py,Underline:()=>wy,Video:()=>ay,depth:()=>Fi,focusableRingEnabled:()=>cr,focusableRingToken:()=>al,focusableRingValue:()=>pn,getSystemGlobalTheme:()=>lr});var ol=/*@__PURE__*/__smblsNs({},{Block:()=>U_,Flex:()=>H_,Grid:()=>G_,Gutter:()=>q_,Inline:()=>z_,InlineFlex:()=>V_,InlineGrid:()=>K_});var j_=new Set,cC=t=>t==="icon"?"build.treeShakeIcons":"build.treeShakeComponents",nl=(t,e,n)=>{let o=t+":"+e;if(j_.has(o)||(j_.add(o),typeof console>"u"||!console.error))return;let r=n&&n.__ref&&n.__ref.path,i=r&&r.length?` (at <${r.join(".")}>)`:"",s=cC(t);console.error(`[smbls] ${t==="icon"?"Icon":"Component"} "${e}"${i} is not in this build: symbols.json ${s} left it out because the project source never names it. Add "${e}" to ${s}.keep.`)},k=t=>({onInit:{always:!0,handler:e=>nl("component",t,e)}}),W_=new Set,eD=t=>{for(let e of t)e&&W_.add(e)},$_=t=>W_.has(t);var U_=globalThis.__SMBLS_BUILD_DROP_C_Block__?k("Block"):{display:"block"},z_=globalThis.__SMBLS_BUILD_DROP_C_Inline__?k("Inline"):{display:"inline"},H_=globalThis.__SMBLS_BUILD_DROP_C_Flex__?k("Flex"):{display:"flex"},V_=globalThis.__SMBLS_BUILD_DROP_C_InlineFlex__?k("InlineFlex"):{display:"inline-flex"},G_=globalThis.__SMBLS_BUILD_DROP_C_Grid__?k("Grid"):{display:"grid"},K_=globalThis.__SMBLS_BUILD_DROP_C_InlineGrid__?k("InlineGrid"):{display:"inline-grid"},q_=globalThis.__SMBLS_BUILD_DROP_C_Gutter__?k("Gutter"):{boxSize:"C1"};var rl=/*@__PURE__*/__smblsNs({},{Img:()=>Y_});var Y_={tag:"img",attr:{title:t=>t.title,alt:t=>t.alt!=null?t.alt:t.title||"",src:t=>{let e=Ht(t);return e&&e.src||t.src},srcset:t=>{let e=Ht(t);return(e?du(e):"")||t.srcset||t.srcSet}}};var il=/*@__PURE__*/__smblsNs({},{Form:()=>Z_});var Z_=globalThis.__SMBLS_BUILD_DROP_C_Form__?k("Form"):{tag:"form"};var sl=/*@__PURE__*/__smblsNs({},{Iframe:()=>Q_});var Q_=globalThis.__SMBLS_BUILD_DROP_C_Iframe__?k("Iframe"):{tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var cl=/*@__PURE__*/__smblsNs({},{Clickable:()=>J_,Focusable:()=>ty,FocusableComponent:()=>ey,Hoverable:()=>X_,focusableRingEnabled:()=>cr,focusableRingToken:()=>al,focusableRingValue:()=>pn});var lC={appearance:"none",fontFamily:"inherit"},X_=globalThis.__SMBLS_BUILD_DROP_C_Hoverable__?k("Hoverable"):{transition:"opacity C defaultBezier, transform C defaultBezier",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},J_=globalThis.__SMBLS_BUILD_DROP_C_Clickable__?k("Clickable"):{extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}};function cr(t){let e=t.context&&t.context.designSystem;return!e||e.focusableRing!==!1}function al(t){let e=t.context&&t.context.designSystem,n=e&&e.focusableRing;if(typeof n=="string")return n?{outline:n,outlineOffset:void 0}:null;if(!n||typeof n!="object"||Array.isArray(n))return null;let o=n.outline||void 0,r=n.outlineOffset!=null&&n.outlineOffset!==""?n.outlineOffset:void 0;return o||r!==void 0?{outline:o,outlineOffset:r}:null}function pn(t,e,n){let o=al(t);return o&&o[e]!==void 0?o[e]:n}var ty=globalThis.__SMBLS_BUILD_DROP_C_Focusable__?k("Focusable"):{border:"none",outline:t=>cr(t)?"solid 0 currentColor":"none",":focus-visible":{opacity:1,outline:t=>cr(t)?pn(t,"outline","solid X currentColor"):"none",outlineOffset:t=>cr(t)?pn(t,"outlineOffset"):void 0}},ey=globalThis.__SMBLS_BUILD_DROP_C_FocusableComponent__?k("FocusableComponent"):{extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",cursor:"pointer",":disabled":{cursor:"not-allowed"},style:lC};var dl=/*@__PURE__*/__smblsNs({},{Picture:()=>ry});var ul=/*@__PURE__*/__smblsNs({},{Theme:()=>oy,getSystemGlobalTheme:()=>lr});var fl=/*@__PURE__*/__smblsNs({},{Circle:()=>ny,SHAPES:()=>Ni,Shape:()=>ll,default:()=>fC,depth:()=>Fi});var Wt=Z(),Fi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Wt.unit.default} 4${Wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Wt.unit.default} 6${Wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Wt.unit.default} 10${Wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Wt.unit.default} 16${Wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Wt.unit.default} 26${Wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Wt.unit.default} 42${Wt.unit.default}`}},Xn=t=>so(t.shapeDirectionColor)||so(t.borderColor)||so(t.backgroundColor)||so(t.background),Mi=t=>{let e=Hr.transition(t.transition,t);return e&&e.transition},Ni={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:t=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Xn(t),transition:Mi(t),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:t=>({position:"relative","&:before":{content:'""',display:"block",background:Xn(t),transition:Mi(t),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Xn(t),transition:Mi(t),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:t=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Mi(t),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Xn(t)} 25%, transparent 25%), linear-gradient(315deg, ${Xn(t)} 25%, transparent 25%)`},"&:after":{background:Xn(t),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},ll={deps:{exec:kn,getSpacingBasedOnRatio:ao,getMediaColor:It},classlist:{shape:t=>t.deps.exec(Ni[t.shape],t),shapeDirection:t=>{if(!t.shape||!t.shapeDirection)return;let e=Ni[t.shape+"Direction"];return t.shape&&e?e[t.shapeDirection||"left"]:null},shapeDirectionColor:t=>{let e={borderColor:t.deps.getMediaColor(t.background||t.backgroundColor)};return t.shapeDirection?e:null}}},ny=globalThis.__SMBLS_BUILD_DROP_C_Circle__?k("Circle"):{round:"100%"},fC=ll;var lr=({context:t,state:e})=>{let n=e&&e.root,o=n&&n.globalTheme||t.designSystem&&t.designSystem.globalTheme;return o==="auto"?null:o},oy=globalThis.__SMBLS_BUILD_DROP_C_Theme__?k("Theme"):{deps:{depth:Fi},classlist:{depth:t=>!_r(t.depth)&&t.deps.depth[t.depth]}};var ry=globalThis.__SMBLS_BUILD_DROP_C_Picture__?k("Picture"):{deps:{getSystemGlobalTheme:lr},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:lr},tag:"source",attr:{media:t=>{let{key:e,context:n,deps:o}=t,{media:r}=n.designSystem,i=o.getSystemGlobalTheme(t),s=(t.media||e).slice(1);return s===i?"(min-width: 0px)":s==="dark"||s==="light"?"(max-width: 0px)":r[s]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent?.src||e.src}};var pl=/*@__PURE__*/__smblsNs({},{AssetPicture:()=>iy});var iy=globalThis.__SMBLS_BUILD_DROP_C_AssetPicture__?k("AssetPicture"):{tag:"picture",children:t=>{let e=Ht(t);if(e)return pu(e,t.alt)}};var hl=/*@__PURE__*/__smblsNs({},{Svg:()=>sy});var sy={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{context:e}=t;if(t.semanticIcons)return;if(t.html&&typeof t.html!="function")return t.call("exec",t.html,t);let{designSystem:n,utils:o}=e,r=n&&n.svg,i=t.spriteId||n&&n.useSvgSprite,s=t.call("exec",t.src,t),a=d=>`<use xlink:href="#${d}" />`;if(typeof s=="string"){let d=s.match(/^\s*<symbol\b[^>]*\bid="([^"]+)"/);if(d){let p=d[1],g=e.document||(typeof document<"u"?document:null);if(!(g&&typeof g.getElementById=="function"&&g.getElementById(p))){let _=o&&o.scratchSystem&&o.scratchSystem.appendSVGSprite;n&&!n.__svgCache&&(n.__svgCache={}),typeof _=="function"?_({[p]:s},{document:g}):o&&typeof o.init=="function"&&o.init({svg:{[p]:s}},{document:g,emotion:e.emotion})}return a(p)}}if(!i&&s)return s;let l=t.spriteId;if(l)return a(l);if(r&&r[s])return a(s);let c=Symbol.for(s),f=r[c];if(f&&r[f])return a(f);if(!s)return a("");if(typeof s=="string"&&!s.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${s}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${s}': '<svg>...</svg>' } }).`),a("");let u=0;for(let d=0;d<s.length;d++)u=(u<<5)-u+s.charCodeAt(d)|0;return f=r[c]=`svg-${(u>>>0).toString(36)}`,o.init({svg:{[f]:s}},{document:e.document,emotion:e.emotion}),a(f)}};var gl=/*@__PURE__*/__smblsNs({},{Video:()=>ay});var ay=globalThis.__SMBLS_BUILD_DROP_C_Video__?k("Video"):{tag:"video",controls:!0,attr:{src:t=>{let e=Ht(t);return e&&e.src||t.src}},children:t=>{let e=Ht(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var _l=/*@__PURE__*/__smblsNs({},{Audio:()=>cy});var cy=globalThis.__SMBLS_BUILD_DROP_C_Audio__?k("Audio"):{tag:"audio",controls:!0,attr:{src:t=>{let e=Ht(t);return e&&e.src||t.src}},children:t=>{let e=Ht(t);if(!(!e||!Array.isArray(e.variants)||!e.variants.length))return e.variants.map(n=>({tag:"source",attr:{src:n.src,type:n.format}}))},childExtends:{tag:"source"}};var yl=/*@__PURE__*/__smblsNs({},{B:()=>vy,Caption:()=>my,Data:()=>Ey,Footnote:()=>Cy,H1:()=>uy,H2:()=>dy,H3:()=>py,H4:()=>hy,H5:()=>gy,H6:()=>_y,Headline:()=>Ay,I:()=>Oy,Italic:()=>xy,P:()=>yy,Span:()=>fy,Strong:()=>by,Subhead:()=>Ty,Text:()=>ly,Title:()=>ky,U:()=>Sy,Underline:()=>wy});var ly=globalThis.__SMBLS_BUILD_DROP_C_Text__?k("Text"):{},fy=globalThis.__SMBLS_BUILD_DROP_C_Span__?k("Span"):{tag:"span"},uy=globalThis.__SMBLS_BUILD_DROP_C_H1__?k("H1"):{tag:"h1"},dy=globalThis.__SMBLS_BUILD_DROP_C_H2__?k("H2"):{tag:"h2"},py=globalThis.__SMBLS_BUILD_DROP_C_H3__?k("H3"):{tag:"h3"},hy=globalThis.__SMBLS_BUILD_DROP_C_H4__?k("H4"):{tag:"h4"},gy=globalThis.__SMBLS_BUILD_DROP_C_H5__?k("H5"):{tag:"h5"},_y=globalThis.__SMBLS_BUILD_DROP_C_H6__?k("H6"):{tag:"h6"},yy=globalThis.__SMBLS_BUILD_DROP_C_P__?k("P"):{tag:"p"},my=globalThis.__SMBLS_BUILD_DROP_C_Caption__?k("Caption"):{tag:"caption"},by=globalThis.__SMBLS_BUILD_DROP_C_Strong__?k("Strong"):{tag:"strong",fontWeight:"700"},Sy=globalThis.__SMBLS_BUILD_DROP_C_U__?k("U"):{tag:"u"},wy=globalThis.__SMBLS_BUILD_DROP_C_Underline__?k("Underline"):{tag:"u"},xy=globalThis.__SMBLS_BUILD_DROP_C_Italic__?k("Italic"):{tag:"i"},ky=globalThis.__SMBLS_BUILD_DROP_C_Title__?k("Title"):{},Ay=globalThis.__SMBLS_BUILD_DROP_C_Headline__?k("Headline"):{tag:"h6",fontSize:"B",fontWeight:500},Ty=globalThis.__SMBLS_BUILD_DROP_C_Subhead__?k("Subhead"):{tag:"span",fontSize:"Z1"},Cy=globalThis.__SMBLS_BUILD_DROP_C_Footnote__?k("Footnote"):{tag:"span",fontSize:"Z"},vy=globalThis.__SMBLS_BUILD_DROP_C_B__?k("B"):{tag:"b"},Oy=globalThis.__SMBLS_BUILD_DROP_C_I__?k("I"):{tag:"i"},Ey=globalThis.__SMBLS_BUILD_DROP_C_Data__?k("Data"):{tag:"data"};var ml=/*@__PURE__*/__smblsNs({},{Box:()=>Ry,Br:()=>Dy,Hr:()=>Iy,Li:()=>Ly,Ol:()=>By,Ul:()=>Py});var uC=t=>{if(!t.context)return;let{props:e,__ref:n}=t,o=Nt(e,t,{unpack:!1});n.__class=o},Ry=globalThis.__SMBLS_BUILD_DROP_C_Box__?k("Box"):{extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:uC},Iy=globalThis.__SMBLS_BUILD_DROP_C_Hr__?k("Hr"):{tag:"hr",margin:"C1 0"},Dy=globalThis.__SMBLS_BUILD_DROP_C_Br__?k("Br"):{tag:"br"},Ly=globalThis.__SMBLS_BUILD_DROP_C_Li__?k("Li"):{tag:"li"},Py=globalThis.__SMBLS_BUILD_DROP_C_Ul__?k("Ul"):{tag:"ul",childExtends:{extends:"Li"}},By=globalThis.__SMBLS_BUILD_DROP_C_Ol__?k("Ol"):{tag:"ol",childExtends:{extends:"Li"}};var bl=/*@__PURE__*/__smblsNs({},{Hgroup:()=>Ny,HgroupButton:()=>jy,HgroupRows:()=>Fy});var My=t=>{if(t.text!=null||t.html!=null)return!0;for(let e in t){let n=e.charCodeAt(0);if(n>=65&&n<=90)return!0}return!1},Ny=globalThis.__SMBLS_BUILD_DROP_C_Hgroup__?k("Hgroup"):{display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:My,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:My,margin:"0",color:"paragraph"}},Fy=globalThis.__SMBLS_BUILD_DROP_C_HgroupRows__?k("HgroupRows"):{extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},jy=globalThis.__SMBLS_BUILD_DROP_C_HgroupButton__?k("HgroupButton"):{extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var Sl=/*@__PURE__*/__smblsNs({},{Bridge:()=>Wy});var Wy=globalThis.__SMBLS_BUILD_DROP_C_Bridge__?k("Bridge"):{tag:"div"};var wl=/*@__PURE__*/__smblsNs({},{Input:()=>$y});var $y={extends:["Focusable"],tag:"input",border:"none",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:t=>t.pattern,name:t=>t.name,placeholder:t=>t.placeholder,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.checked,t),disabled:t=>t.disabled||null,required:t=>t.required,type:t=>t.type}};var xl=/*@__PURE__*/__smblsNs({},{NumberInput:()=>Uy});var Uy={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"1px solid line",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:t=>t.step,min:t=>t.min,max:t=>t.max}};var kl=/*@__PURE__*/__smblsNs({},{Checkbox:()=>zy,CheckboxHgroup:()=>Hy});var zy={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",position:"absolute",opacity:"0",width:"1px",height:"1px",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},":focus-visible + div":{outline:t=>pn(t,"outline","solid X currentColor"),outlineOffset:t=>pn(t,"outlineOffset","Z")},attr:{checked:t=>t.call("exec",t.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},Hy=globalThis.__SMBLS_BUILD_DROP_C_CheckboxHgroup__?k("CheckboxHgroup"):{display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Al=/*@__PURE__*/__smblsNs({},{Radio:()=>Vy,RadioHgroup:()=>Gy});var Vy=globalThis.__SMBLS_BUILD_DROP_C_Radio__?k("Radio"):{extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},Gy=globalThis.__SMBLS_BUILD_DROP_C_RadioHgroup__?k("RadioHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Tl=/*@__PURE__*/__smblsNs({},{Toggle:()=>Ky,ToggleHgroup:()=>qy});var Ky={extends:"Checkbox",Input:{role:"switch",":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},qy=globalThis.__SMBLS_BUILD_DROP_C_ToggleHgroup__?k("ToggleHgroup"):{extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Cl=/*@__PURE__*/__smblsNs({},{Textarea:()=>Yy,TextareaWithButton:()=>Zy});var Yy=globalThis.__SMBLS_BUILD_DROP_C_Textarea__?k("Textarea"):{tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},Zy=globalThis.__SMBLS_BUILD_DROP_C_TextareaWithButton__?k("TextareaWithButton"):{display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var El=/*@__PURE__*/__smblsNs({},{FileIcon:()=>rm,Icon:()=>nm,IconText:()=>om});var Qy=new Set,Xy=(t,e)=>{if(!Qy.has(t)&&(Qy.add(t),typeof console<"u"&&console.warn)){let n=e&&e.__ref&&e.__ref.path,o=n&&n.length?` at <${n.join(".")}>`:"";console.warn(`[Icon] Unknown icon name "${t}"${o} \u2014 not registered in designSystem.icons, rendering the noIcon placeholder. Fix the name or register the icon in the design system.`)}},Jy=(t,e)=>{let n=t.find(o=>o&&$_(o));return n?(nl("icon",n,e),!0):!1},tm=new WeakMap,dC=t=>{let e=tm.get(t);return e||(e={pending:new Map,waiting:new Map,failed:new Set},tm.set(t,e)),e},pC=(t,e)=>{if(!t)return null;let n=t.default||t;return typeof n=="string"?n.trim()?{[e]:n}:null:typeof n=="object"&&!Array.isArray(n)&&Object.keys(n).length?n:null},hC=(t,e,n)=>{let o=n&&n.context&&n.context.document||(typeof document<"u"?document:null);at(t);try{let r=Z();r&&!r.__svgCache&&(r.__svgCache={}),t.__svgCache||(t.__svgCache={});let i={};for(let s in e){let a=Ef(e[s],s);a&&(t.icons[s]=a,i[s]=a)}return t.useIconSprite&&o&&Object.keys(i).length&&Rf(i,{document:o}),Object.keys(i).length>0}finally{it()}},gC=(t,e,n,o,r)=>{let i=t&&t.designSystem,s=i&&i.iconsLoader;if(typeof s!="function"||!i.icons)return!1;let a=dC(i);if(a.failed.has(e))return!1;let l=a.waiting.get(e);if(l||(l=new Set,a.waiting.set(e,l)),l.add(r),a.pending.has(e))return!0;let c=()=>s(e,t),f=Promise.resolve().then(c).then(u=>{let d=pC(u,n);return d?hC(i,d,o):!1}).catch(u=>(typeof console<"u"&&console.error&&console.error(`[Icon] iconsLoader failed for "${e}":`,u),!1)).then(u=>{a.pending.delete(e);let d=a.waiting.get(e);a.waiting.delete(e),u||a.failed.add(e),d&&d.forEach(p=>{try{p(u)}catch(g){console.error("[Icon] repaint error:",g)}})});return a.pending.set(e,f),!0},_C="0 0 24 24",yC=/<(symbol|svg)\b[^>]*>/i,mC={viewBox:/\sviewBox\s*=\s*(?:"([^"]*)"|'([^']*)')/i,width:/\swidth\s*=\s*(?:"([^"]*)"|'([^']*)')/i,height:/\sheight\s*=\s*(?:"([^"]*)"|'([^']*)')/i},vl=(t,e)=>{let n=t.match(mC[e]);return n?n[1]!==void 0?n[1]:n[2]:void 0},em=t=>{let e=typeof t=="string"&&t.match(/^\s*(\d*\.?\d+)\s*(?:px)?\s*$/);return e?Number(e[1]):void 0},bC=(t,e)=>{if(typeof t!="string")return;let n=t.match(yC);if(!n)return;let o=(vl(n[0],"viewBox")||"").trim().split(/[\s,]+/).map(Number),r=o.length===4&&o[2]>0&&o[3]>0?[o[2],o[3]]:void 0,i=em(vl(n[0],"width")),s=em(vl(n[0],"height")),a=i>0&&s>0?[i,s]:void 0,l=n[1].toLowerCase()==="symbol"||e?r||a:a||r;return l?`0 0 ${l[0]} ${l[1]}`:void 0},Ol=t=>{let e=t.call("exec",t.viewBox,t);if(e)return e;let n=t.context&&t.context.designSystem,o=!!(t.spriteId||n&&n.useSvgSprite);return bC(t.call("exec",t.src,t),o)||_C},nm={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(t,e,n)=>{let{parent:o}=t,{icons:r,useIconSprite:i,verbose:s}=n&&n.designSystem,{toCamelCase:a}=n&&n.utils,l=!1,c=(h,_)=>{try{return{value:t.call("exec",h,_)}}catch(y){if(t.__ref&&(t.__ref.__iconNameError=y),!l&&typeof console<"u"&&console.warn){l=!0;let b=t.__ref&&t.__ref.path,A=b&&b.length?` at <${b.join(".")}>`:"";console.warn(`[Icon] name/icon factory threw${A} \u2014 treated as no name (a painted glyph stays):`,y&&y.message||y)}return{threw:!0}}},f=(h,_)=>{let{semanticIcons:y}=_&&_.designSystem,{toCamelCase:b}=_&&_.utils,O=b(h).split(/([a-z])([A-Z])/g),m=O[1]?O[0]:h.split(".")[0].split(" ")[0],S=y&&y[m];if(S){let w=h.includes(".")?"sfsymbols."+h.split(".").slice(1).join("."):"sfsymbols";return h=S[w]||S[h.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${h}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=h=>{let{key:_}=h,y=c(h.name||h.icon||_,h);if(y.threw)return{name:_,threw:!0};let b=y.value;return h.call("isString",b)&&b.includes("{{")&&(b=h.call("replaceLiteralsWithObjectFields",b)),{name:h.call("isString",b)?b:_}},d=t.src,p,g=()=>{let h=u(t);if(h.threw&&t.node&&t.node.innerHTML)return;let _=h.name,y=_;if(_.includes(" ")){let B=_.split(" ");_=B[0]+B.slice(1).map(L=>L.charAt(0).toUpperCase()+L.slice(1)).join("")}let b=a(_),A=b.split(/([a-z])([A-Z])/g),O=f(y,n);if(O){Object.assign(t,O);return}let m,S=t[".isActive"];S&&(S.name||S.icon)&&t.isActive&&(m=c(S.name||S.icon,t).value);let w=o&&o[".isActive"];w&&w.icon&&o.isActive&&(m=c(w.icon||w.Icon.name||w.Icon.icon,t).value),t.call("isString",m)&&m.includes("{{")&&(m=t.call("replaceLiteralsWithObjectFields",m));let x;r[m]&&(x=m),r[b]?x=b:r[A[0]+A[1]]?x=A[0]+A[1]:r[A[0]]?x=A[0]:s&&t.warn("Can't find icon:",_,x);let C=r[x],v=o&&o.src||d;!C&&!v&&(gC(n,y,b,t,L=>{if(!(p&&p._disposed)){if(!L)return globalThis.__SMBLS_BUILD_DROP_ICONS__&&Jy([m,b,A[0]+A[1],A[0]],t)||Xy(y,t);g()}})||globalThis.__SMBLS_BUILD_DROP_ICONS__&&Jy([m,b,A[0]+A[1],A[0]],t)||Xy(y,t));let T=i&&x,M=C||v||r.noIcon;if(!(t.spriteId===T&&t.src===M&&t.node&&t.node.innerHTML)){if(t.spriteId=T,t.src=M,typeof t.html=="function"&&t.node){let B=t.context&&t.context.designSystem;B&&at(B);try{let L=t.html(t,t.state,t.context);L!=null&&typeof L!="function"&&(t.node.innerHTML=L)}finally{B&&it()}}t.node&&t.attr&&t.attr.viewBox===Ol&&t.node.setAttribute("viewBox",Ol(t))}};p=P(g,{depth:t.__ref&&t.__ref.path&&t.__ref.path.length||0}),t.__ref&&(t.__ref.__effects||(t.__ref.__effects=[]),t.__ref.__effects.push(p))},attr:{viewBox:Ol,"aria-hidden":t=>t.ariaLabel||t.role==="img"?null:"true",focusable:"false"}},om=globalThis.__SMBLS_BUILD_DROP_C_IconText__?k("IconText"):{display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e}=t,n=t.call("exec",t.icon,t);return t.call("exec",n||e.icon||t.name||t.sfSymbols||e.sfSymbols,t)},icon:t=>t.call("exec",t.parent.icon,t.parent)},text:t=>t.text},rm={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"document"}};var Dl=/*@__PURE__*/__smblsNs({},{A:()=>sm,Link:()=>Rl,RouteLink:()=>am,RouterLink:()=>Il});var SC=(t,e)=>{if(!t)return!1;if(t.defaultPrevented||typeof t.button=="number"&&t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!0;let n=e.node;if(!n||typeof n.getAttribute!="function")return!1;let o=n.getAttribute("target");return o&&o.toLowerCase()!=="_self"?!0:n.hasAttribute("download")},wC=(t,e)=>{let n=t.slice(1),o=e.node&&e.node.ownerDocument,r=n&&o?o.getElementById(n):null;r&&(typeof r.scrollIntoView=="function"&&r.scrollIntoView(),typeof r.focus=="function"&&(r.hasAttribute("tabindex")||r.setAttribute("tabindex","-1"),r.focus()))},im=(t,e,n)=>{let{context:o}=e,{href:r,scrollToTop:i,stopPropagation:s}=e,a=e.call("exec",r,e);if(e.call("isString",a)&&a.includes("{{")&&(a=e.call("replaceLiteralsWithObjectFields",a)),s&&t.stopPropagation(),!a||SC(t,e))return;if(a.startsWith("#")){t.preventDefault(),wC(a,e);return}let{utils:l,snippets:c,functions:f,routerOptions:u}=o,d=e.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){t.preventDefault();try{let g=d;if(u&&u.customRouterElement){let h=Array.isArray(u.customRouterElement)?u.customRouterElement:u.customRouterElement.split("."),_=d;for(let y of h){if(!_||!_[y]){_=null;break}_=_[y]}_&&(g=_,d.routes&&(g.routes=d.routes))}(f.router||c.router||l.router||Fe)(a,g,{},{scrollToOptions:{behavior:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...u,...e.routerOptions})}catch(g){console.warn(g)}}},Rl={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>da(t,tn(t,t.href)||tn(t,t.call("exec",t,t).href)),"aria-label":t=>t.aria?t.aria.label:t.text},onClick:im},sm=globalThis.__SMBLS_BUILD_DROP_C_A__?k("A"):{extends:"Link"},Il={onClick:im},am=globalThis.__SMBLS_BUILD_DROP_C_RouteLink__?k("RouteLink"):{extends:[Rl,Il]};var Ll=/*@__PURE__*/__smblsNs({},{Select:()=>cm});var cm=globalThis.__SMBLS_BUILD_DROP_C_Select__?k("Select"):{extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:t=>t.value,selected:t=>t.selected,disabled:t=>t.disabled}},attr:{name:t=>t.name,disabled:t=>t.disabled,value:t=>{if(!t.value)return;let e=t.call("exec",t.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var Pl=/*@__PURE__*/__smblsNs({},{Button:()=>lm,ButtonSet:()=>pm,CircleButton:()=>um,IconButton:()=>hm,KangorooButton:()=>dm,SquareButton:()=>fm});var lm=globalThis.__SMBLS_BUILD_DROP_C_Button__?k("Button"):{extends:["IconText","FocusableComponent"],tag:"button",minHeight:"controlH",fontSize:"Z2",type:"button",border:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"0 A",fontWeight:"700",fontFamily:"inherit",round:"radiusPill",disabled:t=>t.call("exec",t.disabled)},fm=globalThis.__SMBLS_BUILD_DROP_C_SquareButton__?k("SquareButton"):{extends:"Button",fontSize:"A",width:"A",minHeight:"auto",padding:"Z",aspectRatio:"1 / 1",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},um=globalThis.__SMBLS_BUILD_DROP_C_CircleButton__?k("CircleButton"):{extends:"SquareButton",round:"C"},dm=globalThis.__SMBLS_BUILD_DROP_C_KangorooButton__?k("KangorooButton"):{extends:"Button",childExtends:"IconText"},pm=globalThis.__SMBLS_BUILD_DROP_C_ButtonSet__?k("ButtonSet"):{tag:"nav",display:"flex",childExtends:"SquareButton"},hm={extends:["SquareButton","ClickableItem"],round:"Z"};var Ml=/*@__PURE__*/__smblsNs({},{Dialog:()=>mm,DialogFooter:()=>Sm,DialogHeader:()=>bm});var xC={ok:1,cancel:1},hn=new WeakMap,kC=0,$t=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},Bl=t=>{let e=hn.get(t);return e||(e={id:"smbls-dialog-"+ ++kC,want:void 0,waiting:!1},hn.set(t,e)),e},fr=(t,e,n,o)=>t[e]!==void 0||n!==void 0&&t[n]!==void 0||!!t.attr&&typeof t.attr=="object"&&t.attr[e]!==void 0||o!==void 0&&!!t.aria&&typeof t.aria=="object"&&t.aria[o]!==void 0,Jn=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},gm=t=>{let e=hn.get(t),n=$t(t);if(!e||!n)return!0;if(!n.isConnected)return!1;if(e.want){if(!n.open&&typeof n.showModal=="function")try{n.showModal()}catch{}}else n.open&&typeof n.close=="function"&&n.close();return!0},_m=t=>{queueMicrotask(()=>{if(gm(t))return;let e=hn.get(t);!e||e.waiting||typeof t.whenConnected!="function"||(e.waiting=!0,t.whenConnected(()=>{e.waiting=!1,gm(t)}))})},AC=t=>{let e=t.__ref;if(!e||!$t(t)||!Object.prototype.hasOwnProperty.call(t,"modal")||fr(t,"data-dialog"))return;let n=P(()=>{let o=t.modal,r=$t(t);if(!r)return;if(o==null){Jn(r,"data-dialog",null);return}Jn(r,"data-dialog","modal");let i=Bl(t),s=!!o;i.want!==s&&(i.want=s,_m(t))},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},TC=t=>t.dialogTitle===!0,CC=t=>{for(let e=t;e;e=e.parent)if(e.tag==="dialog")return e;return null},ym=t=>{let e=CC(t);return!e||!e.locked},vC=t=>t.key==="Escape"||t.key==="Esc",OC=t=>{let e=t.__ref,n=$t(t);if(!e||!n||!Object.prototype.hasOwnProperty.call(t,"locked"))return;let o=Bl(t),r=!fr(t,"closedby","closedBy"),i=P(()=>{let c=!!t.locked,f=$t(t);f&&r&&Jn(f,"closedby",c?"none":null)},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(i);let s=c=>{t.locked&&c.preventDefault()},a=t.context&&t.context.window||n.ownerDocument.defaultView,l=c=>{let f=$t(t);f&&f.open&&f.isConnected&&vC(c)&&t.locked&&c.preventDefault()};n.addEventListener("cancel",s),a&&a.addEventListener("keydown",l),o.unlock=()=>{n.removeEventListener("cancel",s),a&&a.removeEventListener("keydown",l)}},EC=t=>{let e=$t(t);if(!e||e.hasAttribute("aria-labelledby")||e.hasAttribute("aria-label")||fr(t,"aria-labelledby","ariaLabelledby","labelledby"))return;let n=typeof t.lookdown=="function"?t.lookdown(TC):null,o=$t(n);if(!o)return;let r=o.getAttribute("id");if(!r){if(fr(n,"id"))return;r=Bl(t).id+"-title",Jn(o,"id",r)}Jn(e,"aria-labelledby",r)},RC=(t,e)=>{let n=$t(e),o=t.target;if(!n||t.defaultPrevented||!o||typeof o.closest!="function")return;let r=o.closest("[data-dialog-action]");if(!r||!n.contains(r))return;let i=r.getAttribute("data-dialog-action");if(xC[i]!==1)return;let s=n.ownerDocument.defaultView,a=new s.Event(i,{cancelable:!0});n.dispatchEvent(a),!a.defaultPrevented&&n.open&&typeof n.close=="function"&&n.close(i)},IC=t=>{let e=hn.get(t);e&&e.unlock&&(e.unlock(),e.unlock=null);let n=$t(t);e&&e.want!==void 0&&n&&n.open&&typeof n.close=="function"&&n.close()},DC=t=>{let e=hn.get(t),n=$t(t);e&&e.want!==void 0&&n&&!n.isConnected&&n.hasAttribute("open")&&n.removeAttribute("open")},LC=t=>{let e=hn.get(t);e&&e.want&&_m(t)},PC=t=>{let e=$t(t);if(!e||!Object.prototype.hasOwnProperty.call(t,"modal")||fr(t,"data-dialog"))return;let n=t.modal;if(typeof n=="function")try{n=n(t,t.state)}catch{return}n!=null&&Jn(e,"data-dialog","modal")},mm=globalThis.__SMBLS_BUILD_DROP_C_Dialog__?k("Dialog"):{display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2",'[data-dialog="modal"]:not([open])':{display:"none"},onAttachNode:{always:!0,handler:t=>PC(t)},onComplete:{always:!0,handler:t=>{AC(t),OC(t),EC(t)}},onRender:{always:!0,handler:t=>LC(t)},onClick:(t,e)=>RC(t,e),onBeforeRemove:{always:!0,handler:t=>IC(t)},onRemove:{always:!0,handler:t=>DC(t)}},bm=globalThis.__SMBLS_BUILD_DROP_C_DialogHeader__?k("DialogHeader"):{extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{dialogTitle:!0,text:t=>ar(t,"dialog.title")},SquareButton:{if:ym,icon:"x",theme:"transparent",aria:{label:t=>ar(t,"dialog.close")},data:{dialogAction:"cancel"}}},Paragraph:{color:"caption"}},Sm=globalThis.__SMBLS_BUILD_DROP_C_DialogFooter__?k("DialogFooter"):{display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{if:ym,text:t=>ar(t,"dialog.cancel"),data:{dialogAction:"cancel"}},Ok:{text:t=>ar(t,"dialog.ok"),data:{dialogAction:"ok"}}};var Ul=/*@__PURE__*/__smblsNs({},{Tooltip:()=>vm,TooltipHidden:()=>Om,TooltipLayer:()=>$l,TooltipParent:()=>Em});var BC='[data-tooltip]:not([data-tooltip=""])',wm={top:1,bottom:1,left:1,right:1},Nl={top:"bottom",bottom:"top",left:"right",right:"left"},gn=6,xm=new WeakMap,MC=0,Tt=t=>{let e=xm.get(t);return e||(e={id:"smbls-tooltip-"+ ++MC,hover:null,focus:null,shown:null,dismissed:null,showTimer:null,hideTimer:null},xm.set(t,e)),e},Fl=t=>{let e=t&&t.nodeType!==1?t.parentElement:t;return e&&typeof e.closest=="function"?e:null},NC=t=>{let e=t.parent&&t.parent.node;return e&&e.nodeType===1?e:null},FC=t=>{for(let e=t.firstElementChild;e;e=e.nextElementSibling)if(e.hasAttribute("data-tooltip-layer"))return!0;return!1},km=(t,e)=>{let n=NC(t);if(!e||!n)return null;let o;try{o=e.closest(BC)}catch{return null}if(!o||!n.contains(o))return null;for(let r=o;r&&r!==n;r=r.parentElement)if(FC(r))return null;return o},jC=(t,e)=>!!(e&&t.node&&t.node.contains(e)),WC=t=>{try{return t.matches(":focus-visible")}catch{return!0}},Am=(t,e)=>typeof t=="number"&&t>=0?t:e,Ui=t=>{t.showTimer&&(clearTimeout(t.showTimer),t.showTimer=null),t.hideTimer&&(clearTimeout(t.hideTimer),t.hideTimer=null)},jl=t=>!!(t.node&&t.node.isConnected&&t.state&&typeof t.state.update=="function"),$C=(t,e)=>{let n=(t.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);n.indexOf(e)===-1&&n.push(e),t.setAttribute("aria-describedby",n.join(" "))},Wl=(t,e)=>{if(!t||typeof t.getAttribute!="function")return;let n=t.getAttribute("aria-describedby");if(n==null)return;let o=n.split(/\s+/).filter(r=>r&&r!==e);o.length?t.setAttribute("aria-describedby",o.join(" ")):t.removeAttribute("aria-describedby")},UC=(t,e,n,o,r)=>{let i={top:t.top,bottom:r-t.bottom,left:t.left,right:o-t.right},s=f=>(f==="top"||f==="bottom"?e.height:e.width)+gn;i[n]<s(n)&&i[Nl[n]]>=s(Nl[n])&&(n=Nl[n]);let a,l;n==="top"||n==="bottom"?(a=t.left+(t.width-e.width)/2,l=n==="bottom"?t.bottom+gn:t.top-e.height-gn):(l=t.top+(t.height-e.height)/2,a=n==="right"?t.right+gn:t.left-e.width-gn);let c=(f,u)=>Math.max(gn,Math.min(u-gn,f));return{left:c(a,o-e.width),top:c(l,r-e.height),side:n}},zC=t=>{let e=t.ownerDocument,n=e&&e.defaultView,o=e&&e.documentElement;return{width:o&&o.clientWidth||n&&n.innerWidth||0,height:o&&o.clientHeight||n&&n.innerHeight||0}},HC=t=>(t.title||"")+(t.description||""),Wi=(t,e=0)=>{let o=Tt(t).shown;if(!o||!jl(t))return;if(!o.isConnected){$i(t);return}let r=t.node,i=t.state;if(r.textContent!==HC(i)){e<3&&setTimeout(()=>Wi(t,e+1),0);return}let s=o.getBoundingClientRect(),a=r.getBoundingClientRect(),l=a.left-(i.x||0),c=a.top-(i.y||0),f=zC(r),u=o.getAttribute("data-tooltip-placement"),d=wm[u]?u:wm[t.tooltipPlacement]?t.tooltipPlacement:"bottom",p=UC(s,{width:a.width,height:a.height},d,f.width,f.height);i.update({x:Math.round(p.left-l),y:Math.round(p.top-c),side:p.side,placed:!0})},VC=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},Tm=(t,e)=>{let n=Tt(t);Ui(n),!(!jl(t)||!e.isConnected)&&(n.shown&&n.shown!==e&&Wl(n.shown,n.id),n.shown=e,$C(e,n.id),t.state.update({open:!0,placed:!1,title:e.getAttribute("data-tooltip")||"",description:e.getAttribute("data-tooltip-description")||""}),VC(()=>Wi(t)))};function $i(t){let e=Tt(t);Ui(e),e.shown&&Wl(e.shown,e.id),e.shown=null,jl(t)&&t.state.open&&t.state.update({open:!1})}var ji=(t,e)=>{let n=Tt(t);n.dismissed&&n.dismissed!==n.hover&&n.dismissed!==n.focus&&(n.dismissed=null);let o=n.hover&&n.hover!==n.dismissed?n.hover:n.focus&&n.focus!==n.dismissed?n.focus:null;if(o===n.shown){Ui(n);return}if(!o){if(n.showTimer&&(clearTimeout(n.showTimer),n.showTimer=null),!n.shown||n.hideTimer)return;if(e){$i(t);return}n.hideTimer=setTimeout(()=>{n.hideTimer=null,$i(t)},Am(t.tooltipHideDelay,100));return}if(n.hideTimer&&(clearTimeout(n.hideTimer),n.hideTimer=null),e||n.shown){Tm(t,o);return}n.showTimer&&clearTimeout(n.showTimer),n.showTimer=setTimeout(()=>{n.showTimer=null,Tm(t,o)},Am(t.tooltipDelay,250))},Cm=t=>{let e=Tt(t);e.shown&&(e.dismissed=e.shown,$i(t))},$l=globalThis.__SMBLS_BUILD_DROP_C_TooltipLayer__?k("TooltipLayer"):{role:"tooltip",id:t=>Tt(t).id,data:{tooltipLayer:!0},state:{open:!1,placed:!1,title:"",description:"",x:0,y:0,side:"bottom"},tooltipPlacement:"bottom",display:"flex",flow:"column",gap:"X",theme:"dialog",padding:"Z1 A",round:"Y2",width:"max-content",maxWidth:"F2",textAlign:"center",position:"fixed",zIndex:2500,opacity:(t,e)=>e.open&&e.placed?"1":"0",visibility:(t,e)=>e.open&&e.placed?"visible":"hidden",pointerEvents:(t,e)=>e.open?"auto":"none",transition:"opacity A defaultBezier, visibility A defaultBezier",style:(t,e)=>({top:(e.y||0)+"px",left:(e.x||0)+"px"}),Text:{if:(t,e)=>!!e.title,text:(t,e)=>e.title,fontWeight:500,color:"currentColor"},P:{if:(t,e)=>!!e.description,text:(t,e)=>e.description,fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:400},onDocumentPointerover:{capture:!0,passive:!0,handler:(t,e)=>{if(t.pointerType==="touch")return;let n=Tt(e),o=Fl(t.target),r=jC(e,o)?n.shown:km(e,o);r===n.hover&&(r||!n.shown)||(n.hover=r,ji(e,!1))}},onDocumentPointerout:{capture:!0,passive:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Tt(e);n.hover&&(n.hover=null,ji(e,!1))}},onDocumentPointerdown:{capture:!0,passive:!0,handler:(t,e)=>{let n=Tt(e),o=Fl(t.target);n.shown&&o&&n.shown.contains(o)&&Cm(e)}},onDocumentFocusin:{capture:!0,handler:(t,e)=>{let n=Tt(e),o=Fl(t.target),r=o&&WC(o)?km(e,o):null;r!==n.focus&&(n.focus=r,ji(e,!0))}},onDocumentFocusout:{capture:!0,handler:(t,e)=>{if(t.relatedTarget)return;let n=Tt(e);n.focus&&(n.focus=null,ji(e,!0))}},onDocumentKeydown:{capture:!0,handler:(t,e)=>{(t.key==="Escape"||t.key==="Esc")&&Cm(e)}},onDocumentScroll:{capture:!0,passive:!0,handler:(t,e)=>{Tt(e).shown&&Wi(e)}},onWindowResize:(t,e)=>{Tt(e).shown&&Wi(e)},onBeforeRemove:t=>{let e=Tt(t);Ui(e),e.shown&&Wl(e.shown,e.id),e.shown=e.hover=e.focus=e.dismissed=null}};var vm=globalThis.__SMBLS_BUILD_DROP_C_Tooltip__?k("Tooltip"):{display:"flex",theme:"dialog",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:t=>Se(t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},Om=globalThis.__SMBLS_BUILD_DROP_C_TooltipHidden__?k("TooltipHidden"):{extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)}},Em=globalThis.__SMBLS_BUILD_DROP_C_TooltipParent__?k("TooltipParent"):{position:"relative",zIndex:999,onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,o=e||n;if(!o)return;let r=o&&o[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":r||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var zl=/*@__PURE__*/__smblsNs({},{Avatar:()=>Rm});var GC=t=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="32" fill="#71718A"/><text x="32" y="42" font-family="system-ui,sans-serif" font-size="28" font-weight="700" text-anchor="middle" fill="#fff">${String(t||"").trim().charAt(0).toUpperCase()||"?"}</text></svg>`;return"data:image/svg+xml;utf8,"+encodeURIComponent(n)},Rm=globalThis.__SMBLS_BUILD_DROP_C_Avatar__?k("Avatar"):{extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.avatarType||"initials"}/svg?seed=${t.key||"no-avatar"}`,onError:(t,e)=>{if(!e.node||e.node.__avatarFallbackApplied)return;e.node.__avatarFallbackApplied=!0;let n=e.node.getAttribute("alt")||(e.key!=="no-avatar"?e.key:"");e.node.src=GC(n)},attr:{alt:t=>t.alt!=null?t.alt:t.text?t.call("exec",t.text,t):t.key&&t.key!=="no-avatar"?t.key:""}};var Hl=/*@__PURE__*/__smblsNs({},{Range:()=>Im});var Im={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},onChange:(t,e,n)=>{n.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ss("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ss("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,n)=>{let o=t.call("exec",t[e],t);return(t.call("isFunction",o)?o(t,t.state):o!==void 0?o:n!==void 0?n:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.value||t.defaultValue,t),min:(t,e)=>t.deps.returnPropertyValue(t,"min",0),max:(t,e)=>t.deps.returnPropertyValue(t,"max",100),step:(t,e)=>t.deps.returnPropertyValue(t,"step",1)}};var tf=/*@__PURE__*/__smblsNs({},{Dropdown:()=>ob,DropdownDisclosure:()=>sb,DropdownList:()=>rb,DropdownParent:()=>ib,DropdownParentFocus:()=>ab,DropdownSiblingFocus:()=>cb});var qi="hover",Bm="focus",ur="sibling",_e="disclosure",Dm={menu:1,listbox:1,tree:1,grid:1,dialog:1},KC={DIV:1,SPAN:1,LABEL:1,P:1,STRONG:1,B:1,EM:1,SMALL:1,H1:1,H2:1,H3:1,H4:1,H5:1,H6:1},qC={BUTTON:1,INPUT:1,SELECT:1,TEXTAREA:1},YC='button, a[href], [role^="menuitem"], [role="option"]',ZC={ArrowDown:1,Down:1,ArrowUp:-1,Up:-1,Home:"first",End:"last"},Hi=new WeakMap,Vi=new WeakMap,Gi=new WeakMap,Gl=new WeakMap,Mm=new WeakSet,QC=0,W=t=>{let e=t&&t.node;return e&&e.nodeType===1?e:null},to=(t,e)=>{let n=W(t);return n?n.getAttribute(e):null},G=(t,e)=>{let n=W(t);return!!n&&!!e&&(n===e||n.contains(e))},Vl=t=>{let e=W(t);return!!e&&e.hasAttribute("dropdown")},Kl=t=>{let e=W(t);return!!e&&e.tagName==="BUTTON"},zi=t=>Kl(t)||to(t,"role")==="button",Lm=t=>{let e=W(t);return!!e&&KC[e.tagName]===1&&!e.isContentEditable},Nm=t=>{let e=W(t);return!!e&&!e.disabled&&!e.hidden&&e.getAttribute("aria-disabled")!=="true"},dr=t=>{let e=to(t,"role");return!!e&&e.indexOf("menuitem")===0&&Nm(t)},XC=t=>{let e=W(t);if(!e||!Nm(t))return!1;if(qC[e.tagName]===1)return e.getAttribute("type")!=="hidden";if(e.tagName==="A"&&e.hasAttribute("href"))return!0;let n=e.getAttribute("tabindex");return n!==null&&parseInt(n,10)>=0},_n=t=>t&&typeof t.getChildren=="function"?t.getChildren():[],Ct=t=>t&&typeof t.dropdownMode=="string"?t.dropdownMode:null,ql=t=>{let e=t&&t.Input_trigger;return e&&e.__ref?e:null},Fm={tabindex:"tabIndex","aria-expanded":"ariaExpanded","aria-haspopup":"ariaHaspopup","aria-controls":"ariaControls","aria-labelledby":"ariaLabelledby","aria-label":"ariaLabel","aria-hidden":"ariaHidden"},jm=(t,e)=>{if(t[e]!==void 0)return!0;let n=Fm[e];if(n!==void 0&&t[n]!==void 0)return!0;let o=t.attr;if(o&&typeof o=="object"&&o[e]!==void 0)return!0;if(e.indexOf("aria-")===0){let r=t.aria;if(r&&typeof r=="object"&&r[e.slice(5)]!==void 0)return!0}return!1},JC=(t,e)=>{let n=Fm[e],o=t.attr;return typeof t[e]=="function"||n!==void 0&&typeof t[n]=="function"||!!o&&typeof o=="object"&&typeof o[e]=="function"},oe=(t,e,n)=>!e.hasAttribute(n)&&!jm(t,n),je=(t,e,n)=>{n===null?t.removeAttribute(e):t.setAttribute(e,n)},tv=(t,e)=>{let n=W(t);if(n)for(let o in e)je(n,o,e[o])},Ki=t=>{let e=W(t);return!e||typeof e.focus!="function"?!1:(e.focus(),e.ownerDocument.activeElement===e)},ev=t=>{let e=Hi.get(t);return e||(e={id:"smbls-dropdown-"+ ++QC,open:null,trigger:null,panel:null,popup:null,popupRole:null,owns:!1,pressedOpen:!1,written:null,outside:null,outsideDoc:null},Hi.set(t,e)),e},Pm=(t,e)=>!!e&&!!W(e)&&!!t&&t[e.key]===e,nv=(t,e)=>{let n=null,o=null;if(e===ur){let i=t.parent?_n(t.parent):[];for(let s=i.indexOf(t)+1;s>0&&s<i.length&&i[s];s++)if(Vl(i[s])){n=i[s];break}return(zi(t)||Lm(t))&&(o=t),{panel:n,trigger:o}}let r=_n(t);for(let i=0;i<r.length;i++)if(Vl(r[i])){n=r[i];break}if(zi(t))return{panel:n,trigger:t};for(let i=0;i<r.length;i++){let s=r[i];if(!(!W(s)||s.key==="Input_trigger"||Vl(s))){(zi(s)||Lm(s))&&(o=s);break}}return{panel:n,trigger:o}},ov=t=>{let e=to(t,"role");if(e&&Dm[e]===1)return{el:t,role:e};let n=_n(t);for(let o=0;o<n.length;o++){let r=to(n[o],"role");if(r&&Dm[r]===1)return{el:n[o],role:r}}return null},Ut=t=>{let e=Ct(t);if(!e||!W(t))return null;let n=ev(t);if(n.trigger){let p=e===ur?t.parent:t;if((n.trigger===t||Pm(t,n.trigger))&&Pm(p,n.panel))return n}let{panel:o,trigger:r}=nv(t,e);if(!o||!r)return n.trigger=n.panel=n.popup=null,null;n.trigger=r,n.panel=o;let i=e===_e?null:ov(o);n.popup=i?i.el:null,n.popupRole=i?i.role:null;let s=W(r),a={},l=s.getAttribute("id");n.popupRole==="menu"&&!l&&oe(r,s,"id")&&(a.id=l=n.id+"-trigger"),zi(r)||(oe(r,s,"role")&&(a.role="button"),oe(r,s,"tabindex")&&(a.tabindex="0")),n.popupRole&&oe(r,s,"aria-haspopup")&&(a["aria-haspopup"]=n.popupRole);let c=W(o),f=c.getAttribute("id");if(!f&&oe(o,c,"id")&&(f=n.id+"-panel",je(c,"id",f)),f&&oe(r,s,"aria-controls")&&(a["aria-controls"]=f),n.owns=oe(r,s,"aria-expanded"),n.written={open:null,expanded:null},n.owns&&(n.written.expanded=Yi(t,n)?"true":"false",a["aria-expanded"]=n.written.expanded),tv(r,a),n.popupRole==="menu"&&l){let p=W(n.popup);oe(n.popup,p,"aria-label")&&oe(n.popup,p,"aria-labelledby")&&je(p,"aria-labelledby",l)}r!==t&&e===Bm&&to(t,"tabindex")==="0"&&!JC(t,"tabindex")&&je(W(t),"tabindex","-1");let u=ql(t),d=W(u);return d&&!d.hasAttribute("tabindex")&&(jm(u,"tabindex")||je(d,"tabindex","-1"),oe(u,d,"aria-hidden")&&je(d,"aria-hidden","true")),yn(t,n),n},Wm=t=>{let e=W(t),n=e&&e.ownerDocument.activeElement;return n&&n!==e.ownerDocument.body?n:null},$m=t=>G(t,Wm(t)),Yi=(t,e,n)=>{if(e.open!==null)return e.open;let o=Ct(t);return n||o===qi||o===_e?!1:$m(t)},yn=(t,e,n)=>{let o=e.open===null?null:String(e.open);if(e.written.open!==o){e.written.open=o;let i=W(t);i&&je(i,"data-dropdown-open",o)}if(!e.owns)return;let r=Yi(t,e,n)?"true":"false";if(e.written.expanded!==r){e.written.expanded=r;let i=W(e.trigger);i&&je(i,"aria-expanded",r)}},bn=t=>{let e=Vi.get(t);return e||(e={stop:null,stopItem:null,chosen:!1,ready:!1,settling:!1,checks:null,checkRows:null,owned:!1},Vi.set(t,e)),e},Um=(t,e)=>{if(t.stopItem===e&&t.stop===e.key)return;let n=t.stopItem&&Gi.get(t.stopItem);t.stop=e.key,t.stopItem=e,n&&n.set(!1);let o=Gi.get(e);o&&o.set(!0)},zm=(t,e)=>{let n=bn(t);n.chosen=!0,Um(n,e)},Hm=t=>{let e=bn(t);if(e.settling=!1,e.chosen)return;let n=_n(t);for(let o=0;o<n.length;o++)if(dr(n[o])){Um(e,n[o]);return}},Vm=(t,e)=>{if(!e||!e.contains(t))return!1;let n=[];for(let r=t;r!==e;r=r.parentElement)n.push(r);n.push(e);let o=!1;for(let r=n.length-1;r>=0;r--){let i=typeof n[r].getAnimations=="function"?n[r].getAnimations():[];for(let s=0;s<i.length;s++)i[s].transitionProperty==="visibility"&&(i[s].finish(),o=!0)}return o},Gm=(t,e)=>{let n=W(t);if(!n)return;let o=n.ownerDocument.activeElement,r=Ki(t);!r&&e&&n.ownerDocument.activeElement===o&&Vm(n,W(e))&&(r=Ki(t));let i=t.parent;r&&i&&Vi.has(i)&&zm(i,t)},rv=t=>{let e=t.popupRole==="menu"?t.popup:t.panel;return!e||typeof e.lookdownAll!="function"?[]:e.lookdownAll(t.popupRole==="menu"?dr:XC)},iv=(t,e,n)=>{if(n==="trigger"){let i=Wm(t);(!G(t,i)&&!G(e.panel,i)||G(ql(t),i))&&Ki(e.trigger);return}let o=rv(e);if(!o.length)return;let r=n==="last"?o[o.length-1]:null;if(!r)for(let i=0;i<o.length&&!r;i++)to(o[i],"aria-checked")==="true"&&(r=o[i]);Gm(r||o[0],e.panel)},Yl=(t,e,n)=>{let o=W(t),r=o&&o.ownerDocument;n&&!e.outside&&r?(e.outside=i=>{if(!W(t)||!W(t).isConnected){Yl(t,e,!1);return}G(t,i.target)||G(e.panel,i.target)||yt(t,e,!1)},e.outsideDoc=r,r.addEventListener("pointerdown",e.outside,!0)):!n&&e.outside&&(e.outsideDoc.removeEventListener("pointerdown",e.outside,!0),e.outside=e.outsideDoc=null)},Km=(t,e)=>{let n=W(t),o=n&&n.ownerDocument&&n.ownerDocument.defaultView;if(!o||typeof o.Event!="function")return;let r=new o.Event("toggle");Object.defineProperty(r,"newState",{value:e?"open":"closed"}),Object.defineProperty(r,"oldState",{value:e?"closed":"open"}),n.dispatchEvent(r)},eo=(t,e,n)=>{let o=e.open===!0;if(e.open=!0,yn(t,e),Ct(t)===_e){Yl(t,e,!0);let r=W(e.panel);r&&Vm(r,r),o||Km(t,!0)}n&&iv(t,e,n)},yt=(t,e,n)=>{let o=e.open===!0;e.open=!1,yn(t,e),e.outside&&Yl(t,e,!1),n&&Ki(e.trigger),o&&Ct(t)===_e&&Km(t,!1)},sv=t=>{let e=t.__ref;if(!e||Ct(t)!==_e||!Object.prototype.hasOwnProperty.call(t,"open"))return;let n=P(()=>{let o=t.open;o!=null&&ns(()=>{let r=Ut(t);!r||!!o==(r.open===!0)||(o?eo(t,r,null):yt(t,r,$m(t)))})},{depth:e.path&&e.path.length||0});e.__effects||(e.__effects=[]),e.__effects.push(n)},Zi=(t,e,n)=>e.trigger===t?!G(e.panel,n):G(e.trigger,n)?!0:G(ql(t),n),Zl=(t,e)=>{let n=e&&typeof e.closest=="function"?e.closest(YC):null;return!!n&&G(t,n)},qm=(t,e,n)=>{let o=t.key;o==="Escape"||o==="Esc"?(t.preventDefault(),yt(e,n,!0)):o==="Tab"&&n.popupRole==="menu"&&G(n.popup,t.target)&&yt(e,n,!1)},Qi=t=>{Ct(t)===ur&&t.parent&&Mm.add(t.parent),Ut(t),sv(t)},Xi=(t,e)=>{let n=Ut(e);n&&(n.pressedOpen=Yi(e,n))},av=(t,e)=>{let n=Hi.get(e);!n||!n.trigger||n.open!==!1||Ct(e)!==qi||(n.open=null,yn(e,n))},Ji=(t,e)=>{if(Ct(e)===_e){lv(t,e);return}if(t.defaultPrevented)return;let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){if(Ct(e)!==qi||!Zl(n.panel,o))return;(n.open===!0||t.detail===0)&&yt(e,n,!0);return}if(!Zi(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?yt(e,n,!0):eo(e,n,n.popupRole==="menu"?"first":"trigger")},ts=(t,e)=>{if(t.defaultPrevented)return;if(Ct(e)===_e){fv(t,e);return}let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){qm(t,e,n);return}if(!Zi(e,n,o))return;let r=t.key;if(r==="ArrowDown"||r==="Down"||r==="ArrowUp"||r==="Up")t.preventDefault(),eo(e,n,r==="ArrowUp"||r==="Up"?"last":"first");else if(r==="Escape"||r==="Esc"){if(!Yi(e,n))return;t.preventDefault(),yt(e,n,!1)}else(r==="Enter"||r===" "||r==="Spacebar")&&!Kl(n.trigger)&&(t.preventDefault(),n.open===!0?yt(e,n,!0):eo(e,n,n.popupRole==="menu"?"first":"trigger"))},cv=t=>!!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey),lv=(t,e)=>{let n=Ut(e);if(!n)return;let o=t.target;if(G(n.panel,o)){n.open===!0&&!cv(t)&&e.keepOpen!==!0&&Zl(n.panel,o)&&yt(e,n,!0);return}if(t.defaultPrevented||!Zi(e,n,o))return;let r=t.detail===0?n.open===!0:n.pressedOpen;n.pressedOpen=!1,r?yt(e,n,!0):eo(e,n,"trigger")},fv=(t,e)=>{let n=Ut(e);if(!n)return;let o=t.key;if(o==="Escape"||o==="Esc"){if(n.open!==!0)return;t.preventDefault(),yt(e,n,!0);return}(o==="Enter"||o===" "||o==="Spacebar")&&!Kl(n.trigger)&&!G(n.panel,t.target)&&Zi(e,n,t.target)&&(t.preventDefault(),n.open===!0?yt(e,n,!0):eo(e,n,"trigger"))},Ql=(t,e)=>{let n=Ut(e);n&&(n.open===null&&G(n.panel,t.target)&&(n.open=!0),yn(e,n))},pr=(t,e)=>{let n=Hi.get(e);if(!n||!n.trigger)return;let o=t.relatedTarget;if(Ct(e)===_e){n.open===!0&&o&&!G(e,o)&&!G(n.panel,o)&&yt(e,n,!1);return}if(o&&(G(e,o)||G(n.panel,o))){n.open===null&&G(n.panel,o)&&(n.open=!0,yn(e,n));return}n.open=null,yn(e,n,!0)},Ym=t=>{let e=t.parent;if(!e||!Mm.has(e))return null;let n=_n(e);for(let o=n.indexOf(t)-1;o>=0&&n[o];o--)if(Ct(n[o])===ur)return n[o];return null},Xl=t=>{let e=Ym(t),n=e?Ut(e):null;return n&&n.panel===t?{ctrl:e,rec:n}:null},Zm=t=>{let e=Ym(t);e&&Ut(e)},Qm=(t,e)=>{if(t.defaultPrevented)return;let n=Xl(e);n&&qm(t,n.ctrl,n.rec)},Xm=(t,e)=>{if(t.defaultPrevented||!Zl(e,t.target))return;let n=Xl(e);n&&yt(n.ctrl,n.rec,!0)},Jm=(t,e)=>{let n=Xl(e);n&&pr(t,n.ctrl)},uv=(t,e)=>{let n=e.parent,o=Ct(n)?Ut(n):null;if(o&&o.panel===e){yt(n,o,!0);return}let r=W(e),i=r&&r.ownerDocument.activeElement;i&&typeof i.blur=="function"&&i.blur()},tb=(t,e)=>{if(Ct(e.parent)&&Ut(e.parent))return;let n=W(e);n&&n===n.ownerDocument.activeElement&&n.blur()},dv=(t,e)=>{if(t.defaultPrevented)return;let n=ZC[t.key];if(!n)return;let o=typeof e.lookdownAll=="function"?e.lookdownAll(dr):[];if(!o.length)return;let r=-1;for(let s=0;s<o.length&&r===-1;s++)G(o[s],t.target)&&(r=s);let i;n==="first"?i=0:n==="last"?i=o.length-1:r===-1?i=n>0?0:o.length-1:i=(r+n+o.length)%o.length,t.preventDefault(),Gm(o[i])},pv=(t,e)=>{let n=_n(e);for(let o=0;o<n.length;o++)if(G(n[o],t.target)){dr(n[o])&&zm(e,n[o]);return}},hv=t=>{let e=t.parent;if(!e)return"0";let n=bn(e),o=Gi.get(t);if(!o){n.stop===null&&(n.stop=t.key);let r=n.stop===t.key;r&&(n.stopItem=t),n.ready&&!n.chosen&&!n.settling&&(n.settling=!0,queueMicrotask(()=>Hm(e))),o=hr(r),Gi.set(t,o)}return o.get()?"0":"-1"},gv=t=>{Zm(t);let e=bn(t);e.ready=!0,!(e.stopItem&&e.stopItem.parent===t&&dr(e.stopItem))&&Hm(t)},_v=t=>{let e=Gl.get(t),n=!e;n&&(e={tick:hr(0),seen:0,checked:!1},Gl.set(t,e));let o=e.tick.get();return o===e.seen&&(e.checked=!!ns(()=>t.isActive)),e.seen=o,n&&t.parent&&mv(t.parent),e.checked?"true":"false"},yv=(t,e)=>{if(e.checkRows.get(),!t.node){nb(t);return}let n=_n(t);for(let o=0;o<n.length;o++){let r=Gl.get(n[o]);if(!r)continue;let i=!!n[o].isActive;i!==r.checked&&(r.checked=i,r.tick.set(r.tick.peek()+1))}},eb=t=>{let e=bn(t);e.checks||(e.checkRows||(e.checkRows=hr(0)),e.checks=P(()=>yv(t,e),{label:"DropdownList.checks"}))},nb=t=>{let e=Vi.get(t);!e||!e.checks||(e.checks.dispose(),e.checks=null)},mv=t=>{let e=bn(t);e.checks?e.checkRows.set(e.checkRows.peek()+1):e.owned||eb(t)},bv=t=>{bn(t).owned=!0},mn={transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"},Jl={opacity:0,visibility:"hidden"},ob=globalThis.__SMBLS_BUILD_DROP_C_Dropdown__?k("Dropdown"):{attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden",onComplete:{always:!0,handler:Zm},onKeydown:Qm,onClick:Xm,onFocusout:Jm},rb=globalThis.__SMBLS_BUILD_DROP_C_DropdownList__?k("DropdownList"):{display:"flex",attr:{dropdown:!0},role:"menu",padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",listStyleType:"none",transition:"transform B defaultBezier, opacity B defaultBezier, visibility B defaultBezier",children:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},onKeydown:(t,e)=>{dv(t,e),Qm(t,e)},onInit:{always:!0,handler:bv},onComplete:{always:!0,handler:gv},onRender:{always:!0,handler:eb},onBeforeRemove:{always:!0,handler:nb},onFocusin:pv,onClick:Xm,onFocusout:Jm,childExtends:{extends:"Button",state:{},role:"menuitemradio",tabindex:t=>hv(t),aria:{checked:t=>_v(t)},isActive:(t,e)=>e.active===t.key,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},':where([aria-checked="true"])':{style:{svg:{opacity:"1"}}},Icon:{name:"check",opacity:"0.1"},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},ib=globalThis.__SMBLS_BUILD_DROP_C_DropdownParent__?k("DropdownParent"):{position:"relative",zIndex:999,dropdownMode:qi,":hover":{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="false"]:hover':{"& [dropdown]":{...Jl}},onComplete:{always:!0,handler:Qi},onPointerdown:Xi,onPointerenter:av,onClick:Ji,onKeydown:ts,onFocusin:Ql,onFocusout:pr},sb=globalThis.__SMBLS_BUILD_DROP_C_DropdownDisclosure__?k("DropdownDisclosure"):{position:"relative",dropdownMode:_e,'[data-dropdown-open="true"]':{zIndex:1e3,"& > [dropdown]":{...mn}},onComplete:{always:!0,handler:Qi},onPointerdown:Xi,onClick:Ji,onKeydown:ts,onFocusout:pr},ab=globalThis.__SMBLS_BUILD_DROP_C_DropdownParentFocus__?k("DropdownParentFocus"):{position:"relative",tabindex:"0",dropdownMode:Bm,":focus-within":{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& [dropdown]":{...mn}},'[data-dropdown-open="false"]:focus-within':{"& [dropdown]":{...Jl}},onComplete:{always:!0,handler:Qi},onPointerdown:Xi,onClick:Ji,onKeydown:ts,onFocusin:Ql,onFocusout:pr,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>tb(t,e)},Dropdown:{onClick:(t,e)=>uv(t,e)}},cb=globalThis.__SMBLS_BUILD_DROP_C_DropdownSiblingFocus__?k("DropdownSiblingFocus"):{position:"relative",tabindex:"0",dropdownMode:ur,":focus-within":{zIndex:1e3,"& ~ [dropdown]":{...mn}},'[data-dropdown-open="true"]':{zIndex:1e3,"& ~ [dropdown]":{...mn}},'[data-dropdown-open="false"]:focus-within':{"& ~ [dropdown]":{...Jl}},onComplete:{always:!0,handler:Qi},onPointerdown:Xi,onClick:Ji,onKeydown:ts,onFocusin:Ql,onFocusout:pr,Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(t,e)=>tb(t,e)}};var ef=/*@__PURE__*/__smblsNs({},{Notification:()=>lb});var lb=globalThis.__SMBLS_BUILD_DROP_C_Notification__?k("Notification"):{display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var fb=Object.assign({},ol,rl,il,sl,cl,dl,pl,hl,fl,gl,_l,ul,yl,ml,bl,Sl,wl,xl,kl,Al,Tl,Cl,El,Dl,Ll,Pl,Ml,Ul,zl,Hl,tf,ef);export{Tv as a,ub as b,db as c,pb as d,hb as e,Cv as f,gb as g,vv as h,Ov as i,Ev as j,_b as k,Rv as l,Iv as m,lo as n,Hf as o,Dv as p,Kf as q,mb as r,Tn as s,bb as t,Mv as u,Fv as v,Yf as w,Xf as x,Kv as y,qv as z,Yv as A,Sb as B,Zv as C,Qv as D,Xv as E,Jv as F,t0 as G,Jf as H,e0 as I,hs as J,tu as K,eu as L,nu as M,ou as N,ru as O,n0 as P,wb as Q,xb as R,Qf as S,gs as T,o0 as U,iu as V,Or as W,su as X,au as Y,cu as Z,r0 as _,lu as $,fu as aa,i0 as ba,fo as ca,a0 as da,Ht as ea,_s as fa,du as ga,pu as ha,V as ia,Zt as ja,Ir as ka,Dr as la,ws as ma,zb as na,Vb as oa,go as pa,Iu as qa,Gb as ra,Zb as sa,Bt as ta,Ds as ua,Ye as va,cS as wa,lS as xa,Qe as ya,Ze as za,mS as Aa,bS as Ba,Is as Ca,jr as Da,SS as Ea,ct as Fa,xS as Ga,Xe as Ha,Ns as Ia,Uu as Ja,zu as Ka,$s as La,Ju as Ma,td as Na,ed as Oa,nd as Pa,od as Qa,Vs as Ra,Gs as Sa,kt as Ta,id as Ua,Hr as Va,sd as Wa,cw as Xa,ad as Ya,lw as Za,yo as _a,fd as $a,ud as ab,dd as bb,z as cb,X as db,_d as eb,yd as fb,ww as gb,xw as hb,kw as ib,Nt as jb,PO as kb,xd as lb,Xs as mb,na as nb,ta as ob,Ce as pb,ve as qb,ea as rb,So as sb,sa as tb,ko as ub,oa as vb,aa as wb,ca as xb,la as yb,Ft as zb,Gw as Ab,Ud as Bb,qw as Cb,Yw as Db,jE as Eb,Oe as Fb,rx as Gb,Ee as Hb,ix as Ib,In as Jb,ue as Kb,Gt as Lb,tp as Mb,WE as Nb,$E as Ob,tn as Pb,qd as Qb,da as Rb,en as Sb,ep as Tb,np as Ub,Np as Vb,Et as Wb,Fo as Xb,Bh as Yb,iA as Zb,Gn as _b,fA as $b,Uh as ac,mi as bc,qo as cc,gc as dc,cT as ec,eD as fc,Ry as gc,Qg as hc,p_ as ic,Xc as jc,C_ as kc,O_ as lc,$T as mc,I_ as nc,D_ as oc,ir as pc,tl as qc,Fe as rc,iC as sc,el as tc,ar as uc,fb as vc,Sv as wc};
28
+ //# sourceMappingURL=smbls.core.chunk-L6DO7X4H.esm.js.map