smbls 3.8.2 → 3.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- "use strict";var Smbls=(()=>{var ga=Object.defineProperty;var Cy=Object.getOwnPropertyDescriptor;var Ey=Object.getOwnPropertyNames;var ky=Object.prototype.hasOwnProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Nt=(t,e)=>{for(var r in e)ga(t,r,{get:e[r],enumerable:!0})},Ay=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ey(e))!ky.call(t,o)&&o!==r&&ga(t,o,{get:()=>e[o],enumerable:!(n=Cy(e,o))||n.enumerable});return t};var Oy=t=>Ay(ga({},"__esModule",{value:!0}),t);var Zl,tf,F,B,Jr=G(()=>{Zl=globalThis,tf=globalThis,F=globalThis,B=F.document});var me,co,Ft,Zr=G(()=>{Jr();me=t=>(typeof Node=="object"?t instanceof F.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,co=t=>(typeof HTMLElement=="object"?t instanceof F.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Ft=t=>typeof F<"u"&&(F.Node&&t instanceof F.Node||F.Window&&t instanceof F.Window||t===F||t===document)});var g,b,ct,y,tn,ya,x,ba,I,dt,K,lo,At,ur,xt=G(()=>{Zr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,b=t=>typeof t=="string",ct=t=>typeof t=="number",y=t=>typeof t=="function",tn=t=>t===!0||t===!1,ya=t=>t===null,x=t=>Array.isArray(t),ba=t=>t instanceof Date,I=t=>t===null?!1:typeof t=="object",dt=t=>t!==void 0,K=t=>t===void 0,lo={boolean:tn,array:x,object:g,string:b,date:ba,number:ct,null:ya,function:y,objectLike:I,node:me,htmlElement:co,defined:dt},At=t=>(...e)=>e.some(r=>lo[r](t)),ur=t=>(...e)=>!e.some(r=>lo[r](t))});var ef,rf,fo,nf,en,uo,of,sf,po,af,cf,lf,ff,uf,pf,df,rn,pr,dr=G(()=>{ge();xt();ef=(t,e)=>e.every(r=>t.includes(r)),rf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},fo=(t,e)=>{if(b(e)&&(e=parseInt(e)),ct(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},nf=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},en=(...t)=>[].concat(...t),uo=(t,e=[])=>t.reduce((r,n)=>W(r,j(n,{exclude:e}),e),{}),of=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},sf=(t,e)=>{if(!x(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},po=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},af=(t,e)=>t.filter(r=>r!==e),cf=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},lf=(t,e,r)=>{let n=[...t],o=n.indexOf(e),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},ff=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},uf=(t,e)=>t.filter(r=>!e.includes(r)),pf=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},df=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},rn=t=>x(t)?[...new Set(t)]:t,pr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function mf(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Ty[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d)try{let h=Sa(i,p);return String(d.call(a,h??p)??"")}catch{return""}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let S=0;S<d;S++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=Sa(h,p);return String(m??"")}else{let d=Sa(i,p);return String(d??"")}})}var ho,hf,Ty,Sa,re,gf,Ry,yf,bf,Sf,Iy,xf,_f,nn=G(()=>{ho=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},hf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Ty={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Sa=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);re=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,gf=(t,e)=>{let r=t.split(`
2
- `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Ry=/\\([0-7]{1,3})/g,yf=t=>t.replace(Ry,(e,r)=>String.fromCharCode(parseInt(r,8))),bf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Sf=t=>t.replace(/\/\/\/\/\/n/g,`
3
- `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Iy=/[^a-zA-Z0-9\s]/g,xf=t=>t.replace(Iy,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),_f=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var Fe,mo,wf,Ot,De,on,go,yo,hr=G(()=>{Fe=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context"]),mo=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),wf=["ref","parent","__element","__depends","__ref","__children","root"],Ot=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),De=new Set(["update","__element"]),on=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren"]),go=new Set(["node","context","extends","__element","__ref",...on,...Ot,...De]),yo=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var vf,$e,A,Cf,Y,W,Ef,j,bo,Py,So,Ny,Fy,sn,ne,xo,kf,Af,xa,Of,Tf,oe,mr,it,_a,Dy,_o,wo,wa,vo,Co,Eo,ko,Ao,Rf,If,ge=G(()=>{Jr();xt();dr();nn();Zr();hr();vf=process.env.NODE_ENV,$e=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,A=(t,e,r,n)=>{if(y(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},Cf=(t,e,r)=>{for(let n in e)t[n]=A(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&($e(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},W=(t,e,r=go)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||$e(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];I(s)&&I(i)?W(s,i,r):s===void 0&&(t[o]=i)}return t},Ef=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&($e(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},j=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||F||globalThis;if(!I(t)||Ft(t))return t;if(i.has(t))return i.get(t);let l=x(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||$e(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Ft(d)){l[p]=d;continue}if(a&&p==="extends"&&x(d)){l[p]=uo(d,r);continue}if(y(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}I(d)?l[p]=j(d,{...e,visited:i}):l[p]=d}}return l},bo=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(y(n))e[r]=n.toString();else if(g(n))e[r]={},bo(n,e[r]);else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},bo(i,o[s])):y(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Py=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),So=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
- `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(Py.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,x(i)){o+=`[
1
+ "use strict";var Smbls=(()=>{var ga=Object.defineProperty;var wy=Object.getOwnPropertyDescriptor;var vy=Object.getOwnPropertyNames;var Cy=Object.prototype.hasOwnProperty;var G=(t,e)=>()=>(t&&(e=t(t=0)),e);var Nt=(t,e)=>{for(var r in e)ga(t,r,{get:e[r],enumerable:!0})},Ey=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of vy(e))!Cy.call(t,o)&&o!==r&&ga(t,o,{get:()=>e[o],enumerable:!(n=wy(e,o))||n.enumerable});return t};var ky=t=>Ey(ga({},"__esModule",{value:!0}),t);var Zl,tf,D,B,Jr=G(()=>{Zl=globalThis,tf=globalThis,D=globalThis,B=D.document});var me,co,Dt,Zr=G(()=>{Jr();me=t=>(typeof Node=="object"?t instanceof D.Node:t&&typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.nodeName=="string")||!1,co=t=>(typeof HTMLElement=="object"?t instanceof D.HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string")||!1,Dt=t=>typeof D<"u"&&(D.Node&&t instanceof D.Node||D.Window&&t instanceof D.Window||t===D||t===document)});var g,b,ct,y,tn,ya,x,ba,I,dt,K,lo,At,ur,xt=G(()=>{Zr();g=t=>t===null?!1:typeof t=="object"&&t.constructor===Object,b=t=>typeof t=="string",ct=t=>typeof t=="number",y=t=>typeof t=="function",tn=t=>t===!0||t===!1,ya=t=>t===null,x=t=>Array.isArray(t),ba=t=>t instanceof Date,I=t=>t===null?!1:typeof t=="object",dt=t=>t!==void 0,K=t=>t===void 0,lo={boolean:tn,array:x,object:g,string:b,date:ba,number:ct,null:ya,function:y,objectLike:I,node:me,htmlElement:co,defined:dt},At=t=>(...e)=>e.some(r=>lo[r](t)),ur=t=>(...e)=>!e.some(r=>lo[r](t))});var ef,rf,fo,nf,en,uo,of,sf,po,af,cf,lf,ff,uf,pf,df,rn,pr,dr=G(()=>{ge();xt();ef=(t,e)=>e.every(r=>t.includes(r)),rf=(t,e)=>{let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r},fo=(t,e)=>{if(b(e)&&(e=parseInt(e)),ct(e)){if(e<0||e>=t.length||isNaN(e))throw new Error("Invalid index");t.splice(e,1)}else throw new Error("Invalid index");return t},nf=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]},en=(...t)=>[].concat(...t),uo=(t,e=[])=>t.reduce((r,n)=>W(r,j(n,{exclude:e}),e),{}),of=(t,e)=>{let r=t.indexOf(e);return r!==-1?t.slice(0,r):t},sf=(t,e)=>{if(!x(t))return;let r=t.indexOf(e);return r!==-1?t.slice(r+1):t},po=(t,e)=>{let r=t.indexOf(e);if(r>-1){let n=[...t];return n.splice(r,1),n}return t},af=(t,e)=>t.filter(r=>r!==e),cf=(t,e)=>{let r=[];for(let n=0;n<t.length;n++)r.push(t[n]),n<t.length-1&&r.push(e);return r},lf=(t,e,r)=>{let n=[...t],o=n.indexOf(e),s=n.indexOf(r);if(o!==-1&&s!==-1){let i=n.splice(o,1)[0],a=s<o?s:s+1;n.splice(a,0,i)}return n},ff=(t,e)=>{if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},uf=(t,e)=>t.filter(r=>!e.includes(r)),pf=(t,e)=>{let r=new Set(e);return t.filter(n=>!r.has(n))},df=(t,e)=>{if(!t)return 0;let r=0;for(let n=0;n<e.length;n++)t.includes(e[n])&&r++;return r},rn=t=>x(t)?[...new Set(t)]:t,pr=(t,e)=>{for(let r in e)Object.defineProperty(t,r,{value:e[r],enumerable:!1,configurable:!0,writable:!0})}});function mf(t,e,r={}){let{bracketsLength:n=2}=r,o=n===3?"{{{":"{{";if(!t.includes(o))return t;let s=Ay[n],i=e||this.state||{},a=this;return t.replace(s,(c,f,l,u)=>{let p=l.trim();if(u){let d=a?.context?.functions?.[u];if(d)try{let h=Sa(i,p);return String(d.call(a,h??p)??"")}catch{return""}return""}if(f){let d=(f.match(/\.\.\//g)||[]).length,h=i;for(let S=0;S<d;S++){if(!h||!h.parent)return"";h=h.parent}if(p==="parent")return String(h.value??"");let m=Sa(h,p);return String(m??"")}else{let d=Sa(i,p);return String(d??"")}})}var ho,hf,Ay,Sa,re,gf,Oy,yf,bf,Sf,Ty,xf,_f,nn=G(()=>{ho=(t,e)=>{for(let r of e)if(t.includes(r))return!0;return!1},hf=(t,e)=>{let r=new RegExp(`[${e.join("\\")}]`,"g");return t.replace(r,"")},Ay={2:/{{\s*((?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}/g,3:/{{{(\s*(?:\.\.\/)*)([\w\d.]+)\s*(?:\|\s*([\w\d.]+))?\s*}}}/g},Sa=(t,e)=>e.split(".").reduce((r,n)=>r?.[n],t);re=t=>`${t.charAt(0).toLowerCase()}${t.slice(1)}`,gf=(t,e)=>{let r=t.split(`
2
+ `),n=-1,o=-1,s=-1,i=-1,a=new RegExp(`\\b${e}\\b\\s*:\\s*`),c=0,f=!1;for(let l=0;l<r.length;l++)if(a.test(r[l])&&!f){if(f=!0,n=l+1,s=r[l].indexOf(e)+1,r[l].includes("{}")){o=n,i=r[l].indexOf("{}")+3;break}let u=r[l].slice(s+e.length);if(u.includes("{")||u.includes("["))c=1;else{o=l+1,i=r[l].length+1;break}}else if(f&&(c+=(r[l].match(/{/g)||[]).length,c+=(r[l].match(/\[/g)||[]).length,c-=(r[l].match(/}/g)||[]).length,c-=(r[l].match(/]/g)||[]).length,c===0)){o=l+1,i=r[l].lastIndexOf("}")!==-1?r[l].lastIndexOf("}")+2:r[l].length+1;break}return{startColumn:s,endColumn:i,startLineNumber:n,endLineNumber:o}},Oy=/\\([0-7]{1,3})/g,yf=t=>t.replace(Oy,(e,r)=>String.fromCharCode(parseInt(r,8))),bf=t=>t.replace(/\n/g,"/////n").replace(/`/g,"/////tilde").replace(/\$/g,"/////dlrsgn"),Sf=t=>t.replace(/\/\/\/\/\/n/g,`
3
+ `).replace(/\/\/\/\/\/tilde/g,"`").replace(/\/\/\/\/\/dlrsgn/g,"$"),Ty=/[^a-zA-Z0-9\s]/g,xf=t=>t.replace(Ty,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),_f=t=>t.replace(/%[0-9A-Fa-f]{2}/g,e=>String.fromCharCode(parseInt(e.slice(1),16)))});var De,mo,wf,Ot,Fe,on,go,yo,hr=G(()=>{De=new Set(["attr","style","text","html","content","data","classlist","state","scope","root","deps","extend","extends","$router","routes","children","childExtend","childExtends","childExtendRecursive","childExtendsRecursive","props","if","define","__name","__ref","__hash","__text","key","tag","query","parent","node","variables","on","fetch","component","context"]),mo=new Set(["attr","style","text","html","content","data","class","state","scope","children","props","if","key","tag","query","on","context"]),wf=["ref","parent","__element","__depends","__ref","__children","root"],Ot=new Set(["update","parse","clean","create","destroy","add","toggle","remove","apply","set","reset","replace","quietReplace","quietUpdate","applyReplace","applyFunction","keys","values","ref","rootUpdate","parentUpdate","parent","__element","__depends","__ref","__children","root","setByPath","setPathCollection","removeByPath","removePathCollection","getByPath"]),Fe=new Set(["update","__element"]),on=new Set(["set","reset","update","remove","updateContent","removeContent","lookup","lookdown","lookdownAll","getRef","getPath","setNodeStyles","spotByPath","keys","parse","setProps","parseDeep","variables","if","log","verbose","warn","error","call","nextElement","previousElement","getRootState","getRoot","getRootData","getRootContext","getContext","getQuery","getDB","getChildren"]),go=new Set(["node","context","extends","__element","__ref",...on,...Ot,...Fe]),yo=new Set(["init","beforeClassAssign","render","renderRouter","attachNode","stateInit","stateCreated","beforeStateUpdate","stateUpdate","beforeUpdate","done","create","complete","frame","update","fetchError","fetchComplete"])});var vf,$e,A,Cf,Y,W,Ef,j,bo,Ry,So,Iy,Py,sn,ne,xo,kf,Af,xa,Of,Tf,oe,mr,it,_a,Ny,_o,wo,wa,vo,Co,Eo,ko,Ao,Rf,If,ge=G(()=>{Jr();xt();dr();nn();Zr();hr();vf=process.env.NODE_ENV,$e=t=>t.charCodeAt(0)===95&&t.charCodeAt(1)===95,A=(t,e,r,n)=>{if(y(t)){if(!e)return;let o=t.call(e,e,r||e.state,n||e.context);if(o&&typeof o.then=="function"){let s;return o.then(i=>{s=i}),s}return o}return t},Cf=(t,e,r)=>{for(let n in e)t[n]=A(e[n],r)},Y=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&($e(o)||(n?r.has(o):r.includes(o))||t[o]===void 0&&(t[o]=e[o]));return t},W=(t,e,r=go)=>{let n=r instanceof Set;for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||$e(o)||(n?r.has(o):r.includes(o)))continue;let s=t[o],i=e[o];I(s)&&I(i)?W(s,i,r):s===void 0&&(t[o]=i)}return t},Ef=(t,e=[])=>{let r=e instanceof Set,n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&($e(o)||(r?e.has(o):e.includes(o))||(n[o]=t[o]));return n},j=(t,e={})=>{let{exclude:r=[],cleanUndefined:n=!1,cleanNull:o=!1,window:s,visited:i=new WeakMap,handleExtends:a=!1}=e,c=s||D||globalThis;if(!I(t)||Dt(t))return t;if(i.has(t))return i.get(t);let l=x(t)?[]:{};i.set(t,l);let u=r instanceof Set?r:r.length>3?new Set(r):null;for(let p in t){if(!Object.prototype.hasOwnProperty.call(t,p)||$e(p)||p==="__proto__"||(u?u.has(p):r.includes(p)))continue;let d=t[p];if(!(n&&d===void 0)&&!(o&&d===null)){if(Dt(d)){l[p]=d;continue}if(a&&p==="extends"&&x(d)){l[p]=uo(d,r);continue}if(y(d)&&e.window){l[p]=c.eval("("+d.toString()+")");continue}I(d)?l[p]=j(d,{...e,visited:i}):l[p]=d}}return l},bo=(t,e={})=>{(t.node||t.__ref||t.parent||t.__element||t.parse)&&((t.__element||t.parent?.__element).warn("Trying to clone element or state at",t),t=t.parse?.());for(let r in t){let n=t[r];if(y(n))e[r]=n.toString();else if(g(n))e[r]={},bo(n,e[r]);else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];g(i)?(o[s]={},bo(i,o[s])):y(i)?o[s]=i.toString():o[s]=i}}else e[r]=n}return e},Ry=new Set(["&","*","-",":","%","{","}",">","<","@",".","/","!"," "]),So=(t={},e=0)=>{if(t===null||typeof t!="object")return String(t);let r=!1;for(let s in t){r=!0;break}if(!r)return"{}";let n=" ".repeat(e),o=`{
4
+ `;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=t[s],a=!1;for(let f=0;f<s.length;f++)if(Ry.has(s[f])){a=!0;break}let c=a?`'${s}'`:s;if(o+=`${n} ${c}: `,x(i)){o+=`[
5
5
  `;for(let f of i)I(f)&&f!==null?o+=`${n} ${So(f,e+2)},
6
6
  `:b(f)?o+=`${n} '${f}',
7
7
  `:o+=`${n} ${f},
8
8
  `;o+=`${n} ]`}else I(i)?o+=So(i,e+1):b(i)?o+=ho(i,[`
9
9
  `,"'"])?`\`${i}\``:`'${i}'`:o+=i;o+=`,
10
- `}return o+=`${n}}`,o},Ny=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Fy=/^["[{]/,sn=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!Ny.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Fy.test(e)&&!o)},ne=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(b(n))if(sn(n))try{e[r]=F.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(b(i))if(sn(i))try{o.push(F.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ne(i)):o.push(i)}}else g(n)?e[r]=ne(n,e[r]):e[r]=n}return e},xo=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];b(o)&&sn(o)?r.push([n,o]):e[n]=o}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
11
- `);e[n]=F.eval(`(function(__gs__) { ${s}
12
- return (${o}); })`)(e)}catch{try{e[n]=F.eval(`(${o})`)}catch{e[n]=o}}return e},kf=(t,e={verbose:!0})=>{try{return t?F.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Af=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),xa=t=>{for(let e in t)return!1;return!0},Of=t=>g(t)&&xa(t),Tf=()=>Object.create(null),oe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&$e(s)||e[s]!==void 0&&(t[s]=e[s]);return t},mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)$e(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!I(t)||!I(e)||Ft(t)||Ft(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&$e(a))continue;let c=t[a],f=e[a];Ft(f)?t[a]=f:I(c)&&I(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},_a=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!_a(t[i],e[i],r))return!1}return!0},Dy=new Set(["node","__ref"]),_o=(t,e,r=Dy)=>{if(t===e)return!0;if(!I(t)||!I(e)||Ft(t)||Ft(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Ft(f)||Ft(l)){if(f!==l)return!1}else if(I(f)&&I(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},wo=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(x(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},wa=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=wa(t[r]));return e},vo=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},Co=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Eo=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},ko=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},Ao=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(vf==="test"||vf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Rf=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(t)},If=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Oo,To,Ro,Io=G(()=>{ge();Oo=(function(){let t=0;function e(){return t++,t}return e})(),To=Oo,Ro=(t,e,r)=>(A(r,t)||r||t.key||Oo()).toString()});var Yt,Pf,Le,va,Nf,Ff,Df,Xt,$f,gr,Ca=G(()=>{Yt=process.env.NODE_ENV,Pf=Yt,Le=(t=Yt)=>t==="production",va=(t=Yt)=>t==="testing"||t==="test",Nf=va,Ff=(t=Yt)=>t==="staging",Df=(t=Yt)=>t==="local",Xt=(t=Yt)=>t==="development"||t==="dev"||t==="local",$f=(t,e=Yt)=>e[t],gr=(t=Yt)=>!Le(t)});function Lf(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function jf(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Bf,Mf,$y,Uf,Be,Me,an,Po=G(()=>{Bf=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Mf=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},$y=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Uf=t=>$y.test(t),Be=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Me=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},an=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var yr,Vf=G(()=>{xt();yr=(t,e)=>{let{__ref:r}=t;y(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Wf,zf,Hf=G(()=>{Wf=(t,...e)=>{t&&e.map(r=>console.log(r))},zf=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Xf(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Qf(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var qf,Gf,Kf,Yf,Jf=G(()=>{xt();Jr();qf=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gf=(t,e,r=365)=>{if(K(B)||K(B.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;B.cookie=`${t}=${e};${o};path=/`},Kf=t=>{if(K(B)||K(B.cookie))return;let e=`${t}=`,n=decodeURIComponent(B.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Yf=t=>{K(B)||K(B.cookie)||(B.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var cn,Ue,ye,Ea=G(()=>{cn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Ue=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),ye=t=>cn.body.has(t)});var ka,Zf,ln,Do,Tt,$o,Aa,Lo,tu,Bo,Oa,Ta,Mo,Ra,fn,Ly,se,eu,No,Uo,ru,Fo,nu,ou,Ia,Pa,Na,Fa,Da,$a,jo,Vo=G(()=>{dr();La();ge();xt();ka=process.env.NODE_ENV,Zf=t=>t.sourcemap!==!1&&ka!=="production",ln=t=>{if(t.includes("+"))return t.split("+").filter(Rt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Rt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Do=(t,e,r)=>{let n=[],o=ln(r);o&&(n=[...o]);let s=t.extends;return s&&(n=x(s)?[...n,...s]:[...n,s]),n},Tt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},$o=(t,e)=>{if(!t)return e;let{extends:r}=e,n=x(r)?r:[r],o=x(t)?t:[t];return{...e,extends:en(o,n)}},Aa=()=>Math.random().toString(36).substring(2),Lo={},tu={},Bo=t=>Lo[t.__hash],Oa=(t,e)=>{let r=Aa();return b(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Lo[r]=e),e},Ta=(t,e)=>t.__hash?e.concat(Bo(t)):Oa(t,e),Mo=(t,e,r,n=new Set,o,s)=>{for(let i of t)x(i)?Mo(i,e,r,n,o,s):fn(i,e,r,n,o,void 0,s);return e},Ra=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&fn(a,e,r,n,o,s,i),e},fn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(x(t))return Mo(t,e,r,n,o,i);let a=s;return b(t)?(a=t,t=Uo(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Ra(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Ly=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),se=(t,e,r,n,o)=>{e=j(e);for(let s in e){if(Ly.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!x(a)?(r[s]=r[s]||{},eu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];Rt(s)?t[s]=se(i,a,c,n,f):se(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(x(i)&&x(a))t[s]=i.concat(a);else if(x(i)&&g(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},eu=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];g(s)&&!x(s)?(t[o]=t[o]||{},eu(t[o],s,r,n)):t[o]=r}}},No=(t,e,r)=>t.reduce((n,o,s)=>{let i=j(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),Uo=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(b(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(ka==="test"||ka==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},ru=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Fo=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Bo(t)||[];let s=fn(t,[],e,new Set,r,void 0,n);return r?s:Ta(t,s)},nu=(t,e)=>{if(!t)return e;let r=x(t)?t:[t];return en(r,e)},ou=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Rt(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Ia=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Tt([c,...a],t):Tt(t.extends,t)}else Tt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Tt(i,t):Tt(t.extends,t)}else Tt(t.extends,t);return Pa(t,e,r),Na(t,e,r),Fa(t,e,r),t.component&&Tt(A(t.component,t),t),o.defaultExtends&&Tt(o.defaultExtends,t),rn(n.__extends)},Pa=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Tt(e.props?.childProps.extends,t),o.__extends},Na=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Tt(i,t),o.__extends},Fa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Tt(s,t),o.__extends},Da=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Zf(r),c=a?[...o.__extends]:null,f=rn(o.__extends.map((l,u)=>Uo(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&b(m)&&l.set(h,m)}let u=[],p=Fo(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Fo(f,s);o.__extendsStack=l}return o.__extendsStack},$a=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Zf(r)){let s={},i=n.__extendsNames||[],a=No(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=No(o);se(t,s)}return t},jo=(t,e,r={})=>(Ia(t,e,r),Da(t,e,r),$a(t,e,r),t)});function su(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function iu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Wo(t,e,r){let{context:n}=e||{},[o]=ln(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Rt,La=G(()=>{Vo();xt();Rt=t=>{if(!b(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function au(t,e){let{props:r,on:n}=e,o=re(t.split("on")[1]),s=n[o],i=r[t];y(s)?n[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:n[o]=i}var cu=G(()=>{nn();xt()});function Ma(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(y(o)||o!=null&&Be(this.context))){let h=re(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||y(a),l=g(c)||y(c);if(f||l)continue;let u=n.charAt(0);if(fu.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ba.test(n)||lu.test(n)||My(o),d=Fe.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function br(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=y(o)||o!=null&&Be(this.context);if(s&&i){au(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(fu.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||y(c),u=g(f)||y(f),p=Ba.test(n)||lu.test(n),d=Fe.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function un(t=this){let e=[];return Ma.call(this,t,{cachedKeys:e}),br.call(this,t,{cachedKeys:e}),t}function Go(t={}){return t.on||(t.on={}),t.props||(t.props={}),un.call(this,t)}function Ua(t,e){this.__element.update({props:t},e)}function Yo(t){let e={update:Ua.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ba,lu,fu,By,My,qo,zo,uu,Ko,Xo,Qo,ja,Ho,pn,Jo,Va=G(()=>{hr();cu();ge();xt();nn();Po();Ba=/^[A-Z]/,lu=/^\d+$/,fu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),By=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),My=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if(By.has(e)||Ba.test(e))return!0;return!1},qo=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return I(n)?{...n}:(o.__propsStack.push(n),{})};zo=t=>At(t)("string","number")?{inheritedString:t}:t,uu=(t,e)=>!t||!e.length?!1:e.includes(t),Ko=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=zo(i);n.unshift(c)}if(s){let c=zo(s);n.unshift(c)}return n};Xo=t=>{let e=new Set;return t.filter(r=>!r||De.has(r)||e.has(r)?!1:(e.add(r),!0))},Qo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(De.has(o))return n;for(;y(o);)o=A(o,e);return W(n,j(o,{exclude:De}))},{}),Yo(e),e.props),ja=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ko(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),x(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Xo(o),n.__propsStack},Ho=(t,e)=>{let{__ref:r}=t,n=ja(t,e);n.length?Qo(n,t):(r.__propsStack=[],t.props={})},pn=function(t,e,r){let{__ref:n}=t;if(n.__if)Ho(t,e);else try{Ho(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Yo(t),t},Jo=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ko(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Xo(s),n.__propsStack.length&&Qo(n.__propsStack,e),e}});var pu,Wa,za,Ha,qa,Zo,Ga,Ka,Ya,ts,du=G(()=>{Vo();Io();Zr();Va();Ea();xt();pu=process.env.NODE_ENV,Wa=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=cn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},za=(t,e,r)=>{if(t===void 0)return(pu==="test"||pu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?Wa(t,e,r):y(t)?{props:t}:t},Ha=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},qa=(t,e,r,n,o)=>{if(!e)return o;if(me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Zo=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Ga=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Ka=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Ya=(t,e,r)=>{let n=Ha(t,e);return t.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=Do(t,e,r),n.path=Ga(t,e,r),n},ts=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:za(t,e,r);if(!i)return;let a=qa(i,e,r,n,o),c=Ro(i,a,r);Ya(i,a,c);let f=qo(i,a,c),l=Ka(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var es,je,Ve,We,ze,rs,He,dn,ns,os,ss,hu=G(()=>{dr();hr();ge();xt();es=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},je=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ve=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},We=(t,e,r={})=>{let n=b(t)?t.split("/"):[t],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},ze=(t,e,r={})=>{let o=t.__ref.__state;if(!He(t))return;let s=je(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ve(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return We(o,i,r)},rs=(t,e)=>{let r=t.__ref,n=ze(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return j(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},He=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},dn=function(t){return I(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},ns=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},os=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=j(n,Ot),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?pr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},ss=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){W(t,e,Ot);return}(o?mr:it)(t,e,Ot)}});var hn,mu=G(()=>{hn=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var gu,Sr,z,is,_t,Xa=G(()=>{xt();Po();gu=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Sr=(t,e,r,n,o)=>{if(t=Me(t,e),!!y(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},z=(t,e,r)=>{if(!e)throw new Error("Element is required");an(t,e,r);let n=gu(t,e);if(n){let{state:o,context:s}=e;return Sr(n,e,o,s,r)}},is=(t,e,r,n,o,s)=>{if(t=Me(t,r),!!y(t))try{let i=t.call(r,e,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},_t=(t,e,r,n)=>{an(t,r,e,n);let o=gu(t,r);if(o){let{state:s,context:i}=r;return is(o,e,r,s,i,n)}}});var yu,lt,Qa=G(()=>{yu={},lt={}});var Su={};Nt(Su,{setup:()=>Uy,supabaseAdapter:()=>bu});var Uy,Ja,jy,bu,xu=G(()=>{"use strict";Uy=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient);let i=n(s,e,o);return!i||!i.auth?null:bu(i)},Ja=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},jy=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},bu=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=Ja(s,n),s=jy(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=Ja(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=Ja(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var wu={};Nt(wu,{restAdapter:()=>_u,setup:()=>Wy});var Vy,be,Wy,_u,vu=G(()=>{"use strict";Vy=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},be=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},Wy=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return _u(t,e,r,n)},_u=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await be(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await be(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await be(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:S,headers:_,baseUrl:w})=>{let E={...u};return p&&(E.select=p),d&&(E.limit=d),h&&(E.offset=h),S&&(E.single=!0),m&&(typeof m=="string"?E.order=m:Array.isArray(m)?E.order=m.map(R=>`${R.by}:${R.asc===!1?"desc":"asc"}`).join(","):m.by&&(E.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),be(Vy(w||t,l||"",E),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>be(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>be(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let S=p?.id||u?.id,_=S?`${l}/${S}`:l;return be(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return be(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var Eu={};Nt(Eu,{localAdapter:()=>Cu,setup:()=>Hy});var Za,zy,Hy,Cu,ku=G(()=>{"use strict";Za=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},zy=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Hy=async({data:t,...e})=>Cu(t,e),Cu=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>Za(m,u));return zy(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let S={id:m.id||++f,...m};return p.push(S),S});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(Za(d[m],p)){let S={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],S)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)Za(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,S)=>{u&&u!=="*"&&u!==S.event||p(h,m,S)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var _n={};Nt(_n,{createAdapter:()=>Ky,default:()=>ob,executeFetch:()=>xn,fetchPlugin:()=>sc,initAdapterAuth:()=>ls,parseDuration:()=>mn,queryClient:()=>nb,registerAdapter:()=>Gy,resolveDb:()=>Iu});var qy,Ru,Gy,Ky,Iu,mn,wt,Pu,as,Yy,Sn,gn,yn,tc,nc,cs,Xy,Au,ec,Nu,Fu,xr,Ou,Qy,Tu,Jy,Du,$u,ls,oc,Dt,bn,qe,Qt,Se,Zy,tb,eb,rc,rb,xn,nb,sc,ob,Ge=G(()=>{"use strict";v();qy=["select","rpc","insert","update","delete","subscribe"],Ru={supabase:()=>Promise.resolve().then(()=>(xu(),Su)),rest:()=>Promise.resolve().then(()=>(vu(),wu)),local:()=>Promise.resolve().then(()=>(ku(),Eu))},Gy=(t,e)=>{Ru[t]=e},Ky=t=>{let e={};for(let r of qy)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Iu=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=Ru[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},mn=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},wt=new Map,Pu=new Map,as=new Map,Yy=t=>{if(t.cache?.key)return t.cache.key;let e=Jy(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Sn=t=>wt.get(t)||null,gn=(t,e,r)=>{let n=wt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};wt.set(t,o);let s=Pu.get(t);if(s)for(let i of s)y(i)&&i(o);return o},yn=t=>{if(t){let e=wt.get(t);e&&(e.stale=!0);return}for(let[,e]of wt)e.stale=!0},tc=t=>{if(t){wt.delete(t);return}wt.clear()},nc=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:b(t)?{staleTime:mn(t),gcTime:3e5}:{staleTime:mn(t.stale||t.staleTime)||6e4,gcTime:mn(t.gc||t.gcTime||t.expire)||3e5,key:t.key},cs=null,Xy=()=>{cs||(cs=setInterval(()=>{let t=Date.now();for(let[e,r]of wt){let n=Pu.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&wt.delete(e)}},3e4),cs.unref&&cs.unref())};Xy();Au=3,ec=t=>Math.min(1e3*2**t,3e4),Nu=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Au,delay:ec}:typeof e=="number"?{count:e,delay:ec}:{count:e.count??Au,delay:y(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ec}},Fu=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=y(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=y(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},xr={focus:new Set,online:new Set},Ou=!1,Qy=()=>{if(Ou||typeof window>"u")return;Ou=!0;let t=()=>{for(let r of xr.focus)r()},e=()=>{for(let r of xr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Tu=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(b(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Jy=t=>(!t||y(t),t),Du=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},$u=(t,e,r)=>{let n;if(!t)n=void 0;else if(y(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=y(s)?s(e,e.state):s}}return n},ls=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},oc=async(t,e)=>{if(y(t.select))return t.auth!==!1&&await ls(t,e),t;if(t.__resolved)return t.auth!==!1&&await ls(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Iu(t);let r=await t.__resolving;return delete t.__resolving,r?(t.__resolved=r,e.fetch=r,t.auth!==!1&&await ls(r,e),r):null},Dt=(t,e,...r)=>{let n=y(t[e])?t[e]:t.props&&y(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},bn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},qe=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},Se=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||y(t.enabled)&&!t.enabled(e,e.state))return;let s=await oc(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:S,limit:_,offset:w,order:E,headers:R,baseUrl:T,page:O,cursor:k,getNextPageParam:L,getPreviousPageParam:N,infinite:D,placeholderData:V,initialData:Z,select:tt,keepPreviousData:pt}=t,Et;if(f&&y(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Et=J.select||J.length&&J.join(",")||void 0)}let Ut=$u(l,e,r),Qr=nc(u),pa=Nu(t),st=Qr?u?.key||`${a}:${c}:${JSON.stringify(Ut||"")}${D?":infinite":""}${O?":p"+JSON.stringify(O):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let J=y(Z)?Z():Z;gn(st,J,null)}if((c==="select"||c==="rpc")&&st&&Qr){let J=Sn(st);if(J&&!J.error){let q=Date.now()-J.time,ut=J.stale||q>(Qr.staleTime||0),U=J.data;if(tt&&(U=tt(U,e,e.state)),p&&(U=p(U,e,e.state)),qe(e,U,S),!ut){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let q=y(V)?V(e,e.state):V;q!==void 0&&qe(e,q,S)}}if(st&&as.has(st)&&!n.force){let J=as.get(st);try{let q=await J;if(q?.data!==void 0){let ut=q.data;tt&&(ut=tt(ut,e,e.state)),p&&(ut=p(ut,e,e.state)),qe(e,ut,S),Dt(e,"onFetchComplete",ut)}}catch{}return}let da=!Sn(st)?.data;Qt(e,{isFetching:!0,isLoading:da,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Dt(e,"onFetchStart");let Jl=Fu(async()=>{if(h!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let kt={message:"Not authenticated"};return Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:kt,status:"error",fetchStatus:"idle"}),Dt(e,"onFetchError",kt),{data:null,error:kt}}}let J=s[c];if(!y(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let q={from:a,select:Et,params:Ut,single:d,limit:_,offset:w,order:E,headers:R,baseUrl:T},ut=Du(e,r);if(ut&&(q.headers={...q.headers,"Accept-Language":ut}),O!==void 0){if(g(O))O.offset!==void 0&&(q.offset=O.offset),O.limit!==void 0&&(q.limit=O.limit),O.cursor!==void 0&&(q.params={...q.params,cursor:O.cursor});else if(typeof O=="number"){let U=t.pageSize||_||20;q.offset=(O-1)*U,q.limit=U}}if(k!==void 0&&(q.params={...q.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let U;if(m===!0||t.on==="submit")U=bn(e);else if(x(m)){let kt=bn(e);U={};for(let ma of m)U[ma]=kt[ma]}else e.state?.parse?U=e.state.parse():g(e.state)&&(U={...e.state});p&&(U=p(U,e,e.state)),q.data=U}if(c==="rpc"){let U=Ut;if(t.on==="submit"){let kt=bn(e);U=t.transformParams?t.transformParams(kt,e,e.state):kt}q.params=U}if(c==="subscribe"){let U=s.subscribe({from:a,params:Ut,on:t.subscribeOn},(kt,ma,G_)=>{qe(e,kt,S),Dt(e,"onFetchComplete",kt)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return J(q)},pa);st&&as.set(st,Jl);try{let J=await Jl;if(J?.subscribed)return;let{data:q,error:ut}=J||{};if(ut){st&&gn(st,null,ut),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Dt(e,"onFetchError",ut);return}if(q!==void 0){if((c==="select"||c==="rpc")&&st){let kt=gn(st,q,null);kt.gcTime=Qr?.gcTime||3e5}let U=q;D&&x(q)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(q):i.__pages.push(q),U=i.__pages.flat(),L&&(i.__nextPageParam=L(q,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),N&&(i.__prevPageParam=N(q,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(U=tt(U,e,e.state)),p&&(U=p(U,e,e.state)),(!pt||U!==void 0)&&qe(e,U,S),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Dt(e,"onFetchComplete",U)}}catch(J){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Dt(e,"onFetchError",J)}finally{st&&as.delete(st)}},Zy=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Se;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},tb=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Qy();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:mn(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Se(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Yy(t),a=Sn(i),c=nc(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&Se(t,e,r,{force:!0})};xr.focus.add(s),n.__fetchCleanups.push(()=>xr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>Se(t,e,r,{force:!0});xr.online.add(s),n.__fetchCleanups.push(()=>xr.online.delete(s))}},eb=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=y(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&qe(t,i,o),s},rc=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(qe(t,n,e.as),delete r.__optimisticSnapshot)},rb=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await oc(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:S,onMutate:_,onSuccess:w,onError:E,onSettled:R}=t,T;if(c===!0||u==="submit")T=bn(e);else if(x(c)){let k=bn(e);T={};for(let L of c)T[L]=k[L]}else e.state?.parse?T=e.state.parse():g(e.state)&&(T={...e.state});f&&(T=f(T,e,e.state)),y(_)&&_(T,e,e.state);let O=S?eb(e,t,T):null;s.__fetching=!0,Qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Dt(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){O!==void 0&&rc(e,t),Dt(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!y(k))return;let L={from:a,data:T,headers:d,baseUrl:h};t.params&&(L.params=$u(t.params,e,r));let N=Du(e,r);N&&(L.headers={...L.headers,"Accept-Language":N});let D=Nu(t),V=await Fu(()=>k(L),D),{data:Z,error:tt}=V||{};if(tt){O!==void 0&&rc(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Dt(e,"onFetchError",tt),y(E)&&E(tt,T,e),y(R)&&R(null,tt,T,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Dt(e,"onFetchComplete",Z),y(w)&&w(Z,T,e),y(R)&&R(Z,null,T,e),m){let pt=x(m)?m:[m];for(let Et of pt)if(Et===!0||Et==="*")for(let[Ut]of wt)Ut.startsWith(a+":")&&yn(Ut);else yn(Et)}}catch(k){O!==void 0&&rc(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Dt(e,"onFetchError",k),y(E)&&E(k,T,e),y(R)&&R(null,k,T,e)}finally{s.__fetching=!1}},xn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=A(t,e);if(!s)return;let i=x(s)?s.map(c=>Tu(A(c,e),e)).filter(Boolean):[Tu(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?rb:Se;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Zy({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&tb(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)Se(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};Se(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};Se(l,e,n,{direction:"previous",force:!0})}},nb={invalidateQueries:t=>{if(!t){yn();return}if(b(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&yn(e);else if(x(t)){let e=t.join(":");for(let[r]of wt)r.includes(e)&&yn(r)}},removeQueries:t=>{if(!t){tc();return}if(b(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&tc(e)},getQueryData:t=>Sn(t)?.data??void 0,setQueryData:(t,e)=>{let r=Sn(t),n=y(e)?e(r?.data):e;gn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await oc(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!y(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=gn(o,i.data,null);a.gcTime=nc(t.cache)?.gcTime||3e5}return i},getCache:()=>wt,clear:()=>tc()},sc={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&xn(e,t,t.state,t.context)}},ob=xn});function fs(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function us(t){let e=this,{parent:r}=e;if(y(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function ps(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(y(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function ds(t,e=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===t)e.push(a);else if(y(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function wn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?wn.call(o,n):e.node.style[r]=n}return e}}function hs(t){let e=this;if(z("beforeRemove",e,t)===!1)return e;y(e.node.remove)?e.node.remove():Le()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=po(e.parent.__ref.__children,e.key)),z("remove",e,t)}function Lu(t){return this[t]}function ms(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function gs(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Bu(){return this.getRef("__children").map(e=>this[e])}function ys(){return this.getRef().path}function bs(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=y(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function Ss(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function xs(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function _s(t){let e=this.getRoot()?.context;return t?e[t]:e}function ws(t){let e=this.context;return t?e[t]:e}function vn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||Fe.has(r)&&!mo.has(r)||e.push(r);return e}function Cn(t=[]){let e=this,r={},n=vn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=y(c&&c.parse)?c.parse():c;r[a]=y(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else dt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function _r(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Cn.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>I(a)?_r.call(a,t,e):a):I(i)&&(n[s]=_r.call(i,t,e))}return n}function En(...t){if(xe!=="test"&&xe!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
13
- `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function vs(...t){(xe==="test"||xe==="development")&&console.log(...t)}function Cs(...t){(xe==="test"||xe==="development")&&console.warn(...t)}function wr(...t){if(xe==="test"||xe==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&En.call(this),new Error(...t)}}function Es(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function ks(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function As(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,j(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Os(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{wr.call(this,s)}),o}catch(o){if(wr.call(this,o),r?.strictMode)throw o}}async function Ts(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ge(),_n)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(n,t.context)}return n}function Rs(t){let e=this,r=t||lt.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(ic(e,n),r===!0)return n;let o=pb[r];return o?o(n):n}function jt(t,e){return!!(on.has(t)||e?.context?.methods?.[t])}var xe,Mu,ic,sb,Uu,ib,ab,cb,lb,fb,ub,pb,ac=G(()=>{Xa();hr();xt();ge();Ca();dr();Qa();xe=process.env.NODE_ENV;Mu=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});ic=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&sb(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ic(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ic(i,e)},sb=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},Uu=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
10
+ `}return o+=`${n}}`,o},Iy=[/^\(\s*\{[^}]*\}\s*\)\s*=>/,/^(\([^)]*\)|[^=]*)\s*=>/,/^function[\s(]/,/^async\s+/,/^\(\s*function/,/^[a-zA-Z_$][a-zA-Z0-9_$]*\s*=>/],Py=/^["[{]/,sn=t=>{if(!t)return!1;let e=t.trim().replace(/\n\s*/g," ").trim();if(e===""||e==="{}"||e==="[]"||!Iy.some(s=>s.test(e)))return!1;let n=e.charCodeAt(0),o=e.includes("=>");return!(n===123&&!o||n===91||Py.test(e)&&!o)},ne=(t,e={})=>{for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let n=t[r];if(b(n))if(sn(n))try{e[r]=D.eval(`(${n})`)}catch(o){o&&(e[r]=n)}else e[r]=n;else if(x(n)){let o=e[r]=[];for(let s=0;s<n.length;s++){let i=n[s];if(b(i))if(sn(i))try{o.push(D.eval(`(${i})`))}catch(a){a&&o.push(i)}else o.push(i);else g(i)?o.push(ne(i)):o.push(i)}}else g(n)?e[r]=ne(n,e[r]):e[r]=n}return e},xo=t=>{if(!t||typeof t!="object")return t;let e={},r=[];for(let n of Object.keys(t)){let o=t[n];b(o)&&sn(o)?r.push([n,o]):e[n]=o}for(let[n,o]of r)try{let s=Object.keys(e).map(i=>`var ${i} = __gs__[${JSON.stringify(i)}];`).join(`
11
+ `);e[n]=D.eval(`(function(__gs__) { ${s}
12
+ return (${o}); })`)(e)}catch{try{e[n]=D.eval(`(${o})`)}catch{e[n]=o}}return e},kf=(t,e={verbose:!0})=>{try{return t?D.eval("("+t+")"):{}}catch(r){e.verbose&&console.warn(r)}},Af=(t,...e)=>Object.prototype.hasOwnProperty.call(t,...e),xa=t=>{for(let e in t)return!1;return!0},Of=t=>g(t)&&xa(t),Tf=()=>Object.create(null),oe=(t,e,r={})=>{let n=r.exclude||[],o=r.preventUnderscore;for(let s in e)n.includes(s)||!o&&$e(s)||e[s]!==void 0&&(t[s]=e[s]);return t},mr=(t,e,r=[])=>{let n=r instanceof Set;for(let o in e)$e(o)||(n?r.has(o):r.includes(o))||(t[o]=e[o]);return t},it=(t,e,r={},n=new WeakMap)=>{if(!I(t)||!I(e)||Dt(t)||Dt(e))return e;if(n.has(t))return n.get(t);n.set(t,t);let o=r.exclude,s=o?o instanceof Set?o:new Set(o):null,i=!r.preventForce;for(let a in e){if(!Object.prototype.hasOwnProperty.call(e,a)||s&&s.has(a)||i&&$e(a))continue;let c=t[a],f=e[a];Dt(f)?t[a]=f:I(c)&&I(f)?t[a]=it(c,f,r,n):f!==void 0&&(t[a]=f)}return t},_a=(t,e,r=new Set)=>{if(typeof t!="object"||typeof e!="object"||t===null||e===null)return t===e;if(r.has(t)||r.has(e))return!0;r.add(t),r.add(e);let n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(let s=0;s<n.length;s++){let i=n[s];if(!Object.prototype.hasOwnProperty.call(e,i)||!_a(t[i],e[i],r))return!1}return!0},Ny=new Set(["node","__ref"]),_o=(t,e,r=Ny)=>{if(t===e)return!0;if(!I(t)||!I(e)||Dt(t)||Dt(e))return t===e;let n=r instanceof Set?r:new Set(r),o=new WeakSet;function s(i,a){if(o.has(a))return!0;o.add(a);for(let c in a){if(!Object.prototype.hasOwnProperty.call(a,c)||n.has(c))continue;if(!Object.prototype.hasOwnProperty.call(i,c))return!1;let f=a[c],l=i[c];if(Dt(f)||Dt(l)){if(f!==l)return!1}else if(I(f)&&I(l)){if(!s(l,f))return!1}else if(f!==l)return!1}return!0}return s(t,e)},wo=(t,e)=>{if(e==null)return t;if(At(e)("string","number"))delete t[e];else if(x(e))for(let r=0;r<e.length;r++)delete t[e[r]];else throw new Error("Invalid input: props must be a string or an array of strings");return t},wa=t=>{if(t===null||typeof t!="object")return t;let e=Object.create(null);for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=wa(t[r]));return e},vo=(t,e)=>{if(t.length===0)return e;let r={},n=r;for(let o=0;o<t.length;o++)o===t.length-1&&e?n[t[o]]=e:(n[t[o]]={},n=n[t[o]]);return r},Co=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let o=0;o<e.length-1;o++){if(r[e[o]]===void 0)return;r=r[e[o]]}let n=e[e.length-1];r&&Object.prototype.hasOwnProperty.call(r,n)&&delete r[n]},Eo=(t,e,r)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let n=t;for(let o=0;o<e.length-1;o++)(!n[e[o]]||typeof n[e[o]]!="object")&&(n[e[o]]={}),n=n[e[o]];return n[e[e.length-1]]=r,t},ko=(t,e)=>{if(!Array.isArray(e))throw new Error("Path must be an array.");let r=t;for(let n=0;n<e.length;n++){if(r==null)return;r=r[e[n]]}return r},Ao=t=>{let r=[],n=0;for(let o=0;o<t.length;o++)if(r.length<2)r.push(t[o]);else if(t[o]===r[o%2]?n++:(r=[t[o-1],t[o]],n=1),n>=20)return(vf==="test"||vf==="development")&&console.warn("Warning: Potential infinite loop detected due to repeated sequence:",r),!0},Rf=t=>{let e=new WeakSet;function r(n){if(n&&typeof n=="object"){if(e.has(n))return!0;e.add(n);for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&r(n[o]))return console.log(n,"cycle at "+o),!0}return!1}return r(t)},If=(t,e)=>{let r=e instanceof Set?e:new Set(e),n={};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&!r.has(o)&&(n[o]=t[o]);return n}});var Oo,To,Ro,Io=G(()=>{ge();Oo=(function(){let t=0;function e(){return t++,t}return e})(),To=Oo,Ro=(t,e,r)=>(A(r,t)||r||t.key||Oo()).toString()});var Yt,Pf,Le,va,Nf,Df,Ff,Xt,$f,gr,Ca=G(()=>{Yt=process.env.NODE_ENV,Pf=Yt,Le=(t=Yt)=>t==="production",va=(t=Yt)=>t==="testing"||t==="test",Nf=va,Df=(t=Yt)=>t==="staging",Ff=(t=Yt)=>t==="local",Xt=(t=Yt)=>t==="development"||t==="dev"||t==="local",$f=(t,e=Yt)=>e[t],gr=(t=Yt)=>!Le(t)});function Lf(t,e,r){let n;return function(){let o=this,s=arguments,i=function(){n=null,r||t.apply(o,s)},a=r&&!n;clearTimeout(n),n=setTimeout(i,e),a&&t.apply(o,s)}}function jf(t,e=window){let r=function(){return t.apply(e,arguments)};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r}var Bf,Mf,Dy,Uf,Be,Me,an,Po=G(()=>{Bf=(t,e,r=300)=>{let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(t,o)},r)}},Mf=t=>{let e={};return(...r)=>{let n=r[0];if(n in e)return e[n];{let o=t(n);return e[n]=o,o}}},Dy=/^((function\s*\([^)]*\)\s*\{[^}]*\})|(\([^)]*\)\s*=>))/,Uf=t=>Dy.test(t),Be=t=>{let e=t?.plugins;if(!e||!e.length)return!1;for(let r of e)if(r.resolveHandler)return!0;return!1},Me=(t,e)=>{if(typeof t=="function")return t;let r=e?.context?.plugins;if(!r)return t;for(let n of r)if(n.resolveHandler){let o=n.resolveHandler(t,e);if(typeof o=="function")return o}return t},an=(t,e,...r)=>{let n=e?.context?.plugins;if(n)for(let o of n)typeof o[t]=="function"&&o[t](e,...r)}});var yr,Vf=G(()=>{xt();yr=(t,e)=>{let{__ref:r}=t;y(t.if)&&!t.if(t,t.state,t.context)?delete r.__if:r.__if=!0}});var Wf,zf,qf=G(()=>{Wf=(t,...e)=>{t&&e.map(r=>console.log(r))},zf=(t,e,...r)=>{t&&(console.group(e),r.map(n=>console.log(n)),console.groupEnd(e))}});function Xf(t){if(!window.localStorage)return;let e=window.localStorage.getItem(t);if(e!==null)try{return JSON.parse(e)}catch{return}}function Qf(t,e){if(!window.localStorage||e===void 0||e===null)return;let r=typeof e=="object"?JSON.stringify(e):e;window.localStorage.setItem(t,r)}var Hf,Gf,Kf,Yf,Jf=G(()=>{xt();Jr();Hf=typeof navigator>"u"?!1:/Mobi/.test(navigator.userAgent),Gf=(t,e,r=365)=>{if(K(B)||K(B.cookie))return;let n=new Date;n.setTime(n.getTime()+r*24*60*60*1e3);let o=`expires=${n.toUTCString()}`;B.cookie=`${t}=${e};${o};path=/`},Kf=t=>{if(K(B)||K(B.cookie))return;let e=`${t}=`,n=decodeURIComponent(B.cookie).split(";");for(let o=0;o<n.length;o++){let s=n[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(e)===0)return s.substring(e.length,s.length)}return""},Yf=t=>{K(B)||K(B.cookie)||(B.cookie=t+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;")}});var cn,Ue,ye,Ea=G(()=>{cn={root:["body","html"],head:["title","base","meta","style","noscript","script"],body:new Set(["string","style","fragment","a","abbr","acronym","address","applet","area","article","aside","audio","b","basefont","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","search","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","hgroup","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","template","hgroup","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr","svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"])},Ue=new Set(["svg","path","circle","ellipse","line","polygon","polyline","rect","g","defs","symbol","use","text","tspan","image","clipPath","mask","pattern","marker","linearGradient","radialGradient","stop","filter","feGaussianBlur","feOffset","feMerge","feMergeNode","feBlend","feColorMatrix","feFlood","feComposite","foreignObject"]),ye=t=>cn.body.has(t)});var ka,Zf,ln,Fo,Tt,$o,Aa,Lo,tu,Bo,Oa,Ta,Mo,Ra,fn,Fy,se,eu,No,Uo,ru,Do,nu,ou,Ia,Pa,Na,Da,Fa,$a,jo,Vo=G(()=>{dr();La();ge();xt();ka=process.env.NODE_ENV,Zf=t=>t.sourcemap!==!1&&ka!=="production",ln=t=>{if(t.includes("+"))return t.split("+").filter(Rt);if(t.includes("_")){let[e]=t.split("_");return[e]}if(t.includes(".")&&!Rt(t.split(".")[1])){let[e]=t.split(".");return[e]}return[t]},Fo=(t,e,r)=>{let n=[],o=ln(r);o&&(n=[...o]);let s=t.extends;return s&&(n=x(s)?[...n,...s]:[...n,s]),n},Tt=(t,e)=>{let{__ref:r}=e,{__extends:n}=r;if(!t)return n;let o=e.props?.variant,s=e.context;if(o&&s?.components&&!Array.isArray(t)&&typeof t=="string"){let i=`${t}.${o}`;s.components[i]&&(t=i)}return n.includes(t)||(n=Array.isArray(t)?[...n,...t]:[...n,t],r.__extends=n),n},$o=(t,e)=>{if(!t)return e;let{extends:r}=e,n=x(r)?r:[r],o=x(t)?t:[t];return{...e,extends:en(o,n)}},Aa=()=>Math.random().toString(36).substring(2),Lo={},tu={},Bo=t=>Lo[t.__hash],Oa=(t,e)=>{let r=Aa();return b(t)||(t.__hash=r),r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(Lo[r]=e),e},Ta=(t,e)=>t.__hash?e.concat(Bo(t)):Oa(t,e),Mo=(t,e,r,n=new Set,o,s)=>{for(let i of t)x(i)?Mo(i,e,r,n,o,s):fn(i,e,r,n,o,void 0,s);return e},Ra=(t,e,r,n=new Set,o,s,i)=>{let a=t.extends||t.extend,c={...t};delete c.extends,delete c.extend;let f=!1;for(let l in c){f=!0;break}return f&&(e.push(c),o&&o.push(s)),a&&fn(a,e,r,n,o,s,i),e},fn=(t,e,r,n=new Set,o,s,i)=>{if(!t||n.has(t))return e;if(x(t))return Mo(t,e,r,n,o,i);let a=s;return b(t)?(a=t,t=Uo(t,r)):i&&g(t)&&i.has(t)&&(a=i.get(t)),n.add(t),t?.extends||t?.extend?Ra(t,e,r,n,o,a,i):t&&(e.push(t),o&&o.push(a)),e},Fy=new Set(["parent","node","__ref","__proto__","extend","childExtend","childExtendRecursive"]),se=(t,e,r,n,o)=>{e=j(e);for(let s in e){if(Fy.has(s))continue;let i=t[s],a=e[s];if(a!==void 0&&Object.prototype.hasOwnProperty.call(e,s)&&s!=="__proto__"&&s!=="constructor"&&s!=="prototype"){if(i===void 0)t[s]=a,r&&n?g(a)&&!x(a)?(r[s]=r[s]||{},eu(r[s],a,n)):r[s]=n:r&&o?.[s]&&(r[s]=o[s]);else if(g(i)&&g(a)){let c=r?r[s]=r[s]||{}:void 0,f=o?.[s];Rt(s)?t[s]=se(i,a,c,n,f):se(i,a,c,n,f)}if(s==="extends"||s==="childExtends"||s==="childExtendsRecursive"){if(x(i)&&x(a))t[s]=i.concat(a);else if(x(i)&&g(a)){let c=se({},i);t[s]=se(c,a)}}}}return t},eu=(t,e,r,n)=>{if(n||(n=new WeakSet),!n.has(e)){n.add(e);for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o)||o==="__proto__"||o==="constructor"||o==="prototype")continue;let s=e[o];g(s)&&!x(s)?(t[o]=t[o]||{},eu(t[o],s,r,n)):t[o]=r}}},No=(t,e,r)=>t.reduce((n,o,s)=>{let i=j(o),a=r?r[s]:void 0;return se(n,i,e,a)},{}),Uo=(t,e,r={},n)=>{let o=e?.components||r.components,s=e?.pages||r.pages;if(b(t)){let i=o&&(o[t+"."+n]||o[t]||o["smbls."+t]),a=s&&t.charCodeAt(0)===47&&s[t];if(i)return i;if(a)return a;r.verbose&&(ka==="test"||ka==="development")&&console.warn("Extend is string but component was not found:",t);return}return t},ru=(t,e)=>[].concat(t.slice(0,1)).concat(e.slice(0,1)).concat(t.slice(1)).concat(e.slice(1)),Do=(t,e,r,n)=>{if(!t)return[];if(t.__hash)return Bo(t)||[];let s=fn(t,[],e,new Set,r,void 0,n);return r?s:Ta(t,s)},nu=(t,e)=>{if(!t)return e;let r=x(t)?t:[t];return en(r,e)},ou=t=>{let e=[];function r(n){for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&(Rt(o)&&e.push(o),o==="extends"&&(typeof n[o]=="string"?e.push(n[o]):Array.isArray(n[o])&&(e=e.concat(n[o]))),typeof n[o]=="object"&&n[o]!==null&&r(n[o]))}return r(t),e},Ia=(t,e,r={})=>{let{__ref:n}=t,o=t.context||e.context,s=t.props?.variant;if(t.extend&&!t.extends&&(t.extends=t.extend),delete t.extend,!t.extends&&t.props?.extends&&(t.extends=t.props.extends),t.extends)if(Array.isArray(t.extends)&&t.extends.length>0){let[i,...a]=t.extends;if(typeof i=="string"&&s&&o?.components){let c=`${i}.${s}`;o.components[c]?Tt([c,...a],t):Tt(t.extends,t)}else Tt(t.extends,t)}else if(typeof t.extends=="string"&&s&&o?.components){let i=`${t.extends}.${s}`;o.components[i]?Tt(i,t):Tt(t.extends,t)}else Tt(t.extends,t);return Pa(t,e,r),Na(t,e,r),Da(t,e,r),t.component&&Tt(A(t.component,t),t),o.defaultExtends&&Tt(o.defaultExtends,t),rn(n.__extends)},Pa=(t,e,r={})=>{let{props:n,__ref:o}=t;return r.ignoreChildExtends||n?.ignoreChildExtends||e.props?.childProps?.extends&&Tt(e.props?.childProps.extends,t),o.__extends},Na=(t,e,r={})=>{let{props:n,__ref:o}=t,s=r.ignoreChildExtends||n?.ignoreChildExtends,i=e.childExtends||e.childExtend;return!s&&i&&Tt(i,t),o.__extends},Da=(t,e,r={})=>{let{props:n,__ref:o}=t,s=e.childExtendsRecursive||e.childExtendRecursive,i=r.ignoreChildExtendsRecursive||n?.ignoreChildExtendsRecursive,a=t.key==="__text";return s&&!a&&!i&&Tt(s,t),o.__extends},Fa=(t,e,r={})=>{let{props:n,__ref:o}=t,s=t.context||e.context,i=t.variant||n?.variant,a=Zf(r),c=a?[...o.__extends]:null,f=rn(o.__extends.map((l,u)=>Uo(l,s,r,u===0&&i)));if(a){let l=new WeakMap;for(let d=0;d<f.length;d++){let h=f[d],m=c[d];h&&g(h)&&b(m)&&l.set(h,m)}let u=[],p=Do(f,s,u,l);o.__extendsStack=p,o.__extendsNames=u}else{let l=Do(f,s);o.__extendsStack=l}return o.__extendsStack},$a=(t,e,r={})=>{let{__ref:n}=t,{__extendsStack:o}=n;if(Zf(r)){let s={},i=n.__extendsNames||[],a=No(o,s,i),c={};se(t,a,c,void 0,s),n.__sourcemap=c}else{let s=No(o);se(t,s)}return t},jo=(t,e,r={})=>(Ia(t,e,r),Fa(t,e,r),$a(t,e,r),t)});function su(t){return Object.keys(t).filter(e=>/^[A-Z]/.test(e))}function iu(t){return Object.keys(t).filter(e=>/^\d+$/.test(e))}function Wo(t,e,r){let{context:n}=e||{},[o]=ln(r),s=r||o;return n?.components?.[s]||n?.pages?.[s]}var Rt,La=G(()=>{Vo();xt();Rt=t=>{if(!b(t)||!t.length)return!1;let e=t.charCodeAt(0);return e>=65&&e<=90}});function au(t,e){let{props:r,on:n}=e,o=re(t.split("on")[1]),s=n[o],i=r[t];y(s)?n[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:n[o]=i}var cu=G(()=>{nn();xt()});function Ma(t,e={}){let r=e.cachedKeys||[];for(let n in t){let o=t[n];if(n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n[2]===n[2].toUpperCase()&&(y(o)||o!=null&&Be(this.context))){let h=re(n.slice(2));t.on&&(t.on[h]=o),delete t[n];continue}if(n==="childProps"){t.props[n]=o,delete t[n],r.push(n);continue}let a=this.define?.[n],c=this.context?.define?.[n],f=g(a)||y(a),l=g(c)||y(c);if(f||l)continue;let u=n.charAt(0);if(fu.has(u)){t.props[n]=o,delete t[n],r.push(n);continue}let p=Ba.test(n)||lu.test(n)||Ly(o),d=De.has(n);!p&&!d&&(n in t.props||(t.props[n]=o),delete t[n],r.push(n))}return t}function br(t=this,e){let r=e.cachedKeys||[];for(let n in t.props){let o=t.props[n],s=n.length>2&&n.charCodeAt(0)===111&&n.charCodeAt(1)===110,i=y(o)||o!=null&&Be(this.context);if(s&&i){au(n,t),delete t.props[n];continue}if(r.includes(n)||n==="childProps")continue;let a=n.charAt(0);if(fu.has(a))continue;let c=this.define?.[n],f=this.context?.define?.[n],l=g(c)||y(c),u=g(f)||y(f),p=Ba.test(n)||lu.test(n),d=De.has(n);(p||d||l||u)&&(t[n]===void 0||o===null)&&(t[n]=o,t.props&&delete t.props[n])}return t}function un(t=this){let e=[];return Ma.call(this,t,{cachedKeys:e}),br.call(this,t,{cachedKeys:e}),t}function Go(t={}){return t.on||(t.on={}),t.props||(t.props={}),un.call(this,t)}function Ua(t,e){this.__element.update({props:t},e)}function Yo(t){let e={update:Ua.bind(t.props),__element:t};Object.setPrototypeOf(t.props,e)}var Ba,lu,fu,$y,Ly,Ho,zo,uu,Ko,Xo,Qo,ja,qo,pn,Jo,Va=G(()=>{hr();cu();ge();xt();nn();Po();Ba=/^[A-Z]/,lu=/^\d+$/,fu=new Set([":","@","[","*","+","~","&",">","$","-",".","!"]),$y=new Set(["extend","props","text","tag","on","if","childExtend","children","childrenAs","state","html","attr","define","content"]),Ly=t=>{if(!t||typeof t!="object"||Array.isArray(t))return!1;for(let e in t)if($y.has(e)||Ba.test(e))return!0;return!1},Ho=(t,e,r)=>{let{props:n,__ref:o}=t;if(o.__propsStack=[],n)o.__initialProps=n;else return{};return I(n)?{...n}:(o.__propsStack.push(n),{})};zo=t=>At(t)("string","number")?{inheritedString:t}:t,uu=(t,e)=>!t||!e.length?!1:e.includes(t),Ko=(t,e)=>{let{__ref:r}=t,n=r.__propsStack||[],o=e.props;if(!o)return n;let s=o[t.key],i=o.childProps||e.childProps,a=t.props?.ignoreChildProps;if(i&&!a){let c=zo(i);n.unshift(c)}if(s){let c=zo(s);n.unshift(c)}return n};Xo=t=>{let e=new Set;return t.filter(r=>!r||Fe.has(r)||e.has(r)?!1:(e.add(r),!0))},Qo=(t,e,r)=>(e.props=t.reduce((n,o)=>{if(Fe.has(o))return n;for(;y(o);)o=A(o,e);return W(n,j(o,{exclude:Fe}))},{}),Yo(e),e.props),ja=(t,e)=>{let{props:r,__ref:n}=t,o=n.__propsStack||[];if(e?.props&&(o=[...Ko(t,e)]),g(r)?o.push(r):r==="inherit"&&e?.props?o.push(e.props):r&&o.push(r),x(n.__extendsStack))for(let s=0;s<n.__extendsStack.length;s++){let i=n.__extendsStack[s];i.props&&i.props!==r&&o.push(i.props)}return n.__propsStack=Xo(o),n.__propsStack},qo=(t,e)=>{let{__ref:r}=t,n=ja(t,e);n.length?Qo(n,t):(r.__propsStack=[],t.props={})},pn=function(t,e,r){let{__ref:n}=t;if(n.__if)qo(t,e);else try{qo(t,e)}catch(o){t.context?.designSystem?.verbose&&console.warn("initProps error at",n.path?.join("."),o),t.props={},n.__propsStack=[]}return Yo(t),t},Jo=(t,e,r)=>{let{__ref:n}=e,s=[...n.__propsStack||[]],i=Ko(e,r);return i.length&&(s=[...i,...s]),t&&(s=[t,...s]),n.__propsStack=Xo(s),n.__propsStack.length&&Qo(n.__propsStack,e),e}});var pu,Wa,za,qa,Ha,Zo,Ga,Ka,Ya,ts,du=G(()=>{Vo();Io();Zr();Va();Ea();xt();pu=process.env.NODE_ENV,Wa=(t,e,r)=>{let n=e.childExtends&&e.childExtends.tag,o=e.props.childProps&&e.props.childProps.tag,s=cn.body.has(r)&&r;return{text:t,tag:n||o||s||"string"}},za=(t,e,r)=>{if(t===void 0)return(pu==="test"||pu==="development")&&console.warn(r,"element is undefined in",e?.__ref?.path),{};if(t!==null)return t===!0?{}:At(t)("string","number")?Wa(t,e,r):y(t)?{props:t}:t},qa=(t,e)=>{let r={};return r.origin=t,r.parent=e,r},Ha=(t,e,r,n,o)=>{if(!e)return o;if(me(e)){let s={key:":root",node:e};return o[`${r}_parent`]=s,s}return e},Zo=(t,e)=>{let{__ref:r}=t,{__ref:n}=e,o=e&&e.key===":root";r?.root||(r.root=o?t:n?.root)},Ga=(t,e,r)=>{let{__ref:n}=e;return n||(n=e.ref={}),n.path||(n.path=[]),n.path.concat(r)},Ka=(t,e,r,n,o)=>(n.context&&!o.context&&!t.context&&(o.context=n.context),n.context||e.context||o.context||t.context),Ya=(t,e,r)=>{let n=qa(t,e);return t.__ref=n,n.__defineCache||(n.__defineCache={}),n.__exec||(n.__exec={}),n.__execProps||(n.__execProps={}),n.__class||(n.__class={}),n.__classNames||(n.__classNames={}),n.__attr||(n.__attr={}),n.__changes||(n.__changes=[]),n.__children||(n.__children=[]),n.__extends=Fo(t,e,r),n.path=Ga(t,e,r),n},ts=(t,e,r,n,o)=>{let i=t?.__hash?{extends:[t]}:za(t,e,r);if(!i)return;let a=Ha(i,e,r,n,o),c=Ro(i,a,r);Ya(i,a,c);let f=Ho(i,a,c),l=Ka(i,a,c,n,o),u=i.on||{};return{...i,key:c,props:f,parent:a,context:l,on:u}}});var es,je,Ve,We,ze,rs,qe,dn,ns,os,ss,hu=G(()=>{dr();hr();ge();xt();es=t=>{let{state:e,props:r,__ref:n}=t,o=r?.state||e;return At(o)("string","number")?(n.__state=o,{value:o}):o===!0?(n.__state=t.key,{}):o?(n.__hasRootState=!0,o):!1},je=(t,e)=>{if(!t.includes("~/"))return;if(t.split("~/").length>1)return e.root},Ve=(t,e)=>{if(!t.includes("../"))return;let n=t.split("../").length-1;for(let o=0;o<n;o++){if(!e.parent)return null;e=e.parent}return e},We=(t,e,r={})=>{let n=b(t)?t.split("/"):[t],o=n.length-1;for(let s=0;s<o;s++){let i=n[s],a=n[s+1];if(i==="__proto__"||a==="__proto__")return;let c=e[i];c||(c=e[i]={}),c[a]||(c[a]={}),t=a,e=c}return r.returnParent?e:e[t]},ze=(t,e,r={})=>{let o=t.__ref.__state;if(!qe(t))return;let s=je(o,e.state),i=e.state;if(s)i=s,o=o.replaceAll("~/","");else{let a=Ve(o,e.state);a&&(i=a,o=o.replaceAll("../",""))}if(i)return We(o,i,r)},rs=(t,e)=>{let r=t.__ref,n=ze(t,e);if(n===void 0)return t.state;if(At(n)("object","array"))return j(n);if(At(n)("string","number","boolean"))return r.__stateType=typeof n,{value:n};console.warn(r.__state,"is not present. Replacing with",{})},qe=t=>{let{__ref:e}=t,r=e?.__state;return!!(r&&At(r)("number","string","boolean"))},dn=function(t){return I(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},ns=(t,e)=>{if(!t)return e||{};let r=t.split("/"),n={},o=n,s=r.length-1;for(let i=0;i<=s;i++)o[r[i]]=i===s?e||{}:{},o=o[r[i]];return n},os=(t,e)=>{let{__element:r}=e,n=r?.state;if(!n)return;let o=j(n,Ot),s={[t.key]:o},i=g(n.__depends)?{...n.__depends,...s}:s;return Array.isArray(n)?pr(n,{...Object.getPrototypeOf(n),__depends:i}):Object.setPrototypeOf(n,{...Object.getPrototypeOf(n),__depends:i}),o},ss=(t,e,r={})=>{let{overwrite:n}=r;if(!n)return;let o=n==="shallow";if(n==="merge"){W(t,e,Ot);return}(o?mr:it)(t,e,Ot)}});var hn,mu=G(()=>{hn=(t,e)=>{let{__ref:r}=t,n=t.context||e.context||r.root?.context;n&&!n.globalScope&&(n.globalScope={});let o=e.scope||r.root?.scope,s=n?.globalScope;if(!t.scope)o?t.scope=o:s?t.scope=Object.create(s):t.scope={};else if(typeof t.scope=="object"&&t.scope!==null&&Object.getPrototypeOf(t.scope)===Object.prototype){let i=o||s;i&&Object.setPrototypeOf(t.scope,i)}}});var gu,Sr,z,is,_t,Xa=G(()=>{xt();Po();gu=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},Sr=(t,e,r,n,o)=>{if(t=Me(t,e),!!y(t))try{let s=t.call(e,e,r||e.state,n||e.context,o);return s&&typeof s.then=="function"&&s.catch(i=>{e.error=i,console.error("[DOMQL] Async event error:",i)}),s}catch(s){if(e.error=s,console.error("[DOMQL] Event handler error:",s),e.context?.strictMode)throw s}},z=(t,e,r)=>{if(!e)throw new Error("Element is required");an(t,e,r);let n=gu(t,e);if(n){let{state:o,context:s}=e;return Sr(n,e,o,s,r)}},is=(t,e,r,n,o,s)=>{if(t=Me(t,r),!!y(t))try{let i=t.call(r,e,r,n||r.state,o||r.context,s);return i&&typeof i.then=="function"&&i.catch(a=>{r.error=a,console.error("[DOMQL] Async event update error:",a)}),i}catch(i){if(r.error=i,console.error("[DOMQL] Event update error:",i),r.context?.strictMode)throw i}},_t=(t,e,r,n)=>{an(t,r,e,n);let o=gu(t,r);if(o){let{state:s,context:i}=r;return is(o,e,r,s,i,n)}}});var yu,lt,Qa=G(()=>{yu={},lt={}});var Su={};Nt(Su,{setup:()=>By,supabaseAdapter:()=>bu});var By,Ja,My,bu,xu=G(()=>{"use strict";By=async({url:t,key:e,projectId:r,createClient:n,...o})=>{let s=t||r&&`https://${r}.supabase.co`;if(!s||!e)throw new Error("@symbo.ls/fetch supabase: url (or projectId) and key are required");n||(n=(await import("@supabase/supabase-js")).createClient);let i=n(s,e,o);return!i||!i.auth?null:bu(i)},Ja=(t,e)=>{if(!e)return t;for(let r in e){let n=e[r];if(n===null)t=t.is(r,null);else if(Array.isArray(n))t=t.in(r,n);else if(typeof n=="object")for(let o in n)o==="gt"?t=t.gt(r,n[o]):o==="gte"?t=t.gte(r,n[o]):o==="lt"?t=t.lt(r,n[o]):o==="lte"?t=t.lte(r,n[o]):o==="neq"?t=t.neq(r,n[o]):o==="like"?t=t.like(r,n[o]):o==="ilike"?t=t.ilike(r,n[o]):o==="in"?t=t.in(r,n[o]):o==="is"?t=t.is(r,n[o]):o==="contains"?t=t.contains(r,n[o]):o==="containedBy"?t=t.containedBy(r,n[o]):o==="textSearch"&&(t=t.textSearch(r,n[o]));else t=t.eq(r,n)}return t},My=(t,{limit:e,offset:r,order:n,single:o}={})=>{if(n)if(Array.isArray(n))for(let s of n){let i=typeof s=="string"?s:s.by;t=t.order(i,{ascending:s.asc!==!1})}else{let s=typeof n=="string"?n:n.by;t=t.order(s,{ascending:n.asc!==!1})}return e&&(t=t.limit(e)),r&&(t=t.range(r,r+(e||20)-1)),o&&(t=t.single()),t},bu=t=>({name:"supabase",client:t,getSession:async()=>{let{data:e}=await t.auth.getSession();return e?.session||null},getUser:async()=>{let{data:e}=await t.auth.getUser();return e?.user||null},signIn:e=>e.provider?t.auth.signInWithOAuth({provider:e.provider}):e.token?t.auth.signInWithIdToken(e):t.auth.signInWithPassword(e),signUp:e=>t.auth.signUp(e),signOut:()=>t.auth.signOut(),onAuthStateChange:e=>{let{data:{subscription:r}}=t.auth.onAuthStateChange((n,o)=>e(n,o));return()=>r.unsubscribe()},select:async({from:e,select:r,params:n,...o})=>{let s=t.from(e).select(r||"*");return s=Ja(s,n),s=My(s,o),s},rpc:({from:e,params:r})=>t.rpc(e,r),insert:({from:e,data:r,select:n})=>t.from(e).insert(r).select(n||"*"),update:({from:e,data:r,params:n,select:o})=>{let s=t.from(e).update(r);return s=Ja(s,n),s.select(o||"*")},upsert:({from:e,data:r,select:n})=>t.from(e).upsert(r).select(n||"*"),delete:({from:e,params:r})=>{let n=t.from(e).delete();return n=Ja(n,r),n},subscribe:({from:e,params:r,on:n},o)=>{let s=n||"*",i=t.channel(`db-${e}-${Date.now()}`).on("postgres_changes",{event:s,schema:"public",table:e,...r?.id?{filter:`id=eq.${r.id}`}:{}},a=>o(a.new,a.old,a)).subscribe();return()=>t.removeChannel(i)},upload:({bucket:e,path:r,file:n,options:o})=>t.storage.from(e).upload(r,n,o),download:({bucket:e,path:r})=>t.storage.from(e).download(r),getPublicUrl:({bucket:e,path:r})=>t.storage.from(e).getPublicUrl(r)})});var wu={};Nt(wu,{restAdapter:()=>_u,setup:()=>jy});var Uy,be,jy,_u,vu=G(()=>{"use strict";Uy=(t,e,r)=>{let n=e&&!e.startsWith("/")?"/":"",o=new URL(`${t}${n}${e}`);if(r)for(let s in r){let i=r[s];i!=null&&o.searchParams.set(s,typeof i=="object"?JSON.stringify(i):i)}return o.toString()},be=async(t,e)=>{let r=await globalThis.fetch(t,e),n=r.headers.get("content-type"),o=n&&n.includes("json")?await r.json():await r.text();return{data:o,error:r.ok?null:o?.message||o?.error||r.statusText,status:r.status}},jy=async({url:t,headers:e,auth:r,fetchOptions:n})=>{if(!t)throw new Error("@symbo.ls/fetch rest: url is required");return _u(t,e,r,n)},_u=(t,e={},r,n={})=>{let o=r?.token||null,s=l=>{let u={...e,...l};return o&&(u.Authorization=`Bearer ${o}`),u},i=l=>({...s(l),"Content-Type":"application/json"}),a=l=>({...n,...l}),c=(l,u)=>{let p=u||t;if(l&&(l.startsWith("http://")||l.startsWith("https://")))return l;let d=l&&!l.startsWith("/")?"/":"";return`${p}${d}${l||""}`};return{name:"rest",setToken:l=>{o=l},getSession:async()=>{if(!r?.sessionUrl)return o?{token:o}:null;let l=await be(c(r.sessionUrl,r.baseUrl),a({headers:s()}));return l.error?null:l.data},signIn:async l=>{if(!r?.signInUrl)throw new Error("rest: auth.signInUrl not configured");let u=await be(c(r.signInUrl,r.baseUrl),a({method:"POST",headers:i(),body:JSON.stringify(l)}));return u.data?.token&&(o=u.data.token),u},signOut:async()=>(r?.signOutUrl&&await be(c(r.signOutUrl,r.baseUrl),a({method:"POST",headers:s()})),o=null,{error:null}),select:({from:l,params:u,select:p,limit:d,offset:h,order:m,single:S,headers:_,baseUrl:w})=>{let E={...u};return p&&(E.select=p),d&&(E.limit=d),h&&(E.offset=h),S&&(E.single=!0),m&&(typeof m=="string"?E.order=m:Array.isArray(m)?E.order=m.map(R=>`${R.by}:${R.asc===!1?"desc":"asc"}`).join(","):m.by&&(E.order=`${m.by}:${m.asc===!1?"desc":"asc"}`)),be(Uy(w||t,l||"",E),a({headers:s(_)}))},rpc:({from:l,params:u,headers:p,baseUrl:d})=>be(c(`rpc/${l}`,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),insert:({from:l,data:u,headers:p,baseUrl:d})=>be(c(l,d),a({method:"POST",headers:i(p),body:JSON.stringify(u)})),update:({from:l,data:u,params:p,method:d,headers:h,baseUrl:m})=>{let S=p?.id||u?.id,_=S?`${l}/${S}`:l;return be(c(_,m),a({method:d||"PATCH",headers:i(h),body:JSON.stringify(u)}))},delete:({from:l,params:u,headers:p,baseUrl:d})=>{let h=u?.id,m=h?`${l}/${h}`:l;return be(c(m,d),a({method:"DELETE",headers:s(p)}))}}}});var Eu={};Nt(Eu,{localAdapter:()=>Cu,setup:()=>Wy});var Za,Vy,Wy,Cu,ku=G(()=>{"use strict";Za=(t,e)=>{if(!e)return!0;for(let r in e){let n=e[r];if(n===null){if(t[r]!==null&&t[r]!==void 0)return!1}else if(Array.isArray(n)){if(!n.includes(t[r]))return!1}else if(typeof n=="object"){for(let o in n)if(o==="gt"&&!(t[r]>n[o])||o==="gte"&&!(t[r]>=n[o])||o==="lt"&&!(t[r]<n[o])||o==="lte"&&!(t[r]<=n[o])||o==="neq"&&t[r]===n[o]||o==="like"&&!String(t[r]).includes(n[o]))return!1}else if(t[r]!==n)return!1}return!0},Vy=(t,{order:e,limit:r,offset:n,single:o})=>{let s=[...t];if(e){let i=typeof e=="string"?e:e.by,a=e.asc!==!1;s.sort((c,f)=>c[i]<f[i]?a?-1:1:c[i]>f[i]?a?1:-1:0)}return n&&(s=s.slice(n)),r&&(s=s.slice(0,r)),o?{data:s[0]||null,error:null}:{data:s,error:null}},Wy=async({data:t,...e})=>Cu(t,e),Cu=(t={},e={})=>{let r={},n={},o=e.persist!==!1&&typeof localStorage<"u",s=e.prefix||"smbls_db_",i=l=>{if(!r[l])if(o)try{let u=localStorage.getItem(s+l);r[l]=u?JSON.parse(u):t[l]||[]}catch{r[l]=t[l]||[]}else r[l]=t[l]||[];return r[l]},a=l=>{if(o)try{localStorage.setItem(s+l,JSON.stringify(r[l]))}catch{}},c=(l,u,p,d)=>{let h=n[l];if(h)for(let m of h)m(p,d,{event:u,table:l})},f=Date.now();return{name:"local",store:r,select:async({from:l,params:u,...p})=>{let h=i(l).filter(m=>Za(m,u));return Vy(h,p)},insert:async({from:l,data:u})=>{let p=i(l),h=(Array.isArray(u)?u:[u]).map(m=>{let S={id:m.id||++f,...m};return p.push(S),S});a(l);for(let m of h)c(l,"INSERT",m,null);return{data:Array.isArray(u)?h:h[0],error:null}},update:async({from:l,data:u,params:p})=>{let d=i(l),h=[];for(let m=0;m<d.length;m++)if(Za(d[m],p)){let S={...d[m]};Object.assign(d[m],u),h.push(d[m]),c(l,"UPDATE",d[m],S)}return a(l),{data:h,error:null}},delete:async({from:l,params:u})=>{let p=i(l),d=[];for(let h=p.length-1;h>=0;h--)Za(p[h],u)&&(d.push(p[h]),p.splice(h,1),c(l,"DELETE",null,d[d.length-1]));return a(l),{data:d,error:null}},subscribe:({from:l,on:u},p)=>{n[l]||(n[l]=[]);let d=(h,m,S)=>{u&&u!=="*"&&u!==S.event||p(h,m,S)};return n[l].push(d),()=>{let h=n[l].indexOf(d);h>-1&&n[l].splice(h,1)}}}}});var _n={};Nt(_n,{createAdapter:()=>Hy,default:()=>rb,executeFetch:()=>xn,fetchPlugin:()=>sc,initAdapterAuth:()=>ls,parseDuration:()=>mn,queryClient:()=>eb,registerAdapter:()=>qy,resolveDb:()=>Iu});var zy,Ru,qy,Hy,Iu,mn,wt,Pu,as,Gy,Sn,gn,yn,tc,nc,cs,Ky,Au,ec,Nu,Du,xr,Ou,Yy,Tu,Xy,Fu,$u,ls,oc,Ft,bn,He,Qt,Se,Qy,Jy,Zy,rc,tb,xn,eb,sc,rb,Ge=G(()=>{"use strict";v();zy=["select","rpc","insert","update","delete","subscribe"],Ru={supabase:()=>Promise.resolve().then(()=>(xu(),Su)),rest:()=>Promise.resolve().then(()=>(vu(),wu)),local:()=>Promise.resolve().then(()=>(ku(),Eu))},qy=(t,e)=>{Ru[t]=e},Hy=t=>{let e={};for(let r of zy)t[r]&&(e[r]=t[r]);return e.name=t.name||"custom",e},Iu=async t=>{if(!t)return null;if(typeof t.select=="function")return t;let{adapter:e,...r}=t,n=typeof e=="string"?e:typeof t=="string"?t:null;if(!n)return null;let o=Ru[n];if(!o)throw new Error(`Unknown db adapter: "${n}". Use registerAdapter() for adapters with optional deps.`);return(await o()).setup(r)},mn=t=>{if(!t)return 0;if(typeof t=="number")return t;let e=t.match(/^(\d+)(ms|s|m|h)$/);if(!e)return 0;let r=parseInt(e[1]),n=e[2];return n==="ms"?r:n==="s"?r*1e3:n==="m"?r*6e4:n==="h"?r*36e5:0},wt=new Map,Pu=new Map,as=new Map,Gy=t=>{if(t.cache?.key)return t.cache.key;let e=Xy(t.params);return`${t.from}:${t.method}:${JSON.stringify(e||"")}`},Sn=t=>wt.get(t)||null,gn=(t,e,r)=>{let n=wt.get(t),o={data:e,error:r,time:Date.now(),stale:!1};wt.set(t,o);let s=Pu.get(t);if(s)for(let i of s)y(i)&&i(o);return o},yn=t=>{if(t){let e=wt.get(t);e&&(e.stale=!0);return}for(let[,e]of wt)e.stale=!0},tc=t=>{if(t){wt.delete(t);return}wt.clear()},nc=t=>!t&&t!==!1?{staleTime:6e4,gcTime:3e5}:t===!1?null:t===!0?{staleTime:6e4,gcTime:3e5}:typeof t=="number"?{staleTime:t,gcTime:Math.max(t*5,3e5)}:b(t)?{staleTime:mn(t),gcTime:3e5}:{staleTime:mn(t.stale||t.staleTime)||6e4,gcTime:mn(t.gc||t.gcTime||t.expire)||3e5,key:t.key},cs=null,Ky=()=>{cs||(cs=setInterval(()=>{let t=Date.now();for(let[e,r]of wt){let n=Pu.get(e);!(n&&n.size>0)&&t-r.time>(r.gcTime||3e5)&&wt.delete(e)}},3e4),cs.unref&&cs.unref())};Ky();Au=3,ec=t=>Math.min(1e3*2**t,3e4),Nu=t=>{let e=t.retry;return e===!1?{count:0}:e===!0||e===void 0?{count:Au,delay:ec}:typeof e=="number"?{count:e,delay:ec}:{count:e.count??Au,delay:y(e.delay)?e.delay:typeof e.delay=="number"?()=>e.delay:ec}},Du=async(t,e)=>{let{count:r,delay:n}=e,o;for(let s=0;s<=r;s++)try{let i=await t();if(i?.error){if(o=i.error,s<r){let a=y(n)?n(s,o):n;await new Promise(c=>setTimeout(c,a));continue}return i}return i}catch(i){if(o=i,s<r){let a=y(n)?n(s,i):n;await new Promise(c=>setTimeout(c,a));continue}throw i}return{data:null,error:o}},xr={focus:new Set,online:new Set},Ou=!1,Yy=()=>{if(Ou||typeof window>"u")return;Ou=!0;let t=()=>{for(let r of xr.focus)r()},e=()=>{for(let r of xr.online)r()};window.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&t()}),window.addEventListener("focus",t),window.addEventListener("online",e)},Tu=(t,e)=>{let r=e.__ref;if(t===!0)return{from:r.__state||e.key,method:"select",query:!0,on:"create"};if(b(t))return{from:t,method:"select",query:!0,on:"create"};if(g(t)){let n={...t};return n.from=n.from||r.__state||e.key,n.method=n.method||"select",n.on=n.on||"create",n.query===void 0&&(n.query=!0),n}return null},Xy=t=>(!t||y(t),t),Fu=(t,e)=>{let r=t?.state?.root||e?.state?.root;if(r?.lang)return r.lang},$u=(t,e,r)=>{let n;if(!t)n=void 0;else if(y(t))n=t(e,e.state);else{n={};for(let o in t){let s=t[o];n[o]=y(s)?s(e,e.state):s}}return n},ls=async(t,e)=>{if(!t||t.__authInitialized||(t.__authInitialized=!0,!t.getSession))return;let r=(n,o)=>{let s=e.state?.root;s?.update&&s.update({auth:{user:n,session:o,loading:!1}})};try{let n=await t.getSession();r(n?.user||null,n)}catch(n){console.warn("[fetch] Failed to restore auth session:",n.message)}t.onAuthStateChange&&t.onAuthStateChange((n,o)=>{r(o?.user||null,o)})},oc=async(t,e)=>{if(y(t.select))return t.auth!==!1&&await ls(t,e),t;if(t.__resolved)return t.auth!==!1&&await ls(t.__resolved,e),t.__resolved;if(t.__resolving)return t.__resolving;t.__resolving=Iu(t);let r=await t.__resolving;return delete t.__resolving,r?(t.__resolved=r,e.fetch=r,t.auth!==!1&&await ls(r,e),r):null},Ft=(t,e,...r)=>{let n=y(t[e])?t[e]:t.props&&y(t.props[e])?t.props[e]:null;n&&n.call(t,...r,t,t.state,t.context)},bn=t=>{let e={},r=t.node;if(!r)return e;if(r.tagName==="FORM"){let o=new FormData(r);for(let[s,i]of o.entries())e[s]=i;return e}let n=r.querySelectorAll("input, textarea, select");for(let o=0;o<n.length;o++){let s=n[o],i=s.name||s.getAttribute("name");i&&(s.type==="checkbox"?e[i]=s.checked:s.type==="file"?e[i]=s.files:e[i]=s.value)}return e},He=(t,e,r,n={})=>{let o=r?{[r]:e}:e;t.state?.update&&t.state.update(o,{preventFetch:!0,...n})},Qt=(t,e)=>{let r=t.__ref;r.__fetchStatus=e,r.__fetching=e.isFetching,r.__fetchError=e.error},Se=async(t,e,r,n={})=>{let o=r?.fetch;if(!o||t.enabled===!1||y(t.enabled)&&!t.enabled(e,e.state))return;let s=await oc(o,r);if(!s)return;let i=e.__ref,{from:a,method:c,query:f,params:l,cache:u,transform:p,single:d,auth:h,fields:m,as:S,limit:_,offset:w,order:E,headers:R,baseUrl:T,page:O,cursor:k,getNextPageParam:L,getPreviousPageParam:N,infinite:F,placeholderData:V,initialData:Z,select:tt,keepPreviousData:pt}=t,Et;if(f&&y(e.getQuery)){let J=e.getQuery(s.name||"paths");J&&(Et=J.select||J.length&&J.join(",")||void 0)}let Ut=$u(l,e,r),Qr=nc(u),pa=Nu(t),st=Qr?u?.key||`${a}:${c}:${JSON.stringify(Ut||"")}${F?":infinite":""}${O?":p"+JSON.stringify(O):""}`:null;if(!i.__fetchInitialized&&st&&(i.__fetchInitialized=!0,Z!==void 0)){let J=y(Z)?Z():Z;gn(st,J,null)}if((c==="select"||c==="rpc")&&st&&Qr){let J=Sn(st);if(J&&!J.error){let H=Date.now()-J.time,ut=J.stale||H>(Qr.staleTime||0),U=J.data;if(tt&&(U=tt(U,e,e.state)),p&&(U=p(U,e,e.state)),He(e,U,S),!ut){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"});return}}else if(V!==void 0){let H=y(V)?V(e,e.state):V;H!==void 0&&He(e,H,S)}}if(st&&as.has(st)&&!n.force){let J=as.get(st);try{let H=await J;if(H?.data!==void 0){let ut=H.data;tt&&(ut=tt(ut,e,e.state)),p&&(ut=p(ut,e,e.state)),He(e,ut,S),Ft(e,"onFetchComplete",ut)}}catch{}return}let da=!Sn(st)?.data;Qt(e,{isFetching:!0,isLoading:da,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");let Jl=Du(async()=>{if(h!==!1&&s.getSession){let U=await s.getSession();if(h===!0&&!U){let kt={message:"Not authenticated"};return Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:kt,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",kt),{data:null,error:kt}}}let J=s[c];if(!y(J))return{data:null,error:{message:`Method "${c}" not found on adapter`}};let H={from:a,select:Et,params:Ut,single:d,limit:_,offset:w,order:E,headers:R,baseUrl:T},ut=Fu(e,r);if(ut&&(H.headers={...H.headers,"Accept-Language":ut}),O!==void 0){if(g(O))O.offset!==void 0&&(H.offset=O.offset),O.limit!==void 0&&(H.limit=O.limit),O.cursor!==void 0&&(H.params={...H.params,cursor:O.cursor});else if(typeof O=="number"){let U=t.pageSize||_||20;H.offset=(O-1)*U,H.limit=U}}if(k!==void 0&&(H.params={...H.params,cursor:k}),c==="insert"||c==="update"||c==="upsert"){let U;if(m===!0||t.on==="submit")U=bn(e);else if(x(m)){let kt=bn(e);U={};for(let ma of m)U[ma]=kt[ma]}else e.state?.parse?U=e.state.parse():g(e.state)&&(U={...e.state});p&&(U=p(U,e,e.state)),H.data=U}if(c==="rpc"){let U=Ut;if(t.on==="submit"){let kt=bn(e);U=t.transformParams?t.transformParams(kt,e,e.state):kt}H.params=U}if(c==="subscribe"){let U=s.subscribe({from:a,params:Ut,on:t.subscribeOn},(kt,ma,H_)=>{He(e,kt,S),Ft(e,"onFetchComplete",kt)});return i.__unsubscribe=U,{data:null,error:null,subscribed:!0}}return J(H)},pa);st&&as.set(st,Jl);try{let J=await Jl;if(J?.subscribed)return;let{data:H,error:ut}=J||{};if(ut){st&&gn(st,null,ut),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:ut,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",ut);return}if(H!==void 0){if((c==="select"||c==="rpc")&&st){let kt=gn(st,H,null);kt.gcTime=Qr?.gcTime||3e5}let U=H;F&&x(H)&&(i.__pages||(i.__pages=[]),n.direction==="previous"?i.__pages.unshift(H):i.__pages.push(H),U=i.__pages.flat(),L&&(i.__nextPageParam=L(H,i.__pages),i.__hasNextPage=i.__nextPageParam!=null),N&&(i.__prevPageParam=N(H,i.__pages),i.__hasPreviousPage=i.__prevPageParam!=null)),tt&&(U=tt(U,e,e.state)),p&&(U=p(U,e,e.state)),(!pt||U!==void 0)&&He(e,U,S),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",U)}}catch(J){Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:J,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",J)}finally{st&&as.delete(st)}},Qy=(t,e,r)=>{let n=t.on,o=e.__ref;o.__fetchListeners||(o.__fetchListeners=[]);let s=t.__runner||Se;if(n==="submit"){let i=c=>{c.preventDefault(),s(t,e,r)},a=e.node;a&&(a.addEventListener("submit",i),o.__fetchListeners.push(()=>a.removeEventListener("submit",i)))}else if(n==="click"){let i=()=>s(t,e,r),a=e.node;a&&(a.addEventListener("click",i),o.__fetchListeners.push(()=>a.removeEventListener("click",i)))}else n==="stateChange"&&(o.__fetchOnStateChange=()=>s(t,e,r))},Jy=(t,e,r)=>{let n=e.__ref;n.__fetchCleanups||(n.__fetchCleanups=[]),Yy();let o=t.refetchInterval;if(o){let s=typeof o=="number"?o:mn(o);if(s>0){let i=setInterval(()=>{(t.refetchIntervalInBackground||typeof document>"u"||document.visibilityState==="visible")&&Se(t,e,r,{force:!0})},s);n.__fetchCleanups.push(()=>clearInterval(i))}}if(t.refetchOnWindowFocus!==!1){let s=()=>{let i=Gy(t),a=Sn(i),c=nc(t.cache);(!a||a.stale||Date.now()-a.time>(c?.staleTime||0))&&Se(t,e,r,{force:!0})};xr.focus.add(s),n.__fetchCleanups.push(()=>xr.focus.delete(s))}if(t.refetchOnReconnect!==!1){let s=()=>Se(t,e,r,{force:!0});xr.online.add(s),n.__fetchCleanups.push(()=>xr.online.delete(s))}},Zy=(t,e,r)=>{if(!e.optimistic)return null;let n=t.__ref,o=e.as,s=t.state?.parse?t.state.parse():g(t.state)?{...t.state}:t.state;n.__optimisticSnapshot=s;let i=y(e.optimistic)?e.optimistic(r,s,t):e.optimistic;return i!==void 0&&He(t,i,o),s},rc=(t,e)=>{let r=t.__ref,n=r.__optimisticSnapshot;n!==void 0&&(He(t,n,e.as),delete r.__optimisticSnapshot)},tb=async(t,e,r)=>{let n=r?.fetch;if(!n)return;let o=await oc(n,r);if(!o)return;let s=e.__ref,{method:i,from:a,fields:c,transform:f,as:l,on:u,auth:p,headers:d,baseUrl:h,invalidates:m,optimistic:S,onMutate:_,onSuccess:w,onError:E,onSettled:R}=t,T;if(c===!0||u==="submit")T=bn(e);else if(x(c)){let k=bn(e);T={};for(let L of c)T[L]=k[L]}else e.state?.parse?T=e.state.parse():g(e.state)&&(T={...e.state});f&&(T=f(T,e,e.state)),y(_)&&_(T,e,e.state);let O=S?Zy(e,t,T):null;s.__fetching=!0,Qt(e,{isFetching:!0,isLoading:!1,isStale:!1,isSuccess:!1,error:null,status:"pending",fetchStatus:"fetching"}),Ft(e,"onFetchStart");try{if(p!==!1&&o.getSession){let pt=await o.getSession();if(p===!0&&!pt){O!==void 0&&rc(e,t),Ft(e,"onFetchError",{message:"Not authenticated"});return}}let k=o[i];if(!y(k))return;let L={from:a,data:T,headers:d,baseUrl:h};t.params&&(L.params=$u(t.params,e,r));let N=Fu(e,r);N&&(L.headers={...L.headers,"Accept-Language":N});let F=Nu(t),V=await Du(()=>k(L),F),{data:Z,error:tt}=V||{};if(tt){O!==void 0&&rc(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:tt,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",tt),y(E)&&E(tt,T,e),y(R)&&R(null,tt,T,e);return}if(delete s.__optimisticSnapshot,Z!==void 0){let pt=l?{[l]:Z}:Z;e.state?.update&&e.state.update(pt,{preventFetch:!0})}if(Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!0,error:null,status:"success",fetchStatus:"idle"}),Ft(e,"onFetchComplete",Z),y(w)&&w(Z,T,e),y(R)&&R(Z,null,T,e),m){let pt=x(m)?m:[m];for(let Et of pt)if(Et===!0||Et==="*")for(let[Ut]of wt)Ut.startsWith(a+":")&&yn(Ut);else yn(Et)}}catch(k){O!==void 0&&rc(e,t),Qt(e,{isFetching:!1,isLoading:!1,isStale:!1,isSuccess:!1,error:k,status:"error",fetchStatus:"idle"}),Ft(e,"onFetchError",k),y(E)&&E(k,T,e),y(R)&&R(null,k,T,e)}finally{s.__fetching=!1}},xn=(t,e,r,n)=>{if(!t||!n?.fetch)return;let s=A(t,e);if(!s)return;let i=x(s)?s.map(c=>Tu(A(c,e),e)).filter(Boolean):[Tu(s,e)].filter(Boolean);for(let c of i){let f=c.method==="insert"||c.method==="update"||c.method==="upsert"||c.method==="delete",l=f?tb:Se;c.on==="create"?l(c,e,n):Promise.resolve().then(()=>{Qy({...c,__runner:l},e,n)}),!f&&c.on==="create"&&(c.refetchInterval||c.refetchOnWindowFocus!==!1||c.refetchOnReconnect!==!1)&&Jy(c,e,n)}let a=e.__ref;a.refetch=c=>{for(let f of i)Se(f,e,n,{force:!0,...c})},a.fetchNextPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__nextPageParam;if(f==null)return;let l={...c,cursor:f};Se(l,e,n,{direction:"next",force:!0})},a.fetchPreviousPage=()=>{let c=i[0];if(!c||!c.infinite)return;let f=a.__prevPageParam;if(f==null)return;let l={...c,cursor:f};Se(l,e,n,{direction:"previous",force:!0})}},eb={invalidateQueries:t=>{if(!t){yn();return}if(b(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&yn(e);else if(x(t)){let e=t.join(":");for(let[r]of wt)r.includes(e)&&yn(r)}},removeQueries:t=>{if(!t){tc();return}if(b(t))for(let[e]of wt)(e.startsWith(t)||e.includes(t))&&tc(e)},getQueryData:t=>Sn(t)?.data??void 0,setQueryData:(t,e)=>{let r=Sn(t),n=y(e)?e(r?.data):e;gn(t,n,null)},prefetchQuery:async(t,e)=>{let r=e?.fetch;if(!r)return;let n=await oc(r,e);if(!n)return;let o=t.cache?.key||`${t.from}:${t.method||"select"}:${JSON.stringify(t.params||"")}`,s=n[t.method||"select"];if(!y(s))return;let i=await s({from:t.from,params:t.params,limit:t.limit,offset:t.offset,order:t.order,single:t.single});if(i?.data!==void 0&&!i?.error){let a=gn(o,i.data,null);a.gcTime=nc(t.cache)?.gcTime||3e5}return i},getCache:()=>wt,clear:()=>tc()},sc={name:"fetch",create(t){let e=t.fetch||t.props?.fetch;e&&xn(e,t,t.state,t.context)}},rb=xn});function fs(t){let e=this,{__ref:r}=e,n=[].concat(t),o=r.root[n[0]];if(!n||!n.length)return console.log(n,"on",e.key,"is undefined");for(;o.key===n[0]&&(n.shift(),!!n.length);)if(o=o[n[0]],!o)return;return o}function us(t){let e=this,{parent:r}=e;if(y(t))return r.state&&t(r,r.state,r.context)?r:r.parent?r.lookup(t):void 0;if(e[t])return e[t];for(;r.param!==t;){if(r[t])return r[t];if(r=r.parent,!r)return}return r}function ps(t){let e=this,{__ref:r}=e,n=r?.__children;if(n)for(let o=0;o<n.length;o++){let s=n[o],i=e[s];if(s===t)return i;if(y(t)){let c=t(i,i.state,i.context);if(i.state&&c)return i}let a=i?.lookdown?.(t);if(a)return a}}function ds(t,e=[]){let r=this,{__ref:n}=r,o=n?.__children;if(o){for(let s=0;s<o.length;s++){let i=o[s],a=r[i];if(i===t)e.push(a);else if(y(t)){let c=t(a,a.state,a.context);a.state&&c&&e.push(a)}a?.lookdownAll?.(t,e)}return e.length?e:void 0}}function wn(t={}){let e=this;if(e.node?.style){for(let r in t){let n=t[r],o=e[r];g(n)&&o?wn.call(o,n):e.node.style[r]=n}return e}}function hs(t){let e=this;if(z("beforeRemove",e,t)===!1)return e;y(e.node.remove)?e.node.remove():Le()||(console.warn("This item cant be removed"),e.log()),delete e.parent[e.key],e.parent.__ref&&(e.parent.__ref.__children=po(e.parent.__ref.__children,e.key)),z("remove",e,t)}function Lu(t){return this[t]}function ms(t,e){let r=this;if(!(!t||!r.props))return r.update({props:t},e),r}function gs(t){return t?this.__ref&&this.__ref[t]:this.__ref}function Bu(){return this.getRef("__children").map(e=>this[e])}function ys(){return this.getRef().path}function bs(t){let e=null,r=n=>n.__element&&n.root?.isRootState;if(!this)e=window.platformState||window.smblsApp?.state;else if(r(this))e=this.root;else if(this.__ref&&this.__ref.path){let n=this.state&&r(this.state),o=y(this.state)&&this.parent.state&&r(this.parent.state);(n||o)&&(e=this.state.root||this.parent.state.root)}return e||(e=window.platformState||window.smblsApp?.state),t?e?.[t]:e}function Ss(t){let e=this.getRootState()?.__element;return e&&Object.keys(e).length>0&&t?e[t]:e}function xs(t){return this.getRoot("data")&&Object.keys(this.getRoot("data")).length>0&&t?this.getRoot("data")[t]:this.getRoot("data")}function _s(t){let e=this.getRoot()?.context;return t?e[t]:e}function ws(t){let e=this.context;return t?e[t]:e}function vn(){let t=this,e=[];for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||De.has(r)&&!mo.has(r)||e.push(r);return e}function Cn(t=[]){let e=this,r={},n=vn.call(e),o=n.includes("children"),s=t.length?new Set(t):null;for(let i=0;i<n.length;i++){let a=n[i];if(s&&s.has(a)||!Object.prototype.hasOwnProperty.call(e,a)||o&&a==="content")continue;let c=e[a];if(a==="state"){if(e.__ref&&!e.__ref.__hasRootState)continue;let f=y(c&&c.parse)?c.parse():c;r[a]=y(f)?f:JSON.parse(JSON.stringify(f||{}))}else if(a==="scope"){if(e.__ref&&!e.__ref.__hasRootScope)continue;r[a]=JSON.parse(JSON.stringify(c||{}))}else if(a==="props"){let{__element:f,update:l,...u}=e[a];r[a]=u}else dt(c)&&Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=c)}return r}function _r(t=[],e=new WeakSet){let r=this;if(e.has(r))return;e.add(r);let n=Cn.call(r,t),o=t.length?new Set(t):null;for(let s in n){if(o&&o.has(s)||!Object.prototype.hasOwnProperty.call(r,s))continue;let i=n[s];Array.isArray(i)?n[s]=i.map(a=>I(a)?_r.call(a,t,e):a):I(i)&&(n[s]=_r.call(i,t,e))}return n}function En(...t){if(xe!=="test"&&xe!=="development")return;let e=this,{__ref:r}=e;return console.groupCollapsed(e.key),t.length?t.forEach(n=>console.log(`%c${n}:
13
+ `,"font-weight: bold",e[n])):(console.log(r.path),e.keys().forEach(o=>console.log(`%c${o}:`,"font-weight: bold",e[o]))),console.log(e),console.groupEnd(e.key),e}function vs(...t){(xe==="test"||xe==="development")&&console.log(...t)}function Cs(...t){(xe==="test"||xe==="development")&&console.warn(...t)}function wr(...t){if(xe==="test"||xe==="development"){if(t[t.length-1]?.debugger)debugger;throw t[t.length-1]?.verbose&&En.call(this),new Error(...t)}}function Es(){let t=this,{key:e,parent:r}=t,{__children:n}=r.__ref,o=n.indexOf(e),s=n[o+1];return r[s]}function ks(t){let e=t||this,{key:r,parent:n}=e,{__children:o}=n.__ref;if(!o)return;let s=o.indexOf(r);return n[o[s-1]]}function As(t={}){let e=this;e.data||(e.data={}),e.data.varCaches||(e.data.varCaches={});let r=e.data.varCaches,n={},o;for(let s in t)t[s]!==r[s]&&(o=!0,n[s]=t[s]);return{changed:s=>{if(!o)return;let i=s(n,j(r));for(let a in n)r[a]=n[a];return i},timeout:(s,i)=>{if(!o)return;let a=setTimeout(()=>{s(n),clearTimeout(a)},i)}}}function Os(t,...e){let r=this.context,n=r.utils?.[t]||r.functions?.[t]||r.methods?.[t]||r.snippets?.[t];if(n)try{let o=n.call(this,...e);return o&&typeof o.then=="function"&&o.catch(s=>{wr.call(this,s)}),o}catch(o){if(wr.call(this,o),r?.strictMode)throw o}}async function Ts(){let t=this,e=t.context?.fetch;if(!e)return null;if(typeof e.select=="function"){if(!e.__authInitialized&&e.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(e,t.context)}return e}if(e.__resolved){if(!e.__resolved.__authInitialized&&e.__resolved.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(e.__resolved,t.context)}return e.__resolved}if(e.__resolving)return e.__resolving;let r=Promise.resolve().then(()=>(Ge(),_n)).then(({resolveDb:o})=>o(e));e.__resolving=r;let n=await r;if(e.__resolved=n,t.context.fetch=n,delete e.__resolving,n.getSession){let{initAdapterAuth:o}=await Promise.resolve().then(()=>(Ge(),_n));await o(n,t.context)}return n}function Rs(t){let e=this,r=t||lt.useStateQuery||e.context?.useStateQuery;if(!r)return null;let n={};if(ic(e,n),r===!0)return n;let o=fb[r];return o?o(n):n}function jt(t,e){return!!(on.has(t)||e?.context?.methods?.[t])}var xe,Mu,ic,nb,Uu,ob,sb,ib,ab,cb,lb,fb,ac=G(()=>{Xa();hr();xt();ge();Ca();dr();Qa();xe=process.env.NODE_ENV;Mu=(t,e,r,n)=>Object.defineProperty(t,e,{get:r,set:n});ic=(t,e)=>{let r=t.__ref;if(!r)return;let n=r.__state;n&&typeof n=="string"&&nb(e,n);let o=r.__children;if(o)for(let a=0;a<o.length;a++){let c=t[o[a]];c&&c.__ref&&ic(c,e)}let s=r.contentElementKey||"content",i=t[s];i&&i.__ref&&ic(i,e)},nb=(t,e)=>{let n=e.replaceAll("../","").replaceAll("~/","").split("/"),o=t;for(let s=0;s<n.length;s++){let i=n[s];s===n.length-1?o[i]||(o[i]=!0):(o[i]===!0&&(o[i]={}),o[i]||(o[i]={}),o=o[i])}},Uu=(t,e=0)=>{let r=" ".repeat(e),n=Object.entries(t);return n.length?n.map(([s,i])=>i===!0?`${r}${s}`:`${r}${s} {
14
14
  ${Uu(i,e+1)}
15
15
  ${r}}`).join(`
16
- `):""},ib=t=>`{
16
+ `):""},ob=t=>`{
17
17
  ${Uu(t,1)}
18
- }`,ab=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},cb=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=e(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},lb=(t,e)=>{let r=[],n=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in l)l[d]===!0?r.push(`${u}.${d}`):s(l[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",f=n.length?`
18
+ }`,sb=t=>{let e={fields:{},include:[]},r=(n,o)=>{let s=[];for(let i in n)if(n[i]===!0)s.push(i);else{let a=o?`${o}.${i}`:i;e.include.push(a),r(n[i],a)}s.length&&(e.fields[o||"_root"]=s)};return r(t,""),e},ib=t=>{let e=s=>{let i=[],a=[];for(let c in s)if(s[c]===!0)i.push(c);else{let f=e(s[c]),l=[];f.select&&l.push(`$select=${f.select}`),f.expand&&l.push(`$expand=${f.expand}`),a.push(l.length?`${c}(${l.join(";")})`:c)}return{select:i.length?i.join(","):"",expand:a.length?a.join(","):""}},{select:r,expand:n}=e(t),o=[];return r&&o.push(`$select=${r}`),n&&o.push(`$expand=${n}`),o.join("&")},ab=(t,e)=>{let r=[],n=[],o=new Set,s=(l,u,p)=>{o.add(u),p&&n.push(`LEFT JOIN ${u} ON ${u}.${p}_id = ${p}.id`);for(let d in l)l[d]===!0?r.push(`${u}.${d}`):s(l[d],d,u)},i=Object.keys(t);i.length===1&&t[i[0]]!==!0?s(t[i[0]],i[0],null):s(t,"_root",null);let a=[...o][0]||"_root",c=r.length?r.join(", "):"*",f=n.length?`
19
19
  `+n.join(`
20
20
  `):"";return`SELECT ${c}
21
- FROM ${a}${f}`},fb=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},ub=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},pb={graphql:ib,"json-api":ab,odata:cb,sql:lb,supabase:ub,paths:fb}});var db,Is,ju=G(()=>{Io();db={snapshotId:To},Is=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=db.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Io();Ca();xt();ge();Po();dr();Zr();Vf();Hf();nn();Jr();Jf();Ea();La();Va();Vo();du();hu();hr();mu();ac();Qa();ju();Xa()});var q_={};Nt(q_,{A:()=>Lm,ANIMATION_PROPS:()=>Yc,ARIA_ROLES:()=>hb,ATTR_TRANSFORMS:()=>vr,Avatar:()=>Jm,B:()=>Rh,BLOCK_PROPS:()=>Xc,Block:()=>Gd,Box:()=>Ri,Br:()=>Fh,Button:()=>Um,ButtonSet:()=>zm,CDN_PROVIDERS:()=>te,CLASS:()=>_d,CONFIG:()=>Ys,CSS_MEDIA_VARS:()=>Ed,CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_PROPS_REGISTRY:()=>jr,CSS_UNITS:()=>Dr,CSS_VARS:()=>Cd,Caption:()=>_h,Checkbox:()=>Wh,CheckboxHgroup:()=>zh,CircleButton:()=>Vm,Clickable:()=>oh,DEFAULT_CONFIG:()=>ki,DEFAULT_CONTEXT:()=>Hi,DEFAULT_CSS_PROPERTIES_LIST:()=>nl,DESIGN_SYSTEM_OPTIONS:()=>Il,DOMQL_EVENTS:()=>yo,DOMQ_PROPERTIES:()=>Fe,DOM_EVENTS:()=>Wu,Data:()=>Ph,Dialog:()=>qm,DialogFooter:()=>Km,DialogHeader:()=>Gm,DropdownList:()=>tg,DropdownParent:()=>eg,DropdownParentFocus:()=>rg,DropdownSiblingFocus:()=>ng,ENV:()=>Pf,FACTORY:()=>Ce,FLEX_PROPS:()=>el,FONT_PROPS:()=>Qc,FileIcon:()=>Zh,Flex:()=>Yd,Focusable:()=>sh,FocusableComponent:()=>ih,Footnote:()=>Th,Form:()=>eh,GRID_PROPS:()=>rl,Grid:()=>Qd,Gutter:()=>Zd,H1:()=>hh,H2:()=>mh,H3:()=>gh,H4:()=>yh,H5:()=>bh,H6:()=>Sh,HTML_ATTRIBUTES:()=>Ps,HTML_TAGS:()=>cn,Headline:()=>Ah,Hgroup:()=>Bh,HgroupButton:()=>Uh,HgroupRows:()=>Mh,Hoverable:()=>nh,Hr:()=>Nh,I:()=>Ih,Icon:()=>Qh,IconButton:()=>Hm,IconText:()=>Jh,Iframe:()=>rh,Img:()=>th,Inline:()=>Kd,InlineFlex:()=>Xd,InlineGrid:()=>Jd,Input:()=>jh,Italic:()=>Eh,KangorooButton:()=>Wm,Li:()=>Dh,Link:()=>El,METHODS:()=>on,METHODS_EXL:()=>go,MISC_PROPS:()=>Ei,NODE_ENV:()=>Yt,Notification:()=>og,NumberInput:()=>Vh,OPTIONS:()=>lt,Ol:()=>Lh,P:()=>xh,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>mo,POSITION_PROPS:()=>Jc,PROPS_METHODS:()=>De,Picture:()=>fh,ROUTER_OPTIONS:()=>zi,Radio:()=>Hh,RadioHgroup:()=>qh,Range:()=>Zm,RouteLink:()=>Bm,RouterLink:()=>kl,SHAPES:()=>ch,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>wf,SVG_TAGS:()=>Ue,Select:()=>Mm,SquareButton:()=>jm,Strong:()=>wh,Subhead:()=>Oh,Svg:()=>uh,THEME_PROPS:()=>Zc,TIMING_PROPS:()=>tl,TYPES:()=>lo,Text:()=>dh,Textarea:()=>Yh,TextareaWithButton:()=>Xh,Theme:()=>lh,Title:()=>kh,Toggle:()=>Gh,ToggleHgroup:()=>Kh,Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Qm,U:()=>vh,Ul:()=>$h,Underline:()=>Ch,VALUE_TRANSFORMERS:()=>Gc,Video:()=>ph,activateConfig:()=>eS,addCaching:()=>Ya,addContext:()=>Ka,addExtend:()=>nu,addExtends:()=>Tt,addItemAfterEveryElement:()=>cf,addProtoToArray:()=>pr,addRef:()=>Ha,animation:()=>gd,appendSVGSprite:()=>bi,appendSvgIconsSprite:()=>xi,applyAttrTransforms:()=>gb,applyCSS:()=>Ol,applyClassListOnNode:()=>Vs,applyClasslist:()=>Ub,applyDependentState:()=>os,applyDocument:()=>yi,applyEvent:()=>Sr,applyEventUpdate:()=>is,applyExtends:()=>jo,applyHeadings:()=>jc,applyMediaSequenceVars:()=>tr,applyProps:()=>Ho,applyReset:()=>_i,applySequenceGlobalVars:()=>ri,applySequenceVars:()=>Ae,applySpacingSequence:()=>di,applyTimingSequence:()=>gi,applyTrueProps:()=>sl,applyTypographySequence:()=>fi,arrayContainsOtherArray:()=>ef,arraysEqual:()=>ff,arrayzeValue:()=>Mr,assignKeyAsClassname:()=>Mb,breakpoints:()=>hd,cache:()=>yu,call:()=>Os,captureSnapshot:()=>Is,changeLightness:()=>Ip,checkAttributeByTagName:()=>Ns,checkEventFunctions:()=>fc,checkForStateTypes:()=>es,checkIfBoxSize:()=>pi,checkIfInherits:()=>He,checkIfStringIsInArray:()=>df,classList:()=>vp,classify:()=>wp,clone:()=>Ef,cloneAndMergeArrayExtend:()=>No,cloneFunction:()=>jf,color:()=>ad,colorStringToRgbaArray:()=>ie,concatAddExtends:()=>$o,convertSvgToSymbol:()=>ni,copyJavaScriptToClipboard:()=>Xp,copyStringToClipboard:()=>Yp,create:()=>Ql,createAsync:()=>W_,createBasedOnType:()=>za,createDefine:()=>bg,createElement:()=>ts,createElementExtends:()=>Ia,createEmotion:()=>Cp,createExtends:()=>Do,createExtendsFromKeys:()=>ln,createExtendsStack:()=>Da,createIfConditionFlag:()=>yr,createInheritedState:()=>rs,createKey:()=>Ro,createNestedObject:()=>vo,createNestedObjectByKeyPath:()=>ns,createObjectWithoutPrototype:()=>wa,createParent:()=>qa,createPath:()=>Ga,createProps:()=>qo,createPropsStack:()=>ja,createRoot:()=>Zo,createScope:()=>hn,createSkeleton:()=>H_,createSnapshotId:()=>To,createSync:()=>z_,customDecodeURIComponent:()=>_f,customEncodeURIComponent:()=>xf,cutArrayAfterValue:()=>sf,cutArrayBeforeValue:()=>of,debounce:()=>Lf,debounceOnContext:()=>Bf,decodeNewlines:()=>Sf,deepClone:()=>j,deepContains:()=>_o,deepDestringifyFunctions:()=>ne,deepExtend:()=>Ra,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>bo,defaultDefine:()=>zr,defineSetter:()=>Mu,depth:()=>Oi,destringifyGlobalScope:()=>xo,detectInfiniteLoop:()=>Ao,devices:()=>md,emotion:()=>vt,encodeNewlines:()=>bf,error:()=>wr,excludeKeysFromObject:()=>If,exec:()=>A,executeAttr:()=>mb,exetuteClassPerComponent:()=>RS,extendCachedRegistry:()=>tu,extendStackRegistry:()=>Lo,extractArrayExtend:()=>Mo,extractConditionalAttrs:()=>pc,fibonacciNumberByIndex:()=>Lp,filterArrays:()=>uf,filterArraysFast:()=>pf,filterAttributesByTagName:()=>uc,finalizeExtends:()=>$a,findClosestNumber:()=>Rc,findClosestNumberInFactory:()=>Dp,findHeadingLetter:()=>Lc,findHeadings:()=>ei,findInheritedState:()=>ze,findKeyPosition:()=>gf,flattenExtend:()=>fn,font:()=>ed,font_face:()=>od,font_family:()=>rd,font_family_types:()=>nd,formatDate:()=>$p,generateHash:()=>Aa,generateKey:()=>Oo,generateMetaTags:()=>Gp,generateSequence:()=>Wt,generateSequencePosition:()=>kd,generateSprite:()=>Bn,generateSubSequence:()=>Zs,get:()=>Lu,getActiveConfig:()=>C,getActiveLang:()=>io,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>su,getCdnProviderFromConfig:()=>Dn,getChildStateInKey:()=>We,getChildren:()=>Bu,getColor:()=>Q,getColorShade:()=>Ec,getContext:()=>ws,getCookie:()=>Kf,getDB:()=>Ts,getDefaultOrFirstKey:()=>Lr,getExtendsInElement:()=>ou,getExtendsStack:()=>Fo,getExtendsStackRegistry:()=>Ta,getFnPrefixAndValue:()=>ke,getFontFace:()=>Np,getFontFaceEach:()=>Br,getFontFaceEachString:()=>Tc,getFontFaceString:()=>zs,getFontFamily:()=>li,getFontFormat:()=>Ac,getFontSizeByKey:()=>ui,getFrequencyInArray:()=>rf,getHashedExtend:()=>Bo,getImportMapScript:()=>Hp,getInObjectByPath:()=>ko,getLanguages:()=>ra,getLocalStateLang:()=>aa,getLocalStorage:()=>Xf,getMediaColor:()=>Ct,getMediaTheme:()=>zt,getNev:()=>$f,getPageMetadata:()=>Kp,getParentStateInKey:()=>Ve,getPath:()=>ys,getQuery:()=>Rs,getRef:()=>gs,getRgbTone:()=>$r,getRoot:()=>Ss,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>bs,getRootStateInKey:()=>je,getSequenceValue:()=>ti,getSequenceValueBySymbols:()=>$c,getSequenceValuePropertyPair:()=>ce,getShadow:()=>mi,getSpacingBasedOnRatio:()=>Oe,getSpacingByKey:()=>at,getSpreadChildren:()=>iu,getSubratio:()=>Js,getSubratioDifference:()=>Qs,getTheme:()=>si,getTimingByKey:()=>Lt,getTimingFunction:()=>It,global:()=>Zl,gradient:()=>cd,grid:()=>xd,hasFunction:()=>sn,hasHandlerPlugin:()=>Be,hasOwnProperty:()=>Af,hexToRgb:()=>Ap,hexToRgbArray:()=>_c,hexToRgba:()=>Tp,hslToRgb:()=>Cc,icons:()=>ud,inheritChildExtends:()=>Na,inheritChildPropsExtends:()=>Pa,inheritParentProps:()=>Ko,inheritRecursiveChildExtends:()=>Fa,init:()=>Te,initPolyglot:()=>ql,initProps:()=>pn,is:()=>At,isArray:()=>x,isBoolean:()=>tn,isCSSVar:()=>rt,isContextComponent:()=>Wo,isCyclic:()=>Rf,isDOMNode:()=>Ft,isDate:()=>ba,isDefined:()=>dt,isDevelopment:()=>Xt,isEmpty:()=>xa,isEmptyObject:()=>Of,isEqualDeep:()=>_a,isFunction:()=>y,isGoogleFontsUrl:()=>Pn,isHtmlElement:()=>co,isLocal:()=>Df,isMethod:()=>jt,isMobile:()=>qf,isNode:()=>me,isNot:()=>ur,isNotProduction:()=>gr,isNull:()=>ya,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>I,isPhoto:()=>zp,isProduction:()=>Le,isResolvedColor:()=>ae,isScalingUnit:()=>Fr,isStaging:()=>Ff,isState:()=>dn,isString:()=>b,isStringFunction:()=>Uf,isTest:()=>va,isTesting:()=>Nf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>en,jointStacks:()=>ru,keys:()=>vn,loadCssFile:()=>jp,loadJavascript:()=>Vp,loadJavascriptFile:()=>Bp,loadJavascriptFileEmbedSync:()=>Up,loadJavascriptFileSync:()=>Mp,loadRemoteCSS:()=>Wp,loadRemoteScript:()=>Fn,loadTranslations:()=>oa,log:()=>vs,logGroupIf:()=>zf,logIf:()=>Wf,lookdown:()=>ps,lookdownAll:()=>ds,lookup:()=>us,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>Tf,map:()=>Cf,mapStringsWithContextComponents:()=>Uo,matchesComponentNaming:()=>Rt,media:()=>sd,memoize:()=>Mf,merge:()=>Y,mixTwoColors:()=>kp,mixTwoRgb:()=>Rp,mixTwoRgba:()=>kc,nextElement:()=>Es,numToLetterMap:()=>Ee,objectToString:()=>So,objectizeStringProperty:()=>zo,opacify:()=>In,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>mr,overwriteState:()=>ss,parse:()=>Cn,parseColorToken:()=>Xe,parseDeep:()=>_r,pickupElementFromProps:()=>br,pickupPropsFromElement:()=>Ma,polyglotFunctions:()=>ao,polyglotPlugin:()=>ca,previousElement:()=>ks,propExists:()=>uu,propertizeElement:()=>un,propertizeUpdate:()=>Go,reinit:()=>Al,remove:()=>hs,removeChars:()=>Qp,removeCookie:()=>Yf,removeDuplicateProps:()=>Xo,removeDuplicatesInArray:()=>rn,removeFromArray:()=>fo,removeFromObject:()=>wo,removeNestedKeyByPath:()=>Co,removeValueFromArray:()=>po,removeValueFromArrayAll:()=>af,reorderArrayByValues:()=>lf,replaceLiteralsWithObjectFields:()=>mf,replaceOctalEscapeSequences:()=>yf,reset:()=>wd,resolveColorsInGradient:()=>vi,resolveFileSource:()=>cc,resolveFileUrl:()=>Vt,resolveHandler:()=>Me,resolvePropValue:()=>_e,returnSubThemeOrDefault:()=>Pp,returnValueAsText:()=>Wa,rgbArrayToHex:()=>wc,rgbToHSL:()=>vc,rgbToHex:()=>Op,runPluginHook:()=>an,runThroughMedia:()=>Uc,scratchSystem:()=>Vn,scratchUtils:()=>er,self:()=>tf,semantic_icons:()=>pd,sequence:()=>ve,set:()=>Ur,setActiveConfig:()=>Nc,setClass:()=>zx,setColor:()=>rr,setCookie:()=>Gf,setCustomFont:()=>Ws,setCustomFontMedia:()=>Je,setEach:()=>Fd,setFont:()=>ci,setFontFamily:()=>Un,setFontImport:()=>Nn,setGradient:()=>nr,setHashedExtend:()=>Oa,setInCustomFontMedia:()=>Oc,setInObjectByPath:()=>Eo,setLang:()=>sa,setLocalStorage:()=>Qf,setMediaTheme:()=>ai,setNodeStyles:()=>wn,setProps:()=>ms,setPropsPrototype:()=>Yo,setSVG:()=>jn,setScalingVar:()=>Xs,setShadow:()=>or,setSubScalingVar:()=>Dc,setSvgIcon:()=>Si,setTheme:()=>ii,setValue:()=>Nd,setVariables:()=>Ad,shadow:()=>fd,spacing:()=>id,splitSpacedValue:()=>hi,splitTopLevelCommas:()=>Qe,splitTransition:()=>Wn,spotByPath:()=>fs,stringIncludesAny:()=>ho,stringToObject:()=>kf,svg:()=>yd,svg_data:()=>bd,swapItemsInArray:()=>nf,syncProps:()=>Qo,templates:()=>Sd,theme:()=>ld,timing:()=>dd,toCamelCase:()=>qs,toDashCase:()=>Gs,toDescriptionCase:()=>Zp,toTitleCase:()=>Jp,toggleFullscreen:()=>Fp,transformBackgroundImage:()=>Hc,transformBorder:()=>le,transformBorderRadius:()=>Ci,transformBoxShadow:()=>wi,transformDOMQLEmotion:()=>xc,transformDuration:()=>sr,transformEmotion:()=>PS,transformEmotionClass:()=>Sc,transformEmotionStyle:()=>Ep,transformShadow:()=>zc,transformSize:()=>nt,transformSizeRatio:()=>$,transformTextStroke:()=>Wc,transformTransition:()=>Pd,transformersByPrefix:()=>il,transfromGap:()=>qc,translate:()=>na,triggerEventOn:()=>z,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>hf,typography:()=>Ks,unit:()=>td,unstackArrayOfObjects:()=>uo,update:()=>Ua,updateProps:()=>Jo,updateVars:()=>Wx,upsertTranslation:()=>ia,useCssInProps:()=>qt,usePropsAsCSS:()=>$d,useSelectorsAsCSS:()=>Ld,variables:()=>As,vars:()=>vd,verbose:()=>En,warn:()=>Cs,window:()=>F});v();v();var hb=["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"],Ps={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},Wu=["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"],lc=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,Ns=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||lc(e))return!0;if(Object.prototype.hasOwnProperty.call(Ps,t)){let r=Ps[t];return r.includes(e)||r.includes("default")}else return Ps.default.includes(e)},fc=t=>{if(!b(t))return!1;let e=t.toLowerCase();return Wu.includes(e)},uc=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])dt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(dt(e[o][a])){let c=a.replace(/([A-Z])/g,f=>"-"+f.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Ns(t,o),i=fc(o);if(dt(e[o])&&(s||i)){let a=lc(o)||o;n[a]=e[o]}}return n},mb=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},_e=(t,e)=>{let r=t.call("exec",e,t);if(r)return b(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},cc=(t,e)=>{let r=(t.props.preSrc||"")+(_e(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files)return r;let o=r.startsWith("/files/")?r.slice(7):r,s=n.files[r]||n.files[o];return s&&s.content?s.content.src:r},vr={src:t=>cc(t,t.props.src),href:t=>_e(t,t.props.href),action:t=>_e(t,t.props.action),poster:t=>cc(t,t.props.poster),data:t=>_e(t,t.props.data)},gb=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in vr)if(r[o]!==void 0&&Ns(e,o)){let s=vr[o](t);s!==void 0&&(n[o]=s)}return n},Vu=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return y(r)?r.call(e,e):!!r},yb=(t,e,r)=>{if(t==="$"){let o=Vu(e,r);return o===void 0&&(o=!!r.props?.[e]),o}let n=r.props[e]===!0||r.state[e]||r[e];if(!n){let o=Vu(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},bb=new Set(["$",".","!"]),pc=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let f=i;n[s]=l=>{if(yb(a,c,l))return y(f)?f(l):f}};for(let s in t){let i=s.charAt(0);if(!bb.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let f in a){if(r&&f in r)continue;if(f==="aria"&&a[f]&&typeof a[f]=="object"){for(let d in a[f])o("aria-"+d,a[f][d],i,c);continue}if(f==="data"&&a[f]&&typeof a[f]=="object"){for(let d in a[f]){let h=d.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());o("data-"+h,a[f][d],i,c)}continue}let l=Ns(e,f),u=fc(f);if(!l&&!u)continue;let p=lc(f)||f;o(p,a[f],i,c)}}return n};v();v();var Sb=!1;function xb(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function _b(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var zu=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!Sb:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(_b(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=xb(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var ft="-ms-",kn="-moz-",H="-webkit-",Fs="comm",Cr="rule",Er="decl";var Hu="@import";var Ds="@keyframes";var qu="@layer";var Gu=Math.abs,Ke=String.fromCharCode,Ku=Object.assign;function Yu(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function $s(t){return t.trim()}function dc(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function An(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function we(t,e,r){return t.slice(e,r)}function ht(t){return t.length}function kr(t){return t.length}function Ar(t,e){return e.push(t),t}function hc(t,e){return t.map(e).join("")}var Ls=1,Or=1,Xu=0,mt=0,ot=0,Rr="";function On(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Ls,column:Or,length:i,return:""}}function Ir(t,e){return Ku(On("",null,null,"",null,null,0),t,{length:-t.length},e)}function Qu(){return ot}function Ju(){return ot=mt>0?et(Rr,--mt):0,Or--,ot===10&&(Or=1,Ls--),ot}function gt(){return ot=mt<Xu?et(Rr,mt++):0,Or++,ot===10&&(Or=1,Ls++),ot}function $t(){return et(Rr,mt)}function Tn(){return mt}function Pr(t,e){return we(Rr,t,e)}function Tr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bs(t){return Ls=Or=1,Xu=ht(Rr=t),mt=0,[]}function Ms(t){return Rr="",t}function Nr(t){return $s(Pr(mt-1,mc(t===91?t+2:t===40?t+1:t)))}function Zu(t){for(;(ot=$t())&&ot<33;)gt();return Tr(t)>2||Tr(ot)>3?"":" "}function tp(t,e){for(;--e&&gt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Pr(t,Tn()+(e<6&&$t()==32&&gt()==32))}function mc(t){for(;gt();)switch(ot){case t:return mt;case 34:case 39:t!==34&&t!==39&&mc(ot);break;case 40:t===41&&mc(t);break;case 92:gt();break}return mt}function ep(t,e){for(;gt()&&t+ot!==57;)if(t+ot===84&&$t()===47)break;return"/*"+Pr(e,mt-1)+"*"+Ke(t===47?t:gt())}function rp(t){for(;!Tr($t());)gt();return Pr(t,mt)}function sp(t){return Ms(Us("",null,null,null,[""],t=Bs(t),0,[0],t))}function Us(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,S=1,_=1,w=0,E="",R=o,T=s,O=n,k=E;S;)switch(h=w,w=gt()){case 40:if(h!=108&&et(k,u-1)==58){An(k+=M(Nr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=Nr(w);break;case 9:case 10:case 13:case 32:k+=Zu(h);break;case 92:k+=tp(Tn()-1,7);continue;case 47:switch($t()){case 42:case 47:Ar(wb(ep(gt(),Tn()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=ht(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&ht(k)-u&&Ar(d>32?op(k+";",n,r,u-1):op(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ar(O=np(k,e,r,f,l,o,a,E,R=[],T=[],u),s),w===123)if(l===0)Us(k,e,O,O,R,s,u,a,T);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:Us(t,O,O,n&&Ar(np(t,O,O,0,0,o,a,E,o,R=[],u),T),o,T,u,a,n?R:T);break;default:Us(k,O,O,O,[""],T,0,a,T)}}f=l=d=0,m=_=1,E=k="",u=i;break;case 58:u=1+ht(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Ju()==125)continue}switch(k+=Ke(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(ht(k)-1)*_,_=1;break;case 64:$t()===45&&(k+=Nr(gt())),p=$t(),l=u=ht(E=k+=rp(Tn())),w++;break;case 45:h===45&&ht(k)==2&&(m=0)}}return s}function np(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=kr(p),h=0,m=0,S=0;h<n;++h)for(var _=0,w=we(t,u+1,u=Gu(m=i[h])),E=t;_<d;++_)(E=$s(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[S++]=E);return On(t,e,r,o===0?Cr:a,c,f,l)}function wb(t,e,r){return On(t,e,r,Fs,Ke(Qu()),we(t,2,-2),0)}function op(t,e,r,n){return On(t,e,r,Er,we(t,0,n),we(t,n+1,-1),n)}function Ye(t,e){for(var r="",n=kr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function ip(t,e,r,n){switch(t.type){case qu:if(t.children.length)break;case Hu:case Er:return t.return=t.return||t.value;case Fs:return"";case Ds:return t.return=t.value+"{"+Ye(t.children,n)+"}";case Cr:t.value=t.props.join(",")}return ht(r=Ye(t.children,n))?t.return=t.value+"{"+r+"}":""}function ap(t){var e=kr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function cp(t){return function(e){e.root||(e=e.return)&&t(e)}}function lp(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var vb=function(e,r,n){for(var o=0,s=0;o=s,s=$t(),o===38&&s===12&&(r[n]=1),!Tr(s);)gt();return Pr(e,mt)},Cb=function(e,r){var n=-1,o=44;do switch(Tr(o)){case 0:o===38&&$t()===12&&(r[n]=1),e[n]+=vb(mt-1,r,n);break;case 2:e[n]+=Nr(o);break;case 4:if(o===44){e[++n]=$t()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ke(o)}while(o=gt());return e},Eb=function(e,r){return Ms(Cb(Bs(e),r))},fp=new WeakMap,kb=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!fp.get(n))&&!o){fp.set(e,!0);for(var s=[],i=Eb(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},Ab=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function up(t,e){switch(Yu(t,e)){case 5103:return H+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return H+t+kn+t+ft+t+t;case 6828:case 4268:return H+t+ft+t+t;case 6165:return H+t+ft+"flex-"+t+t;case 5187:return H+t+M(t,/(\w+).+(:[^]+)/,H+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return H+t+ft+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return H+t+ft+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return H+t+ft+M(t,"shrink","negative")+t;case 5292:return H+t+ft+M(t,"basis","preferred-size")+t;case 6060:return H+"box-"+M(t,"-grow","")+H+t+ft+M(t,"grow","positive")+t;case 4554:return H+M(t,/([^-])(transform)/g,"$1"+H+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,H+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+kn+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~An(t,"stretch")?up(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,ht(t)-3-(~An(t,"!important")&&10))){case 107:return M(t,":",":"+H)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(et(t,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return H+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return H+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return H+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return H+t+ft+t+t}return t}var Ob=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Er:e.return=up(e.value,e.length);break;case Ds:return Ye([Ir(e,{value:M(e.value,"@","@"+H)})],o);case Cr:if(e.length)return hc(e.props,function(s){switch(dc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([Ir(e,{props:[M(s,/:(read-\w+)/,":"+kn+"$1")]})],o);case"::placeholder":return Ye([Ir(e,{props:[M(s,/:(plac\w+)/,":"+H+"input-$1")]}),Ir(e,{props:[M(s,/:(plac\w+)/,":"+kn+"$1")]}),Ir(e,{props:[M(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},Tb=[Ob],pp=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var S=m.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||Tb,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var S=m.getAttribute("data-emotion").split(" "),_=1;_<S.length;_++)s[S[_]]=!0;a.push(m)});var c,f=[kb,Ab];{var l,u=[ip,cp(function(m){l.insert(m)})],p=ap(f.concat(o,u)),d=function(S){return Ye(sp(S),p)};c=function(S,_,w,E){l=w,d(S?S+"{"+_.styles+"}":_.styles),E&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new zu({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function dp(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var hp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Rb=!1,Ib=/[A-Z]|^ms/g,Pb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bp=function(e){return e.charCodeAt(1)===45},mp=function(e){return e!=null&&typeof e!="boolean"},gc=lp(function(t){return bp(t)?t:t.replace(Ib,"-$&").toLowerCase()}),gp=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Pb,function(n,o,s){return Jt={name:o,styles:s,next:Jt},o})}return hp[e]!==1&&!bp(e)&&typeof r=="number"&&r!==0?r+"px":r},Nb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Rn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Jt={name:i.name,styles:i.styles,next:Jt},i=i.next;var a=s.styles+";";return a}return Fb(t,e,r)}case"function":{if(t!==void 0){var c=Jt,f=r(t);return Jt=c,Rn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function Fb(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Rn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":mp(a)&&(n+=gc(s)+":"+gp(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Rb)throw new Error(Nb);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)mp(i[c])&&(n+=gc(s)+":"+gp(s,i[c])+";");else{var f=Rn(t,e,i);switch(s){case"animation":case"animationName":{n+=gc(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var yp=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function js(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Jt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Rn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=Rn(r,e,t[a]),n){var c=s;o+=c[a]}yp.lastIndex=0;for(var f="",l;(l=yp.exec(o))!==null;)f+="-"+l[1];var u=dp(o)+f;return{name:u,styles:o,next:Jt}}var Db=!0;function yc(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var $b=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Db===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Sp=function(e,r,n){$b(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function xp(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function _p(t,e,r){var n=[],o=yc(t,n,r);return n.length<2?r:o+e(n)}var bc=function(e){var r=pp(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered,void 0);return Sp(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered),p="animation-"+u.name;return xp(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered);xp(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return _p(r.registered,n,Lb(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:yc.bind(null,r.registered),merge:_p.bind(null,r.registered,n)}},Lb=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var Bb=/\s+/g,Mb=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},wp=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${A(o,e)}`)}return r},vp=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=wp(t,e)),t.replace(Bb," ").trim()},Vs=(t,e,r)=>{let n=vp(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Ub(t,e,r){Vs(t,e,r)}var Cp=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return bc({key:r,container:e})},vt=Cp(),Ep=t=>(e,r,n)=>{let o=A(e,r);if(e){let{__ref:s}=r;s.__class.style=o}Sc(t)(r.classlist,r,r.state,!0)},Sc=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(I(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;b(f)||ct(f)?l=f:tn(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Vs(a,r,r.node)}},xc=(t,e)=>(t||(t=bc(e||{key:"smbls"})),{style:Ep(t),classlist:Sc(t)});var er={};Nt(er,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>Dr,applyMediaSequenceVars:()=>tr,applySequenceGlobalVars:()=>ri,applySequenceVars:()=>Ae,changeLightness:()=>Ip,colorStringToRgbaArray:()=>ie,convertSvgToSymbol:()=>ni,findHeadingLetter:()=>Lc,findHeadings:()=>ei,generateSequence:()=>Wt,generateSequencePosition:()=>kd,generateSprite:()=>Bn,generateSubSequence:()=>Zs,getColorShade:()=>Ec,getDefaultOrFirstKey:()=>Lr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Np,getFontFaceEach:()=>Br,getFontFaceEachString:()=>Tc,getFontFaceString:()=>zs,getFontFormat:()=>Ac,getRgbTone:()=>$r,getSequenceValue:()=>ti,getSequenceValueBySymbols:()=>$c,getSequenceValuePropertyPair:()=>ce,getSubratio:()=>Js,getSubratioDifference:()=>Qs,hexToRgb:()=>Ap,hexToRgbArray:()=>_c,hexToRgba:()=>Tp,hslToRgb:()=>Cc,isCSSVar:()=>rt,isGoogleFontsUrl:()=>Pn,isResolvedColor:()=>ae,isScalingUnit:()=>Fr,mixTwoColors:()=>kp,mixTwoRgb:()=>Rp,mixTwoRgba:()=>kc,numToLetterMap:()=>Ee,opacify:()=>In,parseColorToken:()=>Xe,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Pp,rgbArrayToHex:()=>wc,rgbToHSL:()=>vc,rgbToHex:()=>Op,setCustomFont:()=>Ws,setCustomFontMedia:()=>Je,setFontImport:()=>Nn,setInCustomFontMedia:()=>Oc,setScalingVar:()=>Xs,setSubScalingVar:()=>Dc,setVariables:()=>Ad,splitTopLevelCommas:()=>Qe});var Fr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Dr=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];v();var ie=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&B&&F){let e=B.body.appendChild(B.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){B.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return B.body.removeChild(e),[0,0,0,0];t=F.getComputedStyle(e).color,B.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},kp=(t,e,r=.5)=>(t=ie(t),e=ie(e),kc(t,e,r)),Ap=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},_c=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Op=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),wc=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Tp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Rp=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Ip=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},vc=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Cc=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Ec=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},kc=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},In=(t,e)=>{let r=ie(t);if(!r){gr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},rt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,jb=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xe=t=>{if(!b(t))return null;if(Zt.test(t))return{passthrough:t};if(rt(t))return{cssVar:t};let e=t.match(jb);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ae=t=>b(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Qe=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},$r=(t,e)=>{b(t)&&t.includes("rgb")&&(t=ie(t).join(", ")),b(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=wc(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Ec(r,parseFloat(e));return _c(o).join(", ")}else{let[o,s,i]=t,a=vc(o,s,i),[c,f,l]=a;return Cc(c,f,parseFloat(e)/100*255)}};var Pp=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Vt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},Lr=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Ac=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},Pn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Nn=t=>`@import url('${t}');`,Oc=t=>`@font-face { ${t} }`,Ws=(t,e,r,n={})=>{let s=(Array.isArray(e)?e:[e]).map(i=>{let a=Ac(i),c=a?` format('${a}')`:"";return`url('${i}')${c}`}).join(`,
21
+ FROM ${a}${f}`},cb=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;n[s]===!0?e.push(i):r(n[s],i)}};return r(t,""),e},lb=t=>{let e=n=>{let o=[];for(let s in n)n[s]===!0?o.push(s):o.push(`${s}(${e(n[s])})`);return o.join(", ")},r=Object.keys(t);return r.length===1&&t[r[0]]!==!0?{from:r[0],select:e(t[r[0]])}:{from:null,select:e(t)}},fb={graphql:ob,"json-api":sb,odata:ib,sql:ab,supabase:lb,paths:cb}});var ub,Is,ju=G(()=>{Io();ub={snapshotId:To},Is=(t,e)=>{let r=t.__ref,{currentSnapshot:n,calleeElement:o}=e;if(!o||o===t){let a=ub.snapshotId();return r.__currentSnapshot=a,[a,t]}let i=o.__ref.__currentSnapshot;return n<i?[i,o,!0]:[i,o]}});var v=G(()=>{Io();Ca();xt();ge();Po();dr();Zr();Vf();qf();nn();Jr();Jf();Ea();La();Va();Vo();du();hu();hr();mu();ac();Qa();ju();Xa()});var q_={};Nt(q_,{A:()=>Lm,ANIMATION_PROPS:()=>Yc,ARIA_ROLES:()=>pb,ATTR_TRANSFORMS:()=>vr,Avatar:()=>Jm,B:()=>Rh,BLOCK_PROPS:()=>Xc,Block:()=>Gd,Box:()=>Ri,Br:()=>Dh,Button:()=>Um,ButtonSet:()=>zm,CDN_PROVIDERS:()=>te,CLASS:()=>_d,CONFIG:()=>Ys,CSS_MEDIA_VARS:()=>Ed,CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_PROPS_REGISTRY:()=>jr,CSS_UNITS:()=>Fr,CSS_VARS:()=>Cd,Caption:()=>_h,Checkbox:()=>Wh,CheckboxHgroup:()=>zh,CircleButton:()=>Vm,Clickable:()=>oh,DEFAULT_CONFIG:()=>ki,DEFAULT_CONTEXT:()=>qi,DEFAULT_CSS_PROPERTIES_LIST:()=>nl,DESIGN_SYSTEM_OPTIONS:()=>Il,DOMQL_EVENTS:()=>yo,DOMQ_PROPERTIES:()=>De,DOM_EVENTS:()=>Wu,Data:()=>Ph,Dialog:()=>Hm,DialogFooter:()=>Km,DialogHeader:()=>Gm,DropdownList:()=>tg,DropdownParent:()=>eg,DropdownParentFocus:()=>rg,DropdownSiblingFocus:()=>ng,ENV:()=>Pf,FACTORY:()=>Ce,FLEX_PROPS:()=>el,FONT_PROPS:()=>Qc,FileIcon:()=>Zh,Flex:()=>Yd,Focusable:()=>sh,FocusableComponent:()=>ih,Footnote:()=>Th,Form:()=>eh,GRID_PROPS:()=>rl,Grid:()=>Qd,Gutter:()=>Zd,H1:()=>hh,H2:()=>mh,H3:()=>gh,H4:()=>yh,H5:()=>bh,H6:()=>Sh,HTML_ATTRIBUTES:()=>Ps,HTML_TAGS:()=>cn,Headline:()=>Ah,Hgroup:()=>Bh,HgroupButton:()=>Uh,HgroupRows:()=>Mh,Hoverable:()=>nh,Hr:()=>Nh,I:()=>Ih,Icon:()=>Qh,IconButton:()=>qm,IconText:()=>Jh,Iframe:()=>rh,Img:()=>th,Inline:()=>Kd,InlineFlex:()=>Xd,InlineGrid:()=>Jd,Input:()=>jh,Italic:()=>Eh,KangorooButton:()=>Wm,Li:()=>Fh,Link:()=>El,METHODS:()=>on,METHODS_EXL:()=>go,MISC_PROPS:()=>Ei,NODE_ENV:()=>Yt,Notification:()=>og,NumberInput:()=>Vh,OPTIONS:()=>lt,Ol:()=>Lh,P:()=>xh,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>mo,POSITION_PROPS:()=>Jc,PROPS_METHODS:()=>Fe,Picture:()=>fh,ROUTER_OPTIONS:()=>zi,Radio:()=>qh,RadioHgroup:()=>Hh,Range:()=>Zm,RouteLink:()=>Bm,RouterLink:()=>kl,SHAPES:()=>ch,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>wf,SVG_TAGS:()=>Ue,Select:()=>Mm,SquareButton:()=>jm,Strong:()=>wh,Subhead:()=>Oh,Svg:()=>uh,THEME_PROPS:()=>Zc,TIMING_PROPS:()=>tl,TYPES:()=>lo,Text:()=>dh,Textarea:()=>Yh,TextareaWithButton:()=>Xh,Theme:()=>lh,Title:()=>kh,Toggle:()=>Gh,ToggleHgroup:()=>Kh,Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Qm,U:()=>vh,Ul:()=>$h,Underline:()=>Ch,VALUE_TRANSFORMERS:()=>Gc,Video:()=>ph,activateConfig:()=>Zb,addCaching:()=>Ya,addContext:()=>Ka,addExtend:()=>nu,addExtends:()=>Tt,addItemAfterEveryElement:()=>cf,addProtoToArray:()=>pr,addRef:()=>qa,animation:()=>gd,appendSVGSprite:()=>bi,appendSvgIconsSprite:()=>xi,applyAttrTransforms:()=>hb,applyCSS:()=>Ol,applyClassListOnNode:()=>Vs,applyClasslist:()=>Bb,applyDependentState:()=>os,applyDocument:()=>yi,applyEvent:()=>Sr,applyEventUpdate:()=>is,applyExtends:()=>jo,applyHeadings:()=>jc,applyMediaSequenceVars:()=>tr,applyProps:()=>qo,applyReset:()=>_i,applySequenceGlobalVars:()=>ri,applySequenceVars:()=>Ae,applySpacingSequence:()=>di,applyTimingSequence:()=>gi,applyTrueProps:()=>sl,applyTypographySequence:()=>fi,arrayContainsOtherArray:()=>ef,arraysEqual:()=>ff,arrayzeValue:()=>Mr,assignKeyAsClassname:()=>Lb,breakpoints:()=>hd,cache:()=>yu,call:()=>Os,captureSnapshot:()=>Is,changeLightness:()=>Ip,checkAttributeByTagName:()=>Ns,checkEventFunctions:()=>fc,checkForStateTypes:()=>es,checkIfBoxSize:()=>pi,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>df,classList:()=>vp,classify:()=>wp,clone:()=>Ef,cloneAndMergeArrayExtend:()=>No,cloneFunction:()=>jf,color:()=>ad,colorStringToRgbaArray:()=>ie,concatAddExtends:()=>$o,convertSvgToSymbol:()=>ni,copyJavaScriptToClipboard:()=>Xp,copyStringToClipboard:()=>Yp,create:()=>Ql,createAsync:()=>V_,createBasedOnType:()=>za,createDefine:()=>yg,createElement:()=>ts,createElementExtends:()=>Ia,createEmotion:()=>Cp,createExtends:()=>Fo,createExtendsFromKeys:()=>ln,createExtendsStack:()=>Fa,createIfConditionFlag:()=>yr,createInheritedState:()=>rs,createKey:()=>Ro,createNestedObject:()=>vo,createNestedObjectByKeyPath:()=>ns,createObjectWithoutPrototype:()=>wa,createParent:()=>Ha,createPath:()=>Ga,createProps:()=>Ho,createPropsStack:()=>ja,createRoot:()=>Zo,createScope:()=>hn,createSkeleton:()=>z_,createSnapshotId:()=>To,createSync:()=>W_,customDecodeURIComponent:()=>_f,customEncodeURIComponent:()=>xf,cutArrayAfterValue:()=>sf,cutArrayBeforeValue:()=>of,debounce:()=>Lf,debounceOnContext:()=>Bf,decodeNewlines:()=>Sf,deepClone:()=>j,deepContains:()=>_o,deepDestringifyFunctions:()=>ne,deepExtend:()=>Ra,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>bo,defaultDefine:()=>zr,defineSetter:()=>Mu,depth:()=>Oi,destringifyGlobalScope:()=>xo,detectInfiniteLoop:()=>Ao,devices:()=>md,emotion:()=>vt,encodeNewlines:()=>bf,error:()=>wr,excludeKeysFromObject:()=>If,exec:()=>A,executeAttr:()=>db,exetuteClassPerComponent:()=>OS,extendCachedRegistry:()=>tu,extendStackRegistry:()=>Lo,extractArrayExtend:()=>Mo,extractConditionalAttrs:()=>pc,fibonacciNumberByIndex:()=>Lp,filterArrays:()=>uf,filterArraysFast:()=>pf,filterAttributesByTagName:()=>uc,finalizeExtends:()=>$a,findClosestNumber:()=>Rc,findClosestNumberInFactory:()=>Fp,findHeadingLetter:()=>Lc,findHeadings:()=>ei,findInheritedState:()=>ze,findKeyPosition:()=>gf,flattenExtend:()=>fn,font:()=>ed,font_face:()=>od,font_family:()=>rd,font_family_types:()=>nd,formatDate:()=>$p,generateHash:()=>Aa,generateKey:()=>Oo,generateMetaTags:()=>Gp,generateSequence:()=>Wt,generateSequencePosition:()=>kd,generateSprite:()=>Bn,generateSubSequence:()=>Zs,get:()=>Lu,getActiveConfig:()=>C,getActiveLang:()=>io,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>su,getCdnProviderFromConfig:()=>Fn,getChildStateInKey:()=>We,getChildren:()=>Bu,getColor:()=>Q,getColorShade:()=>Ec,getContext:()=>ws,getCookie:()=>Kf,getDB:()=>Ts,getDefaultOrFirstKey:()=>Lr,getExtendsInElement:()=>ou,getExtendsStack:()=>Do,getExtendsStackRegistry:()=>Ta,getFnPrefixAndValue:()=>ke,getFontFace:()=>Np,getFontFaceEach:()=>Br,getFontFaceEachString:()=>Tc,getFontFaceString:()=>zs,getFontFamily:()=>li,getFontFormat:()=>Ac,getFontSizeByKey:()=>ui,getFrequencyInArray:()=>rf,getHashedExtend:()=>Bo,getImportMapScript:()=>qp,getInObjectByPath:()=>ko,getLanguages:()=>ra,getLocalStateLang:()=>aa,getLocalStorage:()=>Xf,getMediaColor:()=>Ct,getMediaTheme:()=>zt,getNev:()=>$f,getPageMetadata:()=>Kp,getParentStateInKey:()=>Ve,getPath:()=>ys,getQuery:()=>Rs,getRef:()=>gs,getRgbTone:()=>$r,getRoot:()=>Ss,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>bs,getRootStateInKey:()=>je,getSequenceValue:()=>ti,getSequenceValueBySymbols:()=>$c,getSequenceValuePropertyPair:()=>ce,getShadow:()=>mi,getSpacingBasedOnRatio:()=>Oe,getSpacingByKey:()=>at,getSpreadChildren:()=>iu,getSubratio:()=>Js,getSubratioDifference:()=>Qs,getTheme:()=>si,getTimingByKey:()=>Lt,getTimingFunction:()=>It,global:()=>Zl,gradient:()=>cd,grid:()=>xd,hasFunction:()=>sn,hasHandlerPlugin:()=>Be,hasOwnProperty:()=>Af,hexToRgb:()=>Ap,hexToRgbArray:()=>_c,hexToRgba:()=>Tp,hslToRgb:()=>Cc,icons:()=>ud,inheritChildExtends:()=>Na,inheritChildPropsExtends:()=>Pa,inheritParentProps:()=>Ko,inheritRecursiveChildExtends:()=>Da,init:()=>Te,initPolyglot:()=>Hl,initProps:()=>pn,is:()=>At,isArray:()=>x,isBoolean:()=>tn,isCSSVar:()=>rt,isContextComponent:()=>Wo,isCyclic:()=>Rf,isDOMNode:()=>Dt,isDate:()=>ba,isDefined:()=>dt,isDevelopment:()=>Xt,isEmpty:()=>xa,isEmptyObject:()=>Of,isEqualDeep:()=>_a,isFunction:()=>y,isGoogleFontsUrl:()=>Pn,isHtmlElement:()=>co,isLocal:()=>Ff,isMethod:()=>jt,isMobile:()=>Hf,isNode:()=>me,isNot:()=>ur,isNotProduction:()=>gr,isNull:()=>ya,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>I,isPhoto:()=>zp,isProduction:()=>Le,isResolvedColor:()=>ae,isScalingUnit:()=>Dr,isStaging:()=>Df,isState:()=>dn,isString:()=>b,isStringFunction:()=>Uf,isTest:()=>va,isTesting:()=>Nf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>en,jointStacks:()=>ru,keys:()=>vn,loadCssFile:()=>jp,loadJavascript:()=>Vp,loadJavascriptFile:()=>Bp,loadJavascriptFileEmbedSync:()=>Up,loadJavascriptFileSync:()=>Mp,loadRemoteCSS:()=>Wp,loadRemoteScript:()=>Dn,loadTranslations:()=>oa,log:()=>vs,logGroupIf:()=>zf,logIf:()=>Wf,lookdown:()=>ps,lookdownAll:()=>ds,lookup:()=>us,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>Tf,map:()=>Cf,mapStringsWithContextComponents:()=>Uo,matchesComponentNaming:()=>Rt,media:()=>sd,memoize:()=>Mf,merge:()=>Y,mixTwoColors:()=>kp,mixTwoRgb:()=>Rp,mixTwoRgba:()=>kc,nextElement:()=>Es,numToLetterMap:()=>Ee,objectToString:()=>So,objectizeStringProperty:()=>zo,opacify:()=>In,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>mr,overwriteState:()=>ss,parse:()=>Cn,parseColorToken:()=>Xe,parseDeep:()=>_r,pickupElementFromProps:()=>br,pickupPropsFromElement:()=>Ma,polyglotFunctions:()=>ao,polyglotPlugin:()=>ca,previousElement:()=>ks,propExists:()=>uu,propertizeElement:()=>un,propertizeUpdate:()=>Go,reinit:()=>Al,remove:()=>hs,removeChars:()=>Qp,removeCookie:()=>Yf,removeDuplicateProps:()=>Xo,removeDuplicatesInArray:()=>rn,removeFromArray:()=>fo,removeFromObject:()=>wo,removeNestedKeyByPath:()=>Co,removeValueFromArray:()=>po,removeValueFromArrayAll:()=>af,reorderArrayByValues:()=>lf,replaceLiteralsWithObjectFields:()=>mf,replaceOctalEscapeSequences:()=>yf,reset:()=>wd,resolveColorsInGradient:()=>vi,resolveFileSource:()=>cc,resolveFileUrl:()=>Vt,resolveHandler:()=>Me,resolvePropValue:()=>_e,returnSubThemeOrDefault:()=>Pp,returnValueAsText:()=>Wa,rgbArrayToHex:()=>wc,rgbToHSL:()=>vc,rgbToHex:()=>Op,runPluginHook:()=>an,runThroughMedia:()=>Uc,scratchSystem:()=>Vn,scratchUtils:()=>er,self:()=>tf,semantic_icons:()=>pd,sequence:()=>ve,set:()=>Ur,setActiveConfig:()=>Nc,setClass:()=>Vx,setColor:()=>rr,setCookie:()=>Gf,setCustomFont:()=>Ws,setCustomFontMedia:()=>Je,setEach:()=>Dd,setFont:()=>ci,setFontFamily:()=>Un,setFontImport:()=>Nn,setGradient:()=>nr,setHashedExtend:()=>Oa,setInCustomFontMedia:()=>Oc,setInObjectByPath:()=>Eo,setLang:()=>sa,setLocalStorage:()=>Qf,setMediaTheme:()=>ai,setNodeStyles:()=>wn,setProps:()=>ms,setPropsPrototype:()=>Yo,setSVG:()=>jn,setScalingVar:()=>Xs,setShadow:()=>or,setSubScalingVar:()=>Fc,setSvgIcon:()=>Si,setTheme:()=>ii,setValue:()=>Nd,setVariables:()=>Ad,shadow:()=>fd,spacing:()=>id,splitSpacedValue:()=>hi,splitTopLevelCommas:()=>Qe,splitTransition:()=>Wn,spotByPath:()=>fs,stringIncludesAny:()=>ho,stringToObject:()=>kf,svg:()=>yd,svg_data:()=>bd,swapItemsInArray:()=>nf,syncProps:()=>Qo,templates:()=>Sd,theme:()=>ld,timing:()=>dd,toCamelCase:()=>Hs,toDashCase:()=>Gs,toDescriptionCase:()=>Zp,toTitleCase:()=>Jp,toggleFullscreen:()=>Dp,transformBackgroundImage:()=>qc,transformBorder:()=>le,transformBorderRadius:()=>Ci,transformBoxShadow:()=>wi,transformDOMQLEmotion:()=>xc,transformDuration:()=>sr,transformEmotion:()=>RS,transformEmotionClass:()=>Sc,transformEmotionStyle:()=>Ep,transformShadow:()=>zc,transformSize:()=>nt,transformSizeRatio:()=>$,transformTextStroke:()=>Wc,transformTransition:()=>Pd,transformersByPrefix:()=>il,transfromGap:()=>Hc,translate:()=>na,triggerEventOn:()=>z,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>hf,typography:()=>Ks,unit:()=>td,unstackArrayOfObjects:()=>uo,update:()=>Ua,updateProps:()=>Jo,updateVars:()=>jx,upsertTranslation:()=>ia,useCssInProps:()=>Ht,usePropsAsCSS:()=>$d,useSelectorsAsCSS:()=>Ld,variables:()=>As,vars:()=>vd,verbose:()=>En,warn:()=>Cs,window:()=>D});v();v();var pb=["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"],Ps={default:["accesskey","autofocus","class","contenteditable","contextmenu","dir","draggable","hidden","id","lang","part","placeholder","slot","spellcheck","style","tabindex","title","translate","inert","radiogroup","role","about","datatype","inlist","prefix","property","resource","typeof","vocab","autocapitalize","autocorrect","autosave","color","itemprop","itemscope","itemtype","itemid","itemref","results","security","unselectable","is"],a:["accesskey","charset","coords","download","href","hreflang","name","rel","rev","shape","target","type"],aria:["aria-activedescendant","aria-atomic","aria-autocomplete","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-errormessage","aria-expanded","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],anchor:["download","href","hreflang","media","ping","rel","target","type","referrerpolicy"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],area:["alt","coords","download","href","hreflang","media","referrerpolicy","rel","shape","target","ping"],base:["href","target"],blockquote:["cite"],button:["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","type","value"],canvas:["height","width"],col:["span","width"],colgroup:["span"],data:["value"],details:["open"],del:["cite","datetime"],dialog:["open"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],form:["acceptcharset","action","autocomplete","enctype","method","name","novalidate","target","rel"],html:["manifest"],iframe:["allow","allowfullscreen","allowtransparency","frameborder","height","loading","marginheight","marginwidth","mozallowfullscreen","name","referrerpolicy","sandbox","scrolling","seamless","src","srcdoc","webkitallowfullscreen","width"],img:["alt","crossorigin","decoding","height","ismap","loading","referrerpolicy","sizes","src","srcset","usemap","width"],ins:["cite","datetime"],input:["accept","alt","autocomplete","capture","checked","crossorigin","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","indeterminate","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","type","value","width"],keygen:["challenge","disabled","form","keytype","keyparams","name"],label:["form","for"],li:["value"],link:["as","crossorigin","href","hreflang","integrity","media","imagesrcset","imagesizes","referrerpolicy","rel","sizes","type","charset"],map:["name"],menu:["type"],media:["autoplay","controls","currenttime","defaultmuted","defaultplaybackrate","loop","mediagroup","muted","playsinline","preload","src","volume"],meta:["charset","content","http-equiv","name","media"],meter:["form","high","low","max","min","optimum","value"],quote:["cite"],object:["classid","data","form","height","name","type","usemap","width","wmode"],ol:["reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["form","for","name"],param:["name","value"],progress:["max","value"],slot:["name"],script:["async","charset","crossorigin","defer","integrity","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","disabled","form","multiple","name","required","size","value","onchange"],source:["height","media","sizes","src","srcset","type","width"],style:["media","nonce","scoped","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],textarea:["autocomplete","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","value","wrap"],td:["align","colspan","headers","rowspan","scope","abbr","height","width","valign"],th:["align","colspan","headers","rowspan","scope","abbr"],time:["datetime"],track:["default","kind","label","src","srclang"],video:["autoplay","controls","crossorigin","disablepictureinpicture","disableremoteplayback","height","loop","muted","playsinline","poster","preload","src","width"],svg:["className","class","color","height","id","lang","max","media","method","min","name","style","target","type","width","role","tabindex","crossorigin","accent-height","accumulate","additive","alignment-baseline","allowReorder","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clip-path","clipPathUnits","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","focusable","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","href","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","markerHeight","marker-mid","marker-start","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","paint-order","panose-1","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","textLength","text-rendering","to","transform","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","v-hanging","v-ideographic","viewBox","viewTarget","visibility","v-mathematical","widths","word-spacing","writing-mode","x1","x2","x","xChannelSelector","x-height","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xmlns","xmlns:xlink","xml:space","y1","y2","y","yChannelSelector","z","zoomAndPan"]},Wu=["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"],lc=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,Ns=(t,e)=>{if(e.startsWith("aria-")||e.startsWith("data-")||lc(e))return!0;if(Object.prototype.hasOwnProperty.call(Ps,t)){let r=Ps[t];return r.includes(e)||r.includes("default")}else return Ps.default.includes(e)},fc=t=>{if(!b(t))return!1;let e=t.toLowerCase();return Wu.includes(e)},uc=(t,e,r)=>{let n={};for(let o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(r&&o in r)continue;if(o==="aria"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])dt(e[o][a])&&(n["aria-"+a]=e[o][a]);continue}if(o==="data"&&e[o]&&typeof e[o]=="object"){for(let a in e[o])if(dt(e[o][a])){let c=a.replace(/([A-Z])/g,f=>"-"+f.toLowerCase());n["data-"+c]=e[o][a]}continue}let s=Ns(t,o),i=fc(o);if(dt(e[o])&&(s||i)){let a=lc(o)||o;n[a]=e[o]}}return n},db=(t,e)=>{let r={};if(t.attr)for(let n in t.attr)r[n]=t.attr[n](e,e.state,e.context);return r},_e=(t,e)=>{let r=t.call("exec",e,t);if(r)return b(r)&&r.includes("{{")&&(r=t.call("replaceLiteralsWithObjectFields",r)),r},cc=(t,e)=>{let r=(t.props.preSrc||"")+(_e(t,e)||"");if(!r)return;try{return new URL(r),r}catch{}let{context:n}=t;if(!n.files)return r;let o=r.startsWith("/files/")?r.slice(7):r,s=n.files[r]||n.files[o];return s&&s.content?s.content.src:r},vr={src:t=>cc(t,t.props.src),href:t=>_e(t,t.props.href),action:t=>_e(t,t.props.action),poster:t=>cc(t,t.props.poster),data:t=>_e(t,t.props.data)},hb=t=>{let e=t.tag||"div",{props:r}=t,n={};for(let o in vr)if(r[o]!==void 0&&Ns(e,o)){let s=vr[o](t);s!==void 0&&(n[o]=s)}return n},Vu=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return y(r)?r.call(e,e):!!r},mb=(t,e,r)=>{if(t==="$"){let o=Vu(e,r);return o===void 0&&(o=!!r.props?.[e]),o}let n=r.props[e]===!0||r.state[e]||r[e];if(!n){let o=Vu(e,r);o!==void 0&&(n=o)}return t==="."?!!n:!n},gb=new Set(["$",".","!"]),pc=(t,e,r)=>{let n={},o=(s,i,a,c)=>{let f=i;n[s]=l=>{if(mb(a,c,l))return y(f)?f(l):f}};for(let s in t){let i=s.charAt(0);if(!gb.has(i))continue;let a=t[s];if(!a||typeof a!="object")continue;let c=s.slice(1);for(let f in a){if(r&&f in r)continue;if(f==="aria"&&a[f]&&typeof a[f]=="object"){for(let d in a[f])o("aria-"+d,a[f][d],i,c);continue}if(f==="data"&&a[f]&&typeof a[f]=="object"){for(let d in a[f]){let h=d.replace(/([A-Z])/g,m=>"-"+m.toLowerCase());o("data-"+h,a[f][d],i,c)}continue}let l=Ns(e,f),u=fc(f);if(!l&&!u)continue;let p=lc(f)||f;o(p,a[f],i,c)}}return n};v();v();var yb=!1;function bb(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Sb(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var zu=(function(){function t(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!yb:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(n){n.forEach(this._insertTag)},e.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Sb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=bb(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},e.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},t})();var ft="-ms-",kn="-moz-",q="-webkit-",Ds="comm",Cr="rule",Er="decl";var qu="@import";var Fs="@keyframes";var Hu="@layer";var Gu=Math.abs,Ke=String.fromCharCode,Ku=Object.assign;function Yu(t,e){return et(t,0)^45?(((e<<2^et(t,0))<<2^et(t,1))<<2^et(t,2))<<2^et(t,3):0}function $s(t){return t.trim()}function dc(t,e){return(t=e.exec(t))?t[0]:t}function M(t,e,r){return t.replace(e,r)}function An(t,e){return t.indexOf(e)}function et(t,e){return t.charCodeAt(e)|0}function we(t,e,r){return t.slice(e,r)}function ht(t){return t.length}function kr(t){return t.length}function Ar(t,e){return e.push(t),t}function hc(t,e){return t.map(e).join("")}var Ls=1,Or=1,Xu=0,mt=0,ot=0,Rr="";function On(t,e,r,n,o,s,i){return{value:t,root:e,parent:r,type:n,props:o,children:s,line:Ls,column:Or,length:i,return:""}}function Ir(t,e){return Ku(On("",null,null,"",null,null,0),t,{length:-t.length},e)}function Qu(){return ot}function Ju(){return ot=mt>0?et(Rr,--mt):0,Or--,ot===10&&(Or=1,Ls--),ot}function gt(){return ot=mt<Xu?et(Rr,mt++):0,Or++,ot===10&&(Or=1,Ls++),ot}function $t(){return et(Rr,mt)}function Tn(){return mt}function Pr(t,e){return we(Rr,t,e)}function Tr(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Bs(t){return Ls=Or=1,Xu=ht(Rr=t),mt=0,[]}function Ms(t){return Rr="",t}function Nr(t){return $s(Pr(mt-1,mc(t===91?t+2:t===40?t+1:t)))}function Zu(t){for(;(ot=$t())&&ot<33;)gt();return Tr(t)>2||Tr(ot)>3?"":" "}function tp(t,e){for(;--e&&gt()&&!(ot<48||ot>102||ot>57&&ot<65||ot>70&&ot<97););return Pr(t,Tn()+(e<6&&$t()==32&&gt()==32))}function mc(t){for(;gt();)switch(ot){case t:return mt;case 34:case 39:t!==34&&t!==39&&mc(ot);break;case 40:t===41&&mc(t);break;case 92:gt();break}return mt}function ep(t,e){for(;gt()&&t+ot!==57;)if(t+ot===84&&$t()===47)break;return"/*"+Pr(e,mt-1)+"*"+Ke(t===47?t:gt())}function rp(t){for(;!Tr($t());)gt();return Pr(t,mt)}function sp(t){return Ms(Us("",null,null,null,[""],t=Bs(t),0,[0],t))}function Us(t,e,r,n,o,s,i,a,c){for(var f=0,l=0,u=i,p=0,d=0,h=0,m=1,S=1,_=1,w=0,E="",R=o,T=s,O=n,k=E;S;)switch(h=w,w=gt()){case 40:if(h!=108&&et(k,u-1)==58){An(k+=M(Nr(w),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=Nr(w);break;case 9:case 10:case 13:case 32:k+=Zu(h);break;case 92:k+=tp(Tn()-1,7);continue;case 47:switch($t()){case 42:case 47:Ar(xb(ep(gt(),Tn()),e,r),c);break;default:k+="/"}break;case 123*m:a[f++]=ht(k)*_;case 125*m:case 59:case 0:switch(w){case 0:case 125:S=0;case 59+l:_==-1&&(k=M(k,/\f/g,"")),d>0&&ht(k)-u&&Ar(d>32?op(k+";",n,r,u-1):op(M(k," ","")+";",n,r,u-2),c);break;case 59:k+=";";default:if(Ar(O=np(k,e,r,f,l,o,a,E,R=[],T=[],u),s),w===123)if(l===0)Us(k,e,O,O,R,s,u,a,T);else switch(p===99&&et(k,3)===110?100:p){case 100:case 108:case 109:case 115:Us(t,O,O,n&&Ar(np(t,O,O,0,0,o,a,E,o,R=[],u),T),o,T,u,a,n?R:T);break;default:Us(k,O,O,O,[""],T,0,a,T)}}f=l=d=0,m=_=1,E=k="",u=i;break;case 58:u=1+ht(k),d=h;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&Ju()==125)continue}switch(k+=Ke(w),w*m){case 38:_=l>0?1:(k+="\f",-1);break;case 44:a[f++]=(ht(k)-1)*_,_=1;break;case 64:$t()===45&&(k+=Nr(gt())),p=$t(),l=u=ht(E=k+=rp(Tn())),w++;break;case 45:h===45&&ht(k)==2&&(m=0)}}return s}function np(t,e,r,n,o,s,i,a,c,f,l){for(var u=o-1,p=o===0?s:[""],d=kr(p),h=0,m=0,S=0;h<n;++h)for(var _=0,w=we(t,u+1,u=Gu(m=i[h])),E=t;_<d;++_)(E=$s(m>0?p[_]+" "+w:M(w,/&\f/g,p[_])))&&(c[S++]=E);return On(t,e,r,o===0?Cr:a,c,f,l)}function xb(t,e,r){return On(t,e,r,Ds,Ke(Qu()),we(t,2,-2),0)}function op(t,e,r,n){return On(t,e,r,Er,we(t,0,n),we(t,n+1,-1),n)}function Ye(t,e){for(var r="",n=kr(t),o=0;o<n;o++)r+=e(t[o],o,t,e)||"";return r}function ip(t,e,r,n){switch(t.type){case Hu:if(t.children.length)break;case qu:case Er:return t.return=t.return||t.value;case Ds:return"";case Fs:return t.return=t.value+"{"+Ye(t.children,n)+"}";case Cr:t.value=t.props.join(",")}return ht(r=Ye(t.children,n))?t.return=t.value+"{"+r+"}":""}function ap(t){var e=kr(t);return function(r,n,o,s){for(var i="",a=0;a<e;a++)i+=t[a](r,n,o,s)||"";return i}}function cp(t){return function(e){e.root||(e=e.return)&&t(e)}}function lp(t){var e=Object.create(null);return function(r){return e[r]===void 0&&(e[r]=t(r)),e[r]}}var _b=function(e,r,n){for(var o=0,s=0;o=s,s=$t(),o===38&&s===12&&(r[n]=1),!Tr(s);)gt();return Pr(e,mt)},wb=function(e,r){var n=-1,o=44;do switch(Tr(o)){case 0:o===38&&$t()===12&&(r[n]=1),e[n]+=_b(mt-1,r,n);break;case 2:e[n]+=Nr(o);break;case 4:if(o===44){e[++n]=$t()===58?"&\f":"",r[n]=e[n].length;break}default:e[n]+=Ke(o)}while(o=gt());return e},vb=function(e,r){return Ms(wb(Bs(e),r))},fp=new WeakMap,Cb=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var r=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&r.charCodeAt(0)!==58&&!fp.get(n))&&!o){fp.set(e,!0);for(var s=[],i=vb(r,s),a=n.props,c=0,f=0;c<i.length;c++)for(var l=0;l<a.length;l++,f++)e.props[f]=s[c]?i[c].replace(/&\f/g,a[l]):a[l]+" "+i[c]}}},Eb=function(e){if(e.type==="decl"){var r=e.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(e.return="",e.value="")}};function up(t,e){switch(Yu(t,e)){case 5103:return q+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return q+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return q+t+kn+t+ft+t+t;case 6828:case 4268:return q+t+ft+t+t;case 6165:return q+t+ft+"flex-"+t+t;case 5187:return q+t+M(t,/(\w+).+(:[^]+)/,q+"box-$1$2"+ft+"flex-$1$2")+t;case 5443:return q+t+ft+"flex-item-"+M(t,/flex-|-self/,"")+t;case 4675:return q+t+ft+"flex-line-pack"+M(t,/align-content|flex-|-self/,"")+t;case 5548:return q+t+ft+M(t,"shrink","negative")+t;case 5292:return q+t+ft+M(t,"basis","preferred-size")+t;case 6060:return q+"box-"+M(t,"-grow","")+q+t+ft+M(t,"grow","positive")+t;case 4554:return q+M(t,/([^-])(transform)/g,"$1"+q+"$2")+t;case 6187:return M(M(M(t,/(zoom-|grab)/,q+"$1"),/(image-set)/,q+"$1"),t,"")+t;case 5495:case 3959:return M(t,/(image-set\([^]*)/,q+"$1$`$1");case 4968:return M(M(t,/(.+:)(flex-)?(.*)/,q+"box-pack:$3"+ft+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+q+t+t;case 4095:case 3583:case 4068:case 2532:return M(t,/(.+)-inline(.+)/,q+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ht(t)-1-e>6)switch(et(t,e+1)){case 109:if(et(t,e+4)!==45)break;case 102:return M(t,/(.+:)(.+)-([^]+)/,"$1"+q+"$2-$3$1"+kn+(et(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~An(t,"stretch")?up(M(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(et(t,e+1)!==115)break;case 6444:switch(et(t,ht(t)-3-(~An(t,"!important")&&10))){case 107:return M(t,":",":"+q)+t;case 101:return M(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+q+(et(t,14)===45?"inline-":"")+"box$3$1"+q+"$2$3$1"+ft+"$2box$3")+t}break;case 5936:switch(et(t,e+11)){case 114:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return q+t+ft+M(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return q+t+ft+t+t}return t}var kb=function(e,r,n,o){if(e.length>-1&&!e.return)switch(e.type){case Er:e.return=up(e.value,e.length);break;case Fs:return Ye([Ir(e,{value:M(e.value,"@","@"+q)})],o);case Cr:if(e.length)return hc(e.props,function(s){switch(dc(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ye([Ir(e,{props:[M(s,/:(read-\w+)/,":"+kn+"$1")]})],o);case"::placeholder":return Ye([Ir(e,{props:[M(s,/:(plac\w+)/,":"+q+"input-$1")]}),Ir(e,{props:[M(s,/:(plac\w+)/,":"+kn+"$1")]}),Ir(e,{props:[M(s,/:(plac\w+)/,ft+"input-$1")]})],o)}return""})}},Ab=[kb],pp=function(e){var r=e.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var S=m.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=e.stylisPlugins||Ab,s={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var S=m.getAttribute("data-emotion").split(" "),_=1;_<S.length;_++)s[S[_]]=!0;a.push(m)});var c,f=[Cb,Eb];{var l,u=[ip,cp(function(m){l.insert(m)})],p=ap(f.concat(o,u)),d=function(S){return Ye(sp(S),p)};c=function(S,_,w,E){l=w,d(S?S+"{"+_.styles+"}":_.styles),E&&(h.inserted[_.name]=!0)}}var h={key:r,sheet:new zu({key:r,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:c};return h.sheet.hydrate(a),h};function dp(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var hp={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Ob=!1,Tb=/[A-Z]|^ms/g,Rb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bp=function(e){return e.charCodeAt(1)===45},mp=function(e){return e!=null&&typeof e!="boolean"},gc=lp(function(t){return bp(t)?t:t.replace(Tb,"-$&").toLowerCase()}),gp=function(e,r){switch(e){case"animation":case"animationName":if(typeof r=="string")return r.replace(Rb,function(n,o,s){return Jt={name:o,styles:s,next:Jt},o})}return hp[e]!==1&&!bp(e)&&typeof r=="number"&&r!==0?r+"px":r},Ib="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Rn(t,e,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Jt={name:o.name,styles:o.styles,next:Jt},o.name;var s=r;if(s.styles!==void 0){var i=s.next;if(i!==void 0)for(;i!==void 0;)Jt={name:i.name,styles:i.styles,next:Jt},i=i.next;var a=s.styles+";";return a}return Pb(t,e,r)}case"function":{if(t!==void 0){var c=Jt,f=r(t);return Jt=c,Rn(t,e,f)}break}}var l=r;if(e==null)return l;var u=e[l];return u!==void 0?u:l}function Pb(t,e,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Rn(t,e,r[o])+";";else for(var s in r){var i=r[s];if(typeof i!="object"){var a=i;e!=null&&e[a]!==void 0?n+=s+"{"+e[a]+"}":mp(a)&&(n+=gc(s)+":"+gp(s,a)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Ob)throw new Error(Ib);if(Array.isArray(i)&&typeof i[0]=="string"&&(e==null||e[i[0]]===void 0))for(var c=0;c<i.length;c++)mp(i[c])&&(n+=gc(s)+":"+gp(s,i[c])+";");else{var f=Rn(t,e,i);switch(s){case"animation":case"animationName":{n+=gc(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}}return n}var yp=/label:\s*([^\s;{]+)\s*(;|$)/g,Jt;function js(t,e,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var n=!0,o="";Jt=void 0;var s=t[0];if(s==null||s.raw===void 0)n=!1,o+=Rn(r,e,s);else{var i=s;o+=i[0]}for(var a=1;a<t.length;a++)if(o+=Rn(r,e,t[a]),n){var c=s;o+=c[a]}yp.lastIndex=0;for(var f="",l;(l=yp.exec(o))!==null;)f+="-"+l[1];var u=dp(o)+f;return{name:u,styles:o,next:Jt}}var Nb=!0;function yc(t,e,r){var n="";return r.split(" ").forEach(function(o){t[o]!==void 0?e.push(t[o]+";"):o&&(n+=o+" ")}),n}var Db=function(e,r,n){var o=e.key+"-"+r.name;(n===!1||Nb===!1)&&e.registered[o]===void 0&&(e.registered[o]=r.styles)},Sp=function(e,r,n){Db(e,r,n);var o=e.key+"-"+r.name;if(e.inserted[r.name]===void 0){var s=r;do e.insert(r===s?"."+o:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function xp(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function _p(t,e,r){var n=[],o=yc(t,n,r);return n.length<2?r:o+e(n)}var bc=function(e){var r=pp(e);r.sheet.speedy=function(a){this.isSpeedy=a},r.compat=!0;var n=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered,void 0);return Sp(r,u,!1),r.key+"-"+u.name},o=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered),p="animation-"+u.name;return xp(r,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=js(f,r.registered);xp(r,u)},i=function(){for(var c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];return _p(r.registered,n,Fb(f))};return{css:n,cx:i,injectGlobal:s,keyframes:o,hydrate:function(c){c.forEach(function(f){r.inserted[f]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:yc.bind(null,r.registered),merge:_p.bind(null,r.registered,n)}},Fb=function t(e){for(var r="",n=0;n<e.length;n++){var o=e[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=t(o);else{s="";for(var i in o)o[i]&&i&&(s&&(s+=" "),s+=i)}break}default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};v();v();var $b=/\s+/g,Lb=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charCodeAt(0)===95&&e.charCodeAt(1)!==95&&(t.classlist=e.slice(1))},wp=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${A(o,e)}`)}return r},vp=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=wp(t,e)),t.replace($b," ").trim()},Vs=(t,e,r)=>{let n=vp(t,e);if(r&&typeof r.setAttribute=="function")r.setAttribute("class",n);else if(r)try{r.className=n}catch{}return n};function Bb(t,e,r){Vs(t,e,r)}var Cp=(t="smbls",e)=>{let r=t.replaceAll(/\./g,"-");return bc({key:r,container:e})},vt=Cp(),Ep=t=>(e,r,n)=>{let o=A(e,r);if(e){let{__ref:s}=r;s.__class.style=o}Sc(t)(r.classlist,r,r.state,!0)},Sc=t=>(e,r,n,o)=>{if(r.style&&!o)return;let{__ref:s}=r,{__class:i,__classNames:a}=s;if(I(e)){r.props.class&&(a.classProps=r.props.class),r.attr?.class&&(a.class=r.attr.class);for(let c in i){let f=i[c];if(!f){delete a[c];continue}let l;b(f)||ct(f)?l=f:tn(f)?l=r.key:l=t.css(f),a[c]=l}for(let c in a)c==="classProps"||c==="class"||i[c]===void 0&&delete a[c];r.node&&Vs(a,r,r.node)}},xc=(t,e)=>(t||(t=bc(e||{key:"smbls"})),{style:Ep(t),classlist:Sc(t)});var er={};Nt(er,{CSS_NATIVE_COLOR_REGEX:()=>Zt,CSS_UNITS:()=>Fr,applyMediaSequenceVars:()=>tr,applySequenceGlobalVars:()=>ri,applySequenceVars:()=>Ae,changeLightness:()=>Ip,colorStringToRgbaArray:()=>ie,convertSvgToSymbol:()=>ni,findHeadingLetter:()=>Lc,findHeadings:()=>ei,generateSequence:()=>Wt,generateSequencePosition:()=>kd,generateSprite:()=>Bn,generateSubSequence:()=>Zs,getColorShade:()=>Ec,getDefaultOrFirstKey:()=>Lr,getFnPrefixAndValue:()=>ke,getFontFace:()=>Np,getFontFaceEach:()=>Br,getFontFaceEachString:()=>Tc,getFontFaceString:()=>zs,getFontFormat:()=>Ac,getRgbTone:()=>$r,getSequenceValue:()=>ti,getSequenceValueBySymbols:()=>$c,getSequenceValuePropertyPair:()=>ce,getSubratio:()=>Js,getSubratioDifference:()=>Qs,hexToRgb:()=>Ap,hexToRgbArray:()=>_c,hexToRgba:()=>Tp,hslToRgb:()=>Cc,isCSSVar:()=>rt,isGoogleFontsUrl:()=>Pn,isResolvedColor:()=>ae,isScalingUnit:()=>Dr,mixTwoColors:()=>kp,mixTwoRgb:()=>Rp,mixTwoRgba:()=>kc,numToLetterMap:()=>Ee,opacify:()=>In,parseColorToken:()=>Xe,resolveFileUrl:()=>Vt,returnSubThemeOrDefault:()=>Pp,rgbArrayToHex:()=>wc,rgbToHSL:()=>vc,rgbToHex:()=>Op,setCustomFont:()=>Ws,setCustomFontMedia:()=>Je,setFontImport:()=>Nn,setInCustomFontMedia:()=>Oc,setScalingVar:()=>Xs,setSubScalingVar:()=>Fc,setVariables:()=>Ad,splitTopLevelCommas:()=>Qe});var Dr=t=>t==="em"||t==="rem"||t==="vw"||t==="vh"||t==="vmax"||t==="vmin",Fr=["px","cm","mm","in","pt","pc","em","rem","ex","cap","ch","ic","lh","rlh","%","vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh","cqw","cqh","cqi","cqb","cqmin","cqmax","deg","rad","grad","turn","s","ms","dpi","dpcm","dppx","fr","auto"];v();var ie=t=>{if(t==="")return[0,0,0,0];if(t.toLowerCase()==="transparent")return[0,0,0,0];if(t[0]==="#")return t.length<7&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(t.length>4?t[4]+t[4]:"")),[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16),t.length>7?parseInt(t.substr(7,2),16)/255:1];if(t.indexOf("rgb")===-1&&B&&D){let e=B.body.appendChild(B.createElement("fictum")),r="rgb(1, 2, 3)";if(e.style.color=r,e.style.color!==r){B.body.removeChild(e);return}if(e.style.color=t,e.style.color===r||e.style.color==="")return B.body.removeChild(e),[0,0,0,0];t=D.getComputedStyle(e).color,B.body.removeChild(e)}return t.indexOf("rgb")===0?(t.indexOf("rgba")===-1&&(t=`${t}, 1`),t.match(/[\.\d]+/g).map(e=>+e)):[0,0,0,0]},kp=(t,e,r=.5)=>(t=ie(t),e=ie(e),kc(t,e,r)),Ap=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgb(${r},${n},${o})`},_c=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return[r,n,o]},Op=(t,e,r)=>"#"+(1<<24|t<<16|e<<8|r).toString(16).slice(1),wc=([t,e,r])=>((1<<24)+(t<<16)+(e<<8)+r).toString(16).slice(1),Tp=(t,e=1)=>{let[r,n,o]=t.match(/\w\w/g).map(s=>parseInt(s,16));return`rgba(${r},${n},${o},${e})`},Rp=(t,e,r=.5)=>{let n=[];for(let o=0;o<3;o++)n[o]=~~(t[o]+(e[o]-t[o])*r);return`rgb(${n})`},Ip=(t,e)=>{let[r,n,o]=e,s=Math.max(0,Math.min(100,o+parseFloat(t)));return[r,n,s]},vc=(t,e,r)=>{let n=Math.max(t,e,r),o=n-Math.min(t,e,r),s=1-Math.abs(n+n-o-1),i=o&&(n==t?(e-r)/o:n==e?2+(r-t)/o:4+(t-e)/o);return[60*(i<0?i+6:i),s?o/s:0,(n+n-o)/2]},Cc=(t,e,r,n=e*Math.min(r,1-r),o=(s,i=(s+t/30)%12)=>r-n*Math.max(Math.min(i-3,9-i,1),-1))=>[o(0),o(8),o(4)],Ec=(t,e)=>{let r=parseInt(t,16),n=(r>>16)+e;n>255?n=255:n<0&&(n=0);let o=(r>>8&255)+e;o>255?o=255:o<0&&(o=0);let s=(r&255)+e;return s>255?s=255:s<0&&(s=0),((s|o<<8|n<<16)+16777216).toString(16).slice(1)},kc=(t,e,r=.5)=>{let n=[];for(let o=0;o<4;o++){let s=o===3?i=>i:Math.round;n[o]=s(t[o]+(e[o]-t[o])*r)}return`rgba(${n})`},In=(t,e)=>{let r=ie(t);if(!r){gr()&&console.warn(t+" color is not rgba");return}return r[3]=e,`rgba(${r})`},rt=t=>t.charCodeAt(0)===45&&t.charCodeAt(1)===45,Zt=/(?:rgba?\(|hsla?\(|#[0-9a-fA-F]{3,8}\b)/,Mb=/^([a-zA-Z]\w*)(?:\.(\d+))?(?:([+-]\d+|=\d+))?$/,Xe=t=>{if(!b(t))return null;if(Zt.test(t))return{passthrough:t};if(rt(t))return{cssVar:t};let e=t.match(Mb);if(!e)return null;let[,r,n,o]=e,s=n!==void 0?`0.${n}`:void 0,i=o&&o[0]==="="?o.slice(1):o;return{name:r,alpha:s,tone:i}},ae=t=>b(t)&&(t.includes("rgb")||t.includes("var(")||t.includes("#")),Qe=t=>{let e=[],r="",n=0;for(let o of t){if(o==="("?n+=1:o===")"&&n>0&&(n-=1),o===","&&n===0){e.push(r),r="";continue}r+=o}return(r.length||!e.length)&&e.push(r),e},$r=(t,e)=>{b(t)&&t.includes("rgb")&&(t=ie(t).join(", ")),b(t)&&(t=t.split(",").map(o=>parseFloat(o.trim()))),ct(e)&&(e+="");let r=wc(t),n=e.slice(0,1);if(n==="-"||n==="+"){let o=Ec(r,parseFloat(e));return _c(o).join(", ")}else{let[o,s,i]=t,a=vc(o,s,i),[c,f,l]=a;return Cc(c,f,parseFloat(e)/100*255)}};var Pp=(t,e)=>{if(t)return t.themes&&t.themes[e]?t.themes[e]:t[e]?[t,t[e]]:t};var Vt=(t,e)=>{if(!t||!e)return null;try{return new URL(t),null}catch{}let r=e[t];return r?r.content&&r.content.src:null},Lr=(t,e)=>{if(t[e])return t[e].value;if(t.default)return t[t.default].value;let r=Object.keys(t)[0];return r&&t[r]&&t[r].value},Ac=t=>{let e=t.split(/[#?]/)[0].split(".").pop().trim();return["woff2","woff","ttf","otf","eot"].includes(e)?e:null},Pn=t=>t&&(t.includes("fonts.googleapis.com")||t.includes("fonts.gstatic.com")),Nn=t=>`@import url('${t}');`,Oc=t=>`@font-face { ${t} }`,Ws=(t,e,r,n={})=>{let s=(Array.isArray(e)?e:[e]).map(i=>{let a=Ac(i),c=a?` format('${a}')`:"";return`url('${i}')${c}`}).join(`,
22
22
  `);return`
23
23
  font-family: '${t}';
24
24
  font-style: ${n.fontStyle||"normal"};${r?`
@@ -26,14 +26,14 @@ FROM ${a}${f}`},fb=t=>{let e=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
26
26
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
27
27
  font-display: ${n.fontDisplay};`:""}
28
28
  src: ${s};`},Je=(t,e,r,n)=>`@font-face {${Ws(t,e,r,n)}
29
- }`,Br=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:f}=e[o],l=Array.isArray(s)?s.map(u=>Vt(u,r)||u):Vt(s,r)||s;return Ws(t,l,i,{fontStyle:a,fontDisplay:c,fontStretch:f})}),Np=t=>Object.keys(t).map(r=>Br(r,t[r].value)),Tc=(t,e,r)=>{if(e&&e.isVariable){let s=Vt(e.url,r)||e.url;return Pn(s)?Nn(s):Je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Br(t,e,r).map(Oc);let o=Array.isArray(e.url)?e.url.map(s=>Vt(s,r)||s):Vt(e.url,r)||e.url;return Je(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},zs=(t,e)=>Object.keys(t).map(n=>Tc(n,t[n].value,e));v();v();async function Fp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}v();var Rc=(t,e)=>(x(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Dp=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),Rc(t,e));var $p=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`};var Lp=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]};var Bp=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Mp=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Up=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},jp=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Vp=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}};function Fn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Wp(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var zp=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function Vb(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Vb(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},Ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Dn=(t={})=>{let{packageManager:e}=t;return Ze[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),Hp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
29
+ }`,Br=(t,e,r)=>Object.keys(e).map(o=>{let{url:s,fontWeight:i,fontStyle:a,fontDisplay:c,fontStretch:f}=e[o],l=Array.isArray(s)?s.map(u=>Vt(u,r)||u):Vt(s,r)||s;return Ws(t,l,i,{fontStyle:a,fontDisplay:c,fontStretch:f})}),Np=t=>Object.keys(t).map(r=>Br(r,t[r].value)),Tc=(t,e,r)=>{if(e&&e.isVariable){let s=Vt(e.url,r)||e.url;return Pn(s)?Nn(s):Je(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}if(e[0])return Br(t,e,r).map(Oc);let o=Array.isArray(e.url)?e.url.map(s=>Vt(s,r)||s):Vt(e.url,r)||e.url;return Je(t,o,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})},zs=(t,e)=>Object.keys(t).map(n=>Tc(n,t[n].value,e));v();v();async function Dp(t){if(document.fullscreenElement)await document.exitFullscreen();else try{await(this.node||document).requestFullscreen()}catch(e){console.warn(`Error attempting to enable fullscreen mode: ${e.message} (${e.name})`)}}v();var Rc=(t,e)=>(x(e)?e:Object.values(e)).reduce((r,n)=>Math.abs(n-t)<Math.abs(r-t)?n:r),Fp=(t,e)=>(t=parseFloat(t),g(e)&&(e=Object.values(e)),Rc(t,e));var $p=t=>{if(!t)return"";let e=new Date(t),r=new Intl.DateTimeFormat("en",{year:"numeric"}).format(e),n=new Intl.DateTimeFormat("en",{month:"short"}).format(e);return`${new Intl.DateTimeFormat("en",{day:"2-digit"}).format(e)} ${n}, ${r}`};var Lp=function(e){let r=[0,1];for(let n=2;n<=e;n++)r[n]=r[n-1]+r[n-2];return r[e]};var Bp=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("script");i.type=n,i.async=e,i.src=t,i.addEventListener("load",a=>{o({status:!0})}),i.addEventListener("error",a=>{s(new Error({status:!1,message:`Failed to load the script ${t}`}))}),r.body.appendChild(i)}catch(i){s(i)}}),Mp=(t,e=document,r="text/javascript")=>new Promise((n,o)=>{let s=e.createElement("script");s.type=r,s.src=t;let i=e.createElement("div");i.style.cssText="position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,0.8);z-index:9999;",e.body.appendChild(i),s.onload=()=>{console.log(`Successfully loaded: ${t}`),e.body.removeChild(i),n()},s.onerror=()=>{e.body.removeChild(i),o(new Error(`Failed to load: ${t}`))},e.body.appendChild(s)}),Up=(t,e=document,r,n="text/javascript")=>{let o=new window.XMLHttpRequest;if(o.open("GET",t,!1),o.send(),o.status===200){let s=e.createElement("script");s.type=n,s.text=o.responseText,e.body.appendChild(s),typeof r=="function"&&r()}else throw new Error(`Failed to load the script ${t}`)},jp=(t,e=!1,r=document,n="text/javascript")=>new Promise((o,s)=>{try{let i=r.createElement("link");i.rel="stylesheet",i.href=t,i.addEventListener("load",a=>{o({status:!0})}),r.head.appendChild(i)}catch(i){s(i)}}),Vp=(t,e=!1,r=document,n="text/javascript",o="smbls-script")=>{try{let s=r.createElement("script");s.type=n,s.async=e,s.id=o,s.innerHTML=t,r.body.appendChild(s)}catch(s){console.warn(s)}};function Dn(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`script[src="${t}"]`);if(i)return o(i);let a=n.createElement("script");a.src=t,a.async=e.async===!0,a.type=e.type||"text/javascript",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load script: ${t}`))},n.head.appendChild(a)})}async function Wp(t,e={}){let{window:r=globalThis}=e,{document:n=r.document}=e;return new Promise((o,s)=>{let i=n.querySelector(`link[href="${t}"]`);if(i)return o(i);let a=n.createElement("link");a.href=t,a.rel=e.rel||"stylesheet",a.type="text/css",a.media=e.media||"all",e.id&&(a.id=e.id),e.integrity&&(a.integrity=e.integrity),e.crossOrigin&&(a.crossOrigin=e.crossOrigin),a.onload=()=>{a.onerror=a.onload=null,o(a)},a.onerror=()=>{a.onerror=a.onload=null,s(new Error(`Failed to load stylesheet: ${t}`))},n.head.appendChild(a)})}var zp=t=>["jpeg","gif","jpg","png","tiff","woff"].includes(t);function Ub(t){return/^[0-9.]+$/.test(t)&&t!==""}var te={skypack:{url:"https://cdn.skypack.dev",formatUrl:(t,e)=>`${te.skypack.url}/${t}${e!=="latest"?`@${e}`:""}`},esmsh:{url:"https://esm.sh",formatUrl:(t,e)=>`${te.esmsh.url}/${t}${e!=="latest"?`@${e}`:""}`},unpkg:{url:"https://unpkg.com",formatUrl:(t,e)=>`${te.unpkg.url}/${t}${e!=="latest"?`@${e}`:""}?module`},jsdelivr:{url:"https://cdn.jsdelivr.net/npm",formatUrl:(t,e)=>`${te.jsdelivr.url}/${t}${e!=="latest"?`@${e}`:""}/+esm`},symbols:{url:"https://pkg.symbo.ls",formatUrl:(t,e)=>t.split("/").length>2||!Ub(e)?`${te.symbols.url}/${t}`:`${te.symbols.url}/${t}/${e}.js`}},Ze={"esm.sh":"esmsh",unpkg:"unpkg",skypack:"skypack",jsdelivr:"jsdelivr","pkg.symbo.ls":"symbols"},Fn=(t={})=>{let{packageManager:e}=t;return Ze[e]||null},ee=(t,e="latest",r="esmsh")=>(te[r]||te.esmsh).formatUrl(t,e),qp=(t,e="skypack")=>{let r=t.dependencies||{},n=Object.keys(r);if(!n.length)return"";let o={};for(let s of n){let i=r[s]||"latest";o[s]=ee(s,i,e)}return`<script type="importmap">{
30
30
  "imports": ${JSON.stringify(o,null,2)}
31
31
  }<\/script>`};v();var yt=t=>{if(t==null)return"";let e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return t.toString().replace(/[&<>"']/g,r=>e[r])},Ic=t=>Object.entries(t||{}).filter(([e,r])=>r!==void 0).map(([e,r])=>`${e}="${yt(r)}"`).join(" "),Gp=(t,e)=>{if(!e){let n=(()=>{let o=t?.favicon||t?.favicons;return o?typeof o=="string"?`<link rel="icon" href="${yt(o)}">`:Array.isArray(o)?o.map(s=>typeof s=="string"?`<link rel="icon" href="${yt(s)}">`:`<link ${Ic({rel:"icon",...s})}>`).join(`
32
32
  `):`<link ${Ic({rel:"icon",...o})}>`:'<link rel="icon" href="/favicon.ico">'})();return['<meta charset="UTF-8">',`<title>${yt(t.title||"Test")}</title>`,'<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">','<meta name="robots" content="noindex">','<meta name="apple-mobile-web-app-capable" content="yes">',n].join(`
33
33
  `)}return Object.entries(t).reduce((n,[o,s])=>{if(!s&&s!==0&&s!==!1)return n;if(o==="title")return n.push(`<title>${yt(s)}</title>`),n;if(o==="canonical")return n.push(`<link rel="canonical" href="${yt(s)}">`),n;if(o==="manifest")return n.push(`<link rel="manifest" href="${yt(s)}">`),n;if(o==="favicon"||o==="favicons"||o==="icon"||o==="icons")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="string")n.push(`<link rel="icon" href="${yt(l)}">`);else if(typeof l=="object"){let u=Ic(l);/rel=/.test(u)?n.push(`<link ${u}>`):n.push(`<link rel="icon" ${u}>`)}}),n;if(o==="alternate")return(Array.isArray(s)?s:[s]).forEach(l=>{if(typeof l=="object"){let u=Object.entries(l).filter(([p,d])=>d!==void 0).map(([p,d])=>`${p}="${yt(d)}"`).join(" ");n.push(`<link rel="alternate" ${u}>`)}}),n;let i=(f,l,u="name")=>{if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")n.push(`<meta ${u}="${yt(f)}" content="${yt(l)}">`);else if(Array.isArray(l))l.forEach(p=>{if(typeof p=="string"||typeof p=="number"||typeof p=="boolean")n.push(`<meta ${u}="${yt(f)}" content="${yt(p)}">`);else if(typeof p=="object"){let d=Object.entries(p).filter(([h,m])=>m!==void 0).map(([h,m])=>`${h}="${yt(m)}"`).join(" ");n.push(`<meta ${d}>`)}});else if(typeof l=="object"){let p=Object.entries(l).filter(([d,h])=>h!==void 0).map(([d,h])=>`${d}="${yt(h)}"`).join(" ");n.push(`<meta ${p}>`)}};if(o.startsWith("http-equiv:")){let f=o.replace("http-equiv:","");return i(f,s,"http-equiv"),n}if(o.startsWith("itemprop:")){let f=o.replace("itemprop:","");return i(f,s,"itemprop"),n}let c=["og:","twitter:","fb:","article:","profile:","book:","business:","music:","product:","video:","DC:","DCTERMS:"].find(f=>o.startsWith(f));if(c){let f=o.replace(c,"");return i(`${c.replace(":","")}:${f}`,s,c==="twitter:"||c==="DC:"||c==="DCTERMS:"?"name":"property"),n}if(o.startsWith("apple:")||o.startsWith("msapplication:")){let f=o.startsWith("apple:")?"apple-":"msapplication-",l=o.replace(/^apple:|^msapplication:/,"");return i(`${f}${l}`,s,"name"),n}return i(o,s),n},['<meta charset="UTF-8">','<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">']).join(`
34
- `)},Wb=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function zb(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!Wb(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function Hs(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function Hb(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},f={...t};for(let[l,u]of Object.entries(f))typeof u!="string"||!u.includes("{{")||(f[l]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let m=d.trim();if(h==="polyglot")return a[m]??Hs(a,m)??p;if(h==="getLocalStateLang")return Hs(c,m+s)??p;let S=Hs(c,m);return S!==void 0?S:a[m]??Hs(a,m)??p}));return f}function qp(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Kp(t,e,r){let n=t.pages?.[e],o=g(n?.state)&&n?.state,s=n?.metadata||n?.helmet||o||{},i=qp(s),a=new Set(Object.keys(i)),c=t.app?.metadata||{},f=qp(c),l={};t.integrations?.seo?l={...t.integrations.seo,...f,...i}:Object.keys(f).length?l={...f,...i}:l={...i},l.title||(l.title=t.name+" / symbo.ls"||"Symbols demo"),l=Hb(l,t,r),l.title&&(a.has("title")||!l["og:title"])&&(a.has("og:title")||(l["og:title"]=l.title)),l.description&&(a.has("description")||!l["og:description"])&&(a.has("og:description")||(l["og:description"]=l.description)),l.title&&!l["twitter:title"]&&(l["twitter:title"]=l.title),l.description&&!l["twitter:description"]&&(l["twitter:description"]=l.description);let u=r?.actualPathname||e;if(l["og:url"]||l.url){let d=(l["og:url"]||l.url||"").replace(/\/$/,"");if(d&&u&&u!=="/"){let h=u.startsWith("/")?u:"/"+u;l["og:url"]=d+h}}l=zb(l,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[d,h]of Object.entries(l))if(typeof h=="string"&&h.includes("{{")){let m=h.replace(/\{\{[^}]*\}\}/g,"").trim();m?l[d]=m:d==="title"?l[d]=p:delete l[d]}return l}var Yp=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Xp=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Qp=t=>t.replace(/[^a-zA-Z0-9_]/g,""),qs=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Jp=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Gs=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Zp=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Mr=t=>{if(x(t))return t;if(b(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Pc={};Nt(Pc,{CLASS:()=>_d,animation:()=>gd,breakpoints:()=>hd,color:()=>ad,devices:()=>md,document:()=>Yb,font:()=>ed,font_face:()=>od,font_family:()=>rd,font_family_types:()=>nd,gradient:()=>cd,grid:()=>xd,icons:()=>ud,media:()=>sd,reset:()=>wd,semantic_icons:()=>pd,sequence:()=>ve,shadow:()=>fd,spacing:()=>id,svg:()=>yd,svg_data:()=>bd,templates:()=>Sd,theme:()=>ld,timing:()=>dd,typography:()=>Ks,unit:()=>td,vars:()=>vd});var ve={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var td={default:"em"};var qb={browserDefault:16,base:16,type:"font-size",ratio:ve["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ks=qb;var ed={};var rd={},nd={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},od={};var sd={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Gb={base:Ks.base,type:"spacing",ratio:ve.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},id=Gb;var ad={},cd={};var ld={};var fd={};var ud={},pd={};var Kb={default:150,base:150,type:"timing",ratio:ve["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},dd=Kb;var Yb={};var hd={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},md={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var gd={};var yd={},bd={};var Sd={};var Xb={},xd=Xb;var Qb={},_d=Qb;var wd={},vd={};var Cd={},Ed={},$n=Pc,Ln={},Jb=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Zb=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in $n){let e=t.toLowerCase();Ln[e]=$n[t];let r=Jb(e);r!==e&&(Ln[r]=$n[t]),e!==t&&(Ln[t]=$n[t]);let n=Zb(t);n!==t&&(Ln[n]=$n[t])}var Ys={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Cd,CSS_MEDIA_VARS:Ed,...Ln},tS=j(Ys),Ce={active:"0",0:Ys},eS=t=>(dt(t)&&(Ce.active=t),Ce[t||Ce.active]),C=t=>Ce[t||Ce.active]||Ys,Nc=t=>{if(g(t))return Ce.active="1",Ce[1]=W(t,j(tS)),t};var Ee={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Fc=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},ke=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Xs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Fr(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Ee[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Ee[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},Dc=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Qs=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Js=(t,e)=>Qs(t,e).map(r=>r/t),Zs=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Qs(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let S=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,E=Dc(m+1,l,i,e),R={key:r+(m+1),variable:_,value:h,scaling:S,scalingVariable:E,index:w};Fc(R,e)})},rS=(t,e,r)=>e*Math.pow(r,t),Wt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=Ee[f],u=rS(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Xs(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Fc(m,t),s&&Zs(m,t)}return t},kd=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=b(e)?e:Ee[e],a=b(e)?Object.entries(Ee).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Xs(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Fc(h,c),s&&Zs(h,c),c},ti=(t="A",e)=>{let r=C(),{unit:n}=r;if(b(t)&&rt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Dr.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Gs(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let S=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,E]=h.split("+"),R=`${S(w)} + ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("*")){let[w,E]=h.split("*"),R=`${S(w)} * ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("-")){let[w,E]=h.split("-"),R=`${S(w)} - ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},$c=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ti(i,e)).join(" "+n+" ")).join(""):t},ce=(t,e,r,n)=>{if(typeof t!="string")return C().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=ke(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=$c(t,r):t=ti(t,r),{[e]:n?`${n}(${t})`:t}},Lc=(t,e)=>Ee[t-e],ei=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Lc(e,o);return r[s]})};v();var Ad=(t,e)=>{let r=C(),{CSS_VARS:n}=r;I(t.value)||(n[t.var]=t.value)},ri=(t,e,r)=>{let n=C(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Js(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},Ae=(t,e={})=>{let r=C(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||ri(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},tr=(t,e,r={})=>{let n=C(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),ri(d,t[e],r);return}for(let d in l){let h=l[d],m=(Fr(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let S=i[`@media ${p}`];S||(S=i[`@media ${p}`]={}),S[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var nS=gr(),Bn=t=>{let e=C(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},oS=t=>{let e=t.default||t;if(!b(e)){nS&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},sS=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return x(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},ni=(t,e)=>{let r=oS(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=sS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var Vn={};Nt(Vn,{appendSVGSprite:()=>bi,appendSvgIconsSprite:()=>xi,applyDocument:()=>yi,applyHeadings:()=>jc,applyReset:()=>_i,applySpacingSequence:()=>di,applyTimingSequence:()=>gi,applyTypographySequence:()=>fi,checkIfBoxSize:()=>pi,getColor:()=>Q,getFontFamily:()=>li,getFontSizeByKey:()=>ui,getMediaColor:()=>Ct,getMediaTheme:()=>zt,getShadow:()=>mi,getSpacingBasedOnRatio:()=>Oe,getSpacingByKey:()=>at,getTheme:()=>si,getTimingByKey:()=>Lt,getTimingFunction:()=>It,runThroughMedia:()=>Uc,setColor:()=>rr,setFont:()=>ci,setFontFamily:()=>Un,setGradient:()=>nr,setMediaTheme:()=>ai,setSVG:()=>jn,setShadow:()=>or,setSvgIcon:()=>Si,setTheme:()=>ii,splitSpacedValue:()=>hi});v();var Q=(t,e,r)=>{let n=r||C();if(!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(x(t))[o,s,i]=t;else{let u=Xe(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=$r(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Ct=(t,e,r)=>{let n=r||C();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let o;if(x(t))o=t[0];else{let f=Xe(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return Q(t,`@${e}`,r);if(c){if(e)return Q(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=Q(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},rr=(t,e,r)=>{let n=C();if(b(t)&&rt(t)){let d=t.slice(2);if(t=Q(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let S=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(S=$r(S,w)),t=`rgba(${S}, ${_})`}else{let S=h[2],_=h[1]!==void 0?h[1]:"1";if(S)try{let w=ie(h[0]);w&&w.length>=3?t=`rgba(${$r(w.slice(0,3).join(", "),S)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(x(t))return{"@light":rr(t[0],e,"light"),"@dark":rr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=rr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ie(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},nr=(t,e,r)=>{let n=C();if(b(t)&&rt(t)&&(t=Q(t.slice(2))),x(t))return{"@light":nr(t[0],e,"light"),"@dark":nr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=nr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var oi=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?Q(t[a]):t[a]}),e},Mn=t=>(t.value||(t.value=oi(t)),t.value),si=(t,e)=>{let r=C();if(r.useVariable)return zt(t,e);let n=r.theme;if(b(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Mn(i);t=[o,s||e]}}if(I(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Mn(a[s]);if(i&&i[s])return Mn(i[s]);if(c&&c[s])return Mn(c[s])}else if(g(t))return oi(t)},iS=(t,e,r)=>{if(g(e))t.variants.inverse.value=oi(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},aS=(t,e,r,n)=>{let o=si(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},cS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return aS(t,o,s,e),t}),t):void 0},lS=(t,e,r,n)=>{let o=si(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},fS=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&lS(t,o,s,e),o==="inverse"&&iS(t,s,e),t}),t):void 0},uS=(t,e)=>{let r=C(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return b(i)?n[s]=r.theme[i]:Mn(n[s]),t}),t):void 0},ii=(t,e)=>{if(C().useVariable)return ai(t,e);let{state:n,media:o,helpers:s}=t,i=oi(t,e),a=`--theme-${e}`;return cS(t,i),fS(t,i),uS(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var Bc=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>I(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)I(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Bc(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)I(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Bc(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=Q(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let S=`@media (prefers-color-scheme: ${p})`;o[S]||(o[S]={}),o[S][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=Q(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},ai=(t,e,r,n)=>{let o=C(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(I(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&I(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=Bc(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=ai(l,e,c,n||u)}else if(!a){let u=Q(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(b(t)&&rt(t)){let f=o.theme[t.slice(2)];return zt(f,n)}return i},Mc=t=>{let e=C(),r={};for(let n in t){let o=n.slice(0,1);if(I(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Mc(t[n]):o==="."&&(r[`&${n}`]=Mc(t[n]))}else r[n]=t[n]}return r},Td=(t,e)=>{let r=e.shift();return t[r]?Td(t[r],e):t},Od=(t,e)=>x(e)?Td(t,e):b(e)&&t[e]?t[e]:t;var zt=(t,e)=>{let r=C();if(b(t)&&rt(t)&&(t=zt(t.slice(2))),!t||!b(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=x(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Od(s,o):s&&e&&(s=Od(s,e)),Mc(s)};v();var ci=(t,e)=>{let r=C(),n=`--font-${e}`;if(!t||x(t)&&!t[0])return;let o;if(t.isVariable){let s=Vt(t.url,r.files)||t.url;Pn(s)?o=Nn(s):o=Je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Br(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Vt(i,r.files)||i):Vt(t.url,r.files)||t.url;o=Je(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},li=(t,e)=>{let r=C(),{font_family:n}=r;return Lr(e||n,t)},Un=(t,e)=>{let r=C(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=Mr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Uc=t=>{let e=C(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let S=n[c],_="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){tr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Wt(i),tr(t,o)}},jc=t=>{let e=C();if(t.h1Matches){let r=t.unit,n=ei(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},fi=()=>{let t=C(),{typography:e}=t;Wt(e),jc(e),Ae(e),Uc(e)},ui=t=>{let e=C(),{typography:r}=e;return ce(t,"fontSize",r)};v();var pS=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Wt(r),tr(t,e)}},pi=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},di=()=>{let t=C(),{spacing:e}=t;Wt(e),Ae(e),pS(e)},dS=t=>{let e=C(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Wt(t)},at=(t,e="padding",r,n)=>{let o=dS(r);if(b(t)&&!n&&t.includes("(")){let i=ke(t);n=i[0],t=i[1]}let s=n?[t]:Mr(t);if(x(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>ce(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ce(t,e,o,n)}},Oe=(t,e,r,n)=>{let o=C(),{spacing:s}=o,i=r||t[e];if(!n&&b(i)&&i.includes("(")){let a=ke(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},hi=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Dr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var or=(t,e,r,n)=>{let o=C();if(x(t))return{"@light":or(t[0],e,"light"),"@dark":or(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=or(t[a],e,a.startsWith("@")?a.slice(1):a);return i}b(t)&&!Zt.test(t)&&(t=Qe(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=Q(a);if(ae(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},mi=(t,e)=>{let r=C();if(e||(e=r.globalTheme),!b(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let[n]=x(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var gi=()=>{let t=C(),{timing:e}=t;Wt(e),Ae(e)},It=t=>{let e=C(),{timing:r}=e;return r[t]||r[qs(t)]||t},Lt=(t,e="timing")=>{let r=C(),{timing:n}=r;return ce(t,e,n)};v();var yi=()=>{let t=C(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:Lr(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var Vc={document:B},jn=(t,e)=>{let r=C();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?ni(e,t):t},bi=(t,e=Vc)=>{let r=C(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Id(n,e)},Si=(t,e)=>{let r=C();return r.useIconSprite&&!r.semantic_icons?.[e]?jn(t,e):t},xi=(t,e=Vc)=>{let r=C(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Id(n,e)},Rd=(t={isRoot:!0})=>{if(!B||!B.createElementNS)return;let e=B.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Id=(t,e=Vc)=>{let r=C(),n=e.document||B;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Bn(t);let o=n.querySelector("#svgSprite"),s=Bn(t);if(o){let i=Rd({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=Rd();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var _i=(t={})=>{let e=C(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?zt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?zt("document"):{};return r.html&&it(r.html,a),W(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var hS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),mS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),gS=t=>hS.has(t),le=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(rt(o))return`var(${o})`;if(gS(o)||/^\d/.test(o)||o==="0")return o;let s=Q(o);if(ae(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Wc=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(rt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Q(e);return ae(r)?r:e}).join(" "),zc=(t,e)=>mi(t,e),wi=(t,e)=>Zt.test(t)?t:Qe(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(rt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Q(n);if(ae(o)){let i=Ct(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),vi=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=Qe(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||mS.has(l)||l==="transparent"||Zt.test(l))return l;let u=Q(l);return ae(u)?u:l}).join(" ")));return n+a.join(", ")+s},Hc=(t,e)=>{let r=C();return t.split(", ").map(n=>rt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?vi(n,e):r.gradient[t]?{backgroundImage:Ct(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Xe(n)?`url(${n})`:n).join(" ")},qc=t=>b(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),Pd=t=>{let e=t.split(" ");return e.length?e.map(r=>rt(r)?`var(${r})`:r.length<3||r.includes("ms")?Lt(r).timing||r:It(r)?It(r):r).join(" "):t},sr=(t,e,r)=>{if(b(t))return t.split(",").map(n=>Lt(n).timing||n).join(",")},Wn=t=>{let e=t.split(",");if(e.length)return e.map(Pd).join(",")};function nt(t,e,r={},n={}){let o=A.call(this,e||r[t]);if(o==null)return;let s;if(b(o)){if(o.includes("(")){let c=ke(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=pi(t);!i&&a&&!n.ratio&&(o=hi(o))}return n.ratio?Oe(r,t,o,s):at(o,t,void 0,s)}var $=(t,e=null,r)=>nt(t,e,r,{ratio:!0}),Ci=(t,e,r)=>{if(b(t))return{borderRadius:t.split(" ").map((n,o)=>Oe(e,r,n)[r]).join(" ")}};v();var yS=(t,e)=>{let r=C(),{CSS_VARS:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Bt=t=>t,Gc={color:rr,gradient:nr,font:ci,font_family:Un,fontfamily:Un,theme:ii,icons:Si,semantic_icons:Bt,semanticicons:Bt,svg:jn,svg_data:Bt,typography:Bt,shadow:or,spacing:Bt,media:Bt,grid:Bt,class:Bt,timing:Bt,reset:Bt,unit:Bt,animation:Bt,vars:yS},Nd=(t,e,r)=>{let n=C(),o=t.toLowerCase(),s=n[o]||n[t];if(Gc[o])try{let i=Gc[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},Fd=(t,e)=>{let r=C(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Nd(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]};var bS={},Ur=(t,e=bS)=>{let r=C(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:S,..._}=t;e.newConfig&&(r=Nc(e.newConfig)),S!==void 0&&(r.files=S),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let E=Object.keys(_),R=new Set(E);if(E.forEach(T=>{let O=T.toLowerCase();O!==T&&R.has(O)&&W(_[O],_[T])}),E.map(T=>{let O=T.toLowerCase();if(!(O!==T&&R.has(O)))return Fd(T,_[T])}),_.typography||_.TYPOGRAPHY)try{fi()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(_.spacing||_.SPACING)try{di()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(_.timing||_.TIMING)try{gi()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}return yi(),_i(),r};var SS=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],xS=["none","forwards","backwards","both"],_S=["normal","reverse","alternate","alternate-reverse"],wS=["running","paused"],vS=t=>/^[\d.]+m?s$/.test(t),Kc=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||vt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},CS=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:vS(u)?s.push(u):SS.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):_S.includes(u)?c=u:xS.includes(u)?f=u:wS.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Yc={animation:(t,e)=>{if(b(t)&&t.includes(" ")){let r=CS(t,e);return{animationName:Kc(r.name||t,e),animationDuration:r.durations[0]||Lt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||It(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Kc(t,e),animationDuration:Lt(e.props.animationDuration||"A").timing,animationDelay:Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:It(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Kc(t,e)}),animationDuration:t=>({animationDuration:Lt(t).timing}),animationDelay:t=>({animationDelay:Lt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:It(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var Xc={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>$("height",t,e),width:(t,{props:e})=>$("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("height",e),...nt("width",r||e)}},inlineSize:(t,{props:e})=>$("inlineSize",t,e),blockSize:(t,{props:e})=>$("blockSize",t,e),minWidth:(t,{props:e})=>$("minWidth",t,e),maxWidth:(t,{props:e})=>$("maxWidth",t,e),widthRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minWidth",e),...nt("maxWidth",r||e)}},minHeight:(t,{props:e})=>$("minHeight",t,e),maxHeight:(t,{props:e})=>$("maxHeight",t,e),heightRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minHeight",e),...nt("maxHeight",r||e)}},size:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...$("inlineSize",e),...$("blockSize",r||e)}},minBlockSize:(t,{props:e})=>$("minBlockSize",t,e),minInlineSize:(t,{props:e})=>$("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>$("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>$("maxInlineSize",t,e),minSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minInlineSize",e),...nt("minBlockSize",r||e)}},maxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("maxInlineSize",e),...nt("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>$("borderWidth",t,e),padding:(t,{props:e})=>$("padding",t,e),scrollPadding:(t,{props:e})=>$("scrollPadding",t,e),paddingInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingInlineStart",e),...nt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingBlockStart",e),...nt("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>$("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>$("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>$("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>$("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>$("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>$("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>$("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>$("paddingInlineEnd",t,e),margin:(t,{props:e})=>$("margin",t,e),marginInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("marginInlineStart",e),...nt("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!b(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...nt("marginBlockStart",r),...nt("marginBlockEnd",n||r)}},marginTop:(t,{props:e})=>$("marginBlockStart",t,e),marginBottom:(t,{props:e})=>$("marginBlockEnd",t,e),marginLeft:(t,{props:e})=>$("marginInlineStart",t,e),marginRight:(t,{props:e})=>$("marginInlineEnd",t,e),marginInlineStart:(t,{props:e})=>$("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>$("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>$("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>$("marginBlockEnd",t,e),gap:t=>({gap:qc(t)}),columnGap:(t,{props:e})=>Oe(e,"columnGap",t),rowGap:(t,{props:e})=>Oe(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!b(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>Ci(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>Ci(t||e.round,e,"borderRadius")};var Qc={fontSize:t=>ui(t)||t,fontFamily:t=>({fontFamily:li(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ei={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Jc={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var Ht=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Zc={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?zt(t,`@${r.themeModifier}`):zt(t)},color:(t,e)=>{let r=Ht(e);if(t)return{color:Ct(t,r)}},background:(t,e)=>{let r=Ht(e);if(t)return b(t)&&t.includes("gradient")?{background:vi(t,r)}:{background:Ct(t,r)}},backgroundColor:(t,e)=>{let r=Ht(e);if(t)return{backgroundColor:Ct(t,r)}},backgroundImage:(t,e,r,n)=>{let o=Ht(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:Hc(t,o)}},textStroke:t=>({WebkitTextStroke:Wc(t)}),outline:t=>({outline:le(t)}),outlineOffset:(t,{props:e})=>$("outlineOffset",t,e),border:t=>({border:le(t)}),borderColor:(t,e)=>{let r=Ht(e);if(t)return{borderColor:Ct(t,r)}},borderTopColor:(t,e)=>{let r=Ht(e);if(t)return{borderTopColor:Ct(t,r)}},borderBottomColor:(t,e)=>{let r=Ht(e);if(t)return{borderBottomColor:Ct(t,r)}},borderLeftColor:(t,e)=>{let r=Ht(e);if(t)return{borderLeftColor:Ct(t,r)}},borderRightColor:(t,e)=>{let r=Ht(e);if(t)return{borderRightColor:Ct(t,r)}},borderLeft:t=>({borderLeft:le(t)}),borderTop:t=>({borderTop:le(t)}),borderRight:t=>({borderRight:le(t)}),borderBottom:t=>({borderBottom:le(t)}),shadow:(t,e)=>{let r=Ht(e);if(t)return{boxShadow:zc(t,r)}},boxShadow:(t,e)=>{if(!b(t))return;let[r,n]=t.split("!importan"),o=Ht(e),s=n?" !important":"";return{boxShadow:wi(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:wi(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:le(t)})};var tl={transition:t=>({transition:Wn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var el={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!b(t))return;let[o,s]=(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":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var rl={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var jr={...Yc,...Xc,...Qc,...Ei,...Ei,...Jc,...Zc,...tl,...el,...rl};var nl=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);v();var ES=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=qt(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Dd=(t,e,r)=>({[t]:qt(e,r)}),zn=(t,e,r)=>({[`&${t}`]:qt(e,r)}),ol=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return y(r)?r.call(e,e):!!r},kS=(t,e,r)=>{let n=t.slice(1),o=ol(n,r);if(o===void 0&&(o=!!r.props?.[n]),!!o)return qt(e,r)},AS=(t,e,r)=>({[t]:e}),OS=(t,e,r)=>{let n=t.slice(1),o=r.props[n]===!0||r.state[n]||r[n];if(!o){let s=ol(n,r);s!==void 0&&(o=s)}if(o)return qt(e,r)},TS=(t,e,r)=>{let n=t.slice(1),o=r.props[n]===!0||r.state[n]||r[n];if(!o){let s=ol(n,r);s!==void 0&&(o=s)}if(!o)return qt(e,r)},sl=(t,e)=>qt(t,e),il={"@":ES,":":zn,"[":zn,"*":zn,"+":zn,"~":zn,"&":Dd,">":Dd,$:kS,"-":AS,".":OS,"!":TS};var al=Le(),$d=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=A(a,e);Y(n,sl(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=y(c)?c(e,e.state,e.context):c;f&&s(i,f),!al&&g(n[i])&&(n[i].label=i)}else if(jr[i]){let c=A(a,e);x(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=jr[i](c,e,e.state,e.context);x(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!al&&g(n[i])&&(n[i].label=i)}else if(nl.has(i)){let c=A(a,e);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(i,{[i]:c}),!al&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},Ld=(t,e)=>{let r={};for(let n in t){let o=il[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?it(r[i],s[i]):r[i]=s[i])}}return r},qt=(t,e,r={unpack:!0})=>{let[n,o]=$d(t,e,r),s=Ld(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return oe(n,s);n._selectors=s}return n},RS=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:IS}=vt,PS=(t,e)=>y(e)?e(t):IS(t);var Bd={transparent:"rgba(0, 0, 0, 0)",black:"black",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},Md={};var NS={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light"},"@light":{color:"gray3",background:"gradient-dark"}}},FS={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},DS={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},Ud={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...NS,...FS,...DS,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var jd={base:16,ratio:1.25,subSequence:!0,templates:{}};var Vd={ratio:1.618,subSequence:!0};var Wd={},zd={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var Hd={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var qd={base:150,ratio:1.333,unit:"ms",subSequence:!0};var ki={version:"0.0.1",color:Bd,gradient:Md,theme:Ud,typography:jd,spacing:Vd,font:Wd,font_family:zd,timing:qd,media:Hd,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ar={};Nt(ar,{A:()=>Lm,Avatar:()=>Jm,B:()=>Rh,Block:()=>Gd,Box:()=>Ri,Br:()=>Fh,Button:()=>Um,ButtonSet:()=>zm,Caption:()=>_h,Checkbox:()=>Wh,CheckboxHgroup:()=>zh,CircleButton:()=>Vm,Clickable:()=>oh,Data:()=>Ph,Dialog:()=>qm,DialogFooter:()=>Km,DialogHeader:()=>Gm,DropdownList:()=>tg,DropdownParent:()=>eg,DropdownParentFocus:()=>rg,DropdownSiblingFocus:()=>ng,FileIcon:()=>Zh,Flex:()=>Yd,Focusable:()=>sh,FocusableComponent:()=>ih,Footnote:()=>Th,Form:()=>eh,Grid:()=>Qd,Gutter:()=>Zd,H1:()=>hh,H2:()=>mh,H3:()=>gh,H4:()=>yh,H5:()=>bh,H6:()=>Sh,Headline:()=>Ah,Hgroup:()=>Bh,HgroupButton:()=>Uh,HgroupRows:()=>Mh,Hoverable:()=>nh,Hr:()=>Nh,I:()=>Ih,Icon:()=>Qh,IconButton:()=>Hm,IconText:()=>Jh,Iframe:()=>rh,Img:()=>th,Inline:()=>Kd,InlineFlex:()=>Xd,InlineGrid:()=>Jd,Input:()=>jh,Italic:()=>Eh,KangorooButton:()=>Wm,Li:()=>Dh,Link:()=>El,Notification:()=>og,NumberInput:()=>Vh,Ol:()=>Lh,P:()=>xh,Picture:()=>fh,Radio:()=>Hh,RadioHgroup:()=>qh,Range:()=>Zm,RouteLink:()=>Bm,RouterLink:()=>kl,SHAPES:()=>ch,Select:()=>Mm,SquareButton:()=>jm,Strong:()=>wh,Subhead:()=>Oh,Svg:()=>uh,Text:()=>dh,Textarea:()=>Yh,TextareaWithButton:()=>Xh,Theme:()=>lh,Title:()=>kh,Toggle:()=>Gh,ToggleHgroup:()=>Kh,Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Qm,U:()=>vh,Ul:()=>$h,Underline:()=>Ch,Video:()=>ph,depth:()=>Oi,getSystemGlobalTheme:()=>Ti});var Gd={display:"block"},Kd={display:"inline"},Yd={display:"flex"},Xd={display:"inline-flex"},Qd={display:"grid"},Jd={display:"inline-grid"},Zd={boxSize:"C1"};var th={tag:"img",attr:{title:({props:t})=>t.title||t.alt}};var eh={tag:"form"};var rh={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var $S={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},nh={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},oh={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},sh={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},ih={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:$S};var ah={transition:t=>({transition:Wn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Mt=C(),Oi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Mt.UNIT.default} 4${Mt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Mt.UNIT.default} 6${Mt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Mt.UNIT.default} 10${Mt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Mt.UNIT.default} 16${Mt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Mt.UNIT.default} 26${Mt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Mt.UNIT.default} 42${Mt.UNIT.default}`}},Vr=({props:t})=>Q(t.shapeDirectionColor)||Q(t.borderColor)||Q(t.backgroundColor)||Q(t.background),Ai=({props:t,deps:e})=>{let r=ah.transition(t.transition,{props:t,deps:e});return r&&r.transition},ch={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),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:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Ai({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Vr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Vr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Vr({props:t,deps:e}),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)"}}}};v();var Ti=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},lh={deps:{depth:Oi},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var fh={deps:{getSystemGlobalTheme:Ti},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ti},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var uh={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var ph={tag:"video",controls:!0,childExtends:{tag:"source"}};var dh={},hh={tag:"h1"},mh={tag:"h2"},gh={tag:"h3"},yh={tag:"h4"},bh={tag:"h5"},Sh={tag:"h6"},xh={tag:"p"},_h={tag:"caption"},wh={tag:"strong",fontWeight:"700"},vh={tag:"u"},Ch={tag:"u"},Eh={tag:"i"},kh={},Ah={tag:"h6",fontSize:"B",fontWeight:500},Oh={tag:"span",fontSize:"Z1"},Th={tag:"span",fontSize:"Z"},Rh={tag:"b"},Ih={tag:"i"},Ph={tag:"data"};var LS=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=qt(e,t,{unpack:!1});r.__class=n},Ri={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:LS},Nh={tag:"hr",margin:"C1 0"},Fh={tag:"br"},Dh={tag:"li"},$h={tag:"ul",childExtends:{extends:"Li"}},Lh={tag:"ol",childExtends:{extends:"Li"}};var Bh={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},Mh={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Uh={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var jh={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var Vh={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var Wh={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:t=>t.call("exec",t.parent.props.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"}}},zh={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var Hh={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}},qh={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Gh={extends:"Checkbox",Input:{":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}},Kh={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Yh={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",theme:"field",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"},html:(t,e)=>t.props.value},Xh={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 Qh={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=O=>{let{props:k}=O,L=k[".isActive"];if(L)return O.call("exec",L.name||L.icon)},l=(O,k,L)=>{let{semanticIcons:N}=L&&L.designSystem,{toCamelCase:D}=L&&L.utils,V=u(O,k),tt=D(V).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:V.split(".")[0].split(" ")[0],Et=N&&N[pt];if(Et){let Ut=V.includes(".")?"sfsymbols."+V.split(".").slice(1).join("."):"sfsymbols";return V=Et[Ut]||Et[V.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${V}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(O,k)=>{let{key:L,props:N}=O,D=O.call("exec",N.name||N.icon||L,O);return O.call("isString",D)&&D.includes("{{")&&(D=O.call("replaceLiteralsWithObjectFields",D)),O.call("isString",D)?D:L},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let S;n.isActive&&(S=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(S=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",S)&&S.includes("{{")&&(S=t.call("replaceLiteralsWithObjectFields",S));let E;s[S]&&(E=S),s[d]?E=d:s[h[0]+h[1]]?E=h[0]+h[1]:s[h[0]]?E=h[0]:a&&t.warn("Can't find icon:",p,E);let R=s[E],T=o&&o.props&&o.props.src||n.src;return{spriteId:i&&E,src:R||T||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Jh={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Zh={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Cl={};Nt(Cl,{default:()=>Ux,getActiveRoute:()=>vl,lastLevel:()=>Ui,lastPathname:()=>Mi,matchRoute:()=>xl,parseQuery:()=>_l,parseRoutePattern:()=>Sl,router:()=>ue,runGuards:()=>wl});v();v();v();v();v();var BS=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},MS=(t,e,r,n)=>{let o=Me(BS(t,e),e);if(y(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},tm=(t,e)=>{let{node:r,on:n}=t;for(let o in n)yo.has(o)||MS(o,t,r,e)};var em={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},bt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=em.en[t]);let s=o?`
34
+ `)},jb=t=>typeof t=="string"&&t.length>0&&!t.startsWith("/")&&!t.startsWith("http");function Vb(t,e){if(!e||typeof e!="object")return t;let r=o=>{if(!jb(o))return o;let s=e[o];return s?.src?s.src:o},n={...t};for(let[o,s]of Object.entries(n))typeof s=="string"?n[o]=r(s):Array.isArray(s)&&(n[o]=s.map(i=>typeof i=="string"?r(i):i));return n}function qs(t,e){if(!t||!e)return;let r=e.split("."),n=t;for(let o of r){if(n==null||typeof n!="object")return;n=n[o]}return n}function Wb(t,e,r){let o=(e.config||e.settings||{}).polyglot||e.polyglot,s=r?.lang||o?.defaultLang||"en",a=(o?.translations||{})[s]||{},c=r?.state||{},f={...t};for(let[l,u]of Object.entries(f))typeof u!="string"||!u.includes("{{")||(f[l]=u.replace(/\{\{\s*([^|{}]+?)\s*(?:\|\s*(\w+)\s*)?\}\}/g,(p,d,h)=>{let m=d.trim();if(h==="polyglot")return a[m]??qs(a,m)??p;if(h==="getLocalStateLang")return qs(c,m+s)??p;let S=qs(c,m);return S!==void 0?S:a[m]??qs(a,m)??p}));return f}function Hp(t){let e={...t};for(let[r,n]of Object.entries(e))if(typeof n=="function"){let o=n.toString(),s=o.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | getLocalStateLang }}`;continue}let i=o.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(i){e[r]=`{{ ${i[1]} | polyglot }}`;continue}let a=o.match(/s\.(\w+(?:\.\w+)+)/);if(a){e[r]=`{{ ${a[1]} }}`;continue}delete e[r]}else if(typeof n=="string"){let o=n.match(/el\.call\(\s*["']getLocalStateLang["']\s*,\s*["']([^"']+)["']\s*\)/);if(o){e[r]=`{{ ${o[1]} | getLocalStateLang }}`;continue}let s=n.match(/el\.call\(\s*["']polyglot["']\s*,\s*["']([^"']+)["']\s*\)/);if(s){e[r]=`{{ ${s[1]} | polyglot }}`;continue}if(n.includes("=>")&&n.includes("s.")){let i=n.match(/s\.(\w+(?:\.\w+)+)/);if(i){e[r]=`{{ ${i[1]} }}`;continue}}}return e}function Kp(t,e,r){let n=t.pages?.[e],o=g(n?.state)&&n?.state,s=n?.metadata||n?.helmet||o||{},i=Hp(s),a=new Set(Object.keys(i)),c=t.app?.metadata||{},f=Hp(c),l={};t.integrations?.seo?l={...t.integrations.seo,...f,...i}:Object.keys(f).length?l={...f,...i}:l={...i},l.title||(l.title=t.name+" / symbo.ls"||"Symbols demo"),l=Wb(l,t,r),l.title&&(a.has("title")||!l["og:title"])&&(a.has("og:title")||(l["og:title"]=l.title)),l.description&&(a.has("description")||!l["og:description"])&&(a.has("og:description")||(l["og:description"]=l.description)),l.title&&!l["twitter:title"]&&(l["twitter:title"]=l.title),l.description&&!l["twitter:description"]&&(l["twitter:description"]=l.description);let u=r?.actualPathname||e;if(l["og:url"]||l.url){let d=(l["og:url"]||l.url||"").replace(/\/$/,"");if(d&&u&&u!=="/"){let h=u.startsWith("/")?u:"/"+u;l["og:url"]=d+h}}l=Vb(l,t.files);let p=t.name||t.app?.metadata?.title||t.app?.name||"";for(let[d,h]of Object.entries(l))if(typeof h=="string"&&h.includes("{{")){let m=h.replace(/\{\{[^}]*\}\}/g,"").trim();m?l[d]=m:d==="title"?l[d]=p:delete l[d]}return l}var Yp=async t=>{try{await navigator.clipboard.writeText(t)}catch(e){console.warn("Failed to copy text: ",e)}},Xp=async t=>{try{let e=new Blob([t],{type:"text/javascript"}),r=new window.ClipboardItem({"text/plain":e});await navigator.clipboard.write([r]),console.log("JavaScript code copied to clipboard as text/javascript")}catch(e){console.error("Failed to copy JavaScript code: ",e)}},Qp=t=>t.replace(/[^a-zA-Z0-9_]/g,""),Hs=t=>t.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,r){return r===0?e.toLowerCase():e.toUpperCase()}).replaceAll(/\s+/g,""),Jp=t=>t&&t.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()),Gs=t=>t.replace(/[^a-zA-Z0-9]/g," ").trim().toLowerCase().replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,""),Zp=(t="")=>{if(typeof t!="string")return;let e=t.replace(/([A-Z])/g," $1");return e.charAt(0).toUpperCase()+e.slice(1)},Mr=t=>{if(x(t))return t;if(b(t))return t.split(" ");if(g(t))return Object.values(t);if(ct(t))return[t]};v();var Pc={};Nt(Pc,{CLASS:()=>_d,animation:()=>gd,breakpoints:()=>hd,color:()=>ad,devices:()=>md,document:()=>Gb,font:()=>ed,font_face:()=>od,font_family:()=>rd,font_family_types:()=>nd,gradient:()=>cd,grid:()=>xd,icons:()=>ud,media:()=>sd,reset:()=>wd,semantic_icons:()=>pd,sequence:()=>ve,shadow:()=>fd,spacing:()=>id,svg:()=>yd,svg_data:()=>bd,templates:()=>Sd,theme:()=>ld,timing:()=>dd,typography:()=>Ks,unit:()=>td,vars:()=>vd});var ve={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4};var td={default:"em"};var zb={browserDefault:16,base:16,type:"font-size",ratio:ve["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},Ks=zb;var ed={};var rd={},nd={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},od={};var sd={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var qb={base:Ks.base,type:"spacing",ratio:ve.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},id=qb;var ad={},cd={};var ld={};var fd={};var ud={},pd={};var Hb={default:150,base:150,type:"timing",ratio:ve["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},dd=Hb;var Gb={};var hd={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},md={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]};var gd={};var yd={},bd={};var Sd={};var Kb={},xd=Kb;var Yb={},_d=Yb;var wd={},vd={};var Cd={},Ed={},$n=Pc,Ln={},Xb=t=>t.replace(/_([a-z])/g,(e,r)=>r.toUpperCase()),Qb=t=>t.replace(/([A-Z])/g,"_$1").toUpperCase();for(let t in $n){let e=t.toLowerCase();Ln[e]=$n[t];let r=Xb(e);r!==e&&(Ln[r]=$n[t]),e!==t&&(Ln[t]=$n[t]);let n=Qb(t);n!==t&&(Ln[n]=$n[t])}var Ys={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",CSS_VARS:Cd,CSS_MEDIA_VARS:Ed,...Ln},Jb=j(Ys),Ce={active:"0",0:Ys},Zb=t=>(dt(t)&&(Ce.active=t),Ce[t||Ce.active]),C=t=>Ce[t||Ce.active]||Ys,Nc=t=>{if(g(t))return Ce.active="1",Ce[1]=W(t,j(Jb)),t};var Ee={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Dc=(t,e)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=t;e.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},e.scales[r]=s,e.vars[n]=s+e.unit},ke=t=>{if(!t.includes("("))return t;let e=t.split("(")[0],r=t.slice(t.indexOf("(")+1,t.lastIndexOf(")"));return[e,r]},Xs=(t,e)=>{let{base:r,type:n,unit:o}=e,s=(Dr(o)?1:r)+o;if(t===0)return s;let i="--"+(n&&n.replace(".","-")),a=`${i}-ratio`;if(t>0){let c=Ee[t-1];return`calc(var(${i}-${c}) * var(${a}))`}if(t<0){let c=Ee[t+1];return`calc(var(${i}-${c}) / var(${a}))`}},Fc=(t,e,r,n)=>{let{type:o}=n,i=t===2&&e.length===2?t+1:t,c=`${"--"+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${c+i}))`},Qs=(t,e)=>{let n=(t*e-t)/1.618,o=t*e-n,s=t+n,i=(o+s)/2;return[o,i,s]},Js=(t,e)=>Qs(t,e).map(r=>r/t),Zs=(t,e)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=t,f=~~(o*s)-~~o,l,[u,p,d]=Qs(o,s);f>16?l=[u,p,d]:l=[u,d],l.forEach((h,m)=>{let S=~~(h/n*1e3)/1e3,_=i+(m+1),w=a+(m+1)/10,E=Fc(m+1,l,i,e),R={key:r+(m+1),variable:_,value:h,scaling:S,scalingVariable:E,index:w};Dc(R,e)})},tS=(t,e,r)=>e*Math.pow(r,t),Wt=t=>{let{type:e,base:r,ratio:n,range:o,subSequence:s}=t,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e&&e.replace(".","-"))+"-";for(let c=0;c<=i;c++){let f=o[1]-c,l=Ee[f],u=tS(f,r,n),p=~~(u/r*100)/100,d=a+l,h=Xs(f,t),m={key:l,variable:d,value:u,base:r,scaling:p,scalingVariable:h,ratio:n,index:f};Dc(m,t),s&&Zs(m,t)}return t},kd=(t,e=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=t,i=b(e)?e:Ee[e],a=b(e)?Object.entries(Ee).find(([,m])=>m===e)?.[0]:e;if(!i)return console.warn(`Position ${e} is out of range in numToLetterMap`),null;let c={sequence:{},scales:{},vars:{},...t},f=n*Math.pow(o,a),l=~~(f/n*100)/100,p="--"+(r&&r.replace(".","-"))+"-"+i,d=Xs(a,t),h={key:i,variable:p,value:f,base:n,scaling:l,scalingVariable:d,ratio:o,index:a};return Dc(h,c),s&&Zs(h,c),c},ti=(t="A",e)=>{let r=C(),{unit:n}=r;if(b(t)&&rt(t))return`var(${t})`;let{sequence:o,unit:s=n.default,useVariable:i}=e,a=/^-?[a-zA-Z]/i,c=a.test(t);if(Fr.some(w=>t.includes(w))||!c||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(t))return t;let u=`--${Gs(e.type.replace(".","-"))}-`,p=t.toUpperCase(),d=p.slice(0,1)==="-"?"-":"",h=d?p.slice(1):p,m="";h.includes("_")&&(m="_"+h.split("_")[1].toLowerCase(),h=h.split("_")[0]);let S=w=>a.test(w)?`var(${u}${w}${m})`:w;if(h.includes("+")){let[w,E]=h.split("+"),R=`${S(w)} + ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("*")){let[w,E]=h.split("*"),R=`${S(w)} * ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}else if(h.includes("-")){let[w,E]=h.split("-"),R=`${S(w)} - ${S(E)}`;return d?`calc((${R}) * -1)`:`calc(${R})`}if(!o[h]&&h.length===2&&(r.verbose&&console.warn(h,"- value is not found because `subSequence` is set to false"),h=h.slice(0,1)),i||r.useVariable){let w=`var(${u}${h}${m})`;return d?`calc(${w} * -1)`:w}let _=o?o[h]:null;return _?s==="ms"||s==="s"?d+_.val+s:d+_.scaling+s:console.warn("can't find",o,h)},$c=(t,e)=>{let r=["+","-","*","/",","].filter(n=>t.includes(n+" "));return r.length?r.map(n=>t.split(n+" ").map(i=>i.trim()).map(i=>ti(i,e)).join(" "+n+" ")).join(""):t},ce=(t,e,r,n)=>{if(typeof t!="string")return C().verbose&&console.warn(e,t,"is not a string"),{[e]:t};if(t==="-"||t==="")return{};if(!n&&t.includes("(")){let s=ke(t);n=s[0],t=s[1]}return["+","-","*","/",","].filter(s=>t.includes(s+" ")).length?t=$c(t,r):t=ti(t,r),{[e]:n?`${n}(${t})`:t}},Lc=(t,e)=>Ee[t-e],ei=t=>{let{h1Matches:e,sequence:r}=t;return new Array(6).fill(null).map((n,o)=>{let s=Lc(e,o);return r[s]})};v();var Ad=(t,e)=>{let r=C(),{CSS_VARS:n}=r;I(t.value)||(n[t.var]=t.value)},ri=(t,e,r)=>{let n=C(),{unit:o}=n,s=e.unit||o.default,{base:i,ratio:a,type:c}=e,f="--"+(c&&c.replace(".","-"));t[`${f}-base`]=i,t[`${f}-unit`]=s;let l=`${f}-ratio`;t[l]=a;let[u,p,d]=Js(i,a);t[`${f}-sub-ratio-1`]=`calc(var(${f}-ratio) * ${u/a})`,t[`${f}-sub-ratio-2`]=`calc(var(${f}-ratio) * ${p/a})`,t[`${f}-sub-ratio-3`]=`calc(var(${f}-ratio) * ${d/a})`},Ae=(t,e={})=>{let r=C(),{unit:n,timing:o,CSS_VARS:s}=r,i=t.unit||n.default,{mediaRegenerate:a,sequence:c,scales:f}=t;a||ri(s,t,e);for(let l in c){let u=c[l],p=(t.type===o.type?c[l].val:f[l])+i;if(!a){s[u.variable+"_default"]=p,s[u.variable]=u.scalingVariable;continue}e.useDefault===!1?s[u.variable]=p:(s[u.variable+"_default"]=p,s[u.variable]=`var(${u.variable+"_default"})`)}},tr=(t,e,r={})=>{let n=C(),{unit:o,media:s,CSS_VARS:i}=n,a=e.slice(1),c=t.unit||o.default,{mediaRegenerate:f}=t,{sequence:l,scales:u}=t[e],p=s[a];if(!p&&n.verbose&&console.warn("Can't find media query ",p),!f){let d=i[`@media ${p}`];d||(d=i[`@media ${p}`]={}),ri(d,t[e],r);return}for(let d in l){let h=l[d],m=(Dr(c)?u[d]:l[d].val)+c;!p&&n.verbose&&console.warn("Can't find query ",p);let S=i[`@media ${p}`];S||(S=i[`@media ${p}`]={}),S[h.variable]=`var(${h.variable+"_"+a})`,i[h.variable+"_"+a]=m}};v();var eS=gr(),Bn=t=>{let e=C(),r="";for(let n in t)e.__svg_cache[n]||(e.__svg_cache[n]=!0,r+=t[n]);return r},rS=t=>{let e=t.default||t;if(!b(e)){eS&&console.warn("parseRootAttributes:",e,"is not a string");return}let r=e.match(/<svg\s+(.*?)>/);return!r||!r[1]?{}:r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm).reduce((s,i)=>{let[a,c]=i.split("=");return s[a]=c.replace(/['"]/g,""),s},{})},nS=(t,e)=>{let r=/id="([^"]*)"/,n=/url\(#([^)]*)\)/g,o=t.match(/id="([^"]*)"/g),s=t;return x(o)&&o.forEach(()=>{let i=Math.floor(Math.random()*1e5);s=t.replace(r,`id="${e}-${i}"`).replace(n,`url(#${e}-${i})`)}),s},ni=(t,e)=>{let r=rS(e),{width:n,height:o}=r,s=r.viewBox||`0 0 ${n||24} ${o||24}`,c=nS(e,t).replace("<svg",`<symbol id="${t}" xmlns="http://www.w3.org/2000/svg" viewBox="${s}"`);return c=c.replace(/width="[^"]*"/,""),c=c.replace(/height="[^"]*"/,""),c=c.replace("</svg","</symbol"),c};var Vn={};Nt(Vn,{appendSVGSprite:()=>bi,appendSvgIconsSprite:()=>xi,applyDocument:()=>yi,applyHeadings:()=>jc,applyReset:()=>_i,applySpacingSequence:()=>di,applyTimingSequence:()=>gi,applyTypographySequence:()=>fi,checkIfBoxSize:()=>pi,getColor:()=>Q,getFontFamily:()=>li,getFontSizeByKey:()=>ui,getMediaColor:()=>Ct,getMediaTheme:()=>zt,getShadow:()=>mi,getSpacingBasedOnRatio:()=>Oe,getSpacingByKey:()=>at,getTheme:()=>si,getTimingByKey:()=>Lt,getTimingFunction:()=>It,runThroughMedia:()=>Uc,setColor:()=>rr,setFont:()=>ci,setFontFamily:()=>Un,setGradient:()=>nr,setMediaTheme:()=>ai,setSVG:()=>jn,setShadow:()=>or,setSvgIcon:()=>Si,setTheme:()=>ii,splitSpacedValue:()=>hi});v();var Q=(t,e,r)=>{let n=r||C();if(!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;e&&t[e]&&(t=t[e]);let o,s,i;if(x(t))[o,s,i]=t;else{let u=Xe(t);if(!u){let{color:p,gradient:d}=n,h=d[t]||p[t];return h?n.useVariable?`var(${h.var})`:h.value:t}if(u.passthrough)return u.passthrough;if(u.cssVar)return`var(${u.cssVar})`;o=u.name,s=u.alpha,i=u.tone}let{color:a,gradient:c}=n,f=a[o]||c[o];if(!f)return n.verbose&&console.warn("Can't find color ",o),t;e&&(f[e]?f=f[e]:n.verbose&&console.warn(t," - does not have ",e));let l=f.rgb;return l?(i&&!f[i]&&(l=$r(l,i),f[i]={rgb:l,var:`${f.var}-${i}`}),f[i]&&(l=f[i].rgb),s?`rgba(${l}, ${s})`:i?`rgba(${l}, 1)`:n.useVariable?`var(${f.var})`:`rgb(${l})`):n.useVariable?`var(${f.var})`:f.value},Ct=(t,e,r)=>{let n=r||C();if(e||(e=n.globalTheme==="auto"?null:n.globalTheme),!b(t)){n.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let o;if(x(t))o=t[0];else{let f=Xe(t);if(!f)return t;if(f.passthrough)return f.passthrough;if(f.cssVar)return`var(${f.cssVar})`;o=f.name}let{color:s,gradient:i}=n,a=s[o]||i[o],c=g(a);if(c&&a.value)return Q(t,`@${e}`,r);if(c){if(e)return Q(t,`@${e}`,r);{let f={};for(let l in a){let u=n.media[l.slice(1)],p="@media "+(u==="print"?`${u}`:`screen and ${u}`);f[p]=Q(t,l,r)}return f}}else return n.verbose&&console.warn("Can't find color",t),t},rr=(t,e,r)=>{let n=C();if(b(t)&&rt(t)){let d=t.slice(2);if(t=Q(d),!(t.includes("rgb")||t.includes("var")||t.includes("#"))){let h=d.split(" "),m=n.color[h[0]];if(m&&m.value){let S=m.rgb,_=h[1]!==void 0?h[1]:"1",w=h[2];w&&(S=$r(S,w)),t=`rgba(${S}, ${_})`}else{let S=h[2],_=h[1]!==void 0?h[1]:"1";if(S)try{let w=ie(h[0]);w&&w.length>=3?t=`rgba(${$r(w.slice(0,3).join(", "),S)}, ${_})`:t=h[0]}catch{t=h[0]}else t=h[0]}}}if(x(t))return{"@light":rr(t[0],e,"light"),"@dark":rr(t[1],e,"dark")};if(g(t)){let d={};for(let h in t)d[h]=rr(t[h],e,h.slice(0,1)==="@"?h.slice(1):h);return d}let o=`--color-${e}`+(r?`-${r}`:""),s=ie(t.value||t),[i,a,c,f=1]=s,l=parseFloat(f.toFixed(2)),u=`${i}, ${a}, ${c}`,p=`rgba(${u}, ${l})`;return n.useVariable&&(n.CSS_VARS[o]=p),{var:o,rgb:u,alpha:l,value:p}},nr=(t,e,r)=>{let n=C();if(b(t)&&rt(t)&&(t=Q(t.slice(2))),x(t))return{"@light":nr(t[0],e,"light"),"@dark":nr(t[0],e,"dark")};if(g(t)){let s={};for(let i in t)s[i]=nr(t[i],e,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--gradient-${e}`+(r?`-${r}`:"");return n.useVariable&&(n.CSS_VARS[o]=t.value||t),{var:o,value:t.value||t}};v();var oi=t=>{let e={},{state:r,media:n,helpers:o,...s}=t;return Object.keys(s).map(a=>{let f=["color","Color","background","border"].some(l=>a.includes(l));return e[a]=f?Q(t[a]):t[a]}),e},Mn=t=>(t.value||(t.value=oi(t)),t.value),si=(t,e)=>{let r=C();if(r.useVariable)return zt(t,e);let n=r.theme;if(b(t)){let[o,s]=t.split(" "),i=n[o];if(i){if(!s&&!e)return Mn(i);t=[o,s||e]}}if(I(t)&&t[1]){let o=t[0],s=t[1],{helpers:i,media:a,state:c}=n[o];if(a&&a[s])return Mn(a[s]);if(i&&i[s])return Mn(i[s]);if(c&&c[s])return Mn(c[s])}else if(g(t))return oi(t)},oS=(t,e,r)=>{if(g(e))t.variants.inverse.value=oi(e);else if(e===!0){let{color:n,background:o}=r;t.variants.inverse={value:{color:o,background:n}}}},sS=(t,e,r,n)=>{let o=si(r);n[`&:${e}`]=o,g(r)&&!r.value&&(r.value=o)},iS=(t,e)=>{let{state:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return sS(t,o,s,e),t}),t):void 0},aS=(t,e,r,n)=>{let o=si(r);n[`@media (prefers-color-scheme: ${e})`]=o,g(r)&&!r.value&&(r.value=o)},cS=(t,e)=>{let{media:r}=t;return r?(Object.keys(r).map(o=>{let s=r[o];return(o==="dark"||o==="light")&&aS(t,o,s,e),o==="inverse"&&oS(t,s,e),t}),t):void 0},lS=(t,e)=>{let r=C(),{helpers:n}=t;return n?(Object.keys(n).map(s=>{let i=n[s];return b(i)?n[s]=r.theme[i]:Mn(n[s]),t}),t):void 0},ii=(t,e)=>{if(C().useVariable)return ai(t,e);let{state:n,media:o,helpers:s}=t,i=oi(t,e),a=`--theme-${e}`;return iS(t,i),cS(t,i),lS(t,i),{var:a,value:i,state:n,media:o,helpers:s}};var Bc=(t,e,r)=>{let{CSS_VARS:n}=r;r.CSS_MEDIA_VARS||(r.CSS_MEDIA_VARS={});let o=r.CSS_MEDIA_VARS,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in t)if(t[c])for(let f of Object.keys(t[c]))a.add(f);for(let c of a){let f=c.slice(0,1),l=Object.values(t).some(u=>I(u?.[c]));if(f==="."&&l){let u=c.slice(1),p={};for(let d in t)I(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Bc(p,`${e}-${u}`,r)}else if(f===":"&&l){let u=c.replace(/^:+/,""),p={};for(let d in t)I(t[d]?.[c])&&(p[d]=t[d][c]);i[c]=Bc(p,`${e}-${u}`,r)}else if(f!=="@"&&f!=="."&&f!==":"){let u=`--theme-${e}-${c}`;if(s==="auto")for(let p in t){let d=t[p]?.[c];if(d===void 0)continue;let h=Q(d,`@${p}`);if(h===void 0)continue;let m=`[data-theme="${p}"]`;if(o[m]||(o[m]={}),o[m][u]=h,p==="dark"||p==="light"){let S=`@media (prefers-color-scheme: ${p})`;o[S]||(o[S]={}),o[S][u]=h}}else{let p=String(s).replace(/^'|'$/g,""),d=t[p]?.[c];if(d!==void 0){let h=Q(d,`@${p}`);h!==void 0&&(n[u]=h)}}i[c]=`var(${u})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},ai=(t,e,r,n)=>{let o=C(),{CSS_VARS:s}=o,i={value:t},a=!r&&!n;if(I(t)){if(a&&o.useVariable){let c={};for(let f in t)f.startsWith("@")&&I(t[f])&&(c[f.slice(1)]=t[f]);if(Object.keys(c).length){let f=Bc(c,e,o);Object.assign(i,f)}}for(let c in t){let f=c.slice(0,1),l=t[c];if(f==="@"||f===":"||f==="."){let u=f==="@"&&c;i[c]=ai(l,e,c,n||u)}else if(!a){let u=Q(l,n),p=[...new Set([n,r].filter(m=>m).map(m=>m.slice(1)))],d=p.length?"-"+p.join("-"):"",h=`--theme-${e}${d}-${c}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=u),i[c]=`var(${h})`):i[c]=u,i[`.${c}`]={[c]:i[c]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(b(t)&&rt(t)){let f=o.theme[t.slice(2)];return zt(f,n)}return i},Mc=t=>{let e=C(),r={};for(let n in t){let o=n.slice(0,1);if(I(t[n])){if(o==="@")continue;o===":"?r[`&${n}`]=Mc(t[n]):o==="."&&(r[`&${n}`]=Mc(t[n]))}else r[n]=t[n]}return r},Td=(t,e)=>{let r=e.shift();return t[r]?Td(t[r],e):t},Od=(t,e)=>x(e)?Td(t,e):b(e)&&t[e]?t[e]:t;var zt=(t,e)=>{let r=C();if(b(t)&&rt(t)&&(t=zt(t.slice(2))),!t||!b(t)){r.verbose&&console.warn(`${t} - Theme is not a string`);return}let[n,...o]=x(t)?t:t.split(" "),s=r.theme[n];return s&&o.length?s=Od(s,o):s&&e&&(s=Od(s,e)),Mc(s)};v();var ci=(t,e)=>{let r=C(),n=`--font-${e}`;if(!t||x(t)&&!t[0])return;let o;if(t.isVariable){let s=Vt(t.url,r.files)||t.url;Pn(s)?o=Nn(s):o=Je(e,s,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}else if(t[0])o=Br(e,t,r.files);else{let s=Array.isArray(t.url)?t.url.map(i=>Vt(i,r.files)||i):Vt(t.url,r.files)||t.url;o=Je(e,s,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})}return{var:n,value:t,fontFace:o}},li=(t,e)=>{let r=C(),{font_family:n}=r;return Lr(e||n,t)},Un=(t,e)=>{let r=C(),{font_family:n,font_family_types:o}=r,{value:s,type:i}=t;t.isDefault&&(n.default=e),g(s)&&(s=Mr(s));let a=`--font-family-${e}`,c=`${s.join(", ")}, ${o[i]}`;return{var:a,value:c,arr:s,type:i}};v();var Uc=t=>{let e=C(),{typography:r,media:n}=e;for(let o in t){let s=o.slice(0,1)==="@",i=t[o];if(!s)continue;let{mediaRegenerate:a}=t,c=o.slice(1),{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m}=t;Y(i,{type:f,base:l,ratio:u,range:p,subSequence:d,h1Matches:h,unit:m});let S=n[c],_="@media "+(S==="print"?`${S}`:`screen and ${S}`);if(r.templates[_]={fontSize:i.base/r.browserDefault+m},!a){tr(t,o);continue}Y(i,{sequence:{},scales:{},templates:{},vars:{}}),Wt(i),tr(t,o)}},jc=t=>{let e=C();if(t.h1Matches){let r=t.unit,n=ei(t),{templates:o}=t;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:e.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:t.lineHeight,letterSpacing:a?a.letterSpacing:t.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},fi=()=>{let t=C(),{typography:e}=t;Wt(e),jc(e),Ae(e),Uc(e)},ui=t=>{let e=C(),{typography:r}=e;return ce(t,"fontSize",r)};v();var fS=t=>{for(let e in t){let r=t[e];if(!(e.slice(0,1)==="@"))continue;let{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l}=t;Y(r,{type:o,base:s,ratio:i,range:a,subSequence:c,h1Matches:f,unit:l,sequence:{},scales:{},templates:{},vars:{}}),Wt(r),tr(t,e)}},pi=t=>{let e=t.toLowerCase(),r=e.includes("width")||e.includes("height"),n=e.includes("border")||e.includes("outline");return r&&!n},di=()=>{let t=C(),{spacing:e}=t;Wt(e),Ae(e),fS(e)},uS=t=>{let e=C(),{spacing:r}=e;return!t||!t.sequence?r:Object.keys(t.sequence).length>0?t:Wt(t)},at=(t,e="padding",r,n)=>{let o=uS(r);if(b(t)&&!n&&t.includes("(")){let i=ke(t);n=i[0],t=i[1]}let s=n?[t]:Mr(t);if(x(s)){if(s.length>1){let i="";e==="borderWidth"&&(e="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},c=(f,l)=>ce(s[l],e+f+i,o,n);return a[s.length].map((f,l)=>c(f,l))}return ce(t,e,o,n)}},Oe=(t,e,r,n)=>{let o=C(),{spacing:s}=o,i=r||t[e];if(!n&&b(i)&&i.includes("(")){let a=ke(i);n=a[0],i=a[1]}if(t.spacingRatio){let a=applyCustomSequence(t);return at(i,e,a,n)}return at(i,e,s,n)},hi=t=>{let e=r=>{let n=["+","-","*","/"].includes(r),o=Fr.some(i=>t.includes(i));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return t.split(",").map(r=>r.trim()).map(e).join(",").split(" ").map(e).join(" ")};v();var or=(t,e,r,n)=>{let o=C();if(x(t))return{"@light":or(t[0],e,"light"),"@dark":or(t[1],e,"dark")};if(g(t)){let i={};for(let a in t)i[a]=or(t[a],e,a.startsWith("@")?a.slice(1):a);return i}b(t)&&!Zt.test(t)&&(t=Qe(t).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let c=Q(a);if(ae(c))return c;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let f=at(a,"shadow");return f&&f.shadow?f.shadow:a}).join(" "))).join(", "));let s=`--shadow-${e}`+(r?`-${r}`:"");return o.useVariable&&(o.CSS_VARS[s]=t),{var:s,value:t}},mi=(t,e)=>{let r=C();if(e||(e=r.globalTheme),!b(t)){r.verbose&&console.warn(t,"- type for color is not valid");return}if(rt(t))return`var(${t})`;let[n]=x(t)?t:t.split(" "),s=r.shadow[n],i=g(s);if(!s)return r.verbose&&console.warn("Can't find color ",n),t;if(e){if(s[e])return s[e].value;r.verbose&&console.warn(t," - does not have ",e)}if(i&&s.value)return s.value;if(i){let a={};for(let c in s){let f=r.media[c.slice(1)],l="@media "+(f==="print"?`${f}`:`screen and ${f}`);a[l]=s.value}return a}return r.verbose&&console.warn("Can't find color",t),t};var gi=()=>{let t=C(),{timing:e}=t;Wt(e),Ae(e)},It=t=>{let e=C(),{timing:r}=e;return r[t]||r[Hs(t)]||t},Lt=(t,e="timing")=>{let r=C(),{timing:n}=r;return ce(t,e,n)};v();var yi=()=>{let t=C(),{document:e,font_family:r,theme:n,typography:o}=t;return Y(e,{theme:n.document,fontFamily:Lr(r),fontSize:o.base,lineHeight:o.lineHeight})};v();var Vc={document:B},jn=(t,e)=>{let r=C();if(!t){r.verbose&&console.warn("setSVG: val is not defined",e);return}return r.useSvgSprite?ni(e,t):t},bi=(t,e=Vc)=>{let r=C(),n=Object.keys(t).length?{}:r.svg;for(let o in t)n[o]=r.svg[o];Id(n,e)},Si=(t,e)=>{let r=C();return r.useIconSprite&&!r.semantic_icons?.[e]?jn(t,e):t},xi=(t,e=Vc)=>{let r=C(),n=Object.keys(t).length?{}:r.icons;for(let o in t)n[o]=r.icons[o];Id(n,e)},Rd=(t={isRoot:!0})=>{if(!B||!B.createElementNS)return;let e=B.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(e.setAttribute("aria-hidden","true"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.setAttribute("style","position:absolute"),e.setAttribute("id","svgSprite")),e},Id=(t,e=Vc)=>{let r=C(),n=e.document||B;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),Bn(t);let o=n.querySelector("#svgSprite"),s=Bn(t);if(o){let i=Rd({isRoot:!1});i.innerHTML=s,o.append(...i.children)}else{let i=Rd();i&&i.nodeType&&(i.innerHTML=s,n.body.prepend(i))}};v();var _i=(t={})=>{let e=C(),{reset:r,typography:n,document:o}=e;if(r){if(r[":root"]){let c=r,f=n.templates;c.body={...e.useDocumentTheme?zt("document"):{},...f.body},c.h1=f.h1,c.h2=f.h2,c.h3=f.h3,c.h4=f.h4,c.h5=f.h5,c.h6=f.h6}let{body:s,...i}=n.templates,a=e.useDocumentTheme?zt("document"):{};return r.html&&it(r.html,a),W(Y(r,t),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+e.unit.default,...i,...s},a:{color:"currentColor"},fieldset:{border:0,padding:0,margin:0},"select, input":{fontFamily:o.fontFamily}})}};v();var pS=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),dS=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),hS=t=>pS.has(t),le=t=>{let e=t+"";if(Zt.test(e))return e;let r=e.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?e:e.split(/\s+/).map(o=>{if(o=o.trim(),!o)return"";if(rt(o))return`var(${o})`;if(hS(o)||/^\d/.test(o)||o==="0")return o;let s=Q(o);if(ae(s))return s;let i=at(o,"border");return i&&i.border?i.border:o}).join(" ")},Wc=t=>Zt.test(t)?t:t.split(/\s+/).map(e=>{if(e=e.trim(),!e)return"";if(rt(e))return`var(${e})`;if(/^\d/.test(e)||e.includes("px")||e==="0")return e;let r=Q(e);return ae(r)?r:e}).join(" "),zc=(t,e)=>mi(t,e),wi=(t,e)=>Zt.test(t)?t:Qe(t).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(rt(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Q(n);if(ae(o)){let i=Ct(n,e);return g(i)?Object.values(i).filter(a=>a.includes(": "+e))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=at(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),vi=(t,e)=>{let r=t.indexOf("(");if(r===-1)return t;let n=t.slice(0,r+1),o=t.slice(r+1,t.lastIndexOf(")")),s=")",a=Qe(o).map(c=>(c=c.trim(),c.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||dS.has(l)||l==="transparent"||Zt.test(l))return l;let u=Q(l);return ae(u)?u:l}).join(" ")));return n+a.join(", ")+s},qc=(t,e)=>{let r=C();return t.split(", ").map(n=>rt(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?vi(n,e):r.gradient[t]?{backgroundImage:Ct(t,e||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Xe(n)?`url(${n})`:n).join(" ")},Hc=t=>b(t)&&t.split(" ").map(e=>at(e,"gap").gap).join(" "),Pd=t=>{let e=t.split(" ");return e.length?e.map(r=>rt(r)?`var(${r})`:r.length<3||r.includes("ms")?Lt(r).timing||r:It(r)?It(r):r).join(" "):t},sr=(t,e,r)=>{if(b(t))return t.split(",").map(n=>Lt(n).timing||n).join(",")},Wn=t=>{let e=t.split(",");if(e.length)return e.map(Pd).join(",")};function nt(t,e,r={},n={}){let o=A.call(this,e||r[t]);if(o==null)return;let s;if(b(o)){if(o.includes("(")){let c=ke(o);s=c[0],o=c[1]}let i=r.scaleBoxSize,a=pi(t);!i&&a&&!n.ratio&&(o=hi(o))}return n.ratio?Oe(r,t,o,s):at(o,t,void 0,s)}var $=(t,e=null,r)=>nt(t,e,r,{ratio:!0}),Ci=(t,e,r)=>{if(b(t))return{borderRadius:t.split(" ").map((n,o)=>Oe(e,r,n)[r]).join(" ")}};v();var mS=(t,e)=>{let r=C(),{CSS_VARS:n}=r,o=e.startsWith("--")?e:`--${e}`;return n[o]=t,t},Bt=t=>t,Gc={color:rr,gradient:nr,font:ci,font_family:Un,fontfamily:Un,theme:ii,icons:Si,semantic_icons:Bt,semanticicons:Bt,svg:jn,svg_data:Bt,typography:Bt,shadow:or,spacing:Bt,media:Bt,grid:Bt,class:Bt,timing:Bt,reset:Bt,unit:Bt,animation:Bt,vars:mS},Nd=(t,e,r)=>{let n=C(),o=t.toLowerCase(),s=n[o]||n[t];if(Gc[o])try{let i=Gc[o](e,r);return s[r]=i,s}catch(i){n.verbose&&console.warn("Error setting",o,"value",e,r,i)}n.verbose&&console.warn("Can not find",o,"method in scratch")},Dd=(t,e)=>{let r=C(),n=t.toLowerCase();return Object.keys(e).forEach(s=>{try{return Nd(n,e[s],s)}catch(i){r.verbose&&console.warn("Error setting",n,"value",e[s],s,i)}}),r[n]||r[t]};var gS={},Ur=(t,e=gS)=>{let r=C(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:c,useIconSprite:f,globalTheme:l,useDocumentTheme:u,useDefaultConfig:p,semanticIcons:d,SEMANTIC_ICONS:h,semantic_icons:m,files:S,..._}=t;e.newConfig&&(r=Nc(e.newConfig)),S!==void 0&&(r.files=S),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),c!==void 0&&(r.useFontImport=c),a!==void 0&&(r.useSvgSprite=a),f!==void 0&&(r.useIconSprite=f),u!==void 0&&(r.useDocumentTheme=u),l!==void 0&&(r.globalTheme=l),t.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=t.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p);let w=d||h||m;w!==void 0&&(r.semantic_icons=w,r.semanticIcons=r.semantic_icons,r.SEMANTIC_ICONS=r.semantic_icons),r.verbose&&console.log(r),r.__svg_cache||(r.__svg_cache={});let E=Object.keys(_),R=new Set(E);if(E.forEach(T=>{let O=T.toLowerCase();O!==T&&R.has(O)&&W(_[O],_[T])}),E.map(T=>{let O=T.toLowerCase();if(!(O!==T&&R.has(O)))return Dd(T,_[T])}),_.typography||_.TYPOGRAPHY)try{fi()}catch(T){r.verbose&&console.warn("Error applying typography sequence",T)}if(_.spacing||_.SPACING)try{di()}catch(T){r.verbose&&console.warn("Error applying spacing sequence",T)}if(_.timing||_.TIMING)try{gi()}catch(T){r.verbose&&console.warn("Error applying timing sequence",T)}return yi(),_i(),r};var yS=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],bS=["none","forwards","backwards","both"],SS=["normal","reverse","alternate","alternate-reverse"],xS=["running","paused"],_S=t=>/^[\d.]+m?s$/.test(t),Kc=(t,e)=>{let{emotion:r}=e.context,{keyframes:n}=r||vt;if(g(t))return{animationName:n(t)};let{ANIMATION:o}=e.context&&e.context.designSystem,s=o[t];return n(s)},wS=(t,e)=>{let{ANIMATION:r}=e.context&&e.context.designSystem||{},n=t.split(/\s+/),o=null,s=[],i=null,a=null,c=null,f=null,l=null;for(let u of n)r&&r[u]?o=u:_S(u)?s.push(u):yS.includes(u)||u.startsWith("cubic-bezier")||u.startsWith("steps(")?i=u:u==="infinite"||/^\d+$/.test(u)?a=u==="infinite"?u:Number(u):SS.includes(u)?c=u:bS.includes(u)?f=u:xS.includes(u)?l=u:o||(o=u);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:c,fillMode:f,playState:l}},Yc={animation:(t,e)=>{if(b(t)&&t.includes(" ")){let r=wS(t,e);return{animationName:Kc(r.name||t,e),animationDuration:r.durations[0]||Lt(e.props.animationDuration||"A").timing,animationDelay:r.durations[1]||Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||It(e.props.animationTimingFunction||"ease"),animationFillMode:r.fillMode||e.props.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:e.props.animationIterationCount||1,animationPlayState:r.playState||e.props.animationPlayState,animationDirection:r.direction||e.props.animationDirection}}return{animationName:Kc(t,e),animationDuration:Lt(e.props.animationDuration||"A").timing,animationDelay:Lt(e.props.animationDelay||"0s").timing,animationTimingFunction:It(e.props.animationTimingFunction||"ease"),animationFillMode:e.props.animationFillMode||"both",animationIterationCount:e.props.animationIterationCount||1,animationPlayState:e.props.animationPlayState,animationDirection:e.props.animationDirection}},animationName:(t,e)=>({animationName:Kc(t,e)}),animationDuration:t=>({animationDuration:Lt(t).timing}),animationDelay:t=>({animationDelay:Lt(t).timing}),animationTimingFunction:t=>({animationTimingFunction:It(t)}),animationIterationCount:t=>({animationIterationCount:t}),animationFillMode:t=>({animationFillMode:t}),animationPlayState:t=>({animationPlayState:t}),animationDirection:t=>({animationDirection:t})};v();var Xc={show:(t,e,r,n)=>n.utils.exec(t,e,r)===!1&&{display:"none !important"},hide:(t,e,r,n)=>!!n.utils.exec(t,e,r)&&{display:"none !important"},height:(t,{props:e})=>$("height",t,e),width:(t,{props:e})=>$("width",t,e),boxSizing:t=>K(t)?{boxSizing:"border-box"}:{boxSizing:t},boxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("height",e),...nt("width",r||e)}},inlineSize:(t,{props:e})=>$("inlineSize",t,e),blockSize:(t,{props:e})=>$("blockSize",t,e),minWidth:(t,{props:e})=>$("minWidth",t,e),maxWidth:(t,{props:e})=>$("maxWidth",t,e),widthRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minWidth",e),...nt("maxWidth",r||e)}},minHeight:(t,{props:e})=>$("minHeight",t,e),maxHeight:(t,{props:e})=>$("maxHeight",t,e),heightRange:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minHeight",e),...nt("maxHeight",r||e)}},size:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...$("inlineSize",e),...$("blockSize",r||e)}},minBlockSize:(t,{props:e})=>$("minBlockSize",t,e),minInlineSize:(t,{props:e})=>$("minInlineSize",t,e),maxBlockSize:(t,{props:e})=>$("maxBlockSize",t,e),maxInlineSize:(t,{props:e})=>$("maxInlineSize",t,e),minSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("minInlineSize",e),...nt("minBlockSize",r||e)}},maxSize:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("maxInlineSize",e),...nt("maxBlockSize",r||e)}},borderWidth:(t,{props:e})=>$("borderWidth",t,e),padding:(t,{props:e})=>$("padding",t,e),scrollPadding:(t,{props:e})=>$("scrollPadding",t,e),paddingInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingInlineStart",e),...nt("paddingInlineEnd",r||e)}},paddingBlock:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("paddingBlockStart",e),...nt("paddingBlockEnd",r||e)}},paddingTop:(t,{props:e})=>$("paddingBlockStart",t,e),paddingBottom:(t,{props:e})=>$("paddingBlockEnd",t,e),paddingLeft:(t,{props:e})=>$("paddingInlineStart",t,e),paddingRight:(t,{props:e})=>$("paddingInlineEnd",t,e),paddingBlockStart:(t,{props:e})=>$("paddingBlockStart",t,e),paddingBlockEnd:(t,{props:e})=>$("paddingBlockEnd",t,e),paddingInlineStart:(t,{props:e})=>$("paddingInlineStart",t,e),paddingInlineEnd:(t,{props:e})=>$("paddingInlineEnd",t,e),margin:(t,{props:e})=>$("margin",t,e),marginInline:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{...nt("marginInlineStart",e),...nt("marginInlineEnd",r||e)}},marginBlock:(t,{props:e})=>{if(!b(e.marginBlock))return;let[r,n]=e.marginBlock.split(" ");return{...nt("marginBlockStart",r),...nt("marginBlockEnd",n||r)}},marginTop:(t,{props:e})=>$("marginBlockStart",t,e),marginBottom:(t,{props:e})=>$("marginBlockEnd",t,e),marginLeft:(t,{props:e})=>$("marginInlineStart",t,e),marginRight:(t,{props:e})=>$("marginInlineEnd",t,e),marginInlineStart:(t,{props:e})=>$("marginInlineStart",t,e),marginInlineEnd:(t,{props:e})=>$("marginInlineEnd",t,e),marginBlockStart:(t,{props:e})=>$("marginBlockStart",t,e),marginBlockEnd:(t,{props:e})=>$("marginBlockEnd",t,e),gap:t=>({gap:Hc(t)}),columnGap:(t,{props:e})=>Oe(e,"columnGap",t),rowGap:(t,{props:e})=>Oe(e,"rowGap",t),flexWrap:(t,{props:e})=>({display:"flex",flexFlow:(t||"row").split(" ")[0]+" "+e.flexWrap}),flexFlow:(t,{props:e})=>{let{reverse:r}=e;if(!b(t))return;let[n,o]=(t||"row").split(" ");return(t.startsWith("x")||t==="row")&&(n="row"),(t.startsWith("y")||t==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:t=>{if(!b(t))return;let[e,r]=t.split(" ");return{display:"flex",alignItems:e,justifyContent:r}},round:(t,{props:e})=>Ci(t||e.borderRadius,e,"round"),borderRadius:(t,{props:e})=>Ci(t||e.round,e,"borderRadius")};var Qc={fontSize:t=>ui(t)||t,fontFamily:t=>({fontFamily:li(t)||t}),fontWeight:t=>({fontWeight:t,fontVariationSettings:'"wght" '+t})};var Ei={overflow:t=>({overflow:t,scrollBehavior:"smooth"}),cursor:(t,e,r,n)=>{if(!t)return;let o=n.files&&n.files[t];return o&&o.content&&(t=`url(${o.content.src})`),{cursor:t}}};var Jc={inset:(t,e)=>{if(e.call("isNumber",t))return{inset:t};if(e.call("isString",t))return{inset:t.split(" ").map(r=>at(r,"k").k).join(" ")}},left:t=>at(t,"left"),top:t=>at(t,"top"),right:t=>at(t,"right"),bottom:t=>at(t,"bottom"),verticalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{top:e[0],bottom:e[1]||e[0]}},horizontalInset:t=>{if(typeof t!="string")return;let e=t.split(" ").map(r=>at(r,"k").k);return{left:e[0],right:e[1]||e[0]}}};v();var qt=({context:t,state:e})=>{let r=e?.root?.globalTheme||t.designSystem?.globalTheme;return r==="auto"?null:r},Zc={theme:(t,e)=>{let{props:r}=e;if(t)return r.themeModifier?zt(t,`@${r.themeModifier}`):zt(t)},color:(t,e)=>{let r=qt(e);if(t)return{color:Ct(t,r)}},background:(t,e)=>{let r=qt(e);if(t)return b(t)&&t.includes("gradient")?{background:vi(t,r)}:{background:Ct(t,r)}},backgroundColor:(t,e)=>{let r=qt(e);if(t)return{backgroundColor:Ct(t,r)}},backgroundImage:(t,e,r,n)=>{let o=qt(e);if(!t)return;let s=n.files&&n.files[t];return s&&s.content&&(t=s.content.src),{backgroundImage:qc(t,o)}},textStroke:t=>({WebkitTextStroke:Wc(t)}),outline:t=>({outline:le(t)}),outlineOffset:(t,{props:e})=>$("outlineOffset",t,e),border:t=>({border:le(t)}),borderColor:(t,e)=>{let r=qt(e);if(t)return{borderColor:Ct(t,r)}},borderTopColor:(t,e)=>{let r=qt(e);if(t)return{borderTopColor:Ct(t,r)}},borderBottomColor:(t,e)=>{let r=qt(e);if(t)return{borderBottomColor:Ct(t,r)}},borderLeftColor:(t,e)=>{let r=qt(e);if(t)return{borderLeftColor:Ct(t,r)}},borderRightColor:(t,e)=>{let r=qt(e);if(t)return{borderRightColor:Ct(t,r)}},borderLeft:t=>({borderLeft:le(t)}),borderTop:t=>({borderTop:le(t)}),borderRight:t=>({borderRight:le(t)}),borderBottom:t=>({borderBottom:le(t)}),shadow:(t,e)=>{let r=qt(e);if(t)return{boxShadow:zc(t,r)}},boxShadow:(t,e)=>{if(!b(t))return;let[r,n]=t.split("!importan"),o=qt(e),s=n?" !important":"";return{boxShadow:wi(r.trim(),o)+s}},textShadow:(t,{context:e})=>({textShadow:wi(t,e.designSystem.globalTheme)}),columnRule:t=>({columnRule:le(t)})};var tl={transition:t=>({transition:Wn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};v();var el={flow:(t,e)=>{let{props:r}=e,{reverse:n}=r;if(!b(t))return;let[o,s]=(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":"")+" "+(s||"")}},wrap:(t,{props:e})=>({display:"flex",flexWrap:t}),align:(t,{props:e})=>{let[r,n]=t.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}};var rl={area:t=>({gridArea:t}),template:t=>({gridTemplate:t}),templateAreas:t=>({gridTemplateAreas:t}),column:t=>({gridColumn:t}),columns:t=>({gridTemplateColumns:t}),templateColumns:t=>({gridTemplateColumns:t}),autoColumns:t=>({gridAutoColumns:t}),columnStart:t=>({gridColumnStart:t}),row:t=>({gridRow:t}),rows:t=>({gridTemplateRows:t}),templateRows:t=>({gridTemplateRows:t}),autoRows:t=>({gridAutoRows:t}),rowStart:t=>({gridRowStart:t}),autoFlow:t=>({gridAutoFlow:t})};var jr={...Yc,...Xc,...Qc,...Ei,...Ei,...Jc,...Zc,...tl,...el,...rl};var nl=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);v();var vS=(t,e,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=n.designSystem.media[t.slice(1)],s=Ht(e,r);return{[o?"@media "+(o==="print"?o:`screen and ${o}`):t]:s}},Fd=(t,e,r)=>({[t]:Ht(e,r)}),zn=(t,e,r)=>({[`&${t}`]:Ht(e,r)}),ol=(t,e)=>{let r=e.context?.cases?.[t];if(r!==void 0)return y(r)?r.call(e,e):!!r},CS=(t,e,r)=>{let n=t.slice(1),o=ol(n,r);if(o===void 0&&(o=!!r.props?.[n]),!!o)return Ht(e,r)},ES=(t,e,r)=>({[t]:e}),kS=(t,e,r)=>{let n=t.slice(1),o=r.props[n]===!0||r.state[n]||r[n];if(!o){let s=ol(n,r);s!==void 0&&(o=s)}if(o)return Ht(e,r)},AS=(t,e,r)=>{let n=t.slice(1),o=r.props[n]===!0||r.state[n]||r[n];if(!o){let s=ol(n,r);s!==void 0&&(o=s)}if(!o)return Ht(e,r)},sl=(t,e)=>Ht(t,e),il={"@":vS,":":zn,"[":zn,"*":zn,"+":zn,"~":zn,"&":Fd,">":Fd,$:CS,"-":ES,".":kS,"!":AS};var al=Le(),$d=(t,e,r)=>{let n={},o={},s=(i,a)=>{if(r.unpack){n={...n,...a};return}n[i]=a};for(let i in t){let a=t[i];if(i==="class"&&e.call("isString",t.class)){let c=a.split(" ");if(c.length){let f=e.context.designSystem.class,l=c.reduce((u,p)=>Y(u,f[p]),{});n.designSystemClass=l}}else if(i==="true"){let c=A(a,e);Y(n,sl(c,e))}else if(e.classlist[i]){let c=e.classlist[i],f=y(c)?c(e,e.state,e.context):c;f&&s(i,f),!al&&g(n[i])&&(n[i].label=i)}else if(jr[i]){let c=A(a,e);x(c)&&(c=c.reduce((l,u)=>Y(l,u),{}));let f=jr[i](c,e,e.state,e.context);x(f)&&(f=f.reduce((l,u)=>Y(l,u),{})),f&&s(i,f),!al&&g(n[i])&&(n[i].label=i)}else if(nl.has(i)){let c=A(a,e);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),s(i,{[i]:c}),!al&&g(n[i])&&(n[i].label=i)}else o[i]=a}return[n,o]},Ld=(t,e)=>{let r={};for(let n in t){let o=il[n.slice(0,1)];if(o){let s=o(n,t[n],e);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?it(r[i],s[i]):r[i]=s[i])}}return r},Ht=(t,e,r={unpack:!0})=>{let[n,o]=$d(t,e,r),s=Ld(o,e),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return oe(n,s);n._selectors=s}return n},OS=(t,e)=>{let r={};if(t.class)for(let n in t.class)r[n]=t.class[n](e);return r};v();var{css:TS}=vt,RS=(t,e)=>y(e)?e(t):TS(t);var Bd={transparent:"rgba(0, 0, 0, 0)",black:"black",white:"white",title:["--gray 1 -168","--gray 1 +168"],caption:["--gray 1 -68","--gray 1 +68"],paragraph:["--gray 1 -42","--gray 1 +42"],disabled:["--gray 1 -26","--gray 1 +26"],line:["--gray 1 -16","--gray 1 +16"]},Md={};var IS={primary:{"@dark":{color:"white",background:"blue"},"@light":{color:"white",background:"gradient-blue"}},secondary:{"@dark":{color:"white",background:"gray"},"@light":{color:"white",background:"gray"}},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light"},"@light":{color:"gray3",background:"gradient-dark"}}},PS={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},NS={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},dialog:{"@dark":{color:"white",background:"gray.92"},"@light":{color:"currentColor",background:"gray.1"}}},Ud={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...IS,...PS,...NS,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var jd={base:16,ratio:1.25,subSequence:!0,templates:{}};var Vd={ratio:1.618,subSequence:!0};var Wd={},zd={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif"}};var qd={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var Hd={base:150,ratio:1.333,unit:"ms",subSequence:!0};var ki={version:"0.0.1",color:Bd,gradient:Md,theme:Ud,typography:jd,spacing:Vd,font:Wd,font_family:zd,timing:Hd,media:qd,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var ar={};Nt(ar,{A:()=>Lm,Avatar:()=>Jm,B:()=>Rh,Block:()=>Gd,Box:()=>Ri,Br:()=>Dh,Button:()=>Um,ButtonSet:()=>zm,Caption:()=>_h,Checkbox:()=>Wh,CheckboxHgroup:()=>zh,CircleButton:()=>Vm,Clickable:()=>oh,Data:()=>Ph,Dialog:()=>Hm,DialogFooter:()=>Km,DialogHeader:()=>Gm,DropdownList:()=>tg,DropdownParent:()=>eg,DropdownParentFocus:()=>rg,DropdownSiblingFocus:()=>ng,FileIcon:()=>Zh,Flex:()=>Yd,Focusable:()=>sh,FocusableComponent:()=>ih,Footnote:()=>Th,Form:()=>eh,Grid:()=>Qd,Gutter:()=>Zd,H1:()=>hh,H2:()=>mh,H3:()=>gh,H4:()=>yh,H5:()=>bh,H6:()=>Sh,Headline:()=>Ah,Hgroup:()=>Bh,HgroupButton:()=>Uh,HgroupRows:()=>Mh,Hoverable:()=>nh,Hr:()=>Nh,I:()=>Ih,Icon:()=>Qh,IconButton:()=>qm,IconText:()=>Jh,Iframe:()=>rh,Img:()=>th,Inline:()=>Kd,InlineFlex:()=>Xd,InlineGrid:()=>Jd,Input:()=>jh,Italic:()=>Eh,KangorooButton:()=>Wm,Li:()=>Fh,Link:()=>El,Notification:()=>og,NumberInput:()=>Vh,Ol:()=>Lh,P:()=>xh,Picture:()=>fh,Radio:()=>qh,RadioHgroup:()=>Hh,Range:()=>Zm,RouteLink:()=>Bm,RouterLink:()=>kl,SHAPES:()=>ch,Select:()=>Mm,SquareButton:()=>jm,Strong:()=>wh,Subhead:()=>Oh,Svg:()=>uh,Text:()=>dh,Textarea:()=>Yh,TextareaWithButton:()=>Xh,Theme:()=>lh,Title:()=>kh,Toggle:()=>Gh,ToggleHgroup:()=>Kh,Tooltip:()=>Ym,TooltipHidden:()=>Xm,TooltipParent:()=>Qm,U:()=>vh,Ul:()=>$h,Underline:()=>Ch,Video:()=>ph,depth:()=>Oi,getSystemGlobalTheme:()=>Ti});var Gd={display:"block"},Kd={display:"inline"},Yd={display:"flex"},Xd={display:"inline-flex"},Qd={display:"grid"},Jd={display:"inline-grid"},Zd={boxSize:"C1"};var th={tag:"img",attr:{title:({props:t})=>t.title||t.alt}};var eh={tag:"form"};var rh={tag:"iframe",position:"relative",minWidth:"H",minHeight:"H"};var DS={appearance:"none",border:"none",cursor:"pointer",fontFamily:"inherit"},nh={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},oh={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},sh={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:({props:t})=>t.tabIndex}},ih={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:DS};var ah={transition:t=>({transition:Wn(t)}),transitionDuration:t=>({transitionDuration:sr(t)}),transitionDelay:t=>({transitionDelay:sr(t)}),transitionTimingFunction:t=>({transitionTimingFunction:It(t)}),transitionProperty:t=>({transitionProperty:t,willChange:t})};var Mt=C(),Oi={4:{boxShadow:`rgba(0,0,0,.10) 0 2${Mt.UNIT.default} 4${Mt.UNIT.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${Mt.UNIT.default} 6${Mt.UNIT.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${Mt.UNIT.default} 10${Mt.UNIT.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${Mt.UNIT.default} 16${Mt.UNIT.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${Mt.UNIT.default} 26${Mt.UNIT.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${Mt.UNIT.default} 42${Mt.UNIT.default}`}},Vr=({props:t})=>Q(t.shapeDirectionColor)||Q(t.borderColor)||Q(t.backgroundColor)||Q(t.background),Ai=({props:t,deps:e})=>{let r=ah.transition(t.transition,{props:t,deps:e});return r&&r.transition},ch={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:({props:t,deps:e})=>({position:t.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),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:({props:t,deps:e})=>({position:"relative","&:before":{content:'""',display:"block",background:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),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:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Vr({props:t,deps:e}),transition:Ai({props:t,deps:e}),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:({props:t,deps:e})=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Ai({props:t,deps:e}),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Vr({props:t,deps:e})} 25%, transparent 25%), linear-gradient(315deg, ${Vr({props:t,deps:e})} 25%, transparent 25%)`},"&:after":{background:Vr({props:t,deps:e}),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)"}}}};v();var Ti=({context:t,state:e})=>{let r=e&&e.root,n=r&&r.globalTheme||t.designSystem&&t.designSystem.globalTheme;return n==="auto"?null:n},lh={deps:{depth:Oi},classlist:{depth:({props:t,deps:e})=>!K(t.depth)&&e.depth[t.depth]}};var fh={deps:{getSystemGlobalTheme:Ti},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Ti},tag:"source",attr:{media:t=>{let{props:e,key:r,context:n,deps:o}=t,{media:s}=n.designSystem,i=o.getSystemGlobalTheme(t),a=(e.media||r).slice(1);return a===i?"(min-width: 0px)":a==="dark"||a==="light"?"(max-width: 0px)":s[a]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(t,e)=>t.parent.props?.src||t.parent.src||e.src}};var uh={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:t=>{let{props:e,context:r}=t;if(e.semantic_symbols)return;if(e.html)return t.call("exec",e.html,t);let{designSystem:n,utils:o}=r,s=n&&n.svg,i=e.spriteId||r.designSystem&&r.designSystem.useSvgSprite,a=t.call("exec",e.src,t);if(!i&&a)return a;let c=p=>`<use xlink:href="#${p}" />`,f=e.spriteId;if(f)return c(f);let l=Symbol.for(a),u=s[l];return u&&s[u]||(u=s[l]=Math.random(),a&&o.init({svg:{[u]:a}},{document:r.document,emotion:r.emotion})),c(u)}};var ph={tag:"video",controls:!0,childExtends:{tag:"source"}};var dh={},hh={tag:"h1"},mh={tag:"h2"},gh={tag:"h3"},yh={tag:"h4"},bh={tag:"h5"},Sh={tag:"h6"},xh={tag:"p"},_h={tag:"caption"},wh={tag:"strong",fontWeight:"700"},vh={tag:"u"},Ch={tag:"u"},Eh={tag:"i"},kh={},Ah={tag:"h6",fontSize:"B",fontWeight:500},Oh={tag:"span",fontSize:"Z1"},Th={tag:"span",fontSize:"Z"},Rh={tag:"b"},Ih={tag:"i"},Ph={tag:"data"};var FS=t=>{if(!t.context)return;let{props:e,__ref:r}=t,n=Ht(e,t,{unpack:!1});r.__class=n},Ri={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:FS},Nh={tag:"hr",margin:"C1 0"},Dh={tag:"br"},Fh={tag:"li"},$h={tag:"ul",childExtends:{extends:"Li"}},Lh={tag:"ol",childExtends:{extends:"Li"}};var Bh={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{margin:"0",color:"paragraph"}},Mh={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},Uh={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var jh={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:({props:t})=>t.pattern,minLength:({props:t})=>t.minlength,maxLength:({props:t})=>t.maxlength,name:({props:t})=>t.name,autocomplete:({props:t})=>t.autocomplete,placeholder:({props:t})=>t.placeholder,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e},checked:t=>t.call("exec",t.props.checked,t),disabled:({props:t})=>t.disabled||null,readonly:({props:t})=>t.readonly,required:({props:t})=>t.required,type:({props:t})=>t.type}};var Vh={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:({props:t})=>t.step,min:({props:t})=>t.min,max:({props:t})=>t.max}};var Wh={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:t=>t.call("exec",t.parent.props.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"}}},zh={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var qh={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}},Hh={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Gh={extends:"Checkbox",Input:{":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}},Kh={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Yh={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",round:"Z1",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",theme:"field",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"},html:(t,e)=>t.props.value},Xh={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 Qh={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},props:(t,e,r)=>{let{props:n,parent:o}=t,{icons:s,useIconSprite:i,verbose:a}=r&&r.designSystem,{toCamelCase:c}=r&&r.utils,f=O=>{let{props:k}=O,L=k[".isActive"];if(L)return O.call("exec",L.name||L.icon)},l=(O,k,L)=>{let{semanticIcons:N}=L&&L.designSystem,{toCamelCase:F}=L&&L.utils,V=u(O,k),tt=F(V).split(/([a-z])([A-Z])/g),pt=tt[1]?tt[0]:V.split(".")[0].split(" ")[0],Et=N&&N[pt];if(Et){let Ut=V.includes(".")?"sfsymbols."+V.split(".").slice(1).join("."):"sfsymbols";return V=Et[Ut]||Et[V.split(".")[0].split(" ")[0]],{tag:"span",semantic_symbols:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${V}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(O,k)=>{let{key:L,props:N}=O,F=O.call("exec",N.name||N.icon||L,O);return O.call("isString",F)&&F.includes("{{")&&(F=O.call("replaceLiteralsWithObjectFields",F)),O.call("isString",F)?F:L},p=u(t,e),d=c(p),h=d.split(/([a-z])([A-Z])/g),m=l(t,e,r);if(m)return m;let S;n.isActive&&(S=f(t));let _=o.props,w=_[".isActive"];o&&_&&_.isActive&&w&&w.icon&&(S=t.call("exec",w.icon||w.Icon.name||w.Icon.icon,t)),t.call("isString",S)&&S.includes("{{")&&(S=t.call("replaceLiteralsWithObjectFields",S));let E;s[S]&&(E=S),s[d]?E=d:s[h[0]+h[1]]?E=h[0]+h[1]:s[h[0]]?E=h[0]:a&&t.warn("Can't find icon:",p,E);let R=s[E],T=o&&o.props&&o.props.src||n.src;return{spriteId:i&&E,src:R||T||s.noIcon}},attr:{viewBox:"0 0 24 24"}},Jh={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:t=>{let{parent:e,props:r}=t;return t.call("exec",e.props.icon||r.name||r.sfSymbols||e.props.sfSymbols,t)},icon:t=>t.call("exec",t.parent.props.icon,t.parent)},text:({props:t})=>t.text},Zh={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Cl={};Nt(Cl,{default:()=>Bx,getActiveRoute:()=>vl,lastLevel:()=>Ui,lastPathname:()=>Mi,matchRoute:()=>xl,parseQuery:()=>_l,parseRoutePattern:()=>Sl,router:()=>ue,runGuards:()=>wl});v();v();v();v();v();var $S=(t,e)=>{let r=e.on?.[t];if(r)return r;let n=e.props;if(!n)return;let o="on"+t.charAt(0).toUpperCase()+t.slice(1);return n[o]},LS=(t,e,r,n)=>{let o=Me($S(t,e),e);if(y(o)){let{__ref:s}=e;s.__eventListeners||(s.__eventListeners={}),s.__eventListeners[t]&&r.removeEventListener(t,s.__eventListeners[t]);let i=a=>{let{state:c,context:f}=e;try{let l=o.call(e,a,e,c,f,n);l&&typeof l.then=="function"&&l.catch(u=>{e.error=u,console.error("[DOMQL] Async DOM event error:",u)})}catch(l){if(e.error=l,console.error("[DOMQL] DOM event error:",l),f?.strictMode)throw l}};s.__eventListeners[t]=i,r.addEventListener(t,i)}},tm=(t,e)=>{let{node:r,on:n}=t;for(let o in n)yo.has(o)||LS(o,t,r,e)};var em={en:{DocumentNotDefined:{title:"Document is undefined",description:"To tweak with DOM, you should use browser."},OverwriteToBuiltin:{title:"Overwriting to builtin method",description:"Overwriting a builtin method in the window define is not possible, please choose different name"},BrowserNotDefined:{title:"Can't recognize environment",description:"Environment should be browser application, that can run Javascript"},SetQuickPreferancesIsNotObject:{title:"Quick preferances object is required",description:'Please pass a plain object with "lang", "culture" and "area" properties'},InvalidParams:{title:"Params are invalid",description:'Please pass a plain object with "lang", "culture" and "area" properties'},CantCreateWithoutNode:{title:"You must provide node",description:"Can't create DOM element without setting node or text"},HTMLInvalidTag:{title:"Element tag name (or DOM nodeName) is invalid",description:"To create element, you must provide valid DOM node. See full list of them at here: http://www.w3schools.com/tags/"},HTMLInvalidAttr:{title:"Attibutes object is invalid",description:"Please pass a valid plain object to apply as an attributes for a DOM node"},HTMLInvalidData:{title:"Data object is invalid",description:"Please pass a valid plain object to apply as an dataset for a DOM node"},HTMLInvalidStyles:{title:"Styles object is invalid",description:"Please pass a valid plain object to apply as an style for a DOM node"},HTMLInvalidText:{title:"Text string is invalid",description:"Please pass a valid string to apply text to DOM node"},ElementOnStateIsNotDefined:{title:"Element on state is not defined",description:"Please check the element object"}}},bt=(t,e,r)=>{let o;t&&typeof t=="string"&&(o=em.en[t]);let s=o?`
35
35
 
36
36
  ${o.description}`:"",i=r?`
37
37
 
38
- ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var rm=t=>ye(t||"div")||bt("HTMLInvalidTag");var US=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},jS=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},nm=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(cl||!e)return;cl=!0;function r(){if(t.size===0){cl=!1;return}jS(t),e(r)}e(r)},om=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(US(t),nm(o))},cl=!1,sm=()=>{let t=new Set;return nm(t),t};v();var im=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=re(n.slice(2)),s=r[o],i=e[n];y(s)?r[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:r[o]=i}},am=t=>{let{on:e}=t,r=Be(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!y(o)&&!(r&&o!=null))continue;let s=re(n.slice(2)),i=e[s];y(i)?e[s]=(...a)=>{if(i(...a)!==!1&&y(o))return o(...a)}:e[s]=o}};v();var ll="http://www.w3.org/2000/svg",VS=t=>{let{tag:e,context:r}=t,n=r.document||B;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Ue.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ll)?n.createElementNS(ll,e):n.createElement(e):n.createElement("div")},fl=t=>{let{tag:e,key:r,props:n}=t;if(e=A(e,t),e===!0&&(e=r),g(n)&&b(n.tag)&&ye(n.tag))return n.tag;if(b(e)){if(ye(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ye(o))return o}return"div"},cm=t=>{let{context:e}=t,r=e.window||window,n=t.tag=fl(t);if(!rm(n))return bt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Ue.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ll)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=VS(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var WS=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},zS=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},HS=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},ul=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?HS:zS)(t.node,n.node||e.node):WS(t.node,e.node,t)),t};v();var Ii=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(y(o)&&!jt(n,t)){r.__exec[n]=o;try{let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}).catch(i=>{console.warn("[DOMQL] Async exec error in",n,":",i?.message||i)}):t[n]=s}catch(s){console.warn("[DOMQL] Exec error in",n,":",s?.message||s)}}}},lm=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=b(a)||ct(a);if(s?.node&&c)oe(s,{text:a});else if(a!==s)if(Rt(o)){let{extends:f,...l}=Wo(a,t,o);oe(s,l)}else n[o]=s,t[o]=a}return n},Pi=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(y(a)){let c=A(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&y(r[n])){e.__execProps[n]=r[n];let c=A(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},Ni=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(y(c)&&!jt(a,t)){n.__exec[a]=c;let l=A(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},fm=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=A(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function um(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(ur(t)("object")&&bt("HTMLInvalidAttr",t),t){let i=A(t,e);o.attr&&W(i,o.attr);for(let a in i){let c=A(i[a],e);b(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var pm=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},qS=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${A(o,e)}`)}return r},dm=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=qS(t,e)),t.replace(/\s+/g," ").trim()};v();function GS(t,e,r){if(t&&(e.props.data&&W(t,e.props.data),t.showOnNode)){g(t)||bt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=A(t[n],e))}}var hm=GS;v();function KS(t,e,r){let n=A(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var mm=KS;v();function YS(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=A(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else bt("HTMLInvalidStyles",t)}var gm=YS;v();function XS(t,e,r){let n=A(e.props.text||t,e);if(y(n)&&(n=A(n,e)),b(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Ue.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else Gt({tag:"string",text:n},e,"__text")}}var ym=XS;v();function QS(t,e,r){let n=A(t,e);if(g(n))for(let o in n)Ot.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var bm=QS;v();function JS(t,e,r){if(g(t))for(let n in t){let o=t[n];y(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Sm=JS;var fe={attr:um,style:gm,text:ym,html:mm,data:hm,classlist:dm,state:bm,scope:Sm,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Fi=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=A(e[t],e),{onlyUpdate:a}=r,c=fe[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){y(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var pl=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(x(t)&&x(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!pl(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!pl(t[a],e[a]))return!1}return!0}return t===e},xm=new Set([".","/","./"]),ZS=(t,e)=>{if(!b(t)||!e)return;if(xm.has(t))return e.parse?e.parse():e;let r=je(t,e);if(r){let o=t.replaceAll("~/","");return We(o,r)}let n=Ve(t,e);if(n){let o=t.replaceAll("../","");return We(o,n)}return We(t,e)};function tx(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=A(t,e,s),c=A(n,e,s);n=a||c;let f;if(n){if(dn(n)&&(i=i||"state",n=n.parse()),b(n)||ct(n)){let p=ZS(n,s);p!==void 0?(f=xm.has(n)?"":n,n=dn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return Rt(p)?$o(p,d):d})}}if(!n||ur(n)("array","object"))return;if(x(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?pl(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=j(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=j(n),o.__childrenCache=l),(g(n)||x(n))&&(n=l||j(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(dt(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=I(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Di=tx;var _m=process.env.NODE_ENV,wm=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=cm(t),z("attachNode",t,e)),(_m==="test"||_m==="development"||e.alowRefReference)&&(r.ref=t,y(r.setAttribute)&&r.setAttribute("key",t.key)),Pi(t),Ni(t),Ii(t),im(t),am(t),tm(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||jt(a,t)||g(fe[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Fi(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Gt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||z("lazyLoad",t,e)}):p()}}}let i=t.children?Di(t.children,t,e):t.children||t.content;return i&&Hn(i,t,e),t};v();var dl={key:":root",node:B?B.body:bt("DocumentNotDefined",B)},hl=dl;v();v();v();v();var vm={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},Cm=function(t,e=vm){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,vm),r.__element||bt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&_t("beforeStateUpdate",t,n,e)===!1?n:(ss(r,t,e),ex(r,t,e)||(rx(r,t,e),nx(r,t,e),e.preventStateUpdateListener||_t("stateUpdate",t,n,e)),r)},ex=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=He(n),f=ze(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=je(i,o.state),m=Ve(i,o.state),S=i.replaceAll("~/","").replaceAll("../",""),_=ns(S,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let E=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&E&&_t("stateUpdate",e,n,r),!0},rx=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},nx=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var ox=function(){let t=this;if(g(t)){let e={};for(let r in t)Ot.has(r)||(e[r]=t[r]);return e}else if(x(t))return t.filter(e=>!Ot.has(e))},sx=function(t={}){let e=this;for(let r in e)!Ot.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},ix=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(b(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(x(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},ax=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},cx=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},lx=function(t,e={}){let r=this;if(x(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},fx=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},ux=function(t,e={}){let r=this;return x(r)?fo(r,t):g(r)&&wo(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},px=function(t,e={}){let r=this,n=j(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},Em=function(t,e,r={}){let n=this,o=j(e);r.preventReplace||Eo(n,t,e);let s=vo(t,o);return r.preventStateUpdate?s:n.update(s,r)},dx=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=Em.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&ml.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},ml=function(t,e={}){let r=this;return Co(r,t),e.preventUpdate?t:r.update({},e)},hx=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)ml(t[n],{preventUpdate:!0});return r.update({},e)},mx=function(t,e={}){return ko(this,t)},gx=function(t={}){let e=this,r=j(e.parse());return e.set(r,{replace:!0,...t})},yx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},bx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.replace(n,e)}},Sx=function(t,e={}){let r=this;if(y(t))return t(r),r.update(r.parse(),{replace:!0,...e})},xx=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},_x=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},wx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},vx=function(t,e={}){return Object.keys(this)},Cx=function(t,e={}){return Object.values(this)},km=t=>{let e=t.state,r=t.__ref,n={clean:sx.bind(e),parse:ox.bind(e),destroy:ix.bind(e),update:Cm.bind(e),rootUpdate:cx.bind(e),parentUpdate:ax.bind(e),create:ir.bind(e),add:lx.bind(e),toggle:fx.bind(e),remove:ux.bind(e),apply:yx.bind(e),applyReplace:bx.bind(e),applyFunction:Sx.bind(e),set:px.bind(e),quietUpdate:xx.bind(e),replace:_x.bind(e),quietReplace:wx.bind(e),reset:gx.bind(e),parent:t.parent?.state||e,setByPath:Em.bind(e),setPathCollection:dx.bind(e),removeByPath:ml.bind(e),removePathCollection:hx.bind(e),getByPath:mx.bind(e),keys:vx.bind(e),values:Cx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};x(e)?pr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var ir=function(t,e,r){return t.state=Ex(t,e,r),t.state},Ex=function(t,e,r){let n=es(t);if(n===!1)return e.state||{};if(t.state=n,z("stateInit",t,r)===!1)return t.state;if(He(t)){let i=rs(t,e);t.state=K(i)?{}:i}let s=os(t,t.state||e.state||{});return s&&(t.state=s),km(t),z("stateCreated",t),t.state};v();v();var Am=[];var $i={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:Am},qn=function(t={},e){let r=g(e)?{...$i,...e}:{...$i},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Is(n,r);if(a)return;r.preventListeners||_t("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,$i),(b(t)||ct(t))&&(t={text:t}),t=Go.call(n,t),Ox(n,r)===!1)||Ax(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let N=c.props&&(c.props[l]||c.props.childProps),D=o.__propsStack.some(y),V=t.props||N||D;V&&Jo(V,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let D={...t,...n};if(Object.setPrototypeOf(D,Object.getPrototypeOf(n)),_t("beforeUpdate",t,D,r)===!1)return n}if(it(n,t),Pi(n),lm(n,{ignore:$i}),fm(n),!r.isForced&&!r.preventListeners&&z("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:S,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:E,preventUpdateListener:R,preventUpdateAfter:T,preventUpdateAfterCount:O}=r;if(T){if(ct(O)&&T<=O)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=x(m)?new Set(m):null,L=x(S)?new Set(S):null;for(let N in n){let D=n[N];if(!Object.prototype.hasOwnProperty.call(n,N))continue;let V=k&&k.has(N),Z=L&&L.has(N),tt=y(D)&&N.length>2&&N.charCodeAt(0)===111&&N.charCodeAt(1)===110&&N.charCodeAt(2)>=65&&N.charCodeAt(2)<=90;if(K(D)||V||Z||S===!0||S===N||w&&N==="state"||jt(N,n)||tt||g(fe[N]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Fi(N,n,r);if(pt){let{hasDefine:Et,hasContextDefine:Ut}=pt;if(!(g(D)&&!Et&&!Ut&&!E))continue;let pa=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(N,n,n.state,n.context);let st=t[N];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(N!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let da=r.onlyUpdate&&N===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},ha=()=>qn.call(D,st,da);pa?F.requestAnimationFrame(()=>{ha(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):ha()}}if(!_){let N=o.contentElementKey||"content",D=n[N],V=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(V){let Z=Di(V,n,e);if(Z&&!o.__noChildrenDifference)Hn(Z,n,r);else if(D?.__ref&&y(D.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>qn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});tt?F.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):pt()}}else if(D?.__ref&&y(D.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>qn.call(D,t[N],{...r,currentSnapshot:s,calleeElement:i});Z?F.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&Hn(Z,n,r)}}!R&&!r.preventListeners&&z("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},kx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},Ax=(t,e,r)=>{if(!y(t.if)&&!y(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=kx(t,e);delete t.__ref,delete t.parent;let c=Gt(t,e,t.key,lt.create,a);return r.preventUpdate!==!0&&t.on&&y(t.on.update)&&Sr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},Ox=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=ze(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&_t("beforeStateUpdate",i,t,e)===!1)return t;let a=Tx(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&_t("stateUpdate",a.parse(),t,e)},Tx=(t,e,r)=>{let n=t.state.__children,o=ir(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};ac();var gl=(t,e,r={})=>{let n={set:bl,reset:Om,update:qn,variables:As,remove:hs,updateContent:Tm,removeContent:yl,setProps:ms,lookup:us,lookdown:ps,lookdownAll:ds,getRef:gs,getDB:Ts,getPath:ys,getQuery:Rs,getRootState:bs,getRoot:Ss,getRootData:xs,getRootContext:_s,getContext:ws,setNodeStyles:wn,spotByPath:fs,parse:Cn,parseDeep:_r,keys:vn,nextElement:Es,previousElement:ks,log:vs,verbose:En,warn:Cs,error:wr,call:Os};t.context.methods&&(r.strict?Y:oe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var Rm=new Set(["class","style"]),Rx=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=n?.cssPropsRegistry,s=uc(e,r,o),i=pc(r,e,o),a={};for(let f in s)Rm.has(f)||(a[f]=vr[f]?vr[f]:s[f]);for(let f in i)Rm.has(f)||(a[f]=i[f]);let c=!1;for(let f in a){c=!0;break}c&&(t.attr?typeof t.attr=="object"&&(t.attr={...a,...t.attr}):t.attr=a)},Li=process.env.NODE_ENV,Gt=(t,e,r,n=lt.create||{},o)=>{Ix(n);let s=ts(t,e,r,n,dl);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Zo(s,a),jo(s,a,n),n.onlyResolveExtends?Dx(s,a,i,n):(un.call(s,s),z("start",s,n),Px(s,a,n),gl(s,a,n),hn(s,a),ir(s,a),yr(s,a),pn(s,a,n),br.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=fl(s)),Rx(s),yr(s,a),s.node&&c.__if?ul(s,a,i,o):(z("init",s,n)===!1||(z("beforeClassAssign",s,n),pm(s),Fx(s,a,n,o),Pm(s,a),z("complete",s,n)),s))},Ix=t=>{t&&!lt.create&&(lt.create=t,lt.create.context=t.context)},Px=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(lt.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},Pm=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},Nx=1,Im=new WeakMap,Fx=(t,e,r,n)=>{Im.has(t)&&(Li==="test"||Li==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),Im.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=Ao(o.path);o.__uniqId||a||(wm(t,r),o.__uniqId=Nx++)};if(Li==="test"||Li==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;ul(t,e,s,n),om(t,r),z("render",t,r),z("renderRouter",t,r),z("done",t,r),z("create",t,r)},Dx=(t,e,r,n)=>{let{__ref:o}=t;if(gl(t,e,n),hn(t,e),ir(t,e),yr(t,e),pn(t,e,n),br.call(t,t,{cachedKeys:[]}),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),Pm(t,e),t.tag!=="string"&&t.tag!=="fragment"){Ni(t),Ii(t);for(let s in t){if(K(t[s])||jt(s,t)||g(fe[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];if(!(!o.__skipCreate&&fe[s]&&!c)&&t[s]&&!i&&!c&&!a)try{Gt(A(t[s],t),t,s,n)}catch(f){console.warn("[DOMQL] onlyResolveExtends child error in",s,":",f?.message||f)}}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Bi=Gt;var Wr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Om(t){let e=this;Gt(e,e.parent,void 0,{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...t})}var Nm=(t,e,r)=>{let n=Wr(e,r);e[n]?.node&&yl(e,r);let o=Gt(t,e,n||"content",{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Tm=function(t,e){let r=this,n=Wr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function Hn(t,e,r){let n=A(t,e);n&&e&&bl.call(e,n,r)}var yl=function(t,e={}){let r=t||this,n=Wr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),y(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),y(o.remove)&&o.remove();delete r[n]}},bl=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return $x(t,e,n)}finally{o.__settingContent=!1}},$x=function(t,e,r){let{__ref:n}=r,o=Wr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&_o(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&_t("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&z("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{Nm(t,r,e),e.preventUpdateListener||z("lazyLoad",r,e)}):Nm(t,r,e)};var Dm=/^:(.+)/,$m=/^\*$/,Fm=new Map,Sl=t=>{let e=Fm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Dm);a?n.push({index:i,name:a[1]}):$m.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Fm.set(t,s),s},xl=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=Sl(f),u=Lx(o,l);u>a&&(a=u,i=f,c=Bx(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Lx=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Dm.test(r[i]))o+=1;else if($m.test(r[i]))o+=.5;else return-1;return o},Bx=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},_l=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},wl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},vl=(t=0,e=F.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Mi,Ui=0,Mx={level:Ui,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:B&&B.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},ue=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||F,i=o.context.document||B,a={...Mx,...o.context.routerOptions,...n};Ui=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Wr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=_l(d),S=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Mi;Mi=p;let E,R,T;if(a.useParamsMatching){let k=xl(p,o.routes,a.level);E=k.routePath,R=k.content,T=k.params}else E=vl(a.level,p),R=o.routes[E||"/"]||o.routes["/*"],T={};let O=a.scrollToNode?S:a.scrollNode;if(!R||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:E,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:E,params:T,query:m,hash:h,element:o,state:r},L=wl(a.guards,k);if(L===!1)return;if(typeof L=="string")return ue(L,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(d||"")+(h||""))}catch{}if(w||!_){let k={route:E,hash:h,debugging:!1};Object.keys(T).length&&(k.params=T),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let L=o.__ref?.origin?.content,N={};if(L)for(let D in L){let V=L[D];D==="__ref"||D==="props"||D==="node"||D==="parent"||D==="key"||(typeof V=="string"||typeof V=="number"||typeof V=="boolean"||typeof V=="object"&&V!==null&&!V.node&&!V.__ref)&&(N[D]=V)}o.set({...N,tag:a.useFragment&&"fragment",extends:R},{contentElementKey:f})}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k&&O?.scrollTo){let L=k.getBoundingClientRect().top+S.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:L,left:0})}}z("routeChanged",o,a)},Ux=ue;var El={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return _e(t,e.href)||_e(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},Lm={extends:"Link"},kl={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let S=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of S){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ue)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Bm={extends:[El,kl]};var Mm={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var Um={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.props.disabled)},jm={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Vm={extends:"SquareButton",round:"C"},Wm={extends:"Button",childExtends:"IconText"},zm={tag:"nav",display:"flex",childExtends:"SquareButton"},Hm={extends:["SquareButton","ClickableItem"],round:"Z"};var qm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Gm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Km={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};v();var Ym={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:({parent:t,props:e})=>dt(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},Xm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!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"}}:({props:e})=>e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{}})},Qm={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Jm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Zm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:In("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:In("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.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 tg={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},eg={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},rg={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},ng={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var og={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}}}};v();var Gn={};Nt(Gn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>yo,DOMQ_PROPERTIES:()=>Fe,ENV:()=>Pf,ERRORS_REGISTRY:()=>em,HTML_TAGS:()=>cn,METHODS:()=>on,METHODS_EXL:()=>go,NODE_ENV:()=>Yt,OPTIONS:()=>lt,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>mo,PROPS_METHODS:()=>De,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>wf,SVG_TAGS:()=>Ue,TYPES:()=>lo,addCaching:()=>Ya,addContext:()=>Ka,addExtend:()=>nu,addExtends:()=>Tt,addItemAfterEveryElement:()=>cf,addProtoToArray:()=>pr,addRef:()=>Ha,applyCSS:()=>Ol,applyDependentState:()=>os,applyEvent:()=>Sr,applyEventUpdate:()=>is,applyExtends:()=>jo,applyProps:()=>Ho,arrayContainsOtherArray:()=>ef,arraysEqual:()=>ff,arrayzeValue:()=>Mr,cache:()=>yu,call:()=>Os,captureSnapshot:()=>Is,checkForStateTypes:()=>es,checkIfInherits:()=>He,checkIfStringIsInArray:()=>df,clone:()=>Ef,cloneAndMergeArrayExtend:()=>No,cloneFunction:()=>jf,concatAddExtends:()=>$o,copyJavaScriptToClipboard:()=>Xp,copyStringToClipboard:()=>Yp,createBasedOnType:()=>za,createElement:()=>ts,createElementExtends:()=>Ia,createExtends:()=>Do,createExtendsFromKeys:()=>ln,createExtendsStack:()=>Da,createIfConditionFlag:()=>yr,createInheritedState:()=>rs,createKey:()=>Ro,createNestedObject:()=>vo,createNestedObjectByKeyPath:()=>ns,createObjectWithoutPrototype:()=>wa,createParent:()=>qa,createPath:()=>Ga,createProps:()=>qo,createPropsStack:()=>ja,createRoot:()=>Zo,createScope:()=>hn,createSnapshotId:()=>To,customDecodeURIComponent:()=>_f,customEncodeURIComponent:()=>xf,cutArrayAfterValue:()=>sf,cutArrayBeforeValue:()=>of,debounce:()=>Lf,debounceOnContext:()=>Bf,decodeNewlines:()=>Sf,deepClone:()=>j,deepContains:()=>_o,deepDestringifyFunctions:()=>ne,deepExtend:()=>Ra,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>bo,defineSetter:()=>Mu,destringifyGlobalScope:()=>xo,detectInfiniteLoop:()=>Ao,document:()=>B,encodeNewlines:()=>bf,error:()=>wr,excludeKeysFromObject:()=>If,exec:()=>A,extendCachedRegistry:()=>tu,extendStackRegistry:()=>Lo,extractArrayExtend:()=>Mo,fibonacciNumberByIndex:()=>Lp,filterArrays:()=>uf,filterArraysFast:()=>pf,finalizeExtends:()=>$a,findClosestNumber:()=>Rc,findClosestNumberInFactory:()=>Dp,findInheritedState:()=>ze,findKeyPosition:()=>gf,flattenExtend:()=>fn,formatDate:()=>$p,generateHash:()=>Aa,generateKey:()=>Oo,generateMetaTags:()=>Gp,get:()=>Lu,getActiveRoute:()=>vl,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>su,getCdnProviderFromConfig:()=>Dn,getChildStateInKey:()=>We,getChildren:()=>Bu,getContext:()=>ws,getCookie:()=>Kf,getDB:()=>Ts,getExtendsInElement:()=>ou,getExtendsStack:()=>Fo,getExtendsStackRegistry:()=>Ta,getFrequencyInArray:()=>rf,getHashedExtend:()=>Bo,getImportMapScript:()=>Hp,getInObjectByPath:()=>ko,getLocalStorage:()=>Xf,getNev:()=>$f,getPageMetadata:()=>Kp,getParentStateInKey:()=>Ve,getPath:()=>ys,getQuery:()=>Rs,getRef:()=>gs,getRoot:()=>Ss,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>bs,getRootStateInKey:()=>je,getSpreadChildren:()=>iu,global:()=>Zl,hasFunction:()=>sn,hasHandlerPlugin:()=>Be,hasOwnProperty:()=>Af,inheritChildExtends:()=>Na,inheritChildPropsExtends:()=>Pa,inheritParentProps:()=>Ko,inheritRecursiveChildExtends:()=>Fa,init:()=>Te,initProps:()=>pn,is:()=>At,isArray:()=>x,isBoolean:()=>tn,isContextComponent:()=>Wo,isCyclic:()=>Rf,isDOMNode:()=>Ft,isDate:()=>ba,isDefined:()=>dt,isDevelopment:()=>Xt,isEmpty:()=>xa,isEmptyObject:()=>Of,isEqualDeep:()=>_a,isFunction:()=>y,isHtmlElement:()=>co,isLocal:()=>Df,isMethod:()=>jt,isMobile:()=>qf,isNode:()=>me,isNot:()=>ur,isNotProduction:()=>gr,isNull:()=>ya,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>I,isPhoto:()=>zp,isProduction:()=>Le,isStaging:()=>Ff,isState:()=>dn,isString:()=>b,isStringFunction:()=>Uf,isTest:()=>va,isTesting:()=>Nf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>en,jointStacks:()=>ru,keys:()=>vn,lastLevel:()=>Ui,lastPathname:()=>Mi,loadCssFile:()=>jp,loadJavascript:()=>Vp,loadJavascriptFile:()=>Bp,loadJavascriptFileEmbedSync:()=>Up,loadJavascriptFileSync:()=>Mp,loadRemoteCSS:()=>Wp,loadRemoteScript:()=>Fn,log:()=>vs,logGroupIf:()=>zf,logIf:()=>Wf,lookdown:()=>ps,lookdownAll:()=>ds,lookup:()=>us,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>Tf,map:()=>Cf,mapStringsWithContextComponents:()=>Uo,matchRoute:()=>xl,matchesComponentNaming:()=>Rt,memoize:()=>Mf,merge:()=>Y,nextElement:()=>Es,objectToString:()=>So,objectizeStringProperty:()=>zo,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>mr,overwriteState:()=>ss,parse:()=>Cn,parseDeep:()=>_r,parseQuery:()=>_l,parseRoutePattern:()=>Sl,pickupElementFromProps:()=>br,pickupPropsFromElement:()=>Ma,previousElement:()=>ks,propExists:()=>uu,propertizeElement:()=>un,propertizeUpdate:()=>Go,reinit:()=>Al,remove:()=>hs,removeChars:()=>Qp,removeCookie:()=>Yf,removeDuplicateProps:()=>Xo,removeDuplicatesInArray:()=>rn,removeFromArray:()=>fo,removeFromObject:()=>wo,removeNestedKeyByPath:()=>Co,removeValueFromArray:()=>po,removeValueFromArrayAll:()=>af,reorderArrayByValues:()=>lf,replaceLiteralsWithObjectFields:()=>mf,replaceOctalEscapeSequences:()=>yf,report:()=>bt,resolveHandler:()=>Me,returnValueAsText:()=>Wa,router:()=>ue,runGuards:()=>wl,runPluginHook:()=>an,scratchSystem:()=>Vn,scratchUtils:()=>er,self:()=>tf,set:()=>Ur,setCookie:()=>Gf,setHashedExtend:()=>Oa,setInObjectByPath:()=>Eo,setLocalStorage:()=>Qf,setNodeStyles:()=>wn,setProps:()=>ms,setPropsPrototype:()=>Yo,spotByPath:()=>fs,stringIncludesAny:()=>ho,stringToObject:()=>kf,swapItemsInArray:()=>nf,syncProps:()=>Qo,toCamelCase:()=>qs,toDashCase:()=>Gs,toDescriptionCase:()=>Zp,toTitleCase:()=>Jp,toggleFullscreen:()=>Fp,triggerEventOn:()=>z,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>hf,unstackArrayOfObjects:()=>uo,update:()=>Ua,updateProps:()=>Jo,variables:()=>As,verbose:()=>En,warn:()=>Cs,window:()=>F});v();v();var jx=C(),sg=(t=jx,e)=>{let r=g(e.localFile)?e.localFile:{},n=j(r.designSystem||{});return W(t,n)},Vx={emotion:vt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Te=(t,e=Vx)=>{let r=e.emotion||vt,n=sg(t||{},e),o=Ur({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=zs(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&bi(o.svg,{document:e.document}),(p||u)&&xi(o.icons,{document:e.document}),o},ji={emotion:vt},Al=(t,e=ji)=>{let r=e.emotion||vt,n=sg(t||{},e),o=Ur({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Ol=(t,e=ji)=>{(e.emotion||vt).injectGlobal(t)},Wx=(t,e=ji)=>{let r=e.emotion||vt;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}};var zx=(t,e=ji)=>{};v();var Tl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},ag=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},cg=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Tl:e.router=Y(e.router||{},Tl);let r=e.router,n=async(s,i)=>{if(!F.location)return;let{pathname:a,search:c,hash:f}=F.location,l=a+c+f,u=s;if(r.customRouterElement){let p=ag(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ue(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),Hx(e,r),r},ig,lg=(t,e)=>{if(ig)return;ig=!0;let r=e.router||Tl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ue;F.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=F.location,c=s+i+a,f=t;if(r.customRouterElement){let l=ag(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},Hx=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Rl=F&&F.location?F.location.host.includes("dev."):Xt(),fg=Rl?"http://localhost:8080/get":"https://api.symbols.app/get",qx={endpoint:fg},ug=async(t,e=qx)=>{let r=e.endpoint||fg,n=e.serviceRoute?x(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(y(e.onError))return e.onError(s);console.error(s)}},Gx=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await ug(t,r),o=Rl||e.isDevelopment?ne(n):ne(n.releases[0]);r.serviceRoute?x(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions","globalScope"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},Kx=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await ug(t,n),s=Rl||e.isDevelopment?ne(o):ne(o.releases[0]);r(s)}},pg=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await Gx(t,e)}catch(r){console.error(r)}},dg=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Kx(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var Yx={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},Xx=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Vi=(t,e,r)=>{if(!t)return{};let n=y(t)?A(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];y(s)&&(s=A(s,e,r)),b(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var Qx=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Wi=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Yx[r];if(!o)continue;let s=Xx(o),i=e.querySelector(s)||Qx(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var hg={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vi(e,t,t.state);Wi(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vi(e,t,t.state);Wi(n,r)}};Ge();var mg=(t,e,r,n)=>{t&&xn(t,e,r,n)},gg=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Vi(t,e,r);Wi(o,n)},yg=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},zr={routes:t=>t,metadata:gg,fetch:mg,$router:yg},bg=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=gg),t.fetch!==!1&&(e.fetch=mg),t.router!==!1&&(e.$router=yg),e};var Il={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},zi={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},Hi={...Il,router:zi},Jx={state:{},pages:{},components:{},router:zi,define:zr},Re=Jx;var Zx=(t,e,r,n)=>{let o=(Bi.default||Bi)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},cr={TREE:hl,create:Zx};v();v();var Kt=Object.create(null);Kt.open="0";Kt.close="1";Kt.ping="2";Kt.pong="3";Kt.message="4";Kt.upgrade="5";Kt.noop="6";var Kn=Object.create(null);Object.keys(Kt).forEach(t=>{Kn[Kt[t]]=t});var Yn={type:"error",data:"parser error"};var _g=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",wg=typeof ArrayBuffer=="function",vg=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Xn=({type:t,data:e},r,n)=>_g&&e instanceof Blob?r?n(e):Sg(e,n):wg&&(e instanceof ArrayBuffer||vg(e))?r?n(e):Sg(new Blob([e]),n):n(Kt[t]+(e||"")),Sg=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function xg(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Pl;function Cg(t,e){if(_g&&t.data instanceof Blob)return t.data.arrayBuffer().then(xg).then(e);if(wg&&(t.data instanceof ArrayBuffer||vg(t.data)))return e(xg(t.data));Xn(t,!1,r=>{Pl||(Pl=new TextEncoder),e(Pl.encode(r))})}var Eg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Eg.length;t++)Qn[Eg.charCodeAt(t)]=t;var kg=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=Qn[t.charCodeAt(n)],i=Qn[t.charCodeAt(n+1)],a=Qn[t.charCodeAt(n+2)],c=Qn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var t_=typeof ArrayBuffer=="function",Jn=(t,e)=>{if(typeof t!="string")return{type:"message",data:Ag(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:e_(t.substring(1),e)}:Kn[r]?t.length>1?{type:Kn[r],data:t.substring(1)}:{type:Kn[r]}:Yn},e_=(t,e)=>{if(t_){let r=kg(t);return Ag(r,e)}else return{base64:!0,data:t}},Ag=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Og="",Tg=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Xn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Og))})})},Rg=(t,e)=>{let r=t.split(Og),n=[];for(let o=0;o<r.length;o++){let s=Jn(r[o],e);if(n.push(s),s.type==="error")break}return n};function Ig(){return new TransformStream({transform(t,e){Cg(t,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var Nl;function qi(t){return t.reduce((e,r)=>e+r.length,0)}function Gi(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Pg(t,e){Nl||(Nl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(qi(r)<1)break;let c=Gi(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(qi(r)<2)break;let c=Gi(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(qi(r)<8)break;let c=Gi(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(Yn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(qi(r)<o)break;let c=Gi(r,o);a.enqueue(Jn(s?c:Nl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Yn);break}}}})}var Fl=4;function X(t){if(t)return r_(t)}function r_(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var pe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Ng="arraybuffer";function Ki(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var n_=St.setTimeout,o_=St.clearTimeout;function de(t,e){e.useNativeTimers?(t.setTimeoutFn=n_.bind(St),t.clearTimeoutFn=o_.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var s_=1.33;function Fg(t){return typeof t=="string"?i_(t):Math.ceil((t.byteLength||t.size)*s_)}function i_(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Yi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Dg(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function $g(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Xi=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},he=class extends X{constructor(e){super(),this.writable=!1,de(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Xi(e,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Jn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let r=Dg(e);return r.length?"?"+r:""}};var Zn=class extends he{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Rg(e,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Tg(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Yi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var Lg=!1;try{Lg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Bg=Lg;function a_(){}var Dl=class extends Zn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Ie=class t extends X{constructor(e,r,n){super(),this.createRequest=e,de(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;let r=Ki(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=a_,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Mg);else if(typeof addEventListener=="function"){let t="onpagehide"in St?"pagehide":"unload";addEventListener(t,Mg,!1)}}function Mg(){for(let t in Ie.requests)Ie.requests.hasOwnProperty(t)&&Ie.requests[t].abort()}var c_=(function(){let t=Ug({xdomain:!1});return t&&t.responseType!==null})(),Pe=class extends Dl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=c_&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ie(Ug,this.uri(),e)}};function Ug(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Bg))return new XMLHttpRequest}catch{}if(!e)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var jg=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Ll=class extends he{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=jg?{}:Ki(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Xn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Yi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},$l=St.WebSocket||St.MozWebSocket,Ne=class extends Ll{createSocket(e,r,n){return jg?new $l(e,r,n):r?new $l(e,r):new $l(e)}doWrite(e,r){this.ws.send(r)}};var Hr=class extends he{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let r=Pg(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Ig();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Bl={websocket:Ne,webtransport:Hr,polling:Pe};var l_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,f_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function qr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=l_.exec(t||""),s={},i=14;for(;i--;)s[f_[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=u_(s,s.path),s.queryKey=p_(s,s.query),s}function u_(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function p_(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ml=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qi=[];Ml&&addEventListener("offline",()=>{Qi.forEach(t=>t())},!1);var lr=class t extends X{constructor(e,r){if(super(),this.binaryType=Ng,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=qr(e);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=qr(r.host).host);de(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=$g(this.opts.query)),Ml&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Qi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Fl,r.transport=e,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Fg(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,pe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ml&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Qi.indexOf(this._offlineEventListener);n!==-1&&Qi.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};lr.protocol=Fl;var Ji=class extends lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;lr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;lr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Gr=class extends Ji{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Bl[o]).filter(o=>!!o)),super(e,n)}};var jI=Gr.protocol;function Vg(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=qr(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var Hl={};Nt(Hl,{Decoder:()=>Wl,Encoder:()=>Vl,PacketType:()=>P,isPacketValid:()=>__,protocol:()=>Gg});var h_=typeof ArrayBuffer=="function",m_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Wg=Object.prototype.toString,g_=typeof Blob=="function"||typeof Blob<"u"&&Wg.call(Blob)==="[object BlobConstructor]",y_=typeof File=="function"||typeof File<"u"&&Wg.call(File)==="[object FileConstructor]";function eo(t){return h_&&(t instanceof ArrayBuffer||m_(t))||g_&&t instanceof Blob||y_&&t instanceof File}function to(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(to(t[r]))return!0;return!1}if(eo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return to(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&to(t[r]))return!0;return!1}function zg(t){let e=[],r=t.data,n=t;return n.data=Ul(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Ul(t,e){if(!t)return t;if(eo(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=Ul(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=Ul(t[n],e));return r}return t}function Hg(t,e){return t.data=jl(t.data,e),delete t.attachments,t}function jl(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=jl(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=jl(t[r],e));return t}var qg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Gg=5,P;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(P||(P={}));var Vl=class{constructor(e){this.replacer=e}encode(e){return(e.type===P.EVENT||e.type===P.ACK)&&to(e)?this.encodeAsBinary({type:e.type===P.EVENT?P.BINARY_EVENT:P.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===P.BINARY_EVENT||e.type===P.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=zg(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Wl=class t extends X{constructor(e){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof e=="function"?{reviver:e}:e)}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===P.BINARY_EVENT;n||r.type===P.BINARY_ACK?(r.type=n?P.EVENT:P.ACK,this.reconstructor=new zl(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(eo(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(P[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===P.BINARY_EVENT||n.type===P.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!Kg(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.opts.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case P.CONNECT:return Zi(r);case P.DISCONNECT:return r===void 0;case P.CONNECT_ERROR:return typeof r=="string"||Zi(r);case P.EVENT:case P.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&qg.indexOf(r[0])===-1);case P.ACK:case P.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},zl=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let r=Hg(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function b_(t){return typeof t=="string"}var Kg=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function S_(t){return t===void 0||Kg(t)}function Zi(t){return Object.prototype.toString.call(t)==="[object Object]"}function x_(t,e){switch(t){case P.CONNECT:return e===void 0||Zi(e);case P.DISCONNECT:return e===void 0;case P.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&qg.indexOf(e[0])===-1);case P.ACK:return Array.isArray(e);case P.CONNECT_ERROR:return typeof e=="string"||Zi(e);default:return!1}}function __(t){return b_(t.nsp)&&S_(t.id)&&x_(t.type,t.data)}function Pt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var w_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Kr=class extends X{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Pt(e,"open",this.onopen.bind(this)),Pt(e,"packet",this.onpacket.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var n,o,s;if(w_.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:P.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:P.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case P.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case P.EVENT:case P.BINARY_EVENT:this.onevent(e);break;case P.ACK:case P.BINARY_ACK:this.onack(e);break;case P.DISCONNECT:this.ondisconnect();break;case P.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:P.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:P.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function fr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}fr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};fr.prototype.reset=function(){this.attempts=0};fr.prototype.setMin=function(t){this.ms=t};fr.prototype.setMax=function(t){this.max=t};fr.prototype.setJitter=function(t){this.jitter=t};var Yr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,de(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new fr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||Hl;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Gr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){pe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Kr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var ro={};function no(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=Vg(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ro[o]&&s in ro[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Yr(n,e):(ro[o]||(ro[o]=new Yr(n,e)),c=ro[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(no,{Manager:Yr,Socket:Kr,io:no,connect:no});v();var v_={success:"green",error:"red",warning:"yellow"},Yg=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},oo={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:v_[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Xg=process.env.NODE_ENV==="local",C_=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},E_=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},k_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":C_(t,o);break;case"update":case"set":E_(t,o,s,!0);break;default:break}return r},A_=async()=>{try{let t=Xg?"http://localhost:8080":"https://api.symbols.app",e=await F.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},O_=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Te(a):mr(r[i],a):r[i]=a}),s&&(r.schema=s))},T_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=k_(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Te(r.designSystem)},R_=async(t,e,r)=>{let n=await A_();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=no(Xg?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",O_(t,e,r)),i.on("ops",T_(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Yg(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},ta={onInitSync:R_};var Qg=(t,e)=>I(t.extends)?t.extends:[],Jg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Xt():r.liveSync)&&(x(t.extends)?t.extends.push(ta):t.extends?t.extends=[t.extends,ta]:t.extends=[ta])};var Zg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Xt()||e.verbose:r.verbose)&&(x(t.extends)?t.extends.push(oo):t.extends?t.extends=[t.extends,oo]:t.extends=[oo])};v();v();var I_=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],ty=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=vt);let s=e.registry||xc(n.emotion,e),i=e.designSystem?W(j(ki),e.designSystem):j(ki),a={};for(let f of I_)e[f]!==void 0&&(a[f]=e[f]);return[Te(i,{key:t,emotion:o,document:r,files:e.files,...Hi,...a,...n}),o,s]};var ny=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},ey=(t="smbls")=>{let e={};for(let r in ar)Object.prototype.hasOwnProperty.call(ar,r)&&(Rt(r)?e[`smbls.${r}`]=ar[r]:e[r]=ar[r]);return e},oy=t=>t.components?{...ey(),...t.components}:ey(),sy=t=>({...Gn,...Cl,...er,...t.utils,...t.snippets,...t.functions}),iy=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),ry={},ay=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ze[s]||Dn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Xt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(ry[c])return;ry[c]=!0,await Fn(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await Fn(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},cy=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Dn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Xt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let S=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(S,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},ly=(t,e)=>{let[r,n,o]=ty(t,e);return[r,n,o]},fy=(t,e)=>{let r={};return e.state&&W(r,e.state),t&&t.state&&W(r,t.state),r.isRootState=!0,j(r)},uy=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},py=(t,e)=>{for(let r in e)r in t?g(t[r])&&g(e[r])&&py(t[r],e[r]):t[r]=e[r]},dy=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(g(n[o])&&g(t[o]))if(o==="designSystem")py(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}};v();var my="smbls_lang",P_="smbls_t_",N_="smbls_tv_",Xr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},so={};function io(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function ra(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var ea=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},hy=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=ea(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function na(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=hy(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=ea(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=ea(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=hy(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=ea(f,t);if(l!==void 0)return l}}return t}async function oa(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||P_,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):N_);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Xr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch(f){console.warn("[polyglot] Failed to apply language update:",f.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(so[i])return so[i];let a=this;return so[i]=(async()=>{try{let c=r.fetch,f=parseInt(Xr.get(s+t),10)||0,l,u,p;if(y(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=y(h)?await h.call(a):e.fetch;if(!m)return;let S=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:S,params:_});if(w.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,w.error;let E=w.data;if(!E||!E.changed)return;l=E.translations||{},u=E.version||0,p=!0}else return;if(!p||!l)return;Xr.set(o+t,JSON.stringify(l)),u&&Xr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let f=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",f)}}finally{delete so[i]}})(),so[i]}async function sa(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||my;Xr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function ia(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=y(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function ql(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||my,s=Xr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function aa(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var ca={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,ql.call(t))}};var ao={polyglot:na,getLocalStateLang:aa,getActiveLang:io,getLang:io,setLang:sa,getLanguages:ra,loadTranslations:oa,upsertTranslation:ia};Ge();var F_=t=>{let r=(t||document).querySelectorAll("[data-br]"),n={};return r.forEach(o=>{n[o.getAttribute("data-br")]=o}),n},Kl=(t,e,r="")=>{if(!t||!t.__ref)return;let o=e[r||"__root"];if(o!==void 0&&(t.__ref.__brKey=o),t.__ref.__children)for(let s of t.__ref.__children){let i=t[s];if(i&&i.__ref){let a=r?`${r}.${s}`:s;Kl(i,e,a)}}},xy=(t,e={})=>{let{root:r,events:n=!0,renderEvents:o=!0,emotion:s,designSystem:i}=e,a=F_(r),c=i?.color||{},f=i?.media||{},l=0,u=0,p=d=>{if(!d||!d.__ref)return;let h=d.__ref.__brKey;if(h){let m=a[h];m?(d.node=m,m.ref=d,s&&D_(d,s,c,f),n&&U_(d),l++):u++}if(d.__ref.__children)for(let m of d.__ref.__children){let S=d[m];S&&S.__ref&&p(S)}};return p(t),o&&wy(t),{element:t,linked:l,unlinked:u}},D_=(t,e,r,n)=>{let{node:o,props:s}=t;if(!o||!s)return;let i={},a=!1;for(let p in s){let d=s[p];if(p.charCodeAt(0)===64){let m=n[p.slice(1)];if(m&&typeof d=="object"){let S=gy(d,r);Object.keys(S).length&&(i[m]=S,a=!0)}continue}if(p.charCodeAt(0)===58){if(typeof d=="object"){let m=gy(d,r);Object.keys(m).length&&(i["&"+p]=m,a=!0)}continue}let h=_y(p,d);if(h){for(let m in h)i[m]=fa(m,h[m],r);a=!0;continue}Gl(p)&&(i[p]=fa(p,d,r),a=!0)}let c=B_(t);if(c)for(let[p,d]of Object.entries(c))i[p]||(i[p]=d,a=!0);if(t.style&&typeof t.style=="object"&&(Object.assign(i,t.style),a=!0),!a)return;let f=e.css(i),l=[];f&&l.push(f),typeof t.key=="string"&&t.key.charCodeAt(0)===95&&t.key.charCodeAt(1)!==95&&l.push(t.key.slice(1)),s.class&&l.push(s.class),t.attr?.class&&l.push(t.attr.class);let u=t.classlist;if(u){if(typeof u=="string")l.push(u);else if(typeof u=="object")for(let p in u){let d=u[p];typeof d=="boolean"&&d?l.push(p):typeof d=="string"?l.push(d):typeof d=="object"&&d&&l.push(e.css(d))}}l.length&&o.setAttribute("class",l.join(" "));for(let p in s)Gl(p)&&o.hasAttribute(p)&&o.removeAttribute(p)},gy=(t,e)=>{let r={};for(let n in t){let o=_y(n,t[n]);if(o){for(let s in o)r[s]=fa(s,o[s],e);continue}Gl(n)&&(r[n]=fa(n,t[n],e))}return r},$_=new Set(["color","background","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor","fill","stroke","caretColor","columnRuleColor","textDecorationColor","boxShadow","textShadow"]),fa=(t,e,r)=>typeof e!="string"?e:$_.has(t)&&r[e]?r[e]:e,L_=new Set(["href","src","alt","title","id","name","type","value","placeholder","target","rel","loading","srcset","sizes","media","role","tabindex","for","action","method","enctype","autocomplete","autofocus","theme","__element","update"]),yy={Flex:{display:"flex"},InlineFlex:{display:"inline-flex"},Grid:{display:"grid"},InlineGrid:{display:"inline-grid"},Block:{display:"block"},Inline:{display:"inline"}},B_=t=>{let e=t.__ref?.__extends;if(!e||!Array.isArray(e))return null;for(let r of e)if(yy[r])return yy[r];return null},_y=(t,e)=>{if(typeof e>"u"||e===null)return null;if(t==="flow"&&typeof e=="string"){let[r,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+" "+(n||"")}}if(t==="wrap")return{display:"flex",flexWrap:e};if((t==="align"||t==="flexAlign")&&typeof e=="string"){let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}if(t==="gridAlign"&&typeof e=="string"){let[r,n]=e.split(" ");return{display:"grid",alignItems:r,justifyContent:n}}if(t==="flexFlow"&&typeof e=="string"){let[r,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+" "+(n||"")}}if(t==="flexWrap")return{display:"flex",flexWrap:e};if(t==="round"||t==="borderRadius"&&e)return{borderRadius:typeof e=="number"?e+"px":e};if(t==="boxSize"&&typeof e=="string"){let[r,n]=e.split(" ");return{height:r,width:n||r}}if(t==="widthRange"&&typeof e=="string"){let[r,n]=e.split(" ");return{minWidth:r,maxWidth:n||r}}if(t==="heightRange"&&typeof e=="string"){let[r,n]=e.split(" ");return{minHeight:r,maxHeight:n||r}}return t==="column"?{gridColumn:e}:t==="columns"?{gridTemplateColumns:e}:t==="templateColumns"?{gridTemplateColumns:e}:t==="row"?{gridRow:e}:t==="rows"?{gridTemplateRows:e}:t==="templateRows"?{gridTemplateRows:e}:t==="area"?{gridArea:e}:t==="template"?{gridTemplate:e}:t==="templateAreas"?{gridTemplateAreas:e}:t==="autoColumns"?{gridAutoColumns:e}:t==="autoRows"?{gridAutoRows:e}:t==="autoFlow"?{gridAutoFlow:e}:t==="columnStart"?{gridColumnStart:e}:t==="rowStart"?{gridRowStart:e}:null},Gl=t=>{let e=t.charCodeAt(0);return e===95||e===64||e===58||e>=65&&e<=90||L_.has(t)?!1:M_.has(t)},M_=new Set(["display","position","top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginInline","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline","border","borderTop","borderRight","borderBottom","borderLeft","borderRadius","borderColor","borderWidth","borderStyle","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","color","fontSize","fontWeight","fontFamily","fontStyle","lineHeight","letterSpacing","textAlign","textDecoration","textTransform","textIndent","textOverflow","textShadow","opacity","overflow","overflowX","overflowY","zIndex","cursor","pointerEvents","userSelect","flex","flexDirection","flexWrap","flexFlow","flexGrow","flexShrink","flexBasis","alignItems","alignContent","alignSelf","justifyContent","justifyItems","justifySelf","gap","rowGap","columnGap","gridTemplateColumns","gridTemplateRows","gridColumn","gridRow","gridArea","gridAutoFlow","gridAutoColumns","gridAutoRows","inset","inlineSize","blockSize","minInlineSize","maxInlineSize","minBlockSize","maxBlockSize","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd","marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd","transform","transformOrigin","transition","animation","animationName","animationDuration","animationDelay","animationTimingFunction","animationFillMode","animationIterationCount","animationPlayState","animationDirection","gridTemplate","gridTemplateAreas","gridColumnStart","gridRowStart","boxShadow","outline","outlineColor","outlineWidth","outlineStyle","outlineOffset","whiteSpace","wordBreak","wordWrap","overflowWrap","visibility","boxSizing","objectFit","objectPosition","filter","backdropFilter","mixBlendMode","fill","stroke","strokeWidth","listStyle","listStyleType","listStylePosition","counterReset","counterIncrement","content","aspectRatio","resize","appearance","scrollBehavior","scrollMargin","scrollPadding","willChange","contain","isolation","caretColor","accentColor","columnCount","columnGap","columnRuleColor","columnRuleStyle","columnRuleWidth","textDecorationColor","textDecorationStyle","textDecorationThickness","clipPath","shapeOutside"]),by=new Set(["render","create","init","start","complete","done","beforeClassAssign","attachNode","stateInit","stateCreated","renderRouter","lazyLoad","error"]),U_=t=>{let{node:e,on:r,props:n}=t;if(!e)return;let o=new Set;if(r)for(let s in r)by.has(s)||typeof r[s]=="function"&&(o.add(s),Sy(e,s,r[s],t));if(n)for(let s in n){if(s.length<=2||s[0]!=="o"||s[1]!=="n"||typeof n[s]!="function")continue;let i=s[2];if(i!==i.toUpperCase())continue;let a=i.toLowerCase()+s.slice(3);o.has(a)||by.has(a)||Sy(e,a,n[s],t)}},Sy=(t,e,r,n)=>{t.addEventListener(e,o=>{let s=r.call(n,o,n,n.state,n.context);s&&typeof s.then=="function"&&s.catch(()=>{})})},wy=t=>{if(!t||!t.__ref||!t.node)return;let e=t.on;if(e&&(la(e.render,t),la(e.renderRouter,t),la(e.done,t),la(e.create,t)),t.__ref.__children)for(let r of t.__ref.__children){let n=t[r];n&&n.__ref&&wy(n)}},la=(t,e)=>{if(typeof t=="function")try{let r=t.call(e,e,e.state,e.context);r&&typeof r.then=="function"&&r.catch(()=>{})}catch(r){console.warn("[smbls hydrate]",e.key,r.message)}};var j_=async(t,e={})=>{let r=e.key=e.key||(b(t)?t:"smblsapp");e.define=e.define||zr,e.cssPropsRegistry=jr,e.window=ny(e),e.sharedLibraries&&e.sharedLibraries.length&&dy(e);let[n,o,s]=ly(r,e);e.designSystem=n,e.registry=s,e.emotion=o,e.cases||(e.cases={});let i=fy(t,e);e.state=i,e.pages=uy(t,e),e.components=oy(e),e.utils=sy(e),Ze[e.packageManager]&&(e.dependencies=await ay(e)),e.methods=iy(e),e.routerOptions=cg(t,e),e.defaultExtends=[Ri],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&g(e.globalScope)&&(e.globalScope=xo(e.globalScope));let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(ca);for(let c in ao)c in e.functions||(e.functions[c]=ao[c])}return a("helmet")||e.plugins.push(hg),e.fetch&&!a("fetch")&&e.plugins.push(sc),e},Yl=async(t,e)=>{g(e)||(e={}),me(t)?(t={},e.parent=t):b(t)?(t={},e.key=t):g(t)||(t={}),await j_(t,e),t.extends=Qg(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=sm(e),await cy({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Jg(t,e),Zg(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.window||(typeof window<"u"?window:null);if(n?.__BRENDER__&&r.querySelector("[data-br]"))return V_(t,e,r,n);let s=e.parent||r.body;return await(cr.default&&cr.default.create||cr.create)(t,s,e.key,{verbose:e.verbose,...e.domqlOptions})},V_=async(t,e,r,n)=>{let o=e.parent||r.body,s=cr.default&&cr.default.create||cr.create,i=n.__BR_REGISTRY__||{};if(Object.keys(i).length>0){let c=o.querySelector?o.querySelector(":scope > [data-ssr]")||r.querySelector("[data-ssr]"):null;if(c){let u=r.createDocumentFragment?r.createDocumentFragment():null;if(u){for(;c.firstChild;)u.appendChild(c.firstChild);o.insertBefore(u,c),c.remove()}}let f;try{f=await s(t,o,e.key,{verbose:e.verbose,...e.domqlOptions,onlyResolveExtends:!0})}catch(u){return console.warn("[smbls] Skeleton creation failed, falling back to full render:",u.message),ua(s,t,o,e,n)}if(!f)return ua(s,t,o,e,n);Kl(f,i);let l=xy(f,{root:r,emotion:e.emotion,designSystem:e.designSystem,events:!0,renderEvents:!0});return l.linked===0&&l.unlinked>0?(console.warn(`[smbls] Hydration linked 0/${l.linked+l.unlinked} elements \u2014 falling back to full render. Pre-rendered structure may have changed.`),ua(s,t,o,e,n)):(l.unlinked>0&&console.debug(`[smbls] Hydration: ${l.linked} linked, ${l.unlinked} unlinked elements`),vy(n),f)}return ua(s,t,o,e,n)},ua=async(t,e,r,n,o)=>{let s=[];for(let a of r.childNodes){if(a.nodeType===1){let c=a.tagName.toLowerCase();if(c==="style"||c==="script"||c==="link")continue}s.push(a)}s.forEach(a=>a.remove());let i=await t(e,r,n.key,{verbose:n.verbose,...n.domqlOptions});return vy(o),i},vy=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Xl=(t,e)=>W(t,g(e)?e:{}),Ql=(t,e=Re,r)=>{let n={...Re,...Xl(e,r)},o=Yl(t,n).then(s=>{lg(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},W_=(t,e=Re,r)=>{let n=Ql(t,e,r),o={...Re,...Xl(e,r)},s=o.key;return dg(n,s,{utils:Gn,...o}),n},z_=async(t,e=Re,r)=>{let n={...Re,...Xl(e,r)},o=e.key;await pg(o,n);let s=await Yl(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},H_=(t={},e=Re,r)=>Ql({deps:{isUndefined:K},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);return Oy(q_);})();
38
+ ${r}`:"";return new Error(`"${t}", "${e}"${s}${i}`)};v();var rm=t=>ye(t||"div")||bt("HTMLInvalidTag");var BS=t=>{if(!t||!t.__ref)throw new Error("Element reference is invalid");let{__ref:e}=t;if(!e.root)throw new Error("Root reference is invalid");if(!e.root.data)throw new Error("Data are undefined");let{frameListeners:r}=e.root.data;r&&!r.has(t)&&r.add(t)},MS=t=>{for(let e of t){if(!e.__ref.__frameHandler){let r=e.on?.frame||e.onFrame||e.props?.onFrame;if(r)e.__ref.__frameHandler=r;else{t.delete(e);continue}}if(!e.node?.parentNode)t.delete(e),delete e.__ref.__frameHandler;else try{e.__ref.__frameHandler(e,e.state,e.context)}catch(r){console.warn(r),t.delete(e),delete e.__ref.__frameHandler}}},nm=t=>{let e=typeof window<"u"&&window.requestAnimationFrame;if(cl||!e)return;cl=!0;function r(){if(t.size===0){cl=!1;return}MS(t),e(r)}e(r)},om=t=>{if(!t)throw new Error("Element is invalid");let{on:e,props:r,__ref:n}=t;if(!n.root||!n.root.data)return;let{frameListeners:o}=n.root.data;o&&(e?.frame||t.onFrame||r?.onFrame)&&(BS(t),nm(o))},cl=!1,sm=()=>{let t=new Set;return nm(t),t};v();var im=t=>{let{props:e,on:r}=t;for(let n in e){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110)continue;let o=re(n.slice(2)),s=r[o],i=e[n];y(s)?r[o]=(...a)=>{if(s(...a)!==!1&&y(i))return i(...a)}:r[o]=i}},am=t=>{let{on:e}=t,r=Be(t.context);for(let n in t){if(n.charCodeAt(0)!==111||n.charCodeAt(1)!==110||!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];if(!y(o)&&!(r&&o!=null))continue;let s=re(n.slice(2)),i=e[s];y(i)?e[s]=(...a)=>{if(i(...a)!==!1&&y(o))return o(...a)}:e[s]=o}};v();var ll="http://www.w3.org/2000/svg",US=t=>{let{tag:e,context:r}=t,n=r.document||B;return e?e==="string"?n.createTextNode(t.text):e==="fragment"?n.createDocumentFragment():Ue.has(e)&&(e==="svg"||t.parent?.node?.namespaceURI===ll)?n.createElementNS(ll,e):n.createElement(e):n.createElement("div")},fl=t=>{let{tag:e,key:r,props:n}=t;if(e=A(e,t),e===!0&&(e=r),g(n)&&b(n.tag)&&ye(n.tag))return n.tag;if(b(e)){if(ye(e))return e}else{let o=r.toLowerCase();if(o.includes(".")&&(o=o.split(".")[0]),o.includes("_")&&(o=o.split("_")[0]),ye(o))return o}return"div"},cm=t=>{let{context:e}=t,r=e.window||window,n=t.tag=fl(t);if(!rm(n))return bt("HTMLInvalidTag",t.tag,t);r.nodeCaches||(r.nodeCaches={});let s=Ue.has(n)&&(n==="svg"||t.parent?.node?.namespaceURI===ll)?"svg:"+n:n,i=r.nodeCaches[s];i||(i=r.nodeCaches[s]=US(t));let a=i.cloneNode(!0);return n==="string"&&(a.nodeValue=t.text),a};var jS=(t,e)=>{try{return e.appendChild(t),t}catch{console.error("Does not support to append",e,t)}},VS=(t,e,r)=>{if(!t)throw new Error("Node is required");let n=r||e?.parentNode;e?.nextSibling?n?.insertBefore(t,e.nextSibling):e?.insertAdjacentElement?e.insertAdjacentElement("afterend",t):n?.insertBefore(t,e)},WS=(t,e,r)=>{if(!t)throw new Error("Node is required");(r||e.parentNode)?.insertBefore(t,e)},ul=(t,e,r,n)=>{if(!t)throw new Error("Element is required");if(!e)throw new Error("Parent is required");return e[r||t.key]=t,t.tag!=="shadow"&&(n&&n.position?(n.position==="before"?WS:VS)(t.node,n.node||e.node):jS(t.node,e.node,t)),t};v();var Ii=(t,e={})=>{let{__ref:r}=t;for(let n in t){if(e[n])continue;let o=t[n];if(y(o)&&!jt(n,t)){r.__exec[n]=o;try{let s=o(t,t.state,t.context);s&&typeof s.then=="function"?s.then(i=>{t[n]=i}).catch(i=>{console.warn("[DOMQL] Async exec error in",n,":",i?.message||i)}):t[n]=s}catch(s){console.warn("[DOMQL] Exec error in",n,":",s?.message||s)}}}},lm=(t,e={})=>{let{__ref:r}=t,n={};for(let o in r.__exec){let s=t[o];if(r.__defineCache[o])continue;let a=r.__exec[o](t,t.state,t.context);if(a&&typeof a.then=="function"){a.then(f=>{t[o]=f});continue}let c=b(a)||ct(a);if(s?.node&&c)oe(s,{text:a});else if(a!==s)if(Rt(o)){let{extends:f,...l}=Wo(a,t,o);oe(s,l)}else n[o]=s,t[o]=a}return n},Pi=t=>{let{__ref:e}=t,{props:r}=t;for(let n in r){let o=n.charCodeAt(0),s=n.charCodeAt(1),i=o===105&&s===115||o===104&&s===97&&n.charCodeAt(2)===115||o===117&&s===115&&n.charCodeAt(2)===101,a=e.__execProps[n];if(y(a)){let c=A(a,t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}else if(i&&y(r[n])){e.__execProps[n]=r[n];let c=A(r[n],t);c&&typeof c.then=="function"?c.then(f=>{r[n]=f}):r[n]=c}}},Ni=t=>{let{define:e,context:r,__ref:n}=t,o=g(e),s=r&&g(r.define);if(!o&&!s)return t;let i=o&&s?{...e,...r.define}:o?e:r.define;for(let a in i){let c=t[a];if(y(c)&&!jt(a,t)){n.__exec[a]=c;let l=A(c,t);l&&typeof l.then=="function"?l.then(u=>{c=t[a]=u&&u.parse?u.parse():u,u&&(n.__defineCache[a]=c)}):(c=t[a]=l&&l.parse?l.parse():l,l&&(n.__defineCache[a]=c))}let f=i[a](c,t,t.state,t.context);f&&typeof f.then=="function"?f.then(l=>{l&&(t[a]=l)}):f&&(t[a]=f)}return t},fm=t=>{let{context:e,define:r,__ref:n}=t,o=g(r),s=g(e?.define);if(!o&&!s)return;let i=o&&s?{...r,...e.define}:o?r:e.define;for(let a in i){let c=n.__exec[a];if(c){let u=c(t,t.state,t.context);u&&typeof u.then=="function"?u.then(p=>{n.__defineCache[a]=p}):n.__defineCache[a]=u}let f=A(n.__defineCache[a],t);if(f&&typeof f.then=="function"){f.then(u=>{});continue}let l=typeof i[a]=="function"?i[a](f,t,t.state,t.context):void 0;l&&typeof l.then=="function"?l.then(u=>{t[a]=u}):l&&(t[a]=l)}};v();function um(t,e,r){let{__ref:n,props:o}=e,{__attr:s}=n;if(ur(t)("object")&&bt("HTMLInvalidAttr",t),t){let i=A(t,e);o.attr&&W(i,o.attr);for(let a in i){let c=A(i[a],e);b(c)&&c.includes("{{")&&e.call&&(c=e.call("replaceLiteralsWithObjectFields",c,e.state)),c!==s[a]&&(c!==!1&&c!==void 0&&c!==null&&r.setAttribute?r.setAttribute(a,c):r.removeAttribute&&r.removeAttribute(a),s[a]=c)}}}v();var pm=t=>{let{key:e}=t;t.classlist===!0?t.classlist=e:!t.classlist&&typeof e=="string"&&e.charAt(0)==="_"&&e.charAt(1)!=="_"&&(t.classlist=e.slice(1))},zS=(t,e)=>{let r="";for(let n in t){let o=t[n];typeof o=="boolean"&&o?r+=` ${n}`:typeof o=="string"?r+=` ${o}`:typeof o=="function"&&(r+=` ${A(o,e)}`)}return r},dm=(t,e)=>{if(!t)return;let{key:r}=e;return t===!0&&(t=e.classlist={key:r}),b(t)&&(t=e.classlist={default:t}),g(t)&&(t=zS(t,e)),t.replace(/\s+/g," ").trim()};v();function qS(t,e,r){if(t&&(e.props.data&&W(t,e.props.data),t.showOnNode)){g(t)||bt("HTMLInvalidData",t);for(let n in t)n!=="showOnNode"&&(r.dataset[n]=A(t[n],e))}}var hm=qS;v();function HS(t,e,r){let n=A(t??e?.props?.html,e),{__ref:o}=e;n!==o.__html&&(r.nodeName==="SVG"?r.textContent=n:r.innerHTML=n,o.__html=n)}var mm=HS;v();function GS(t,e,r){if(t)if(g(t)){let{__ref:n}=e;n.__style||(n.__style={});let o=n.__style;for(let s in t){let i=A(t[s],e);i!==o[s]&&(o[s]=i,r.style[s]=i)}}else bt("HTMLInvalidStyles",t)}var gm=GS;v();function KS(t,e,r){let n=A(e.props.text||t,e);if(y(n)&&(n=A(n,e)),b(n)&&n.includes("{{")&&(n=e.call("replaceLiteralsWithObjectFields",n,e.state)),e.tag==="string")r.nodeValue=n;else if(t!=null){if(Ue.has(e.tag)){r&&(r.textContent=n);return}if(e.__text){if(e.__text.text===n)return;e.__text.text=n,e.__text.node&&(e.__text.node.nodeValue=n)}else Gt({tag:"string",text:n},e,"__text")}}var ym=KS;v();function YS(t,e,r){let n=A(t,e);if(g(n))for(let o in n)Ot.has(o)||Object.prototype.hasOwnProperty.call(n,o);return e}var bm=YS;v();function XS(t,e,r){if(g(t))for(let n in t){let o=t[n];y(o)?e.scope[n]=o.bind(e):e.scope[n]=o}}var Sm=XS;var fe={attr:um,style:gm,text:ym,html:mm,data:hm,classlist:dm,state:bm,scope:Sm,fetch:{},deps:(t,e)=>t||e.parent.deps,extends:{},children:{},content:{},childExtend:{},childExtends:{},childExtendRecursive:{},childExtendsRecursive:{},props:{},if:{},define:{},__name:{},__ref:{},__hash:{},__text:{},key:{},tag:{},query:{},parent:{},node:{},variables:{},on:{},component:{},context:{}};v();var Di=(t,e,r)=>{let{node:n,context:o,__ref:s}=e,i=A(e[t],e),{onlyUpdate:a}=r,c=fe[t],l=o?.registry?.[t]||c,u=e.define?.[t],p=o?.define?.[t];if(!s.__if)return;let d=a?a===t||e.lookup(a):!0;if(l&&!p&&d){y(l)&&l(i,e,n,r);return}return{hasDefine:u,hasContextDefine:p}};v();var pl=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;let r=typeof t,n=typeof e;if(r==="function"&&n==="function")return!0;if(r!==n)return!1;if(x(t)&&x(e)){if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(!pl(t[o],e[o]))return!1;return!0}if(g(t)&&g(e)){let o=Object.keys(t),s=Object.keys(e);if(o.length!==s.length)return!1;for(let i=0;i<o.length;i++){let a=o[i];if(!pl(t[a],e[a]))return!1}return!0}return t===e},xm=new Set([".","/","./"]),QS=(t,e)=>{if(!b(t)||!e)return;if(xm.has(t))return e.parse?e.parse():e;let r=je(t,e);if(r){let o=t.replaceAll("~/","");return We(o,r)}let n=Ve(t,e);if(n){let o=t.replaceAll("../","");return We(o,n)}return We(t,e)};function JS(t,e,r){let{children:n,__ref:o,state:s}=e,{childrenAs:i}=e.props||{},a=A(t,e,s),c=A(n,e,s);n=a||c;let f;if(n){if(dn(n)&&(i=i||"state",n=n.parse()),b(n)||ct(n)){let p=QS(n,s);p!==void 0?(f=xm.has(n)?"":n,n=dn(p)?p.parse():p):n={text:n}}if(g(n)){if(n.$$typeof)return e.call("renderReact",n,e);n=Object.keys(n).map(p=>{let d=n[p];return Rt(p)?$o(p,d):d})}}if(!n||ur(n)("array","object"))return;if(x(n)&&n.some(p=>p?.$$typeof)){let p=[],d=[];for(let h=0;h<n.length;h++)n[h]?.$$typeof?d.push(n[h]):p.push(n[h]);d.length&&e.call("renderReact",d,e),n=p}let l;o.__childrenCache?pl(n,o.__childrenCache)?o.__noChildrenDifference=!0:(l=j(n),o.__childrenCache=l,delete o.__noChildrenDifference):(l=j(n),o.__childrenCache=l),(g(n)||x(n))&&(n=l||j(n));let u={tag:"fragment"};for(let p in n){let d=Object.prototype.hasOwnProperty.call(n,p)&&n[p];if(dt(d)&&d!==null&&d!==!1)if(f!==void 0&&i!=="props"){let h=f?`${f}/${p}`:p;u[p]={state:h}}else u[p]=I(d)?i?{[i]:d}:d:i?{[i]:i==="state"?{value:d}:{text:d}}:{text:d}}return u}var Fi=JS;var _m=process.env.NODE_ENV,wm=(t,e)=>{let{node:r,tag:n,__ref:o}=t;if(!o.__if)return t;let s;r||(s=!0,n==="shadow"?r=t.node=t.parent.node.attachShadow({mode:"open"}):r=t.node=cm(t),z("attachNode",t,e)),(_m==="test"||_m==="development"||e.alowRefReference)&&(r.ref=t,y(r.setAttribute)&&r.setAttribute("key",t.key)),Pi(t),Ni(t),Ii(t),im(t),am(t),tm(t,{isNewNode:s,...e});for(let a in t){let c=t[a];if(!Object.prototype.hasOwnProperty.call(t,a)||c===void 0||jt(a,t)||g(fe[a])||a.length>2&&a.charCodeAt(0)===111&&a.charCodeAt(1)===110&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90)continue;let f=Di(a,t,e);if(f){let{hasDefine:l,hasContextDefine:u}=f;if(t[a]&&!l&&!u){let p=()=>{Gt(c,t,a,e)};t.props&&t.props.lazyLoad||e.lazyLoad?window.requestAnimationFrame(()=>{p(),e.preventUpdateListener||z("lazyLoad",t,e)}):p()}}}let i=t.children?Fi(t.children,t,e):t.children||t.content;return i&&qn(i,t,e),t};v();var dl={key:":root",node:B?B.body:bt("DocumentNotDefined",B)},hl=dl;v();v();v();v();var vm={overwrite:!0,preventHoistElementUpdate:!1,updateByState:!0,isHoisted:!0},Cm=function(t,e=vm){let r=this,n=r.__element;if(e.onEach&&e.onEach(n,r,n.context,e),e.updateByState||Y(e,vm),r.__element||bt("ElementOnStateIsNotDefined"),e.preventInheritAtCurrentState===!0)e.preventInheritAtCurrentState=r;else if(e.preventInheritAtCurrentState)return;return!e.preventBeforeStateUpdateListener&&_t("beforeStateUpdate",t,n,e)===!1?n:(ss(r,t,e),ZS(r,t,e)||(tx(r,t,e),ex(r,t,e),e.preventStateUpdateListener||_t("stateUpdate",t,n,e)),r)},ZS=(t,e,r)=>{let n=t.__element,{parent:o,__ref:s}=n,i=s?.__state,a=s?.__stateType;if(!i)return;let c=qe(n),f=ze(n,o,{returnParent:!0});if(!(c&&f&&!r.stopStatePropagation))return;let u=a==="string"||a==="number"||a==="boolean",p=u?t.value:t.parse(),d=u?t.value:e,h=je(i,o.state),m=Ve(i,o.state),S=i.replaceAll("~/","").replaceAll("../",""),_=ns(S,d),w=h||m||o.state;r.replace&&it(w,_||p),w.update(_,{...r,isHoisted:!0,preventUpdate:r.preventHoistElementUpdate,overwrite:!r.replace});let E=r.preventUpdate!==!0||!r.preventHoistElementUpdate;return!r.preventStateUpdateListener&&E&&_t("stateUpdate",e,n,r),!0},tx=(t,e,r)=>{if(t.__depends)for(let n in t.__depends)t.__depends[n].clean().update(t.parse(),r)},ex=(t,e,r)=>{let n=t.__element;r.preventUpdate!==!0?n.update({},{...r,updateByState:!0}):r.preventUpdate==="recursive"&&n.update({},{...r,isHoisted:!1,updateByState:!0,preventUpdate:!0})};var rx=function(){let t=this;if(g(t)){let e={};for(let r in t)Ot.has(r)||(e[r]=t[r]);return e}else if(x(t))return t.filter(e=>!Ot.has(e))},nx=function(t={}){let e=this;for(let r in e)!Ot.has(r)&&Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];return t.preventStateUpdate||e.update(e,{replace:!0,...t}),e},ox=function(t={}){let e=this,r=e.__element,n=r.__ref.__state;if(b(n))return r.parent.state.remove(n,{isHoisted:!0,...t}),r.state;if(delete r.state,r.state=e.parent,e.parent&&delete e.parent.__children[r.key],e.__children)for(let o in e.__children){let s=e.__children[o];s.state&&(x(s.state)?Object.defineProperty(s.state,"parent",{value:e.parent,enumerable:!1,configurable:!0,writable:!0}):Object.setPrototypeOf(s,{parent:e.parent}))}return r.state.update({},{isHoisted:!0,...t}),r.state},sx=function(t,e={}){let r=this;if(!(!r||!r.parent))return r.parent.update(t,{isHoisted:!0,...e})},ix=function(t,e={}){let r=this;return r?r.__element.__ref.root.state.update(t,{isHoisted:!1,...e}):void 0},ax=function(t,e={}){let r=this;if(x(r))r.push(t),r.update(r.parse(),{overwrite:!0,...e});else if(g(r)){let n=Object.keys(r).length;r.update({[n]:t},e)}},cx=function(t,e={}){let r=this;r.update({[t]:!r[t]},e)},lx=function(t,e={}){let r=this;return x(r)?fo(r,t):g(r)&&wo(r,t),e.applyReset?r.set(r.parse(),{replace:!0,...e}):r.update({},e)},fx=function(t,e={}){let r=this,n=j(t);return r.clean({preventStateUpdate:!0,...e}).update(n,{replace:!0,...e})},Em=function(t,e,r={}){let n=this,o=j(e);r.preventReplace||Eo(n,t,e);let s=vo(t,o);return r.preventStateUpdate?s:n.update(s,r)},ux=function(t,e={}){let r=this,n=t.reduce((o,s)=>{if(s[0]==="update"){let i=Em.call(r,s[1],s[2],{preventStateUpdate:!0});return it(o,i)}else s[0]==="delete"&&ml.call(r,s[1],{...e,preventUpdate:!0});return o},{});return r.update(n,e)},ml=function(t,e={}){let r=this;return Co(r,t),e.preventUpdate?t:r.update({},e)},px=function(t,e={}){let r=this;for(let n=0;n<t.length;n++)ml(t[n],{preventUpdate:!0});return r.update({},e)},dx=function(t,e={}){return ko(this,t)},hx=function(t={}){let e=this,r=j(e.parse());return e.set(r,{replace:!0,...t})},mx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.update(n,{replace:!0,...e})}},gx=function(t,e={}){let r=this;if(y(t)){let n=t(r);return r.replace(n,e)}},yx=function(t,e={}){let r=this;if(y(t))return t(r),r.update(r.parse(),{replace:!0,...e})},bx=function(t,e={}){return this.update(t,{preventUpdate:!0,...e})},Sx=function(t,e={}){let r=this;for(let n in t)r[n]=t[n];return r.update(t,e)},xx=function(t,e={}){return this.replace(t,{preventUpdate:!0,...e})},_x=function(t,e={}){return Object.keys(this)},wx=function(t,e={}){return Object.values(this)},km=t=>{let e=t.state,r=t.__ref,n={clean:nx.bind(e),parse:rx.bind(e),destroy:ox.bind(e),update:Cm.bind(e),rootUpdate:ix.bind(e),parentUpdate:sx.bind(e),create:ir.bind(e),add:ax.bind(e),toggle:cx.bind(e),remove:lx.bind(e),apply:mx.bind(e),applyReplace:gx.bind(e),applyFunction:yx.bind(e),set:fx.bind(e),quietUpdate:bx.bind(e),replace:Sx.bind(e),quietReplace:xx.bind(e),reset:hx.bind(e),parent:t.parent?.state||e,setByPath:Em.bind(e),setPathCollection:ux.bind(e),removeByPath:ml.bind(e),removePathCollection:px.bind(e),getByPath:dx.bind(e),keys:_x.bind(e),values:wx.bind(e),__element:t,__children:{},root:r?.root?r.root.state:e};x(e)?pr(e,n):Object.setPrototypeOf(e,n),e.parent&&e.parent.__children&&(e.parent.__children[t.key]=e)};var ir=function(t,e,r){return t.state=vx(t,e,r),t.state},vx=function(t,e,r){let n=es(t);if(n===!1)return e.state||{};if(t.state=n,z("stateInit",t,r)===!1)return t.state;if(qe(t)){let i=rs(t,e);t.state=K(i)?{}:i}let s=os(t,t.state||e.state||{});return s&&(t.state=s),km(t),z("stateCreated",t),t.state};v();v();var Am=[];var $i={stackChanges:!1,cleanExec:!0,preventRecursive:!1,currentSnapshot:!1,calleeElement:!1,exclude:Am},Hn=function(t={},e){let r=g(e)?{...$i,...e}:{...$i},n=this,o=n.__ref;o||(o=n.__ref={});let[s,i,a]=Is(n,r);if(a)return;r.preventListeners||_t("startUpdate",t,n,r);let{parent:c,node:f,key:l}=n,{exclude:u,preventInheritAtCurrentState:p}=r;if(p&&p.__element===n||(u||Y(r,$i),(b(t)||ct(t))&&(t={text:t}),t=Go.call(n,t),kx(n,r)===!1)||Ex(n,c,r))return;if(o.__if&&!r.preventPropsUpdate){let N=c.props&&(c.props[l]||c.props.childProps),F=o.__propsStack.some(y),V=t.props||N||F;V&&Jo(V,n,c)}if(!r.preventBeforeUpdateListener&&!r.preventListeners&&(n.on?.beforeUpdate||n.props?.onBeforeUpdate)){let F={...t,...n};if(Object.setPrototypeOf(F,Object.getPrototypeOf(n)),_t("beforeUpdate",t,F,r)===!1)return n}if(it(n,t),Pi(n),lm(n,{ignore:$i}),fm(n),!r.isForced&&!r.preventListeners&&z("beforeClassAssign",n,r),!o.__if)return!1;if(!f)return;let{preventUpdate:m,preventDefineUpdate:S,preventContentUpdate:_,preventStateUpdate:w,preventRecursive:E,preventUpdateListener:R,preventUpdateAfter:T,preventUpdateAfterCount:O}=r;if(T){if(ct(O)&&T<=O)return;r.preventUpdateAfterCount===void 0?r.preventUpdateAfterCount=1:r.preventUpdateAfterCount++}let k=x(m)?new Set(m):null,L=x(S)?new Set(S):null;for(let N in n){let F=n[N];if(!Object.prototype.hasOwnProperty.call(n,N))continue;let V=k&&k.has(N),Z=L&&L.has(N),tt=y(F)&&N.length>2&&N.charCodeAt(0)===111&&N.charCodeAt(1)===110&&N.charCodeAt(2)>=65&&N.charCodeAt(2)<=90;if(K(F)||V||Z||S===!0||S===N||w&&N==="state"||jt(N,n)||tt||g(fe[N]))continue;w==="once"&&(r.preventStateUpdate=!1);let pt=Di(N,n,r);if(pt){let{hasDefine:Et,hasContextDefine:Ut}=pt;if(!(g(F)&&!Et&&!Ut&&!E))continue;let pa=n.props.lazyLoad||r.lazyLoad;r.onEachUpdate&&r.onEachUpdate(N,n,n.state,n.context);let st=t[N];if(st===void 0&&!r.isForced){if(r.onlyUpdate){if(N!==r.onlyUpdate)continue}else if(!r.updateByState)continue}let da=r.onlyUpdate&&N===r.onlyUpdate?{...r,onlyUpdate:void 0,currentSnapshot:s,calleeElement:i}:{...r,currentSnapshot:s,calleeElement:i},ha=()=>Hn.call(F,st,da);pa?D.requestAnimationFrame(()=>{ha(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):ha()}}if(!_){let N=o.contentElementKey||"content",F=n[N],V=r.updateByState?t.children||(o.__exec?.children?n.children:void 0):t.children||n.children;if(V){let Z=Fi(V,n,e);if(Z&&!o.__noChildrenDifference)qn(Z,n,r);else if(F?.__ref&&y(F.update)){let tt=n.props?.lazyLoad||r.lazyLoad,pt=()=>Hn.call(F,t[N],{...r,currentSnapshot:s,calleeElement:i});tt?D.requestAnimationFrame(()=>{pt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):pt()}}else if(F?.__ref&&y(F.update)){let Z=n.props?.lazyLoad||r.lazyLoad,tt=()=>Hn.call(F,t[N],{...r,currentSnapshot:s,calleeElement:i});Z?D.requestAnimationFrame(()=>{tt(),!r.preventUpdateListener&&!r.preventListeners&&z("lazyLoad",n,r)}):tt()}else{let Z=n.children||t.content;Z&&!r.updateByState&&qn(Z,n,r)}}!R&&!r.preventListeners&&z("update",n,r),!r.preventFetch&&o.__fetchOnStateChange&&o.__fetchOnStateChange()},Cx=(t,e)=>{let{__children:r}=e.__ref||{};if(!r)return!1;let n=r.indexOf(t.key),o;for(let i=n-1;i>=0;i--){let a=e[r[i]];if(a?.node?.parentNode){o=a.node;break}}if(o)return{position:"after",node:o};let s;for(let i=n+1;i<r.length;i++){let a=e[r[i]];if(a?.node?.parentNode){s=a.node;break}}return s?{position:"before",node:s}:!1},Ex=(t,e,r)=>{if(!y(t.if)&&!y(t.props?.if)||!e)return;let n=t.__ref,o=(t.if||t.props?.if)(t,t.state,t.context,r),s=n.__if!==!0;if(o){if(n.__if=!0,s){delete t.__hash,delete t.__text,delete t.extends,n.__hasRootState||delete t.state,n.__state?t.state=n.__state:n.__hasRootState||delete t.state,t.node&&(t.node.remove(),delete t.node);let i=n.contentElementKey;t.children?t.removeContent():t[i]?.parseDeep&&(t[i]=t[i].parseDeep());let a=Cx(t,e);delete t.__ref,delete t.parent;let c=Gt(t,e,t.key,lt.create,a);return r.preventUpdate!==!0&&t.on&&y(t.on.update)&&Sr(t.on.update,c,c.state),c}}else t.node&&!o&&(t.node.remove(),delete n.__if)},kx=(t,e)=>{let{__ref:r}=t,n=r.__state,{parent:o}=t,{preventUpdateTriggerStateUpdate:s}=e;if(s)return;if(!n&&!r.__hasRootState){t.state=o?.state||{};return}let i=ze(t,t.parent);if(!i||e.preventInheritedStateUpdate)return;if(!e.preventBeforeStateUpdateListener&&!e.preventListeners&&_t("beforeStateUpdate",i,t,e)===!1)return t;let a=Ax(t,o,e);!e.preventStateUpdateListener&&!e.preventListeners&&_t("stateUpdate",a.parse(),t,e)},Ax=(t,e,r)=>{let n=t.state.__children,o=ir(t,e);t.state=o;for(let s in n)o[s]&&(o.__children[s]=n[s]),Object.getPrototypeOf(n[s]).parent=o;return o};ac();var gl=(t,e,r={})=>{let n={set:bl,reset:Om,update:Hn,variables:As,remove:hs,updateContent:Tm,removeContent:yl,setProps:ms,lookup:us,lookdown:ps,lookdownAll:ds,getRef:gs,getDB:Ts,getPath:ys,getQuery:Rs,getRootState:bs,getRoot:Ss,getRootData:xs,getRootContext:_s,getContext:ws,setNodeStyles:wn,spotByPath:fs,parse:Cn,parseDeep:_r,keys:vn,nextElement:Es,previousElement:ks,log:vs,verbose:En,warn:Cs,error:wr,call:Os};t.context.methods&&(r.strict?Y:oe)(n,t.context.methods),Object.setPrototypeOf(t,n)};var Rm=new Set(["class","style"]),Ox=t=>{let{tag:e,props:r,context:n}=t;if(!e||!r)return;let o=n?.cssPropsRegistry,s=uc(e,r,o),i=pc(r,e,o),a={};for(let f in s)Rm.has(f)||(a[f]=vr[f]?vr[f]:s[f]);for(let f in i)Rm.has(f)||(a[f]=i[f]);let c=!1;for(let f in a){c=!0;break}c&&(t.attr?typeof t.attr=="object"&&(t.attr={...a,...t.attr}):t.attr=a)},Li=process.env.NODE_ENV,Gt=(t,e,r,n=lt.create||{},o)=>{Tx(n);let s=ts(t,e,r,n,dl);if(!s)return;let{key:i,parent:a,__ref:c}=s;return Zo(s,a),jo(s,a,n),n.onlyResolveExtends?Nx(s,a,i,n):(un.call(s,s),z("start",s,n),Rx(s,a,n),gl(s,a,n),hn(s,a),ir(s,a),yr(s,a),pn(s,a,n),br.call(s,s,{cachedKeys:[]}),s.tag||(s.tag=fl(s)),Ox(s),yr(s,a),s.node&&c.__if?ul(s,a,i,o):(z("init",s,n)===!1||(z("beforeClassAssign",s,n),pm(s),Px(s,a,n,o),Pm(s,a),z("complete",s,n)),s))},Tx=t=>{t&&!lt.create&&(lt.create=t,lt.create.context=t.context)},Rx=(t,e,r)=>{let n=!1;for(let o in r){n=!0;break}n&&(lt.defaultOptions=r,r.ignoreChildExtends&&delete r.ignoreChildExtends)},Pm=(t,e)=>{e.__ref&&e.__ref.__children&&(e.__ref.__children.includes(t.key)||e.__ref.__children.push(t.key))},Ix=1,Im=new WeakMap,Px=(t,e,r,n)=>{Im.has(t)&&(Li==="test"||Li==="development")&&console.warn("Cyclic rendering detected:",t.__ref.path),Im.set(t,!0);let{__ref:o,key:s}=t,i=()=>{let a=Ao(o.path);o.__uniqId||a||(wm(t,r),o.__uniqId=Ix++)};if(Li==="test"||Li==="development"||t.context?.strictMode)i();else try{i()}catch(a){t.error=a;let c=o.path;c.includes("ComponentsGrid")&&c.splice(0,c.indexOf("ComponentsGrid")+2),c.includes("demoComponent")&&c.splice(0,c.indexOf("demoComponent")+1);let f=t.lookup(l=>l.state.key)?.state?.key;t.warn("Error happened in:",f?f+" ":""+c.join(".")),t.verbose(),console.error("[DOMQL] Render error:",a),t.on?.error&&t.on.error(a,t,t.state,t.context,r)}if(!o.__if)return e[s||t.key]=t,t;ul(t,e,s,n),om(t,r),z("render",t,r),z("renderRouter",t,r),z("done",t,r),z("create",t,r)},Nx=(t,e,r,n)=>{let{__ref:o}=t;if(gl(t,e,n),hn(t,e),ir(t,e),yr(t,e),pn(t,e,n),br.call(t,t,{cachedKeys:[]}),t.node&&o.__if&&(e[r||t.key]=t),t.props||(t.props={}),Pm(t,e),t.tag!=="string"&&t.tag!=="fragment"){Ni(t),Ii(t);for(let s in t){if(K(t[s])||jt(s,t)||g(fe[s]))continue;let i=t.define?.[s],a=t.context?.define?.[s],c=n.define?.[s];if(!(!o.__skipCreate&&fe[s]&&!c)&&t[s]&&!i&&!c&&!a)try{Gt(A(t[s],t),t,s,n)}catch(f){console.warn("[DOMQL] onlyResolveExtends child error in",s,":",f?.message||f)}}}return e[r||t.key]=t,delete t.update,delete t.__element,t.props&&(delete t.props.update,delete t.props.__element),t},Bi=Gt;var Wr=(t,e={})=>{let{__ref:r}=t,n=e.contentElementKey;return(!r.contentElementKey||n!==r.contentElementKey)&&(r.contentElementKey=n||"content"),r.contentElementKey};function Om(t){let e=this;Gt(e,e.parent,void 0,{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...t})}var Nm=(t,e,r)=>{let n=Wr(e,r);e[n]?.node&&yl(e,r);let o=Gt(t,e,n||"content",{ignoreChildExtends:!0,...lt.defaultOptions,...lt.create,...r});return n!=="content"&&(r.contentElementKey="content"),o},Tm=function(t,e){let r=this,n=Wr(r,e);r[n]&&r[n].update&&r[n].update(t,e)};function qn(t,e,r){let n=A(t,e);n&&e&&bl.call(e,n,r)}var yl=function(t,e={}){let r=t||this,n=Wr(r,e);e.contentElementKey!=="content"&&(e.contentElementKey="content");let o=r[n];if(o){if(o.tag==="fragment"&&o.__ref?.__children){let s=o.__ref.__children;for(let i=0;i<s.length;i++){let a=o[s[i]];a.node&&a.node.parentNode&&a.node.parentNode.removeChild(a.node),y(a.remove)&&a.remove()}}else o.node&&o.node.parentNode&&o.node.parentNode.removeChild(o.node),y(o.remove)&&o.remove();delete r[n]}},bl=function(t,e={},r){let n=r||this,{__ref:o}=n;if(o.__settingContent)return n;o.__settingContent=!0;try{return Dx(t,e,n)}finally{o.__settingContent=!1}},Dx=function(t,e,r){let{__ref:n}=r,o=Wr(r,e),s=r[o],i=s&&s.__ref,a=r.props&&r.props.lazyLoad,c=r.children;if(e.preventContentUpdate===!0&&!c)return;let f=!n.__noChildrenDifference,l=f&&i&&Object.keys(t).length===Object.keys(s).length&&_o(t,s);if(s?.update&&!f&&!l){if(!e.preventBeforeUpdateListener&&!e.preventListeners&&_t("beforeUpdate",t,r,e)===!1)return r;s.update(t),!e.preventUpdateListener&&!e.preventListeners&&z("update",r,e);return}if(!t||typeof t!="object")return r;let{childExtends:u,props:p,tag:d}=t;if(p||(p=t.props={}),d==="fragment"){let h=r.childExtends||r.childExtend;!u&&h&&(t.childExtends=h,p.ignoreChildExtends=!0);let m=r.childProps||r.props?.childProps;!p?.childProps&&m&&(p.childProps=m),p.ignoreChildProps=!0}a?window.requestAnimationFrame(()=>{Nm(t,r,e),e.preventUpdateListener||z("lazyLoad",r,e)}):Nm(t,r,e)};var Fm=/^:(.+)/,$m=/^\*$/,Dm=new Map,Sl=t=>{let e=Dm.get(t);if(e)return e;let r=t.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Fm);a?n.push({index:i,name:a[1]}):$m.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:t};return Dm.set(t,s),s},xl=(t,e,r=0)=>{let o=t.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,c={};for(let f in e){if(f==="/*")continue;let l=Sl(f),u=Fx(o,l);u>a&&(a=u,i=f,c=$x(o,l))}return!i&&e["/*"]&&(i="/*"),{key:i,content:i?e[i]:null,params:c,routePath:s}},Fx=(t,e)=>{let{segments:r,hasWildcard:n}=e;if(!n&&r.length!==t.length&&r.length!==1&&r.length>t.length)return-1;let o=0,s=Math.min(r.length,t.length);for(let i=0;i<s;i++)if(r[i]===t[i])o+=3;else if(Fm.test(r[i]))o+=1;else if($m.test(r[i]))o+=.5;else return-1;return o},$x=(t,e)=>{let r={};for(let{index:n,name:o}of e.params)t[n]&&(r[o]=decodeURIComponent(t[n]));return r},_l=t=>{if(!t||t==="?")return{};let e={};return new URLSearchParams(t).forEach((n,o)=>{e[o]!==void 0?(Array.isArray(e[o])||(e[o]=[e[o]]),e[o].push(n)):e[o]=n}),e},wl=async(t,e)=>{if(!t||!t.length)return!0;for(let r of t){let n=await r(e);if(n===!1)return!1;if(typeof n=="string")return n}return!0},vl=(t=0,e=D.location.pathname)=>{let n=e.split("/")[t+1];if(n)return`/${n}`},Mi,Ui=0,Lx={level:Ui,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:B&&B.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},ue=(t,e,r={},n={})=>{let o=e||void 0,s=o.context.window||D,i=o.context.document||B,a={...Lx,...o.context.routerOptions,...n};Ui=a.lastLevel;let c=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==c.contentElementKey||!c.contentElementKey)&&(c.contentElementKey=a.contentElementKey||"content");let f=Wr(o,a),l=s.location.origin!=="null"?s.location.origin:"http://localhost",u=new s.URL(l+t),{pathname:p,search:d,hash:h}=u,m=_l(d),S=o.node,_=h&&h!==s.location.hash.slice(1),w=p!==Mi;Mi=p;let E,R,T;if(a.useParamsMatching){let k=xl(p,o.routes,a.level);E=k.routePath,R=k.content,T=k.params}else E=vl(a.level,p),R=o.routes[E||"/"]||o.routes["/*"],T={};let O=a.scrollToNode?S:a.scrollNode;if(!R||o.state.root.debugging){o.state.root.debugging=!1,a.onNotFound&&a.onNotFound({pathname:p,route:E,element:o});return}if(a.guards&&a.guards.length){let k={pathname:p,route:E,params:T,query:m,hash:h,element:o,state:r},L=wl(a.guards,k);if(L===!1)return;if(typeof L=="string")return ue(L,e,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(d||"")+(h||""))}catch{}if(w||!_){let k={route:E,hash:h,debugging:!1};Object.keys(T).length&&(k.params=T),Object.keys(m).length&&(k.query=m),a.updateState&&o.state.update(k,{preventContentUpdate:!0}),f&&a.removeOldElement&&o[f].remove();let L=o.__ref?.origin?.content,N={};if(L)for(let F in L){let V=L[F];F==="__ref"||F==="props"||F==="node"||F==="parent"||F==="key"||(typeof V=="string"||typeof V=="number"||typeof V=="boolean"||typeof V=="object"&&V!==null&&!V.node&&!V.__ref)&&(N[F]=V)}o.set({...N,tag:a.useFragment&&"fragment",extends:R},{contentElementKey:f})}if(a.scrollToTop&&O?.scrollTo&&O.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&R[f]?.node?.scrollTo&&R[f].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),h){let k=i.getElementById(h);if(k&&O?.scrollTo){let L=k.getBoundingClientRect().top+S.scrollTop-(a.scrollToOffset||0);O.scrollTo({...a.scrollToOptions||{},top:L,left:0})}}z("routeChanged",o,a)},Bx=ue;var El={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:t=>{let e=t.props;return _e(t,e.href)||_e(t,t.call("exec",e,t).href)},"aria-label":({props:t})=>t.aria?t.aria.label:t.text}},Lm={extends:"Link"},kl={onClick:(t,e,r)=>{let{props:n,context:o}=e,{href:s,scrollToTop:i,stopPropagation:a}=n,c=e.call("exec",s,e);if(e.call("isString",c)&&c.includes("{{")&&(c=e.call("replaceLiteralsWithObjectFields",c)),a&&t.stopPropagation(),!c)return;let{utils:f,snippets:l,functions:u,routerOptions:p}=o,d=e.__ref.root,h=c.startsWith("http://")||c.startsWith("https://")||c.startsWith("mailto:")||c.startsWith("tel:")||c.startsWith("sketch:")||c.startsWith("whatsapp:")||c.startsWith("sms:")||c.startsWith("skype:")||c.startsWith("viber:")||c.startsWith("callto:")||c.startsWith("facetime:")||c.startsWith("facetime-audio:")||c.startsWith("geo:")||c.startsWith("maps:");if(c&&!h){t.preventDefault();try{let m=d;if(p&&p.customRouterElement){let S=Array.isArray(p.customRouterElement)?p.customRouterElement:p.customRouterElement.split("."),_=d;for(let w of S){if(!_||!_[w]){_=null;break}_=_[w]}_&&(m=_,d.routes&&(m.routes=d.routes))}(u.router||l.router||f.router||ue)(c,m,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:e.call("isDefined",i)?i:!0,...p,...n.routerOptions})}catch(m){console.warn(m)}}}},Bm={extends:[El,kl]};var Mm={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:({props:t})=>t.value,selected:({props:t})=>t.selected,disabled:({props:t})=>t.disabled}},attr:{name:({props:t})=>t.name,disabled:({props:t})=>t.disabled,value:t=>{if(!t.props||!t.props.value)return;let e=t.call("exec",t.props.value,t);return t.call("isString",e)&&e.includes("{{")?t.call("replaceLiteralsWithObjectFields",e):e}}};var Um={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:t=>t.call("exec",t.props.disabled)},jm={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z",boxSizing:"content-box"},Vm={extends:"SquareButton",round:"C"},Wm={extends:"Button",childExtends:"IconText"},zm={tag:"nav",display:"flex",childExtends:"SquareButton"},qm={extends:["SquareButton","ClickableItem"],round:"Z"};var Hm={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Gm={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},Km={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};v();var Ym={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:({parent:t,props:e})=>dt(t.props.title)||e.text,width:"fit-content",fontWeight:500,color:"gray12",text:({parent:t})=>t.props.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.props.description,t))||t.props.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.props.description,t)}},Xm={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",props:({props:t})=>({...!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"}}:({props:e})=>e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{}})},Qm={position:"relative",zIndex:999,props:t=>{let{Tooltip:e,TooltipHidden:r}=t,n=e||r;return n?{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":n&&n.props&&n.props[".isActive"]||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}}:void 0}};var Jm={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:t=>`https://api.dicebear.com/7.x/${t.props.avatarType||"initials"}/svg?seed=${t.props.key||t.key||"no-avatar"}`};var Zm={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onInput)?n.onInput(t,e,r):r.update({value:parseFloat(e.node.value)})},onChange:(t,e,r)=>{let n=e.props;e.call("isFunction",n.onChange)?n.onChange(t,e,r):r.update({value:parseFloat(e.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:In("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:In("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(t,e,r)=>{let n=t.props&&t.call("exec",t.props[e],t);return(t.call("isFunction",n)?n(t,t.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(t,e)=>t.call("exec",e.value||t.props.value||t.props.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 tg={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:({props:t})=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},eg={position:"relative",zIndex:999,style:{"&:hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},rg={position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},ng={props:{position:"relative",tabindex:"0",style:{"&:focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}}},Input_trigger:{type:"checkbox",opacity:"0",visibility:"hidden",position:"absolute",inset:"0",onUpdate:t=>t.node.blur()}};var og={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}}}};v();var Gn={};Nt(Gn,{CDN_PROVIDERS:()=>te,DOMQL_EVENTS:()=>yo,DOMQ_PROPERTIES:()=>De,ENV:()=>Pf,ERRORS_REGISTRY:()=>em,HTML_TAGS:()=>cn,METHODS:()=>on,METHODS_EXL:()=>go,NODE_ENV:()=>Yt,OPTIONS:()=>lt,PACKAGE_MANAGER_TO_CDN:()=>Ze,PARSED_DOMQ_PROPERTIES:()=>mo,PROPS_METHODS:()=>Fe,STATE_METHODS:()=>Ot,STATE_PROPERTIES:()=>wf,SVG_TAGS:()=>Ue,TYPES:()=>lo,addCaching:()=>Ya,addContext:()=>Ka,addExtend:()=>nu,addExtends:()=>Tt,addItemAfterEveryElement:()=>cf,addProtoToArray:()=>pr,addRef:()=>qa,applyCSS:()=>Ol,applyDependentState:()=>os,applyEvent:()=>Sr,applyEventUpdate:()=>is,applyExtends:()=>jo,applyProps:()=>qo,arrayContainsOtherArray:()=>ef,arraysEqual:()=>ff,arrayzeValue:()=>Mr,cache:()=>yu,call:()=>Os,captureSnapshot:()=>Is,checkForStateTypes:()=>es,checkIfInherits:()=>qe,checkIfStringIsInArray:()=>df,clone:()=>Ef,cloneAndMergeArrayExtend:()=>No,cloneFunction:()=>jf,concatAddExtends:()=>$o,copyJavaScriptToClipboard:()=>Xp,copyStringToClipboard:()=>Yp,createBasedOnType:()=>za,createElement:()=>ts,createElementExtends:()=>Ia,createExtends:()=>Fo,createExtendsFromKeys:()=>ln,createExtendsStack:()=>Fa,createIfConditionFlag:()=>yr,createInheritedState:()=>rs,createKey:()=>Ro,createNestedObject:()=>vo,createNestedObjectByKeyPath:()=>ns,createObjectWithoutPrototype:()=>wa,createParent:()=>Ha,createPath:()=>Ga,createProps:()=>Ho,createPropsStack:()=>ja,createRoot:()=>Zo,createScope:()=>hn,createSnapshotId:()=>To,customDecodeURIComponent:()=>_f,customEncodeURIComponent:()=>xf,cutArrayAfterValue:()=>sf,cutArrayBeforeValue:()=>of,debounce:()=>Lf,debounceOnContext:()=>Bf,decodeNewlines:()=>Sf,deepClone:()=>j,deepContains:()=>_o,deepDestringifyFunctions:()=>ne,deepExtend:()=>Ra,deepMerge:()=>W,deepMergeExtends:()=>se,deepStringifyFunctions:()=>bo,defineSetter:()=>Mu,destringifyGlobalScope:()=>xo,detectInfiniteLoop:()=>Ao,document:()=>B,encodeNewlines:()=>bf,error:()=>wr,excludeKeysFromObject:()=>If,exec:()=>A,extendCachedRegistry:()=>tu,extendStackRegistry:()=>Lo,extractArrayExtend:()=>Mo,fibonacciNumberByIndex:()=>Lp,filterArrays:()=>uf,filterArraysFast:()=>pf,finalizeExtends:()=>$a,findClosestNumber:()=>Rc,findClosestNumberInFactory:()=>Fp,findInheritedState:()=>ze,findKeyPosition:()=>gf,flattenExtend:()=>fn,formatDate:()=>$p,generateHash:()=>Aa,generateKey:()=>Oo,generateMetaTags:()=>Gp,get:()=>Lu,getActiveRoute:()=>vl,getCDNUrl:()=>ee,getCapitalCaseKeys:()=>su,getCdnProviderFromConfig:()=>Fn,getChildStateInKey:()=>We,getChildren:()=>Bu,getContext:()=>ws,getCookie:()=>Kf,getDB:()=>Ts,getExtendsInElement:()=>ou,getExtendsStack:()=>Do,getExtendsStackRegistry:()=>Ta,getFrequencyInArray:()=>rf,getHashedExtend:()=>Bo,getImportMapScript:()=>qp,getInObjectByPath:()=>ko,getLocalStorage:()=>Xf,getNev:()=>$f,getPageMetadata:()=>Kp,getParentStateInKey:()=>Ve,getPath:()=>ys,getQuery:()=>Rs,getRef:()=>gs,getRoot:()=>Ss,getRootContext:()=>_s,getRootData:()=>xs,getRootState:()=>bs,getRootStateInKey:()=>je,getSpreadChildren:()=>iu,global:()=>Zl,hasFunction:()=>sn,hasHandlerPlugin:()=>Be,hasOwnProperty:()=>Af,inheritChildExtends:()=>Na,inheritChildPropsExtends:()=>Pa,inheritParentProps:()=>Ko,inheritRecursiveChildExtends:()=>Da,init:()=>Te,initProps:()=>pn,is:()=>At,isArray:()=>x,isBoolean:()=>tn,isContextComponent:()=>Wo,isCyclic:()=>Rf,isDOMNode:()=>Dt,isDate:()=>ba,isDefined:()=>dt,isDevelopment:()=>Xt,isEmpty:()=>xa,isEmptyObject:()=>Of,isEqualDeep:()=>_a,isFunction:()=>y,isHtmlElement:()=>co,isLocal:()=>Ff,isMethod:()=>jt,isMobile:()=>Hf,isNode:()=>me,isNot:()=>ur,isNotProduction:()=>gr,isNull:()=>ya,isNumber:()=>ct,isObject:()=>g,isObjectLike:()=>I,isPhoto:()=>zp,isProduction:()=>Le,isStaging:()=>Df,isState:()=>dn,isString:()=>b,isStringFunction:()=>Uf,isTest:()=>va,isTesting:()=>Nf,isUndefined:()=>K,isValidHtmlTag:()=>ye,joinArrays:()=>en,jointStacks:()=>ru,keys:()=>vn,lastLevel:()=>Ui,lastPathname:()=>Mi,loadCssFile:()=>jp,loadJavascript:()=>Vp,loadJavascriptFile:()=>Bp,loadJavascriptFileEmbedSync:()=>Up,loadJavascriptFileSync:()=>Mp,loadRemoteCSS:()=>Wp,loadRemoteScript:()=>Dn,log:()=>vs,logGroupIf:()=>zf,logIf:()=>Wf,lookdown:()=>ps,lookdownAll:()=>ds,lookup:()=>us,lowercaseFirstLetter:()=>re,makeObjectWithoutPrototype:()=>Tf,map:()=>Cf,mapStringsWithContextComponents:()=>Uo,matchRoute:()=>xl,matchesComponentNaming:()=>Rt,memoize:()=>Mf,merge:()=>Y,nextElement:()=>Es,objectToString:()=>So,objectizeStringProperty:()=>zo,overwrite:()=>oe,overwriteDeep:()=>it,overwriteShallow:()=>mr,overwriteState:()=>ss,parse:()=>Cn,parseDeep:()=>_r,parseQuery:()=>_l,parseRoutePattern:()=>Sl,pickupElementFromProps:()=>br,pickupPropsFromElement:()=>Ma,previousElement:()=>ks,propExists:()=>uu,propertizeElement:()=>un,propertizeUpdate:()=>Go,reinit:()=>Al,remove:()=>hs,removeChars:()=>Qp,removeCookie:()=>Yf,removeDuplicateProps:()=>Xo,removeDuplicatesInArray:()=>rn,removeFromArray:()=>fo,removeFromObject:()=>wo,removeNestedKeyByPath:()=>Co,removeValueFromArray:()=>po,removeValueFromArrayAll:()=>af,reorderArrayByValues:()=>lf,replaceLiteralsWithObjectFields:()=>mf,replaceOctalEscapeSequences:()=>yf,report:()=>bt,resolveHandler:()=>Me,returnValueAsText:()=>Wa,router:()=>ue,runGuards:()=>wl,runPluginHook:()=>an,scratchSystem:()=>Vn,scratchUtils:()=>er,self:()=>tf,set:()=>Ur,setCookie:()=>Gf,setHashedExtend:()=>Oa,setInObjectByPath:()=>Eo,setLocalStorage:()=>Qf,setNodeStyles:()=>wn,setProps:()=>ms,setPropsPrototype:()=>Yo,spotByPath:()=>fs,stringIncludesAny:()=>ho,stringToObject:()=>kf,swapItemsInArray:()=>nf,syncProps:()=>Qo,toCamelCase:()=>Hs,toDashCase:()=>Gs,toDescriptionCase:()=>Zp,toTitleCase:()=>Jp,toggleFullscreen:()=>Dp,triggerEventOn:()=>z,triggerEventOnUpdate:()=>_t,trimStringFromSymbols:()=>hf,unstackArrayOfObjects:()=>uo,update:()=>Ua,updateProps:()=>Jo,variables:()=>As,verbose:()=>En,warn:()=>Cs,window:()=>D});v();v();var Mx=C(),sg=(t=Mx,e)=>{let r=g(e.localFile)?e.localFile:{},n=j(r.designSystem||{});return W(t,n)},Ux={emotion:vt,useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},Te=(t,e=Ux)=>{let r=e.emotion||vt,n=sg(t||{},e),o=Ur({verbose:e.verbose,useReset:e.useReset,useFontImport:e.useFontImport,useVariable:e.useVariable,useSvgSprite:e.useSvgSprite,useDocumentTheme:e.useDocumentTheme,useIconSprite:e.useIconSprite,useDefaultConfig:e.useDefaultConfig,globalTheme:e.globalTheme,files:e.files,...n},{newConfig:e.newConfig}),s=zs(o.font,o.files),i=o.useReset,a=o.useVariable,c=o.useFontImport,f=o.useSvgSprite,l=t.svg,u=o.useIconSprite,p=t.icons;if(c&&r.injectGlobal(s),a&&(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS)){let h={};for(let m in o.CSS_MEDIA_VARS)m.startsWith("@media")?h[m]={":root:not([data-theme])":o.CSS_MEDIA_VARS[m]}:h[m]=o.CSS_MEDIA_VARS[m];r.injectGlobal(h)}i&&r.injectGlobal(o.reset);let d=o.animation;if(d){let h={};for(let m in d)h[`@keyframes ${m}`]=d[m];r.injectGlobal(h)}return(l||f)&&bi(o.svg,{document:e.document}),(p||u)&&xi(o.icons,{document:e.document}),o},ji={emotion:vt},Al=(t,e=ji)=>{let r=e.emotion||vt,n=sg(t||{},e),o=Ur({verbose:!1,...n});if(!e.preventInject){if(r.injectGlobal({":root":o.CSS_VARS}),o.CSS_MEDIA_VARS){let s={};for(let i in o.CSS_MEDIA_VARS)i.startsWith("@media")?s[i]={":root:not([data-theme])":o.CSS_MEDIA_VARS[i]}:s[i]=o.CSS_MEDIA_VARS[i];r.injectGlobal(s)}r.injectGlobal(o.reset)}return o},Ol=(t,e=ji)=>{(e.emotion||vt).injectGlobal(t)},jx=(t,e=ji)=>{let r=e.emotion||vt;if(r.injectGlobal({":root":t.CSS_VARS}),t.CSS_MEDIA_VARS){let n={};for(let o in t.CSS_MEDIA_VARS)o.startsWith("@media")?n[o]={":root:not([data-theme])":t.CSS_MEDIA_VARS[o]}:n[o]=t.CSS_MEDIA_VARS[o];r.injectGlobal(n)}};var Vx=(t,e=ji)=>{};v();var Tl={initRouter:!0,injectRouterInLinkComponent:!0,popState:!0},ig=(t,e)=>{if(!e)return t;let r=Array.isArray(e)?e:e.split("."),n=t;for(let o of r){if(!n||!n[o])return null;n=n[o]}return n},ag=(t,e)=>{if(e.router===!1)return;e.router===!0?e.router=Tl:e.router=Y(e.router||{},Tl);let r=e.router,n=async(s,i)=>{if(!D.location)return;let{pathname:a,search:c,hash:f}=D.location,l=a+c+f,u=s;if(r.customRouterElement){let p=ig(s,r.customRouterElement);p&&(u=p,s.routes&&(u.routes=s.routes))}u.routes&&await ue(l,u,{},{initialRender:!0})},o=t.on&&!K(t.on.renderRouter)||!K(t.onRenderRouter);return r&&r.initRouter&&!o&&(t.on?t.on.renderRouter=n:t.on={renderRouter:n}),Wx(e,r),r},cg=(t,e)=>{let r=e.router||Tl;if(!r.popState)return;let n=e.utils&&e.utils.router?e.utils.router:ue;D.onpopstate=async o=>{let{pathname:s,search:i,hash:a}=D.location,c=s+i+a,f=t;if(r.customRouterElement){let l=ig(t,r.customRouterElement);l&&(f=l,t.routes&&(f.routes=t.routes))}await f.call("router",c,f,{},{pushState:!1,scrollToTop:!1,level:0,event:o})}},Wx=(t,e)=>{let{components:r}=t;if(e&&e.injectRouterInLinkComponent)return W(r.Link||r["smbls.Link"],r.RouterLink||r["smbls.RouterLink"])};v();var Rl=D&&D.location?D.location.host.includes("dev."):Xt(),lg=Rl?"http://localhost:8080/get":"https://api.symbols.app/get",zx={endpoint:lg},fg=async(t,e=zx)=>{let r=e.endpoint||lg,n=e.serviceRoute?x(e.serviceRoute)?e.serviceRoute.map(s=>s.toLowerCase()+"=true").join("&"):e.serviceRoute:"",o;try{return o=await globalThis.fetch(r+"/?"+n,{method:"GET",headers:{"Content-Type":"application/json","X-AppKey":t,"X-Metadata":e.metadata}}),await o.json()}catch(s){if(y(e.onError))return e.onError(s);console.error(s)}},qx=async(t,e)=>{let{editor:r}=e;if(r&&r.remote){let n=await fg(t,r),o=Rl||e.isDevelopment?ne(n):ne(n.releases[0]);r.serviceRoute?x(r.serviceRoute)?r.serviceRoute.forEach(s=>{it(e[s],o[s.toLowerCase()])}):it(e[r.serviceRoute],o):["state","designSystem","components","snippets","pages","utils","files","packages","functions","globalScope"].forEach(s=>{it(e[s],o[s.toLowerCase()])})}return e},Hx=async(t,e,r)=>{let{editor:n}=e;if(n&&n.remote){let o=await fg(t,n),s=Rl||e.isDevelopment?ne(o):ne(o.releases[0]);r(s)}},ug=async(t,e)=>{if(t&&e.editor)try{e.editor.async||await qx(t,e)}catch(r){console.error(r)}},pg=(t,e,r,n)=>{if(e&&r.editor)try{r.editor.async&&Hx(e,r,n||(o=>{let s=o.designSystem;g(s)&&r.utils.init(s),g(o.state)&&t.state.set(o.state)}))}catch(o){console.error(o)}};v();var Gx={title:{tag:"title"},description:{tag:"meta",attr:"name",key:"description"},keywords:{tag:"meta",attr:"name",key:"keywords"},robots:{tag:"meta",attr:"name",key:"robots"},author:{tag:"meta",attr:"name",key:"author"},canonical:{tag:"link",attr:"rel",key:"canonical",valueAttr:"href"},image:{tag:"meta",attr:"property",key:"og:image"},url:{tag:"meta",attr:"property",key:"og:url"},siteName:{tag:"meta",attr:"property",key:"og:site_name"},type:{tag:"meta",attr:"property",key:"og:type"},locale:{tag:"meta",attr:"property",key:"og:locale"},"og:title":{tag:"meta",attr:"property",key:"og:title"},"og:description":{tag:"meta",attr:"property",key:"og:description"},"og:image":{tag:"meta",attr:"property",key:"og:image"},"og:url":{tag:"meta",attr:"property",key:"og:url"},"og:type":{tag:"meta",attr:"property",key:"og:type"},"og:site_name":{tag:"meta",attr:"property",key:"og:site_name"},"og:locale":{tag:"meta",attr:"property",key:"og:locale"},"twitter:card":{tag:"meta",attr:"name",key:"twitter:card"},"twitter:title":{tag:"meta",attr:"name",key:"twitter:title"},"twitter:description":{tag:"meta",attr:"name",key:"twitter:description"},"twitter:image":{tag:"meta",attr:"name",key:"twitter:image"},"twitter:site":{tag:"meta",attr:"name",key:"twitter:site"},"theme-color":{tag:"meta",attr:"name",key:"theme-color"}},Kx=t=>{if(t.tag==="link")return`link[${t.attr}="${t.key}"]`;if(t.tag&&!t.attr&&!t.key)return t.tag;if(t.tag&&t.attr&&t.key)return`${t.tag}[${t.attr}="${t.key}"]`},Vi=(t,e,r)=>{if(!t)return{};let n=y(t)?A(t,e,r):{...t};if(!g(n))return{};for(let o in n){let s=n[o];y(s)&&(s=A(s,e,r)),b(s)&&s.includes("{{")&&e?.call&&(s=e.call("replaceLiteralsWithObjectFields",s,r)),n[o]=s}return n};var Yx=(t,e)=>{let r=e.createElement(t.tag);return t.attr&&r.setAttribute(t.attr,t.key),(e.head||e.querySelector("head")).appendChild(r),r},Wi=(t,e)=>{if(!(!g(t)||!e))for(let r in t){let n=t[r];if(n==null)continue;let o=Gx[r];if(!o)continue;let s=Kx(o),i=e.querySelector(s)||Yx(o,e);i&&(r==="title"?i.textContent=n:o.valueAttr?i.setAttribute(o.valueAttr,n):i.setAttribute("content",n))}};var dg={name:"helmet",create(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vi(e,t,t.state);Wi(n,r)},update(t){let e=t.metadata||t.props?.metadata;if(!e)return;let r=t.context?.document||typeof document<"u"&&document;if(!r)return;let n=Vi(e,t,t.state);Wi(n,r)}};Ge();var hg=(t,e,r,n)=>{t&&xn(t,e,r,n)},mg=(t,e,r)=>{if(!t)return;let n=e.context?.document||typeof document<"u"&&document;if(!n)return;let o=Vi(t,e,r);Wi(o,n)},gg=async(t,e)=>{if(!t)return;let r={tag:"fragment",...t},n=async()=>{await e.set(r,{preventDefineUpdate:"$router"})};return e.props&&e.props.lazyLoad?window.requestAnimationFrame(n):await n(),r},zr={routes:t=>t,metadata:mg,fetch:hg,$router:gg},yg=(t={})=>{let e={routes:r=>r};return t.metadata!==!1&&(e.metadata=mg),t.fetch!==!1&&(e.fetch=hg),t.router!==!1&&(e.$router=gg),e};var Il={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},zi={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},qi={...Il,router:zi},Xx={state:{},pages:{},components:{},router:zi,define:zr},Re=Xx;var Qx=(t,e,r,n)=>{let o=(Bi.default||Bi)(t,e,r,n);return o.on?.complete&&o.on.complete(t,t.state,t.context,n),o.props?.onComplete&&o.props?.onComplete(t,t.state,t.context,n),o.on?.initInspect&&o.on.initInspect(t,t.state,t.context,n),o.on?.initSync&&o.on.initSync(t,t.state,t.context,n),o},cr={TREE:hl,create:Qx};v();v();var Kt=Object.create(null);Kt.open="0";Kt.close="1";Kt.ping="2";Kt.pong="3";Kt.message="4";Kt.upgrade="5";Kt.noop="6";var Kn=Object.create(null);Object.keys(Kt).forEach(t=>{Kn[Kt[t]]=t});var Yn={type:"error",data:"parser error"};var xg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",_g=typeof ArrayBuffer=="function",wg=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Xn=({type:t,data:e},r,n)=>xg&&e instanceof Blob?r?n(e):bg(e,n):_g&&(e instanceof ArrayBuffer||wg(e))?r?n(e):bg(new Blob([e]),n):n(Kt[t]+(e||"")),bg=(t,e)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];e("b"+(n||""))},r.readAsDataURL(t)};function Sg(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var Pl;function vg(t,e){if(xg&&t.data instanceof Blob)return t.data.arrayBuffer().then(Sg).then(e);if(_g&&(t.data instanceof ArrayBuffer||wg(t.data)))return e(Sg(t.data));Xn(t,!1,r=>{Pl||(Pl=new TextEncoder),e(Pl.encode(r))})}var Cg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Qn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<Cg.length;t++)Qn[Cg.charCodeAt(t)]=t;var Eg=t=>{let e=t.length*.75,r=t.length,n,o=0,s,i,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);let f=new ArrayBuffer(e),l=new Uint8Array(f);for(n=0;n<r;n+=4)s=Qn[t.charCodeAt(n)],i=Qn[t.charCodeAt(n+1)],a=Qn[t.charCodeAt(n+2)],c=Qn[t.charCodeAt(n+3)],l[o++]=s<<2|i>>4,l[o++]=(i&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return f};var Jx=typeof ArrayBuffer=="function",Jn=(t,e)=>{if(typeof t!="string")return{type:"message",data:kg(t,e)};let r=t.charAt(0);return r==="b"?{type:"message",data:Zx(t.substring(1),e)}:Kn[r]?t.length>1?{type:Kn[r],data:t.substring(1)}:{type:Kn[r]}:Yn},Zx=(t,e)=>{if(Jx){let r=Eg(t);return kg(r,e)}else return{base64:!0,data:t}},kg=(t,e)=>e==="blob"?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer;var Ag="",Og=(t,e)=>{let r=t.length,n=new Array(r),o=0;t.forEach((s,i)=>{Xn(s,!1,a=>{n[i]=a,++o===r&&e(n.join(Ag))})})},Tg=(t,e)=>{let r=t.split(Ag),n=[];for(let o=0;o<r.length;o++){let s=Jn(r[o],e);if(n.push(s),s.type==="error")break}return n};function Rg(){return new TransformStream({transform(t,e){vg(t,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}t.data&&typeof t.data!="string"&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})}var Nl;function Hi(t){return t.reduce((e,r)=>e+r.length,0)}function Gi(t,e){if(t[0].length===e)return t.shift();let r=new Uint8Array(e),n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}function Ig(t,e){Nl||(Nl=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Hi(r)<1)break;let c=Gi(r,1);s=(c[0]&128)===128,o=c[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Hi(r)<2)break;let c=Gi(r,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),n=3}else if(n===2){if(Hi(r)<8)break;let c=Gi(r,8),f=new DataView(c.buffer,c.byteOffset,c.length),l=f.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(Yn);break}o=l*Math.pow(2,32)+f.getUint32(4),n=3}else{if(Hi(r)<o)break;let c=Gi(r,o);a.enqueue(Jn(s?c:Nl.decode(c),e)),n=0}if(o===0||o>t){a.enqueue(Yn);break}}}})}var Dl=4;function X(t){if(t)return t_(t)}function t_(t){for(var e in X.prototype)t[e]=X.prototype[e];return t}X.prototype.on=X.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this};X.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this};X.prototype.off=X.prototype.removeListener=X.prototype.removeAllListeners=X.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+t];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===e||n.fn===e){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+t],this};X.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,e)}return this};X.prototype.emitReserved=X.prototype.emit;X.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]};X.prototype.hasListeners=function(t){return!!this.listeners(t).length};var pe=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,r)=>r(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Pg="arraybuffer";function Ki(t,...e){return e.reduce((r,n)=>(t.hasOwnProperty(n)&&(r[n]=t[n]),r),{})}var e_=St.setTimeout,r_=St.clearTimeout;function de(t,e){e.useNativeTimers?(t.setTimeoutFn=e_.bind(St),t.clearTimeoutFn=r_.bind(St)):(t.setTimeoutFn=St.setTimeout.bind(St),t.clearTimeoutFn=St.clearTimeout.bind(St))}var n_=1.33;function Ng(t){return typeof t=="string"?o_(t):Math.ceil((t.byteLength||t.size)*n_)}function o_(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}function Yi(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Dg(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function Fg(t){let e={},r=t.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}var Xi=class extends Error{constructor(e,r,n){super(e),this.description=r,this.context=n,this.type="TransportError"}},he=class extends X{constructor(e){super(),this.writable=!1,de(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,r,n){return super.emitReserved("error",new Xi(e,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let r=Jn(e,this.socket.binaryType);this.onPacket(r)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,r={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let r=Dg(e);return r.length?"?"+r:""}};var Zn=class extends he{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let r=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Tg(e,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Og(e,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Yi()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(e,r)}};var $g=!1;try{$g=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var Lg=$g;function s_(){}var Fl=class extends Zn{constructor(e){if(super(e),typeof location<"u"){let r=location.protocol==="https:",n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,r){let n=this.request({method:"POST",data:e});n.on("success",r),n.on("error",(o,s)=>{this.onError("xhr post error",o,s)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=e}},Ie=class t extends X{constructor(e,r,n){super(),this.createRequest=e,de(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;let r=Ki(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=s_,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Ie.requestsCount=0;Ie.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Bg);else if(typeof addEventListener=="function"){let t="onpagehide"in St?"pagehide":"unload";addEventListener(t,Bg,!1)}}function Bg(){for(let t in Ie.requests)Ie.requests.hasOwnProperty(t)&&Ie.requests[t].abort()}var i_=(function(){let t=Mg({xdomain:!1});return t&&t.responseType!==null})(),Pe=class extends Fl{constructor(e){super(e);let r=e&&e.forceBase64;this.supportsBinary=i_&&!r}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Ie(Mg,this.uri(),e)}};function Mg(t){let e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Lg))return new XMLHttpRequest}catch{}if(!e)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var Ug=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",Ll=class extends he{get name(){return"websocket"}doOpen(){let e=this.uri(),r=this.opts.protocols,n=Ug?{}:Ki(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;Xn(n,this.supportsBinary,s=>{try{this.doWrite(n,s)}catch{}o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Yi()),this.supportsBinary||(r.b64=1),this.createUri(e,r)}},$l=St.WebSocket||St.MozWebSocket,Ne=class extends Ll{createSocket(e,r,n){return Ug?new $l(e,r,n):r?new $l(e,r):new $l(e)}doWrite(e,r){this.ws.send(r)}};var qr=class extends he{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let r=Ig(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(r).getReader(),o=Rg();o.readable.pipeTo(e.writable),this._writer=o.writable.getWriter();let s=()=>{n.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();let i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let r=0;r<e.length;r++){let n=e[r],o=r===e.length-1;this._writer.write(n).then(()=>{o&&pe(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}};var Bl={websocket:Ne,webtransport:qr,polling:Pe};var a_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Hr(t){if(t.length>8e3)throw"URI too long";let e=t,r=t.indexOf("["),n=t.indexOf("]");r!=-1&&n!=-1&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let o=a_.exec(t||""),s={},i=14;for(;i--;)s[c_[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=l_(s,s.path),s.queryKey=f_(s,s.query),s}function l_(t,e){let r=/\/{2,9}/g,n=e.replace(r,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function f_(t,e){let r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ml=typeof addEventListener=="function"&&typeof removeEventListener=="function",Qi=[];Ml&&addEventListener("offline",()=>{Qi.forEach(t=>t())},!1);var lr=class t extends X{constructor(e,r){if(super(),this.binaryType=Pg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let n=Hr(e);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Hr(r.host).host);de(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Fg(this.opts.query)),Ml&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Qi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=Dl,r.transport=e,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){let o=this.writeBuffer[n].data;if(o&&(r+=Ng(o)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,pe(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,n){return this._sendPacket("message",e,r,n),this}send(e,r,n){return this._sendPacket("message",e,r,n),this}_sendPacket(e,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:e,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ml&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Qi.indexOf(this._offlineEventListener);n!==-1&&Qi.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}};lr.protocol=Dl;var Ji=class extends lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let r=this.createTransport(e),n=!1;lr.priorWebsocketSuccess=!1;let o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",u=>{if(!n)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;lr.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(l(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{let p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function s(){n||(n=!0,l(),r.close(),r=null)}let i=u=>{let p=new Error("probe error: "+u);p.transport=r.name,s(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function c(){i("socket closed")}function f(u){r&&u.name!==r.name&&s()}let l=()=>{r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",a),this.off("close",c),this.off("upgrading",f)};r.once("open",o),r.once("error",i),r.once("close",a),this.once("close",c),this.once("upgrading",f),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let r=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&r.push(e[n]);return r}},Gr=class extends Ji{constructor(e,r={}){let n=typeof e=="object"?e:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(o=>Bl[o]).filter(o=>!!o)),super(e,n)}};var UI=Gr.protocol;function jg(t,e="",r){let n=t;r=r||typeof location<"u"&&location,t==null&&(t=r.protocol+"//"+r.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=r.protocol+t:t=r.host+t),/^(https?|wss?):\/\//.test(t)||(typeof r<"u"?t=r.protocol+"//"+t:t="https://"+t),n=Hr(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let s=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n}var ql={};Nt(ql,{Decoder:()=>Wl,Encoder:()=>Vl,PacketType:()=>P,isPacketValid:()=>x_,protocol:()=>Hg});var p_=typeof ArrayBuffer=="function",d_=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Vg=Object.prototype.toString,h_=typeof Blob=="function"||typeof Blob<"u"&&Vg.call(Blob)==="[object BlobConstructor]",m_=typeof File=="function"||typeof File<"u"&&Vg.call(File)==="[object FileConstructor]";function eo(t){return p_&&(t instanceof ArrayBuffer||d_(t))||h_&&t instanceof Blob||m_&&t instanceof File}function to(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(to(t[r]))return!0;return!1}if(eo(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return to(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&to(t[r]))return!0;return!1}function Wg(t){let e=[],r=t.data,n=t;return n.data=Ul(r,e),n.attachments=e.length,{packet:n,buffers:e}}function Ul(t,e){if(!t)return t;if(eo(t)){let r={_placeholder:!0,num:e.length};return e.push(t),r}else if(Array.isArray(t)){let r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=Ul(t[n],e);return r}else if(typeof t=="object"&&!(t instanceof Date)){let r={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=Ul(t[n],e));return r}return t}function zg(t,e){return t.data=jl(t.data,e),delete t.attachments,t}function jl(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=jl(t[r],e);else if(typeof t=="object")for(let r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=jl(t[r],e));return t}var qg=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Hg=5,P;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(P||(P={}));var Vl=class{constructor(e){this.replacer=e}encode(e){return(e.type===P.EVENT||e.type===P.ACK)&&to(e)?this.encodeAsBinary({type:e.type===P.EVENT?P.BINARY_EVENT:P.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let r=""+e.type;return(e.type===P.BINARY_EVENT||e.type===P.BINARY_ACK)&&(r+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(r+=e.nsp+","),e.id!=null&&(r+=e.id),e.data!=null&&(r+=JSON.stringify(e.data,this.replacer)),r}encodeAsBinary(e){let r=Wg(e),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}},Wl=class t extends X{constructor(e){super(),this.reviver=e}add(e){let r;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(e);let n=r.type===P.BINARY_EVENT;n||r.type===P.BINARY_ACK?(r.type=n?P.EVENT:P.ACK,this.reconstructor=new zl(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(eo(e)||e.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(e),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let r=0,n={type:Number(e.charAt(0))};if(P[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===P.BINARY_EVENT||n.type===P.BINARY_ACK){let s=r+1;for(;e.charAt(++r)!=="-"&&r!=e.length;);let i=e.substring(s,r);if(i!=Number(i)||e.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(e.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(e.charAt(r)===","||r===e.length););n.nsp=e.substring(s,r)}else n.nsp="/";let o=e.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=e.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===e.length)break}n.id=Number(e.substring(s,r+1))}if(e.charAt(++r)){let s=this.tryParse(e.substr(r));if(t.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,r){switch(e){case P.CONNECT:return Zi(r);case P.DISCONNECT:return r===void 0;case P.CONNECT_ERROR:return typeof r=="string"||Zi(r);case P.EVENT:case P.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&qg.indexOf(r[0])===-1);case P.ACK:case P.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},zl=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let r=zg(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function g_(t){return typeof t=="string"}var y_=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t};function b_(t){return t===void 0||y_(t)}function Zi(t){return Object.prototype.toString.call(t)==="[object Object]"}function S_(t,e){switch(t){case P.CONNECT:return e===void 0||Zi(e);case P.DISCONNECT:return e===void 0;case P.EVENT:return Array.isArray(e)&&(typeof e[0]=="number"||typeof e[0]=="string"&&qg.indexOf(e[0])===-1);case P.ACK:return Array.isArray(e);case P.CONNECT_ERROR:return typeof e=="string"||Zi(e);default:return!1}}function x_(t){return g_(t.nsp)&&b_(t.id)&&S_(t.type,t.data)}function Pt(t,e,r){return t.on(e,r),function(){t.off(e,r)}}var __=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Kr=class extends X{constructor(e,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Pt(e,"open",this.onopen.bind(this)),Pt(e,"packet",this.onpacket.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...r){var n,o,s;if(__.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(r.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;let i={type:P.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){let l=this.ids++,u=r.pop();this._registerAckCallback(l,u),i.id=l}let a=(o=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(e,r){var n;let o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[e]=r;return}let s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===e&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},o),i=(...a)=>{this.io.clearTimeoutFn(s),r.apply(this,a)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...r){return new Promise((n,o)=>{let s=(i,a)=>i?o(i):n(a);s.withError=!0,r.push(s),this.emit(e,...r)})}_addToQueue(e){let r;typeof e[e.length-1]=="function"&&(r=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((o,...s)=>(this._queue[0],o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...s)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let r=this._queue[0];r.pending&&!e||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:P.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){let n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case P.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case P.EVENT:case P.BINARY_EVENT:this.onevent(e);break;case P.ACK:case P.BINARY_ACK:this.onack(e);break;case P.DISCONNECT:this.ondisconnect();break;case P.CONNECT_ERROR:this.destroy();let n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){let r=e.data||[];e.id!=null&&r.push(this.ack(e.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let r=this._anyListeners.slice();for(let n of r)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let r=this,n=!1;return function(...o){n||(n=!0,r.packet({type:P.ACK,id:e,data:o}))}}onack(e){let r=this.acks[e.id];typeof r=="function"&&(delete this.acks[e.id],r.withError&&e.data.unshift(null),r.apply(this,e.data))}onconnect(e,r){this.id=e,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:P.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let r=this._anyListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(e===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let r=this._anyOutgoingListeners.slice();for(let n of r)n.apply(this,e.data)}}};function fr(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}fr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=(Math.floor(e*10)&1)==0?t-r:t+r}return Math.min(t,this.max)|0};fr.prototype.reset=function(){this.attempts=0};fr.prototype.setMin=function(t){this.ms=t};fr.prototype.setMax=function(t){this.max=t};fr.prototype.setJitter=function(t){this.jitter=t};var Yr=class extends X{constructor(e,r){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(r=e,e=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,de(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new fr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=e;let o=r.parser||ql;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var r;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(r=this.backoff)===null||r===void 0||r.setMin(e),this)}randomizationFactor(e){var r;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(r=this.backoff)===null||r===void 0||r.setJitter(e),this)}reconnectionDelayMax(e){var r;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(r=this.backoff)===null||r===void 0||r.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Gr(this.uri,this.opts);let r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;let o=Pt(r,"open",function(){n.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},i=Pt(r,"error",s);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),s(new Error("timeout")),r.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Pt(e,"ping",this.onping.bind(this)),Pt(e,"data",this.ondata.bind(this)),Pt(e,"error",this.onerror.bind(this)),Pt(e,"close",this.onclose.bind(this)),Pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(r){this.onclose("parse error",r)}}ondecoded(e){pe(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,r){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Kr(this,e,r),this.nsps[e]=n),n}_destroy(e){let r=Object.keys(this.nsps);for(let n of r)if(this.nsps[n].active)return;this._close()}_packet(e){let r=this.encoder.encode(e);for(let n=0;n<r.length;n++)this.engine.write(r[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let r=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(o=>{o?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",o)):e.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}};var ro={};function no(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};let r=jg(t,e.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=ro[o]&&s in ro[o].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||i,c;return a?c=new Yr(n,e):(ro[o]||(ro[o]=new Yr(n,e)),c=ro[o]),r.query&&!e.query&&(e.query=r.queryKey),c.socket(r.path,e)}Object.assign(no,{Manager:Yr,Socket:Kr,io:no,connect:no});v();var w_={success:"green",error:"red",warning:"yellow"},Gg=(t,e,r)=>{if(t.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,e.notifications.content.connected&&e.notifications.content.connected.setProps({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},oo={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:t})=>({animationDuration:"C",background:w_[t.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(e,r,n)=>{r.setProps({animation:"fadeInUp"})},onClick:(e,r,n)=>{delete n.notifications[r.key],r.setProps({animation:"fadeOutDown"}),n.onClose&&n.onClose(e,r,n)}}),IconText:null,childrenAs:"state",children:({state:t})=>t.notifications}};var Kg=process.env.NODE_ENV==="local",v_=(t,e)=>{!t||!Array.isArray(e)||e.reduce((r,n,o,s)=>{if(r&&n in r){if(o!==s.length-1)return r[n];delete r[n]}},t)},C_=(t,e,r,n=!1)=>{!t||!Array.isArray(e)||e.reduce((o,s,i,a)=>{if(o){if(i!==a.length-1)return!o[s]&&n&&(o[s]={}),o[s];o[s]=r}},t)},E_=(t,e)=>{let r=new Set;if(!Array.isArray(e))return r;for(let[n,o,s]of e)if(!(!Array.isArray(o)||!o.length))switch(r.add(o[0]),n){case"delete":v_(t,o);break;case"update":case"set":C_(t,o,s,!0);break;default:break}return r},k_=async()=>{try{let t=Kg?"http://localhost:8080":"https://api.symbols.app",e=await D.fetch(`${t}/service-token`,{method:"GET"}),r;try{let n=await e.clone().json();if(n&&typeof n.token=="string")return n.token.trim();r=await e.text()}catch{r=await e.text()}return(r||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},A_=(t,e,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?Te(a):mr(r[i],a):r[i]=a}),s&&(r.schema=s))},O_=(t,e,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=t.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=E_(r,o);if(s.has("state")){let i=r.state?.route;i?t.call("router",i.replace("/state","")||"/",t.__ref.root,{},{scrollToTop:!1}):e.update(r.state)}if(["pages","components","snippets","functions"].some(i=>s.has(i))){let{pathname:i,search:a,hash:c}=r.window.location;t.call("router",i+a+c,t.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&Te(r.designSystem)},T_=async(t,e,r)=>{let n=await k_();if(!n)return console.warn("[sync] No service token \u2013 live collaboration disabled"),null;let o=r.key;if(!o)return console.warn("[sync] ctx.key missing \u2013 cannot establish collaborative connection"),null;let i=no(Kg?"http://localhost:8080":"https://api.symbols.app",{path:"/collab-socket",transports:["websocket"],auth:{token:n,projectKey:o,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return i.on("connect",()=>{r.editor?.verbose&&console.info("[sync] Connected to collab socket")}),i.on("snapshot",A_(t,e,r)),i.on("ops",O_(t,e,r)),i.on("clients",a=>{r.editor?.verbose&&Gg(a,t,e)}),i.on("disconnect",a=>{r.editor?.verbose&&console.info("[sync] Disconnected from collab socket",a)}),i},ta={onInitSync:T_};var Yg=(t,e)=>I(t.extends)?t.extends:[],Xg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.liveSync)?Xt():r.liveSync)&&(x(t.extends)?t.extends.push(ta):t.extends?t.extends=[t.extends,ta]:t.extends=[ta])};var Qg=(t,e)=>{let{editor:r}=e;if(!r)return;(K(r.verbose)?Xt()||e.verbose:r.verbose)&&(x(t.extends)?t.extends.push(oo):t.extends?t.extends=[t.extends,oo]:t.extends=[oo])};v();v();var R_=["useReset","useVariable","useFontImport","useIconSprite","useSvgSprite","useDocumentTheme","useDefaultIcons","useDefaultConfig","verbose","globalTheme"],Jg=(t,e={})=>{let r=e.parent||e.document||document,n=e.initOptions||{},o=n.emotion;n.emotion||(n.emotion=vt);let s=e.registry||xc(n.emotion,e),i=e.designSystem?W(j(ki),e.designSystem):j(ki),a={};for(let f of R_)e[f]!==void 0&&(a[f]=e[f]);return[Te(i,{key:t,emotion:o,document:r,files:e.files,...qi,...a,...n}),o,s]};var ey=t=>{let e=typeof window<"u"?window:globalThis||{};e.document||(e.document={body:{}});let r=typeof document<"u"?document:e.document;return t.document=t.document||r,t.window=t.window||e,t.window},Zg=(t="smbls")=>{let e={};for(let r in ar)Object.prototype.hasOwnProperty.call(ar,r)&&(Rt(r)?e[`smbls.${r}`]=ar[r]:e[r]=ar[r]);return e},ry=t=>t.components?{...Zg(),...t.components}:Zg(),ny=t=>({...Gn,...Cl,...er,...t.utils,...t.snippets,...t.functions}),oy=t=>({...t.methods||{},require:t.utils.require,requireOnDemand:t.utils.requireOnDemand,router:t.utils.router}),ty={},sy=async({dependencies:t,dependenciesOnDemand:e,document:r,preventCaching:n=!1,cdnProvider:o,packageManager:s,symbolsConfig:i})=>{if(o||(o=Ze[s]||Fn(i)||"esmsh"),!t)return null;let a=!1;for(let c in t){a=!0;break}if(!a)return null;for(let c in t){let f=t[c];if(e&&e[c])continue;let l=Xt()&&n?`?${Math.random()}`:"",u=ee(c,f,o)+l;try{if(ty[c])return;ty[c]=!0,await Dn(u,{document:r,type:"module"})}catch(p){if(console.error(`Failed to load ${c} from ${o}:`,p),o!=="symbols")try{let d=ee(c,f,"symbols")+l;await Dn(d,{document:r}),console.log(`Successfully loaded ${c} from fallback (symbols.ls)`)}catch(d){console.error(`Failed to load ${c} from fallback:`,d)}}}return t},iy=async(t,e)=>{let r=e.window||window,n=e.cdnProvider||Fn(e.symbolsConfig)||"esmsh",o=async i=>async(a,c)=>{let l=(i.window||window).packages[a];return typeof l=="function"?l():l},s=async i=>async(a,c=n)=>{let{dependenciesOnDemand:f}=i,l=i.document||document,u=i.window||window;if(!u.packages[a]){let p=Xt()?`?${Math.random()}`:"";if(f&&f[a]){let d=f[a],h=ee(a,d,c)+p;try{await i.utils.loadRemoteScript(h,{window:u,document:l})}catch(m){if(console.error(`Failed to load ${a} from ${c}:`,m),c!=="symbols"){let S=ee(a,d,"symbols")+p;await i.utils.loadRemoteScript(S,{window:u,document:l})}}}else{let d=ee(a,"latest",c)+p;try{await i.utils.loadRemoteScript(d,{window:u,document:l})}catch(h){if(console.error(`Failed to load ${a} from ${c}:`,h),c!=="symbols"){let m=ee(a,"latest","symbols")+p;await i.utils.loadRemoteScript(m,{window:u,document:l})}}u.packages[a]="loadedOnDeman"}}return await u.require(a,c)};r.packages?r.packages=Y(r.packages,t):r.packages=t,r.require||(e.utils.require=await o(e),r.require=e.utils.require),r.requireOnDemand||(e.utils.requireOnDemand=await s(e),r.requireOnDemand=e.utils.requireOnDemand)},ay=(t,e)=>{let[r,n,o]=Jg(t,e);return[r,n,o]},cy=(t,e)=>{let r={};return e.state&&W(r,e.state),t&&t.state&&W(r,t.state),r.isRootState=!0,j(r)},ly=(t,e)=>{g(t.routes)&&g(e.pages)&&Y(t.routes,e.pages);let r=t.routes||e.pages||{};for(let n in r){if(n.charCodeAt(0)===47)continue;let o=n==="index"?"":n;r["/"+o]=r[n],delete r[n]}return r},fy=(t,e)=>{for(let r in e)r in t?g(t[r])&&g(e[r])&&fy(t[r],e[r]):t[r]=e[r]},uy=t=>{let e=t.sharedLibraries;for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)if(Object.prototype.hasOwnProperty.call(n,o))if(g(n[o])&&g(t[o]))if(o==="designSystem")fy(t[o],n[o]);else for(let s in n[o])s in t[o]||(t[o][s]=n[o][s]);else o in t||(t[o]=n[o])}};v();var dy="smbls_lang",I_="smbls_t_",P_="smbls_tv_",Xr={get(t){try{return window?.localStorage.getItem(t)}catch{return null}},set(t,e){try{window?.localStorage.setItem(t,e)}catch(r){console.warn("[polyglot] localStorage unavailable:",r.message)}},remove(t){try{window?.localStorage.removeItem(t)}catch(e){console.warn("[polyglot] localStorage unavailable:",e.message)}}},so={};function io(){let t=this?.context,e=t?.polyglot;return(this?.state?.root||t?.state?.root)?.lang||e?.defaultLang||"en"}function ra(){let t=this?.context?.polyglot;return t?t.languages?t.languages:t.translations?Object.keys(t.translations):[]:[]}var ea=(t,e)=>{if(!t||!e)return;if(t[e]!==void 0)return t[e];if(e.indexOf(".")===-1)return;let r=e.split("."),n=t;for(let o=0;o<r.length;o++){if(n==null)return;n=n[r[o]]}return n},py=(t,e,r)=>{let n=e.lastIndexOf(".");if(n===-1)return t[e+"_"+r];let o=ea(t,e.substring(0,n));if(o!=null)return o[e.substring(n+1)+"_"+r]};function na(t,e){if(!t)return"";let r=this?.context,n=r?.polyglot,o=e||this.call("getActiveLang"),s=this?.state;if(s){let f=py(s,t,o);if(f!==void 0)return f}if(n?.translations){let f=n.translations[o];if(f){let l=ea(f,t);if(l!==void 0)return l}}let a=(s?.root||r?.state?.root)?.translations;if(a){let f=a[o];if(f){let l=ea(f,t);if(l!==void 0)return l}}let c=n?.defaultLang||"en";if(s){let f=py(s,t,c);if(f!==void 0)return f}if(n?.translations){let f=n.translations[c];if(f){let l=ea(f,t);if(l!==void 0)return l}}return t}async function oa(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!r||!n)return;let o=r.storagePrefix||I_,s=r.storageVersionPrefix||(r.storagePrefix?r.storagePrefix.replace(/_$/,"v_"):P_);if(r.translations&&r.translations[t]&&!r.fetch||!r.fetch||r._fetchFailed?.[t])return;if(!n.translations?.[t]){let c=Xr.get(o+t);if(c)try{let f=JSON.parse(c),l={translations:{...n.translations||{}}};l.translations[t]=f,n.update&&n.update(l)}catch(f){console.warn("[polyglot] Failed to apply language update:",f.message)}}let i=(r.storagePrefix||"smbls")+":"+t;if(so[i])return so[i];let a=this;return so[i]=(async()=>{try{let c=r.fetch,f=parseInt(Xr.get(s+t),10)||0,l,u,p;if(y(c)){let h=await c(t,f,a);if(!h||h.changed===!1)return;l=h.translations||h.data||h,u=h.version||0,p=!0}else if(g(c)){let h=a.getDB||(()=>e.fetch),m=y(h)?await h.call(a):e.fetch;if(!m)return;let S=c.rpc||c.from||"get_translations_if_changed",_={p_lang:t,p_cached_version:f,...c.params||{}},w=await m.rpc({from:S,params:_});if(w.error)throw r._fetchFailed||(r._fetchFailed={}),r._fetchFailed[t]=!0,w.error;let E=w.data;if(!E||!E.changed)return;l=E.translations||{},u=E.version||0,p=!0}else return;if(!p||!l)return;Xr.set(o+t,JSON.stringify(l)),u&&Xr.set(s+t,String(u));let d={translations:{...n.translations||{}}};d.translations[t]=l,n.update&&n.update(d)}catch(c){if(r.verbose!==!1){let f=c?.message||c?.details||(typeof c=="object"?JSON.stringify(c):String(c));console.warn("[polyglot] Failed to load translations for",t,"-",f)}}finally{delete so[i]}})(),so[i]}async function sa(t){let e=this?.context,r=e?.polyglot,n=this?.state?.root||e?.state?.root;if(!n||this.call("getActiveLang")===t)return;let o=r?.storageLangKey||dy;Xr.set(o,t),r?.fetch&&await this.call("loadTranslations",t),n.update&&n.update({lang:t})}async function ia(t,e,r){let n=this?.context,o=n?.polyglot,s=this?.state?.root||n?.state?.root;if(s?.translations?.[e]&&(s.translations[e][t]=r),o?.translations?.[e]&&(o.translations[e][t]=r),o?.fetch&&g(o.fetch)){let i=this.getDB||(()=>n.fetch),a=y(i)?await i.call(this):n.fetch;if(!a)return;let c=o.fetch.table||"translations",f=await a.upsert({from:c,data:{key:t,lang:e,text:r}});if(f?.error)throw f.error;return f.data}}async function Hl(){let t=this?.context,e=t?.polyglot;if(!e)return;let r=this?.state?.root||t?.state?.root;if(!r)return;let n=e.storageLangKey||dy,s=Xr.get(n)||e.defaultLang||r.lang||"en";r.update&&r.lang!==s&&r.update({lang:s}),e.fetch&&!(e.translations&&e.translations[s])&&await this.call("loadTranslations",s)}function aa(t){try{let e=this?.context?.polyglot,n=(this?.state?.root||this?.context?.state?.root)?.lang||e?.defaultLang||"en",o=this?.state;if(!o)return"";let s=t.lastIndexOf(".");if(s===-1)return o[t+n]??"";let i=t.substring(0,s).split("."),a=o;for(let c=0;c<i.length;c++){if(a==null)return"";a=a[i[c]]}return a==null?"":a[t.substring(s+1)+n]??""}catch{return""}}var ca={name:"polyglot",render(t){t.parent&&t.parent.parent||t.__polyglotInitialized||(t.__polyglotInitialized=!0,Hl.call(t))}};var ao={polyglot:na,getLocalStateLang:aa,getActiveLang:io,getLang:io,setLang:sa,getLanguages:ra,loadTranslations:oa,upsertTranslation:ia};Ge();var N_=t=>{let r=(t||document).querySelectorAll("[data-br]"),n={};return r.forEach(o=>{n[o.getAttribute("data-br")]=o}),n},Kl=(t,e,r="")=>{if(!t||!t.__ref)return;let o=e[r||"__root"];if(o!==void 0&&(t.__ref.__brKey=o),t.__ref.__children)for(let s of t.__ref.__children){let i=t[s];if(i&&i.__ref){let a=r?`${r}.${s}`:s;Kl(i,e,a)}}},by=(t,e={})=>{let{root:r,events:n=!0,renderEvents:o=!0,emotion:s,designSystem:i}=e,a=N_(r),c=i?.color||{},f=i?.media||{},l=0,u=0,p=d=>{if(!d||!d.__ref)return;let h=d.__ref.__brKey;if(h){let m=a[h];m?(d.node=m,m.ref=d,s&&D_(d,s,c,f),n&&M_(d),l++):u++}if(d.__ref.__children)for(let m of d.__ref.__children){let S=d[m];S&&S.__ref&&p(S)}};return p(t),o&&xy(t),{element:t,linked:l,unlinked:u}},D_=(t,e,r,n)=>{let{node:o,props:s}=t;if(!o||!s)return;let i={},a=!1;for(let p in s){let d=s[p];if(p.charCodeAt(0)===64){let m=n[p.slice(1)];if(m&&typeof d=="object"){let S=hy(d,r);Object.keys(S).length&&(i[m]=S,a=!0)}continue}if(p.charCodeAt(0)===58){if(typeof d=="object"){let m=hy(d,r);Object.keys(m).length&&(i["&"+p]=m,a=!0)}continue}let h=Sy(p,d);if(h){for(let m in h)i[m]=fa(m,h[m],r);a=!0;continue}Gl(p)&&(i[p]=fa(p,d,r),a=!0)}let c=L_(t);if(c)for(let[p,d]of Object.entries(c))i[p]||(i[p]=d,a=!0);if(t.style&&typeof t.style=="object"&&(Object.assign(i,t.style),a=!0),!a)return;let f=e.css(i),l=[];f&&l.push(f),typeof t.key=="string"&&t.key.charCodeAt(0)===95&&t.key.charCodeAt(1)!==95&&l.push(t.key.slice(1)),s.class&&l.push(s.class),t.attr?.class&&l.push(t.attr.class);let u=t.classlist;if(u){if(typeof u=="string")l.push(u);else if(typeof u=="object")for(let p in u){let d=u[p];typeof d=="boolean"&&d?l.push(p):typeof d=="string"?l.push(d):typeof d=="object"&&d&&l.push(e.css(d))}}l.length&&o.setAttribute("class",l.join(" "));for(let p in s)Gl(p)&&o.hasAttribute(p)&&o.removeAttribute(p)},hy=(t,e)=>{let r={};for(let n in t){let o=Sy(n,t[n]);if(o){for(let s in o)r[s]=fa(s,o[s],e);continue}Gl(n)&&(r[n]=fa(n,t[n],e))}return r},F_=new Set(["color","background","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor","fill","stroke","caretColor","columnRuleColor","textDecorationColor","boxShadow","textShadow"]),fa=(t,e,r)=>typeof e!="string"?e:F_.has(t)&&r[e]?r[e]:e,$_=new Set(["href","src","alt","title","id","name","type","value","placeholder","target","rel","loading","srcset","sizes","media","role","tabindex","for","action","method","enctype","autocomplete","autofocus","theme","__element","update"]),my={Flex:{display:"flex"},InlineFlex:{display:"inline-flex"},Grid:{display:"grid"},InlineGrid:{display:"inline-grid"},Block:{display:"block"},Inline:{display:"inline"}},L_=t=>{let e=t.__ref?.__extends;if(!e||!Array.isArray(e))return null;for(let r of e)if(my[r])return my[r];return null},Sy=(t,e)=>{if(typeof e>"u"||e===null)return null;if(t==="flow"&&typeof e=="string"){let[r,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+" "+(n||"")}}if(t==="wrap")return{display:"flex",flexWrap:e};if((t==="align"||t==="flexAlign")&&typeof e=="string"){let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}if(t==="gridAlign"&&typeof e=="string"){let[r,n]=e.split(" ");return{display:"grid",alignItems:r,justifyContent:n}}if(t==="flexFlow"&&typeof e=="string"){let[r,n]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(r="row"),(e.startsWith("y")||e==="column")&&(r="column"),{display:"flex",flexFlow:(r||"")+" "+(n||"")}}if(t==="flexWrap")return{display:"flex",flexWrap:e};if(t==="round"||t==="borderRadius"&&e)return{borderRadius:typeof e=="number"?e+"px":e};if(t==="boxSize"&&typeof e=="string"){let[r,n]=e.split(" ");return{height:r,width:n||r}}if(t==="widthRange"&&typeof e=="string"){let[r,n]=e.split(" ");return{minWidth:r,maxWidth:n||r}}if(t==="heightRange"&&typeof e=="string"){let[r,n]=e.split(" ");return{minHeight:r,maxHeight:n||r}}return t==="column"?{gridColumn:e}:t==="columns"?{gridTemplateColumns:e}:t==="templateColumns"?{gridTemplateColumns:e}:t==="row"?{gridRow:e}:t==="rows"?{gridTemplateRows:e}:t==="templateRows"?{gridTemplateRows:e}:t==="area"?{gridArea:e}:t==="template"?{gridTemplate:e}:t==="templateAreas"?{gridTemplateAreas:e}:t==="autoColumns"?{gridAutoColumns:e}:t==="autoRows"?{gridAutoRows:e}:t==="autoFlow"?{gridAutoFlow:e}:t==="columnStart"?{gridColumnStart:e}:t==="rowStart"?{gridRowStart:e}:null},Gl=t=>{let e=t.charCodeAt(0);return e===95||e===64||e===58||e>=65&&e<=90||$_.has(t)?!1:B_.has(t)},B_=new Set(["display","position","top","right","bottom","left","width","height","minWidth","maxWidth","minHeight","maxHeight","margin","marginTop","marginRight","marginBottom","marginLeft","marginBlock","marginInline","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingBlock","paddingInline","border","borderTop","borderRight","borderBottom","borderLeft","borderRadius","borderColor","borderWidth","borderStyle","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","background","backgroundColor","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","color","fontSize","fontWeight","fontFamily","fontStyle","lineHeight","letterSpacing","textAlign","textDecoration","textTransform","textIndent","textOverflow","textShadow","opacity","overflow","overflowX","overflowY","zIndex","cursor","pointerEvents","userSelect","flex","flexDirection","flexWrap","flexFlow","flexGrow","flexShrink","flexBasis","alignItems","alignContent","alignSelf","justifyContent","justifyItems","justifySelf","gap","rowGap","columnGap","gridTemplateColumns","gridTemplateRows","gridColumn","gridRow","gridArea","gridAutoFlow","gridAutoColumns","gridAutoRows","inset","inlineSize","blockSize","minInlineSize","maxInlineSize","minBlockSize","maxBlockSize","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd","marginBlockStart","marginBlockEnd","marginInlineStart","marginInlineEnd","transform","transformOrigin","transition","animation","animationName","animationDuration","animationDelay","animationTimingFunction","animationFillMode","animationIterationCount","animationPlayState","animationDirection","gridTemplate","gridTemplateAreas","gridColumnStart","gridRowStart","boxShadow","outline","outlineColor","outlineWidth","outlineStyle","outlineOffset","whiteSpace","wordBreak","wordWrap","overflowWrap","visibility","boxSizing","objectFit","objectPosition","filter","backdropFilter","mixBlendMode","fill","stroke","strokeWidth","listStyle","listStyleType","listStylePosition","counterReset","counterIncrement","content","aspectRatio","resize","appearance","scrollBehavior","scrollMargin","scrollPadding","willChange","contain","isolation","caretColor","accentColor","columnCount","columnGap","columnRuleColor","columnRuleStyle","columnRuleWidth","textDecorationColor","textDecorationStyle","textDecorationThickness","clipPath","shapeOutside"]),gy=new Set(["render","create","init","start","complete","done","beforeClassAssign","attachNode","stateInit","stateCreated","renderRouter","lazyLoad","error"]),M_=t=>{let{node:e,on:r,props:n}=t;if(!e)return;let o=new Set;if(r)for(let s in r)gy.has(s)||typeof r[s]=="function"&&(o.add(s),yy(e,s,r[s],t));if(n)for(let s in n){if(s.length<=2||s[0]!=="o"||s[1]!=="n"||typeof n[s]!="function")continue;let i=s[2];if(i!==i.toUpperCase())continue;let a=i.toLowerCase()+s.slice(3);o.has(a)||gy.has(a)||yy(e,a,n[s],t)}},yy=(t,e,r,n)=>{t.addEventListener(e,o=>{let s=r.call(n,o,n,n.state,n.context);s&&typeof s.then=="function"&&s.catch(()=>{})})},xy=t=>{if(!t||!t.__ref||!t.node)return;let e=t.on;if(e&&(la(e.render,t),la(e.renderRouter,t),la(e.done,t),la(e.create,t)),t.__ref.__children)for(let r of t.__ref.__children){let n=t[r];n&&n.__ref&&xy(n)}},la=(t,e)=>{if(typeof t=="function")try{let r=t.call(e,e,e.state,e.context);r&&typeof r.then=="function"&&r.catch(()=>{})}catch(r){console.warn("[smbls hydrate]",e.key,r.message)}};var U_=async(t,e={})=>{let r=e.key=e.key||(b(t)?t:"smblsapp");e.define=e.define||zr,e.cssPropsRegistry=jr,e.window=ey(e),e.sharedLibraries&&e.sharedLibraries.length&&uy(e);let[n,o,s]=ay(r,e);e.designSystem=n,e.registry=s,e.emotion=o,e.cases||(e.cases={});let i=cy(t,e);e.state=i,e.pages=ly(t,e),e.components=ry(e),e.utils=ny(e),Ze[e.packageManager]&&(e.dependencies=await sy(e)),e.methods=oy(e),e.routerOptions=ag(t,e),e.defaultExtends=[Ri],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.globalScope&&g(e.globalScope)&&(e.globalScope=xo(e.globalScope));let a=c=>e.plugins.some(f=>f.name===c);if(e.polyglot&&!a("polyglot")){e.plugins.push(ca);for(let c in ao)c in e.functions||(e.functions[c]=ao[c])}return a("helmet")||e.plugins.push(dg),e.fetch&&!a("fetch")&&e.plugins.push(sc),e},Yl=async(t,e)=>{g(e)||(e={}),me(t)?(t={},e.parent=t):b(t)?(t={},e.key=t):g(t)||(t={}),await U_(t,e),t.extends=Yg(t,e),t.routes=e.pages,t.state=e.state,t.context=e,t.data=t.data||{},t.data.frameListeners=sm(e),await iy({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e),Xg(t,e),Qg(t,e);let r=e.document;if(!r||!r.createElement)return t;let n=e.window||(typeof window<"u"?window:null);if(n?.__BRENDER__&&r.querySelector("[data-br]"))return j_(t,e,r,n);let s=e.parent||r.body;return await(cr.default&&cr.default.create||cr.create)(t,s,e.key,{verbose:e.verbose,...e.domqlOptions})},j_=async(t,e,r,n)=>{let o=e.parent||r.body,s=cr.default&&cr.default.create||cr.create,i=n.__BR_REGISTRY__||{};if(Object.keys(i).length>0){let c=o.querySelector?o.querySelector(":scope > [data-ssr]")||r.querySelector("[data-ssr]"):null;if(c){let u=r.createDocumentFragment?r.createDocumentFragment():null;if(u){for(;c.firstChild;)u.appendChild(c.firstChild);o.insertBefore(u,c),c.remove()}}let f;try{f=await s(t,o,e.key,{verbose:e.verbose,...e.domqlOptions,onlyResolveExtends:!0})}catch(u){return console.warn("[smbls] Skeleton creation failed, falling back to full render:",u.message),ua(s,t,o,e,n)}if(!f)return ua(s,t,o,e,n);Kl(f,i);let l=by(f,{root:r,emotion:e.emotion,designSystem:e.designSystem,events:!0,renderEvents:!0});return l.linked===0&&l.unlinked>0?(console.warn(`[smbls] Hydration linked 0/${l.linked+l.unlinked} elements \u2014 falling back to full render. Pre-rendered structure may have changed.`),ua(s,t,o,e,n)):(l.unlinked>0&&console.debug(`[smbls] Hydration: ${l.linked} linked, ${l.unlinked} unlinked elements`),_y(n),f)}return ua(s,t,o,e,n)},ua=async(t,e,r,n,o)=>{let s=r.ownerDocument||document,i=s.querySelector('style[data-emotion="smbls"]');i&&i.remove();let a=[];for(let f of r.childNodes){if(f.nodeType===1){let l=f.tagName.toLowerCase();if(l==="style"||l==="script"||l==="link")continue}a.push(f)}a.forEach(f=>f.remove()),s.querySelectorAll("[data-br]").forEach(f=>f.removeAttribute("data-br"));let c=await t(e,r,n.key,{verbose:n.verbose,...n.domqlOptions});return _y(o),c},_y=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var Xl=(t,e)=>W(t,g(e)?e:{}),Ql=(t,e=Re,r)=>{let n={...Re,...Xl(e,r)},o=Yl(t,n).then(s=>{cg(s,n),n.on&&n.on.create&&n.on.create(o,o.state,o.context,n)});return o},V_=(t,e=Re,r)=>{let n=Ql(t,e,r),o={...Re,...Xl(e,r)},s=o.key;return pg(n,s,{utils:Gn,...o}),n},W_=async(t,e=Re,r)=>{let n={...Re,...Xl(e,r)},o=e.key;await ug(o,n);let s=await Yl(t,n);return n.on&&n.on.create&&await n.on.create(s,s.state,s.context,n),s},z_=(t={},e=Re,r)=>Ql({deps:{isUndefined:K},...t},W({domqlOptions:{onlyResolveExtends:!0}},e),r);return ky(q_);})();
39
39
  // @preserve-env