@jasonshimmy/custom-elements-runtime 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements-runtime.cjs.js +23 -21
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +2260 -2017
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +23 -21
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/runtime/helpers.d.ts +48 -0
- package/dist/runtime/node-metadata.d.ts +45 -0
- package/dist/runtime/style.d.ts +1 -0
- package/dist/transitions.d.ts +21 -0
- package/entities.json +211 -0
- package/package.json +5 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Bt=typeof process<"u"&&process.env?.NODE_ENV!=="production";function H(e,...t){Bt&&console.error(e,...t)}function re(e,...t){Bt&&console.warn(e,...t)}class an{pendingUpdates=new Map;isFlushScheduled=!1;schedule(t,n){const r=n||t;this.pendingUpdates.set(r,t),this.isFlushScheduled||(this.isFlushScheduled=!0,typeof globalThis.process<"u"&&globalThis.process.env?.NODE_ENV==="test"||typeof window<"u"&&(window.__vitest__||window.Cypress)?this.flush():queueMicrotask(()=>this.flush()))}flush(){const t=this.pendingUpdates;this.pendingUpdates=new Map,this.isFlushScheduled=!1;for(const n of t.values())try{n()}catch(r){H("Error in batched update:",r)}}get pendingCount(){return this.pendingUpdates.size}}const cn=new an;function we(e,t){cn.schedule(e,t)}const kt=new WeakSet;class ln{static cache=new WeakMap;static arrayHandlerCache=new WeakMap;static objectHandlerCache=new WeakMap;static getOrCreateProxy(t,n,r=!1){const o=this.cache.get(t);if(o)return o;const i=r?this.getOrCreateArrayHandler(n):this.getOrCreateObjectHandler(n),s=new Proxy(t,i);try{Wt.markAsProxy(s)}catch{}return this.cache.set(t,s),s}static getOrCreateArrayHandler(t){if(!this.arrayHandlerCache.has(t)){const n={get:(r,o,i)=>{const s=Reflect.get(r,o,i);return typeof s=="function"&&typeof o=="string"&&["push","pop","shift","unshift","splice","sort","reverse","fill","copyWithin"].includes(o)?function(...a){const d=s.apply(r,a);return t.triggerUpdate(),d}:s},set:(r,o,i)=>(r[o]=t.makeReactiveValue(i),t.triggerUpdate(),!0),deleteProperty:(r,o)=>(delete r[o],t.triggerUpdate(),!0)};this.arrayHandlerCache.set(t,n)}return this.arrayHandlerCache.get(t)}static getOrCreateObjectHandler(t){if(!this.objectHandlerCache.has(t)){const n={get:(r,o,i)=>Reflect.get(r,o,i),set:(r,o,i)=>(r[o]=t.makeReactiveValue(i),t.triggerUpdate(),!0),deleteProperty:(r,o)=>(delete r[o],t.triggerUpdate(),!0)};this.objectHandlerCache.set(t,n)}return this.objectHandlerCache.get(t)}static hasProxy(t){return this.cache.has(t)}static clear(){this.cache=new WeakMap,this.arrayHandlerCache=new WeakMap,this.objectHandlerCache=new WeakMap}static getStats(){return{hasCachedProxies:this.cache instanceof WeakMap}}}class Wt{static contextCache=new WeakMap;static createReactiveProxy(t,n,r){try{if(kt.has(t))return t}catch{}const o=Array.isArray(t);let i=this.contextCache.get(n);i||(i=new WeakMap,this.contextCache.set(n,i));let s=i.get(r);return s||(s={triggerUpdate:n,makeReactiveValue:r},i.set(r,s)),ln.getOrCreateProxy(t,s,o)}static markAsProxy(t){if(t)try{kt.add(t)}catch{}}}class un{currentComponent=null;componentData=new Map;stateStorage=new Map;trackingDisabled=!1;setCurrentComponent(t,n){if(this.currentComponent=t,!this.componentData.has(t))this.componentData.set(t,{dependencies:new Set,renderFn:n,stateIndex:0,lastWarnTime:0});else{const r=this.componentData.get(t);r.renderFn=n,r.stateIndex=0}}clearCurrentComponent(){this.currentComponent=null}disableTracking(){this.trackingDisabled=!0}enableTracking(){this.trackingDisabled=!1}isRenderingComponent(){return this.currentComponent!==null}shouldEmitRenderWarning(){if(!this.currentComponent)return!0;const t=this.componentData.get(this.currentComponent);if(!t)return!0;const n=Date.now();return n-t.lastWarnTime<1e3?!1:(t.lastWarnTime=n,!0)}withoutTracking(t){const n=this.trackingDisabled;this.trackingDisabled=!0;try{return t()}finally{this.trackingDisabled=n}}getOrCreateState(t){if(!this.currentComponent)return new Ge(t);const n=this.componentData.get(this.currentComponent);if(!n)return new Ge(t);const r=`${this.currentComponent}:${n.stateIndex++}`;let o=this.stateStorage.get(r);return o||(o=new Ge(t),this.stateStorage.set(r,o)),o}trackDependency(t){if(this.trackingDisabled||!this.currentComponent)return;const n=this.componentData.get(this.currentComponent);n&&(n.dependencies.add(t),t.addDependent(this.currentComponent))}triggerUpdate(t){const n=t.getDependents();for(const r of n){const o=this.componentData.get(r);o&&we(o.renderFn,r)}}cleanup(t){const n=this.componentData.get(t);if(n){for(const o of n.dependencies)o.removeDependent(t);this.componentData.delete(t)}const r=t+":";for(const o of this.stateStorage.keys())o.startsWith(r)&&this.stateStorage.delete(o)}}const Y=new un;class Ge{_value;dependents=new Set;constructor(t){this._value=this.makeReactive(t);try{const n=Symbol.for("@cer/ReactiveState");Object.defineProperty(this,n,{value:!0,enumerable:!1,configurable:!1})}catch{}}get value(){return Y.trackDependency(this),this._value}set value(t){Y.isRenderingComponent()&&Y.shouldEmitRenderWarning()&&re(`🚨 State modification detected during render! This can cause infinite loops.
|
|
2
2
|
• Move state updates to event handlers
|
|
3
3
|
• Use useEffect/watch for side effects
|
|
4
|
-
• Ensure computed properties don't modify state`),this._value=this.makeReactive(t),J.triggerUpdate(this)}addDependent(t){this.dependents.add(t)}removeDependent(t){this.dependents.delete(t)}getDependents(){return this.dependents}makeReactive(t){return t===null||typeof t!="object"||t instanceof Node||t instanceof Element||t instanceof HTMLElement?t:Pt.createReactiveProxy(t,()=>J.triggerUpdate(this),r=>this.makeReactive(r))}}function Jt(e){return J.getOrCreateState(e===void 0?null:e)}function R(e){if(!e||typeof e!="object")return!1;try{const t=Symbol.for("@cer/ReactiveState");return!!e[t]}catch{return!1}}function Qt(e){const t=new Ke(e());return{get value(){return J.trackDependency(t),e()}}}function Xt(e,t,r={}){let n=e();r.immediate&&t(n,n);const o=`watch-${Math.random().toString(36).substr(2,9)}`,i=()=>{J.setCurrentComponent(o,i);const s=e();J.clearCurrentComponent(),s!==n&&(t(s,n),n=s)};return J.setCurrentComponent(o,i),e(),J.clearCurrentComponent(),()=>{J.cleanup(o)}}const L=e=>{try{e()}catch{}},Ie=new Map,He=new Map,Be=new Map,gt=500;function ee(e){if(Ie.has(e))return Ie.get(e);const t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return Ie.size<gt&&Ie.set(e,t),t}function mt(e){if(He.has(e))return He.get(e);const t=e.replace(/-([a-z])/g,(r,n)=>n.toUpperCase());return He.size<gt&&He.set(e,t),t}function _e(e){if(typeof e=="string"){if(Be.has(e))return Be.get(e);const t=e.replace(/[&<>"']/g,r=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[r]);return t!==e&&Be.size<gt&&Be.set(e,t),t}return e}function V(e,t){if(typeof t=="string"){const r=t.split(".").reduce((n,o)=>n?.[o],e);return R(r)?r.value:r}return t}function Ge(e,t,r){const n=String(t).split("."),o=n.pop();if(!o)return;const i=n.reduce((s,c)=>(s[c]==null&&(s[c]={}),s[c]),e);R(i[o])?i[o].value=r:i[o]=r}function Yt(e,t,r){if(r)for(const[n,o]of Object.entries(r)){let i,s={};if(Array.isArray(o)?(i=o[0],s=o[1]||{}):i=o,t.set(n,{callback:i,options:s,oldValue:V(e,n)}),s.immediate)try{const c=V(e,n);i(c,void 0,e)}catch(c){N(`Error in immediate watcher for "${n}":`,c)}}}function en(e,t,r,n){const o=(s,c)=>{if(s===c)return!0;if(typeof s!=typeof c||typeof s!="object"||s===null||c===null)return!1;if(Array.isArray(s)&&Array.isArray(c))return s.length!==c.length?!1:s.every((b,y)=>o(b,c[y]));const a=Object.keys(s),d=Object.keys(c);return a.length!==d.length?!1:a.every(b=>o(s[b],c[b]))},i=t.get(r);if(i&&!o(n,i.oldValue))try{i.callback(n,i.oldValue,e),i.oldValue=n}catch(s){N(`Error in watcher for "${r}":`,s)}for(const[s,c]of t.entries())if(c.options.deep&&r.startsWith(s+"."))try{const a=V(e,s);o(a,c.oldValue)||(c.callback(a,c.oldValue,e),c.oldValue=a)}catch(a){N(`Error in deep watcher for "${s}":`,a)}}function wt(e,t){return t===Boolean?e===""||e==="true":t===Number?Number(e):e}function tn(e,t,r){if(t)for(const n in t){const o=t[n],i=ee(n),s=e.getAttribute(i);if(o.type===Function&&typeof e[n]=="function")r[n]=e[n];else if(s!==null)r[n]=wt(s,o.type);else if(typeof e[n]<"u")try{const c=e[n];o.type===Boolean&&typeof c=="boolean"||o.type===Number&&typeof c=="number"||o.type===Function&&typeof c=="function"?r[n]=c:r[n]=wt(String(c),o.type)}catch{r[n]=e[n]}else"default"in o&&o.default!==void 0&&(r[n]=o.default)}}function nn(e,t,r){if(!t.props){try{const n=r&&r._hookCallbacks&&r._hookCallbacks.props||{},o=Array.from(new Set([...Object.keys(e),...Object.keys(n)]));for(const i of o){if(typeof i!="string"||i.startsWith("_"))continue;const s=Object.getOwnPropertyDescriptor(r,i);if(!(!Object.prototype.hasOwnProperty.call(n,i)&&s&&(s.get||s.set||!s.configurable)))try{Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get(){try{const a=ee(i),d=e.getAttribute(a);if(d!==null)return d;const b=e[i];let y;return R(b)||b&&typeof b=="object"&&"value"in b&&!(b instanceof Node)?y=b.value:y=b,y}catch{return e[i]}}})}catch{}}}catch{}return}tn(e,t.props,r)}function rn(e,t,r,n){e.onConnected&&!r&&(e.onConnected(t),n(!0))}function on(e,t,r,n,o,i,s,c){e.onDisconnected&&e.onDisconnected(t),r.forEach(a=>a()),n(),o(),i(!1),s(null),c(!1)}function sn(e,t,r,n,o){e.onAttributeChanged&&e.onAttributeChanged(t,r,n,o)}class an{static cache=new Map;static maxCacheSize=1e3;static dangerousPatterns=[/constructor/i,/prototype/i,/__proto__/i,/function/i,/eval/i,/import/i,/require/i,/window/i,/document/i,/global/i,/process/i,/setTimeout/i,/setInterval/i,/fetch/i,/XMLHttpRequest/i];static evaluate(t,r){const n=this.cache.get(t);if(n){if(!n.isSecure){ie("Blocked cached dangerous expression:",t);return}return n.evaluator(r)}const o=this.createEvaluator(t);if(this.cache.size>=this.maxCacheSize){const i=this.cache.keys().next().value;i&&this.cache.delete(i)}if(this.cache.set(t,o),!o.isSecure){ie("Blocked dangerous expression:",t);return}return o.evaluator(r)}static createEvaluator(t){if(this.hasDangerousPatterns(t))return{evaluator:()=>{},isSecure:!1};if(t.length>1e3)return{evaluator:()=>{},isSecure:!1};try{return{evaluator:this.createSafeEvaluator(t),isSecure:!0}}catch(r){return ie("Failed to create evaluator for expression:",t,r),{evaluator:()=>{},isSecure:!1}}}static hasDangerousPatterns(t){return this.dangerousPatterns.some(r=>r.test(t))}static createSafeEvaluator(t){const r=t.trim();if(r.startsWith("{")&&r.endsWith("}"))return this.createObjectEvaluator(t);if(/^ctx\.[a-zA-Z0-9_\.]+$/.test(t.trim())){const n=t.trim().slice(4);return o=>V(o,n)}return t.includes("ctx")||/[+\-*/%<>=&|?:\[\]]/.test(t)?this.createSimpleEvaluator(t):n=>V(n,t)}static createObjectEvaluator(t){const r=t.trim().slice(1,-1),n=this.parseObjectProperties(r);return o=>{const i={};for(const{key:s,value:c}of n)try{if(c.startsWith("ctx.")){const a=c.slice(4);i[s]=V(o,a)}else i[s]=this.evaluateSimpleValue(c,o)}catch{i[s]=void 0}return i}}static parseObjectProperties(t){const r=[],n=t.split(",");for(const o of n){const i=o.indexOf(":");if(i===-1)continue;const s=o.slice(0,i).trim(),c=o.slice(i+1).trim(),a=s.replace(/^['"]|['"]$/g,"");r.push({key:a,value:c})}return r}static createSimpleEvaluator(t){return r=>{try{let n=t;const o=[];n=n.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,y=>`<<#${o.push(y)-1}#>>`);const i=n.match(/ctx\.[\w.]+/g)||[];for(const y of i){const p=y.slice(4),x=V(r,p);if(x===void 0)return;const u=o.push(JSON.stringify(x))-1;n=n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${u}#>>`)}const s=/\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g,c=n.match(s)||[];for(const y of c){if(y.startsWith("ctx."))continue;const p=V(r,y);if(p===void 0)return;const x=o.push(JSON.stringify(p))-1;n=n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${x}#>>`)}const a=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;let d;const b=new Set;for(;(d=a.exec(n))!==null;){const y=d[1];if(["true","false","null","undefined"].includes(y)||/^[0-9]+$/.test(y)||y==="ctx"||b.has(y))continue;b.add(y);const p=V(r,y);if(p===void 0)return;const x=JSON.stringify(p),u=o.push(x)-1;y.includes(".")?n=n.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${u}#>>`):n=n.replace(new RegExp("\\b"+y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","g"),`<<#${u}#>>`)}n=n.replace(/<<#(\d+)#>>/g,(y,p)=>o[Number(p)]);try{return this.evaluateBasicExpression(n)}catch{return}}catch{return}}}static evaluateBasicExpression(t){const r=this.tokenize(t);let n=0;function o(){return r[n]}function i(l){const m=r[n++];if(l&&!m)throw new Error(`Unexpected token EOF, expected ${l}`);if(l&&m&&m.type!==l&&m.value!==l)throw new Error(`Unexpected token ${m.type}/${m.value}, expected ${l}`);return m}function s(){return c()}function c(){let l=a();if(o()&&o().value==="?"){i("?");const m=s();i(":");const k=s();return l?m:k}return l}function a(){let l=d();for(;o()&&o().value==="||";){i("OP");const m=d();l=l||m}return l}function d(){let l=b();for(;o()&&o().value==="&&";){i("OP");const m=b();l=l&&m}return l}function b(){let l=y();for(;o()&&["==","!=","===","!=="].includes(o().value);){const m=i("OP").value,k=y();switch(m){case"==":l=l==k;break;case"!=":l=l!=k;break;case"===":l=l===k;break;case"!==":l=l!==k;break}}return l}function y(){let l=p();for(;o()&&[">","<",">=","<="].includes(o().value);){const m=i("OP").value,k=p();switch(m){case">":l=l>k;break;case"<":l=l<k;break;case">=":l=l>=k;break;case"<=":l=l<=k;break}}return l}function p(){let l=x();for(;o()&&(o().value==="+"||o().value==="-");){const m=i("OP").value,k=x();l=m==="+"?l+k:l-k}return l}function x(){let l=u();for(;o()&&(o().value==="*"||o().value==="/"||o().value==="%");){const m=i("OP").value,k=u();switch(m){case"*":l=l*k;break;case"/":l=l/k;break;case"%":l=l%k;break}}return l}function u(){return o()&&o().value==="!"?(i("OP"),!u()):o()&&o().value==="-"?(i("OP"),-u()):f()}function f(){const l=o();if(l){if(l.type==="NUMBER")return i("NUMBER"),Number(l.value);if(l.type==="STRING")return i("STRING"),l.value.slice(1,-1);if(l.type==="IDENT")return i("IDENT"),l.value==="true"?!0:l.value==="false"?!1:l.value==="null"?null:void 0;if(l.value==="["){i("PUNC");const m=[];for(;o()&&o().value!=="]";)m.push(s()),o()&&o().value===","&&i("PUNC");return i("PUNC"),m}if(l.value==="("){i("PUNC");const m=s();return i("PUNC"),m}throw new Error("Unexpected token in expression")}}return s()}static tokenize(t){const r=[],n=/\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,\[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"[^"]*"|'[^']*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;let o;for(;(o=n.exec(t))!==null;){const i=o[1];i&&(/^\d/.test(i)?r.push({type:"NUMBER",value:i}):/^"/.test(i)||/^'/.test(i)?r.push({type:"STRING",value:i}):/^[a-zA-Z_]/.test(i)?r.push({type:"IDENT",value:i}):/^[()?:,\[\]]$/.test(i)?r.push({type:"PUNC",value:i}):r.push({type:"OP",value:i}))}return r}static evaluateSimpleValue(t,r){if(t==="true")return!0;if(t==="false")return!1;if(!isNaN(Number(t)))return Number(t);if(t.startsWith("ctx.")){const n=t.slice(4);return V(r,n)}return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t}static clearCache(){this.cache.clear()}static getCacheSize(){return this.cache.size}}class oe{static cleanupFunctions=new WeakMap;static addListener(t,r,n,o){t.addEventListener(r,n,o);const s={event:r,handler:n,wrapper:n,options:o,cleanup:()=>t.removeEventListener(r,n,o),addedAt:Date.now()};this.cleanupFunctions.has(t)||this.cleanupFunctions.set(t,[]);const c=this.cleanupFunctions.get(t);c.push(s),c.__metaList=c}static removeListener(t,r,n,o){t.removeEventListener(r,n,o);const i=this.cleanupFunctions.get(t);if(i)for(let s=0;s<i.length;s++){const c=i[s];if(c.event===r&&c.handler===n){i.splice(s,1),i.length===0&&this.cleanupFunctions.delete(t);return}}}static cleanup(t){const r=this.cleanupFunctions.get(t);r&&(r.forEach(n=>{try{n.cleanup()}catch{}}),this.cleanupFunctions.delete(t))}static cleanupAll(){this.cleanupFunctions=new WeakMap}static hasListeners(t){const r=this.cleanupFunctions.get(t);return!!(r&&r.length>0)}static getListenerCount(t){const r=this.cleanupFunctions.get(t);return r?r.length:0}static getListenerInfo(t){const r=this.cleanupFunctions.get(t);return r?r.map(n=>({event:n.event,handler:n.handler,wrapper:n.wrapper,options:n.options})):[]}}function We(e,t){return Array.isArray(e)&&Array.isArray(t)?JSON.stringify([...e].sort())!==JSON.stringify([...t].sort()):e!==t}function vt(e,t,r,n,o){if(e)if(o&&typeof t.value=="object"&&t.value!==null){const i={...t.value};i[o]=r,t.value=i}else t.value=r;else{const i=n._state||n;Ge(i,t,r)}}function Fe(e,t,r,n){if(e._requestRender&&e._requestRender(),e._triggerWatchers){const o=t?"reactiveState":r;e._triggerWatchers(o,n)}}function cn(e,t,r){const n=`update:${ee(t)}`,o=`update:${t}`,i=new CustomEvent(n,{detail:r,bubbles:!0,composed:!0}),s=new CustomEvent(o,{detail:r,bubbles:!0,composed:!0});e.dispatchEvent(i),e.dispatchEvent(s)}function kt(e,t,r,n){const o=r;L(()=>{e[t]=o}),L(()=>{const i=ee(t);typeof o=="boolean"?o?e.setAttribute(i,"true"):e.setAttribute(i,"false"):o!=null&&(typeof o=="string"||typeof o=="number")?e.setAttribute(i,String(o)):e.removeAttribute?.(i)}),L(()=>{e._applyProps?.(e._cfg)}),L(()=>{e._requestRender?.()})}function ln(e,t,r,n){if(e){const i=t.value;return n&&typeof i=="object"&&i!==null?i[n]:i}const o=r._state||r;return V(o,t)}function we(e){return e?e.split(/\s+/).filter(Boolean):[]}function ve(e,t){if(t.length===0)return;const r=t.filter(n=>n&&!e.classList.contains(n));r.length>0&&e.classList.add(...r)}function be(e,t){if(t.length===0)return;const r=t.filter(Boolean);r.length>0&&e.classList.remove(...r)}let Je=!1;async function un(e,t,r=10){if(!Je){if(!e.isConnected){ie("⚠️ Element not connected to DOM, skipping style wait");return}for(let n=0;n<r;n++){const o=window.getComputedStyle(e),i=o.transform&&o.transform!=="",s=o.opacity&&o.opacity!=="";if(i||s){Je=!0;return}await new Promise(c=>requestAnimationFrame(()=>c(void 0)))}Je=!0,ie("⚠️ Styles did not load in time for transition, continuing anyway")}}function fn(e){const t=window.getComputedStyle(e),r=t.transitionDuration||"0s",n=t.transitionDelay||"0s",o=i=>{const s=parseFloat(i);return i.includes("ms")?s:s*1e3};return o(r)+o(n)}function Rt(e,t){return new Promise(r=>{const n=t??fn(e);if(n<=0){r();return}let o=!1;const i=()=>{o||(o=!0,e.removeEventListener("transitionend",s),e.removeEventListener("transitioncancel",s),r())},s=()=>i();e.addEventListener("transitionend",s),e.addEventListener("transitioncancel",s),setTimeout(i,n+50)})}async function Se(e,t){const{classes:r,hooks:n,css:o,duration:i}=t;if(n?.onBeforeEnter)try{n.onBeforeEnter(e)}catch(u){N("Transition onBeforeEnter error:",u)}if(!o)return n?.onEnter?new Promise(u=>{n.onEnter(e,()=>{if(n?.onAfterEnter)try{n.onAfterEnter(e)}catch(f){N("Transition onAfterEnter error:",f)}u()})}):void 0;const s=we(r?.enterFrom),c=we(r?.enterActive),a=we(r?.enterTo);ve(e,s),e.offsetHeight,ve(e,c),e.offsetHeight;let d;if(n?.onEnter){const u=new Promise(f=>{d=f});try{n.onEnter(e,()=>{d&&d()})}catch(f){N("Transition onEnter error:",f)}d&&await u}await new Promise(u=>requestAnimationFrame(()=>u(void 0))),e.offsetHeight;const b=window.getComputedStyle(e),y=b.transform,p=b.opacity;be(e,s),y&&y!=="none"&&(e.style.transform=y),p&&p!==""&&(e.style.opacity=p),e.offsetHeight,await new Promise(u=>requestAnimationFrame(()=>u(void 0))),e.style.transform="",e.style.opacity="",ve(e,a),e.offsetHeight,await new Promise(u=>requestAnimationFrame(()=>u(void 0)));let x;if(typeof i=="number"?x=i:i&&typeof i=="object"&&"enter"in i&&(x=i.enter),await Rt(e,x),be(e,c),n?.onAfterEnter)try{n.onAfterEnter(e)}catch(u){N("Transition onAfterEnter error:",u)}}async function Qe(e,t){const{classes:r,hooks:n,css:o,duration:i}=t;if(n?.onBeforeLeave)try{n.onBeforeLeave(e)}catch(y){N("Transition onBeforeLeave error:",y)}if(!o)return n?.onLeave?new Promise(y=>{n.onLeave(e,()=>{if(n?.onAfterLeave)try{n.onAfterLeave(e)}catch(p){N("Transition onAfterLeave error:",p)}y()})}):void 0;const s=we(r?.leaveFrom),c=we(r?.leaveActive),a=we(r?.leaveTo);ve(e,s),e.offsetHeight,ve(e,c);let d;if(n?.onLeave){const y=new Promise(p=>{d=p});try{n.onLeave(e,()=>{d&&d()})}catch(p){N("Transition onLeave error:",p)}d&&await y}await new Promise(y=>requestAnimationFrame(()=>y(void 0))),await un(e,[...s,...c]),be(e,s),ve(e,a);let b;if(typeof i=="number"?b=i:i&&typeof i=="object"&&"leave"in i&&(b=i.leave),await Rt(e,b),be(e,c),be(e,a),be(e,s),n?.onAfterLeave)try{n.onAfterLeave(e)}catch(y){N("Transition onAfterLeave error:",y)}}function Y(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement}function ke(e){return e===""?!0:typeof e=="string"?e==="false"?!1:e==="true"?!0:e!=="":e&&typeof e=="object"?R(e)||"value"in e?!!e.value:!1:!!e}function ge(e,t){if(!t||!(e instanceof HTMLElement))return;oe.cleanup(e);for(const n in t)t[n]===e&&delete t[n];const r=e.childNodes;for(let n=0;n<r.length;n++)ge(r[n],t)}function Oe(e,t,r){if(typeof e=="string")return;const n=e.props?.reactiveRef??(e.props?.props&&e.props.props.reactiveRef),o=e.props?.ref??(e.props?.props&&e.props.props.ref);n?n.value=t:o&&r&&(r[o]=t)}function dn(e,t,r,n,o,i,s,c){if(!i)return;const a=t.includes("lazy"),d=t.includes("trim"),b=t.includes("number"),y=e&&typeof e=="object"&&"value"in e&&typeof e.value<"u",p=()=>{if(y){const w=e.value;return c&&s&&(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement)&&typeof w=="object"&&w!==null?w[c]:w}return V(i._state||i,e)},x=p();let u="text";s instanceof HTMLInputElement?u=n?.type||s.type||"text":s instanceof HTMLSelectElement?u="select":s instanceof HTMLTextAreaElement&&(u="textarea");const f=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement,l=f?u==="checkbox"||u==="radio"?"checked":"value":c??"modelValue";if(u==="checkbox")if(Array.isArray(x))r[l]=x.includes(String(s?.getAttribute("value")??n?.value??""));else{const w=s?.getAttribute("true-value")??!0;r[l]=x===w}else if(u==="radio")r[l]=x===(n?.value??"");else if(u==="select")if(s&&s.hasAttribute("multiple")&&s instanceof HTMLSelectElement){const w=Array.isArray(x)?x.map(String):[];setTimeout(()=>{Array.from(s.options).forEach(_=>{_.selected=w.includes(_.value)})},0),r[l]=Array.isArray(x)?x:[]}else r[l]=x;else{!f&&y?r[l]=e:r[l]=x;try{const w=ee(l);n&&(n[w]=x)}catch{}}const m=a||u==="checkbox"||u==="radio"||u==="select"?"change":"input",k=w=>{if(w.isComposing||o._isComposing)return;const _=typeof globalThis.process<"u"&&globalThis.process.env?.NODE_ENV==="test"||typeof window<"u"&&window.__vitest__;if(w.isTrusted===!1&&!_)return;const C=w.target;if(!C||C._modelUpdating)return;let h=C.value;if(u==="checkbox"){const v=p();if(Array.isArray(v)){const $=C.getAttribute("value")??"",A=Array.from(v);if(C.checked)A.includes($)||A.push($);else{const P=A.indexOf($);P>-1&&A.splice(P,1)}h=A}else{const $=C.getAttribute("true-value")??!0,A=C.getAttribute("false-value")??!1;h=C.checked?$:A}}else if(u==="radio")h=C.getAttribute("value")??C.value;else if(u==="select"&&C.multiple)h=Array.from(C.selectedOptions).map(v=>v.value);else if(d&&typeof h=="string"&&(h=h.trim()),b){const v=Number(h);isNaN(v)||(h=v)}const T=p();if(We(h,T)){C._modelUpdating=!0;try{vt(y,e,h,i,c),Fe(i,y,e,h),C&&cn(C,l,h)}finally{setTimeout(()=>C._modelUpdating=!1,0)}}};if(f){if(o[m]){const w=o[m];s&&oe.removeListener(s,m,w)}o[m]=k}else{const w=`update:${ee(l)}`,_=`update:${l}`;if(o[w]){const C=o[w];s&&oe.removeListener(s,w,C)}if(o[_]){const C=o[_];s&&oe.removeListener(s,_,C)}if(o[w]=C=>{const h=C.detail!==void 0?C.detail:C.target?.value,T=ln(y,e,i,c);if(We(h,T)){vt(y,e,h,i,c),Fe(i,y,e,h);const v=C.target;v&&kt(v,l,y?e:h,y)}},y&&typeof e.value=="object"&&e.value!==null){let C=[];try{C=Reflect.ownKeys(e.value)}catch{C=Object.keys(e.value)}const h=C.filter(T=>typeof T=="string"&&!String(T).startsWith("_")&&T!=="constructor");for(const T of h){const E=`update:${ee(T)}`,v=`update:${T}`;o[E]||(o[E]=$=>{const A=$.detail!==void 0?$.detail:$.target?.value,P=y?e.value[T]:V(i._state||i,e);if(!We(A,P))return;if(y){const F={...e.value};F[T]=A,e.value=F}else Ge(i._state||i,e,A);Fe(i,y,e,A);const j=$.currentTarget||s||$.target;j&&kt(j,l,y?e:A,y)},o[v]=o[E])}}o[_]=o[w]}(u==="text"||u==="textarea")&&(o.compositionstart=(()=>o._isComposing=!0),o.compositionend=w=>{o._isComposing=!1;const _=w.target;_&&setTimeout(()=>{const C=_.value,h=i._state||i,T=V(h,e);let E=C;if(d&&(E=E.trim()),b){const $=Number(E);isNaN($)||(E=$)}if(We(E,T)){_._modelUpdating=!0;try{Ge(h,e,E),Fe(i,y,e,E)}finally{setTimeout(()=>_._modelUpdating=!1,0)}}},0)})}function Mt(e){const t=e.slice(2);return t?t.charAt(0).toLowerCase()+t.slice(1):""}function pn(e,t,r,n,o){if(typeof e=="object"&&e!==null)for(const[i,s]of Object.entries(e))if(i.startsWith("data-")||i.startsWith("aria-")||i==="class")r[i]=s;else if(i==="disabled"&&o&&Y(o)){const c=s&&typeof s=="object"&&"value"in s;(()=>{try{return R(s)}catch{return!1}})()||c?t[i]=s:r[i]=s}else t[i]=s;else if(typeof e=="string"){if(!n)return;try{const i=Me(e,n);if(typeof i=="object"&&i!==null){for(const[s,c]of Object.entries(i))if(s.startsWith("data-")||s.startsWith("aria-")||s==="class")r[s]=c;else if(s==="disabled"&&o&&Y(o)){const a=c&&typeof c=="object"&&"value"in c;(()=>{try{return R(c)}catch{return!1}})()||a?t[s]=c:r[s]=c}else t[s]=c;return}else{r[e]=i;return}}catch{const i=V(n,e);r[e]=i}}}function hn(e,t,r){let n;if(typeof e=="string"){if(!r)return;n=Me(e,r)}else n=e;const o=t.style||"";let i=o;if(n){if(o){const s=o.split(";").map(a=>a.trim()).filter(Boolean),c=s.findIndex(a=>a.startsWith("display:"));c>=0&&s[c]==="display: none"&&(s.splice(c,1),i=s.length>0?s.join("; ")+";":"")}}else if(o){const s=o.split(";").filter(Boolean),c=s.findIndex(a=>a.trim().startsWith("display:"));c>=0?s[c]="display: none":s.push("display: none"),i=s.join("; ")}else i="display: none";i!==o&&(i?t.style=i:delete t.style)}function Me(e,t){return an.evaluate(e,t)}function gn(e,t,r){let n;if(typeof e=="string"){if(!r)return;n=Me(e,r)}else n=e;let o=[];if(typeof n=="string")o=[n];else if(Array.isArray(n))o=n.filter(Boolean);else if(typeof n=="object"&&n!==null)for(const[c,a]of Object.entries(n))a&&o.push(c);const i=t.class||"",s=o.join(" ");t.class=i?`${i} ${s}`.trim():s}function lt(e){if(e===!0||e===!1)return!0;if(e==null)return!1;if(typeof e==="string")return e===""||e==="true"||e==="false";try{if(e&&typeof e=="object"&&"value"in e){const r=e.value,n=typeof r;return n==="boolean"?!0:n==="string"?r===""||r==="true"||r==="false":!1}}catch{}return!1}function mn(e,t,r){let n;if(typeof e=="string"){if(!r)return;n=Me(e,r)}else n=e;let o="";if(typeof n=="string")o=n;else if(n&&typeof n=="object"){const s=[];for(const[c,a]of Object.entries(n))if(a!=null&&a!==""){const d=c.replace(/[A-Z]/g,p=>`-${p.toLowerCase()}`),b=["width","height","top","right","bottom","left","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","font-size","line-height","border-width","border-radius","min-width","max-width","min-height","max-height"];let y=String(a);typeof a=="number"&&b.includes(d)&&(y=`${a}px`),s.push(`${d}: ${y}`)}o=s.join("; ")+(s.length>0?";":"")}const i=t.style||"";t.style=i+(i&&!i.endsWith(";")?"; ":"")+o}function yn(e,t,r){let n=e;typeof e=="string"&&r&&(n=Me(e,r)),R(n)?t.reactiveRef=n:t.ref=n}function Dt(e,t,r,n){const o={},i={...n||{}},s={};for(const[c,a]of Object.entries(e)){const{value:d,modifiers:b,arg:y}=a;if(c==="model"||c.startsWith("model:")){const p=c.split(":"),x=p.length>1?p[1]:y;dn(d,b,o,i,s,t,r,x);continue}switch(c){case"bind":pn(d,o,i,t,r);break;case"show":hn(d,i,t);break;case"class":gn(d,i,t);break;case"style":mn(d,i,t);break;case"ref":yn(d,o,t);break}}try{if(Object.prototype.hasOwnProperty.call(o,"disabled")&&r&&Y(r)){const a=o.disabled,d=a&&typeof a=="object"&&"value"in a;let b=!1;try{b=R(a)}catch{b=!1}if(!d&&!b)try{i.disabled=a,delete o.disabled;const y=globalThis;y.__VDOM_DISABLED_PROMOTIONS||(y.__VDOM_DISABLED_PROMOTIONS=[]),y.__VDOM_DISABLED_PROMOTIONS.push({phase:"bind-directive:postfix-move",location:"attrs",key:"disabled",value:a,time:Date.now(),stack:new Error().stack})}catch{}}}catch{}return{props:o,attrs:i,listeners:s}}function ut(e,t){if(Array.isArray(e)){const i=new Set;return e.map(s=>{if(!s||typeof s!="object")return s;let c=s.props?.key??s.key;if(!c){const y=s.tag||"node",x=[s.props?.attrs?.id,s.props?.attrs?.name,s.props?.attrs?.["data-key"],s.props?.props?.id,s.props?.props?.name,s.props?.props?.dataKey,s.props?.props?.["data-key"]].find(u=>u!=null)??"";c=x?`${t}:${y}:${x}`:`${t}:${y}`}let a=c,d=1;for(;i.has(a);)a=`${c}#${d++}`;i.add(a);let b=s.children;return Array.isArray(b)&&(b=ut(b,a)),{...s,key:a,children:b}})}const r=e;let n=r.props?.key??r.key??t,o=r.children;return Array.isArray(o)&&(o=ut(o,n)),{...r,key:n,children:o}}function xt(e,t,r,n){const o=r.directives??{},i=Dt(o,n,e,r.attrs),s={...t.props,...r.props,...i.props},c={...t.attrs,...r.attrs,...i.attrs},a=t.props??{},d=s,b=r?.isCustomElement??t?.isCustomElement??!1;let y=!1;for(const u in{...a,...d}){const f=a[u],g=d[u];let l=f,m=g;if(L(()=>{(R(f)||f&&typeof f=="object"&&"value"in f)&&(l=f.value)}),L(()=>{(R(g)||g&&typeof g=="object"&&"value"in g)&&(m=g.value)}),!(f===g&&l===m))if(y=!0,u==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)){const k=typeof g=="object"&&g!==null&&R(g)||g&&typeof g=="object"&&"value"in g?g.value:g;e.value!==k&&(e.value=k??"")}else if(u==="checked"&&e instanceof HTMLInputElement){const k=typeof g=="object"&&g!==null&&R(g)||g&&typeof g=="object"&&"value"in g?g.value:g;e.checked=!!k}else if(u.startsWith("on")&&typeof g=="function"){const k=Mt(u);typeof f=="function"&&oe.removeListener(e,k,f),oe.addListener(e,k,g);try{if(k&&k.startsWith("update:")){const w=k.split(":",2)[1],_=d[w];let C=[];try{if(R(_)){const T=_.value;C=T&&typeof T=="object"?Object.keys(T):[]}else _&&typeof _=="object"&&(C=Object.keys(_))}catch{C=[]}const h=C.filter(T=>typeof T=="string"&&!T.startsWith("_")&&T!=="constructor");for(const T of h){const E=`update:${T}`,v=$=>{const A=$.detail!==void 0?$.detail:$.target?.value,S={...R(_)?_.value||{}:d[w]||{},[T]:A};L(()=>{g({detail:S})})};L(()=>{oe.addListener(e,E,v)})}}}catch{}}else if(g==null)e.removeAttribute(u);else{const k=r?.isCustomElement??t?.isCustomElement??!1;if(k||u in e)try{e[u]=g,u==="disabled"&&g===!1&&!k&&Y(e)&&e.removeAttribute("disabled")}catch{}else g===!1&&e.removeAttribute(u)}}for(const[u,f]of Object.entries(i.listeners||{})){oe.addListener(e,u,f);try{const g=e&&e.parentElement;g&&g!==e&&oe.addListener(g,u,f)}catch{}}const p=t.attrs??{},x=c;for(const u in{...p,...x}){const f=p[u],g=x[u];let l=f,m=g;if(R(f)&&(l=f.value),R(g)&&(m=g.value),l!==m)if(y=!0,m==null||m===!1)L(()=>{e.removeAttribute(u)}),u==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?L(()=>{e.value=""}):e instanceof HTMLSelectElement?L(()=>{e.value=""}):e instanceof HTMLProgressElement&&L(()=>{e.value=0})),u==="checked"&&e instanceof HTMLInputElement&&L(()=>{e.checked=!1}),u==="disabled"&&Y(e)&&L(()=>{e.disabled=!1});else{if(u==="value"){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){L(()=>{e.value=m??""});continue}else if(e instanceof HTMLSelectElement){L(()=>{e.value=m??""});continue}else if(e instanceof HTMLProgressElement){L(()=>{e.value=Number(m)});continue}}if(u==="checked"&&e instanceof HTMLInputElement){L(()=>{e.checked=!!m});continue}if(u==="style"){e.setAttribute(u,String(m));continue}if(u==="disabled"&&Y(e)){L(()=>{e.disabled=ke(m)}),ke(m)?L(()=>{e.setAttribute(u,"")}):L(()=>{e.removeAttribute(u)});continue}const k=e.namespaceURI==="http://www.w3.org/2000/svg";if(b&&!k&&u.includes("-")){const w=mt(u);try{R(g)?e[w]=g:e[w]=m}catch{e.setAttribute(u,String(m))}}else if(!k&&u in e)try{R(g)?e[u]=g:e[u]=m}catch{e.setAttribute(u,String(m))}else e.setAttribute(u,String(m))}}try{if(Y(e)){const u=s.disabled;let f;try{const l=Object.prototype.hasOwnProperty.call(i.props||{},"disabled"),m=u&&typeof u=="object"&&"value"in u;let k=!1;L(()=>{k=!!R(u)});const w=lt(u);k||m||l||w?f=u:f=c.disabled}catch{f=c.disabled}const g=ke(f);L(()=>{e.disabled=g}),L(g?()=>{e.setAttribute("disabled","")}:()=>{e.removeAttribute("disabled")})}}catch{}b&&y&&(L(()=>{e._applyProps?.(e._cfg)}),L(()=>{typeof e.requestRender=="function"?e.requestRender():typeof e._render=="function"&&e._render(e._cfg)}))}function Q(e,t,r){if(typeof e=="string")return document.createTextNode(e);if(e.tag==="#text"){const p=document.createTextNode(typeof e.children=="string"?e.children:"");return e.key!=null&&(p.key=e.key),p}if(e.tag==="#anchor"){const p=e,x=Array.isArray(p.children)?p.children:[],u=document.createTextNode(""),f=document.createTextNode("");p.key!=null&&(u.key=`${p.key}:start`,f.key=`${p.key}:end`),p._startNode=u,p._endNode=f;const g=document.createDocumentFragment();g.appendChild(u);for(const l of x){const m=Q(l,t);if(p.key!=null&&m instanceof Element&&!m.hasAttribute("data-anchor-key")){const k=l;k&&typeof k=="object"&&k.key!=null||(m.key=p.key,m.setAttribute("data-anchor-key",String(p.key)))}g.appendChild(m)}return g.appendChild(f),g}const n=document.createElement(e.tag);e.key!=null&&(n.key=e.key),e.props&&e.props._transitionGroup&&(n._transitionGroup=e.props._transitionGroup);const{props:o={},attrs:i={},directives:s={}}=e.props??{},c=Dt(s,t,n,i),a={...o,...c.props},d={...i,...c.attrs};try{if(a.disabled!==void 0&&n&&Y(n)){const p=a.disabled,x=p&&typeof p=="object"&&"value"in p;let u=!1;try{u=R(p)}catch{u=!1}!x&&!u&&L(()=>{d.disabled=p,delete a.disabled;const f=globalThis;f.__VDOM_DISABLED_PROMOTIONS||(f.__VDOM_DISABLED_PROMOTIONS=[]),f.__VDOM_DISABLED_PROMOTIONS.push({phase:"createElement:move-prop-to-attr",location:"attrs",key:"disabled",value:p,time:Date.now(),stack:new Error().stack})})}}catch{}const b=n.namespaceURI==="http://www.w3.org/2000/svg";for(const p in d){const x=d[p];if(typeof p!="string"||/\[object Object\]/.test(p))continue;const u=typeof x=="object"&&x!==null&&R(x)||x&&typeof x=="object"&&"value"in x?x.value:x;if(typeof u=="boolean")u?n.setAttribute(p,""):L(()=>{n.removeAttribute(p)});else if(u!=null){if(p==="disabled"&&Y(n)){const f=a.disabled,g=lt(f)?f:u,l=ke(g);L(()=>{n.disabled=l}),L(l?()=>{n.setAttribute(p,"")}:()=>{n.removeAttribute(p)});continue}if(!b&&p==="value"&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement||n instanceof HTMLProgressElement))try{n instanceof HTMLProgressElement?n.value=Number(u):n.value=u??""}catch{n.setAttribute(p,String(u))}else if(!b&&p==="checked"&&n instanceof HTMLInputElement)try{n.checked=!!u}catch{n.setAttribute(p,String(u))}else if(!b&&p in n)try{n[p]=u,p==="disabled"&&u===!1&&Y(n)&&n.removeAttribute("disabled")}catch{n.setAttribute(p,String(u))}else if((e.props?.isCustomElement??!1)&&!b&&p.includes("-")){const g=mt(p);try{n[g]=u}catch{n.setAttribute(p,String(u))}}else n.setAttribute(p,String(u))}}for(const p in a){const x=a[p];if(!(typeof p!="string"||/\[object Object\]/.test(p)))if(p==="value"&&(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)){const u=typeof x=="object"&&x!==null&&typeof x.value<"u"?x.value:x;L(()=>{n.value=u??""})}else if(p.startsWith("on")&&typeof x=="function"){const u=Mt(p),f=u.includes(":")?(()=>{const g=u.split(":"),l=g[1];if(l.includes("-")){const m=l.split("-").map((k,w)=>w===0?k:k.charAt(0).toUpperCase()+k.slice(1)).join("");return`${g[0]}:${m}`}else{const m=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return`${g[0]}:${m}`}})():u;c.listeners&&(c.listeners[u]||c.listeners[f])||oe.addListener(n,u,x)}else{if(p.startsWith("on")&&x===void 0)continue;if(x==null||x===!1)n.removeAttribute(p);else if((e.props?.isCustomElement??!1)||p in n)try{const f=typeof x=="object"&&x!==null&&R(x)?x:typeof x=="object"&&x!==null&&typeof x.value<"u"?x.value:x;if(p==="disabled"&&Y(n)){const g=a.disabled!==void 0?a.disabled:f,l=ke(g);L(()=>{n.disabled=l}),L(l?()=>{n.setAttribute(p,"")}:()=>{n.removeAttribute(p)});continue}try{if(typeof n[p]=="boolean"){let l=f;typeof f=="string"?f==="false"?l=!1:f==="true"?l=!0:l=!!f&&f!=="":l=!!f,n[p]=l}else n[p]=f}catch{n[p]=f}}catch{}}}for(const[p,x]of Object.entries(c.listeners||{}))oe.addListener(n,p,x);const y={...e,props:{...e.props,...c.props}};Oe(y,n,r);try{if(typeof n._applyProps=="function")try{n._applyProps(n._cfg)}catch{}typeof n.requestRender=="function"?n.requestRender():typeof n._render=="function"&&n._render(n._cfg)}catch{}if(Array.isArray(e.children))for(const p of e.children)n.appendChild(Q(p,t,r));else typeof e.children=="string"&&(n.textContent=e.children);try{if(n instanceof HTMLSelectElement&&d&&d.hasOwnProperty("value"))try{n.value=d.value??""}catch{}}catch{}try{if(Y(n)){const p=a.disabled,x=d.disabled,u=p&&typeof p=="object"&&"value"in p;let f=!1;try{f=!!R(p)}catch{f=!1}const l=f||u||lt(p)?p:x,m=ke(l);L(()=>{n.disabled=m}),L(m?()=>{n.setAttribute("disabled","")}:()=>{n.removeAttribute("disabled")})}}catch{}return n}function bn(e,t,r,n,o){if(typeof r=="string"){e.textContent!==r&&(e.textContent=r);return}if(!Array.isArray(r))return;const i=e.childNodes,s=[];for(let f=0;f<i.length;f++)s.push(i[f]);const c=Array.isArray(t)?t:[],a=e._transitionGroup;if(a){const f=e._hasTransitionGroupRendered||!1;f||(e._hasTransitionGroupRendered=!0);const g=w=>typeof w=="string"&&w.startsWith("each-")?w.substring(5):w,l=[],m=[];for(const w of r)if(w&&w.tag==="#anchor"){const _=Array.isArray(w.children)?w.children:[];for(const C of _){const h=g(C.key||w.key||"unknown");l.push({...C,key:h})}}else w&&l.push({...w,key:g(w.key)});for(const w of c)if(w&&w.tag==="#anchor"){const _=Array.isArray(w.children)?w.children:[];for(const C of _){const h=g(C.key||w.key||"unknown");m.push({...C,key:h})}}else w&&m.push({...w,key:g(w.key)});if(l.some(w=>w&&w.key!=null)||m.some(w=>w&&w.key!=null)){const w=new Map,_=new Map;for(const E of m)if(E&&E.key!=null){const v=String(E.key);w.set(v,E)}for(let E=0;E<s.length;E++){const v=s[E];let $=v.key;if(!$&&v instanceof Element){const A=v.getAttribute("data-anchor-key");A&&($=A)}if($=g($),$!=null&&v instanceof Element&&v.nodeType===Node.ELEMENT_NODE){let A=typeof $=="string"&&$.includes(":")?$.substring(0,$.lastIndexOf(":")):$;A=String(A),_.set(A,v)}}const C=new Set,h=[];for(const E of l){let v=E.key;if(v==null)continue;v=String(v);const $=w.get(v);let A=_.get(v);if(A&&$){const P=je(A,$,E,n);C.add(A);const S=String(v);P.key=S,P instanceof Element&&P.setAttribute("data-anchor-key",S),h.push({node:P,key:v,newVNode:E,oldVNode:$,isNew:!1})}else{A=Q(E,n),A.key=v,A instanceof Element&&A.setAttribute("data-anchor-key",String(v)),e.appendChild(A);const S=!!f||a.appear===!0;A instanceof HTMLElement&&S&&Se(A,a).catch(j=>{N("Enter transition error:",j)}),h.push({node:A,key:v,newVNode:E,isNew:!0})}}const T=[];for(let E=0;E<s.length;E++){const v=s[E],$=v.key;if(!C.has(v)&&$!=null&&v instanceof HTMLElement){const P=Qe(v,a).then(()=>{e.contains(v)&&e.removeChild(v)}).catch(S=>{N("Leave transition error:",S),e.contains(v)&&e.removeChild(v)});T.push(P)}}requestAnimationFrame(()=>{if(T.length>0)return;let E=e.firstChild;for(const{node:v}of h)v!==E&&e.insertBefore(v,E),E=v.nextSibling});return}}const d=new Map;for(const f of c)f&&f.key!=null&&d.set(f.key,f);const b=new Map;for(let f=0;f<s.length;f++){const g=s[f],l=g.key;l!=null&&b.set(l,g)}const y=new Set;let p=e.firstChild;function x(f,g){let l=f;for(;l&&(y.add(l),l!==g);)l=l.nextSibling}function u(f,g,l,m,k,w=!0){const _=[];let C=f.nextSibling;for(;C&&C!==g;)_.push(C),C=C.nextSibling;const h=Array.isArray(l)?l:[];if(m.some(E=>E&&E.key!=null)||h.some(E=>E&&E.key!=null)){const E=new Map,v=new Map;for(const S of h)S&&S.key!=null&&E.set(S.key,S);for(const S of _){const j=S.key;j!=null&&v.set(j,S)}const $=k&&k.state==="visible"&&h.length===0&&m.length>0,A=new Set;let P=f.nextSibling;for(const S of m){let j;if(S.key!=null&&v.has(S.key)){const F=E.get(S.key);j=je(v.get(S.key),F,S,n),A.add(j),k&&j instanceof HTMLElement&&$&&k.appear&&Se(j,k).catch(te=>{N("Transition enter error (appear):",te)}),j!==P&&e.contains(j)&&e.insertBefore(j,P)}else j=Q(S,n),e.insertBefore(j,P),A.add(j),k&&j instanceof HTMLElement&&w&&Se(j,k).catch(F=>{N("Transition enter error:",F)});P=j.nextSibling}for(const S of _)!A.has(S)&&e.contains(S)&&(k&&S instanceof HTMLElement&&w?Qe(S,k).then(()=>{e.contains(S)&&e.removeChild(S)}).catch(j=>{N("Transition leave error:",j),e.contains(S)&&e.removeChild(S)}):e.removeChild(S))}else{const E=Math.min(h.length,m.length);for(let v=0;v<E;v++){const $=h[v],A=m[v],P=je(_[v],$,A,n);P!==_[v]&&(e.insertBefore(P,_[v]),e.removeChild(_[v]))}for(let v=E;v<m.length;v++){const $=Q(m[v],n);e.insertBefore($,g),k&&$ instanceof HTMLElement&&w&&Se($,k).catch(A=>{N("Transition enter error:",A)})}for(let v=E;v<_.length;v++){const $=_[v];k&&$ instanceof HTMLElement&&w?Qe($,k).then(()=>{e.contains($)&&e.removeChild($)}).catch(A=>{N("Transition leave error:",A),e.contains($)&&e.removeChild($)}):e.removeChild($)}}}for(const f of r){let g;if(f.tag==="#anchor"){const l=f.key,m=`${l}:start`,k=`${l}:end`;let w=b.get(m),_=b.get(k);const C=Array.isArray(f.children)?f.children:[];if(w||(w=document.createTextNode(""),w.key=m),_||(_=document.createTextNode(""),_.key=k),f._startNode=w,f._endNode=_,!e.contains(w)||!e.contains(_)){e.insertBefore(w,p);const h=f._transition,E=!(h&&h.state==="visible"&&C.length>0)||h.appear;for(const v of C){const $=Q(v,n);e.insertBefore($,p),h&&$ instanceof HTMLElement&&E&&Se($,h).catch(A=>{N("Transition enter error:",A)})}e.insertBefore(_,p)}else{const h=f._transition,E=d.get(l)?._transition,v=E&&E.state!==h?.state,$=h&&h.state==="visible"&&C.length>0&&!v,A=v||!$||h?.appear===!0;u(w,_,d.get(l)?.children,C,h,A)}x(w,_),p=_.nextSibling;continue}if(f.key!=null&&b.has(f.key)){const l=d.get(f.key);g=je(b.get(f.key),l,f,n,o),y.add(g),g!==p&&e.contains(g)&&(p&&!e.contains(p)&&(p=null),e.insertBefore(g,p))}else g=Q(f,n,o),p&&!e.contains(p)&&(p=null),e.insertBefore(g,p),y.add(g);p=g.nextSibling}for(let f=0;f<s.length;f++){const g=s[f];!y.has(g)&&e.contains(g)&&(ge(g,o),e.removeChild(g))}}function je(e,t,r,n,o){if(t&&typeof t!="string"&&t.props?.ref&&o&&ge(e,o),t===r)return e;if(typeof r=="string"){if(e.nodeType===Node.TEXT_NODE)return e.textContent!==r&&(e.textContent=r),e;{const s=document.createTextNode(r);return e.parentNode?.replaceChild(s,e),s}}if(r&&typeof r!="string"&&r.tag==="#anchor"){const s=r,c=Array.isArray(s.children)?s.children:[],a=s._startNode??document.createTextNode(""),d=s._endNode??document.createTextNode("");s.key!=null&&(a.key=`${s.key}:start`,d.key=`${s.key}:end`),s._startNode=a,s._endNode=d;const b=document.createDocumentFragment();b.appendChild(a);for(const y of c){const p=Q(y,n);b.appendChild(p)}return b.appendChild(d),e.parentNode?.replaceChild(b,e),a}if(!r){ge(e,o);const s=document.createComment("removed");return e.parentNode?.replaceChild(s,e),s}if(!t||typeof t=="string"){ge(e,o);const s=Q(r,n,o);return Oe(r,s,o),e.parentNode?.replaceChild(s,e),s}if(r.tag==="#anchor"){const s=Array.isArray(r.children)?r.children:[],c=r._startNode??document.createTextNode(""),a=r._endNode??document.createTextNode("");r.key!=null&&(c.key=`${r.key}:start`,a.key=`${r.key}:end`),r._startNode=c,r._endNode=a;const d=document.createDocumentFragment();d.appendChild(c);for(const b of s)d.appendChild(Q(b,n));return d.appendChild(a),e.parentNode?.replaceChild(d,e),c}if(typeof t!="string"&&typeof r!="string"&&t.tag===r.tag&&t.key===r.key){const s=e;return xt(s,t.props||{},r.props||{},n),bn(s,t.children,r.children,n,o),Oe(r,s,o),s}if(typeof t!="string"&&typeof r!="string"&&t.tag===r.tag&&(t.tag&&String(t.tag).includes("-")||r.props&&r.props.isCustomElement||t.props&&t.props.isCustomElement))try{const c=e;return xt(c,t.props||{},r.props||{},n),Oe(r,c,o),c}catch{}ge(e,o);const i=Q(r,n,o);return Oe(r,i,o),e.parentNode?.replaceChild(i,e),i}function wn(e,t,r,n){let o;Array.isArray(t)?t.length===1?(o=t[0],o&&typeof o=="object"&&o.key==null&&(o={...o,key:"__root__"})):o={tag:"div",key:"__root__",children:t}:(o=t,o&&typeof o=="object"&&o.key==null&&(o={...o,key:"__root__"})),o&&typeof o=="object"&&o.tag==="#anchor"&&(o={tag:"div",key:"__anchor_root__",props:{attrs:{"data-anchor-block-root":"",key:"__anchor_root__"}},children:[o]}),o=ut(o,String(o.key??"root"));const i=e._prevVNode??null,s=e._prevDom??e.firstChild??null;let c;i&&s?typeof i!="string"&&typeof o!="string"&&i.tag===o.tag&&i.key===o.key?c=je(s,i,o,r,n):(c=Q(o,r,n),e.replaceChild(c,s)):(c=Q(o,r,n),e.firstChild?e.replaceChild(c,e.firstChild):e.appendChild(c));const a=[];for(let d=0;d<e.childNodes.length;d++){const b=e.childNodes[d];b!==c&&b.nodeName!=="STYLE"&&(ge(b,n),a.push(b))}a.forEach(d=>e.removeChild(d)),e._prevVNode=o,e._prevDom=c}function Ve(e){if(typeof e=="string")return _e(e);if(e.tag==="#text")return typeof e.children=="string"?_e(e.children):"";if(e.tag==="#anchor")return(Array.isArray(e.children)?e.children.filter(Boolean):[]).map(Ve).join("");let t="";e.props&&e.props.attrs&&(t=Object.entries(e.props.attrs).map(([o,i])=>` ${o}="${_e(String(i))}"`).join(""));let r="";e.props&&(r=Object.entries(e.props).filter(([o])=>o!=="attrs"&&o!=="directives"&&o!=="ref"&&o!=="key").map(([o,i])=>` ${o}="${_e(String(i))}"`).join(""));const n=Array.isArray(e.children)?e.children.filter(Boolean).map(Ve).join(""):typeof e.children=="string"?_e(e.children):e.children?Ve(e.children):"";return`<${e.tag}${t}${r}>${n}</${e.tag}>`}function Nt(e,...t){let r="";for(let n=0;n<e.length;n++)r+=e[n],n<t.length&&(r+=t[n]);return r}function It(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let ze=null;function $t(){return ze||(ze=new CSSStyleSheet,ze.replaceSync(It(kn))),ze}function vn(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const kn=Nt`
|
|
4
|
+
• Ensure computed properties don't modify state`),this._value=this.makeReactive(t),Y.triggerUpdate(this)}addDependent(t){this.dependents.add(t)}removeDependent(t){this.dependents.delete(t)}getDependents(){return this.dependents}makeReactive(t){return t===null||typeof t!="object"||t instanceof Node||t instanceof Element||t instanceof HTMLElement?t:Wt.createReactiveProxy(t,()=>Y.triggerUpdate(this),n=>this.makeReactive(n))}}function fn(e){return Y.getOrCreateState(e===void 0?null:e)}function R(e){if(!e||typeof e!="object")return!1;try{const t=Symbol.for("@cer/ReactiveState");return!!e[t]}catch{return!1}}function dn(e){const t=new Ge(e());return{get value(){return Y.trackDependency(t),e()}}}function pn(e,t,n={}){let r=e();n.immediate&&t(r,r);const o=`watch-${Math.random().toString(36).substr(2,9)}`,i=()=>{Y.setCurrentComponent(o,i);const s=e();Y.clearCurrentComponent(),s!==r&&(t(s,r),r=s)};return Y.setCurrentComponent(o,i),e(),Y.clearCurrentComponent(),()=>{Y.cleanup(o)}}const P=e=>{try{e()}catch{}},Ie=new Map,Fe=new Map,Be=new Map,vt=500;let $t,zt,Et=!1,Ct=!1,_t;const hn=!!(globalThis.process&&globalThis.process.versions&&globalThis.process.versions.node);function oe(e){if(Ie.has(e))return Ie.get(e);const t=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return Ie.size<vt&&Ie.set(e,t),t}function wt(e){if(Fe.has(e))return Fe.get(e);const t=e.replace(/-([a-z])/g,(n,r)=>r.toUpperCase());return Fe.size<vt&&Fe.set(e,t),t}function We(e){if(typeof e=="string"){if(Be.has(e))return Be.get(e);const t=e.replace(/[&<>"']/g,n=>({"&":"&","<":"<",">":">",'"':""","'":"'"})[n]);return t!==e&&Be.size<vt&&Be.set(e,t),t}return e}function ae(e){if(!e)return"";const t=String(e);if(typeof document<"u"&&typeof document.createElement=="function"){const c=t.replace(/</g,"").replace(/>/g,""),a=_t||(_t=document.createElement("div"));try{ae._el=a}catch{}return a.innerHTML=c,(a.textContent||"").replace(new RegExp("","g"),"<").replace(new RegExp("","g"),">")}const n={lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" "},r=$t??ae._namedMap;let o=r;if(!o&&hn)try{const i=globalThis.require;if(typeof i=="function"){const s=["@jasonshimmy/custom-elements-runtime/entities.json","../../entities.json","../../../entities.json","../entities.json","./entities.json"];for(const c of s)try{const a=i(c);if(a){o=a;break}}catch{}}}catch{}if(!o){o=n,Et=!0;try{ae._usedFallback=!0}catch{}const i=ae._namedMapLoader??zt;i&&i().then(s=>{$t=s;try{ae._namedMap=s}catch{}}).catch(()=>{})}if((Et||ae._usedFallback)&&!(Ct||ae._warnedFallback)){Ct=!0;try{ae._warnedFallback=!0}catch{}try{re("decodeEntities: using small SSR fallback entity map. Register the full entities.json via registerEntityMap(entities) on the server to enable full HTML5 named-entity decoding.")}catch{}}return t.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g,(i,s)=>{if(s.charCodeAt(0)===35){const d=(s.charAt(1)||"").toLowerCase()==="x"?parseInt(s.slice(2),16):parseInt(s.slice(1),10);return Number.isNaN(d)?`&${s};`:String.fromCodePoint(d)}const c=o[s]??(r&&r[s]);return c!==void 0?c:`&${s};`})}async function Ut(){const e=["@jasonshimmy","custom-elements-runtime","entities.json"].join("/");try{const t=await import(e);return t&&(t.default||t)}catch{try{const t=[e,"./entities.json","../../entities.json","../../../entities.json"];for(const n of t)try{const r=await import(n);if(r)return r&&(r.default||r)}catch{}return{lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" "}}catch{return{lt:"<",gt:">",amp:"&",quot:'"',apos:"'",nbsp:" "}}}}zt=Ut;ae._namedMapLoader=Ut;function gn(e){const t=String(e);return{__unsafeHTML:t,__rawHTML:t}}function St(e){return!!e&&(typeof e.__unsafeHTML=="string"||typeof e.__rawHTML=="string")}function J(e,t){if(typeof t=="string"){const n=t.split(".").reduce((r,o)=>r?.[o],e);return R(n)?n.value:n}return t}function Xe(e,t,n){const r=String(t).split("."),o=r.pop();if(!o)return;const i=r.reduce((s,c)=>(s[c]==null&&(s[c]={}),s[c]),e);R(i[o])?i[o].value=n:i[o]=n}function mn(e,t,n){if(n)for(const[r,o]of Object.entries(n)){let i,s={};if(Array.isArray(o)?(i=o[0],s=o[1]||{}):i=o,t.set(r,{callback:i,options:s,oldValue:J(e,r)}),s.immediate)try{const c=J(e,r);i(c,void 0,e)}catch(c){H(`Error in immediate watcher for "${r}":`,c)}}}function yn(e,t,n,r){const o=(s,c)=>{if(s===c)return!0;if(typeof s!=typeof c||typeof s!="object"||s===null||c===null)return!1;if(Array.isArray(s)&&Array.isArray(c))return s.length!==c.length?!1:s.every((m,y)=>o(m,c[y]));const a=Object.keys(s),d=Object.keys(c);return a.length!==d.length?!1:a.every(m=>o(s[m],c[m]))},i=t.get(n);if(i&&!o(r,i.oldValue))try{i.callback(r,i.oldValue,e),i.oldValue=r}catch(s){H(`Error in watcher for "${n}":`,s)}for(const[s,c]of t.entries())if(c.options.deep&&n.startsWith(s+"."))try{const a=J(e,s);o(a,c.oldValue)||(c.callback(a,c.oldValue,e),c.oldValue=a)}catch(a){H(`Error in deep watcher for "${s}":`,a)}}function At(e,t){return t===Boolean?e===""||e==="true":t===Number?Number(e):e}function bn(e,t,n){if(t)for(const r in t){const o=t[r],i=oe(r),s=e.getAttribute(i);if(o.type===Function&&typeof e[r]=="function")n[r]=e[r];else if(s!==null)n[r]=At(s,o.type);else if(typeof e[r]<"u")try{const c=e[r];o.type===Boolean&&typeof c=="boolean"||o.type===Number&&typeof c=="number"||o.type===Function&&typeof c=="function"?n[r]=c:n[r]=At(String(c),o.type)}catch{n[r]=e[r]}else"default"in o&&o.default!==void 0&&(n[r]=o.default)}}function vn(e,t,n){if(!t.props){try{const r=n&&n._hookCallbacks&&n._hookCallbacks.props||{},o=Array.from(new Set([...Object.keys(e),...Object.keys(r)]));for(const i of o){if(typeof i!="string"||i.startsWith("_"))continue;const s=Object.getOwnPropertyDescriptor(n,i);if(!(!Object.prototype.hasOwnProperty.call(r,i)&&s&&(s.get||s.set||!s.configurable)))try{Object.defineProperty(n,i,{enumerable:!0,configurable:!0,get(){try{const a=oe(i),d=e.getAttribute(a);if(d!==null)return d;const m=e[i];let y;return R(m)||m&&typeof m=="object"&&"value"in m&&!(m instanceof Node)?y=m.value:y=m,y}catch{return e[i]}}})}catch{}}}catch{}return}bn(e,t.props,n)}function wn(e,t,n,r){e.onConnected&&!n&&(e.onConnected(t),r(!0))}function xn(e,t,n,r,o,i,s,c){e.onDisconnected&&e.onDisconnected(t),n.forEach(a=>a()),r(),o(),i(!1),s(null),c(!1)}function kn(e,t,n,r,o){e.onAttributeChanged&&e.onAttributeChanged(t,n,r,o)}class $n{static cache=new Map;static maxCacheSize=1e3;static dangerousPatterns=[/constructor/i,/prototype/i,/__proto__/i,/function/i,/eval/i,/import/i,/require/i,/window/i,/document/i,/global/i,/process/i,/setTimeout/i,/setInterval/i,/fetch/i,/XMLHttpRequest/i];static evaluate(t,n){const r=this.cache.get(t);if(r){if(!r.isSecure){re("Blocked cached dangerous expression:",t);return}return r.evaluator(n)}const o=this.createEvaluator(t);if(this.cache.size>=this.maxCacheSize){const i=this.cache.keys().next().value;i&&this.cache.delete(i)}if(this.cache.set(t,o),!o.isSecure){re("Blocked dangerous expression:",t);return}return o.evaluator(n)}static createEvaluator(t){if(this.hasDangerousPatterns(t))return{evaluator:()=>{},isSecure:!1};if(t.length>1e3)return{evaluator:()=>{},isSecure:!1};try{return{evaluator:this.createSafeEvaluator(t),isSecure:!0}}catch(n){return re("Failed to create evaluator for expression:",t,n),{evaluator:()=>{},isSecure:!1}}}static hasDangerousPatterns(t){return this.dangerousPatterns.some(n=>n.test(t))}static createSafeEvaluator(t){const n=t.trim();if(n.startsWith("{")&&n.endsWith("}"))return this.createObjectEvaluator(t);if(/^ctx\.[a-zA-Z0-9_\.]+$/.test(t.trim())){const r=t.trim().slice(4);return o=>J(o,r)}return t.includes("ctx")||/[+\-*/%<>=&|?:\[\]]/.test(t)?this.createSimpleEvaluator(t):r=>J(r,t)}static createObjectEvaluator(t){const n=t.trim().slice(1,-1),r=this.parseObjectProperties(n);return o=>{const i={};for(const{key:s,value:c}of r)try{if(c.startsWith("ctx.")){const a=c.slice(4);i[s]=J(o,a)}else i[s]=this.evaluateSimpleValue(c,o)}catch{i[s]=void 0}return i}}static parseObjectProperties(t){const n=[],r=t.split(",");for(const o of r){const i=o.indexOf(":");if(i===-1)continue;const s=o.slice(0,i).trim(),c=o.slice(i+1).trim(),a=s.replace(/^['"]|['"]$/g,"");n.push({key:a,value:c})}return n}static createSimpleEvaluator(t){return n=>{try{let r=t;const o=[];r=r.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,y=>`<<#${o.push(y)-1}#>>`);const i=r.match(/ctx\.[\w.]+/g)||[];for(const y of i){const p=y.slice(4),k=J(n,p);if(k===void 0)return;const f=o.push(JSON.stringify(k))-1;r=r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${f}#>>`)}const s=/\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g,c=r.match(s)||[];for(const y of c){if(y.startsWith("ctx."))continue;const p=J(n,y);if(p===void 0)return;const k=o.push(JSON.stringify(p))-1;r=r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${k}#>>`)}const a=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;let d;const m=new Set;for(;(d=a.exec(r))!==null;){const y=d[1];if(["true","false","null","undefined"].includes(y)||/^[0-9]+$/.test(y)||y==="ctx"||m.has(y))continue;m.add(y);const p=J(n,y);if(p===void 0)return;const k=JSON.stringify(p),f=o.push(k)-1;y.includes(".")?r=r.replace(new RegExp(y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${f}#>>`):r=r.replace(new RegExp("\\b"+y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","g"),`<<#${f}#>>`)}r=r.replace(/<<#(\d+)#>>/g,(y,p)=>o[Number(p)]);try{return this.evaluateBasicExpression(r)}catch{return}}catch{return}}}static evaluateBasicExpression(t){const n=this.tokenize(t);let r=0;function o(){return n[r]}function i(l){const g=n[r++];if(l&&!g)throw new Error(`Unexpected token EOF, expected ${l}`);if(l&&g&&g.type!==l&&g.value!==l)throw new Error(`Unexpected token ${g.type}/${g.value}, expected ${l}`);return g}function s(){return c()}function c(){let l=a();if(o()&&o().value==="?"){i("?");const g=s();i(":");const v=s();return l?g:v}return l}function a(){let l=d();for(;o()&&o().value==="||";){i("OP");const g=d();l=l||g}return l}function d(){let l=m();for(;o()&&o().value==="&&";){i("OP");const g=m();l=l&&g}return l}function m(){let l=y();for(;o()&&["==","!=","===","!=="].includes(o().value);){const g=i("OP").value,v=y();switch(g){case"==":l=l==v;break;case"!=":l=l!=v;break;case"===":l=l===v;break;case"!==":l=l!==v;break}}return l}function y(){let l=p();for(;o()&&[">","<",">=","<="].includes(o().value);){const g=i("OP").value,v=p();switch(g){case">":l=l>v;break;case"<":l=l<v;break;case">=":l=l>=v;break;case"<=":l=l<=v;break}}return l}function p(){let l=k();for(;o()&&(o().value==="+"||o().value==="-");){const g=i("OP").value,v=k();l=g==="+"?l+v:l-v}return l}function k(){let l=f();for(;o()&&(o().value==="*"||o().value==="/"||o().value==="%");){const g=i("OP").value,v=f();switch(g){case"*":l=l*v;break;case"/":l=l/v;break;case"%":l=l%v;break}}return l}function f(){return o()&&o().value==="!"?(i("OP"),!f()):o()&&o().value==="-"?(i("OP"),-f()):u()}function u(){const l=o();if(l){if(l.type==="NUMBER")return i("NUMBER"),Number(l.value);if(l.type==="STRING")return i("STRING"),l.value.slice(1,-1);if(l.type==="IDENT")return i("IDENT"),l.value==="true"?!0:l.value==="false"?!1:l.value==="null"?null:void 0;if(l.value==="["){i("PUNC");const g=[];for(;o()&&o().value!=="]";)g.push(s()),o()&&o().value===","&&i("PUNC");return i("PUNC"),g}if(l.value==="("){i("PUNC");const g=s();return i("PUNC"),g}throw new Error("Unexpected token in expression")}}return s()}static tokenize(t){const n=[],r=/\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,\[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"[^"]*"|'[^']*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;let o;for(;(o=r.exec(t))!==null;){const i=o[1];i&&(/^\d/.test(i)?n.push({type:"NUMBER",value:i}):/^"/.test(i)||/^'/.test(i)?n.push({type:"STRING",value:i}):/^[a-zA-Z_]/.test(i)?n.push({type:"IDENT",value:i}):/^[()?:,\[\]]$/.test(i)?n.push({type:"PUNC",value:i}):n.push({type:"OP",value:i}))}return n}static evaluateSimpleValue(t,n){if(t==="true")return!0;if(t==="false")return!1;if(!isNaN(Number(t)))return Number(t);if(t.startsWith("ctx.")){const r=t.slice(4);return J(n,r)}return t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'")?t.slice(1,-1):t}static clearCache(){this.cache.clear()}static getCacheSize(){return this.cache.size}}class ce{static cleanupFunctions=new WeakMap;static addListener(t,n,r,o){t.addEventListener(n,r,o);const s={event:n,handler:r,wrapper:r,options:o,cleanup:()=>t.removeEventListener(n,r,o),addedAt:Date.now()};this.cleanupFunctions.has(t)||this.cleanupFunctions.set(t,[]);const c=this.cleanupFunctions.get(t);c.push(s),c.__metaList=c}static removeListener(t,n,r,o){t.removeEventListener(n,r,o);const i=this.cleanupFunctions.get(t);if(i)for(let s=0;s<i.length;s++){const c=i[s];if(c.event===n&&c.handler===r){i.splice(s,1),i.length===0&&this.cleanupFunctions.delete(t);return}}}static cleanup(t){const n=this.cleanupFunctions.get(t);n&&(n.forEach(r=>{try{r.cleanup()}catch{}}),this.cleanupFunctions.delete(t))}static cleanupAll(){this.cleanupFunctions=new WeakMap}static hasListeners(t){const n=this.cleanupFunctions.get(t);return!!(n&&n.length>0)}static getListenerCount(t){const n=this.cleanupFunctions.get(t);return n?n.length:0}static getListenerInfo(t){const n=this.cleanupFunctions.get(t);return n?n.map(r=>({event:r.event,handler:r.handler,wrapper:r.wrapper,options:r.options})):[]}}function ze(e,t){return Array.isArray(e)&&Array.isArray(t)?JSON.stringify([...e].sort())!==JSON.stringify([...t].sort()):e!==t}function Tt(e,t,n,r,o){if(e)if(o&&typeof t.value=="object"&&t.value!==null){const i={...t.value};i[o]=n,t.value=i}else t.value=n;else{const i=r._state||r;Xe(i,t,n)}}function Ue(e,t,n,r){if(e._requestRender&&e._requestRender(),e._triggerWatchers){const o=t?"reactiveState":n;e._triggerWatchers(o,r)}}function En(e,t,n){const r=`update:${oe(t)}`,o=`update:${t}`,i=new CustomEvent(r,{detail:n,bubbles:!0,composed:!0}),s=new CustomEvent(o,{detail:n,bubbles:!0,composed:!0});e.dispatchEvent(i),e.dispatchEvent(s)}function Lt(e,t,n,r){const o=n;P(()=>{e[t]=o}),P(()=>{const i=oe(t);typeof o=="boolean"?o?e.setAttribute(i,"true"):e.setAttribute(i,"false"):o!=null&&(typeof o=="string"||typeof o=="number")?e.setAttribute(i,String(o)):e.removeAttribute?.(i)}),P(()=>{e._applyProps?.(e._cfg)}),P(()=>{e._requestRender?.()})}function Cn(e,t,n,r){if(e){const i=t.value;return r&&typeof i=="object"&&i!==null?i[r]:i}const o=n._state||n;return J(o,t)}function ke(e){return e?e.split(/\s+/).filter(Boolean):[]}function $e(e,t){if(t.length===0)return;const n=t.filter(r=>r&&!e.classList.contains(r));n.length>0&&e.classList.add(...n)}function xe(e,t){if(t.length===0)return;const n=t.filter(Boolean);n.length>0&&e.classList.remove(...n)}let Qe=!1;async function _n(e,t,n=10){if(!Qe){if(!e.isConnected){re("⚠️ Element not connected to DOM, skipping style wait");return}for(let r=0;r<n;r++){const o=window.getComputedStyle(e),i=o.transform&&o.transform!=="",s=o.opacity&&o.opacity!=="";if(i||s){Qe=!0;return}await new Promise(c=>requestAnimationFrame(()=>c(void 0)))}Qe=!0,re("⚠️ Styles did not load in time for transition, continuing anyway")}}function Sn(e){const t=window.getComputedStyle(e),n=t.transitionDuration||"0s",r=t.transitionDelay||"0s",o=i=>{const s=parseFloat(i);return i.includes("ms")?s:s*1e3};return o(n)+o(r)}function Kt(e,t){return new Promise(n=>{const r=t??Sn(e);if(r<=0){n();return}let o=!1;const i=()=>{o||(o=!0,e.removeEventListener("transitionend",s),e.removeEventListener("transitioncancel",s),n())},s=()=>i();e.addEventListener("transitionend",s),e.addEventListener("transitioncancel",s),setTimeout(i,r+50)})}async function Le(e,t){const{classes:n,hooks:r,css:o,duration:i}=t;if(r?.onBeforeEnter)try{r.onBeforeEnter(e)}catch(f){H("Transition onBeforeEnter error:",f)}if(!o)return r?.onEnter?new Promise(f=>{r.onEnter(e,()=>{if(r?.onAfterEnter)try{r.onAfterEnter(e)}catch(u){H("Transition onAfterEnter error:",u)}f()})}):void 0;const s=ke(n?.enterFrom),c=ke(n?.enterActive),a=ke(n?.enterTo);$e(e,s),e.offsetHeight,$e(e,c),e.offsetHeight;let d;if(r?.onEnter){const f=new Promise(u=>{d=u});try{r.onEnter(e,()=>{d&&d()})}catch(u){H("Transition onEnter error:",u)}d&&await f}await new Promise(f=>requestAnimationFrame(()=>f(void 0))),e.offsetHeight;const m=window.getComputedStyle(e),y=m.transform,p=m.opacity;xe(e,s),y&&y!=="none"&&(e.style.transform=y),p&&p!==""&&(e.style.opacity=p),e.offsetHeight,await new Promise(f=>requestAnimationFrame(()=>f(void 0))),e.style.transform="",e.style.opacity="",$e(e,a),e.offsetHeight,await new Promise(f=>requestAnimationFrame(()=>f(void 0)));let k;if(typeof i=="number"?k=i:i&&typeof i=="object"&&"enter"in i&&(k=i.enter),await Kt(e,k),xe(e,c),r?.onAfterEnter)try{r.onAfterEnter(e)}catch(f){H("Transition onAfterEnter error:",f)}}async function et(e,t){const{classes:n,hooks:r,css:o,duration:i}=t;if(r?.onBeforeLeave)try{r.onBeforeLeave(e)}catch(y){H("Transition onBeforeLeave error:",y)}if(!o)return r?.onLeave?new Promise(y=>{r.onLeave(e,()=>{if(r?.onAfterLeave)try{r.onAfterLeave(e)}catch(p){H("Transition onAfterLeave error:",p)}y()})}):void 0;const s=ke(n?.leaveFrom),c=ke(n?.leaveActive),a=ke(n?.leaveTo);$e(e,s),e.offsetHeight,$e(e,c);let d;if(r?.onLeave){const y=new Promise(p=>{d=p});try{r.onLeave(e,()=>{d&&d()})}catch(p){H("Transition onLeave error:",p)}d&&await y}await new Promise(y=>requestAnimationFrame(()=>y(void 0))),await _n(e,[...s,...c]),xe(e,s),$e(e,a);let m;if(typeof i=="number"?m=i:i&&typeof i=="object"&&"leave"in i&&(m=i.leave),await Kt(e,m),xe(e,c),xe(e,a),xe(e,s),r?.onAfterLeave)try{r.onAfterLeave(e)}catch(y){H("Transition onAfterLeave error:",y)}}const qt=new WeakMap,Vt=new WeakMap;function Ke(e){if(!e)return;const t=qt.get(e);if(t!==void 0)return t;try{const n=e;if(n&&n.key!=null)return n.key}catch{}if(e instanceof Element){const n=e.getAttribute("data-anchor-key");if(n)return n}}function Q(e,t){try{qt.set(e,t)}catch{}try{e.key=t}catch{}try{e instanceof Element&&e.setAttribute("data-anchor-key",String(t))}catch{}}function An(e){if(!e)return;const t=Vt.get(e);if(t!==void 0)return t;try{const n=e;if(n&&n._transitionGroup!=null)return n._transitionGroup}catch{}}function Tn(e,t){try{Vt.set(e,t)}catch{}try{e._transitionGroup=t}catch{}}function ne(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement}function Ee(e){return e===""?!0:typeof e=="string"?e==="false"?!1:e==="true"?!0:e!=="":e&&typeof e=="object"?R(e)||"value"in e?!!e.value:!1:!!e}function be(e,t){if(!t||!(e instanceof HTMLElement))return;ce.cleanup(e);for(const r in t)t[r]===e&&delete t[r];const n=e.childNodes;for(let r=0;r<n.length;r++)be(n[r],t)}function je(e,t,n){if(typeof e=="string")return;const r=e.props?.reactiveRef??(e.props?.props&&e.props.props.reactiveRef),o=e.props?.ref??(e.props?.props&&e.props.props.ref);r?r.value=t:o&&n&&(n[o]=t)}function Ln(e,t,n,r,o,i,s,c){if(!i)return;const a=t.includes("lazy"),d=t.includes("trim"),m=t.includes("number"),y=e&&typeof e=="object"&&"value"in e&&typeof e.value<"u",p=()=>{if(y){const x=e.value;return c&&s&&(s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement)&&typeof x=="object"&&x!==null?x[c]:x}return J(i._state||i,e)},k=p();let f="text";s instanceof HTMLInputElement?f=r?.type||s.type||"text":s instanceof HTMLSelectElement?f="select":s instanceof HTMLTextAreaElement&&(f="textarea");const u=s instanceof HTMLInputElement||s instanceof HTMLTextAreaElement||s instanceof HTMLSelectElement,l=u?f==="checkbox"||f==="radio"?"checked":"value":c??"modelValue";if(f==="checkbox")if(Array.isArray(k))n[l]=k.includes(String(s?.getAttribute("value")??r?.value??""));else{const x=s?.getAttribute("true-value")??!0;n[l]=k===x}else if(f==="radio")n[l]=k===(r?.value??"");else if(f==="select")if(s&&s.hasAttribute("multiple")&&s instanceof HTMLSelectElement){const x=Array.isArray(k)?k.map(String):[];setTimeout(()=>{Array.from(s.options).forEach(S=>{S.selected=x.includes(S.value)})},0),n[l]=Array.isArray(k)?k:[]}else n[l]=k;else{!u&&y?n[l]=e:n[l]=k;try{const x=oe(l);r&&(r[x]=k)}catch{}}const g=a||f==="checkbox"||f==="radio"||f==="select"?"change":"input",v=x=>{if(x.isComposing||o._isComposing)return;const S=typeof globalThis.process<"u"&&globalThis.process.env?.NODE_ENV==="test"||typeof window<"u"&&window.__vitest__;if(x.isTrusted===!1&&!S)return;const E=x.target;if(!E||E._modelUpdating)return;let C=E.value;if(f==="checkbox"){const $=p();if(Array.isArray($)){const b=E.getAttribute("value")??"",_=Array.from($);if(E.checked)_.includes(b)||_.push(b);else{const j=_.indexOf(b);j>-1&&_.splice(j,1)}C=_}else{const b=E.getAttribute("true-value")??!0,_=E.getAttribute("false-value")??!1;C=E.checked?b:_}}else if(f==="radio")C=E.getAttribute("value")??E.value;else if(f==="select"&&E.multiple)C=Array.from(E.selectedOptions).map($=>$.value);else if(d&&typeof C=="string"&&(C=C.trim()),m){const $=Number(C);isNaN($)||(C=$)}const w=p();if(ze(C,w)){E._modelUpdating=!0;try{Tt(y,e,C,i,c),Ue(i,y,e,C),E&&En(E,l,C)}finally{setTimeout(()=>E._modelUpdating=!1,0)}}};if(u){if(o[g]){const x=o[g];s&&ce.removeListener(s,g,x)}o[g]=v}else{const x=`update:${oe(l)}`,S=`update:${l}`;if(o[x]){const E=o[x];s&&ce.removeListener(s,x,E)}if(o[S]){const E=o[S];s&&ce.removeListener(s,S,E)}if(o[x]=E=>{const C=E.detail!==void 0?E.detail:E.target?.value,w=Cn(y,e,i,c);if(ze(C,w)){Tt(y,e,C,i,c),Ue(i,y,e,C);const $=E.target;$&&Lt($,l,y?e:C,y)}},y&&typeof e.value=="object"&&e.value!==null){let E=[];try{E=Reflect.ownKeys(e.value)}catch{E=Object.keys(e.value)}const C=E.filter(w=>typeof w=="string"&&!String(w).startsWith("_")&&w!=="constructor");for(const w of C){const T=`update:${oe(w)}`,$=`update:${w}`;o[T]||(o[T]=b=>{const _=b.detail!==void 0?b.detail:b.target?.value,j=y?e.value[w]:J(i._state||i,e);if(!ze(_,j))return;if(y){const M={...e.value};M[w]=_,e.value=M}else Xe(i._state||i,e,_);Ue(i,y,e,_);const A=b.currentTarget||s||b.target;A&&Lt(A,l,y?e:_,y)},o[$]=o[T])}}o[S]=o[x]}(f==="text"||f==="textarea")&&(o.compositionstart=(()=>o._isComposing=!0),o.compositionend=x=>{o._isComposing=!1;const S=x.target;S&&setTimeout(()=>{const E=S.value,C=i._state||i,w=J(C,e);let T=E;if(d&&(T=T.trim()),m){const b=Number(T);isNaN(b)||(T=b)}if(ze(T,w)){S._modelUpdating=!0;try{Xe(C,e,T),Ue(i,y,e,T)}finally{setTimeout(()=>S._modelUpdating=!1,0)}}},0)})}function Gt(e){const t=e.slice(2);return t?t.charAt(0).toLowerCase()+t.slice(1):""}function On(e,t,n,r,o){if(typeof e=="object"&&e!==null)for(const[i,s]of Object.entries(e))if(i.startsWith("data-")||i.startsWith("aria-")||i==="class")n[i]=s;else if(i==="disabled"&&o&&ne(o)){const c=s&&typeof s=="object"&&"value"in s;(()=>{try{return R(s)}catch{return!1}})()||c?t[i]=s:n[i]=s}else t[i]=s;else if(typeof e=="string"){if(!r)return;try{const i=De(e,r);if(typeof i=="object"&&i!==null){for(const[s,c]of Object.entries(i))if(s.startsWith("data-")||s.startsWith("aria-")||s==="class")n[s]=c;else if(s==="disabled"&&o&&ne(o)){const a=c&&typeof c=="object"&&"value"in c;(()=>{try{return R(c)}catch{return!1}})()||a?t[s]=c:n[s]=c}else t[s]=c;return}else{n[e]=i;return}}catch{const i=J(r,e);n[e]=i}}}function jn(e,t,n){let r;if(typeof e=="string"){if(!n)return;r=De(e,n)}else r=e;const o=t.style||"";let i=o;if(r){if(o){const s=o.split(";").map(a=>a.trim()).filter(Boolean),c=s.findIndex(a=>a.startsWith("display:"));c>=0&&s[c]==="display: none"&&(s.splice(c,1),i=s.length>0?s.join("; ")+";":"")}}else if(o){const s=o.split(";").filter(Boolean),c=s.findIndex(a=>a.trim().startsWith("display:"));c>=0?s[c]="display: none":s.push("display: none"),i=s.join("; ")}else i="display: none";i!==o&&(i?t.style=i:delete t.style)}function De(e,t){return $n.evaluate(e,t)}function Pn(e,t,n){let r;if(typeof e=="string"){if(!n)return;r=De(e,n)}else r=e;let o=[];if(typeof r=="string")o=[r];else if(Array.isArray(r))o=r.filter(Boolean);else if(typeof r=="object"&&r!==null)for(const[c,a]of Object.entries(r))a&&o.push(c);const i=t.class||"",s=o.join(" ");t.class=i?`${i} ${s}`.trim():s}function pt(e){if(e===!0||e===!1)return!0;if(e==null)return!1;if(typeof e==="string")return e===""||e==="true"||e==="false";try{if(e&&typeof e=="object"&&"value"in e){const n=e.value,r=typeof n;return r==="boolean"?!0:r==="string"?n===""||n==="true"||n==="false":!1}}catch{}return!1}function Mn(e,t,n){let r;if(typeof e=="string"){if(!n)return;r=De(e,n)}else r=e;let o="";if(typeof r=="string")o=r;else if(r&&typeof r=="object"){const s=[];for(const[c,a]of Object.entries(r))if(a!=null&&a!==""){const d=c.replace(/[A-Z]/g,p=>`-${p.toLowerCase()}`),m=["width","height","top","right","bottom","left","margin","margin-top","margin-right","margin-bottom","margin-left","padding","padding-top","padding-right","padding-bottom","padding-left","font-size","line-height","border-width","border-radius","min-width","max-width","min-height","max-height"];let y=String(a);typeof a=="number"&&m.includes(d)&&(y=`${a}px`),s.push(`${d}: ${y}`)}o=s.join("; ")+(s.length>0?";":"")}const i=t.style||"";t.style=i+(i&&!i.endsWith(";")?"; ":"")+o}function Nn(e,t,n){let r=e;typeof e=="string"&&n&&(r=De(e,n)),R(r)?t.reactiveRef=r:t.ref=r}function Zt(e,t,n,r){const o={},i={...r||{}},s={};for(const[c,a]of Object.entries(e)){const{value:d,modifiers:m,arg:y}=a;if(c==="model"||c.startsWith("model:")){const p=c.split(":"),k=p.length>1?p[1]:y;Ln(d,m,o,i,s,t,n,k);continue}switch(c){case"bind":On(d,o,i,t,n);break;case"show":jn(d,i,t);break;case"class":Pn(d,i,t);break;case"style":Mn(d,i,t);break;case"ref":Nn(d,o,t);break}}try{if(Object.prototype.hasOwnProperty.call(o,"disabled")&&n&&ne(n)){const a=o.disabled,d=a&&typeof a=="object"&&"value"in a;let m=!1;try{m=R(a)}catch{m=!1}if(!d&&!m)try{i.disabled=a,delete o.disabled;const y=globalThis;y.__VDOM_DISABLED_PROMOTIONS||(y.__VDOM_DISABLED_PROMOTIONS=[]),y.__VDOM_DISABLED_PROMOTIONS.push({phase:"bind-directive:postfix-move",location:"attrs",key:"disabled",value:a,time:Date.now(),stack:new Error().stack})}catch{}}}catch{}return{props:o,attrs:i,listeners:s}}function ht(e,t){if(Array.isArray(e)){const i=new Set;return e.map(s=>{if(!s||typeof s!="object")return s;let c=s.props?.key??s.key;if(!c){const y=s.tag||"node",k=[s.props?.attrs?.id,s.props?.attrs?.name,s.props?.attrs?.["data-key"],s.props?.props?.id,s.props?.props?.name,s.props?.props?.dataKey,s.props?.props?.["data-key"]].find(f=>f!=null)??"";c=k?`${t}:${y}:${k}`:`${t}:${y}`}let a=c,d=1;for(;i.has(a);)a=`${c}#${d++}`;i.add(a);let m=s.children;return Array.isArray(m)&&(m=ht(m,a)),{...s,key:a,children:m}})}const n=e;let r=n.props?.key??n.key??t,o=n.children;return Array.isArray(o)&&(o=ht(o,r)),{...n,key:r,children:o}}function Ot(e,t,n,r){const o=n.directives??{},i=Zt(o,r,e,n.attrs),s={...t.props,...n.props,...i.props},c={...t.attrs,...n.attrs,...i.attrs},a=t.props??{},d=s,m=n?.isCustomElement??t?.isCustomElement??!1;let y=!1;for(const f in{...a,...d}){const u=a[f],h=d[f];let l=u,g=h;if(P(()=>{(R(u)||u&&typeof u=="object"&&"value"in u)&&(l=u.value)}),P(()=>{(R(h)||h&&typeof h=="object"&&"value"in h)&&(g=h.value)}),!(u===h&&l===g))if(y=!0,f==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)){const v=typeof h=="object"&&h!==null&&R(h)||h&&typeof h=="object"&&"value"in h?h.value:h;e.value!==v&&(e.value=v??"")}else if(f==="checked"&&e instanceof HTMLInputElement){const v=typeof h=="object"&&h!==null&&R(h)||h&&typeof h=="object"&&"value"in h?h.value:h;e.checked=!!v}else if(f.startsWith("on")&&typeof h=="function"){const v=Gt(f);typeof u=="function"&&ce.removeListener(e,v,u),ce.addListener(e,v,h);try{if(v&&v.startsWith("update:")){const x=v.split(":",2)[1],S=d[x];let E=[];try{if(R(S)){const w=S.value;E=w&&typeof w=="object"?Object.keys(w):[]}else S&&typeof S=="object"&&(E=Object.keys(S))}catch{E=[]}const C=E.filter(w=>typeof w=="string"&&!w.startsWith("_")&&w!=="constructor");for(const w of C){const T=`update:${w}`,$=b=>{const _=b.detail!==void 0?b.detail:b.target?.value,L={...R(S)?S.value||{}:d[x]||{},[w]:_};P(()=>{h({detail:L})})};P(()=>{ce.addListener(e,T,$)})}}}catch{}}else if(h==null)e.removeAttribute(f);else{const v=n?.isCustomElement??t?.isCustomElement??!1;if(v||f in e)try{e[f]=h,f==="disabled"&&h===!1&&!v&&ne(e)&&e.removeAttribute("disabled")}catch{}else h===!1&&e.removeAttribute(f)}}for(const[f,u]of Object.entries(i.listeners||{})){ce.addListener(e,f,u);try{const h=e&&e.parentElement;h&&h!==e&&ce.addListener(h,f,u)}catch{}}const p=t.attrs??{},k=c;for(const f in{...p,...k}){const u=p[f],h=k[f];let l=u,g=h;if(R(u)&&(l=u.value),R(h)&&(g=h.value),l!==g)if(y=!0,g==null||g===!1)P(()=>{e.removeAttribute(f)}),f==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?P(()=>{e.value=""}):e instanceof HTMLSelectElement?P(()=>{e.value=""}):e instanceof HTMLProgressElement&&P(()=>{e.value=0})),f==="checked"&&e instanceof HTMLInputElement&&P(()=>{e.checked=!1}),f==="disabled"&&ne(e)&&P(()=>{e.disabled=!1});else{if(f==="value"){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){P(()=>{e.value=g??""});continue}else if(e instanceof HTMLSelectElement){P(()=>{e.value=g??""});continue}else if(e instanceof HTMLProgressElement){P(()=>{e.value=Number(g)});continue}}if(f==="checked"&&e instanceof HTMLInputElement){P(()=>{e.checked=!!g});continue}if(f==="style"){e.setAttribute(f,String(g));continue}if(f==="disabled"&&ne(e)){P(()=>{e.disabled=Ee(g)}),Ee(g)?P(()=>{e.setAttribute(f,"")}):P(()=>{e.removeAttribute(f)});continue}const v=e.namespaceURI==="http://www.w3.org/2000/svg";if(m&&!v&&f.includes("-")){const x=wt(f);try{R(h)?e[x]=h:e[x]=g}catch{e.setAttribute(f,String(g))}}else if(!v&&f in e)try{R(h)?e[f]=h:e[f]=g}catch{e.setAttribute(f,String(g))}else e.setAttribute(f,String(g))}}try{if(ne(e)){const f=s.disabled;let u;try{const l=Object.prototype.hasOwnProperty.call(i.props||{},"disabled"),g=f&&typeof f=="object"&&"value"in f;let v=!1;P(()=>{v=!!R(f)});const x=pt(f);v||g||l||x?u=f:u=c.disabled}catch{u=c.disabled}const h=Ee(u);P(()=>{e.disabled=h}),P(h?()=>{e.setAttribute("disabled","")}:()=>{e.removeAttribute("disabled")})}}catch{}m&&y&&(P(()=>{e._applyProps?.(e._cfg)}),P(()=>{typeof e.requestRender=="function"?e.requestRender():typeof e._render=="function"&&e._render(e._cfg)}))}function ee(e,t,n){if(typeof e=="string")return document.createTextNode(e);if(e.tag==="#text"){const p=document.createTextNode(typeof e.children=="string"?e.children:"");return e.key!=null&&Q(p,e.key),p}if(e.tag==="#raw"){const p=typeof e.children=="string"?e.children:"";return document.createRange().createContextualFragment(p)}if(e.tag==="#anchor"){const p=e,k=Array.isArray(p.children)?p.children:[],f=document.createTextNode(""),u=document.createTextNode("");p.key!=null&&(Q(f,`${p.key}:start`),Q(u,`${p.key}:end`)),p._startNode=f,p._endNode=u;const h=document.createDocumentFragment();h.appendChild(f);for(const l of k){const g=ee(l,t);if(p.key!=null&&g instanceof Element&&!g.hasAttribute("data-anchor-key")){const v=l;v&&typeof v=="object"&&v.key!=null||Q(g,p.key)}h.appendChild(g)}return h.appendChild(u),h}const r=document.createElement(e.tag);e.key!=null&&Q(r,e.key),e.props&&e.props._transitionGroup&&Tn(r,e.props._transitionGroup);const{props:o={},attrs:i={},directives:s={}}=e.props??{},c=Zt(s,t,r,i),a={...o,...c.props},d={...i,...c.attrs};try{if(a.disabled!==void 0&&r&&ne(r)){const p=a.disabled,k=p&&typeof p=="object"&&"value"in p;let f=!1;try{f=R(p)}catch{f=!1}!k&&!f&&P(()=>{d.disabled=p,delete a.disabled;const u=globalThis;u.__VDOM_DISABLED_PROMOTIONS||(u.__VDOM_DISABLED_PROMOTIONS=[]),u.__VDOM_DISABLED_PROMOTIONS.push({phase:"createElement:move-prop-to-attr",location:"attrs",key:"disabled",value:p,time:Date.now(),stack:new Error().stack})})}}catch{}const m=r.namespaceURI==="http://www.w3.org/2000/svg";for(const p in d){const k=d[p];if(typeof p!="string"||/\[object Object\]/.test(p))continue;const f=typeof k=="object"&&k!==null&&R(k)||k&&typeof k=="object"&&"value"in k?k.value:k;if(typeof f=="boolean")f?r.setAttribute(p,""):P(()=>{r.removeAttribute(p)});else if(f!=null){if(p==="disabled"&&ne(r)){const u=a.disabled,h=pt(u)?u:f,l=Ee(h);P(()=>{r.disabled=l}),P(l?()=>{r.setAttribute(p,"")}:()=>{r.removeAttribute(p)});continue}if(!m&&p==="value"&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement||r instanceof HTMLProgressElement))try{r instanceof HTMLProgressElement?r.value=Number(f):r.value=f??""}catch{r.setAttribute(p,String(f))}else if(!m&&p==="checked"&&r instanceof HTMLInputElement)try{r.checked=!!f}catch{r.setAttribute(p,String(f))}else if(!m&&p in r)try{r[p]=f,p==="disabled"&&f===!1&&ne(r)&&r.removeAttribute("disabled")}catch{r.setAttribute(p,String(f))}else if((e.props?.isCustomElement??!1)&&!m&&p.includes("-")){const h=wt(p);try{r[h]=f}catch{r.setAttribute(p,String(f))}}else r.setAttribute(p,String(f))}}for(const p in a){const k=a[p];if(!(typeof p!="string"||/\[object Object\]/.test(p)))if(p==="value"&&(r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)){const f=typeof k=="object"&&k!==null&&typeof k.value<"u"?k.value:k;P(()=>{r.value=f??""})}else if(p.startsWith("on")&&typeof k=="function"){const f=Gt(p),u=f.includes(":")?(()=>{const h=f.split(":"),l=h[1];if(l.includes("-")){const g=l.split("-").map((v,x)=>x===0?v:v.charAt(0).toUpperCase()+v.slice(1)).join("");return`${h[0]}:${g}`}else{const g=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return`${h[0]}:${g}`}})():f;c.listeners&&(c.listeners[f]||c.listeners[u])||ce.addListener(r,f,k)}else{if(p.startsWith("on")&&k===void 0)continue;if(k==null||k===!1)r.removeAttribute(p);else if((e.props?.isCustomElement??!1)||p in r)try{const u=typeof k=="object"&&k!==null&&R(k)?k:typeof k=="object"&&k!==null&&typeof k.value<"u"?k.value:k;if(p==="disabled"&&ne(r)){const h=a.disabled!==void 0?a.disabled:u,l=Ee(h);P(()=>{r.disabled=l}),P(l?()=>{r.setAttribute(p,"")}:()=>{r.removeAttribute(p)});continue}try{if(typeof r[p]=="boolean"){let l=u;typeof u=="string"?u==="false"?l=!1:u==="true"?l=!0:l=!!u&&u!=="":l=!!u,r[p]=l}else r[p]=u}catch{r[p]=u}}catch{}}}for(const[p,k]of Object.entries(c.listeners||{}))ce.addListener(r,p,k);const y={...e,props:{...e.props,...c.props}};je(y,r,n);try{if(typeof r._applyProps=="function")try{r._applyProps(r._cfg)}catch{}typeof r.requestRender=="function"?r.requestRender():typeof r._render=="function"&&r._render(r._cfg)}catch{}if(Array.isArray(e.children))for(const p of e.children)r.appendChild(ee(p,t,n));else typeof e.children=="string"&&(r.textContent=e.children);try{if(r instanceof HTMLSelectElement&&d&&d.hasOwnProperty("value"))try{r.value=d.value??""}catch{}}catch{}try{if(ne(r)){const p=a.disabled,k=d.disabled,f=p&&typeof p=="object"&&"value"in p;let u=!1;try{u=!!R(p)}catch{u=!1}const l=u||f||pt(p)?p:k,g=Ee(l);P(()=>{r.disabled=g}),P(g?()=>{r.setAttribute("disabled","")}:()=>{r.removeAttribute("disabled")})}}catch{}return r}function Rn(e,t,n,r,o){if(typeof n=="string"){e.textContent!==n&&(e.textContent=n);return}if(!Array.isArray(n))return;const i=e.childNodes,s=[];for(let u=0;u<i.length;u++)s.push(i[u]);const c=Array.isArray(t)?t:[],a=An(e);if(a){const u=v=>typeof v=="string"&&v.startsWith("each-")?v.substring(5):v,h=[],l=[];for(const v of n)if(v&&v.tag==="#anchor"){const x=Array.isArray(v.children)?v.children:[];for(const S of x){const E=u(S.key||v.key||"unknown");h.push({...S,key:E})}}else v&&h.push({...v,key:u(v.key)});for(const v of c)if(v&&v.tag==="#anchor"){const x=Array.isArray(v.children)?v.children:[];for(const S of x){const E=u(S.key||v.key||"unknown");l.push({...S,key:E})}}else v&&l.push({...v,key:u(v.key)});if(h.some(v=>v&&v.key!=null)||l.some(v=>v&&v.key!=null)){const v=new Map,x=new Map;for(const $ of l)if($&&$.key!=null){const b=String($.key);v.set(b,$)}for(let $=0;$<s.length;$++){const b=s[$];let _=Ke(b);if(_=u(_),_!=null&&b instanceof Element&&b.nodeType===Node.ELEMENT_NODE){let j=typeof _=="string"&&_.includes(":")?_.substring(0,_.lastIndexOf(":")):_;j=String(j),x.set(j,b)}}const S=new Set,E=new Map,C=s.length>0;if(a.moveClass&&C)for(let $=0;$<s.length;$++){const b=s[$];if(b instanceof HTMLElement&&b.parentElement){const _=b.getBoundingClientRect();E.set(b,_)}}const w=[];for(const $ of h){let b=$.key;if(b==null)continue;b=String(b);const _=v.get(b);let j=x.get(b);if(j&&_){const L=Pe(j,_,$,r);S.add(j);const A=String(b);Q(L,A),w.push({node:L,key:b,newVNode:$,oldVNode:_,isNew:!1})}else{j=ee($,r),Q(j,b),e.appendChild(j);const L=C||a.appear===!0;j instanceof HTMLElement&&L&&Le(j,a).catch(A=>{H("Enter transition error:",A)}),w.push({node:j,key:b,newVNode:$,isNew:!0})}}const T=[];for(let $=0;$<s.length;$++){const b=s[$],_=Ke(b);if(!S.has(b)&&_!=null&&b instanceof HTMLElement){const L=et(b,a).then(()=>{e.contains(b)&&e.removeChild(b)}).catch(A=>{H("Leave transition error:",A),e.contains(b)&&e.removeChild(b)});T.push(L)}}if(T.length===0){let $=e.firstChild;for(const{node:b}of w)b!==$&&e.insertBefore(b,$),$=b.nextSibling;if(a.moveClass&&E.size>0){const b=[];for(const{node:_,isNew:j}of w)if(!j&&_ instanceof HTMLElement){const L=E.get(_);if(L){const A=_.getBoundingClientRect(),M=L.left-A.left,N=L.top-A.top;if(M!==0||N!==0){const de=a.moveClass.split(/\s+/).filter(G=>G);b.push({node:_,deltaX:M,deltaY:N,moveClasses:de})}}}if(b.length>0){for(const{node:_,deltaX:j,deltaY:L}of b)_.style.transform=`translate(${j}px, ${L}px)`,_.style.transitionProperty="none";e.offsetHeight,requestAnimationFrame(()=>{requestAnimationFrame(()=>{for(const{node:_,moveClasses:j}of b)for(const L of j)_.classList.add(L);requestAnimationFrame(()=>{const _=a.moveClass||"",j=_.match(/duration-(\d+)/),L=j?`${j[1]}ms`:"300ms",A=_.match(/ease-(out|in|in-out|linear)/),M=A?`ease-${A[1]}`:"ease-out";for(const{node:N}of b)N.style.transition=`transform ${L} ${M}`;requestAnimationFrame(()=>{for(const{node:N,moveClasses:de}of b){N.style.removeProperty("transform");const G=()=>{for(const U of de)N.classList.remove(U);N.style.removeProperty("transition"),N.removeEventListener("transitionend",G),N.removeEventListener("transitioncancel",G)};N.addEventListener("transitionend",G,{once:!0}),N.addEventListener("transitioncancel",G,{once:!0})}})})})})}}}return}}const d=new Map;for(const u of c)u&&u.key!=null&&d.set(u.key,u);const m=new Map;for(let u=0;u<s.length;u++){const h=s[u],l=Ke(h);l!=null&&m.set(l,h)}const y=new Set;let p=e.firstChild;function k(u,h){let l=u;for(;l&&(y.add(l),l!==h);)l=l.nextSibling}function f(u,h,l,g,v,x=!0){const S=[];let E=u.nextSibling;for(;E&&E!==h;)S.push(E),E=E.nextSibling;const C=Array.isArray(l)?l:[];if(g.some(T=>T&&T.key!=null)||C.some(T=>T&&T.key!=null)){const T=new Map,$=new Map;for(const L of C)L&&L.key!=null&&T.set(L.key,L);for(const L of S){const A=Ke(L);A!=null&&$.set(A,L)}const b=v&&v.state==="visible"&&C.length===0&&g.length>0,_=new Set;let j=u.nextSibling;for(const L of g){let A;if(L.key!=null&&$.has(L.key)){const M=T.get(L.key);A=Pe($.get(L.key),M,L,r),_.add(A),v&&A instanceof HTMLElement&&b&&v.appear&&Le(A,v).catch(N=>{H("Transition enter error (appear):",N)}),A!==j&&e.contains(A)&&e.insertBefore(A,j)}else A=ee(L,r),e.insertBefore(A,j),_.add(A),v&&A instanceof HTMLElement&&x&&Le(A,v).catch(M=>{H("Transition enter error:",M)});j=A.nextSibling}for(const L of S)!_.has(L)&&e.contains(L)&&(v&&L instanceof HTMLElement&&x?et(L,v).then(()=>{e.contains(L)&&e.removeChild(L)}).catch(A=>{H("Transition leave error:",A),e.contains(L)&&e.removeChild(L)}):e.removeChild(L))}else{const T=Math.min(C.length,g.length);for(let $=0;$<T;$++){const b=C[$],_=g[$],j=Pe(S[$],b,_,r);j!==S[$]&&(e.insertBefore(j,S[$]),e.removeChild(S[$]))}for(let $=T;$<g.length;$++){const b=ee(g[$],r);e.insertBefore(b,h),v&&b instanceof HTMLElement&&x&&Le(b,v).catch(_=>{H("Transition enter error:",_)})}for(let $=T;$<S.length;$++){const b=S[$];v&&b instanceof HTMLElement&&x?et(b,v).then(()=>{e.contains(b)&&e.removeChild(b)}).catch(_=>{H("Transition leave error:",_),e.contains(b)&&e.removeChild(b)}):e.removeChild(b)}}}for(const u of n){let h;if(u.tag==="#anchor"){const l=u.key,g=`${l}:start`,v=`${l}:end`;let x=m.get(g),S=m.get(v);const E=Array.isArray(u.children)?u.children:[];if(x||(x=document.createTextNode(""),Q(x,g)),S||(S=document.createTextNode(""),Q(S,v)),u._startNode=x,u._endNode=S,!e.contains(x)||!e.contains(S)){e.insertBefore(x,p);const C=u._transition,T=!(C&&C.state==="visible"&&E.length>0)||C.appear;for(const $ of E){const b=ee($,r);e.insertBefore(b,p),C&&b instanceof HTMLElement&&T&&Le(b,C).catch(_=>{H("Transition enter error:",_)})}e.insertBefore(S,p)}else{const C=u._transition,T=d.get(l)?._transition,$=T&&T.state!==C?.state,b=C&&C.state==="visible"&&E.length>0&&!$,_=$||!b||C?.appear===!0;f(x,S,d.get(l)?.children,E,C,_)}k(x,S),p=S.nextSibling;continue}if(u.key!=null&&m.has(u.key)){const l=d.get(u.key);h=Pe(m.get(u.key),l,u,r,o),y.add(h),h!==p&&e.contains(h)&&(p&&!e.contains(p)&&(p=null),e.insertBefore(h,p))}else h=ee(u,r,o),p&&!e.contains(p)&&(p=null),e.insertBefore(h,p),y.add(h);p=h.nextSibling}for(let u=0;u<s.length;u++){const h=s[u];!y.has(h)&&e.contains(h)&&(be(h,o),e.removeChild(h))}}function Pe(e,t,n,r,o){if(t&&typeof t!="string"&&t.props?.ref&&o&&be(e,o),t===n)return e;if(typeof n=="string"){if(e.nodeType===Node.TEXT_NODE)return e.textContent!==n&&(e.textContent=n),e;{const s=document.createTextNode(n);return e.parentNode?.replaceChild(s,e),s}}if(n&&typeof n!="string"&&n.tag==="#anchor"){const s=n,c=Array.isArray(s.children)?s.children:[],a=s._startNode??document.createTextNode(""),d=s._endNode??document.createTextNode("");s.key!=null&&(Q(a,`${s.key}:start`),Q(d,`${s.key}:end`)),s._startNode=a,s._endNode=d;const m=document.createDocumentFragment();m.appendChild(a);for(const y of c){const p=ee(y,r);m.appendChild(p)}return m.appendChild(d),e.parentNode?.replaceChild(m,e),a}if(!n){be(e,o);const s=document.createComment("removed");return e.parentNode?.replaceChild(s,e),s}if(!t||typeof t=="string"){be(e,o);const s=ee(n,r,o);return je(n,s,o),e.parentNode?.replaceChild(s,e),s}if(n.tag==="#anchor"){const s=Array.isArray(n.children)?n.children:[],c=n._startNode??document.createTextNode(""),a=n._endNode??document.createTextNode("");n.key!=null&&(Q(c,`${n.key}:start`),Q(a,`${n.key}:end`)),n._startNode=c,n._endNode=a;const d=document.createDocumentFragment();d.appendChild(c);for(const m of s)d.appendChild(ee(m,r));return d.appendChild(a),e.parentNode?.replaceChild(d,e),c}if(typeof t!="string"&&typeof n!="string"&&t.tag===n.tag&&t.key===n.key){const s=e;return Ot(s,t.props||{},n.props||{},r),Rn(s,t.children,n.children,r,o),je(n,s,o),s}if(typeof t!="string"&&typeof n!="string"&&t.tag===n.tag&&(t.tag&&String(t.tag).includes("-")||n.props&&n.props.isCustomElement||t.props&&t.props.isCustomElement))try{const c=e;return Ot(c,t.props||{},n.props||{},r),je(n,c,o),c}catch{}be(e,o);const i=ee(n,r,o);return je(n,i,o),e.parentNode?.replaceChild(i,e),i}function Dn(e,t,n,r){let o;Array.isArray(t)?t.length===1?(o=t[0],o&&typeof o=="object"&&o.key==null&&(o={...o,key:"__root__"})):o={tag:"div",key:"__root__",children:t}:(o=t,o&&typeof o=="object"&&o.key==null&&(o={...o,key:"__root__"})),o&&typeof o=="object"&&o.tag==="#anchor"&&(o={tag:"div",key:"__anchor_root__",props:{attrs:{"data-anchor-block-root":"",key:"__anchor_root__"}},children:[o]}),o=ht(o,String(o.key??"root"));const i=e._prevVNode??null,s=e._prevDom??e.firstChild??null;let c;i&&s?typeof i!="string"&&typeof o!="string"&&i.tag===o.tag&&i.key===o.key?c=Pe(s,i,o,n,r):(c=ee(o,n,r),e.replaceChild(c,s)):(c=ee(o,n,r),e.firstChild?e.replaceChild(c,e.firstChild):e.appendChild(c));const a=[];for(let d=0;d<e.childNodes.length;d++){const m=e.childNodes[d];m!==c&&m.nodeName!=="STYLE"&&(be(m,r),a.push(m))}a.forEach(d=>e.removeChild(d)),e._prevVNode=o,e._prevDom=c}function Ze(e){if(typeof e=="string")return We(e);if(e.tag==="#text")return typeof e.children=="string"?We(e.children):"";if(e.tag==="#anchor")return(Array.isArray(e.children)?e.children.filter(Boolean):[]).map(Ze).join("");if(e.tag==="#raw")return typeof e.children=="string"?e.children:"";let t="";e.props&&e.props.attrs&&(t=Object.entries(e.props.attrs).map(([r,o])=>` ${r}="${We(String(o))}"`).join(""));const n=Array.isArray(e.children)?e.children.filter(Boolean).map(Ze).join(""):typeof e.children=="string"?We(e.children):e.children?Ze(e.children):"";return`<${e.tag}${t}>${n}</${e.tag}>`}function Jt(e,...t){let n="";for(let r=0;r<e.length;r++)n+=e[r],r<t.length&&(n+=t[r]);return n}function Xt(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let qe=null;function jt(){return qe||(qe=new CSSStyleSheet,qe.replaceSync(Xt(In))),qe}function Hn(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const In=Jt`
|
|
5
5
|
:host,
|
|
6
6
|
*,
|
|
7
7
|
::before,
|
|
@@ -20,15 +20,17 @@
|
|
|
20
20
|
:host {
|
|
21
21
|
display: contents;
|
|
22
22
|
font: 16px/1.5 var(--font-sans, ui-sans-serif, system-ui, sans-serif);
|
|
23
|
+
/* Default CE line-height variable so leading-* can reliably override */
|
|
24
|
+
--ce-line-height: 1.5;
|
|
23
25
|
-webkit-text-size-adjust: 100%;
|
|
24
26
|
text-size-adjust: 100%;
|
|
25
27
|
/* Default gradient variables to avoid undefined var() usage in generated utilities */
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
28
|
+
--ce-gradient-from-position: 0%;
|
|
29
|
+
--ce-gradient-to-position: 100%;
|
|
30
|
+
--ce-gradient-via-position: 50%;
|
|
31
|
+
--ce-gradient-from: rgba(255,255,255,0);
|
|
32
|
+
--ce-gradient-to: rgba(255,255,255,0);
|
|
33
|
+
--ce-gradient-stops: var(--ce-gradient-from), var(--ce-gradient-to);
|
|
32
34
|
}
|
|
33
35
|
button,
|
|
34
36
|
input,
|
|
@@ -112,36 +114,36 @@
|
|
|
112
114
|
[hidden] {
|
|
113
115
|
display: none;
|
|
114
116
|
}
|
|
115
|
-
`,xn={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},Ht=Object.fromEntries(Object.entries(xn).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([r,n])=>[r,`var(--color-${e}${r==="DEFAULT"?"":`-${r}`}, ${n})`]))])),he="0.25rem",$n={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},Xe={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]},Cn=()=>{const e={};e["@container"]="container-type:inline-size;",["block","inline","inline-block","flex","inline-flex","grid","inline-grid","table","table-cell","table-row","hidden"].forEach(a=>{e[a]=a==="hidden"?"display:none;":`display:${a};`}),["absolute","relative","fixed","sticky","static"].forEach(a=>{e[a]=`position:${a};`}),Object.assign(e,{"items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-evenly":"align-content:space-evenly;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;","flex-col-reverse":"flex-direction:column-reverse;","flex-row-reverse":"flex-direction:row-reverse;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;"});for(let a=1;a<=12;a++)e[`grid-cols-${a}`]=`grid-template-columns:repeat(${a},minmax(0,1fr));`,e[`grid-rows-${a}`]=`grid-template-rows:repeat(${a},minmax(0,1fr));`,e[`col-span-${a}`]=`grid-column:span ${a} / span ${a};`,e[`row-span-${a}`]=`grid-row:span ${a} / span ${a};`,e[`col-start-${a}`]=`grid-column-start:${a};`,e[`col-end-${a}`]=`grid-column-end:${a};`,e[`row-start-${a}`]=`grid-row-start:${a};`,e[`row-end-${a}`]=`grid-row-end:${a};`;Object.assign(e,{"grid-cols-none":"grid-template-columns:none;","grid-rows-none":"grid-template-rows:none;","col-span-full":"grid-column:1 / -1;","row-span-full":"grid-row:1 / -1;","auto-cols-auto":"grid-auto-columns:auto;","auto-cols-min":"grid-auto-columns:min-content;","auto-cols-max":"grid-auto-columns:max-content;","auto-cols-fr":"grid-auto-columns:1fr;","auto-rows-auto":"grid-auto-rows:auto;","auto-rows-min":"grid-auto-rows:min-content;","auto-rows-max":"grid-auto-rows:max-content;","auto-rows-fr":"grid-auto-rows:1fr;","grid-flow-row":"grid-auto-flow:row;","grid-flow-col":"grid-auto-flow:column;","grid-flow-row-dense":"grid-auto-flow:row dense;","grid-flow-col-dense":"grid-auto-flow:column dense;"}),Object.assign(e,{"text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-justify":"text-align:justify;","font-thin":"font-weight:100;","font-extralight":"font-weight:200;","font-light":"font-weight:300;","font-normal":"font-weight:400;","font-medium":"font-weight:500;","font-semibold":"font-weight:600;","font-bold":"font-weight:700;","font-extrabold":"font-weight:800;","font-black":"font-weight:900;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","whitespace-normal":"white-space:normal;","whitespace-nowrap":"white-space:nowrap;","whitespace-pre":"white-space:pre;","whitespace-pre-line":"white-space:pre-line;","whitespace-pre-wrap":"white-space:pre-wrap;","break-normal":"overflow-wrap:normal;word-break:normal;","break-words":"overflow-wrap:break-word;","break-all":"word-break:break-all;"}),[["text-xs","0.75rem","1"],["text-sm","0.875rem","1.25"],["text-base","1rem","1.5"],["text-lg","1.125rem","1.75"],["text-xl","1.25rem","1.75"],["text-2xl","1.5rem","2"],["text-3xl","1.875rem","2.25"],["text-4xl","2.25rem","2.5"],["text-5xl","3rem","1"],["text-6xl","3.75rem","1"],["text-7xl","4.5rem","1"],["text-8xl","6rem","1"],["text-9xl","8rem","1"]].forEach(([a,d,b])=>{e[a]=`font-size:${d};line-height:${b};`}),[["tracking-tighter","-0.05em"],["tracking-tight","-0.025em"],["tracking-normal","0em"],["tracking-wide","0.025em"],["tracking-wider","0.05em"],["tracking-widest","0.1em"]].forEach(([a,d])=>{e[a]=`letter-spacing:${d};`}),[["leading-3","0.75rem"],["leading-4","1rem"],["leading-5","1.25rem"],["leading-6","1.5rem"],["leading-7","1.75rem"],["leading-8","2rem"],["leading-9","2.25rem"],["leading-10","2.5rem"],["leading-none","1"],["leading-tight","1.25"],["leading-snug","1.375"],["leading-normal","1.5"],["leading-relaxed","1.625"],["leading-loose","2"]].forEach(([a,d])=>{e[a]=`line-height:${d};`});const i=[0,1,2,4,6,8];for(const a of i){const d=`${a}px`;e[`border-${a}`]=`border-width:${d};`,e[`border-t-${a}`]=`border-top-width:${d};`,e[`border-r-${a}`]=`border-right-width:${d};`,e[`border-b-${a}`]=`border-bottom-width:${d};`,e[`border-l-${a}`]=`border-left-width:${d};`,e[`border-x-${a}`]=`border-left-width:${d};border-right-width:${d};`,e[`border-y-${a}`]=`border-top-width:${d};border-bottom-width:${d};`}Object.assign(e,{"font-sans":"font-family:var(--font-sans, ui-sans-serif,system-ui,sans-serif);","font-serif":"font-family:var(--font-serif, ui-serif,Georgia,serif);","font-mono":"font-family:var(--font-mono, ui-monospace,SFMono-Regular,monospace);",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-left-width:1px;border-right-width:1px;","border-y":"border-top-width:1px;border-bottom-width:1px;","border-solid":"border-style:solid;","border-dashed":"border-style:dashed;","border-dotted":"border-style:dotted;","border-double":"border-style:double;","border-none":"border-style:none;"});const s={none:0,xs:2,sm:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,"4xl":32,full:9999};for(const[a,d]of Object.entries(s)){const b=d===9999?"9999px":`${d/16}rem`;e[`rounded-${a}`]=`border-radius:${b};`,e[`rounded-t-${a}`]=`border-top-left-radius:${b};border-top-right-radius:${b};`,e[`rounded-r-${a}`]=`border-top-right-radius:${b};border-bottom-right-radius:${b};`,e[`rounded-b-${a}`]=`border-bottom-left-radius:${b};border-bottom-right-radius:${b};`,e[`rounded-l-${a}`]=`border-top-left-radius:${b};border-bottom-left-radius:${b};`,e[`rounded-tl-${a}`]=`border-top-left-radius:${b};`,e[`rounded-tr-${a}`]=`border-top-right-radius:${b};`,e[`rounded-br-${a}`]=`border-bottom-right-radius:${b};`,e[`rounded-bl-${a}`]=`border-bottom-left-radius:${b};`}Object.assign(e,{"shadow-none":"--ce-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--ce-shadow-color, #0000);","shadow-xs":"--ce-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",shadow:"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--ce-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--ce-shadow-color, rgb(0 0 0 / 0.25));","shadow-inner":"box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"}),Object.assign(e,{rounded:"border-radius:0.25rem;",shadow:"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));"}),Object.assign(e,{"overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","overflow-x-auto":"overflow-x:auto;","overflow-x-hidden":"overflow-x:hidden;","overflow-x-visible":"overflow-x:visible;","overflow-x-scroll":"overflow-x:scroll;","overflow-y-auto":"overflow-y:auto;","overflow-y-hidden":"overflow-y:hidden;","overflow-y-visible":"overflow-y:visible;","overflow-y-scroll":"overflow-y:scroll;"});const c=["auto","default","pointer","wait","text","move","help","not-allowed","grab","grabbing"];for(const a of c)e[`cursor-${a}`]=`cursor:${a};`;for(const a of[0,10,20,30,40,50])e[`z-${a}`]=`z-index:${a};`;Object.assign(e,{"sr-only":"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;",visible:"visibility:visible;",invisible:"visibility:hidden;"}),Object.assign(e,{"w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvh;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-full":"min-width:100%;","min-h-full":"min-height:100%;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;","w-auto":"width:auto;","h-auto":"height:auto;","w-fit":"width:fit-content;","h-fit":"height:fit-content;","w-min":"width:min-content;","h-min":"height:min-content;","w-max":"width:max-content;","h-max":"height:max-content;","m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;"});for(const[a,d]of Object.entries($n))e[`max-w-${a}`]=`max-width:calc(${he} * ${d});`,e[`min-w-${a}`]=`min-width:calc(${he} * ${d});`,e[`w-${a}`]=`width:calc(${he} * ${d});`,e[`max-h-${a}`]=`max-height:calc(${he} * ${d});`,e[`min-h-${a}`]=`min-height:calc(${he} * ${d});`,e[`h-${a}`]=`height:calc(${he} * ${d});`;Object.assign(e,{transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-none":"transition-property:none;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","ease-linear":"transition-timing-function:linear;","ease-in":"transition-timing-function:ease-in;","ease-out":"transition-timing-function:ease-out;","ease-in-out":"transition-timing-function:ease-in-out;","duration-75":"transition-duration:75ms;","duration-100":"transition-duration:100ms;","duration-150":"transition-duration:150ms;","duration-200":"transition-duration:200ms;","duration-300":"transition-duration:300ms;","duration-500":"transition-duration:500ms;","duration-700":"transition-duration:700ms;","duration-1000":"transition-duration:1000ms;"}),Object.assign(e,{"scale-0":"transform:scale(0);","scale-50":"transform:scale(0.5);","scale-75":"transform:scale(0.75);","scale-90":"transform:scale(0.9);","scale-95":"transform:scale(0.95);","scale-100":"transform:scale(1);","scale-105":"transform:scale(1.05);","scale-110":"transform:scale(1.1);","scale-125":"transform:scale(1.25);","scale-150":"transform:scale(1.5);","rotate-0":"transform:rotate(0deg);","rotate-1":"transform:rotate(1deg);","rotate-2":"transform:rotate(2deg);","rotate-3":"transform:rotate(3deg);","rotate-6":"transform:rotate(6deg);","rotate-12":"transform:rotate(12deg);","rotate-45":"transform:rotate(45deg);","rotate-90":"transform:rotate(90deg);","rotate-180":"transform:rotate(180deg);","-rotate-1":"transform:rotate(-1deg);","-rotate-2":"transform:rotate(-2deg);","-rotate-3":"transform:rotate(-3deg);","-rotate-6":"transform:rotate(-6deg);","-rotate-12":"transform:rotate(-12deg);","-rotate-45":"transform:rotate(-45deg);","-rotate-90":"transform:rotate(-90deg);","-rotate-180":"transform:rotate(-180deg);"}),Object.assign(e,{"aspect-auto":"aspect-ratio:auto;","aspect-square":"aspect-ratio:1 / 1;","aspect-video":"aspect-ratio:16 / 9;"}),Object.assign(e,{"object-contain":"object-fit:contain;","object-cover":"object-fit:cover;","object-fill":"object-fit:fill;","object-none":"object-fit:none;","object-scale-down":"object-fit:scale-down;","object-bottom":"object-position:bottom;","object-center":"object-position:center;","object-left":"object-position:left;","object-left-bottom":"object-position:left bottom;","object-left-top":"object-position:left top;","object-right":"object-position:right;","object-right-bottom":"object-position:right bottom;","object-right-top":"object-position:right top;","object-top":"object-position:top;"});for(let a=1;a<=6;a++)e[`line-clamp-${a}`]=`display:-webkit-box;-webkit-line-clamp:${a};-webkit-box-orient:vertical;overflow:hidden;`;e["line-clamp-none"]="overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";for(let a=1;a<=12;a++)e[`order-${a}`]=`order:${a};`;e["order-first"]="order:-9999;",e["order-last"]="order:9999;",e["order-none"]="order:0;";for(let a=0;a<=12;a++)a<=1||(e[`grow-${a}`]=`flex-grow:${a};`,e[`shrink-${a}`]=`flex-shrink:${a};`);return Object.assign(e,{"bg-linear-to-t":"background-image:linear-gradient(to top, var(--tw-gradient-stops));","bg-linear-to-tr":"background-image:linear-gradient(to top right, var(--tw-gradient-stops));","bg-linear-to-r":"background-image:linear-gradient(to right, var(--tw-gradient-stops));","bg-linear-to-br":"background-image:linear-gradient(to bottom right, var(--tw-gradient-stops));","bg-linear-to-b":"background-image:linear-gradient(to bottom, var(--tw-gradient-stops));","bg-linear-to-bl":"background-image:linear-gradient(to bottom left, var(--tw-gradient-stops));","bg-linear-to-l":"background-image:linear-gradient(to left, var(--tw-gradient-stops));","bg-linear-to-tl":"background-image:linear-gradient(to top left, var(--tw-gradient-stops));","bg-radial":"background-image:radial-gradient(ellipse at center, var(--tw-gradient-stops));","bg-radial-at-t":"background-image:radial-gradient(ellipse at top, var(--tw-gradient-stops));","bg-radial-at-tr":"background-image:radial-gradient(ellipse at top right, var(--tw-gradient-stops));","bg-radial-at-r":"background-image:radial-gradient(ellipse at right, var(--tw-gradient-stops));","bg-radial-at-br":"background-image:radial-gradient(ellipse at bottom right, var(--tw-gradient-stops));","bg-radial-at-b":"background-image:radial-gradient(ellipse at bottom, var(--tw-gradient-stops));","bg-radial-at-bl":"background-image:radial-gradient(ellipse at bottom left, var(--tw-gradient-stops));","bg-radial-at-l":"background-image:radial-gradient(ellipse at left, var(--tw-gradient-stops));","bg-radial-at-tl":"background-image:radial-gradient(ellipse at top left, var(--tw-gradient-stops));","bg-radial-circle":"background-image:radial-gradient(circle at center, var(--tw-gradient-stops));","bg-radial-circle-at-t":"background-image:radial-gradient(circle at top, var(--tw-gradient-stops));","bg-radial-circle-at-tr":"background-image:radial-gradient(circle at top right, var(--tw-gradient-stops));","bg-radial-circle-at-r":"background-image:radial-gradient(circle at right, var(--tw-gradient-stops));","bg-radial-circle-at-br":"background-image:radial-gradient(circle at bottom right, var(--tw-gradient-stops));","bg-radial-circle-at-b":"background-image:radial-gradient(circle at bottom, var(--tw-gradient-stops));","bg-radial-circle-at-bl":"background-image:radial-gradient(circle at bottom left, var(--tw-gradient-stops));","bg-radial-circle-at-l":"background-image:radial-gradient(circle at left, var(--tw-gradient-stops));","bg-radial-circle-at-tl":"background-image:radial-gradient(circle at top left, var(--tw-gradient-stops));","bg-conic":"background-image:conic-gradient(from 0deg at center, var(--tw-gradient-stops));","bg-conic-at-t":"background-image:conic-gradient(from 0deg at top, var(--tw-gradient-stops));","bg-conic-at-tr":"background-image:conic-gradient(from 0deg at top right, var(--tw-gradient-stops));","bg-conic-at-r":"background-image:conic-gradient(from 0deg at right, var(--tw-gradient-stops));","bg-conic-at-br":"background-image:conic-gradient(from 0deg at bottom right, var(--tw-gradient-stops));","bg-conic-at-b":"background-image:conic-gradient(from 0deg at bottom, var(--tw-gradient-stops));","bg-conic-at-bl":"background-image:conic-gradient(from 0deg at bottom left, var(--tw-gradient-stops));","bg-conic-at-l":"background-image:conic-gradient(from 0deg at left, var(--tw-gradient-stops));","bg-conic-at-tl":"background-image:conic-gradient(from 0deg at top left, var(--tw-gradient-stops));"}),e},Ye=Cn();function X(e,t){let r=0;for(let n=0;n<e.length;n++){const o=e[n];if(o==="["||o==="(")r++;else if((o==="]"||o===")")&&r>0)r--;else if(r===0&&(o===">"||o==="+"||o==="~"||o===" "))return e.slice(0,n)+t+e.slice(n)}return e+t}const En={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${X(e,":hover")}{${t}}`,focus:(e,t)=>`${X(e,":focus")}{${t}}`,active:(e,t)=>`${X(e,":active")}{${t}}`,disabled:(e,t)=>`${X(e,":disabled")}{${t}}`,visited:(e,t)=>`${X(e,":visited")}{${t}}`,checked:(e,t)=>`${X(e,":checked")}{${t}}`,first:(e,t)=>`${X(e,":first-child")}{${t}}`,last:(e,t)=>`${X(e,":last-child")}{${t}}`,odd:(e,t)=>`${X(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${X(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${X(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${X(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`},et={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},Ct={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},tt=["sm","md","lg","xl","2xl"],nt=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function rt(e){const t=e.startsWith("-"),r=t?e.slice(1):e,n=r.lastIndexOf("-");if(n===-1)return null;const o=r.slice(0,n),i=r.slice(n+1);if(!Xe[o])return null;if(i.includes("/")){const[a,d]=i.split("/").map(y=>parseFloat(y));if(Number.isNaN(a)||Number.isNaN(d)||d===0)return null;const b=a/d*100;return Xe[o].map(y=>`${y}:${b}%;`).join("")}const s=parseFloat(i);if(Number.isNaN(s))return null;const c=t?"-":"";return Xe[o].map(a=>`${a}:calc(${c}${he} * ${s});`).join("")}function Et(e){const t=e.replace("#",""),r=parseInt(t,16);return`${r>>16&255} ${r>>8&255} ${r&255}`}const _n=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Sn={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function An(e){const t=_n.exec(e);if(!t)return null;const[,r,n,o="DEFAULT"]=t,i=Ht[n]?.[o];if(!i)return null;if(r==="shadow")return`--ce-shadow-color:${i};`;const s=Sn[r];return s?`${s}:${i};`:null}function Tn(e){const t=e.indexOf("/");if(t===-1)return{base:e};const r=e.slice(0,t),n=e.slice(t+1),o=parseInt(n,10);return isNaN(o)||o<0||o>100?{base:r}:{base:r,opacity:o/100}}function ot(e){const{base:t,opacity:r}=Tn(e),n=An(t);if(n&&r!==void 0){const i=/#([0-9a-f]{6})/i.exec(n);if(i){const s=Et(i[0]);return n.replace(/#([0-9a-f]{6})/i,`rgb(${s} / ${r})`)}}if(n)return n;const o=qe(t);if(o&&r!==void 0){const i=/#([0-9a-f]{6})/i.exec(o);if(i){const s=Et(i[0]);return o.replace(/#([0-9a-f]{6})/i,`rgb(${s} / ${r})`)}}return o}function it(e){const t=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,r,n,o="DEFAULT"]=t,i=Ht[n]?.[o];if(!i)return null;switch(r){case"from":return`--tw-gradient-from:${i} var(--tw-gradient-from-position);--tw-gradient-to:rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);`;case"to":return`--tw-gradient-to:${i} var(--tw-gradient-to-position);`;case"via":return`--tw-gradient-to:rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), ${i} var(--tw-gradient-via-position), var(--tw-gradient-to);`;default:return null}}function st(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const r=parseInt(t[1],10);return r<0||r>100?null:`opacity:${r/100};`}function qe(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const s=e.slice(1,-1).trim(),c=s.indexOf(":");if(c===-1)return null;const a=s.slice(0,c).trim();let d=s.slice(c+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(a)?(d=d.replace(/_/g," "),d=d.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),d=d.replace(/^'([^']*)'$/g,'"$1"'),`${a}:${d};`):null}const t=e.indexOf("-[");if(t<=0||!e.endsWith("]"))return null;const r=e.slice(0,t);let n=e.slice(t+2,-1).replace(/_/g," ");const o={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(r==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(n)?`font-size:${n};`:`color:${n};`;if(r==="rotate")return`transform:rotate(${n});`;if(r==="scale")return`transform:scale(${n});`;if(r==="translate-x")return`transform:translateX(${n});`;if(r==="translate-y")return`transform:translateY(${n});`;const i=o[r]??r.replace(/_/g,"-");return i&&n?`${i}:${n};`:null}function On(e){if(e.startsWith("[")&&e.endsWith("]")){const r=e.slice(1,-1);return r.includes("&")?r:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const r=e.slice(t+2,-1).replace(/_/g,"-");return r.includes("&")?r:e.replace(/_/g,"-")}return null}function _t(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function jn(e){const t=/class\s*=\s*(['"])([\s\S]*?)\1/g,r=[];let n;for(;n=t.exec(e);){const o=n[2].split(/\s+/).filter(Boolean);o.length&&r.push(...o)}return r}const Ae=new Map,Ln=16,St=1e3;function Bt(e){const t=Date.now(),r=Ae.get(e);if(r&&t-r.timestamp<Ln)return r.css;const n=jn(e);if(!n.length)return"";const o=new Set(n),i=[[],[],[],[]],s={},c=(f,g=!1)=>{const l=g?`dark|${f}`:f;if(l in s)return s[l];const m=y(f,g);return s[l]=m,m},a=f=>{const g=f.some(k=>tt.includes(k)),l=f.some(k=>k.startsWith("@")&&(nt.includes(k.slice(1))||k.match(/^@\[.+\]$/))),m=f.includes("dark");return f.length?!g&&!m&&!l?1:m&&(g||l)?3:2:0},d=f=>{const g=[];let l="",m=0;for(let k=0;k<f.length;k++){const w=f[k];w==="["||w==="("?m++:(w==="]"||w===")")&&m--,w===":"&&m===0?(g.push(l),l=""):l+=w}return l&&g.push(l),g},b={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},y=(f,g=!1)=>{const l=d(f);let m="",k=!1;for(const O of l){let D=O;if(D.startsWith("!")&&(k=!0,D=D.slice(1)),Ye[D]||rt(D)||st(D)||ot(D)||it(D)||qe(D)){m=O;break}}if(!m)return null;const w=m.replace(/^!/,""),_=Ye[w]??rt(w)??st(w)??ot(w)??it(w)??qe(w);if(!_)return null;const C=l.indexOf(m);let h=C>=0?l.slice(0,C):[];g&&(h=h.filter(O=>O!=="dark"));const T=`.${_t(f)}`,E=k?_.replace(/;/g," !important;"):_,v="__SUBJECT__";let $=v;const A=[];for(const O of h)O.startsWith("group-")?($=`.group:${O.slice(6)} ${$}`,A.push(O)):O.startsWith("peer-")&&($=$.replace(v,`.peer:${O.slice(5)}~${v}`),A.push(O));h=h.filter(O=>!A.includes(O));const P=[],S=[];let j=null;for(const O of h){if(O==="dark"||tt.includes(O)||O.startsWith("@")&&(nt.includes(O.slice(1))||O.match(/^@\[.+\]$/)))continue;const D=On(O);if(D){j=D;continue}const I=b[O];if(I){j?S.push(I):P.push(I);continue}const q=En[O];typeof q=="function"&&($=q($,E).split("{")[0])}const F=P.join(""),te=S.join("");function Ne(O,D){if(!D)return O;let I=0,q=0;if(O.length&&(O[0]===">"||O[0]==="+"||O[0]==="~"||O[0]===" ")){let W=1;for(;W<O.length&&O[W]===" ";)W++;for(;W<O.length;W++){const G=O[W];if(G==="["?I++:G==="]"&&I>0?I--:G==="("?q++:G===")"&&q>0&&q--,I===0&&q===0&&(O[W]===">"||O[W]==="+"||O[W]==="~"||O[W]===" "))return O.slice(0,W)+D+O.slice(W)}return O+D}for(let W=0;W<O.length;W++){const G=O[W];if(G==="["?I++:G==="]"&&I>0?I--:G==="("?q++:G===")"&&q>0&&q--,I===0&&q===0&&(G===">"||G==="+"||G==="~"||G===" "))return O.slice(0,W)+D+O.slice(W)}return O+D}if(j)if(j.includes("&")){const O=j.indexOf("&"),D=j.slice(0,O),I=j.slice(O+1),q=v+F;if(P.length===0)$=$.replace(v,D+q+te+I);else{const W=Ne(I,te);$=$.replace(v,D+q+W)}}else $=$.replace(v,`${j}${v+F}`),te&&($=$.replace(v,`${v}${te}`));else $=$.replace(v,v+F+te);$=$.replace(new RegExp(v,"g"),T);let B=`${$}{${E}}`;const M=h.filter(O=>tt.includes(O)),K=h.filter(O=>O.startsWith("@")&&(nt.includes(O.slice(1))||O.match(/^@\[.+\]$/))),se=M.length?M[M.length-1]:null,ue=K.length?K[K.length-1]:null,U=h.includes("dark");let ne="",le="";if(U&&se?ne=`@media (prefers-color-scheme: dark) and ${et[se]}`:U?ne="@media (prefers-color-scheme: dark)":se&&(ne=`@media ${et[se]}`),ue)if(ue.startsWith("@[")&&ue.endsWith("]")){const O=ue.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(O))return null;le=`@container (min-width:${O})`}else{const O=ue.slice(1);le=`@container ${Ct[O]||`(min-width:${O})`}`}return ne&&le?B=`${ne}${le}{${B}}`:ne?B=`${ne}{${B}}`:le&&(B=`${le}{${B}}`),B};for(const f of o){const g=d(f),l=g.find(C=>Ye[C.replace(/^!/,"")]||rt(C.replace(/^!/,""))||st(C.replace(/^!/,""))||ot(C.replace(/^!/,""))||it(C.replace(/^!/,""))||qe(C.replace(/^!/,"")));if(!l)continue;const m=g.indexOf(l),k=m>=0?g.slice(0,m):[],w=a(k),_=c(f);_&&i[w].push(_)}const p=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const f of o)if(p.test(f)){if(i.flat().join("").includes(`.${_t(f)}`))continue;const l=c(f);l&&i[0].push(l)}const x=f=>f.sort((g,l)=>{const m=T=>{const E={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[v,$]of Object.entries(E))if(T.includes(`@media ${et[v]}`))return $;return-1},k=T=>{const E={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[v,$]of Object.entries(E))if(T.includes(`@container ${Ct[v]}`))return $;if(T.includes("@container (min-width:")){const v=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(T);if(v){const $=parseFloat(v[1]),A=v[2];return A==="rem"||A==="em"?$*16:$}}return-1},w=m(g),_=m(l),C=k(g),h=k(l);return w>=0&&_>=0&&w!==_?w-_:C>=0&&h>=0&&C!==h?C-h:0});i[2]=x(i[2]),i[3]=x(i[3]);const u=i.flat().join("");return Ae.size>=St&&Array.from(Ae.keys()).slice(0,Math.floor(St/2)).forEach(g=>Ae.delete(g)),Ae.set(e,{css:u,timestamp:t}),u}function De(e,t){return z(e?t:[],"when-block")}function Pn(e,t){return e.map((r,n)=>{const o=typeof r=="object"?r?.key??r?.id??`idx-${n}`:String(r);return z(t(r,n),`each-${o}`)})}function Wt(){const e=[];return{when(t,r){return e.push([t,r]),this},otherwise(t){return e.push([!0,t]),this},done(){return Rn(...e)}}}function Rn(...e){for(let t=0;t<e.length;t++){const[r,n]=e[t];if(r)return[z(n,`whenChain-branch-${t}`)]}return[z([],"whenChain-empty")]}function z(e,t){const r=e?Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean):[];return{tag:"#anchor",key:t,children:r}}const $e={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Mn(e,t){const{preset:r,show:n,mode:o="default",duration:i,appear:s=!1,css:c=!0,name:a,enterFrom:d,enterActive:b,enterTo:y,leaveFrom:p,leaveActive:x,leaveTo:u,onBeforeEnter:f,onEnter:g,onAfterEnter:l,onEnterCancelled:m,onBeforeLeave:k,onLeave:w,onAfterLeave:_,onLeaveCancelled:C}=e;let h;r&&$e[r]?(h={...$e[r]},d&&(h.enterFrom=d),b&&(h.enterActive=b),y&&(h.enterTo=y),p&&(h.leaveFrom=p),x&&(h.leaveActive=x),u&&(h.leaveTo=u)):h={enterFrom:d,enterActive:b,enterTo:y,leaveFrom:p,leaveActive:x,leaveTo:u};const T=a||(r?`transition-${r}`:"transition"),E=z(n?t:[],T);return E._transition={name:T,classes:h,mode:o,duration:i,appear:s,css:c,state:n?"visible":"hidden",hooks:{onBeforeEnter:f,onEnter:g,onAfterEnter:l,onEnterCancelled:m,onBeforeLeave:k,onLeave:w,onAfterLeave:_,onLeaveCancelled:C}},E}function Dn(e,t){const{tag:r="div",moveClass:n="transition-transform duration-300",preset:o,show:i=!0,mode:s="default",duration:c,appear:a=!1,css:d=!0,name:b,enterFrom:y,enterActive:p,enterTo:x,leaveFrom:u,leaveActive:f,leaveTo:g,onBeforeEnter:l,onEnter:m,onAfterEnter:k,onEnterCancelled:w,onBeforeLeave:_,onLeave:C,onAfterLeave:h,onLeaveCancelled:T}=e;let E;o&&$e[o]?(E={...$e[o]},y&&(E.enterFrom=y),p&&(E.enterActive=p),x&&(E.enterTo=x),u&&(E.leaveFrom=u),f&&(E.leaveActive=f),g&&(E.leaveTo=g)):E={enterFrom:y,enterActive:p,enterTo:x,leaveFrom:u,leaveActive:f,leaveTo:g};const v=b||(o?`transition-group-${o}`:"transition-group"),$=[];for(const A of i?t:[])if(A&&typeof A=="object"&&A.tag==="#anchor"){const P=Array.isArray(A.children)?A.children:[];for(const S of P)if(S&&typeof S=="object"){const j={...S,key:A.key||S.key,props:{...S.props,_anchorKey:A.key}};$.push(j)}else $.push(S)}else $.push(A);return{tag:r,children:$,key:v,props:{_transitionGroup:{name:v,classes:E,moveClass:n,mode:s,duration:c,appear:a,css:d,hooks:{onBeforeEnter:l,onEnter:m,onAfterEnter:k,onEnterCancelled:w,onBeforeLeave:_,onLeave:C,onAfterLeave:h,onLeaveCancelled:T}}}}}function Nn(e){return{...e}}let Ue=null;function Ze(){if(!Ue){const e=[];Object.values($e).forEach(n=>{n.enterFrom&&e.push(n.enterFrom),n.enterActive&&e.push(n.enterActive),n.enterTo&&e.push(n.enterTo),n.leaveFrom&&e.push(n.leaveFrom),n.leaveActive&&e.push(n.leaveActive),n.leaveTo&&e.push(n.leaveTo)});const t=`<div class="${e.join(" ")}"></div>`,r=Bt(t);Ue=new CSSStyleSheet,Ue.replaceSync(r)}return Ue}function In(){Ze()}In();const Pe=[];function Hn(e,t,r,n,o,i,s,c){if(e){Pe.push(r);try{const a=t.render(r);if(a instanceof Promise){i(!0),a.then(d=>{i(!1),s(null),At(e,d,r,n,o),c(e.innerHTML)}).catch(d=>{i(!1),s(d)});return}At(e,a,r,n,o),c(e.innerHTML)}finally{Pe.pop()}}}function At(e,t,r,n,o){e&&(wn(e,Array.isArray(t)?t:[t],r,n),o(e.innerHTML))}function Bn(e,t,r,n,o,i,s){if(i!==null&&clearTimeout(i),Date.now()-t<16){if(o(r+1),r===15)ie(`⚠️ Component is re-rendering rapidly. This might indicate:
|
|
117
|
+
`,Fn={neutral:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#9f9fa9",500:"#71717b",600:"#52525c",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},primary:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},secondary:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},success:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},info:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},warning:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},error:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},white:{DEFAULT:"#ffffff"},black:{DEFAULT:"#000000"},transparent:{DEFAULT:"transparent"},current:{DEFAULT:"currentColor"}},Yt=Object.fromEntries(Object.entries(Fn).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).map(([n,r])=>[n,`var(--color-${e}${n==="DEFAULT"?"":`-${n}`}, ${r})`]))])),me="0.25rem",Bn={"3xs":64,"2xs":72,xs:80,sm:96,md:112,lg:128,xl:144,"2xl":168,"3xl":192,"4xl":224,"5xl":256,"6xl":288,"7xl":320},tt={m:["margin"],mx:["margin-inline"],my:["margin-block"],mt:["margin-top"],mr:["margin-right"],mb:["margin-bottom"],ml:["margin-left"],p:["padding"],px:["padding-inline"],py:["padding-block"],pt:["padding-top"],pr:["padding-right"],pb:["padding-bottom"],pl:["padding-left"],inset:["inset"],"inset-x":["inset-inline"],"inset-y":["inset-block"],h:["height"],w:["width"],"min-h":["min-height"],"min-w":["min-width"],"max-h":["max-height"],"max-w":["max-width"],top:["top"],bottom:["bottom"],left:["left"],right:["right"],gap:["gap"],"gap-x":["column-gap"],"gap-y":["row-gap"]},Wn=()=>{const e={};e["@container"]="container-type:inline-size;",["block","inline","inline-block","flex","inline-flex","grid","inline-grid","table","table-cell","table-row","hidden"].forEach(a=>{e[a]=a==="hidden"?"display:none;":`display:${a};`}),["absolute","relative","fixed","sticky","static"].forEach(a=>{e[a]=`position:${a};`}),Object.assign(e,{"items-center":"align-items:center;","items-start":"align-items:flex-start;","items-end":"align-items:flex-end;","items-baseline":"align-items:baseline;","items-stretch":"align-items:stretch;","justify-center":"justify-content:center;","justify-start":"justify-content:flex-start;","justify-between":"justify-content:space-between;","justify-around":"justify-content:space-around;","justify-evenly":"justify-content:space-evenly;","justify-end":"justify-content:flex-end;","flex-wrap":"flex-wrap:wrap;","flex-nowrap":"flex-wrap:nowrap;","flex-wrap-reverse":"flex-wrap:wrap-reverse;","content-center":"align-content:center;","content-start":"align-content:flex-start;","content-end":"align-content:flex-end;","content-between":"align-content:space-between;","content-around":"align-content:space-around;","content-evenly":"align-content:space-evenly;","content-stretch":"align-content:stretch;","self-auto":"align-self:auto;","self-start":"align-self:flex-start;","self-end":"align-self:flex-end;","self-center":"align-self:center;","self-stretch":"align-self:stretch;","flex-col":"flex-direction:column;","flex-row":"flex-direction:row;","flex-col-reverse":"flex-direction:column-reverse;","flex-row-reverse":"flex-direction:row-reverse;","flex-1":"flex:1 1 0%;","flex-auto":"flex:1 1 auto;","flex-initial":"flex:0 1 auto;","flex-none":"flex:0 0 auto;",grow:"flex-grow:1;",shrink:"flex-shrink:1;","grow-0":"flex-grow:0;","shrink-0":"flex-shrink:0;"});for(let a=1;a<=12;a++)e[`grid-cols-${a}`]=`grid-template-columns:repeat(${a},minmax(0,1fr));`,e[`grid-rows-${a}`]=`grid-template-rows:repeat(${a},minmax(0,1fr));`,e[`col-span-${a}`]=`grid-column:span ${a} / span ${a};`,e[`row-span-${a}`]=`grid-row:span ${a} / span ${a};`,e[`col-start-${a}`]=`grid-column-start:${a};`,e[`col-end-${a}`]=`grid-column-end:${a};`,e[`row-start-${a}`]=`grid-row-start:${a};`,e[`row-end-${a}`]=`grid-row-end:${a};`;Object.assign(e,{"grid-cols-none":"grid-template-columns:none;","grid-rows-none":"grid-template-rows:none;","col-span-full":"grid-column:1 / -1;","row-span-full":"grid-row:1 / -1;","auto-cols-auto":"grid-auto-columns:auto;","auto-cols-min":"grid-auto-columns:min-content;","auto-cols-max":"grid-auto-columns:max-content;","auto-cols-fr":"grid-auto-columns:1fr;","auto-rows-auto":"grid-auto-rows:auto;","auto-rows-min":"grid-auto-rows:min-content;","auto-rows-max":"grid-auto-rows:max-content;","auto-rows-fr":"grid-auto-rows:1fr;","grid-flow-row":"grid-auto-flow:row;","grid-flow-col":"grid-auto-flow:column;","grid-flow-row-dense":"grid-auto-flow:row dense;","grid-flow-col-dense":"grid-auto-flow:column dense;"}),Object.assign(e,{"text-left":"text-align:left;","text-center":"text-align:center;","text-right":"text-align:right;","text-justify":"text-align:justify;","font-thin":"font-weight:100;","font-extralight":"font-weight:200;","font-light":"font-weight:300;","font-normal":"font-weight:400;","font-medium":"font-weight:500;","font-semibold":"font-weight:600;","font-bold":"font-weight:700;","font-extrabold":"font-weight:800;","font-black":"font-weight:900;",italic:"font-style:italic;","not-italic":"font-style:normal;",uppercase:"text-transform:uppercase;",lowercase:"text-transform:lowercase;",capitalize:"text-transform:capitalize;","normal-case":"text-transform:none;",underline:"text-decoration-line:underline;",overline:"text-decoration-line:overline;","line-through":"text-decoration-line:line-through;","no-underline":"text-decoration-line:none;",truncate:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;","whitespace-normal":"white-space:normal;","whitespace-nowrap":"white-space:nowrap;","whitespace-pre":"white-space:pre;","whitespace-pre-line":"white-space:pre-line;","whitespace-pre-wrap":"white-space:pre-wrap;","break-normal":"overflow-wrap:normal;word-break:normal;","break-words":"overflow-wrap:break-word;","break-all":"word-break:break-all;"}),[["text-xs","0.75rem","1"],["text-sm","0.875rem","1.25"],["text-base","1rem","1.5"],["text-lg","1.125rem","1.75"],["text-xl","1.25rem","1.75"],["text-2xl","1.5rem","2"],["text-3xl","1.875rem","2.25"],["text-4xl","2.25rem","2.5"],["text-5xl","3rem","1"],["text-6xl","3.75rem","1"],["text-7xl","4.5rem","1"],["text-8xl","6rem","1"],["text-9xl","8rem","1"]].forEach(([a,d,m])=>{e[a]=`font-size:${d};line-height:var(--ce-line-height,${m});`}),[["tracking-tighter","-0.05em"],["tracking-tight","-0.025em"],["tracking-normal","0em"],["tracking-wide","0.025em"],["tracking-wider","0.05em"],["tracking-widest","0.1em"]].forEach(([a,d])=>{e[a]=`letter-spacing:${d};`}),[["leading-3","0.75rem"],["leading-4","1rem"],["leading-5","1.25rem"],["leading-6","1.5rem"],["leading-7","1.75rem"],["leading-8","2rem"],["leading-9","2.25rem"],["leading-10","2.5rem"],["leading-none","1"],["leading-tight","1.25"],["leading-snug","1.375"],["leading-normal","1.5"],["leading-relaxed","1.625"],["leading-loose","2"]].forEach(([a,d])=>{e[a]=`line-height:${d};--ce-line-height:${d};line-height:var(--ce-line-height,${d});`});const i=[0,1,2,4,6,8];for(const a of i){const d=`${a}px`;e[`border-${a}`]=`border-width:${d};`,e[`border-t-${a}`]=`border-top-width:${d};`,e[`border-r-${a}`]=`border-right-width:${d};`,e[`border-b-${a}`]=`border-bottom-width:${d};`,e[`border-l-${a}`]=`border-left-width:${d};`,e[`border-x-${a}`]=`border-left-width:${d};border-right-width:${d};`,e[`border-y-${a}`]=`border-top-width:${d};border-bottom-width:${d};`}Object.assign(e,{"font-sans":"font-family:var(--font-sans, ui-sans-serif,system-ui,sans-serif);","font-serif":"font-family:var(--font-serif, ui-serif,Georgia,serif);","font-mono":"font-family:var(--font-mono, ui-monospace,SFMono-Regular,monospace);",border:"border-width:1px;","border-t":"border-top-width:1px;","border-r":"border-right-width:1px;","border-b":"border-bottom-width:1px;","border-l":"border-left-width:1px;","border-x":"border-left-width:1px;border-right-width:1px;","border-y":"border-top-width:1px;border-bottom-width:1px;","border-solid":"border-style:solid;","border-dashed":"border-style:dashed;","border-dotted":"border-style:dotted;","border-double":"border-style:double;","border-none":"border-style:none;"});const s={none:0,xs:2,sm:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,"4xl":32,full:9999};for(const[a,d]of Object.entries(s)){const m=d===9999?"9999px":`${d/16}rem`;e[`rounded-${a}`]=`border-radius:${m};`,e[`rounded-t-${a}`]=`border-top-left-radius:${m};border-top-right-radius:${m};`,e[`rounded-r-${a}`]=`border-top-right-radius:${m};border-bottom-right-radius:${m};`,e[`rounded-b-${a}`]=`border-bottom-left-radius:${m};border-bottom-right-radius:${m};`,e[`rounded-l-${a}`]=`border-top-left-radius:${m};border-bottom-left-radius:${m};`,e[`rounded-tl-${a}`]=`border-top-left-radius:${m};`,e[`rounded-tr-${a}`]=`border-top-right-radius:${m};`,e[`rounded-br-${a}`]=`border-bottom-right-radius:${m};`,e[`rounded-bl-${a}`]=`border-bottom-left-radius:${m};`}Object.assign(e,{"shadow-none":"--ce-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--ce-shadow-color, #0000);","shadow-xs":"--ce-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));",shadow:"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--ce-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--ce-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--ce-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--ce-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--ce-shadow-color, rgb(0 0 0 / 0.25));","shadow-inner":"box-shadow:inset 0 2px 4px 0 rgb(0 0 0 / 0.05);"}),Object.assign(e,{rounded:"border-radius:0.25rem;"}),Object.assign(e,{"overflow-auto":"overflow:auto;","overflow-hidden":"overflow:hidden;","overflow-visible":"overflow:visible;","overflow-scroll":"overflow:scroll;","overflow-x-auto":"overflow-x:auto;","overflow-x-hidden":"overflow-x:hidden;","overflow-x-visible":"overflow-x:visible;","overflow-x-scroll":"overflow-x:scroll;","overflow-y-auto":"overflow-y:auto;","overflow-y-hidden":"overflow-y:hidden;","overflow-y-visible":"overflow-y:visible;","overflow-y-scroll":"overflow-y:scroll;"});const c=["auto","default","pointer","wait","text","move","help","not-allowed","grab","grabbing"];for(const a of c)e[`cursor-${a}`]=`cursor:${a};`;for(const a of[0,10,20,30,40,50])e[`z-${a}`]=`z-index:${a};`;Object.assign(e,{"sr-only":"position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0;","not-sr-only":"position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;","pointer-events-none":"pointer-events:none;","pointer-events-auto":"pointer-events:auto;",visible:"visibility:visible;",invisible:"visibility:hidden;"}),Object.assign(e,{"w-full":"width:100%;","w-screen":"width:100dvw;","h-full":"height:100%;","h-screen":"height:100dvh;","max-w-full":"max-width:100%;","max-h-full":"max-height:100%;","max-w-screen":"max-width:100dvw;","max-h-screen":"max-height:100dvh;","min-w-0":"min-width:0;","min-h-0":"min-height:0;","min-w-full":"min-width:100%;","min-h-full":"min-height:100%;","min-w-screen":"min-width:100dvw;","min-h-screen":"min-height:100dvh;","w-auto":"width:auto;","h-auto":"height:auto;","w-fit":"width:fit-content;","h-fit":"height:fit-content;","w-min":"width:min-content;","h-min":"height:min-content;","w-max":"width:max-content;","h-max":"height:max-content;","m-auto":"margin:auto;","mx-auto":"margin-inline:auto;","my-auto":"margin-block:auto;"});for(const[a,d]of Object.entries(Bn))e[`max-w-${a}`]=`max-width:calc(${me} * ${d});`,e[`min-w-${a}`]=`min-width:calc(${me} * ${d});`,e[`w-${a}`]=`width:calc(${me} * ${d});`,e[`max-h-${a}`]=`max-height:calc(${me} * ${d});`,e[`min-h-${a}`]=`min-height:calc(${me} * ${d});`,e[`h-${a}`]=`height:calc(${me} * ${d});`;Object.assign(e,{transition:"transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;","transition-none":"transition-property:none;","transition-all":"transition-property:all;","transition-colors":"transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;","transition-shadow":"transition-property:box-shadow;","transition-opacity":"transition-property:opacity;","transition-transform":"transition-property:transform;","ease-linear":"transition-timing-function:linear;","ease-in":"transition-timing-function:ease-in;","ease-out":"transition-timing-function:ease-out;","ease-in-out":"transition-timing-function:ease-in-out;","duration-75":"transition-duration:75ms;","duration-100":"transition-duration:100ms;","duration-150":"transition-duration:150ms;","duration-200":"transition-duration:200ms;","duration-300":"transition-duration:300ms;","duration-500":"transition-duration:500ms;","duration-700":"transition-duration:700ms;","duration-1000":"transition-duration:1000ms;"}),Object.assign(e,{"scale-0":"transform:scale(0);","scale-50":"transform:scale(0.5);","scale-75":"transform:scale(0.75);","scale-90":"transform:scale(0.9);","scale-95":"transform:scale(0.95);","scale-100":"transform:scale(1);","scale-105":"transform:scale(1.05);","scale-110":"transform:scale(1.1);","scale-125":"transform:scale(1.25);","scale-150":"transform:scale(1.5);","rotate-0":"transform:rotate(0deg);","rotate-1":"transform:rotate(1deg);","rotate-2":"transform:rotate(2deg);","rotate-3":"transform:rotate(3deg);","rotate-6":"transform:rotate(6deg);","rotate-12":"transform:rotate(12deg);","rotate-45":"transform:rotate(45deg);","rotate-90":"transform:rotate(90deg);","rotate-180":"transform:rotate(180deg);","-rotate-1":"transform:rotate(-1deg);","-rotate-2":"transform:rotate(-2deg);","-rotate-3":"transform:rotate(-3deg);","-rotate-6":"transform:rotate(-6deg);","-rotate-12":"transform:rotate(-12deg);","-rotate-45":"transform:rotate(-45deg);","-rotate-90":"transform:rotate(-90deg);","-rotate-180":"transform:rotate(-180deg);"}),Object.assign(e,{"aspect-auto":"aspect-ratio:auto;","aspect-square":"aspect-ratio:1 / 1;","aspect-video":"aspect-ratio:16 / 9;"}),Object.assign(e,{"object-contain":"object-fit:contain;","object-cover":"object-fit:cover;","object-fill":"object-fit:fill;","object-none":"object-fit:none;","object-scale-down":"object-fit:scale-down;","object-bottom":"object-position:bottom;","object-center":"object-position:center;","object-left":"object-position:left;","object-left-bottom":"object-position:left bottom;","object-left-top":"object-position:left top;","object-right":"object-position:right;","object-right-bottom":"object-position:right bottom;","object-right-top":"object-position:right top;","object-top":"object-position:top;"});for(let a=1;a<=6;a++)e[`line-clamp-${a}`]=`display:-webkit-box;-webkit-line-clamp:${a};-webkit-box-orient:vertical;overflow:hidden;`;e["line-clamp-none"]="overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";for(let a=1;a<=12;a++)e[`order-${a}`]=`order:${a};`;e["order-first"]="order:-9999;",e["order-last"]="order:9999;",e["order-none"]="order:0;";for(let a=0;a<=12;a++)a<=1||(e[`grow-${a}`]=`flex-grow:${a};`,e[`shrink-${a}`]=`flex-shrink:${a};`);return Object.assign(e,{"bg-linear-to-t":"background-image:linear-gradient(to top, var(--ce-gradient-stops));","bg-linear-to-tr":"background-image:linear-gradient(to top right, var(--ce-gradient-stops));","bg-linear-to-r":"background-image:linear-gradient(to right, var(--ce-gradient-stops));","bg-linear-to-br":"background-image:linear-gradient(to bottom right, var(--ce-gradient-stops));","bg-linear-to-b":"background-image:linear-gradient(to bottom, var(--ce-gradient-stops));","bg-linear-to-bl":"background-image:linear-gradient(to bottom left, var(--ce-gradient-stops));","bg-linear-to-l":"background-image:linear-gradient(to left, var(--ce-gradient-stops));","bg-linear-to-tl":"background-image:linear-gradient(to top left, var(--ce-gradient-stops));","bg-radial":"background-image:radial-gradient(ellipse at center, var(--ce-gradient-stops));","bg-radial-at-t":"background-image:radial-gradient(ellipse at top, var(--ce-gradient-stops));","bg-radial-at-tr":"background-image:radial-gradient(ellipse at top right, var(--ce-gradient-stops));","bg-radial-at-r":"background-image:radial-gradient(ellipse at right, var(--ce-gradient-stops));","bg-radial-at-br":"background-image:radial-gradient(ellipse at bottom right, var(--ce-gradient-stops));","bg-radial-at-b":"background-image:radial-gradient(ellipse at bottom, var(--ce-gradient-stops));","bg-radial-at-bl":"background-image:radial-gradient(ellipse at bottom left, var(--ce-gradient-stops));","bg-radial-at-l":"background-image:radial-gradient(ellipse at left, var(--ce-gradient-stops));","bg-radial-at-tl":"background-image:radial-gradient(ellipse at top left, var(--ce-gradient-stops));","bg-radial-circle":"background-image:radial-gradient(circle at center, var(--ce-gradient-stops));","bg-radial-circle-at-t":"background-image:radial-gradient(circle at top, var(--ce-gradient-stops));","bg-radial-circle-at-tr":"background-image:radial-gradient(circle at top right, var(--ce-gradient-stops));","bg-radial-circle-at-r":"background-image:radial-gradient(circle at right, var(--ce-gradient-stops));","bg-radial-circle-at-br":"background-image:radial-gradient(circle at bottom right, var(--ce-gradient-stops));","bg-radial-circle-at-b":"background-image:radial-gradient(circle at bottom, var(--ce-gradient-stops));","bg-radial-circle-at-bl":"background-image:radial-gradient(circle at bottom left, var(--ce-gradient-stops));","bg-radial-circle-at-l":"background-image:radial-gradient(circle at left, var(--ce-gradient-stops));","bg-radial-circle-at-tl":"background-image:radial-gradient(circle at top left, var(--ce-gradient-stops));","bg-conic":"background-image:conic-gradient(from 0deg at center, var(--ce-gradient-stops));","bg-conic-at-t":"background-image:conic-gradient(from 0deg at top, var(--ce-gradient-stops));","bg-conic-at-tr":"background-image:conic-gradient(from 0deg at top right, var(--ce-gradient-stops));","bg-conic-at-r":"background-image:conic-gradient(from 0deg at right, var(--ce-gradient-stops));","bg-conic-at-br":"background-image:conic-gradient(from 0deg at bottom right, var(--ce-gradient-stops));","bg-conic-at-b":"background-image:conic-gradient(from 0deg at bottom, var(--ce-gradient-stops));","bg-conic-at-bl":"background-image:conic-gradient(from 0deg at bottom left, var(--ce-gradient-stops));","bg-conic-at-l":"background-image:conic-gradient(from 0deg at left, var(--ce-gradient-stops));","bg-conic-at-tl":"background-image:conic-gradient(from 0deg at top left, var(--ce-gradient-stops));"}),e},nt=Wn();function te(e,t){let n=0;for(let r=0;r<e.length;r++){const o=e[r];if(o==="["||o==="(")n++;else if((o==="]"||o===")")&&n>0)n--;else if(n===0&&(o===">"||o==="+"||o==="~"||o===" "))return e.slice(0,r)+t+e.slice(r)}return e+t}const zn={before:(e,t)=>`${e}::before{${t}}`,after:(e,t)=>`${e}::after{${t}}`,hover:(e,t)=>`${te(e,":hover")}{${t}}`,focus:(e,t)=>`${te(e,":focus")}{${t}}`,active:(e,t)=>`${te(e,":active")}{${t}}`,disabled:(e,t)=>`${te(e,":disabled")}{${t}}`,visited:(e,t)=>`${te(e,":visited")}{${t}}`,checked:(e,t)=>`${te(e,":checked")}{${t}}`,first:(e,t)=>`${te(e,":first-child")}{${t}}`,last:(e,t)=>`${te(e,":last-child")}{${t}}`,odd:(e,t)=>`${te(e,":nth-child(odd)")}{${t}}`,even:(e,t)=>`${te(e,":nth-child(even)")}{${t}}`,"focus-within":(e,t)=>`${te(e,":focus-within")}{${t}}`,"focus-visible":(e,t)=>`${te(e,":focus-visible")}{${t}}`,"group-hover":(e,t)=>`.group:hover ${e}{${t}}`,"group-focus":(e,t)=>`.group:focus ${e}{${t}}`,"group-active":(e,t)=>`.group:active ${e}{${t}}`,"group-disabled":(e,t)=>`.group:disabled ${e}{${t}}`,"peer-hover":(e,t)=>`.peer:hover ~ ${e}{${t}}`,"peer-focus":(e,t)=>`.peer:focus ~ ${e}{${t}}`,"peer-checked":(e,t)=>`.peer:checked ~ ${e}{${t}}`,"peer-disabled":(e,t)=>`.peer:disabled ~ ${e}{${t}}`},rt={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},Pt={xs:"(min-width:20rem)",sm:"(min-width:24rem)",md:"(min-width:28rem)",lg:"(min-width:32rem)",xl:"(min-width:36rem)","2xl":"(min-width:42rem)","3xl":"(min-width:48rem)","4xl":"(min-width:56rem)","5xl":"(min-width:64rem)","6xl":"(min-width:72rem)","7xl":"(min-width:80rem)"},ot=["sm","md","lg","xl","2xl"],it=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function st(e){const t=e.startsWith("-"),n=t?e.slice(1):e,r=n.lastIndexOf("-");if(r===-1)return null;const o=n.slice(0,r),i=n.slice(r+1);if(!tt[o])return null;if(i.includes("/")){const[a,d]=i.split("/").map(y=>parseFloat(y));if(Number.isNaN(a)||Number.isNaN(d)||d===0)return null;const m=a/d*100;return tt[o].map(y=>`${y}:${m}%;`).join("")}const s=parseFloat(i);if(Number.isNaN(s))return null;const c=t?"-":"";return tt[o].map(a=>`${a}:calc(${c}${me} * ${s});`).join("")}function at(e){const t=e.startsWith("-"),r=(t?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!r)return null;const[,o,i]=r,s=o==="x";if(i==="reverse")return s?"--ce-space-x-reverse:1;":"--ce-space-y-reverse:1;";if(i.includes("/")){const[m,y]=i.split("/").map(f=>parseFloat(f));if(Number.isNaN(m)||Number.isNaN(y)||y===0)return null;const p=m/y*100,k=t?"-":"";return s?`--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${k}${p}% * calc(1 - var(--ce-space-x-reverse)));margin-inline-end:calc(${k}${p}% * var(--ce-space-x-reverse));}`:`--ce-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${k}${p}% * calc(1 - var(--ce-space-y-reverse)));margin-bottom:calc(${k}${p}% * var(--ce-space-y-reverse));}`}const c=parseFloat(i);if(Number.isNaN(c))return null;const d=`calc(${t?"-":""}${me} * ${c})`;return s?`--ce-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${d} * calc(1 - var(--ce-space-x-reverse)));margin-inline-end:calc(${d} * var(--ce-space-x-reverse));}`:`--ce-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${d} * calc(1 - var(--ce-space-y-reverse)));margin-bottom:calc(${d} * var(--ce-space-y-reverse));}`}function Mt(e){const t=e.replace("#",""),n=parseInt(t,16);return`${n>>16&255} ${n>>8&255} ${n&255}`}const Un=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Kn={bg:"background-color",decoration:"text-decoration-color",text:"color",border:"border-color",outline:"outline-color",caret:"caret-color",accent:"accent-color",fill:"fill",stroke:"stroke"};function qn(e){const t=Un.exec(e);if(!t)return null;const[,n,r,o="DEFAULT"]=t,i=Yt[r]?.[o];if(!i)return null;if(n==="shadow")return`--ce-shadow-color:${i};`;const s=Kn[n];return s?`${s}:${i};`:null}function Vn(e){const t=e.indexOf("/");if(t===-1)return{base:e};const n=e.slice(0,t),r=e.slice(t+1),o=parseInt(r,10);return isNaN(o)||o<0||o>100?{base:n}:{base:n,opacity:o/100}}function ct(e){const{base:t,opacity:n}=Vn(e),r=qn(t);if(r&&n!==void 0){const i=/#([0-9a-f]{6})/i.exec(r);if(i){const s=Mt(i[0]);return r.replace(/#([0-9a-f]{6})/i,`rgb(${s} / ${n})`)}}if(r)return r;const o=Je(t);if(o&&n!==void 0){const i=/#([0-9a-f]{6})/i.exec(o);if(i){const s=Mt(i[0]);return o.replace(/#([0-9a-f]{6})/i,`rgb(${s} / ${n})`)}}return o}function lt(e){const t=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!t)return null;const[,n,r,o="DEFAULT"]=t,i=Yt[r]?.[o];if(!i)return null;switch(n){case"from":return`--ce-gradient-from:${i} var(--ce-gradient-from-position);--ce-gradient-to:rgb(255 255 255 / 0) var(--ce-gradient-to-position);--ce-gradient-stops:var(--ce-gradient-from), var(--ce-gradient-to);`;case"to":return`--ce-gradient-to:${i} var(--ce-gradient-to-position);`;case"via":return`--ce-gradient-to:rgb(255 255 255 / 0) var(--ce-gradient-to-position);--ce-gradient-stops:var(--ce-gradient-from), ${i} var(--ce-gradient-via-position), var(--ce-gradient-to);`;default:return null}}function ut(e){const t=/^opacity-(\d{1,3})$/.exec(e);if(!t)return null;const n=parseInt(t[1],10);return n<0||n>100?null:`opacity:${n/100};`}function Je(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const s=e.slice(1,-1).trim(),c=s.indexOf(":");if(c===-1)return null;const a=s.slice(0,c).trim();let d=s.slice(c+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(a)?(d=d.replace(/_/g," "),d=d.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),d=d.replace(/^'([^']*)'$/g,'"$1"'),`${a}:${d};`):null}const t=e.indexOf("-[");if(t<=0||!e.endsWith("]"))return null;const n=e.slice(0,t);let r=e.slice(t+2,-1).replace(/_/g," ");const o={bg:"background-color",shadow:"box-shadow",p:"padding",px:"padding-inline",py:"padding-block",m:"margin",mx:"margin-inline",my:"margin-block",w:"width",h:"height","min-w":"min-width","max-w":"max-width","min-h":"min-height","max-h":"max-height","border-t":"border-top-width","border-b":"border-bottom-width","border-l":"border-left-width","border-r":"border-right-width","border-x":"border-inline-width","border-y":"border-block-width","grid-cols":"grid-template-columns","grid-rows":"grid-template-rows",transition:"transition-property",ease:"transition-timing-function",delay:"transition-delay",duration:"transition-duration",list:"list-style",break:"word-break",flex:"flex-direction",items:"align-items",justify:"justify-content",content:"align-content",self:"align-self",basis:"flex-basis",tracking:"letter-spacing",leading:"line-height",z:"z-index",opacity:"opacity"};if(n==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(r)?`font-size:${r};`:`color:${r};`;if(n==="rotate")return`transform:rotate(${r});`;if(n==="scale")return`transform:scale(${r});`;if(n==="translate-x")return`transform:translateX(${r});`;if(n==="translate-y")return`transform:translateY(${r});`;const i=o[n]??n.replace(/_/g,"-");return i&&r?`${i}:${r};`:null}function Gn(e){if(e.startsWith("[")&&e.endsWith("]")){const n=e.slice(1,-1);return n.includes("&")?n:e}const t=e.indexOf("-[");if(t>0&&e.endsWith("]")){const n=e.slice(t+2,-1).replace(/_/g,"-");return n.includes("&")?n:e.replace(/_/g,"-")}return null}function Nt(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Zn(e){const t=/class\s*=\s*(['"])([\s\S]*?)\1/g,n=[];let r;for(;r=t.exec(e);){const o=r[2].split(/\s+/).filter(Boolean);o.length&&n.push(...o)}return n}const Oe=new Map,Jn=16,Rt=1e3;function Qt(e){const t=Date.now(),n=Oe.get(e);if(n&&t-n.timestamp<Jn)return n.css;const r=Zn(e);if(!r.length)return"";const o=new Set(r),i=[[],[],[],[]],s={},c=(u,h=!1)=>{const l=h?`dark|${u}`:u;if(l in s)return s[l];const g=y(u,h);return s[l]=g,g},a=u=>{const h=u.some(v=>ot.includes(v)),l=u.some(v=>v.startsWith("@")&&(it.includes(v.slice(1))||v.match(/^@\[.+\]$/))),g=u.includes("dark");return u.length?!h&&!g&&!l?1:g&&(h||l)?3:2:0},d=u=>{const h=[];let l="",g=0;for(let v=0;v<u.length;v++){const x=u[v];x==="["||x==="("?g++:(x==="]"||x===")")&&g--,x===":"&&g===0?(h.push(l),l=""):l+=x}return l&&h.push(l),h},m={hover:":hover",focus:":focus",active:":active",visited:":visited",disabled:":disabled",checked:":checked",first:":first-child",last:":last-child",odd:":nth-child(odd)",even:":nth-child(even)","focus-within":":focus-within","focus-visible":":focus-visible"},y=(u,h=!1)=>{const l=d(u);let g="",v=!1;for(const O of l){let F=O;if(F.startsWith("!")&&(v=!0,F=F.slice(1)),nt[F]||st(F)||at(F)||ut(F)||ct(F)||lt(F)||Je(F)){g=O;break}}if(!g)return null;const x=g.replace(/^!/,""),S=nt[x]??st(x)??at(x)??ut(x)??ct(x)??lt(x)??Je(x);if(!S)return null;const E=l.indexOf(g);let C=E>=0?l.slice(0,E):[];h&&(C=C.filter(O=>O!=="dark"));const w=`.${Nt(u)}`,T=v?S.replace(/;/g," !important;"):S,$="__SUBJECT__";let b=$;const _=[];for(const O of C)O.startsWith("group-")?(b=`.group:${O.slice(6)} ${b}`,_.push(O)):O.startsWith("peer-")&&(b=b.replace($,`.peer:${O.slice(5)}~${$}`),_.push(O));C=C.filter(O=>!_.includes(O));const j=[],L=[];let A=null;for(const O of C){if(O==="dark"||ot.includes(O)||O.startsWith("@")&&(it.includes(O.slice(1))||O.match(/^@\[.+\]$/)))continue;const F=Gn(O);if(F){A=F;continue}const V=m[O];if(V){A?L.push(V):j.push(V);continue}const W=zn[O];typeof W=="function"&&(b=W(b,T).split("{")[0])}const M=j.join(""),N=L.join("");function de(O,F){if(!F)return O;let V=0,W=0;if(O.length&&(O[0]===">"||O[0]==="+"||O[0]==="~"||O[0]===" ")){let K=1;for(;K<O.length&&O[K]===" ";)K++;for(;K<O.length;K++){const Z=O[K];if(Z==="["?V++:Z==="]"&&V>0?V--:Z==="("?W++:Z===")"&&W>0&&W--,V===0&&W===0&&(O[K]===">"||O[K]==="+"||O[K]==="~"||O[K]===" "))return O.slice(0,K)+F+O.slice(K)}return O+F}for(let K=0;K<O.length;K++){const Z=O[K];if(Z==="["?V++:Z==="]"&&V>0?V--:Z==="("?W++:Z===")"&&W>0&&W--,V===0&&W===0&&(Z===">"||Z==="+"||Z==="~"||Z===" "))return O.slice(0,K)+F+O.slice(K)}return O+F}if(A)if(A.includes("&")){const O=A.indexOf("&"),F=A.slice(0,O),V=A.slice(O+1),W=$+M;if(j.length===0)b=b.replace($,F+W+N+V);else{const K=de(V,N);b=b.replace($,F+W+K)}}else b=b.replace($,`${A}${$+M}`),N&&(b=b.replace($,`${$}${N}`));else b=b.replace($,$+M+N);b=b.replace(new RegExp($,"g"),w);let G=`${b}{${T}}`;const U=C.filter(O=>ot.includes(O)),D=C.filter(O=>O.startsWith("@")&&(it.includes(O.slice(1))||O.match(/^@\[.+\]$/))),q=U.length?U[U.length-1]:null,ie=D.length?D[D.length-1]:null,Te=C.includes("dark");let I="",le="";if(Te&&q?I=`@media (prefers-color-scheme: dark) and ${rt[q]}`:Te?I="@media (prefers-color-scheme: dark)":q&&(I=`@media ${rt[q]}`),ie)if(ie.startsWith("@[")&&ie.endsWith("]")){const O=ie.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(O))return null;le=`@container (min-width:${O})`}else{const O=ie.slice(1);le=`@container ${Pt[O]||`(min-width:${O})`}`}return I&&le?G=`${I}${le}{${G}}`:I?G=`${I}{${G}}`:le&&(G=`${le}{${G}}`),G};for(const u of o){const h=d(u),l=h.find(E=>nt[E.replace(/^!/,"")]||st(E.replace(/^!/,""))||at(E.replace(/^!/,""))||ut(E.replace(/^!/,""))||ct(E.replace(/^!/,""))||lt(E.replace(/^!/,""))||Je(E.replace(/^!/,"")));if(!l)continue;const g=h.indexOf(l),v=g>=0?h.slice(0,g):[],x=a(v),S=c(u);S&&i[x].push(S)}const p=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const u of o)if(p.test(u)){if(i.flat().join("").includes(`.${Nt(u)}`))continue;const l=c(u);l&&i[0].push(l)}const k=u=>u.sort((h,l)=>{const g=w=>{const T={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[$,b]of Object.entries(T))if(w.includes(`@media ${rt[$]}`))return b;return-1},v=w=>{const T={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[$,b]of Object.entries(T))if(w.includes(`@container ${Pt[$]}`))return b;if(w.includes("@container (min-width:")){const $=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(w);if($){const b=parseFloat($[1]),_=$[2];return _==="rem"||_==="em"?b*16:b}}return-1},x=g(h),S=g(l),E=v(h),C=v(l);return x>=0&&S>=0&&x!==S?x-S:E>=0&&C>=0&&E!==C?E-C:0});i[2]=k(i[2]),i[3]=k(i[3]);const f=i.flat().join("");return Oe.size>=Rt&&Array.from(Oe.keys()).slice(0,Math.floor(Rt/2)).forEach(h=>Oe.delete(h)),Oe.set(e,{css:f,timestamp:t}),f}function He(e,t){return z(e?t:[],"when-block")}function Xn(e,t){return e.map((n,r)=>{const o=typeof n=="object"?n?.key??n?.id??`idx-${r}`:String(n);return z(t(n,r),`each-${o}`)})}function en(){const e=[];return{when(t,n){return e.push([t,n]),this},otherwise(t){return e.push([!0,t]),this},done(){return Yn(...e)}}}function Yn(...e){for(let t=0;t<e.length;t++){const[n,r]=e[t];if(n)return[z(r,`whenChain-branch-${t}`)]}return[z([],"whenChain-empty")]}function z(e,t){const n=e?Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean):[];return{tag:"#anchor",key:t,children:n}}const _e={fade:{enterFrom:"opacity-0",enterActive:"transition-opacity duration-300 ease-out",enterTo:"opacity-100",leaveFrom:"opacity-100",leaveActive:"transition-opacity duration-200 ease-in",leaveTo:"opacity-0"},"slide-right":{enterFrom:"translate-x-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[100%] opacity-0"},"slide-left":{enterFrom:"translate-x-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-x-[0%] opacity-100",leaveFrom:"translate-x-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-x-[-100%] opacity-0"},"slide-up":{enterFrom:"translate-y-[100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[100%] opacity-0"},"slide-down":{enterFrom:"translate-y-[-100%] opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"translate-y-[0%] opacity-100",leaveFrom:"translate-y-[0%] opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"translate-y-[-100%] opacity-0"},scale:{enterFrom:"scale-95 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-95 opacity-0"},"scale-down":{enterFrom:"scale-105 opacity-0",enterActive:"transition-all duration-200 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-150 ease-in",leaveTo:"scale-105 opacity-0"},bounce:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-500 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},zoom:{enterFrom:"scale-0 opacity-0",enterActive:"transition-all duration-300 ease-out",enterTo:"scale-100 opacity-100",leaveFrom:"scale-100 opacity-100",leaveActive:"transition-all duration-200 ease-in",leaveTo:"scale-0 opacity-0"},flip:{enterFrom:"rotate-[90deg] opacity-0",enterActive:"transition-all duration-400 ease-out",enterTo:"rotate-[0deg] opacity-100",leaveFrom:"rotate-[0deg] opacity-100",leaveActive:"transition-all duration-300 ease-in",leaveTo:"rotate-[90deg] opacity-0"}};function Qn(e,t){const{preset:n,show:r,mode:o="default",duration:i,appear:s=!1,css:c=!0,name:a,enterFrom:d,enterActive:m,enterTo:y,leaveFrom:p,leaveActive:k,leaveTo:f,onBeforeEnter:u,onEnter:h,onAfterEnter:l,onEnterCancelled:g,onBeforeLeave:v,onLeave:x,onAfterLeave:S,onLeaveCancelled:E}=e;let C;n&&_e[n]?(C={..._e[n]},d&&(C.enterFrom=d),m&&(C.enterActive=m),y&&(C.enterTo=y),p&&(C.leaveFrom=p),k&&(C.leaveActive=k),f&&(C.leaveTo=f)):C={enterFrom:d,enterActive:m,enterTo:y,leaveFrom:p,leaveActive:k,leaveTo:f};const w=a||(n?`transition-${n}`:"transition"),T=z(r?t:[],w);return T._transition={name:w,classes:C,mode:o,duration:i,appear:s,css:c,state:r?"visible":"hidden",hooks:{onBeforeEnter:u,onEnter:h,onAfterEnter:l,onEnterCancelled:g,onBeforeLeave:v,onLeave:x,onAfterLeave:S,onLeaveCancelled:E}},T}function er(e,t){const{tag:n="div",moveClass:r="transition-transform duration-300",preset:o,show:i=!0,mode:s="default",duration:c,appear:a=!1,css:d=!0,name:m,class:y,style:p,enterFrom:k,enterActive:f,enterTo:u,leaveFrom:h,leaveActive:l,leaveTo:g,onBeforeEnter:v,onEnter:x,onAfterEnter:S,onEnterCancelled:E,onBeforeLeave:C,onLeave:w,onAfterLeave:T,onLeaveCancelled:$}=e;let b;o&&_e[o]?(b={..._e[o]},k&&(b.enterFrom=k),f&&(b.enterActive=f),u&&(b.enterTo=u),h&&(b.leaveFrom=h),l&&(b.leaveActive=l),g&&(b.leaveTo=g)):b={enterFrom:k,enterActive:f,enterTo:u,leaveFrom:h,leaveActive:l,leaveTo:g};const _=m||(o?`transition-group-${o}`:"transition-group"),j=[];for(const L of i?t:[])if(L&&typeof L=="object"&&L.tag==="#anchor"){const A=Array.isArray(L.children)?L.children:[];for(const M of A)if(M&&typeof M=="object"){const N={...M,key:L.key||M.key,props:{...M.props,_anchorKey:L.key}};j.push(N)}else j.push(M)}else j.push(L);return{tag:n,children:j,key:_,props:{attrs:{...y?{class:y}:{},...p?{style:p}:{}},_transitionGroup:{name:_,classes:b,moveClass:r,mode:s,duration:c,appear:a,css:d,hooks:{onBeforeEnter:v,onEnter:x,onAfterEnter:S,onEnterCancelled:E,onBeforeLeave:C,onLeave:w,onAfterLeave:T,onLeaveCancelled:$}}}}}function tr(e){return{...e}}let Ve=null;function Ye(){if(!Ve){const e=[];Object.values(_e).forEach(r=>{r.enterFrom&&e.push(r.enterFrom),r.enterActive&&e.push(r.enterActive),r.enterTo&&e.push(r.enterTo),r.leaveFrom&&e.push(r.leaveFrom),r.leaveActive&&e.push(r.leaveActive),r.leaveTo&&e.push(r.leaveTo)});const t=`<div class="${e.join(" ")}"></div>`,n=Qt(t);Ve=new CSSStyleSheet,Ve.replaceSync(n)}return Ve}function nr(){Ye()}nr();const Ne=[];function rr(e,t,n,r,o,i,s,c){if(e){Ne.push(n);try{const a=t.render(n);if(a instanceof Promise){i(!0),a.then(d=>{i(!1),s(null),Dt(e,d,n,r,o),c(e.innerHTML)}).catch(d=>{i(!1),s(d)});return}Dt(e,a,n,r,o),c(e.innerHTML)}finally{Ne.pop()}}}function Dt(e,t,n,r,o){e&&(Dn(e,Array.isArray(t)?t:[t],n,r),o(e.innerHTML))}function or(e,t,n,r,o,i,s){if(i!==null&&clearTimeout(i),Date.now()-t<16){if(o(n+1),n===15)re(`⚠️ Component is re-rendering rapidly. This might indicate:
|
|
116
118
|
Common causes:
|
|
117
119
|
• Event handler calling a function immediately: @click="\${fn()}" should be @click="\${fn}"
|
|
118
120
|
• State modification during render
|
|
119
121
|
• Missing dependencies in computed/watch
|
|
120
|
-
Component rendering will be throttled to prevent browser freeze.`);else if(
|
|
122
|
+
Component rendering will be throttled to prevent browser freeze.`);else if(n>20){H(`🛑 Infinite loop detected in component render:
|
|
121
123
|
• This might be caused by state updates during render
|
|
122
124
|
• Ensure all state modifications are done in event handlers or effects
|
|
123
|
-
Stopping runaway component render to prevent browser freeze`),s(null);return}}else o(0);const d=setTimeout(()=>{
|
|
125
|
+
Stopping runaway component render to prevent browser freeze`),s(null);return}}else o(0);const d=setTimeout(()=>{r(Date.now()),e(),s(null)},n>10?100:0);s(d)}function ir(e,t,n,r,o){if(!e)return;const i=Qt(n);if((!i||i.trim()==="")&&!t._computedStyle){o(null),e.adoptedStyleSheets=[jt(),Ye()];return}let s="";t._computedStyle&&(s=t._computedStyle);let c=Hn(`${s}
|
|
124
126
|
${i}
|
|
125
|
-
`);c=It(c);let a=n;a||(a=new CSSStyleSheet),(a.cssRules.length===0||a.cssRules.length>0&&Array.from(a.cssRules).map(b=>b.cssText).join("")!==c)&&a.replaceSync(c),e.adoptedStyleSheets=[$t(),Ze(),a],o(a)}let H=null;function Tt(e){H=e}function Ot(){H=null}function Fn(){if(!H)throw new Error("useEmit must be called during component render");const e=H.emit;return(t,r)=>e(t,r)}function Ce(e){e._hookCallbacks||Object.defineProperty(e,"_hookCallbacks",{value:{},writable:!0,enumerable:!1,configurable:!1})}function zn(e){if(!H)throw new Error("useOnConnected must be called during component render");Ce(H),H._hookCallbacks.onConnected=e}function Un(e){if(!H)throw new Error("useOnDisconnected must be called during component render");Ce(H),H._hookCallbacks.onDisconnected=e}function Kn(e){if(!H)throw new Error("useOnAttributeChanged must be called during component render");Ce(H),H._hookCallbacks.onAttributeChanged=e}function Vn(e){if(!H)throw new Error("useOnError must be called during component render");Ce(H),H._hookCallbacks.onError=e}function qn(e){if(!H)throw new Error("useProps must be called during component render");Ce(H),H._hookCallbacks.props={...H._hookCallbacks.props||{},...e};const t=H;try{const n=Object.keys(e||{});for(const o of n){if(typeof o!="string"||o.startsWith("_"))continue;const i=Object.getOwnPropertyDescriptor(t,o);if(!(i&&!i.configurable))try{let c=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get(){try{const a=t&&t._host;if(a){const d=ee(o),b=a.getAttribute(d);if(b!==null){const y=typeof e[o];return y==="boolean"?b===""||b==="true":y==="number"?Number(b):b}if(typeof a[o]<"u"){const y=a[o];return R(y)||y&&typeof y=="object"&&"value"in y&&!(y instanceof Node)?y.value:typeof e[o]==="boolean"&&typeof y=="string"?y===""||y==="true":y}}}catch{}return c},set(a){c=a}})}catch{}}}catch{}return new Proxy({},{get(n,o){if(typeof o!="string")return;const i=e[o];try{const c=t&&t._host;if(c){if(c instanceof HTMLElement||typeof c.getAttribute=="function"&&typeof c.hasAttribute=="function"){const d=o.replace(/([A-Z])/g,"-$1").toLowerCase(),b=c.getAttribute(d);if(b!==null)return typeof i=="boolean"?b===""||b==="true":typeof i=="number"?Number(b):b}const a=c[o];if(typeof a<"u"&&a!=="")return typeof i=="boolean"&&i===!1&&a===""?i:R(a)||a&&typeof a=="object"&&"value"in a&&!(a instanceof Node)?a.value:typeof i=="boolean"&&typeof a=="string"?a==="true"||a!==""&&a!=="false":typeof i=="number"&&typeof a=="string"&&!Number.isNaN(Number(a))?Number(a):a}}catch{}const s=t[o];return typeof i=="boolean"&&s===""?i===!1?i:!0:R(s)||s&&typeof s=="object"&&"value"in s&&!(s instanceof Node)?s.value:s!=null&&s!==""?typeof i=="boolean"&&typeof s=="string"?s==="true":typeof i=="number"&&typeof s=="string"&&!Number.isNaN(Number(s))?Number(s):s:i},has(n,o){return typeof o=="string"&&(o in t||o in e)},ownKeys(){return Array.from(new Set([...Object.keys(e),...Object.keys(t||{})]))},getOwnPropertyDescriptor(){return{configurable:!0,enumerable:!0}}})}function Gn(e){if(!H)throw new Error("useStyle must be called during component render");Ce(H);try{const t=e();Object.defineProperty(H,"_computedStyle",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(t){ie("Error in useStyle callback:",t),Object.defineProperty(H,"_computedStyle",{value:"",writable:!0,enumerable:!1,configurable:!0})}}const xe=new Map,jt=Symbol.for("cer.registry");if(typeof window<"u"){const e=globalThis;e[jt]||(e[jt]=xe)}function Zn(e,t){if(!t.render)throw new Error("Component must have a render function");return typeof window>"u"?class{constructor(){}}:class extends HTMLElement{context;_refs={};_listeners=[];_watchers=new Map;_renderTimeoutId=null;_mounted=!1;_hasError=!1;_initializing=!0;_componentId;_styleSheet=null;_lastHtmlStringForJitCSS="";get lastHtmlStringForJitCSS(){return this._lastHtmlStringForJitCSS}get isLoading(){return this._templateLoading}get lastError(){return this._templateError}_cfg;_lastRenderTime=0;_renderCount=0;_templateLoading=!1;_templateError=null;constructor(){super(),this.attachShadow({mode:"open"}),this._cfg=xe.get(e)||t,this._componentId=`${e}-${Math.random().toString(36).substr(2,9)}`;const r=this._initContext(t),n=(i,s,c)=>{Object.defineProperty(i,s,{value:c,writable:!1,enumerable:!1,configurable:!1})};n(r,"refs",this._refs),n(r,"requestRender",()=>this.requestRender()),n(r,"_requestRender",()=>this._requestRender()),n(r,"_componentId",this._componentId),n(r,"_triggerWatchers",(i,s)=>this._triggerWatchers(i,s)),this.context=r,L(()=>{n(r,"_host",this)}),n(this.context,"emit",(i,s,c)=>{const a={detail:s,bubbles:!0,composed:!0,...c||{}},d=new CustomEvent(i,a);this.dispatchEvent(d);const b=i.indexOf(":");if(b>0){const y=i.substring(0,b),p=i.substring(b+1),x=p.includes("-")?`${y}:${p.split("-").map((u,f)=>f===0?u:u.charAt(0).toUpperCase()+u.slice(1)).join("")}`:`${y}:${p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`;x!==i&&L(()=>{this.dispatchEvent(new CustomEvent(x,a))})}return!d.defaultPrevented});const o=xe.get(e)||t;for(const i in o){const s=o[i];typeof s=="function"&&(this.context[i]=(...c)=>s(...c,this.context))}if(o.props)for(const i in o.props){let s=this[i];Object.defineProperty(this,i,{get(){return s},set(c){const a=s;s=c,this.context[i]=c,this._initializing||(this._applyProps(o),a!==c&&this._requestRender())},enumerable:!0,configurable:!0})}this._initializing=!1,this._initWatchers(o),this._applyProps(o),this._render(o)}connectedCallback(){this._runLogicWithinErrorBoundary(t,()=>{this._applyProps(t),this._requestRender(),rn(t,this.context,this._mounted,r=>{this._mounted=r})})}disconnectedCallback(){this._runLogicWithinErrorBoundary(t,()=>{on(t,this.context,this._listeners,()=>{this._listeners=[]},()=>{this._watchers.clear()},r=>{this._templateLoading=r},r=>{this._templateError=r},r=>{this._mounted=r})})}attributeChangedCallback(r,n,o){this._runLogicWithinErrorBoundary(t,()=>{this._applyProps(t),n!==o&&this._requestRender(),sn(t,r,n,o,this.context)})}static get observedAttributes(){return t.props?Object.keys(t.props).map(ee):[]}_render(r){this._runLogicWithinErrorBoundary(r,()=>{Hn(this.shadowRoot,r,this.context,this._refs,n=>{this._lastHtmlStringForJitCSS=n,typeof this.onHtmlStringUpdate=="function"&&this.onHtmlStringUpdate(n)},n=>{this._templateLoading=n,typeof this.onLoadingStateChange=="function"&&this.onLoadingStateChange(n)},n=>{this._templateError=n,typeof this.onErrorStateChange=="function"&&this.onErrorStateChange(n)},n=>this._applyStyle(r,n))})}requestRender(){this._requestRender()}_requestRender(){this._runLogicWithinErrorBoundary(this._cfg,()=>{ye(()=>{Bn(()=>this._render(this._cfg),this._lastRenderTime,this._renderCount,r=>{this._lastRenderTime=r},r=>{this._renderCount=r},this._renderTimeoutId,r=>{this._renderTimeoutId=r})},this._componentId)})}_applyStyle(r,n){this._runLogicWithinErrorBoundary(r,()=>{Wn(this.shadowRoot,this.context,n,this._styleSheet,o=>{this._styleSheet=o})})}_runLogicWithinErrorBoundary(r,n){this._hasError&&(this._hasError=!1);try{n()}catch(o){this._hasError=!0,r.onError&&r.onError(o,this.context)}}_initContext(r){try{let n=function(i,s=""){if(Array.isArray(i))return new Proxy(i,{get(c,a,d){const b=Reflect.get(c,a,d);return typeof b=="function"&&typeof a=="string"&&["push","pop","shift","unshift","splice","sort","reverse"].includes(a)?function(...p){const x=b.apply(c,p);if(!o._initializing){const u=s||"root";o._triggerWatchers(u,c),ye(()=>o._render(r),o._componentId)}return x}:b},set(c,a,d){if(c[a]=d,!o._initializing){const b=s?`${s}.${String(a)}`:String(a);o._triggerWatchers(b,d),ye(()=>o._render(r),o._componentId)}return!0},deleteProperty(c,a){if(delete c[a],!o._initializing){const d=s?`${s}.${String(a)}`:String(a);o._triggerWatchers(d,void 0),ye(()=>o._render(r),o._componentId)}return!0}});if(i&&typeof i=="object"){if(R(i))return i;for(const c in i){const a=s?`${s}.${c}`:c;i[c]=n(i[c],a)}return new Proxy(i,{set(c,a,d){const b=s?`${s}.${String(a)}`:String(a);return c[a]=n(d,b),o._initializing||(o._triggerWatchers(b,c[a]),ye(()=>o._render(r),o._componentId)),!0},get(c,a,d){return Reflect.get(c,a,d)}})}return i};const o=this;return n({...r.props?Object.fromEntries(Object.entries(r.props).map(([i,s])=>[i,s.default])):{}})}catch{return{}}}_initWatchers(r){this._runLogicWithinErrorBoundary(r,()=>{Yt(this.context,this._watchers,{})})}_triggerWatchers(r,n){en(this.context,this._watchers,r,n)}_applyProps(r){this._runLogicWithinErrorBoundary(r,()=>{try{nn(this,r,this.context)}catch(n){this._hasError=!0,r.onError&&r.onError(n,this.context)}})}}}function ft(e,t){let r=ee(e);r.includes("-")||(r=`cer-${r}`);let n={};const o={props:{},onConnected:i=>{n.onConnected&&n.onConnected()},onDisconnected:i=>{n.onDisconnected&&n.onDisconnected()},onAttributeChanged:(i,s,c,a)=>{n.onAttributeChanged&&n.onAttributeChanged(i,s,c)},onError:(i,s)=>{n.onError&&i&&n.onError(i)},render:i=>{const s=i._componentId||`${r}-${Math.random().toString(36).substr(2,9)}`;J.setCurrentComponent(s,()=>{i.requestRender&&i.requestRender()});try{Tt(i);const c=t();if(i._hookCallbacks){const a=i._hookCallbacks;if(a.onConnected&&(n.onConnected=a.onConnected),a.onDisconnected&&(n.onDisconnected=a.onDisconnected),a.onAttributeChanged&&(n.onAttributeChanged=a.onAttributeChanged),a.onError&&(n.onError=a.onError),a.style&&(i._styleCallback=a.style),a.props){const d=a.props;o.props=Object.fromEntries(Object.entries(d).map(([b,y])=>[b,{type:typeof y=="boolean"?Boolean:typeof y=="number"?Number:typeof y=="string"?String:Function,default:y}])),xe.set(r,o)}}return c}finally{Ot(),J.clearCurrentComponent()}}};if(xe.set(r,o),typeof window<"u"){try{const i={_hookCallbacks:{},requestRender:()=>{}};if(Tt(i),t(),Ot(),i._hookCallbacks?.props){const s=i._hookCallbacks.props;o.props=Object.fromEntries(Object.entries(s).map(([c,a])=>[c,{type:typeof a=="boolean"?Boolean:typeof a=="number"?Number:typeof a=="string"?String:Function,default:a}])),xe.set(r,o)}}catch{}customElements.get(r)||customElements.define(r,Zn(r,o))}}class Jn{map=new Map;maxSize;constructor(t){this.maxSize=t}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}set(t,r){if(this.map.delete(t),this.map.set(t,r),this.map.size>this.maxSize){const n=this.map.keys().next().value;n!==void 0&&this.map.delete(n)}}has(t){return this.map.has(t)}clear(){this.map.clear()}}const at=new Jn(500);function Qn(e,t){if(e==null){ie(`⚠️ Event handler for '@${t}' is ${e}. This will prevent the event from working. Use a function reference instead: @${t}="\${functionName}"`);return}typeof e!="function"&&ie(`🚨 Potential infinite loop detected! Event handler for '@${t}' appears to be the result of a function call (${typeof e}) instead of a function reference. Change @${t}="\${functionName()}" to @${t}="\${functionName}" to pass the function reference instead of calling it immediately.`),e===void 0&&typeof e!="function"&&ie(`💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${t}="\${fn}" not @${t}="\${fn()}"`)}function Te(e,t={},r,n){const o=n??t.key;return{tag:e,key:o,props:t,children:r}}function Re(e){return!!e&&typeof e=="object"&&(e.type==="AnchorBlock"||e.tag==="#anchor")}function Le(e){return typeof e=="object"&&e!==null&&"tag"in e&&!Re(e)}function Xn(e,t){return e.key!=null?e:{...e,key:t}}function Yn(e,t=[],r={}){const n={},o={},i={},s=[],c=/([:@#]?)([a-zA-Z0-9-:\.]+)(?:=("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'))?/g;let a;for(;a=c.exec(e);){const d=a[1],b=a[2],y=(a[4]||a[6])??"",p=a[3]===void 0&&a[6]===void 0,x=y.match(/^{{(\d+)}}$/);let u=p?!0:x?t[Number(x[1])]??null:y;x||(u==="true"?u=!0:u==="false"?u=!1:u==="null"?u=null:isNaN(Number(u))||(u=Number(u)));const f=["model","bind","show","class","style","ref","when"];if(d===":"){const[g,l]=b.split(":"),[m,...k]=g.split(".");if(f.includes(m)){const w=[...k],_=m==="model"&&l?`model:${l}`:m;i[_]={value:u,modifiers:w,arg:l}}else if(b==="disabled"){let w=u;w&&R(w)&&(w=w.value);const _=typeof w;if(w===""||_==="boolean"||_==="string"&&(w==="true"||w==="false")||w==null||_==="number")n[b]=w;else{let T=u;T&&R(T)&&(T=T.value),o[b]=T}s.push(b)}else{let w=u;w&&R(w)&&(w=w.value),o[b]=w,s.push(b)}}else if(d==="@"){const[g,...l]=b.split("."),m=l;Qn(u,g);const k=typeof u=="function"?u:typeof r[u]=="function"?r[u]:void 0;if(k){const w=C=>{if(m.includes("prevent")&&C.preventDefault(),m.includes("stop")&&C.stopPropagation(),!(m.includes("self")&&C.target!==C.currentTarget))return m.includes("once")&&C.currentTarget?.removeEventListener(g,w),k(C)},_="on"+g.charAt(0).toUpperCase()+g.slice(1);n[_]=w}}else b==="ref"?n.ref=u:o[b]=u}return{props:n,attrs:o,directives:i,bound:s}}function dt(e){if(!Le(e)||Re(e))return e;const t=e.props?.directives;if(t&&t.when){const r=t.when.value,{when:n,...o}=t,i={...e.props};Object.keys(o).length>0?i.directives=o:delete i.directives;const s={...e,props:i};return Array.isArray(s.children)&&(s.children=s.children.map(a=>typeof a=="object"&&a!==null?dt(a):a)),{tag:"#anchor",key:e.key!=null?`when-${e.key}`:`when-${e.tag}`,children:r?[s]:[]}}if(Array.isArray(e.children)){const r=e.children.map(n=>typeof n=="object"&&n!==null?dt(n):n);return{...e,children:r}}return e}function er(e,t,r){const n=Pe.length>0?Pe[Pe.length-1]:void 0,o=r??n,i=!r&&t.length===0,s=i?e.join("<!--TEMPLATE_DELIM-->"):null;if(i&&s){const h=at.get(s);if(h)return h}function c(h,T){return Te("#text",{},h,T)}let a="";for(let h=0;h<e.length;h++)a+=e[h],h<t.length&&(a+=`{{${h}}}`);const d=/<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g,b=[];let y,p=[],x=null,u={},f,g=0,l=[];function m(h){!h||typeof h!="object"||Re(h)||(h.props||h.attrs?(h.props&&(u.props||(u.props={}),Object.assign(u.props,h.props)),h.attrs&&(u.attrs||(u.attrs={}),Object.keys(h.attrs).forEach(T=>{if(T==="style"&&u.attrs.style){const E=u.attrs.style.replace(/;?\s*$/,""),v=h.attrs.style.replace(/^;?\s*/,"");u.attrs.style=E+"; "+v}else if(T==="class"&&u.attrs.class){const E=u.attrs.class.trim().split(/\s+/).filter(Boolean),v=h.attrs.class.trim().split(/\s+/).filter(Boolean),$=[...new Set([...E,...v])];u.attrs.class=$.join(" ")}else u.attrs[T]=h.attrs[T]}))):(u.props||(u.props={}),Object.assign(u.props,h)))}function k(h,T){const E=x?p:l;if(Re(h)){const v=h.key??T;let $=h.children;E.push({...h,key:v,children:$});return}if(Le(h)){E.push(Xn(h,void 0));return}if(Array.isArray(h)){if(h.length===0)return;for(let v=0;v<h.length;v++){const $=h[v];Re($)||Le($)||Array.isArray($)?k($,`${T}-${v}`):$!==null&&typeof $=="object"?m($):E.push(c(String($),`${T}-${v}`))}return}if(h!==null&&typeof h=="object"){m(h);return}E.push(c(String(h),T))}const w=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);for(;y=d.exec(a);)if(!(y[0].startsWith("<!--")&&y[0].endsWith("-->"))){if(y[1]){const h=y[1],T=y[0][1]==="/",E=y[0][y[0].length-2]==="/"||w.has(h),{props:v,attrs:$,directives:A,bound:P}=Yn(y[2]||"",t,o),S={props:{},attrs:{}};for(const j in v)S.props[j]=v[j];for(const j in $)S.attrs[j]=$[j];S.attrs&&Object.prototype.hasOwnProperty.call(S.attrs,"key")&&!(S.props&&Object.prototype.hasOwnProperty.call(S.props,"key"))&&L(()=>{S.props.key=S.attrs.key});try{const j={input:["value","checked","readonly","required","placeholder","maxlength","minlength"],textarea:["value","readonly","required","placeholder","maxlength","minlength"],select:["value","required","multiple"],option:["selected","value"],video:["muted","autoplay","controls","loop","playsinline"],audio:["muted","autoplay","controls","loop"],img:["src","alt","width","height"],button:["type","name","value","autofocus","form"]},F=h.toLowerCase(),te=j[F]??[];if(S.attrs){for(const B of te)if(P&&P.includes(B)&&B in S.attrs&&!(S.props&&B in S.props)){let M=S.attrs[B];if(M&&R(M))M=M.value,S.props[B]=M,delete S.attrs[B];else{const K=typeof M;B==="disabled"?(M===""||K==="boolean"||K==="string"&&(M==="true"||M==="false")||M==null||K==="number")&&(S.props[B]=M,L(()=>{const U=globalThis;U.__VDOM_DISABLED_PROMOTIONS||(U.__VDOM_DISABLED_PROMOTIONS=[]),U.__VDOM_DISABLED_PROMOTIONS.push({phase:"compiler-promotion",tag:h,propName:B,value:M,time:Date.now(),stack:new Error().stack})}),delete S.attrs[B]):(M===""||K==="string"||K==="number"||K==="boolean"||M==null)&&(S.props[B]=M,delete S.attrs[B])}}}if((h.includes("-")||!!o?.__customElements?.has?.(h))&&(S.isCustomElement=!0,P&&S.attrs)){const B=new Set(["id","name","data-key","key"]);for(const M of P)if(M in S.attrs&&!(S.props&&M in S.props)){const K=M.includes("-")?mt(M):M;let se=S.attrs[M];S.props[K]=se,B.has(M)||delete S.attrs[M]}}}catch{}if(A&&Object.keys(A).some(j=>j==="model"||j.startsWith("model:")))try{const j=Symbol.for("cer.registry"),F=globalThis[j],te=!!(F&&typeof F.has=="function"&&F.has(h)),Ne=!!(o&&(o.__customElements instanceof Set&&o.__customElements.has(h)||Array.isArray(o.__isCustomElements)&&o.__isCustomElements.includes(h)));if(!!(h.includes("-")||Ne||te))for(const K of Object.keys(A)){if(K!=="model"&&!K.startsWith("model:"))continue;const se=A[K],ue=se.arg??(K.includes(":")?K.split(":",2)[1]:void 0),U=se.value,ne=ue??"modelValue",le=V,O=Ge,D=o?o._state||o:void 0;let I;typeof U=="string"&&o?I=le(D,U):I=U,S.props[ne]=I;try{const fe=ee(ne);S.attrs||(S.attrs={}),I!=null&&(typeof I=="string"||typeof I=="number"||typeof I=="boolean")&&(S.attrs[fe]=I)}catch{}S.isCustomElement=!0;const W=`update:${ee(ne)}`.replace(/-([a-z])/g,(fe,ae)=>ae.toUpperCase()),G="on"+W.charAt(0).toUpperCase()+W.slice(1);S.props[G]=function(fe){const ae=fe.detail!==void 0?fe.detail:fe.target?fe.target.value:void 0;if(D)if(U&&R(U)){const pe=U.value;(Array.isArray(ae)&&Array.isArray(pe)?JSON.stringify([...ae].sort())!==JSON.stringify([...pe].sort()):ae!==pe)&&(U.value=ae,o?.requestRender?o.requestRender():o?._requestRender&&o._requestRender())}else{const pe=le(D,typeof U=="string"?U:String(U));(Array.isArray(ae)&&Array.isArray(pe)?JSON.stringify([...ae].sort())!==JSON.stringify([...pe].sort()):ae!==pe)&&(O(D,typeof U=="string"?U:String(U),ae),o?.requestRender?o.requestRender():o?._requestRender&&o._requestRender())}},delete A[K]}}catch{}if(Object.keys(A).length>0&&(S.directives={...A}),T){const j=Te(x,u,p.length===1&&Le(p[0])&&p[0].tag==="#text"?typeof p[0].children=="string"?p[0].children:"":p.length?p:void 0,f),F=b.pop();F?(x=F.tag,u=F.props,f=F.key,p=F.children,p.push(j)):(l.push(j),x=null,u={},f=void 0,p=[])}else E?x?p.push(Te(h,S,void 0,void 0)):l.push(Te(h,S,void 0,void 0)):(x&&b.push({tag:x,props:u,children:p,key:f}),x=h,u=S,p=[])}else if(typeof y[3]<"u"){const h=Number(y[3]),T=t[h],E=`interp-${h}`;k(T,E)}else if(y[4]){const h=y[4],T=x?p:l,E=h.split(/({{\d+}})/);for(const v of E){if(!v)continue;const $=v.match(/^{{(\d+)}}$/);if($){const A=Number($[1]),P=t[A],S=`interp-${A}`;k(P,S)}else{const A=`text-${g++}`;T.push(c(v,A))}}}}const C=l.filter(h=>Le(h)&&h.tag==="#text"?typeof h.children=="string"&&h.children.trim()!=="":!0).map(h=>dt(h));if(C.length===1){const h=C[0];return i&&s&&at.set(s,h),h}else if(C.length>1){const h=C;return i&&s&&at.set(s,h),h}return Te("div",{},"","fallback-root")}function de(e,...t){const r=t[t.length-1],n=typeof r=="object"&&r&&!Array.isArray(r)?r:void 0;return er(e,t,n)}function tr(e,t){return De(!e,t)}function nr(e,t){const r=!e||e.length===0;return De(r,t)}function rr(e,t){const r=!!(e&&e.length>0);return De(r,t)}function or(e,t,r){const n=[];return e.forEach((o,i)=>{t(o,i)&&n.push({item:o,originalIndex:i})}),n.map(({item:o,originalIndex:i},s)=>{const c=typeof o=="object"&&o!=null?o?.key??o?.id??`filtered-${i}`:`filtered-${i}`;return z(r(o,i,s),`each-where-${c}`)})}function ir(e,t){const r=e?.length??0;return r===0&&t.empty?z(t.empty,"switch-length-empty"):r===1&&t.one?z(t.one(e[0]),"switch-length-one"):t.exactly?.[r]?z(t.exactly[r](e),`switch-length-${r}`):r>1&&t.many?z(t.many(e),"switch-length-many"):z([],"switch-length-fallback")}function sr(e,t,r){const n=new Map;return e.forEach(o=>{const i=t(o);n.has(i)||n.set(i,[]),n.get(i).push(o)}),Array.from(n.entries()).map(([o,i],s)=>z(r(o,i,s),`each-group-${o}`))}function ar(e,t,r,n){const o=r*t,i=Math.min(o+t,e.length);return e.slice(o,i).map((c,a)=>{const d=o+a,b=typeof c=="object"&&c!=null?c?.key??c?.id??`page-${d}`:`page-${d}`;return z(n(c,d,a),`each-page-${b}`)})}function cr(e,t){return e.loading&&t.loading?z(t.loading,"promise-loading"):e.error&&t.error?z(t.error(e.error),"promise-error"):e.data!==void 0&&t.success?z(t.success(e.data),"promise-success"):t.idle?z(t.idle,"promise-idle"):z([],"promise-fallback")}function Z(e,t){const r=typeof window<"u"&&window.matchMedia?.(e)?.matches;return De(!!r,t)}const ce={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},yt=["sm","md","lg","xl","2xl"],Ft={sm:e=>Z(ce.sm,e),md:e=>Z(ce.md,e),lg:e=>Z(ce.lg,e),xl:e=>Z(ce.xl,e),"2xl":e=>Z(ce["2xl"],e),dark:e=>Z(ce.dark,e),light:e=>Z("(prefers-color-scheme: light)",e),touch:e=>Z("(hover: none) and (pointer: coarse)",e),mouse:e=>Z("(hover: hover) and (pointer: fine)",e),reducedMotion:e=>Z("(prefers-reduced-motion: reduce)",e),highContrast:e=>Z("(prefers-contrast: high)",e),portrait:e=>Z("(orientation: portrait)",e),landscape:e=>Z("(orientation: landscape)",e)};function lr(e,t){const r=[];e.includes("dark")?r.push(ce.dark):e.includes("light")&&r.push("(prefers-color-scheme: light)");const n=e.filter(s=>yt.includes(s)),o=n[n.length-1];o&&o in ce&&r.push(ce[o]);const i=r.length>0?r.join(" and "):"all";return Z(i,t)}function ur(e){const t=[];return e.base&&t.push(z(e.base,"responsive-base")),yt.forEach(r=>{const n=e[r];n&&t.push(Ft[r](n))}),t}function fr(e){const t=[];let r=null;return{case(n,o){const i=typeof n=="function"?n:s=>s===n;return t.push({condition:i,content:o}),this},when(n,o){return t.push({condition:n,content:o}),this},otherwise(n){return r=n,this},done(){for(let n=0;n<t.length;n++){const{condition:o,content:i}=t[n];if(o(e))return z(i,`switch-case-${n}`)}return z(r||[],"switch-otherwise")}}}class me extends EventTarget{handlers={};static instance;eventCounters=new Map;static getInstance(){return me.instance||(me.instance=new me),me.instance}emit(t,r){const n=Date.now(),o=this.eventCounters.get(t);if(!o||n-o.window>1e3)this.eventCounters.set(t,{count:1,window:n});else if(o.count++,o.count>50&&o.count>100)return;this.dispatchEvent(new CustomEvent(t,{detail:r,bubbles:!1,cancelable:!0}));const i=this.handlers[t];i&&i.forEach(s=>{try{s(r)}catch(c){N(`Error in global event handler for "${t}":`,c)}})}on(t,r){return this.handlers[t]||(this.handlers[t]=new Set),this.handlers[t].add(r),()=>this.off(t,r)}off(t,r){const n=this.handlers[t];n&&n.delete(r)}offAll(t){delete this.handlers[t]}listen(t,r,n){return this.addEventListener(t,r,n),()=>this.removeEventListener(t,r)}once(t,r){return new Promise(n=>{const o=this.on(t,i=>{o(),r(i),n(i)})})}getActiveEvents(){return Object.keys(this.handlers).filter(t=>this.handlers[t]&&this.handlers[t].size>0)}clear(){this.handlers={}}getHandlerCount(t){return this.handlers[t]?.size||0}getEventStats(){const t={};for(const[r,n]of this.eventCounters.entries())t[r]={count:n.count,handlersCount:this.getHandlerCount(r)};return t}resetEventCounters(){this.eventCounters.clear()}}const Ee=me.getInstance(),dr=(e,t)=>Ee.emit(e,t),pr=(e,t)=>Ee.on(e,t),hr=(e,t)=>Ee.off(e,t),gr=(e,t)=>Ee.once(e,t),mr=(e,t,r)=>Ee.listen(e,t,r);function pt(e){let t={...e};const r=[];function n(c){r.push(c),c(t)}function o(){return t}function i(c){const a=typeof c=="function"?c(t):c;t={...t,...a},s()}function s(){r.forEach(c=>c(t))}return{subscribe:n,getState:o,setState:i}}const ht=e=>e?typeof URLSearchParams>"u"?{}:Object.fromEntries(new URLSearchParams(e)):{},re=(e,t)=>{for(const r of e){const n=[],o=r.path.replace(/:[^/]+/g,c=>(n.push(c.slice(1)),"([^/]+)")),i=new RegExp(`^${o}$`),s=t.match(i);if(s){const c={};return n.forEach((a,d)=>{c[a]=s[d+1]}),{route:r,params:c}}}return{route:null,params:{}}},ct={};async function zt(e){if(e.component)return e.component;if(e.load){if(ct[e.path])return ct[e.path];try{const t=await e.load();return ct[e.path]=t.default,t.default}catch{throw new Error(`Failed to load component for route: ${e.path}`)}}throw new Error(`No component or loader defined for route: ${e.path}`)}function Ut(e){const{routes:t,base:r="",initialUrl:n}=e;let o,i,s,c,a,d,b;const y=async(f,g)=>{const l=t.find(m=>re([m],f.path).route!==null);if(l?.beforeEnter)try{const m=await l.beforeEnter(f,g);return typeof m=="string"?(await u(m,!0),!1):m!==!1}catch(m){return N("beforeEnter error",m),!1}return!0},p=async(f,g)=>{const l=t.find(m=>re([m],f.path).route!==null);if(l?.onEnter)try{const m=await l.onEnter(f,g);return typeof m=="string"?(await u(m,!0),!1):m!==!1}catch(m){return N("onEnter error",m),!1}return!0},x=(f,g)=>{const l=t.find(m=>re([m],f.path).route!==null);if(l?.afterEnter)try{l.afterEnter(f,g)}catch(m){N("afterEnter error",m)}},u=async(f,g=!1)=>{try{const l={path:f.replace(r,"")||"/",query:{}},m=re(t,l.path);if(!m)throw new Error(`No route found for ${l.path}`);const k=s.getState(),w={path:l.path,params:m.params,query:l.query};if(!await y(w,k)||!await p(w,k))return;typeof window<"u"&&typeof document<"u"&&(g?window.history.replaceState({},"",r+f):window.history.pushState({},"",r+f)),s.setState(w),x(w,k)}catch(l){N("Navigation error:",l)}};if(typeof window<"u"&&typeof document<"u"&&typeof n>"u"){o=()=>{const g=new URL(window.location.href),l=g.pathname.replace(r,"")||"/",m=ht(g.search);return{path:l,query:m}},i=o();const f=re(t,i.path);s=pt({path:i.path,params:f.params,query:i.query}),c=async(g=!1)=>{const l=o();await u(l.path,g)},window.addEventListener("popstate",()=>c(!0)),a=g=>u(g,!1),d=g=>u(g,!0),b=()=>window.history.back()}else{o=()=>{const l=new URL(n||"/","http://localhost"),m=l.pathname.replace(r,"")||"/",k=ht(l.search);return{path:m,query:k}},i=o();const f=re(t,i.path);s=pt({path:i.path,params:f.params,query:i.query}),c=async()=>{const l=o();await g(l.path)};const g=async l=>{try{const m={path:l.replace(r,"")||"/",query:{}},k=re(t,m.path);if(!k)throw new Error(`No route found for ${m.path}`);const w=s.getState(),_={path:m.path,params:k.params,query:m.query},C=t.find(h=>re([h],_.path).route!==null);if(C?.beforeEnter)try{const h=await C.beforeEnter(_,w);if(typeof h=="string"){await g(h);return}if(h===!1)return}catch{return}if(C?.onEnter)try{const h=await C.onEnter(_,w);if(typeof h=="string"){await g(h);return}if(h===!1)return}catch{return}if(s.setState(_),C?.afterEnter)try{C.afterEnter(_,w)}catch{}}catch{}};a=async l=>g(l),d=async l=>g(l),b=()=>{}}return{store:s,push:a,replace:d,back:b,subscribe:s.subscribe,matchRoute:f=>re(t,f),getCurrent:()=>s.getState(),resolveRouteComponent:zt}}function yr(e,t){return re(e,t)}function br(e){const t=Ut(e);return ft("router-view",(r={},n={})=>{const{onConnected:o}=n;if(o&&o(()=>{t&&typeof t.subscribe=="function"&&t.subscribe(()=>{})}),!t)return de`<div>Router not initialized.</div>`;const i=t.getCurrent(),{path:s}=i,c=t.matchRoute(s);return c.route?t.resolveRouteComponent(c.route).then(a=>{if(typeof a=="string")return{tag:a,props:{},children:[]};if(typeof a=="function"){const d=a();return(d instanceof Promise?d:Promise.resolve(d)).then(y=>typeof y=="string"?{tag:y,props:{},children:[]}:y)}return de`<div>Invalid route component</div>`}).catch(()=>de`<div>Invalid route component</div>`):de`<div>Not found</div>`}),ft("router-link",(r={},n={})=>{const{to:o="",tag:i="a",replace:s=!1,exact:c=!1,activeClass:a="active",exactActiveClass:d="exact-active",ariaCurrentValue:b="page",disabled:y=!1,external:p=!1,class:x=""}=r,u=t.getCurrent(),f=u.path===o,g=c?f:u&&typeof u.path=="string"?u.path.startsWith(o):!1,l=f?`aria-current="${b}"`:"",m=(x||"").split(/\s+/).filter(Boolean),k={};for(const E of m)k[E]=!0;const w={...k,[a]:g,[d]:f},_=i==="button",C=y?_?'disabled aria-disabled="true" tabindex="-1"':'aria-disabled="true" tabindex="-1"':"",h=p&&(i==="a"||!i)?'target="_blank" rel="noopener noreferrer"':"",T=E=>{if(y){E.preventDefault();return}p&&(i==="a"||!i)||(E.preventDefault(),s?t.replace(o):t.push(o))};return de`
|
|
126
|
-
${
|
|
127
|
+
`);c=Xt(c);let a=r;a||(a=new CSSStyleSheet),(a.cssRules.length===0||a.cssRules.length>0&&Array.from(a.cssRules).map(m=>m.cssText).join("")!==c)&&a.replaceSync(c),e.adoptedStyleSheets=[jt(),Ye(),a],o(a)}let B=null;function Ht(e){B=e}function It(){B=null}function sr(){if(!B)throw new Error("useEmit must be called during component render");const e=B.emit;return(t,n)=>e(t,n)}function Se(e){e._hookCallbacks||Object.defineProperty(e,"_hookCallbacks",{value:{},writable:!0,enumerable:!1,configurable:!1})}function ar(e){if(!B)throw new Error("useOnConnected must be called during component render");Se(B),B._hookCallbacks.onConnected=e}function cr(e){if(!B)throw new Error("useOnDisconnected must be called during component render");Se(B),B._hookCallbacks.onDisconnected=e}function lr(e){if(!B)throw new Error("useOnAttributeChanged must be called during component render");Se(B),B._hookCallbacks.onAttributeChanged=e}function ur(e){if(!B)throw new Error("useOnError must be called during component render");Se(B),B._hookCallbacks.onError=e}function fr(e){if(!B)throw new Error("useProps must be called during component render");Se(B),B._hookCallbacks.props={...B._hookCallbacks.props||{},...e};const t=B;try{const r=Object.keys(e||{});for(const o of r){if(typeof o!="string"||o.startsWith("_"))continue;const i=Object.getOwnPropertyDescriptor(t,o);if(!(i&&!i.configurable))try{let c=Object.prototype.hasOwnProperty.call(t,o)?t[o]:void 0;Object.defineProperty(t,o,{configurable:!0,enumerable:!0,get(){try{const a=t&&t._host;if(a){const d=oe(o),m=a.getAttribute(d);if(m!==null){const y=typeof e[o];return y==="boolean"?m===""||m==="true":y==="number"?Number(m):m}if(typeof a[o]<"u"){const y=a[o];return R(y)||y&&typeof y=="object"&&"value"in y&&!(y instanceof Node)?y.value:typeof e[o]==="boolean"&&typeof y=="string"?y===""||y==="true":y}}}catch{}return c},set(a){c=a}})}catch{}}}catch{}return new Proxy({},{get(r,o){if(typeof o!="string")return;const i=e[o];try{const c=t&&t._host;if(c){if(c instanceof HTMLElement||typeof c.getAttribute=="function"&&typeof c.hasAttribute=="function"){const d=o.replace(/([A-Z])/g,"-$1").toLowerCase(),m=c.getAttribute(d);if(m!==null)return typeof i=="boolean"?m===""||m==="true":typeof i=="number"?Number(m):m}const a=c[o];if(typeof a<"u"&&a!=="")return typeof i=="boolean"&&i===!1&&a===""?i:R(a)||a&&typeof a=="object"&&"value"in a&&!(a instanceof Node)?a.value:typeof i=="boolean"&&typeof a=="string"?a==="true"||a!==""&&a!=="false":typeof i=="number"&&typeof a=="string"&&!Number.isNaN(Number(a))?Number(a):a}}catch{}const s=t[o];return typeof i=="boolean"&&s===""?i===!1?i:!0:R(s)||s&&typeof s=="object"&&"value"in s&&!(s instanceof Node)?s.value:s!=null&&s!==""?typeof i=="boolean"&&typeof s=="string"?s==="true":typeof i=="number"&&typeof s=="string"&&!Number.isNaN(Number(s))?Number(s):s:i},has(r,o){return typeof o=="string"&&(o in t||o in e)},ownKeys(){return Array.from(new Set([...Object.keys(e),...Object.keys(t||{})]))},getOwnPropertyDescriptor(){return{configurable:!0,enumerable:!0}}})}function dr(e){if(!B)throw new Error("useStyle must be called during component render");Se(B);try{const t=e();Object.defineProperty(B,"_computedStyle",{value:t,writable:!0,enumerable:!1,configurable:!0})}catch(t){re("Error in useStyle callback:",t),Object.defineProperty(B,"_computedStyle",{value:"",writable:!0,enumerable:!1,configurable:!0})}}const Ce=new Map,Ft=Symbol.for("cer.registry");if(typeof window<"u"){const e=globalThis;e[Ft]||(e[Ft]=Ce)}function pr(e,t){if(!t.render)throw new Error("Component must have a render function");return typeof window>"u"?class{constructor(){}}:class extends HTMLElement{context;_refs={};_listeners=[];_watchers=new Map;_renderTimeoutId=null;_mounted=!1;_hasError=!1;_initializing=!0;_componentId;_styleSheet=null;_lastHtmlStringForJitCSS="";get lastHtmlStringForJitCSS(){return this._lastHtmlStringForJitCSS}get isLoading(){return this._templateLoading}get lastError(){return this._templateError}_cfg;_lastRenderTime=0;_renderCount=0;_templateLoading=!1;_templateError=null;constructor(){super(),this.attachShadow({mode:"open"}),this._cfg=Ce.get(e)||t,this._componentId=`${e}-${Math.random().toString(36).substr(2,9)}`;const n=this._initContext(t),r=(i,s,c)=>{Object.defineProperty(i,s,{value:c,writable:!1,enumerable:!1,configurable:!1})};r(n,"refs",this._refs),r(n,"requestRender",()=>this.requestRender()),r(n,"_requestRender",()=>this._requestRender()),r(n,"_componentId",this._componentId),r(n,"_triggerWatchers",(i,s)=>this._triggerWatchers(i,s)),this.context=n,P(()=>{r(n,"_host",this)}),r(this.context,"emit",(i,s,c)=>{const a={detail:s,bubbles:!0,composed:!0,...c||{}},d=new CustomEvent(i,a);this.dispatchEvent(d);const m=i.indexOf(":");if(m>0){const y=i.substring(0,m),p=i.substring(m+1),k=p.includes("-")?`${y}:${p.split("-").map((f,u)=>u===0?f:f.charAt(0).toUpperCase()+f.slice(1)).join("")}`:`${y}:${p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`;k!==i&&P(()=>{this.dispatchEvent(new CustomEvent(k,a))})}return!d.defaultPrevented});const o=Ce.get(e)||t;for(const i in o){const s=o[i];typeof s=="function"&&(this.context[i]=(...c)=>s(...c,this.context))}if(o.props)for(const i in o.props){let s=this[i];Object.defineProperty(this,i,{get(){return s},set(c){const a=s;s=c,this.context[i]=c,this._initializing||(this._applyProps(o),a!==c&&this._requestRender())},enumerable:!0,configurable:!0})}this._initializing=!1,this._initWatchers(o),this._applyProps(o),this._render(o)}connectedCallback(){this._runLogicWithinErrorBoundary(t,()=>{this._applyProps(t),this._requestRender(),wn(t,this.context,this._mounted,n=>{this._mounted=n})})}disconnectedCallback(){this._runLogicWithinErrorBoundary(t,()=>{xn(t,this.context,this._listeners,()=>{this._listeners=[]},()=>{this._watchers.clear()},n=>{this._templateLoading=n},n=>{this._templateError=n},n=>{this._mounted=n})})}attributeChangedCallback(n,r,o){this._runLogicWithinErrorBoundary(t,()=>{this._applyProps(t),r!==o&&this._requestRender(),kn(t,n,r,o,this.context)})}static get observedAttributes(){return t.props?Object.keys(t.props).map(oe):[]}_render(n){this._runLogicWithinErrorBoundary(n,()=>{rr(this.shadowRoot,n,this.context,this._refs,r=>{this._lastHtmlStringForJitCSS=r,typeof this.onHtmlStringUpdate=="function"&&this.onHtmlStringUpdate(r)},r=>{this._templateLoading=r,typeof this.onLoadingStateChange=="function"&&this.onLoadingStateChange(r)},r=>{this._templateError=r,typeof this.onErrorStateChange=="function"&&this.onErrorStateChange(r)},r=>this._applyStyle(n,r))})}requestRender(){this._requestRender()}_requestRender(){this._runLogicWithinErrorBoundary(this._cfg,()=>{we(()=>{or(()=>this._render(this._cfg),this._lastRenderTime,this._renderCount,n=>{this._lastRenderTime=n},n=>{this._renderCount=n},this._renderTimeoutId,n=>{this._renderTimeoutId=n})},this._componentId)})}_applyStyle(n,r){this._runLogicWithinErrorBoundary(n,()=>{ir(this.shadowRoot,this.context,r,this._styleSheet,o=>{this._styleSheet=o})})}_runLogicWithinErrorBoundary(n,r){this._hasError&&(this._hasError=!1);try{r()}catch(o){this._hasError=!0,n.onError&&n.onError(o,this.context)}}_initContext(n){try{let r=function(i,s=""){if(Array.isArray(i))return new Proxy(i,{get(c,a,d){const m=Reflect.get(c,a,d);return typeof m=="function"&&typeof a=="string"&&["push","pop","shift","unshift","splice","sort","reverse"].includes(a)?function(...p){const k=m.apply(c,p);if(!o._initializing){const f=s||"root";o._triggerWatchers(f,c),we(()=>o._render(n),o._componentId)}return k}:m},set(c,a,d){if(c[a]=d,!o._initializing){const m=s?`${s}.${String(a)}`:String(a);o._triggerWatchers(m,d),we(()=>o._render(n),o._componentId)}return!0},deleteProperty(c,a){if(delete c[a],!o._initializing){const d=s?`${s}.${String(a)}`:String(a);o._triggerWatchers(d,void 0),we(()=>o._render(n),o._componentId)}return!0}});if(i&&typeof i=="object"){if(R(i))return i;for(const c in i){const a=s?`${s}.${c}`:c;i[c]=r(i[c],a)}return new Proxy(i,{set(c,a,d){const m=s?`${s}.${String(a)}`:String(a);return c[a]=r(d,m),o._initializing||(o._triggerWatchers(m,c[a]),we(()=>o._render(n),o._componentId)),!0},get(c,a,d){return Reflect.get(c,a,d)}})}return i};const o=this;return r({...n.props?Object.fromEntries(Object.entries(n.props).map(([i,s])=>[i,s.default])):{}})}catch{return{}}}_initWatchers(n){this._runLogicWithinErrorBoundary(n,()=>{mn(this.context,this._watchers,{})})}_triggerWatchers(n,r){yn(this.context,this._watchers,n,r)}_applyProps(n){this._runLogicWithinErrorBoundary(n,()=>{try{vn(this,n,this.context)}catch(r){this._hasError=!0,n.onError&&n.onError(r,this.context)}})}}}function gt(e,t){let n=oe(e);n.includes("-")||(n=`cer-${n}`);let r={};const o={props:{},onConnected:i=>{r.onConnected&&r.onConnected()},onDisconnected:i=>{r.onDisconnected&&r.onDisconnected()},onAttributeChanged:(i,s,c,a)=>{r.onAttributeChanged&&r.onAttributeChanged(i,s,c)},onError:(i,s)=>{r.onError&&i&&r.onError(i)},render:i=>{const s=i._componentId||`${n}-${Math.random().toString(36).substr(2,9)}`;Y.setCurrentComponent(s,()=>{i.requestRender&&i.requestRender()});try{Ht(i);const c=t();if(i._hookCallbacks){const a=i._hookCallbacks;if(a.onConnected&&(r.onConnected=a.onConnected),a.onDisconnected&&(r.onDisconnected=a.onDisconnected),a.onAttributeChanged&&(r.onAttributeChanged=a.onAttributeChanged),a.onError&&(r.onError=a.onError),a.style&&(i._styleCallback=a.style),a.props){const d=a.props;o.props=Object.fromEntries(Object.entries(d).map(([m,y])=>[m,{type:typeof y=="boolean"?Boolean:typeof y=="number"?Number:typeof y=="string"?String:Function,default:y}])),Ce.set(n,o)}}return c}finally{It(),Y.clearCurrentComponent()}}};if(Ce.set(n,o),typeof window<"u"){try{const i={_hookCallbacks:{},requestRender:()=>{}};if(Ht(i),t(),It(),i._hookCallbacks?.props){const s=i._hookCallbacks.props;o.props=Object.fromEntries(Object.entries(s).map(([c,a])=>[c,{type:typeof a=="boolean"?Boolean:typeof a=="number"?Number:typeof a=="string"?String:Function,default:a}])),Ce.set(n,o)}}catch{}customElements.get(n)||customElements.define(n,pr(n,o))}}class hr{map=new Map;maxSize;constructor(t){this.maxSize=t}get(t){const n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}set(t,n){if(this.map.delete(t),this.map.set(t,n),this.map.size>this.maxSize){const r=this.map.keys().next().value;r!==void 0&&this.map.delete(r)}}has(t){return this.map.has(t)}clear(){this.map.clear()}}const ft=new hr(500);function gr(e,t){if(e==null){re(`⚠️ Event handler for '@${t}' is ${e}. This will prevent the event from working. Use a function reference instead: @${t}="\${functionName}"`);return}typeof e!="function"&&re(`🚨 Potential infinite loop detected! Event handler for '@${t}' appears to be the result of a function call (${typeof e}) instead of a function reference. Change @${t}="\${functionName()}" to @${t}="\${functionName}" to pass the function reference instead of calling it immediately.`),e===void 0&&typeof e!="function"&&re(`💡 Tip: If your event handler function returns undefined, make sure you're passing the function reference, not calling it. Use @${t}="\${fn}" not @${t}="\${fn()}"`)}function he(e,t={},n,r){const o=r??t.key;return{tag:e,key:o,props:t,children:n}}function Re(e){return!!e&&typeof e=="object"&&(e.type==="AnchorBlock"||e.tag==="#anchor")}function Me(e){return typeof e=="object"&&e!==null&&"tag"in e&&!Re(e)}function mr(e,t){return e.key!=null?e:{...e,key:t}}function yr(e,t=[],n={}){const r={},o={},i={},s=[],c=/([:@#]?)([a-zA-Z0-9-:\.]+)(?:=("([^"\\]*(\\.[^"\\]*)*)"|'([^'\\]*(\\.[^'\\]*)*)'))?/g;let a;for(;a=c.exec(e);){const d=a[1],m=a[2],y=(a[4]||a[6])??"",p=a[3]===void 0&&a[6]===void 0,k=y.match(/^{{(\d+)}}$/);let f=p?!0:k?t[Number(k[1])]??null:y;k||(f==="true"?f=!0:f==="false"?f=!1:f==="null"?f=null:isNaN(Number(f))||(f=Number(f)));const u=["model","bind","show","class","style","ref","when"];if(d===":"){const[h,l]=m.split(":"),[g,...v]=h.split(".");if(u.includes(g)){const x=[...v],S=g==="model"&&l?`model:${l}`:g;i[S]={value:f,modifiers:x,arg:l}}else if(m==="disabled"){let x=f;x&&R(x)&&(x=x.value);const S=typeof x;if(x===""||S==="boolean"||S==="string"&&(x==="true"||x==="false")||x==null||S==="number")r[m]=x;else{let w=f;w&&R(w)&&(w=w.value),o[m]=w}s.push(m)}else{let x=f;x&&R(x)&&(x=x.value),o[m]=x,s.push(m)}}else if(d==="@"){const[h,...l]=m.split("."),g=l;gr(f,h);const v=typeof f=="function"?f:typeof n[f]=="function"?n[f]:void 0;if(v){const x=E=>{if(g.includes("prevent")&&E.preventDefault(),g.includes("stop")&&E.stopPropagation(),!(g.includes("self")&&E.target!==E.currentTarget))return g.includes("once")&&E.currentTarget?.removeEventListener(h,x),v(E)},S="on"+h.charAt(0).toUpperCase()+h.slice(1);r[S]=x}}else m==="ref"?r.ref=f:o[m]=f}return{props:r,attrs:o,directives:i,bound:s}}function mt(e){if(!Me(e)||Re(e))return e;const t=e.props?.directives;if(t&&t.when){const n=t.when.value,{when:r,...o}=t,i={...e.props};Object.keys(o).length>0?i.directives=o:delete i.directives;const s={...e,props:i};return Array.isArray(s.children)&&(s.children=s.children.map(a=>typeof a=="object"&&a!==null?mt(a):a)),{tag:"#anchor",key:e.key!=null?`when-${e.key}`:`when-${e.tag}`,children:n?[s]:[]}}if(Array.isArray(e.children)){const n=e.children.map(r=>typeof r=="object"&&r!==null?mt(r):r);return{...e,children:n}}return e}function br(e,t,n){const r=Ne.length>0?Ne[Ne.length-1]:void 0,o=n??r,i=!n&&t.length===0,s=i?e.join("<!--TEMPLATE_DELIM-->"):null;if(i&&s){const w=ft.get(s);if(w)return w}function c(w,T){return he("#text",{},w,T)}function a(w,T){const $=typeof w=="string"?ae(w):w;return he("#text",{},$,T)}let d="";for(let w=0;w<e.length;w++)d+=e[w],w<t.length&&(d+=`{{${w}}}`);const m=/<!--[\s\S]*?-->|<\/?([a-zA-Z0-9-]+)((?:\s+[^\s=>/]+(?:\s*=\s*(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|[^\s>]+))?)*)\s*\/?>|{{(\d+)}}|([^<]+)/g,y=[];let p,k=[],f=null,u={},h,l=0,g=[];function v(w){!w||typeof w!="object"||Re(w)||(w.props||w.attrs?(w.props&&(u.props||(u.props={}),Object.assign(u.props,w.props)),w.attrs&&(u.attrs||(u.attrs={}),Object.keys(w.attrs).forEach(T=>{if(T==="style"&&u.attrs.style){const $=u.attrs.style.replace(/;?\s*$/,""),b=w.attrs.style.replace(/^;?\s*/,"");u.attrs.style=$+"; "+b}else if(T==="class"&&u.attrs.class){const $=u.attrs.class.trim().split(/\s+/).filter(Boolean),b=w.attrs.class.trim().split(/\s+/).filter(Boolean),_=[...new Set([...$,...b])];u.attrs.class=_.join(" ")}else u.attrs[T]=w.attrs[T]}))):(u.props||(u.props={}),Object.assign(u.props,w)))}function x(w,T){const $=f?k:g;if(Re(w)){const b=w.key??T;let _=w.children;$.push({...w,key:b,children:_});return}if(Me(w)){$.push(mr(w,void 0));return}if(Array.isArray(w)){if(w.length===0)return;for(let b=0;b<w.length;b++){const _=w[b];Re(_)||Me(_)||Array.isArray(_)?x(_,`${T}-${b}`):_!==null&&typeof _=="object"?St(_)?$.push(he("#raw",{},_.__rawHTML,`${T}-${b}`)):v(_):$.push(c(String(_),`${T}-${b}`))}return}if(w!==null&&typeof w=="object"){if(St(w)){const b=w.__rawHTML??"";$.push(he("#raw",{},b,T));return}v(w);return}$.push(c(String(w),T))}const S=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);for(;p=m.exec(d);)if(!(p[0].startsWith("<!--")&&p[0].endsWith("-->"))){if(p[1]){const w=p[1],T=p[0][1]==="/",$=p[0][p[0].length-2]==="/"||S.has(w),{props:b,attrs:_,directives:j,bound:L}=yr(p[2]||"",t,o),A={props:{},attrs:{}};for(const M in b)A.props[M]=b[M];for(const M in _)A.attrs[M]=_[M];A.attrs&&Object.prototype.hasOwnProperty.call(A.attrs,"key")&&!(A.props&&Object.prototype.hasOwnProperty.call(A.props,"key"))&&P(()=>{A.props.key=A.attrs.key});try{const M={input:["value","checked","readonly","required","placeholder","maxlength","minlength"],textarea:["value","readonly","required","placeholder","maxlength","minlength"],select:["value","required","multiple"],option:["selected","value"],video:["muted","autoplay","controls","loop","playsinline"],audio:["muted","autoplay","controls","loop"],img:["src","alt","width","height"],button:["type","name","value","autofocus","form"]},N=w.toLowerCase(),de=M[N]??[];if(A.attrs){for(const U of de)if(L&&L.includes(U)&&U in A.attrs&&!(A.props&&U in A.props)){let D=A.attrs[U];if(D&&R(D))D=D.value,A.props[U]=D,delete A.attrs[U];else{const q=typeof D;U==="disabled"?(D===""||q==="boolean"||q==="string"&&(D==="true"||D==="false")||D==null||q==="number")&&(A.props[U]=D,P(()=>{const I=globalThis;I.__VDOM_DISABLED_PROMOTIONS||(I.__VDOM_DISABLED_PROMOTIONS=[]),I.__VDOM_DISABLED_PROMOTIONS.push({phase:"compiler-promotion",tag:w,propName:U,value:D,time:Date.now(),stack:new Error().stack})}),delete A.attrs[U]):(D===""||q==="string"||q==="number"||q==="boolean"||D==null)&&(A.props[U]=D,delete A.attrs[U])}}}if((w.includes("-")||!!o?.__customElements?.has?.(w))&&(A.isCustomElement=!0,L&&A.attrs)){const U=new Set(["id","name","data-key","key"]);for(const D of L)if(D in A.attrs&&!(A.props&&D in A.props)){const q=D.includes("-")?wt(D):D;let ie=A.attrs[D];A.props[q]=ie,U.has(D)||delete A.attrs[D]}}}catch{}if(j&&Object.keys(j).some(M=>M==="model"||M.startsWith("model:")))try{const M=Symbol.for("cer.registry"),N=globalThis[M],de=!!(N&&typeof N.has=="function"&&N.has(w)),G=!!(o&&(o.__customElements instanceof Set&&o.__customElements.has(w)||Array.isArray(o.__isCustomElements)&&o.__isCustomElements.includes(w)));if(!!(w.includes("-")||G||de))for(const q of Object.keys(j)){if(q!=="model"&&!q.startsWith("model:"))continue;const ie=j[q],Te=ie.arg??(q.includes(":")?q.split(":",2)[1]:void 0),I=ie.value,le=Te??"modelValue",O=J,F=Xe,V=o?o._state||o:void 0;let W;typeof I=="string"&&o?W=O(V,I):W=I,A.props[le]=W;try{const pe=oe(le);A.attrs||(A.attrs={}),W!=null&&(typeof W=="string"||typeof W=="number"||typeof W=="boolean")&&(A.attrs[pe]=W)}catch{}A.isCustomElement=!0;const Z=`update:${oe(le)}`.replace(/-([a-z])/g,(pe,ue)=>ue.toUpperCase()),on="on"+Z.charAt(0).toUpperCase()+Z.slice(1);A.props[on]=function(pe){const ue=pe.detail!==void 0?pe.detail:pe.target?pe.target.value:void 0;if(V)if(I&&R(I)){const ye=I.value;(Array.isArray(ue)&&Array.isArray(ye)?JSON.stringify([...ue].sort())!==JSON.stringify([...ye].sort()):ue!==ye)&&(I.value=ue,o?.requestRender?o.requestRender():o?._requestRender&&o._requestRender())}else{const ye=O(V,typeof I=="string"?I:String(I));(Array.isArray(ue)&&Array.isArray(ye)?JSON.stringify([...ue].sort())!==JSON.stringify([...ye].sort()):ue!==ye)&&(F(V,typeof I=="string"?I:String(I),ue),o?.requestRender?o.requestRender():o?._requestRender&&o._requestRender())}},delete j[q]}}catch{}if(Object.keys(j).length>0&&(A.directives={...j}),T){const M=he(f,u,k.length===1&&Me(k[0])&&k[0].tag==="#text"?typeof k[0].children=="string"?k[0].children:"":k.length?k:void 0,h),N=y.pop();N?(f=N.tag,u=N.props,h=N.key,k=N.children,k.push(M)):(g.push(M),f=null,u={},h=void 0,k=[])}else $?f?k.push(he(w,A,void 0,void 0)):g.push(he(w,A,void 0,void 0)):(f&&y.push({tag:f,props:u,children:k,key:h}),f=w,u=A,k=[])}else if(typeof p[3]<"u"){const w=Number(p[3]),T=t[w],$=`interp-${w}`;x(T,$)}else if(p[4]){const w=p[4],T=f?k:g,$=w.split(/({{\d+}})/);for(const b of $){if(!b)continue;const _=b.match(/^{{(\d+)}}$/);if(_){const j=Number(_[1]),L=t[j],A=`interp-${j}`;x(L,A)}else{const j=`text-${l++}`;T.push(a(b,j))}}}}const C=g.filter(w=>Me(w)&&w.tag==="#text"?typeof w.children=="string"&&w.children.trim()!=="":!0).map(w=>mt(w));if(C.length===1){const w=C[0];return i&&s&&ft.set(s,w),w}else if(C.length>1){const w=C;return i&&s&&ft.set(s,w),w}return he("div",{},"","fallback-root")}function ge(e,...t){const n=t[t.length-1],r=typeof n=="object"&&n&&!Array.isArray(n)?n:void 0;return br(e,t,r)}function vr(e,t){return He(!e,t)}function wr(e,t){const n=!e||e.length===0;return He(n,t)}function xr(e,t){const n=!!(e&&e.length>0);return He(n,t)}function kr(e,t,n){const r=[];return e.forEach((o,i)=>{t(o,i)&&r.push({item:o,originalIndex:i})}),r.map(({item:o,originalIndex:i},s)=>{const c=typeof o=="object"&&o!=null?o?.key??o?.id??`filtered-${i}`:`filtered-${i}`;return z(n(o,i,s),`each-where-${c}`)})}function $r(e,t){const n=e?.length??0;return n===0&&t.empty?z(t.empty,"switch-length-empty"):n===1&&t.one?z(t.one(e[0]),"switch-length-one"):t.exactly?.[n]?z(t.exactly[n](e),`switch-length-${n}`):n>1&&t.many?z(t.many(e),"switch-length-many"):z([],"switch-length-fallback")}function Er(e,t,n){const r=new Map;return e.forEach(o=>{const i=t(o);r.has(i)||r.set(i,[]),r.get(i).push(o)}),Array.from(r.entries()).map(([o,i],s)=>z(n(o,i,s),`each-group-${o}`))}function Cr(e,t,n,r){const o=n*t,i=Math.min(o+t,e.length);return e.slice(o,i).map((c,a)=>{const d=o+a,m=typeof c=="object"&&c!=null?c?.key??c?.id??`page-${d}`:`page-${d}`;return z(r(c,d,a),`each-page-${m}`)})}function _r(e,t){return e.loading&&t.loading?z(t.loading,"promise-loading"):e.error&&t.error?z(t.error(e.error),"promise-error"):e.data!==void 0&&t.success?z(t.success(e.data),"promise-success"):t.idle?z(t.idle,"promise-idle"):z([],"promise-fallback")}function X(e,t){const n=typeof window<"u"&&window.matchMedia?.(e)?.matches;return He(!!n,t)}const fe={sm:"(min-width:640px)",md:"(min-width:768px)",lg:"(min-width:1024px)",xl:"(min-width:1280px)","2xl":"(min-width:1536px)",dark:"(prefers-color-scheme: dark)"},xt=["sm","md","lg","xl","2xl"],tn={sm:e=>X(fe.sm,e),md:e=>X(fe.md,e),lg:e=>X(fe.lg,e),xl:e=>X(fe.xl,e),"2xl":e=>X(fe["2xl"],e),dark:e=>X(fe.dark,e),light:e=>X("(prefers-color-scheme: light)",e),touch:e=>X("(hover: none) and (pointer: coarse)",e),mouse:e=>X("(hover: hover) and (pointer: fine)",e),reducedMotion:e=>X("(prefers-reduced-motion: reduce)",e),highContrast:e=>X("(prefers-contrast: high)",e),portrait:e=>X("(orientation: portrait)",e),landscape:e=>X("(orientation: landscape)",e)};function Sr(e,t){const n=[];e.includes("dark")?n.push(fe.dark):e.includes("light")&&n.push("(prefers-color-scheme: light)");const r=e.filter(s=>xt.includes(s)),o=r[r.length-1];o&&o in fe&&n.push(fe[o]);const i=n.length>0?n.join(" and "):"all";return X(i,t)}function Ar(e){const t=[];return e.base&&t.push(z(e.base,"responsive-base")),xt.forEach(n=>{const r=e[n];r&&t.push(tn[n](r))}),t}function Tr(e){const t=[];let n=null;return{case(r,o){const i=typeof r=="function"?r:s=>s===r;return t.push({condition:i,content:o}),this},when(r,o){return t.push({condition:r,content:o}),this},otherwise(r){return n=r,this},done(){for(let r=0;r<t.length;r++){const{condition:o,content:i}=t[r];if(o(e))return z(i,`switch-case-${r}`)}return z(n||[],"switch-otherwise")}}}class ve extends EventTarget{handlers={};static instance;eventCounters=new Map;static getInstance(){return ve.instance||(ve.instance=new ve),ve.instance}emit(t,n){const r=Date.now(),o=this.eventCounters.get(t);if(!o||r-o.window>1e3)this.eventCounters.set(t,{count:1,window:r});else if(o.count++,o.count>50&&o.count>100)return;this.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!1,cancelable:!0}));const i=this.handlers[t];i&&i.forEach(s=>{try{s(n)}catch(c){H(`Error in global event handler for "${t}":`,c)}})}on(t,n){return this.handlers[t]||(this.handlers[t]=new Set),this.handlers[t].add(n),()=>this.off(t,n)}off(t,n){const r=this.handlers[t];r&&r.delete(n)}offAll(t){delete this.handlers[t]}listen(t,n,r){return this.addEventListener(t,n,r),()=>this.removeEventListener(t,n)}once(t,n){return new Promise(r=>{const o=this.on(t,i=>{o(),n(i),r(i)})})}getActiveEvents(){return Object.keys(this.handlers).filter(t=>this.handlers[t]&&this.handlers[t].size>0)}clear(){this.handlers={}}getHandlerCount(t){return this.handlers[t]?.size||0}getEventStats(){const t={};for(const[n,r]of this.eventCounters.entries())t[n]={count:r.count,handlersCount:this.getHandlerCount(n)};return t}resetEventCounters(){this.eventCounters.clear()}}const Ae=ve.getInstance(),Lr=(e,t)=>Ae.emit(e,t),Or=(e,t)=>Ae.on(e,t),jr=(e,t)=>Ae.off(e,t),Pr=(e,t)=>Ae.once(e,t),Mr=(e,t,n)=>Ae.listen(e,t,n);function yt(e){let t={...e};const n=[];function r(c){n.push(c),c(t)}function o(){return t}function i(c){const a=typeof c=="function"?c(t):c;t={...t,...a},s()}function s(){n.forEach(c=>c(t))}return{subscribe:r,getState:o,setState:i}}const bt=e=>e?typeof URLSearchParams>"u"?{}:Object.fromEntries(new URLSearchParams(e)):{},se=(e,t)=>{for(const n of e){const r=[],o=n.path.replace(/:[^/]+/g,c=>(r.push(c.slice(1)),"([^/]+)")),i=new RegExp(`^${o}$`),s=t.match(i);if(s){const c={};return r.forEach((a,d)=>{c[a]=s[d+1]}),{route:n,params:c}}}return{route:null,params:{}}},dt={};async function nn(e){if(e.component)return e.component;if(e.load){if(dt[e.path])return dt[e.path];try{const t=await e.load();return dt[e.path]=t.default,t.default}catch{throw new Error(`Failed to load component for route: ${e.path}`)}}throw new Error(`No component or loader defined for route: ${e.path}`)}function rn(e){const{routes:t,base:n="",initialUrl:r}=e;let o,i,s,c,a,d,m;const y=async(u,h)=>{const l=t.find(g=>se([g],u.path).route!==null);if(l?.beforeEnter)try{const g=await l.beforeEnter(u,h);return typeof g=="string"?(await f(g,!0),!1):g!==!1}catch(g){return H("beforeEnter error",g),!1}return!0},p=async(u,h)=>{const l=t.find(g=>se([g],u.path).route!==null);if(l?.onEnter)try{const g=await l.onEnter(u,h);return typeof g=="string"?(await f(g,!0),!1):g!==!1}catch(g){return H("onEnter error",g),!1}return!0},k=(u,h)=>{const l=t.find(g=>se([g],u.path).route!==null);if(l?.afterEnter)try{l.afterEnter(u,h)}catch(g){H("afterEnter error",g)}},f=async(u,h=!1)=>{try{const l={path:u.replace(n,"")||"/",query:{}},g=se(t,l.path);if(!g)throw new Error(`No route found for ${l.path}`);const v=s.getState(),x={path:l.path,params:g.params,query:l.query};if(!await y(x,v)||!await p(x,v))return;typeof window<"u"&&typeof document<"u"&&(h?window.history.replaceState({},"",n+u):window.history.pushState({},"",n+u)),s.setState(x),k(x,v)}catch(l){H("Navigation error:",l)}};if(typeof window<"u"&&typeof document<"u"&&typeof r>"u"){o=()=>{const h=new URL(window.location.href),l=h.pathname.replace(n,"")||"/",g=bt(h.search);return{path:l,query:g}},i=o();const u=se(t,i.path);s=yt({path:i.path,params:u.params,query:i.query}),c=async(h=!1)=>{const l=o();await f(l.path,h)},window.addEventListener("popstate",()=>c(!0)),a=h=>f(h,!1),d=h=>f(h,!0),m=()=>window.history.back()}else{o=()=>{const l=new URL(r||"/","http://localhost"),g=l.pathname.replace(n,"")||"/",v=bt(l.search);return{path:g,query:v}},i=o();const u=se(t,i.path);s=yt({path:i.path,params:u.params,query:i.query}),c=async()=>{const l=o();await h(l.path)};const h=async l=>{try{const g={path:l.replace(n,"")||"/",query:{}},v=se(t,g.path);if(!v)throw new Error(`No route found for ${g.path}`);const x=s.getState(),S={path:g.path,params:v.params,query:g.query},E=t.find(C=>se([C],S.path).route!==null);if(E?.beforeEnter)try{const C=await E.beforeEnter(S,x);if(typeof C=="string"){await h(C);return}if(C===!1)return}catch{return}if(E?.onEnter)try{const C=await E.onEnter(S,x);if(typeof C=="string"){await h(C);return}if(C===!1)return}catch{return}if(s.setState(S),E?.afterEnter)try{E.afterEnter(S,x)}catch{}}catch{}};a=async l=>h(l),d=async l=>h(l),m=()=>{}}return{store:s,push:a,replace:d,back:m,subscribe:s.subscribe,matchRoute:u=>se(t,u),getCurrent:()=>s.getState(),resolveRouteComponent:nn}}function Nr(e,t){return se(e,t)}function Rr(e){const t=rn(e);return gt("router-view",(n={},r={})=>{const{onConnected:o}=r;if(o&&o(()=>{t&&typeof t.subscribe=="function"&&t.subscribe(()=>{})}),!t)return ge`<div>Router not initialized.</div>`;const i=t.getCurrent(),{path:s}=i,c=t.matchRoute(s);return c.route?t.resolveRouteComponent(c.route).then(a=>{if(typeof a=="string")return{tag:a,props:{},children:[]};if(typeof a=="function"){const d=a();return(d instanceof Promise?d:Promise.resolve(d)).then(y=>typeof y=="string"?{tag:y,props:{},children:[]}:y)}return ge`<div>Invalid route component</div>`}).catch(()=>ge`<div>Invalid route component</div>`):ge`<div>Not found</div>`}),gt("router-link",(n={},r={})=>{const{to:o="",tag:i="a",replace:s=!1,exact:c=!1,activeClass:a="active",exactActiveClass:d="exact-active",ariaCurrentValue:m="page",disabled:y=!1,external:p=!1,class:k=""}=n,f=t.getCurrent(),u=f.path===o,h=c?u:f&&typeof f.path=="string"?f.path.startsWith(o):!1,l=u?`aria-current="${m}"`:"",g=(k||"").split(/\s+/).filter(Boolean),v={};for(const T of g)v[T]=!0;const x={...v,[a]:h,[d]:u},S=i==="button",E=y?S?'disabled aria-disabled="true" tabindex="-1"':'aria-disabled="true" tabindex="-1"':"",C=p&&(i==="a"||!i)?'target="_blank" rel="noopener noreferrer"':"",w=T=>{if(y){T.preventDefault();return}p&&(i==="a"||!i)||(T.preventDefault(),s?t.replace(o):t.push(o))};return ge`
|
|
128
|
+
${en().when(S,ge`
|
|
127
129
|
<button
|
|
128
130
|
part="button"
|
|
129
|
-
:class="${
|
|
131
|
+
:class="${x}"
|
|
130
132
|
${l}
|
|
133
|
+
${E}
|
|
131
134
|
${C}
|
|
132
|
-
${
|
|
133
|
-
@click="${T}"
|
|
135
|
+
@click="${w}"
|
|
134
136
|
><slot></slot></button>
|
|
135
|
-
`).otherwise(
|
|
137
|
+
`).otherwise(ge`
|
|
136
138
|
<a
|
|
137
139
|
part="link"
|
|
138
140
|
href="${o}"
|
|
139
|
-
:class="${
|
|
141
|
+
:class="${x}"
|
|
140
142
|
${l}
|
|
143
|
+
${E}
|
|
141
144
|
${C}
|
|
142
|
-
${
|
|
143
|
-
@click="${T}"
|
|
145
|
+
@click="${w}"
|
|
144
146
|
><slot></slot></a>
|
|
145
147
|
`).done()}
|
|
146
|
-
`}),t}exports.GlobalEventBus=
|
|
148
|
+
`}),t}exports.GlobalEventBus=ve;exports.Transition=Qn;exports.TransitionGroup=er;exports.anchorBlock=z;exports.component=gt;exports.computed=dn;exports.createStore=yt;exports.createTransitionPreset=tr;exports.css=Jt;exports.decodeEntities=ae;exports.each=Xn;exports.eachGroup=Er;exports.eachPage=Cr;exports.eachWhere=kr;exports.emit=Lr;exports.eventBus=Ae;exports.getTransitionStyleSheet=Ye;exports.html=ge;exports.initRouter=Rr;exports.listen=Mr;exports.match=en;exports.matchRoute=se;exports.matchRouteSSR=Nr;exports.mediaVariants=fe;exports.off=jr;exports.on=Or;exports.once=Pr;exports.parseQuery=bt;exports.ref=fn;exports.renderToString=Ze;exports.resolveRouteComponent=nn;exports.responsive=tn;exports.responsiveOrder=xt;exports.responsiveSwitch=Ar;exports.switchOn=Tr;exports.switchOnLength=$r;exports.switchOnPromise=_r;exports.transitionPresets=_e;exports.unless=vr;exports.unsafeHTML=gn;exports.useEmit=sr;exports.useOnAttributeChanged=lr;exports.useOnConnected=ar;exports.useOnDisconnected=cr;exports.useOnError=ur;exports.useProps=fr;exports.useRouter=rn;exports.useStyle=dr;exports.watch=pn;exports.when=He;exports.whenEmpty=wr;exports.whenMedia=X;exports.whenNotEmpty=xr;exports.whenVariants=Sr;
|
|
147
149
|
//# sourceMappingURL=custom-elements-runtime.cjs.js.map
|