@a4ui/core 0.34.0 → 0.35.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.
Files changed (42) hide show
  1. package/dist/elements.css +119 -0
  2. package/dist/elements.iife.js +2 -2
  3. package/dist/elements.js +115 -114
  4. package/dist/full.css +119 -0
  5. package/dist/index.d.ts +15 -1
  6. package/dist/index.js +8175 -5443
  7. package/dist/ui/ActivityFeed.d.ts +49 -0
  8. package/dist/ui/AvailabilityPicker.d.ts +35 -0
  9. package/dist/ui/CodeEditor.d.ts +25 -0
  10. package/dist/ui/EmojiPicker.d.ts +18 -0
  11. package/dist/ui/EventScheduler.d.ts +41 -0
  12. package/dist/ui/InteractiveMap.d.ts +50 -0
  13. package/dist/ui/JsonViewer.d.ts +24 -0
  14. package/dist/ui/LocationPicker.d.ts +25 -0
  15. package/dist/ui/MaskedInput.d.ts +26 -0
  16. package/dist/ui/OtpInput.d.ts +29 -0
  17. package/dist/ui/PresenceAvatars.d.ts +54 -0
  18. package/dist/ui/QueryBuilder.d.ts +56 -0
  19. package/dist/ui/RingProgress.d.ts +2 -0
  20. package/dist/ui/SignaturePad.d.ts +19 -0
  21. package/dist/ui/SpreadsheetGrid.d.ts +27 -0
  22. package/package.json +1 -1
  23. package/src/index.ts +36 -1
  24. package/src/ui/ActivityFeed.tsx +178 -0
  25. package/src/ui/AudioWaveform.tsx +1 -3
  26. package/src/ui/AvailabilityPicker.tsx +163 -0
  27. package/src/ui/CodeEditor.tsx +277 -0
  28. package/src/ui/EmojiPicker.tsx +424 -0
  29. package/src/ui/EventScheduler.tsx +286 -0
  30. package/src/ui/GanttChart.tsx +9 -1
  31. package/src/ui/InteractiveMap.tsx +349 -0
  32. package/src/ui/JsonViewer.tsx +189 -0
  33. package/src/ui/LocationPicker.tsx +96 -0
  34. package/src/ui/MaskedInput.tsx +108 -0
  35. package/src/ui/OnboardingChecklist.tsx +1 -0
  36. package/src/ui/OtpInput.tsx +153 -0
  37. package/src/ui/PivotTable.tsx +0 -0
  38. package/src/ui/PresenceAvatars.tsx +142 -0
  39. package/src/ui/QueryBuilder.tsx +281 -0
  40. package/src/ui/RingProgress.tsx +3 -0
  41. package/src/ui/SignaturePad.tsx +221 -0
  42. package/src/ui/SpreadsheetGrid.tsx +307 -0
