Files
base/.svelte-kit/output/client/_app/immutable/nodes/0.gS3vEFmL.js
T
eewing c0fae761da
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m24s
PWA
2026-02-19 07:41:49 -06:00

6 lines
109 KiB
JavaScript

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/QRbP8TAd.js","../chunks/D4nn9Y_6.js"])))=>i.map(i=>d[i]);
var ra=Object.defineProperty;var ia=Object.getPrototypeOf;var oa=Reflect.get;var xo=n=>{throw TypeError(n)};var sa=(n,t,e)=>t in n?ra(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var A=(n,t,e)=>sa(n,typeof t!="symbol"?t+"":t,e),ei=(n,t,e)=>t.has(n)||xo("Cannot "+e);var s=(n,t,e)=>(ei(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?xo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),F=(n,t,e,r)=>(ei(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),B=(n,t,e)=>(ei(n,t,"access private method"),e);var So=(n,t,e)=>oa(ia(n),e,t);import{_ as aa}from"../chunks/D4nn9Y_6.js";import"../chunks/Bzak7iHL.js";import{o as $o}from"../chunks/DTyTeadx.js";import{l as ii,K as oi,am as ca,k as la,t as ts,ax as ua,bm as da,u as Ao,C as fa,m as ha,b4 as ga,b0 as ma,b3 as Oo,q as pa,bn as va,v as or,b5 as q,aD as we,aE as P,X as g,bo as Po,ab as ya,aO as Ke,G as ba,F as Co,I as wa,ag as xa,x as rt,A as Sa,Y as O,B as Aa,i as R,h as k,a as E,n as J,p as K,E as Oa,e as V,bp as es,bl as ne,c as ht,r as gt,f as ot,s as Ut,b as Eo,d as To}from"../chunks/BfGs3WDN.js";import{c as ns,m as Pa,u as Ca,s as Ea}from"../chunks/Dc4kZMuG.js";import{i as it,p as y,r as j,s as lt}from"../chunks/CQe9XmLJ.js";import{s as H}from"../chunks/By9q4dnk.js";import{c as st}from"../chunks/BIDFgmbM.js";import{h as Ta}from"../chunks/B52PvkJe.js";import{a as ka,e as Fa}from"../chunks/_58MWSf2.js";import{o as nt,g as Ma,c as Ra,d as ko}from"../chunks/BlBMKpZ6.js";import{s as _a,g as Da,d as Ia}from"../chunks/CW15Ts-p.js";import{a as pt,c as pe}from"../chunks/D7710T35.js";import{i as Na,B as Ba,c as rs,d as x,e as La,t as Wa,f as za,g as Ka,s as is,h as Xr,j as xe,k as St,l as os,m as si,n as ss,o as Li,p as Wt,q as Va,r as re,u as vt,a as Ha,v as Ua,w as qa,x as Ga,y as Ya,L as Xa}from"../chunks/BcNtEwNR.js";import{B as ja}from"../chunks/C2sKwo1m.js";import{i as Za}from"../chunks/CDS-2UO6.js";import{a as Ja}from"../chunks/8KX3cYnK.js";const Qa=Symbol("NaN");function $a(n,t,e){ii&&oi();var r=new ja(n),i=!ca();la(()=>{var o=t();o!==o&&(o=Qa),i&&o!==null&&typeof o=="object"&&(o={}),r.ensure(o,e)})}function tc(n,t,e=!1,r=!1,i=!1){var o=n,a="";ts(()=>{var c=ua;if(a===(a=t()??"")){ii&&oi();return}if(c.nodes!==null&&(da(c.nodes.start,c.nodes.end),c.nodes=null),a!==""){if(ii){Ao.data;for(var l=oi(),u=l;l!==null&&(l.nodeType!==fa||l.data!=="");)u=l,l=ha(l);if(l===null)throw ga(),ma;Oo(Ao,u),o=pa(l);return}var f=a+"";e?f=`<svg>${f}</svg>`:r&&(f=`<math>${f}</math>`);var d=va(f);if((e||r)&&(d=or(d)),Oo(or(d),d.lastChild),e||r)for(;or(d);)o.before(or(d));else o.before(d)}})}const ec=()=>{const n=_a;return{page:{subscribe:n.page.subscribe},navigating:{subscribe:n.navigating.subscribe},updated:n.updated}},Fo={subscribe(n){return ec().page.subscribe(n)}};function be(n){let t=q(we(n));return{[Ba]:!0,[Na]:!0,get current(){return g(t)},set current(e){P(t,e,!0)}}}be.from=rs;be.with=x;be.flatten=La;be.readonly=Wa;be.isBox=za;be.isWritableBox=Ka;const nc={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"},rc=is(nc),as=typeof window<"u"?window:void 0;function ic(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Pt,Ct,Rt,Pr,xt,qe,lr;const ro=class ro extends Map{constructor(e){super();p(this,xt);p(this,Pt,new Map);p(this,Ct,q(0));p(this,Rt,q(0));p(this,Pr,Po||-1);if(e){for(var[r,i]of e)super.set(r,i);s(this,Rt).v=super.size}}has(e){var r=s(this,Pt),i=r.get(e);if(i===void 0){var o=super.get(e);if(o!==void 0)i=B(this,xt,qe).call(this,0),r.set(e,i);else return g(s(this,Ct)),!1}return g(i),!0}forEach(e,r){B(this,xt,lr).call(this),super.forEach(e,r)}get(e){var r=s(this,Pt),i=r.get(e);if(i===void 0){var o=super.get(e);if(o!==void 0)i=B(this,xt,qe).call(this,0),r.set(e,i);else{g(s(this,Ct));return}}return g(i),super.get(e)}set(e,r){var d;var i=s(this,Pt),o=i.get(e),a=super.get(e),c=super.set(e,r),l=s(this,Ct);if(o===void 0)o=B(this,xt,qe).call(this,0),i.set(e,o),P(s(this,Rt),super.size),Ke(l);else if(a!==r){Ke(o);var u=l.reactions===null?null:new Set(l.reactions),f=u===null||!((d=o.reactions)!=null&&d.every(h=>u.has(h)));f&&Ke(l)}return c}delete(e){var r=s(this,Pt),i=r.get(e),o=super.delete(e);return i!==void 0&&(r.delete(e),P(s(this,Rt),super.size),P(i,-1),Ke(s(this,Ct))),o}clear(){if(super.size!==0){super.clear();var e=s(this,Pt);P(s(this,Rt),0);for(var r of e.values())P(r,-1);Ke(s(this,Ct)),e.clear()}}keys(){return g(s(this,Ct)),super.keys()}values(){return B(this,xt,lr).call(this),super.values()}entries(){return B(this,xt,lr).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return g(s(this,Rt)),super.size}};Pt=new WeakMap,Ct=new WeakMap,Rt=new WeakMap,Pr=new WeakMap,xt=new WeakSet,qe=function(e){return Po===s(this,Pr)?q(e):ya(e)},lr=function(){g(s(this,Ct));var e=s(this,Pt);if(s(this,Rt).v!==e.size){for(var r of So(ro.prototype,this,"keys").call(this))if(!e.has(r)){var i=B(this,xt,qe).call(this,0);e.set(r,i)}}for([,i]of s(this,Pt))g(i)};let ai=ro;var Ae,je;class oc{constructor(t={}){p(this,Ae);p(this,je);const{window:e=as,document:r=e==null?void 0:e.document}=t;e!==void 0&&(F(this,Ae,r),F(this,je,ns(i=>{const o=nt(e,"focusin",i),a=nt(e,"focusout",i);return()=>{o(),a()}})))}get current(){var t;return(t=s(this,je))==null||t.call(this),s(this,Ae)?ic(s(this,Ae)):null}}Ae=new WeakMap,je=new WeakMap;new oc;function sc(n){return typeof n=="function"}var Ze,_t;class Ht{constructor(t){p(this,Ze);p(this,_t);F(this,Ze,t),F(this,_t,Symbol(t))}get key(){return s(this,_t)}exists(){return ba(s(this,_t))}get(){const t=Co(s(this,_t));if(t===void 0)throw new Error(`Context "${s(this,Ze)}" not found`);return t}getOr(t){const e=Co(s(this,_t));return e===void 0?t:e}set(t){return wa(s(this,_t),t)}}Ze=new WeakMap,_t=new WeakMap;function ac(n,t){switch(n){case"post":rt(t);break;case"pre":xa(t);break}}function cs(n,t,e,r={}){const{lazy:i=!1}=r;let o=!i,a=Array.isArray(n)?[]:void 0;ac(t,()=>{const c=Array.isArray(n)?n.map(u=>u()):n();if(!o){o=!0,a=c;return}const l=Sa(()=>e(c,a));return a=c,l})}function ut(n,t,e){cs(n,"post",t,e)}function cc(n,t,e){cs(n,"pre",t,e)}ut.pre=cc;function Mo(n){return sc(n)?n():n}var qt,Oe,Pe,Ce,Gt,Cr,Er,Ee;class lc{constructor(t,e={box:"border-box"}){p(this,qt,{width:0,height:0});p(this,Oe,!1);p(this,Pe);p(this,Ce);p(this,Gt);p(this,Cr,O(()=>{var t;return(t=g(s(this,Ee)))==null||t(),this.getSize().width}));p(this,Er,O(()=>{var t;return(t=g(s(this,Ee)))==null||t(),this.getSize().height}));p(this,Ee,O(()=>{const t=Mo(s(this,Ce));if(t)return ns(e=>{if(!s(this,Gt))return;const r=new(s(this,Gt)).ResizeObserver(i=>{F(this,Oe,!0);for(const o of i){const a=s(this,Pe).box==="content-box"?o.contentBoxSize:o.borderBoxSize,c=Array.isArray(a)?a:[a];s(this,qt).width=c.reduce((l,u)=>Math.max(l,u.inlineSize),0),s(this,qt).height=c.reduce((l,u)=>Math.max(l,u.blockSize),0)}e()});return r.observe(t),()=>{F(this,Oe,!1),r.disconnect()}})}));F(this,Gt,e.window??as),F(this,Pe,e),F(this,Ce,t),F(this,qt,{width:0,height:0})}calculateSize(){const t=Mo(s(this,Ce));if(!t||!s(this,Gt))return;const e=t.offsetWidth,r=t.offsetHeight;if(s(this,Pe).box==="border-box")return{width:e,height:r};const i=s(this,Gt).getComputedStyle(t),o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),c=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=e-o-c,f=r-a-l;return{width:u,height:f}}getSize(){return s(this,Oe)?s(this,qt):this.calculateSize()??s(this,qt)}get current(){var t;return(t=g(s(this,Ee)))==null||t(),this.getSize()}get width(){return g(s(this,Cr))}get height(){return g(s(this,Er))}}qt=new WeakMap,Oe=new WeakMap,Pe=new WeakMap,Ce=new WeakMap,Gt=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Ee=new WeakMap;function nr(n){rt(()=>()=>{n()})}function uc(n,t){return setTimeout(t,n)}function se(n){Aa().then(n)}const dc=1,fc=9,hc=11;function ci(n){return Xr(n)&&n.nodeType===dc&&typeof n.nodeName=="string"}function ls(n){return Xr(n)&&n.nodeType===fc}function gc(n){var t;return Xr(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function mc(n){return Xr(n)&&n.nodeType!==void 0}function us(n){return mc(n)&&n.nodeType===hc&&"host"in n}function pc(n,t){var r;if(!n||!t||!ci(n)||!ci(t))return!1;const e=(r=t.getRootNode)==null?void 0:r.call(t);if(n===t||n.contains(t))return!0;if(e&&us(e)){let i=t;for(;i;){if(n===i)return!0;i=i.parentNode||i.host}}return!1}function rr(n){return ls(n)?n:gc(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function Wi(n){var t;return us(n)?Wi(n.host):ls(n)?n.defaultView??window:ci(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function vc(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Je;class jr{constructor(t){A(this,"element");p(this,Je,O(()=>this.element.current?this.element.current.getRootNode()??document:document));A(this,"getDocument",()=>rr(this.root));A(this,"getWindow",()=>this.getDocument().defaultView??window);A(this,"getActiveElement",()=>vc(this.root));A(this,"isActiveElement",t=>t===this.getActiveElement());A(this,"querySelector",t=>this.root?this.root.querySelector(t):null);A(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);A(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));A(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=x(t):this.element=t}get root(){return g(s(this,Je))}set root(t){P(s(this,Je),t)}getElementById(t){return this.root.getElementById(t)}}Je=new WeakMap;const Ye="ArrowDown",zi="ArrowLeft",Ki="ArrowRight",gr="ArrowUp",ds="End",fs="Enter",yc="Escape",hs="Home",bc="PageDown",wc="PageUp",gs=" ",xc="Tab";function Sc(n){return window.getComputedStyle(n).getPropertyValue("direction")}function Ac(n="ltr",t="horizontal"){return{horizontal:n==="rtl"?zi:Ki,vertical:Ye}[t]}function Oc(n="ltr",t="horizontal"){return{horizontal:n==="rtl"?Ki:zi,vertical:gr}[t]}function Pc(n="ltr",t="horizontal"){return["ltr","rtl"].includes(n)||(n="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Ac(n,t),prevKey:Oc(n,t)}}const ms=typeof document<"u",Ro=Cc();function Cc(){var n,t;return ms&&((n=window==null?void 0:window.navigator)==null?void 0:n.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Ne(n){return n instanceof HTMLElement}function li(n){return n instanceof Element}function ps(n){return n instanceof Element||n instanceof SVGElement}function Ec(n){return n!==null}function Tc(n){return n instanceof HTMLInputElement&&"select"in n}var at,Dt;class kc{constructor(t){p(this,at);p(this,Dt,be(null));F(this,at,t)}getCandidateNodes(){return s(this,at).rootNode.current?s(this,at).candidateSelector?Array.from(s(this,at).rootNode.current.querySelectorAll(s(this,at).candidateSelector)):s(this,at).candidateAttr?Array.from(s(this,at).rootNode.current.querySelectorAll(`[${s(this,at).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var e;const t=this.getCandidateNodes();t.length&&((e=t[0])==null||e.focus())}handleKeydown(t,e,r=!1){var v,b;const i=s(this,at).rootNode.current;if(!i||!t)return;const o=this.getCandidateNodes();if(!o.length)return;const a=o.indexOf(t),c=Sc(i),{nextKey:l,prevKey:u}=Pc(c,s(this,at).orientation.current),f=s(this,at).loop.current,d={[l]:a+1,[u]:a-1,[hs]:0,[ds]:o.length-1};if(r){const S=l===Ye?Ki:Ye,C=u===gr?zi:gr;d[S]=a+1,d[C]=a-1}let h=d[e.key];if(h===void 0)return;e.preventDefault(),h<0&&f?h=o.length-1:h===o.length&&f&&(h=0);const m=o[h];if(m)return m.focus(),s(this,Dt).current=m.id,(b=(v=s(this,at)).onCandidateFocus)==null||b.call(v,m),m}getTabIndex(t){const e=this.getCandidateNodes(),r=s(this,Dt).current!==null;return t&&!r&&e[0]===t?(s(this,Dt).current=t.id,0):(t==null?void 0:t.id)===s(this,Dt).current?0:-1}setCurrentTabStopId(t){s(this,Dt).current=t}focusCurrentTabStop(){var r;const t=s(this,Dt).current;if(!t)return;const e=(r=s(this,at).rootNode.current)==null?void 0:r.querySelector(`#${t}`);!e||!Ne(e)||e.focus()}}at=new WeakMap,Dt=new WeakMap;var Te,ae,zt,ui,ur;class Fc{constructor(t){p(this,zt);p(this,Te);p(this,ae,null);F(this,Te,t),nr(()=>B(this,zt,ui).call(this))}run(t){B(this,zt,ui).call(this);const e=s(this,Te).ref.current;if(e){if(typeof e.getAnimations!="function"){B(this,zt,ur).call(this,t);return}F(this,ae,window.requestAnimationFrame(()=>{const r=e.getAnimations();if(r.length===0){B(this,zt,ur).call(this,t);return}Promise.allSettled(r.map(i=>i.finished)).then(()=>{B(this,zt,ur).call(this,t)})}))}}}Te=new WeakMap,ae=new WeakMap,zt=new WeakSet,ui=function(){s(this,ae)&&(window.cancelAnimationFrame(s(this,ae)),F(this,ae,null))},ur=function(t){const e=()=>{t()};s(this,Te).afterTick?se(e):e()};var Et,Qe,$e,ce;class Mc{constructor(t){p(this,Et);p(this,Qe);p(this,$e);p(this,ce,q(!1));F(this,Et,t),P(s(this,ce),t.open.current,!0),F(this,Qe,t.enabled??!0),F(this,$e,new Fc({ref:s(this,Et).ref,afterTick:s(this,Et).open})),ut(()=>s(this,Et).open.current,e=>{e&&P(s(this,ce),!0),s(this,Qe)&&s(this,$e).run(()=>{var r,i;e===s(this,Et).open.current&&(s(this,Et).open.current||P(s(this,ce),!1),(i=(r=s(this,Et)).onComplete)==null||i.call(r))})})}get shouldRender(){return g(s(this,ce))}}Et=new WeakMap,Qe=new WeakMap,$e=new WeakMap,ce=new WeakMap;function Q(){}function Rc(n,t){var e=R(),r=k(e);$a(r,()=>t.children,i=>{var o=R(),a=k(o);H(a,()=>t.children??J),E(i,o)}),E(n,e)}const _c=new Ht("BitsConfig");function Dc(){const n=new Ic(null,{});return _c.getOr(n).opts}class Ic{constructor(t,e){A(this,"opts");const r=Nc(t,e);this.opts={defaultPortalTo:r(i=>i.defaultPortalTo),defaultLocale:r(i=>i.defaultLocale)}}}function Nc(n,t){return e=>x(()=>{var o,a;const i=(o=e(t))==null?void 0:o.current;if(i!==void 0)return i;if(n!==null)return(a=e(n.opts))==null?void 0:a.current})}function Bc(n,t){return e=>{const r=Dc();return x(()=>{const i=e();if(i!==void 0)return i;const o=n(r).current;return o!==void 0?o:t})}}const Lc=Bc(n=>n.defaultPortalTo,"body");function Wc(n,t){K(t,!0);const e=Lc(()=>t.to),r=Oa();let i=O(o);function o(){if(!ms||t.disabled)return null;let d=null;return typeof e.current=="string"?d=document.querySelector(e.current):d=e.current,d}let a;function c(){a&&(Ca(a),a=null)}ut([()=>g(i),()=>t.disabled],([d,h])=>{if(!d||h){c();return}return a=Pa(Rc,{target:d,props:{children:t.children},context:r}),()=>{c()}});var l=R(),u=k(l);{var f=d=>{var h=R(),m=k(h);H(m,()=>t.children??J),E(d,h)};it(u,d=>{t.disabled&&d(f)})}E(n,l),V()}class zc{constructor(t,e={bubbles:!0,cancelable:!0}){A(this,"eventName");A(this,"options");this.eventName=t,this.options=e}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,e){const r=this.createEvent(e);return t.dispatchEvent(r),r}listen(t,e,r){const i=o=>{e(o)};return nt(t,this.eventName,i,r)}}function _o(n,t=500){let e=null;const r=(...i)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...i)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function vs(n,t){return n===t||n.contains(t)}function ys(n){return(n==null?void 0:n.ownerDocument)??document}function Kc(n,t){const{clientX:e,clientY:r}=n,i=t.getBoundingClientRect();return e<i.left||e>i.right||r<i.top||r>i.bottom}const Vc=[Ye,wc,hs],bs=[gr,bc,ds],Hc=[...Vc,...bs];function Uc(n,{select:t=!1}={}){if(!n||!n.focus)return;const e=rr(n);if(e.activeElement===n)return;const r=e.activeElement;n.focus({preventScroll:!0}),n!==r&&Tc(n)&&t&&n.select()}function qc(n,{select:t=!1}={},e){const r=e();for(const i of n)if(Uc(i,{select:t}),e()!==r)return!0}let Ve=q(!1);const wt=class wt{constructor(){rt(()=>(wt._refs===0&&(wt._cleanup=es(()=>{const t=[],e=i=>{P(Ve,!1)},r=i=>{P(Ve,!0)};return t.push(nt(document,"pointerdown",e,{capture:!0}),nt(document,"pointermove",e,{capture:!0}),nt(document,"keydown",r,{capture:!0})),xe(...t)})),wt._refs++,()=>{var t;wt._refs--,wt._refs===0&&(P(Ve,!1),(t=wt._cleanup)==null||t.call(wt))}))}get current(){return g(Ve)}set current(t){P(Ve,t,!0)}};A(wt,"_refs",0),A(wt,"_cleanup");let di=wt;/*!
* tabbable 6.4.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var ws=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[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] *)"],mr=ws.join(","),xs=typeof Element>"u",ve=xs?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,pr=!xs&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},vr=function(t,e){var r;e===void 0&&(e=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):vr(t.parentNode));return a},Gc=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},Ss=function(t,e,r){if(vr(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(mr));return e&&ve.call(t,mr)&&i.unshift(t),i=i.filter(r),i},yr=function(t,e,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!vr(a,!1))if(a.tagName==="SLOT"){var c=a.assignedElements(),l=c.length?c:a.children,u=yr(l,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var f=ve.call(a,mr);f&&r.filter(a)&&(e||!t.includes(a))&&i.push(a);var d=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),h=!vr(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(d&&h){var m=yr(d===!0?a.children:d.children,!0,r);r.flatten?i.push.apply(i,m):i.push({scopeParent:a,candidates:m})}else o.unshift.apply(o,a.children)}}return i},As=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Os=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Gc(t))&&!As(t)?0:t.tabIndex},Yc=function(t,e){var r=Os(t);return r<0&&e&&!As(t)?0:r},Xc=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Ps=function(t){return t.tagName==="INPUT"},jc=function(t){return Ps(t)&&t.type==="hidden"},Zc=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},Jc=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},Qc=function(t){if(!t.name)return!0;var e=t.form||pr(t),r=function(c){return e.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){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",a.message),!1}var o=Jc(i,t.form);return!o||o===t},$c=function(t){return Ps(t)&&t.type==="radio"},tl=function(t){return $c(t)&&!Qc(t)},el=function(t){var e,r=t&&pr(t),i=(e=r)===null||e===void 0?void 0:e.host,o=!1;if(r&&r!==t){var a,c,l;for(o=!!((a=i)!==null&&a!==void 0&&(c=a.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(l=t.ownerDocument)!==null&&l!==void 0&&l.contains(t));!o&&i;){var u,f,d;r=pr(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((f=i)!==null&&f!==void 0&&(d=f.ownerDocument)!==null&&d!==void 0&&d.contains(i))}}return o},Do=function(t){var e=t.getBoundingClientRect(),r=e.width,i=e.height;return r===0&&i===0},nl=function(t,e){var r=e.displayCheck,i=e.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var o=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!o}if(getComputedStyle(t).visibility==="hidden")return!0;var a=ve.call(t,"details>summary:first-of-type"),c=a?t.parentElement:t;if(ve.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var u=t.parentElement,f=pr(t);if(u&&!u.shadowRoot&&i(u)===!0)return Do(t);t.assignedSlot?t=t.assignedSlot:!u&&f!==t.ownerDocument?t=f.host:t=u}t=l}if(el(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Do(t);return!1},rl=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var i=e.children.item(r);if(i.tagName==="LEGEND")return ve.call(e,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}e=e.parentElement}return!1},br=function(t,e){return!(e.disabled||jc(e)||nl(e,t)||Zc(e)||rl(e))},fi=function(t,e){return!(tl(e)||Os(e)<0||!br(t,e))},il=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Cs=function(t){var e=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,c=a?i.scopeParent:i,l=Yc(c,a),u=a?Cs(i.candidates):c;l===0?a?e.push.apply(e,u):e.push(c):r.push({documentOrder:o,tabIndex:l,item:i,isScope:a,content:u})}),r.sort(Xc).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(e)},Es=function(t,e){e=e||{};var r;return e.getShadowRoot?r=yr([t],e.includeContainer,{filter:fi.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:il}):r=Ss(t,e.includeContainer,fi.bind(null,e)),Cs(r)},Ts=function(t,e){e=e||{};var r;return e.getShadowRoot?r=yr([t],e.includeContainer,{filter:br.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):r=Ss(t,e.includeContainer,br.bind(null,e)),r},Vi=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ve.call(t,mr)===!1?!1:fi(e,t)},ol=ws.concat("iframe:not([inert]):not([inert] *)").join(","),ks=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ve.call(t,ol)===!1?!1:br(e,t)};function Ge(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function sl(n,t){if(!Vi(n,Ge()))return al(n,t);const e=rr(n),r=Es(e.body,Ge());t==="prev"&&r.reverse();const i=r.indexOf(n);return i===-1?e.body:r.slice(i+1)[0]}function al(n,t){const e=rr(n);if(!ks(n,Ge()))return e.body;const r=Ts(e.body,Ge());t==="prev"&&r.reverse();const i=r.indexOf(n);return i===-1?e.body:r.slice(i+1).find(a=>Vi(a,Ge()))??e.body}function Fs(n,t,e){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(n.filter(b=>b.toLowerCase().startsWith(d)).length<=1)return Fs(n,d,e);const m=e==null?void 0:e.toLowerCase();if(m&&m.startsWith(d)&&m.charAt(d.length)===" "&&t.trim()===d)return e;const v=n.filter(b=>b.toLowerCase().startsWith(r));if(v.length>0){const b=e?n.indexOf(e):-1;return Io(v,Math.max(b,0)).find(T=>T!==e)||e}}const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=o.toLowerCase(),c=e?n.indexOf(e):-1;let l=Io(n,Math.max(c,0));o.length===1&&(l=l.filter(d=>d!==e));const f=l.find(d=>d==null?void 0:d.toLowerCase().startsWith(a));return f!==e?f:void 0}function Io(n,t){return n.map((e,r)=>n[(t+r)%n.length])}const cl={afterMs:1e4,onChange:Q};function Ms(n,t){const{afterMs:e,onChange:r,getWindow:i}={...cl,...t};let o=null,a=q(we(n));function c(){return i().setTimeout(()=>{P(a,n,!0),r==null||r(n)},e)}return rt(()=>()=>{o&&i().clearTimeout(o)}),x(()=>g(a),l=>{P(a,l,!0),r==null||r(l),o&&i().clearTimeout(o),o=c()})}var It,Nt,Tr,kr;class ll{constructor(t){p(this,It);p(this,Nt);p(this,Tr,O(()=>s(this,It).onMatch?s(this,It).onMatch:t=>t.focus()));p(this,kr,O(()=>s(this,It).getCurrentItem?s(this,It).getCurrentItem:s(this,It).getActiveElement));F(this,It,t),F(this,Nt,Ms("",{afterMs:1e3,getWindow:t.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,e){var l,u;if(!e.length)return;s(this,Nt).current=s(this,Nt).current+t;const r=g(s(this,kr))(),i=((u=(l=e.find(f=>f===r))==null?void 0:l.textContent)==null?void 0:u.trim())??"",o=e.map(f=>{var d;return((d=f.textContent)==null?void 0:d.trim())??""}),a=Fs(o,s(this,Nt).current,i),c=e.find(f=>{var d;return((d=f.textContent)==null?void 0:d.trim())===a});return c&&g(s(this,Tr))(c),c}resetTypeahead(){s(this,Nt).current=""}get search(){return s(this,Nt).current}}It=new WeakMap,Nt=new WeakMap,Tr=new WeakMap,kr=new WeakMap;var le,tn,ke,Yt,ee,hi,gi;class ul{constructor(t){p(this,ee);p(this,le);p(this,tn);p(this,ke);p(this,Yt,q(null));F(this,le,t),F(this,tn,O(()=>s(this,le).enabled())),F(this,ke,Ms(!1,{afterMs:t.transitTimeout??300,onChange:e=>{var r,i;g(s(this,tn))&&((i=(r=s(this,le)).setIsPointerInTransit)==null||i.call(r,e))},getWindow:()=>Wi(s(this,le).triggerNode())})),ut([t.triggerNode,t.contentNode,t.enabled],([e,r,i])=>{if(!e||!r||!i)return;const o=c=>{B(this,ee,gi).call(this,c,r)},a=c=>{B(this,ee,gi).call(this,c,e)};return xe(nt(e,"pointerleave",o),nt(r,"pointerleave",a))}),ut(()=>g(s(this,Yt)),()=>{const e=i=>{var u,f;if(!g(s(this,Yt)))return;const o=i.target;if(!li(o))return;const a={x:i.clientX,y:i.clientY},c=((u=t.triggerNode())==null?void 0:u.contains(o))||((f=t.contentNode())==null?void 0:f.contains(o)),l=!gl(a,g(s(this,Yt)));c?B(this,ee,hi).call(this):l&&(B(this,ee,hi).call(this),t.onPointerExit())},r=rr(t.triggerNode()??t.contentNode());if(r)return nt(r,"pointermove",e)})}}le=new WeakMap,tn=new WeakMap,ke=new WeakMap,Yt=new WeakMap,ee=new WeakSet,hi=function(){P(s(this,Yt),null),s(this,ke).current=!1},gi=function(t,e){const r=t.currentTarget;if(!Ne(r))return;const i={x:t.clientX,y:t.clientY},o=dl(i,r.getBoundingClientRect()),a=fl(i,o),c=hl(e.getBoundingClientRect()),l=ml([...a,...c]);P(s(this,Yt),l,!0),s(this,ke).current=!0};function dl(n,t){const e=Math.abs(t.top-n.y),r=Math.abs(t.bottom-n.y),i=Math.abs(t.right-n.x),o=Math.abs(t.left-n.x);switch(Math.min(e,r,i,o)){case o:return"left";case i:return"right";case e:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function fl(n,t,e=5){const r=e*1.5;switch(t){case"top":return[{x:n.x-e,y:n.y+e},{x:n.x,y:n.y-r},{x:n.x+e,y:n.y+e}];case"bottom":return[{x:n.x-e,y:n.y-e},{x:n.x,y:n.y+r},{x:n.x+e,y:n.y-e}];case"left":return[{x:n.x+e,y:n.y-e},{x:n.x-r,y:n.y},{x:n.x+e,y:n.y+e}];case"right":return[{x:n.x-e,y:n.y-e},{x:n.x+r,y:n.y},{x:n.x-e,y:n.y+e}]}}function hl(n){const{top:t,right:e,bottom:r,left:i}=n;return[{x:i,y:t},{x:e,y:t},{x:e,y:r},{x:i,y:r}]}function gl(n,t){const{x:e,y:r}=n;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const c=t[o].x,l=t[o].y,u=t[a].x,f=t[a].y;l>r!=f>r&&e<(u-c)*(r-l)/(f-l)+c&&(i=!i)}return i}function ml(n){const t=n.slice();return t.sort((e,r)=>e.x<r.x?-1:e.x>r.x?1:e.y<r.y?-1:e.y>r.y?1:0),pl(t)}function pl(n){if(n.length<=1)return n.slice();const t=[];for(let r=0;r<n.length;r++){const i=n[r];for(;t.length>=2;){const o=t[t.length-1],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))t.pop();else break}t.push(i)}t.pop();const e=[];for(let r=n.length-1;r>=0;r--){const i=n[r];for(;e.length>=2;){const o=e[e.length-1],a=e[e.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.x))e.pop();else break}e.push(i)}return e.pop(),t.length===1&&e.length===1&&t[0].x===e[0].x&&t[0].y===e[0].y?t:t.concat(e)}const vl="data-context-menu-trigger",yl="data-context-menu-content",Rs=new Ht("Menu.Root"),Hi=new Ht("Menu.Root | Menu.Sub"),bl=new Ht("Menu.Content"),wl=new zc("bitsmenuopen",{bubbles:!1,cancelable:!0}),xl=Li({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var en,nn;const io=class io{constructor(t){A(this,"opts");A(this,"isUsingKeyboard",new di);p(this,en,q(!1));p(this,nn,q(!1));A(this,"getBitsAttr",t=>xl.getAttr(t,this.opts.variant.current));this.opts=t}static create(t){const e=new io(t);return Rs.set(e)}get ignoreCloseAutoFocus(){return g(s(this,en))}set ignoreCloseAutoFocus(t){P(s(this,en),t,!0)}get isPointerInTransit(){return g(s(this,nn))}set isPointerInTransit(t){P(s(this,nn),t,!0)}};en=new WeakMap,nn=new WeakMap;let mi=io;var rn,on;const oo=class oo{constructor(t,e,r){A(this,"opts");A(this,"root");A(this,"parentMenu");A(this,"contentId",x(()=>""));p(this,rn,q(null));A(this,"contentPresence");p(this,on,q(null));this.opts=t,this.root=e,this.parentMenu=r,this.contentPresence=new Mc({ref:x(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&ut(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(t,e){return Hi.set(new oo(t,e,null))}get contentNode(){return g(s(this,rn))}set contentNode(t){P(s(this,rn),t,!0)}get triggerNode(){return g(s(this,on))}set triggerNode(t){P(s(this,on),t,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};rn=new WeakMap,on=new WeakMap;let pi=oo;var sn,an,cn,ln,un,Qt,_s,dr,dn,fn;const so=class so{constructor(t,e){p(this,Qt);A(this,"opts");A(this,"parentMenu");A(this,"rovingFocusGroup");A(this,"domContext");A(this,"attachment");p(this,sn,q(""));p(this,an,0);p(this,cn);p(this,ln,q(!1));p(this,un);A(this,"onCloseAutoFocus",t=>{var e,r;(r=(e=this.opts.onCloseAutoFocus).current)==null||r.call(e,t),!(t.defaultPrevented||s(this,un))&&this.parentMenu.triggerNode&&Vi(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())});p(this,dn,O(()=>({open:this.parentMenu.opts.open.current})));p(this,fn,O(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":os(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));A(this,"popperProps",{onCloseAutoFocus:t=>this.onCloseAutoFocus(t)});this.opts=t,this.parentMenu=e,this.domContext=new jr(t.ref),this.attachment=St(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),e.contentId=t.id,F(this,un,t.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new ul({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>{var r;return this.parentMenu.opts.open.current&&!!((r=this.parentMenu.triggerNode)!=null&&r.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),F(this,cn,new ll({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new kc({rootNode:x(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:x(()=>"vertical")}),ut(()=>this.parentMenu.contentNode,r=>{if(!r)return;const i=()=>{se(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return wl.listen(r,i)}),rt(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(s(this,an))})}static create(t){return bl.set(new so(t,Hi.get()))}get search(){return g(s(this,sn))}set search(t){P(s(this,sn),t,!0)}get mounted(){return g(s(this,ln))}set mounted(t){P(s(this,ln),t,!0)}handleTabKeyDown(t){let e=this.parentMenu;for(;e.parentMenu!==null;)e=e.parentMenu;if(!e.triggerNode)return;t.preventDefault();const r=sl(e.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,e.onClose(),se(()=>{r.focus(),se(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){var u,f;if(t.defaultPrevented)return;if(t.key===xc){this.handleTabKeyDown(t);return}const e=t.target,r=t.currentTarget;if(!Ne(e)||!Ne(r))return;const i=((u=e.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:u.id)===this.parentMenu.contentId.current,o=t.ctrlKey||t.altKey||t.metaKey,a=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(e,t)||t.code==="Space")return;const l=B(this,Qt,_s).call(this);i&&!o&&a&&s(this,cn).call(this,t.key,l),((f=t.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&Hc.includes(t.key)&&(t.preventDefault(),bs.includes(t.key)&&l.reverse(),qc(l,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){var e,r;li(t.currentTarget)&&li(t.target)&&((r=(e=t.currentTarget).contains)!=null&&r.call(e,t.target)||(this.domContext.getWindow().clearTimeout(s(this,an)),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&se(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return B(this,Qt,dr).call(this)}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||B(this,Qt,dr).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const e=this.parentMenu.contentNode;e==null||e.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!B(this,Qt,dr).call(this)}handleInteractOutside(t){var r;if(!ps(t.target))return;const e=(r=this.parentMenu.triggerNode)==null?void 0:r.id;if(t.target.id===e){t.preventDefault();return}t.target.closest(`#${e}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return g(s(this,dn))}set snippetProps(t){P(s(this,dn),t)}get props(){return g(s(this,fn))}set props(t){P(s(this,fn),t)}};sn=new WeakMap,an=new WeakMap,cn=new WeakMap,ln=new WeakMap,un=new WeakMap,Qt=new WeakSet,_s=function(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},dr=function(){return this.parentMenu.root.isPointerInTransit},dn=new WeakMap,fn=new WeakMap;let vi=so;var hn;const ao=class ao{constructor(t,e){A(this,"opts");A(this,"root");A(this,"attachment");p(this,hn,O(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=St(this.opts.ref)}static create(t){return new ao(t,Rs.get())}get props(){return g(s(this,hn))}set props(t){P(s(this,hn),t)}};hn=new WeakMap;let yi=ao;var Fr,gn;const co=class co{constructor(t,e){A(this,"opts");A(this,"parentMenu");A(this,"attachment");A(this,"onclick",t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())});A(this,"onpointerdown",t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}});A(this,"onpointerup",t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())});A(this,"onkeydown",t=>{if(!this.opts.disabled.current){if(t.key===gs||t.key===fs){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===Ye&&(this.parentMenu.onOpen(),t.preventDefault())}});p(this,Fr,O(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));p(this,gn,O(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":ss(this.parentMenu.opts.open.current),"aria-controls":g(s(this,Fr)),"data-disabled":si(this.opts.disabled.current),"data-state":os(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=t,this.parentMenu=e,this.attachment=St(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(t){return new co(t,Hi.get())}get props(){return g(s(this,gn))}set props(t){P(s(this,gn),t)}};Fr=new WeakMap,gn=new WeakMap;let bi=co;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var Fe,ue,Xt,Me,Re,jt,mn,Bt,Mr,Le,Ds,Rr,_e,_r,Dr,Ir,Nr,pn,Is,Br,Lr;const lo=class lo{constructor(t){p(this,Le);A(this,"opts");p(this,Fe);p(this,ue);p(this,Xt,{pointerdown:!1});p(this,Me,!1);p(this,Re,!1);p(this,jt);p(this,mn);p(this,Bt,Q);p(this,Mr,t=>{t.defaultPrevented||this.opts.ref.current&&se(()=>{var e,r;!this.opts.ref.current||s(this,Nr).call(this,t.target)||t.target&&!s(this,Re)&&((r=(e=s(this,mn)).current)==null||r.call(e,t))})});p(this,Rr,t=>{let e=t;e.defaultPrevented&&(e=No(t)),s(this,Fe).current(t)});p(this,_e,_o(t=>{if(!this.opts.ref.current){s(this,Bt).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||Ol(t,this.opts.ref.current);if(!s(this,Me)||B(this,Le,Is).call(this)||!e){s(this,Bt).call(this);return}let r=t;if(r.defaultPrevented&&(r=No(r)),s(this,ue).current!=="close"&&s(this,ue).current!=="defer-otherwise-close"){s(this,Bt).call(this);return}t.pointerType==="touch"?(s(this,Bt).call(this),F(this,Bt,nt(s(this,jt),"click",s(this,Rr),{once:!0}))):s(this,Fe).current(r)},10));p(this,_r,t=>{s(this,Xt)[t.type]=!0});p(this,Dr,t=>{s(this,Xt)[t.type]=!1});p(this,Ir,()=>{this.opts.ref.current&&F(this,Me,Al(this.opts.ref.current))});p(this,Nr,t=>this.opts.ref.current?vs(this.opts.ref.current,t):!1);p(this,pn,_o(()=>{for(const t in s(this,Xt))s(this,Xt)[t]=!1;F(this,Me,!1)},20));p(this,Br,()=>{F(this,Re,!0)});p(this,Lr,()=>{F(this,Re,!1)});A(this,"props",{onfocuscapture:s(this,Br),onblurcapture:s(this,Lr)});this.opts=t,F(this,ue,t.interactOutsideBehavior),F(this,Fe,t.onInteractOutside),F(this,mn,t.onFocusOutside),rt(()=>{F(this,jt,ys(this.opts.ref.current))});let e=Q;const r=()=>{s(this,pn).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,_e).destroy(),e()};ut([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return uc(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,s(this,ue)),e(),e=B(this,Le,Ds).call(this))}),r}),nr(()=>{s(this,pn).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,_e).destroy(),s(this,Bt).call(this),e()})}static create(t){return new lo(t)}};Fe=new WeakMap,ue=new WeakMap,Xt=new WeakMap,Me=new WeakMap,Re=new WeakMap,jt=new WeakMap,mn=new WeakMap,Bt=new WeakMap,Mr=new WeakMap,Le=new WeakSet,Ds=function(){return xe(nt(s(this,jt),"pointerdown",xe(s(this,_r),s(this,Ir)),{capture:!0}),nt(s(this,jt),"pointerdown",xe(s(this,Dr),s(this,_e))),nt(s(this,jt),"focusin",s(this,Mr)))},Rr=new WeakMap,_e=new WeakMap,_r=new WeakMap,Dr=new WeakMap,Ir=new WeakMap,Nr=new WeakMap,pn=new WeakMap,Is=function(){return Object.values(s(this,Xt)).some(Boolean)},Br=new WeakMap,Lr=new WeakMap;let wi=lo;function Sl(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function Al(n){const t=[...globalThis.bitsDismissableLayers],e=Sl(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function Ol(n,t){const e=n.target;if(!ps(e))return!1;const r=!!e.closest(`[${vl}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const i=!!t.closest(`[${yl}]`);return r&&i?!1:ys(e).documentElement.contains(e)&&!vs(t,e)&&Kc(n,t)}function No(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let i=!1;return new Proxy(r,{get:(a,c)=>c==="currentTarget"?t:c==="target"?e:c==="preventDefault"?()=>{i=!0,typeof a.preventDefault=="function"&&a.preventDefault()}:c==="defaultPrevented"?i:c in a?a[c]:n[c]})}function Pl(n,t){K(t,!0);let e=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"onInteractOutside",3,Q),i=y(t,"onFocusOutside",3,Q),o=y(t,"isValidEvent",3,()=>!1);const a=wi.create({id:x(()=>t.id),interactOutsideBehavior:x(()=>e()),onInteractOutside:x(()=>r()),enabled:x(()=>t.enabled),onFocusOutside:x(()=>i()),isValidEvent:x(()=>o()),ref:t.ref});var c=R(),l=k(c);H(l,()=>t.children??J,()=>({props:a.props})),E(n,c),V()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Wr,zr;const uo=class uo{constructor(t){A(this,"opts");A(this,"domContext");p(this,Wr,()=>nt(this.domContext.getDocument(),"keydown",s(this,zr),{passive:!1}));p(this,zr,t=>{if(t.key!==yc||!Cl(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new jr(this.opts.ref);let e=Q;ut(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=s(this,Wr).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new uo(t)}};Wr=new WeakMap,zr=new WeakMap;let xi=uo;function Cl(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([i,{current:o}])=>o==="close"||o==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function El(n,t){K(t,!0);let e=y(t,"escapeKeydownBehavior",3,"close"),r=y(t,"onEscapeKeydown",3,Q);xi.create({escapeKeydownBehavior:x(()=>e()),onEscapeKeydown:x(()=>r()),enabled:x(()=>t.enabled),ref:t.ref});var i=R(),o=k(i);H(o,()=>t.children??J),E(n,i),V()}var Lt,vn,de;const Kr=class Kr{constructor(){p(this,Lt,Wt([]));p(this,vn,new WeakMap);p(this,de,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Kr),this.instance}register(t){const e=this.getActive();e&&e!==t&&e.pause();const r=document.activeElement;r&&r!==document.body&&s(this,de).set(t,r),s(this,Lt).current=s(this,Lt).current.filter(i=>i!==t),s(this,Lt).current.unshift(t)}unregister(t){s(this,Lt).current=s(this,Lt).current.filter(r=>r!==t);const e=this.getActive();e&&e.resume()}getActive(){return s(this,Lt).current[0]}setFocusMemory(t,e){s(this,vn).set(t,e)}getFocusMemory(t){return s(this,vn).get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,e){s(this,de).set(t,e)}getPreFocusMemory(t){return s(this,de).get(t)}clearPreFocusMemory(t){s(this,de).delete(t)}};Lt=new WeakMap,vn=new WeakMap,de=new WeakMap,A(Kr,"instance");let Si=Kr;var Zt,ct,dt,fe,Jt,$,Ns,Bs,Ls,Ws,Oi,fr,Pi;const fo=class fo{constructor(t){p(this,$);p(this,Zt,!1);p(this,ct,null);p(this,dt,Si.getInstance());p(this,fe,[]);p(this,Jt);F(this,Jt,t)}get paused(){return s(this,Zt)}pause(){F(this,Zt,!0)}resume(){F(this,Zt,!1)}mount(t){s(this,ct)&&this.unmount(),F(this,ct,t),s(this,dt).register(this),B(this,$,Ws).call(this),B(this,$,Bs).call(this)}unmount(){s(this,ct)&&(B(this,$,Ns).call(this),B(this,$,Ls).call(this),s(this,dt).unregister(this),s(this,dt).clearPreFocusMemory(this),F(this,ct,null))}static use(t){let e=null;return ut([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(e||(e=new fo(t)),e.mount(r)):e&&(e.unmount(),e=null)}),nr(()=>{e==null||e.unmount()}),{get props(){return{tabindex:-1}}}}};Zt=new WeakMap,ct=new WeakMap,dt=new WeakMap,fe=new WeakMap,Jt=new WeakMap,$=new WeakSet,Ns=function(){for(const t of s(this,fe))t();F(this,fe,[])},Bs=function(){if(!s(this,ct))return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});s(this,Jt).onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!s(this,ct))return;const e=B(this,$,fr).call(this);e?(e.focus(),s(this,dt).setFocusMemory(this,e)):s(this,ct).focus()})},Ls=function(){var e,r;const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((r=(e=s(this,Jt).onCloseAutoFocus).current)==null||r.call(e,t),!t.defaultPrevented){const i=s(this,dt).getPreFocusMemory(this);if(i&&document.contains(i))try{i.focus()}catch{document.body.focus()}}},Ws=function(){if(!s(this,ct)||!s(this,Jt).trap.current)return;const t=s(this,ct),e=t.ownerDocument,r=a=>{if(s(this,Zt)||!s(this,dt).isActiveScope(this))return;const c=a.target;if(!c)return;if(t.contains(c))s(this,dt).setFocusMemory(this,c);else{const u=s(this,dt).getFocusMemory(this);if(u&&t.contains(u)&&ks(u))a.preventDefault(),u.focus();else{const f=B(this,$,fr).call(this),d=B(this,$,Pi).call(this)[0];(f||d||t).focus()}}},i=a=>{if(!s(this,Jt).loop||s(this,Zt)||a.key!=="Tab"||!s(this,dt).isActiveScope(this))return;const c=B(this,$,Oi).call(this);if(c.length===0)return;const l=c[0],u=c[c.length-1];!a.shiftKey&&e.activeElement===u?(a.preventDefault(),l.focus()):a.shiftKey&&e.activeElement===l&&(a.preventDefault(),u.focus())};s(this,fe).push(nt(e,"focusin",r,{capture:!0}),nt(t,"keydown",i));const o=new MutationObserver(()=>{const a=s(this,dt).getFocusMemory(this);if(a&&!t.contains(a)){const c=B(this,$,fr).call(this),l=B(this,$,Pi).call(this)[0],u=c||l;u?(u.focus(),s(this,dt).setFocusMemory(this,u)):t.focus()}});o.observe(t,{childList:!0,subtree:!0}),s(this,fe).push(()=>o.disconnect())},Oi=function(){return s(this,ct)?Es(s(this,ct),{includeContainer:!1,getShadowRoot:!0}):[]},fr=function(){return B(this,$,Oi).call(this)[0]||null},Pi=function(){return s(this,ct)?Ts(s(this,ct),{includeContainer:!1,getShadowRoot:!0}):[]};let Ai=fo;function Tl(n,t){K(t,!0);let e=y(t,"enabled",3,!1),r=y(t,"trapFocus",3,!1),i=y(t,"loop",3,!1),o=y(t,"onCloseAutoFocus",3,Q),a=y(t,"onOpenAutoFocus",3,Q);const c=Ai.use({enabled:x(()=>e()),trap:x(()=>r()),loop:i(),onCloseAutoFocus:x(()=>o()),onOpenAutoFocus:x(()=>a()),ref:t.ref});var l=R(),u=k(l);H(u,()=>t.focusScope??J,()=>({props:c.props})),E(n,l),V()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var De,Vr,zs,Hr,yn;const ho=class ho{constructor(t){p(this,Vr);A(this,"opts");A(this,"domContext");p(this,De,Q);p(this,Hr,t=>{const e=this.opts.ref.current,r=t.target;!Ne(e)||!Ne(r)||!this.opts.enabled.current||!Fl(this)||!pc(e,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&F(this,De,kl(e,this.domContext.getDocument().body)))});p(this,yn,()=>{s(this,De).call(this),F(this,De,Q)});this.opts=t,this.domContext=new jr(t.ref);let e=Q;ut(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),e(),e=B(this,Vr,zs).call(this)),()=>{e(),s(this,yn).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(t){return new ho(t)}};De=new WeakMap,Vr=new WeakSet,zs=function(){return xe(nt(this.domContext.getDocument(),"pointerdown",s(this,Hr)),nt(this.domContext.getDocument(),"pointerup",Va(s(this,yn),this.opts.onPointerUp.current)))},Hr=new WeakMap,yn=new WeakMap;let Ci=ho;const Bo=n=>n.style.userSelect||n.style.webkitUserSelect;function kl(n,t){const e=Bo(t),r=Bo(n);return sr(t,"none"),sr(n,"text"),()=>{sr(t,e),sr(n,r)}}function sr(n,t){n.style.userSelect=t,n.style.webkitUserSelect=t}function Fl(n){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const e=t.at(-1);return e?e[0]===n:!1}function Ml(n,t){K(t,!0);let e=y(t,"preventOverflowTextSelection",3,!0),r=y(t,"onPointerDown",3,Q),i=y(t,"onPointerUp",3,Q);Ci.create({id:x(()=>t.id),onPointerDown:x(()=>r()),onPointerUp:x(()=>i()),enabled:x(()=>t.enabled&&e()),ref:t.ref});var o=R(),a=k(o);H(a,()=>t.children??J),E(n,o),V()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Ui(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}var bn,Ie,he,ge,Ur,Ks;class Rl{constructor(t){p(this,Ur);p(this,bn);p(this,Ie,0);p(this,he,q());p(this,ge);F(this,bn,t)}get(...t){return F(this,Ie,s(this,Ie)+1),g(s(this,he))===void 0&&F(this,ge,es(()=>{P(s(this,he),s(this,bn).call(this,...t),!0)})),rt(()=>()=>{B(this,Ur,Ks).call(this)}),g(s(this,he))}}bn=new WeakMap,Ie=new WeakMap,he=new WeakMap,ge=new WeakMap,Ur=new WeakSet,Ks=function(){F(this,Ie,s(this,Ie)-1),s(this,ge)&&s(this,Ie)<=0&&(s(this,ge).call(this),P(s(this,he),void 0),F(this,ge,void 0))};const hr=new ai;let ar=q(null),ie=null,He=null,Ue=!1;const Lo=x(()=>{for(const n of hr.values())if(n)return!0;return!1});let ni=null;const _l=new Rl(()=>{function n(){document.body.setAttribute("style",g(ar)??""),document.body.style.removeProperty("--scrollbar-width"),Ro&&(ie==null||ie()),P(ar,null)}function t(){He!==null&&(window.clearTimeout(He),He=null)}function e(i,o){t(),Ue=!0,ni=Date.now();const a=ni,c=()=>{He=null,ni===a&&(Vs(hr)?Ue=!1:(Ue=!1,o()))},l=i===null?24:i;He=window.setTimeout(c,l)}function r(){g(ar)===null&&hr.size===0&&!Ue&&P(ar,document.body.getAttribute("style"),!0)}return ut(()=>Lo.current,()=>{var f,d;if(!Lo.current)return;r(),Ue=!1;const i=getComputedStyle(document.documentElement),o=getComputedStyle(document.body),a=((f=i.scrollbarGutter)==null?void 0:f.includes("stable"))||((d=o.scrollbarGutter)==null?void 0:d.includes("stable")),c=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+c,margin:Number.parseInt(o.marginRight??"0",10)};c>0&&!a&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${c}px`)),document.body.style.overflow="hidden",Ro&&(ie=nt(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),se(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),nr(()=>()=>{ie==null||ie()}),{get lockMap(){return hr},resetBodyStyle:n,scheduleCleanupIfNoNewLocks:e,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});var me,wn,xn,ft;class Dl{constructor(t,e=()=>null){p(this,me,Ui());p(this,wn);p(this,xn,()=>null);p(this,ft);A(this,"locked");F(this,wn,t),F(this,xn,e),F(this,ft,_l.get()),s(this,ft)&&(s(this,ft).cancelPendingCleanup(),s(this,ft).ensureInitialStyleCaptured(),s(this,ft).lockMap.set(s(this,me),s(this,wn)??!1),this.locked=x(()=>s(this,ft).lockMap.get(s(this,me))??!1,r=>s(this,ft).lockMap.set(s(this,me),r)),nr(()=>{if(s(this,ft).lockMap.delete(s(this,me)),Vs(s(this,ft).lockMap))return;const r=s(this,xn).call(this);s(this,ft).scheduleCleanupIfNoNewLocks(r,()=>{s(this,ft).resetBodyStyle()})}))}}me=new WeakMap,wn=new WeakMap,xn=new WeakMap,ft=new WeakMap;function Vs(n){for(const[t,e]of n)if(e)return!0;return!1}function Wo(n,t){K(t,!0);let e=y(t,"preventScroll",3,!0),r=y(t,"restoreScrollDelay",3,null);e()&&new Dl(e(),()=>r()),V()}const qi=Li({component:"avatar",parts:["root","image","fallback"]}),Gi=new Ht("Avatar.Root");var Sn;const go=class go{constructor(t){A(this,"opts");A(this,"domContext");A(this,"attachment");p(this,Sn,O(()=>({id:this.opts.id.current,[qi.root]:"","data-status":this.opts.loadingStatus.current,...this.attachment})));this.opts=t,this.domContext=new jr(this.opts.ref),this.loadImage=this.loadImage.bind(this),this.attachment=St(this.opts.ref)}static create(t){return Gi.set(new go(t))}loadImage(t,e,r){if(this.opts.loadingStatus.current==="loaded")return;let i;const o=new Image;return o.src=t,e!==void 0&&(o.crossOrigin=e),r&&(o.referrerPolicy=r),this.opts.loadingStatus.current="loading",o.onload=()=>{i=this.domContext.setTimeout(()=>{this.opts.loadingStatus.current="loaded"},this.opts.delayMs.current)},o.onerror=()=>{this.opts.loadingStatus.current="error"},()=>{i&&this.domContext.clearTimeout(i)}}get props(){return g(s(this,Sn))}set props(t){P(s(this,Sn),t)}};Sn=new WeakMap;let Ei=go;var An;const mo=class mo{constructor(t,e){A(this,"opts");A(this,"root");A(this,"attachment");p(this,An,O(()=>({id:this.opts.id.current,style:{display:this.root.opts.loadingStatus.current==="loaded"?"block":"none"},"data-status":this.root.opts.loadingStatus.current,[qi.image]:"",src:this.opts.src.current,crossorigin:this.opts.crossOrigin.current,referrerpolicy:this.opts.referrerPolicy.current,...this.attachment})));this.opts=t,this.root=e,this.attachment=St(this.opts.ref),ut.pre([()=>this.opts.src.current,()=>this.opts.crossOrigin.current],([r,i])=>{if(!r){this.root.opts.loadingStatus.current="error";return}this.root.loadImage(r,i,this.opts.referrerPolicy.current)})}static create(t){return new mo(t,Gi.get())}get props(){return g(s(this,An))}set props(t){P(s(this,An),t)}};An=new WeakMap;let Ti=mo;var On,Pn;const po=class po{constructor(t,e){A(this,"opts");A(this,"root");A(this,"attachment");p(this,On,O(()=>this.root.opts.loadingStatus.current==="loaded"?{display:"none"}:void 0));p(this,Pn,O(()=>({style:this.style,"data-status":this.root.opts.loadingStatus.current,[qi.fallback]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=St(this.opts.ref)}static create(t){return new po(t,Gi.get())}get style(){return g(s(this,On))}set style(t){P(s(this,On),t)}get props(){return g(s(this,Pn))}set props(t){P(s(this,Pn),t)}};On=new WeakMap,Pn=new WeakMap;let ki=po;var Il=ot("<div><!></div>");function Nl(n,t){const e=ne();K(t,!0);let r=y(t,"delayMs",3,0),i=y(t,"loadingStatus",15,"loading"),o=y(t,"id",19,()=>re(e)),a=y(t,"ref",15,null),c=j(t,["$$slots","$$events","$$legacy","delayMs","loadingStatus","onLoadingStatusChange","child","children","id","ref"]);const l=Ei.create({delayMs:x(()=>r()),loadingStatus:x(()=>i(),v=>{var b;i()!==v&&(i(v),(b=t.onLoadingStatusChange)==null||b.call(t,v))}),id:x(()=>o()),ref:x(()=>a(),v=>a(v))}),u=O(()=>vt(c,l.props));var f=R(),d=k(f);{var h=v=>{var b=R(),S=k(b);H(S,()=>t.child,()=>({props:g(u)})),E(v,b)},m=v=>{var b=Il();pt(b,()=>({...g(u)}));var S=ht(b);H(S,()=>t.children??J),gt(b),E(v,b)};it(d,v=>{t.child?v(h):v(m,!1)})}E(n,f),V()}var Bl=ot("<img/>");function Ll(n,t){const e=ne();K(t,!0);let r=y(t,"id",19,()=>re(e)),i=y(t,"ref",15,null),o=y(t,"crossorigin",3,void 0),a=y(t,"referrerpolicy",3,void 0),c=j(t,["$$slots","$$events","$$legacy","src","child","id","ref","crossorigin","referrerpolicy"]);const l=Ti.create({src:x(()=>t.src),id:x(()=>r()),ref:x(()=>i(),v=>i(v)),crossOrigin:x(()=>o()),referrerPolicy:x(()=>a())}),u=O(()=>vt(c,l.props));var f=R(),d=k(f);{var h=v=>{var b=R(),S=k(b);H(S,()=>t.child,()=>({props:g(u)})),E(v,b)},m=v=>{var b=Bl();pt(b,()=>({...g(u),src:t.src})),Ma(b),E(v,b)};it(d,v=>{t.child?v(h):v(m,!1)})}E(n,f),V()}var Wl=ot("<span><!></span>");function zl(n,t){const e=ne();K(t,!0);let r=y(t,"id",19,()=>re(e)),i=y(t,"ref",15,null),o=j(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const a=ki.create({id:x(()=>r()),ref:x(()=>i(),h=>i(h))}),c=O(()=>vt(o,a.props));var l=R(),u=k(l);{var f=h=>{var m=R(),v=k(m);H(v,()=>t.child,()=>({props:g(c)})),E(h,m)},d=h=>{var m=Wl();pt(m,()=>({...g(c)}));var v=ht(m);H(v,()=>t.children??J),gt(m),E(h,m)};it(u,h=>{t.child?h(f):h(d,!1)})}E(n,l),V()}var Kl=ot("<input/>"),Vl=ot("<input/>");function Hl(n,t){K(t,!0);let e=y(t,"value",15),r=j(t,["$$slots","$$events","$$legacy","value"]);const i=O(()=>vt(r,{"aria-hidden":"true",tabindex:-1,style:rc}));var o=R(),a=k(o);{var c=u=>{var f=Kl();pt(f,()=>({...g(i),value:e()}),void 0,void 0,void 0,void 0,!0),E(u,f)},l=u=>{var f=Vl();pt(f,()=>({...g(i)}),void 0,void 0,void 0,void 0,!0),Ha(f,e),E(u,f)};it(a,u=>{g(i).type==="checkbox"?u(c):u(l,!1)})}E(n,o),V()}const Ul=["top","right","bottom","left"],$t=Math.min,mt=Math.max,wr=Math.round,cr=Math.floor,kt=n=>({x:n,y:n}),ql={left:"right",right:"left",bottom:"top",top:"bottom"},Gl={start:"end",end:"start"};function Fi(n,t,e){return mt(n,$t(t,e))}function Kt(n,t){return typeof n=="function"?n(t):n}function Vt(n){return n.split("-")[0]}function We(n){return n.split("-")[1]}function Yi(n){return n==="x"?"y":"x"}function Xi(n){return n==="y"?"height":"width"}const Yl=new Set(["top","bottom"]);function Tt(n){return Yl.has(Vt(n))?"y":"x"}function ji(n){return Yi(Tt(n))}function Xl(n,t,e){e===void 0&&(e=!1);const r=We(n),i=ji(n),o=Xi(i);let a=i==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=xr(a)),[a,xr(a)]}function jl(n){const t=xr(n);return[Mi(n),t,Mi(t)]}function Mi(n){return n.replace(/start|end/g,t=>Gl[t])}const zo=["left","right"],Ko=["right","left"],Zl=["top","bottom"],Jl=["bottom","top"];function Ql(n,t,e){switch(n){case"top":case"bottom":return e?t?Ko:zo:t?zo:Ko;case"left":case"right":return t?Zl:Jl;default:return[]}}function $l(n,t,e,r){const i=We(n);let o=Ql(Vt(n),e==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Mi)))),o}function xr(n){return n.replace(/left|right|bottom|top/g,t=>ql[t])}function tu(n){return{top:0,right:0,bottom:0,left:0,...n}}function Hs(n){return typeof n!="number"?tu(n):{top:n,right:n,bottom:n,left:n}}function Sr(n){const{x:t,y:e,width:r,height:i}=n;return{width:r,height:i,top:e,left:t,right:t+r,bottom:e+i,x:t,y:e}}function Vo(n,t,e){let{reference:r,floating:i}=n;const o=Tt(t),a=ji(t),c=Xi(a),l=Vt(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[c]/2-i[c]/2;let m;switch(l){case"top":m={x:f,y:r.y-i.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(We(t)){case"start":m[a]-=h*(e&&u?-1:1);break;case"end":m[a]+=h*(e&&u?-1:1);break}return m}async function eu(n,t){var e;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:c,strategy:l}=n,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Kt(t,n),v=Hs(m),S=c[h?d==="floating"?"reference":"floating":d],C=Sr(await o.getClippingRect({element:(e=await(o.isElement==null?void 0:o.isElement(S)))==null||e?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),T=d==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,M=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),w=await(o.isElement==null?void 0:o.isElement(M))?await(o.getScale==null?void 0:o.getScale(M))||{x:1,y:1}:{x:1,y:1},_=Sr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:M,strategy:l}):T);return{top:(C.top-_.top+v.top)/w.y,bottom:(_.bottom-C.bottom+v.bottom)/w.y,left:(C.left-_.left+v.left)/w.x,right:(_.right-C.right+v.right)/w.x}}const nu=async(n,t,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=e,c=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:n,floating:t,strategy:i}),{x:f,y:d}=Vo(u,r,l),h=r,m={},v=0;for(let S=0;S<c.length;S++){var b;const{name:C,fn:T}=c[S],{x:M,y:w,data:_,reset:I}=await T({x:f,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:u,platform:{...a,detectOverflow:(b=a.detectOverflow)!=null?b:eu},elements:{reference:n,floating:t}});f=M??f,d=w??d,m={...m,[C]:{...m[C],..._}},I&&v<=50&&(v++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:n,floating:t,strategy:i}):I.rects),{x:f,y:d}=Vo(u,h,l)),S=-1)}return{x:f,y:d,placement:h,strategy:i,middlewareData:m}},ru=n=>({name:"arrow",options:n,async fn(t){const{x:e,y:r,placement:i,rects:o,platform:a,elements:c,middlewareData:l}=t,{element:u,padding:f=0}=Kt(n,t)||{};if(u==null)return{};const d=Hs(f),h={x:e,y:r},m=ji(i),v=Xi(m),b=await a.getDimensions(u),S=m==="y",C=S?"top":"left",T=S?"bottom":"right",M=S?"clientHeight":"clientWidth",w=o.reference[v]+o.reference[m]-h[m]-o.floating[v],_=h[m]-o.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let D=I?I[M]:0;(!D||!await(a.isElement==null?void 0:a.isElement(I)))&&(D=c.floating[M]||o.floating[v]);const tt=w/2-_/2,W=D/2-b[v]/2-1,z=$t(d[C],W),Z=$t(d[T],W),X=z,et=D-b[v]-Z,Y=D/2-b[v]/2+tt,N=Fi(X,Y,et),L=!l.arrow&&We(i)!=null&&Y!==N&&o.reference[v]/2-(Y<X?z:Z)-b[v]/2<0,U=L?Y<X?Y-X:Y-et:0;return{[m]:h[m]+U,data:{[m]:N,centerOffset:Y-N-U,...L&&{alignmentOffset:U}},reset:L}}}),iu=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:c,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...S}=Kt(n,t);if((e=o.arrow)!=null&&e.alignmentOffset)return{};const C=Vt(i),T=Tt(c),M=Vt(c)===c,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=h||(M||!b?[xr(c)]:jl(c)),I=v!=="none";!h&&I&&_.push(...$l(c,b,v,w));const D=[c,..._],tt=await l.detectOverflow(t,S),W=[];let z=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&W.push(tt[C]),d){const Y=Xl(i,a,w);W.push(tt[Y[0]],tt[Y[1]])}if(z=[...z,{placement:i,overflows:W}],!W.every(Y=>Y<=0)){var Z,X;const Y=(((Z=o.flip)==null?void 0:Z.index)||0)+1,N=D[Y];if(N&&(!(d==="alignment"?T!==Tt(N):!1)||z.every(G=>Tt(G.placement)===T?G.overflows[0]>0:!0)))return{data:{index:Y,overflows:z},reset:{placement:N}};let L=(X=z.filter(U=>U.overflows[0]<=0).sort((U,G)=>U.overflows[1]-G.overflows[1])[0])==null?void 0:X.placement;if(!L)switch(m){case"bestFit":{var et;const U=(et=z.filter(G=>{if(I){const bt=Tt(G.placement);return bt===T||bt==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(bt=>bt>0).reduce((bt,ti)=>bt+ti,0)]).sort((G,bt)=>G[1]-bt[1])[0])==null?void 0:et[0];U&&(L=U);break}case"initialPlacement":L=c;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function Ho(n,t){return{top:n.top-t.height,right:n.right-t.width,bottom:n.bottom-t.height,left:n.left-t.width}}function Uo(n){return Ul.some(t=>n[t]>=0)}const ou=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(t){const{rects:e,platform:r}=t,{strategy:i="referenceHidden",...o}=Kt(n,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...o,elementContext:"reference"}),c=Ho(a,e.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Uo(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...o,altBoundary:!0}),c=Ho(a,e.floating);return{data:{escapedOffsets:c,escaped:Uo(c)}}}default:return{}}}}},Us=new Set(["left","top"]);async function su(n,t){const{placement:e,platform:r,elements:i}=n,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Vt(e),c=We(e),l=Tt(e)==="y",u=Us.has(a)?-1:1,f=o&&l?-1:1,d=Kt(t,n);let{mainAxis:h,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof v=="number"&&(m=c==="end"?v*-1:v),l?{x:m*f,y:h*u}:{x:h*u,y:m*f}}const au=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,r;const{x:i,y:o,placement:a,middlewareData:c}=t,l=await su(t,n);return a===((e=c.offset)==null?void 0:e.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},cu=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:e,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:l={fn:C=>{let{x:T,y:M}=C;return{x:T,y:M}}},...u}=Kt(n,t),f={x:e,y:r},d=await o.detectOverflow(t,u),h=Tt(Vt(i)),m=Yi(h);let v=f[m],b=f[h];if(a){const C=m==="y"?"top":"left",T=m==="y"?"bottom":"right",M=v+d[C],w=v-d[T];v=Fi(M,v,w)}if(c){const C=h==="y"?"top":"left",T=h==="y"?"bottom":"right",M=b+d[C],w=b-d[T];b=Fi(M,b,w)}const S=l.fn({...t,[m]:v,[h]:b});return{...S,data:{x:S.x-e,y:S.y-r,enabled:{[m]:a,[h]:c}}}}}},lu=function(n){return n===void 0&&(n={}),{options:n,fn(t){const{x:e,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:c=0,mainAxis:l=!0,crossAxis:u=!0}=Kt(n,t),f={x:e,y:r},d=Tt(i),h=Yi(d);let m=f[h],v=f[d];const b=Kt(c,t),S=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const M=h==="y"?"height":"width",w=o.reference[h]-o.floating[M]+S.mainAxis,_=o.reference[h]+o.reference[M]-S.mainAxis;m<w?m=w:m>_&&(m=_)}if(u){var C,T;const M=h==="y"?"width":"height",w=Us.has(Vt(i)),_=o.reference[d]-o.floating[M]+(w&&((C=a.offset)==null?void 0:C[d])||0)+(w?0:S.crossAxis),I=o.reference[d]+o.reference[M]+(w?0:((T=a.offset)==null?void 0:T[d])||0)-(w?S.crossAxis:0);v<_?v=_:v>I&&(v=I)}return{[h]:m,[d]:v}}}},uu=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){var e,r;const{placement:i,rects:o,platform:a,elements:c}=t,{apply:l=()=>{},...u}=Kt(n,t),f=await a.detectOverflow(t,u),d=Vt(i),h=We(i),m=Tt(i)==="y",{width:v,height:b}=o.floating;let S,C;d==="top"||d==="bottom"?(S=d,C=h===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(C=d,S=h==="end"?"top":"bottom");const T=b-f.top-f.bottom,M=v-f.left-f.right,w=$t(b-f[S],T),_=$t(v-f[C],M),I=!t.middlewareData.shift;let D=w,tt=_;if((e=t.middlewareData.shift)!=null&&e.enabled.x&&(tt=M),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=T),I&&!h){const z=mt(f.left,0),Z=mt(f.right,0),X=mt(f.top,0),et=mt(f.bottom,0);m?tt=v-2*(z!==0||Z!==0?z+Z:mt(f.left,f.right)):D=b-2*(X!==0||et!==0?X+et:mt(f.top,f.bottom))}await l({...t,availableWidth:tt,availableHeight:D});const W=await a.getDimensions(c.floating);return v!==W.width||b!==W.height?{reset:{rects:!0}}:{}}}};function Zr(){return typeof window<"u"}function ze(n){return qs(n)?(n.nodeName||"").toLowerCase():"#document"}function yt(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function Mt(n){var t;return(t=(qs(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function qs(n){return Zr()?n instanceof Node||n instanceof yt(n).Node:!1}function At(n){return Zr()?n instanceof Element||n instanceof yt(n).Element:!1}function Ft(n){return Zr()?n instanceof HTMLElement||n instanceof yt(n).HTMLElement:!1}function qo(n){return!Zr()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof yt(n).ShadowRoot}const du=new Set(["inline","contents"]);function ir(n){const{overflow:t,overflowX:e,overflowY:r,display:i}=Ot(n);return/auto|scroll|overlay|hidden|clip/.test(t+r+e)&&!du.has(i)}const fu=new Set(["table","td","th"]);function hu(n){return fu.has(ze(n))}const gu=[":popover-open",":modal"];function Jr(n){return gu.some(t=>{try{return n.matches(t)}catch{return!1}})}const mu=["transform","translate","scale","rotate","perspective"],pu=["transform","translate","scale","rotate","perspective","filter"],vu=["paint","layout","strict","content"];function Zi(n){const t=Ji(),e=At(n)?Ot(n):n;return mu.some(r=>e[r]?e[r]!=="none":!1)||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||pu.some(r=>(e.willChange||"").includes(r))||vu.some(r=>(e.contain||"").includes(r))}function yu(n){let t=te(n);for(;Ft(t)&&!Be(t);){if(Zi(t))return t;if(Jr(t))return null;t=te(t)}return null}function Ji(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bu=new Set(["html","body","#document"]);function Be(n){return bu.has(ze(n))}function Ot(n){return yt(n).getComputedStyle(n)}function Qr(n){return At(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function te(n){if(ze(n)==="html")return n;const t=n.assignedSlot||n.parentNode||qo(n)&&n.host||Mt(n);return qo(t)?t.host:t}function Gs(n){const t=te(n);return Be(t)?n.ownerDocument?n.ownerDocument.body:n.body:Ft(t)&&ir(t)?t:Gs(t)}function Xe(n,t,e){var r;t===void 0&&(t=[]),e===void 0&&(e=!0);const i=Gs(n),o=i===((r=n.ownerDocument)==null?void 0:r.body),a=yt(i);if(o){const c=Ri(a);return t.concat(a,a.visualViewport||[],ir(i)?i:[],c&&e?Xe(c):[])}return t.concat(i,Xe(i,[],e))}function Ri(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ys(n){const t=Ot(n);let e=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ft(n),o=i?n.offsetWidth:e,a=i?n.offsetHeight:r,c=wr(e)!==o||wr(r)!==a;return c&&(e=o,r=a),{width:e,height:r,$:c}}function Qi(n){return At(n)?n:n.contextElement}function Se(n){const t=Qi(n);if(!Ft(t))return kt(1);const e=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ys(t);let a=(o?wr(e.width):e.width)/r,c=(o?wr(e.height):e.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const wu=kt(0);function Xs(n){const t=yt(n);return!Ji()||!t.visualViewport?wu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xu(n,t,e){return t===void 0&&(t=!1),!e||t&&e!==yt(n)?!1:t}function ye(n,t,e,r){t===void 0&&(t=!1),e===void 0&&(e=!1);const i=n.getBoundingClientRect(),o=Qi(n);let a=kt(1);t&&(r?At(r)&&(a=Se(r)):a=Se(n));const c=xu(o,e,r)?Xs(o):kt(0);let l=(i.left+c.x)/a.x,u=(i.top+c.y)/a.y,f=i.width/a.x,d=i.height/a.y;if(o){const h=yt(o),m=r&&At(r)?yt(r):r;let v=h,b=Ri(v);for(;b&&r&&m!==v;){const S=Se(b),C=b.getBoundingClientRect(),T=Ot(b),M=C.left+(b.clientLeft+parseFloat(T.paddingLeft))*S.x,w=C.top+(b.clientTop+parseFloat(T.paddingTop))*S.y;l*=S.x,u*=S.y,f*=S.x,d*=S.y,l+=M,u+=w,v=yt(b),b=Ri(v)}}return Sr({width:f,height:d,x:l,y:u})}function $r(n,t){const e=Qr(n).scrollLeft;return t?t.left+e:ye(Mt(n)).left+e}function js(n,t){const e=n.getBoundingClientRect(),r=e.left+t.scrollLeft-$r(n,e),i=e.top+t.scrollTop;return{x:r,y:i}}function Su(n){let{elements:t,rect:e,offsetParent:r,strategy:i}=n;const o=i==="fixed",a=Mt(r),c=t?Jr(t.floating):!1;if(r===a||c&&o)return e;let l={scrollLeft:0,scrollTop:0},u=kt(1);const f=kt(0),d=Ft(r);if((d||!d&&!o)&&((ze(r)!=="body"||ir(a))&&(l=Qr(r)),Ft(r))){const m=ye(r);u=Se(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const h=a&&!d&&!o?js(a,l):kt(0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:e.y*u.y-l.scrollTop*u.y+f.y+h.y}}function Au(n){return Array.from(n.getClientRects())}function Ou(n){const t=Mt(n),e=Qr(n),r=n.ownerDocument.body,i=mt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=mt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+$r(n);const c=-e.scrollTop;return Ot(r).direction==="rtl"&&(a+=mt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:c}}const Go=25;function Pu(n,t){const e=yt(n),r=Mt(n),i=e.visualViewport;let o=r.clientWidth,a=r.clientHeight,c=0,l=0;if(i){o=i.width,a=i.height;const f=Ji();(!f||f&&t==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}const u=$r(r);if(u<=0){const f=r.ownerDocument,d=f.body,h=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-d.clientWidth-m);v<=Go&&(o-=v)}else u<=Go&&(o+=u);return{width:o,height:a,x:c,y:l}}const Cu=new Set(["absolute","fixed"]);function Eu(n,t){const e=ye(n,!0,t==="fixed"),r=e.top+n.clientTop,i=e.left+n.clientLeft,o=Ft(n)?Se(n):kt(1),a=n.clientWidth*o.x,c=n.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:c,x:l,y:u}}function Yo(n,t,e){let r;if(t==="viewport")r=Pu(n,e);else if(t==="document")r=Ou(Mt(n));else if(At(t))r=Eu(t,e);else{const i=Xs(n);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Sr(r)}function Zs(n,t){const e=te(n);return e===t||!At(e)||Be(e)?!1:Ot(e).position==="fixed"||Zs(e,t)}function Tu(n,t){const e=t.get(n);if(e)return e;let r=Xe(n,[],!1).filter(c=>At(c)&&ze(c)!=="body"),i=null;const o=Ot(n).position==="fixed";let a=o?te(n):n;for(;At(a)&&!Be(a);){const c=Ot(a),l=Zi(a);!l&&c.position==="fixed"&&(i=null),(o?!l&&!i:!l&&c.position==="static"&&!!i&&Cu.has(i.position)||ir(a)&&!l&&Zs(n,a))?r=r.filter(f=>f!==a):i=c,a=te(a)}return t.set(n,r),r}function ku(n){let{element:t,boundary:e,rootBoundary:r,strategy:i}=n;const a=[...e==="clippingAncestors"?Jr(t)?[]:Tu(t,this._c):[].concat(e),r],c=a[0],l=a.reduce((u,f)=>{const d=Yo(t,f,i);return u.top=mt(d.top,u.top),u.right=$t(d.right,u.right),u.bottom=$t(d.bottom,u.bottom),u.left=mt(d.left,u.left),u},Yo(t,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Fu(n){const{width:t,height:e}=Ys(n);return{width:t,height:e}}function Mu(n,t,e){const r=Ft(t),i=Mt(t),o=e==="fixed",a=ye(n,!0,o,t);let c={scrollLeft:0,scrollTop:0};const l=kt(0);function u(){l.x=$r(i)}if(r||!r&&!o)if((ze(t)!=="body"||ir(i))&&(c=Qr(t)),r){const m=ye(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?js(i,c):kt(0),d=a.left+c.scrollLeft-l.x-f.x,h=a.top+c.scrollTop-l.y-f.y;return{x:d,y:h,width:a.width,height:a.height}}function ri(n){return Ot(n).position==="static"}function Xo(n,t){if(!Ft(n)||Ot(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return Mt(n)===e&&(e=e.ownerDocument.body),e}function Js(n,t){const e=yt(n);if(Jr(n))return e;if(!Ft(n)){let i=te(n);for(;i&&!Be(i);){if(At(i)&&!ri(i))return i;i=te(i)}return e}let r=Xo(n,t);for(;r&&hu(r)&&ri(r);)r=Xo(r,t);return r&&Be(r)&&ri(r)&&!Zi(r)?e:r||yu(n)||e}const Ru=async function(n){const t=this.getOffsetParent||Js,e=this.getDimensions,r=await e(n.floating);return{reference:Mu(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function _u(n){return Ot(n).direction==="rtl"}const Du={convertOffsetParentRelativeRectToViewportRelativeRect:Su,getDocumentElement:Mt,getClippingRect:ku,getOffsetParent:Js,getElementRects:Ru,getClientRects:Au,getDimensions:Fu,getScale:Se,isElement:At,isRTL:_u};function Qs(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function Iu(n,t){let e=null,r;const i=Mt(n);function o(){var c;clearTimeout(r),(c=e)==null||c.disconnect(),e=null}function a(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),o();const u=n.getBoundingClientRect(),{left:f,top:d,width:h,height:m}=u;if(c||t(),!h||!m)return;const v=cr(d),b=cr(i.clientWidth-(f+h)),S=cr(i.clientHeight-(d+m)),C=cr(f),M={rootMargin:-v+"px "+-b+"px "+-S+"px "+-C+"px",threshold:mt(0,$t(1,l))||1};let w=!0;function _(I){const D=I[0].intersectionRatio;if(D!==l){if(!w)return a();D?a(!1,D):r=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Qs(u,n.getBoundingClientRect())&&a(),w=!1}try{e=new IntersectionObserver(_,{...M,root:i.ownerDocument})}catch{e=new IntersectionObserver(_,M)}e.observe(n)}return a(!0),o}function Nu(n,t,e,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qi(n),f=i||o?[...u?Xe(u):[],...Xe(t)]:[];f.forEach(C=>{i&&C.addEventListener("scroll",e,{passive:!0}),o&&C.addEventListener("resize",e)});const d=u&&c?Iu(u,e):null;let h=-1,m=null;a&&(m=new ResizeObserver(C=>{let[T]=C;T&&T.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var M;(M=m)==null||M.observe(t)})),e()}),u&&!l&&m.observe(u),m.observe(t));let v,b=l?ye(n):null;l&&S();function S(){const C=ye(n);b&&!Qs(b,C)&&e(),b=C,v=requestAnimationFrame(S)}return e(),()=>{var C;f.forEach(T=>{i&&T.removeEventListener("scroll",e),o&&T.removeEventListener("resize",e)}),d==null||d(),(C=m)==null||C.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const Bu=au,Lu=cu,Wu=iu,zu=uu,Ku=ou,Vu=ru,Hu=lu,Uu=(n,t,e)=>{const r=new Map,i={platform:Du,...e},o={...i.platform,_c:r};return nu(n,t,{...i,platform:o})};function oe(n){return typeof n=="function"?n():n}function $s(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function jo(n,t){const e=$s(n);return Math.round(t*e)/e}function Zo(n){return{[`--bits-${n}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${n}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${n}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${n}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${n}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function qu(n){const t=n.whileElementsMounted,e=O(()=>oe(n.open)??!0),r=O(()=>oe(n.middleware)),i=O(()=>oe(n.transform)??!0),o=O(()=>oe(n.placement)??"bottom"),a=O(()=>oe(n.strategy)??"absolute"),c=O(()=>oe(n.sideOffset)??0),l=O(()=>oe(n.alignOffset)??0),u=n.reference;let f=q(0),d=q(0);const h=Wt(null);let m=q(we(g(a))),v=q(we(g(o))),b=q(we({})),S=q(!1),C=!1;const T=O(()=>{const W=h.current?jo(h.current,g(f)):g(f),z=h.current?jo(h.current,g(d)):g(d);return g(i)?{position:g(m),left:"0",top:"0",transform:`translate(${W}px, ${z}px)`,...h.current&&$s(h.current)>=1.5&&{willChange:"transform"}}:{position:g(m),left:`${W}px`,top:`${z}px`}});let M;function w(){u.current===null||h.current===null||Uu(u.current,h.current,{middleware:g(r),placement:g(o),strategy:g(a)}).then(W=>{if(!g(e)&&g(f)!==0&&g(d)!==0){const z=Math.max(Math.abs(g(c)),Math.abs(g(l)),15);if(W.x<=z&&W.y<=z)return}P(f,W.x,!0),P(d,W.y,!0),P(m,W.strategy,!0),P(v,W.placement,!0),P(b,W.middlewareData,!0),P(S,!0)})}function _(){typeof M=="function"&&(M(),M=void 0)}function I(){if(_(),t===void 0){w();return}g(e)&&(u.current===null||h.current===null||(M=t(u.current,h.current,w)))}function D(){g(e)||P(S,!1)}function tt(){return[g(r),g(o),g(a),g(c),g(l),g(e)]}return rt(()=>{t===void 0&&g(e)&&w()}),rt(I),rt(()=>{if(t!==void 0){if(tt(),!g(e)){C=!1;return}if(!g(S)){C=!1;return}if(!C){C=!0;return}w()}}),rt(D),rt(()=>_),{floating:h,reference:u,get strategy(){return g(m)},get placement(){return g(v)},get middlewareData(){return g(b)},get isPositioned(){return g(S)},get floatingStyles(){return g(T)},get update(){return w}}}const Gu={top:"bottom",right:"left",bottom:"top",left:"right"},$i=new Ht("Floating.Root"),Jo=new Ht("Floating.Content"),to=new Ht("Floating.Root");class Ar{constructor(){A(this,"anchorNode",Wt(null));A(this,"customAnchorNode",Wt(null));A(this,"triggerNode",Wt(null));rt(()=>{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})}static create(t=!1){return t?to.set(new Ar):$i.set(new Ar)}}var Cn,En,Tn,qr,kn,Gr,Fn,Mn,Rn,_n,Dn,In,Nn,Bn,Ln,Wn,zn,Kn,Vn,Hn,Un,qn,Gn,Yn;const Yr=class Yr{constructor(t,e){A(this,"opts");A(this,"root");A(this,"contentRef",Wt(null));A(this,"wrapperRef",Wt(null));A(this,"arrowRef",Wt(null));A(this,"contentAttachment",St(this.contentRef));A(this,"wrapperAttachment",St(this.wrapperRef));A(this,"arrowAttachment",St(this.arrowRef));A(this,"arrowId",Wt(Ui()));p(this,Cn,O(()=>{if(typeof this.opts.style=="string")return Ua(this.opts.style);if(!this.opts.style)return{}}));p(this,En);p(this,Tn,new lc(()=>this.arrowRef.current??void 0));p(this,qr,O(()=>{var t;return((t=s(this,Tn))==null?void 0:t.width)??0}));p(this,kn,O(()=>{var t;return((t=s(this,Tn))==null?void 0:t.height)??0}));p(this,Gr,O(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));p(this,Fn,O(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));p(this,Mn,O(()=>g(s(this,Fn)).length>0));p(this,Rn,O(()=>({padding:this.opts.collisionPadding.current,boundary:g(s(this,Fn)).filter(Ec),altBoundary:this.hasExplicitBoundaries})));p(this,_n,q(void 0));p(this,Dn,q(void 0));p(this,In,q(void 0));p(this,Nn,q(void 0));p(this,Bn,O(()=>[Bu({mainAxis:this.opts.sideOffset.current+g(s(this,kn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Lu({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Hu():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Wu({...this.detectOverflowOptions}),zu({...this.detectOverflowOptions,apply:({rects:t,availableWidth:e,availableHeight:r})=>{const{width:i,height:o}=t.reference;P(s(this,_n),e,!0),P(s(this,Dn),r,!0),P(s(this,In),i,!0),P(s(this,Nn),o,!0)}}),this.arrowRef.current&&Vu({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Yu({arrowWidth:g(s(this,qr)),arrowHeight:g(s(this,kn))}),this.opts.hideWhenDetached.current&&Ku({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));A(this,"floating");p(this,Ln,O(()=>Xu(this.floating.placement)));p(this,Wn,O(()=>ju(this.floating.placement)));p(this,zn,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));p(this,Kn,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));p(this,Vn,O(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));p(this,Hn,q());p(this,Un,O(()=>Gu[this.placedSide]));p(this,qn,O(()=>{var t,e,r;return{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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.y}`,"--bits-floating-available-width":`${g(s(this,_n))}px`,"--bits-floating-available-height":`${g(s(this,Dn))}px`,"--bits-floating-anchor-width":`${g(s(this,In))}px`,"--bits-floating-anchor-height":`${g(s(this,Nn))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...g(s(this,Cn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));p(this,Gn,O(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:is({...g(s(this,Cn))}),...this.contentAttachment})));p(this,Yn,O(()=>({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})));this.opts=t,this.root=e,F(this,En,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),ut(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=qu({strategy:()=>this.opts.strategy.current,placement:()=>g(s(this,Gr)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var o;return Nu(...r,{animationFrame:((o=s(this,En))==null?void 0:o.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),ut(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Wi(r),o=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(o)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,e=!1){return e?Jo.set(new Yr(t,to.get())):Jo.set(new Yr(t,$i.get()))}get hasExplicitBoundaries(){return g(s(this,Mn))}set hasExplicitBoundaries(t){P(s(this,Mn),t)}get detectOverflowOptions(){return g(s(this,Rn))}set detectOverflowOptions(t){P(s(this,Rn),t)}get middleware(){return g(s(this,Bn))}set middleware(t){P(s(this,Bn),t)}get placedSide(){return g(s(this,Ln))}set placedSide(t){P(s(this,Ln),t)}get placedAlign(){return g(s(this,Wn))}set placedAlign(t){P(s(this,Wn),t)}get arrowX(){return g(s(this,zn))}set arrowX(t){P(s(this,zn),t)}get arrowY(){return g(s(this,Kn))}set arrowY(t){P(s(this,Kn),t)}get cannotCenterArrow(){return g(s(this,Vn))}set cannotCenterArrow(t){P(s(this,Vn),t)}get contentZIndex(){return g(s(this,Hn))}set contentZIndex(t){P(s(this,Hn),t,!0)}get arrowBaseSide(){return g(s(this,Un))}set arrowBaseSide(t){P(s(this,Un),t)}get wrapperProps(){return g(s(this,qn))}set wrapperProps(t){P(s(this,qn),t)}get props(){return g(s(this,Gn))}set props(t){P(s(this,Gn),t)}get arrowStyle(){return g(s(this,Yn))}set arrowStyle(t){P(s(this,Yn),t)}};Cn=new WeakMap,En=new WeakMap,Tn=new WeakMap,qr=new WeakMap,kn=new WeakMap,Gr=new WeakMap,Fn=new WeakMap,Mn=new WeakMap,Rn=new WeakMap,_n=new WeakMap,Dn=new WeakMap,In=new WeakMap,Nn=new WeakMap,Bn=new WeakMap,Ln=new WeakMap,Wn=new WeakMap,zn=new WeakMap,Kn=new WeakMap,Vn=new WeakMap,Hn=new WeakMap,Un=new WeakMap,qn=new WeakMap,Gn=new WeakMap,Yn=new WeakMap;let _i=Yr;class Or{constructor(t,e){A(this,"opts");A(this,"root");this.opts=t,this.root=e,t.virtualEl&&t.virtualEl.current?e.triggerNode=rs(t.virtualEl.current):e.triggerNode=t.ref}static create(t,e=!1){return e?new Or(t,to.get()):new Or(t,$i.get())}}function Yu(n){return{name:"transformOrigin",options:n,fn(t){var S,C,T;const{placement:e,rects:r,middlewareData:i}=t,a=((S=i.arrow)==null?void 0:S.centerOffset)!==0,c=a?0:n.arrowWidth,l=a?0:n.arrowHeight,[u,f]=eo(e),d={start:"0%",center:"50%",end:"100%"}[f],h=(((C=i.arrow)==null?void 0:C.x)??0)+c/2,m=(((T=i.arrow)==null?void 0:T.y)??0)+l/2;let v="",b="";return u==="bottom"?(v=a?d:`${h}px`,b=`${-l}px`):u==="top"?(v=a?d:`${h}px`,b=`${r.floating.height+l}px`):u==="right"?(v=`${-l}px`,b=a?d:`${m}px`):u==="left"&&(v=`${r.floating.width+l}px`,b=a?d:`${m}px`),{data:{x:v,y:b}}}}}function eo(n){const[t,e="center"]=n.split("-");return[t,e]}function Xu(n){return eo(n)[0]}function ju(n){return eo(n)[1]}function Zu(n,t){K(t,!0);let e=y(t,"tooltip",3,!1);Ar.create(e());var r=R(),i=k(r);H(i,()=>t.children??J),E(n,r),V()}function Ju(n,t){K(t,!0);let e=y(t,"tooltip",3,!1);Or.create({id:x(()=>t.id),virtualEl:x(()=>t.virtualEl),ref:t.ref},e());var r=R(),i=k(r);H(i,()=>t.children??J),E(n,r),V()}function Qu(n,t){K(t,!0);let e=y(t,"side",3,"bottom"),r=y(t,"sideOffset",3,0),i=y(t,"align",3,"center"),o=y(t,"alignOffset",3,0),a=y(t,"arrowPadding",3,0),c=y(t,"avoidCollisions",3,!0),l=y(t,"collisionBoundary",19,()=>[]),u=y(t,"collisionPadding",3,0),f=y(t,"hideWhenDetached",3,!1),d=y(t,"onPlaced",3,()=>{}),h=y(t,"sticky",3,"partial"),m=y(t,"updatePositionStrategy",3,"optimized"),v=y(t,"strategy",3,"fixed"),b=y(t,"dir",3,"ltr"),S=y(t,"style",19,()=>({})),C=y(t,"wrapperId",19,Ui),T=y(t,"customAnchor",3,null),M=y(t,"tooltip",3,!1);const w=_i.create({side:x(()=>e()),sideOffset:x(()=>r()),align:x(()=>i()),alignOffset:x(()=>o()),id:x(()=>t.id),arrowPadding:x(()=>a()),avoidCollisions:x(()=>c()),collisionBoundary:x(()=>l()),collisionPadding:x(()=>u()),hideWhenDetached:x(()=>f()),onPlaced:x(()=>d()),sticky:x(()=>h()),updatePositionStrategy:x(()=>m()),strategy:x(()=>v()),dir:x(()=>b()),style:x(()=>S()),enabled:x(()=>t.enabled),wrapperId:x(()=>C()),customAnchor:x(()=>T())},M()),_=O(()=>vt(w.wrapperProps,{style:{pointerEvents:"auto"}}));var I=R(),D=k(I);H(D,()=>t.content??J,()=>({props:w.props,wrapperProps:g(_)})),E(n,I),V()}function $u(n,t){K(t,!0),$o(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var e=R(),r=k(e);H(r,()=>t.content??J,()=>({props:{},wrapperProps:{}})),E(n,e),V()}function td(n,t){let e=y(t,"isStatic",3,!1),r=j(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=R(),o=k(i);{var a=l=>{$u(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},c=l=>{Qu(l,lt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};it(o,l=>{e()?l(a):l(c,!1)})}E(n,i)}var ed=ot("<!> <!>",1);function ta(n,t){K(t,!0);let e=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),i=y(t,"isValidEvent",3,()=>!1),o=y(t,"customAnchor",3,null),a=y(t,"isStatic",3,!1),c=y(t,"tooltip",3,!1),l=y(t,"contentPointerEvents",3,"auto"),u=j(t,["$$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"]);td(n,{get isStatic(){return a()},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 t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return o()},get enabled(){return t.enabled},get tooltip(){return c()},content:(d,h)=>{let m=()=>h==null?void 0:h().props,v=()=>h==null?void 0:h().wrapperProps;var b=ed(),S=k(b);{var C=w=>{Wo(w,{get preventScroll(){return t.preventScroll}})},T=w=>{Wo(w,{get preventScroll(){return t.preventScroll}})};it(S,w=>{t.forceMount&&t.enabled?w(C):t.forceMount||w(T,1)})}var M=Ut(S,2);Tl(M,{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:(_,I)=>{let D=()=>I==null?void 0:I().props;El(_,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(tt,W)=>{Pl(tt,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return e()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(Z,X)=>{let et=()=>X==null?void 0:X().props;Ml(Z,{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:(Y,N)=>{var L=R(),U=k(L);{let G=O(()=>({props:vt(u,m(),et(),D(),{style:{pointerEvents:l()}}),wrapperProps:v()}));H(U,()=>t.popper??J,()=>g(G))}E(Y,L)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),E(d,b)},$$slots:{content:!0}}),V()}function nd(n,t){let e=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),i=y(t,"isValidEvent",3,()=>!1),o=y(t,"customAnchor",3,null),a=y(t,"isStatic",3,!1),c=j(t,["$$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"]);var l=R(),u=k(l);{var f=d=>{ta(d,lt({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 o()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return e()},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}},()=>c))};it(u,d=>{t.shouldRender&&d(f)})}E(n,l)}function rd(n,t){let e=y(t,"interactOutsideBehavior",3,"close"),r=y(t,"trapFocus",3,!0),i=y(t,"isValidEvent",3,()=>!1),o=y(t,"customAnchor",3,null),a=y(t,"isStatic",3,!1),c=j(t,["$$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"]);ta(n,lt({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 o()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return e()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>c,{forceMount:!0}))}var id=ot("<div><!></div>");function od(n,t){const e=ne();K(t,!0);let r=y(t,"ref",15,null),i=y(t,"id",19,()=>re(e)),o=j(t,["$$slots","$$events","$$legacy","ref","id","child","children"]);const a=yi.create({id:x(()=>i()),ref:x(()=>r(),h=>r(h))}),c=O(()=>vt(o,a.props));var l=R(),u=k(l);{var f=h=>{var m=R(),v=k(m);H(v,()=>t.child,()=>({props:g(c)})),E(h,m)},d=h=>{var m=id();pt(m,()=>({...g(c)}));var v=ht(m);H(v,()=>t.children??J),gt(m),E(h,m)};it(u,h=>{t.child?h(f):h(d,!1)})}E(n,l),V()}function sd(n,t){K(t,!0);let e=y(t,"open",15,!1),r=y(t,"dir",3,"ltr"),i=y(t,"onOpenChange",3,Q),o=y(t,"onOpenChangeComplete",3,Q),a=y(t,"_internal_variant",3,"dropdown-menu");const c=mi.create({variant:x(()=>a()),dir:x(()=>r()),onClose:()=>{e(!1),i()(!1)}});pi.create({open:x(()=>e(),l=>{e(l),i()(l)}),onOpenChangeComplete:x(()=>o())},c),Zu(n,{children:(l,u)=>{var f=R(),d=k(f);H(d,()=>t.children??J),E(l,f)},$$slots:{default:!0}}),V()}var ad=ot("<div><div><!></div></div>"),cd=ot("<div><div><!></div></div>");function ld(n,t){const e=ne();K(t,!0);let r=y(t,"id",19,()=>re(e)),i=y(t,"ref",15,null),o=y(t,"loop",3,!0),a=y(t,"onInteractOutside",3,Q),c=y(t,"onEscapeKeydown",3,Q),l=y(t,"onCloseAutoFocus",3,Q),u=y(t,"forceMount",3,!1),f=y(t,"trapFocus",3,!1),d=j(t,["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]);const h=vi.create({id:x(()=>r()),loop:x(()=>o()),ref:x(()=>i(),w=>i(w)),onCloseAutoFocus:x(()=>l())}),m=O(()=>vt(d,h.props));function v(w){if(h.handleInteractOutside(w),!w.defaultPrevented&&(a()(w),!w.defaultPrevented)){if(w.target&&w.target instanceof Element){const _=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(w.target.closest(_))return}h.parentMenu.onClose()}}function b(w){c()(w),!w.defaultPrevented&&h.parentMenu.onClose()}var S=R(),C=k(S);{var T=w=>{rd(w,lt(()=>g(m),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:v,onEscapeKeydown:b,get trapFocus(){return f()},get loop(){return o()},forceMount:!0,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(I,D)=>{let tt=()=>D==null?void 0:D().props,W=()=>D==null?void 0:D().wrapperProps;const z=O(()=>vt(tt(),{style:Zo("dropdown-menu")},{style:t.style}));var Z=R(),X=k(Z);{var et=N=>{var L=R(),U=k(L);{let G=O(()=>({props:g(z),wrapperProps:W(),...h.snippetProps}));H(U,()=>t.child,()=>g(G))}E(N,L)},Y=N=>{var L=ad();pt(L,()=>({...W()}));var U=ht(L);pt(U,()=>({...g(z)}));var G=ht(U);H(G,()=>t.children??J),gt(U),gt(L),E(N,L)};it(X,N=>{t.child?N(et):N(Y,!1)})}E(I,Z)},$$slots:{popper:!0}}))},M=w=>{nd(w,lt(()=>g(m),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:v,onEscapeKeydown:b,get trapFocus(){return f()},get loop(){return o()},forceMount:!1,get id(){return r()},get shouldRender(){return h.shouldRender},popper:(I,D)=>{let tt=()=>D==null?void 0:D().props,W=()=>D==null?void 0:D().wrapperProps;const z=O(()=>vt(tt(),{style:Zo("dropdown-menu")},{style:t.style}));var Z=R(),X=k(Z);{var et=N=>{var L=R(),U=k(L);{let G=O(()=>({props:g(z),wrapperProps:W(),...h.snippetProps}));H(U,()=>t.child,()=>g(G))}E(N,L)},Y=N=>{var L=cd();pt(L,()=>({...W()}));var U=ht(L);pt(U,()=>({...g(z)}));var G=ht(U);H(G,()=>t.children??J),gt(U),gt(L),E(N,L)};it(X,N=>{t.child?N(et):N(Y,!1)})}E(I,Z)},$$slots:{popper:!0}}))};it(C,w=>{u()?w(T):u()||w(M,1)})}E(n,S),V()}var ud=ot("<button><!></button>");function dd(n,t){const e=ne();K(t,!0);let r=y(t,"id",19,()=>re(e)),i=y(t,"ref",15,null),o=y(t,"disabled",3,!1),a=y(t,"type",3,"button"),c=j(t,["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]);const l=bi.create({id:x(()=>r()),disabled:x(()=>o()??!1),ref:x(()=>i(),f=>i(f))}),u=O(()=>vt(c,l.props,{type:a()}));Ju(n,{get id(){return r()},get ref(){return l.opts.ref},children:(f,d)=>{var h=R(),m=k(h);{var v=S=>{var C=R(),T=k(C);H(T,()=>t.child,()=>({props:g(u)})),E(S,C)},b=S=>{var C=ud();pt(C,()=>({...g(u)}));var T=ht(C);H(T,()=>t.children??J),gt(C),E(S,C)};it(m,S=>{t.child?S(v):S(b,!1)})}E(f,h)},$$slots:{default:!0}}),V()}const ea=Li({component:"switch",parts:["root","thumb"]}),no=new Ht("Switch.Root");var Xn,Ii,jn,Zn,Jn;const vo=class vo{constructor(t){p(this,Xn);A(this,"opts");A(this,"attachment");p(this,jn,O(()=>({"data-disabled":si(this.opts.disabled.current),"data-state":qa(this.opts.checked.current),"data-required":si(this.opts.required.current)})));p(this,Zn,O(()=>({checked:this.opts.checked.current})));p(this,Jn,O(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Ya(this.opts.disabled.current),"aria-checked":Ga(this.opts.checked.current),"aria-required":ss(this.opts.required.current),[ea.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=t,this.attachment=St(t.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return no.set(new vo(t))}onkeydown(t){!(t.key===fs||t.key===gs)||this.opts.disabled.current||(t.preventDefault(),B(this,Xn,Ii).call(this))}onclick(t){this.opts.disabled.current||B(this,Xn,Ii).call(this)}get sharedProps(){return g(s(this,jn))}set sharedProps(t){P(s(this,jn),t)}get snippetProps(){return g(s(this,Zn))}set snippetProps(t){P(s(this,Zn),t)}get props(){return g(s(this,Jn))}set props(t){P(s(this,Jn),t)}};Xn=new WeakSet,Ii=function(){this.opts.checked.current=!this.opts.checked.current},jn=new WeakMap,Zn=new WeakMap,Jn=new WeakMap;let Di=vo;var Qn,$n;const yo=class yo{constructor(t){A(this,"root");p(this,Qn,O(()=>this.root.opts.name.current!==void 0));p(this,$n,O(()=>({type:"checkbox",name:this.root.opts.name.current,value:this.root.opts.value.current,checked:this.root.opts.checked.current,disabled:this.root.opts.disabled.current,required:this.root.opts.required.current})));this.root=t}static create(){return new yo(no.get())}get shouldRender(){return g(s(this,Qn))}set shouldRender(t){P(s(this,Qn),t)}get props(){return g(s(this,$n))}set props(t){P(s(this,$n),t)}};Qn=new WeakMap,$n=new WeakMap;let Ni=yo;var tr,er;const bo=class bo{constructor(t,e){A(this,"opts");A(this,"root");A(this,"attachment");p(this,tr,O(()=>({checked:this.root.opts.checked.current})));p(this,er,O(()=>({...this.root.sharedProps,id:this.opts.id.current,[ea.thumb]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=St(t.ref)}static create(t){return new bo(t,no.get())}get snippetProps(){return g(s(this,tr))}set snippetProps(t){P(s(this,tr),t)}get props(){return g(s(this,er))}set props(t){P(s(this,er),t)}};tr=new WeakMap,er=new WeakMap;let Bi=bo;function fd(n,t){K(t,!1);const e=Ni.create();Za();var r=R(),i=k(r);{var o=a=>{Hl(a,lt(()=>e.props))};it(i,a=>{e.shouldRender&&a(o)})}E(n,r),V()}var hd=ot("<button><!></button>"),gd=ot("<!> <!>",1);function md(n,t){const e=ne();K(t,!0);let r=y(t,"ref",15,null),i=y(t,"id",19,()=>re(e)),o=y(t,"disabled",3,!1),a=y(t,"required",3,!1),c=y(t,"checked",15,!1),l=y(t,"value",3,"on"),u=y(t,"name",3,void 0),f=y(t,"type",3,"button"),d=y(t,"onCheckedChange",3,Q),h=j(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]);const m=Di.create({checked:x(()=>c(),w=>{var _;c(w),(_=d())==null||_(w)}),disabled:x(()=>o()??!1),required:x(()=>a()),value:x(()=>l()),name:x(()=>u()),id:x(()=>i()),ref:x(()=>r(),w=>r(w))}),v=O(()=>vt(h,m.props,{type:f()}));var b=gd(),S=k(b);{var C=w=>{var _=R(),I=k(_);{let D=O(()=>({props:g(v),...m.snippetProps}));H(I,()=>t.child,()=>g(D))}E(w,_)},T=w=>{var _=hd();pt(_,()=>({...g(v)}));var I=ht(_);H(I,()=>t.children??J,()=>m.snippetProps),gt(_),E(w,_)};it(S,w=>{t.child?w(C):w(T,!1)})}var M=Ut(S,2);fd(M,{}),E(n,b),V()}var pd=ot("<span><!></span>");function vd(n,t){const e=ne();K(t,!0);let r=y(t,"ref",15,null),i=y(t,"id",19,()=>re(e)),o=j(t,["$$slots","$$events","$$legacy","child","children","ref","id"]);const a=Bi.create({id:x(()=>i()),ref:x(()=>r(),h=>r(h))}),c=O(()=>vt(o,a.props));var l=R(),u=k(l);{var f=h=>{var m=R(),v=k(m);{let b=O(()=>({props:g(c),...a.snippetProps}));H(v,()=>t.child,()=>g(b))}E(h,m)},d=h=>{var m=pd();pt(m,()=>({...g(c)}));var v=ht(m);H(v,()=>t.children??J,()=>a.snippetProps),gt(m),E(h,m)};it(u,h=>{t.child?h(f):h(d,!1)})}E(n,l),V()}function yd(n,t){K(t,!0);let e=y(t,"ref",15,null),r=y(t,"loadingStatus",15,"loading"),i=j(t,["$$slots","$$events","$$legacy","ref","loadingStatus","class"]);var o=R(),a=k(o);{let c=O(()=>pe("relative flex size-8 shrink-0 overflow-hidden rounded-full",t.class));st(a,()=>Nl,(l,u)=>{u(l,lt({"data-slot":"avatar",get class(){return g(c)}},()=>i,{get ref(){return e()},set ref(f){e(f)},get loadingStatus(){return r()},set loadingStatus(f){r(f)}}))})}E(n,o),V()}function bd(n,t){K(t,!0);let e=y(t,"ref",15,null),r=j(t,["$$slots","$$events","$$legacy","ref","class"]);var i=R(),o=k(i);{let a=O(()=>pe("aspect-square size-full",t.class));st(o,()=>Ll,(c,l)=>{l(c,lt({"data-slot":"avatar-image",get class(){return g(a)}},()=>r,{get ref(){return e()},set ref(u){e(u)}}))})}E(n,i),V()}function wd(n,t){K(t,!0);let e=y(t,"ref",15,null),r=j(t,["$$slots","$$events","$$legacy","ref","class"]);var i=R(),o=k(i);{let a=O(()=>pe("bg-muted flex size-full items-center justify-center rounded-full",t.class));st(o,()=>zl,(c,l)=>{l(c,lt({"data-slot":"avatar-fallback",get class(){return g(a)}},()=>r,{get ref(){return e()},set ref(u){e(u)}}))})}E(n,i),V()}function xd(n,t){K(t,!0);let e=y(t,"open",15,!1),r=j(t,["$$slots","$$events","$$legacy","open"]);var i=R(),o=k(i);st(o,()=>sd,(a,c)=>{c(a,lt(()=>r,{get open(){return e()},set open(l){e(l)}}))}),E(n,i),V()}function Sd(n,t){let e=j(t,["$$slots","$$events","$$legacy"]);var r=R(),i=k(r);st(i,()=>Wc,(o,a)=>{a(o,lt(()=>e))}),E(n,r)}function Ad(n,t){K(t,!0);let e=y(t,"ref",15,null),r=y(t,"sideOffset",3,4),i=j(t,["$$slots","$$events","$$legacy","ref","sideOffset","portalProps","class"]);Sd(n,lt(()=>t.portalProps,{children:(o,a)=>{var c=R(),l=k(c);{let u=O(()=>pe("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--bits-dropdown-menu-content-available-height) min-w-[8rem] origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none",t.class));st(l,()=>ld,(f,d)=>{d(f,lt({"data-slot":"dropdown-menu-content",get sideOffset(){return r()},get class(){return g(u)}},()=>i,{get ref(){return e()},set ref(h){e(h)}}))})}E(o,c)},$$slots:{default:!0}})),V()}function Od(n,t){K(t,!0);let e=y(t,"ref",15,null),r=j(t,["$$slots","$$events","$$legacy","ref","class"]);var i=R(),o=k(i);{let a=O(()=>pe("bg-border -mx-1 my-1 h-px",t.class));st(o,()=>od,(c,l)=>{l(c,lt({"data-slot":"dropdown-menu-separator",get class(){return g(a)}},()=>r,{get ref(){return e()},set ref(u){e(u)}}))})}E(n,i),V()}function Pd(n,t){K(t,!0);let e=y(t,"ref",15,null),r=j(t,["$$slots","$$events","$$legacy","ref"]);var i=R(),o=k(i);st(o,()=>dd,(a,c)=>{c(a,lt({"data-slot":"dropdown-menu-trigger"},()=>r,{get ref(){return e()},set ref(l){e(l)}}))}),E(n,i),V()}function Cd(n,t){K(t,!0);let e=y(t,"ref",15,null),r=y(t,"checked",15,!1),i=j(t,["$$slots","$$events","$$legacy","ref","class","checked"]);var o=R(),a=k(o);{let c=O(()=>pe("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t.class));st(a,()=>md,(l,u)=>{u(l,lt({"data-slot":"switch",get class(){return g(c)}},()=>i,{get ref(){return e()},set ref(f){e(f)},get checked(){return r()},set checked(f){r(f)},children:(f,d)=>{var h=R(),m=k(h);{let v=O(()=>pe("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"));st(m,()=>vd,(b,S)=>{S(b,{"data-slot":"switch-thumb",get class(){return g(v)}})})}E(f,h)},$$slots:{default:!0}}))})}E(n,o),V()}const Qo={webManifest:{linkTag:'<link rel="manifest" href="./manifest.webmanifest">'}};var Ed=ot("<!> <!>",1),Td=ot('<div class="relative flex cursor-default items-center gap-2 rounded-sm py-1.5 px-2 text-sm outline-none select-none" role="button" tabindex="0"><!> <!></div> <!> <form method="POST" action="/logout" class="contents"><button type="submit" class="relative flex w-full cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50">Log out</button></form>',1),kd=ot("<!> <!>",1),Fd=ot('<header class="fixed right-0 top-0 z-50 flex items-center gap-2 p-2 pr-[max(0.5rem,env(safe-area-inset-right))] pt-[max(0.5rem,env(safe-area-inset-top))]" aria-label="User menu"><!></header>'),Md=ot('<div class="app-shell"><!> <div class="page-view"><!></div></div>');function Jd(n,t){K(t,!0);let e=q(we(Da(Fo).url.pathname));rt(()=>Fo.subscribe(h=>{P(e,h.url.pathname,!0)}));const r=O(()=>Ja.includes(g(e).slice(1).split("/")[0]??""));let i=q(!1),o=()=>{};rt(()=>{var d;P(i,((d=t.data.user)==null?void 0:d.darkmode)??!1,!0)}),rt(()=>{t.data.user!==void 0&&document.documentElement.classList.toggle("dark",g(i))}),$o(()=>{Qo&&aa(async()=>{const{registerSW:d}=await import("../chunks/QRbP8TAd.js");return{registerSW:d}},__vite__mapDeps([0,1]),import.meta.url).then(({registerSW:d})=>{d({immediate:!0})}),o=async d=>{P(i,d,!0);try{(await fetch("/api/darkmode",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({darkmode:d})})).ok&&await Ia("layout")}catch{P(i,!d)}}});var a=Md();Ta("12qhfyh",d=>{var h=R(),m=k(h);{var v=b=>{var S=R(),C=k(S);tc(C,()=>Qo.webManifest.linkTag),E(b,S)};it(m,b=>{b(v)})}E(d,h)});var c=ht(a);{var l=d=>{var h=Fd(),m=ht(h);st(m,()=>xd,(v,b)=>{b(v,{children:(S,C)=>{var T=kd(),M=k(T);st(M,()=>Pd,(_,I)=>{I(_,{class:"border-0 bg-transparent hover:bg-muted inline-flex size-10 shrink-0 items-center justify-center rounded-full focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",onclick:D=>D.preventDefault(),children:(D,tt)=>{var W=R(),z=k(W);st(z,()=>yd,(Z,X)=>{X(Z,{class:"size-10 rounded-full",children:(et,Y)=>{var N=Ed(),L=k(N);st(L,()=>bd,(G,bt)=>{bt(G,{get src(){return t.data.user.avatar},alt:""})});var U=Ut(L,2);st(U,()=>wd,(G,bt)=>{bt(G,{class:"bg-muted text-muted-foreground flex size-10 items-center justify-center rounded-full text-sm font-medium",children:(ti,Rd)=>{Eo();var wo=To();ts(na=>Ea(wo,na),[()=>t.data.user.name?String(t.data.user.name).slice(0,2).toUpperCase():t.data.user.email?String(t.data.user.email).slice(0,2).toUpperCase():"?"]),E(ti,wo)},$$slots:{default:!0}})}),E(et,N)},$$slots:{default:!0}})}),E(D,W)},$$slots:{default:!0}})});var w=Ut(M,2);st(w,()=>Ad,(_,I)=>{I(_,{align:"end",class:"w-56",children:(D,tt)=>{var W=Td(),z=k(W),Z=ht(z);Xa(Z,{for:"darkmode-switch",class:"flex-1 cursor-pointer",children:(N,L)=>{Eo();var U=To("Dark mode");E(N,U)},$$slots:{default:!0}});var X=Ut(Z,2);Cd(X,{id:"darkmode-switch",get checked(){return g(i)},onCheckedChange:N=>N!==void 0&&o(!!N)}),gt(z);var et=Ut(z,2);st(et,()=>Od,(N,L)=>{L(N,{})});var Y=Ut(et,2);ka(Y,N=>{var L;return(L=Fa)==null?void 0:L(N)}),ko("keydown",z,N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),o(!g(i)))}),ko("click",z,N=>N.stopPropagation()),E(D,W)},$$slots:{default:!0}})}),E(S,T)},$$slots:{default:!0}})}),gt(h),E(d,h)};it(c,d=>{t.data.user&&!g(r)&&d(l)})}var u=Ut(c,2),f=ht(u);H(f,()=>t.children??J),gt(u),gt(a),E(n,a),V()}Ra(["keydown","click"]);export{Jd as component};