@toa.io/extensions.exposition 1.0.0-alpha.331 → 1.0.0-alpha.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/exposition.octets/package.json +2 -2
- package/components/identity.federation/package.json +1 -1
- package/components/identity.tokens/manifest.toa.yaml +5 -0
- package/components/identity.tokens/operations/authenticate.js +10 -3
- package/components/identity.tokens/package.json +1 -1
- package/components/identity.tokens/source/authenticate.ts +11 -2
- package/components/identity.tokens/types/toa.d.ts +3 -1
- package/package.json +11 -10
- package/transpiled/HTTP/Context.d.ts +4 -0
- package/transpiled/HTTP/Context.js +4 -1
- package/transpiled/HTTP/Context.js.map +1 -1
- package/transpiled/HTTP/Server.d.ts +3 -1
- package/transpiled/HTTP/address.d.ts +5 -0
- package/transpiled/HTTP/address.js +11 -0
- package/transpiled/HTTP/address.js.map +1 -1
- package/transpiled/directives/auth/Authorization.js +3 -1
- package/transpiled/directives/auth/Authorization.js.map +1 -1
- package/transpiled/directives/auth/Refresh.d.ts +16 -0
- package/transpiled/directives/auth/Refresh.js +44 -0
- package/transpiled/directives/auth/Refresh.js.map +1 -0
- package/transpiled/directives/censor/Censor.d.ts +2 -2
- package/transpiled/directives/censor/Censor.js +4 -9
- package/transpiled/directives/censor/Censor.js.map +1 -1
- package/transpiled/directives/map/Client.d.ts +21 -0
- package/transpiled/directives/map/Client.js +33 -0
- package/transpiled/directives/map/Client.js.map +1 -0
- package/transpiled/directives/map/Headers.d.ts +2 -1
- package/transpiled/directives/map/Headers.js +2 -2
- package/transpiled/directives/map/Headers.js.map +1 -1
- package/transpiled/directives/map/Map.js +14 -4
- package/transpiled/directives/map/Map.js.map +1 -1
- package/transpiled/root.js +26 -0
- package/transpiled/root.js.map +1 -1
- package/ui/dist/_app/env.js +1 -1
- package/ui/dist/_app/immutable/chunks/-39mDws-.js +1 -0
- package/ui/dist/_app/immutable/chunks/1WXXcBlU.js +90 -0
- package/ui/dist/_app/immutable/chunks/BjwH--Q_.js +1 -0
- package/ui/dist/_app/immutable/chunks/Bt6Kyh95.js +2 -0
- package/ui/dist/_app/immutable/chunks/C3gnuDhG.js +3 -0
- package/ui/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
- package/ui/dist/_app/immutable/chunks/DYI4yOrv.js +6 -0
- package/ui/dist/_app/immutable/chunks/XKyaHtl9.js +1 -0
- package/ui/dist/_app/immutable/entry/app.C3gvpmYY.js +2 -0
- package/ui/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
- package/ui/dist/_app/immutable/entry/start.BzTqgs51.js +2 -0
- package/ui/dist/_app/immutable/nodes/0.BufbmJeT.js +1 -0
- package/ui/dist/_app/immutable/nodes/1.Dn_85faQ.js +1 -0
- package/ui/dist/_app/immutable/nodes/2.DCLYeX2U.js +8 -0
- package/ui/dist/_app/immutable/nodes/3.aoe4R-SX.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.B0CiB3ml.js +1 -0
- package/ui/dist/_app/immutable/nodes/5.BUrdbysb.js +1 -0
- package/ui/dist/_app/immutable/nodes/6.yNbGQqYT.js +1 -0
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +17 -14
- package/ui/dist/_app/immutable/chunks/BDckNUhP.js +0 -1
- package/ui/dist/_app/immutable/chunks/BEB0f03Q.js +0 -90
- package/ui/dist/_app/immutable/chunks/BVDJTrf4.js +0 -3
- package/ui/dist/_app/immutable/chunks/DbLTrkva.js +0 -1
- package/ui/dist/_app/immutable/chunks/xZbjwf2l.js +0 -6
- package/ui/dist/_app/immutable/chunks/xihTtKlq.js +0 -1
- package/ui/dist/_app/immutable/entry/app.DobJ2Iee.js +0 -2
- package/ui/dist/_app/immutable/entry/start.5KZbLLPV.js +0 -1
- package/ui/dist/_app/immutable/nodes/0.BcmlOx1v.js +0 -1
- package/ui/dist/_app/immutable/nodes/1.BzMQT6JK.js +0 -1
- package/ui/dist/_app/immutable/nodes/2.CbX5khSR.js +0 -8
- package/ui/dist/_app/immutable/nodes/3.BKJAedfV.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.C-NuO1rS.js +0 -1
- package/ui/dist/_app/immutable/nodes/5.C2tdHzXF.js +0 -1
- package/ui/dist/_app/immutable/nodes/6.BWMOa3IU.js +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import{A as e,At as t,B as n,Bt as r,C as i,Ct as a,Dt as o,E as s,Et as c,F as l,Ft as u,G as d,Gt as f,H as p,Ht as m,I as h,It as g,J as _,Jt as v,K as y,L as b,Lt as x,M as S,N as C,Nt as w,O as T,Ot as E,P as ee,Pt as D,Q as te,Rt as ne,St as re,Tt as O,U as ie,Ut as k,V as ae,Vt as A,W as oe,Wt as j,X as se,Xt as ce,Yt as M,Z as N,_t as P,a as le,at as F,b as I,bt as L,dt as ue,et as R,gt as de,it as fe,j as z,k as pe,kt as B,lt as me,mt as he,nt as V,pt as ge,q as _e,rt as ve,tt as H,ut as ye,vt as be,w as xe,wt as Se,x as U,y as W,yt as Ce,z as we,zt as G}from"./C3gnuDhG.js";import{D as Te,E as Ee,F as De,L as Oe,M as ke,N as Ae,O as je,P as Me,T as Ne,a as Pe,i as Fe,n as Ie,r as Le,t as Re}from"./DYI4yOrv.js";import"./Bt6Kyh95.js";import"./-39mDws-.js";var ze=new Set([`$$slots`,`$$events`,`$$legacy`]);function Be(e,t){let n=I(t,ze),r=[[`path`,{d:`M18 6 6 18`}],[`path`,{d:`m6 6 12 12`}]];Te(e,U({name:`x`},()=>n,{get iconNode(){return r}}))}var Ve=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},He=(e,t)=>({classGroupId:e,validator:t}),Ue=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),We=`-`,Ge=[],Ke=`arbitrary..`,qe=e=>{let t=Xe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ye(e);let n=e.split(We);return Je(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ve(i,t):t:i||Ge}return n[e]||Ge}}},Je=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Je(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(We):e.slice(t).join(We),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ye=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ke+r:void 0})(),Xe=e=>{let{theme:t,classGroups:n}=e;return Ze(n,t)},Ze=(e,t)=>{let n=Ue();for(let r in e){let i=e[r];Qe(i,n,r,t)}return n},Qe=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];$e(i,t,n,r)}},$e=(e,t,n,r)=>{typeof e==`string`?et(e,t,n):typeof e==`function`?tt(e,t,n,r):nt(e,t,n,r)},et=(e,t,n)=>{let r=e===``?t:rt(t,e);r.classGroupId=n},tt=(e,t,n,r)=>{it(e)?Qe(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(He(n,e)))},nt=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Qe(o,rt(t,a),n,r)}},rt=(e,t)=>{let n=e,r=t.split(We),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Ue(),n.nextPart.set(t,i)),n=i}return n},it=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,at=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},ot=`!`,st=`:`,ct=[],lt=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ut=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===st){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(ot)?(c=s.slice(0,-1),l=!0):s.startsWith(ot)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return lt(t,l,c,u)};if(t){let e=t+st,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):lt(ct,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},dt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ft=e=>({cache:at(e.cacheSize),parseClassName:ut(e),sortModifiers:dt(e),postfixLookupClassGroupIds:pt(e),...qe(e)}),pt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},mt=/\s+/,ht=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(mt),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+ot:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},gt=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=_t(n))&&(i&&(i+=` `),i+=r);return i},_t=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=_t(e[r]))&&(n&&(n+=` `),n+=t);return n},vt=(e,...t)=>{let n,r,i,a,o=o=>(n=ft(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=ht(e,n);return i(e,a),a};return a=o,(...e)=>a(gt(...e))},yt=[],bt=e=>{let t=t=>t[e]||yt;return t.isThemeGetter=!0,t},xt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,St=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ct=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tt=/\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$/,Et=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Dt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ot=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>Ct.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),At=e=>!!e&&Number.isInteger(Number(e)),jt=e=>e.endsWith(`%`)&&K(e.slice(0,-1)),Mt=e=>wt.test(e),Nt=()=>!0,Pt=e=>Tt.test(e)&&!Et.test(e),Ft=()=>!1,It=e=>Dt.test(e),Lt=e=>Ot.test(e),Rt=e=>!q(e)&&!J(e),zt=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)),Bt=e=>tn(e,on,Ft),q=e=>xt.test(e),Vt=e=>tn(e,sn,Pt),Ht=e=>tn(e,cn,K),Ut=e=>tn(e,un,Nt),Wt=e=>tn(e,ln,Ft),Gt=e=>tn(e,rn,Ft),Kt=e=>tn(e,an,Lt),qt=e=>tn(e,dn,It),J=e=>St.test(e),Jt=e=>nn(e,sn),Yt=e=>nn(e,ln),Xt=e=>nn(e,rn),Zt=e=>nn(e,on),Qt=e=>nn(e,an),$t=e=>nn(e,dn,!0),en=e=>nn(e,un,!0),tn=(e,t,n)=>{let r=xt.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},nn=(e,t,n=!1)=>{let r=St.exec(e);return r?r[1]?t(r[1]):n:!1},rn=e=>e===`position`||e===`percentage`,an=e=>e===`image`||e===`url`,on=e=>e===`length`||e===`size`||e===`bg-size`,sn=e=>e===`length`,cn=e=>e===`number`,ln=e=>e===`family-name`,un=e=>e===`number`||e===`weight`,dn=e=>e===`shadow`,fn=vt(()=>{let e=bt(`color`),t=bt(`font`),n=bt(`text`),r=bt(`font-weight`),i=bt(`tracking`),a=bt(`leading`),o=bt(`breakpoint`),s=bt(`container`),c=bt(`spacing`),l=bt(`radius`),u=bt(`shadow`),d=bt(`inset-shadow`),f=bt(`text-shadow`),p=bt(`drop-shadow`),m=bt(`blur`),h=bt(`perspective`),g=bt(`aspect`),_=bt(`ease`),v=bt(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),J,q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[J,q,c],T=()=>[kt,`full`,`auto`,...w()],E=()=>[At,`none`,`subgrid`,J,q],ee=()=>[`auto`,{span:[`full`,At,J,q]},At,J,q],D=()=>[At,`auto`,J,q],te=()=>[`auto`,`min`,`max`,`fr`,J,q],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],ie=()=>[kt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[kt,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[kt,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,J,q],oe=()=>[...b(),Xt,Gt,{position:[J,q]}],j=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Zt,Bt,{size:[J,q]}],ce=()=>[jt,Jt,Vt],M=()=>[``,`none`,`full`,l,J,q],N=()=>[``,K,Jt,Vt],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[K,jt,Xt,Gt],I=()=>[``,`none`,m,J,q],L=()=>[`none`,K,J,q],ue=()=>[`none`,K,J,q],R=()=>[K,J,q],de=()=>[kt,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Mt],breakpoint:[Mt],color:[Nt],container:[Mt],"drop-shadow":[Mt],ease:[`in`,`out`,`in-out`],font:[Rt],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Mt],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Mt],shadow:[Mt],spacing:[`px`,K],text:[Mt],"text-shadow":[Mt],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,kt,q,J,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,J,q]}],"container-named":[zt],columns:[{columns:[K,q,J,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[At,`auto`,J,q]}],basis:[{basis:[kt,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[K,kt,`auto`,`initial`,`none`,q]}],grow:[{grow:[``,K,J,q]}],shrink:[{shrink:[``,K,J,q]}],order:[{order:[At,`first`,`last`,`none`,J,q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,Jt,Vt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,en,Ut]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,jt,q]}],"font-family":[{font:[Yt,Wt,t]}],"font-features":[{"font-features":[q]}],"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:[i,J,q]}],"line-clamp":[{"line-clamp":[K,`none`,J,Ht]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,J,q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,J,q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[K,`from-font`,`auto`,J,Vt]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[K,`auto`,J,q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[At,J,q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J,q]}],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`,J,q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},At,J,q],radial:[``,J,q],conic:[At,J,q]},Qt,Kt]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[K,J,q]}],"outline-w":[{outline:[``,K,Jt,Vt]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,$t,qt]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,$t,qt]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[K,Vt]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,$t,qt]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[K,J,q]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"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":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[J,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,J,q]}],filter:[{filter:[``,`none`,J,q]}],blur:[{blur:I()}],brightness:[{brightness:[K,J,q]}],contrast:[{contrast:[K,J,q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,$t,qt]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,K,J,q]}],"hue-rotate":[{"hue-rotate":[K,J,q]}],invert:[{invert:[``,K,J,q]}],saturate:[{saturate:[K,J,q]}],sepia:[{sepia:[``,K,J,q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,J,q]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[K,J,q]}],"backdrop-contrast":[{"backdrop-contrast":[K,J,q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,K,J,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,J,q]}],"backdrop-invert":[{"backdrop-invert":[``,K,J,q]}],"backdrop-opacity":[{"backdrop-opacity":[K,J,q]}],"backdrop-saturate":[{"backdrop-saturate":[K,J,q]}],"backdrop-sepia":[{"backdrop-sepia":[``,K,J,q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,J,q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[K,`initial`,J,q]}],ease:[{ease:[`linear`,`initial`,_,J,q]}],delay:[{delay:[K,J,q]}],animate:[{animate:[`none`,v,J,q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,J,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[J,q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[At,J,q]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"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`,J,q]}],"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":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,J,q]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[K,Jt,Vt,Ht]}],stroke:[{stroke:[`none`,...A()]}],"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 Y(...e){return fn(h(e))}var pn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),mn=V(`<input/>`);function hn(t,n){j(n,!0);let r=W(n,`ref`,15,null),i=W(n,`value`,15),a=W(n,`files`,15),o=W(n,`data-slot`,3,`input`),s=I(n,pn);var c=H(),l=D(c),u=t=>{var c=mn();z(c,e=>({"data-slot":o(),class:e,type:`file`,...s}),[()=>Y(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),T(c,e=>r(e),()=>r()),pe(c,a),e(c,i),R(t,c)},f=t=>{var a=mn();z(a,e=>({"data-slot":o(),class:e,type:n.type,...s}),[()=>Y(`h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50`,n.class)],void 0,void 0,void 0,!0),T(a,e=>r(e),()=>r()),e(a,i),R(t,a)};d(l,e=>{n.type===`file`?e(u):e(f,-1)}),R(t,c),k()}var gn=Array.isArray,_n=e=>{if(!e&&e!==0&&e!==0n)return``;if(typeof e==`string`)return e;if(typeof e==`number`)return e===e?``+e:``;if(typeof e==`bigint`)return``+e;let t=``;if(gn(e)){let n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!n&&n!==0&&n!==0n)continue;let i=typeof n==`string`?n:_n(n);i&&(t&&(t+=` `),t+=i)}return t}if(typeof e==`object`)for(let n in e)e[n]&&(t&&(t+=` `),t+=n);return t},vn=/\s+/g,yn=Array.isArray,bn=e=>typeof e!=`string`||!e?e:e.replace(vn,` `).trim(),xn=e=>{let t=e.length;if(t===0)return!1;let n=e.charCodeAt(0),r=e.charCodeAt(t-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let n=0;n<t;n++){let r=e.charCodeAt(n);if(r>=9&&r<=13||r===160||r===32&&n+1<t&&e.charCodeAt(n+1)===32)return!0}return!1},Sn=(...e)=>{let t=_n(e);if(t)return xn(t)?bn(t):t},Cn=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,wn=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},Tn=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;for(let e=0;e<i.length;e++){let t=i[e];if(!a.includes(t)||n[t]!==r[t])return!1}return!0},En=(e,t)=>{let n=e;for(let e in t)if(Object.hasOwn(t,e)){let r=t[e];n[e]=e in n?Sn(n[e],r):r}return e},Dn=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];yn(r)?Dn(r,t):r&&t.push(r)}},On=(...e)=>{let t=[];Dn(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},kn=(e,t)=>{let n=e,r=t,i={};for(let e in n){let t=n[e];if(e in r){let n=r[e];i[e]=yn(t)||yn(n)?On(n,t):typeof t==`object`&&typeof n==`object`&&t&&n?kn(t,n):n+` `+t}else i[e]=t}for(let e in r)e in n||(i[e]=r[e]);return i},An={twMerge:!0,twMergeConfig:{}},jn=256,Mn=128,Nn=Symbol(`tv-cache-miss`),Pn=e=>e?.class!=null&&e.class!==``||e?.className!=null&&e.className!==``,Fn=e=>{if(e===void 0)return``;if(e===null)return`null`;if(typeof e==`string`)return e;if(typeof e==`boolean`)return e?`true`:`false`;if(typeof e==`number`)return e===0?`0`:String(e);if(typeof e==`bigint`)return String(e);let t=Cn(e),n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return String(t);if(n===`object`)try{return JSON.stringify(t)}catch{return null}return null},In=(e,t)=>{if(t===void 0)return e;if(t===null)return e+`null`;let n=typeof t;if(n===`string`||n===`number`||n===`boolean`||n===`bigint`)return e+String(t);if(Array.isArray(t))return e+t.join(`\0`);try{return e+JSON.stringify(t)}catch{return e+`?`}},Ln=(e,t,n,r)=>{let i=``,a=Object.create(null);for(let r=0;r<e.length;r++){let o=e[r];a[o]=1;let s=t[o];n&&n[o]!==void 0&&(s=n[o]);let c=Fn(s);if(c===null)return null;i+=o+`:`+c+`;`}let o=[];for(let e in t)e===`class`||e===`className`||a[e]||(a[e]=1,o.push(e));if(n)for(let e in n)e===`class`||e===`className`||a[e]||n[e]===void 0||(a[e]=1,o.push(e));o.length>1&&o.sort();for(let e=0;e<o.length;e++){let r=o[e],a=t[r];n&&n[r]!==void 0&&(a=n[r]);let s=Fn(a);if(s===null)return null;i+=r+`:`+s+`;`}return i},Rn=(e,t)=>{let n=``;for(let t=0;t<e.length;t++){let{conditionKeys:r,source:i}=e[t];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=In(n,i[t]),n+=`,`}n+=`c=`,n=In(n,i.class),n+=`|cn=`,n=In(n,i.className),n+=`;`}for(let e=0;e<t.length;e++){let{conditionKeys:r,source:i}=t[e];for(let e=0;e<r.length;e++){let t=r[e];n+=t+`=`,n=In(n,i[t]),n+=`,`}Array.isArray(i.slots)&&(n+=`slots=`+i.slots.join(`,`)+`,`),n+=`c=`,n=In(n,i.class),n+=`|cn=`,n=In(n,i.className),n+=`;`}return n},zn=(e=jn)=>{let t=new Map,n=null;return{get(e){if(t.has(e))return t.get(e);if(n?.has(e)){let r=n.get(e);return t.set(e,r),r}return Nn},set(r,i){t.size>=e&&(n=t,t=new Map),t.set(r,i)}}},Bn=(e=jn)=>{let t=zn(e);return{get(e){return t.get(e)},set(e,n){t.set(e,n)}}},Vn=(e=Mn)=>{let t=new Map,n=null,r=0;return{get(e,i){let a=t.get(e);if(a){let e=a.get(i);if(e!==void 0||a.has(i))return e}if(n){let a=n.get(e);if(a){let n=a.get(i);if(n!==void 0||a.has(i)){let a=t.get(e);return a||(a=new Map,t.set(e,a)),a.has(i)||r++,a.set(i,n),n}}}return Nn},set(i,a,o){r>=e&&(n=t,t=new Map,r=0);let s=t.get(i);s||(s=new Map,t.set(i,s)),s.has(a)||r++,s.set(a,o)}}},Hn=(e,t)=>{let n=null;return(r,i)=>{if(!Pn(i))return r;let a=i.class,o=i.className;if(a!=null&&a!==``&&typeof a!=`string`||o!=null&&o!==``&&typeof o!=`string`)return e(t,r,a,o);n??=Vn();let s=r??``,c=(typeof a==`string`?a:``)+`\0`+(typeof o==`string`?o:``),l=n.get(s,c);if(l!==Nn)return l;let u=e(t,r,a,o);return n.set(s,c,u),u}};function Un(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var Wn=Un(),Gn=e=>{!wn(e.twMergeConfig)&&!Tn(e.twMergeConfig,Wn.cachedTwMergeConfig)&&(Wn.didTwMergeConfigChange=!0,Wn.cachedTwMergeConfig=e.twMergeConfig)},Kn=(e,t)=>{let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e[i];n.push({key:i,values:a,isEmpty:wn(a)})}return n},qn=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},Jn=e=>{if(!Array.isArray(e)||e.length===0)return[];let t=[];for(let n=0;n<e.length;n++){let r=e[n],i=[];for(let e in r)e!==`slots`&&e!==`class`&&e!==`className`&&i.push(e);t.push({conditionKeys:i,source:r})}return t},Yn=e=>{let t={};for(let n=0;n<e.length;n++){let r=e[n],i=r.source.slots;if(Array.isArray(i))for(let e=0;e<i.length;e++){let n=i[e];t[n]||(t[n]=[]),t[n].push(r)}}return t},Xn=(e,t)=>{let{extend:n=null,slots:r={},variants:i={},compoundVariants:a=[],compoundSlots:o=[],defaultVariants:s={}}=e,c={...An,...t},l=e.slots!==void 0,u=n?.base?Sn(n.base,e?.base):e?.base,d=n?.variants&&!wn(n.variants)?kn(i,n.variants):i,f=n?.defaultVariants&&!wn(n.defaultVariants)?{...n.defaultVariants,...s}:s;Gn(c);let p=!n?.slots||wn(n.slots),m=l?p&&n?.base?Sn(e?.base,n.base):typeof e?.base==`string`||e?.base==null?e.base:Sn(e.base):void 0,h=l?{base:m,...r}:{},g=p?h:En({...n?.slots},wn(h)?{base:e?.base}:h),_=!n?.compoundVariants||wn(n.compoundVariants)?a:On(n?.compoundVariants,a),v=!n?.compoundSlots||wn(n.compoundSlots)?o:On(n?.compoundSlots,o),y=Object.keys(d);return{config:c,extend:n,base:u,variants:d,defaultVariants:f,slots:g,compoundVariants:_,compoundSlots:v,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:_&&!Array.isArray(_)?TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof _}`):v&&!Array.isArray(v)?TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`):null,mode:l||!p?`slots`:y.length===0?`plain`:`variants`,slotKeys:null,variantKeys:y}},Zn=e=>(e.compiledVariants===null&&(e.compiledVariants=Kn(e.variants,e.variantKeys),e.compiledCompoundVariants=qn(e.compoundVariants),e.compiledCompoundSlots=Jn(e.compoundSlots),e.compiledCompoundSlotsBySlot=Yn(e.compiledCompoundSlots),e.slotKeys=e.slots&&typeof e.slots==`object`?Object.keys(e.slots):[]),e),Qn=[],$n=[],er=[],tr=[],nr=[],rr=(e,t,n)=>{let r={};for(let t in e)r[t]=e[t];if(t)for(let e in t)t[e]!==void 0&&(r[e]=t[e]);if(n)for(let e in n)n[e]!==void 0&&(r[e]=n[e]);return r},ir=e=>e==null||e===!1,ar=(e,t)=>{if(!Array.isArray(e))return e===t||ir(e)&&ir(t);for(let n=0;n<e.length;n++){let r=e[n];if(r===t||ir(r)&&ir(t))return!0}return!1},or=(e,t,n,r)=>{if(e.isEmpty)return null;let i=r?.[e.key]??n?.[e.key];if(i===null)return null;let a=Cn(i);if(typeof a==`object`)return null;let o=t?.[e.key],s=a??Cn(o);return e.values[s||`false`]},sr=(e,t)=>{let{conditionKeys:n,source:r}=e;for(let e=0;e<n.length;e++){let i=n[e];if(!ar(r[i],t[i]))return!1}return!0},cr=(e,t,n)=>{typeof n==`string`?t===`base`&&e.push(n):n&&typeof n==`object`&&n[t]&&e.push(n[t])},lr=(e,t,n)=>{let r=$n;r.length=0;for(let i=0;i<e.length;i++){let a=or(e[i],t,n);a&&r.push(a)}return r},ur=(e,t,n,r,i)=>{let a=$n;a.length=0;for(let o=0;o<t.length;o++){let s=or(t[o],n,r,i),c=e===`base`&&typeof s==`string`?s:s&&s[e];c&&a.push(c)}return a},dr=(e,t)=>{let n=er;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];sr(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},fr=(e,t,n)=>{let r=tr;r.length=0;for(let i=0;i<t.length;i++){let a=t[i];sr(a,n)&&(cr(r,e,a.source.class),cr(r,e,a.source.className))}return r},pr=(e,t)=>{let n=nr;n.length=0;for(let r=0;r<e.length;r++){let i=e[r];sr(i,t)&&(i.source.class&&n.push(i.source.class),i.source.className&&n.push(i.source.className))}return n},mr=(e,t)=>{let{base:n,config:r}=e,i=Nn,a=Hn(t,r);return(e=>(i===Nn&&(i=t(r,n)),a(i,e)))},hr=(e,t)=>{let{base:n,config:r,defaultVariants:i,deferredError:a,variantKeys:o}=e,s=e.compiledCompoundVariants,c=e.compiledVariants,l=Qn,u=null,d=Hn(t,r),f=1,p=e=>{let a=s.length>0?dr(s,rr(i,e)):void 0;return t(r,n,lr(c,i,e),a)};return(t=>{if(a)throw a;(c===null||s===null)&&(Zn(e),c=e.compiledVariants,s=e.compiledCompoundVariants,l=e.compiledCompoundSlots??Qn);let n;if(f>0)f--,n=p(t);else{u??=Bn();let e=Ln(o,i,t);if(e!==null){let r=s.length>0||l.length>0?Rn(s,l):``,i=e+`#`+r,a=u.get(i);a===Nn?(n=p(t),u.set(i,n)):n=a}else n=p(t)}return d(n,t)})},gr=(e,t)=>{let{config:n,defaultVariants:r,deferredError:i,slots:a,variantKeys:o}=e,s=null,c=null,l=null,u=null,d=!1,f=null,p=null,m=1,h=()=>{if(l!==null)return;(e.compiledVariants===null||e.compiledCompoundVariants===null||e.compiledCompoundSlots===null||e.compiledCompoundSlotsBySlot===null||e.slotKeys===null)&&Zn(e);let i=e.compiledVariants;s=e.compiledCompoundVariants,c=e.compiledCompoundSlots;let o=e.compiledCompoundSlotsBySlot;l=e.slotKeys,d=s.length>0||c.length>0,f=Hn(t,n);let p=Array(l.length);for(let e=0;e<l.length;e++){let c=l[e],u=o[c]??Qn;p[e]=(e,o)=>{let l=d?rr(r,e,o):void 0,f=l?fr(c,s,l):void 0,p=l?pr(u,l):void 0;return t(n,a[c],ur(c,i,r,e,o),f,p)}}u=p},g=e=>{let t=l,n=u,r=f,i={};for(let a=0;a<t.length;a++){let o=n[a],s=o(e);i[t[a]]=t=>{if(t==null)return s;let n=!1;for(let e in t)if(e!==`class`&&e!==`className`&&t[e]!==void 0){n=!0;break}return r(n?o(e,t):s,t)}}return i};return(e=>{if(i)throw i;if(h(),m>0)return m--,g(e);let t=Ln(o,r,e);if(t===null)return g(e);let n=d?Rn(s,c):``,a=t+`#`+n;p??=zn();let l=p.get(a);if(l!==Nn)return l;let u=g(e);return p.set(a,u),u})},_r=(e,t)=>{if(e.mode===`plain`)return mr(e,t);let n;return(r=>(n??=e.mode===`slots`?gr(e,t):hr(e,t),n(r)))},vr=(e,t)=>{e.variantKeys=t.variantKeys,e.extend=t.extend,e.base=t.base,e.slots=t.slots,e.variants=t.variants,e.defaultVariants=t.defaultVariants,e.compoundSlots=t.compoundSlots,e.compoundVariants=t.compoundVariants},yr=e=>{let t=(t,n)=>{let r=Xn(t,n),i=_r(r,e);return vr(i,r),i};return{tv:t,createTV:e=>(n,r)=>t(n,r?kn(e,r):e)}},br=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},xr=(e,t)=>({classGroupId:e,validator:t}),Sr=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Cr=`-`,wr=[],Tr=`arbitrary..`,Er=e=>{let t=kr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return Or(e);let n=e.split(Cr);return Dr(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?br(i,t):t:i||wr}return n[e]||wr}}},Dr=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Dr(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Cr):e.slice(t).join(Cr),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Or=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?Tr+r:void 0},kr=e=>{let{theme:t,classGroups:n}=e;return Ar(n,t)},Ar=(e,t)=>{let n=Sr();for(let r in e){let i=e[r];jr(i,n,r,t)}return n},jr=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Mr(i,t,n,r)}},Mr=(e,t,n,r)=>{typeof e==`string`?Nr(e,t,n):typeof e==`function`?Pr(e,t,n,r):Fr(e,t,n,r)},Nr=(e,t,n)=>{let r=e===``?t:Ir(t,e);r.classGroupId=n},Pr=(e,t,n,r)=>{Lr(e)?jr(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(xr(n,e)))},Fr=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];jr(o,Ir(t,a),n,r)}},Ir=(e,t)=>{let n=e,r=t.split(Cr),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Sr(),n.nextPart.set(t,i)),n=i}return n},Lr=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Rr=`!`,zr=58,Br=47,Vr=91,Hr=93,Ur=40,Wr=41,Gr=33,Kr=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),qr=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===zr){t.push(e.slice(i,s)),i=s+1;continue}if(o===Br){a=s;continue}}o===Vr?n++:o===Hr?n--:o===Ur?r++:o===Wr&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===Gr?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===Gr&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return Kr(t,l,c,d)},Jr=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},Yr={isExternal:!0,classId:-1,conflictIds:[]},Xr=4096,Zr=16384,Qr=e=>{let t=Jr(e),n=$r(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=Er(e),a=Object.create(null),o=Object.create(null),s=0,c=new Int32Array(256),l=0,u=new Uint8Array(64),d=!1,f=e=>{let t=[],n=e.length,r=-1;d=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(d=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},p=new Map,m=0,h=e=>{let t=p.get(e);if(t===void 0&&(t=m++,p.set(e,t),t>=c.length)){let e=new Int32Array(c.length*2);e.set(c),c=e}return t},g=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=qr(e);if(a)return Yr;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return Yr;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+Rr:f,m=i(d,u),g=[];for(let e=0;e<m.length;e++)g.push(h(p+m[e]));return{isExternal:!1,classId:h(p+d),conflictIds:g}},_=e=>{let t=a[e];return t===void 0&&(t=o[e],t===void 0&&(t=g(e)),a[e]=t,++s>Xr&&(s=0,o=a,a=Object.create(null))),t};return{parseClassName:qr,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:_,mergeClassList:e=>{let t=f(e),n=t.length;if(n===1)return t[0];m>Zr&&(p.clear(),m=0,a=Object.create(null),o=Object.create(null),s=0),l=l+1|0,l===0&&(l=1);let r=l;if(n>u.length){let e=u.length;for(;e<n;)e*=2;u=new Uint8Array(e)}let i=!1,h=0;for(let e=n-1;e>=0;--e){let n=t[e];h+=n.length;let a=_(n);if(a.isExternal){u[e]=1;continue}let o=a.classId;if(c[o]===r){u[e]=0,i=!0;continue}c[o]=r;let s=a.conflictIds;for(let e=0;e<s.length;e++)c[s[e]]=r;u[e]=1}if(!i&&!d&&e.length===h+n-1)return e;let g=``;for(let e=0;e<n;e++)u[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},$r=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ei=500,ti=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=Qr(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0&&(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>ei&&(a=0,i=r,r=Object.create(null))),t},c=(...e)=>c.mergeString(_n(e));return c.mergeString=o,c},ni=[],ri=e=>{let t=t=>t[e]||ni;return t.isThemeGetter=!0,t},ii=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ai=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oi=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,si=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ci=/\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$/,li=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ui=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,di=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fi=Number,pi=Number.isNaN,mi=Number.isInteger,hi=e=>oi.test(e),X=e=>!!e&&!pi(fi(e)),gi=e=>!!e&&mi(fi(e)),_i=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),vi=e=>si.test(e),yi=()=>!0,bi=e=>ci.test(e)&&!li.test(e),xi=()=>!1,Si=e=>ui.test(e),Ci=e=>di.test(e),wi=e=>!Z(e)&&!Q(e),Ti=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)),Ei=e=>Vi(e,Gi,xi),Z=e=>ii.test(e),Di=e=>Vi(e,Ki,bi),Oi=e=>Vi(e,qi,X),ki=e=>Vi(e,Yi,yi),Ai=e=>Vi(e,Ji,xi),ji=e=>Vi(e,Ui,xi),Mi=e=>Vi(e,Wi,Ci),Ni=e=>Vi(e,Xi,Si),Q=e=>ai.test(e),Pi=e=>Hi(e,Ki),Fi=e=>Hi(e,Ji),Ii=e=>Hi(e,Ui),Li=e=>Hi(e,Gi),Ri=e=>Hi(e,Wi),zi=e=>Hi(e,Xi,!0),Bi=e=>Hi(e,Yi,!0),Vi=(e,t,n)=>{let r=ii.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Hi=(e,t,n=!1)=>{let r=ai.exec(e);return r?r[1]?t(r[1]):n:!1},Ui=e=>e===`position`||e===`percentage`,Wi=e=>e===`image`||e===`url`,Gi=e=>e===`length`||e===`size`||e===`bg-size`,Ki=e=>e===`length`,qi=e=>e===`number`,Ji=e=>e===`family-name`,Yi=e=>e===`number`||e===`weight`,Xi=e=>e===`shadow`,Zi=()=>{let e=ri(`color`),t=ri(`font`),n=ri(`text`),r=ri(`font-weight`),i=ri(`tracking`),a=ri(`leading`),o=ri(`breakpoint`),s=ri(`container`),c=ri(`spacing`),l=ri(`radius`),u=ri(`shadow`),d=ri(`inset-shadow`),f=ri(`text-shadow`),p=ri(`drop-shadow`),m=ri(`blur`),h=ri(`perspective`),g=ri(`aspect`),_=ri(`ease`),v=ri(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[hi,`full`,`auto`,...w()],E=()=>[gi,`none`,`subgrid`,Q,Z],ee=()=>[`auto`,{span:[`full`,gi,Q,Z]},gi,Q,Z],D=()=>[gi,`auto`,Q,Z],te=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ne=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],re=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],O=()=>[`auto`,...w()],ie=()=>[hi,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[hi,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[hi,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,Q,Z],oe=()=>[...b(),Ii,ji,{position:[Q,Z]}],j=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],se=()=>[`auto`,`cover`,`contain`,Li,Ei,{size:[Q,Z]}],ce=()=>[_i,Pi,Di],M=()=>[``,`none`,`full`,l,Q,Z],N=()=>[``,X,Pi,Di],P=()=>[`solid`,`dashed`,`dotted`,`double`],le=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],F=()=>[X,_i,Ii,ji],I=()=>[``,`none`,m,Q,Z],L=()=>[`none`,X,Q,Z],ue=()=>[`none`,X,Q,Z],R=()=>[X,Q,Z],de=()=>[hi,`full`,...w()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[vi],breakpoint:[vi],color:[yi],container:[vi],"drop-shadow":[vi],ease:[`in`,`out`,`in-out`],font:[wi],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[vi],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[vi],shadow:[vi],spacing:[`px`,X],text:[vi],"text-shadow":[vi],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,hi,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Ti],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[gi,`auto`,Q,Z]}],basis:[{basis:[hi,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,hi,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[gi,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ne(),`normal`]}],"justify-items":[{"justify-items":[...re(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...re()]}],"align-content":[{content:[`normal`,...ne()]}],"align-items":[{items:[...re(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...re(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...re(),`baseline`]}],"place-self":[{"place-self":[`auto`,...re()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ie()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...ie()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ie()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ie()]}],h:[{h:[`screen`,`lh`,...ie()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ie()]}],"max-h":[{"max-h":[`screen`,`lh`,...ie()]}],"font-size":[{text:[`base`,n,Pi,Di]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Bi,ki]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,_i,Z]}],"font-family":[{font:[Fi,Ai,t]}],"font-features":[{"font-features":[Z]}],"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:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,Oi]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...P(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,Di]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[gi,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],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`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:se()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},gi,Q,Z],radial:[``,Q,Z],conic:[gi,Q,Z]},Ri,Mi]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:M()}],"rounded-s":[{"rounded-s":M()}],"rounded-e":[{"rounded-e":M()}],"rounded-t":[{"rounded-t":M()}],"rounded-r":[{"rounded-r":M()}],"rounded-b":[{"rounded-b":M()}],"rounded-l":[{"rounded-l":M()}],"rounded-ss":[{"rounded-ss":M()}],"rounded-se":[{"rounded-se":M()}],"rounded-ee":[{"rounded-ee":M()}],"rounded-es":[{"rounded-es":M()}],"rounded-tl":[{"rounded-tl":M()}],"rounded-tr":[{"rounded-tr":M()}],"rounded-br":[{"rounded-br":M()}],"rounded-bl":[{"rounded-bl":M()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-bs":[{"border-bs":N()}],"border-w-be":[{"border-be":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":N()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...P(),`hidden`,`none`]}],"divide-style":[{divide:[...P(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...P(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,Pi,Di]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`none`,u,zi,Ni]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,zi,Ni]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:N()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[X,Di]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,zi,Ni]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...le(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":le()}],"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":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:I()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,zi,Ni]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":I()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:L()}],"rotate-x":[{"rotate-x":L()}],"rotate-y":[{"rotate-y":L()}],"rotate-z":[{"rotate-z":L()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:R()}],"skew-x":[{"skew-x":R()}],"skew-y":[{"skew-y":R()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:de()}],"translate-x":[{"translate-x":de()}],"translate-y":[{"translate-y":de()}],"translate-z":[{"translate-z":de()}],"translate-none":[`translate-none`],zoom:[{zoom:[gi,Q,Z]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"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`,Q,Z]}],"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":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,Q,Z]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[X,Pi,Di,Oi]}],stroke:[{stroke:[`none`,...A()]}],"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`]}},Qi=(e,{extend:t={},override:n={}})=>(ea(e.theme,n.theme),ea(e.classGroups,n.classGroups),ea(e.conflictingClassGroups,n.conflictingClassGroups),ea(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),$i(e,`postfixLookupClassGroups`,n.postfixLookupClassGroups),$i(e,`orderSensitiveModifiers`,n.orderSensitiveModifiers),ta(e.theme,t.theme),ta(e.classGroups,t.classGroups),ta(e.conflictingClassGroups,t.conflictingClassGroups),ta(e.conflictingClassGroupModifiers,t.conflictingClassGroupModifiers),na(e,t,`postfixLookupClassGroups`),na(e,t,`orderSensitiveModifiers`),e),$i=(e,t,n)=>{n!==void 0&&(e[t]=n)},ea=(e,t)=>{if(t)for(let n in t)$i(e,n,t[n])},ta=(e,t)=>{if(t)for(let n in t)na(e,t,n)},na=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},ra=e=>ti(e?typeof e==`function`?()=>e(Zi()):()=>Qi(Zi(),e):Zi),ia=e=>{if(wn(e))return;let t=e,n={...t.extend??{}};for(let e of[`theme`,`classGroups`,`conflictingClassGroups`,`conflictingClassGroupModifiers`,`postfixLookupClassGroups`,`orderSensitiveModifiers`,`cacheSize`,`prefix`,`separator`,`experimentalParseClassName`])t[e]!==void 0&&n[e]===void 0&&(n[e]=t[e]);let r={};if(Object.keys(n).length>0&&(r.extend=n),t.override!=null&&!wn(t.override)&&(r.override=t.override),r.extend||r.override)return r},aa=e=>{let t=ra(ia(e));return e=>t.mergeString(e)},oa,sa=()=>(oa||=ra(),oa),ca=()=>((!Wn.cachedTwMerge||Wn.didTwMergeConfigChange)&&(Wn.didTwMergeConfigChange=!1,Wn.cachedTwMerge=aa(Wn.cachedTwMergeConfig)),Wn.cachedTwMerge),la=e=>{let t=e?.twMergeConfig;t&&!wn(t)&&(Tn(t,Wn.cachedTwMergeConfig)||(Wn.cachedTwMergeConfig=t,Wn.didTwMergeConfigChange=!0))},ua=e=>_n(e);(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})();var da=Wn.reset.bind(Wn);Wn.reset=()=>{oa=void 0,da()};var fa=(e,t)=>{let n=ua(e);return!n||!(t?.twMerge??!0)?n||void 0:n.indexOf(` `)===-1?n:(la(t),(t?.twMergeConfig&&!wn(t.twMergeConfig)?ca():sa().mergeString)(n)||void 0)},pa=yr((e,...t)=>fa(t,e)),ma=pa.tv;pa.createTV;var ha=ma({base:`rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),ga=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`size`,`ref`,`href`,`type`,`disabled`,`children`]),_a=V(`<a><!></a>`),va=V(`<button><!></button>`);function ya(e,t){j(t,!0);let n=W(t,`variant`,3,`default`),r=W(t,`size`,3,`default`),i=W(t,`ref`,15,null),a=W(t,`href`,3,void 0),o=W(t,`type`,3,`button`),s=I(t,ga);var c=H(),l=D(c),u=e=>{var o=_a();z(o,e=>({"data-slot":`button`,class:e,href:t.disabled?void 0:a(),"aria-disabled":t.disabled,role:t.disabled?`link`:void 0,tabindex:t.disabled?-1:void 0,...s}),[()=>Y(ha({variant:n(),size:r()}),t.class)]);var c=w(o);_(c,()=>t.children??M),G(o),T(o,e=>i(e),()=>i()),R(e,o)},f=e=>{var a=va();z(a,e=>({"data-slot":`button`,class:e,type:o(),disabled:t.disabled,...s}),[()=>Y(ha({variant:n(),size:r()}),t.class)]);var c=w(a);_(c,()=>t.children??M),G(a),T(a,e=>i(e),()=>i()),R(e,a)};d(l,e=>{a()?e(u):e(f,-1)}),R(e,c),k()}var ba=new Set([`$$slots`,`$$events`,`$$legacy`,`direction`,`class`]),xa=V(`<div></div>`);function Sa(e,t){let n=I(t,ba),r=ke&&Ae&&!(De||Me);var i=xa();z(i,()=>({class:[`bg-background/80`,t.direction===`bottom`?`mask-[linear-gradient(to_bottom,transparent_0%,black_2rem)]`:`mask-[linear-gradient(to_top,transparent_0%,black_2rem)]`,r&&`hidden`,t.class],...n})),R(e,i)}var Ca=V(`<div><div class="flex-1 flex flex-col space-y-5 pt-2 tim:pt-0"><!> <!></div></div>`);function wa(e,t){j(t,!0);let n=W(t,`unsafe`,3,!1),r=W(t,`underlay`,3,!0),i=B(()=>ke&&Ae&&(De||Me)&&r());var a=Ca(),o=w(a),s=w(o),c=e=>{Sa(e,{direction:`top`,class:`fixed z-50 w-full top-0 h-[max(env(safe-area-inset-top),1rem)]`})};d(s,e=>{L(i)&&e(c)});var u=g(s,2);_(u,()=>t.children),G(o),G(a),P(e=>ee(a,1,e),[()=>l(Y(`flex flex-col`,De&&Ae?`min-h-screen`:`min-h-dvh`,n()||`pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] pr-[env(safe-area-inset-right)]`,t.class))]),R(e,a),k()}var Ta=he([]);he([]),ue(Ta,(e,t)=>{let n=e.at(-1)??null;if(n===null||n.active===void 0)t(!1);else return n.active.subscribe(t)},!1);function Ea(e){return typeof e==`function`}function Da(e){return typeof e==`object`&&!!e}var Oa=[`string`,`number`,`bigint`,`boolean`];function ka(e){return e==null||Oa.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>ka(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var Aa=Symbol(`box`),ja=Symbol(`is-writable`);function $(e,t){let n=B(e);return t?{[Aa]:!0,[ja]:!0,get current(){return L(n)},set current(e){t(e)}}:{[Aa]:!0,get current(){return e()}}}function Ma(e){return Da(e)&&Aa in e}function Na(e){return Ma(e)&&ja in e}function Pa(e){return Ma(e)?e:Ea(e)?$(e):La(e)}function Fa(e){return Object.entries(e).reduce((e,[t,n])=>Ma(n)?(Na(n)?Object.defineProperty(e,t,{get(){return n.current},set(e){n.current=e}}):Object.defineProperty(e,t,{get(){return n.current}}),e):Object.assign(e,{[t]:n}),{})}function Ia(e){return Na(e)?{[Aa]:!0,get current(){return e.current}}:e}function La(e){let t=E(x(e));return{[Aa]:!0,[ja]:!0,get current(){return L(t)},set current(e){c(t,e,!0)}}}function Ra(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var za=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ba=/\n/g,Va=/^\s*/,Ha=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ua=/^:\s*/,Wa=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ga=/^[;\s]*/,Ka=/^\s+|\s+$/g,qa=`
|
|
2
|
+
`,Ja=`/`,Ya=`*`,Xa=``,Za=`comment`,Qa=`declaration`;function $a(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Ba);t&&(n+=t.length);var i=e.lastIndexOf(qa);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Va)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(Ja==e.charAt(0)&&Ya==e.charAt(1)){for(var n=2;Xa!=e.charAt(n)&&(Ya!=e.charAt(n)||Ja!=e.charAt(n+1));)++n;if(n+=2,Xa===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Za,comment:o})}}function f(){var e=a(),t=c(Ha);if(t){if(d(),!c(Ua))return s(`property missing ':'`);var n=c(Wa),r=e({type:Qa,property:eo(t[0].replace(za,Xa)),value:n?eo(n[0].replace(za,Xa)):Xa});return c(Ga),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function eo(e){return e?e.replace(Ka,Xa):Xa}function to(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=$a(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var no=/\d/,ro=[`-`,`_`,`/`,`.`];function io(e=``){if(!no.test(e))return e!==e.toLowerCase()}function ao(e){let t=[],n=``,r,i;for(let a of e){let e=ro.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=io(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function oo(e){return e?ao(e).map(e=>co(e)).join(``):``}function so(e){return lo(oo(e||``))}function co(e){return e?e[0].toUpperCase()+e.slice(1):``}function lo(e){return e?e[0].toLowerCase()+e.slice(1):``}function uo(e){if(!e)return{};let t={};function n(e,n){e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)?t[oo(e)]=n:e.startsWith(`--`)?t[e]=n:t[so(e)]=n}return to(e,n),t}function fo(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function po(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var mo=po(/[A-Z]/,e=>`-${e.toLowerCase()}`);function ho(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${mo(t)}: ${e[t]};`).join(`
|
|
3
|
+
`)}function go(e={}){return ho(e).replace(`
|
|
4
|
+
`,` `)}var _o=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function vo(e){return _o.has(e)}function yo(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&typeof o&&vo(e))t[e]=Ra(n,i);else if(a&&o)t[e]=fo(n,i);else if(e===`class`){let r=ka(n),a=ka(i);r&&a?t[e]=h(n,i):r?t[e]=h(n):a&&(t[e]=h(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=uo(i);t[e]={...n,...r}}else if(o&&a)t[e]={...uo(n),...i};else if(o&&s){let r=uo(n),a=uo(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=go(t.style).replaceAll(`
|
|
5
|
+
`,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var bo=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function xo(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var So=[`forEach`,`isDisjointFrom`,`isSubsetOf`,`isSupersetOf`],Co=[`difference`,`intersection`,`symmetricDifference`,`union`],wo=!1,To=class e extends Set{#e=new Map;#t=E(0);#n=E(0);#r=Se||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#n.v=super.size}wo||this.#a()}#i(e){return Se===this.#r?E(e):o(e)}#a(){wo=!0;var t=e.prototype,n=Set.prototype;for(let e of So)t[e]=function(...t){return L(this.#t),n[e].apply(this,t)};for(let r of Co)t[r]=function(...t){L(this.#t);var i=n[r].apply(this,t);return new e(i)}}has(e){var t=super.has(e),n=this.#e,r=n.get(e);if(r===void 0){if(!t)return L(this.#t),!1;r=this.#i(!0),n.set(e,r)}return L(r),t}add(e){return super.has(e)||(super.add(e),c(this.#n,super.size),O(this.#t)),this}delete(e){var t=super.delete(e),n=this.#e,r=n.get(e);return r!==void 0&&(n.delete(e),c(r,!1)),t&&(c(this.#n,super.size),O(this.#t)),t}clear(){if(super.size!==0){super.clear();var e=this.#e;for(var t of e.values())c(t,!1);e.clear(),c(this.#n,0),O(this.#t)}}keys(){return this.values()}values(){return L(this.#t),super.values()}entries(){return L(this.#t),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return L(this.#n)}},Eo=class extends Map{#e=new Map;#t=E(0);#n=E(0);#r=Se||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return Se===this.#r?E(e):o(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return L(this.#t),!1}return L(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{L(this.#t);return}}return L(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),c(this.#n,super.size),O(o);else if(i!==t){O(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&O(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),c(n,-1)),r&&(c(this.#n,super.size),O(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;c(this.#n,0);for(var t of e.values())c(t,-1);O(this.#t),e.clear()}}#a(){L(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)L(n)}keys(){return L(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return L(this.#n),super.size}};new class{#e;#t;constructor(e={}){let{window:t=bo,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=ye(e=>{let n=me(t,`focusin`,e),r=me(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?xo(this.#e):null}};function Do(e){return typeof e==`function`}var Oo=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return m(this.#t)}get(){let e=A(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=A(this.#t);return t===void 0?e:t}set(e){return f(this.#t,e)}};function ko(e,t){switch(e){case`post`:be(t);break;case`pre`:Ce(t)}}function Ao(e,t,n,r={}){let{lazy:i=!1}=r,o=!i,s=Array.isArray(e)?[]:void 0;ko(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!o){o=!0,s=t;return}let r=a(()=>n(t,s));return s=t,r})}function jo(e,t,n){Ao(e,`post`,t,n)}function Mo(e,t,n){Ao(e,`pre`,t,n)}jo.pre=Mo;function No(e){return Do(e)?e():e}var Po=class{#e={width:0,height:0};#t=!1;#n;#r;#i;#a=B(()=>(L(this.#s)?.(),this.getSize().width));#o=B(()=>(L(this.#s)?.(),this.getSize().height));#s=B(()=>{let e=No(this.#r);if(e)return ye(t=>{if(!this.#i)return;let n=new this.#i.ResizeObserver(e=>{this.#t=!0;for(let t of e){let e=this.#n.box===`content-box`?t.contentBoxSize:t.borderBoxSize,n=Array.isArray(e)?e:[e];this.#e.width=n.reduce((e,t)=>Math.max(e,t.inlineSize),0),this.#e.height=n.reduce((e,t)=>Math.max(e,t.blockSize),0)}t()});return n.observe(e),()=>{this.#t=!1,n.disconnect()}})});constructor(e,t={box:`border-box`}){this.#i=t.window??bo,this.#n=t,this.#r=e,this.#e={width:0,height:0}}calculateSize(){let e=No(this.#r);if(!e||!this.#i)return;let t=e.offsetWidth,n=e.offsetHeight;if(this.#n.box===`border-box`)return{width:t,height:n};let r=this.#i.getComputedStyle(e),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),a=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),o=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),s=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth);return{width:t-i-o,height:n-a-s}}getSize(){return this.#t?this.#e:this.calculateSize()??this.#e}get current(){return L(this.#s)?.(),this.getSize()}get width(){return L(this.#a)}get height(){return L(this.#o)}},Fo=class{#e=()=>void 0;#t=B(()=>this.#e());constructor(e,t){let n;t!==void 0&&(n=t),this.#e=()=>{try{return n}finally{n=e()}}}get current(){return L(this.#t)}};function Io(e){be(()=>()=>{e()})}function Lo(e){be(()=>a(()=>e()))}function Ro(e,t){return setTimeout(t,e)}function zo(e){re().then(e)}var Bo=1,Vo=9,Ho=11;function Uo(e){return Da(e)&&e.nodeType===Bo&&typeof e.nodeName==`string`}function Wo(e){return Da(e)&&e.nodeType===Vo}function Go(e){return Da(e)&&e.constructor?.name===`VisualViewport`}function Ko(e){return Da(e)&&e.nodeType!==void 0}function qo(e){return Ko(e)&&e.nodeType===Ho&&`host`in e}function Jo(e,t){if(!e||!t||!Uo(e)||!Uo(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&qo(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Yo(e){return Wo(e)?e:Go(e)?e.document:e?.ownerDocument??document}function Xo(e){return qo(e)?Xo(e.host):Wo(e)?e.defaultView??window:Uo(e)?e.ownerDocument?.defaultView??window:window}function Zo(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Qo=class{element;#e=B(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return L(this.#e)}set root(e){c(this.#e,e)}constructor(e){this.element=typeof e==`function`?$(e):e}getDocument=()=>Yo(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Zo(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function $o(e,t){return{[y()]:n=>Ma(e)?(e.current=n,a(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),a(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function es(e){return e?`true`:`false`}function ts(e){return e?`true`:void 0}function ns(e){return e?``:void 0}function rs(e){return e?!0:void 0}function is(e){return e?`open`:`closed`}function as(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}var os=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function ss(e){let t=new os(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var cs=`ArrowDown`,ls=`ArrowLeft`,us=`ArrowRight`,ds=`ArrowUp`,fs=`Enter`,ps=`Home`,ms=`PageDown`,hs=`PageUp`,gs=typeof document<`u`,_s=vs();function vs(){return gs&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function ys(e){return e instanceof HTMLElement}function bs(e){return e instanceof Element}function xs(e){return e instanceof Element||e instanceof SVGElement}function Ss(e){return e.matches(`:focus-visible`)}function Cs(e){return e!==null}var ws=class{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,Io(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();let t=this.#e.ref.current;if(!t)return;if(typeof t.getAnimations!=`function`){this.#a(e);return}let n=this.#r,r=()=>{n===this.#r&&this.#a(e)},i=()=>{if(n!==this.#r)return;let e=t.getAnimations();e.length===0?r():Promise.all(e.map(e=>e.finished)).then(()=>{r()}).catch(()=>{n===this.#r&&(t.getAnimations().some(e=>e.pending||e.playState!==`finished`)?i():r())})},a=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,i()})};this.#e.afterTick.current?this.#t=window.requestAnimationFrame(()=>{this.#t=null;let e=`data-starting-style`;t.hasAttribute(e)?(this.#n=new MutationObserver(()=>{n===this.#r&&(t.hasAttribute(e)||(this.#n?.disconnect(),this.#n=null,a()))}),this.#n.observe(t,{attributes:!0,attributeFilter:[e]})):a()}):a()}#a(e){let t=()=>{e()};this.#e.afterTick?zo(t):t()}},Ts=class{#e;#t;#n;#r=E(!1);#i=E(void 0);#a=!1;#o=null;constructor(e){this.#e=e,c(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new ws({ref:this.#e.ref,afterTick:this.#e.open}),Io(()=>this.#s()),jo(()=>this.#e.open.current,e=>{this.#a?(this.#s(),!e&&this.#e.shouldSkipExitAnimation?.()?(c(this.#r,!1),c(this.#i,void 0),this.#e.onComplete?.()):(e&&c(this.#r,!0),c(this.#i,e?`starting`:`ending`,!0),e&&(this.#o=window.requestAnimationFrame(()=>{this.#o=null,this.#e.open.current&&c(this.#i,void 0)})),this.#t?this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||c(this.#r,!1),c(this.#i,void 0),this.#e.onComplete?.())}):(e||c(this.#r,!1),c(this.#i,void 0),this.#e.onComplete?.()))):this.#a=!0})}get shouldRender(){return L(this.#r)}get transitionStatus(){return L(this.#i)}#s(){this.#o!==null&&(window.cancelAnimationFrame(this.#o),this.#o=null)}};function Es(){}function Ds(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var Os=ss({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),ks=new Oo(`Dialog.Root | AlertDialog.Root`),As=class e{static create(t){let n=ks.getOr(null);return ks.set(new e(t,n))}opts;#e=E(null);get triggerNode(){return L(this.#e)}set triggerNode(e){c(this.#e,e,!0)}#t=E(null);get contentNode(){return L(this.#t)}set contentNode(e){c(this.#t,e,!0)}#n=E(null);get overlayNode(){return L(this.#n)}set overlayNode(e){c(this.#n,e,!0)}#r=E(null);get descriptionNode(){return L(this.#r)}set descriptionNode(e){c(this.#r,e,!0)}#i=E(void 0);get contentId(){return L(this.#i)}set contentId(e){c(this.#i,e,!0)}#a=E(void 0);get titleId(){return L(this.#a)}set titleId(e){c(this.#a,e,!0)}#o=E(void 0);get triggerId(){return L(this.#o)}set triggerId(e){c(this.#o,e,!0)}#s=E(void 0);get descriptionId(){return L(this.#s)}set descriptionId(e){c(this.#s,e,!0)}#c=E(null);get cancelNode(){return L(this.#c)}set cancelNode(e){c(this.#c,e,!0)}#l=E(0);get nestedOpenCount(){return L(this.#l)}set nestedOpenCount(e){c(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ts({ref:$(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ts({ref:$(()=>this.overlayNode),open:this.opts.open,enabled:!0}),jo(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Io(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>Os.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=B(()=>({"data-state":is(this.opts.open.current)}));get sharedProps(){return L(this.#u)}set sharedProps(e){c(this.#u,e)}},js=class e{static create(t){return new e(t,ks.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref,e=>{this.root.triggerNode=e,this.root.triggerId=e?.id}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleOpen())}#e=B(()=>({id:this.opts.id.current,"aria-haspopup":`dialog`,"aria-expanded":es(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.getBitsAttr(`trigger`)]:``,onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}},Ms=class e{static create(t){return new e(t,ks.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=$o(this.opts.ref),jo.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=B(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}},Ns=class e{static create(t){return new e(t,ks.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){c(this.#e,e)}#t=B(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":ns(this.root.nestedOpenCount>0),"data-nested":ns(this.root.parent!==null),...as(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){c(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},Ps=class e{static create(t){return new e(t,ks.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref,e=>this.root.overlayNode=e)}#e=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){c(this.#e,e)}#t=B(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ns(this.root.nestedOpenCount>0),"data-nested":ns(this.root.parent!==null),...as(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return L(this.#t)}set props(e){c(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},Fs=class e{static create(t){return new e(t,ks.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref,e=>this.root.cancelNode=e),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=B(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`cancel`)]:``,onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,disabled:this.opts.disabled.current,...this.root.sharedProps,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}};function Is(e,t){j(t,!0);let n=W(t,`open`,15,!1),r=W(t,`onOpenChange`,3,Es),i=W(t,`onOpenChangeComplete`,3,Es);As.create({variant:$(()=>`alert-dialog`),open:$(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:$(()=>i())});var a=H(),o=D(a);_(o,()=>t.children??M),R(e,a),k()}var Ls=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),Rs=V(`<div><!></div>`);function zs(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`level`,3,2),o=I(t,Ls),s=Ms.create({id:$(()=>r()),level:$(()=>a()),ref:$(()=>i(),e=>i(e))}),c=B(()=>yo(o,s.props));var l=H(),u=D(l),f=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(c)})),R(e,n)},p=e=>{var n=Rs();z(n,()=>({...L(c)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(u,e=>{t.child?e(f):e(p,-1)}),R(e,l),k()}var Bs=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Vs=V(`<button><!></button>`);function Hs(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`disabled`,3,!1),o=I(t,Bs),s=Fs.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e)),disabled:$(()=>!!a())}),c=B(()=>yo(o,s.props));var l=H(),u=D(l),f=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(c)})),R(e,n)},p=e=>{var n=Vs();z(n,()=>({...L(c)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(u,e=>{t.child?e(f):e(p,-1)}),R(e,l),k()}function Us(e,t){var n=H(),r=D(n);oe(r,()=>t.children,e=>{var n=H(),r=D(n);_(r,()=>t.children??M),R(e,n)}),R(e,n)}var Ws=new Oo(`BitsConfig`);function Gs(){let e=new Ks(null,{});return Ws.getOr(e).opts}var Ks=class{opts;constructor(e,t){let n=qs(e,t);this.opts={defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function qs(e,t){return n=>$(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function Js(e,t){return n=>{let r=Gs();return $(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var Ys=Js(e=>e.defaultPortalTo,`body`);function Xs(e,t){j(t,!0);let n=Ys(()=>t.to),i=r(),a=B(o);function o(){if(!gs||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let s;function c(){s&&=(te(s),null)}jo([()=>L(a),()=>t.disabled],([e,n])=>{if(!e||n)c();else return s=se(Us,{target:e,props:{children:t.children},context:i}),()=>{c()}});var l=H(),u=D(l),f=e=>{var n=H(),r=D(n);_(r,()=>t.children??M),R(e,n)};d(u,e=>{t.disabled&&e(f)}),R(e,l),k()}var Zs=class{eventName;options;constructor(e,t={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=t}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,t){let n=this.createEvent(t);return e.dispatchEvent(n),n}listen(e,t,n){return me(e,this.eventName,e=>{t(e)},n)}};function Qs(e,t=500){let n=null,r=(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function $s(e,t){return e===t||e.contains(t)}function ec(e){return e?.ownerDocument??document}function tc(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var nc=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],rc=nc.join(`,`),ic=typeof Element>`u`,ac=ic?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,oc=!ic&&Element.prototype.getRootNode?function(e){return e?.getRootNode?.call(e)}:function(e){return e?.ownerDocument},sc=function(e,t){t===void 0&&(t=!0);var n=e?.getAttribute?.call(e,`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):sc(e.parentNode))},cc=function(e){var t=e?.getAttribute?.call(e,`contenteditable`);return t===``||t===`true`},lc=function(e,t,n){if(sc(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(rc));return t&&ac.call(e,rc)&&r.unshift(e),r=r.filter(n),r},uc=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!sc(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=uc(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{ac.call(a,rc)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!sc(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=uc(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},dc=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},fc=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||cc(e))&&!dc(e)?0:e.tabIndex},pc=function(e,t){var n=fc(e);return n<0&&t&&!dc(e)?0:n},mc=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},hc=function(e){return e.tagName===`INPUT`},gc=function(e){return hc(e)&&e.type===`hidden`},_c=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},vc=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},yc=function(e){if(!e.name)return!0;var t=e.form||oc(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=vc(r,e.form);return!i||i===e},bc=function(e){return hc(e)&&e.type===`radio`},xc=function(e){return bc(e)&&!yc(e)},Sc=function(e){var t=e&&oc(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=oc(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},Cc=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},wc=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=ac.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(ac.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=oc(e);if(s&&!s.shadowRoot&&r(s)===!0)return Cc(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(Sc(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return Cc(e);return!1},Tc=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return ac.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Ec=function(e,t){return!(t.disabled||gc(t)||wc(t,e)||_c(t)||Tc(t))},Dc=function(e,t){return!(xc(t)||fc(t)<0||!Ec(e,t))},Oc=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},kc=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=pc(a,i),s=i?kc(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(mc).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Ac=function(e,t){return t||={},kc(t.getShadowRoot?uc([e],t.includeContainer,{filter:Dc.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Oc}):lc(e,t.includeContainer,Dc.bind(null,t)))},jc=function(e,t){return t||={},t.getShadowRoot?uc([e],t.includeContainer,{filter:Ec.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):lc(e,t.includeContainer,Ec.bind(null,t))},Mc=nc.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),Nc=function(e,t){if(t||={},!e)throw Error(`No node provided`);return ac.call(e,Mc)!==!1&&Ec(t,e)},Pc=`data-context-menu-trigger`,Fc=`data-context-menu-content`;new Oo(`Menu.Root`),new Oo(`Menu.Root | Menu.Sub`),new Oo(`Menu.Content`),new Oo(`Menu.Group | Menu.RadioGroup`),new Oo(`Menu.RadioGroup`),new Oo(`Menu.CheckboxGroup`),new Zs(`bitsmenuopen`,{bubbles:!1,cancelable:!0}),ss({component:`menu`,parts:[`trigger`,`content`,`sub-trigger`,`item`,`group`,`group-heading`,`checkbox-group`,`checkbox-item`,`radio-group`,`radio-item`,`separator`,`sub-content`,`arrow`]}),globalThis.bitsDismissableLayers??=new Map;var Ic=class e{static create(t){return new e(t)}opts;#e;#t;#n={pointerdown:!1};#r=!1;#i=!1;#a=void 0;#o;#s=Es;constructor(e){this.opts=e,this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#o=e.onFocusOutside,be(()=>{this.#a=ec(this.opts.ref.current)});let t=Es,n=null,r=!1,i=()=>{n!=null&&(clearTimeout(n),n=null)},a=()=>{i(),this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),t()};jo([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(this.opts.enabled.current&&this.opts.ref.current)return i(),n=Ro(1,()=>{n=null,!r&&this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#t),t(),t=this.#l())}),a}),Io(()=>{r=!0,i(),this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),t()})}#c=e=>{e.defaultPrevented||this.opts.ref.current&&zo(()=>{this.opts.ref.current&&!this.#h(e.target)&&e.target&&!this.#i&&this.#o.current?.(e)})};#l(){return fo(me(this.#a,`pointerdown`,fo(this.#f,this.#m),{capture:!0}),me(this.#a,`pointerdown`,fo(this.#p,this.#d)),me(this.#a,`focusin`,this.#c))}#u=e=>{let t=e;t.defaultPrevented&&(t=Bc(e)),this.#e.current(e)};#d=Qs(e=>{if(!this.opts.ref.current){this.#s();return}let t=this.opts.isValidEvent.current(e,this.opts.ref.current)||zc(e,this.opts.ref.current);if(!this.#r||this.#_()||!t){this.#s();return}let n=e;n.defaultPrevented&&(n=Bc(n)),this.#t.current!==`close`&&this.#t.current!==`defer-otherwise-close`?this.#s():e.pointerType===`touch`?(this.#s(),this.#s=me(this.#a,`click`,this.#u,{once:!0})):this.#e.current(n)},10);#f=e=>{this.#n[e.type]=!0};#p=e=>{this.#n[e.type]=!1};#m=()=>{this.opts.ref.current&&(this.#r=Rc(this.opts.ref.current))};#h=e=>this.opts.ref.current?$s(this.opts.ref.current,e):!1;#g=Qs(()=>{for(let e in this.#n)this.#n[e]=!1;this.#r=!1},20);#_(){return Object.values(this.#n).some(Boolean)}#v=()=>{this.#i=!0};#y=()=>{this.#i=!1};props={onfocuscapture:this.#v,onblurcapture:this.#y}};function Lc(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function Rc(e){let t=[...globalThis.bitsDismissableLayers],n=Lc(t);if(n)return n[0].opts.ref.current===e;let[r]=t[0];return r.opts.ref.current===e}function zc(e,t){let n=e.target;if(!xs(n))return!1;let r=!!n.closest(`[${Pc}]`),i=!!t.closest(`[${Fc}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:ec(n).documentElement.contains(n)&&!$s(t,n)&&tc(e,t)}function Bc(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1;return new Proxy(r,{get:(r,a)=>a===`currentTarget`?t:a===`target`?n:a===`preventDefault`?()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()}:a===`defaultPrevented`?i:a in r?r[a]:e[a]})}function Vc(e,t){j(t,!0);let n=W(t,`interactOutsideBehavior`,3,`close`),r=W(t,`onInteractOutside`,3,Es),i=W(t,`onFocusOutside`,3,Es),a=W(t,`isValidEvent`,3,()=>!1),o=Ic.create({id:$(()=>t.id),interactOutsideBehavior:$(()=>n()),onInteractOutside:$(()=>r()),enabled:$(()=>t.enabled),onFocusOutside:$(()=>i()),isValidEvent:$(()=>a()),ref:t.ref});var s=H(),c=D(s);_(c,()=>t.children??M,()=>({props:o.props})),R(e,s),k()}globalThis.bitsEscapeLayers??=new Map;var Hc=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Qo(this.opts.ref);let t=Es;jo(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>me(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Uc(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function Uc(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Wc(e,t){j(t,!0);let n=W(t,`escapeKeydownBehavior`,3,`close`),r=W(t,`onEscapeKeydown`,3,Es);Hc.create({escapeKeydownBehavior:$(()=>n()),onEscapeKeydown:$(()=>r()),enabled:$(()=>t.enabled),ref:t.ref});var i=H(),a=D(i);_(a,()=>t.children??M),R(e,i),k()}var Gc=class e{static instance;#e=La([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=document.activeElement;n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e)}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Kc=class e{#e=!1;#t=null;#n=Gc.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o()}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t)return;let e=this.#u();e?(e.focus(),this.#n.setFocusMemory(this,e)):this.#t.focus()})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&document.contains(e))try{e.focus()}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(me(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=t.target;if(n){if(e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&Nc(n))t.preventDefault(),n.focus();else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus()}}}},{capture:!0}),me(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&t.activeElement===i?(e.preventDefault(),r.focus()):e.shiftKey&&t.activeElement===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus(),this.#n.setFocusMemory(this,r)):e.focus()}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?Ac(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?jc(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return jo([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),Io(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function qc(e,t){j(t,!0);let n=W(t,`enabled`,3,!1),r=W(t,`trapFocus`,3,!1),i=W(t,`loop`,3,!1),a=W(t,`onCloseAutoFocus`,3,Es),o=W(t,`onOpenAutoFocus`,3,Es),s=Kc.use({enabled:$(()=>n()),trap:$(()=>r()),loop:i(),onCloseAutoFocus:$(()=>a()),onOpenAutoFocus:$(()=>o()),ref:t.ref});var c=H(),l=D(c);_(l,()=>t.focusScope??M,()=>({props:s.props})),R(e,c),k()}var Jc=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Yc=class e{static create(t){return new e(t)}opts;domContext;#e=Es;#t=!1;#n=Jc;#r=Jc;constructor(e){this.opts=e,this.domContext=new Qo(e.ref);let t=Es;jo(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return fo(me(this.domContext.getDocument(),`pointerdown`,this.#o),me(this.domContext.getDocument(),`pointerup`,Ra(this.#s,this.#a)))}#a=e=>{this.#r(e)};#o=e=>{if(!this.#t)return;let t=this.opts.ref.current,n=e.target;ys(t)&&ys(n)&&$c(this)&&Jo(t,n)&&(this.#n(e),!e.defaultPrevented&&(this.#e=Zc(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=Es}},Xc=e=>e.style.userSelect||e.style.webkitUserSelect;function Zc(e,t){let n=Xc(t),r=Xc(e);return Qc(t,`none`),Qc(e,`text`),()=>{Qc(t,n),Qc(e,r)}}function Qc(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function $c(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function el(e,t){j(t,!0);let n=W(t,`preventOverflowTextSelection`,3,!0),r=W(t,`onPointerDown`,3,Es),i=W(t,`onPointerUp`,3,Es);Yc.create({id:$(()=>t.id),onPointerDown:$(()=>r()),onPointerUp:$(()=>i()),enabled:$(()=>t.enabled&&n()),ref:t.ref});var a=H(),o=D(a);_(o,()=>t.children??M),R(e,a),k()}globalThis.bitsIdCounter??={current:0};function tl(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var nl=class{#e;#t=0;#n=E();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),c(this.#n,void 0),this.#r=void 0)}get(...e){return this.#t+=1,L(this.#n)===void 0&&(this.#r=de(()=>{c(this.#n,this.#e(...e),!0)})),be(()=>()=>{this.#i()}),L(this.#n)}},rl=new Eo,il=E(null),al=null,ol=null,sl=!1,cl=$(()=>{for(let e of rl.values())if(e)return!0;return!1}),ll=null,ul=new nl(()=>{function e(){document.body.setAttribute(`style`,L(il)??``),document.body.style.removeProperty(`--scrollbar-width`),_s&&al?.(),c(il,null)}function t(){ol!==null&&(window.clearTimeout(ol),ol=null)}function n(e,n){t(),sl=!0,ll=Date.now();let r=ll,i=()=>{ol=null,ll===r&&(fl(rl)?sl=!1:(sl=!1,n()))},a=e===null?24:e;ol=window.setTimeout(i,a)}function r(){L(il)===null&&rl.size===0&&!sl&&c(il,document.body.getAttribute(`style`),!0)}return jo(()=>cl.current,()=>{if(!cl.current)return;r(),sl=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),i=window.innerWidth-document.documentElement.clientWidth,a={padding:Number.parseInt(t.paddingRight??`0`,10)+i,margin:Number.parseInt(t.marginRight??`0`,10)};i>0&&!n&&(document.body.style.paddingRight=`${a.padding}px`,document.body.style.marginRight=`${a.margin}px`,document.body.style.setProperty(`--scrollbar-width`,`${i}px`)),document.body.style.overflow=`hidden`,_s&&(al=me(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),zo(()=>{document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`})}),Io(()=>()=>{al?.()}),{get lockMap(){return rl},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}}),dl=class{#e=tl();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null){this.#t=e,this.#n=t,this.#r=ul.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=$(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),Io(()=>{if(this.#r.lockMap.delete(this.#e),fl(this.#r.lockMap))return;let e=this.#n();this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle()})}))}};function fl(e){for(let[t,n]of e)if(n)return!0;return!1}function pl(e,t){j(t,!0);let n=W(t,`preventScroll`,3,!0),r=W(t,`restoreScrollDelay`,3,null);n()&&new dl(n(),()=>r()),k()}var ml=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`interactOutsideBehavior`,`onCloseAutoFocus`,`onEscapeKeydown`,`onOpenAutoFocus`,`onInteractOutside`,`preventScroll`,`trapFocus`,`restoreScrollDelay`]),hl=V(`<!> <!>`,1),gl=V(`<!> <div><!></div>`,1);function _l(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`forceMount`,3,!1),o=W(t,`interactOutsideBehavior`,3,`ignore`),s=W(t,`onCloseAutoFocus`,3,Es),c=W(t,`onEscapeKeydown`,3,Es),l=W(t,`onOpenAutoFocus`,3,Es),u=W(t,`onInteractOutside`,3,Es),f=W(t,`preventScroll`,3,!0),p=W(t,`trapFocus`,3,!0),m=W(t,`restoreScrollDelay`,3,null),h=I(t,ml),v=Ns.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e))}),y=B(()=>yo(h,v.props));var b=H(),x=D(b),S=e=>{qc(e,{get ref(){return v.opts.ref},loop:!0,get trapFocus(){return p()},get enabled(){return v.root.opts.open.current},get onCloseAutoFocus(){return s()},onOpenAutoFocus:e=>{l()(e),!e.defaultPrevented&&(e.preventDefault(),Ro(0,()=>v.opts.ref.current?.focus()))},focusScope:(e,n)=>{let r=()=>(n?.()).props;Wc(e,U(()=>L(y),{get enabled(){return v.root.opts.open.current},get ref(){return v.opts.ref},onEscapeKeydown:e=>{c()(e),!e.defaultPrevented&&v.root.handleClose()},children:(e,n)=>{Vc(e,U(()=>L(y),{get ref(){return v.opts.ref},get enabled(){return v.root.opts.open.current},get interactOutsideBehavior(){return o()},onInteractOutside:e=>{u()(e),!e.defaultPrevented&&v.root.handleClose()},children:(e,n)=>{el(e,U(()=>L(y),{get ref(){return v.opts.ref},get enabled(){return v.root.opts.open.current},children:(e,n)=>{var i=H(),a=D(i),o=e=>{var n=hl(),i=D(n),a=e=>{pl(e,{get preventScroll(){return f()},get restoreScrollDelay(){return m()}})};d(i,e=>{v.root.opts.open.current&&e(a)});var o=g(i,2);{let e=B(()=>({props:yo(L(y),r()),...v.snippetProps}));_(o,()=>t.child,()=>L(e))}R(e,n)},s=e=>{var n=gl(),i=D(n);pl(i,{get preventScroll(){return f()}});var a=g(i,2);z(a,e=>({...e}),[()=>yo(L(y),r())]);var o=w(a);_(o,()=>t.children??M),G(a),R(e,n)};d(a,e=>{t.child?e(o):e(s,-1)}),R(e,i)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};d(x,e=>{(v.shouldRender||a())&&e(S)}),R(e,b),k()}var vl=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),yl=V(`<div><!></div>`);function bl(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`forceMount`,3,!1),a=W(t,`ref`,15,null),o=I(t,vl),s=Ps.create({id:$(()=>r()),ref:$(()=>a(),e=>a(e))}),c=B(()=>yo(o,s.props));var l=H(),u=D(l),f=e=>{var n=H(),r=D(n),i=e=>{var n=H(),r=D(n);{let e=B(()=>({props:yo(L(c)),...s.snippetProps}));_(r,()=>t.child,()=>L(e))}R(e,n)},a=e=>{var n=yl();z(n,e=>({...e}),[()=>yo(L(c))]);var r=w(n);_(r,()=>t.children??M,()=>s.snippetProps),G(n),R(e,n)};d(r,e=>{t.child?e(i):e(a,-1)}),R(e,n)};d(u,e=>{(s.shouldRender||i())&&e(f)}),R(e,l),k()}var xl=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`children`,`child`,`disabled`]),Sl=V(`<button><!></button>`);function Cl(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`disabled`,3,!1),o=I(t,xl),s=js.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e)),disabled:$(()=>!!a())}),c=B(()=>yo(o,s.props));var l=H(),u=D(l),f=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(c)})),R(e,n)},p=e=>{var n=Sl();z(n,()=>({...L(c)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(u,e=>{t.child?e(f):e(p,-1)}),R(e,l),k()}v();var wl=ss({component:`collapsible`,parts:[`root`,`content`,`trigger`]}),Tl=new Oo(`Collapsible.Root`),El=class e{static create(t){return Tl.set(new e(t))}opts;attachment;#e=E(null);get contentNode(){return L(this.#e)}set contentNode(e){c(this.#e,e,!0)}contentPresence;#t=E(void 0);get contentId(){return L(this.#t)}set contentId(e){c(this.#t,e,!0)}constructor(e){this.opts=e,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=$o(this.opts.ref),this.contentPresence=new Ts({ref:$(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#n=B(()=>({id:this.opts.id.current,"data-state":is(this.opts.open.current),"data-disabled":ns(this.opts.disabled.current),[wl.root]:``,...this.attachment}));get props(){return L(this.#n)}set props(e){c(this.#n,e)}},Dl=class e{static create(t){return new e(t,Tl.get())}opts;root;attachment;#e=B(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return L(this.#e)}set present(e){c(this.#e,e)}#t;#n=E(!1);#r=E(0);#i=E(0);constructor(e,t){this.opts=e,this.root=t,c(this.#n,t.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=$o(this.opts.ref,e=>this.root.contentNode=e),jo.pre(()=>this.opts.id.current,e=>{this.root.contentId=e}),Ce(()=>{let e=requestAnimationFrame(()=>{c(this.#n,!1)});return()=>{cancelAnimationFrame(e)}}),jo.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([e,t])=>!e||!t?void 0:me(e,`beforematch`,()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),jo([()=>this.opts.ref.current,()=>this.present],([e])=>{e&&zo(()=>{if(!this.opts.ref.current)return;this.#t=this.#t||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();if(c(this.#i,t.height,!0),c(this.#r,t.width,!0),!L(this.#n)){let{animationName:t,transitionDuration:n}=this.#t;e.style.transitionDuration=n,e.style.animationName=t}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#a=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#a)}set snippetProps(e){c(this.#a,e)}#o=B(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":L(this.#i)?`${L(this.#i)}px`:void 0,"--bits-collapsible-content-width":L(this.#r)?`${L(this.#r)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?`until-found`:void 0,"data-state":is(this.root.opts.open.current),...as(this.root.contentPresence.transitionStatus),"data-disabled":ns(this.root.opts.disabled.current),[wl.content]:``,...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return L(this.#o)}set props(e){c(this.#o,e)}},Ol=class e{static create(t){return new e(t,Tl.get())}opts;root;attachment;#e=B(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){if(!L(this.#e)){if(e.button!==0)return e.preventDefault();this.root.toggleOpen()}}onkeydown(e){L(this.#e)||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.toggleOpen())}#t=B(()=>({id:this.opts.id.current,type:`button`,disabled:L(this.#e),"aria-controls":this.root.contentId,"aria-expanded":es(this.root.opts.open.current),"data-state":is(this.root.opts.open.current),"data-disabled":ns(L(this.#e)),[wl.trigger]:``,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return L(this.#t)}set props(e){c(this.#t,e)}},kl=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`open`,`disabled`,`onOpenChange`,`onOpenChangeComplete`]),Al=V(`<div><!></div>`);function jl(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`open`,15,!1),o=W(t,`disabled`,3,!1),s=W(t,`onOpenChange`,3,Es),c=W(t,`onOpenChangeComplete`,3,Es),l=I(t,kl),u=El.create({open:$(()=>a(),e=>{a(e),s()(e)}),disabled:$(()=>o()),id:$(()=>r()),ref:$(()=>i(),e=>i(e)),onOpenChangeComplete:$(()=>c())}),f=B(()=>yo(l,u.props));var p=H(),m=D(p),h=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(f)})),R(e,n)},g=e=>{var n=Al();z(n,()=>({...L(f)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(m,e=>{t.child?e(h):e(g,-1)}),R(e,p),k()}var Ml=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`ref`,`forceMount`,`hiddenUntilFound`,`children`,`id`]),Nl=V(`<div><!></div>`);function Pl(e,t){let n=fe();j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`forceMount`,3,!1),a=W(t,`hiddenUntilFound`,3,!1),o=W(t,`id`,19,()=>Ds(n)),s=I(t,Ml),c=Dl.create({id:$(()=>o()),forceMount:$(()=>i()),hiddenUntilFound:$(()=>a()),ref:$(()=>r(),e=>r(e))}),l=B(()=>yo(s,c.props));var u=H(),f=D(u),p=e=>{var n=H(),r=D(n);{let e=B(()=>({...c.snippetProps,props:L(l)}));_(r,()=>t.child,()=>L(e))}R(e,n)},m=e=>{var n=Nl();z(n,()=>({...L(l)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(f,e=>{t.child?e(p):e(m,-1)}),R(e,u),k()}var Fl=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`ref`,`id`,`disabled`]),Il=V(`<button><!></button>`);function Ll(e,t){let n=fe();j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`id`,19,()=>Ds(n)),a=W(t,`disabled`,3,!1),o=I(t,Fl),s=Ol.create({id:$(()=>i()),ref:$(()=>r(),e=>r(e)),disabled:$(()=>a())}),c=B(()=>yo(o,s.props));var l=H(),u=D(l),f=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(c)})),R(e,n)},p=e=>{var n=Il();z(n,()=>({...L(c)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(u,e=>{t.child?e(f):e(p,-1)}),R(e,l),k()}var Rl=[`top`,`right`,`bottom`,`left`],zl=Math.min,Bl=Math.max,Vl=Math.round,Hl=Math.floor,Ul=e=>({x:e,y:e}),Wl={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Gl(e,t,n){return Bl(e,zl(t,n))}function Kl(e,t){return typeof e==`function`?e(t):e}function ql(e){return e.split(`-`)[0]}function Jl(e){return e.split(`-`)[1]}function Yl(e){return e===`x`?`y`:`x`}function Xl(e){return e===`y`?`height`:`width`}function Zl(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ql(e){return Yl(Zl(e))}function $l(e,t,n){n===void 0&&(n=!1);let r=Jl(e),i=Ql(e),a=Xl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=cu(o)),[o,cu(o)]}function eu(e){let t=cu(e);return[tu(e),t,tu(t)]}function tu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var nu=[`left`,`right`],ru=[`right`,`left`],iu=[`top`,`bottom`],au=[`bottom`,`top`];function ou(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ru:nu:t?nu:ru;case`left`:case`right`:return t?iu:au;default:return[]}}function su(e,t,n,r){let i=Jl(e),a=ou(ql(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(tu)))),a}function cu(e){let t=ql(e);return Wl[t]+e.slice(t.length)}function lu(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function uu(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:lu(e)}function du(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function fu(e,t,n){let{reference:r,floating:i}=e,a=Zl(t),o=Ql(t),s=Xl(o),c=ql(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Jl(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function pu(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Kl(t,e),p=uu(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=du(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=du(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var mu=50,hu=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:pu},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=fu(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<mu&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=fu(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},gu=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Kl(e,t)||{};if(l==null)return{};let d=uu(u),f={x:n,y:r},p=Ql(i),m=Xl(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=zl(d[_],T),ee=zl(d[v],T),D=C-h[m]-ee,te=C/2-h[m]/2+w,ne=Gl(E,te,D),re=!c.arrow&&Jl(i)!=null&&te!==ne&&a.reference[m]/2-(te<E?E:ee)-h[m]/2<0,O=re?te<E?te-E:te-D:0;return{[p]:f[p]+O,data:{[p]:ne,centerOffset:te-ne-O,...re&&{alignmentOffset:O}},reset:re}}}),_u=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Kl(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=ql(r),_=Zl(o),v=ql(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[cu(o)]:eu(o)),x=p!==`none`;!d&&x&&b.push(...su(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=$l(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Zl(t)||T.every(e=>Zl(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Zl(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function vu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yu(e){return Rl.some(t=>e[t]>=0)}var bu=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Kl(e,t);switch(i){case`referenceHidden`:{let e=vu(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:yu(e)}}}case`escaped`:{let e=vu(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:yu(e)}}}default:return{}}}}},xu=new Set([`left`,`top`]);async function Su(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ql(n),s=Jl(n),c=Zl(n)===`y`,l=xu.has(o)?-1:1,u=a&&c?-1:1,d=Kl(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Cu=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Su(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},wu=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Kl(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Zl(i),p=Yl(f),m=u[p],h=u[f],g=(e,t)=>Gl(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Tu=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Kl(e,t),u={x:n,y:r},d=Zl(i),f=Yl(d),p=u[f],m=u[d],h=Kl(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=xu.has(ql(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Eu=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Kl(e,t),c=await i.detectOverflow(t,s),l=ql(n),u=Jl(n),d=Zl(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=zl(p-c[m],g),y=zl(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Bl(c.left,c.right):S=p-2*Bl(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Du(){return typeof window<`u`}function Ou(e){return ju(e)?(e.nodeName||``).toLowerCase():`#document`}function ku(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Au(e){return((ju(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ju(e){return Du()?e instanceof Node||e instanceof ku(e).Node:!1}function Mu(e){return Du()?e instanceof Element||e instanceof ku(e).Element:!1}function Nu(e){return Du()?e instanceof HTMLElement||e instanceof ku(e).HTMLElement:!1}function Pu(e){return!Du()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ku(e).ShadowRoot}function Fu(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ku(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Iu(e){return/^(table|td|th)$/.test(Ou(e))}function Lu(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ru=/transform|translate|scale|rotate|perspective|filter/,zu=/paint|layout|strict|content/,Bu=e=>!!e&&e!==`none`,Vu;function Hu(e){let t=Mu(e)?Ku(e):e;return Bu(t.transform)||Bu(t.translate)||Bu(t.scale)||Bu(t.rotate)||Bu(t.perspective)||!Wu()&&(Bu(t.backdropFilter)||Bu(t.filter))||Ru.test(t.willChange||``)||zu.test(t.contain||``)}function Uu(e){let t=Ju(e);for(;Nu(t)&&!Gu(t);){if(Hu(t))return t;if(Lu(t))return null;t=Ju(t)}return null}function Wu(){return Vu??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Vu}function Gu(e){return/^(html|body|#document)$/.test(Ou(e))}function Ku(e){return ku(e).getComputedStyle(e)}function qu(e){return Mu(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ju(e){if(Ou(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Pu(e)&&e.host||Au(e);return Pu(t)?t.host:t}function Yu(e){let t=Ju(e);return Gu(t)?(e.ownerDocument||e).body:Nu(t)&&Fu(t)?t:Yu(t)}function Xu(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Yu(e),i=r===e.ownerDocument?.body,a=ku(r);if(i){let e=Zu(a);return t.concat(a,a.visualViewport||[],Fu(r)?r:[],e&&n?Xu(e):[])}return t.concat(r,Xu(r,[],n))}function Zu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qu(e){let t=Ku(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Nu(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Vl(n)!==a||Vl(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $u(e){return Mu(e)?e:e.contextElement}function ed(e){let t=$u(e);if(!Nu(t))return Ul(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qu(t),o=(a?Vl(n.width):n.width)/r,s=(a?Vl(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var td=Ul(0);function nd(e){let t=ku(e);return!Wu()||!t.visualViewport?td:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rd(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ku(e)}function id(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$u(e),o=Ul(1);t&&(r?Mu(r)&&(o=ed(r)):o=ed(e));let s=rd(a,n,r)?nd(a):Ul(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=ku(a),t=Mu(r)?ku(r):r,n=e,i=Zu(n);for(;i&&t!==n;){let e=ed(i),t=i.getBoundingClientRect(),r=Ku(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ku(i),i=Zu(n)}}return du({width:u,height:d,x:c,y:l})}function ad(e,t){let n=qu(e).scrollLeft;return t?t.left+n:id(Au(e)).left+n}function od(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ad(e,n),y:n.top+t.scrollTop}}function sd(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Au(r),s=t?Lu(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ul(1),u=Ul(0),d=Nu(r);if((d||!a)&&((Ou(r)!==`body`||Fu(o))&&(c=qu(r)),d)){let e=id(r);l=ed(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?od(o,c):Ul(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cd(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function ld(e){let t=qu(e),n=e.ownerDocument.body,r=Bl(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Bl(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+ad(e),o=-t.scrollTop;return Ku(n).direction===`rtl`&&(a+=Bl(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var ud=25;function dd(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ku(e),a=Au(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Wu()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(ad(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=ud&&(s-=o)}return{width:s,height:c,x:l,y:u}}function fd(e,t){let n=id(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ed(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pd(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=dd(e,n,t);else if(t===`document`)r=ld(Au(e));else if(Mu(t))r=fd(t,n);else{let n=nd(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return du(r)}function md(e,t){let n=t.get(e);if(n)return n;let r=Xu(e,[],!1).filter(e=>Mu(e)&&Ou(e)!==`body`),i=null,a=Ku(e).position===`fixed`,o=a?Ju(e):e;for(;Mu(o)&&!Gu(o);){let e=Ku(o),t=Hu(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Ju(o)}return t.set(e,r),r}function hd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Lu(t)?[]:md(t,this._c):[].concat(n),r],o=pd(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pd(t,a[e],i);s=Bl(n.top,s),c=zl(n.right,c),l=zl(n.bottom,l),u=Bl(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gd(e){let{width:t,height:n}=Qu(e);return{width:t,height:n}}function _d(e,t,n){let r=Nu(t),i=Au(t),a=n===`fixed`,o=id(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Ul(0);if((r||!a)&&((Ou(t)!==`body`||Fu(i))&&(s=qu(t)),r)){let e=id(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=ad(i));let l=i&&!r&&!a?od(i,s):Ul(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function vd(e){return Ku(e).position===`static`}function yd(e,t){if(!Nu(e)||Ku(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Au(e)===n&&(n=n.ownerDocument.body),n}function bd(e,t){let n=ku(e);if(Lu(e))return n;if(!Nu(e)){let t=Ju(e);for(;t&&!Gu(t);){if(Mu(t)&&!vd(t))return t;t=Ju(t)}return n}let r=yd(e,t);for(;r&&Iu(r)&&vd(r);)r=yd(r,t);return r&&Gu(r)&&vd(r)&&!Hu(r)?n:r||Uu(e)||n}var xd=async function(e){let t=this.getOffsetParent||bd,n=this.getDimensions,r=await n(e.floating);return{reference:_d(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Sd(e){return Ku(e).direction===`rtl`}var Cd={convertOffsetParentRelativeRectToViewportRelativeRect:sd,getDocumentElement:Au,getClippingRect:hd,getOffsetParent:bd,getElementRects:xd,getClientRects:cd,getDimensions:gd,getScale:ed,isElement:Mu,isRTL:Sd};function wd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Td(e,t,n){let r=null,i,a=Au(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Hl(d),h=Hl(a.clientWidth-(u+f)),g=Hl(a.clientHeight-(d+p)),_=Hl(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Bl(0,zl(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!wd(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=ku(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Ed(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$u(e),u=i||a?[...l?Xu(l):[],...t?Xu(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Td(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?id(e):null;c&&g();function g(){let t=id(e);h&&!wd(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Dd=Cu,Od=wu,kd=_u,Ad=Eu,jd=bu,Md=gu,Nd=Tu,Pd=(e,t,n)=>{let r=new Map,i=n??{},a={...Cd,...i.platform,_c:r};return hu(e,t,{...i,platform:a})};function Fd(e){return typeof e==`function`?e():e}function Id(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ld(e,t){let n=Id(e);return Math.round(t*n)/n}function Rd(e){return{[`--bits-${e}-content-transform-origin`]:`var(--bits-floating-transform-origin)`,[`--bits-${e}-content-available-width`]:`var(--bits-floating-available-width)`,[`--bits-${e}-content-available-height`]:`var(--bits-floating-available-height)`,[`--bits-${e}-anchor-width`]:`var(--bits-floating-anchor-width)`,[`--bits-${e}-anchor-height`]:`var(--bits-floating-anchor-height)`}}function zd(e){let t=e.whileElementsMounted,n=B(()=>Fd(e.open)??!0),r=B(()=>Fd(e.middleware)),i=B(()=>Fd(e.transform)??!0),a=B(()=>Fd(e.placement)??`bottom`),o=B(()=>Fd(e.strategy)??`absolute`),s=B(()=>Fd(e.sideOffset)??0),l=B(()=>Fd(e.alignOffset)??0),u=e.reference,d=E(0),f=E(0),p=La(null),m=E(x(L(o))),h=E(x(L(a))),g=E(x({})),_=E(!1),v=!1,y=0,b=B(()=>{let e=p.current?Ld(p.current,L(d)):L(d),t=p.current?Ld(p.current,L(f)):L(f);return L(i)?{position:L(m),left:`0`,top:`0`,transform:`translate(${e}px, ${t}px)`,...p.current&&Id(p.current)>=1.5&&{willChange:`transform`}}:{position:L(m),left:`${e}px`,top:`${t}px`}}),S;function C(){if(u.current===null||p.current===null)return;let e=u.current,t=p.current,i=++y;Pd(e,t,{middleware:L(r),placement:L(a),strategy:L(o)}).then(r=>{if(i===y&&u.current===e&&p.current===t){if(Bd(e))c(g,{...L(g),hide:{...L(g).hide,referenceHidden:!0}},!0);else{if(!L(n)&&L(d)!==0&&L(f)!==0){let e=Math.max(Math.abs(L(s)),Math.abs(L(l)),15);if(r.x<=e&&r.y<=e)return}c(d,r.x,!0),c(f,r.y,!0),c(m,r.strategy,!0),c(h,r.placement,!0),c(g,r.middlewareData,!0),c(_,!0)}}})}function w(){typeof S==`function`&&(S(),S=void 0),y++}function T(){w(),t===void 0?C():L(n)&&u.current!==null&&p.current!==null&&(S=t(u.current,p.current,C))}function ee(){!L(n)&&p.current===null&&c(_,!1)}function D(){return[L(r),L(a),L(o),L(s),L(l),L(n)]}return be(()=>{t===void 0&&L(n)&&C()}),be(T),be(()=>{t!==void 0&&(D(),L(n)&&L(_)?v?C():v=!0:v=!1)}),be(ee),be(()=>w),{floating:p,reference:u,get strategy(){return L(m)},get placement(){return L(h)},get middlewareData(){return L(g)},get isPositioned(){return L(_)},get floatingStyles(){return L(b)},get update(){return C}}}function Bd(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}var Vd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Hd=new Oo(`Floating.Root`),Ud=new Oo(`Floating.Content`),Wd=new Oo(`Floating.Root`),Gd=class e{static create(t=!1){return t?Wd.set(new e):Hd.set(new e)}anchorNode=La(null);customAnchorNode=La(null);triggerNode=La(null);constructor(){be(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current==`string`?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}},Kd=class e{static create(t,n=!1){return n?Ud.set(new e(t,Wd.get())):Ud.set(new e(t,Hd.get()))}opts;root;contentRef=La(null);wrapperRef=La(null);arrowRef=La(null);contentAttachment=$o(this.contentRef);wrapperAttachment=$o(this.wrapperRef);arrowAttachment=$o(this.arrowRef);arrowId=La(tl());#e=B(()=>{if(typeof this.opts.style==`string`)return uo(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new Po(()=>this.arrowRef.current??void 0);#r=B(()=>this.#n?.width??0);#i=B(()=>this.#n?.height??0);#a=B(()=>this.opts.side?.current+(this.opts.align.current===`center`?``:`-${this.opts.align.current}`));#o=B(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=B(()=>L(this.#o).length>0);get hasExplicitBoundaries(){return L(this.#s)}set hasExplicitBoundaries(e){c(this.#s,e)}#c=B(()=>({padding:this.opts.collisionPadding.current,boundary:L(this.#o).filter(Cs),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return L(this.#c)}set detectOverflowOptions(e){c(this.#c,e)}#l=E(void 0);#u=E(void 0);#d=E(void 0);#f=E(void 0);#p=B(()=>[Dd({mainAxis:this.opts.sideOffset.current+L(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Od({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current===`partial`?Nd():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&kd({...this.detectOverflowOptions}),Ad({...this.detectOverflowOptions,apply:({rects:e,availableWidth:t,availableHeight:n})=>{let{width:r,height:i}=e.reference;c(this.#l,t,!0),c(this.#u,n,!0),c(this.#d,r,!0),c(this.#f,i,!0)}}),this.arrowRef.current&&Md({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Jd({arrowWidth:L(this.#r),arrowHeight:L(this.#i)}),this.opts.hideWhenDetached.current&&jd({strategy:`referenceHidden`,...this.detectOverflowOptions})].filter(Boolean));get middleware(){return L(this.#p)}set middleware(e){c(this.#p,e)}floating;#m=B(()=>Xd(this.floating.placement));get placedSide(){return L(this.#m)}set placedSide(e){c(this.#m,e)}#h=B(()=>Zd(this.floating.placement));get placedAlign(){return L(this.#h)}set placedAlign(e){c(this.#h,e)}#g=B(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return L(this.#g)}set arrowX(e){c(this.#g,e)}#_=B(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return L(this.#_)}set arrowY(e){c(this.#_,e)}#v=B(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return L(this.#v)}set cannotCenterArrow(e){c(this.#v,e)}#y=E();get contentZIndex(){return L(this.#y)}set contentZIndex(e){c(this.#y,e,!0)}#b=B(()=>Vd[this.placedSide]);get arrowBaseSide(){return L(this.#b)}set arrowBaseSide(e){c(this.#b,e)}#x=B(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":``,style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${L(this.#l)}px`,"--bits-floating-available-height":`${L(this.#u)}px`,"--bits-floating-anchor-width":`${L(this.#d)}px`,"--bits-floating-anchor-height":`${L(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:`hidden`,"pointer-events":`none`},...L(this.#e)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return L(this.#x)}set wrapperProps(e){c(this.#x,e)}#S=B(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:go({...L(this.#e)}),...this.contentAttachment}));get props(){return L(this.#S)}set props(e){c(this.#S,e)}#C=B(()=>({position:`absolute`,left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[this.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[this.placedSide],visibility:this.cannotCenterArrow?`hidden`:void 0}));get arrowStyle(){return L(this.#C)}set arrowStyle(e){c(this.#C,e)}constructor(e,t){this.opts=e,this.root=t,this.#t=e.updatePositionStrategy,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),jo(()=>e.customAnchor.current,e=>{this.root.customAnchorNode.current=e}),this.floating=zd({strategy:()=>this.opts.strategy.current,placement:()=>L(this.#a),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...e)=>Ed(...e,{animationFrame:this.#t?.current===`always`}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),be(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),jo(()=>this.contentRef.current,e=>{if(!e||!this.opts.enabled.current)return;let t=Xo(e),n=t.requestAnimationFrame(()=>{if(this.contentRef.current!==e||!this.opts.enabled.current)return;let n=t.getComputedStyle(e).zIndex;n!==this.contentZIndex&&(this.contentZIndex=n)});return()=>{t.cancelAnimationFrame(n)}}),be(()=>{this.floating.floating.current=this.wrapperRef.current})}},qd=class e{static create(t){return new e(t,Ud.get())}opts;content;constructor(e,t){this.opts=e,this.content=t}#e=B(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}};function Jd(e){return{name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Yd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}}function Yd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}function Xd(e){return Yd(e)[0]}function Zd(e){return Yd(e)[1]}function Qd(e,t){j(t,!0);let n=W(t,`tooltip`,3,!1);Gd.create(n());var r=H(),i=D(r);_(i,()=>t.children??M),R(e,r),k()}var $d=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`width`,`height`]),ef=ve(`<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>`),tf=V(`<span><!></span>`);function nf(e,t){j(t,!0);let n=W(t,`id`,19,tl),r=W(t,`width`,3,10),i=W(t,`height`,3,5),a=I(t,$d),o=B(()=>yo(a,{id:n()}));var s=H(),c=D(s),l=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(o)})),R(e,n)},u=e=>{var n=tf();z(n,()=>({...L(o)}));var a=w(n),s=e=>{var n=H(),r=D(n);_(r,()=>t.children??M),R(e,n)},c=e=>{var t=ef();P(()=>{S(t,`width`,r()),S(t,`height`,i())}),R(e,t)};d(a,e=>{t.children?e(s):e(c,-1)}),G(n),R(e,n)};d(c,e=>{t.child?e(l):e(u,-1)}),R(e,s),k()}var rf=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`]);function af(e,t){j(t,!0);let n=W(t,`id`,19,tl),r=W(t,`ref`,15,null),i=I(t,rf),a=qd.create({id:$(()=>n()),ref:$(()=>r(),e=>r(e))}),o=B(()=>yo(i,a.props));nf(e,U(()=>L(o))),k()}function of(e,t){j(t,!0);let n=W(t,`side`,3,`bottom`),r=W(t,`sideOffset`,3,0),i=W(t,`align`,3,`center`),a=W(t,`alignOffset`,3,0),o=W(t,`arrowPadding`,3,0),s=W(t,`avoidCollisions`,3,!0),c=W(t,`collisionBoundary`,19,()=>[]),l=W(t,`collisionPadding`,3,0),u=W(t,`hideWhenDetached`,3,!1),d=W(t,`onPlaced`,3,()=>{}),f=W(t,`sticky`,3,`partial`),p=W(t,`updatePositionStrategy`,3,`optimized`),m=W(t,`strategy`,3,`fixed`),h=W(t,`dir`,3,`ltr`),g=W(t,`style`,19,()=>({})),v=W(t,`wrapperId`,19,tl),y=W(t,`customAnchor`,3,null),b=W(t,`tooltip`,3,!1),x=Kd.create({side:$(()=>n()),sideOffset:$(()=>r()),align:$(()=>i()),alignOffset:$(()=>a()),id:$(()=>t.id),arrowPadding:$(()=>o()),avoidCollisions:$(()=>s()),collisionBoundary:$(()=>c()),collisionPadding:$(()=>l()),hideWhenDetached:$(()=>u()),onPlaced:$(()=>d()),sticky:$(()=>f()),updatePositionStrategy:$(()=>p()),strategy:$(()=>m()),dir:$(()=>h()),style:$(()=>g()),enabled:$(()=>t.enabled),wrapperId:$(()=>v()),customAnchor:$(()=>y())},b()),S=B(()=>yo(x.wrapperProps,{style:{pointerEvents:`auto`}}));var C=H(),w=D(C);_(w,()=>t.content??M,()=>({props:x.props,wrapperProps:L(S)})),R(e,C),k()}function sf(e,t){j(t,!0),_e(()=>{t.onPlaced?.()});var n=H(),r=D(n);_(r,()=>t.content??M,()=>({props:{},wrapperProps:{}})),R(e,n),k()}var cf=ss({component:`separator`,parts:[`root`]}),lf=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=$o(e.ref)}#e=B(()=>({id:this.opts.id.current,role:this.opts.decorative.current?`none`:`separator`,"aria-orientation":this.opts.orientation.current,"aria-hidden":ts(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[cf.root]:``,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}},uf=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`decorative`,`orientation`]),df=V(`<div><!></div>`);function ff(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`decorative`,3,!1),o=W(t,`orientation`,3,`horizontal`),s=I(t,uf),c=lf.create({ref:$(()=>i(),e=>i(e)),id:$(()=>r()),decorative:$(()=>a()),orientation:$(()=>o())}),l=B(()=>yo(s,c.props));var u=H(),f=D(u),p=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(l)})),R(e,n)},m=e=>{var n=df();z(n,()=>({...L(l)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(f,e=>{t.child?e(p):e(m,-1)}),R(e,u),k()}var pf=new Set([`$$slots`,`$$events`,`$$legacy`,`content`,`isStatic`,`onPlaced`]);function mf(e,t){let n=W(t,`isStatic`,3,!1),r=I(t,pf);var i=H(),a=D(i),o=e=>{sf(e,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},s=e=>{of(e,U({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};d(a,e=>{n()?e(o):e(s,-1)}),R(e,i)}var hf=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled.ref.tooltip.contentPointerEvents`.split(`.`)),gf=V(`<!> <!>`,1);function _f(e,t){j(t,!0);let n=W(t,`interactOutsideBehavior`,3,`close`),r=W(t,`trapFocus`,3,!0),i=W(t,`isValidEvent`,3,()=>!1),a=W(t,`customAnchor`,3,null),o=W(t,`isStatic`,3,!1),s=W(t,`tooltip`,3,!1),c=W(t,`contentPointerEvents`,3,`auto`),l=I(t,hf),u=B(()=>t.preventScroll??!0),f=B(()=>t.strategy??(L(u)?`fixed`:`absolute`));mf(e,{get isStatic(){return o()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return L(f)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get enabled(){return t.enabled},get tooltip(){return s()},content:(e,a)=>{let o=()=>(a?.()).props,s=()=>(a?.()).wrapperProps;var f=gf(),p=D(f),m=e=>{pl(e,{get preventScroll(){return L(u)}})},h=e=>{pl(e,{get preventScroll(){return L(u)}})};d(p,e=>{t.forceMount&&t.enabled?e(m):t.forceMount||e(h,1)}),qc(g(p,2),{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(e,r)=>{let a=()=>(r?.()).props;Wc(e,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,r)=>{Vc(e,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{let r=()=>(n?.()).props;el(e,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(e,n)=>{var i=H(),u=D(i);{let e=B(()=>({props:yo(l,o(),r(),a(),{style:{pointerEvents:c()}}),wrapperProps:s()}));_(u,()=>t.popper??M,()=>L(e))}R(e,i)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),R(e,f)},$$slots:{content:!0}}),k()}var vf=new Set(`$$slots.$$events.$$legacy.popper.open.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.ref.shouldRender`.split(`.`));function yf(e,t){let n=W(t,`interactOutsideBehavior`,3,`close`),r=W(t,`trapFocus`,3,!0),i=W(t,`isValidEvent`,3,()=>!1),a=W(t,`customAnchor`,3,null),o=W(t,`isStatic`,3,!1),s=I(t,vf);var c=H(),l=D(c),u=e=>{_f(e,U({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>s))};d(l,e=>{t.shouldRender&&e(u)}),R(e,c)}var bf=new Set(`$$slots.$$events.$$legacy.popper.onEscapeKeydown.escapeKeydownBehavior.preventOverflowTextSelection.id.onPointerDown.onPointerUp.side.sideOffset.align.alignOffset.arrowPadding.avoidCollisions.collisionBoundary.collisionPadding.sticky.hideWhenDetached.updatePositionStrategy.strategy.dir.preventScroll.wrapperId.style.onPlaced.onInteractOutside.onCloseAutoFocus.onOpenAutoFocus.onFocusOutside.interactOutsideBehavior.loop.trapFocus.isValidEvent.customAnchor.isStatic.enabled`.split(`.`));function xf(e,t){let n=W(t,`interactOutsideBehavior`,3,`close`),r=W(t,`trapFocus`,3,!0),i=W(t,`isValidEvent`,3,()=>!1),a=W(t,`customAnchor`,3,null),o=W(t,`isStatic`,3,!1),s=I(t,bf);_f(e,U({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return a()},get isStatic(){return o()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>s,{forceMount:!0}))}function Sf(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e<a;o=e++){let[a,s]=t[e]??[0,0],[c,l]=t[o]??[0,0];s>=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Cf(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function wf(e,t){let n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,a=t.top+t.height/2,o=i-n,s=a-r;return Math.abs(o)>Math.abs(s)?o>0?`right`:`left`:s>0?`bottom`:`top`}var Tf=class{#e;#t;#n;#r=null;#i=null;#a=[];#o=null;#s=null;#c=null;#l(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#u(){this.#l(),this.#s=requestAnimationFrame(()=>{this.#s=null,this.#r&&this.#i&&(this.#m(),this.#e.onPointerExit())})}#d(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#f(){this.#n!==null&&(this.#d(),this.#c=window.setTimeout(()=>{this.#c=null,this.#r&&this.#i&&(this.#m(),this.#e.onPointerExit())},this.#n))}constructor(e){this.#e=e,this.#t=e.buffer??1;let t=e.transitIntentTimeout;this.#n=typeof t==`number`&&t>0?t:null,jo([e.triggerNode,e.contentNode,e.enabled],([e,t,n])=>{if(!e||!t||!n){this.#o=null,this.#m();return}this.#o&&this.#o!==e&&this.#m(),this.#o=e;let r=Yo(e);return[me(r,`pointermove`,n=>{this.#p([n.clientX,n.clientY],e,t)}),me(e,`pointerleave`,e=>{let n=e.relatedTarget;if(bs(n)&&t.contains(n))return;let r=this.#e.ignoredTargets?.()??[];bs(n)&&r.some(e=>e===n||e.contains(n))||(this.#a=bs(n)&&r.length>0?r.filter(e=>n.contains(e)):[],this.#r=[e.clientX,e.clientY],this.#i=`content`,this.#u())}),me(e,`pointerenter`,()=>{this.#m()}),me(t,`pointerenter`,()=>{this.#m()}),me(t,`pointerleave`,t=>{let n=t.relatedTarget;bs(n)&&e.contains(n)||(this.#r=[t.clientX,t.clientY],this.#i=`trigger`,this.#u())})].reduce((e,t)=>()=>{e(),t()},()=>{})})}#p(e,t,n){if(!this.#r||!this.#i)return;this.#l(),this.#f();let r=t.getBoundingClientRect(),i=n.getBoundingClientRect();if(this.#i===`content`&&Cf(e,i)||this.#i===`trigger`&&Cf(e,r)){this.#m();return}if(this.#i===`content`&&this.#a.length>0)for(let t of this.#a){let n=t.getBoundingClientRect();if(Cf(e,n))return;let i=wf(r,n),a=this.#h(r,n,i);if(a&&Sf(e,a))return}let a=wf(r,i),o=this.#h(r,i,a);if(o&&Sf(e,o))return;let s=this.#i===`content`?i:r;Sf(e,this.#g(this.#r,s,a,this.#i))||(this.#m(),this.#e.onPointerExit())}#m(){this.#r=null,this.#i=null,this.#a=[],this.#l(),this.#d()}#h(e,t,n){let r=this.#t;switch(n){case`top`:return[[Math.min(e.left,t.left)-r,e.top],[Math.min(e.left,t.left)-r,t.bottom],[Math.max(e.right,t.right)+r,t.bottom],[Math.max(e.right,t.right)+r,e.top]];case`bottom`:return[[Math.min(e.left,t.left)-r,e.bottom],[Math.min(e.left,t.left)-r,t.top],[Math.max(e.right,t.right)+r,t.top],[Math.max(e.right,t.right)+r,e.bottom]];case`left`:return[[e.left,Math.min(e.top,t.top)-r],[t.right,Math.min(e.top,t.top)-r],[t.right,Math.max(e.bottom,t.bottom)+r],[e.left,Math.max(e.bottom,t.bottom)+r]];case`right`:return[[e.right,Math.min(e.top,t.top)-r],[t.left,Math.min(e.top,t.top)-r],[t.left,Math.max(e.bottom,t.bottom)+r],[e.right,Math.max(e.bottom,t.bottom)+r]]}}#g(e,t,n,r){let i=this.#t*4,[a,o]=e;switch(r===`trigger`?this.#_(n):n){case`top`:return[[a-i,o+i],[a+i,o+i],[t.right+i,t.bottom],[t.right+i,t.top],[t.left-i,t.top],[t.left-i,t.bottom]];case`bottom`:return[[a-i,o-i],[a+i,o-i],[t.right+i,t.top],[t.right+i,t.bottom],[t.left-i,t.bottom],[t.left-i,t.top]];case`left`:return[[a+i,o-i],[a+i,o+i],[t.right,t.bottom+i],[t.left,t.bottom+i],[t.left,t.top-i],[t.right,t.top-i]];case`right`:return[[a-i,o-i],[a-i,o+i],[t.left,t.bottom+i],[t.right,t.bottom+i],[t.right,t.top-i],[t.left,t.top-i]]}}#_(e){switch(e){case`top`:return`bottom`;case`bottom`:return`top`;case`left`:return`right`;case`right`:return`left`}}},Ef=ss({component:`label`,parts:[`root`]}),Df=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=$o(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=B(()=>({id:this.opts.id.current,[Ef.root]:``,onmousedown:this.onmousedown,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}},Of=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`for`]),kf=V(`<label><!></label>`);function Af(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=I(t,Of),o=Df.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e))}),s=B(()=>yo(a,o.props,{for:t.for}));var c=H(),l=D(c),u=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(s)})),R(e,n)},f=e=>{var n=kf();z(n,()=>({...L(s),for:t.for}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(l,e=>{t.child?e(u):e(f,-1)}),R(e,c),k()}var jf=ss({component:`progress`,parts:[`root`]}),Mf=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=$o(this.opts.ref)}#e=B(()=>({role:`progressbar`,value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":Nf(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?``:void 0,[jf.root]:``,...this.attachment}));get props(){return L(this.#e)}set props(e){c(this.#e,e)}};function Nf(e,t){return e===null?`indeterminate`:e===t?`loaded`:`loading`}var Pf=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`value`,`max`,`min`,`id`,`ref`]),Ff=V(`<div><!></div>`);function If(e,t){let n=fe();j(t,!0);let r=W(t,`value`,3,0),i=W(t,`max`,3,100),a=W(t,`min`,3,0),o=W(t,`id`,19,()=>Ds(n)),s=W(t,`ref`,15,null),c=I(t,Pf),l=Mf.create({value:$(()=>r()),max:$(()=>i()),min:$(()=>a()),id:$(()=>o()),ref:$(()=>s(),e=>s(e))}),u=B(()=>yo(c,l.props));var f=H(),p=D(f),m=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(u)})),R(e,n)},h=e=>{var n=Ff();z(n,()=>({...L(u)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(p,e=>{t.child?e(m):e(h,-1)}),R(e,f),k()}var Lf=class{#e;#t;#n=null;constructor(e,t){this.#t=e,this.#e=t,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Io(this.stop)}#r(){this.#n!==null&&(window.clearTimeout(this.#n),this.#n=null)}stop(){this.#r()}start(...e){this.#r(),this.#n=window.setTimeout(()=>{this.#n=null,this.#t(...e)},this.#e)}},Rf=ss({component:`tooltip`,parts:[`content`,`trigger`]}),zf=new Oo(`Tooltip.Provider`),Bf=new Oo(`Tooltip.Root`),Vf=class{#e=E(x(new Map));get triggers(){return L(this.#e)}set triggers(e){c(this.#e,e,!0)}#t=E(null);get activeTriggerId(){return L(this.#t)}set activeTriggerId(e){c(this.#t,e,!0)}#n=B(()=>{let e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return L(this.#n)}set activeTriggerNode(e){c(this.#n,e)}#r=B(()=>{let e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return L(this.#r)}set activePayload(e){c(this.#r,e)}register=e=>{let t=new Map(this.triggers);t.set(e.id,e),this.triggers=t,this.#i()};update=e=>{let t=new Map(this.triggers);t.set(e.id,e),this.triggers=t,this.#i()};unregister=e=>{if(!this.triggers.has(e))return;let t=new Map(this.triggers);t.delete(e),this.triggers=t,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{this.activeTriggerId=e===null?null:this.triggers.has(e)?e:null};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{let e=this.triggers.entries().next();return e.done?null:e.value[0]};#i=()=>{let e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}},Hf=class e{static create(t){return zf.set(new e(t))}opts;#e=E(!0);get isOpenDelayed(){return L(this.#e)}set isOpenDelayed(e){c(this.#e,e,!0)}isPointerInTransit=La(!1);#t;#n=E(null);constructor(e){this.opts=e,this.#t=new Lf(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),Lo(()=>me(window,`scroll`,e=>{let t=L(this.#n);if(!t)return;let n=t.triggerNode;if(!n)return;let r=e.target;(r instanceof Element||r instanceof Document)&&r.contains(n)&&t.handleClose()}))}#r=()=>{this.opts.skipDelayDuration.current===0?this.isOpenDelayed=!0:this.#t.start()};#i=()=>{this.#t.stop()};onOpen=e=>{L(this.#n)&&L(this.#n)!==e&&L(this.#n).handleClose(),this.#i(),this.isOpenDelayed=!1,c(this.#n,e,!0)};onClose=e=>{L(this.#n)===e&&(c(this.#n,null),this.#r())};isTooltipOpen=e=>L(this.#n)===e},Uf=class e{static create(t){return Bf.set(new e(t,zf.get()))}opts;provider;#e=B(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return L(this.#e)}set delayDuration(e){c(this.#e,e)}#t=B(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return L(this.#t)}set disableHoverableContent(e){c(this.#t,e)}#n=B(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return L(this.#n)}set disableCloseOnTriggerClick(e){c(this.#n,e)}#r=B(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return L(this.#r)}set disabled(e){c(this.#r,e)}#i=B(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return L(this.#i)}set ignoreNonKeyboardFocus(e){c(this.#i,e)}registry;tether;#a=E(null);get contentNode(){return L(this.#a)}set contentNode(e){c(this.#a,e,!0)}contentPresence;#o=E(!1);#s;#c=B(()=>this.opts.open.current?L(this.#o)?`delayed-open`:`instant-open`:`closed`);get stateAttr(){return L(this.#c)}set stateAttr(e){c(this.#c,e)}constructor(e,t){this.opts=e,this.provider=t,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Vf,this.#s=new Lf(()=>{c(this.#o,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,Lo(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new Ts({open:this.opts.open,ref:$(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),jo(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new Lf(()=>{c(this.#o,!0),this.opts.open.current=!0},this.delayDuration))}),jo(()=>this.opts.open.current,e=>{e?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),jo(()=>this.opts.triggerId.current,e=>{e!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(e)}),jo(()=>this.registry.activeTriggerId,e=>{this.opts.triggerId.current!==e&&(this.opts.triggerId.current=e)})}handleOpen=()=>{this.#s.stop(),c(this.#o,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#s.stop()};#l=()=>{this.#s.stop();let e=!this.provider.isOpenDelayed,t=this.delayDuration??0;e||t===0?(c(this.#o,!1),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#l()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}let e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{let t=this.registry.activeTriggerId===e;this.registry.unregister(e),t&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}},Wf=class e{static create(t){return t.tether.current?new e(t,null,t.tether.current.state):new e(t,Bf.get(),null)}opts;root;tether;attachment;#e=La(!1);#t=E(!1);domContext;#n=null;#r=!1;#i=null;constructor(e,t,n){this.opts=e,this.root=t,this.tether=n,this.domContext=new Qo(e.ref),this.attachment=$o(this.opts.ref,e=>this.#s(e)),jo(()=>this.opts.id.current,()=>{this.#s(this.opts.ref.current)}),jo(()=>this.opts.payload.current,()=>{this.#s(this.opts.ref.current)}),jo(()=>this.opts.disabled.current,()=>{this.#s(this.opts.ref.current)}),Lo(()=>(this.#r=!0,this.#s(this.opts.ref.current),()=>{let e=this.#a(),t=this.#i;t&&(this.tether?this.tether.registry.unregister(t):e?.unregisterTrigger(t)),this.#i=null,this.#r=!1}))}#a=()=>this.tether?.root??this.root;#o=()=>{let e=this.#a();return this.opts.disabled.current||!!e?.disabled};#s=e=>{if(!this.#r)return;let t=this.opts.id.current,n=this.opts.payload.current,r=this.opts.disabled.current;if(this.#i&&this.#i!==t){let e=this.#a();this.tether?this.tether.registry.unregister(this.#i):e?.unregisterTrigger(this.#i)}let i={id:t,node:e,payload:n,disabled:r},a=this.#a();this.tether?(this.tether.registry.has(t)?this.tether.registry.update(i):this.tether.registry.register(i),r&&this.tether.registry.activeTriggerId===t&&a?.opts.open.current&&a.handleClose()):a?.registry.has(t)?a.updateTrigger(i):a?.registerTrigger(i),this.#i=t};#c=()=>{this.#n!==null&&(clearTimeout(this.#n),this.#n=null)};handlePointerUp=()=>{this.#e.current=!1};#l=()=>{this.#o()||(this.#e.current=!1)};#u=()=>{if(this.#o())return;let e=this.#a();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#e.current=!0,this.domContext.getDocument().addEventListener(`pointerup`,()=>{this.handlePointerUp()},{once:!0})};#d=e=>{let t=this.#a();t&&(this.#o()?t.opts.open.current&&t.handleClose():e.pointerType!==`touch`&&(t.provider.isPointerInTransit.current?(this.#c(),this.#n=window.setTimeout(()=>{t.provider.isPointerInTransit.current&&(t.provider.isPointerInTransit.current=!1,t.onTriggerEnter(this.opts.id.current),c(this.#t,!0))},250)):(t.onTriggerEnter(this.opts.id.current),c(this.#t,!0))))};#f=e=>{let t=this.#a();t&&(this.#o()?t.opts.open.current&&t.handleClose():e.pointerType!==`touch`&&(L(this.#t)||(this.#c(),t.provider.isPointerInTransit.current=!1,t.onTriggerEnter(this.opts.id.current),c(this.#t,!0))))};#p=e=>{let t=this.#a();if(!t||this.#o())return;if(this.#c(),!t.isActiveTrigger(this.opts.id.current)){c(this.#t,!1);return}let n=e.relatedTarget;if(bs(n)){for(let e of t.registry.triggers.values())if(e.node===n){if(t.provider.opts.skipDelayDuration.current>0){c(this.#t,!1);return}t.handleClose(),c(this.#t,!1);return}}t.onTriggerLeave(),c(this.#t,!1)};#m=e=>{let t=this.#a();t&&(this.#e.current||(this.#o()?t.opts.open.current&&t.handleClose():(!t.ignoreNonKeyboardFocus||Ss(e.currentTarget))&&(t.setActiveTrigger(this.opts.id.current),t.handleOpen())))};#h=()=>{let e=this.#a();e&&!this.#o()&&e.handleClose()};#g=()=>{let e=this.#a();!e||e.disableCloseOnTriggerClick||this.#o()||e.handleClose()};#_=B(()=>{let e=this.#a(),t=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),n=this.#o();return{id:this.opts.id.current,"aria-describedby":t?e?.contentNode?.id:void 0,"data-state":t?e?.stateAttr:`closed`,"data-disabled":ns(n),"data-delay-duration":`${e?.delayDuration??0}`,[Rf.trigger]:``,tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#l,onpointerdown:this.#u,onpointerenter:this.#d,onpointermove:this.#f,onpointerleave:this.#p,onfocus:this.#m,onblur:this.#h,onclick:this.#g,...this.attachment}});get props(){return L(this.#_)}set props(e){c(this.#_,e)}},Gf=class e{static create(t){return new e(t,Bf.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=$o(this.opts.ref,e=>this.root.contentNode=e),new Tf({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];let e=[],t=this.root.triggerNode;for(let n of this.root.registry.triggers.values())n.node&&n.node!==t&&e.push(n.node);return e},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{bs(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick?e.preventDefault():(this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose())};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=B(()=>({open:this.root.opts.open.current}));get snippetProps(){return L(this.#e)}set snippetProps(e){c(this.#e,e)}#t=B(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":ns(this.root.disabled),...as(this.root.contentPresence.transitionStatus),style:{outline:`none`},[Rf.content]:``,...this.attachment}));get props(){return L(this.#t)}set props(e){c(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}};function Kf(e,t){j(t,!0);let n=W(t,`open`,15,!1),r=W(t,`triggerId`,15,null),i=W(t,`onOpenChange`,3,Es),a=W(t,`onOpenChangeComplete`,3,Es),o=Uf.create({open:$(()=>n(),e=>{n(e),i()(e)}),triggerId:$(()=>r(),e=>{r(e)}),delayDuration:$(()=>t.delayDuration),disableCloseOnTriggerClick:$(()=>t.disableCloseOnTriggerClick),disableHoverableContent:$(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:$(()=>t.ignoreNonKeyboardFocus),disabled:$(()=>t.disabled),onOpenChangeComplete:$(()=>a()),tether:$(()=>t.tether)});Qd(e,{tooltip:!0,children:(e,n)=>{var r=H(),i=D(r);_(i,()=>t.children??M,()=>({open:o.opts.open.current,triggerId:o.activeTriggerId,payload:o.activePayload})),R(e,r)},$$slots:{default:!0}}),k()}var qf=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`side`,`sideOffset`,`align`,`avoidCollisions`,`arrowPadding`,`sticky`,`strategy`,`hideWhenDetached`,`customAnchor`,`collisionPadding`,`onInteractOutside`,`onEscapeKeydown`,`forceMount`,`style`]),Jf=V(`<div><div><!></div></div>`);function Yf(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`ref`,15,null),a=W(t,`side`,3,`top`),o=W(t,`sideOffset`,3,0),s=W(t,`align`,3,`center`),c=W(t,`avoidCollisions`,3,!0),l=W(t,`arrowPadding`,3,0),u=W(t,`sticky`,3,`partial`),f=W(t,`hideWhenDetached`,3,!1),p=W(t,`collisionPadding`,3,0),m=W(t,`onInteractOutside`,3,Es),h=W(t,`onEscapeKeydown`,3,Es),g=W(t,`forceMount`,3,!1),v=I(t,qf),y=Gf.create({id:$(()=>r()),ref:$(()=>i(),e=>i(e)),onInteractOutside:$(()=>m()),onEscapeKeydown:$(()=>h())}),b=B(()=>({side:a(),sideOffset:o(),align:s(),avoidCollisions:c(),arrowPadding:l(),sticky:u(),hideWhenDetached:f(),collisionPadding:p(),strategy:t.strategy,customAnchor:t.customAnchor??y.root.triggerNode})),x=B(()=>yo(v,L(b),y.props));var S=H(),C=D(S),T=e=>{{let n=(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=B(()=>yo(i(),{style:{pointerEvents:y.root.disableHoverableContent?`none`:void 0}})),o=B(()=>yo(r(),{style:Rd(`tooltip`)},{style:t.style}));var s=H(),c=D(s),l=e=>{var n=H(),r=D(n);{let e=B(()=>({props:L(o),wrapperProps:L(a),...y.snippetProps}));_(r,()=>t.child,()=>L(e))}R(e,n)},u=e=>{var n=Jf();z(n,()=>({...L(a)}));var r=w(n);z(r,()=>({...L(o)}));var i=w(r);_(i,()=>t.children??M),G(r),G(n),R(e,n)};d(c,e=>{t.child?e(l):e(u,-1)}),R(e,s)},i=B(()=>y.root.disableHoverableContent?`none`:`auto`);xf(e,U(()=>L(x),()=>y.popperProps,{get enabled(){return y.root.opts.open.current},get id(){return r()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return y.opts.ref},tooltip:!0,get shouldRender(){return y.shouldRender},get contentPointerEvents(){return L(i)},popper:n,$$slots:{popper:!0}}))}},E=e=>{{let n=(e,n)=>{let r=()=>(n?.()).props,i=()=>(n?.()).wrapperProps,a=B(()=>yo(i(),{style:{pointerEvents:y.root.disableHoverableContent?`none`:void 0}})),o=B(()=>yo(r(),{style:Rd(`tooltip`)},{style:t.style}));var s=H(),c=D(s),l=e=>{var n=H(),r=D(n);{let e=B(()=>({props:L(o),wrapperProps:L(a),...y.snippetProps}));_(r,()=>t.child,()=>L(e))}R(e,n)},u=e=>{var n=Jf();z(n,()=>({...L(a)}));var r=w(n);z(r,()=>({...L(o)}));var i=w(r);_(i,()=>t.children??M),G(r),G(n),R(e,n)};d(c,e=>{t.child?e(l):e(u,-1)}),R(e,s)},i=B(()=>y.root.disableHoverableContent?`none`:`auto`);yf(e,U(()=>L(x),()=>y.popperProps,{get open(){return y.root.opts.open.current},get id(){return r()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return y.opts.ref},tooltip:!0,get shouldRender(){return y.shouldRender},get contentPointerEvents(){return L(i)},popper:n,$$slots:{popper:!0}}))}};d(C,e=>{g()?e(T):g()||e(E,1)}),R(e,S),k()}var Xf=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`disabled`,`payload`,`tether`,`type`,`tabindex`,`ref`]),Zf=V(`<button><!></button>`);function Qf(e,t){let n=fe();j(t,!0);let r=W(t,`id`,19,()=>Ds(n)),i=W(t,`disabled`,3,!1),a=W(t,`type`,3,`button`),o=W(t,`tabindex`,3,0),s=W(t,`ref`,15,null),c=I(t,Xf),l=Wf.create({id:$(()=>r()),disabled:$(()=>i()??!1),tabindex:$(()=>o()??0),payload:$(()=>t.payload),tether:$(()=>t.tether),ref:$(()=>s(),e=>s(e))}),u=B(()=>yo(c,l.props,{type:a()}));var f=H(),p=D(f),m=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(u)})),R(e,n)},h=e=>{var n=Zf();z(n,()=>({...L(u)}));var r=w(n);_(r,()=>t.children??M),G(n),R(e,n)};d(p,e=>{t.child?e(m):e(h,-1)}),R(e,f),k()}var $f=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function ep(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,$f);af(e,U(()=>r,{get ref(){return n()},set ref(e){n(e)}})),k()}function tp(e,t){j(t,!0);let n=W(t,`delayDuration`,3,700),r=W(t,`disableCloseOnTriggerClick`,3,!1),i=W(t,`disableHoverableContent`,3,!1),a=W(t,`disabled`,3,!1),o=W(t,`ignoreNonKeyboardFocus`,3,!1),s=W(t,`skipDelayDuration`,3,300);Hf.create({delayDuration:$(()=>n()),disableCloseOnTriggerClick:$(()=>r()),disableHoverableContent:$(()=>i()),disabled:$(()=>a()),ignoreNonKeyboardFocus:$(()=>o()),skipDelayDuration:$(()=>s())});var c=H(),l=D(c);_(l,()=>t.children??M),R(e,c),k()}var np=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`data-slot`]);function rp(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`data-slot`,3,`separator`),a=I(t,np);var o=H(),s=D(o);{let e=B(()=>Y(`shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px`,`data-[orientation=vertical]:h-full`,t.class));n(s,()=>ff,(t,n)=>{n(t,U({get"data-slot"(){return i()},get class(){return L(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,o),k()}ma({base:`has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg flex w-fit items-stretch [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1`,variants:{orientation:{horizontal:`[&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]]:rounded-r-none [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0`,vertical:`[&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! flex-col [&>[data-slot]]:rounded-b-none [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0`}},defaultVariants:{orientation:`horizontal`}});var ip=new Set([`$$slots`,`$$events`,`$$legacy`]);function ap(e,t){let n=I(t,ip),r=[[`path`,{d:`m15 18-6-6 6-6`}]];Te(e,U({name:`chevron-left`},()=>n,{get iconNode(){return r}}))}var op=new Set([`$$slots`,`$$events`,`$$legacy`]);function sp(e,t){let n=I(t,op),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];Te(e,U({name:`check`},()=>n,{get iconNode(){return r}}))}var cp=new Set([`$$slots`,`$$events`,`$$legacy`]);function lp(e,t){let n=I(t,cp),r=[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`}]];Te(e,U({name:`copy`},()=>n,{get iconNode(){return r}}))}var up=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`name`,`color`,`stroke`,`aria-label`]);function dp(e,t){j(t,!0);let n=W(t,`role`,3,`status`),r=W(t,`aria-label`,3,`Loading`),i=I(t,up);{let a=B(()=>t.name===null?void 0:t.name),o=B(()=>t.color===null?void 0:t.color),s=B(()=>t.stroke===null?void 0:t.stroke),c=B(()=>Y(`size-4 animate-spin`,t.class));Ee(e,U({get role(){return n()},get name(){return L(a)},get color(){return L(o)},get stroke(){return L(s)},get"aria-label"(){return r()},get class(){return L(c)}},()=>i))}k()}var fp=new Set([`$$slots`,`$$events`,`$$legacy`,`text`,`label`,`disabled`,`oncopy`,`icon`,`class`]),pp=V(`<!> <!>`,1);function mp(e,t){j(t,!0);let n=I(t,fp),r=E(!1),i=E(!1),a=!navigator.clipboard;async function o(){if(!L(r)){if(c(i,!0),typeof ClipboardItem>`u`){let e=typeof t.text==`function`?await t.text():t.text;if(e===null)return;await navigator.clipboard.writeText(e)}else{let e=s(t.text);await navigator.clipboard.write([e])}c(i,!1),c(r,!0),t.oncopy?.(),setTimeout(()=>c(r,!1),2e3)}}function s(e){return typeof e==`function`?l(e):new ClipboardItem({"text/plain":new Blob([e],{type:`text/plain`})})}function l(e){return new ClipboardItem({"text/plain":e().then(e=>new Blob([e??``],{type:`text/plain`}))})}{let s=B(()=>Y(t.class)),c=B(()=>t.disabled||a||L(i));ya(e,U({get class(){return L(s)},onclick:o,get disabled(){return L(c)}},()=>n,{children:(e,n)=>{var a=pp(),o=D(a),s=e=>{sp(e,{class:`text-constructive`,strokeWidth:3})},c=e=>{dp(e,{})},l=e=>{var n=H(),r=D(n);_(r,()=>t.icon),R(e,n)},u=e=>{lp(e,{})};d(o,e=>{L(r)?e(s):L(i)?e(c,1):t.icon===void 0?e(u,-1):e(l,2)});var f=g(o,2),p=e=>{var n=F();P(()=>N(n,t.label)),R(e,n)};d(f,e=>{t.label!==null&&e(p)}),R(e,a)},$$slots:{default:!0}}))}k()}var hp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),gp=V(`<div><!></div>`);function _p(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,hp);var i=gp();z(i,e=>({"data-slot":`item-actions`,class:e,...r}),[()=>Y(`gap-2 flex items-center`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var vp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),yp=V(`<div><!></div>`);function bp(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,vp);var i=yp();z(i,e=>({"data-slot":`item-content`,class:e,...r}),[()=>Y(`gap-1 group-data-[size=xs]/item:gap-0 flex flex-1 flex-col [&+[data-slot=item-content]]:flex-none`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var xp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Sp=V(`<p><!></p>`);function Cp(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,xp);var i=Sp();z(i,e=>({"data-slot":`item-description`,class:e,...r}),[()=>Y(`text-left text-sm leading-normal text-muted-foreground group-data-[size=xs]/item:text-xs line-clamp-2 font-normal [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var wp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Tp=V(`<div><!></div>`);function Ep(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,wp);var i=Tp();z(i,e=>({role:`list`,"data-slot":`item-group`,class:e,...r}),[()=>Y(`gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2 group/item-group flex w-full flex-col`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var Dp=ma({base:`gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start flex shrink-0 items-center justify-center [&_svg]:pointer-events-none`,variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*='size-'])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}}),Op=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`variant`]),kp=V(`<div><!></div>`);function Ap(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=W(t,`variant`,3,`default`),i=I(t,Op);var a=kp();z(a,e=>({"data-slot":`item-media`,"data-variant":r(),class:e,...i}),[()=>Y(Dp({variant:r()}),t.class)]);var o=w(a);_(o,()=>t.children??M),G(a),T(a,e=>n(e),()=>n()),R(e,a),k()}var jp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Mp=V(`<div><!></div>`);function Np(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,jp);var i=Mp();z(i,e=>({"data-slot":`item-title`,class:e,...r}),[()=>Y(`gap-2 text-sm leading-snug font-medium underline-offset-4 line-clamp-1 flex w-fit items-center`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var Pp=ma({base:`rounded-lg border text-sm [a]:hover:bg-muted group/item flex w-full flex-wrap items-center transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors`,variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}}),Fp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`child`,`variant`,`size`]),Ip=V(`<div><!></div>`);function Lp(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,Fp),i=B(()=>({class:Y(Pp({variant:t.variant,size:t.size}),t.class),"data-slot":`item`,"data-variant":t.variant,"data-size":t.size,...r}));var a=H(),o=D(a),s=e=>{var n=H(),r=D(n);_(r,()=>t.child,()=>({props:L(i)})),R(e,n)},c=e=>{var t=Ip();z(t,()=>({...L(i)}));var r=w(t);_(r,()=>L(i).children??M),G(t),T(t,e=>n(e),()=>n()),R(e,t)};d(o,e=>{t.child?e(s):e(c,-1)}),R(e,a),k()}var Rp=new Set([`$$slots`,`$$events`,`$$legacy`]);function zp(e,t){let n=I(t,Rp),r=[[`path`,{d:`m9 18 6-6-6-6`}]];Te(e,U({name:`chevron-right`},()=>n,{get iconNode(){return r}}))}var Bp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`size`]);function Vp(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`variant`,3,`outline`),a=W(t,`size`,3,`default`),o=I(t,Bp);var s=H(),c=D(s);{let e=B(()=>Y(ha({variant:i(),size:a()}),`cn-alert-dialog-cancel`,t.class));n(c,()=>Hs,(t,n)=>{n(t,U({"data-slot":`alert-dialog-cancel`,get class(){return L(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,s),k()}var Hp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Up(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,Hp);var a=H(),o=D(a);{let e=B(()=>Y(`bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50`,t.class));n(o,()=>bl,(t,n)=>{n(t,U({"data-slot":`alert-dialog-overlay`,get class(){return L(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,a),k()}var Wp=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gp(e,t){let r=I(t,Wp);var i=H(),a=D(i);n(a,()=>Xs,(e,t)=>{t(e,U(()=>r))}),R(e,i)}var Kp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`size`,`portalProps`]),qp=V(`<!> <!>`,1);function Jp(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`size`,3,`default`),a=I(t,Kp);Gp(e,U(()=>t.portalProps,{children:(e,o)=>{var s=qp(),c=D(s);Up(c,{});var l=g(c,2);{let e=B(()=>Y(`gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 outline-none`,t.class));n(l,()=>_l,(t,n)=>{n(t,U({"data-slot":`alert-dialog-content`,get"data-size"(){return i()},get class(){return L(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,s)},$$slots:{default:!0}})),k()}var Yp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Xp=V(`<div><!></div>`);function Zp(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,Yp);var i=Xp();z(i,e=>({"data-slot":`alert-dialog-footer`,class:e,...r}),[()=>Y(`-mx-4 -mb-4 rounded-b-xl border-t bg-muted/50 p-4 flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var Qp=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),$p=V(`<div><!></div>`);function em(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=I(t,Qp);var i=$p();z(i,e=>({"data-slot":`alert-dialog-header`,class:e,...r}),[()=>Y(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,t.class)]);var a=w(i);_(a,()=>t.children??M),G(i),T(i,e=>n(e),()=>n()),R(e,i),k()}var tm=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function nm(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,tm);var a=H(),o=D(a);{let e=B(()=>Y(`text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,t.class));n(o,()=>zs,(t,n)=>{n(t,U({"data-slot":`alert-dialog-title`,get class(){return L(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,a),k()}var rm=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function im(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,rm);var a=H(),o=D(a);n(o,()=>Cl,(e,t)=>{t(e,U({"data-slot":`alert-dialog-trigger`},()=>i,{get ref(){return r()},set ref(e){r(e)}}))}),R(e,a),k()}var am=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function om(e,t){j(t,!0);let r=W(t,`open`,15,!1),i=I(t,am);var a=H(),o=D(a);n(o,()=>Is,(e,t)=>{t(e,U(()=>i,{get open(){return r()},set open(e){r(e)}}))}),R(e,a),k()}var sm=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`max`,`value`]),cm=V(`<div data-slot="progress-indicator" class="bg-primary size-full flex-1 transition-all"></div>`);function lm(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`max`,3,100),a=I(t,sm);var o=H(),s=D(o);{let e=B(()=>Y(`h-1 rounded-full bg-muted relative flex w-full items-center overflow-x-hidden`,t.class));n(s,()=>If,(n,o)=>{o(n,U({"data-slot":`progress`,get class(){return L(e)},get value(){return t.value},get max(){return i()}},()=>a,{get ref(){return r()},set ref(e){r(e)},children:(e,n)=>{var r=cm();P(()=>C(r,`transform: translateX(-${100-100*(t.value??0)/(i()??1)}%)`)),R(e,r)},$$slots:{default:!0}}))})}R(e,o),k()}var um=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`duration`,`label`,`variant`,`children`,`position`,`align`,`portal`,`onclick`,`onpress`,`class`,`message`]),dm=V(`<div><div class="text-xs text-muted-foreground"><!></div> <!></div>`),fm=V(`<!> <!>`,1);function pm(e,t){j(t,!0);let n=()=>xe(L(te),`$countdown`,r),[r,a]=i(),o=W(t,`name`,3,`hold`),u=W(t,`duration`,3,800),f=W(t,`variant`,3,`ghost`),p=W(t,`position`,3,`left`),m=W(t,`align`,3,`center`),h=W(t,`portal`,3,!0),v=I(t,um),y=E(!1),S=E(!1),T=E(null),te=E(x(ge(u()))),ne=B(()=>Math.round((1-n()/u())*100));be(()=>{n()===0&&A()});function re(e){oe(e),e.altKey?A(!0):ie()}function O(e){e.key===` `&&ie()}function ie(){L(y)||(t.onpress?.(),c(y,!0),c(S,!0),s(c(te,je(u(),60),!0),`$countdown`,r),L(T)&&clearTimeout(L(T)))}function ae(){L(y)&&(c(T,setTimeout(()=>{c(S,!1)},L(ne)>20?200:1e3),!0),c(y,!1),s(c(te,ge(u()),!0),`$countdown`,r))}function A(e=!1){(L(y)||e)&&(t.onclick?.(),c(y,!1),c(T,setTimeout(()=>{c(S,!1),s(c(te,ge(u()),!0),`$countdown`,r)},300),!0))}function oe(e){e.preventDefault(),e.stopPropagation()}function se(e,t){if(t)return document.body.appendChild(e),{destroy:()=>e.remove()}}var ce=fm(),le=D(ce);{let e=B(()=>Y(`select-none`,t.class)),n=B(()=>`anchor-name: --${o()};`);ya(le,U({get variant(){return f()}},()=>v,{get class(){return L(e)},onpointerdown:re,onkeydown:O,oncontextmenu:oe,onpointerup:ae,onpointerleave:ae,onkeyup:ae,get style(){return L(n)},children:(e,n)=>{var r=H(),i=D(r);_(i,()=>t.children??M),R(e,r)},$$slots:{default:!0}}))}var ue=g(le,2),de=e=>{var n=dm(),r=w(n),i=w(r),a=e=>{var n=H(),r=D(n);_(r,()=>t.message),R(e,n)},s=e=>{var n=F();P(()=>N(n,t.label)),R(e,n)};d(i,e=>{t.message?e(a):e(s,-1)}),G(r),lm(g(r,2),{get value(){return L(ne)},class:`h-1 [&_div[data-slot=progress-indicator]]:bg-destructive/90 [&_div[data-slot=progress-indicator]]:transition-none`}),G(n),b(n,(e,t)=>se?.(e,t),h),P(e=>{ee(n,1,e),C(n,`position-anchor: --${o()}; position-area: ${p()} ${m()};`)},[()=>l(Y(`fixed z-1002 w-fit min-w-26 transition-all ease-in-out space-y-1`,`bg-background/85 p-2 pt-1 rounded-md`,`starting:scale-0`))]),R(e,n)};d(ue,e=>{L(S)&&e(de)}),R(e,ce),k(),a()}async function mm(e){return await Pe(e)}var hm=new Set([`$$slots`,`$$events`,`$$legacy`]);function gm(e,t){let n=I(t,hm),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`}],[`path`,{d:`M2 12h20`}]];Te(e,U({name:`globe`},()=>n,{get iconNode(){return r}}))}var _m=new Set([`$$slots`,`$$events`,`$$legacy`]);function vm(e,t){let n=I(t,_m),r=[[`path`,{d:`m10.929 14.467-.383.924`}],[`path`,{d:`M10.929 8.923 10.546 8`}],[`path`,{d:`M13.225 8.923 13.608 8`}],[`path`,{d:`m13.607 15.391-.382-.924`}],[`path`,{d:`m14.849 10.547.923-.383`}],[`path`,{d:`m14.849 12.843.923.383`}],[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9.305 10.547-.923-.383`}],[`path`,{d:`m9.305 12.843-.923.383`}],[`circle`,{cx:`12.077`,cy:`11.695`,r:`3`}]];Te(e,U({name:`shield-cog`},()=>n,{get iconNode(){return r}}))}var ym=new Set([`$$slots`,`$$events`,`$$legacy`]);function bm(e,t){let n=I(t,ym),r=[[`path`,{d:`M12 13v3`}],[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 01-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 011-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 011.52 0C14.51 3.81 17 5 19 5a1 1 0 011 1z`}],[`circle`,{cx:`12`,cy:`11`,r:`2`}]];Te(e,U({name:`shield-keyhole`},()=>n,{get iconNode(){return r}}))}var xm=new Set([`$$slots`,`$$events`,`$$legacy`]);function Sm(e,t){let n=I(t,xm),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Te(e,U({name:`shield-question-mark`},()=>n,{get iconNode(){return r}}))}var Cm=new Set([`$$slots`,`$$events`,`$$legacy`]);function wm(e,t){let n=I(t,Cm),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`M6.376 18.91a6 6 0 0 1 11.249.003`}],[`circle`,{cx:`12`,cy:`11`,r:`4`}]];Te(e,U({name:`shield-user`},()=>n,{get iconNode(){return r}}))}var Tm=he(``),Em=he(null),Dm=2,Om=1,km=new Set([`identity`,`introspection`,`configuration`,`realtime`]);function Am(e){return km.has(e.split(`/`)[1]??``)}function jm(e){return e.endsWith(`/`)?e:e+`/`}function Mm(e){return Object.keys(e).filter(e=>e===e.toUpperCase()&&e!==``)}function Nm(e,t){return e[t]}var Pm={configuration:`/configuration/values`,introspection:`/introspection/nodes`};function Fm(e){return e.anonymous===!0&&Bm(e)===`public`}function Im(e){return typeof e!=`object`||!e||e.routes==null?null:e}function Lm(e,t){let n=Im(e);return n!==null&&t in n.routes}function Rm(e){let t=Im(e);return t!==null&&Object.values(t.routes).some(e=>Mm(e).some(t=>Nm(e,t).mcp===!0))}function zm(e,t){return Im(e)?.mcp??`${t}/.mcp`}function Bm(e){return e.system===!0?`system`:e.protected===!0?`protected`:e.private===!0?`private`:e.authenticated===!0?`authenticated`:`public`}var Vm={system:vm,protected:bm,private:wm,authenticated:Sm,public:gm};function Hm(e,t,n){return Um(e,n)?Dm:[t.title,t.description].concat(Mm(t),Mm(t).flatMap(e=>[Nm(t,e).title,Nm(t,e).description])).filter(e=>typeof e==`string`).some(e=>Um(e,n))?Om:0}function Um(e,t){let n=t.toLowerCase().replace(/\s+/g,``);if(n===``)return!0;let r=e.toLowerCase(),i=0;for(let e of n)if(i=r.indexOf(e,i)+1,i===0)return!1;return!0}var Wm={"en-US":{resources:{nomatch:`No results match the filter.`},resource:{route:`route`,query:`query`,input:`input`,output:`output`,errors:`errors`,none:`none`,copy:`Copy JSON Schema`,json:`Copy the answer`,unset:`not defined`,expand:`Show what it serves`,once:`Safe to retry`,mcp:`Published as a tool`,selection:`selection`,search:`Takes a text search`},guard:{public:`Anyone may reach it`,private:`Your own`,protected:`Takes a role`,system:`What the application runs on`,authenticated:`Takes being someone`},space:{user:`Userspace`,system:`System`},call:{open:`Call this method`,send:`Send request`,cancel:`Cancel`,close:`Close`,back:`Back`,hold:`Hold to send`,sending:`Sending…`,nothing:`This call takes nothing.`,invalid:`The body is not JSON.`,required:`The path does not resolve without it.`,answered:`answered`,refused:`refused`,body:`body`,empty:`No content.`,file:`file`,anything:`anything`,stream:`streamed`,streamed:`The reply arrives in parts as the work is done.`},guide:{authentication:{title:`Authentication`},multipart:{title:`Multipart responses`},queries:{title:`Collection queries`},status:{title:`Status codes`}}}},Gm=ue(Ie,e=>Wm[e]),Km=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function qm(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,Km);var a=H(),o=D(a);n(o,()=>Pl,(e,t)=>{t(e,U({"data-slot":`collapsible-content`},()=>i,{get ref(){return r()},set ref(e){r(e)}}))}),R(e,a),k()}var Jm=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function Ym(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,Jm);var a=H(),o=D(a);n(o,()=>Ll,(e,t)=>{t(e,U({"data-slot":`collapsible-trigger`},()=>i,{get ref(){return r()},set ref(e){r(e)}}))}),R(e,a),k()}var Xm=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`open`]);function Zm(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`open`,15,!1),a=I(t,Xm);var o=H(),s=D(o),c=()=>i(),l=e=>void Oe(()=>i(e));n(s,()=>jl,(e,t)=>{t(e,U({get open(){return c()},set open(e){l(e)},"data-slot":`collapsible`},()=>a,{get ref(){return r()},set ref(e){r(e)}}))}),R(e,o),k()}var Qm=ma({base:`h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none`,variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}}),$m=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`href`,`class`,`variant`,`children`]);function eh(e,t){j(t,!0);let n=W(t,`ref`,15,null),r=W(t,`variant`,3,`default`),i=I(t,$m);var a=H(),o=D(a);we(o,()=>t.href?`a`:`span`,!1,(e,a)=>{T(e,e=>n(e),()=>n()),z(e,e=>({"data-slot":`badge`,href:t.href,class:e,...i}),[()=>Y(Qm({variant:r()}),t.class)]);var o=H(),s=D(o);_(s,()=>t.children??M),R(a,o)}),R(e,a),k()}var th=new Set([`$$slots`,`$$events`,`$$legacy`]);function nh(e,t){let n=I(t,th),r=[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`}]];Te(e,U({name:`braces`},()=>n,{get iconNode(){return r}}))}var rh=new Set([`$$slots`,`$$events`,`$$legacy`]);function ih(e,t){let n=I(t,rh),r=[[`path`,{d:`m6 9 6 6 6-6`}]];Te(e,U({name:`chevron-down`},()=>n,{get iconNode(){return r}}))}function ah(e){let t=[];return oh(null,e,0,t),t}function oh(e,t,n,r){Array.isArray(t)?sh(e,t,n,r):typeof t==`object`&&t?ch(e,t,n,r):r.push(uh(n,e,fh(t)))}function sh(e,t,n,r){if(t.length===0){r.push(uh(n,e,`[]`));return}let i=lh(e,n,r);for(let e of t)typeof e==`object`&&e?(r.push(uh(i,null,dh)),oh(null,e,i+1,r)):r.push(uh(i,null,`${dh} ${fh(e)}`))}function ch(e,t,n,r){let i=Object.keys(t);if(i.length===0){r.push(uh(n,e,`{}`));return}let a=lh(e,n,r);for(let e of i)oh(e,t[e],a,r)}function lh(e,t,n){return e===null?t:(n.push(uh(t,e,null)),t+1)}function uh(e,t,n){return{depth:e,key:t,type:n,optional:!1}}var dh=`-`;function fh(e){return typeof e==`string`?e===``?`''`:e.replace(/\n/g,`\\n`):String(e)}var ph=`any`,mh=`id`;function hh(e){let t=[];return gh(null,e,0,!1,t),t}function gh(e,t,n,r,i){let a=Oh(t),o=_h(a);if(o===null){i.push({depth:n,key:e,type:xh(a),optional:r});return}let s=e===null&&o.suffix===``;s||i.push({depth:n,key:(e??``)+o.suffix,type:null,optional:r});let c=new Set(jh(o.of.required)),l=kh(o.of.properties),u=s?n:n+1;for(let e of vh(o.of,c))gh(e,l[e],u,!c.has(e),i)}function _h(e){let t=e,n=``;for(;t!==null&&Ch(t,`array`)&&t.items!==void 0;)t=Oh(t.items),n+=`[]`;return t===null||!Ch(t,`object`)||yh(t).length===0?null:{of:t,suffix:n}}function vh(e,t){return yh(e).sort((e,t)=>n(e)-n(t));function n(e){return e===mh?0:t.has(e)?1:2}}function yh(e){return Object.keys(kh(e.properties)).filter(e=>!bh.has(e))}var bh=new Set([`VERSION`,`CREATED`,`UPDATED`,`DELETED`,`REGION`]);function xh(e){let t=wh(e);return t.length===0?ph:t.map(t=>t===`array`?Sh(e):t).join(` | `)}function Sh(e){let t=xh(Oh(e?.items));return(t.includes(`|`)?`(${t})`:t)+`[]`}function Ch(e,t){let n=wh(e);return n.length===1&&n[0]===t}function wh(e){if(e===null)return[];let t=Th(e),n=t.length>0?t:Eh(e);return e.nullable===!0&&!n.includes(`null`)&&n.push(`null`),n}function Th(e){return typeof e.type==`string`?[e.type]:Array.isArray(e.type)?e.type.filter(e=>typeof e==`string`):[]}function Eh(e){return Array.isArray(e.enum)?Mh(e.enum.map(Dh)):e.const===void 0?e.properties===void 0?e.items===void 0?Mh([e.oneOf,e.anyOf].filter(e=>Array.isArray(e)).flat().flatMap(e=>wh(Oh(e)))):[`array`]:[`object`]:[Dh(e.const)]}function Dh(e){return e===null?`null`:Array.isArray(e)?`array`:typeof e}function Oh(e){return Ah(e)?e:null}function kh(e){return Ah(e)?e:{}}function Ah(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function jh(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function Mh(e){return[...new Set(e)]}var Nh=V(`<div> <span class="opacity-60"> </span></div>`),Ph=V(`<!> `,1),Fh=V(`<div><span class="text-muted-foreground">-</span> </div>`),Ih=V(`<div><!><!></div>`),Lh=V(`<div class="relative mt-1"><div data-scrollable=""><!></div> <!></div>`),Rh=V(`<!> <!>`,1);function zh(e,t){j(t,!0);let r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=W(t,`kind`,3,`schema`),c=W(t,`open`,15,!1),f=B(()=>s()===`schema`&&(t.value===null||t.value===void 0||typeof t.value==`object`&&Object.keys(t.value).length===0)),m=B(()=>s()===`schema`&&Array.isArray(t.value)?t.value:null),h=B(()=>s()===`value`?ah(t.value):hh(t.value));var _=H(),v=D(_),y=e=>{var n=Nh(),i=w(n),a=g(i),o=u(a,!0);G(n),P(()=>{ee(n,1,l([`text-muted-foreground flex gap-2`,t.class])),N(i,`${t.label??``} `),N(o,r().resource.unset)}),R(e,n)},b=e=>{var i=H(),a=D(i);n(a,()=>Zm,(e,i)=>{i(e,{get class(){return t.class},get open(){return c()},set open(e){c(e)},children:(e,i)=>{var a=Rh(),o=D(a);n(o,()=>Ym,(e,n)=>{n(e,{class:`text-muted-foreground hover:text-foreground flex items-center gap-1`,children:(e,n)=>{var r=Ph(),i=D(r);{let e=B(()=>[`size-3 transition-transform`,c()&&`rotate-180`]);ih(i,{get class(){return L(e)}})}var a=g(i);P(()=>N(a,` ${t.label??``}`)),R(e,r)},$$slots:{default:!0}})});var u=g(o,2);n(u,()=>qm,(e,n)=>{n(e,{children:(e,n)=>{var i=H(),a=D(i),o=e=>{var n=Lh(),i=w(n);let a;var o=w(i),c=e=>{var t=H(),n=D(t);p(n,17,()=>L(m),ie,(e,t)=>{var n=Fh(),r=g(w(n));G(n),P(e=>N(r,` ${e??``}`),[()=>String(L(t))]),R(e,n)}),R(e,t)},u=e=>{var t=H(),n=D(t);p(n,17,()=>L(h),ie,(e,t)=>{var n=Ih();let r;var i=w(n),a=e=>{var n=F();P(()=>N(n,`${L(t).key??``}:`)),R(e,n)};d(i,e=>{L(t).key!==null&&e(a)});var o=g(i),s=e=>{var n=F();P(()=>N(n,`${L(t).key===null?``:` `}${L(t).type??``}`)),R(e,n)};d(o,e=>{L(t).type!==null&&e(s)}),G(n),P(()=>{ee(n,1,l([L(t).optional&&`text-muted-foreground`])),r=C(n,``,r,{"padding-inline-start":`${L(t).depth??``}rem`})}),R(e,n)}),R(e,t)};d(o,e=>{L(m)===null?e(u,-1):e(c)}),G(i);var f=g(i,2),_=e=>{{let n=e=>{nh(e,{})},i=B(()=>JSON.stringify(t.value,null,2)),a=B(()=>s()===`value`?r().resource.json:r().resource.copy);mp(e,{get text(){return L(i)},variant:`ghost`,size:`icon-xs`,get"aria-label"(){return L(a)},class:`text-muted-foreground absolute end-1 top-1`,icon:n,$$slots:{icon:!0}})}};d(f,e=>{L(m)===null&&e(_)}),G(n),P(()=>a=ee(i,1,`bg-muted/50 max-h-80 overflow-auto rounded-md p-2 font-mono text-xs whitespace-nowrap`,null,a,{"pe-9":L(m)===null})),R(e,n)};d(a,e=>{c()&&e(o)}),R(e,i)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,i)};d(v,e=>{L(f)?e(y):e(b,-1)}),R(e,_),k(),o()}var Bh=V(`<div></div>`);function Vh(e,t){let n=B(()=>Object.entries(t.of));var r=Bh();p(r,21,()=>L(n),([e,t])=>e,(e,n)=>{var r=B(()=>ce(L(n),2));let i=()=>L(r)[0],a=()=>L(r)[1];{let n=B(()=>`${t.label}.${i()}`);zh(e,{get label(){return L(n)},get value(){return a()}})}}),G(r),P(()=>ee(r,1,l([`flex flex-col gap-1`,t.class]))),R(e,r)}var Hh=new Set([`$$slots`,`$$events`,`$$legacy`]);function Uh(e,t){let n=I(t,Hh),r=[[`path`,{d:`M18 6 7 17l-5-5`}],[`path`,{d:`m22 10-7.5 7.5L13 16`}]];Te(e,U({name:`check-check`},()=>n,{get iconNode(){return r}}))}var Wh=new Set([`$$slots`,`$$events`,`$$legacy`]);function Gh(e,t){let n=I(t,Wh),r=[[`path`,{d:`m8 11 2 2 4-4`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}],[`path`,{d:`m21 21-4.3-4.3`}]];Te(e,U({name:`search-check`},()=>n,{get iconNode(){return r}}))}var Kh=new Set([`$$slots`,`$$events`,`$$legacy`]);function qh(e,t){let r=I(t,Kh);var i=H(),a=D(i);n(a,()=>Xs,(e,t)=>{t(e,U(()=>r))}),R(e,i)}var Jh=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`sideOffset`,`side`,`children`,`arrowClasses`,`portalProps`]),Yh=V(`<div></div>`),Xh=V(`<!> <!>`,1);function Zh(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=W(t,`sideOffset`,3,0),a=W(t,`side`,3,`top`),o=I(t,Jh);qh(e,U(()=>t.portalProps,{children:(e,s)=>{var c=H(),l=D(c);{let e=B(()=>Y(`inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 w-fit max-w-xs origin-(--bits-tooltip-content-transform-origin) bg-foreground text-background`,t.class));n(l,()=>Yf,(s,c)=>{c(s,U({"data-slot":`tooltip-content`,get sideOffset(){return i()},get side(){return a()},get class(){return L(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{var i=Xh(),a=D(i);_(a,()=>t.children??M);var o=g(a,2);{let e=(e,n)=>{let r=()=>(n?.()).props;var i=Yh();z(i,e=>({class:e,...r()}),[()=>Y(`size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] z-50 bg-foreground fill-foreground`,`data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%+2px)]`,`data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%+1px)]`,`data-[side=right]:translate-x-[calc(50%+2px)] data-[side=right]:translate-y-1/2`,`data-[side=left]:-translate-y-[calc(50%-3px)]`,t.arrowClasses)]),R(e,i)};n(o,()=>ep,(t,n)=>{n(t,{child:e,$$slots:{child:!0}})})}R(e,i)},$$slots:{default:!0}}))})}R(e,c)},$$slots:{default:!0}})),k()}var Qh=new Set([`$$slots`,`$$events`,`$$legacy`,`delayDuration`]);function $h(e,t){let r=W(t,`delayDuration`,3,0),i=I(t,Qh);var a=H(),o=D(a);n(o,()=>tp,(e,t)=>{t(e,U({get delayDuration(){return r()}},()=>i))}),R(e,a)}var eg=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function tg(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,eg);var a=H(),o=D(a);n(o,()=>Qf,(e,t)=>{t(e,U({"data-slot":`tooltip-trigger`},()=>i,{get ref(){return r()},set ref(e){r(e)}}))}),R(e,a),k()}var ng=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function rg(e,t){j(t,!0);let r=W(t,`open`,15,!1),i=I(t,ng);var a=H(),o=D(a);n(o,()=>Kf,(e,t)=>{t(e,U(()=>i,{get open(){return r()},set open(e){r(e)}}))}),R(e,a),k()}var ig=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),ag=ve(`<svg><path d="M25 97.8528L92.8823 29.9706C102.255 20.598 117.451 20.598 126.823 29.9706V29.9706C136.196 39.3431 136.196 54.5391 126.823 63.9117L75.5581 115.177" stroke="currentColor" stroke-width="12" stroke-linecap="round"></path><path d="M76.2653 114.47L126.823 63.9117C136.196 54.5391 151.392 54.5391 160.765 63.9117L161.118 64.2652C170.491 73.6378 170.491 88.8338 161.118 98.2063L99.7248 159.6C96.6006 162.724 96.6006 167.789 99.7248 170.913L112.331 183.52" stroke="currentColor" stroke-width="12" stroke-linecap="round"></path><path d="M109.853 46.9411L59.6482 97.1457C50.2757 106.518 50.2757 121.714 59.6482 131.087V131.087C69.0208 140.459 84.2168 140.459 93.5894 131.087L143.794 80.8822" stroke="currentColor" stroke-width="12" stroke-linecap="round"></path></svg>`);function og(e,t){let n=I(t,ig);var r=ag();z(r,()=>({viewBox:`0 0 195 195`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,class:t.class,...n})),R(e,r)}var sg=`**`;function cg(e,t){let n=[];gg(e).forEach((e,r)=>{let i=e[0]===`:`?e.slice(1):e===`*`||e===sg?e:null;i!==null&&n.push({key:`route:${r}`,name:i,where:`route`,schema:t.route?.[i]??null,required:!0})});for(let[e,r]of Object.entries({...t.selection,...t.query}))n.push({key:`query:${e}`,name:e,where:`query`,schema:r,required:!1});return n}function lg(e,t){return!ug.has(e)&&t.input!==void 0&&t.input!==null&&Object.keys(t.input).length>0}var ug=new Set([`GET`,`HEAD`,`DELETE`]);function dg(e,t,n){let r=gg(e).map((e,r)=>{let i=t.find(e=>e.key===`route:${r}`);return i===void 0?e:_g(n[i.key]??``,i.name===sg)}),i=new URLSearchParams;for(let e of t)e.where===`query`&&(n[e.key]??``)!==``&&i.set(e.name,n[e.key]);let a=i.toString();return`/`+(r.length===0?``:r.join(`/`)+`/`)+(a===``?``:`?`+a)}function fg(e,t){return e.filter(e=>e.required&&(t[e.key]??``).trim()===``).map(e=>e.key)}function pg(e){return JSON.stringify(yg(e,0),null,2)}function mg(e){return e===null?`string`:hh(e)[0]?.type??`string`}function hg(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-|-$/g,``);return t===``?`root`:t}function gg(e){return e.split(`/`).filter(e=>e!==``)}function _g(e,t){return t?e.split(`/`).map(encodeURIComponent).join(`/`):encodeURIComponent(e)}var vg=5;function yg(e,t){if(typeof e!=`object`||!e||t>vg)return null;let n=e;if(Array.isArray(n.enum))return n.enum[0]??null;if(n.const!==void 0)return n.const;let r=n.properties;if(r!==void 0){let e={};for(let[n,i]of Object.entries(r))e[n]=yg(i,t+1);return e}return n.items===void 0?bg(typeof n.type==`string`?n.type:null):[yg(n.items,t+1)]}function bg(e){switch(e){case`string`:return``;case`number`:case`integer`:return 0;case`boolean`:return!1;case`array`:return[];case`object`:return{};default:return null}}var xg=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`,`data-slot`]),Sg=V(`<textarea></textarea>`);function Cg(n,r){j(r,!0);let i=W(r,`ref`,15,null),a=W(r,`value`,15),o=W(r,`data-slot`,3,`textarea`),s=I(r,xg);var c=Sg();t(c),z(c,e=>({"data-slot":o(),class:e,...s}),[()=>Y(`rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50`,r.class)]),T(c,e=>i(e),()=>i()),e(c,a),R(n,c),k()}var wg=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Tg(e,t){j(t,!0);let r=W(t,`ref`,15,null),i=I(t,wg);var a=H(),o=D(a);{let e=B(()=>Y(`gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed`,t.class));n(o,()=>Af,(t,n)=>{n(t,U({"data-slot":`label`,get class(){return L(e)}},()=>i,{get ref(){return r()},set ref(e){r(e)}}))})}R(e,a),k()}function Eg(e){return`discovery-${e.replace(`:`,`-`)}-input`}var Dg=V(`<span class="text-muted-foreground text-xs font-normal"> </span>`),Og=V(`<span class="font-mono text-xs"> </span> <!>`,1),kg=V(`<p class="text-destructive text-xs"> </p>`),Ag=V(`<p class="text-muted-foreground text-xs"> </p>`),jg=V(`<div class="flex flex-col gap-1.5"><!> <!> <!></div>`),Mg=V(`<span class="font-mono text-xs"> </span> <span class="text-muted-foreground text-xs font-normal"> </span>`,1),Ng=V(`<div class="flex flex-col gap-3"><!> <!> <!></div>`);function Pg(e,t){j(t,!0);let n=()=>xe(Gm,`$dict`,r),[r,a]=i(),o=W(t,`values`,7),s=W(t,`body`,15,``),c=W(t,`file`,15,null),l=W(t,`disabled`,3,!1);function f(e){c(e.currentTarget.files?.[0]??null)}function m(e,t){let n=e?.[t];return typeof n==`string`?n:null}var h=Ng(),_=w(h);p(_,17,()=>t.fields,e=>e.key,(e,r)=>{var i=jg(),a=w(i);{let e=B(()=>Eg(L(r).key));Tg(a,{get for(){return L(e)},class:`gap-1.5`,children:(e,t)=>{var n=Og(),i=D(n),a=u(i,!0),o=g(i,2),s=e=>{var t=Dg(),n=u(t,!0);P(e=>N(n,e),[()=>m(L(r).schema,`title`)]),R(e,t)},c=B(()=>m(L(r).schema,`title`)!==null);d(o,e=>{L(c)&&e(s)}),P(()=>N(a,L(r).name)),R(e,n)},$$slots:{default:!0}})}var s=g(a,2);{let e=B(()=>Eg(L(r).key)),n=B(()=>mg(L(r).schema)),i=B(()=>t.blank.includes(L(r).key));hn(s,{get id(){return L(e)},get placeholder(){return L(n)},get"aria-invalid"(){return L(i)},get disabled(){return l()},class:`font-mono text-xs`,get value(){return o()[L(r).key]},set value(e){o()[L(r).key]=e}})}var c=g(s,2),f=e=>{var t=kg(),r=u(t,!0);P(()=>N(r,n().call.required)),R(e,t)},p=B(()=>t.blank.includes(L(r).key)),h=e=>{var t=Ag(),n=u(t,!0);P(e=>N(n,e),[()=>m(L(r).schema,`description`)]),R(e,t)},_=B(()=>m(L(r).schema,`description`)!==null);d(c,e=>{L(p)?e(f):L(_)&&e(h,1)}),G(i),R(e,i)});var v=g(_,2),y=e=>{var r=jg(),i=w(r);Tg(i,{for:`discovery-file-input`,class:`gap-1.5`,children:(e,r)=>{var i=Mg(),a=D(i),o=u(a,!0),s=g(a,2),c=u(s);P(()=>{N(o,n().call.file),N(c,`${t.octets.accept??n().call.anything??``} · ${t.octets.limit??``}`)}),R(e,i)},$$slots:{default:!0}});var a=g(i,2);hn(a,{id:`discovery-file-input`,type:`file`,get accept(){return t.octets.accept},onchange:f,get disabled(){return l()},class:`text-xs`});var o=g(a,2),s=e=>{var t=Ag(),r=u(t,!0);P(()=>N(r,n().call.streamed)),R(e,t)};d(o,e=>{t.octets.stream===!0&&e(s)}),G(r),R(e,r)};d(v,e=>{t.octets!==void 0&&e(y)});var b=g(v,2),x=e=>{var r=jg(),i=w(r);Tg(i,{for:`discovery-body-textarea`,class:`font-mono text-xs`,children:(e,t)=>{ne();var r=F();P(()=>N(r,n().resource.input)),R(e,r)},$$slots:{default:!0}});var a=g(i,2);Cg(a,{id:`discovery-body-textarea`,get"aria-invalid"(){return t.invalid},get disabled(){return l()},rows:8,class:`max-h-64 font-mono text-xs`,get value(){return s()},set value(e){s(e)}});var o=g(a,2),c=e=>{var t=kg(),r=u(t,!0);P(()=>N(r,n().call.invalid)),R(e,t)};d(o,e=>{t.invalid&&e(c)}),G(r),R(e,r)};d(b,e=>{t.carries&&e(x)}),G(h),R(e,h),k(),a()}var Fg=`hover:bg-primary hover:text-primary-foreground`,Ig=`hover:bg-destructive/15 hover:text-destructive dark:hover:bg-destructive/25`,Lg=`DELETE`,Rg=V(`<p class="text-muted-foreground text-xs"> </p>`),zg=V(`<div><div class="flex items-center gap-2"><!> <span class="text-muted-foreground text-xs"> </span></div> <!></div>`);function Bg(e,t){j(t,!0);let n=()=>xe(Gm,`$dict`,r),[r,a]=i(),o=B(()=>t.of.body===``||t.of.body===null||t.of.body===void 0);var s=zg(),c=w(s),f=w(c);{let e=B(()=>t.of.ok?`secondary`:`destructive`);eh(f,{get variant(){return L(e)},class:`font-mono text-[10px]`,children:(e,n)=>{ne();var r=F();P(()=>N(r,t.of.status===0?`—`:t.of.status)),R(e,r)},$$slots:{default:!0}})}var p=g(f,2),m=u(p,!0);G(c);var h=g(c,2),_=e=>{var t=Rg(),r=u(t,!0);P(()=>N(r,n().call.empty)),R(e,t)},v=e=>{zh(e,{kind:`value`,get label(){return n().call.body},get value(){return t.of.body},open:!0,class:`text-xs`})};d(h,e=>{L(o)?e(_):e(v,-1)}),G(s),P(()=>{ee(s,1,l([`flex flex-col gap-2`,t.class])),N(m,t.of.ok?n().call.answered:n().call.refused)}),R(e,s),k(),a()}var Vg=V(`<p class="text-muted-foreground text-sm"> </p>`),Hg=V(`<div class="text-muted-foreground flex items-center gap-2 py-2 text-sm"><!> </div>`),Ug=V(`<!> `,1),Wg=V(`<!> <!>`,1);function Gg(e,t){j(t,!0);let r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=B(()=>cg(t.route,t.of)),l=B(()=>lg(t.verb,t.of)),f=B(()=>t.of.octets!==void 0),p=B(()=>t.verb===Lg),m=B(()=>L(s).length>0||L(l)||L(f)||L(p)),h=x(Object.fromEntries(L(s).map(e=>[e.key,``]))),_=E(x(L(l)?pg(t.of.input):``)),v=E(null),y=E(!1),b=E(!1),S=E(null),C=E(!1),T=B(()=>L(C)?fg(L(s),h):[]);async function ee(){let e;if(c(C,!0),!(L(T).length>0)){if(L(f))e=L(v)??void 0;else if(L(l)&&L(_).trim()!==``)try{e=JSON.parse(L(_))}catch{c(y,!0);return}c(y,!1),c(b,!0),c(S,await mm({verb:t.verb,path:dg(t.route,L(s),h),body:e,guarded:!Fm(t.of)}),!0),c(b,!1)}}function te(){L(m)?c(S,null):t.onclose()}_e(()=>{L(m)||ee()});var re=Wg(),O=D(re),ie=e=>{Bg(e,{get of(){return L(S)}})},ae=e=>{var n=H(),i=D(n),a=e=>{Pg(e,{get fields(){return L(s)},get values(){return h},get carries(){return L(l)},get octets(){return t.of.octets},get invalid(){return L(y)},get blank(){return L(T)},get disabled(){return L(b)},get body(){return L(_)},set body(e){c(_,e,!0)},get file(){return L(v)},set file(e){c(v,e,!0)}})},o=e=>{var t=Vg(),n=u(t,!0);P(()=>N(n,r().call.nothing)),R(e,t)};d(i,e=>{L(s).length>0||L(l)||L(f)?e(a):e(o,-1)}),R(e,n)},A=e=>{var t=Hg(),n=w(t);dp(n,{});var i=g(n);G(t),P(()=>N(i,` ${r().call.sending??``}`)),R(e,t)};d(O,e=>{L(S)===null?L(m)?e(ae,1):e(A,-1):e(ie)});var oe=g(O,2);n(oe,()=>Zp,(e,t)=>{t(e,{children:(e,t)=>{var i=H(),a=D(i),o=e=>{ya(e,{id:`discovery-back-button`,variant:`outline`,onclick:te,children:(e,t)=>{ne();var n=F();P(()=>N(n,r().call.back)),R(e,n)},$$slots:{default:!0}})},s=e=>{var t=Wg(),i=D(t);n(i,()=>Vp,(e,t)=>{t(e,{id:`discovery-cancel-button`,get disabled(){return L(b)},children:(e,t)=>{ne();var n=F();P(()=>N(n,r().call.cancel)),R(e,n)},$$slots:{default:!0}})});var a=g(i,2),o=e=>{var t=H(),n=D(t),i=e=>{pm(e,{id:`discovery-send-button`,variant:`destructive`,portal:!1,position:`top`,get label(){return r().call.hold},get disabled(){return L(b)},onclick:ee,children:(e,t)=>{var n=Ug(),i=D(n),a=e=>{dp(e,{})};d(i,e=>{L(b)&&e(a)});var o=g(i);P(()=>N(o,` ${r().call.send??``}`)),R(e,n)},$$slots:{default:!0}})},a=e=>{ya(e,{id:`discovery-send-button`,get disabled(){return L(b)},onclick:ee,children:(e,t)=>{var n=Ug(),i=D(n),a=e=>{dp(e,{})};d(i,e=>{L(b)&&e(a)});var o=g(i);P(()=>N(o,` ${r().call.send??``}`)),R(e,n)},$$slots:{default:!0}})};d(n,e=>{L(p)?e(i):e(a,-1)}),R(e,t)};d(a,e=>{L(m)&&e(o)}),R(e,t)};d(a,e=>{L(S)===null?e(s,-1):e(o)}),R(e,i)},$$slots:{default:!0}})}),R(e,re),k(),o()}var Kg=V(`<span class="text-muted-foreground shrink-0"> </span> <span class="min-w-0 truncate"> </span>`,1),qg=V(`<!> <!> <!>`,1),Jg=V(`<!> <!>`,1);function Yg(e,t){j(t,!0);let r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=E(!1);var l=H(),f=D(l);n(f,()=>om,(e,i)=>{i(e,{get open(){return L(s)},set open(e){c(s,e,!0)},children:(e,i)=>{var a=Jg(),o=D(a);{let e=B(()=>`discovery-${hg(t.route)}-${t.verb.toLowerCase()}-button`),i=B(()=>[Qm({variant:`outline`}),`cursor-pointer font-mono text-[10px]`,t.verb===`DELETE`?Ig:Fg,t.class]);n(o,()=>im,(n,a)=>{a(n,{get id(){return L(e)},get title(){return r().call.open},get class(){return L(i)},children:(e,n)=>{ne();var r=F();P(()=>N(r,t.verb)),R(e,r)},$$slots:{default:!0}})})}var l=g(o,2);n(l,()=>Jp,(e,i)=>{i(e,{class:`data-[size=default]:max-w-[calc(100vw-2rem)]
|
|
6
|
+
data-[size=default]:sm:max-w-lg`,children:(e,i)=>{var a=qg(),o=D(a);n(o,()=>Vp,(e,t)=>{t(e,{id:`discovery-close-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return r().call.close},class:`text-muted-foreground absolute end-2 top-2`,children:(e,t)=>{Be(e,{})},$$slots:{default:!0}})});var l=g(o,2);n(l,()=>em,(e,r)=>{r(e,{class:`pe-8`,children:(e,r)=>{var i=H(),a=D(i);n(a,()=>nm,(e,n)=>{n(e,{class:`flex w-full min-w-0 items-baseline gap-2 font-mono text-sm`,children:(e,n)=>{var r=Kg(),i=D(r),a=u(i,!0),o=g(i,2),s=u(o,!0);P(e=>{N(a,t.verb),N(s,e)},[()=>jm(t.route)]),R(e,r)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})});var f=g(l,2),p=e=>{Gg(e,{get route(){return t.route},get verb(){return t.verb},get of(){return t.of},onclose:()=>c(s,!1)})};d(f,e=>{L(s)&&e(p)}),R(e,a)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,l),k(),o()}var Xg=V(`<span class="min-w-0 truncate font-normal"> </span>`),Zg=V(`<!> <!>`,1),Qg=V(`<!> <!> <!> <!> <!>`,1),$g=V(`<span class="opacity-60">·</span> <span> </span>`,1),e_=V(`<div class="text-muted-foreground flex flex-wrap gap-x-2"><span> </span> <span class="text-foreground font-mono"> </span> <span class="opacity-60">·</span> <span class="text-foreground font-mono"> </span> <!></div>`),t_=V(`<div class="flex flex-col gap-1 pt-3 text-xs"><!> <!> <!> <!> <!> <!> <!></div>`),n_=V(`<div class="flex w-full items-center gap-2"><!> <!></div> <!>`,1);function r_(e,t){j(t,!0);let r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=W(t,`open`,15,!1),c=B(()=>Bm(t.of)),l=B(()=>Vm[L(c)]),f=B(()=>t.of.route!==void 0||t.of.query!==void 0||t.of.selection!==void 0||t.of.octets!==void 0||t.of.input!==void 0||t.of.output!==void 0||t.of.errors!==void 0);var p=H(),m=D(p);n(m,()=>Zm,(e,i)=>{i(e,{get class(){return t.class},get open(){return s()},set open(e){s(e)},children:(e,i)=>{var a=H(),o=D(a);n(o,()=>Lp,(e,i)=>{i(e,{variant:`muted`,class:`flex-col items-stretch gap-0 px-2.5 py-2`,children:(e,i)=>{var a=n_(),o=D(a),p=w(o);Yg(p,{get route(){return t.route},get verb(){return t.verb},get of(){return t.of}});var m=g(p,2);{let e=B(()=>!L(f));n(m,()=>Ym,(i,a)=>{a(i,{get disabled(){return L(e)},class:`flex min-w-0 flex-1 items-center gap-3 text-start`,children:(e,i)=>{var a=Zg(),o=D(a);n(o,()=>bp,(e,i)=>{i(e,{class:`min-w-0`,children:(e,i)=>{var a=Zg(),o=D(a);n(o,()=>Np,(e,i)=>{i(e,{class:`w-full gap-2`,children:(e,i)=>{var a=Qg(),o=D(a),s=e=>{var n=Xg(),r=u(n,!0);P(()=>N(r,t.of.title)),R(e,n)};d(o,e=>{t.of.title!==void 0&&e(s)});var f=g(o,2);n(f,()=>$h,(e,t)=>{t(e,{delayDuration:200,children:(e,t)=>{var i=H(),a=D(i);n(a,()=>rg,(e,t)=>{t(e,{children:(e,t)=>{var i=Zg(),a=D(i);n(a,()=>tg,(e,t)=>{t(e,{class:`shrink-0`,children:(e,t)=>{var r=H(),i=D(r);n(i,()=>L(l),(e,t)=>{t(e,{class:`text-muted-foreground size-3.5`})}),R(e,r)},$$slots:{default:!0}})});var o=g(a,2);n(o,()=>Zh,(e,t)=>{t(e,{children:(e,t)=>{ne();var n=F();P(()=>N(n,r().guard[L(c)])),R(e,n)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})});var p=g(f,2),m=e=>{var t=H(),i=D(t);n(i,()=>$h,(e,t)=>{t(e,{delayDuration:200,children:(e,t)=>{var i=H(),a=D(i);n(a,()=>rg,(e,t)=>{t(e,{children:(e,t)=>{var i=Zg(),a=D(i);n(a,()=>tg,(e,t)=>{t(e,{class:`shrink-0`,children:(e,t)=>{Gh(e,{class:`text-muted-foreground size-3.5`})},$$slots:{default:!0}})});var o=g(a,2);n(o,()=>Zh,(e,t)=>{t(e,{children:(e,t)=>{ne();var n=F();P(()=>N(n,r().resource.search)),R(e,n)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,t)};d(p,e=>{t.of.selection?.search!==void 0&&e(m)});var h=g(p,2),_=e=>{var t=H(),i=D(t);n(i,()=>$h,(e,t)=>{t(e,{delayDuration:200,children:(e,t)=>{var i=H(),a=D(i);n(a,()=>rg,(e,t)=>{t(e,{children:(e,t)=>{var i=Zg(),a=D(i);n(a,()=>tg,(e,t)=>{t(e,{class:`shrink-0`,children:(e,t)=>{Uh(e,{class:`text-muted-foreground size-3.5`})},$$slots:{default:!0}})});var o=g(a,2);n(o,()=>Zh,(e,t)=>{t(e,{children:(e,t)=>{ne();var n=F();P(()=>N(n,r().resource.once)),R(e,n)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,t)};d(h,e=>{t.of.once===!0&&e(_)});var v=g(h,2),y=e=>{var t=H(),i=D(t);n(i,()=>$h,(e,t)=>{t(e,{delayDuration:200,children:(e,t)=>{var i=H(),a=D(i);n(a,()=>rg,(e,t)=>{t(e,{children:(e,t)=>{var i=Zg(),a=D(i);n(a,()=>tg,(e,t)=>{t(e,{class:`shrink-0`,children:(e,t)=>{og(e,{class:`text-muted-foreground size-3.5`})},$$slots:{default:!0}})});var o=g(a,2);n(o,()=>Zh,(e,t)=>{t(e,{children:(e,t)=>{ne();var n=F();P(()=>N(n,r().resource.mcp)),R(e,n)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})}),R(e,t)};d(v,e=>{t.of.mcp===!0&&e(y)}),R(e,a)},$$slots:{default:!0}})});var s=g(o,2),f=e=>{var r=H(),i=D(r);n(i,()=>Cp,(e,n)=>{n(e,{class:`line-clamp-none`,children:(e,n)=>{ne();var r=F();P(()=>N(r,t.of.description)),R(e,r)},$$slots:{default:!0}})}),R(e,r)};d(s,e=>{t.of.description!==void 0&&e(f)}),R(e,a)},$$slots:{default:!0}})});var p=g(o,2);n(p,()=>_p,(e,t)=>{t(e,{children:(e,t)=>{var n=H(),r=D(n),i=e=>{{let t=B(()=>[`text-muted-foreground size-4 shrink-0 transition-transform`,s()&&`rotate-90`]);zp(e,{get class(){return L(t)}})}};d(r,e=>{L(f)&&e(i)}),R(e,n)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})})}G(o);var h=g(o,2);n(h,()=>qm,(e,n)=>{n(e,{children:(e,n)=>{var i=H(),a=D(i),o=e=>{var n=t_(),i=w(n),a=e=>{Vh(e,{get label(){return r().resource.route},get of(){return t.of.route}})};d(i,e=>{t.of.route!==void 0&&e(a)});var o=g(i,2),s=e=>{Vh(e,{get label(){return r().resource.query},get of(){return t.of.query}})};d(o,e=>{t.of.query!==void 0&&e(s)});var c=g(o,2),l=e=>{Vh(e,{get label(){return r().resource.selection},get of(){return t.of.selection}})};d(c,e=>{t.of.selection!==void 0&&e(l)});var f=g(c,2),p=e=>{var n=e_(),i=w(n),a=u(i,!0),o=g(i,2),s=u(o,!0),c=g(o,4),l=u(c,!0),f=g(c,2),p=e=>{var t=$g(),n=g(D(t),2),i=u(n,!0);P(()=>N(i,r().call.stream)),R(e,t)};d(f,e=>{t.of.octets.stream===!0&&e(p)}),G(n),P(()=>{N(a,r().call.file),N(s,t.of.octets.accept??r().call.anything),N(l,t.of.octets.limit)}),R(e,n)};d(f,e=>{t.of.octets!==void 0&&e(p)});var m=g(f,2),h=e=>{zh(e,{get label(){return r().resource.input},get value(){return t.of.input}})};d(m,e=>{t.of.input!==void 0&&e(h)});var _=g(m,2),v=e=>{zh(e,{get label(){return r().resource.output},get value(){return t.of.output}})};d(_,e=>{t.of.output!==void 0&&e(v)});var y=g(_,2),b=e=>{zh(e,{get label(){return r().resource.errors},get value(){return t.of.errors}})};d(y,e=>{t.of.errors!==void 0&&e(b)}),G(n),R(e,n)};d(a,e=>{s()&&e(o)}),R(e,i)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,p),k(),o()}var i_=V(`<span> </span> <span class="ms-auto flex shrink-0 gap-1"></span>`,1),a_=V(`<!> <!>`,1),o_=V(`<p class="text-muted-foreground text-sm"> </p>`),s_=V(`<div class="flex flex-col gap-3 pt-4"><!> <!> <!></div>`);function c_(e,t){j(t,!0);let r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=W(t,`open`,15,!1),c=B(()=>Mm(t.resource)),f=B(()=>t.resource.title??null),m=B(()=>L(c).map(e=>Nm(t.resource,e).route).find(e=>e!==void 0)??null);var h=H(),_=D(h);n(_,()=>Zm,(e,i)=>{i(e,{get class(){return t.class},get open(){return s()},set open(e){s(e)},children:(e,i)=>{var a=H(),o=D(a);n(o,()=>Lp,(e,i)=>{i(e,{variant:`outline`,class:`flex-col items-stretch gap-0`,children:(e,i)=>{var a=a_(),o=D(a);n(o,()=>Ym,(e,i)=>{i(e,{class:`flex w-full items-center gap-3 text-start`,children:(e,i)=>{var a=a_(),o=D(a);n(o,()=>bp,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var i=a_(),a=D(i);n(a,()=>Np,(e,n)=>{n(e,{class:`w-full gap-2`,children:(e,n)=>{var r=i_(),i=D(r),a=u(i,!0),o=g(i,2);p(o,20,()=>L(c),e=>e,(e,t)=>{eh(e,{variant:`secondary`,class:`font-mono text-[10px]`,children:(e,n)=>{ne();var r=F();P(()=>N(r,t)),R(e,r)},$$slots:{default:!0}})}),G(o),P(e=>{ee(i,1,l([`min-w-0 truncate`,L(f)===null&&`font-mono font-normal`])),N(a,e)},[()=>L(f)??jm(t.route)]),R(e,r)},$$slots:{default:!0}})});var o=g(a,2),s=e=>{var r=H(),i=D(r);n(i,()=>Cp,(e,n)=>{n(e,{class:`line-clamp-none font-mono`,children:(e,n)=>{ne();var r=F();P(e=>N(r,e),[()=>jm(t.route)]),R(e,r)},$$slots:{default:!0}})}),R(e,r)};d(o,e=>{L(f)!==null&&e(s)}),R(e,i)},$$slots:{default:!0}})});var m=g(o,2);n(m,()=>_p,(e,t)=>{t(e,{children:(e,t)=>{{let t=B(()=>[`text-muted-foreground size-4 shrink-0 transition-transform`,s()&&`rotate-90`]);zp(e,{get"aria-label"(){return r().resource.expand},get class(){return L(t)}})}},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})});var h=g(o,2);n(h,()=>qm,(e,i)=>{i(e,{children:(e,i)=>{var a=H(),o=D(a),l=e=>{var i=s_(),a=w(i),o=e=>{var n=o_(),r=u(n,!0);P(()=>N(r,t.resource.description)),R(e,n)};d(a,e=>{t.resource.description!==void 0&&e(o)});var s=g(a,2),l=e=>{Vh(e,{get label(){return r().resource.route},get of(){return L(m)}})};d(s,e=>{L(m)!==null&&e(l)});var f=g(s,2);n(f,()=>Ep,(e,n)=>{n(e,{class:`gap-2`,children:(e,n)=>{var r=H(),i=D(r);p(i,16,()=>L(c),e=>e,(e,n)=>{{let r=B(()=>Nm(t.resource,n));r_(e,{get route(){return t.route},get verb(){return n},get of(){return L(r)}})}}),R(e,r)},$$slots:{default:!0}})}),G(i),R(e,i)};d(o,e=>{s()&&e(l)}),R(e,a)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,a)},$$slots:{default:!0}})}),R(e,h),k(),o()}var l_=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),u_=V(`<section class="flex flex-col gap-2"><div class="text-muted-foreground flex items-center gap-3"><span class="text-xs font-medium tracking-wide uppercase"> </span> <!></div> <!></section>`),d_=V(`<div></div>`),f_=V(`<p class="text-muted-foreground py-20 text-center"> </p>`);function p_(e,t){j(t,!0);let r=()=>xe(Fe,`$tree`,s),a=()=>xe(Tm,`$query`,s),o=()=>xe(Gm,`$dict`,s),[s,c]=i(),l=I(t,l_),f=new To,m=B(()=>Im(r())),h=B(()=>L(m)===null?[]:Object.entries(L(m).routes)),_=B(()=>L(h).map(([e,t])=>({route:e,resource:t,rank:Hm(e,t,a())})).filter(e=>e.rank>0).sort(v));be(()=>{let e=L(_).length===1?L(_)[0].route:null;return Em.set(e===null?null:()=>f.add(e)),()=>Em.set(null)});function v(e,t){return t.rank-e.rank||e.route.localeCompare(t.route)}function y(e){return[{id:`user`,label:o().space.user,of:e.filter(e=>!Am(e.route))},{id:`system`,label:o().space.system,of:e.filter(e=>Am(e.route))}].filter(e=>e.of.length>0)}Ne(e,{get store(){return Fe},awaited:e=>{var r=H(),i=D(r),a=e=>{var r=d_();z(r,()=>({class:[`flex flex-col gap-6`,t.class],...l})),p(r,21,()=>y(L(_)),e=>e.id,(e,t)=>{var r=u_(),i=w(r),a=w(i),o=u(a,!0);rp(g(a,2),{class:`flex-1`}),G(i);var s=g(i,2);n(s,()=>Ep,(e,n)=>{n(e,{class:`gap-2`,children:(e,n)=>{var r=H(),i=D(r);p(i,17,()=>L(t).of,e=>e.route,(e,t)=>{var n=()=>f.has(L(t).route),r=e=>e?f.add(L(t).route):f.delete(L(t).route);c_(e,{get route(){return L(t).route},get resource(){return L(t).resource},get open(){return n()},set open(e){r(e)}})}),R(e,r)},$$slots:{default:!0}})}),G(r),P(()=>N(o,L(t).label)),R(e,r)}),G(r),R(e,r)},s=e=>{var t=f_(),n=u(t,!0);P(()=>N(n,o().resources.nomatch)),R(e,t)};d(i,e=>{L(_).length>0?e(a):L(h).length>0&&e(s,1)}),R(e,r)},$$slots:{awaited:!0}}),k(),c()}var m_=new Set([`$$slots`,`$$events`,`$$legacy`]);function h_(e,t){let n=I(t,m_),r=[[`circle`,{cx:`12`,cy:`12`,r:`10`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`}],[`path`,{d:`M12 17h.01`}]];Te(e,U({name:`circle-question-mark`},()=>n,{get iconNode(){return r}}))}var g_=V(`<a><!> <!> <!></a>`);function __(e,t){var r=H(),i=D(r);{let e=(e,r)=>{let i=()=>(r?.()).props;var a=g_();z(a,()=>({...i(),id:t.id,href:t.href}));var o=w(a);n(o,()=>Ap,(e,t)=>{t(e,{variant:`icon`,children:(e,t)=>{h_(e,{})},$$slots:{default:!0}})});var s=g(o,2);n(s,()=>bp,(e,r)=>{r(e,{class:`min-w-0`,children:(e,r)=>{var i=H(),a=D(i);n(a,()=>Np,(e,n)=>{n(e,{class:`w-full`,children:(e,n)=>{ne();var r=F();P(()=>N(r,t.title)),R(e,r)},$$slots:{default:!0}})}),R(e,i)},$$slots:{default:!0}})});var c=g(s,2);n(c,()=>_p,(e,t)=>{t(e,{children:(e,t)=>{zp(e,{class:`text-muted-foreground size-4 shrink-0`})},$$slots:{default:!0}})}),G(a),R(e,a)};n(i,()=>Lp,(t,n)=>{n(t,{variant:`outline`,child:e,$$slots:{child:!0}})})}R(e,r)}var v_=new Set([`$$slots`,`$$events`,`$$legacy`,`class`]),y_=V(`<div><!> <!> <!> <!></div>`);function b_(e,t){j(t,!0);let n=()=>xe(Tm,`$query`,a),r=()=>xe(Gm,`$dict`,a),[a,o]=i(),s=I(t,v_);var c=H(),l=D(c),u=e=>{var n=y_();z(n,()=>({class:[`grid grid-cols-1 gap-2 md:grid-cols-2`,t.class],...s}));var i=w(n);{let e=B(()=>le(`authentication/`));__(i,{id:`discovery-authentication-link`,get href(){return L(e)},get title(){return r().guide.authentication.title}})}var a=g(i,2);{let e=B(()=>le(`status/`));__(a,{id:`discovery-status-link`,get href(){return L(e)},get title(){return r().guide.status.title}})}var o=g(a,2);{let e=B(()=>le(`queries/`));__(o,{id:`discovery-queries-link`,get href(){return L(e)},get title(){return r().guide.queries.title}})}var c=g(o,2);{let e=B(()=>le(`multipart/`));__(c,{id:`discovery-multipart-link`,get href(){return L(e)},get title(){return r().guide.multipart.title}})}G(n),R(e,n)};d(l,e=>{n()===``&&e(u)}),R(e,c),k(),o()}var x_={"":[`<em>`,`</em>`],_:[`<strong>`,`</strong>`],"*":[`<strong>`,`</strong>`],"~":[`<s>`,`</s>`],"\n":[`<br />`]," ":[`<br />`],"-":[`<hr />`]};function S_(e){return e.replace(RegExp(`^`+(e.match(/^(\t| )+/)||``)[0],`gm`),``)}function C_(e){return(e+``).replace(/"/g,`"`).replace(/</g,`<`).replace(/>/g,`>`)}function w_(e,t){var n,r,i,a,o,s=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l=``,u=t||{},d=0;function f(e){var t=x_[e[1]||``],n=c[c.length-1]==e;return t?t[1]?(n?c.pop():c.push(e),t[0|n]):t[0]:e}function p(){for(var e=``;c.length;)e+=f(c[c.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(e,t,n){return u[t.toLowerCase()]=n,``}).replace(/^\n+|\n+$/g,``);i=s.exec(e);)r=e.substring(d,i.index),d=s.lastIndex,n=i[0],r.match(/[^\\](\\\\)*\\$/)||((o=i[3]||i[4])?n=`<pre class="code `+(i[4]?`poetry`:i[2].toLowerCase())+`"><code`+(i[2]?` class="language-`+i[2].toLowerCase()+`"`:``)+`>`+S_(C_(o).replace(/^\n+|\n+$/g,``))+`</code></pre>`:(o=i[6])?(o.match(/\./)&&(i[5]=i[5].replace(/^\d+/gm,``)),a=w_(S_(i[5].replace(/^\s*[>*+.-]/gm,``))),o==`>`?o=`blockquote`:(o=o.match(/\./)?`ol`:`ul`,a=a.replace(/^(.*)(\n|$)/gm,`<li>$1</li>`)),n=`<`+o+`>`+a+`</`+o+`>`):i[8]?n=`<img src="`+C_(i[8])+`" alt="`+C_(i[7])+`">`:i[10]?(l=l.replace(`<a>`,`<a href="`+C_(i[11]||u[r.toLowerCase()])+`">`),n=p()+`</a>`):i[9]?n=`<a>`:i[12]||i[14]?n=`<`+(o=`h`+(i[14]?i[14].length:i[13]>`=`?1:2))+`>`+w_(i[12]||i[15],u)+`</`+o+`>`:i[16]?n=`<code>`+C_(i[16])+`</code>`:(i[17]||i[1])&&(n=f(i[17]||`--`))),l+=r,l+=n;return(l+e.substring(d)+p()).replace(/^\n+|\n+$/g,``)}var T_=/^<(?:h[1-6]|ul|ol|pre|blockquote|hr|footer|table|p)\b/i;function E_(e){return D_(e.replace(/^# [^\n]+\n+/,``)).map(e=>{if(e.startsWith(`<`))return e;let t=w_(e);return t===``||T_.test(t)?t:`<p>${t}</p>`}).join(`
|
|
7
|
+
`)}function D_(e){let t=[],n=/```[\s\S]*?```/g,r=0,i;for(;(i=n.exec(e))!==null;)t.push(...e.slice(r,i.index).split(/\n{2,}/)),t.push(i[0]),r=i.index+i[0].length;return t.push(...e.slice(r).split(/\n{2,}/)),t.map(e=>e.trim()).filter(e=>e!==``)}var O_=V(`<header class="bg-background sticky top-0 z-50 -mt-2 flex w-full items-center gap-3 px-4 py-3" style="view-transition-name: chrome"><!> <h1 class="min-w-0 truncate text-lg font-medium"> </h1></header> <article class="typeset mx-auto w-full max-w-3xl px-4 pb-12 svelte-e9tjen"></article>`,1);function k_(e,t){j(t,!0);let n=()=>xe(Re,`$chrome`,r),[r,a]=i();wa(e,{get class(){return t.class},children:(e,r)=>{var i=O_(),a=D(i),o=w(a);{let e=B(()=>le(`/`));ya(o,{id:`discovery-back-button`,get href(){return L(e)},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return n().nav.back},children:(e,t)=>{ap(e,{})},$$slots:{default:!0}})}var s=g(o,2),c=u(s,!0);G(a);var l=g(a,2);ae(l,()=>E_(t.source),!0),G(l),P(()=>N(c,t.title)),R(e,i)},$$slots:{default:!0}}),k(),a()}var A_=V(`<footer class="text-muted-foreground min-h-4 text-center text-[10px]"> </footer>`);function j_(e){let t=()=>xe(Le,`$server`,n),[n,r]=i();var a=A_(),o=u(a,!0);P(()=>N(o,t()??``)),R(e,a),r()}var M_='# Status codes\n\nThe gateway may answer with any of these. They mean what\n[RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes)\ndefines.\n\n- `200 OK`\n- `201 Created`\n- `202 Accepted`\n- `204 No Content`\n- `206 Partial Content`\n- `304 Not Modified`\n- `400 Bad Request`\n- `401 Unauthorized`\n- `403 Forbidden`\n- `404 Not Found`<span class="note">No such route, or nothing found behind it.</span>\n- `405 Method Not Allowed`\n- `406 Not Acceptable`\n- `409 Conflict`\n- `410 Gone`<span class="note">A stream token names a point the storage no longer remembers: read the set again, without it.</span>\n- `412 Precondition Failed`\n- `413 Content Too Large`\n- `415 Unsupported Media Type`\n- `422 Unprocessable Entity`<span class="note">The request is OK, but the application refused it.</span>\n- `429 Too Many Requests`\n- `451 Unavailable For Legal Reasons`\n- `500 Internal Server Error`\n- `501 Not Implemented`\n- `503 Service Unavailable`<span class="note">The deployment is not working: it is halted, or on its way there. `retry-after` says when it is back, where that is known.</span>\n- `504 Gateway Timeout`<span class="note">The process a route named did not answer in time.</span>\n',N_='# Collection queries\n\nResources that represent collections have a uniform interface for\nfiltering and selection.\n\n```http\nGET /pots/?criteria=volume<300&sort=volume:desc&limit=10\n```\n\n`criteria` is an [RSQL](https://github.com/jirutka/rsql-parser) expression.\nEach term names a property of the entity whose collection this resource\nrepresents, or a property inside an object by the path to it:\n`size.volume>2`.\n\nAn unquoted `null` or `undefined` is no value: `rank==null` matches what\nholds no `rank`, and `rank!=null` what holds one. Quote it to mean the\ntext: `title=="null"`.\n\n`sort` lists sort criteria, separated by `;`. Each is an entity property,\nor the path to one, with an optional `:asc` or `:desc` suffix.\n\n`omit` skips that many. `limit` caps how many come back.\n\n`search` is a text query, where the resource takes one.\n\nA resource MAY constrain the collection it exposes, disallow\nadditional `criteria` or `sort`, and bound `omit` and `limit`.\n\n\n## Streams\n\nResources that respond with a stream yield `{"entry":…}` and\n`{"removed":"<id>"}` parts, and end with `{"token":…}`. A stream that ends\nwithout a token was cut: send the same request again, with the token it\ncarried.\n\n```http\nGET /pots/stream/?limit=100&token=eyJ2Ijox...\n```\n\nThe last token continues the read: the rest of the collection, then\nwhat changed. With `stop`, the first `limit` entries are followed straight\nby what changed.\n\n`sort` beside `limit` or `token` takes `id` and `CREATED` only. `omit` is\nrefused.\n',P_=`# Multipart responses
|
|
8
|
+
|
|
9
|
+
Object streams are returned as multipart responses with non-standard media
|
|
10
|
+
types. The media type of the parts is chosen by the same content negotiation as
|
|
11
|
+
any other request, once for the whole stream, not per part. The response media
|
|
12
|
+
type determines the media type of every part, so part headers are omitted.
|
|
13
|
+
|
|
14
|
+
\`\`\`http
|
|
15
|
+
GET /stream/
|
|
16
|
+
accept: application/json
|
|
17
|
+
\`\`\`
|
|
18
|
+
|
|
19
|
+
\`\`\`http
|
|
20
|
+
200 OK
|
|
21
|
+
content-type: multipart/json; boundary=cut
|
|
22
|
+
|
|
23
|
+
--cut
|
|
24
|
+
|
|
25
|
+
"ACK"
|
|
26
|
+
--cut
|
|
27
|
+
|
|
28
|
+
{"foo":"bar"}
|
|
29
|
+
--cut
|
|
30
|
+
|
|
31
|
+
{"baz":"qux"}
|
|
32
|
+
--cut
|
|
33
|
+
|
|
34
|
+
"FIN"
|
|
35
|
+
--cut--
|
|
36
|
+
\`\`\`
|
|
37
|
+
|
|
38
|
+
- \`multipart/json\` → \`application/json\`
|
|
39
|
+
- \`multipart/yaml\` → \`application/yaml\`
|
|
40
|
+
- \`multipart/msgpack\` → \`application/msgpack\`
|
|
41
|
+
- \`multipart/text\` → \`text/plain\`
|
|
42
|
+
|
|
43
|
+
A streamed response starts with \`ACK\` and ends with \`FIN\`. The boundary is
|
|
44
|
+
always \`cut\`.
|
|
45
|
+
|
|
46
|
+
Some streams send \`heartbeat <time>\` to tell a quiet stream from a lost one.
|
|
47
|
+
`,F_=`# Authentication
|
|
48
|
+
|
|
49
|
+
Authentication is request-agnostic. It is not a resource: the caller is
|
|
50
|
+
identified from the \`authorization\` header of whichever request carries it.
|
|
51
|
+
|
|
52
|
+
## Transient credentials
|
|
53
|
+
|
|
54
|
+
Transient credentials are returned in the \`authorization\` response header in
|
|
55
|
+
exchange for persistent credentials, and on any authenticated request — that is
|
|
56
|
+
how a token is refreshed. The client **MUST NOT** store persistent credentials.
|
|
57
|
+
|
|
58
|
+
\`\`\`http
|
|
59
|
+
GET /identity/
|
|
60
|
+
authorization: Basic ...
|
|
61
|
+
\`\`\`
|
|
62
|
+
|
|
63
|
+
\`\`\`http
|
|
64
|
+
200 OK
|
|
65
|
+
authorization: Token ...
|
|
66
|
+
cache-control: no-store
|
|
67
|
+
access-control-expose-headers: *
|
|
68
|
+
\`\`\`
|
|
69
|
+
|
|
70
|
+
The client **MUST** discard the previous credentials and use the new ones for
|
|
71
|
+
all subsequent requests. The client **MAY** store the transient credentials in
|
|
72
|
+
a secure store.
|
|
73
|
+
|
|
74
|
+
## Sign-in
|
|
75
|
+
|
|
76
|
+
\`GET /identity/\` is the usual first request: it returns the identity those
|
|
77
|
+
credentials resolved to, and it is as good a place as any to receive the token.
|
|
78
|
+
|
|
79
|
+
## Sign-out
|
|
80
|
+
|
|
81
|
+
Delete the stored \`Token\`. There are no server-side sessions: the server is
|
|
82
|
+
stateless, as
|
|
83
|
+
[REST](https://roy.gbiv.com/pubs/dissertation/rest_arch_style.htm#sec_5_1_3)
|
|
84
|
+
has it.
|
|
85
|
+
|
|
86
|
+
<footer class="text-muted-foreground mt-12 text-sm">There are <a href="https://www-test.ics.uci.edu/~fielding/pubs/dissertation/evaluation.htm#sec_6_3_4_2">no cookies</a>.</footer>
|
|
87
|
+
`,I_=[F_,M_,N_,P_];function L_(e,t){let n=Object.entries(Im(e)?.routes??{}),r=[`# ${t}`,``];for(let e of I_)r.push(R_(e),``);r.push(`## Resources and methods`,``);for(let[e,t]of[[`Userspace`,n.filter(([e])=>!Am(e))],[`System`,n.filter(([e])=>Am(e))]])if(t.length!==0){r.push(`### ${e}`,``);for(let[e,n]of t)r.push(...V_(e,n))}return r.join(`
|
|
88
|
+
`)}function R_(e){return z_(e.replace(/<footer\b[^>]*>([\s\S]*?)<\/footer>/g,`$1`).replace(/<span class="note">([\s\S]*?)<\/span>/g,`
|
|
89
|
+
|
|
90
|
+
$1`)).trim()}function z_(e){let t=/```[\s\S]*?```/g,n=``,r=0,i;for(;(i=t.exec(e))!==null;)n+=B_(e.slice(r,i.index)),n+=i[0],r=i.index+i[0].length;return n+B_(e.slice(r))}function B_(e){return e.replaceAll(/^#{1,5} /gm,e=>`#${e}`)}function V_(e,t){let n=[`#### \`${jm(e)}\``,``];t.title!==void 0&&n.push(t.title,``),t.description!==void 0&&n.push(t.description,``);for(let e of Mm(t))n.push(...H_(e,Nm(t,e)));return n}function H_(e,t){let n=[`##### \`${e}\`${t.title===void 0?``:` `+t.title}`,``];t.description!==void 0&&n.push(t.description,``),n.push(`_`+U_(t).join(` · `)+`_`,``);for(let[e,r]of[[`route`,t.route],[`query`,t.query],[`selection`,t.selection]])if(r!==void 0)for(let[t,i]of Object.entries(r))n.push(...W_(`${e}.${t}`,i));if(t.octets!==void 0){let{accept:e,limit:r,stream:i}=t.octets,a=[e??`anything`,r].concat(i===!0?[`streamed`]:[]);n.push(`**file**`,``,a.join(` · `),``)}return t.input!==void 0&&n.push(...W_(`input`,t.input)),t.output!==void 0&&n.push(...W_(`output`,t.output)),t.errors!==void 0&&n.push(`**errors**`,``,t.errors.map(e=>`\`${e}\``).join(`, `),``),n}function U_(e){let t=[Bm(e)];return e.once===!0&&t.push(`once`),e.mcp===!0&&t.push(`mcp`),t}function W_(e,t){let n=hh(t);if(n.length===0)return[`**${e}**`,``,`_not defined_`,``];let r=n.map(e=>` `.repeat(e.depth)+(e.key===null?``:e.key+`:`)+(e.type===null?``:(e.key===null?``:` `)+e.type));return[`**${e}**`,``,"```yaml",...r,"```",``]}export{ya as $,hs as A,Oo as B,cs as C,fs as D,ds as E,$o as F,Pa as G,yo as H,Qo as I,Na as J,$ as K,Xo as L,es as M,rs as N,ps as O,ss as P,wa as Q,Fo as R,ys as S,us as T,Aa as U,Eo as V,Fa as W,La as X,ja as Y,Ia as Z,Tm as _,M_ as a,Ds as b,b_ as c,Gm as d,ma as et,Pm as f,Rm as g,Em as h,N_ as i,ns as j,ms as k,p_ as l,zm as m,F_ as n,Y as nt,j_ as o,Lm as p,Ma as q,P_ as r,Be as rt,k_ as s,L_ as t,hn as tt,og as u,mp as v,ls as w,Es as x,dp as y,jo as z};
|