@@ -1,6 +1,6 @@
1
- var A4uiElements=(function(un){"use strict";var vo;const W={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return xr(this.context.count)},getNextContextId(){return xr(this.context.count++)}};function xr(e){const t=String(e),n=t.length-1;return W.context.id+(n?String.fromCharCode(96+n):"")+t}function wo(e){W.context=e}const ko=!1,So=(e,t)=>e===t,Nt=Symbol("solid-proxy"),wr=typeof Proxy=="function",kr=Symbol("solid-track"),zt={equals:So};let Sr=Mr;const Ce=1,Bt=2,Tr={owned:null,cleanups:null,context:null,owner:null};var F=null;let dn=null,To=null,U=null,ee=null,ke=null,jt=0;function We(e,t){const n=U,r=F,s=e.length===0,i=t===void 0?r:t,o=s?Tr:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=s?e:()=>e(()=>ne(()=>ft(o)));F=o,U=null;try{return dt(a,!0)}finally{U=n,F=r}}function J(e,t){t=t?Object.assign({},zt,t):zt;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),Cr(n,s));return[Ar.bind(n),r]}function N(e,t,n){const r=fn(e,t,!1,Ce);ut(r)}function Me(e,t,n){Sr=$o;const r=fn(e,t,!1,Ce);r.user=!0,ke?ke.push(r):ut(r)}function te(e,t,n){n=n?Object.assign({},zt,n):zt;const r=fn(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ut(r),Ar.bind(r)}function ne(e){if(U===null)return e();const t=U;U=null;try{return e()}finally{U=t}}function Ao(e,t,n){const r=Array.isArray(e);let s;return i=>{let o;if(r){o=Array(e.length);for(let l=0;l<e.length;l++)o[l]=e[l]()}else o=e();const a=ne(()=>t(o,s,i));return s=o,a}}function at(e){Me(()=>ne(e))}function me(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}function lt(e,t){const n=Symbol("context");return{id:n,Provider:Eo(n),defaultValue:e}}function ct(e){let t;return F&&F.context&&(t=F.context[e.id])!==void 0?t:e.defaultValue}function Co(e){const t=te(e),n=te(()=>hn(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function Ar(){if(this.sources&&this.state)if(this.state===Ce)ut(this);else{const e=ee;ee=null,dt(()=>Gt(this),!1),ee=e}if(U){const e=this.observers;if(!e||e[e.length-1]!==U){const t=e?e.length:0;U.sources?(U.sources.push(this),U.sourceSlots.push(t)):(U.sources=[this],U.sourceSlots=[t]),e?(e.push(U),this.observerSlots.push(U.sources.length-1)):(this.observers=[U],this.observerSlots=[U.sources.length-1])}}return this.value}function Cr(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&dt(()=>{for(let s=0;s<e.observers.length;s+=1){const i=e.observers[s],o=dn&&dn.running;o&&dn.disposed.has(i),(o?!i.tState:!i.state)&&(i.pure?ee.push(i):ke.push(i),i.observers&&Vr(i)),o||(i.state=Ce)}if(ee.length>1e6)throw ee=[],new Error},!1)),t}function ut(e){if(!e.fn)return;ft(e);const t=jt;Mo(e,e.value,t)}function Mo(e,t,n){let r;const s=F,i=U;U=F=e;try{r=e.fn(t)}catch(o){return e.pure&&(e.state=Ce,e.owned&&e.owned.forEach(ft),e.owned=null),e.updatedAt=n+1,$r(o)}finally{U=i,F=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Cr(e,r):e.value=r,e.updatedAt=n)}function fn(e,t,n,r=Ce,s){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:n};return F===null||F!==Tr&&(F.owned?F.owned.push(i):F.owned=[i]),i}function Kt(e){if(e.state===0)return;if(e.state===Bt)return Gt(e);if(e.suspense&&ne(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<jt);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Ce)ut(e);else if(e.state===Bt){const r=ee;ee=null,dt(()=>Gt(e,t[0]),!1),ee=r}}function dt(e,t){if(ee)return e();let n=!1;t||(ee=[]),ke?n=!0:ke=[],jt++;try{const r=e();return Vo(n),r}catch(r){n||(ke=null),ee=null,$r(r)}}function Vo(e){if(ee&&(Mr(ee),ee=null),e)return;const t=ke;ke=null,t.length&&dt(()=>Sr(t),!1)}function Mr(e){for(let t=0;t<e.length;t++)Kt(e[t])}function $o(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Kt(r)}if(W.context){if(W.count){W.effects||(W.effects=[]),W.effects.push(...e.slice(0,n));return}wo()}for(W.effects&&!W.count&&(e=[...W.effects,...e],n+=W.effects.length,delete W.effects),t=0;t<n;t++)Kt(e[t])}function Gt(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const s=r.state;s===Ce?r!==t&&(!r.updatedAt||r.updatedAt<jt)&&Kt(r):s===Bt&&Gt(r,t)}}}function Vr(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Bt,n.pure?ee.push(n):ke.push(n),n.observers&&Vr(n))}}function ft(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const i=s.pop(),o=n.observerSlots.pop();r<s.length&&(i.sourceSlots[o]=r,s[r]=i,n.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ft(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ft(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Po(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function $r(e,t=F){throw Po(e)}function hn(e){if(typeof e=="function"&&!e.length)return hn(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=hn(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let s=0;s<r.length;s++)t.push(r[s]);else t.push(r)}return t}return e}function Eo(e,t){return function(r){let s;return N(()=>s=ne(()=>(F.context={...F.context,[e]:r.value},Co(()=>r.children))),void 0),s}}const mn=Symbol("fallback");function Wt(e){for(let t=0;t<e.length;t++)e[t]()}function Io(e,t,n={}){let r=[],s=[],i=[],o=0,a=t.length>1?[]:null;return me(()=>Wt(i)),()=>{let l=e()||[],c=l.length,u,d;return l[kr],ne(()=>{let h,y,m,b,v,x,C,T,A;if(c===0)o!==0&&(Wt(i),i=[],r=[],s=[],o=0,a&&(a=[])),n.fallback&&(r=[mn],s[0]=We(R=>(i[0]=R,n.fallback())),o=1);else if(o===0){for(s=new Array(c),d=0;d<c;d++)r[d]=l[d],s[d]=We(f);o=c}else{for(m=new Array(c),b=new Array(c),a&&(v=new Array(c)),x=0,C=Math.min(o,c);x<C&&r[x]===l[x];x++);for(C=o-1,T=c-1;C>=x&&T>=x&&r[C]===l[T];C--,T--)m[T]=s[C],b[T]=i[C],a&&(v[T]=a[C]);for(h=new Map,y=new Array(T+1),d=T;d>=x;d--)A=l[d],u=h.get(A),y[d]=u===void 0?-1:u,h.set(A,d);for(u=x;u<=C;u++)A=r[u],d=h.get(A),d!==void 0&&d!==-1?(m[d]=s[u],b[d]=i[u],a&&(v[d]=a[u]),d=y[d],h.set(A,d)):i[u]();for(d=x;d<c;d++)d in m?(s[d]=m[d],i[d]=b[d],a&&(a[d]=v[d],a[d](d))):s[d]=We(f);s=s.slice(0,o=c),r=l.slice(0)}return s});function f(h){if(i[d]=h,a){const[y,m]=J(d);return a[d]=m,t(l[d],y)}return t(l[d])}}}function Ro(e,t,n={}){let r=[],s=[],i=[],o=[],a=0,l;return me(()=>Wt(i)),()=>{const c=e()||[],u=c.length;return c[kr],ne(()=>{if(u===0)return a!==0&&(Wt(i),i=[],r=[],s=[],a=0,o=[]),n.fallback&&(r=[mn],s[0]=We(f=>(i[0]=f,n.fallback())),a=1),s;for(r[0]===mn&&(i[0](),i=[],r=[],s=[],a=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?o[l](()=>c[l]):l>=r.length&&(s[l]=We(d));for(;l<r.length;l++)i[l]();return a=o.length=i.length=u,r=c.slice(0),s=s.slice(0,a)});function d(f){i[l]=f;const[h,y]=J(c[l]);return o[l]=y,t(h,l)}}}function p(e,t){return ne(()=>e(t||{}))}function Ut(){return!0}const gn={get(e,t,n){return t===Nt?n:e.get(t)},has(e,t){return t===Nt?!0:e.has(t)},set:Ut,deleteProperty:Ut,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ut,deleteProperty:Ut}},ownKeys(e){return e.keys()}};function pn(e){return(e=typeof e=="function"?e():e)?e:{}}function Oo(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function L(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Nt in a,e[o]=typeof a=="function"?(t=!0,te(a)):a}if(wr&&t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const l=pn(e[a])[o];if(l!==void 0)return l}},has(o){for(let a=e.length-1;a>=0;a--)if(o in pn(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(pn(e[a])));return[...new Set(o)]}},gn);const n={},r=Object.create(null);for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:Oo.bind(n[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const f=n[u];f&&(d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value))}}}const s={},i=Object.keys(r);for(let o=i.length-1;o>=0;o--){const a=i[o],l=r[a];l&&l.get?Object.defineProperty(s,a,l):s[a]=l?l.value:void 0}return s}function le(e,...t){const n=t.length;if(wr&&Nt in e){const s=n>1?t.flat():t[0],i=t.map(o=>new Proxy({get(a){return o.includes(a)?e[a]:void 0},has(a){return o.includes(a)&&a in e},keys(){return o.filter(a=>a in e)}},gn));return i.push(new Proxy({get(o){return s.includes(o)?void 0:e[o]},has(o){return s.includes(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!s.includes(o))}},gn)),i}const r=[];for(let s=0;s<=n;s++)r[s]={};for(const s of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(s)){i=l;break}const o=Object.getOwnPropertyDescriptor(e,s);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[i][s]=o.value:Object.defineProperty(r[i],s,o)}return r}let _o=0;function Pr(){return W.context?W.getNextContextId():`cl-${_o++}`}const Do=e=>`Stale read from <${e}>.`;function ht(e){const t="fallback"in e&&{fallback:()=>e.fallback};return te(Io(()=>e.each,e.children,t||void 0))}function bn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return te(Ro(()=>e.each,e.children,t||void 0))}function q(e){const t=e.keyed,n=te(()=>e.when,void 0,void 0),r=t?n:te(n,void 0,{equals:(s,i)=>!s==!i});return te(()=>{const s=r();if(s){const i=e.children;return typeof i=="function"&&i.length>0?ne(()=>i(t?s:()=>{if(!ne(r))throw Do("Show");return n()})):i}return e.fallback},void 0,void 0)}const Lo=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Fo=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Lo]),No=new Set(["innerHTML","textContent","innerText","children"]),zo=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Bo=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function jo(e,t){const n=Bo[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Ko=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Go=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Wo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},yn=e=>te(()=>e());function Uo(e,t,n){let r=n.length,s=t.length,i=r,o=0,a=0,l=t[s-1].nextSibling,c=null;for(;o<s||a<i;){if(t[o]===n[a]){o++,a++;continue}for(;t[s-1]===n[i-1];)s--,i--;if(s===o){const u=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],u)}else if(i===a)for(;o<s;)(!c||!c.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[i-1]&&n[a]===t[s-1]){const u=t[--s].nextSibling;e.insertBefore(n[a++],t[o++].nextSibling),e.insertBefore(n[--i],u),t[s]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[o]);if(u!=null)if(a<u&&u<i){let d=o,f=1,h;for(;++d<s&&d<i&&!((h=c.get(t[d]))==null||h!==u+f);)f++;if(f>u-a){const y=t[o];for(;a<u;)e.insertBefore(n[a++],y)}else e.replaceChild(n[a++],t[o++])}else o++;else t[o++].remove()}}}const Er="_$DX_DELEGATE";function D(e,t,n,r){let s;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},o=t?()=>ne(()=>document.importNode(s||(s=i()),!0)):()=>(s||(s=i())).cloneNode(!0);return o.cloneNode=o,o}function mt(e,t=window.document){const n=t[Er]||(t[Er]=new Set);for(let r=0,s=e.length;r<s;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ta))}}function E(e,t,n){Le(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Yo(e,t,n,r){Le(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Xo(e,t,n){Le(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function be(e,t){Le(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ho(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const s=n[0];e.addEventListener(t,n[0]=i=>s.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function qo(e,t,n={}){const r=Object.keys(t||{}),s=Object.keys(n);let i,o;for(i=0,o=s.length;i<o;i++){const a=s[i];!a||a==="undefined"||t[a]||(Ir(e,a,!1),delete n[a])}for(i=0,o=r.length;i<o;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Ir(e,a,!0),n[a]=l)}return n}function Zo(e,t,n){if(!t)return n?E(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let s,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)s=t[i],s!==n[i]&&(r.setProperty(i,s),n[i]=s);return n}function Ve(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function De(e,t={},n,r){const s={};return r||N(()=>s.children=gt(e,t.children,s.children)),N(()=>typeof t.ref=="function"&&vn(t.ref,e)),N(()=>Jo(e,t,n,!0,s,!0)),s}function vn(e,t,n){return ne(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return gt(e,t,r,n);N(s=>gt(e,t(),s,n),r)}function Jo(e,t,n,r,s={},i=!1){t||(t={});for(const o in s)if(!(o in t)){if(o==="children")continue;s[o]=Rr(e,o,null,s[o],n,i,t)}for(const o in t){if(o==="children")continue;const a=t[o];s[o]=Rr(e,o,a,s[o],n,i,t)}}function Qo(e){let t,n;return!Le()||!(t=W.registry.get(n=na()))?e():(W.completed&&W.completed.add(t),W.registry.delete(n),t)}function Le(e){return!!W.context&&!0&&(!e||e.isConnected)}function ea(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ir(e,t,n){const r=t.trim().split(/\s+/);for(let s=0,i=r.length;s<i;s++)e.classList.toggle(r[s],n)}function Rr(e,t,n,r,s,i,o){let a,l,c,u,d;if(t==="style")return Zo(e,n,r);if(t==="classList")return qo(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),h=Ko.has(f);if(!h&&r){const y=Array.isArray(r)?r[0]:r;e.removeEventListener(f,y)}(h||n)&&(Ho(e,f,n,h),h&&mt([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Xo(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=No.has(t))||!s&&((u=jo(t,e.tagName))||(l=Fo.has(t)))||(a=e.nodeName.includes("-")||"is"in o)){if(d)t=t.slice(5),l=!0;else if(Le(e))return n;t==="class"||t==="className"?be(e,n):a&&!l&&!c?e[ea(t)]=n:e[u||t]=n}else{const f=s&&t.indexOf(":")>-1&&Wo[t.split(":")[0]];f?Yo(e,f,t,n):E(e,zo[t]||t,n)}return n}function ta(e){let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),o=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!o());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===s)break}}else a();i(r)}function gt(e,t,n,r,s){const i=Le(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const u=n[c];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():l.push(u)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(i||o==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=Ue(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(i)return n;n=Ue(e,n,r)}else{if(o==="function")return N(()=>{let l=t();for(;typeof l=="function";)l=l();n=gt(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(xn(l,t,n,s))return N(()=>n=gt(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let u=l[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(l.length===0){if(n=Ue(e,n,r),a)return n}else c?n.length===0?Or(e,l,r):Uo(e,n,l):(n&&Ue(e),Or(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Ue(e,n,r,t);Ue(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function xn(e,t,n,r){let s=!1;for(let i=0,o=t.length;i<o;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))s=xn(e,a,l)||s;else if(c==="function")if(r){for(;typeof a=="function";)a=a();s=xn(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||s}else e.push(a),s=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return s}function Or(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n)}function Ue(e,t,n,r){if(n===void 0)return e.textContent="";const s=r||document.createTextNode("");if(t.length){let i=!1;for(let o=t.length-1;o>=0;o--){const a=t[o];if(s!==a){const l=a.parentNode===e;!i&&!o?l?e.replaceChild(s,a):e.insertBefore(s,n):l&&a.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}function na(){return W.getNextContextId()}const ra="http://www.w3.org/2000/svg";function sa(e,t=!1,n=void 0){return t?document.createElementNS(ra,e):document.createElement(e,{is:n})}function ia(e,t){const n=te(e);return te(()=>{const r=n();switch(typeof r){case"function":return ne(()=>r(t));case"string":const s=Go.has(r),i=W.context?Qo():sa(r,s,ne(()=>t.is));return De(i,t,s),i}})}function wn(e){const[,t]=le(e,["component"]);return ia(()=>e.component,t)}function oa(e){return Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Object.assign({},s),Lr(s.value)&&!da(s.value)&&!Array.isArray(s.value)&&(n[r].value=Object.assign({},s.value)),Array.isArray(s.value)&&(n[r].value=s.value.slice(0)),n},{})}function aa(e){return e?Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Lr(s)&&"value"in s?s:{value:s},n[r].attribute||(n[r].attribute=ua(r)),n[r].parse="parse"in n[r]?n[r].parse:typeof n[r].value!="string",n},{}):{}}function la(e){return Object.keys(e).reduce((n,r)=>(n[r]=e[r].value,n),{})}function ca(e,t){const n=oa(t);return Object.keys(t).forEach(s=>{const i=n[s],o=e.getAttribute(i.attribute),a=e[s];o!=null&&(i.value=i.parse?_r(o):o),a!=null&&(i.value=Array.isArray(a)?a.slice(0):a),i.reflect&&Dr(e,i.attribute,i.value,!!i.parse),Object.defineProperty(e,s,{get(){return i.value},set(l){const c=i.value;i.value=l,i.reflect&&Dr(this,i.attribute,i.value,!!i.parse);for(let u=0,d=this.__propertyChangedCallbacks.length;u<d;u++)this.__propertyChangedCallbacks[u](s,l,c)},enumerable:!0,configurable:!0})}),n}function _r(e){if(e)try{return JSON.parse(e)}catch{return e}}function Dr(e,t,n,r){if(n==null||n===!1)return e.removeAttribute(t);let s=r?JSON.stringify(n):n;e.__updating[t]=!0,s==="true"&&(s=""),e.setAttribute(t,s),Promise.resolve().then(()=>delete e.__updating[t])}function ua(e){return e.replace(/\.?([A-Z]+)/g,(t,n)=>"-"+n.toLowerCase()).replace("_","-").replace(/^-/,"")}function Lr(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function da(e){return Object.prototype.toString.call(e)==="[object Function]"}function fa(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let pt;function re(){Object.defineProperty(pt,"renderRoot",{value:pt})}function ha(e,t){const n=Object.keys(t);return class extends e{static get observedAttributes(){return n.map(s=>t[s].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let s of n)this[s]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=ca(this,t);const s=la(this.props),i=this.Component,o=pt;try{pt=this,this.__initialized=!0,fa(i)?new i(s,{element:this}):i(s,{element:this})}finally{pt=o}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let s=null;for(;s=this.__releaseCallbacks.pop();)s(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(s,i,o){if(this.__initialized&&!this.__updating[s]&&(s=this.lookupProp(s),s in t)){if(o==null&&!this[s])return;this[s]=t[s].parse?_r(o):o}}lookupProp(s){if(t)return n.find(i=>s===i||s===t[i].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(s){this.__releaseCallbacks.push(s)}addPropertyChangedCallback(s){this.__propertyChangedCallbacks.push(s)}}}function ma(e,t={},n={}){const{BaseElement:r=HTMLElement,extension:s,customElements:i=window.customElements}=n;return o=>{if(!e)throw new Error("tag is required to register a Component");let a=i.get(e);return a?(a.prototype.Component=o,a):(a=ha(r,aa(t)),a.prototype.Component=o,a.prototype.registeredTag=e,i.define(e,a,s),a)}}function ga(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const[s,i]=J(e[t[r]]);Object.defineProperty(n,t[r],{get:s,set(o){i(()=>o)}})}return n}function pa(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t;){if(t._$owner)return t._$owner;if(t.assignedSlot&&t.assignedSlot._$owner)return t.assignedSlot._$owner;t=t.parentNode}return e._$owner}function ba(e){return(t,n)=>{const{element:r}=n;return We(s=>{const i=ga(t);r.addPropertyChangedCallback((a,l)=>i[a]=l),r.addReleaseCallback(()=>{r.renderRoot.textContent="",s()});const o=e(i,n);return P(r.renderRoot,o)},pa(r))}}function se(e,t,n){return arguments.length===2&&(n=t,t={}),ma(e,t)(ba(n))}function Fr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Fr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ya(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Fr(e))&&(r&&(r+=" "),r+=t);return r}const va=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},xa=(e,t)=>({classGroupId:e,validator:t}),Nr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yt="-",zr=[],wa="arbitrary..",ka=e=>{const t=Ta(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Sa(o);const a=o.split(Yt),l=a[0]===""&&a.length>1?1:0;return Br(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=r[o],c=n[o];return l?c?va(c,l):l:c||zr}return n[o]||zr}}},Br=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const c=Br(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const a=t===0?e.join(Yt):e.slice(t).join(Yt),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},Sa=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?wa+r:void 0})(),Ta=e=>{const{theme:t,classGroups:n}=e;return Aa(n,t)},Aa=(e,t)=>{const n=Nr();for(const r in e){const s=e[r];kn(s,n,r,t)}return n},kn=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];Ca(o,t,n,r)}},Ca=(e,t,n,r)=>{if(typeof e=="string"){Ma(e,t,n);return}if(typeof e=="function"){Va(e,t,n,r);return}$a(e,t,n,r)},Ma=(e,t,n)=>{const r=e===""?t:jr(t,e);r.classGroupId=n},Va=(e,t,n,r)=>{if(Pa(e)){kn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(xa(n,e))},$a=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];kn(l,jr(t,a),n,r)}},jr=(e,t)=>{let n=e;const r=t.split(Yt),s=r.length;for(let i=0;i<s;i++){const o=r[i];let a=n.nextPart.get(o);a||(a=Nr(),n.nextPart.set(o,a)),n=a}return n},Pa=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return s(i,o),o},set(i,o){i in n?n[i]=o:s(i,o)}}},Sn="!",Kr=":",Ia=[],Gr=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Ra=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,c;const u=s.length;for(let m=0;m<u;m++){const b=s[m];if(o===0&&a===0){if(b===Kr){i.push(s.slice(l,m)),l=m+1;continue}if(b==="/"){c=m;continue}}b==="["?o++:b==="]"?o--:b==="("?a++:b===")"&&a--}const d=i.length===0?s:s.slice(l);let f=d,h=!1;d.endsWith(Sn)?(f=d.slice(0,-1),h=!0):d.startsWith(Sn)&&(f=d.slice(1),h=!0);const y=c&&c>l?c-l:void 0;return Gr(i,h,f,y)};if(t){const s=t+Kr,i=r;r=o=>o.startsWith(s)?i(o.slice(s.length)):Gr(Ia,!1,o,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},Oa=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const o=n[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(o)):s.push(o)}return s.length>0&&(s.sort(),r.push(...s)),r}},_a=e=>({cache:Ea(e.cacheSize),parseClassName:Ra(e),sortModifiers:Oa(e),postfixLookupClassGroupIds:Da(e),...ka(e)}),Da=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},La=/\s+/,Fa=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(La);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:h,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:b}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!b,x;if(v){const I=m.substring(0,b);x=r(I);const g=x&&o[x]?r(m):void 0;g&&g!==x&&(x=g,v=!1)}else x=r(m);if(!x){if(!v){c=d+(c.length>0?" "+c:c);continue}if(x=r(m),!x){c=d+(c.length>0?" "+c:c);continue}v=!1}const C=h.length===0?"":h.length===1?h[0]:i(h).join(":"),T=y?C+Sn:C,A=T+x;if(a.indexOf(A)>-1)continue;a.push(A);const R=s(x,v);for(let I=0;I<R.length;++I){const g=R[I];a.push(T+g)}c=d+(c.length>0?" "+c:c)}return c},Na=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=Wr(n))&&(s&&(s+=" "),s+=r);return s},Wr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wr(e[r]))&&(n&&(n+=" "),n+=t);return n},za=(e,...t)=>{let n,r,s,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=_a(c),r=n.cache.get,s=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=Fa(l,n);return s(l,u),u};return i=o,(...l)=>i(Na(...l))},Ba=[],Z=e=>{const t=n=>n[e]||Ba;return t.isThemeGetter=!0,t},Ur=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ja=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ka=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ga=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ua=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ya=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$e=e=>ja.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),Tn=e=>e.endsWith("%")&&O(e.slice(0,-1)),Se=e=>Ka.test(e),Xr=()=>!0,Xa=e=>Ga.test(e)&&!Wa.test(e),An=()=>!1,Ha=e=>Ua.test(e),qa=e=>Ya.test(e),Za=e=>!w(e)&&!k(e),Ja=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Qa=e=>Pe(e,es,An),w=e=>Ur.test(e),Fe=e=>Pe(e,ts,Xa),Hr=e=>Pe(e,al,O),el=e=>Pe(e,rs,Xr),tl=e=>Pe(e,ns,An),qr=e=>Pe(e,Jr,An),nl=e=>Pe(e,Qr,qa),Xt=e=>Pe(e,ss,Ha),k=e=>Yr.test(e),bt=e=>Ne(e,ts),rl=e=>Ne(e,ns),Zr=e=>Ne(e,Jr),sl=e=>Ne(e,es),il=e=>Ne(e,Qr),Ht=e=>Ne(e,ss,!0),ol=e=>Ne(e,rs,!0),Pe=(e,t,n)=>{const r=Ur.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ne=(e,t,n=!1)=>{const r=Yr.exec(e);return r?r[1]?t(r[1]):n:!1},Jr=e=>e==="position"||e==="percentage",Qr=e=>e==="image"||e==="url",es=e=>e==="length"||e==="size"||e==="bg-size",ts=e=>e==="length",al=e=>e==="number",ns=e=>e==="family-name",rs=e=>e==="number"||e==="weight",ss=e=>e==="shadow",ll=za(()=>{const e=Z("color"),t=Z("font"),n=Z("text"),r=Z("font-weight"),s=Z("tracking"),i=Z("leading"),o=Z("breakpoint"),a=Z("container"),l=Z("spacing"),c=Z("radius"),u=Z("shadow"),d=Z("inset-shadow"),f=Z("text-shadow"),h=Z("drop-shadow"),y=Z("blur"),m=Z("perspective"),b=Z("aspect"),v=Z("ease"),x=Z("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),k,w],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],g=()=>[k,w,l],V=()=>[$e,"full","auto",...g()],M=()=>[ye,"none","subgrid",k,w],_=()=>["auto",{span:["full",ye,k,w]},ye,k,w],z=()=>[ye,"auto",k,w],ie=()=>["auto","min","max","fr",k,w],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...g()],Q=()=>[$e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],ue=()=>[$e,"screen","full","dvw","lvw","svw","min","max","fit",...g()],st=()=>[$e,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],$=()=>[e,k,w],Ot=()=>[...T(),Zr,qr,{position:[k,w]}],_t=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Dt=()=>["auto","cover","contain",sl,Qa,{size:[k,w]}],it=()=>[Tn,bt,Fe],K=()=>["","none","full",c,k,w],G=()=>["",O,bt,Fe],Ae=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[O,Tn,Zr,qr],Lt=()=>["","none",y,k,w],Ke=()=>["none",O,k,w],fe=()=>["none",O,k,w],ot=()=>[O,k,w],Ge=()=>[$e,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[Xr],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Za],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",O],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$e,w,k,b]}],container:["container"],"container-type":[{"@container":["","normal","size",k,w]}],"container-named":[Ja],columns:[{columns:[O,w,k,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",k,w]}],basis:[{basis:[$e,"full","auto",a,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,$e,"auto","initial","none",w]}],grow:[{grow:["",O,k,w]}],shrink:[{shrink:["",O,k,w]}],order:[{order:[ye,"first","last","none",k,w]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",...st()]}],"min-block-size":[{"min-block":["auto",...st()]}],"max-block-size":[{"max-block":["none",...st()]}],w:[{w:[a,"screen",...Q()]}],"min-w":[{"min-w":[a,"screen","none",...Q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,bt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ol,el]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tn,w]}],"font-family":[{font:[rl,tl,t]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,k,w]}],"line-clamp":[{"line-clamp":[O,"none",k,Hr]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",k,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",k,Fe]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[O,"auto",k,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[ye,k,w]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ot()}],"bg-repeat":[{bg:_t()}],"bg-size":[{bg:Dt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,k,w],radial:["",k,w],conic:[ye,k,w]},il,nl]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:it()}],"gradient-via-pos":[{via:it()}],"gradient-to-pos":[{to:it()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,k,w]}],"outline-w":[{outline:["",O,bt,Fe]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",u,Ht,Xt]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",d,Ht,Xt]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[O,Fe]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",f,Ht,Xt]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[O,k,w]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[k,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ot()}],"mask-repeat":[{mask:_t()}],"mask-size":[{mask:Dt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,w]}],filter:[{filter:["","none",k,w]}],blur:[{blur:Lt()}],brightness:[{brightness:[O,k,w]}],contrast:[{contrast:[O,k,w]}],"drop-shadow":[{"drop-shadow":["","none",h,Ht,Xt]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",O,k,w]}],"hue-rotate":[{"hue-rotate":[O,k,w]}],invert:[{invert:["",O,k,w]}],saturate:[{saturate:[O,k,w]}],sepia:[{sepia:["",O,k,w]}],"backdrop-filter":[{"backdrop-filter":["","none",k,w]}],"backdrop-blur":[{"backdrop-blur":Lt()}],"backdrop-brightness":[{"backdrop-brightness":[O,k,w]}],"backdrop-contrast":[{"backdrop-contrast":[O,k,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,k,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,k,w]}],"backdrop-invert":[{"backdrop-invert":["",O,k,w]}],"backdrop-opacity":[{"backdrop-opacity":[O,k,w]}],"backdrop-saturate":[{"backdrop-saturate":[O,k,w]}],"backdrop-sepia":[{"backdrop-sepia":["",O,k,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",k,w]}],ease:[{ease:["linear","initial",v,k,w]}],delay:[{delay:[O,k,w]}],animate:[{animate:["none",x,k,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,k,w]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[k,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[ye,k,w]}],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":$()}],"scrollbar-track-color":[{"scrollbar-track":$()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,w]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[O,bt,Fe,Hr]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function B(...e){return ll(ya(e))}var cl=D('<span class="text-sm text-muted-foreground"> / '),ul=D('<div><div class="flex items-end justify-between gap-2"><span class="font-semibold text-foreground"></span></div><div class="relative mt-2 h-2 w-full rounded-full bg-muted"role=meter><div class="absolute h-2 rounded-full bg-gradient-to-r from-primary/40 to-primary"></div><div class="absolute -top-1 h-4 w-4 -translate-x-1/2 rounded-full border-2 border-background bg-primary shadow"></div></div><div class="flex items-center justify-between text-xs text-muted-foreground">'),dl=D("<span>");const fl=[{min:10,label:"Brand New"},{min:9,label:"Excellent"},{min:7,label:"Very Good"},{min:5,label:"Good"},{min:1,label:"Fair"}];function hl(e){const t=()=>e.min??1,n=()=>e.max??10,r=()=>(e.tiers??fl).slice().sort((o,a)=>o.min-a.min),s=()=>{const o=n()-t();return o<=0?0:Math.max(0,Math.min(100,(e.value-t())/o*100))},i=()=>{const o=r();let a=o[0];for(const l of o)l.min<=e.value&&(a=l);return a};return(()=>{var o=ul(),a=o.firstChild,l=a.firstChild,c=a.nextSibling,u=c.firstChild,d=u.nextSibling,f=c.nextSibling;return P(l,()=>{var h;return(h=i())==null?void 0:h.label}),P(a,p(q,{get when(){return e.showValue??!0},get children(){var h=cl(),y=h.firstChild;return P(h,()=>e.value,y),P(h,n,null),h}}),null),P(f,p(ht,{get each(){return[r()[0],r()[r().length-1]]},children:h=>(()=>{var y=dl();return P(y,()=>h==null?void 0:h.label),y})()})),N(h=>{var A;var y=B("flex flex-col gap-2",e.class),m=t(),b=n(),v=e.value,x=((A=i())==null?void 0:A.label)??"Condition",C=`${s()}%`,T=`${s()}%`;return y!==h.e&&be(o,h.e=y),m!==h.t&&E(c,"aria-valuemin",h.t=m),b!==h.a&&E(c,"aria-valuemax",h.a=b),v!==h.o&&E(c,"aria-valuenow",h.o=v),x!==h.i&&E(c,"aria-label",h.i=x),C!==h.n&&Ve(u,"width",h.n=C),T!==h.s&&Ve(d,"left",h.s=T),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),o})()}function ve(e){const[t,n]=le(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return p(wn,L(n,{get component(){return t.as}}))}var ml=Object.defineProperty,qt=(e,t)=>{for(var n in t)ml(e,n,{get:t[n],enumerable:!0})},gl={};qt(gl,{Alert:()=>os,Root:()=>is});function is(e){return p(ve,L({as:"div",role:"alert"},e))}var os=is;/**
1
+ var A4uiElements=(function(un){"use strict";var vo;const W={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return xr(this.context.count)},getNextContextId(){return xr(this.context.count++)}};function xr(e){const t=String(e),n=t.length-1;return W.context.id+(n?String.fromCharCode(96+n):"")+t}function wo(e){W.context=e}const ko=!1,So=(e,t)=>e===t,Nt=Symbol("solid-proxy"),wr=typeof Proxy=="function",kr=Symbol("solid-track"),zt={equals:So};let Sr=Mr;const Ce=1,Bt=2,Tr={owned:null,cleanups:null,context:null,owner:null};var F=null;let dn=null,To=null,U=null,te=null,ke=null,jt=0;function We(e,t){const n=U,r=F,s=e.length===0,i=t===void 0?r:t,o=s?Tr:{owned:null,cleanups:null,context:i?i.context:null,owner:i},a=s?e:()=>e(()=>re(()=>ft(o)));F=o,U=null;try{return dt(a,!0)}finally{U=n,F=r}}function Q(e,t){t=t?Object.assign({},zt,t):zt;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),Cr(n,s));return[Ar.bind(n),r]}function N(e,t,n){const r=fn(e,t,!1,Ce);ut(r)}function Me(e,t,n){Sr=$o;const r=fn(e,t,!1,Ce);r.user=!0,ke?ke.push(r):ut(r)}function ne(e,t,n){n=n?Object.assign({},zt,n):zt;const r=fn(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,ut(r),Ar.bind(r)}function re(e){if(U===null)return e();const t=U;U=null;try{return e()}finally{U=t}}function Ao(e,t,n){const r=Array.isArray(e);let s;return i=>{let o;if(r){o=Array(e.length);for(let l=0;l<e.length;l++)o[l]=e[l]()}else o=e();const a=re(()=>t(o,s,i));return s=o,a}}function at(e){Me(()=>re(e))}function me(e){return F===null||(F.cleanups===null?F.cleanups=[e]:F.cleanups.push(e)),e}function lt(e,t){const n=Symbol("context");return{id:n,Provider:Eo(n),defaultValue:e}}function ct(e){let t;return F&&F.context&&(t=F.context[e.id])!==void 0?t:e.defaultValue}function Co(e){const t=ne(e),n=ne(()=>hn(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}function Ar(){if(this.sources&&this.state)if(this.state===Ce)ut(this);else{const e=te;te=null,dt(()=>Gt(this),!1),te=e}if(U){const e=this.observers;if(!e||e[e.length-1]!==U){const t=e?e.length:0;U.sources?(U.sources.push(this),U.sourceSlots.push(t)):(U.sources=[this],U.sourceSlots=[t]),e?(e.push(U),this.observerSlots.push(U.sources.length-1)):(this.observers=[U],this.observerSlots=[U.sources.length-1])}}return this.value}function Cr(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&dt(()=>{for(let s=0;s<e.observers.length;s+=1){const i=e.observers[s],o=dn&&dn.running;o&&dn.disposed.has(i),(o?!i.tState:!i.state)&&(i.pure?te.push(i):ke.push(i),i.observers&&Vr(i)),o||(i.state=Ce)}if(te.length>1e6)throw te=[],new Error},!1)),t}function ut(e){if(!e.fn)return;ft(e);const t=jt;Mo(e,e.value,t)}function Mo(e,t,n){let r;const s=F,i=U;U=F=e;try{r=e.fn(t)}catch(o){return e.pure&&(e.state=Ce,e.owned&&e.owned.forEach(ft),e.owned=null),e.updatedAt=n+1,$r(o)}finally{U=i,F=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Cr(e,r):e.value=r,e.updatedAt=n)}function fn(e,t,n,r=Ce,s){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:F,context:F?F.context:null,pure:n};return F===null||F!==Tr&&(F.owned?F.owned.push(i):F.owned=[i]),i}function Kt(e){if(e.state===0)return;if(e.state===Bt)return Gt(e);if(e.suspense&&re(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<jt);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===Ce)ut(e);else if(e.state===Bt){const r=te;te=null,dt(()=>Gt(e,t[0]),!1),te=r}}function dt(e,t){if(te)return e();let n=!1;t||(te=[]),ke?n=!0:ke=[],jt++;try{const r=e();return Vo(n),r}catch(r){n||(ke=null),te=null,$r(r)}}function Vo(e){if(te&&(Mr(te),te=null),e)return;const t=ke;ke=null,t.length&&dt(()=>Sr(t),!1)}function Mr(e){for(let t=0;t<e.length;t++)Kt(e[t])}function $o(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Kt(r)}if(W.context){if(W.count){W.effects||(W.effects=[]),W.effects.push(...e.slice(0,n));return}wo()}for(W.effects&&!W.count&&(e=[...W.effects,...e],n+=W.effects.length,delete W.effects),t=0;t<n;t++)Kt(e[t])}function Gt(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const s=r.state;s===Ce?r!==t&&(!r.updatedAt||r.updatedAt<jt)&&Kt(r):s===Bt&&Gt(r,t)}}}function Vr(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=Bt,n.pure?te.push(n):ke.push(n),n.observers&&Vr(n))}}function ft(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const i=s.pop(),o=n.observerSlots.pop();r<s.length&&(i.sourceSlots[o]=r,s[r]=i,n.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)ft(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)ft(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function Po(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function $r(e,t=F){throw Po(e)}function hn(e){if(typeof e=="function"&&!e.length)return hn(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=hn(e[n]);if(Array.isArray(r))if(r.length<32768)t.push.apply(t,r);else for(let s=0;s<r.length;s++)t.push(r[s]);else t.push(r)}return t}return e}function Eo(e,t){return function(r){let s;return N(()=>s=re(()=>(F.context={...F.context,[e]:r.value},Co(()=>r.children))),void 0),s}}const mn=Symbol("fallback");function Wt(e){for(let t=0;t<e.length;t++)e[t]()}function Io(e,t,n={}){let r=[],s=[],i=[],o=0,a=t.length>1?[]:null;return me(()=>Wt(i)),()=>{let l=e()||[],c=l.length,u,d;return l[kr],re(()=>{let h,y,m,b,v,x,C,T,A;if(c===0)o!==0&&(Wt(i),i=[],r=[],s=[],o=0,a&&(a=[])),n.fallback&&(r=[mn],s[0]=We(R=>(i[0]=R,n.fallback())),o=1);else if(o===0){for(s=new Array(c),d=0;d<c;d++)r[d]=l[d],s[d]=We(f);o=c}else{for(m=new Array(c),b=new Array(c),a&&(v=new Array(c)),x=0,C=Math.min(o,c);x<C&&r[x]===l[x];x++);for(C=o-1,T=c-1;C>=x&&T>=x&&r[C]===l[T];C--,T--)m[T]=s[C],b[T]=i[C],a&&(v[T]=a[C]);for(h=new Map,y=new Array(T+1),d=T;d>=x;d--)A=l[d],u=h.get(A),y[d]=u===void 0?-1:u,h.set(A,d);for(u=x;u<=C;u++)A=r[u],d=h.get(A),d!==void 0&&d!==-1?(m[d]=s[u],b[d]=i[u],a&&(v[d]=a[u]),d=y[d],h.set(A,d)):i[u]();for(d=x;d<c;d++)d in m?(s[d]=m[d],i[d]=b[d],a&&(a[d]=v[d],a[d](d))):s[d]=We(f);s=s.slice(0,o=c),r=l.slice(0)}return s});function f(h){if(i[d]=h,a){const[y,m]=Q(d);return a[d]=m,t(l[d],y)}return t(l[d])}}}function Ro(e,t,n={}){let r=[],s=[],i=[],o=[],a=0,l;return me(()=>Wt(i)),()=>{const c=e()||[],u=c.length;return c[kr],re(()=>{if(u===0)return a!==0&&(Wt(i),i=[],r=[],s=[],a=0,o=[]),n.fallback&&(r=[mn],s[0]=We(f=>(i[0]=f,n.fallback())),a=1),s;for(r[0]===mn&&(i[0](),i=[],r=[],s=[],a=0),l=0;l<u;l++)l<r.length&&r[l]!==c[l]?o[l](()=>c[l]):l>=r.length&&(s[l]=We(d));for(;l<r.length;l++)i[l]();return a=o.length=i.length=u,r=c.slice(0),s=s.slice(0,a)});function d(f){i[l]=f;const[h,y]=Q(c[l]);return o[l]=y,t(h,l)}}}function p(e,t){return re(()=>e(t||{}))}function Ut(){return!0}const gn={get(e,t,n){return t===Nt?n:e.get(t)},has(e,t){return t===Nt?!0:e.has(t)},set:Ut,deleteProperty:Ut,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:Ut,deleteProperty:Ut}},ownKeys(e){return e.keys()}};function pn(e){return(e=typeof e=="function"?e():e)?e:{}}function Oo(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function L(...e){let t=!1;for(let o=0;o<e.length;o++){const a=e[o];t=t||!!a&&Nt in a,e[o]=typeof a=="function"?(t=!0,ne(a)):a}if(wr&&t)return new Proxy({get(o){for(let a=e.length-1;a>=0;a--){const l=pn(e[a])[o];if(l!==void 0)return l}},has(o){for(let a=e.length-1;a>=0;a--)if(o in pn(e[a]))return!0;return!1},keys(){const o=[];for(let a=0;a<e.length;a++)o.push(...Object.keys(pn(e[a])));return[...new Set(o)]}},gn);const n={},r=Object.create(null);for(let o=e.length-1;o>=0;o--){const a=e[o];if(!a)continue;const l=Object.getOwnPropertyNames(a);for(let c=l.length-1;c>=0;c--){const u=l[c];if(u==="__proto__"||u==="constructor")continue;const d=Object.getOwnPropertyDescriptor(a,u);if(!r[u])r[u]=d.get?{enumerable:!0,configurable:!0,get:Oo.bind(n[u]=[d.get.bind(a)])}:d.value!==void 0?d:void 0;else{const f=n[u];f&&(d.get?f.push(d.get.bind(a)):d.value!==void 0&&f.push(()=>d.value))}}}const s={},i=Object.keys(r);for(let o=i.length-1;o>=0;o--){const a=i[o],l=r[a];l&&l.get?Object.defineProperty(s,a,l):s[a]=l?l.value:void 0}return s}function le(e,...t){const n=t.length;if(wr&&Nt in e){const s=n>1?t.flat():t[0],i=t.map(o=>new Proxy({get(a){return o.includes(a)?e[a]:void 0},has(a){return o.includes(a)&&a in e},keys(){return o.filter(a=>a in e)}},gn));return i.push(new Proxy({get(o){return s.includes(o)?void 0:e[o]},has(o){return s.includes(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!s.includes(o))}},gn)),i}const r=[];for(let s=0;s<=n;s++)r[s]={};for(const s of Object.getOwnPropertyNames(e)){let i=n;for(let l=0;l<t.length;l++)if(t[l].includes(s)){i=l;break}const o=Object.getOwnPropertyDescriptor(e,s);!o.get&&!o.set&&o.enumerable&&o.writable&&o.configurable?r[i][s]=o.value:Object.defineProperty(r[i],s,o)}return r}let _o=0;function Pr(){return W.context?W.getNextContextId():`cl-${_o++}`}const Do=e=>`Stale read from <${e}>.`;function ht(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ne(Io(()=>e.each,e.children,t||void 0))}function bn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return ne(Ro(()=>e.each,e.children,t||void 0))}function q(e){const t=e.keyed,n=ne(()=>e.when,void 0,void 0),r=t?n:ne(n,void 0,{equals:(s,i)=>!s==!i});return ne(()=>{const s=r();if(s){const i=e.children;return typeof i=="function"&&i.length>0?re(()=>i(t?s:()=>{if(!re(r))throw Do("Show");return n()})):i}return e.fallback},void 0,void 0)}const Lo=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],Fo=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable",...Lo]),No=new Set(["innerHTML","textContent","innerText","children"]),zo=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Bo=Object.assign(Object.create(null),{class:"className",novalidate:{$:"noValidate",FORM:1},formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1},adauctionheaders:{$:"adAuctionHeaders",IFRAME:1},allowfullscreen:{$:"allowFullscreen",IFRAME:1},browsingtopics:{$:"browsingTopics",IMG:1},defaultchecked:{$:"defaultChecked",INPUT:1},defaultmuted:{$:"defaultMuted",AUDIO:1,VIDEO:1},defaultselected:{$:"defaultSelected",OPTION:1},disablepictureinpicture:{$:"disablePictureInPicture",VIDEO:1},disableremoteplayback:{$:"disableRemotePlayback",AUDIO:1,VIDEO:1},preservespitch:{$:"preservesPitch",AUDIO:1,VIDEO:1},shadowrootclonable:{$:"shadowRootClonable",TEMPLATE:1},shadowrootdelegatesfocus:{$:"shadowRootDelegatesFocus",TEMPLATE:1},shadowrootserializable:{$:"shadowRootSerializable",TEMPLATE:1},sharedstoragewritable:{$:"sharedStorageWritable",IFRAME:1,IMG:1}});function jo(e,t){const n=Bo[e];return typeof n=="object"?n[t]?n.$:void 0:n}const Ko=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Go=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Wo={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},yn=e=>ne(()=>e());function Uo(e,t,n){let r=n.length,s=t.length,i=r,o=0,a=0,l=t[s-1].nextSibling,c=null;for(;o<s||a<i;){if(t[o]===n[a]){o++,a++;continue}for(;t[s-1]===n[i-1];)s--,i--;if(s===o){const u=i<r?a?n[a-1].nextSibling:n[i-a]:l;for(;a<i;)e.insertBefore(n[a++],u)}else if(i===a)for(;o<s;)(!c||!c.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[i-1]&&n[a]===t[s-1]){const u=t[--s].nextSibling;e.insertBefore(n[a++],t[o++].nextSibling),e.insertBefore(n[--i],u),t[s]=n[i]}else{if(!c){c=new Map;let d=a;for(;d<i;)c.set(n[d],d++)}const u=c.get(t[o]);if(u!=null)if(a<u&&u<i){let d=o,f=1,h;for(;++d<s&&d<i&&!((h=c.get(t[d]))==null||h!==u+f);)f++;if(f>u-a){const y=t[o];for(;a<u;)e.insertBefore(n[a++],y)}else e.replaceChild(n[a++],t[o++])}else o++;else t[o++].remove()}}}const Er="_$DX_DELEGATE";function D(e,t,n,r){let s;const i=()=>{const a=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return a.innerHTML=e,n?a.content.firstChild.firstChild:r?a.firstChild:a.content.firstChild},o=t?()=>re(()=>document.importNode(s||(s=i()),!0)):()=>(s||(s=i())).cloneNode(!0);return o.cloneNode=o,o}function mt(e,t=window.document){const n=t[Er]||(t[Er]=new Set);for(let r=0,s=e.length;r<s;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,ta))}}function E(e,t,n){Le(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function Yo(e,t,n,r){Le(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function Xo(e,t,n){Le(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function be(e,t){Le(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Ho(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const s=n[0];e.addEventListener(t,n[0]=i=>s.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function qo(e,t,n={}){const r=Object.keys(t||{}),s=Object.keys(n);let i,o;for(i=0,o=s.length;i<o;i++){const a=s[i];!a||a==="undefined"||t[a]||(Ir(e,a,!1),delete n[a])}for(i=0,o=r.length;i<o;i++){const a=r[i],l=!!t[a];!a||a==="undefined"||n[a]===l||!l||(Ir(e,a,!0),n[a]=l)}return n}function Zo(e,t,n){if(!t)return n?E(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let s,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)s=t[i],s!==n[i]&&(r.setProperty(i,s),n[i]=s);return n}function Ve(e,t,n){n!=null?e.style.setProperty(t,n):e.style.removeProperty(t)}function De(e,t={},n,r){const s={};return r||N(()=>s.children=gt(e,t.children,s.children)),N(()=>typeof t.ref=="function"&&vn(t.ref,e)),N(()=>Jo(e,t,n,!0,s,!0)),s}function vn(e,t,n){return re(()=>e(t,n))}function P(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return gt(e,t,r,n);N(s=>gt(e,t(),s,n),r)}function Jo(e,t,n,r,s={},i=!1){t||(t={});for(const o in s)if(!(o in t)){if(o==="children")continue;s[o]=Rr(e,o,null,s[o],n,i,t)}for(const o in t){if(o==="children")continue;const a=t[o];s[o]=Rr(e,o,a,s[o],n,i,t)}}function Qo(e){let t,n;return!Le()||!(t=W.registry.get(n=na()))?e():(W.completed&&W.completed.add(t),W.registry.delete(n),t)}function Le(e){return!!W.context&&!0&&(!e||e.isConnected)}function ea(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function Ir(e,t,n){const r=t.trim().split(/\s+/);for(let s=0,i=r.length;s<i;s++)e.classList.toggle(r[s],n)}function Rr(e,t,n,r,s,i,o){let a,l,c,u,d;if(t==="style")return Zo(e,n,r);if(t==="classList")return qo(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const f=t.slice(3);r&&e.removeEventListener(f,r,typeof r!="function"&&r),n&&e.addEventListener(f,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const f=t.slice(10);r&&e.removeEventListener(f,r,!0),n&&e.addEventListener(f,n,!0)}else if(t.slice(0,2)==="on"){const f=t.slice(2).toLowerCase(),h=Ko.has(f);if(!h&&r){const y=Array.isArray(r)?r[0]:r;e.removeEventListener(f,y)}(h||n)&&(Ho(e,f,n,h),h&&mt([f]))}else if(t.slice(0,5)==="attr:")E(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")Xo(e,t.slice(5),n);else if((d=t.slice(0,5)==="prop:")||(c=No.has(t))||!s&&((u=jo(t,e.tagName))||(l=Fo.has(t)))||(a=e.nodeName.includes("-")||"is"in o)){if(d)t=t.slice(5),l=!0;else if(Le(e))return n;t==="class"||t==="className"?be(e,n):a&&!l&&!c?e[ea(t)]=n:e[u||t]=n}else{const f=s&&t.indexOf(":")>-1&&Wo[t.split(":")[0]];f?Yo(e,f,t,n):E(e,zo[t]||t,n)}return n}function ta(e){let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,i=l=>Object.defineProperty(e,"target",{configurable:!0,value:l}),o=()=>{const l=t[n];if(l&&!t.disabled){const c=t[`${n}Data`];if(c!==void 0?l.call(t,c,e):l.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},a=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),e.composedPath){const l=e.composedPath();i(l[0]);for(let c=0;c<l.length-2&&(t=l[c],!!o());c++){if(t._$host){t=t._$host,a();break}if(t.parentNode===s)break}}else a();i(r)}function gt(e,t,n,r,s){const i=Le(e);if(i){!n&&(n=[...e.childNodes]);let l=[];for(let c=0;c<n.length;c++){const u=n[c];u.nodeType===8&&u.data.slice(0,2)==="!$"?u.remove():l.push(u)}n=l}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(i||o==="number"&&(t=t.toString(),t===n))return n;if(a){let l=n[0];l&&l.nodeType===3?l.data!==t&&(l.data=t):l=document.createTextNode(t),n=Ue(e,n,r,l)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(i)return n;n=Ue(e,n,r)}else{if(o==="function")return N(()=>{let l=t();for(;typeof l=="function";)l=l();n=gt(e,l,n,r)}),()=>n;if(Array.isArray(t)){const l=[],c=n&&Array.isArray(n);if(xn(l,t,n,s))return N(()=>n=gt(e,l,n,r,!0)),()=>n;if(i){if(!l.length)return n;if(r===void 0)return n=[...e.childNodes];let u=l[0];if(u.parentNode!==e)return n;const d=[u];for(;(u=u.nextSibling)!==r;)d.push(u);return n=d}if(l.length===0){if(n=Ue(e,n,r),a)return n}else c?n.length===0?Or(e,l,r):Uo(e,n,l):(n&&Ue(e),Or(e,l));n=l}else if(t.nodeType){if(i&&t.parentNode)return n=a?[t]:t;if(Array.isArray(n)){if(a)return n=Ue(e,n,r,t);Ue(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function xn(e,t,n,r){let s=!1;for(let i=0,o=t.length;i<o;i++){let a=t[i],l=n&&n[e.length],c;if(!(a==null||a===!0||a===!1))if((c=typeof a)=="object"&&a.nodeType)e.push(a);else if(Array.isArray(a))s=xn(e,a,l)||s;else if(c==="function")if(r){for(;typeof a=="function";)a=a();s=xn(e,Array.isArray(a)?a:[a],Array.isArray(l)?l:[l])||s}else e.push(a),s=!0;else{const u=String(a);l&&l.nodeType===3&&l.data===u?e.push(l):e.push(document.createTextNode(u))}}return s}function Or(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n)}function Ue(e,t,n,r){if(n===void 0)return e.textContent="";const s=r||document.createTextNode("");if(t.length){let i=!1;for(let o=t.length-1;o>=0;o--){const a=t[o];if(s!==a){const l=a.parentNode===e;!i&&!o?l?e.replaceChild(s,a):e.insertBefore(s,n):l&&a.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}function na(){return W.getNextContextId()}const ra="http://www.w3.org/2000/svg";function sa(e,t=!1,n=void 0){return t?document.createElementNS(ra,e):document.createElement(e,{is:n})}function ia(e,t){const n=ne(e);return ne(()=>{const r=n();switch(typeof r){case"function":return re(()=>r(t));case"string":const s=Go.has(r),i=W.context?Qo():sa(r,s,re(()=>t.is));return De(i,t,s),i}})}function wn(e){const[,t]=le(e,["component"]);return ia(()=>e.component,t)}function oa(e){return Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Object.assign({},s),Lr(s.value)&&!da(s.value)&&!Array.isArray(s.value)&&(n[r].value=Object.assign({},s.value)),Array.isArray(s.value)&&(n[r].value=s.value.slice(0)),n},{})}function aa(e){return e?Object.keys(e).reduce((n,r)=>{const s=e[r];return n[r]=Lr(s)&&"value"in s?s:{value:s},n[r].attribute||(n[r].attribute=ua(r)),n[r].parse="parse"in n[r]?n[r].parse:typeof n[r].value!="string",n},{}):{}}function la(e){return Object.keys(e).reduce((n,r)=>(n[r]=e[r].value,n),{})}function ca(e,t){const n=oa(t);return Object.keys(t).forEach(s=>{const i=n[s],o=e.getAttribute(i.attribute),a=e[s];o!=null&&(i.value=i.parse?_r(o):o),a!=null&&(i.value=Array.isArray(a)?a.slice(0):a),i.reflect&&Dr(e,i.attribute,i.value,!!i.parse),Object.defineProperty(e,s,{get(){return i.value},set(l){const c=i.value;i.value=l,i.reflect&&Dr(this,i.attribute,i.value,!!i.parse);for(let u=0,d=this.__propertyChangedCallbacks.length;u<d;u++)this.__propertyChangedCallbacks[u](s,l,c)},enumerable:!0,configurable:!0})}),n}function _r(e){if(e)try{return JSON.parse(e)}catch{return e}}function Dr(e,t,n,r){if(n==null||n===!1)return e.removeAttribute(t);let s=r?JSON.stringify(n):n;e.__updating[t]=!0,s==="true"&&(s=""),e.setAttribute(t,s),Promise.resolve().then(()=>delete e.__updating[t])}function ua(e){return e.replace(/\.?([A-Z]+)/g,(t,n)=>"-"+n.toLowerCase()).replace("_","-").replace(/^-/,"")}function Lr(e){return e!=null&&(typeof e=="object"||typeof e=="function")}function da(e){return Object.prototype.toString.call(e)==="[object Function]"}function fa(e){return typeof e=="function"&&e.toString().indexOf("class")===0}let pt;function se(){Object.defineProperty(pt,"renderRoot",{value:pt})}function ha(e,t){const n=Object.keys(t);return class extends e{static get observedAttributes(){return n.map(s=>t[s].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let s of n)this[s]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=ca(this,t);const s=la(this.props),i=this.Component,o=pt;try{pt=this,this.__initialized=!0,fa(i)?new i(s,{element:this}):i(s,{element:this})}finally{pt=o}}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let s=null;for(;s=this.__releaseCallbacks.pop();)s(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(s,i,o){if(this.__initialized&&!this.__updating[s]&&(s=this.lookupProp(s),s in t)){if(o==null&&!this[s])return;this[s]=t[s].parse?_r(o):o}}lookupProp(s){if(t)return n.find(i=>s===i||s===t[i].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(s){this.__releaseCallbacks.push(s)}addPropertyChangedCallback(s){this.__propertyChangedCallbacks.push(s)}}}function ma(e,t={},n={}){const{BaseElement:r=HTMLElement,extension:s,customElements:i=window.customElements}=n;return o=>{if(!e)throw new Error("tag is required to register a Component");let a=i.get(e);return a?(a.prototype.Component=o,a):(a=ha(r,aa(t)),a.prototype.Component=o,a.prototype.registeredTag=e,i.define(e,a,s),a)}}function ga(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const[s,i]=Q(e[t[r]]);Object.defineProperty(n,t[r],{get:s,set(o){i(()=>o)}})}return n}function pa(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let t=e.parentNode;for(;t;){if(t._$owner)return t._$owner;if(t.assignedSlot&&t.assignedSlot._$owner)return t.assignedSlot._$owner;t=t.parentNode}return e._$owner}function ba(e){return(t,n)=>{const{element:r}=n;return We(s=>{const i=ga(t);r.addPropertyChangedCallback((a,l)=>i[a]=l),r.addReleaseCallback(()=>{r.renderRoot.textContent="",s()});const o=e(i,n);return P(r.renderRoot,o)},pa(r))}}function ie(e,t,n){return arguments.length===2&&(n=t,t={}),ma(e,t)(ba(n))}function Fr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Fr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ya(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Fr(e))&&(r&&(r+=" "),r+=t);return r}const va=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},xa=(e,t)=>({classGroupId:e,validator:t}),Nr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Yt="-",zr=[],wa="arbitrary..",ka=e=>{const t=Ta(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Sa(o);const a=o.split(Yt),l=a[0]===""&&a.length>1?1:0;return Br(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=r[o],c=n[o];return l?c?va(c,l):l:c||zr}return n[o]||zr}}},Br=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],i=n.nextPart.get(s);if(i){const c=Br(e,t+1,i);if(c)return c}const o=n.validators;if(o===null)return;const a=t===0?e.join(Yt):e.slice(t).join(Yt),l=o.length;for(let c=0;c<l;c++){const u=o[c];if(u.validator(a))return u.classGroupId}},Sa=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?wa+r:void 0})(),Ta=e=>{const{theme:t,classGroups:n}=e;return Aa(n,t)},Aa=(e,t)=>{const n=Nr();for(const r in e){const s=e[r];kn(s,n,r,t)}return n},kn=(e,t,n,r)=>{const s=e.length;for(let i=0;i<s;i++){const o=e[i];Ca(o,t,n,r)}},Ca=(e,t,n,r)=>{if(typeof e=="string"){Ma(e,t,n);return}if(typeof e=="function"){Va(e,t,n,r);return}$a(e,t,n,r)},Ma=(e,t,n)=>{const r=e===""?t:jr(t,e);r.classGroupId=n},Va=(e,t,n,r)=>{if(Pa(e)){kn(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(xa(n,e))},$a=(e,t,n,r)=>{const s=Object.entries(e),i=s.length;for(let o=0;o<i;o++){const[a,l]=s[o];kn(l,jr(t,a),n,r)}},jr=(e,t)=>{let n=e;const r=t.split(Yt),s=r.length;for(let i=0;i<s;i++){const o=r[i];let a=n.nextPart.get(o);a||(a=Nr(),n.nextPart.set(o,a)),n=a}return n},Pa=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ea=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const s=(i,o)=>{n[i]=o,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let o=n[i];if(o!==void 0)return o;if((o=r[i])!==void 0)return s(i,o),o},set(i,o){i in n?n[i]=o:s(i,o)}}},Sn="!",Kr=":",Ia=[],Gr=(e,t,n,r,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:s}),Ra=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=s=>{const i=[];let o=0,a=0,l=0,c;const u=s.length;for(let m=0;m<u;m++){const b=s[m];if(o===0&&a===0){if(b===Kr){i.push(s.slice(l,m)),l=m+1;continue}if(b==="/"){c=m;continue}}b==="["?o++:b==="]"?o--:b==="("?a++:b===")"&&a--}const d=i.length===0?s:s.slice(l);let f=d,h=!1;d.endsWith(Sn)?(f=d.slice(0,-1),h=!0):d.startsWith(Sn)&&(f=d.slice(1),h=!0);const y=c&&c>l?c-l:void 0;return Gr(i,h,f,y)};if(t){const s=t+Kr,i=r;r=o=>o.startsWith(s)?i(o.slice(s.length)):Gr(Ia,!1,o,void 0,!0)}if(n){const s=r;r=i=>n({className:i,parseClassName:s})}return r},Oa=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let s=[];for(let i=0;i<n.length;i++){const o=n[i],a=o[0]==="[",l=t.has(o);a||l?(s.length>0&&(s.sort(),r.push(...s),s=[]),r.push(o)):s.push(o)}return s.length>0&&(s.sort(),r.push(...s)),r}},_a=e=>({cache:Ea(e.cacheSize),parseClassName:Ra(e),sortModifiers:Oa(e),postfixLookupClassGroupIds:Da(e),...ka(e)}),Da=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},La=/\s+/,Fa=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s,sortModifiers:i,postfixLookupClassGroupIds:o}=t,a=[],l=e.trim().split(La);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:f,modifiers:h,hasImportantModifier:y,baseClassName:m,maybePostfixModifierPosition:b}=n(d);if(f){c=d+(c.length>0?" "+c:c);continue}let v=!!b,x;if(v){const I=m.substring(0,b);x=r(I);const g=x&&o[x]?r(m):void 0;g&&g!==x&&(x=g,v=!1)}else x=r(m);if(!x){if(!v){c=d+(c.length>0?" "+c:c);continue}if(x=r(m),!x){c=d+(c.length>0?" "+c:c);continue}v=!1}const C=h.length===0?"":h.length===1?h[0]:i(h).join(":"),T=y?C+Sn:C,A=T+x;if(a.indexOf(A)>-1)continue;a.push(A);const R=s(x,v);for(let I=0;I<R.length;++I){const g=R[I];a.push(T+g)}c=d+(c.length>0?" "+c:c)}return c},Na=(...e)=>{let t=0,n,r,s="";for(;t<e.length;)(n=e[t++])&&(r=Wr(n))&&(s&&(s+=" "),s+=r);return s},Wr=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Wr(e[r]))&&(n&&(n+=" "),n+=t);return n},za=(e,...t)=>{let n,r,s,i;const o=l=>{const c=t.reduce((u,d)=>d(u),e());return n=_a(c),r=n.cache.get,s=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=Fa(l,n);return s(l,u),u};return i=o,(...l)=>i(Na(...l))},Ba=[],Z=e=>{const t=n=>n[e]||Ba;return t.isThemeGetter=!0,t},Ur=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ja=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ka=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ga=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ua=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ya=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$e=e=>ja.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),ye=e=>!!e&&Number.isInteger(Number(e)),Tn=e=>e.endsWith("%")&&O(e.slice(0,-1)),Se=e=>Ka.test(e),Xr=()=>!0,Xa=e=>Ga.test(e)&&!Wa.test(e),An=()=>!1,Ha=e=>Ua.test(e),qa=e=>Ya.test(e),Za=e=>!w(e)&&!k(e),Ja=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Qa=e=>Pe(e,es,An),w=e=>Ur.test(e),Fe=e=>Pe(e,ts,Xa),Hr=e=>Pe(e,al,O),el=e=>Pe(e,rs,Xr),tl=e=>Pe(e,ns,An),qr=e=>Pe(e,Jr,An),nl=e=>Pe(e,Qr,qa),Xt=e=>Pe(e,ss,Ha),k=e=>Yr.test(e),bt=e=>Ne(e,ts),rl=e=>Ne(e,ns),Zr=e=>Ne(e,Jr),sl=e=>Ne(e,es),il=e=>Ne(e,Qr),Ht=e=>Ne(e,ss,!0),ol=e=>Ne(e,rs,!0),Pe=(e,t,n)=>{const r=Ur.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ne=(e,t,n=!1)=>{const r=Yr.exec(e);return r?r[1]?t(r[1]):n:!1},Jr=e=>e==="position"||e==="percentage",Qr=e=>e==="image"||e==="url",es=e=>e==="length"||e==="size"||e==="bg-size",ts=e=>e==="length",al=e=>e==="number",ns=e=>e==="family-name",rs=e=>e==="number"||e==="weight",ss=e=>e==="shadow",ll=za(()=>{const e=Z("color"),t=Z("font"),n=Z("text"),r=Z("font-weight"),s=Z("tracking"),i=Z("leading"),o=Z("breakpoint"),a=Z("container"),l=Z("spacing"),c=Z("radius"),u=Z("shadow"),d=Z("inset-shadow"),f=Z("text-shadow"),h=Z("drop-shadow"),y=Z("blur"),m=Z("perspective"),b=Z("aspect"),v=Z("ease"),x=Z("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],T=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],A=()=>[...T(),k,w],R=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],g=()=>[k,w,l],V=()=>[$e,"full","auto",...g()],M=()=>[ye,"none","subgrid",k,w],_=()=>["auto",{span:["full",ye,k,w]},ye,k,w],z=()=>[ye,"auto",k,w],oe=()=>["auto","min","max","fr",k,w],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...g()],ee=()=>[$e,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...g()],ue=()=>[$e,"screen","full","dvw","lvw","svw","min","max","fit",...g()],st=()=>[$e,"screen","full","lh","dvh","lvh","svh","min","max","fit",...g()],$=()=>[e,k,w],Ot=()=>[...T(),Zr,qr,{position:[k,w]}],_t=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Dt=()=>["auto","cover","contain",sl,Qa,{size:[k,w]}],it=()=>[Tn,bt,Fe],K=()=>["","none","full",c,k,w],G=()=>["",O,bt,Fe],Ae=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[O,Tn,Zr,qr],Lt=()=>["","none",y,k,w],Ke=()=>["none",O,k,w],fe=()=>["none",O,k,w],ot=()=>[O,k,w],Ge=()=>[$e,"full",...g()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Se],breakpoint:[Se],color:[Xr],container:[Se],"drop-shadow":[Se],ease:["in","out","in-out"],font:[Za],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Se],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Se],shadow:[Se],spacing:["px",O],text:[Se],"text-shadow":[Se],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$e,w,k,b]}],container:["container"],"container-type":[{"@container":["","normal","size",k,w]}],"container-named":[Ja],columns:[{columns:[O,w,k,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:A()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[ye,"auto",k,w]}],basis:[{basis:[$e,"full","auto",a,...g()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,$e,"auto","initial","none",w]}],grow:[{grow:["",O,k,w]}],shrink:[{shrink:["",O,k,w]}],order:[{order:[ye,"first","last","none",k,w]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:_()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:_()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:g()}],"gap-x":[{"gap-x":g()}],"gap-y":[{"gap-y":g()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:g()}],px:[{px:g()}],py:[{py:g()}],ps:[{ps:g()}],pe:[{pe:g()}],pbs:[{pbs:g()}],pbe:[{pbe:g()}],pt:[{pt:g()}],pr:[{pr:g()}],pb:[{pb:g()}],pl:[{pl:g()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mbs:[{mbs:Y()}],mbe:[{mbe:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":g()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":g()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],"inline-size":[{inline:["auto",...ue()]}],"min-inline-size":[{"min-inline":["auto",...ue()]}],"max-inline-size":[{"max-inline":["none",...ue()]}],"block-size":[{block:["auto",...st()]}],"min-block-size":[{"min-block":["auto",...st()]}],"max-block-size":[{"max-block":["none",...st()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,bt,Fe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ol,el]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Tn,w]}],"font-family":[{font:[rl,tl,t]}],"font-features":[{"font-features":[w]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,k,w]}],"line-clamp":[{"line-clamp":[O,"none",k,Hr]}],leading:[{leading:[i,...g()]}],"list-image":[{"list-image":["none",k,w]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",k,w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",k,Fe]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[O,"auto",k,w]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"tab-size":[{tab:[ye,k,w]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",k,w]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",k,w]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ot()}],"bg-repeat":[{bg:_t()}],"bg-size":[{bg:Dt()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ye,k,w],radial:["",k,w],conic:[ye,k,w]},il,nl]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:it()}],"gradient-via-pos":[{via:it()}],"gradient-to-pos":[{to:it()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-bs":[{"border-bs":G()}],"border-w-be":[{"border-be":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ae(),"hidden","none"]}],"divide-style":[{divide:[...Ae(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-bs":[{"border-bs":$()}],"border-color-be":[{"border-be":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...Ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,k,w]}],"outline-w":[{outline:["",O,bt,Fe]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",u,Ht,Xt]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",d,Ht,Xt]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[O,Fe]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",f,Ht,Xt]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[O,k,w]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[k,w]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":T()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ot()}],"mask-repeat":[{mask:_t()}],"mask-size":[{mask:Dt()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",k,w]}],filter:[{filter:["","none",k,w]}],blur:[{blur:Lt()}],brightness:[{brightness:[O,k,w]}],contrast:[{contrast:[O,k,w]}],"drop-shadow":[{"drop-shadow":["","none",h,Ht,Xt]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",O,k,w]}],"hue-rotate":[{"hue-rotate":[O,k,w]}],invert:[{invert:["",O,k,w]}],saturate:[{saturate:[O,k,w]}],sepia:[{sepia:["",O,k,w]}],"backdrop-filter":[{"backdrop-filter":["","none",k,w]}],"backdrop-blur":[{"backdrop-blur":Lt()}],"backdrop-brightness":[{"backdrop-brightness":[O,k,w]}],"backdrop-contrast":[{"backdrop-contrast":[O,k,w]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,k,w]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,k,w]}],"backdrop-invert":[{"backdrop-invert":["",O,k,w]}],"backdrop-opacity":[{"backdrop-opacity":[O,k,w]}],"backdrop-saturate":[{"backdrop-saturate":[O,k,w]}],"backdrop-sepia":[{"backdrop-sepia":["",O,k,w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":g()}],"border-spacing-x":[{"border-spacing-x":g()}],"border-spacing-y":[{"border-spacing-y":g()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",k,w]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",k,w]}],ease:[{ease:["linear","initial",v,k,w]}],delay:[{delay:[O,k,w]}],animate:[{animate:["none",x,k,w]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,k,w]}],"perspective-origin":[{"perspective-origin":A()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[k,w,"","none","gpu","cpu"]}],"transform-origin":[{origin:A()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[ye,k,w]}],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",k,w]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":$()}],"scrollbar-track-color":[{"scrollbar-track":$()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mbs":[{"scroll-mbs":g()}],"scroll-mbe":[{"scroll-mbe":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pbs":[{"scroll-pbs":g()}],"scroll-pbe":[{"scroll-pbe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",k,w]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[O,bt,Fe,Hr]}],stroke:[{stroke:["none",...$()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function B(...e){return ll(ya(e))}var cl=D('<span class="text-sm text-muted-foreground"> / '),ul=D('<div><div class="flex items-end justify-between gap-2"><span class="font-semibold text-foreground"></span></div><div class="relative mt-2 h-2 w-full rounded-full bg-muted"role=meter><div class="absolute h-2 rounded-full bg-gradient-to-r from-primary/40 to-primary"></div><div class="absolute -top-1 h-4 w-4 -translate-x-1/2 rounded-full border-2 border-background bg-primary shadow"></div></div><div class="flex items-center justify-between text-xs text-muted-foreground">'),dl=D("<span>");const fl=[{min:10,label:"Brand New"},{min:9,label:"Excellent"},{min:7,label:"Very Good"},{min:5,label:"Good"},{min:1,label:"Fair"}];function hl(e){const t=()=>e.min??1,n=()=>e.max??10,r=()=>(e.tiers??fl).slice().sort((o,a)=>o.min-a.min),s=()=>{const o=n()-t();return o<=0?0:Math.max(0,Math.min(100,(e.value-t())/o*100))},i=()=>{const o=r();let a=o[0];for(const l of o)l.min<=e.value&&(a=l);return a};return(()=>{var o=ul(),a=o.firstChild,l=a.firstChild,c=a.nextSibling,u=c.firstChild,d=u.nextSibling,f=c.nextSibling;return P(l,()=>{var h;return(h=i())==null?void 0:h.label}),P(a,p(q,{get when(){return e.showValue??!0},get children(){var h=cl(),y=h.firstChild;return P(h,()=>e.value,y),P(h,n,null),h}}),null),P(f,p(ht,{get each(){return[r()[0],r()[r().length-1]]},children:h=>(()=>{var y=dl();return P(y,()=>h==null?void 0:h.label),y})()})),N(h=>{var A;var y=B("flex flex-col gap-2",e.class),m=t(),b=n(),v=e.value,x=((A=i())==null?void 0:A.label)??"Condition",C=`${s()}%`,T=`${s()}%`;return y!==h.e&&be(o,h.e=y),m!==h.t&&E(c,"aria-valuemin",h.t=m),b!==h.a&&E(c,"aria-valuemax",h.a=b),v!==h.o&&E(c,"aria-valuenow",h.o=v),x!==h.i&&E(c,"aria-label",h.i=x),C!==h.n&&Ve(u,"width",h.n=C),T!==h.s&&Ve(d,"left",h.s=T),h},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),o})()}function ve(e){const[t,n]=le(e,["as"]);if(!t.as)throw new Error("[kobalte]: Polymorphic is missing the required `as` prop.");return p(wn,L(n,{get component(){return t.as}}))}var ml=Object.defineProperty,qt=(e,t)=>{for(var n in t)ml(e,n,{get:t[n],enumerable:!0})},gl={};qt(gl,{Alert:()=>os,Root:()=>is});function is(e){return p(ve,L({as:"div",role:"alert"},e))}var os=is;/**
2
2
  * @license lucide-solid v1.25.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */var pl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Ye=pl,bl=lt({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),yl=D("<svg>"),vl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),wl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),as=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>{const t=wl(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sl=e=>{const[t,n]=le(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=ct(bl);return(()=>{var s=yl();return De(s,L(Ye,{get width(){return t.size??r.size??Ye.width},get height(){return t.size??r.size??Ye.height},get stroke(){return t.color??r.color??Ye.stroke},get"stroke-width"(){return yn(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])},get class(){return xl("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${as(kl(t.name))}`,`lucide-${as(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!vl(n)?"true":void 0}},n),!0,!0),P(s,p(ht,{get each(){return t.iconNode},children:([i,o])=>p(wn,L({component:i},o))})),s})()},Ee=Sl,Tl=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Al=e=>p(Ee,L(e,{iconNode:Tl,name:"check"})),Cl=Al,Ml=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vl=e=>p(Ee,L(e,{iconNode:Ml,name:"circle-check"})),$l=Vl,Pl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],El=e=>p(Ee,L(e,{iconNode:Pl,name:"circle-x"})),Il=El,Rl=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ol=e=>p(Ee,L(e,{iconNode:Rl,name:"copy"})),_l=Ol,Dl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ll=e=>p(Ee,L(e,{iconNode:Dl,name:"info"})),Fl=Ll,Nl=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],zl=e=>p(Ee,L(e,{iconNode:Nl,name:"star"})),ls=zl,Bl=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jl=e=>p(Ee,L(e,{iconNode:Bl,name:"triangle-alert"})),Kl=jl,Gl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wl=e=>p(Ee,L(e,{iconNode:Gl,name:"x"})),Ul=Wl,Yl=D("<p class=font-semibold>"),Xl=D("<div class=flex-1><div class=text-muted-foreground>");const Hl={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:Fl},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:$l},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Kl},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:Il}};function ql(e){const t=()=>Hl[e.tone??"info"];return p(os,{get class(){return B("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[p(wn,{get component(){return t().Icon},get class(){return B("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var n=Xl(),r=n.firstChild;return P(n,p(q,{get when(){return e.title},get children(){var s=Yl();return P(s,()=>e.title),s}}),r),P(r,()=>e.children),n})()]}})}var Zl=D('<a class="underline-offset-2 transition-colors hover:underline motion-reduce:transition-none">'),Jl=D('<button type=button aria-label="Dismiss announcement"class="absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">'),Ql=D("<div role=region aria-label=Announcement>"),ec=D("<span>"),tc=D('<span class="ml-2 inline-flex items-center gap-1 rounded-md bg-black/10 px-2 py-0.5 font-mono"><button type=button class="inline-flex items-center gap-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">');const nc={primary:"bg-primary text-primary-foreground",accent:"bg-accent text-accent-foreground",neutral:"bg-muted text-foreground"};function rc(e){const[t,n]=J(!1),[r,s]=J(!1),i=async()=>{const a=e.couponCode;!a||!navigator.clipboard||(await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),1500))},o=()=>{var a;n(!0),(a=e.onDismiss)==null||a.call(e)};return p(q,{get when(){return!t()},get children(){var a=Ql();return P(a,p(q,{get when(){return e.href},get fallback(){return(()=>{var l=ec();return P(l,()=>e.children),l})()},get children(){var l=Zl();return P(l,()=>e.children),N(()=>E(l,"href",e.href)),l}}),null),P(a,p(q,{get when(){return e.couponCode},children:l=>(()=>{var c=tc(),u=c.firstChild;return P(c,l,u),u.$$click=i,P(u,p(q,{get when(){return r()},get fallback(){return p(_l,{class:"h-3 w-3"})},get children(){return[p(Cl,{class:"h-3 w-3"}),"Copied"]}})),N(()=>E(u,"aria-label",r()?"Coupon code copied":"Copy coupon code")),c})()}),null),P(a,p(q,{get when(){return e.dismissible},get children(){var l=Jl();return l.$$click=o,P(l,p(Ul,{class:"h-4 w-4"})),l}}),null),N(()=>be(a,B("relative w-full rounded-none px-4 py-2 text-center text-sm",nc[e.tone??"primary"],e.dismissible&&"pr-10",e.class))),a}})}mt(["click"]);var sc={};qt(sc,{Fallback:()=>us,Image:()=>Zt,Img:()=>ds,Root:()=>fs,useImageContext:()=>Cn});var cs=lt();function Cn(){const e=ct(cs);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function us(e){const t=Cn(),[n,r]=J(t.fallbackDelay()===void 0);return Me(()=>{const s=t.fallbackDelay();if(s!==void 0){const i=window.setTimeout(()=>r(!0),s);me(()=>window.clearTimeout(i))}}),p(q,{get when(){return yn(()=>!!n())()&&t.imageLoadingStatus()!=="loaded"},get children(){return p(ve,L({as:"span"},e))}})}function ds(e){const t=Cn(),[n,r]=J("idle");return Me(Ao(()=>e.src,s=>{if(!s){r("error");return}let i=!0;const o=new window.Image,a=l=>()=>{i&&r(l)};r("loading"),e.crossOrigin!==void 0&&(o.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(o.referrerPolicy=e.referrerPolicy),o.onload=a("loaded"),o.onerror=a("error"),o.src=s,me(()=>{i=!1})})),Me(()=>{const s=n();s!=="idle"&&t.onImageLoadingStatusChange(s)}),p(q,{get when(){return n()==="loaded"},get children(){return p(ve,L({as:"img"},e))}})}function fs(e){const[t,n]=le(e,["fallbackDelay","onLoadingStatusChange"]),[r,s]=J("idle"),i={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:r,onImageLoadingStatusChange:o=>{var a;s(o),(a=t.onLoadingStatusChange)==null||a.call(t,o)}};return p(cs.Provider,{value:i,get children(){return p(ve,L({as:"span"},n))}})}var Zt=Object.assign(fs,{Fallback:us,Img:ds});function ic(e){return p(Zt,{get class(){return B("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[p(Zt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),p(Zt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var oc=D('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'),ac=D("<span>");const lc={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",warning:"bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",danger:"bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",info:"bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"},cc="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function uc(e){const[t,n]=le(e,["tone","class","children","pulse"]);return(()=>{var r=ac();return De(r,L({get class(){return B(cc,lc[t.tone??"neutral"],t.class)}},n),!1,!0),P(r,p(q,{get when(){return t.pulse},get children(){return oc()}}),null),P(r,()=>t.children,null),r})()}function dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Mn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ie=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Re={},hs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fc=e=>typeof e=="object"&&e!==null,ms=e=>/^0[^.\s]+$/u.test(e);function gs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,$n=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Pn=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ps{constructor(){this.subscriptions=[]}add(t){return dc(this.subscriptions,t),()=>Mn(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const he=e=>e*1e3,ge=e=>e/1e3,bs=(e,t)=>t?e*(1e3/t):0,hc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},ys=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mc=1e-7,gc=12;function pc(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=ys(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>mc&&++a<gc);return o}function yt(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>pc(i,0,1,e,n);return i=>i===0||i===1?i:ys(s(i),t,r)}const vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,En=e=>t=>1-e(1-t),xs=yt(.33,1.53,.69,.99),In=En(xs),ws=vs(In),ks=e=>e>=1?1:(e*=2)<1?.5*In(e):.5*(2-Math.pow(2,-10*(e-1))),Rn=e=>1-Math.sin(Math.acos(e)),bc=En(Rn),Ss=vs(Rn),yc=yt(.42,0,1,1),vc=yt(0,0,.58,1),Ts=yt(.42,0,.58,1),As=e=>Array.isArray(e)&&typeof e[0]!="number";function Cs(e,t){return As(e)?e[hc(0,e.length,t)]:e}const Ms=e=>Array.isArray(e)&&typeof e[0]=="number",xc={linear:Xe,easeIn:yc,easeInOut:Ts,easeOut:vc,circIn:Rn,circInOut:Ss,circOut:bc,backIn:In,backInOut:ws,backOut:xs,anticipate:ks},wc=e=>typeof e=="string",Vs=e=>{if(Ms(e)){Vn(e.length===4);const[t,n,r,s]=e;return yt(t,n,r,s)}else if(wc(e))return xc[e];return e},Jt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kc(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const u=t;t=n,n=u,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const Sc=40;function $s(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Jt.reduce((C,T)=>(C[T]=kc(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:y}=o,m=()=>{const C=Re.useManualTiming,T=C?s.timestamp:performance.now();n=!1,C||(s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,Sc),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Jt.reduce((C,T)=>{const A=o[T];return C[T]=(R,I=!1,g=!1)=>(n||b(),A.schedule(R,I,g)),C},{}),cancel:C=>{for(let T=0;T<Jt.length;T++)o[Jt[T]].cancel(C)},state:s,steps:o}}const{schedule:xe,cancel:On,state:Qt}=$s(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let en;function Tc(){en=void 0}const de={now:()=>(en===void 0&&de.set(Qt.isProcessing||Re.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(Tc)}},Ps=e=>t=>typeof t=="string"&&t.startsWith(e),Es=Ps("--"),Ac=Ps("var(--"),_n=e=>Ac(e)?Cc.test(e.split("/*")[0].trim()):!1,Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Is(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vt={...He,transform:e=>Ie(0,1,e)},tn={...He,default:1},xt=e=>Math.round(e*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mc(e){return e==null}const Vc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Vc.test(n)&&n.startsWith(e)||t&&!Mc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Dn);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$c=e=>Ie(0,255,e),Fn={...He,transform:e=>Math.round($c(e))},ze={test:Ln("rgb","red"),parse:Rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fn.transform(e)+", "+Fn.transform(t)+", "+Fn.transform(n)+", "+xt(vt.transform(r))+")"};function Pc(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Nn={test:Ln("#"),parse:Pc,transform:ze.transform},wt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Te=wt("deg"),qe=wt("%"),S=wt("px"),Ec=wt("vh"),Ic=wt("vw"),Os={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Ln("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qe.transform(xt(t))+", "+qe.transform(xt(n))+", "+xt(vt.transform(r))+")"},H={test:e=>ze.test(e)||Nn.test(e)||Ze.test(e),parse:e=>ze.test(e)?ze.parse(e):Ze.test(e)?Ze.parse(e):Nn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ze.transform(e):Ze.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Rc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dn))==null?void 0:t.length)||0)+(((n=e.match(Rc))==null?void 0:n.length)||0)>0}const _s="number",Ds="color",_c="var",Dc="var(",Ls="${}",Lc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Je(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Lc,l=>(H.test(l)?(r.color.push(i),s.push(Ds),n.push(H.parse(l))):l.startsWith(Dc)?(r.var.push(i),s.push(_c),n.push(l)):(r.number.push(i),s.push(_s),n.push(parseFloat(l))),++i,Ls)).split(Ls);return{values:n,split:a,indexes:r,types:s}}function Fc(e){return Je(e).values}function Fs({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===_s?s+=xt(r[i]):o===Ds?s+=H.transform(r[i]):s+=r[i]}return s}}function Nc(e){return Fs(Je(e))}const zc=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e,Bc=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:zc(e);function jc(e){const t=Je(e);return Fs(t)(t.values.map((r,s)=>Bc(r,t.split[s])))}const pe={test:Oc,parse:Fc,createTransformer:Nc,getAnimatableNone:jc};function zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Kc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=zn(l,a,e+.3333333333333333),i=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function nn(e,t){return n=>n>0?t:e}const Qe=(e,t,n)=>e+(t-e)*n,Bn=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Gc=[Nn,ze,Ze],Wc=e=>Gc.find(t=>t.test(e));function Ns(e){const t=Wc(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=Kc(n)),n}const zs=(e,t)=>{const n=Ns(e),r=Ns(t);if(!n||!r)return nn(e,t);const s={...n};return i=>(s.red=Bn(n.red,r.red,i),s.green=Bn(n.green,r.green,i),s.blue=Bn(n.blue,r.blue,i),s.alpha=Qe(n.alpha,r.alpha,i),ze.transform(s))},jn=new Set(["none","hidden"]);function Uc(e,t){return jn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yc(e,t){return n=>Qe(e,t,n)}function Kn(e){return typeof e=="number"?Yc:typeof e=="string"?_n(e)?nn:H.test(e)?zs:qc:Array.isArray(e)?Bs:typeof e=="object"?H.test(e)?zs:Xc:nn}function Bs(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Kn(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Xc(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Kn(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Hc(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const qc=(e,t)=>{const n=pe.createTransformer(t),r=Je(e),s=Je(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?jn.has(e)&&!s.values.length||jn.has(t)&&!r.values.length?Uc(e,t):$n(Bs(Hc(r,s),s.values),n):nn(e,t)};function js(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Kn(e)(e,t)}const Zc=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xe.update(t,n),stop:()=>On(t),now:()=>Qt.isProcessing?Qt.timestamp:de.now()}},Ks=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rn=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rn;)t+=n,r=e.next(t);return t>=rn?1/0:t}function Gs(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Gn(r),rn);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:ge(s)}}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Wn(e,t){return e*Math.sqrt(1-t*t)}const Jc=12;function Qc(e,t,n){let r=n;for(let s=1;s<Jc;s++)r=r-e(r)/t(r);return r}const Un=.001;function eu({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let s,i,o=1-t;o=Ie(j.minDamping,j.maxDamping,o),e=Ie(j.minDuration,j.maxDuration,ge(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,h=Wn(c,o),y=Math.exp(-d);return Un-f/h*y},i=c=>{const d=c*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=Wn(Math.pow(c,2),o);return(-s(c)+Un>0?-1:1)*((f-h)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Un+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Qc(s,i,a);if(e=he(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const tu=["duration","bounce"],nu=["stiffness","damping","mass"];function Ws(e,t){return t.some(n=>e[n]!==void 0)}function ru(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!Ws(e,nu)&&Ws(e,tu))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:j.mass,stiffness:s,damping:i}}else{const n=eu({...e,velocity:0});t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ru({...n,velocity:-ge(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),b=o-i,v=ge(Math.sqrt(l/u)),x=Math.abs(b)<5;r||(r=x?j.restSpeed.granular:j.restSpeed.default),s||(s=x?j.restDelta.granular:j.restDelta.default);let C,T,A,R,I,g;if(m<1)A=Wn(v,m),R=(y+m*v*b)/A,C=M=>{const _=Math.exp(-m*v*M);return o-_*(R*Math.sin(A*M)+b*Math.cos(A*M))},I=m*v*R+b*A,g=m*v*b-R*A,T=M=>Math.exp(-m*v*M)*(I*Math.sin(A*M)+g*Math.cos(A*M));else if(m===1){C=_=>o-Math.exp(-v*_)*(b+(y+v*b)*_);const M=y+v*b;T=_=>Math.exp(-v*_)*(v*M*_-y)}else{const M=v*Math.sqrt(m*m-1);C=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return o-ae*((y+m*v*b)*Math.sinh(Y)+M*b*Math.cosh(Y))/M};const _=(y+m*v*b)/M,z=m*v*_-b*M,ie=m*v*b-_*M;T=oe=>{const ae=Math.exp(-m*v*oe),Y=Math.min(M*oe,300);return ae*(z*Math.sinh(Y)+ie*Math.cosh(Y))}}const V={calculatedDuration:h&&d||null,velocity:M=>he(T(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*v*M),ie=Math.sin(A*M),oe=Math.cos(A*M),ae=o-z*(R*ie+b*oe),Y=he(z*(I*ie+g*oe));return a.done=Math.abs(Y)<=r&&Math.abs(o-ae)<=s,a.value=a.done?o:ae,a}const _=C(M);if(h)a.done=M>=d;else{const z=he(T(M));a.done=Math.abs(z)<=r&&Math.abs(o-_)<=s}return a.value=a.done?o:_,a},toString:()=>{const M=Math.min(Gn(V),rn),_=Ks(z=>V.next(M*z).value,M,30);return M+"ms "+_},toTransition:()=>{}};return V}kt.applyToOptions=e=>{const t=Gs(e,100,kt);return e.ease=t.ease,e.duration=he(t.duration),e.type="keyframes",e};const su=5;function Us(e,t,n){const r=Math.max(t-su,0);return bs(n-e(r),t-r)}function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=g=>a!==void 0&&g<a||l!==void 0&&g>l,y=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let m=n*t;const b=d+m,v=o===void 0?b:o(b);v!==b&&(m=v-d);const x=g=>-m*Math.exp(-g/r),C=g=>v+x(g),T=g=>{const V=x(g),M=C(g);f.done=Math.abs(V)<=c,f.value=f.done?v:M};let A,R;const I=g=>{h(f.value)&&(A=g,R=kt({keyframes:[f.value,y(f.value)],velocity:Us(C,g,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:g=>{let V=!1;return!R&&A===void 0&&(V=!0,T(g),I(g)),A!==void 0&&g>=A?R.next(g-A):(!V&&T(g),f)}}}function iu(e,t,n){const r=[],s=n||Re.mix||js,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=$n(l,a)}r.push(a)}return r}function ou(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Vn(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iu(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Pn(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ie(e[0],e[i-1],u)):c}function Ys(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Pn(0,t,r);e.push(Qe(n,1,s))}}function Xs(e){const t=[0];return Ys(t,e.length-1),t}function au(e,t){return e.map(n=>n*t)}function lu(e,t){return e.map(()=>t||Ts).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=As(r)?r.map(Vs):Vs(r),i={done:!1,value:t[0]},o=au(n&&n.length===t.length?n:Xs(t),e),a=ou(o,t,{ease:Array.isArray(s)?s:lu(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const cu=e=>e!==null;function sn(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(cu),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const uu={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function Hs(e){typeof e.type=="string"&&(e.type=uu[e.type])}class Xn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const du=e=>e/100;class on extends Xn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hs(t);const{type:n=St,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=$n(du,js(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:y,onUpdate:m,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let C=this.currentTime,T=r;if(d){const g=Math.min(this.currentTime,s)/a;let V=Math.floor(g),M=g%1;!M&&g>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(f==="reverse"?(M=1-M,h&&(M-=h/a)):f==="mirror"&&(T=o)),C=Ie(0,1,M)*a}let A;x?(this.delayState.value=u[0],A=this.delayState):A=T.next(C),i&&!x&&(A.value=i(A.value));let{done:R}=A;!x&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return I&&y!==Yn&&(A.value=sn(u,this.options,b,this.speed)),m&&m(A.value),I&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return ge(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(this.currentTime)}set time(t){t=he(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Us(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(de.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ge(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Zc,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function fu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Be=e=>e*180/Math.PI,Hn=e=>{const t=Be(Math.atan2(e[1],e[0]));return qn(t)},hu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hn,rotateZ:Hn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qn=e=>(e=e%360,e<0&&(e+=360),e),qs=Hn,Zs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Js=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zs,scaleY:Js,scale:e=>(Zs(e)+Js(e))/2,rotateX:e=>qn(Be(Math.atan2(e[6],e[5]))),rotateY:e=>qn(Be(Math.atan2(-e[2],e[0]))),rotateZ:qs,rotate:qs,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return e.includes("scale")?1:0}function Jn(e,t){if(!e||e==="none")return Zn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=mu,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hu,s=a}if(!s)return Zn(t);const i=r[t],o=s[1].split(",").map(pu);return typeof i=="function"?i(o):o[i]}const gu=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jn(n,t)};function pu(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set([...et,"pathRotation"]),Qs=e=>e===He||e===S,bu=new Set(["x","y","z"]),yu=et.filter(e=>!bu.has(e));function vu(e){const t=[];return yu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jn(t,"x"),y:(e,{transform:t})=>Jn(t,"y")};Oe.translateX=Oe.x,Oe.translateY=Oe.y;const je=new Set;let Qn=!1,er=!1,tr=!1;function ei(){if(er){const e=Array.from(je).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=vu(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}er=!1,Qn=!1,je.forEach(e=>e.complete(tr)),je.clear()}function ti(){je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(er=!0)})}function xu(){tr=!0,ti(),ei(),tr=!1}class nr{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(je.add(this),Qn||(Qn=!0,xe.read(ti),xe.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}fu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),je.delete(this)}cancel(){this.state==="scheduled"&&(je.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wu=e=>e.startsWith("--");function ni(e,t,n){wu(t)?e.style.setProperty(t,n):e.style[t]=n}const ku={};function ri(e,t){const n=gs(e);return()=>ku[t]??n()}const Su=ri(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),si=ri(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ii={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function oi(e,t){if(e)return typeof e=="function"?si()?Ks(e,t):"ease-out":Ms(e)?Tt(e):Array.isArray(e)?e.map(n=>oi(n,t)||ii.easeOut):ii[e]}function Tu(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=oi(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function rr(e){return typeof e=="function"&&"applyToOptions"in e}function Au({type:e,...t}){return rr(e)&&si()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ai extends Xn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=Au(t);this.animation=Tu(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=sn(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ni(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ge(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=he(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Su()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const li={anticipate:ks,backInOut:ws,circInOut:Ss};function Cu(e){return e in li}function Mu(e){typeof e.ease=="string"&&Cu(e.ease)&&(e.ease=li[e.ease])}const sr=10;class Vu extends ai{constructor(t){Mu(t),Hs(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new on({...o,autoplay:!1}),l=Math.max(sr,de.now()-this.startTime),c=Ie(0,sr,l-sr),u=a.sample(l).value,{name:d}=this.options;i&&d&&ni(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const ci=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function $u(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Pu(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ci(s,t),a=ci(i,t);return!o||!a?!1:$u(e)||(n==="spring"||rr(n))&&r}function ir(e){e.duration=0,e.type="keyframes"}const ui=new Set(["opacity","clipPath","filter","transform"]),Eu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Iu(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Eu.test(e[t]))return!0;return!1}const Ru=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ou=gs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _u(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ou()&&n&&(ui.has(n)||Ru.has(n)&&Iu(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const Du=40;class Lu extends Xn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=de.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||nr;this.keyframeResolver=new h(a,(m,b,v)=>this.onKeyframesResolved(m,b,f,!v),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var v,x;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=de.now();let d=!0;Pu(t,i,o,a)||(d=!1,(Re.instantAnimations||!l)&&(u==null||u(sn(t,r,n))),t[0]=t[t.length-1],ir(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Du?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&_u(h),m=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current;let b;if(y)try{b=new Vu({...h,element:m})}catch{b=new on(h)}else b=new on(h);b.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),xu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Fu{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return di(this.animations,"duration")}get iterationDuration(){return di(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function di(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Nu extends Fu{then(t,n){return this.finished.finally(t).then(()=>{})}}const fi=30,zu=e=>!isNaN(parseFloat(e));class Bu{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=de.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=de.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zu(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ps);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fi);return bs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nt(e,t){return new Bu(e,t)}function hi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function mi(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?hi(n,e):n}const ju={type:"spring",stiffness:500,damping:25,restSpeed:10},Ku=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uu=(e,{keyframes:t})=>t.length>2?Gu:tt.has(e)?e.startsWith("scale")?Ku(t[1]):ju:Wu,Yu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Xu(e){for(const t in e)if(!Yu.has(t))return!0;return!1}const gi=(e,t,n,r={},s,i)=>o=>{const a=mi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-he(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Xu(a)||Object.assign(u,Uu(e,u)),u.duration&&(u.duration=he(u.duration)),u.repeatDelay&&(u.repeatDelay=he(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ir(u),u.delay===0&&(d=!0)),(Re.instantAnimations||Re.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,ir(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=sn(u.keyframes,a);if(f!==void 0){xe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new on(u):new Lu(u)},Hu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qu(e){const t=Hu.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function pi(e,t,n=1){const[r,s]=qu(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return hs(o)?parseFloat(o):o}return _n(s)?pi(s,t,n+1):s}function bi(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Zu(e,t,n){const r=e.getProps();return yi(r,t,r.custom,e)}const vi=new Set(["width","height","top","left","right","bottom",...et]),Ju=e=>Array.isArray(e);function Qu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nt(n))}function ed(e){return Ju(e)?e[e.length-1]||0:e}function td(e,t){const n=Zu(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ed(i[o]);Qu(e,o,a)}}const ce=e=>!!(e&&e.getVelocity);function nd(e){return!!(ce(e)&&e.add)}function rd(e,t){const n=e.getValue("willChange");if(nd(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function or(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sd="data-"+or("framerAppearId");function id(e){return e.props[sd]}function od({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ad(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?hi(i,l):l;const c=i==null?void 0:i.reduceMotion,u=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],f=s&&e.animationState&&e.animationState.getState()[s],h=i==null?void 0:i.path;h&&h.animateVisualElement(e,a,i,n,d);for(const y in a){const m=e.getValue(y,e.latestValues[y]??null),b=a[y];if(b===void 0||f&&od(f,y))continue;const v={delay:n,...mi(i||{},y)};u&&(v.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(b)&&b===x&&!v.velocity){xe.update(()=>m.set(b));continue}let C=!1;if(window.MotionHandoffAnimation){const R=id(e);if(R){const I=window.MotionHandoffAnimation(R,y,xe);I!==null&&(v.startTime=I,C=!0)}}rd(e,y);const T=c??e.shouldReduceMotion;m.start(gi(y,m,b,T&&vi.has(y)?{type:!1}:v,e,C));const A=m.animation;A&&d.push(A)}if(o){const y=()=>xe.update(()=>{o&&td(e,o)});d.length?Promise.all(d).then(y):y()}return d}const ld={test:e=>e==="auto",parse:e=>e},xi=e=>t=>t.test(e),wi=[He,S,qe,Te,Ic,Ec,ld],ki=e=>wi.find(xi(e));function cd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ms(e):!0}const ud=new Set(["brightness","contrast","saturate","opacity"]);function dd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dn)||[];if(!r)return e;const s=n.replace(r,"");let i=ud.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fd=/\b([a-z-]*)\(.*?\)/gu,ar={...pe,getAnimatableNone:e=>{const t=e.match(fd);return t?t.map(dd).join(" "):e}},lr={...pe,getAnimatableNone:e=>{const t=pe.parse(e);return pe.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Si={...He,transform:Math.round},an={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:Te,pathRotation:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:Te,skewX:Te,skewY:Te,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:vt,originX:Os,originY:Os,originZ:S},zIndex:Si,fillOpacity:vt,strokeOpacity:vt,numOctaves:Si},hd={...an,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ar,WebkitFilter:ar,mask:lr,WebkitMask:lr},Ti=e=>hd[e],md=new Set([ar,lr]);function Ai(e,t){let n=Ti(e);return md.has(n)||(n=pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gd=new Set(["auto","none","0"]);function pd(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!gd.has(i)&&Je(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Ai(n,s)}class bd extends nr{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),_n(d))){const f=pi(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vi.has(r)||t.length!==2)return;const[s,i]=t,o=ki(s),a=ki(i),l=Is(s),c=Is(i);if(l!==c&&Oe[r]){this.needsMeasurement=!0;return}if(o!==a)if(Qs(o)&&Qs(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Oe[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||cd(t[s]))&&r.push(s);r.length&&pd(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Oe[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Oe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const yd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function vd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const cr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:xd}=$s(queueMicrotask,!1);function Ci(e){return fc(e)&&"ownerSVGElement"in e}function wd(e){return Ci(e)&&e.tagName==="svg"}const kd=[...wi,H,pe],Sd=e=>kd.find(xi(e)),Mi=()=>({min:0,max:0}),ur=()=>({x:Mi(),y:Mi()}),At=new WeakMap;function Td(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ad(e){return typeof e=="string"||Array.isArray(e)}const Cd=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Vi(e){return Td(e.animate)||Cd.some(t=>Ad(e[t]))}function Md(e){return!!(Vi(e)||e.variants)}function Vd(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ce(s))e.addValue(r,s);else if(ce(i))e.addValue(r,nt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,nt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dr={current:null},$i={current:!1},$d=typeof window<"u";function Pd(){if($i.current=!0,!!$d)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dr.current=e.matches;e.addEventListener("change",t),t()}else dr.current=!1}const Pi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ei={};class Ii{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=nr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=de.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,xe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Vi(n),this.isVariantNode=Md(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];c[h]!==void 0&&ce(y)&&y.set(c[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,At.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($i.current||Pd(),this.shouldReduceMotion=dr.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),On(this.notifyUpdate),On(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ui.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new ai({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:he(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ei){const n=Ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ur()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Pi.length;r++){const s=Pi[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Vd(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=nt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hs(r)||ms(r))?r=parseFloat(r):!Sd(r)&&pe.test(n)&&(r=Ai(t,n)),this.setBaseTarget(t,ce(r)?r.get():r)),ce(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=yi(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ce(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ps),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xd.render(this.render)}}class Ri extends Ii{constructor(){super(...arguments),this.KeyframeResolver=bd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ed({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Id(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rd(e,t){return Ed(Id(e.getBoundingClientRect(),t))}const Od={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_d=et.length;function Dd(e,t,n){let r="",s=!0;for(let o=0;o<_d;o++){const a=et[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=cr(l,an[a]);if(!c){s=!1;const d=Od[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${cr(i,an.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Oi(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(tt.has(l)){o=!0;continue}else if(Es(l)){s[l]=c;continue}else{const u=cr(c,an[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=Dd(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function _i(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Di(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=Di(e,t.target.x),r=Di(e,t.target.y);return`${n}% ${r}%`}},Ld={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=pe.parse(e);if(s.length>5)return r;const i=pe.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Qe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Fd={borderRadius:{...Ct,applyTo:[...yd]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Ld};function Nd(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fd[e]||e==="opacity")}function Li(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ce(r[a])||s&&ce(s[a])||Nd(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function zd(e){return window.getComputedStyle(e)}class Bd extends Ri{constructor(){super(...arguments),this.type="html",this.renderInstance=_i}readValueFromInstance(t,n){var r;if(tt.has(n))return(r=this.projection)!=null&&r.isProjecting?Zn(n):gu(t,n);{const s=zd(t),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rd(t,n)}build(t,n,r){Oi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Li(t,n,r)}}function jd(e,t){return e in t}class Kd extends Ii{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(jd(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return ur()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Gd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wd={offset:"strokeDashoffset",array:"strokeDasharray"};function Ud(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Gd:Wd;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Yd=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xd(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Oi(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of Yd)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ud(d,s,i,o,!1)}const Fi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Hd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qd(e,t,n,r){_i(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Fi.has(s)?s:or(s),t.attrs[s])}function Zd(e,t,n){const r=Li(e,t,n);for(const s in e)if(ce(e[s])||ce(t[s])){const i=et.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Jd extends Ri{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ur}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const r=Ti(n);return r&&r.default||0}return n=Fi.has(n)?n:or(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zd(t,n,r)}build(t,n,r){Xd(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){qd(t,n,r,s)}mount(t){this.isSVGTag=Hd(t.tagName),super.mount(t)}}function Qd(e,t,n){const r=ce(e)?e:nt(e);return r.start(gi("",r,t,n)),r.animation}function fr(e){return typeof e=="object"&&!Array.isArray(e)}function Ni(e,t,n,r){return e==null?[]:typeof e=="string"&&fr(t)?vd(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function ef(e,t,n){return e*(t+1)+n*t}function zi(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function tf(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Mn(e,s),r--)}}function nf(e,t,n,r,s,i){tf(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Qe(s,i,r[o]),easing:Cs(n,o)})}function rf(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function sf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const of="easeInOut",af=20;function lf(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let h=0;h<e.length;h++){const y=e[h];if(typeof y=="string"){c.set(y,d);continue}else if(!Array.isArray(y)){c.set(y.name,zi(d,y.at,u,c));continue}let[m,b,v={}]=y;v.at!==void 0&&(d=zi(d,v.at,u,c));let x=0;const C=(T,A,R,I=0,g=0)=>{const V=cf(T),{delay:M=0,times:_=Xs(V),type:z=t.type||"keyframes",repeat:ie,repeatType:oe,repeatDelay:ae=0,...Y}=A;let{ease:Q=t.ease||"easeOut",duration:ue}=A;const st=typeof M=="function"?M(I,g):M,$=V.length,Ot=rr(z)?z:s==null?void 0:s[z||"keyframes"];if($<=2&&Ot){let K=100;if($===2&&ff(V)){const _e=V[1]-V[0];K=Math.abs(_e)}const G={...t,...Y};ue!==void 0&&(G.duration=he(ue));const Ae=Gs(G,K,Ot);Q=Ae.ease,ue=Ae.duration}ue??(ue=i);const _t=d+st;_.length===1&&_[0]===0&&(_[1]=1);const Dt=_.length-V.length;if(Dt>0&&Ys(_,Dt),V.length===1&&V.unshift(null),ie&&ie<af){const K=ue>0?ae/ue:0;ue=ef(ue,ie,ae);const G=[...V],Ae=[..._];Q=Array.isArray(Q)?[...Q]:[Q];const _e=[...Q],X=oe==="reverse"||oe==="mirror";let Lt=G,Ke=_e;X&&(Lt=[...G].reverse(),oe==="reverse"&&(Ke=[..._e].reverse().map(fe=>typeof fe=="function"?En(fe):fe)));for(let fe=0;fe<ie;fe++){const ot=X&&fe%2===0,Ge=ot?Lt:G,Yh=ot?Ke:_e,xo=(fe+1)*(1+K);K>0&&(V.push(V[V.length-1]),_.push(xo),Q.push("linear")),V.push(...Ge);for(let Ft=0;Ft<Ge.length;Ft++)_.push(Ae[Ft]+xo),Q.push(Ft===0?"linear":Cs(Yh,Ft-1))}rf(_,ie,K)}const it=_t+ue;nf(R,V,Q,_,_t,it),x=Math.max(st+ue,x),f=Math.max(it,f)};if(ce(m)){const T=Bi(m,a);C(b,v,ji("default",T))}else{const T=Ni(m,b,r,l),A=T.length;for(let R=0;R<A;R++){b=b,v=v;const I=T[R],g=Bi(I,a);for(const V in b)C(b[V],uf(v,V),ji(V,g),R,A)}}u=d,d+=x}return a.forEach((h,y)=>{for(const m in h){const b=h[m];b.sort(sf);const v=[],x=[],C=[];for(let I=0;I<b.length;I++){const{at:g,value:V,easing:M}=b[I];v.push(V),x.push(Pn(0,f,g)),C.push(M||"easeOut")}x[0]!==0&&(x.unshift(0),v.unshift(v[0]),C.unshift(of)),x[x.length-1]!==1&&(x.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const T=o.get(y);T.keyframes[m]=v;const{type:A,...R}=t;T.transition[m]={...R,duration:f,ease:C,times:x,...n}}}),o}function Bi(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ji(e,t){return t[e]||(t[e]=[]),t[e]}function cf(e){return Array.isArray(e)?e:[e]}function uf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const df=e=>typeof e=="number",ff=e=>e.every(df);function hf(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ci(e)&&!wd(e)?new Jd(t):new Bd(t);n.mount(e),At.set(e,n)}function mf(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kd(t);n.mount(e),At.set(e,n)}function gf(e,t){return ce(e)||typeof e=="number"||typeof e=="string"&&!fr(t)}function Ki(e,t,n,r){const s=[];if(gf(e,t))s.push(Qd(e,fr(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=Ni(e,t,r),o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l instanceof Element?hf:mf;At.has(l)||c(l);const u=At.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...ad(u,{...t,transition:d},{}))}}return s}function pf(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=nt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return lf(s,t,n,{spring:kt}).forEach(({keyframes:o,transition:a},l)=>{r.push(...Ki(l,o,a))}),r}function bf(e){return Array.isArray(e)&&e.some(Array.isArray)}function yf(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),bf(i)){const{onComplete:f,...h}=o||{};typeof f=="function"&&(c=f),l=pf(i,{...u,...h},t)}else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(c=f),l=Ki(i,o,{...u,...h},t)}const d=new Nu(l);return c&&d.finished.then(c),t&&(t.animations.push(d),d.finished.then(()=>{Mn(t.animations,d)})),d}return s}const Gi=yf(),vf="a4ui-effects";function xf(){try{return window.localStorage}catch{return null}}function wf(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=xf())==null?void 0:t.getItem(vf);return e===null?!0:e==="1"}function kf(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const Wi=wf();kf(Wi);const[Sf]=J(Wi);function Tf(){return!Sf()}const Af="(prefers-reduced-motion: reduce)";function Cf(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Af).matches}const Mf="a4ui-motion-forced";function Vf(){try{return window.localStorage}catch{return null}}const[Ui]=J(((vo=Vf())==null?void 0:vo.getItem(Mf))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",ne(Ui));function Mt(){return Tf()||Cf()&&!Ui()}function $f(e,t=600){const[n,r]=J(0);let s;return Me(()=>{const i=e();if(s==null||s.stop(),Mt()){r(i);return}const o=ne(n);o!==i&&(s=Gi(o,i,{duration:t/1e3,ease:"easeOut",onUpdate:a=>r(a)}))}),me(()=>s==null?void 0:s.stop()),n}function Pf(e,t={}){Mt()||Gi(e,{opacity:[0,1],y:[t.y??8,0]},{duration:t.duration??.32,delay:t.delay??0,ease:"easeOut"})}function Ef(e,t,n={}){if(Mt())return;const r=e.getBoundingClientRect(),s=t.clientX-r.left,i=t.clientY-r.top,o=2*Math.max(Math.hypot(s,i),Math.hypot(r.width-s,i),Math.hypot(s,r.height-i),Math.hypot(r.width-s,r.height-i)),a=document.createElement("span");a.setAttribute("aria-hidden","true"),Object.assign(a.style,{position:"absolute",left:`${s}px`,top:`${i}px`,width:`${o}px`,height:`${o}px`,borderRadius:"9999px",background:n.color??"currentColor",pointerEvents:"none",transform:"translate(-50%,-50%) scale(0)"}),e.appendChild(a);const l=a.animate([{transform:"translate(-50%,-50%) scale(0)",opacity:String(n.opacity??.3)},{transform:"translate(-50%,-50%) scale(1)",opacity:"0"}],{duration:600,easing:"ease-out"}),c=()=>a.remove();l.finished.then(c).catch(c)}mt(["pointerdown"]);var If=D("<a>"),Rf=D("<button>");const Of={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},_f="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Df(e){const[t,n]=le(e,["variant","class","type","children","ripple","onPointerDown","href","target","rel"]),r=()=>B(_f,Of[t.variant??"primary"],t.ripple&&"relative overflow-hidden",t.class),s=i=>{t.ripple&&Ef(i.currentTarget,i,{opacity:.35});const o=t.onPointerDown;typeof o=="function"?o(i):o&&o[0](o[1],i)};return p(q,{get when(){return t.href!==void 0},get fallback(){return(()=>{var i=Rf();return i.$$pointerdown=s,De(i,L({get type(){return t.type??"button"},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i})()},get children(){var i=If();return i.$$pointerdown=s,De(i,L({get href(){return t.href},get target(){return t.target},get rel(){return t.rel},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i}})}mt(["pointerdown"]);var Lf=D('<span class="text-base font-normal text-muted-foreground">'),Ff=D('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Nf=D("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),zf=D('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),Bf=D("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const Vt=e=>String(e).padStart(2,"0");function jf(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=s=>{var i;return Number(((i=n.find(o=>o.type===s))==null?void 0:i.value)??0)};return{hours:r("hour")%24,minutes:r("minute"),seconds:r("second")}}function Kf(e){const t=()=>{const{hours:n,minutes:r,seconds:s}=e.parts;let i=n,o="";return e.hour12&&(o=i>=12?"PM":"AM",i=i%12,i===0&&(i=12)),{time:e.seconds?`${Vt(i)}:${Vt(r)}:${Vt(s)}`:`${Vt(i)}:${Vt(r)}`,suffix:o}};return(()=>{var n=Ff(),r=n.firstChild,s=r.firstChild;return P(s,()=>t().time),P(r,p(q,{get when(){return e.hour12},get children(){var i=Lf();return P(i,()=>t().suffix),i}}),null),N(()=>be(n,B("flex flex-col items-center justify-center",e.class))),n})()}function Gf(e){const t=()=>e.size,n=()=>t()/2,r=()=>t()/2,s=()=>t()/2,i=()=>e.parts.hours%12*30+e.parts.minutes*.5,o=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=s()*u;return`${n()},${r()} ${n()},${r()-d}`};return(()=>{var u=zf(),d=u.firstChild,f=d.nextSibling,h=f.nextSibling,y=h.nextSibling;return P(u,p(ht,{each:l,children:m=>{const b=m*30,v=s()-4,x=s()-(m%3===0?14:9),C=n()+v*Math.sin(b*Math.PI/180),T=r()-v*Math.cos(b*Math.PI/180),A=n()+x*Math.sin(b*Math.PI/180),R=r()-x*Math.cos(b*Math.PI/180);return(()=>{var I=Bf();return E(I,"x1",C),E(I,"y1",T),E(I,"x2",A),E(I,"y2",R),E(I,"stroke-width",m%3===0?2:1),I})()}}),f),P(u,p(q,{get when(){return e.seconds},get children(){var m=Nf();return N(b=>{var v=c(.75),x=`rotate(${a()}deg)`;return v!==b.e&&E(m,"points",b.e=v),x!==b.t&&Ve(m,"transform",b.t=x),b},{e:void 0,t:void 0}),m}}),y),N(m=>{var b=t(),v=t(),x=`0 0 ${t()} ${t()}`,C=B("inline-block",e.class),T=n(),A=r(),R=s()-2,I=c(.45),g=`rotate(${i()}deg)`,V=c(.65),M=`rotate(${o()}deg)`,_=n(),z=r();return b!==m.e&&E(u,"width",m.e=b),v!==m.t&&E(u,"height",m.t=v),x!==m.a&&E(u,"viewBox",m.a=x),C!==m.o&&E(u,"class",m.o=C),T!==m.i&&E(d,"cx",m.i=T),A!==m.n&&E(d,"cy",m.n=A),R!==m.s&&E(d,"r",m.s=R),I!==m.h&&E(f,"points",m.h=I),g!==m.r&&Ve(f,"transform",m.r=g),V!==m.d&&E(h,"points",m.d=V),M!==m.l&&Ve(h,"transform",m.l=M),_!==m.u&&E(y,"cx",m.u=_),z!==m.c&&E(y,"cy",m.c=z),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0}),u})()}function Wf(e){const[t,n]=J(new Date);at(()=>{const l=setInterval(()=>n(new Date),1e3);me(()=>clearInterval(l))});const r=()=>e.variant??"digital",s=()=>e.seconds??!0,i=()=>e.hour12??!1,o=()=>e.size??160,a=()=>jf(t(),e.timeZone);return p(q,{get when(){return r()==="analog"},get fallback(){return p(Kf,{get parts(){return a()},get seconds(){return s()},get hour12(){return i()},get class(){return e.class}})},get children(){return p(Gf,{get parts(){return a()},get seconds(){return s()},get size(){return o()},get class(){return e.class}})}})}var Uf=D('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),Yf=D('<span class="block h-[1em] text-center leading-none">'),Xf=D('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),Hf=D("<div>"),qf=D('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const hr=1e3,mr=60*hr,gr=60*mr,Yi=24*gr,Zf=[0,1,2,3,4,5,6,7,8,9],pr=e=>String(e).padStart(2,"0");function Jf(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var n=Uf(),r=n.firstChild;return P(r,p(bn,{each:Zf,children:s=>(()=>{var i=Yf();return P(i,s),i})()})),N(s=>Ve(r,"transform",`translateY(${t()*-10}%)`)),n})()}function Qf(e){const t=()=>e.value.split("");return(()=>{var n=Xf();return P(n,p(bn,{get each(){return t()},children:r=>p(Jf,{get char(){return r()}})})),n})()}function eh(e){const t=te(()=>e.to.getTime()),n=()=>Math.max(0,t()-Date.now()),[r,s]=J(n());let i=!1;const o=f=>{var h;f<=0&&!i&&(i=!0,(h=e.onComplete)==null||h.call(e))};o(r()),at(()=>{const f=setInterval(()=>{const h=n();s(h),o(h)},hr);me(()=>clearInterval(f))});const a=()=>Math.floor(r()/Yi),l=()=>Math.floor(r()%Yi/gr),c=()=>Math.floor(r()%gr/mr),u=()=>Math.floor(r()%mr/hr),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:pr(l())},{label:"Mins",value:pr(c())},{label:"Secs",value:pr(u())}];return(()=>{var f=Hf();return P(f,p(bn,{get each(){return d()},children:h=>(()=>{var y=qf(),m=y.firstChild;return P(y,p(Qf,{get value(){return h().value}}),m),P(m,()=>h().label),y})()})),N(()=>be(f,B("flex gap-4",e.class))),f})()}var th=D("<kbd>");const nh="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function rh(e){return(()=>{var t=th();return P(t,()=>e.children),N(()=>be(t,B(nh,e.class))),t})()}function sh(e){return(...t)=>{for(const n of e)n&&n(...t)}}const ih=e=>typeof e=="function"&&!e.length?e():e,oh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Xi(e){const t={};let n;for(;n=oh.exec(e);)t[n[1]]=n[2];return t}function Hi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Xi(e)}else typeof t=="string"&&(t=Xi(t));return{...e,...t}}function ah(...e){return sh(e)}function lh(e){return Object.prototype.toString.call(e)==="[object String]"}function qi(e){return t=>`${e()}-${t}`}function Zi(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function $t(e,t){return L(e,t)}var Pt=new Map,Ji=new Set;function Qi(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Pt.get(n.target);r||(r=new Set,Pt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Pt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Pt.delete(n.target)),Pt.size===0)){for(const s of Ji)s();Ji.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qi():document.addEventListener("DOMContentLoaded",Qi));let br=new Map,yr=!1;try{yr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ln=!1;try{ln=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eo={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ch{constructor(t,n={}){this.numberFormatter=uh(t,n),this.options=n}format(t){var r;let n="";if(!yr&&this.options.signDisplay!=null?n=dh(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ln){let{unit:s,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!s)return n;let a=(r=eo[s])==null?void 0:r[i];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yr&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ln&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function uh(e,t={}){var i;let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ln){let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!((i=eo[o])!=null&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(br.has(r))return br.get(r);let s=new Intl.NumberFormat(e,t);return br.set(r,s),s}function dh(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),i=e.format(n),o=s.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}var fh=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mh(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return fh.has(n)}const t=e.split("-")[0];return hh.has(t)}function gh(e){return mh(e)?"rtl":"ltr"}function to(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gh(e)}}var vr=to(),Et=new Set;function no(){vr=to();for(const e of Et)e(vr)}function ph(){const[e,t]=J(vr),n=te(()=>e());return at(()=>{Et.size===0&&window.addEventListener("languagechange",no),Et.add(t),me(()=>{Et.delete(t),Et.size===0&&window.removeEventListener("languagechange",no)})}),{locale:()=>n().locale,direction:()=>n().direction}}var bh=lt();function yh(){const e=ph();return ct(bh)||e}function ro(e){const{locale:t}=yh();return te(()=>new ch(t(),ih(e)))}function so(e){return t=>(e(t),()=>e(void 0))}var io=lt();function cn(){const e=ct(io);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function vh(e){const t=cn(),[n,r]=le(e,["style"]);return p(ve,L({as:"div",get style(){return Hi({"--kb-meter-fill-width":t.meterFillWidth()},n.style)}},()=>t.dataset(),r))}function xh(e){const t=cn(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(ve,L({as:"span",get id(){return r.id}},()=>t.dataset(),s))}function wh(e){const t=`meter-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[r,s]=le(n,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=te(()=>({})),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,meterFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(io.Provider,{value:h,get children(){return p(ve,L({as:"div",get role(){return r.role||"meter"},get"aria-valuenow"(){return yn(()=>!!r.indeterminate)()?void 0:l()},get"aria-valuemin"(){return r.minValue},get"aria-valuemax"(){return r.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return i()}},f,s))}})}function kh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e))}function Sh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var we=Object.assign(wh,{Fill:vh,Label:xh,Track:kh,ValueLabel:Sh}),Th=D('<div class="flex items-center justify-between text-sm text-foreground">');function Ah(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(we,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Th();return P(n,p(we.Label,{get children(){return e.label}}),null),P(n,p(we.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(we.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(we.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Ch={};qt(Ch,{Fill:()=>ao,Label:()=>lo,Progress:()=>rt,Root:()=>co,Track:()=>uo,ValueLabel:()=>fo,useProgressContext:()=>It});var oo=lt();function It(){const e=ct(oo);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function ao(e){const t=It(),[n,r]=le(e,["style"]);return p(we.Fill,L({get style(){return Hi({"--kb-progress-fill-width":t.progressFillWidth()},n.style)}},()=>t.dataset(),r))}function lo(e){const t=It(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(we.Label,L({get id(){return r.id}},()=>t.dataset(),s))}function co(e){const t=`progress-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100},e),[r,s]=le(n,["value","minValue","maxValue","indeterminate","getValueLabel"]),[i,o]=J(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>r.indeterminate?void 0:`${c()*100}%`,f=te(()=>{let y;return r.indeterminate||(y=c()===1?"complete":"loading"),{"data-progress":y,"data-indeterminate":r.indeterminate?"":void 0}}),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,progressFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(oo.Provider,{value:h,get children(){return p(we,L({role:"progressbar",get indeterminate(){return r.indeterminate||!1}},f,n))}})}function uo(e){const t=It();return p(we.Track,L(()=>t.dataset(),e))}function fo(e){const t=It();return p(we.ValueLabel,L(()=>t.dataset(),e))}var rt=Object.assign(co,{Fill:ao,Label:lo,Track:uo,ValueLabel:fo}),Mh=D('<div class="flex items-center justify-between text-sm text-foreground">');function Vh(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(rt,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Mh();return P(n,p(rt.Label,{get children(){return e.label}}),null),P(n,p(rt.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(rt.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(rt.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var $h=D("<div role=radiogroup>"),Ph=D("<div role=img>"),Eh=D('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function Ih(e){const[t,n]=J(0),r=()=>e.max??5,s=()=>Array.from({length:r()},(l,c)=>c+1),i=()=>t()>0?t():e.value,o=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>B("h-5 w-5 transition-colors",l<=i()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return p(q,{get when(){return!e.readonly},get fallback(){return(()=>{var l=Ph();return P(l,p(ht,{get each(){return s()},children:c=>p(ls,{get class(){return a(c)},"aria-hidden":"true"})})),N(c=>{var u=B("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${r()}`;return u!==c.e&&be(l,c.e=u),d!==c.t&&E(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=$h();return l.addEventListener("mouseleave",()=>n(0)),P(l,p(ht,{get each(){return s()},children:c=>(()=>{var u=Eh();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o(Math.min(e.value+1,r()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o(Math.max(e.value-1,0)))},u.$$click=()=>o(c),u.addEventListener("blur",()=>n(0)),u.addEventListener("focus",()=>n(c)),u.addEventListener("mouseenter",()=>n(c)),P(u,p(ls,{get class(){return a(c)},"aria-hidden":"true"})),N(d=>{var f=e.value===c,h=`Rate ${c} of ${r()}`;return f!==d.e&&E(u,"aria-checked",d.e=f),h!==d.t&&E(u,"aria-label",d.t=h),d},{e:void 0,t:void 0}),u})()})),N(()=>be(l,B("inline-flex items-center gap-1",e.class))),l}})}mt(["click","keydown"]);var Rh=D('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Oh(e){const t=()=>e.size??96,n=()=>e.thickness??8,r=()=>Math.min(100,Math.max(0,e.value)),s=()=>(t()-n())/2,i=()=>2*Math.PI*s(),o=()=>i()*(1-r()/100);return(()=>{var a=Rh(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return P(d,p(q,{get when(){return e.label},get fallback(){return`${Math.round(r())}%`},get children(){return e.label}})),N(f=>{var h=r(),y=B("relative inline-flex items-center justify-center",e.class),m=`${t()}px`,b=`${t()}px`,v=t(),x=t(),C=`0 0 ${t()} ${t()}`,T=t()/2,A=t()/2,R=s(),I=n(),g=t()/2,V=t()/2,M=s(),_=n(),z=String(i()),ie=String(o());return h!==f.e&&E(a,"aria-valuenow",f.e=h),y!==f.t&&be(a,f.t=y),m!==f.a&&Ve(a,"width",f.a=m),b!==f.o&&Ve(a,"height",f.o=b),v!==f.i&&E(l,"width",f.i=v),x!==f.n&&E(l,"height",f.n=x),C!==f.s&&E(l,"viewBox",f.s=C),T!==f.h&&E(c,"cx",f.h=T),A!==f.r&&E(c,"cy",f.r=A),R!==f.d&&E(c,"r",f.d=R),I!==f.l&&E(c,"stroke-width",f.l=I),g!==f.u&&E(u,"cx",f.u=g),V!==f.c&&E(u,"cy",f.c=V),M!==f.w&&E(u,"r",f.w=M),_!==f.m&&E(u,"stroke-width",f.m=_),z!==f.f&&E(u,"stroke-dasharray",f.f=z),ie!==f.y&&E(u,"stroke-dashoffset",f.y=ie),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0}),a})()}function _h(e,t){const[n,r]=J(ho(t==null?void 0:t()));return Me(()=>{var s;r(((s=e())==null?void 0:s.tagName.toLowerCase())||ho(t==null?void 0:t()))}),n}function ho(e){return lh(e)?e:void 0}var Dh={};qt(Dh,{Root:()=>mo,Separator:()=>go});function mo(e){let t;const n=$t({orientation:"horizontal"},e),[r,s]=le(n,["ref","orientation"]),i=_h(()=>t,()=>"hr");return p(ve,L({as:"hr",ref(o){var a=ah(l=>t=l,r.ref);typeof a=="function"&&a(o)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},s))}var go=mo;function Lh(e){const t=()=>e.orientation??"horizontal";return p(go,{get orientation(){return t()},get class(){return B("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var Fh=D('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Nh(e){return(()=>{var t=Fh();return N(n=>{var r=B("h-5 w-5 animate-spin text-muted-foreground",e.class),s=e.label??"Loading";return r!==n.e&&E(t,"class",n.e=r),s!==n.t&&E(t,"aria-label",n.t=s),n},{e:void 0,t:void 0}),t})()}function zh(e,t={}){if(Mt())return()=>{};const n=document.createElement("span");n.setAttribute("aria-hidden","true"),n.className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300",e.appendChild(n);const r=t.size??180,s=t.color??"hsl(var(--primary))",i=(c,u)=>{n.style.background=`radial-gradient(${r}px circle at ${c}px ${u}px, color-mix(in srgb, ${s} 30%, transparent), transparent 70%)`},o=c=>{const u=e.getBoundingClientRect();i(c.clientX-u.left,c.clientY-u.top)},a=()=>{n.style.opacity="1"},l=()=>{n.style.opacity="0"};return e.addEventListener("pointermove",o),e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointermove",o),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",l),n.remove()}}function Bh(e,t,n={}){if(Mt())return()=>{};t.style.willChange="transform";const r=i=>{const o=e.getBoundingClientRect(),a=(i.clientX-o.left)/o.width-.5,l=(i.clientY-o.top)/o.height-.5,c=n.max??10;t.style.transition="transform 0.15s ease-out",t.style.transform=`perspective(800px) rotateX(${(l*-2*c).toFixed(2)}deg) rotateY(${(a*2*c).toFixed(2)}deg) scale(1.02)`},s=()=>{t.style.transition="transform 0.4s ease",t.style.transform="perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)"};return e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),t.style.transform="",t.style.transition="",t.style.willChange=""}}var po=D("<div>");function jh(e){const[t,n]=le(e,["class","children","glass","glow","tilt","spotlight"]),r=()=>(t.glow??t.glass)===!0;let s;return at(()=>{const i=[t.tilt&&s?Bh(s,s):null,t.spotlight&&s?zh(s):null].filter(o=>o!==null);me(()=>i.forEach(o=>o()))}),(()=>{var i=po(),o=s;return typeof o=="function"?vn(o,i):s=i,De(i,L({get class(){return B(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",r()&&"glow-edge",t.spotlight&&"relative overflow-hidden",t.tilt&&"will-change-transform",t.class)}},n),!1,!0),P(i,()=>t.children),i})()}function Kh(e){const[t,n]=le(e,["class","children"]);return(()=>{var r=po();return De(r,L({get class(){return B("p-6 pt-0",t.class)}},n),!1,!0),P(r,()=>t.children),r})()}var bo=D("<div>"),Gh=D('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const Wh={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function Uh(e){const t=$f(()=>e.value),n=()=>(e.format??(s=>String(Math.round(s))))(t());let r;return at(()=>{r&&Pf(r,{delay:e.delay??0})}),(()=>{var s=bo(),i=r;return typeof i=="function"?vn(i,s):r=s,P(s,p(jh,{glass:!0,glow:!0,get class(){return e.class},get children(){return p(Kh,{class:"flex items-center gap-4 p-5",get children(){return[p(q,{get when(){return e.icon},get children(){var o=bo();return P(o,()=>e.icon),N(()=>be(o,B("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",Wh[e.tone??"neutral"]))),o}}),(()=>{var o=Gh(),a=o.firstChild,l=a.nextSibling;return P(a,()=>e.label),P(l,n),o})()]}})}})),s})()}function Rt(e){return(e.textContent??"").trim()}function yo(){se("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{re();const n=e.label||Rt(t);return p(Df,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:n})}),se("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(re(),p(uc,{get tone(){return e.tone},get children(){return e.label||Rt(t)}}))),se("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(re(),p(ql,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||Rt(t)}}))),se("a4-spinner",{label:"Loading"},e=>(re(),p(Nh,{get label(){return e.label}}))),se("a4-avatar",{src:"",alt:"",fallback:""},e=>(re(),p(ic,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),se("a4-progress",{value:0,max:100,label:""},e=>(re(),p(Vh,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-meter",{value:0,max:100,label:""},e=>(re(),p(Ah,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),se("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(re(),p(Oh,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),se("a4-stat",{label:"",value:0,tone:"neutral"},e=>(re(),p(Uh,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),se("a4-kbd",{label:""},(e,{element:t})=>(re(),p(rh,{get children(){return e.label||Rt(t)}}))),se("a4-condition-scale",{value:0,min:1,max:10,showvalue:!0},e=>(re(),p(hl,{get value(){return e.value},get min(){return e.min},get max(){return e.max},get showValue(){return e.showvalue}}))),se("a4-announcement-bar",{tone:"primary",dismissible:!1,coupon:"",href:"",label:""},(e,{element:t})=>(re(),p(rc,{get tone(){return e.tone},get dismissible(){return e.dismissible},get couponCode(){return e.coupon||void 0},get href(){return e.href||void 0},get children(){return e.label||Rt(t)}}))),se("a4-separator",{orientation:"horizontal"},e=>(re(),p(Lh,{get orientation(){return e.orientation}}))),se("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(re(),p(Ih,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:n=>t.dispatchEvent(new CustomEvent("change",{detail:n}))}))),se("a4-countdown",{to:""},e=>{re();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return p(eh,{to:t})}),se("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(re(),p(Wf,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return yo(),un.defineA4uiElements=yo,Object.defineProperty(un,Symbol.toStringTag,{value:"Module"}),un})({});
6
+ */var pl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},Ye=pl,bl=lt({size:24,color:"currentColor",strokeWidth:2,absoluteStrokeWidth:!1,class:""}),yl=D("<svg>"),vl=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},xl=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),wl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),as=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),kl=e=>{const t=wl(e);return t.charAt(0).toUpperCase()+t.slice(1)},Sl=e=>{const[t,n]=le(e,["color","size","strokeWidth","children","class","name","iconNode","absoluteStrokeWidth"]),r=ct(bl);return(()=>{var s=yl();return De(s,L(Ye,{get width(){return t.size??r.size??Ye.width},get height(){return t.size??r.size??Ye.height},get stroke(){return t.color??r.color??Ye.stroke},get"stroke-width"(){return yn(()=>(t.absoluteStrokeWidth??r.absoluteStrokeWidth)===!0)()?Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])*24/Number(t.size??r.size):Number(t.strokeWidth??r.strokeWidth??Ye["stroke-width"])},get class(){return xl("lucide","lucide-icon",r.class,...t.name!=null?[`lucide-${as(kl(t.name))}`,`lucide-${as(t.name)}`]:[],t.class)},get"aria-hidden"(){return!t.children&&!vl(n)?"true":void 0}},n),!0,!0),P(s,p(ht,{get each(){return t.iconNode},children:([i,o])=>p(wn,L({component:i},o))})),s})()},Ee=Sl,Tl=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Al=e=>p(Ee,L(e,{iconNode:Tl,name:"check"})),Cl=Al,Ml=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Vl=e=>p(Ee,L(e,{iconNode:Ml,name:"circle-check"})),$l=Vl,Pl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],El=e=>p(Ee,L(e,{iconNode:Pl,name:"circle-x"})),Il=El,Rl=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Ol=e=>p(Ee,L(e,{iconNode:Rl,name:"copy"})),_l=Ol,Dl=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ll=e=>p(Ee,L(e,{iconNode:Dl,name:"info"})),Fl=Ll,Nl=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],zl=e=>p(Ee,L(e,{iconNode:Nl,name:"star"})),ls=zl,Bl=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],jl=e=>p(Ee,L(e,{iconNode:Bl,name:"triangle-alert"})),Kl=jl,Gl=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Wl=e=>p(Ee,L(e,{iconNode:Gl,name:"x"})),Ul=Wl,Yl=D("<p class=font-semibold>"),Xl=D("<div class=flex-1><div class=text-muted-foreground>");const Hl={info:{wrap:"border-sky-500/30 bg-sky-500/10",icon:"text-sky-500",Icon:Fl},success:{wrap:"border-emerald-500/30 bg-emerald-500/10",icon:"text-emerald-500",Icon:$l},warning:{wrap:"border-amber-500/30 bg-amber-500/10",icon:"text-amber-500",Icon:Kl},danger:{wrap:"border-rose-500/30 bg-rose-500/10",icon:"text-rose-500",Icon:Il}};function ql(e){const t=()=>Hl[e.tone??"info"];return p(os,{get class(){return B("flex gap-3 rounded-lg border p-3 text-sm text-foreground",t().wrap,e.class)},get children(){return[p(wn,{get component(){return t().Icon},get class(){return B("mt-0.5 h-4 w-4 shrink-0",t().icon)}}),(()=>{var n=Xl(),r=n.firstChild;return P(n,p(q,{get when(){return e.title},get children(){var s=Yl();return P(s,()=>e.title),s}}),r),P(r,()=>e.children),n})()]}})}var Zl=D('<a class="underline-offset-2 transition-colors hover:underline motion-reduce:transition-none">'),Jl=D('<button type=button aria-label="Dismiss announcement"class="absolute right-2 top-1/2 -translate-y-1/2 rounded-sm p-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">'),Ql=D("<div role=region aria-label=Announcement>"),ec=D("<span>"),tc=D('<span class="ml-2 inline-flex items-center gap-1 rounded-md bg-black/10 px-2 py-0.5 font-mono"><button type=button class="inline-flex items-center gap-1 transition-opacity hover:opacity-80 motion-reduce:transition-none">');const nc={primary:"bg-primary text-primary-foreground",accent:"bg-accent text-accent-foreground",neutral:"bg-muted text-foreground"};function rc(e){const[t,n]=Q(!1),[r,s]=Q(!1),i=async()=>{const a=e.couponCode;!a||!navigator.clipboard||(await navigator.clipboard.writeText(a),s(!0),setTimeout(()=>s(!1),1500))},o=()=>{var a;n(!0),(a=e.onDismiss)==null||a.call(e)};return p(q,{get when(){return!t()},get children(){var a=Ql();return P(a,p(q,{get when(){return e.href},get fallback(){return(()=>{var l=ec();return P(l,()=>e.children),l})()},get children(){var l=Zl();return P(l,()=>e.children),N(()=>E(l,"href",e.href)),l}}),null),P(a,p(q,{get when(){return e.couponCode},children:l=>(()=>{var c=tc(),u=c.firstChild;return P(c,l,u),u.$$click=i,P(u,p(q,{get when(){return r()},get fallback(){return p(_l,{class:"h-3 w-3"})},get children(){return[p(Cl,{class:"h-3 w-3"}),"Copied"]}})),N(()=>E(u,"aria-label",r()?"Coupon code copied":"Copy coupon code")),c})()}),null),P(a,p(q,{get when(){return e.dismissible},get children(){var l=Jl();return l.$$click=o,P(l,p(Ul,{class:"h-4 w-4"})),l}}),null),N(()=>be(a,B("relative w-full rounded-none px-4 py-2 text-center text-sm",nc[e.tone??"primary"],e.dismissible&&"pr-10",e.class))),a}})}mt(["click"]);var sc={};qt(sc,{Fallback:()=>us,Image:()=>Zt,Img:()=>ds,Root:()=>fs,useImageContext:()=>Cn});var cs=lt();function Cn(){const e=ct(cs);if(e===void 0)throw new Error("[kobalte]: `useImageContext` must be used within an `Image.Root` component");return e}function us(e){const t=Cn(),[n,r]=Q(t.fallbackDelay()===void 0);return Me(()=>{const s=t.fallbackDelay();if(s!==void 0){const i=window.setTimeout(()=>r(!0),s);me(()=>window.clearTimeout(i))}}),p(q,{get when(){return yn(()=>!!n())()&&t.imageLoadingStatus()!=="loaded"},get children(){return p(ve,L({as:"span"},e))}})}function ds(e){const t=Cn(),[n,r]=Q("idle");return Me(Ao(()=>e.src,s=>{if(!s){r("error");return}let i=!0;const o=new window.Image,a=l=>()=>{i&&r(l)};r("loading"),e.crossOrigin!==void 0&&(o.crossOrigin=e.crossOrigin),e.referrerPolicy!==void 0&&(o.referrerPolicy=e.referrerPolicy),o.onload=a("loaded"),o.onerror=a("error"),o.src=s,me(()=>{i=!1})})),Me(()=>{const s=n();s!=="idle"&&t.onImageLoadingStatusChange(s)}),p(q,{get when(){return n()==="loaded"},get children(){return p(ve,L({as:"img"},e))}})}function fs(e){const[t,n]=le(e,["fallbackDelay","onLoadingStatusChange"]),[r,s]=Q("idle"),i={fallbackDelay:()=>t.fallbackDelay,imageLoadingStatus:r,onImageLoadingStatusChange:o=>{var a;s(o),(a=t.onLoadingStatusChange)==null||a.call(t,o)}};return p(cs.Provider,{value:i,get children(){return p(ve,L({as:"span"},n))}})}var Zt=Object.assign(fs,{Fallback:us,Img:ds});function ic(e){return p(Zt,{get class(){return B("inline-flex h-9 w-9 shrink-0 overflow-hidden rounded-full bg-muted",e.class)},get children(){return[p(Zt.Img,{get src(){return e.src},get alt(){return e.alt},class:"h-full w-full object-cover"}),p(Zt.Fallback,{class:"grid h-full w-full place-items-center text-xs font-medium text-muted-foreground",get children(){return e.fallback}})]}})}var oc=D('<span class="relative flex h-1.5 w-1.5"aria-hidden=true><span class="absolute inline-flex h-full w-full animate-ping rounded-full bg-current opacity-75"></span><span class="relative inline-flex h-1.5 w-1.5 rounded-full bg-current">'),ac=D("<span>");const lc={neutral:"bg-muted text-muted-foreground ring-border",success:"bg-emerald-500/15 text-emerald-300 ring-emerald-500/30 light:text-emerald-700",warning:"bg-amber-500/15 text-amber-300 ring-amber-500/30 light:text-amber-700",danger:"bg-rose-500/15 text-rose-300 ring-rose-500/30 light:text-rose-700",info:"bg-sky-500/15 text-sky-300 ring-sky-500/30 light:text-sky-700"},cc="badge inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-semibold ring-1 ring-inset whitespace-nowrap";function uc(e){const[t,n]=le(e,["tone","class","children","pulse"]);return(()=>{var r=ac();return De(r,L({get class(){return B(cc,lc[t.tone??"neutral"],t.class)}},n),!1,!0),P(r,p(q,{get when(){return t.pulse},get children(){return oc()}}),null),P(r,()=>t.children,null),r})()}function dc(e,t){e.indexOf(t)===-1&&e.push(t)}function Mn(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ie=(e,t,n)=>n>t?t:n<e?e:n;let Vn=()=>{};const Re={},hs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fc=e=>typeof e=="object"&&e!==null,ms=e=>/^0[^.\s]+$/u.test(e);function gs(e){let t;return()=>(t===void 0&&(t=e()),t)}const Xe=e=>e,$n=(...e)=>e.reduce((t,n)=>r=>n(t(r))),Pn=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class ps{constructor(){this.subscriptions=[]}add(t){return dc(this.subscriptions,t),()=>Mn(this.subscriptions,t)}notify(t,n,r){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,r);else for(let i=0;i<s;i++){const o=this.subscriptions[i];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const he=e=>e*1e3,ge=e=>e/1e3,bs=(e,t)=>t?e*(1e3/t):0,hc=(e,t,n)=>{const r=t-e;return((n-e)%r+r)%r+e},ys=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,mc=1e-7,gc=12;function pc(e,t,n,r,s){let i,o,a=0;do o=t+(n-t)/2,i=ys(o,r,s)-e,i>0?n=o:t=o;while(Math.abs(i)>mc&&++a<gc);return o}function yt(e,t,n,r){if(e===t&&n===r)return Xe;const s=i=>pc(i,0,1,e,n);return i=>i===0||i===1?i:ys(s(i),t,r)}const vs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,En=e=>t=>1-e(1-t),xs=yt(.33,1.53,.69,.99),In=En(xs),ws=vs(In),ks=e=>e>=1?1:(e*=2)<1?.5*In(e):.5*(2-Math.pow(2,-10*(e-1))),Rn=e=>1-Math.sin(Math.acos(e)),bc=En(Rn),Ss=vs(Rn),yc=yt(.42,0,1,1),vc=yt(0,0,.58,1),Ts=yt(.42,0,.58,1),As=e=>Array.isArray(e)&&typeof e[0]!="number";function Cs(e,t){return As(e)?e[hc(0,e.length,t)]:e}const Ms=e=>Array.isArray(e)&&typeof e[0]=="number",xc={linear:Xe,easeIn:yc,easeInOut:Ts,easeOut:vc,circIn:Rn,circInOut:Ss,circOut:bc,backIn:In,backInOut:ws,backOut:xs,anticipate:ks},wc=e=>typeof e=="string",Vs=e=>{if(Ms(e)){Vn(e.length===4);const[t,n,r,s]=e;return yt(t,n,r,s)}else if(wc(e))return xc[e];return e},Jt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function kc(e){let t=new Set,n=new Set,r=!1,s=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(c){i.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,u=!1,d=!1)=>{const h=d&&r?t:n;return u&&i.add(c),h.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(o=c,r){s=!0;return}r=!0;const u=t;t=n,n=u,t.forEach(a),t.clear(),r=!1,s&&(s=!1,l.process(c))}};return l}const Sc=40;function $s(e,t){let n=!1,r=!0;const s={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Jt.reduce((C,T)=>(C[T]=kc(i),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:f,render:h,postRender:y}=o,m=()=>{const C=Re.useManualTiming,T=C?s.timestamp:performance.now();n=!1,C||(s.delta=r?1e3/60:Math.max(Math.min(T-s.timestamp,Sc),1)),s.timestamp=T,s.isProcessing=!0,a.process(s),l.process(s),c.process(s),u.process(s),d.process(s),f.process(s),h.process(s),y.process(s),s.isProcessing=!1,n&&t&&(r=!1,e(m))},b=()=>{n=!0,r=!0,s.isProcessing||e(m)};return{schedule:Jt.reduce((C,T)=>{const A=o[T];return C[T]=(R,I=!1,g=!1)=>(n||b(),A.schedule(R,I,g)),C},{}),cancel:C=>{for(let T=0;T<Jt.length;T++)o[Jt[T]].cancel(C)},state:s,steps:o}}const{schedule:xe,cancel:On,state:Qt}=$s(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xe,!0);let en;function Tc(){en=void 0}const de={now:()=>(en===void 0&&de.set(Qt.isProcessing||Re.useManualTiming?Qt.timestamp:performance.now()),en),set:e=>{en=e,queueMicrotask(Tc)}},Ps=e=>t=>typeof t=="string"&&t.startsWith(e),Es=Ps("--"),Ac=Ps("var(--"),_n=e=>Ac(e)?Cc.test(e.split("/*")[0].trim()):!1,Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Is(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const He={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vt={...He,transform:e=>Ie(0,1,e)},tn={...He,default:1},xt=e=>Math.round(e*1e5)/1e5,Dn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mc(e){return e==null}const Vc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ln=(e,t)=>n=>!!(typeof n=="string"&&Vc.test(n)&&n.startsWith(e)||t&&!Mc(n)&&Object.prototype.hasOwnProperty.call(n,t)),Rs=(e,t,n)=>r=>{if(typeof r!="string")return r;const[s,i,o,a]=r.match(Dn);return{[e]:parseFloat(s),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},$c=e=>Ie(0,255,e),Fn={...He,transform:e=>Math.round($c(e))},ze={test:Ln("rgb","red"),parse:Rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fn.transform(e)+", "+Fn.transform(t)+", "+Fn.transform(n)+", "+xt(vt.transform(r))+")"};function Pc(e){let t="",n="",r="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,r+=r,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:s?parseInt(s,16)/255:1}}const Nn={test:Ln("#"),parse:Pc,transform:ze.transform},wt=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Te=wt("deg"),qe=wt("%"),S=wt("px"),Ec=wt("vh"),Ic=wt("vw"),Os={...qe,parse:e=>qe.parse(e)/100,transform:e=>qe.transform(e*100)},Ze={test:Ln("hsl","hue"),parse:Rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qe.transform(xt(t))+", "+qe.transform(xt(n))+", "+xt(vt.transform(r))+")"},H={test:e=>ze.test(e)||Nn.test(e)||Ze.test(e),parse:e=>ze.test(e)?ze.parse(e):Ze.test(e)?Ze.parse(e):Nn.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ze.transform(e):Ze.transform(e),getAnimatableNone:e=>{const t=H.parse(e);return t.alpha=0,H.transform(t)}},Rc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Oc(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Dn))==null?void 0:t.length)||0)+(((n=e.match(Rc))==null?void 0:n.length)||0)>0}const _s="number",Ds="color",_c="var",Dc="var(",Ls="${}",Lc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Je(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},s=[];let i=0;const a=t.replace(Lc,l=>(H.test(l)?(r.color.push(i),s.push(Ds),n.push(H.parse(l))):l.startsWith(Dc)?(r.var.push(i),s.push(_c),n.push(l)):(r.number.push(i),s.push(_s),n.push(parseFloat(l))),++i,Ls)).split(Ls);return{values:n,split:a,indexes:r,types:s}}function Fc(e){return Je(e).values}function Fs({split:e,types:t}){const n=e.length;return r=>{let s="";for(let i=0;i<n;i++)if(s+=e[i],r[i]!==void 0){const o=t[i];o===_s?s+=xt(r[i]):o===Ds?s+=H.transform(r[i]):s+=r[i]}return s}}function Nc(e){return Fs(Je(e))}const zc=e=>typeof e=="number"?0:H.test(e)?H.getAnimatableNone(e):e,Bc=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:zc(e);function jc(e){const t=Je(e);return Fs(t)(t.values.map((r,s)=>Bc(r,t.split[s])))}const pe={test:Oc,parse:Fc,createTransformer:Nc,getAnimatableNone:jc};function zn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(t-e)*6*n:n<.5?t:n<.6666666666666666?e+(t-e)*(.6666666666666666-n)*6:e}function Kc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let s=0,i=0,o=0;if(!t)s=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=zn(l,a,e+.3333333333333333),i=zn(l,a,e),o=zn(l,a,e-.3333333333333333)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:r}}function nn(e,t){return n=>n>0?t:e}const Qe=(e,t,n)=>e+(t-e)*n,Bn=(e,t,n)=>{const r=e*e,s=n*(t*t-r)+r;return s<0?0:Math.sqrt(s)},Gc=[Nn,ze,Ze],Wc=e=>Gc.find(t=>t.test(e));function Ns(e){const t=Wc(e);if(!t)return!1;let n=t.parse(e);return t===Ze&&(n=Kc(n)),n}const zs=(e,t)=>{const n=Ns(e),r=Ns(t);if(!n||!r)return nn(e,t);const s={...n};return i=>(s.red=Bn(n.red,r.red,i),s.green=Bn(n.green,r.green,i),s.blue=Bn(n.blue,r.blue,i),s.alpha=Qe(n.alpha,r.alpha,i),ze.transform(s))},jn=new Set(["none","hidden"]);function Uc(e,t){return jn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Yc(e,t){return n=>Qe(e,t,n)}function Kn(e){return typeof e=="number"?Yc:typeof e=="string"?_n(e)?nn:H.test(e)?zs:qc:Array.isArray(e)?Bs:typeof e=="object"?H.test(e)?zs:Xc:nn}function Bs(e,t){const n=[...e],r=n.length,s=e.map((i,o)=>Kn(i)(i,t[o]));return i=>{for(let o=0;o<r;o++)n[o]=s[o](i);return n}}function Xc(e,t){const n={...e,...t},r={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(r[s]=Kn(e[s])(e[s],t[s]));return s=>{for(const i in r)n[i]=r[i](s);return n}}function Hc(e,t){const n=[],r={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const i=t.types[s],o=e.indexes[i][r[i]],a=e.values[o]??0;n[s]=a,r[i]++}return n}const qc=(e,t)=>{const n=pe.createTransformer(t),r=Je(e),s=Je(t);return r.indexes.var.length===s.indexes.var.length&&r.indexes.color.length===s.indexes.color.length&&r.indexes.number.length>=s.indexes.number.length?jn.has(e)&&!s.values.length||jn.has(t)&&!r.values.length?Uc(e,t):$n(Bs(Hc(r,s),s.values),n):nn(e,t)};function js(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Qe(e,t,n):Kn(e)(e,t)}const Zc=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xe.update(t,n),stop:()=>On(t),now:()=>Qt.isProcessing?Qt.timestamp:de.now()}},Ks=(e,t,n=10)=>{let r="";const s=Math.max(Math.round(t/n),2);for(let i=0;i<s;i++)r+=Math.round(e(i/(s-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rn=2e4;function Gn(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rn;)t+=n,r=e.next(t);return t>=rn?1/0:t}function Gs(e,t=100,n){const r=n({...e,keyframes:[0,t]}),s=Math.min(Gn(r),rn);return{type:"keyframes",ease:i=>r.next(s*i).value/t,duration:ge(s)}}const j={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Wn(e,t){return e*Math.sqrt(1-t*t)}const Jc=12;function Qc(e,t,n){let r=n;for(let s=1;s<Jc;s++)r=r-e(r)/t(r);return r}const Un=.001;function eu({duration:e=j.duration,bounce:t=j.bounce,velocity:n=j.velocity,mass:r=j.mass}){let s,i,o=1-t;o=Ie(j.minDamping,j.maxDamping,o),e=Ie(j.minDuration,j.maxDuration,ge(e)),o<1?(s=c=>{const u=c*o,d=u*e,f=u-n,h=Wn(c,o),y=Math.exp(-d);return Un-f/h*y},i=c=>{const d=c*o*e,f=d*n+n,h=Math.pow(o,2)*Math.pow(c,2)*e,y=Math.exp(-d),m=Wn(Math.pow(c,2),o);return(-s(c)+Un>0?-1:1)*((f-h)*y)/m}):(s=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-Un+u*d},i=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=Qc(s,i,a);if(e=he(e),isNaN(l))return{stiffness:j.stiffness,damping:j.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:o*2*Math.sqrt(r*c),duration:e}}}const tu=["duration","bounce"],nu=["stiffness","damping","mass"];function Ws(e,t){return t.some(n=>e[n]!==void 0)}function ru(e){let t={velocity:j.velocity,stiffness:j.stiffness,damping:j.damping,mass:j.mass,isResolvedFromDuration:!1,...e};if(!Ws(e,nu)&&Ws(e,tu))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),s=r*r,i=2*Ie(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:j.mass,stiffness:s,damping:i}}else{const n=eu({...e,velocity:0});t={...t,...n,mass:j.mass},t.isResolvedFromDuration=!0}return t}function kt(e=j.visualDuration,t=j.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:s}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:f,isResolvedFromDuration:h}=ru({...n,velocity:-ge(n.velocity||0)}),y=f||0,m=c/(2*Math.sqrt(l*u)),b=o-i,v=ge(Math.sqrt(l/u)),x=Math.abs(b)<5;r||(r=x?j.restSpeed.granular:j.restSpeed.default),s||(s=x?j.restDelta.granular:j.restDelta.default);let C,T,A,R,I,g;if(m<1)A=Wn(v,m),R=(y+m*v*b)/A,C=M=>{const _=Math.exp(-m*v*M);return o-_*(R*Math.sin(A*M)+b*Math.cos(A*M))},I=m*v*R+b*A,g=m*v*b-R*A,T=M=>Math.exp(-m*v*M)*(I*Math.sin(A*M)+g*Math.cos(A*M));else if(m===1){C=_=>o-Math.exp(-v*_)*(b+(y+v*b)*_);const M=y+v*b;T=_=>Math.exp(-v*_)*(v*M*_-y)}else{const M=v*Math.sqrt(m*m-1);C=J=>{const ae=Math.exp(-m*v*J),Y=Math.min(M*J,300);return o-ae*((y+m*v*b)*Math.sinh(Y)+M*b*Math.cosh(Y))/M};const _=(y+m*v*b)/M,z=m*v*_-b*M,oe=m*v*b-_*M;T=J=>{const ae=Math.exp(-m*v*J),Y=Math.min(M*J,300);return ae*(z*Math.sinh(Y)+oe*Math.cosh(Y))}}const V={calculatedDuration:h&&d||null,velocity:M=>he(T(M)),next:M=>{if(!h&&m<1){const z=Math.exp(-m*v*M),oe=Math.sin(A*M),J=Math.cos(A*M),ae=o-z*(R*oe+b*J),Y=he(z*(I*oe+g*J));return a.done=Math.abs(Y)<=r&&Math.abs(o-ae)<=s,a.value=a.done?o:ae,a}const _=C(M);if(h)a.done=M>=d;else{const z=he(T(M));a.done=Math.abs(z)<=r&&Math.abs(o-_)<=s}return a.value=a.done?o:_,a},toString:()=>{const M=Math.min(Gn(V),rn),_=Ks(z=>V.next(M*z).value,M,30);return M+"ms "+_},toTransition:()=>{}};return V}kt.applyToOptions=e=>{const t=Gs(e,100,kt);return e.ease=t.ease,e.duration=he(t.duration),e.type="keyframes",e};const su=5;function Us(e,t,n){const r=Math.max(t-su,0);return bs(n-e(r),t-r)}function Yn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:s=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},h=g=>a!==void 0&&g<a||l!==void 0&&g>l,y=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let m=n*t;const b=d+m,v=o===void 0?b:o(b);v!==b&&(m=v-d);const x=g=>-m*Math.exp(-g/r),C=g=>v+x(g),T=g=>{const V=x(g),M=C(g);f.done=Math.abs(V)<=c,f.value=f.done?v:M};let A,R;const I=g=>{h(f.value)&&(A=g,R=kt({keyframes:[f.value,y(f.value)],velocity:Us(C,g,f.value),damping:s,stiffness:i,restDelta:c,restSpeed:u}))};return I(0),{calculatedDuration:null,next:g=>{let V=!1;return!R&&A===void 0&&(V=!0,T(g),I(g)),A!==void 0&&g>=A?R.next(g-A):(!V&&T(g),f)}}}function iu(e,t,n){const r=[],s=n||Re.mix||js,i=e.length-1;for(let o=0;o<i;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Xe:t;a=$n(l,a)}r.push(a)}return r}function ou(e,t,{clamp:n=!0,ease:r,mixer:s}={}){const i=e.length;if(Vn(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iu(t,r,s),l=a.length,c=u=>{if(o&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=Pn(e[d],e[d+1],u);return a[d](f)};return n?u=>c(Ie(e[0],e[i-1],u)):c}function Ys(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const s=Pn(0,t,r);e.push(Qe(n,1,s))}}function Xs(e){const t=[0];return Ys(t,e.length-1),t}function au(e,t){return e.map(n=>n*t)}function lu(e,t){return e.map(()=>t||Ts).splice(0,e.length-1)}function St({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const s=As(r)?r.map(Vs):Vs(r),i={done:!1,value:t[0]},o=au(n&&n.length===t.length?n:Xs(t),e),a=ou(o,t,{ease:Array.isArray(s)?s:lu(t,s)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const cu=e=>e!==null;function sn(e,{repeat:t,repeatType:n="loop"},r,s=1){const i=e.filter(cu),a=s<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const uu={decay:Yn,inertia:Yn,tween:St,keyframes:St,spring:kt};function Hs(e){typeof e.type=="string"&&(e.type=uu[e.type])}class Xn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const du=e=>e/100;class on extends Xn{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,s;const{motionValue:n}=this.options;n&&n.updatedAt!==de.now()&&this.tick(de.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(r=this.options).onStop)==null||s.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Hs(t);const{type:n=St,repeat:r=0,repeatDelay:s=0,repeatType:i,velocity:o=0}=t;let{keyframes:a}=t;const l=n||St;l!==St&&typeof a[0]!="number"&&(this.mixKeyframes=$n(du,js(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Gn(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+s,this.totalDuration=this.resolvedDuration*(r+1)-s,this.generator=c}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:s,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:h,type:y,onUpdate:m,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let C=this.currentTime,T=r;if(d){const g=Math.min(this.currentTime,s)/a;let V=Math.floor(g),M=g%1;!M&&g>=1&&(M=1),M===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(f==="reverse"?(M=1-M,h&&(M-=h/a)):f==="mirror"&&(T=o)),C=Ie(0,1,M)*a}let A;x?(this.delayState.value=u[0],A=this.delayState):A=T.next(C),i&&!x&&(A.value=i(A.value));let{done:R}=A;!x&&l!==null&&(R=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return I&&y!==Yn&&(A.value=sn(u,this.options,b,this.speed)),m&&m(A.value),I&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return ge(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(this.currentTime)}set time(t){t=he(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return Us(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(de.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ge(this.currentTime))}play(){var s,i;if(this.isStopped)return;const{driver:t=Zc,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(i=(s=this.options).onPlay)==null||i.call(s);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(de.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function fu(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Be=e=>e*180/Math.PI,Hn=e=>{const t=Be(Math.atan2(e[1],e[0]));return qn(t)},hu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hn,rotateZ:Hn,skewX:e=>Be(Math.atan(e[1])),skewY:e=>Be(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},qn=e=>(e=e%360,e<0&&(e+=360),e),qs=Hn,Zs=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Js=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Zs,scaleY:Js,scale:e=>(Zs(e)+Js(e))/2,rotateX:e=>qn(Be(Math.atan2(e[6],e[5]))),rotateY:e=>qn(Be(Math.atan2(-e[2],e[0]))),rotateZ:qs,rotate:qs,skewX:e=>Be(Math.atan(e[4])),skewY:e=>Be(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zn(e){return e.includes("scale")?1:0}function Jn(e,t){if(!e||e==="none")return Zn(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,s;if(n)r=mu,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=hu,s=a}if(!s)return Zn(t);const i=r[t],o=s[1].split(",").map(pu);return typeof i=="function"?i(o):o[i]}const gu=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Jn(n,t)};function pu(e){return parseFloat(e.trim())}const et=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tt=new Set([...et,"pathRotation"]),Qs=e=>e===He||e===S,bu=new Set(["x","y","z"]),yu=et.filter(e=>!bu.has(e));function vu(e){const t=[];return yu.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Oe={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const s=e.max-e.min;return r==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Jn(t,"x"),y:(e,{transform:t})=>Jn(t,"y")};Oe.translateX=Oe.x,Oe.translateY=Oe.y;const je=new Set;let Qn=!1,er=!1,tr=!1;function ei(){if(er){const e=Array.from(je).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const s=vu(r);s.length&&(n.set(r,s),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const s=n.get(r);s&&s.forEach(([i,o])=>{var a;(a=r.getValue(i))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}er=!1,Qn=!1,je.forEach(e=>e.complete(tr)),je.clear()}function ti(){je.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(er=!0)})}function xu(){tr=!0,ti(),ei(),tr=!1}class nr{constructor(t,n,r,s,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=s,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(je.add(this),Qn||(Qn=!0,xe.read(ti),xe.resolveKeyframes(ei))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:s}=this;if(t[0]===null){const i=s==null?void 0:s.get(),o=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const a=r.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&i===void 0&&s.set(t[0])}fu(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),je.delete(this)}cancel(){this.state==="scheduled"&&(je.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const wu=e=>e.startsWith("--");function ni(e,t,n){wu(t)?e.style.setProperty(t,n):e.style[t]=n}const ku={};function ri(e,t){const n=gs(e);return()=>ku[t]??n()}const Su=ri(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),si=ri(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tt=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ii={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Tt([0,.65,.55,1]),circOut:Tt([.55,0,1,.45]),backIn:Tt([.31,.01,.66,-.59]),backOut:Tt([.33,1.53,.69,.99])};function oi(e,t){if(e)return typeof e=="function"?si()?Ks(e,t):"ease-out":Ms(e)?Tt(e):Array.isArray(e)?e.map(n=>oi(n,t)||ii.easeOut):ii[e]}function Tu(e,t,n,{delay:r=0,duration:s=300,repeat:i=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=oi(a,s);Array.isArray(d)&&(u.easing=d);const f={delay:r,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),e.animate(u,f)}function rr(e){return typeof e=="function"&&"applyToOptions"in e}function Au({type:e,...t}){return rr(e)&&si()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ai extends Xn{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:s,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,Vn(typeof t.type!="string");const c=Au(t);this.animation=Tu(n,r,s,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=sn(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),ni(n,r,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(r=this.animation).commitStyles)==null||s.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ge(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ge(t)}get time(){return ge(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=he(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:s}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Su()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Xe):s(this)}}const li={anticipate:ks,backInOut:ws,circInOut:Ss};function Cu(e){return e in li}function Mu(e){typeof e.ease=="string"&&Cu(e.ease)&&(e.ease=li[e.ease])}const sr=10;class Vu extends ai{constructor(t){Mu(t),Hs(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:s,element:i,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new on({...o,autoplay:!1}),l=Math.max(sr,de.now()-this.startTime),c=Ie(0,sr,l-sr),u=a.sample(l).value,{name:d}=this.options;i&&d&&ni(i,d,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const ci=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(pe.test(e)||e==="0")&&!e.startsWith("url("));function $u(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Pu(e,t,n,r){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=ci(s,t),a=ci(i,t);return!o||!a?!1:$u(e)||(n==="spring"||rr(n))&&r}function ir(e){e.duration=0,e.type="keyframes"}const ui=new Set(["opacity","clipPath","filter","transform"]),Eu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Iu(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Eu.test(e[t]))return!0;return!1}const Ru=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ou=gs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _u(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:s,damping:i,type:o,keyframes:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return Ou()&&n&&(ui.has(n)||Ru.has(n)&&Iu(a))&&(n!=="transform"||!u)&&!c&&!r&&s!=="mirror"&&i!==0&&o!=="inertia"}const Du=40;class Lu extends Xn{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){var y;super(),this.stop=()=>{var m,b;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=de.now();const f={autoplay:t,delay:n,type:r,repeat:s,repeatDelay:i,repeatType:o,name:l,motionValue:c,element:u,...d},h=(u==null?void 0:u.KeyframeResolver)||nr;this.keyframeResolver=new h(a,(m,b,v)=>this.onKeyframesResolved(m,b,f,!v),l,c,u),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,s){var v,x;this.keyframeResolver=void 0;const{name:i,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=r;this.resolvedAt=de.now();let d=!0;Pu(t,i,o,a)||(d=!1,(Re.instantAnimations||!l)&&(u==null||u(sn(t,r,n))),t[0]=t[t.length-1],ir(r),r.repeat=0);const h={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>Du?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},y=d&&!c&&_u(h),m=(x=(v=h.motionValue)==null?void 0:v.owner)==null?void 0:x.current;let b;if(y)try{b=new Vu({...h,element:m})}catch{b=new on(h)}else b=new on(h);b.finished.then(()=>{this.notifyFinished()}).catch(Xe),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),xu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class Fu{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t){const n=this.animations.map(r=>r.attachTimeline(t));return()=>{n.forEach((r,s)=>{r&&r(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return di(this.animations,"duration")}get iterationDuration(){return di(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function di(e,t){let n=0;for(let r=0;r<e.length;r++){const s=e[r][t];s!==null&&s>n&&(n=s)}return n}class Nu extends Fu{then(t,n){return this.finished.finally(t).then(()=>{})}}const fi=30,zu=e=>!isNaN(parseFloat(e));class Bu{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const s=de.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=de.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zu(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ps);const r=this.events[t].add(n);return t==="change"?()=>{r(),xe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=de.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>fi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,fi);return bs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nt(e,t){return new Bu(e,t)}function hi(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function mi(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?hi(n,e):n}const ju={type:"spring",stiffness:500,damping:25,restSpeed:10},Ku=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Gu={type:"keyframes",duration:.8},Wu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Uu=(e,{keyframes:t})=>t.length>2?Gu:tt.has(e)?e.startsWith("scale")?Ku(t[1]):ju:Wu,Yu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Xu(e){for(const t in e)if(!Yu.has(t))return!0;return!1}const gi=(e,t,n,r={},s,i)=>o=>{const a=mi(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c=c-he(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:s};Xu(a)||Object.assign(u,Uu(e,u)),u.duration&&(u.duration=he(u.duration)),u.repeatDelay&&(u.repeatDelay=he(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(ir(u),u.delay===0&&(d=!0)),(Re.instantAnimations||Re.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(d=!0,ir(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const f=sn(u.keyframes,a);if(f!==void 0){xe.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new on(u):new Lu(u)},Hu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qu(e){const t=Hu.exec(e);if(!t)return[,];const[,n,r,s]=t;return[`--${n??r}`,s]}function pi(e,t,n=1){const[r,s]=qu(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const o=i.trim();return hs(o)?parseFloat(o):o}return _n(s)?pi(s,t,n+1):s}function bi(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function yi(e,t,n,r){if(typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,i]=bi(r);t=t(n!==void 0?n:e.custom,s,i)}return t}function Zu(e,t,n){const r=e.getProps();return yi(r,t,r.custom,e)}const vi=new Set(["width","height","top","left","right","bottom",...et]),Ju=e=>Array.isArray(e);function Qu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,nt(n))}function ed(e){return Ju(e)?e[e.length-1]||0:e}function td(e,t){const n=Zu(e,t);let{transitionEnd:r={},transition:s={},...i}=n||{};i={...i,...r};for(const o in i){const a=ed(i[o]);Qu(e,o,a)}}const ce=e=>!!(e&&e.getVelocity);function nd(e){return!!(ce(e)&&e.add)}function rd(e,t){const n=e.getValue("willChange");if(nd(n))return n.add(t);if(!n&&Re.WillChange){const r=new Re.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function or(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const sd="data-"+or("framerAppearId");function id(e){return e.props[sd]}function od({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function ad(e,t,{delay:n=0,transitionOverride:r,type:s}={}){let{transition:i,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();i=i?hi(i,l):l;const c=i==null?void 0:i.reduceMotion,u=i==null?void 0:i.skipAnimations;r&&(i=r);const d=[],f=s&&e.animationState&&e.animationState.getState()[s],h=i==null?void 0:i.path;h&&h.animateVisualElement(e,a,i,n,d);for(const y in a){const m=e.getValue(y,e.latestValues[y]??null),b=a[y];if(b===void 0||f&&od(f,y))continue;const v={delay:n,...mi(i||{},y)};u&&(v.skipAnimations=!0);const x=m.get();if(x!==void 0&&!m.isAnimating()&&!Array.isArray(b)&&b===x&&!v.velocity){xe.update(()=>m.set(b));continue}let C=!1;if(window.MotionHandoffAnimation){const R=id(e);if(R){const I=window.MotionHandoffAnimation(R,y,xe);I!==null&&(v.startTime=I,C=!0)}}rd(e,y);const T=c??e.shouldReduceMotion;m.start(gi(y,m,b,T&&vi.has(y)?{type:!1}:v,e,C));const A=m.animation;A&&d.push(A)}if(o){const y=()=>xe.update(()=>{o&&td(e,o)});d.length?Promise.all(d).then(y):y()}return d}const ld={test:e=>e==="auto",parse:e=>e},xi=e=>t=>t.test(e),wi=[He,S,qe,Te,Ic,Ec,ld],ki=e=>wi.find(xi(e));function cd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ms(e):!0}const ud=new Set(["brightness","contrast","saturate","opacity"]);function dd(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Dn)||[];if(!r)return e;const s=n.replace(r,"");let i=ud.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+s+")"}const fd=/\b([a-z-]*)\(.*?\)/gu,ar={...pe,getAnimatableNone:e=>{const t=e.match(fd);return t?t.map(dd).join(" "):e}},lr={...pe,getAnimatableNone:e=>{const t=pe.parse(e);return pe.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},Si={...He,transform:Math.round},an={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...{rotate:Te,pathRotation:Te,rotateX:Te,rotateY:Te,rotateZ:Te,scale:tn,scaleX:tn,scaleY:tn,scaleZ:tn,skew:Te,skewX:Te,skewY:Te,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:vt,originX:Os,originY:Os,originZ:S},zIndex:Si,fillOpacity:vt,strokeOpacity:vt,numOctaves:Si},hd={...an,color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,filter:ar,WebkitFilter:ar,mask:lr,WebkitMask:lr},Ti=e=>hd[e],md=new Set([ar,lr]);function Ai(e,t){let n=Ti(e);return md.has(n)||(n=pe),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gd=new Set(["auto","none","0"]);function pd(e,t,n){let r=0,s;for(;r<e.length&&!s;){const i=e[r];typeof i=="string"&&!gd.has(i)&&Je(i).values.length&&(s=e[r]),r++}if(s&&n)for(const i of t)e[i]=Ai(n,s)}class bd extends nr{constructor(t,n,r,s,i){super(t,n,r,s,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let d=t[u];if(typeof d=="string"&&(d=d.trim(),_n(d))){const f=pi(d,n.current);f!==void 0&&(t[u]=f),u===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!vi.has(r)||t.length!==2)return;const[s,i]=t,o=ki(s),a=ki(i),l=Is(s),c=Is(i);if(l!==c&&Oe[r]){this.needsMeasurement=!0;return}if(o!==a)if(Qs(o)&&Qs(a))for(let u=0;u<t.length;u++){const d=t[u];typeof d=="string"&&(t[u]=parseFloat(d))}else Oe[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let s=0;s<t.length;s++)(t[s]===null||cd(t[s]))&&r.push(s);r.length&&pd(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Oe[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(r,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const i=r.length-1,o=r[i];r[i]=Oe[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const yd=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function vd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;t&&(r=t.current);const s=(n==null?void 0:n[e])??r.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(r=>r!=null)}const cr=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:xd}=$s(queueMicrotask,!1);function Ci(e){return fc(e)&&"ownerSVGElement"in e}function wd(e){return Ci(e)&&e.tagName==="svg"}const kd=[...wi,H,pe],Sd=e=>kd.find(xi(e)),Mi=()=>({min:0,max:0}),ur=()=>({x:Mi(),y:Mi()}),At=new WeakMap;function Td(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ad(e){return typeof e=="string"||Array.isArray(e)}const Cd=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Vi(e){return Td(e.animate)||Cd.some(t=>Ad(e[t]))}function Md(e){return!!(Vi(e)||e.variants)}function Vd(e,t,n){for(const r in t){const s=t[r],i=n[r];if(ce(s))e.addValue(r,s);else if(ce(i))e.addValue(r,nt(s,{owner:e}));else if(i!==s)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(r);e.addValue(r,nt(o!==void 0?o:s,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const dr={current:null},$i={current:!1},$d=typeof window<"u";function Pd(){if($i.current=!0,!!$d)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>dr.current=e.matches;e.addEventListener("change",t),t()}else dr.current=!1}const Pi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ei={};class Ii{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:s,skipAnimations:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=nr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=de.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,xe.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Vi(n),this.isVariantNode=Md(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const y=f[h];c[h]!==void 0&&ce(y)&&y.set(c[h])}}mount(t){var n,r;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,At.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,i)=>this.bindToMotionValue(i,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:($i.current||Pd(),this.shouldReduceMotion=dr.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),On(this.notifyUpdate),On(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&ui.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,d=new ai({element:this.current,name:t,keyframes:a,times:l,ease:c,duration:he(u)}),f=o(d);this.valueSubscriptions.set(t,()=>{f(),d.cancel()});return}const r=tt.has(t);r&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&xe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ei){const n=Ei[t];if(!n)continue;const{isEnabled:r,Feature:s}=n;if(!this.features[t]&&s&&r(this.props)&&(this.features[t]=new s(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ur()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Pi.length;r++){const s=Pi[r];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const i="on"+s,o=t[i];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=Vd(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=nt(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(hs(r)||ms(r))?r=parseFloat(r):!Sd(r)&&pe.test(n)&&(r=Ai(t,n)),this.setBaseTarget(t,ce(r)?r.get():r)),ce(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=yi(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ce(s)?s:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ps),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){xd.render(this.render)}}class Ri extends Ii{constructor(){super(...arguments),this.KeyframeResolver=bd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ce(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ed({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Id(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rd(e,t){return Ed(Id(e.getBoundingClientRect(),t))}const Od={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_d=et.length;function Dd(e,t,n){let r="",s=!0;for(let o=0;o<_d;o++){const a=et[o],l=e[a];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(a.startsWith("scale")?1:0);else{const u=parseFloat(l);c=a.startsWith("scale")?u===1:u===0}if(!c||n){const u=cr(l,an[a]);if(!c){s=!1;const d=Od[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}const i=e.pathRotation;return i&&(s=!1,r+=`rotate(${cr(i,an.pathRotation)}) `),r=r.trim(),n?r=n(t,s?"":r):s&&(r="none"),r}function Oi(e,t,n){const{style:r,vars:s,transformOrigin:i}=e;let o=!1,a=!1;for(const l in t){const c=t[l];if(tt.has(l)){o=!0;continue}else if(Es(l)){s[l]=c;continue}else{const u=cr(c,an[l]);l.startsWith("origin")?(a=!0,i[l]=u):r[l]=u}}if(t.transform||(o||n?r.transform=Dd(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;r.transformOrigin=`${l} ${c} ${u}`}}function _i(e,{style:t,vars:n},r,s){const i=e.style;let o;for(o in t)i[o]=t[o];s==null||s.applyProjectionStyles(i,r);for(o in n)i.setProperty(o,n[o])}function Di(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const n=Di(e,t.target.x),r=Di(e,t.target.y);return`${n}% ${r}%`}},Ld={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,s=pe.parse(e);if(s.length>5)return r;const i=pe.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const c=Qe(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=c),typeof s[3+o]=="number"&&(s[3+o]/=c),i(s)}},Fd={borderRadius:{...Ct,applyTo:[...yd]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Ld};function Nd(e,{layout:t,layoutId:n}){return tt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Fd[e]||e==="opacity")}function Li(e,t,n){var o;const r=e.style,s=t==null?void 0:t.style,i={};if(!r)return i;for(const a in r)(ce(r[a])||s&&ce(s[a])||Nd(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}function zd(e){return window.getComputedStyle(e)}class Bd extends Ri{constructor(){super(...arguments),this.type="html",this.renderInstance=_i}readValueFromInstance(t,n){var r;if(tt.has(n))return(r=this.projection)!=null&&r.isProjecting?Zn(n):gu(t,n);{const s=zd(t),i=(Es(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Rd(t,n)}build(t,n,r){Oi(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Li(t,n,r)}}function jd(e,t){return e in t}class Kd extends Ii{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(jd(n,t)){const r=t[n];if(typeof r=="string"||typeof r=="number")return r}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return ur()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const Gd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Wd={offset:"strokeDashoffset",array:"strokeDasharray"};function Ud(e,t,n=1,r=0,s=!0){e.pathLength=1;const i=s?Gd:Wd;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const Yd=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xd(e,{attrX:t,attrY:n,attrScale:r,pathLength:s,pathSpacing:i=1,pathOffset:o=0,...a},l,c,u){if(Oi(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete d.transformBox);for(const h of Yd)d[h]!==void 0&&(f[h]=d[h],delete d[h]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&Ud(d,s,i,o,!1)}const Fi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Hd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qd(e,t,n,r){_i(e,t,void 0,r);for(const s in t.attrs)e.setAttribute(Fi.has(s)?s:or(s),t.attrs[s])}function Zd(e,t,n){const r=Li(e,t,n);for(const s in e)if(ce(e[s])||ce(t[s])){const i=et.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;r[i]=e[s]}return r}class Jd extends Ri{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ur}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(tt.has(n)){const r=Ti(n);return r&&r.default||0}return n=Fi.has(n)?n:or(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Zd(t,n,r)}build(t,n,r){Xd(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,s){qd(t,n,r,s)}mount(t){this.isSVGTag=Hd(t.tagName),super.mount(t)}}function Qd(e,t,n){const r=ce(e)?e:nt(e);return r.start(gi("",r,t,n)),r.animation}function fr(e){return typeof e=="object"&&!Array.isArray(e)}function Ni(e,t,n,r){return e==null?[]:typeof e=="string"&&fr(t)?vd(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function ef(e,t,n){return e*(t+1)+n*t}function zi(e,t,n,r){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function tf(e,t,n){for(let r=0;r<e.length;r++){const s=e[r];s.at>t&&s.at<n&&(Mn(e,s),r--)}}function nf(e,t,n,r,s,i){tf(e,s,i);for(let o=0;o<t.length;o++)e.push({value:t[o],at:Qe(s,i,r[o]),easing:Cs(n,o)})}function rf(e,t,n=0){const r=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/r}function sf(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const of="easeInOut",af=20;function lf(e,{defaultTransition:t={},...n}={},r,s){const i=t.duration||.3,o=new Map,a=new Map,l={},c=new Map;let u=0,d=0,f=0;for(let h=0;h<e.length;h++){const y=e[h];if(typeof y=="string"){c.set(y,d);continue}else if(!Array.isArray(y)){c.set(y.name,zi(d,y.at,u,c));continue}let[m,b,v={}]=y;v.at!==void 0&&(d=zi(d,v.at,u,c));let x=0;const C=(T,A,R,I=0,g=0)=>{const V=cf(T),{delay:M=0,times:_=Xs(V),type:z=t.type||"keyframes",repeat:oe,repeatType:J,repeatDelay:ae=0,...Y}=A;let{ease:ee=t.ease||"easeOut",duration:ue}=A;const st=typeof M=="function"?M(I,g):M,$=V.length,Ot=rr(z)?z:s==null?void 0:s[z||"keyframes"];if($<=2&&Ot){let K=100;if($===2&&ff(V)){const _e=V[1]-V[0];K=Math.abs(_e)}const G={...t,...Y};ue!==void 0&&(G.duration=he(ue));const Ae=Gs(G,K,Ot);ee=Ae.ease,ue=Ae.duration}ue??(ue=i);const _t=d+st;_.length===1&&_[0]===0&&(_[1]=1);const Dt=_.length-V.length;if(Dt>0&&Ys(_,Dt),V.length===1&&V.unshift(null),oe&&oe<af){const K=ue>0?ae/ue:0;ue=ef(ue,oe,ae);const G=[...V],Ae=[..._];ee=Array.isArray(ee)?[...ee]:[ee];const _e=[...ee],X=J==="reverse"||J==="mirror";let Lt=G,Ke=_e;X&&(Lt=[...G].reverse(),J==="reverse"&&(Ke=[..._e].reverse().map(fe=>typeof fe=="function"?En(fe):fe)));for(let fe=0;fe<oe;fe++){const ot=X&&fe%2===0,Ge=ot?Lt:G,Yh=ot?Ke:_e,xo=(fe+1)*(1+K);K>0&&(V.push(V[V.length-1]),_.push(xo),ee.push("linear")),V.push(...Ge);for(let Ft=0;Ft<Ge.length;Ft++)_.push(Ae[Ft]+xo),ee.push(Ft===0?"linear":Cs(Yh,Ft-1))}rf(_,oe,K)}const it=_t+ue;nf(R,V,ee,_,_t,it),x=Math.max(st+ue,x),f=Math.max(it,f)};if(ce(m)){const T=Bi(m,a);C(b,v,ji("default",T))}else{const T=Ni(m,b,r,l),A=T.length;for(let R=0;R<A;R++){b=b,v=v;const I=T[R],g=Bi(I,a);for(const V in b)C(b[V],uf(v,V),ji(V,g),R,A)}}u=d,d+=x}return a.forEach((h,y)=>{for(const m in h){const b=h[m];b.sort(sf);const v=[],x=[],C=[];for(let I=0;I<b.length;I++){const{at:g,value:V,easing:M}=b[I];v.push(V),x.push(Pn(0,f,g)),C.push(M||"easeOut")}x[0]!==0&&(x.unshift(0),v.unshift(v[0]),C.unshift(of)),x[x.length-1]!==1&&(x.push(1),v.push(null)),o.has(y)||o.set(y,{keyframes:{},transition:{}});const T=o.get(y);T.keyframes[m]=v;const{type:A,...R}=t;T.transition[m]={...R,duration:f,ease:C,times:x,...n}}}),o}function Bi(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function ji(e,t){return t[e]||(t[e]=[]),t[e]}function cf(e){return Array.isArray(e)?e:[e]}function uf(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const df=e=>typeof e=="number",ff=e=>e.every(df);function hf(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ci(e)&&!wd(e)?new Jd(t):new Bd(t);n.mount(e),At.set(e,n)}function mf(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Kd(t);n.mount(e),At.set(e,n)}function gf(e,t){return ce(e)||typeof e=="number"||typeof e=="string"&&!fr(t)}function Ki(e,t,n,r){const s=[];if(gf(e,t))s.push(Qd(e,fr(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const i=Ni(e,t,r),o=i.length;for(let a=0;a<o;a++){const l=i[a],c=l instanceof Element?hf:mf;At.has(l)||c(l);const u=At.get(l),d={...n};"delay"in d&&typeof d.delay=="function"&&(d.delay=d.delay(a,o)),s.push(...ad(u,{...t,transition:d},{}))}}return s}function pf(e,t,n){const r=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=nt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return lf(s,t,n,{spring:kt}).forEach(({keyframes:o,transition:a},l)=>{r.push(...Ki(l,o,a))}),r}function bf(e){return Array.isArray(e)&&e.some(Array.isArray)}function yf(e={}){const{scope:t,reduceMotion:n,skipAnimations:r}=e;function s(i,o,a){let l=[],c;const u={};if(n!==void 0&&(u.reduceMotion=n),r!==void 0&&(u.skipAnimations=r),bf(i)){const{onComplete:f,...h}=o||{};typeof f=="function"&&(c=f),l=pf(i,{...u,...h},t)}else{const{onComplete:f,...h}=a||{};typeof f=="function"&&(c=f),l=Ki(i,o,{...u,...h},t)}const d=new Nu(l);return c&&d.finished.then(c),t&&(t.animations.push(d),d.finished.then(()=>{Mn(t.animations,d)})),d}return s}const Gi=yf(),vf="a4ui-effects";function xf(){try{return window.localStorage}catch{return null}}function wf(){var t;try{if(new URLSearchParams(window.location.search).get("calm")==="1")return!1}catch{}const e=(t=xf())==null?void 0:t.getItem(vf);return e===null?!0:e==="1"}function kf(e){typeof document>"u"||document.documentElement.classList.toggle("calm",!e)}const Wi=wf();kf(Wi);const[Sf]=Q(Wi);function Tf(){return!Sf()}const Af="(prefers-reduced-motion: reduce)";function Cf(){return typeof window>"u"||typeof window.matchMedia!="function"?!1:window.matchMedia(Af).matches}const Mf="a4ui-motion-forced";function Vf(){try{return window.localStorage}catch{return null}}const[Ui]=Q(((vo=Vf())==null?void 0:vo.getItem(Mf))==="1");typeof document<"u"&&document.documentElement.classList.toggle("force-motion",re(Ui));function Mt(){return Tf()||Cf()&&!Ui()}function $f(e,t=600){const[n,r]=Q(0);let s;return Me(()=>{const i=e();if(s==null||s.stop(),Mt()){r(i);return}const o=re(n);o!==i&&(s=Gi(o,i,{duration:t/1e3,ease:"easeOut",onUpdate:a=>r(a)}))}),me(()=>s==null?void 0:s.stop()),n}function Pf(e,t={}){Mt()||Gi(e,{opacity:[0,1],y:[t.y??8,0]},{duration:t.duration??.32,delay:t.delay??0,ease:"easeOut"})}function Ef(e,t,n={}){if(Mt())return;const r=e.getBoundingClientRect(),s=t.clientX-r.left,i=t.clientY-r.top,o=2*Math.max(Math.hypot(s,i),Math.hypot(r.width-s,i),Math.hypot(s,r.height-i),Math.hypot(r.width-s,r.height-i)),a=document.createElement("span");a.setAttribute("aria-hidden","true"),Object.assign(a.style,{position:"absolute",left:`${s}px`,top:`${i}px`,width:`${o}px`,height:`${o}px`,borderRadius:"9999px",background:n.color??"currentColor",pointerEvents:"none",transform:"translate(-50%,-50%) scale(0)"}),e.appendChild(a);const l=a.animate([{transform:"translate(-50%,-50%) scale(0)",opacity:String(n.opacity??.3)},{transform:"translate(-50%,-50%) scale(1)",opacity:"0"}],{duration:600,easing:"ease-out"}),c=()=>a.remove();l.finished.then(c).catch(c)}mt(["pointerdown"]);var If=D("<a>"),Rf=D("<button>");const Of={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-muted text-foreground hover:bg-muted/70",outline:"border border-border bg-transparent text-foreground hover:bg-muted",ghost:"bg-transparent text-foreground hover:bg-muted"},_f="inline-flex items-center justify-center rounded-md px-3 py-2 text-sm font-medium transition-[color,background-color,transform] duration-150 active:scale-[0.97] focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none disabled:opacity-50";function Df(e){const[t,n]=le(e,["variant","class","type","children","ripple","onPointerDown","href","target","rel"]),r=()=>B(_f,Of[t.variant??"primary"],t.ripple&&"relative overflow-hidden",t.class),s=i=>{t.ripple&&Ef(i.currentTarget,i,{opacity:.35});const o=t.onPointerDown;typeof o=="function"?o(i):o&&o[0](o[1],i)};return p(q,{get when(){return t.href!==void 0},get fallback(){return(()=>{var i=Rf();return i.$$pointerdown=s,De(i,L({get type(){return t.type??"button"},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i})()},get children(){var i=If();return i.$$pointerdown=s,De(i,L({get href(){return t.href},get target(){return t.target},get rel(){return t.rel},get class(){return r()}},n),!1,!0),P(i,()=>t.children),i}})}mt(["pointerdown"]);var Lf=D('<span class="text-base font-normal text-muted-foreground">'),Ff=D('<div><span class="flex items-baseline gap-2 tabular-nums text-4xl font-bold tracking-tight text-foreground"><span>'),Nf=D("<svg><polyline stroke=hsl(var(--primary)) stroke-width=1.5 stroke-linecap=round style=transform-origin:center;transform-box:view-box></svg>",!1,!0,!1),zf=D('<svg role=img aria-label="Analog clock"><circle fill=none stroke=hsl(var(--border)) stroke-width=2></circle><polyline stroke=hsl(var(--foreground)) stroke-width=4 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><polyline stroke=hsl(var(--foreground)) stroke-width=3 stroke-linecap=round style=transform-origin:center;transform-box:view-box></polyline><circle r=3.5 fill=hsl(var(--primary))>'),Bf=D("<svg><line stroke=hsl(var(--muted-foreground)) stroke-linecap=round></svg>",!1,!0,!1);const Vt=e=>String(e).padStart(2,"0");function jf(e,t){if(!t)return{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()};const n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(e),r=s=>{var i;return Number(((i=n.find(o=>o.type===s))==null?void 0:i.value)??0)};return{hours:r("hour")%24,minutes:r("minute"),seconds:r("second")}}function Kf(e){const t=()=>{const{hours:n,minutes:r,seconds:s}=e.parts;let i=n,o="";return e.hour12&&(o=i>=12?"PM":"AM",i=i%12,i===0&&(i=12)),{time:e.seconds?`${Vt(i)}:${Vt(r)}:${Vt(s)}`:`${Vt(i)}:${Vt(r)}`,suffix:o}};return(()=>{var n=Ff(),r=n.firstChild,s=r.firstChild;return P(s,()=>t().time),P(r,p(q,{get when(){return e.hour12},get children(){var i=Lf();return P(i,()=>t().suffix),i}}),null),N(()=>be(n,B("flex flex-col items-center justify-center",e.class))),n})()}function Gf(e){const t=()=>e.size,n=()=>t()/2,r=()=>t()/2,s=()=>t()/2,i=()=>e.parts.hours%12*30+e.parts.minutes*.5,o=()=>e.parts.minutes*6+e.parts.seconds*.1,a=()=>e.parts.seconds*6,l=Array.from({length:12},(u,d)=>d),c=u=>{const d=s()*u;return`${n()},${r()} ${n()},${r()-d}`};return(()=>{var u=zf(),d=u.firstChild,f=d.nextSibling,h=f.nextSibling,y=h.nextSibling;return P(u,p(ht,{each:l,children:m=>{const b=m*30,v=s()-4,x=s()-(m%3===0?14:9),C=n()+v*Math.sin(b*Math.PI/180),T=r()-v*Math.cos(b*Math.PI/180),A=n()+x*Math.sin(b*Math.PI/180),R=r()-x*Math.cos(b*Math.PI/180);return(()=>{var I=Bf();return E(I,"x1",C),E(I,"y1",T),E(I,"x2",A),E(I,"y2",R),E(I,"stroke-width",m%3===0?2:1),I})()}}),f),P(u,p(q,{get when(){return e.seconds},get children(){var m=Nf();return N(b=>{var v=c(.75),x=`rotate(${a()}deg)`;return v!==b.e&&E(m,"points",b.e=v),x!==b.t&&Ve(m,"transform",b.t=x),b},{e:void 0,t:void 0}),m}}),y),N(m=>{var b=t(),v=t(),x=`0 0 ${t()} ${t()}`,C=B("inline-block",e.class),T=n(),A=r(),R=s()-2,I=c(.45),g=`rotate(${i()}deg)`,V=c(.65),M=`rotate(${o()}deg)`,_=n(),z=r();return b!==m.e&&E(u,"width",m.e=b),v!==m.t&&E(u,"height",m.t=v),x!==m.a&&E(u,"viewBox",m.a=x),C!==m.o&&E(u,"class",m.o=C),T!==m.i&&E(d,"cx",m.i=T),A!==m.n&&E(d,"cy",m.n=A),R!==m.s&&E(d,"r",m.s=R),I!==m.h&&E(f,"points",m.h=I),g!==m.r&&Ve(f,"transform",m.r=g),V!==m.d&&E(h,"points",m.d=V),M!==m.l&&Ve(h,"transform",m.l=M),_!==m.u&&E(y,"cx",m.u=_),z!==m.c&&E(y,"cy",m.c=z),m},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0}),u})()}function Wf(e){const[t,n]=Q(new Date);at(()=>{const l=setInterval(()=>n(new Date),1e3);me(()=>clearInterval(l))});const r=()=>e.variant??"digital",s=()=>e.seconds??!0,i=()=>e.hour12??!1,o=()=>e.size??160,a=()=>jf(t(),e.timeZone);return p(q,{get when(){return r()==="analog"},get fallback(){return p(Kf,{get parts(){return a()},get seconds(){return s()},get hour12(){return i()},get class(){return e.class}})},get children(){return p(Gf,{get parts(){return a()},get seconds(){return s()},get size(){return o()},get class(){return e.class}})}})}var Uf=D('<span class="relative inline-block h-[1em] w-[0.62em] overflow-hidden align-top"><span class="absolute inset-x-0 top-0 flex flex-col transition-transform duration-500 ease-out">'),Yf=D('<span class="block h-[1em] text-center leading-none">'),Xf=D('<span class="flex text-2xl font-bold tabular-nums text-foreground">'),Hf=D("<div>"),qf=D('<div class="flex flex-col items-center"><span class="text-[10px] uppercase tracking-wide text-muted-foreground">');const hr=1e3,mr=60*hr,gr=60*mr,Yi=24*gr,Zf=[0,1,2,3,4,5,6,7,8,9],pr=e=>String(e).padStart(2,"0");function Jf(e){const t=()=>e.char>="0"&&e.char<="9"?Number(e.char):0;return(()=>{var n=Uf(),r=n.firstChild;return P(r,p(bn,{each:Zf,children:s=>(()=>{var i=Yf();return P(i,s),i})()})),N(s=>Ve(r,"transform",`translateY(${t()*-10}%)`)),n})()}function Qf(e){const t=()=>e.value.split("");return(()=>{var n=Xf();return P(n,p(bn,{get each(){return t()},children:r=>p(Jf,{get char(){return r()}})})),n})()}function eh(e){const t=ne(()=>e.to.getTime()),n=()=>Math.max(0,t()-Date.now()),[r,s]=Q(n());let i=!1;const o=f=>{var h;f<=0&&!i&&(i=!0,(h=e.onComplete)==null||h.call(e))};o(r()),at(()=>{const f=setInterval(()=>{const h=n();s(h),o(h)},hr);me(()=>clearInterval(f))});const a=()=>Math.floor(r()/Yi),l=()=>Math.floor(r()%Yi/gr),c=()=>Math.floor(r()%gr/mr),u=()=>Math.floor(r()%mr/hr),d=()=>[{label:"Days",value:String(a())},{label:"Hours",value:pr(l())},{label:"Mins",value:pr(c())},{label:"Secs",value:pr(u())}];return(()=>{var f=Hf();return P(f,p(bn,{get each(){return d()},children:h=>(()=>{var y=qf(),m=y.firstChild;return P(y,p(Qf,{get value(){return h().value}}),m),P(m,()=>h().label),y})()})),N(()=>be(f,B("flex gap-4",e.class))),f})()}var th=D("<kbd>");const nh="inline-flex min-w-[1.5rem] items-center justify-center rounded border border-border bg-muted px-1.5 py-0.5 font-mono text-xs text-muted-foreground shadow-sm";function rh(e){return(()=>{var t=th();return P(t,()=>e.children),N(()=>be(t,B(nh,e.class))),t})()}function sh(e){return(...t)=>{for(const n of e)n&&n(...t)}}const ih=e=>typeof e=="function"&&!e.length?e():e,oh=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;function Xi(e){const t={};let n;for(;n=oh.exec(e);)t[n[1]]=n[2];return t}function Hi(e,t){if(typeof e=="string"){if(typeof t=="string")return`${e};${t}`;e=Xi(e)}else typeof t=="string"&&(t=Xi(t));return{...e,...t}}function ah(...e){return sh(e)}function lh(e){return Object.prototype.toString.call(e)==="[object String]"}function qi(e){return t=>`${e()}-${t}`}function Zi(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(Math.max(e,t),n)}function $t(e,t){return L(e,t)}var Pt=new Map,Ji=new Set;function Qi(){if(typeof window>"u"||document.body===null)return;const e=n=>{if(!n.target)return;let r=Pt.get(n.target);r||(r=new Set,Pt.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{if(!n.target)return;const r=Pt.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Pt.delete(n.target)),Pt.size===0)){for(const s of Ji)s();Ji.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Qi():document.addEventListener("DOMContentLoaded",Qi));let br=new Map,yr=!1;try{yr=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ln=!1;try{ln=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const eo={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class ch{constructor(t,n={}){this.numberFormatter=uh(t,n),this.options=n}format(t){var r;let n="";if(!yr&&this.options.signDisplay!=null?n=dh(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ln){let{unit:s,unitDisplay:i="short",locale:o}=this.resolvedOptions();if(!s)return n;let a=(r=eo[s])==null?void 0:r[i];n+=a[o]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),s=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...s.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!yr&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ln&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}}function uh(e,t={}){var i;let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ln){let{unit:o,unitDisplay:a="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!((i=eo[o])!=null&&i[a]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let r=e+(t?Object.entries(t).sort((o,a)=>o[0]<a[0]?-1:1).join():"");if(br.has(r))return br.get(r);let s=new Intl.NumberFormat(e,t);return br.set(r,s),s}function dh(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let s=e.format(-n),i=e.format(n),o=s.replace(i,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),s.replace(i,"!!!").replace(o,"+").replace("!!!",i)}else return e.format(n)}}var fh=new Set(["Avst","Arab","Armi","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),hh=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function mh(e){if(Intl.Locale){const n=new Intl.Locale(e).maximize().script??"";return fh.has(n)}const t=e.split("-")[0];return hh.has(t)}function gh(e){return mh(e)?"rtl":"ltr"}function to(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:gh(e)}}var vr=to(),Et=new Set;function no(){vr=to();for(const e of Et)e(vr)}function ph(){const[e,t]=Q(vr),n=ne(()=>e());return at(()=>{Et.size===0&&window.addEventListener("languagechange",no),Et.add(t),me(()=>{Et.delete(t),Et.size===0&&window.removeEventListener("languagechange",no)})}),{locale:()=>n().locale,direction:()=>n().direction}}var bh=lt();function yh(){const e=ph();return ct(bh)||e}function ro(e){const{locale:t}=yh();return ne(()=>new ch(t(),ih(e)))}function so(e){return t=>(e(t),()=>e(void 0))}var io=lt();function cn(){const e=ct(io);if(e===void 0)throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");return e}function vh(e){const t=cn(),[n,r]=le(e,["style"]);return p(ve,L({as:"div",get style(){return Hi({"--kb-meter-fill-width":t.meterFillWidth()},n.style)}},()=>t.dataset(),r))}function xh(e){const t=cn(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(ve,L({as:"span",get id(){return r.id}},()=>t.dataset(),s))}function wh(e){const t=`meter-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100,role:"meter",indeterminate:!1},e),[r,s]=le(n,["value","minValue","maxValue","getValueLabel","role","aria-valuetext","aria-labelledby","aria-valuemax","aria-valuemin","aria-valuenow","indeterminate"]),[i,o]=Q(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>`${c()*100}%`,f=ne(()=>({})),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,meterFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(io.Provider,{value:h,get children(){return p(ve,L({as:"div",get role(){return r.role||"meter"},get"aria-valuenow"(){return yn(()=>!!r.indeterminate)()?void 0:l()},get"aria-valuemin"(){return r.minValue},get"aria-valuemax"(){return r.maxValue},get"aria-valuetext"(){return u()},get"aria-labelledby"(){return i()}},f,s))}})}function kh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e))}function Sh(e){const t=cn();return p(ve,L({as:"div"},()=>t.dataset(),e,{get children(){return t.valueLabel()}}))}var we=Object.assign(wh,{Fill:vh,Label:xh,Track:kh,ValueLabel:Sh}),Th=D('<div class="flex items-center justify-between text-sm text-foreground">');function Ah(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(we,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Th();return P(n,p(we.Label,{get children(){return e.label}}),null),P(n,p(we.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(we.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(we.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var Ch={};qt(Ch,{Fill:()=>ao,Label:()=>lo,Progress:()=>rt,Root:()=>co,Track:()=>uo,ValueLabel:()=>fo,useProgressContext:()=>It});var oo=lt();function It(){const e=ct(oo);if(e===void 0)throw new Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");return e}function ao(e){const t=It(),[n,r]=le(e,["style"]);return p(we.Fill,L({get style(){return Hi({"--kb-progress-fill-width":t.progressFillWidth()},n.style)}},()=>t.dataset(),r))}function lo(e){const t=It(),n=$t({id:t.generateId("label")},e),[r,s]=le(n,["id"]);return Me(()=>me(t.registerLabelId(r.id))),p(we.Label,L({get id(){return r.id}},()=>t.dataset(),s))}function co(e){const t=`progress-${Pr()}`,n=$t({id:t,value:0,minValue:0,maxValue:100},e),[r,s]=le(n,["value","minValue","maxValue","indeterminate","getValueLabel"]),[i,o]=Q(),a=ro(()=>({style:"percent"})),l=()=>Zi(r.value,r.minValue,r.maxValue),c=()=>(l()-r.minValue)/(r.maxValue-r.minValue),u=()=>{if(!r.indeterminate)return r.getValueLabel?r.getValueLabel({value:l(),min:r.minValue,max:r.maxValue}):a().format(c())},d=()=>r.indeterminate?void 0:`${c()*100}%`,f=ne(()=>{let y;return r.indeterminate||(y=c()===1?"complete":"loading"),{"data-progress":y,"data-indeterminate":r.indeterminate?"":void 0}}),h={dataset:f,value:l,valuePercent:c,valueLabel:u,labelId:i,progressFillWidth:d,generateId:qi(()=>s.id),registerLabelId:so(o)};return p(oo.Provider,{value:h,get children(){return p(we,L({role:"progressbar",get indeterminate(){return r.indeterminate||!1}},f,n))}})}function uo(e){const t=It();return p(we.Track,L(()=>t.dataset(),e))}function fo(e){const t=It();return p(we.ValueLabel,L(()=>t.dataset(),e))}var rt=Object.assign(co,{Fill:ao,Label:lo,Track:uo,ValueLabel:fo}),Mh=D('<div class="flex items-center justify-between text-sm text-foreground">');function Vh(e){const t=()=>{const n=e.max??100;return n<=0?0:Math.max(0,Math.min(100,e.value/n*100))};return p(rt,{get value(){return e.value},minValue:0,get maxValue(){return e.max??100},get class(){return B("flex flex-col gap-1.5",e.class)},get children(){return[p(q,{get when(){return e.label},get children(){var n=Mh();return P(n,p(rt.Label,{get children(){return e.label}}),null),P(n,p(rt.ValueLabel,{class:"text-muted-foreground"}),null),n}}),p(rt.Track,{class:"h-2 overflow-hidden rounded-full bg-muted",get children(){return p(rt.Fill,{class:"h-full rounded-full bg-primary transition-all duration-500",get style(){return{width:`${t()}%`}}})}})]}})}var $h=D("<div role=radiogroup>"),Ph=D("<div role=img>"),Eh=D('<button type=button role=radio class="rounded outline-none focus-visible:ring-2 focus-visible:ring-ring/40">');function Ih(e){const[t,n]=Q(0),r=()=>e.max??5,s=()=>Array.from({length:r()},(l,c)=>c+1),i=()=>t()>0?t():e.value,o=l=>{var c;e.readonly||(c=e.onChange)==null||c.call(e,l)},a=l=>B("h-5 w-5 transition-colors",l<=i()?"fill-primary text-primary":"fill-transparent text-muted-foreground");return p(q,{get when(){return!e.readonly},get fallback(){return(()=>{var l=Ph();return P(l,p(ht,{get each(){return s()},children:c=>p(ls,{get class(){return a(c)},"aria-hidden":"true"})})),N(c=>{var u=B("inline-flex items-center gap-1",e.class),d=`Rating ${e.value} of ${r()}`;return u!==c.e&&be(l,c.e=u),d!==c.t&&E(l,"aria-label",c.t=d),c},{e:void 0,t:void 0}),l})()},get children(){var l=$h();return l.addEventListener("mouseleave",()=>n(0)),P(l,p(ht,{get each(){return s()},children:c=>(()=>{var u=Eh();return u.$$keydown=d=>{d.key==="ArrowRight"||d.key==="ArrowUp"?(d.preventDefault(),o(Math.min(e.value+1,r()))):(d.key==="ArrowLeft"||d.key==="ArrowDown")&&(d.preventDefault(),o(Math.max(e.value-1,0)))},u.$$click=()=>o(c),u.addEventListener("blur",()=>n(0)),u.addEventListener("focus",()=>n(c)),u.addEventListener("mouseenter",()=>n(c)),P(u,p(ls,{get class(){return a(c)},"aria-hidden":"true"})),N(d=>{var f=e.value===c,h=`Rate ${c} of ${r()}`;return f!==d.e&&E(u,"aria-checked",d.e=f),h!==d.t&&E(u,"aria-label",d.t=h),d},{e:void 0,t:void 0}),u})()})),N(()=>be(l,B("inline-flex items-center gap-1",e.class))),l}})}mt(["click","keydown"]);var Rh=D('<div role=progressbar aria-valuemin=0 aria-valuemax=100><svg class=-rotate-90><circle fill=none stroke=hsl(var(--muted))></circle><circle fill=none stroke=hsl(var(--primary)) stroke-linecap=round class=transition-all></circle></svg><div class="absolute inset-0 flex items-center justify-center text-sm font-medium text-foreground">');function Oh(e){const t=()=>e.size??96,n=()=>e.thickness??8,r=()=>Math.min(100,Math.max(0,e.value)),s=()=>(t()-n())/2,i=()=>2*Math.PI*s(),o=()=>i()*(1-r()/100);return(()=>{var a=Rh(),l=a.firstChild,c=l.firstChild,u=c.nextSibling,d=l.nextSibling;return P(d,p(q,{get when(){return e.label},get fallback(){return`${Math.round(r())}%`},get children(){return e.label}})),N(f=>{var h=e["aria-label"],y=r(),m=B("relative inline-flex items-center justify-center",e.class),b=`${t()}px`,v=`${t()}px`,x=t(),C=t(),T=`0 0 ${t()} ${t()}`,A=t()/2,R=t()/2,I=s(),g=n(),V=t()/2,M=t()/2,_=s(),z=n(),oe=String(i()),J=String(o());return h!==f.e&&E(a,"aria-label",f.e=h),y!==f.t&&E(a,"aria-valuenow",f.t=y),m!==f.a&&be(a,f.a=m),b!==f.o&&Ve(a,"width",f.o=b),v!==f.i&&Ve(a,"height",f.i=v),x!==f.n&&E(l,"width",f.n=x),C!==f.s&&E(l,"height",f.s=C),T!==f.h&&E(l,"viewBox",f.h=T),A!==f.r&&E(c,"cx",f.r=A),R!==f.d&&E(c,"cy",f.d=R),I!==f.l&&E(c,"r",f.l=I),g!==f.u&&E(c,"stroke-width",f.u=g),V!==f.c&&E(u,"cx",f.c=V),M!==f.w&&E(u,"cy",f.w=M),_!==f.m&&E(u,"r",f.m=_),z!==f.f&&E(u,"stroke-width",f.f=z),oe!==f.y&&E(u,"stroke-dasharray",f.y=oe),J!==f.g&&E(u,"stroke-dashoffset",f.g=J),f},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0,u:void 0,c:void 0,w:void 0,m:void 0,f:void 0,y:void 0,g:void 0}),a})()}function _h(e,t){const[n,r]=Q(ho(t==null?void 0:t()));return Me(()=>{var s;r(((s=e())==null?void 0:s.tagName.toLowerCase())||ho(t==null?void 0:t()))}),n}function ho(e){return lh(e)?e:void 0}var Dh={};qt(Dh,{Root:()=>mo,Separator:()=>go});function mo(e){let t;const n=$t({orientation:"horizontal"},e),[r,s]=le(n,["ref","orientation"]),i=_h(()=>t,()=>"hr");return p(ve,L({as:"hr",ref(o){var a=ah(l=>t=l,r.ref);typeof a=="function"&&a(o)},get role(){return i()!=="hr"?"separator":void 0},get"aria-orientation"(){return r.orientation==="vertical"?"vertical":void 0},get"data-orientation"(){return r.orientation}},s))}var go=mo;function Lh(e){const t=()=>e.orientation??"horizontal";return p(go,{get orientation(){return t()},get class(){return B("shrink-0 border-0 bg-border m-0",t()==="vertical"?"w-px min-h-4 h-full self-stretch":"h-px w-full",e.class)}})}var Fh=D('<svg viewBox="0 0 24 24"fill=none role=status><circle class=opacity-25 cx=12 cy=12 r=10 stroke=currentColor stroke-width=4></circle><path class=opacity-75 fill=currentColor d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z">');function Nh(e){return(()=>{var t=Fh();return N(n=>{var r=B("h-5 w-5 animate-spin text-muted-foreground",e.class),s=e.label??"Loading";return r!==n.e&&E(t,"class",n.e=r),s!==n.t&&E(t,"aria-label",n.t=s),n},{e:void 0,t:void 0}),t})()}function zh(e,t={}){if(Mt())return()=>{};const n=document.createElement("span");n.setAttribute("aria-hidden","true"),n.className="pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-300",e.appendChild(n);const r=t.size??180,s=t.color??"hsl(var(--primary))",i=(c,u)=>{n.style.background=`radial-gradient(${r}px circle at ${c}px ${u}px, color-mix(in srgb, ${s} 30%, transparent), transparent 70%)`},o=c=>{const u=e.getBoundingClientRect();i(c.clientX-u.left,c.clientY-u.top)},a=()=>{n.style.opacity="1"},l=()=>{n.style.opacity="0"};return e.addEventListener("pointermove",o),e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",l),()=>{e.removeEventListener("pointermove",o),e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",l),n.remove()}}function Bh(e,t,n={}){if(Mt())return()=>{};t.style.willChange="transform";const r=i=>{const o=e.getBoundingClientRect(),a=(i.clientX-o.left)/o.width-.5,l=(i.clientY-o.top)/o.height-.5,c=n.max??10;t.style.transition="transform 0.15s ease-out",t.style.transform=`perspective(800px) rotateX(${(l*-2*c).toFixed(2)}deg) rotateY(${(a*2*c).toFixed(2)}deg) scale(1.02)`},s=()=>{t.style.transition="transform 0.4s ease",t.style.transform="perspective(800px) rotateX(0deg) rotateY(0deg) scale(1)"};return e.addEventListener("pointermove",r),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",s),t.style.transform="",t.style.transition="",t.style.willChange=""}}var po=D("<div>");function jh(e){const[t,n]=le(e,["class","children","glass","glow","tilt","spotlight"]),r=()=>(t.glow??t.glass)===!0;let s;return at(()=>{const i=[t.tilt&&s?Bh(s,s):null,t.spotlight&&s?zh(s):null].filter(o=>o!==null);me(()=>i.forEach(o=>o()))}),(()=>{var i=po(),o=s;return typeof o=="function"?vn(o,i):s=i,De(i,L({get class(){return B(t.glass?"card rounded-xl text-card-foreground":"rounded-xl border border-border bg-card text-card-foreground shadow-sm",r()&&"glow-edge",t.spotlight&&"relative overflow-hidden",t.tilt&&"will-change-transform",t.class)}},n),!1,!0),P(i,()=>t.children),i})()}function Kh(e){const[t,n]=le(e,["class","children"]);return(()=>{var r=po();return De(r,L({get class(){return B("p-6 pt-0",t.class)}},n),!1,!0),P(r,()=>t.children),r})()}var bo=D("<div>"),Gh=D('<div class=min-w-0><p class="truncate text-sm text-muted-foreground"></p><p class="truncate text-xl font-semibold tabular-nums text-foreground">');const Wh={primary:"bg-primary/15 text-primary",success:"bg-emerald-500/15 text-emerald-600",danger:"bg-rose-500/15 text-rose-600",neutral:"bg-muted text-muted-foreground"};function Uh(e){const t=$f(()=>e.value),n=()=>(e.format??(s=>String(Math.round(s))))(t());let r;return at(()=>{r&&Pf(r,{delay:e.delay??0})}),(()=>{var s=bo(),i=r;return typeof i=="function"?vn(i,s):r=s,P(s,p(jh,{glass:!0,glow:!0,get class(){return e.class},get children(){return p(Kh,{class:"flex items-center gap-4 p-5",get children(){return[p(q,{get when(){return e.icon},get children(){var o=bo();return P(o,()=>e.icon),N(()=>be(o,B("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",Wh[e.tone??"neutral"]))),o}}),(()=>{var o=Gh(),a=o.firstChild,l=a.nextSibling;return P(a,()=>e.label),P(l,n),o})()]}})}})),s})()}function Rt(e){return(e.textContent??"").trim()}function yo(){ie("a4-button",{variant:"primary",disabled:!1,type:"button",label:""},(e,{element:t})=>{se();const n=e.label||Rt(t);return p(Df,{get variant(){return e.variant},get disabled(){return e.disabled},get type(){return e.type},children:n})}),ie("a4-badge",{tone:"neutral",label:""},(e,{element:t})=>(se(),p(uc,{get tone(){return e.tone},get children(){return e.label||Rt(t)}}))),ie("a4-alert",{tone:"info",heading:"",text:""},(e,{element:t})=>(se(),p(ql,{get tone(){return e.tone},get title(){return e.heading||void 0},get children(){return e.text||Rt(t)}}))),ie("a4-spinner",{label:"Loading"},e=>(se(),p(Nh,{get label(){return e.label}}))),ie("a4-avatar",{src:"",alt:"",fallback:""},e=>(se(),p(ic,{get src(){return e.src||void 0},get alt(){return e.alt},get fallback(){return e.fallback||""}}))),ie("a4-progress",{value:0,max:100,label:""},e=>(se(),p(Vh,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),ie("a4-meter",{value:0,max:100,label:""},e=>(se(),p(Ah,{get value(){return e.value},get max(){return e.max},get label(){return e.label||void 0}}))),ie("a4-ring-progress",{value:0,size:96,thickness:8,label:""},e=>(se(),p(Oh,{get value(){return e.value},get size(){return e.size},get thickness(){return e.thickness},get label(){return e.label||void 0}}))),ie("a4-stat",{label:"",value:0,tone:"neutral"},e=>(se(),p(Uh,{get label(){return e.label},get value(){return e.value},get tone(){return e.tone}}))),ie("a4-kbd",{label:""},(e,{element:t})=>(se(),p(rh,{get children(){return e.label||Rt(t)}}))),ie("a4-condition-scale",{value:0,min:1,max:10,showvalue:!0},e=>(se(),p(hl,{get value(){return e.value},get min(){return e.min},get max(){return e.max},get showValue(){return e.showvalue}}))),ie("a4-announcement-bar",{tone:"primary",dismissible:!1,coupon:"",href:"",label:""},(e,{element:t})=>(se(),p(rc,{get tone(){return e.tone},get dismissible(){return e.dismissible},get couponCode(){return e.coupon||void 0},get href(){return e.href||void 0},get children(){return e.label||Rt(t)}}))),ie("a4-separator",{orientation:"horizontal"},e=>(se(),p(Lh,{get orientation(){return e.orientation}}))),ie("a4-rating",{value:0,max:5,readonly:!1},(e,{element:t})=>(se(),p(Ih,{get value(){return e.value},get max(){return e.max},get readonly(){return e.readonly},onChange:n=>t.dispatchEvent(new CustomEvent("change",{detail:n}))}))),ie("a4-countdown",{to:""},e=>{se();const t=e.to?new Date(e.to):new Date(Date.now()+864e5);return p(eh,{to:t})}),ie("a4-clock",{variant:"digital",seconds:!0,hour12:!1,timezone:"",size:160},e=>(se(),p(Wf,{get variant(){return e.variant},get seconds(){return e.seconds},get hour12(){return e.hour12},get timeZone(){return e.timezone||void 0},get size(){return e.size}})))}return yo(),un.defineA4uiElements=yo,Object.defineProperty(un,Symbol.toStringTag,{value:"Module"}),un})({});