@jasonshimmy/custom-elements-runtime 2.0.2 → 2.1.1

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/README.md CHANGED
@@ -205,6 +205,30 @@ Below is the **complete list of public symbols** exported by the runtime and its
205
205
  | `renderToString` | Render a VNode tree to HTML for server-side rendering. |
206
206
  | `VNode` (type) | The runtime VNode shape used by renderers and SSR. |
207
207
 
208
+ ### Global Styles (CSS)
209
+
210
+ **Package:** `@jasonshimmy/custom-elements-runtime/css/style.css`
211
+
212
+ | Export | Description |
213
+ | ----------- | -------------------------------------------------------- |
214
+ | `style.css` | CSS export that contains CSS variables and a base reset. |
215
+
216
+ ### Variables (CSS)
217
+
218
+ **Package:** `@jasonshimmy/custom-elements-runtime/css/variables.css`
219
+
220
+ | Export | Description |
221
+ | --------------- | ------------------------------------------------------------- |
222
+ | `variables.css` | CSS export that contains design tokens (colors, fonts, etc.). |
223
+
224
+ ### Reset (CSS)
225
+
226
+ **Package:** `@jasonshimmy/custom-elements-runtime/css/reset.css`
227
+
228
+ | Export | Description |
229
+ | ----------- | ------------------------------------------------- |
230
+ | `reset.css` | CSS export that contains a base reset for styles. |
231
+
208
232
  ## 📖 Documentation Index
209
233
 
210
234
  Explore the complete documentation for every runtime feature:
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./helpers-D3UjNfYY.cjs"),j=require("./logger-CqdBMdui.cjs"),Y=require("./transitions-Crm12oGl.cjs");function Je(e,r,n){if(n)for(const[t,s]of Object.entries(n)){let o,i={};if(Array.isArray(s)?(o=s[0],i=s[1]||{}):o=s,r.set(t,{callback:o,options:i,oldValue:p.getNestedValue(e,t)}),i.immediate)try{const a=p.getNestedValue(e,t);o(a,void 0,e)}catch(a){j.devError(`Error in immediate watcher for "${t}":`,a)}}}function Ye(e,r,n,t){const s=(i,a)=>{if(i===a)return!0;if(typeof i!=typeof a||typeof i!="object"||i===null||a===null)return!1;if(Array.isArray(i)&&Array.isArray(a))return i.length!==a.length?!1:i.every((c,g)=>s(c,a[g]));const f=i,u=a,S=Object.keys(f||{}),k=Object.keys(u||{});return S.length!==k.length?!1:S.every(c=>s(f[c],u[c]))},o=r.get(n);if(o&&!s(t,o.oldValue))try{o.callback(t,o.oldValue,e),o.oldValue=t}catch(i){j.devError(`Error in watcher for "${n}":`,i)}for(const[i,a]of r.entries())if(a.options.deep&&n.startsWith(i+"."))try{const f=p.getNestedValue(e,i);s(f,a.oldValue)||(a.callback(f,a.oldValue,e),a.oldValue=f)}catch(f){j.devError(`Error in deep watcher for "${i}":`,f)}}function Ae(e,r){return r===Boolean?e===""||e==="true":r===Number?Number(e):e}function Xe(e,r,n){if(r)for(const t in r){const s=r[t],o=p.toKebab(t),i=e.getAttribute(o);if(s.type===Function&&typeof e[t]=="function")n[t]=e[t];else if(i!==null)n[t]=Ae(i,s.type);else if(typeof e[t]<"u")try{const a=e[t];if(s.type===String&&a&&typeof a=="object")try{n[t]=Ae(String(a),s.type)}catch{n[t]=a}else s.type===Boolean&&typeof a=="boolean"||s.type===Number&&typeof a=="number"||s.type===Function&&typeof a=="function"?n[t]=a:n[t]=Ae(String(a),s.type)}catch{n[t]=e[t]}else"default"in s&&s.default!==void 0&&(n[t]=s.default)}}function Qe(e,r,n){if(!r.props){try{const t=n?._hookCallbacks?.props||{},s=Array.from(new Set([...Object.keys(e||{}),...Object.keys(t||{})]));for(const o of s){if(typeof o!="string"||o.startsWith("_"))continue;const i=Object.getOwnPropertyDescriptor(n,o);if(!(!Object.prototype.hasOwnProperty.call(t,o)&&i&&(i.get||i.set||!i.configurable)))try{Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get(){try{const f=p.toKebab(o),u=e.getAttribute(f);if(u!==null)return u;const S=e[o];let k;return p.isReactiveState(S)||S&&typeof S=="object"&&"value"in S&&!(S instanceof Node)?k=S.value:k=S,k}catch{return e[o]}}})}catch{}}}catch{}return}Xe(e,r.props,n)}function et(e,r,n,t){e.onConnected&&!n&&(e.onConnected(r),t(!0))}function tt(e,r,n,t,s,o,i,a){e.onDisconnected&&e.onDisconnected(r),n.forEach(f=>f()),t(),s(),o(!1),i(null),a(!1)}function nt(e,r,n,t,s){e.onAttributeChanged&&e.onAttributeChanged(r,n,t,s)}class rt{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(r,n){const t=this.cache.get(r);if(t){if(!t.isSecure){j.devWarn("Blocked cached dangerous expression:",r);return}try{this.cache.delete(r),this.cache.set(r,t)}catch{}return t.evaluator(n)}const s=this.createEvaluator(r);if(this.cache.size>=this.maxCacheSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}if(this.cache.set(r,s),!s.isSecure){j.devWarn("Blocked dangerous expression:",r);return}return s.evaluator(n)}static createEvaluator(r){if(this.hasDangerousPatterns(r))return{evaluator:()=>{},isSecure:!1};if(r.length>1e3)return{evaluator:()=>{},isSecure:!1};try{return{evaluator:this.createSafeEvaluator(r),isSecure:!0}}catch(n){return j.devWarn("Failed to create evaluator for expression:",r,n),{evaluator:()=>{},isSecure:!1}}}static hasDangerousPatterns(r){return this.dangerousPatterns.some(n=>n.test(r))}static createSafeEvaluator(r){const n=r.trim();if(n.startsWith("{")&&n.endsWith("}"))return this.createObjectEvaluator(r);if(/^ctx\.[a-zA-Z0-9_.]+$/.test(r.trim())){const t=r.trim().slice(4);return s=>p.getNestedValue(s,t)}return r.includes("ctx")||/[+\-*/%<>=&|?:[\]]/.test(r)?this.createSimpleEvaluator(r):t=>p.getNestedValue(t,r)}static createObjectEvaluator(r){const n=r.trim().slice(1,-1),t=this.parseObjectProperties(n);return s=>{const o={};for(const{key:i,value:a}of t)try{if(a.startsWith("ctx.")){const f=a.slice(4);o[i]=p.getNestedValue(s,f)}else o[i]=this.evaluateSimpleValue(a,s)}catch{o[i]=void 0}return o}}static parseObjectProperties(r){const n=[],t=r.split(",");for(const s of t){const o=s.indexOf(":");if(o===-1)continue;const i=s.slice(0,o).trim(),a=s.slice(o+1).trim(),f=i.replace(/^['"]|['"]$/g,"");n.push({key:f,value:a})}return n}static createSimpleEvaluator(r){return n=>{try{let t=r;const s=[];t=t.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,k=>`<<#${s.push(k)-1}#>>`);const o=t.match(/ctx\.[\w.]+/g)||[];for(const k of o){const c=k.slice(4),g=p.getNestedValue(n,c);if(g===void 0)return;const d=s.push(JSON.stringify(g))-1;t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${d}#>>`)}const i=/\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g,a=t.match(i)||[];for(const k of a){if(k.startsWith("ctx."))continue;const c=p.getNestedValue(n,k);if(c===void 0)return;const g=s.push(JSON.stringify(c))-1;t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${g}#>>`)}const f=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;let u;const S=new Set;for(;(u=f.exec(t))!==null;){const k=u[1];if(["true","false","null","undefined"].includes(k)||/^[0-9]+$/.test(k)||k==="ctx"||S.has(k))continue;S.add(k);const c=p.getNestedValue(n,k);if(c===void 0)return;const g=JSON.stringify(c),d=s.push(g)-1;k.includes(".")?t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${d}#>>`):t=t.replace(new RegExp("\\b"+k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","g"),`<<#${d}#>>`)}t=t.replace(/<<#(\d+)#>>/g,(k,c)=>s[Number(c)]);try{return this.evaluateBasicExpression(t)}catch{return}}catch{return}}}static evaluateBasicExpression(r){const n=this.tokenize(r);let t=0;function s(){return n[t]}function o(l){const E=n[t++];if(l&&!E)throw new Error(`Unexpected token EOF, expected ${l}`);if(l&&E&&E.type!==l&&E.value!==l)throw new Error(`Unexpected token ${E.type}/${E.value}, expected ${l}`);return E}function i(){return d()}function a(l){if(typeof l=="number")return l;if(l==null)return NaN;if(typeof l=="boolean")return l?1:0;const E=Number(l);return Number.isNaN(E)?NaN:E}function f(l,E){return typeof l=="string"||typeof E=="string"?String(l)+String(E):a(l)+a(E)}function u(l,E){return a(l)-a(E)}function S(l,E){return a(l)*a(E)}function k(l,E){return a(l)/a(E)}function c(l,E){return a(l)%a(E)}function g(l,E,y){if(typeof E=="number"&&typeof y=="number")switch(l){case">":return E>y;case"<":return E<y;case">=":return E>=y;case"<=":return E<=y;default:return!1}const h=String(E),C=String(y);switch(l){case">":return h>C;case"<":return h<C;case">=":return h>=C;case"<=":return h<=C;default:return!1}}function d(){const l=b(),E=s();if(E&&E.value==="?"){o("?");const y=i();o(":");const h=i();return l?y:h}return l}function b(){let l=m();for(;;){const E=s();if(!E||E.value!=="||")break;o("OP");const y=m();l=l||y}return l}function m(){let l=L();for(;;){const E=s();if(!E||E.value!=="&&")break;o("OP");const y=L();l=l&&y}return l}function L(){let l=w();for(;;){const E=s();if(!E||!["==","!=","===","!=="].includes(E.value))break;const y=o("OP").value,h=w();switch(y){case"==":l=l==h;break;case"!=":l=l!=h;break;case"===":l=l===h;break;case"!==":l=l!==h;break}}return l}function w(){let l=v();for(;;){const E=s();if(!E||![">","<",">=","<="].includes(E.value))break;const y=o("OP").value,h=v();switch(y){case">":l=g(">",l,h);break;case"<":l=g("<",l,h);break;case">=":l=g(">=",l,h);break;case"<=":l=g("<=",l,h);break}}return l}function v(){let l=_();for(;;){const E=s();if(!E||E.value!=="+"&&E.value!=="-")break;const y=o("OP").value,h=_();l=y==="+"?f(l,h):u(l,h)}return l}function _(){let l=T();for(;;){const E=s();if(!E||E.value!=="*"&&E.value!=="/"&&E.value!=="%")break;const y=o("OP").value,h=T();switch(y){case"*":l=S(l,h);break;case"/":l=k(l,h);break;case"%":l=c(l,h);break}}return l}function T(){const l=s();if(l&&l.value==="!")return o("OP"),!T();if(l&&l.value==="-"){o("OP");const E=T();return u(0,E)}return N()}function N(){const l=s();if(l){if(l.type==="NUMBER")return o("NUMBER"),Number(l.value);if(l.type==="STRING")return o("STRING"),l.value.slice(1,-1);if(l.type==="IDENT")return o("IDENT"),l.value==="true"?!0:l.value==="false"?!1:l.value==="null"?null:void 0;if(l.value==="["){o("PUNC");const E=[];for(;;){const y=s();if(!y||y.value==="]")break;E.push(i());const h=s();h&&h.value===","&&o("PUNC")}return o("PUNC"),E}if(l.value==="("){o("PUNC");const E=i();return o("PUNC"),E}throw new Error("Unexpected token in expression")}}return i()}static tokenize(r){const n=[],t=/\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;let s;for(;(s=t.exec(r))!==null;){const o=s[1];o&&(/^\d/.test(o)?n.push({type:"NUMBER",value:o}):/^"/.test(o)||/^'/.test(o)?n.push({type:"STRING",value:o}):/^[a-zA-Z_]/.test(o)?n.push({type:"IDENT",value:o}):/^[()?:,[\]]$/.test(o)?n.push({type:"PUNC",value:o}):n.push({type:"OP",value:o}))}return n}static evaluateSimpleValue(r,n){if(r==="true")return!0;if(r==="false")return!1;if(!isNaN(Number(r)))return Number(r);if(r.startsWith("ctx.")){const t=r.slice(4);return p.getNestedValue(n,t)}return r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'")?r.slice(1,-1):r}static clearCache(){this.cache.clear()}static getCacheSize(){return this.cache.size}}class U{static cleanupFunctions=new WeakMap;static addListener(r,n,t,s){r.addEventListener(n,t,s);const i={event:n,handler:t,wrapper:t,options:s,cleanup:()=>r.removeEventListener(n,t,s),addedAt:Date.now()};this.cleanupFunctions.has(r)||this.cleanupFunctions.set(r,[]);const a=this.cleanupFunctions.get(r);a.push(i),a.__metaList=a}static removeListener(r,n,t,s){r.removeEventListener(n,t,s);const o=this.cleanupFunctions.get(r);if(o)for(let i=0;i<o.length;i++){const a=o[i];if(a.event===n&&a.handler===t){o.splice(i,1),o.length===0&&this.cleanupFunctions.delete(r);return}}}static cleanup(r){const n=this.cleanupFunctions.get(r);n&&(n.forEach(t=>{try{t.cleanup()}catch{}}),this.cleanupFunctions.delete(r))}static cleanupAll(){this.cleanupFunctions=new WeakMap}static hasListeners(r){const n=this.cleanupFunctions.get(r);return!!(n&&n.length>0)}static getListenerCount(r){const n=this.cleanupFunctions.get(r);return n?n.length:0}static getListenerInfo(r){const n=this.cleanupFunctions.get(r);return n?n.map(t=>({event:t.event,handler:t.handler,wrapper:t.wrapper,options:t.options})):[]}}function Se(e,r){return Array.isArray(e)&&Array.isArray(r)?JSON.stringify([...e].sort())!==JSON.stringify([...r].sort()):e!==r}function He(e,r,n,t,s){if(e){const o=r.value;if(s&&typeof o=="object"&&o!==null){const i={...o};i[s]=n,r.value=i}else r.value=n}else{const o=t._state||t;p.setNestedValue(o,r,n)}}function _e(e,r,n,t){if(typeof e._requestRender=="function"&&e._requestRender(),typeof e._triggerWatchers=="function"){const s=r?"reactiveState":n;e._triggerWatchers(s,t)}}function st(e,r,n){const t=`update:${p.toKebab(r)}`,s=`update:${r}`,o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}),i=new CustomEvent(s,{detail:n,bubbles:!0,cancelable:!0});e.dispatchEvent(o),e.dispatchEvent(i)}function xe(e,r,n,t){const s=n;if(p.safe(()=>{if(typeof e.setAttribute=="function")try{e[r]=s}catch{}else e[r]=s}),s==null||typeof s=="string"||typeof s=="number"||typeof s=="boolean"){const o=p.safeSerializeAttr(s);o!==null?p.safe(()=>{typeof e.setAttribute=="function"&&e.setAttribute(p.toKebab(r),o)}):p.safe(()=>{typeof e.removeAttribute=="function"&&e.removeAttribute(p.toKebab(r))})}}function it(e,r,n,t){if(e){const s=r.value;return t&&typeof s=="object"&&s!==null?s[t]:s}else{const s=n._state||n;return p.getNestedValue(s,r)}}function se(e){return e?e.split(/\s+/).filter(Boolean):[]}function ie(e,r){if(r.length===0)return;const n=r.filter(t=>t&&!e.classList.contains(t));n.length>0&&e.classList.add(...n)}function re(e,r){if(r.length===0)return;const n=r.filter(Boolean);n.length>0&&e.classList.remove(...n)}let we=!1;async function ot(e,r,n=10){if(!we){if(!e.isConnected){j.devWarn("⚠️ Element not connected to DOM, skipping style wait");return}for(let t=0;t<n;t++){const s=window.getComputedStyle(e),o=s.transform&&s.transform!=="",i=s.opacity&&s.opacity!=="";if(o||i){we=!0;return}await new Promise(a=>requestAnimationFrame(()=>a(void 0)))}we=!0,j.devWarn("⚠️ Styles did not load in time for transition, continuing anyway")}}function at(e){const r=window.getComputedStyle(e),n=r.transitionDuration||"0s",t=r.transitionDelay||"0s",s=o=>{const i=parseFloat(o);return o.includes("ms")?i:i*1e3};return s(n)+s(t)}function ze(e,r){return new Promise(n=>{const t=r??at(e);if(t<=0){n();return}let s=!1;const o=()=>{s||(s=!0,e.removeEventListener("transitionend",i),e.removeEventListener("transitioncancel",i),n())},i=()=>o();e.addEventListener("transitionend",i),e.addEventListener("transitioncancel",i),setTimeout(o,t+50)})}async function pe(e,r){const{classes:n,hooks:t,css:s,duration:o}=r;if(t?.onBeforeEnter)try{t.onBeforeEnter(e)}catch(d){j.devError("Transition onBeforeEnter error:",d)}if(!s)return t?.onEnter?new Promise(d=>{const b=t.onEnter;typeof b=="function"?b(e,()=>{if(t?.onAfterEnter)try{t.onAfterEnter(e)}catch(m){j.devError("Transition onAfterEnter error:",m)}d()}):d()}):void 0;const i=se(n?.enterFrom),a=se(n?.enterActive),f=se(n?.enterTo);ie(e,i),e.offsetHeight,ie(e,a),e.offsetHeight;let u;if(t?.onEnter){const d=new Promise(b=>{u=b});try{const b=t.onEnter;typeof b=="function"&&b(e,()=>{u&&u()})}catch(b){j.devError("Transition onEnter error:",b)}u&&await d}await new Promise(d=>requestAnimationFrame(()=>d(void 0))),e.offsetHeight;const S=window.getComputedStyle(e),k=S.transform,c=S.opacity;re(e,i),k&&k!=="none"&&(e.style.transform=k),c&&c!==""&&(e.style.opacity=c),e.offsetHeight,await new Promise(d=>requestAnimationFrame(()=>d(void 0))),e.style.transform="",e.style.opacity="",ie(e,f),e.offsetHeight,await new Promise(d=>requestAnimationFrame(()=>d(void 0)));let g;if(typeof o=="number"?g=o:o&&typeof o=="object"&&"enter"in o&&(g=o.enter),await ze(e,g),re(e,a),t?.onAfterEnter)try{t.onAfterEnter(e)}catch(d){j.devError("Transition onAfterEnter error:",d)}}async function Te(e,r){const{classes:n,hooks:t,css:s,duration:o}=r;if(t?.onBeforeLeave)try{t.onBeforeLeave(e)}catch(k){j.devError("Transition onBeforeLeave error:",k)}if(!s)return t?.onLeave?new Promise(k=>{const c=t.onLeave;typeof c=="function"?c(e,()=>{if(t?.onAfterLeave)try{t.onAfterLeave(e)}catch(g){j.devError("Transition onAfterLeave error:",g)}k()}):k()}):void 0;const i=se(n?.leaveFrom),a=se(n?.leaveActive),f=se(n?.leaveTo);ie(e,i),e.offsetHeight,ie(e,a);let u;if(t?.onLeave){const k=new Promise(c=>{u=c});try{const c=t.onLeave;typeof c=="function"&&c(e,()=>{u&&u()})}catch(c){j.devError("Transition onLeave error:",c)}u&&await k}await new Promise(k=>requestAnimationFrame(()=>k(void 0))),await ot(e,[...i,...a]),re(e,i),ie(e,f);let S;if(typeof o=="number"?S=o:o&&typeof o=="object"&&"leave"in o&&(S=o.leave),await ze(e,S),re(e,a),re(e,f),re(e,i),t?.onAfterLeave)try{t.onAfterLeave(e)}catch(k){j.devError("Transition onAfterLeave error:",k)}}const Ke=new WeakMap,Ve=new WeakMap;function ke(e){if(!e)return;const r=Ke.get(e);if(r!==void 0)return r;try{const n=e;if(n&&n.key!=null)return String(n.key)}catch{}if(e instanceof Element){const n=e.getAttribute("data-anchor-key");if(n)return n}}function z(e,r){try{Ke.set(e,r)}catch{}try{e.key=r}catch{}try{if(e instanceof Element){const n=p.safeSerializeAttr(r);n!==null&&e.setAttribute("data-anchor-key",n)}}catch{}}function ct(e){if(!e)return;const r=Ve.get(e);if(r!==void 0)return r;try{const n=e;if(n&&n._transitionGroup!=null)return n._transitionGroup}catch{}}function lt(e,r){try{Ve.set(e,r)}catch{}try{e._transitionGroup=r}catch{}}function oe(e){return e!==null&&typeof e=="object"&&"value"in e}function Oe(e){try{if(p.isReactiveState(e))return e.value}catch{}try{if(oe(e))return e.value}catch{}return e}function V(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement}function ae(e){return e===""?!0:typeof e=="string"?e==="false"?!1:e==="true"?!0:e!=="":e&&typeof e=="object"?p.isReactiveState(e)||"value"in e?!!e.value:!1:!!e}function ne(e,r){if(!r||!(e instanceof HTMLElement))return;U.cleanup(e);for(const t in r)r[t]===e&&delete r[t];const n=e.childNodes;for(let t=0;t<n.length;t++)ne(n[t],r)}function he(e,r,n){if(typeof e=="string")return;const t=e.props?.reactiveRef??(e.props?.props&&e.props.props.reactiveRef),s=e.props?.ref??(e.props?.props&&e.props.props.ref);if(t)try{if(p.isReactiveState(t)||typeof t=="object"&&"value"in t)t.value=r;else if(typeof t=="function")t(r);else if(typeof t=="string"&&n)try{const o=String(t);n[o]=r}catch{}}catch{}else if(s&&n)try{const o=String(s);n[o]=r}catch{}}function ft(e,r,n,t,s,o,i,a){if(!o)return;const f=r.includes("lazy"),u=r.includes("trim"),S=r.includes("number"),k=()=>{if(p.isReactiveState(e)){const _=e.value;return a&&i&&(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)&&typeof _=="object"&&_!==null?_[a]:_}const v=o?._state||o;return p.getNestedValue(v,e)},c=k();let g="text";i instanceof HTMLInputElement?g=t?.type||i.type||"text":i instanceof HTMLSelectElement?g="select":i instanceof HTMLTextAreaElement&&(g="textarea");const d=i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement,m=d?g==="checkbox"||g==="radio"?"checked":"value":a??"modelValue";if(g==="checkbox")if(Array.isArray(c))n[m]=c.includes(String(i?.getAttribute("value")??t?.value??""));else{const v=i?.getAttribute("true-value")??!0;n[m]=c===v}else if(g==="radio")n[m]=c===(t?.value??"");else if(g==="select")if(i&&i.hasAttribute("multiple")&&i instanceof HTMLSelectElement){const v=Array.isArray(c)?c.map(String):[];setTimeout(()=>{Array.from(i.options).forEach(_=>{_.selected=v.includes(_.value)})},0),n[m]=Array.isArray(c)?c:[]}else n[m]=c;else{!d&&p.isReactiveState(e)?n[m]=e:n[m]=c;try{const v=p.toKebab(m);t&&(t[v]=c)}catch{}}const L=f||g==="checkbox"||g==="radio"||g==="select"?"change":"input",w=v=>{if(v.isComposing||s._isComposing)return;const _=globalThis.process,T=!!_&&_.env?.NODE_ENV==="test"||typeof window<"u"&&globalThis.__vitest__;if(v.isTrusted===!1&&!T)return;const N=v.target;if(!N||N._modelUpdating)return;let O=N.value;if(g==="checkbox"){const y=k();if(Array.isArray(y)){const h=N.getAttribute("value")??"",C=Array.from(y);if(N.checked)C.includes(h)||C.push(h);else{const P=C.indexOf(h);P>-1&&C.splice(P,1)}O=C}else{const h=N.getAttribute("true-value")??!0,C=N.getAttribute("false-value")??!1;O=N.checked?h:C}}else if(g==="radio")O=N.getAttribute("value")??N.value;else if(g==="select"&&N.multiple)O=Array.from(N.selectedOptions).map(y=>y.value);else if(u&&typeof O=="string"&&(O=O.trim()),S){const y=Number(O);isNaN(y)||(O=y)}const l=k();if(Se(O,l)){N._modelUpdating=!0;try{He(p.isReactiveState(e),e,O,o,a),_e(o,p.isReactiveState(e),e,O),N&&st(N,m,O)}finally{setTimeout(()=>N._modelUpdating=!1,0)}}};if(d){if(s[L]){const v=s[L];i&&U.removeListener(i,L,v)}s[L]=w}else{const v=`update:${p.toKebab(m)}`,_=`update:${m}`;if(s[v]){const T=s[v];i&&U.removeListener(i,v,T)}if(s[_]){const T=s[_];i&&U.removeListener(i,_,T)}if(s[v]=T=>{const N=T.detail;let O=N!==void 0?N:void 0;if(O===void 0){const y=T.target;if(y&&typeof y=="object"&&"value"in y)try{O=y.value}catch{O=void 0}}const l=it(p.isReactiveState(e),e,o,a);if(Se(O,l)){He(p.isReactiveState(e),e,O,o,a),_e(o,p.isReactiveState(e),e,O);const y=T.target;y&&xe(y,m,p.isReactiveState(e)?e:O,p.isReactiveState(e))}},p.isReactiveState(e)&&typeof e.value=="object"&&e.value!==null){let T=[];try{T=Reflect.ownKeys(e.value)}catch{T=Object.keys(e.value)}const N=T.filter(O=>typeof O=="string"&&!String(O).startsWith("_")&&O!=="constructor");for(const O of N){const l=String(O),E=`update:${p.toKebab(l)}`,y=`update:${l}`;s[E]||(s[E]=h=>{const C=h.detail!==void 0?h.detail:h.target?.value,P=p.isReactiveState(e)?e.value[l]:p.getNestedValue(o?._state||o,e);if(!Se(C,P))return;if(p.isReactiveState(e)){const x={...e.value};x[l]=C,e.value=x}else p.setNestedValue(o?._state||o,e,C);_e(o,p.isReactiveState(e),e,C);const A=h.currentTarget||i||h.target;A&&xe(A,m,p.isReactiveState(e)?e:C,p.isReactiveState(e))},s[y]=s[E])}}s[_]=s[v]}(g==="text"||g==="textarea")&&(s.compositionstart=()=>s._isComposing=!0,s.compositionend=v=>{s._isComposing=!1;const _=v.target;_&&setTimeout(()=>{const T=_.value,N=o?._state||o,O=p.getNestedValue(N,e);let l=T;if(u&&(l=l.trim()),S){const y=Number(l);isNaN(y)||(l=y)}if(Se(l,O)){_._modelUpdating=!0;try{p.setNestedValue(N,e,l),_e(o,p.isReactiveState(e),e,l)}finally{setTimeout(()=>_._modelUpdating=!1,0)}}},0)})}function Fe(e){const r=e.slice(2);return r?r.charAt(0).toLowerCase()+r.slice(1):""}function ut(e,r,n,t,s){if(typeof e=="object"&&e!==null)for(const[o,i]of Object.entries(e))if(o.startsWith("data-")||o.startsWith("aria-")||o==="class")n[o]=i;else if(o==="disabled"&&s&&V(s)){const a=i&&typeof i=="object"&&"value"in i;(()=>{try{return p.isReactiveState(i)}catch{return!1}})()||a?r[o]=i:n[o]=i}else r[o]=i;else if(typeof e=="string"){if(!t)return;try{const o=be(e,t);if(typeof o=="object"&&o!==null){for(const[i,a]of Object.entries(o))if(i.startsWith("data-")||i.startsWith("aria-")||i==="class")n[i]=a;else if(i==="disabled"&&s&&V(s)){const f=a&&typeof a=="object"&&"value"in a;(()=>{try{return p.isReactiveState(a)}catch{return!1}})()||f?r[i]=a:n[i]=a}else r[i]=a;return}else{n[e]=o;return}}catch{const o=p.getNestedValue(t,e);n[e]=o}}}function dt(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;const s=String(r.style||"");let o=s;if(t){if(s){const i=String(s).split(";").map(f=>f.trim()).filter(Boolean),a=i.findIndex(f=>f.startsWith("display:"));a>=0&&i[a]==="display: none"&&(i.splice(a,1),o=i.length>0?i.join("; ")+";":"")}}else if(s){const i=String(s).split(";").filter(Boolean),a=i.findIndex(f=>f.trim().startsWith("display:"));a>=0?i[a]="display: none":i.push("display: none"),o=i.join("; ")}else o="display: none";o!==s&&(o?r.style=o:delete r.style)}function be(e,r){return rt.evaluate(e,r)}function pt(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;try{if(t&&typeof t=="object"){if(p.isReactiveState(t))t=t.value;else if("value"in t&&typeof t.value<"u"){const a=t.value;a instanceof Node||(t=a)}}}catch{}let s=[];if(typeof t=="string")s=[t];else if(Array.isArray(t))s=t.filter(Boolean);else if(typeof t=="object"&&t!==null)for(const[a,f]of Object.entries(t))f&&s.push(a);const o=r.class||"",i=s.join(" ");r.class=o?`${o} ${i}`.trim():i}function Re(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,t=typeof n;return t==="boolean"?!0:t==="string"?n===""||n==="true"||n==="false":!1}}catch{}return!1}function ht(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;let s="";if(typeof t=="string")s=t;else if(t&&typeof t=="object"){const i=[];for(const[a,f]of Object.entries(t))if(f!=null&&f!==""){const u=a.replace(/[A-Z]/g,c=>`-${c.toLowerCase()}`),S=["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 k=String(f);typeof f=="number"&&S.includes(u)&&(k=`${f}px`),i.push(`${u}: ${k}`)}s=i.join("; ")+(i.length>0?";":"")}const o=String(r.style||"");r.style=o+(o&&!o.endsWith(";")?"; ":"")+s}function yt(e,r,n){let t=e;typeof e=="string"&&n&&(t=be(e,n)),p.isReactiveState(t)?r.reactiveRef=t:r.ref=t}function Ue(e,r,n,t){const s={},o={...t||{}},i={};for(const[a,f]of Object.entries(e)){const{value:u,modifiers:S,arg:k}=f;if(a==="model"||a.startsWith("model:")){const c=a.split(":"),g=c.length>1?c[1]:k;ft(u,S,s,o,i,r,n,g);continue}switch(a){case"bind":ut(u,s,o,r,n);break;case"show":dt(u,o,r);break;case"class":pt(u,o,r);break;case"style":ht(u,o,r);break;case"ref":yt(u,s,r);break}}try{if(Object.prototype.hasOwnProperty.call(s,"disabled")&&n&&V(n)){const f=s.disabled,u=f&&typeof f=="object"&&"value"in f;let S=!1;try{S=p.isReactiveState(f)}catch{S=!1}if(!u&&!S)try{o.disabled=f,delete s.disabled;const k=globalThis;k.__VDOM_DISABLED_PROMOTIONS||(k.__VDOM_DISABLED_PROMOTIONS=[]),k.__VDOM_DISABLED_PROMOTIONS.push({phase:"bind-directive:postfix-move",location:"attrs",key:"disabled",value:f,time:Date.now(),stack:new Error().stack})}catch{}}}catch{}return{props:s,attrs:o,listeners:i}}function Pe(e,r){if(Array.isArray(e)){const o=new Set;return e.map(i=>{if(!i||typeof i!="object")return i;let a=i.props?.key??i.key;if(!a){const k=i.tag||"node",g=[i.props?.attrs?.id,i.props?.attrs?.name,i.props?.attrs?.["data-key"],i.props?.props?.id,i.props?.props?.name,i.props?.props?.dataKey,i.props?.props?.["data-key"]].find(d=>d!=null)??"";a=g?`${r}:${k}:${g}`:`${r}:${k}`}let f=a,u=1;for(;o.has(f);)f=`${a}#${u++}`;o.add(f);let S=i.children;return Array.isArray(S)&&(S=Pe(S,f)),{...i,key:f,children:S}})}const n=e,t=n.props?.key??n.key??r;let s=n.children;return Array.isArray(s)&&(s=Pe(s,t)),{...n,key:t,children:s}}function Ie(e,r,n,t){const s=n.directives??{},o=Ue(s,t,e,n.attrs),i={...r.props||{},...n.props||{},...o.props||{}},a={...r.attrs||{},...n.attrs||{},...o.attrs||{}},f=r.props??{},u=i,S=!!(n?.isCustomElement??r?.isCustomElement??!1);let k=!1;for(const d in{...f,...u}){const b=f[d],m=u[d];let L=b,w=m;if(p.safe(()=>{(p.isReactiveState(b)||oe(b))&&(L=b.value)}),p.safe(()=>{(p.isReactiveState(m)||oe(m))&&(w=m.value)}),!(b===m&&L===w))if(k=!0,d==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)){const v=Oe(m),_=v==null?"":String(v);e.value!==_&&(e.value=_)}else if(d==="checked"&&e instanceof HTMLInputElement){const v=Oe(m);e.checked=!!v}else if(d.startsWith("on")&&typeof m=="function"){const v=Fe(d);typeof b=="function"&&U.removeListener(e,v,b),typeof m=="function"&&U.addListener(e,v,m);try{if(v&&v.startsWith("update:")){const _=v.split(":",2)[1],T=u[_];let N=[];try{if(p.isReactiveState(T)){const l=T.value;N=l&&typeof l=="object"?Object.keys(l):[]}else T&&typeof T=="object"&&(N=Object.keys(T))}catch{N=[]}const O=N.filter(l=>typeof l=="string"&&!l.startsWith("_")&&l!=="constructor");for(const l of O){const E=`update:${l}`,y=h=>{const C=h.detail!==void 0?h.detail:h.target instanceof HTMLInputElement||h.target instanceof HTMLTextAreaElement||h.target instanceof HTMLSelectElement?h.target.value:void 0,R={...p.isReactiveState(T)?T.value||{}:u[_]||{},[l]:C};try{typeof m=="function"&&m({detail:R})}catch{}};p.safe(()=>{U.addListener(e,E,y)})}}}catch{}}else if(m==null)e.removeAttribute(d);else{const v=n?.isCustomElement??r?.isCustomElement??!1;if(v||d in e)try{e[d]=m,d==="disabled"&&m===!1&&!v&&V(e)&&e.removeAttribute("disabled")}catch{}else m===!1&&e.removeAttribute(d)}}for(const[d,b]of Object.entries(o.listeners||{})){U.addListener(e,d,b);try{const m=e&&e.parentElement;m&&m!==e&&U.addListener(m,d,b)}catch{}}const c=r.attrs??{},g=a;for(const d in{...c,...g}){const b=c[d],m=g[d];let L=b,w=m;if(p.isReactiveState(b)&&(L=b.value),p.isReactiveState(m)&&(w=m.value),L!==w)if(k=!0,w==null||w===!1)p.safe(()=>{e.removeAttribute(d)}),d==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?p.safe(()=>{e.value=""}):e instanceof HTMLSelectElement?p.safe(()=>{e.value=""}):e instanceof HTMLProgressElement&&p.safe(()=>{e.value=0})),d==="checked"&&e instanceof HTMLInputElement&&p.safe(()=>{e.checked=!1}),d==="disabled"&&V(e)&&p.safe(()=>{(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=!1)});else{if(d==="value"){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){p.safe(()=>{e.value=w??""});continue}else if(e instanceof HTMLSelectElement){p.safe(()=>{e.value=w??""});continue}else if(e instanceof HTMLProgressElement){p.safe(()=>{e.value=Number(w)});continue}}if(d==="checked"&&e instanceof HTMLInputElement){p.safe(()=>{e.checked=!!w});continue}if(d==="style"){const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_);continue}if(d==="disabled"&&V(e)){p.safe(()=>{const _=ae(w);(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=_)}),ae(w)?p.safe(()=>{e.setAttribute(d,"")}):p.safe(()=>{e.removeAttribute(d)});continue}const v=e.namespaceURI==="http://www.w3.org/2000/svg";if(S&&!v&&d.includes("-"))if(p.isClassLikeAttr(d)){const _=p.safeSerializeAttr(m??w);if(_!==null)try{e.setAttribute(d,_)}catch{}}else{const _=p.toCamel(d);try{const T=e;T[_]=p.isReactiveState(m)?m:w}catch{const T=p.safeSerializeAttr(m??w);T!==null&&e.setAttribute(d,T)}}else if(!v&&d in e)try{const _=e;_[d]=p.isReactiveState(m)?m:w}catch{const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_)}else{const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_)}}}try{if(V(e)){const d=i.disabled;let b;try{const L=Object.prototype.hasOwnProperty.call(o.props||{},"disabled"),w=d&&typeof d=="object"&&"value"in d;let v=!1;p.safe(()=>{v=!!p.isReactiveState(d)});const _=Re(d);v||w||L||_?b=d:b=a.disabled}catch{b=a.disabled}const m=ae(b);p.safe(()=>{(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=m)}),m?p.safe(()=>{e.setAttribute("disabled","")}):p.safe(()=>{e.removeAttribute("disabled")})}}catch{}if(S&&k){const d=e;p.safe(()=>{d._applyProps?.(d._cfg)}),p.safe(()=>{typeof d.requestRender=="function"?d.requestRender():typeof d._render=="function"&&d._render?.(d._cfg)})}}function K(e,r,n){if(typeof e=="string")return document.createTextNode(e);if(e.tag==="#text"){const c=document.createTextNode(typeof e.children=="string"?e.children:"");return e.key!=null&&z(c,e.key),c}if(e.tag==="#raw"){const c=typeof e.children=="string"?e.children:"";return document.createRange().createContextualFragment(c)}if(e.tag==="#anchor"){const c=e,g=Array.isArray(c.children)?c.children:[],d=document.createTextNode(""),b=document.createTextNode("");c.key!=null&&(z(d,`${c.key}:start`),z(b,`${c.key}:end`)),c._startNode=d,c._endNode=b;const m=document.createDocumentFragment();m.appendChild(d);for(const L of g){const w=K(L,r);if(c.key!=null&&w instanceof Element&&!w.hasAttribute("data-anchor-key")){const v=L;v&&typeof v=="object"&&v.key!=null||z(w,String(c.key))}m.appendChild(w)}return m.appendChild(b),m}const t=document.createElement(e.tag);e.key!=null&&z(t,e.key),e.props&&e.props?._transitionGroup&&lt(t,e.props?._transitionGroup);const{props:s={},attrs:o={},directives:i={}}=e.props??{},a=Ue(i,r,t,o),f={...s,...a.props},u={...o,...a.attrs};try{const c=(u&&u.class)??(f&&f.class)??(e.props&&e.props.attrs&&e.props.attrs.class)??(e.props&&e.props.props&&e.props.props.class),g=p.safeSerializeAttr(c);if(g!==null){const d=String(g).trim();d&&t.setAttribute("class",d)}}catch{}try{if(f.disabled!==void 0&&t&&V(t)){const c=f.disabled,g=c&&typeof c=="object"&&"value"in c;let d=!1;try{d=p.isReactiveState(c)}catch{d=!1}!g&&!d&&p.safe(()=>{u.disabled=c,delete f.disabled})}}catch{}const S=t.namespaceURI==="http://www.w3.org/2000/svg";for(const c in u){const g=u[c];if(typeof c!="string"||/\[object Object\]/.test(c))continue;const d=Oe(g);if(typeof d=="boolean")d?t.setAttribute(c,""):p.safe(()=>{t.removeAttribute(c)});else if(d!=null){if(c==="disabled"&&V(t)){const b=f.disabled,m=Re(b)?b:d,L=ae(m);p.safe(()=>{t.disabled=L}),L?p.safe(()=>{t.setAttribute(c,"")}):p.safe(()=>{t.removeAttribute(c)});continue}if(!S&&c==="value"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement||t instanceof HTMLProgressElement))try{t instanceof HTMLProgressElement?t.value=Number(d):t.value=String(d??"")}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if(!S&&c==="checked"&&t instanceof HTMLInputElement)try{t.checked=!!d}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if(!S&&c in t)try{t[c]=d,c==="disabled"&&d===!1&&V(t)&&t.removeAttribute("disabled")}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if((e.props?.isCustomElement??!1)&&!S&&c.includes("-")){const m=p.toCamel(c);try{t[m]=d}catch{const L=p.safeSerializeAttr(d);L!==null&&t.setAttribute(c,L)}}else{const m=p.safeSerializeAttr(d);m!==null&&t.setAttribute(c,m)}}}for(const c in f){const g=f[c];if(!(typeof c!="string"||/\[object Object\]/.test(c)))if(c==="value"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const d=typeof g=="object"&&g!==null&&oe(g)?g.value:g;p.safe(()=>{t.value=String(d??"")})}else if(c.startsWith("on")&&typeof g=="function"){const d=Fe(c),b=d.includes(":")?(()=>{const m=d.split(":"),L=m[1];if(L.includes("-")){const w=L.split("-").map((v,_)=>_===0?v:v.charAt(0).toUpperCase()+v.slice(1)).join("");return`${m[0]}:${w}`}else{const w=L.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return`${m[0]}:${w}`}})():d;a.listeners&&(a.listeners[d]||a.listeners[b])||U.addListener(t,d,g)}else{if(c.startsWith("on")&&g===void 0)continue;if(g==null||g===!1)t.removeAttribute(c);else{const d=e.props?.isCustomElement??!1,b=typeof g=="object"&&g!==null&&p.isReactiveState(g)?g:oe(g)&&typeof g.value<"u"?g.value:g;if(c==="class"||c==="style"){try{const m=p.safeSerializeAttr(b);m!==null&&t.setAttribute(c,m)}catch{}continue}if(d||c in t)try{const m=typeof g=="object"&&g!==null&&p.isReactiveState(g)?g:oe(g)?g.value:g;if(c==="disabled"&&V(t)){const L=f.disabled!==void 0?f.disabled:m,w=ae(L);p.safe(()=>{t.disabled=w}),w?p.safe(()=>{t.setAttribute(c,"")}):p.safe(()=>{t.removeAttribute(c)});continue}try{if(typeof t[c]=="boolean"){let w=m;typeof m=="string"?m==="false"?w=!1:m==="true"?w=!0:w=!!m&&m!=="":w=!!m,t[c]=w}else t[c]=m}catch{t[c]=m}}catch{}}}}for(const[c,g]of Object.entries(a.listeners||{}))U.addListener(t,c,g);const k={...e,props:{...e.props,...a.props}};he(k,t,n);try{const c=t;if(typeof c._applyProps=="function")try{c._applyProps(c._cfg)}catch{}typeof c.requestRender=="function"?c.requestRender():typeof c._render=="function"&&c._render(c._cfg)}catch{}if(Array.isArray(e.children))for(const c of e.children)t.appendChild(K(c,r,n));else typeof e.children=="string"&&(t.textContent=e.children);try{if(t instanceof HTMLSelectElement&&u&&Object.prototype.hasOwnProperty.call(u,"value"))try{t.value=String(u.value??"")}catch{}}catch{}try{if(V(t)){const c=f.disabled,g=u.disabled,d=c&&typeof c=="object"&&"value"in c;let b=!1;try{b=!!p.isReactiveState(c)}catch{b=!1}const L=b||d||Re(c)?c:g,w=ae(L);p.safe(()=>{t.disabled=w}),w?p.safe(()=>{t.setAttribute("disabled","")}):p.safe(()=>{t.removeAttribute("disabled")})}}catch{}return t}function mt(e,r,n,t,s){if(typeof n=="string"){e.textContent!==n&&(e.textContent=n);return}if(!Array.isArray(n))return;const o=e.childNodes,i=[];for(let b=0;b<o.length;b++)i.push(o[b]);const a=Array.isArray(r)?r:[],f=ct(e);if(f){const b=v=>{if(typeof v=="string")return v.startsWith("each-")?v.substring(5):v;if(typeof v=="number")return String(v)},m=[],L=[];for(const v of n)if(v&&v.tag==="#anchor"){const _=Array.isArray(v.children)?v.children:[];for(const T of _){const N=b(T.key??v.key??"unknown");m.push({...T,key:N})}}else v&&m.push({...v,key:b(v.key)});for(const v of a)if(v&&v.tag==="#anchor"){const _=Array.isArray(v.children)?v.children:[];for(const T of _){const N=b(T.key??v.key??"unknown");L.push({...T,key:N})}}else v&&L.push({...v,key:b(v.key)});if(m.some(v=>v&&v.key!=null)||L.some(v=>v&&v.key!=null)){const v=new Map,_=new Map;for(const y of L)if(y&&y.key!=null){const h=String(y.key);v.set(h,y)}for(let y=0;y<i.length;y++){const h=i[y];let C=ke(h);if(C=b(C),C!=null&&h instanceof Element&&h.nodeType===Node.ELEMENT_NODE){let P=typeof C=="string"&&C.includes(":")?C.substring(0,C.lastIndexOf(":")):C;P=String(P),_.set(P,h)}}const T=new Set,N=new Map,O=i.length>0;if(f.moveClass&&O)for(let y=0;y<i.length;y++){const h=i[y];if(h instanceof HTMLElement&&h.parentElement){const C=h.getBoundingClientRect();N.set(h,C)}}const l=[];for(const y of m){let h=y.key;if(h==null)continue;h=String(h);const C=v.get(h);let P=_.get(h);if(P&&C){const R=ye(P,C,y,t);T.add(P);const A=String(h);z(R,A),l.push({node:R,key:h,newVNode:y,oldVNode:C,isNew:!1})}else{P=K(y,t),z(P,String(h)),e.appendChild(P);const R=O||f.appear===!0;P instanceof HTMLElement&&R&&pe(P,f).catch(A=>{j.devError("Enter transition error:",A)}),l.push({node:P,key:h,newVNode:y,isNew:!0})}}const E=[];for(let y=0;y<i.length;y++){const h=i[y],C=ke(h);if(!T.has(h)&&C!=null&&h instanceof HTMLElement){const R=Te(h,f).then(()=>{e.contains(h)&&e.removeChild(h)}).catch(A=>{j.devError("Leave transition error:",A),e.contains(h)&&e.removeChild(h)});E.push(R)}}if(E.length===0){let y=e.firstChild;for(const{node:h}of l)h!==y&&e.insertBefore(h,y),y=h.nextSibling;if(f.moveClass&&N.size>0){const h=[];for(const{node:C,isNew:P}of l)if(!P&&C instanceof HTMLElement){const R=N.get(C);if(R){const A=C.getBoundingClientRect(),x=R.left-A.left,$=R.top-A.top;if(x!==0||$!==0){const q=f.moveClass.split(/\s+/).filter(B=>B);h.push({node:C,deltaX:x,deltaY:$,moveClasses:q})}}}if(h.length>0){for(const{node:C,deltaX:P,deltaY:R}of h)C.style.transform=`translate(${P}px, ${R}px)`,C.style.transitionProperty="none";e.offsetHeight,requestAnimationFrame(()=>{requestAnimationFrame(()=>{for(const{node:C,moveClasses:P}of h)for(const R of P)C.classList.add(R);requestAnimationFrame(()=>{const C=f.moveClass||"",P=C.match(/duration-(\d+)/),R=P?`${P[1]}ms`:"300ms",A=C.match(/ease-(out|in|in-out|linear)/),x=A?`ease-${A[1]}`:"ease-out";for(const{node:$}of h)$.style.transition=`transform ${R} ${x}`;requestAnimationFrame(()=>{for(const{node:$,moveClasses:q}of h){$.style.removeProperty("transform");const B=()=>{for(const H of q)$.classList.remove(H);$.style.removeProperty("transition"),$.removeEventListener("transitionend",B),$.removeEventListener("transitioncancel",B)};$.addEventListener("transitionend",B,{once:!0}),$.addEventListener("transitioncancel",B,{once:!0})}})})})})}}}return}}const u=new Map;for(const b of a)b&&b.key!=null&&u.set(b.key,b);const S=new Map;for(let b=0;b<i.length;b++){const m=i[b],L=ke(m);L!=null&&S.set(L,m)}const k=new Set;let c=e.firstChild;function g(b,m){let L=b;for(;L&&(k.add(L),L!==m);)L=L.nextSibling}function d(b,m,L,w,v,_=!0){const T=[];let N=b.nextSibling;for(;N&&N!==m;)T.push(N),N=N.nextSibling;const O=Array.isArray(L)?L:[];if(w.some(E=>E&&E.key!=null)||O.some(E=>E&&E.key!=null)){const E=new Map,y=new Map;for(const R of O)R&&R.key!=null&&E.set(R.key,R);for(const R of T){const A=ke(R);A!=null&&y.set(A,R)}const h=v&&v.state==="visible"&&O.length===0&&w.length>0,C=new Set;let P=b.nextSibling;for(const R of w){let A;if(R.key!=null&&y.has(R.key)){const x=E.get(R.key);A=ye(y.get(R.key),x,R,t),C.add(A),v&&A instanceof HTMLElement&&h&&v.appear&&pe(A,v).catch($=>{j.devError("Transition enter error (appear):",$)}),A!==P&&e.contains(A)&&e.insertBefore(A,P)}else A=K(R,t),e.insertBefore(A,P),C.add(A),v&&A instanceof HTMLElement&&_&&pe(A,v).catch(x=>{j.devError("Transition enter error:",x)});P=A.nextSibling}for(const R of T)!C.has(R)&&e.contains(R)&&(v&&R instanceof HTMLElement&&_?Te(R,v).then(()=>{e.contains(R)&&e.removeChild(R)}).catch(A=>{j.devError("Transition leave error:",A),e.contains(R)&&e.removeChild(R)}):e.removeChild(R))}else{const E=Math.min(O.length,w.length);for(let y=0;y<E;y++){const h=O[y],C=w[y],P=ye(T[y],h,C,t);P!==T[y]&&(e.insertBefore(P,T[y]),e.removeChild(T[y]))}for(let y=E;y<w.length;y++){const h=K(w[y],t);e.insertBefore(h,m),v&&h instanceof HTMLElement&&_&&pe(h,v).catch(C=>{j.devError("Transition enter error:",C)})}for(let y=E;y<T.length;y++){const h=T[y];v&&h instanceof HTMLElement&&_?Te(h,v).then(()=>{e.contains(h)&&e.removeChild(h)}).catch(C=>{j.devError("Transition leave error:",C),e.contains(h)&&e.removeChild(h)}):e.removeChild(h)}}}for(const b of n){let m;if(b.tag==="#anchor"){const L=b.key,w=`${L}:start`,v=`${L}:end`;let _=S.get(w),T=S.get(v);const N=Array.isArray(b.children)?b.children:[];if(_||(_=document.createTextNode(""),z(_,w)),T||(T=document.createTextNode(""),z(T,v)),b._startNode=_,b._endNode=T,!e.contains(_)||!e.contains(T)){e.insertBefore(_,c);const O=b._transition,E=!(O&&O.state==="visible"&&N.length>0)||O.appear;for(const y of N){const h=K(y,t);e.insertBefore(h,c),O&&h instanceof HTMLElement&&E&&pe(h,O).catch(C=>{j.devError("Transition enter error:",C)})}e.insertBefore(T,c)}else{const O=b._transition,E=u.get(L)._transition,y=E&&E.state!==O?.state,h=O&&O.state==="visible"&&N.length>0&&!y,C=y||!h||O?.appear===!0;d(_,T,u.get(L)?.children,N,O,C)}g(_,T),c=T.nextSibling;continue}if(b.key!=null&&S.has(b.key)){const L=u.get(b.key);m=ye(S.get(b.key),L,b,t,s),k.add(m),m!==c&&e.contains(m)&&(c&&!e.contains(c)&&(c=null),e.insertBefore(m,c))}else m=K(b,t,s),c&&!e.contains(c)&&(c=null),e.insertBefore(m,c),k.add(m);c=m.nextSibling}for(let b=0;b<i.length;b++){const m=i[b];!k.has(m)&&e.contains(m)&&(ne(m,s),e.removeChild(m))}}function ye(e,r,n,t,s){if(r&&typeof r!="string"&&r.props?.ref&&s&&ne(e,s),r===n)return e;if(typeof n=="string"){if(e.nodeType===Node.TEXT_NODE)return e.textContent!==n&&(e.textContent=n),e;{const i=document.createTextNode(n);return e.parentNode?.replaceChild(i,e),i}}if(n&&typeof n!="string"&&n.tag==="#anchor"){const i=n,a=Array.isArray(i.children)?i.children:[],f=i._startNode??document.createTextNode(""),u=i._endNode??document.createTextNode("");i.key!=null&&(z(f,`${i.key}:start`),z(u,`${i.key}:end`)),i._startNode=f,i._endNode=u;const S=document.createDocumentFragment();S.appendChild(f);for(const k of a){const c=K(k,t);S.appendChild(c)}return S.appendChild(u),e.parentNode?.replaceChild(S,e),f}if(!n){ne(e,s);const i=document.createComment("removed");return e.parentNode?.replaceChild(i,e),i}if(!r||typeof r=="string"){ne(e,s);const i=K(n,t,s);return he(n,i,s),e.parentNode?.replaceChild(i,e),i}if(n.tag==="#anchor"){const i=Array.isArray(n.children)?n.children:[],a=n._startNode??document.createTextNode(""),f=n._endNode??document.createTextNode("");n.key!=null&&(z(a,`${n.key}:start`),z(f,`${n.key}:end`)),n._startNode=a,n._endNode=f;const u=document.createDocumentFragment();u.appendChild(a);for(const S of i)u.appendChild(K(S,t));return u.appendChild(f),e.parentNode?.replaceChild(u,e),a}if(typeof r!="string"&&typeof n!="string"&&r.tag===n.tag&&r.key===n.key){const i=e;return Ie(i,r.props||{},n.props||{},t),mt(i,r.children,n.children,t,s),he(n,i,s),i}if(typeof r!="string"&&typeof n!="string"&&r.tag===n.tag&&(r.tag&&String(r.tag).includes("-")||n.props&&n.props.isCustomElement||r.props&&r.props.isCustomElement))try{const a=e;return Ie(a,r.props||{},n.props||{},t),he(n,a,s),a}catch{}ne(e,s);const o=K(n,t,s);return he(n,o,s),e.parentNode?.replaceChild(o,e),o}function gt(e,r,n,t){let s;Array.isArray(r)?r.length===1?(s=r[0],s&&typeof s=="object"&&s.key==null&&(s={...s,key:"__root__"})):s={tag:"div",key:"__root__",children:r}:(s=r,s&&typeof s=="object"&&s.key==null&&(s={...s,key:"__root__"})),s&&typeof s=="object"&&s.tag==="#anchor"&&(s={tag:"div",key:"__anchor_root__",props:{attrs:{"data-anchor-block-root":"",key:"__anchor_root__"}},children:[s]}),s=Pe(s,String(s.key??"root"));const o=e._prevVNode??null,i=e._prevDom??e.firstChild??null;let a;o&&i?typeof o!="string"&&typeof s!="string"&&o.tag===s.tag&&o.key===s.key?a=ye(i,o,s,n,t):(a=K(s,n,t),e.replaceChild(a,i)):(a=K(s,n,t),e.firstChild?e.replaceChild(a,e.firstChild):e.appendChild(a));const f=[];for(let u=0;u<e.childNodes.length;u++){const S=e.childNodes[u];S!==a&&S.nodeName!=="STYLE"&&(ne(S,t),f.push(S))}f.forEach(u=>e.removeChild(u)),e._prevVNode=s,e._prevDom=a}const me=[];function bt(e,r,n,t,s,o,i,a){if(e){me.push(n);try{const f=r.render(n);if(f instanceof Promise){o(!0),f.then(u=>{o(!1),i(null),We(e,u,n,t,s),a(e.innerHTML)}).catch(u=>{o(!1),i(u)});return}We(e,f,n,t,s),a(e.innerHTML)}finally{me.pop()}}}function We(e,r,n,t,s){e&&(gt(e,Array.isArray(r)?r:[r],n,t),s(e.innerHTML))}function vt(e,r,n,t,s,o,i){if(o!==null&&clearTimeout(o),Date.now()-r<16){if(s(n+1),n===15)j.devWarn(`⚠️ Component is re-rendering rapidly. This might indicate:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./helpers-D3UjNfYY.cjs"),j=require("./logger-CqdBMdui.cjs"),Y=require("./transitions-ComAUaWb.cjs");function Je(e,r,n){if(n)for(const[t,s]of Object.entries(n)){let o,i={};if(Array.isArray(s)?(o=s[0],i=s[1]||{}):o=s,r.set(t,{callback:o,options:i,oldValue:p.getNestedValue(e,t)}),i.immediate)try{const a=p.getNestedValue(e,t);o(a,void 0,e)}catch(a){j.devError(`Error in immediate watcher for "${t}":`,a)}}}function Ye(e,r,n,t){const s=(i,a)=>{if(i===a)return!0;if(typeof i!=typeof a||typeof i!="object"||i===null||a===null)return!1;if(Array.isArray(i)&&Array.isArray(a))return i.length!==a.length?!1:i.every((c,g)=>s(c,a[g]));const f=i,u=a,S=Object.keys(f||{}),k=Object.keys(u||{});return S.length!==k.length?!1:S.every(c=>s(f[c],u[c]))},o=r.get(n);if(o&&!s(t,o.oldValue))try{o.callback(t,o.oldValue,e),o.oldValue=t}catch(i){j.devError(`Error in watcher for "${n}":`,i)}for(const[i,a]of r.entries())if(a.options.deep&&n.startsWith(i+"."))try{const f=p.getNestedValue(e,i);s(f,a.oldValue)||(a.callback(f,a.oldValue,e),a.oldValue=f)}catch(f){j.devError(`Error in deep watcher for "${i}":`,f)}}function Ae(e,r){return r===Boolean?e===""||e==="true":r===Number?Number(e):e}function Xe(e,r,n){if(r)for(const t in r){const s=r[t],o=p.toKebab(t),i=e.getAttribute(o);if(s.type===Function&&typeof e[t]=="function")n[t]=e[t];else if(i!==null)n[t]=Ae(i,s.type);else if(typeof e[t]<"u")try{const a=e[t];if(s.type===String&&a&&typeof a=="object")try{n[t]=Ae(String(a),s.type)}catch{n[t]=a}else s.type===Boolean&&typeof a=="boolean"||s.type===Number&&typeof a=="number"||s.type===Function&&typeof a=="function"?n[t]=a:n[t]=Ae(String(a),s.type)}catch{n[t]=e[t]}else"default"in s&&s.default!==void 0&&(n[t]=s.default)}}function Qe(e,r,n){if(!r.props){try{const t=n?._hookCallbacks?.props||{},s=Array.from(new Set([...Object.keys(e||{}),...Object.keys(t||{})]));for(const o of s){if(typeof o!="string"||o.startsWith("_"))continue;const i=Object.getOwnPropertyDescriptor(n,o);if(!(!Object.prototype.hasOwnProperty.call(t,o)&&i&&(i.get||i.set||!i.configurable)))try{Object.defineProperty(n,o,{enumerable:!0,configurable:!0,get(){try{const f=p.toKebab(o),u=e.getAttribute(f);if(u!==null)return u;const S=e[o];let k;return p.isReactiveState(S)||S&&typeof S=="object"&&"value"in S&&!(S instanceof Node)?k=S.value:k=S,k}catch{return e[o]}}})}catch{}}}catch{}return}Xe(e,r.props,n)}function et(e,r,n,t){e.onConnected&&!n&&(e.onConnected(r),t(!0))}function tt(e,r,n,t,s,o,i,a){e.onDisconnected&&e.onDisconnected(r),n.forEach(f=>f()),t(),s(),o(!1),i(null),a(!1)}function nt(e,r,n,t,s){e.onAttributeChanged&&e.onAttributeChanged(r,n,t,s)}class rt{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(r,n){const t=this.cache.get(r);if(t){if(!t.isSecure){j.devWarn("Blocked cached dangerous expression:",r);return}try{this.cache.delete(r),this.cache.set(r,t)}catch{}return t.evaluator(n)}const s=this.createEvaluator(r);if(this.cache.size>=this.maxCacheSize){const o=this.cache.keys().next().value;o&&this.cache.delete(o)}if(this.cache.set(r,s),!s.isSecure){j.devWarn("Blocked dangerous expression:",r);return}return s.evaluator(n)}static createEvaluator(r){if(this.hasDangerousPatterns(r))return{evaluator:()=>{},isSecure:!1};if(r.length>1e3)return{evaluator:()=>{},isSecure:!1};try{return{evaluator:this.createSafeEvaluator(r),isSecure:!0}}catch(n){return j.devWarn("Failed to create evaluator for expression:",r,n),{evaluator:()=>{},isSecure:!1}}}static hasDangerousPatterns(r){return this.dangerousPatterns.some(n=>n.test(r))}static createSafeEvaluator(r){const n=r.trim();if(n.startsWith("{")&&n.endsWith("}"))return this.createObjectEvaluator(r);if(/^ctx\.[a-zA-Z0-9_.]+$/.test(r.trim())){const t=r.trim().slice(4);return s=>p.getNestedValue(s,t)}return r.includes("ctx")||/[+\-*/%<>=&|?:[\]]/.test(r)?this.createSimpleEvaluator(r):t=>p.getNestedValue(t,r)}static createObjectEvaluator(r){const n=r.trim().slice(1,-1),t=this.parseObjectProperties(n);return s=>{const o={};for(const{key:i,value:a}of t)try{if(a.startsWith("ctx.")){const f=a.slice(4);o[i]=p.getNestedValue(s,f)}else o[i]=this.evaluateSimpleValue(a,s)}catch{o[i]=void 0}return o}}static parseObjectProperties(r){const n=[],t=r.split(",");for(const s of t){const o=s.indexOf(":");if(o===-1)continue;const i=s.slice(0,o).trim(),a=s.slice(o+1).trim(),f=i.replace(/^['"]|['"]$/g,"");n.push({key:f,value:a})}return n}static createSimpleEvaluator(r){return n=>{try{let t=r;const s=[];t=t.replace(/("[^"\\]*(?:\\.[^"\\]*)*"|'[^'\\]*(?:\\.[^'\\]*)*')/g,k=>`<<#${s.push(k)-1}#>>`);const o=t.match(/ctx\.[\w.]+/g)||[];for(const k of o){const c=k.slice(4),g=p.getNestedValue(n,c);if(g===void 0)return;const d=s.push(JSON.stringify(g))-1;t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${d}#>>`)}const i=/\b[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+\b/g,a=t.match(i)||[];for(const k of a){if(k.startsWith("ctx."))continue;const c=p.getNestedValue(n,k);if(c===void 0)return;const g=s.push(JSON.stringify(c))-1;t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${g}#>>`)}const f=/\b([a-zA-Z_][a-zA-Z0-9_]*)\b/g;let u;const S=new Set;for(;(u=f.exec(t))!==null;){const k=u[1];if(["true","false","null","undefined"].includes(k)||/^[0-9]+$/.test(k)||k==="ctx"||S.has(k))continue;S.add(k);const c=p.getNestedValue(n,k);if(c===void 0)return;const g=JSON.stringify(c),d=s.push(g)-1;k.includes(".")?t=t.replace(new RegExp(k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),`<<#${d}#>>`):t=t.replace(new RegExp("\\b"+k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","g"),`<<#${d}#>>`)}t=t.replace(/<<#(\d+)#>>/g,(k,c)=>s[Number(c)]);try{return this.evaluateBasicExpression(t)}catch{return}}catch{return}}}static evaluateBasicExpression(r){const n=this.tokenize(r);let t=0;function s(){return n[t]}function o(l){const E=n[t++];if(l&&!E)throw new Error(`Unexpected token EOF, expected ${l}`);if(l&&E&&E.type!==l&&E.value!==l)throw new Error(`Unexpected token ${E.type}/${E.value}, expected ${l}`);return E}function i(){return d()}function a(l){if(typeof l=="number")return l;if(l==null)return NaN;if(typeof l=="boolean")return l?1:0;const E=Number(l);return Number.isNaN(E)?NaN:E}function f(l,E){return typeof l=="string"||typeof E=="string"?String(l)+String(E):a(l)+a(E)}function u(l,E){return a(l)-a(E)}function S(l,E){return a(l)*a(E)}function k(l,E){return a(l)/a(E)}function c(l,E){return a(l)%a(E)}function g(l,E,y){if(typeof E=="number"&&typeof y=="number")switch(l){case">":return E>y;case"<":return E<y;case">=":return E>=y;case"<=":return E<=y;default:return!1}const h=String(E),C=String(y);switch(l){case">":return h>C;case"<":return h<C;case">=":return h>=C;case"<=":return h<=C;default:return!1}}function d(){const l=b(),E=s();if(E&&E.value==="?"){o("?");const y=i();o(":");const h=i();return l?y:h}return l}function b(){let l=m();for(;;){const E=s();if(!E||E.value!=="||")break;o("OP");const y=m();l=l||y}return l}function m(){let l=L();for(;;){const E=s();if(!E||E.value!=="&&")break;o("OP");const y=L();l=l&&y}return l}function L(){let l=w();for(;;){const E=s();if(!E||!["==","!=","===","!=="].includes(E.value))break;const y=o("OP").value,h=w();switch(y){case"==":l=l==h;break;case"!=":l=l!=h;break;case"===":l=l===h;break;case"!==":l=l!==h;break}}return l}function w(){let l=v();for(;;){const E=s();if(!E||![">","<",">=","<="].includes(E.value))break;const y=o("OP").value,h=v();switch(y){case">":l=g(">",l,h);break;case"<":l=g("<",l,h);break;case">=":l=g(">=",l,h);break;case"<=":l=g("<=",l,h);break}}return l}function v(){let l=_();for(;;){const E=s();if(!E||E.value!=="+"&&E.value!=="-")break;const y=o("OP").value,h=_();l=y==="+"?f(l,h):u(l,h)}return l}function _(){let l=T();for(;;){const E=s();if(!E||E.value!=="*"&&E.value!=="/"&&E.value!=="%")break;const y=o("OP").value,h=T();switch(y){case"*":l=S(l,h);break;case"/":l=k(l,h);break;case"%":l=c(l,h);break}}return l}function T(){const l=s();if(l&&l.value==="!")return o("OP"),!T();if(l&&l.value==="-"){o("OP");const E=T();return u(0,E)}return N()}function N(){const l=s();if(l){if(l.type==="NUMBER")return o("NUMBER"),Number(l.value);if(l.type==="STRING")return o("STRING"),l.value.slice(1,-1);if(l.type==="IDENT")return o("IDENT"),l.value==="true"?!0:l.value==="false"?!1:l.value==="null"?null:void 0;if(l.value==="["){o("PUNC");const E=[];for(;;){const y=s();if(!y||y.value==="]")break;E.push(i());const h=s();h&&h.value===","&&o("PUNC")}return o("PUNC"),E}if(l.value==="("){o("PUNC");const E=i();return o("PUNC"),E}throw new Error("Unexpected token in expression")}}return i()}static tokenize(r){const n=[],t=/\s*(=>|===|!==|==|!=|>=|<=|\|\||&&|[()?:,[\]]|\+|-|\*|\/|%|>|<|!|\d+\.?\d*|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[a-zA-Z_][a-zA-Z0-9_]*|\S)\s*/g;let s;for(;(s=t.exec(r))!==null;){const o=s[1];o&&(/^\d/.test(o)?n.push({type:"NUMBER",value:o}):/^"/.test(o)||/^'/.test(o)?n.push({type:"STRING",value:o}):/^[a-zA-Z_]/.test(o)?n.push({type:"IDENT",value:o}):/^[()?:,[\]]$/.test(o)?n.push({type:"PUNC",value:o}):n.push({type:"OP",value:o}))}return n}static evaluateSimpleValue(r,n){if(r==="true")return!0;if(r==="false")return!1;if(!isNaN(Number(r)))return Number(r);if(r.startsWith("ctx.")){const t=r.slice(4);return p.getNestedValue(n,t)}return r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'")?r.slice(1,-1):r}static clearCache(){this.cache.clear()}static getCacheSize(){return this.cache.size}}class U{static cleanupFunctions=new WeakMap;static addListener(r,n,t,s){r.addEventListener(n,t,s);const i={event:n,handler:t,wrapper:t,options:s,cleanup:()=>r.removeEventListener(n,t,s),addedAt:Date.now()};this.cleanupFunctions.has(r)||this.cleanupFunctions.set(r,[]);const a=this.cleanupFunctions.get(r);a.push(i),a.__metaList=a}static removeListener(r,n,t,s){r.removeEventListener(n,t,s);const o=this.cleanupFunctions.get(r);if(o)for(let i=0;i<o.length;i++){const a=o[i];if(a.event===n&&a.handler===t){o.splice(i,1),o.length===0&&this.cleanupFunctions.delete(r);return}}}static cleanup(r){const n=this.cleanupFunctions.get(r);n&&(n.forEach(t=>{try{t.cleanup()}catch{}}),this.cleanupFunctions.delete(r))}static cleanupAll(){this.cleanupFunctions=new WeakMap}static hasListeners(r){const n=this.cleanupFunctions.get(r);return!!(n&&n.length>0)}static getListenerCount(r){const n=this.cleanupFunctions.get(r);return n?n.length:0}static getListenerInfo(r){const n=this.cleanupFunctions.get(r);return n?n.map(t=>({event:t.event,handler:t.handler,wrapper:t.wrapper,options:t.options})):[]}}function Se(e,r){return Array.isArray(e)&&Array.isArray(r)?JSON.stringify([...e].sort())!==JSON.stringify([...r].sort()):e!==r}function He(e,r,n,t,s){if(e){const o=r.value;if(s&&typeof o=="object"&&o!==null){const i={...o};i[s]=n,r.value=i}else r.value=n}else{const o=t._state||t;p.setNestedValue(o,r,n)}}function _e(e,r,n,t){if(typeof e._requestRender=="function"&&e._requestRender(),typeof e._triggerWatchers=="function"){const s=r?"reactiveState":n;e._triggerWatchers(s,t)}}function st(e,r,n){const t=`update:${p.toKebab(r)}`,s=`update:${r}`,o=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}),i=new CustomEvent(s,{detail:n,bubbles:!0,cancelable:!0});e.dispatchEvent(o),e.dispatchEvent(i)}function xe(e,r,n,t){const s=n;if(p.safe(()=>{if(typeof e.setAttribute=="function")try{e[r]=s}catch{}else e[r]=s}),s==null||typeof s=="string"||typeof s=="number"||typeof s=="boolean"){const o=p.safeSerializeAttr(s);o!==null?p.safe(()=>{typeof e.setAttribute=="function"&&e.setAttribute(p.toKebab(r),o)}):p.safe(()=>{typeof e.removeAttribute=="function"&&e.removeAttribute(p.toKebab(r))})}}function it(e,r,n,t){if(e){const s=r.value;return t&&typeof s=="object"&&s!==null?s[t]:s}else{const s=n._state||n;return p.getNestedValue(s,r)}}function se(e){return e?e.split(/\s+/).filter(Boolean):[]}function ie(e,r){if(r.length===0)return;const n=r.filter(t=>t&&!e.classList.contains(t));n.length>0&&e.classList.add(...n)}function re(e,r){if(r.length===0)return;const n=r.filter(Boolean);n.length>0&&e.classList.remove(...n)}let we=!1;async function ot(e,r,n=10){if(!we){if(!e.isConnected){j.devWarn("⚠️ Element not connected to DOM, skipping style wait");return}for(let t=0;t<n;t++){const s=window.getComputedStyle(e),o=s.transform&&s.transform!=="",i=s.opacity&&s.opacity!=="";if(o||i){we=!0;return}await new Promise(a=>requestAnimationFrame(()=>a(void 0)))}we=!0,j.devWarn("⚠️ Styles did not load in time for transition, continuing anyway")}}function at(e){const r=window.getComputedStyle(e),n=r.transitionDuration||"0s",t=r.transitionDelay||"0s",s=o=>{const i=parseFloat(o);return o.includes("ms")?i:i*1e3};return s(n)+s(t)}function ze(e,r){return new Promise(n=>{const t=r??at(e);if(t<=0){n();return}let s=!1;const o=()=>{s||(s=!0,e.removeEventListener("transitionend",i),e.removeEventListener("transitioncancel",i),n())},i=()=>o();e.addEventListener("transitionend",i),e.addEventListener("transitioncancel",i),setTimeout(o,t+50)})}async function pe(e,r){const{classes:n,hooks:t,css:s,duration:o}=r;if(t?.onBeforeEnter)try{t.onBeforeEnter(e)}catch(d){j.devError("Transition onBeforeEnter error:",d)}if(!s)return t?.onEnter?new Promise(d=>{const b=t.onEnter;typeof b=="function"?b(e,()=>{if(t?.onAfterEnter)try{t.onAfterEnter(e)}catch(m){j.devError("Transition onAfterEnter error:",m)}d()}):d()}):void 0;const i=se(n?.enterFrom),a=se(n?.enterActive),f=se(n?.enterTo);ie(e,i),e.offsetHeight,ie(e,a),e.offsetHeight;let u;if(t?.onEnter){const d=new Promise(b=>{u=b});try{const b=t.onEnter;typeof b=="function"&&b(e,()=>{u&&u()})}catch(b){j.devError("Transition onEnter error:",b)}u&&await d}await new Promise(d=>requestAnimationFrame(()=>d(void 0))),e.offsetHeight;const S=window.getComputedStyle(e),k=S.transform,c=S.opacity;re(e,i),k&&k!=="none"&&(e.style.transform=k),c&&c!==""&&(e.style.opacity=c),e.offsetHeight,await new Promise(d=>requestAnimationFrame(()=>d(void 0))),e.style.transform="",e.style.opacity="",ie(e,f),e.offsetHeight,await new Promise(d=>requestAnimationFrame(()=>d(void 0)));let g;if(typeof o=="number"?g=o:o&&typeof o=="object"&&"enter"in o&&(g=o.enter),await ze(e,g),re(e,a),t?.onAfterEnter)try{t.onAfterEnter(e)}catch(d){j.devError("Transition onAfterEnter error:",d)}}async function Te(e,r){const{classes:n,hooks:t,css:s,duration:o}=r;if(t?.onBeforeLeave)try{t.onBeforeLeave(e)}catch(k){j.devError("Transition onBeforeLeave error:",k)}if(!s)return t?.onLeave?new Promise(k=>{const c=t.onLeave;typeof c=="function"?c(e,()=>{if(t?.onAfterLeave)try{t.onAfterLeave(e)}catch(g){j.devError("Transition onAfterLeave error:",g)}k()}):k()}):void 0;const i=se(n?.leaveFrom),a=se(n?.leaveActive),f=se(n?.leaveTo);ie(e,i),e.offsetHeight,ie(e,a);let u;if(t?.onLeave){const k=new Promise(c=>{u=c});try{const c=t.onLeave;typeof c=="function"&&c(e,()=>{u&&u()})}catch(c){j.devError("Transition onLeave error:",c)}u&&await k}await new Promise(k=>requestAnimationFrame(()=>k(void 0))),await ot(e,[...i,...a]),re(e,i),ie(e,f);let S;if(typeof o=="number"?S=o:o&&typeof o=="object"&&"leave"in o&&(S=o.leave),await ze(e,S),re(e,a),re(e,f),re(e,i),t?.onAfterLeave)try{t.onAfterLeave(e)}catch(k){j.devError("Transition onAfterLeave error:",k)}}const Ke=new WeakMap,Ve=new WeakMap;function ke(e){if(!e)return;const r=Ke.get(e);if(r!==void 0)return r;try{const n=e;if(n&&n.key!=null)return String(n.key)}catch{}if(e instanceof Element){const n=e.getAttribute("data-anchor-key");if(n)return n}}function z(e,r){try{Ke.set(e,r)}catch{}try{e.key=r}catch{}try{if(e instanceof Element){const n=p.safeSerializeAttr(r);n!==null&&e.setAttribute("data-anchor-key",n)}}catch{}}function ct(e){if(!e)return;const r=Ve.get(e);if(r!==void 0)return r;try{const n=e;if(n&&n._transitionGroup!=null)return n._transitionGroup}catch{}}function lt(e,r){try{Ve.set(e,r)}catch{}try{e._transitionGroup=r}catch{}}function oe(e){return e!==null&&typeof e=="object"&&"value"in e}function Oe(e){try{if(p.isReactiveState(e))return e.value}catch{}try{if(oe(e))return e.value}catch{}return e}function V(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement}function ae(e){return e===""?!0:typeof e=="string"?e==="false"?!1:e==="true"?!0:e!=="":e&&typeof e=="object"?p.isReactiveState(e)||"value"in e?!!e.value:!1:!!e}function ne(e,r){if(!r||!(e instanceof HTMLElement))return;U.cleanup(e);for(const t in r)r[t]===e&&delete r[t];const n=e.childNodes;for(let t=0;t<n.length;t++)ne(n[t],r)}function he(e,r,n){if(typeof e=="string")return;const t=e.props?.reactiveRef??(e.props?.props&&e.props.props.reactiveRef),s=e.props?.ref??(e.props?.props&&e.props.props.ref);if(t)try{if(p.isReactiveState(t)||typeof t=="object"&&"value"in t)t.value=r;else if(typeof t=="function")t(r);else if(typeof t=="string"&&n)try{const o=String(t);n[o]=r}catch{}}catch{}else if(s&&n)try{const o=String(s);n[o]=r}catch{}}function ft(e,r,n,t,s,o,i,a){if(!o)return;const f=r.includes("lazy"),u=r.includes("trim"),S=r.includes("number"),k=()=>{if(p.isReactiveState(e)){const _=e.value;return a&&i&&(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)&&typeof _=="object"&&_!==null?_[a]:_}const v=o?._state||o;return p.getNestedValue(v,e)},c=k();let g="text";i instanceof HTMLInputElement?g=t?.type||i.type||"text":i instanceof HTMLSelectElement?g="select":i instanceof HTMLTextAreaElement&&(g="textarea");const d=i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement,m=d?g==="checkbox"||g==="radio"?"checked":"value":a??"modelValue";if(g==="checkbox")if(Array.isArray(c))n[m]=c.includes(String(i?.getAttribute("value")??t?.value??""));else{const v=i?.getAttribute("true-value")??!0;n[m]=c===v}else if(g==="radio")n[m]=c===(t?.value??"");else if(g==="select")if(i&&i.hasAttribute("multiple")&&i instanceof HTMLSelectElement){const v=Array.isArray(c)?c.map(String):[];setTimeout(()=>{Array.from(i.options).forEach(_=>{_.selected=v.includes(_.value)})},0),n[m]=Array.isArray(c)?c:[]}else n[m]=c;else{!d&&p.isReactiveState(e)?n[m]=e:n[m]=c;try{const v=p.toKebab(m);t&&(t[v]=c)}catch{}}const L=f||g==="checkbox"||g==="radio"||g==="select"?"change":"input",w=v=>{if(v.isComposing||s._isComposing)return;const _=globalThis.process,T=!!_&&_.env?.NODE_ENV==="test"||typeof window<"u"&&globalThis.__vitest__;if(v.isTrusted===!1&&!T)return;const N=v.target;if(!N||N._modelUpdating)return;let O=N.value;if(g==="checkbox"){const y=k();if(Array.isArray(y)){const h=N.getAttribute("value")??"",C=Array.from(y);if(N.checked)C.includes(h)||C.push(h);else{const P=C.indexOf(h);P>-1&&C.splice(P,1)}O=C}else{const h=N.getAttribute("true-value")??!0,C=N.getAttribute("false-value")??!1;O=N.checked?h:C}}else if(g==="radio")O=N.getAttribute("value")??N.value;else if(g==="select"&&N.multiple)O=Array.from(N.selectedOptions).map(y=>y.value);else if(u&&typeof O=="string"&&(O=O.trim()),S){const y=Number(O);isNaN(y)||(O=y)}const l=k();if(Se(O,l)){N._modelUpdating=!0;try{He(p.isReactiveState(e),e,O,o,a),_e(o,p.isReactiveState(e),e,O),N&&st(N,m,O)}finally{setTimeout(()=>N._modelUpdating=!1,0)}}};if(d){if(s[L]){const v=s[L];i&&U.removeListener(i,L,v)}s[L]=w}else{const v=`update:${p.toKebab(m)}`,_=`update:${m}`;if(s[v]){const T=s[v];i&&U.removeListener(i,v,T)}if(s[_]){const T=s[_];i&&U.removeListener(i,_,T)}if(s[v]=T=>{const N=T.detail;let O=N!==void 0?N:void 0;if(O===void 0){const y=T.target;if(y&&typeof y=="object"&&"value"in y)try{O=y.value}catch{O=void 0}}const l=it(p.isReactiveState(e),e,o,a);if(Se(O,l)){He(p.isReactiveState(e),e,O,o,a),_e(o,p.isReactiveState(e),e,O);const y=T.target;y&&xe(y,m,p.isReactiveState(e)?e:O,p.isReactiveState(e))}},p.isReactiveState(e)&&typeof e.value=="object"&&e.value!==null){let T=[];try{T=Reflect.ownKeys(e.value)}catch{T=Object.keys(e.value)}const N=T.filter(O=>typeof O=="string"&&!String(O).startsWith("_")&&O!=="constructor");for(const O of N){const l=String(O),E=`update:${p.toKebab(l)}`,y=`update:${l}`;s[E]||(s[E]=h=>{const C=h.detail!==void 0?h.detail:h.target?.value,P=p.isReactiveState(e)?e.value[l]:p.getNestedValue(o?._state||o,e);if(!Se(C,P))return;if(p.isReactiveState(e)){const x={...e.value};x[l]=C,e.value=x}else p.setNestedValue(o?._state||o,e,C);_e(o,p.isReactiveState(e),e,C);const A=h.currentTarget||i||h.target;A&&xe(A,m,p.isReactiveState(e)?e:C,p.isReactiveState(e))},s[y]=s[E])}}s[_]=s[v]}(g==="text"||g==="textarea")&&(s.compositionstart=()=>s._isComposing=!0,s.compositionend=v=>{s._isComposing=!1;const _=v.target;_&&setTimeout(()=>{const T=_.value,N=o?._state||o,O=p.getNestedValue(N,e);let l=T;if(u&&(l=l.trim()),S){const y=Number(l);isNaN(y)||(l=y)}if(Se(l,O)){_._modelUpdating=!0;try{p.setNestedValue(N,e,l),_e(o,p.isReactiveState(e),e,l)}finally{setTimeout(()=>_._modelUpdating=!1,0)}}},0)})}function Fe(e){const r=e.slice(2);return r?r.charAt(0).toLowerCase()+r.slice(1):""}function ut(e,r,n,t,s){if(typeof e=="object"&&e!==null)for(const[o,i]of Object.entries(e))if(o.startsWith("data-")||o.startsWith("aria-")||o==="class")n[o]=i;else if(o==="disabled"&&s&&V(s)){const a=i&&typeof i=="object"&&"value"in i;(()=>{try{return p.isReactiveState(i)}catch{return!1}})()||a?r[o]=i:n[o]=i}else r[o]=i;else if(typeof e=="string"){if(!t)return;try{const o=be(e,t);if(typeof o=="object"&&o!==null){for(const[i,a]of Object.entries(o))if(i.startsWith("data-")||i.startsWith("aria-")||i==="class")n[i]=a;else if(i==="disabled"&&s&&V(s)){const f=a&&typeof a=="object"&&"value"in a;(()=>{try{return p.isReactiveState(a)}catch{return!1}})()||f?r[i]=a:n[i]=a}else r[i]=a;return}else{n[e]=o;return}}catch{const o=p.getNestedValue(t,e);n[e]=o}}}function dt(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;const s=String(r.style||"");let o=s;if(t){if(s){const i=String(s).split(";").map(f=>f.trim()).filter(Boolean),a=i.findIndex(f=>f.startsWith("display:"));a>=0&&i[a]==="display: none"&&(i.splice(a,1),o=i.length>0?i.join("; ")+";":"")}}else if(s){const i=String(s).split(";").filter(Boolean),a=i.findIndex(f=>f.trim().startsWith("display:"));a>=0?i[a]="display: none":i.push("display: none"),o=i.join("; ")}else o="display: none";o!==s&&(o?r.style=o:delete r.style)}function be(e,r){return rt.evaluate(e,r)}function pt(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;try{if(t&&typeof t=="object"){if(p.isReactiveState(t))t=t.value;else if("value"in t&&typeof t.value<"u"){const a=t.value;a instanceof Node||(t=a)}}}catch{}let s=[];if(typeof t=="string")s=[t];else if(Array.isArray(t))s=t.filter(Boolean);else if(typeof t=="object"&&t!==null)for(const[a,f]of Object.entries(t))f&&s.push(a);const o=r.class||"",i=s.join(" ");r.class=o?`${o} ${i}`.trim():i}function Re(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,t=typeof n;return t==="boolean"?!0:t==="string"?n===""||n==="true"||n==="false":!1}}catch{}return!1}function ht(e,r,n){let t;if(typeof e=="string"){if(!n)return;t=be(e,n)}else t=e;let s="";if(typeof t=="string")s=t;else if(t&&typeof t=="object"){const i=[];for(const[a,f]of Object.entries(t))if(f!=null&&f!==""){const u=a.replace(/[A-Z]/g,c=>`-${c.toLowerCase()}`),S=["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 k=String(f);typeof f=="number"&&S.includes(u)&&(k=`${f}px`),i.push(`${u}: ${k}`)}s=i.join("; ")+(i.length>0?";":"")}const o=String(r.style||"");r.style=o+(o&&!o.endsWith(";")?"; ":"")+s}function yt(e,r,n){let t=e;typeof e=="string"&&n&&(t=be(e,n)),p.isReactiveState(t)?r.reactiveRef=t:r.ref=t}function Ue(e,r,n,t){const s={},o={...t||{}},i={};for(const[a,f]of Object.entries(e)){const{value:u,modifiers:S,arg:k}=f;if(a==="model"||a.startsWith("model:")){const c=a.split(":"),g=c.length>1?c[1]:k;ft(u,S,s,o,i,r,n,g);continue}switch(a){case"bind":ut(u,s,o,r,n);break;case"show":dt(u,o,r);break;case"class":pt(u,o,r);break;case"style":ht(u,o,r);break;case"ref":yt(u,s,r);break}}try{if(Object.prototype.hasOwnProperty.call(s,"disabled")&&n&&V(n)){const f=s.disabled,u=f&&typeof f=="object"&&"value"in f;let S=!1;try{S=p.isReactiveState(f)}catch{S=!1}if(!u&&!S)try{o.disabled=f,delete s.disabled;const k=globalThis;k.__VDOM_DISABLED_PROMOTIONS||(k.__VDOM_DISABLED_PROMOTIONS=[]),k.__VDOM_DISABLED_PROMOTIONS.push({phase:"bind-directive:postfix-move",location:"attrs",key:"disabled",value:f,time:Date.now(),stack:new Error().stack})}catch{}}}catch{}return{props:s,attrs:o,listeners:i}}function Pe(e,r){if(Array.isArray(e)){const o=new Set;return e.map(i=>{if(!i||typeof i!="object")return i;let a=i.props?.key??i.key;if(!a){const k=i.tag||"node",g=[i.props?.attrs?.id,i.props?.attrs?.name,i.props?.attrs?.["data-key"],i.props?.props?.id,i.props?.props?.name,i.props?.props?.dataKey,i.props?.props?.["data-key"]].find(d=>d!=null)??"";a=g?`${r}:${k}:${g}`:`${r}:${k}`}let f=a,u=1;for(;o.has(f);)f=`${a}#${u++}`;o.add(f);let S=i.children;return Array.isArray(S)&&(S=Pe(S,f)),{...i,key:f,children:S}})}const n=e,t=n.props?.key??n.key??r;let s=n.children;return Array.isArray(s)&&(s=Pe(s,t)),{...n,key:t,children:s}}function Ie(e,r,n,t){const s=n.directives??{},o=Ue(s,t,e,n.attrs),i={...r.props||{},...n.props||{},...o.props||{}},a={...r.attrs||{},...n.attrs||{},...o.attrs||{}},f=r.props??{},u=i,S=!!(n?.isCustomElement??r?.isCustomElement??!1);let k=!1;for(const d in{...f,...u}){const b=f[d],m=u[d];let L=b,w=m;if(p.safe(()=>{(p.isReactiveState(b)||oe(b))&&(L=b.value)}),p.safe(()=>{(p.isReactiveState(m)||oe(m))&&(w=m.value)}),!(b===m&&L===w))if(k=!0,d==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)){const v=Oe(m),_=v==null?"":String(v);e.value!==_&&(e.value=_)}else if(d==="checked"&&e instanceof HTMLInputElement){const v=Oe(m);e.checked=!!v}else if(d.startsWith("on")&&typeof m=="function"){const v=Fe(d);typeof b=="function"&&U.removeListener(e,v,b),typeof m=="function"&&U.addListener(e,v,m);try{if(v&&v.startsWith("update:")){const _=v.split(":",2)[1],T=u[_];let N=[];try{if(p.isReactiveState(T)){const l=T.value;N=l&&typeof l=="object"?Object.keys(l):[]}else T&&typeof T=="object"&&(N=Object.keys(T))}catch{N=[]}const O=N.filter(l=>typeof l=="string"&&!l.startsWith("_")&&l!=="constructor");for(const l of O){const E=`update:${l}`,y=h=>{const C=h.detail!==void 0?h.detail:h.target instanceof HTMLInputElement||h.target instanceof HTMLTextAreaElement||h.target instanceof HTMLSelectElement?h.target.value:void 0,R={...p.isReactiveState(T)?T.value||{}:u[_]||{},[l]:C};try{typeof m=="function"&&m({detail:R})}catch{}};p.safe(()=>{U.addListener(e,E,y)})}}}catch{}}else if(m==null)e.removeAttribute(d);else{const v=n?.isCustomElement??r?.isCustomElement??!1;if(v||d in e)try{e[d]=m,d==="disabled"&&m===!1&&!v&&V(e)&&e.removeAttribute("disabled")}catch{}else m===!1&&e.removeAttribute(d)}}for(const[d,b]of Object.entries(o.listeners||{})){U.addListener(e,d,b);try{const m=e&&e.parentElement;m&&m!==e&&U.addListener(m,d,b)}catch{}}const c=r.attrs??{},g=a;for(const d in{...c,...g}){const b=c[d],m=g[d];let L=b,w=m;if(p.isReactiveState(b)&&(L=b.value),p.isReactiveState(m)&&(w=m.value),L!==w)if(k=!0,w==null||w===!1)p.safe(()=>{e.removeAttribute(d)}),d==="value"&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?p.safe(()=>{e.value=""}):e instanceof HTMLSelectElement?p.safe(()=>{e.value=""}):e instanceof HTMLProgressElement&&p.safe(()=>{e.value=0})),d==="checked"&&e instanceof HTMLInputElement&&p.safe(()=>{e.checked=!1}),d==="disabled"&&V(e)&&p.safe(()=>{(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=!1)});else{if(d==="value"){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){p.safe(()=>{e.value=w??""});continue}else if(e instanceof HTMLSelectElement){p.safe(()=>{e.value=w??""});continue}else if(e instanceof HTMLProgressElement){p.safe(()=>{e.value=Number(w)});continue}}if(d==="checked"&&e instanceof HTMLInputElement){p.safe(()=>{e.checked=!!w});continue}if(d==="style"){const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_);continue}if(d==="disabled"&&V(e)){p.safe(()=>{const _=ae(w);(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=_)}),ae(w)?p.safe(()=>{e.setAttribute(d,"")}):p.safe(()=>{e.removeAttribute(d)});continue}const v=e.namespaceURI==="http://www.w3.org/2000/svg";if(S&&!v&&d.includes("-"))if(p.isClassLikeAttr(d)){const _=p.safeSerializeAttr(m??w);if(_!==null)try{e.setAttribute(d,_)}catch{}}else{const _=p.toCamel(d);try{const T=e;T[_]=p.isReactiveState(m)?m:w}catch{const T=p.safeSerializeAttr(m??w);T!==null&&e.setAttribute(d,T)}}else if(!v&&d in e)try{const _=e;_[d]=p.isReactiveState(m)?m:w}catch{const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_)}else{const _=p.safeSerializeAttr(w);_!==null&&e.setAttribute(d,_)}}}try{if(V(e)){const d=i.disabled;let b;try{const L=Object.prototype.hasOwnProperty.call(o.props||{},"disabled"),w=d&&typeof d=="object"&&"value"in d;let v=!1;p.safe(()=>{v=!!p.isReactiveState(d)});const _=Re(d);v||w||L||_?b=d:b=a.disabled}catch{b=a.disabled}const m=ae(b);p.safe(()=>{(e instanceof HTMLInputElement||e instanceof HTMLSelectElement||e instanceof HTMLTextAreaElement||e instanceof HTMLButtonElement)&&(e.disabled=m)}),m?p.safe(()=>{e.setAttribute("disabled","")}):p.safe(()=>{e.removeAttribute("disabled")})}}catch{}if(S&&k){const d=e;p.safe(()=>{d._applyProps?.(d._cfg)}),p.safe(()=>{typeof d.requestRender=="function"?d.requestRender():typeof d._render=="function"&&d._render?.(d._cfg)})}}function K(e,r,n){if(typeof e=="string")return document.createTextNode(e);if(e.tag==="#text"){const c=document.createTextNode(typeof e.children=="string"?e.children:"");return e.key!=null&&z(c,e.key),c}if(e.tag==="#raw"){const c=typeof e.children=="string"?e.children:"";return document.createRange().createContextualFragment(c)}if(e.tag==="#anchor"){const c=e,g=Array.isArray(c.children)?c.children:[],d=document.createTextNode(""),b=document.createTextNode("");c.key!=null&&(z(d,`${c.key}:start`),z(b,`${c.key}:end`)),c._startNode=d,c._endNode=b;const m=document.createDocumentFragment();m.appendChild(d);for(const L of g){const w=K(L,r);if(c.key!=null&&w instanceof Element&&!w.hasAttribute("data-anchor-key")){const v=L;v&&typeof v=="object"&&v.key!=null||z(w,String(c.key))}m.appendChild(w)}return m.appendChild(b),m}const t=document.createElement(e.tag);e.key!=null&&z(t,e.key),e.props&&e.props?._transitionGroup&&lt(t,e.props?._transitionGroup);const{props:s={},attrs:o={},directives:i={}}=e.props??{},a=Ue(i,r,t,o),f={...s,...a.props},u={...o,...a.attrs};try{const c=(u&&u.class)??(f&&f.class)??(e.props&&e.props.attrs&&e.props.attrs.class)??(e.props&&e.props.props&&e.props.props.class),g=p.safeSerializeAttr(c);if(g!==null){const d=String(g).trim();d&&t.setAttribute("class",d)}}catch{}try{if(f.disabled!==void 0&&t&&V(t)){const c=f.disabled,g=c&&typeof c=="object"&&"value"in c;let d=!1;try{d=p.isReactiveState(c)}catch{d=!1}!g&&!d&&p.safe(()=>{u.disabled=c,delete f.disabled})}}catch{}const S=t.namespaceURI==="http://www.w3.org/2000/svg";for(const c in u){const g=u[c];if(typeof c!="string"||/\[object Object\]/.test(c))continue;const d=Oe(g);if(typeof d=="boolean")d?t.setAttribute(c,""):p.safe(()=>{t.removeAttribute(c)});else if(d!=null){if(c==="disabled"&&V(t)){const b=f.disabled,m=Re(b)?b:d,L=ae(m);p.safe(()=>{t.disabled=L}),L?p.safe(()=>{t.setAttribute(c,"")}):p.safe(()=>{t.removeAttribute(c)});continue}if(!S&&c==="value"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement||t instanceof HTMLProgressElement))try{t instanceof HTMLProgressElement?t.value=Number(d):t.value=String(d??"")}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if(!S&&c==="checked"&&t instanceof HTMLInputElement)try{t.checked=!!d}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if(!S&&c in t)try{t[c]=d,c==="disabled"&&d===!1&&V(t)&&t.removeAttribute("disabled")}catch{const b=p.safeSerializeAttr(d);b!==null&&t.setAttribute(c,b)}else if((e.props?.isCustomElement??!1)&&!S&&c.includes("-")){const m=p.toCamel(c);try{t[m]=d}catch{const L=p.safeSerializeAttr(d);L!==null&&t.setAttribute(c,L)}}else{const m=p.safeSerializeAttr(d);m!==null&&t.setAttribute(c,m)}}}for(const c in f){const g=f[c];if(!(typeof c!="string"||/\[object Object\]/.test(c)))if(c==="value"&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const d=typeof g=="object"&&g!==null&&oe(g)?g.value:g;p.safe(()=>{t.value=String(d??"")})}else if(c.startsWith("on")&&typeof g=="function"){const d=Fe(c),b=d.includes(":")?(()=>{const m=d.split(":"),L=m[1];if(L.includes("-")){const w=L.split("-").map((v,_)=>_===0?v:v.charAt(0).toUpperCase()+v.slice(1)).join("");return`${m[0]}:${w}`}else{const w=L.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();return`${m[0]}:${w}`}})():d;a.listeners&&(a.listeners[d]||a.listeners[b])||U.addListener(t,d,g)}else{if(c.startsWith("on")&&g===void 0)continue;if(g==null||g===!1)t.removeAttribute(c);else{const d=e.props?.isCustomElement??!1,b=typeof g=="object"&&g!==null&&p.isReactiveState(g)?g:oe(g)&&typeof g.value<"u"?g.value:g;if(c==="class"||c==="style"){try{const m=p.safeSerializeAttr(b);m!==null&&t.setAttribute(c,m)}catch{}continue}if(d||c in t)try{const m=typeof g=="object"&&g!==null&&p.isReactiveState(g)?g:oe(g)?g.value:g;if(c==="disabled"&&V(t)){const L=f.disabled!==void 0?f.disabled:m,w=ae(L);p.safe(()=>{t.disabled=w}),w?p.safe(()=>{t.setAttribute(c,"")}):p.safe(()=>{t.removeAttribute(c)});continue}try{if(typeof t[c]=="boolean"){let w=m;typeof m=="string"?m==="false"?w=!1:m==="true"?w=!0:w=!!m&&m!=="":w=!!m,t[c]=w}else t[c]=m}catch{t[c]=m}}catch{}}}}for(const[c,g]of Object.entries(a.listeners||{}))U.addListener(t,c,g);const k={...e,props:{...e.props,...a.props}};he(k,t,n);try{const c=t;if(typeof c._applyProps=="function")try{c._applyProps(c._cfg)}catch{}typeof c.requestRender=="function"?c.requestRender():typeof c._render=="function"&&c._render(c._cfg)}catch{}if(Array.isArray(e.children))for(const c of e.children)t.appendChild(K(c,r,n));else typeof e.children=="string"&&(t.textContent=e.children);try{if(t instanceof HTMLSelectElement&&u&&Object.prototype.hasOwnProperty.call(u,"value"))try{t.value=String(u.value??"")}catch{}}catch{}try{if(V(t)){const c=f.disabled,g=u.disabled,d=c&&typeof c=="object"&&"value"in c;let b=!1;try{b=!!p.isReactiveState(c)}catch{b=!1}const L=b||d||Re(c)?c:g,w=ae(L);p.safe(()=>{t.disabled=w}),w?p.safe(()=>{t.setAttribute("disabled","")}):p.safe(()=>{t.removeAttribute("disabled")})}}catch{}return t}function mt(e,r,n,t,s){if(typeof n=="string"){e.textContent!==n&&(e.textContent=n);return}if(!Array.isArray(n))return;const o=e.childNodes,i=[];for(let b=0;b<o.length;b++)i.push(o[b]);const a=Array.isArray(r)?r:[],f=ct(e);if(f){const b=v=>{if(typeof v=="string")return v.startsWith("each-")?v.substring(5):v;if(typeof v=="number")return String(v)},m=[],L=[];for(const v of n)if(v&&v.tag==="#anchor"){const _=Array.isArray(v.children)?v.children:[];for(const T of _){const N=b(T.key??v.key??"unknown");m.push({...T,key:N})}}else v&&m.push({...v,key:b(v.key)});for(const v of a)if(v&&v.tag==="#anchor"){const _=Array.isArray(v.children)?v.children:[];for(const T of _){const N=b(T.key??v.key??"unknown");L.push({...T,key:N})}}else v&&L.push({...v,key:b(v.key)});if(m.some(v=>v&&v.key!=null)||L.some(v=>v&&v.key!=null)){const v=new Map,_=new Map;for(const y of L)if(y&&y.key!=null){const h=String(y.key);v.set(h,y)}for(let y=0;y<i.length;y++){const h=i[y];let C=ke(h);if(C=b(C),C!=null&&h instanceof Element&&h.nodeType===Node.ELEMENT_NODE){let P=typeof C=="string"&&C.includes(":")?C.substring(0,C.lastIndexOf(":")):C;P=String(P),_.set(P,h)}}const T=new Set,N=new Map,O=i.length>0;if(f.moveClass&&O)for(let y=0;y<i.length;y++){const h=i[y];if(h instanceof HTMLElement&&h.parentElement){const C=h.getBoundingClientRect();N.set(h,C)}}const l=[];for(const y of m){let h=y.key;if(h==null)continue;h=String(h);const C=v.get(h);let P=_.get(h);if(P&&C){const R=ye(P,C,y,t);T.add(P);const A=String(h);z(R,A),l.push({node:R,key:h,newVNode:y,oldVNode:C,isNew:!1})}else{P=K(y,t),z(P,String(h)),e.appendChild(P);const R=O||f.appear===!0;P instanceof HTMLElement&&R&&pe(P,f).catch(A=>{j.devError("Enter transition error:",A)}),l.push({node:P,key:h,newVNode:y,isNew:!0})}}const E=[];for(let y=0;y<i.length;y++){const h=i[y],C=ke(h);if(!T.has(h)&&C!=null&&h instanceof HTMLElement){const R=Te(h,f).then(()=>{e.contains(h)&&e.removeChild(h)}).catch(A=>{j.devError("Leave transition error:",A),e.contains(h)&&e.removeChild(h)});E.push(R)}}if(E.length===0){let y=e.firstChild;for(const{node:h}of l)h!==y&&e.insertBefore(h,y),y=h.nextSibling;if(f.moveClass&&N.size>0){const h=[];for(const{node:C,isNew:P}of l)if(!P&&C instanceof HTMLElement){const R=N.get(C);if(R){const A=C.getBoundingClientRect(),x=R.left-A.left,$=R.top-A.top;if(x!==0||$!==0){const q=f.moveClass.split(/\s+/).filter(B=>B);h.push({node:C,deltaX:x,deltaY:$,moveClasses:q})}}}if(h.length>0){for(const{node:C,deltaX:P,deltaY:R}of h)C.style.transform=`translate(${P}px, ${R}px)`,C.style.transitionProperty="none";e.offsetHeight,requestAnimationFrame(()=>{requestAnimationFrame(()=>{for(const{node:C,moveClasses:P}of h)for(const R of P)C.classList.add(R);requestAnimationFrame(()=>{const C=f.moveClass||"",P=C.match(/duration-(\d+)/),R=P?`${P[1]}ms`:"300ms",A=C.match(/ease-(out|in|in-out|linear)/),x=A?`ease-${A[1]}`:"ease-out";for(const{node:$}of h)$.style.transition=`transform ${R} ${x}`;requestAnimationFrame(()=>{for(const{node:$,moveClasses:q}of h){$.style.removeProperty("transform");const B=()=>{for(const H of q)$.classList.remove(H);$.style.removeProperty("transition"),$.removeEventListener("transitionend",B),$.removeEventListener("transitioncancel",B)};$.addEventListener("transitionend",B,{once:!0}),$.addEventListener("transitioncancel",B,{once:!0})}})})})})}}}return}}const u=new Map;for(const b of a)b&&b.key!=null&&u.set(b.key,b);const S=new Map;for(let b=0;b<i.length;b++){const m=i[b],L=ke(m);L!=null&&S.set(L,m)}const k=new Set;let c=e.firstChild;function g(b,m){let L=b;for(;L&&(k.add(L),L!==m);)L=L.nextSibling}function d(b,m,L,w,v,_=!0){const T=[];let N=b.nextSibling;for(;N&&N!==m;)T.push(N),N=N.nextSibling;const O=Array.isArray(L)?L:[];if(w.some(E=>E&&E.key!=null)||O.some(E=>E&&E.key!=null)){const E=new Map,y=new Map;for(const R of O)R&&R.key!=null&&E.set(R.key,R);for(const R of T){const A=ke(R);A!=null&&y.set(A,R)}const h=v&&v.state==="visible"&&O.length===0&&w.length>0,C=new Set;let P=b.nextSibling;for(const R of w){let A;if(R.key!=null&&y.has(R.key)){const x=E.get(R.key);A=ye(y.get(R.key),x,R,t),C.add(A),v&&A instanceof HTMLElement&&h&&v.appear&&pe(A,v).catch($=>{j.devError("Transition enter error (appear):",$)}),A!==P&&e.contains(A)&&e.insertBefore(A,P)}else A=K(R,t),e.insertBefore(A,P),C.add(A),v&&A instanceof HTMLElement&&_&&pe(A,v).catch(x=>{j.devError("Transition enter error:",x)});P=A.nextSibling}for(const R of T)!C.has(R)&&e.contains(R)&&(v&&R instanceof HTMLElement&&_?Te(R,v).then(()=>{e.contains(R)&&e.removeChild(R)}).catch(A=>{j.devError("Transition leave error:",A),e.contains(R)&&e.removeChild(R)}):e.removeChild(R))}else{const E=Math.min(O.length,w.length);for(let y=0;y<E;y++){const h=O[y],C=w[y],P=ye(T[y],h,C,t);P!==T[y]&&(e.insertBefore(P,T[y]),e.removeChild(T[y]))}for(let y=E;y<w.length;y++){const h=K(w[y],t);e.insertBefore(h,m),v&&h instanceof HTMLElement&&_&&pe(h,v).catch(C=>{j.devError("Transition enter error:",C)})}for(let y=E;y<T.length;y++){const h=T[y];v&&h instanceof HTMLElement&&_?Te(h,v).then(()=>{e.contains(h)&&e.removeChild(h)}).catch(C=>{j.devError("Transition leave error:",C),e.contains(h)&&e.removeChild(h)}):e.removeChild(h)}}}for(const b of n){let m;if(b.tag==="#anchor"){const L=b.key,w=`${L}:start`,v=`${L}:end`;let _=S.get(w),T=S.get(v);const N=Array.isArray(b.children)?b.children:[];if(_||(_=document.createTextNode(""),z(_,w)),T||(T=document.createTextNode(""),z(T,v)),b._startNode=_,b._endNode=T,!e.contains(_)||!e.contains(T)){e.insertBefore(_,c);const O=b._transition,E=!(O&&O.state==="visible"&&N.length>0)||O.appear;for(const y of N){const h=K(y,t);e.insertBefore(h,c),O&&h instanceof HTMLElement&&E&&pe(h,O).catch(C=>{j.devError("Transition enter error:",C)})}e.insertBefore(T,c)}else{const O=b._transition,E=u.get(L)._transition,y=E&&E.state!==O?.state,h=O&&O.state==="visible"&&N.length>0&&!y,C=y||!h||O?.appear===!0;d(_,T,u.get(L)?.children,N,O,C)}g(_,T),c=T.nextSibling;continue}if(b.key!=null&&S.has(b.key)){const L=u.get(b.key);m=ye(S.get(b.key),L,b,t,s),k.add(m),m!==c&&e.contains(m)&&(c&&!e.contains(c)&&(c=null),e.insertBefore(m,c))}else m=K(b,t,s),c&&!e.contains(c)&&(c=null),e.insertBefore(m,c),k.add(m);c=m.nextSibling}for(let b=0;b<i.length;b++){const m=i[b];!k.has(m)&&e.contains(m)&&(ne(m,s),e.removeChild(m))}}function ye(e,r,n,t,s){if(r&&typeof r!="string"&&r.props?.ref&&s&&ne(e,s),r===n)return e;if(typeof n=="string"){if(e.nodeType===Node.TEXT_NODE)return e.textContent!==n&&(e.textContent=n),e;{const i=document.createTextNode(n);return e.parentNode?.replaceChild(i,e),i}}if(n&&typeof n!="string"&&n.tag==="#anchor"){const i=n,a=Array.isArray(i.children)?i.children:[],f=i._startNode??document.createTextNode(""),u=i._endNode??document.createTextNode("");i.key!=null&&(z(f,`${i.key}:start`),z(u,`${i.key}:end`)),i._startNode=f,i._endNode=u;const S=document.createDocumentFragment();S.appendChild(f);for(const k of a){const c=K(k,t);S.appendChild(c)}return S.appendChild(u),e.parentNode?.replaceChild(S,e),f}if(!n){ne(e,s);const i=document.createComment("removed");return e.parentNode?.replaceChild(i,e),i}if(!r||typeof r=="string"){ne(e,s);const i=K(n,t,s);return he(n,i,s),e.parentNode?.replaceChild(i,e),i}if(n.tag==="#anchor"){const i=Array.isArray(n.children)?n.children:[],a=n._startNode??document.createTextNode(""),f=n._endNode??document.createTextNode("");n.key!=null&&(z(a,`${n.key}:start`),z(f,`${n.key}:end`)),n._startNode=a,n._endNode=f;const u=document.createDocumentFragment();u.appendChild(a);for(const S of i)u.appendChild(K(S,t));return u.appendChild(f),e.parentNode?.replaceChild(u,e),a}if(typeof r!="string"&&typeof n!="string"&&r.tag===n.tag&&r.key===n.key){const i=e;return Ie(i,r.props||{},n.props||{},t),mt(i,r.children,n.children,t,s),he(n,i,s),i}if(typeof r!="string"&&typeof n!="string"&&r.tag===n.tag&&(r.tag&&String(r.tag).includes("-")||n.props&&n.props.isCustomElement||r.props&&r.props.isCustomElement))try{const a=e;return Ie(a,r.props||{},n.props||{},t),he(n,a,s),a}catch{}ne(e,s);const o=K(n,t,s);return he(n,o,s),e.parentNode?.replaceChild(o,e),o}function gt(e,r,n,t){let s;Array.isArray(r)?r.length===1?(s=r[0],s&&typeof s=="object"&&s.key==null&&(s={...s,key:"__root__"})):s={tag:"div",key:"__root__",children:r}:(s=r,s&&typeof s=="object"&&s.key==null&&(s={...s,key:"__root__"})),s&&typeof s=="object"&&s.tag==="#anchor"&&(s={tag:"div",key:"__anchor_root__",props:{attrs:{"data-anchor-block-root":"",key:"__anchor_root__"}},children:[s]}),s=Pe(s,String(s.key??"root"));const o=e._prevVNode??null,i=e._prevDom??e.firstChild??null;let a;o&&i?typeof o!="string"&&typeof s!="string"&&o.tag===s.tag&&o.key===s.key?a=ye(i,o,s,n,t):(a=K(s,n,t),e.replaceChild(a,i)):(a=K(s,n,t),e.firstChild?e.replaceChild(a,e.firstChild):e.appendChild(a));const f=[];for(let u=0;u<e.childNodes.length;u++){const S=e.childNodes[u];S!==a&&S.nodeName!=="STYLE"&&(ne(S,t),f.push(S))}f.forEach(u=>e.removeChild(u)),e._prevVNode=s,e._prevDom=a}const me=[];function bt(e,r,n,t,s,o,i,a){if(e){me.push(n);try{const f=r.render(n);if(f instanceof Promise){o(!0),f.then(u=>{o(!1),i(null),We(e,u,n,t,s),a(e.innerHTML)}).catch(u=>{o(!1),i(u)});return}We(e,f,n,t,s),a(e.innerHTML)}finally{me.pop()}}}function We(e,r,n,t,s){e&&(gt(e,Array.isArray(r)?r:[r],n,t),s(e.innerHTML))}function vt(e,r,n,t,s,o,i){if(o!==null&&clearTimeout(o),Date.now()-r<16){if(s(n+1),n===15)j.devWarn(`⚠️ Component is re-rendering rapidly. This might indicate:
2
2
  Common causes:
3
3
  • Event handler calling a function immediately: @click="\${fn()}" should be @click="\${fn}"
4
4
  • State modification during render
@@ -1,8 +1,8 @@
1
1
  import { g as K, t as q, i as M, s as Ne, a as j, b as z, d as De, f as Qe, h as ze, j as ge, k as Fe, l as ct } from "./helpers-CDfJhmMS.js";
2
2
  import { c as on, r as an, u as cn, w as ln } from "./helpers-CDfJhmMS.js";
3
3
  import { d as B, a as Z } from "./logger-BpibrmKL.js";
4
- import { j as lt, g as Ve, a as Ue, s as ft, m as ut } from "./transitions-D5YybtBE.js";
5
- import { c as un } from "./transitions-D5YybtBE.js";
4
+ import { j as lt, g as Ve, a as Ue, s as ft, m as ut } from "./transitions-PEmFOapF.js";
5
+ import { c as un } from "./transitions-PEmFOapF.js";
6
6
  function dt(e, r, n) {
7
7
  if (n)
8
8
  for (const [t, s] of Object.entries(n)) {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./custom-elements-runtime.directives.cjs.js");const t=require("./transitions-Crm12oGl.cjs");exports.Transition=t.Transition;exports.TransitionGroup=t.TransitionGroup;exports.createTransitionPreset=t.createTransitionPreset;exports.getTransitionStyleSheet=t.getTransitionStyleSheet;exports.transitionPresets=t.transitionPresets;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./custom-elements-runtime.directives.cjs.js");const t=require("./transitions-ComAUaWb.cjs");exports.Transition=t.Transition;exports.TransitionGroup=t.TransitionGroup;exports.createTransitionPreset=t.createTransitionPreset;exports.getTransitionStyleSheet=t.getTransitionStyleSheet;exports.transitionPresets=t.transitionPresets;
2
2
  //# sourceMappingURL=custom-elements-runtime.transitions.cjs.js.map
@@ -1,5 +1,5 @@
1
1
  import "./custom-elements-runtime.directives.es.js";
2
- import { T as r, b as e, d as i, a as n, t as o } from "./transitions-D5YybtBE.js";
2
+ import { T as r, b as e, d as i, a as n, t as o } from "./transitions-PEmFOapF.js";
3
3
  export {
4
4
  r as Transition,
5
5
  e as TransitionGroup,
package/dist/reset.css ADDED
@@ -0,0 +1 @@
1
+ *,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}body{margin:0;font-family:var( --cer-font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif );line-height:1.5}html{-webkit-text-size-adjust:100%;font-family:var( --cer-font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif );line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6,p,blockquote,figure,dl,dd{margin:0;font-size:inherit;font-weight:inherit}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}img,svg,video,canvas,audio,iframe,embed,object{display:block;max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;color:inherit;margin:0;padding:0;line-height:inherit;background:transparent;border:none}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;appearance:button;background:none;cursor:pointer}textarea{resize:vertical}::-webkit-input-placeholder,::placeholder{color:inherit;opacity:.5}table{border-collapse:collapse;text-indent:0;border-color:inherit}code,kbd,samp,pre{font-family:var( --cer-font-mono, ui-monospace, "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace );font-size:1em}sub,sup{font-size:.75em;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}[hidden]{display:none}[disabled],[aria-disabled=true]{cursor:not-allowed}*:focus-visible{outline:2px solid var(--cer-color-primary-500, #3b82f6);outline-offset:2px}abbr:where([title]){text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}hr{height:0;color:inherit;border-top-width:1px}mark{background-color:var(--cer-color-warning-200, #fde68a);color:inherit}progress{vertical-align:baseline}summary{display:list-item}
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ :root{--cer-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;--cer-font-serif: ui-serif, Georgia, "Times New Roman", Times, serif;--cer-font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace;--cer-color-neutral-50: #fafafa;--cer-color-neutral-100: #f4f4f5;--cer-color-neutral-200: #e4e4e7;--cer-color-neutral-300: #d4d4d8;--cer-color-neutral-400: #9f9fa9;--cer-color-neutral-500: #71717b;--cer-color-neutral-600: #52525c;--cer-color-neutral-700: #3f3f46;--cer-color-neutral-800: #27272a;--cer-color-neutral-900: #18181b;--cer-color-neutral-950: #09090b;--cer-color-primary-50: #eff6ff;--cer-color-primary-100: #dbeafe;--cer-color-primary-200: #bfdbfe;--cer-color-primary-300: #93c5fd;--cer-color-primary-400: #60a5fa;--cer-color-primary-500: #3b82f6;--cer-color-primary-600: #2563eb;--cer-color-primary-700: #1d4ed8;--cer-color-primary-800: #1e40af;--cer-color-primary-900: #1e3a8a;--cer-color-primary-950: #172554;--cer-color-secondary-50: #eef2ff;--cer-color-secondary-100: #e0e7ff;--cer-color-secondary-200: #c7d2fe;--cer-color-secondary-300: #a5b4fc;--cer-color-secondary-400: #818cf8;--cer-color-secondary-500: #6366f1;--cer-color-secondary-600: #4f46e5;--cer-color-secondary-700: #4338ca;--cer-color-secondary-800: #3730a3;--cer-color-secondary-900: #312e81;--cer-color-secondary-950: #1e1b4b;--cer-color-success-50: #f0fdf4;--cer-color-success-100: #dcfce7;--cer-color-success-200: #bbf7d0;--cer-color-success-300: #86efac;--cer-color-success-400: #4ade80;--cer-color-success-500: #22c55e;--cer-color-success-600: #16a34a;--cer-color-success-700: #15803d;--cer-color-success-800: #166534;--cer-color-success-900: #14532d;--cer-color-success-950: #052e16;--cer-color-info-50: #f0f9ff;--cer-color-info-100: #e0f2fe;--cer-color-info-200: #bae6fd;--cer-color-info-300: #7dd3fc;--cer-color-info-400: #38bdf8;--cer-color-info-500: #0ea5e9;--cer-color-info-600: #0284c7;--cer-color-info-700: #0369a1;--cer-color-info-800: #075985;--cer-color-info-900: #0c4a6e;--cer-color-info-950: #082f49;--cer-color-warning-50: #fffbeb;--cer-color-warning-100: #fef3c7;--cer-color-warning-200: #fde68a;--cer-color-warning-300: #fcd34d;--cer-color-warning-400: #fbbf24;--cer-color-warning-500: #f59e0b;--cer-color-warning-600: #d97706;--cer-color-warning-700: #b45309;--cer-color-warning-800: #92400e;--cer-color-warning-900: #78350f;--cer-color-warning-950: #451a03;--cer-color-error-50: #fef2f2;--cer-color-error-100: #fee2e2;--cer-color-error-200: #fecaca;--cer-color-error-300: #fca5a5;--cer-color-error-400: #f87171;--cer-color-error-500: #ef4444;--cer-color-error-600: #dc2626;--cer-color-error-700: #b91c1c;--cer-color-error-800: #991b1b;--cer-color-error-900: #7f1d1d;--cer-color-error-950: #450a0a}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}body{margin:0;font-family:var( --cer-font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif );line-height:1.5}html{-webkit-text-size-adjust:100%;font-family:var( --cer-font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif );line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6,p,blockquote,figure,dl,dd{margin:0;font-size:inherit;font-weight:inherit}ol,ul,menu{list-style:none;margin:0;padding:0}a{color:inherit;text-decoration:inherit}img,svg,video,canvas,audio,iframe,embed,object{display:block;max-width:100%;height:auto}button,input,optgroup,select,textarea{font:inherit;color:inherit;margin:0;padding:0;line-height:inherit;background:transparent;border:none}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;appearance:button;background:none;cursor:pointer}textarea{resize:vertical}::-webkit-input-placeholder,::placeholder{color:inherit;opacity:.5}table{border-collapse:collapse;text-indent:0;border-color:inherit}code,kbd,samp,pre{font-family:var( --cer-font-mono, ui-monospace, "SFMono-Regular", Menlo, Monaco, "Roboto Mono", "Courier New", monospace );font-size:1em}sub,sup{font-size:.75em;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}[hidden]{display:none}[disabled],[aria-disabled=true]{cursor:not-allowed}*:focus-visible{outline:2px solid var(--cer-color-primary-500, #3b82f6);outline-offset:2px}abbr:where([title]){text-decoration:underline dotted}b,strong{font-weight:bolder}small{font-size:80%}hr{height:0;color:inherit;border-top-width:1px}mark{background-color:var(--cer-color-warning-200, #fde68a);color:inherit}progress{vertical-align:baseline}summary{display:list-item}
@@ -0,0 +1,117 @@
1
+ "use strict";const $e=require("./custom-elements-runtime.directives.cjs.js");function he(e,...r){let o="";for(let i=0;i<e.length;i++)o+=e[i],i<r.length&&(o+=r[i]);return o}function be(e){return e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{}:;,>+~])\s*/g,"$1").replace(/;}/g,"}").trim()}let J=null;function ye(){return J||(J=new CSSStyleSheet,J.replaceSync(be(je))),J}function ke(e){return e.replace(/url\s*\(\s*['"]?javascript:[^)]*\)/gi,"").replace(/<script[\s\S]*?>[\s\S]*?<\/script>/gi,"").replace(/expression\s*\([^)]*\)/gi,"")}const je=he`
2
+ :host,
3
+ *,
4
+ ::before,
5
+ ::after {
6
+ all: isolate;
7
+ box-sizing: border-box;
8
+ border: 0 solid currentColor;
9
+ margin: 0;
10
+ padding: 0;
11
+ font: inherit;
12
+ vertical-align: baseline;
13
+ background: transparent;
14
+ color: inherit;
15
+ -webkit-tap-highlight-color: transparent;
16
+ }
17
+ :host {
18
+ display: contents;
19
+ font: 16px/1.5 var(--cer-font-sans, ui-sans-serif, system-ui, sans-serif);
20
+ /* Default CE line-height variable so leading-* can reliably override */
21
+ --cer-line-height: 1.5;
22
+ -webkit-text-size-adjust: 100%;
23
+ text-size-adjust: 100%;
24
+ -webkit-font-smoothing: antialiased;
25
+ -moz-osx-font-smoothing: grayscale;
26
+ /* Default gradient variables to avoid undefined var() usage in generated utilities */
27
+ --cer-gradient-from-position: 0%;
28
+ --cer-gradient-to-position: 100%;
29
+ --cer-gradient-via-position: 50%;
30
+ --cer-gradient-from: rgba(255, 255, 255, 0);
31
+ --cer-gradient-to: rgba(255, 255, 255, 0);
32
+ --cer-gradient-stops: var(--cer-gradient-from), var(--cer-gradient-to);
33
+ }
34
+ button,
35
+ input,
36
+ select,
37
+ textarea {
38
+ background: transparent;
39
+ outline: none;
40
+ }
41
+ textarea {
42
+ resize: vertical;
43
+ }
44
+ progress {
45
+ vertical-align: baseline;
46
+ }
47
+ button,
48
+ textarea {
49
+ overflow: visible;
50
+ }
51
+ img,
52
+ svg,
53
+ video,
54
+ canvas,
55
+ audio,
56
+ iframe,
57
+ embed,
58
+ object {
59
+ display: block;
60
+ max-width: 100%;
61
+ height: auto;
62
+ }
63
+ svg {
64
+ fill: currentColor;
65
+ stroke: none;
66
+ }
67
+ a {
68
+ text-decoration: inherit;
69
+ cursor: pointer;
70
+ }
71
+ button,
72
+ [type='button'],
73
+ [type='reset'],
74
+ [type='submit'] {
75
+ cursor: pointer;
76
+ appearance: button;
77
+ background: none;
78
+ -webkit-user-select: none;
79
+ user-select: none;
80
+ }
81
+ ::-webkit-input-placeholder,
82
+ ::placeholder {
83
+ color: inherit;
84
+ opacity: 0.5;
85
+ }
86
+ *:focus-visible {
87
+ outline: 2px solid var(--cer-color-primary-500, #3b82f6);
88
+ outline-offset: 2px;
89
+ }
90
+ ol,
91
+ ul {
92
+ list-style: none;
93
+ }
94
+ table {
95
+ border-collapse: collapse;
96
+ }
97
+ sub,
98
+ sup {
99
+ font-size: 0.75em;
100
+ line-height: 0;
101
+ position: relative;
102
+ }
103
+ sub {
104
+ bottom: -0.25em;
105
+ }
106
+ sup {
107
+ top: -0.5em;
108
+ }
109
+ [disabled],
110
+ [aria-disabled='true'] {
111
+ cursor: not-allowed;
112
+ }
113
+ [hidden] {
114
+ display: none;
115
+ }
116
+ `,Se={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"}},xe=Object.fromEntries(Object.entries(Se).map(([e,r])=>[e,Object.fromEntries(Object.entries(r).map(([o,i])=>[o,`var(--cer-color-${e}${o==="DEFAULT"?"":`-${o}`}, ${i})`]))])),D="0.25rem",Te={"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},te={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"]},Ae=()=>{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(t=>{e[t]=t==="hidden"?"display:none;":`display:${t};`}),["absolute","relative","fixed","sticky","static"].forEach(t=>{e[t]=`position:${t};`}),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 t=1;t<=12;t++)e[`grid-cols-${t}`]=`grid-template-columns:repeat(${t},minmax(0,1fr));`,e[`grid-rows-${t}`]=`grid-template-rows:repeat(${t},minmax(0,1fr));`,e[`col-span-${t}`]=`grid-column:span ${t} / span ${t};`,e[`row-span-${t}`]=`grid-row:span ${t} / span ${t};`,e[`col-start-${t}`]=`grid-column-start:${t};`,e[`col-end-${t}`]=`grid-column-end:${t};`,e[`row-start-${t}`]=`grid-row-start:${t};`,e[`row-end-${t}`]=`grid-row-end:${t};`;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(([t,a,g])=>{e[t]=`font-size:${a};line-height:var(--cer-line-height,${g});`}),[["tracking-tighter","-0.05em"],["tracking-tight","-0.025em"],["tracking-normal","0em"],["tracking-wide","0.025em"],["tracking-wider","0.05em"],["tracking-widest","0.1em"]].forEach(([t,a])=>{e[t]=`letter-spacing:${a};`}),[["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(([t,a])=>{e[t]=`line-height:${a};--cer-line-height:${a};line-height:var(--cer-line-height,${a});`});const c=[0,1,2,4,6,8];for(const t of c){const a=`${t}px`;e[`border-${t}`]=`border-width:${a};`,e[`border-t-${t}`]=`border-top-width:${a};`,e[`border-r-${t}`]=`border-right-width:${a};`,e[`border-b-${t}`]=`border-bottom-width:${a};`,e[`border-l-${t}`]=`border-left-width:${a};`,e[`border-x-${t}`]=`border-left-width:${a};border-right-width:${a};`,e[`border-y-${t}`]=`border-top-width:${a};border-bottom-width:${a};`}Object.assign(e,{"font-sans":"font-family:var(--cer-font-sans, ui-sans-serif,system-ui,sans-serif);","font-serif":"font-family:var(--cer-font-serif, ui-serif,Georgia,serif);","font-mono":"font-family:var(--cer-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 u={none:0,xs:2,sm:4,md:6,lg:8,xl:12,"2xl":16,"3xl":24,"4xl":32,full:9999};for(const[t,a]of Object.entries(u)){const g=a===9999?"9999px":`${a/16}rem`;e[`rounded-${t}`]=`border-radius:${g};`,e[`rounded-t-${t}`]=`border-top-left-radius:${g};border-top-right-radius:${g};`,e[`rounded-r-${t}`]=`border-top-right-radius:${g};border-bottom-right-radius:${g};`,e[`rounded-b-${t}`]=`border-bottom-left-radius:${g};border-bottom-right-radius:${g};`,e[`rounded-l-${t}`]=`border-top-left-radius:${g};border-bottom-left-radius:${g};`,e[`rounded-tl-${t}`]=`border-top-left-radius:${g};`,e[`rounded-tr-${t}`]=`border-top-right-radius:${g};`,e[`rounded-br-${t}`]=`border-bottom-right-radius:${g};`,e[`rounded-bl-${t}`]=`border-bottom-left-radius:${g};`}Object.assign(e,{"shadow-none":"--cer-shadow-color:rgb(0 0 0 / 0);box-shadow:0 0 var(--cer-shadow-color, #0000);","shadow-xs":"--cer-shadow-color:rgb(0 0 0 / 0.05);box-shadow:0 1px 2px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.05));","shadow-sm":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));",shadow:"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 1px 3px 0 var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 1px 2px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-md":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 4px 6px -1px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 2px 4px -2px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-lg":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 10px 15px -3px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 4px 6px -4px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-xl":"--cer-shadow-color:rgb(0 0 0 / 0.1);box-shadow:0 20px 25px -5px var(--cer-shadow-color, rgb(0 0 0 / 0.1)),0 8px 10px -6px var(--cer-shadow-color, rgb(0 0 0 / 0.1));","shadow-2xl":"--cer-shadow-color:rgb(0 0 0 / 0.25);box-shadow:0 25px 50px -12px var(--cer-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 j=["auto","default","pointer","wait","text","move","help","not-allowed","grab","grabbing"];for(const t of j)e[`cursor-${t}`]=`cursor:${t};`;for(const t of[0,10,20,30,40,50])e[`z-${t}`]=`z-index:${t};`;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[t,a]of Object.entries(Te))e[`max-w-${t}`]=`max-width:calc(${D} * ${a});`,e[`min-w-${t}`]=`min-width:calc(${D} * ${a});`,e[`w-${t}`]=`width:calc(${D} * ${a});`,e[`max-h-${t}`]=`max-height:calc(${D} * ${a});`,e[`min-h-${t}`]=`min-height:calc(${D} * ${a});`,e[`h-${t}`]=`height:calc(${D} * ${a});`;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 t=1;t<=6;t++)e[`line-clamp-${t}`]=`display:-webkit-box;-webkit-line-clamp:${t};-webkit-box-orient:vertical;overflow:hidden;`;e["line-clamp-none"]="overflow:visible;display:block;-webkit-box-orient:horizontal;-webkit-line-clamp:none;";for(let t=1;t<=12;t++)e[`order-${t}`]=`order:${t};`;e["order-first"]="order:-9999;",e["order-last"]="order:9999;",e["order-none"]="order:0;";for(let t=0;t<=12;t++)t<=1||(e[`grow-${t}`]=`flex-grow:${t};`,e[`shrink-${t}`]=`flex-shrink:${t};`);return Object.assign(e,{"bg-linear-to-t":"background-image:linear-gradient(to top, var(--cer-gradient-stops));","bg-linear-to-tr":"background-image:linear-gradient(to top right, var(--cer-gradient-stops));","bg-linear-to-r":"background-image:linear-gradient(to right, var(--cer-gradient-stops));","bg-linear-to-br":"background-image:linear-gradient(to bottom right, var(--cer-gradient-stops));","bg-linear-to-b":"background-image:linear-gradient(to bottom, var(--cer-gradient-stops));","bg-linear-to-bl":"background-image:linear-gradient(to bottom left, var(--cer-gradient-stops));","bg-linear-to-l":"background-image:linear-gradient(to left, var(--cer-gradient-stops));","bg-linear-to-tl":"background-image:linear-gradient(to top left, var(--cer-gradient-stops));","bg-radial":"background-image:radial-gradient(ellipse at center, var(--cer-gradient-stops));","bg-radial-at-t":"background-image:radial-gradient(ellipse at top, var(--cer-gradient-stops));","bg-radial-at-tr":"background-image:radial-gradient(ellipse at top right, var(--cer-gradient-stops));","bg-radial-at-r":"background-image:radial-gradient(ellipse at right, var(--cer-gradient-stops));","bg-radial-at-br":"background-image:radial-gradient(ellipse at bottom right, var(--cer-gradient-stops));","bg-radial-at-b":"background-image:radial-gradient(ellipse at bottom, var(--cer-gradient-stops));","bg-radial-at-bl":"background-image:radial-gradient(ellipse at bottom left, var(--cer-gradient-stops));","bg-radial-at-l":"background-image:radial-gradient(ellipse at left, var(--cer-gradient-stops));","bg-radial-at-tl":"background-image:radial-gradient(ellipse at top left, var(--cer-gradient-stops));","bg-radial-circle":"background-image:radial-gradient(circle at center, var(--cer-gradient-stops));","bg-radial-circle-at-t":"background-image:radial-gradient(circle at top, var(--cer-gradient-stops));","bg-radial-circle-at-tr":"background-image:radial-gradient(circle at top right, var(--cer-gradient-stops));","bg-radial-circle-at-r":"background-image:radial-gradient(circle at right, var(--cer-gradient-stops));","bg-radial-circle-at-br":"background-image:radial-gradient(circle at bottom right, var(--cer-gradient-stops));","bg-radial-circle-at-b":"background-image:radial-gradient(circle at bottom, var(--cer-gradient-stops));","bg-radial-circle-at-bl":"background-image:radial-gradient(circle at bottom left, var(--cer-gradient-stops));","bg-radial-circle-at-l":"background-image:radial-gradient(circle at left, var(--cer-gradient-stops));","bg-radial-circle-at-tl":"background-image:radial-gradient(circle at top left, var(--cer-gradient-stops));","bg-conic":"background-image:conic-gradient(from 0deg at center, var(--cer-gradient-stops));","bg-conic-at-t":"background-image:conic-gradient(from 0deg at top, var(--cer-gradient-stops));","bg-conic-at-tr":"background-image:conic-gradient(from 0deg at top right, var(--cer-gradient-stops));","bg-conic-at-r":"background-image:conic-gradient(from 0deg at right, var(--cer-gradient-stops));","bg-conic-at-br":"background-image:conic-gradient(from 0deg at bottom right, var(--cer-gradient-stops));","bg-conic-at-b":"background-image:conic-gradient(from 0deg at bottom, var(--cer-gradient-stops));","bg-conic-at-bl":"background-image:conic-gradient(from 0deg at bottom left, var(--cer-gradient-stops));","bg-conic-at-l":"background-image:conic-gradient(from 0deg at left, var(--cer-gradient-stops));","bg-conic-at-tl":"background-image:conic-gradient(from 0deg at top left, var(--cer-gradient-stops));"}),e},re=Ae();function L(e,r){let o=0;for(let i=0;i<e.length;i++){const s=e[i];if(s==="["||s==="(")o++;else if((s==="]"||s===")")&&o>0)o--;else if(o===0&&(s===">"||s==="+"||s==="~"||s===" "))return e.slice(0,i)+r+e.slice(i)}return e+r}const Ce={before:(e,r)=>`${e}::before{${r}}`,after:(e,r)=>`${e}::after{${r}}`,hover:(e,r)=>`${L(e,":hover")}{${r}}`,focus:(e,r)=>`${L(e,":focus")}{${r}}`,active:(e,r)=>`${L(e,":active")}{${r}}`,disabled:(e,r)=>`${L(e,":disabled")}{${r}}`,visited:(e,r)=>`${L(e,":visited")}{${r}}`,checked:(e,r)=>`${L(e,":checked")}{${r}}`,first:(e,r)=>`${L(e,":first-child")}{${r}}`,last:(e,r)=>`${L(e,":last-child")}{${r}}`,odd:(e,r)=>`${L(e,":nth-child(odd)")}{${r}}`,even:(e,r)=>`${L(e,":nth-child(even)")}{${r}}`,"focus-within":(e,r)=>`${L(e,":focus-within")}{${r}}`,"focus-visible":(e,r)=>`${L(e,":focus-visible")}{${r}}`,"group-hover":(e,r)=>`.group:hover ${e}{${r}}`,"group-focus":(e,r)=>`.group:focus ${e}{${r}}`,"group-active":(e,r)=>`.group:active ${e}{${r}}`,"group-disabled":(e,r)=>`.group:disabled ${e}{${r}}`,"peer-hover":(e,r)=>`.peer:hover ~ ${e}{${r}}`,"peer-focus":(e,r)=>`.peer:focus ~ ${e}{${r}}`,"peer-checked":(e,r)=>`.peer:checked ~ ${e}{${r}}`,"peer-disabled":(e,r)=>`.peer:disabled ~ ${e}{${r}}`},oe={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)"},ge={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)"},ie=["sm","md","lg","xl","2xl"],ne=["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl","6xl","7xl"];function ae(e){const r=e.startsWith("-"),o=r?e.slice(1):e,i=o.lastIndexOf("-");if(i===-1)return null;const s=o.slice(0,i),c=o.slice(i+1);if(!te[s])return null;if(c.includes("/")){const[t,a]=c.split("/").map(S=>parseFloat(S));if(Number.isNaN(t)||Number.isNaN(a)||a===0)return null;const g=t/a*100;return te[s].map(S=>`${S}:${g}%;`).join("")}const u=parseFloat(c);if(Number.isNaN(u))return null;const j=r?"-":"";return te[s].map(t=>`${t}:calc(${j}${D} * ${u});`).join("")}function se(e){const r=e.startsWith("-"),i=(r?e.slice(1):e).match(/^space-(x|y)-(.+)$/);if(!i)return null;const[,s,c]=i,u=s==="x";if(c==="reverse")return u?"--cer-space-x-reverse:1;":"--cer-space-y-reverse:1;";if(c.includes("/")){const[g,S]=c.split("/").map(E=>parseFloat(E));if(Number.isNaN(g)||Number.isNaN(S)||S===0)return null;const T=g/S*100,A=r?"-":"";return u?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${A}${T}% * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${A}${T}% * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${A}${T}% * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${A}${T}% * var(--cer-space-y-reverse));}`}const j=parseFloat(c);if(Number.isNaN(j))return null;const a=`calc(${r?"-":""}${D} * ${j})`;return u?`--cer-space-x-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-inline-start:calc(${a} * calc(1 - var(--cer-space-x-reverse)));margin-inline-end:calc(${a} * var(--cer-space-x-reverse));}`:`--cer-space-y-reverse:0;& > :not([hidden]) ~ :not([hidden]){margin-top:calc(${a} * calc(1 - var(--cer-space-y-reverse)));margin-bottom:calc(${a} * var(--cer-space-y-reverse));}`}function ue(e){const r=e.replace("#",""),o=parseInt(r,16);return`${o>>16&255} ${o>>8&255} ${o&255}`}const Fe=/^(bg|text|border|decoration|shadow|outline|caret|accent|fill|stroke)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/,Oe={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 ze(e){const r=Fe.exec(e);if(!r)return null;const[,o,i,s="DEFAULT"]=r,c=xe[i]?.[s];if(!c)return null;if(o==="shadow")return`--cer-shadow-color:${c};`;const u=Oe[o];return u?`${u}:${c};`:null}function Ee(e){const r=e.indexOf("/");if(r===-1)return{base:e};const o=e.slice(0,r),i=e.slice(r+1),s=parseInt(i,10);return isNaN(s)||s<0||s>100?{base:o}:{base:o,opacity:s/100}}function ce(e){const{base:r,opacity:o}=Ee(e),i=ze(r);if(i&&o!==void 0){const c=/#([0-9a-f]{6})/i.exec(i);if(c){const u=ue(c[0]);return i.replace(/#([0-9a-f]{6})/i,`rgb(${u} / ${o})`)}}if(i)return i;const s=Q(r);if(s&&o!==void 0){const c=/#([0-9a-f]{6})/i.exec(s);if(c){const u=ue(c[0]);return s.replace(/#([0-9a-f]{6})/i,`rgb(${u} / ${o})`)}}return s}function le(e){const r=/^(from|to|via)-([a-z]+)-?(\d{2,3}|DEFAULT)?$/.exec(e);if(!r)return null;const[,o,i,s="DEFAULT"]=r,c=xe[i]?.[s];if(!c)return null;switch(o){case"from":return`--cer-gradient-from:${c} var(--cer-gradient-from-position);--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), var(--cer-gradient-to);`;case"to":return`--cer-gradient-to:${c} var(--cer-gradient-to-position);`;case"via":return`--cer-gradient-to:rgb(255 255 255 / 0) var(--cer-gradient-to-position);--cer-gradient-stops:var(--cer-gradient-from), ${c} var(--cer-gradient-via-position), var(--cer-gradient-to);`;default:return null}}function de(e){const r=/^opacity-(\d{1,3})$/.exec(e);if(!r)return null;const o=parseInt(r[1],10);return o<0||o>100?null:`opacity:${o/100};`}function Q(e){if(e.startsWith("[")&&e.endsWith("]")&&!e.includes("-[")){const u=e.slice(1,-1).trim(),j=u.indexOf(":");if(j===-1)return null;const t=u.slice(0,j).trim();let a=u.slice(j+1).trim();return/^[a-zA-Z][a-zA-Z0-9-]*$/.test(t)?(a=a.replace(/_/g," "),a=a.replace(/url\('\s*([^']*?)\s*'\)/g,'url("$1")'),a=a.replace(/^'([^']*)'$/g,'"$1"'),`${t}:${a};`):null}const r=e.indexOf("-[");if(r<=0||!e.endsWith("]"))return null;const o=e.slice(0,r),i=e.slice(r+2,-1).replace(/_/g," "),s={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(o==="text")return/^\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex)$/.test(i)?`font-size:${i};`:`color:${i};`;if(o==="rotate")return`transform:rotate(${i});`;if(o==="scale")return`transform:scale(${i});`;if(o==="translate-x")return`transform:translateX(${i});`;if(o==="translate-y")return`transform:translateY(${i});`;const c=s[o]??o.replace(/_/g,"-");return c&&i?`${c}:${i};`:null}function Pe(e){if(e.startsWith("[")&&e.endsWith("]")){const o=e.slice(1,-1);return o.includes("&")?o:e}const r=e.indexOf("-[");if(r>0&&e.endsWith("]")){const o=e.slice(r+2,-1).replace(/_/g,"-");return o.includes("&")?o:e.replace(/_/g,"-")}return null}function pe(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function Re(e){const r=/class\s*=\s*(['"])([\s\S]*?)\1/g,o=[];let i;for(;i=r.exec(e);){const s=i[2].split(/\s+/).filter(Boolean);s.length&&o.push(...s)}return o}const G=new Map,Le=16,me=1e3;function ve(e){const r=Date.now(),o=G.get(e);if(o&&r-o.timestamp<Le)return o.css;const i=Re(e);if(!i.length)return"";const s=new Set(i),c=[[],[],[],[]],u={},j=(f,p=!1)=>{const d=p?`dark|${f}`:f;if(d in u)return u[d];const m=S(f,p);return u[d]=m,m},t=f=>{const p=f.some(w=>ie.includes(w)),d=f.some(w=>w.startsWith("@")&&(ne.includes(w.slice(1))||w.match(/^@\[.+\]$/))),m=f.includes("dark");return f.length?!p&&!m&&!d?1:m&&(p||d)?3:2:0},a=f=>{const p=[];let d="",m=0;for(let w=0;w<f.length;w++){const b=f[w];b==="["||b==="("?m++:(b==="]"||b===")")&&m--,b===":"&&m===0?(p.push(d),d=""):d+=b}return d&&p.push(d),p},g={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"},S=(f,p=!1)=>{const d=a(f);let m="",w=!1;for(const n of d){let v=n;if(v.startsWith("!")&&(w=!0,v=v.slice(1)),re[v]||ae(v)||se(v)||de(v)||ce(v)||le(v)||Q(v)){m=n;break}}if(!m)return null;const b=m.replace(/^!/,""),F=re[b]??ae(b)??se(b)??de(b)??ce(b)??le(b)??Q(b);if(!F)return null;const k=d.indexOf(m);let h=k>=0?d.slice(0,k):[];p&&(h=h.filter(n=>n!=="dark"));const P=`.${pe(f)}`,W=w?F.replace(/;/g," !important;"):F,x="__SUBJECT__";let l=x;const _=[];for(const n of h)n.startsWith("group-")?(l=`.group:${n.slice(6)} ${l}`,_.push(n)):n.startsWith("peer-")&&(l=l.replace(x,`.peer:${n.slice(5)}~${x}`),_.push(n));h=h.filter(n=>!_.includes(n));const B=[],H=[];let y=null;for(const n of h){if(n==="dark"||ie.includes(n)||n.startsWith("@")&&(ne.includes(n.slice(1))||n.match(/^@\[.+\]$/)))continue;const v=Pe(n);if(v){y=v;continue}const C=g[n];if(C){y?H.push(C):B.push(C);continue}const O=Ce[n];typeof O=="function"&&(l=O(l,W).split("{")[0])}const I=B.join(""),R=H.join("");function X(n,v){if(!v)return n;let C=0,O=0;if(n.length&&(n[0]===">"||n[0]==="+"||n[0]==="~"||n[0]===" ")){let $=1;for(;$<n.length&&n[$]===" ";)$++;for(;$<n.length;$++){const z=n[$];if(z==="["?C++:z==="]"&&C>0?C--:z==="("?O++:z===")"&&O>0&&O--,C===0&&O===0&&(n[$]===">"||n[$]==="+"||n[$]==="~"||n[$]===" "))return n.slice(0,$)+v+n.slice($)}return n+v}for(let $=0;$<n.length;$++){const z=n[$];if(z==="["?C++:z==="]"&&C>0?C--:z==="("?O++:z===")"&&O>0&&O--,C===0&&O===0&&(z===">"||z==="+"||z==="~"||z===" "))return n.slice(0,$)+v+n.slice($)}return n+v}if(y)if(y.includes("&")){const n=y.indexOf("&"),v=y.slice(0,n),C=y.slice(n+1),O=x+I;if(B.length===0)l=l.replace(x,v+O+R+C);else{const $=X(C,R);l=l.replace(x,v+O+$)}}else l=l.replace(x,`${y}${x+I}`),R&&(l=l.replace(x,`${x}${R}`));else l=l.replace(x,x+I+R);l=l.replace(new RegExp(x,"g"),P);let U=`${l}{${W}}`;const Y=h.filter(n=>ie.includes(n)),ee=h.filter(n=>n.startsWith("@")&&(ne.includes(n.slice(1))||n.match(/^@\[.+\]$/))),K=Y.length?Y[Y.length-1]:null,q=ee.length?ee[ee.length-1]:null,fe=h.includes("dark");let M="",N="";if(fe&&K?M=`@media (prefers-color-scheme: dark) and ${oe[K]}`:fe?M="@media (prefers-color-scheme: dark)":K&&(M=`@media ${oe[K]}`),q)if(q.startsWith("@[")&&q.endsWith("]")){const n=q.slice(2,-1);if(!/^-?\d*\.?\d+(px|rem|em|%|vh|vw|ch|ex|cm|mm|in|pt|pc)$/.test(n))return null;N=`@container (min-width:${n})`}else{const n=q.slice(1);N=`@container ${ge[n]||`(min-width:${n})`}`}return M&&N?U=`${M}${N}{${U}}`:M?U=`${M}{${U}}`:N&&(U=`${N}{${U}}`),U};for(const f of s){const p=a(f),d=p.find(k=>re[k.replace(/^!/,"")]||ae(k.replace(/^!/,""))||se(k.replace(/^!/,""))||de(k.replace(/^!/,""))||ce(k.replace(/^!/,""))||le(k.replace(/^!/,""))||Q(k.replace(/^!/,"")));if(!d)continue;const m=p.indexOf(d),w=m>=0?p.slice(0,m):[],b=t(w),F=j(f);F&&c[b].push(F)}const T=/^(from|via|to)-[a-z]+-?\d{2,3}?$/;for(const f of s)if(T.test(f)){if(c.flat().join("").includes(`.${pe(f)}`))continue;const d=j(f);d&&c[0].push(d)}const A=f=>f.sort((p,d)=>{const m=P=>{const W={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};for(const[x,l]of Object.entries(W))if(P.includes(`@media ${oe[x]}`))return l;return-1},w=P=>{const W={xs:320,sm:384,md:448,lg:512,xl:576,"2xl":672,"3xl":768,"4xl":896,"5xl":1024,"6xl":1152,"7xl":1280};for(const[x,l]of Object.entries(W))if(P.includes(`@container ${ge[x]}`))return l;if(P.includes("@container (min-width:")){const x=/@container \(min-width:(\d+(?:\.\d+)?)(px|rem|em)/.exec(P);if(x){const l=parseFloat(x[1]),_=x[2];return _==="rem"||_==="em"?l*16:l}}return-1},b=m(p),F=m(d),k=w(p),h=w(d);return b>=0&&F>=0&&b!==F?b-F:k>=0&&h>=0&&k!==h?k-h:0});c[2]=A(c[2]),c[3]=A(c[3]);const E=c.flat().join("");return G.size>=me&&Array.from(G.keys()).slice(0,Math.floor(me/2)).forEach(p=>G.delete(p)),G.set(e,{css:E,timestamp:r}),E}const V={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 We(e,r){const{preset:o,show:i,mode:s="default",duration:c,appear:u=!1,css:j=!0,name:t,enterFrom:a,enterActive:g,enterTo:S,leaveFrom:T,leaveActive:A,leaveTo:E,onBeforeEnter:f,onEnter:p,onAfterEnter:d,onEnterCancelled:m,onBeforeLeave:w,onLeave:b,onAfterLeave:F,onLeaveCancelled:k}=e;let h;o&&V[o]?(h={...V[o]},a&&(h.enterFrom=a),g&&(h.enterActive=g),S&&(h.enterTo=S),T&&(h.leaveFrom=T),A&&(h.leaveActive=A),E&&(h.leaveTo=E)):h={enterFrom:a,enterActive:g,enterTo:S,leaveFrom:T,leaveActive:A,leaveTo:E};const P=t||(o?`transition-${o}`:"transition"),W=$e.anchorBlock(i?r:[],P);return W._transition={name:P,classes:h,mode:s,duration:c,appear:u,css:j,state:i?"visible":"hidden",hooks:{onBeforeEnter:f,onEnter:p,onAfterEnter:d,onEnterCancelled:m,onBeforeLeave:w,onLeave:b,onAfterLeave:F,onLeaveCancelled:k}},W}function _e(e,r){const{tag:o="div",moveClass:i="transition-transform duration-300",preset:s,show:c=!0,mode:u="default",duration:j,appear:t=!1,css:a=!0,name:g,class:S,style:T,enterFrom:A,enterActive:E,enterTo:f,leaveFrom:p,leaveActive:d,leaveTo:m,onBeforeEnter:w,onEnter:b,onAfterEnter:F,onEnterCancelled:k,onBeforeLeave:h,onLeave:P,onAfterLeave:W,onLeaveCancelled:x}=e;let l;s&&V[s]?(l={...V[s]},A&&(l.enterFrom=A),E&&(l.enterActive=E),f&&(l.enterTo=f),p&&(l.leaveFrom=p),d&&(l.leaveActive=d),m&&(l.leaveTo=m)):l={enterFrom:A,enterActive:E,enterTo:f,leaveFrom:p,leaveActive:d,leaveTo:m};const _=g||(s?`transition-group-${s}`:"transition-group"),B=[];for(const y of c?r:[])if(y&&typeof y=="object"&&y.tag==="#anchor"){const I=Array.isArray(y.children)?y.children:[];for(const R of I)if(R&&typeof R=="object"){const X={...R,key:y.key||R.key,props:{...R.props,_anchorKey:y.key}};B.push(X)}else B.push(R)}else B.push(y);const H=(()=>{if(T)return typeof T=="string"?T:Object.entries(T).map(([y,I])=>`${y}: ${I}`).join("; ")})();return{tag:o,children:B,key:_,props:{attrs:{...S?{class:S}:{},...H?{style:H}:{}},_transitionGroup:{name:_,classes:l,moveClass:i,mode:u,duration:j,appear:t,css:a,hooks:{onBeforeEnter:w,onEnter:b,onAfterEnter:F,onEnterCancelled:k,onBeforeLeave:h,onLeave:P,onAfterLeave:W,onLeaveCancelled:x}}}}}function Be(e){return{...e}}let Z=null;function we(){if(!Z){const e=[];Object.values(V).forEach(i=>{i.enterFrom&&e.push(i.enterFrom),i.enterActive&&e.push(i.enterActive),i.enterTo&&e.push(i.enterTo),i.leaveFrom&&e.push(i.leaveFrom),i.leaveActive&&e.push(i.leaveActive),i.leaveTo&&e.push(i.leaveTo)});const r=`<div class="${e.join(" ")}"></div>`,o=ve(r);Z=new CSSStyleSheet,Z.replaceSync(o)}return Z}function De(){we()}De();exports.Transition=We;exports.TransitionGroup=_e;exports.createTransitionPreset=Be;exports.css=he;exports.getBaseResetSheet=ye;exports.getTransitionStyleSheet=we;exports.jitCSS=ve;exports.minifyCSS=be;exports.sanitizeCSS=ke;exports.transitionPresets=V;
117
+ //# sourceMappingURL=transitions-ComAUaWb.cjs.map