signetai 0.78.2 → 0.78.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/dashboard/_app/immutable/assets/0.CU0K3a5Q.css +1 -0
  2. package/dashboard/_app/immutable/assets/AuditTab.DfUZSCcu.css +1 -0
  3. package/dashboard/_app/immutable/assets/CortexTab.DM0MR2Ew.css +1 -0
  4. package/dashboard/_app/immutable/assets/{TaskDetail.YLB6Rg4e.css → CortexTasksPanel.C4153GOT.css} +1 -1
  5. package/dashboard/_app/immutable/assets/TroubleshooterPanel.Bj27xjMc.css +1 -0
  6. package/dashboard/_app/immutable/chunks/2sVhTPqV.js +5 -0
  7. package/dashboard/_app/immutable/chunks/{BMHg4p9s.js → 8I6zSz1_.js} +1 -1
  8. package/dashboard/_app/immutable/chunks/B1CG30Tk.js +1 -0
  9. package/dashboard/_app/immutable/chunks/B5EqjC58.js +2 -0
  10. package/dashboard/_app/immutable/chunks/B7Trm0Eb.js +1 -0
  11. package/dashboard/_app/immutable/chunks/{BX1Yz7rd.js → BDT3hrUw.js} +1 -1
  12. package/dashboard/_app/immutable/chunks/{BjFLqtWT.js → BFQszhNF.js} +1 -1
  13. package/dashboard/_app/immutable/chunks/BFjTMOJT.js +1 -0
  14. package/dashboard/_app/immutable/chunks/BLxYnJFM.js +1 -0
  15. package/dashboard/_app/immutable/chunks/{ycjTzGx9.js → BU2RpiOd.js} +1 -1
  16. package/dashboard/_app/immutable/chunks/{C6Ut0qMj.js → BUfNSShc.js} +1 -1
  17. package/dashboard/_app/immutable/chunks/{Sbdhs5rk.js → BfyKCXaY.js} +1 -1
  18. package/dashboard/_app/immutable/chunks/BlyEKFy6.js +1 -0
  19. package/dashboard/_app/immutable/chunks/{otBz_bAw.js → C1mzMGVK.js} +1 -1
  20. package/dashboard/_app/immutable/chunks/C3uL_G-6.js +3 -0
  21. package/dashboard/_app/immutable/chunks/CJKt8AUS.js +32 -0
  22. package/dashboard/_app/immutable/chunks/{D4fMMG5j.js → CKyI7_iw.js} +1 -1
  23. package/dashboard/_app/immutable/chunks/{TDeGgAzG.js → CQXEoRQp.js} +1 -1
  24. package/dashboard/_app/immutable/chunks/{CYGmkkOT.js → CQm_y4uV.js} +1 -1
  25. package/dashboard/_app/immutable/chunks/CZ4IBYNe.js +1 -0
  26. package/dashboard/_app/immutable/chunks/{Dg17Auac.js → CeI7UBRO.js} +1 -1
  27. package/dashboard/_app/immutable/chunks/CjQstM_p.js +15 -0
  28. package/dashboard/_app/immutable/chunks/CwRhzb5g.js +1 -0
  29. package/dashboard/_app/immutable/chunks/CwqzNZZy.js +2 -0
  30. package/dashboard/_app/immutable/chunks/CziGSIXa.js +1 -0
  31. package/dashboard/_app/immutable/chunks/D4hiagJ4.js +3 -0
  32. package/dashboard/_app/immutable/chunks/{Bf45f0Vp.js → D5r8Pi79.js} +1 -1
  33. package/dashboard/_app/immutable/chunks/{D7ozeA5b.js → D8vxVi1s.js} +1 -1
  34. package/dashboard/_app/immutable/chunks/DFBQgsWq.js +2 -0
  35. package/dashboard/_app/immutable/chunks/DJ34Ow8B.js +64 -0
  36. package/dashboard/_app/immutable/chunks/{CjrslgAi.js → DOaCXx_K.js} +1 -1
  37. package/dashboard/_app/immutable/chunks/{2MfvoDg1.js → DVXNr7Gr.js} +1 -1
  38. package/dashboard/_app/immutable/chunks/{BHvXyetp.js → DYIWBQCf.js} +1 -1
  39. package/dashboard/_app/immutable/chunks/DYOdoKxT.js +264 -0
  40. package/dashboard/_app/immutable/chunks/{DWi5AdTB.js → DZJZefYk.js} +2 -2
  41. package/dashboard/_app/immutable/chunks/Db1xOFju.js +1 -0
  42. package/dashboard/_app/immutable/chunks/DddEkaw0.js +1 -0
  43. package/dashboard/_app/immutable/chunks/Ddm7yfuh.js +7 -0
  44. package/dashboard/_app/immutable/chunks/{CH07uMzE.js → DlL5xNTX.js} +1 -1
  45. package/dashboard/_app/immutable/chunks/{8qq9odk9.js → Dnh29zl2.js} +1 -1
  46. package/dashboard/_app/immutable/chunks/{CCS36Mqc.js → DyjGoGyT.js} +1 -1
  47. package/dashboard/_app/immutable/chunks/JGLyxup4.js +27 -0
  48. package/dashboard/_app/immutable/chunks/{DP3h6pcQ.js → LDm615q6.js} +1 -1
  49. package/dashboard/_app/immutable/chunks/{gnFq108l.js → NJkCFQbe.js} +1 -1
  50. package/dashboard/_app/immutable/chunks/{BnRD8JUX.js → P0vgGLcV.js} +1 -1
  51. package/dashboard/_app/immutable/chunks/{DP2Cqb23.js → QQITl5fF.js} +1 -1
  52. package/dashboard/_app/immutable/chunks/TyeR9VWg.js +26 -0
  53. package/dashboard/_app/immutable/chunks/{BLrn3yUI.js → altURCqx.js} +1 -1
  54. package/dashboard/_app/immutable/chunks/{Bfse3fCo.js → anLJSqtR.js} +1 -1
  55. package/dashboard/_app/immutable/chunks/{DMYKaFD3.js → rn86Xwnc.js} +1 -1
  56. package/dashboard/_app/immutable/chunks/sCGNJapo.js +36 -0
  57. package/dashboard/_app/immutable/chunks/zWsBWM0e.js +4 -0
  58. package/dashboard/_app/immutable/entry/app.CRVX7NHY.js +2 -0
  59. package/dashboard/_app/immutable/entry/start.D6fHbnXJ.js +1 -0
  60. package/dashboard/_app/immutable/nodes/{0.jIuPfYNn.js → 0.B0A_vgr9.js} +1 -1
  61. package/dashboard/_app/immutable/nodes/1.B4ePHtXd.js +1 -0
  62. package/dashboard/_app/immutable/nodes/2.UCOJaFhi.js +1 -0
  63. package/dashboard/_app/version.json +1 -1
  64. package/dashboard/index.html +7 -7
  65. package/dist/daemon.js +240 -216
  66. package/package.json +1 -1
  67. package/dashboard/_app/immutable/assets/0.CJqciL3X.css +0 -1
  68. package/dashboard/_app/immutable/assets/CortexTab.CbEfH7Fd.css +0 -1
  69. package/dashboard/_app/immutable/assets/CortexTasksPanel.Ds5n7IaC.css +0 -1
  70. package/dashboard/_app/immutable/assets/TasksTab.Bok2ZX0D.css +0 -1
  71. package/dashboard/_app/immutable/assets/TroubleshooterPanel.Dw-L2Im3.css +0 -1
  72. package/dashboard/_app/immutable/chunks/2MRzfVP3.js +0 -1
  73. package/dashboard/_app/immutable/chunks/3MTuhkkM.js +0 -1
  74. package/dashboard/_app/immutable/chunks/7pObTy5Z.js +0 -27
  75. package/dashboard/_app/immutable/chunks/B82MekTh.js +0 -4
  76. package/dashboard/_app/immutable/chunks/BXXcrVDk.js +0 -1
  77. package/dashboard/_app/immutable/chunks/Bh3nIh1p.js +0 -7
  78. package/dashboard/_app/immutable/chunks/Bo0KuYql.js +0 -26
  79. package/dashboard/_app/immutable/chunks/C2EsmaBq.js +0 -32
  80. package/dashboard/_app/immutable/chunks/CAzEUj7-.js +0 -3
  81. package/dashboard/_app/immutable/chunks/CQlsEtmr.js +0 -2
  82. package/dashboard/_app/immutable/chunks/CRs_2u26.js +0 -39
  83. package/dashboard/_app/immutable/chunks/Ca7ofCGO.js +0 -264
  84. package/dashboard/_app/immutable/chunks/CaQOFuOW.js +0 -1
  85. package/dashboard/_app/immutable/chunks/Cfzanl-M.js +0 -1
  86. package/dashboard/_app/immutable/chunks/Cvtb1Uv1.js +0 -5
  87. package/dashboard/_app/immutable/chunks/D2L-5-73.js +0 -61
  88. package/dashboard/_app/immutable/chunks/D4j6_yDm.js +0 -1
  89. package/dashboard/_app/immutable/chunks/D7-Y1GbH.js +0 -1
  90. package/dashboard/_app/immutable/chunks/D7kvLQQv.js +0 -1
  91. package/dashboard/_app/immutable/chunks/D9AMLR_o.js +0 -1
  92. package/dashboard/_app/immutable/chunks/DPqWqYTP.js +0 -15
  93. package/dashboard/_app/immutable/chunks/DW-0HYki.js +0 -3
  94. package/dashboard/_app/immutable/chunks/cLV2Mo98.js +0 -2
  95. package/dashboard/_app/immutable/chunks/pP_VsnEc.js +0 -1
  96. package/dashboard/_app/immutable/chunks/u_Tqmrjo.js +0 -1
  97. package/dashboard/_app/immutable/entry/app.D33Fg_EX.js +0 -2
  98. package/dashboard/_app/immutable/entry/start.CKfFW3OZ.js +0 -1
  99. package/dashboard/_app/immutable/nodes/1.CixhrL0r.js +0 -1
  100. package/dashboard/_app/immutable/nodes/2.BF93CE4w.js +0 -1
@@ -0,0 +1,7 @@
1
+ var mo=Array.isArray,tf=Array.prototype.indexOf,xn=Array.prototype.includes,bo=Array.from,cu=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,uu=Object.getOwnPropertyDescriptors,du=Object.prototype,ef=Array.prototype,yo=Object.getPrototypeOf,nc=Object.isExtensible;function yn(e){return typeof e=="function"}const L=()=>{};function ic(e){return typeof e?.then=="function"}function rf(e){return e()}function ms(e){for(var t=0;t<e.length;t++)e[t]()}function hu(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}function t1(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const n of e)if(r.push(n),r.length===t)break;return r}const $t=2,Tn=4,ii=8,js=1<<24,Cr=16,Ue=32,Rr=64,bs=128,Se=512,Zt=1024,ce=2048,ir=4096,me=8192,Ce=16384,xr=32768,ys=1<<25,or=65536,oc=1<<17,fu=1<<18,Yr=1<<19,gu=1<<20,Qe=1<<25,sn=65536,ws=1<<21,qs=1<<22,kr=1<<23,rr=Symbol("$state"),Xs=Symbol("legacy props"),nf=Symbol(""),gr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},oi=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),of=1,si=3,Kr=8;function Gs(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function sf(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function af(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function lf(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cf(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function uf(e){throw new Error("https://svelte.dev/e/effect_orphan")}function df(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hf(){throw new Error("https://svelte.dev/e/hydration_failed")}function ff(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function gf(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function pf(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function vf(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function mf(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const bf=1,yf=2,pu=4,wf=8,_f=16,Sf=1,Cf=2,xf=4,Tf=8,Pf=16,Af=4,vu=1,Df=2,Zs="[",wo="[!",sc="[?",Js="]",an={},Gt=Symbol(),mu="http://www.w3.org/1999/xhtml",bu="http://www.w3.org/2000/svg",Of="http://www.w3.org/1998/Math/MathML",yu="@attach";function ai(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ef(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function If(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let K=!1;function Bt(e){K=e}let it;function kt(e){if(e===null)throw ai(),an;return it=e}function Pe(){return kt(ye(it))}function z(e){if(K){if(ye(it)!==null)throw ai(),an;it=e}}function Mf(e=1){if(K){for(var t=e,r=it;t--;)r=ye(r);it=r}}function Pn(e=!0){for(var t=0,r=it;;){if(r.nodeType===Kr){var n=r.data;if(n===Js){if(t===0)return r;t-=1}else(n===Zs||n===wo||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=ye(r);e&&r.remove(),r=i}}function Qs(e){if(!e||e.nodeType!==Kr)throw ai(),an;return e.data}function wu(e){return e===this.v}function _u(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Su(e){return!_u(e,this.v)}let kn=!1;function Nf(){kn=!0}const kf=[];function Ff(e,t=!1,r=!1){return Bi(e,new Map,"",kf,null,r)}function Bi(e,t,r,n,i=null,o=!1){if(typeof e=="object"&&e!==null){var s=t.get(e);if(s!==void 0)return s;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(mo(e)){var a=Array(e.length);t.set(e,a),i!==null&&t.set(i,a);for(var c=0;c<e.length;c+=1){var u=e[c];c in e&&(a[c]=Bi(u,t,r,n,null,o))}return a}if(yo(e)===du){a={},t.set(e,a),i!==null&&t.set(i,a);for(var f of Object.keys(e))a[f]=Bi(e[f],t,r,n,null,o);return a}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON=="function"&&!o)return Bi(e.toJSON(),t,r,n,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}let Mt=null;function An(e){Mt=e}function Ki(e){return _o().get(e)}function Cu(e,t){return _o().set(e,t),t}function xu(e){return _o().has(e)}function Rf(){return _o()}function V(e,t=!1,r){Mt={p:Mt,i:!1,c:null,e:null,s:e,x:null,r:dt,l:kn&&!t?{s:null,u:null,$:[]}:null}}function H(e){var t=Mt,r=t.e;if(r!==null){t.e=null;for(var n of r)ju(n)}return e!==void 0&&(t.x=e),t.i=!0,Mt=t.p,e??{}}function fn(){return!kn||Mt!==null&&Mt.l===null}function _o(e){return Mt===null&&Gs(),Mt.c??=new Map(Lf(Mt)||void 0)}function Lf(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let tn=[];function Tu(){var e=tn;tn=[],ms(e)}function xe(e){if(tn.length===0&&!Sn){var t=tn;queueMicrotask(()=>{t===tn&&Tu()})}tn.push(e)}function Bf(){for(;tn.length>0;)Tu()}function Pu(e){var t=dt;if(t===null)return vt.f|=kr,e;if((t.f&xr)===0&&(t.f&Tn)===0)throw e;Ir(e,t)}function Ir(e,t){for(;t!==null;){if((t.f&bs)!==0){if((t.f&xr)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Vf=-7169;function jt(e,t){e.f=e.f&Vf|t}function $s(e){(e.f&Se)!==0||e.deps===null?jt(e,Zt):jt(e,ir)}function Au(e){if(e!==null)for(const t of e)(t.f&$t)===0||(t.f&sn)===0||(t.f^=sn,Au(t.deps))}function Du(e,t,r){(e.f&ce)!==0?t.add(e):(e.f&ir)!==0&&r.add(e),Au(e.deps),jt(e,Zt)}const mn=[];function r1(e,t=L){let r=null;const n=new Set;function i(a){if(_u(e,a)&&(e=a,r)){const c=!mn.length;for(const u of n)u[1](),mn.push(u,e);if(c){for(let u=0;u<mn.length;u+=2)mn[u][0](mn[u+1]);mn.length=0}}}function o(a){i(a(e))}function s(a,c=L){const u=[a,c];return n.add(u),n.size===1&&(r=t(i,o)||L),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}let Di=!1;function Hf(e){var t=Di;try{return Di=!1,[e(),Di]}finally{Di=t}}const bn=new Set;let mt=null,Le=null,_s=null,Sn=!1,Go=!1,_n=null,Vi=null;var ac=0;let Wf=1;class ze{id=Wf++;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#i=null;#o=[];#a=new Set;#s=new Set;#l=new Map;is_fork=!1;#c=!1;#u(){return this.is_fork||this.#n>0}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var n of r.d)jt(n,ce),this.schedule(n);for(n of r.m)jt(n,ir),this.schedule(n)}}#h(){if(ac++>1e3&&(bn.delete(this),Uf()),!this.#u()){for(const a of this.#a)this.#s.delete(a),jt(a,ce),this.schedule(a);for(const a of this.#s)jt(a,ir),this.schedule(a)}const t=this.#o;this.#o=[],this.apply();var r=_n=[],n=[],i=Vi=[];for(const a of t)try{this.#f(a,r,n)}catch(c){throw Mu(a),c}if(mt=null,i.length>0){var o=ze.ensure();for(const a of i)o.schedule(a)}if(_n=null,Vi=null,this.#u()){this.#g(n),this.#g(r);for(const[a,c]of this.#l)Iu(a,c)}else{this.#r===0&&bn.delete(this),this.#a.clear(),this.#s.clear();for(const a of this.#t)a(this);this.#t.clear(),lc(n),lc(r),this.#i?.resolve()}var s=mt;if(this.#o.length>0){const a=s??=this;a.#o.push(...this.#o.filter(c=>!a.#o.includes(c)))}s!==null&&(bn.add(s),s.#h()),bn.has(this)||this.#d()}#f(t,r,n){t.f^=Zt;for(var i=t.first;i!==null;){var o=i.f,s=(o&(Ue|Rr))!==0,a=s&&(o&Zt)!==0,c=a||(o&me)!==0||this.#l.has(i);if(!c&&i.fn!==null){s?i.f^=Zt:(o&Tn)!==0?r.push(i):di(i)&&((o&Cr)!==0&&this.#s.add(i),Dn(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#g(t){for(var r=0;r<t.length;r+=1)Du(t[r],this.#a,this.#s)}capture(t,r){r!==Gt&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&kr)===0&&(this.current.set(t,t.v),Le?.set(t,t.v))}activate(){mt=this}deactivate(){mt=null,Le=null}flush(){try{Go=!0,mt=this,this.#h()}finally{ac=0,_s=null,_n=null,Vi=null,Go=!1,mt=null,Le=null,Fr.clear()}}discard(){for(const t of this.#e)t(this);this.#e.clear()}#d(){for(const c of bn){var t=c.id<this.id,r=[];for(const[u,f]of this.current){if(c.current.has(u))if(t&&f!==c.current.get(u))c.current.set(u,f);else continue;r.push(u)}if(r.length!==0){var n=[...c.current.keys()].filter(u=>!this.current.has(u));if(n.length>0){c.activate();var i=new Set,o=new Map;for(var s of r)Ou(s,n,i,o);if(c.#o.length>0){c.apply();for(var a of c.#o)c.#f(a,[],[]);c.#o=[]}c.deactivate()}}}}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t,r){this.#r-=1,t&&(this.#n-=1),!(this.#c||r)&&(this.#c=!0,xe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#a.add(n);for(const n of r)this.#s.add(n);t.clear(),r.clear()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#i??=hu()).promise}static ensure(){if(mt===null){const t=mt=new ze;Go||(bn.add(mt),Sn||xe(()=>{mt===t&&t.flush()}))}return mt}apply(){{Le=null;return}}schedule(t){if(_s=t,t.b?.is_pending&&(t.f&(Tn|ii|js))!==0&&(t.f&xr)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(_n!==null&&r===dt&&(vt===null||(vt.f&$t)===0))return;if((n&(Rr|Ue))!==0){if((n&Zt)===0)return;r.f^=Zt}}this.#o.push(r)}}function ta(e){var t=Sn;Sn=!0;try{for(var r;;){if(Bf(),mt===null)return r;mt.flush()}}finally{Sn=t}}function Uf(){try{df()}catch(e){Ir(e,_s)}}let fr=null;function lc(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ce|me))===0&&di(n)&&(fr=new Set,Dn(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Zu(n),fr?.size>0)){Fr.clear();for(const i of fr){if((i.f&(Ce|me))!==0)continue;const o=[i];let s=i.parent;for(;s!==null;)fr.has(s)&&(fr.delete(s),o.push(s)),s=s.parent;for(let a=o.length-1;a>=0;a--){const c=o[a];(c.f&(Ce|me))===0&&Dn(c)}}fr.clear()}}fr=null}}function Ou(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&$t)!==0?Ou(i,t,r,n):(o&(qs|Cr))!==0&&(o&ce)===0&&Eu(i,t,n)&&(jt(i,ce),ea(i))}}function Eu(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(xn.call(t,i))return!0;if((i.f&$t)!==0&&Eu(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function ea(e){mt.schedule(e)}function Iu(e,t){if(!((e.f&Ue)!==0&&(e.f&Zt)!==0)){(e.f&ce)!==0?t.d.push(e):(e.f&ir)!==0&&t.m.push(e),jt(e,Zt);for(var r=e.first;r!==null;)Iu(r,t),r=r.next}}function Mu(e){jt(e,Zt);for(var t=e.first;t!==null;)Mu(t),t=t.next}function li(e){let t=0,r=Ae(0),n;return()=>{oa()&&(l(r),ui(()=>(t===0&&(n=Et(()=>e(()=>pe(r)))),t+=1,()=>{xe(()=>{t-=1,t===0&&(n?.(),n=void 0,pe(r))})})))}}var zf=or|Yr;function Yf(e,t,r,n){new Kf(e,t,r,n)}class Kf{parent;is_pending=!1;transform_error;#t;#e=K?it:null;#r;#n;#i;#o=null;#a=null;#s=null;#l=null;#c=0;#u=0;#h=!1;#f=new Set;#g=new Set;#d=null;#p=li(()=>(this.#d=Ae(this.#c),()=>{this.#d=null}));constructor(t,r,n,i){this.#t=t,this.#r=r,this.#n=o=>{var s=dt;s.b=this,s.f|=bs,n(o)},this.parent=dt.b,this.transform_error=i??this.parent?.transform_error??(o=>o),this.#i=Tr(()=>{if(K){const o=this.#e;Pe();const s=o.data===wo;if(o.data.startsWith(sc)){const c=JSON.parse(o.data.slice(sc.length));this.#m(c)}else s?this.#y():this.#v()}else this.#b()},zf),K&&(this.#t=it)}#v(){try{this.#o=de(()=>this.#n(this.#t))}catch(t){this.error(t)}}#m(t){const r=this.#r.failed;r&&(this.#s=de(()=>{r(this.#t,()=>t,()=>()=>{})}))}#y(){const t=this.#r.pending;t&&(this.is_pending=!0,this.#a=de(()=>t(this.#t)),xe(()=>{var r=this.#l=document.createDocumentFragment(),n=ie();r.append(n),this.#o=this.#_(()=>de(()=>this.#n(n))),this.#u===0&&(this.#t.before(r),this.#l=null,nn(this.#a,()=>{this.#a=null}),this.#w(mt))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#o=de(()=>{this.#n(this.#t)}),this.#u>0){var t=this.#l=document.createDocumentFragment();la(this.#o,t);const r=this.#r.pending;this.#a=de(()=>r(this.#t))}else this.#w(mt)}catch(r){this.error(r)}}#w(t){this.is_pending=!1,t.transfer_effects(this.#f,this.#g)}defer_effect(t){Du(t,this.#f,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#_(t){var r=dt,n=vt,i=Mt;sr(this.#i),De(this.#i),An(this.#i.ctx);try{return ze.ensure(),t()}catch(o){return Pu(o),null}finally{sr(r),De(n),An(i)}}#S(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(t,r);return}this.#u+=t,this.#u===0&&(this.#w(r),this.#a&&nn(this.#a,()=>{this.#a=null}),this.#l&&(this.#t.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#S(t,r),this.#c+=t,!(!this.#d||this.#h)&&(this.#h=!0,xe(()=>{this.#h=!1,this.#d&&br(this.#d,this.#c)}))}get_effect_pending(){return this.#p(),l(this.#d)}error(t){var r=this.#r.onerror;let n=this.#r.failed;if(!r&&!n)throw t;this.#o&&(Qt(this.#o),this.#o=null),this.#a&&(Qt(this.#a),this.#a=null),this.#s&&(Qt(this.#s),this.#s=null),K&&(kt(this.#e),Mf(),kt(Pn()));var i=!1,o=!1;const s=()=>{if(i){If();return}i=!0,o&&mf(),this.#s!==null&&nn(this.#s,()=>{this.#s=null}),this.#_(()=>{this.#b()})},a=c=>{try{o=!0,r?.(c,s),o=!1}catch(u){Ir(u,this.#i&&this.#i.parent)}n&&(this.#s=this.#_(()=>{try{return de(()=>{var u=dt;u.b=this,u.f|=bs,n(this.#t,()=>c,()=>s)})}catch(u){return Ir(u,this.#i.parent),null}}))};xe(()=>{var c;try{c=this.transform_error(t)}catch(u){Ir(u,this.#i&&this.#i.parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(a,u=>Ir(u,this.#i&&this.#i.parent)):a(c)})}}function Nu(e,t,r,n){const i=fn()?ci:ra;var o=e.filter(d=>!d.settled);if(r.length===0&&o.length===0){n(t.map(i));return}var s=dt,a=ku(),c=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(d=>d.promise)):null;function u(d){a();try{n(d)}catch(h){(s.f&Ce)===0&&Ir(h,s)}Qn()}if(r.length===0){c.then(()=>u(t.map(i)));return}var f=Fu();function p(){Promise.all(r.map(d=>jf(d))).then(d=>u([...t.map(i),...d])).catch(d=>Ir(d,s)).finally(()=>f())}c?c.then(()=>{a(),p(),Qn()}):p()}function ku(){var e=dt,t=vt,r=Mt,n=mt;return function(o=!0){sr(e),De(t),An(r),o&&(e.f&Ce)===0&&(n?.activate(),n?.apply())}}function Qn(e=!0){sr(null),De(null),An(null),e&&mt?.deactivate()}function Fu(){var e=dt.b,t=mt,r=e.is_rendered();return e.update_pending_count(1,t),t.increment(r),(n=!1)=>{e.update_pending_count(-1,t),t.decrement(r,n)}}function ci(e){var t=$t|ce,r=vt!==null&&(vt.f&$t)!==0?vt:null;return dt!==null&&(dt.f|=Yr),{ctx:Mt,deps:null,effects:null,equals:wu,f:t,fn:e,reactions:null,rv:0,v:Gt,wv:0,parent:r??dt,ac:null}}function jf(e,t,r){let n=dt;n===null&&sf();var i=void 0,o=Ae(Gt),s=!vt,a=new Map;return ig(()=>{var c=dt,u=hu();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Qn)}catch(h){u.reject(h),Qn()}var f=mt;if(s){if((c.f&xr)!==0)var p=Fu();if(n.b.is_rendered())a.get(f)?.reject(gr),a.delete(f);else{for(const h of a.values())h.reject(gr);a.clear()}a.set(f,u)}const d=(h,g=void 0)=>{if(p){var b=g===gr;p(b)}if(!(g===gr||(c.f&Ce)!==0)){if(f.activate(),g)o.f|=kr,br(o,g);else{(o.f&kr)!==0&&(o.f^=kr),br(o,h);for(const[w,S]of a){if(a.delete(w),w===f)break;S.reject(gr)}}f.deactivate()}};u.promise.then(d,h=>d(null,h||"unknown"))}),To(()=>{for(const c of a.values())c.reject(gr)}),new Promise(c=>{function u(f){function p(){f===i?c(o):u(i)}f.then(p,p)}u(i)})}function y(e){const t=ci(e);return $u(t),t}function ra(e){const t=ci(e);return t.equals=Su,t}function qf(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qt(t[r])}}function Xf(e){for(var t=e.parent;t!==null;){if((t.f&$t)===0)return(t.f&Ce)===0?t:null;t=t.parent}return null}function na(e){var t,r=dt;sr(Xf(e));try{e.f&=~sn,qf(e),t=nd(e)}finally{sr(r)}return t}function Ru(e){var t=e.v,r=na(e);if(!e.equals(r)&&(e.wv=ed(),(!mt?.is_fork||e.deps===null)&&(e.v=r,mt?.capture(e,t),e.deps===null))){jt(e,Zt);return}Lr||(Le!==null?(oa()||mt?.is_fork)&&Le.set(e,r):$s(e))}function Gf(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(gr),t.teardown=L,t.ac=null,$n(t,0),sa(t))}function Lu(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Dn(t)}let Ss=new Set;const Fr=new Map;let Bu=!1;function Ae(e,t){var r={f:0,v:e,reactions:null,equals:wu,rv:0,wv:0};return r}function I(e,t){const r=Ae(e);return $u(r),r}function ji(e,t=!1,r=!0){const n=Ae(e);return t||(n.equals=Su),kn&&r&&Mt!==null&&Mt.l!==null&&(Mt.l.s??=[]).push(n),n}function v(e,t,r=!1){vt!==null&&(!Be||(vt.f&oc)!==0)&&fn()&&(vt.f&($t|Cr|qs|oc))!==0&&(Te===null||!xn.call(Te,e))&&vf();let n=r?qt(t):t;return br(e,n,Vi)}function br(e,t,r=null){if(!e.equals(t)){var n=e.v;Lr?Fr.set(e,t):Fr.set(e,n),e.v=t;var i=ze.ensure();if(i.capture(e,n),(e.f&$t)!==0){const o=e;(e.f&ce)!==0&&na(o),Le===null&&$s(o)}e.wv=ed(),Vu(e,ce,r),fn()&&dt!==null&&(dt.f&Zt)!==0&&(dt.f&(Ue|Rr))===0&&(_e===null?sg([e]):_e.push(e)),!i.is_fork&&Ss.size>0&&!Bu&&Zf()}return t}function Zf(){Bu=!1;for(const e of Ss)(e.f&Zt)!==0&&jt(e,ir),di(e)&&Dn(e);Ss.clear()}function n1(e,t=1){var r=l(e),n=t===1?r++:r--;return v(e,r),n}function pe(e){v(e,e.v+1)}function Vu(e,t,r){var n=e.reactions;if(n!==null)for(var i=fn(),o=n.length,s=0;s<o;s++){var a=n[s],c=a.f;if(!(!i&&a===dt)){var u=(c&ce)===0;if(u&&jt(a,t),(c&$t)!==0){var f=a;Le?.delete(f),(c&sn)===0&&(c&Se&&(a.f|=sn),Vu(f,ir,r))}else if(u){var p=a;(c&Cr)!==0&&fr!==null&&fr.add(p),r!==null?r.push(p):ea(p)}}}}function qt(e){if(typeof e!="object"||e===null||rr in e)return e;const t=yo(e);if(t!==du&&t!==ef)return e;var r=new Map,n=mo(e),i=I(0),o=He,s=a=>{if(He===o)return a();var c=vt,u=He;De(null),fc(o);var f=a();return De(c),fc(u),f};return n&&r.set("length",I(e.length)),new Proxy(e,{defineProperty(a,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&gf();var f=r.get(c);return f===void 0?s(()=>{var p=I(u.value);return r.set(c,p),p}):v(f,u.value,!0),!0},deleteProperty(a,c){var u=r.get(c);if(u===void 0){if(c in a){const f=s(()=>I(Gt));r.set(c,f),pe(i)}}else v(u,Gt),pe(i);return!0},get(a,c,u){if(c===rr)return e;var f=r.get(c),p=c in a;if(f===void 0&&(!p||Nr(a,c)?.writable)&&(f=s(()=>{var h=qt(p?a[c]:Gt),g=I(h);return g}),r.set(c,f)),f!==void 0){var d=l(f);return d===Gt?void 0:d}return Reflect.get(a,c,u)},getOwnPropertyDescriptor(a,c){var u=Reflect.getOwnPropertyDescriptor(a,c);if(u&&"value"in u){var f=r.get(c);f&&(u.value=l(f))}else if(u===void 0){var p=r.get(c),d=p?.v;if(p!==void 0&&d!==Gt)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(a,c){if(c===rr)return!0;var u=r.get(c),f=u!==void 0&&u.v!==Gt||Reflect.has(a,c);if(u!==void 0||dt!==null&&(!f||Nr(a,c)?.writable)){u===void 0&&(u=s(()=>{var d=f?qt(a[c]):Gt,h=I(d);return h}),r.set(c,u));var p=l(u);if(p===Gt)return!1}return f},set(a,c,u,f){var p=r.get(c),d=c in a;if(n&&c==="length")for(var h=u;h<p.v;h+=1){var g=r.get(h+"");g!==void 0?v(g,Gt):h in a&&(g=s(()=>I(Gt)),r.set(h+"",g))}if(p===void 0)(!d||Nr(a,c)?.writable)&&(p=s(()=>I(void 0)),v(p,qt(u)),r.set(c,p));else{d=p.v!==Gt;var b=s(()=>qt(u));v(p,b)}var w=Reflect.getOwnPropertyDescriptor(a,c);if(w?.set&&w.set.call(f,u),!d){if(n&&typeof c=="string"){var S=r.get("length"),T=Number(c);Number.isInteger(T)&&T>=S.v&&v(S,T+1)}pe(i)}return!0},ownKeys(a){l(i);var c=Reflect.ownKeys(a).filter(p=>{var d=r.get(p);return d===void 0||d.v!==Gt});for(var[u,f]of r)f.v!==Gt&&!(u in a)&&c.push(u);return c},setPrototypeOf(){pf()}})}function cc(e){try{if(e!==null&&typeof e=="object"&&rr in e)return e[rr]}catch{}return e}function Jf(e,t){return Object.is(cc(e),cc(t))}var uc,Qf,Hu,Wu,Uu;function Cs(){if(uc===void 0){uc=window,Qf=document,Hu=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Wu=Nr(t,"firstChild").get,Uu=Nr(t,"nextSibling").get,nc(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),nc(r)&&(r.__t=void 0)}}function ie(e=""){return document.createTextNode(e)}function Kt(e){return Wu.call(e)}function ye(e){return Uu.call(e)}function Y(e,t){if(!K)return Kt(e);var r=Kt(it);if(r===null)r=it.appendChild(ie());else if(t&&r.nodeType!==si){var n=ie();return r?.before(n),kt(n),n}return t&&Co(r),kt(r),r}function P(e,t=!1){if(!K){var r=Kt(e);return r instanceof Comment&&r.data===""?ye(r):r}if(t){if(it?.nodeType!==si){var n=ie();return it?.before(n),kt(n),n}Co(it)}return it}function se(e,t=1,r=!1){let n=K?it:e;for(var i;t--;)i=n,n=ye(n);if(!K)return n;if(r){if(n?.nodeType!==si){var o=ie();return n===null?i?.after(o):n.before(o),kt(o),o}Co(n)}return kt(n),n}function ia(e){e.textContent=""}function zu(){return!1}function So(e,t,r){return document.createElementNS(t??mu,e,void 0)}function $f(e=""){return document.createComment(e)}function Co(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===si;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function tg(e,t){if(t){const r=document.body;e.autofocus=!0,xe(()=>{document.activeElement===r&&e.focus()})}}function i1(e){K&&Kt(e)!==null&&ia(e)}let dc=!1;function Yu(){dc||(dc=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Fn(e){var t=vt,r=dt;De(null),sr(null);try{return e()}finally{De(t),sr(r)}}function xo(e,t,r,n=r){e.addEventListener(t,()=>Fn(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),Yu()}function Ku(e){dt===null&&(vt===null&&uf(),cf()),Lr&&lf()}function eg(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Oe(e,t){var r=dt;r!==null&&(r.f&me)!==0&&(e|=me);var n={ctx:Mt,deps:null,nodes:null,f:e|ce|Se,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&Tn)!==0)_n!==null?_n.push(n):ze.ensure().schedule(n);else if(t!==null){try{Dn(n)}catch(s){throw Qt(n),s}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Yr)===0&&(i=i.first,(e&Cr)!==0&&(e&or)!==0&&i!==null&&(i.f|=or))}if(i!==null&&(i.parent=r,r!==null&&eg(i,r),vt!==null&&(vt.f&$t)!==0&&(e&Rr)===0)){var o=vt;(o.effects??=[]).push(i)}return n}function oa(){return vt!==null&&!Be}function To(e){const t=Oe(ii,null);return jt(t,Zt),t.teardown=e,t}function nt(e){Ku();var t=dt.f,r=!vt&&(t&Ue)!==0&&(t&xr)===0;if(r){var n=Mt;(n.e??=[]).push(e)}else return ju(e)}function ju(e){return Oe(Tn|gu,e)}function Rn(e){return Ku(),Oe(ii|gu,e)}function rg(e){ze.ensure();const t=Oe(Rr|Yr,e);return()=>{Qt(t)}}function ng(e){ze.ensure();const t=Oe(Rr|Yr,e);return(r={})=>new Promise(n=>{r.outro?nn(t,()=>{Qt(t),n(void 0)}):(Qt(t),n(void 0))})}function Ln(e){return Oe(Tn,e)}function ig(e){return Oe(qs|Yr,e)}function ui(e,t=0){return Oe(ii|t,e)}function Jt(e,t=[],r=[],n=[]){Nu(n,t,r,i=>{Oe(ii,()=>e(...i.map(l)))})}function Tr(e,t=0){var r=Oe(Cr|t,e);return r}function qu(e,t=0){var r=Oe(js|t,e);return r}function de(e){return Oe(Ue|Yr,e)}function Xu(e){var t=e.teardown;if(t!==null){const r=Lr,n=vt;hc(!0),De(null);try{t.call(null)}finally{hc(r),De(n)}}}function sa(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Fn(()=>{i.abort(gr)});var n=r.next;(r.f&Rr)!==0?r.parent=null:Qt(r,t),r=n}}function og(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ue)===0&&Qt(t),t=r}}function Qt(e,t=!0){var r=!1;(t||(e.f&fu)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Gu(e.nodes.start,e.nodes.end),r=!0),jt(e,ys),sa(e,t&&!r),$n(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)o.stop();Xu(e),e.f^=ys,e.f|=Ce;var i=e.parent;i!==null&&i.first!==null&&Zu(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Gu(e,t){for(;e!==null;){var r=e===t?null:ye(e);e.remove(),e=r}}function Zu(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function nn(e,t,r=!0){var n=[];Ju(e,n,!0);var i=()=>{r&&Qt(e),t&&t()},o=n.length;if(o>0){var s=()=>--o||i();for(var a of n)a.out(s)}else i()}function Ju(e,t,r){if((e.f&me)===0){e.f^=me;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var o=i.next,s=(i.f&or)!==0||(i.f&Ue)!==0&&(e.f&Cr)!==0;Ju(i,t,s?r:!1),i=o}}}function aa(e){Qu(e,!0)}function Qu(e,t){if((e.f&me)!==0){e.f^=me,(e.f&Zt)===0&&(jt(e,ce),ze.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&or)!==0||(r.f&Ue)!==0;Qu(r,i?t:!1),r=n}var o=e.nodes&&e.nodes.t;if(o!==null)for(const s of o)(s.is_global||t)&&s.in()}}function la(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:ye(r);t.append(r),r=i}}let Hi=!1,Lr=!1;function hc(e){Lr=e}let vt=null,Be=!1;function De(e){vt=e}let dt=null;function sr(e){dt=e}let Te=null;function $u(e){vt!==null&&(Te===null?Te=[e]:Te.push(e))}let ue=null,fe=0,_e=null;function sg(e){_e=e}let td=1,en=0,He=en;function fc(e){He=e}function ed(){return++td}function di(e){var t=e.f;if((t&ce)!==0)return!0;if(t&$t&&(e.f&=~sn),(t&ir)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(di(o)&&Ru(o),o.wv>e.wv)return!0}(t&Se)!==0&&Le===null&&jt(e,Zt)}return!1}function rd(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Te!==null&&xn.call(Te,e)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&$t)!==0?rd(o,t,!1):t===o&&(r?jt(o,ce):(o.f&Zt)!==0&&jt(o,ir),ea(o))}}function nd(e){var t=ue,r=fe,n=_e,i=vt,o=Te,s=Mt,a=Be,c=He,u=e.f;ue=null,fe=0,_e=null,vt=(u&(Ue|Rr))===0?e:null,Te=null,An(e.ctx),Be=!1,He=++en,e.ac!==null&&(Fn(()=>{e.ac.abort(gr)}),e.ac=null);try{e.f|=ws;var f=e.fn,p=f();e.f|=xr;var d=e.deps,h=mt?.is_fork;if(ue!==null){var g;if(h||$n(e,fe),d!==null&&fe>0)for(d.length=fe+ue.length,g=0;g<ue.length;g++)d[fe+g]=ue[g];else e.deps=d=ue;if(oa()&&(e.f&Se)!==0)for(g=fe;g<d.length;g++)(d[g].reactions??=[]).push(e)}else!h&&d!==null&&fe<d.length&&($n(e,fe),d.length=fe);if(fn()&&_e!==null&&!Be&&d!==null&&(e.f&($t|ir|ce))===0)for(g=0;g<_e.length;g++)rd(_e[g],e);if(i!==null&&i!==e){if(en++,i.deps!==null)for(let b=0;b<r;b+=1)i.deps[b].rv=en;if(t!==null)for(const b of t)b.rv=en;_e!==null&&(n===null?n=_e:n.push(..._e))}return(e.f&kr)!==0&&(e.f^=kr),p}catch(b){return Pu(b)}finally{e.f^=ws,ue=t,fe=r,_e=n,vt=i,Te=o,An(s),Be=a,He=c}}function ag(e,t){let r=t.reactions;if(r!==null){var n=tf.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&$t)!==0&&(ue===null||!xn.call(ue,t))){var o=t;(o.f&Se)!==0&&(o.f^=Se,o.f&=~sn),$s(o),Gf(o),$n(o,0)}}function $n(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ag(e,r[n])}function Dn(e){var t=e.f;if((t&Ce)===0){jt(e,Zt);var r=dt,n=Hi;dt=e,Hi=!0;try{(t&(Cr|js))!==0?og(e):sa(e),Xu(e);var i=nd(e);e.teardown=typeof i=="function"?i:null,e.wv=td;var o}finally{Hi=n,dt=r}}}async function id(){await Promise.resolve(),ta()}function o1(){return ze.ensure().settled()}function l(e){var t=e.f,r=(t&$t)!==0;if(vt!==null&&!Be){var n=dt!==null&&(dt.f&Ce)!==0;if(!n&&(Te===null||!xn.call(Te,e))){var i=vt.deps;if((vt.f&ws)!==0)e.rv<en&&(e.rv=en,ue===null&&i!==null&&i[fe]===e?fe++:ue===null?ue=[e]:ue.push(e));else{(vt.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[vt]:xn.call(o,vt)||o.push(vt)}}}if(Lr&&Fr.has(e))return Fr.get(e);if(r){var s=e;if(Lr){var a=s.v;return((s.f&Zt)===0&&s.reactions!==null||sd(s))&&(a=na(s)),Fr.set(s,a),a}var c=(s.f&Se)===0&&!Be&&vt!==null&&(Hi||(vt.f&Se)!==0),u=(s.f&xr)===0;di(s)&&(c&&(s.f|=Se),Ru(s)),c&&!u&&(Lu(s),od(s))}if(Le?.has(e))return Le.get(e);if((e.f&kr)!==0)throw e.v;return e.v}function od(e){if(e.f|=Se,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$t)!==0&&(t.f&Se)===0&&(Lu(t),od(t))}function sd(e){if(e.v===Gt)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Fr.has(t)||(t.f&$t)!==0&&sd(t))return!0;return!1}function Et(e){var t=Be;try{return Be=!0,e()}finally{Be=t}}function lg(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(rr in e)xs(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&rr in r&&xs(r)}}}function xs(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{xs(e[n],t)}catch{}const r=yo(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=uu(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function cg(){return Symbol(yu)}function ug(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const dg=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function hg(e){return dg.includes(e)}const fg={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function gg(e){return e=e.toLowerCase(),fg[e]??e}const pg=["touchstart","touchmove"];function vg(e){return pg.includes(e)}const mg=["textarea","script","style","title"];function bg(e){return mg.includes(e)}const Xn=Symbol("events"),ad=new Set,Ts=new Set;function s1(e){if(!K)return;e.removeAttribute("onload"),e.removeAttribute("onerror");const t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function ca(e,t,r,n={}){function i(o){if(n.capture||Ps.call(t,o),!o.cancelBubble)return Fn(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?xe(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function bt(e,t,r,n={}){var i=ca(t,e,r,n);return()=>{e.removeEventListener(t,i,n)}}function yg(e,t,r,n,i){var o={capture:n,passive:i},s=ca(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&To(()=>{t.removeEventListener(e,s,o)})}function Qr(e,t,r){(t[Xn]??={})[e]=r}function ld(e){for(var t=0;t<e.length;t++)ad.add(e[t]);for(var r of Ts)r(e)}let gc=null;function Ps(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;gc=e;var s=0,a=gc===e&&e[Xn];if(a){var c=i.indexOf(a);if(c!==-1&&(t===document||t===window)){e[Xn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(s=c)}if(o=i[s]||e.target,o!==t){cu(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=vt,p=dt;De(null),sr(null);try{for(var d,h=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var b=o[Xn]?.[n];b!=null&&(!o.disabled||e.target===o)&&b.call(o,e)}catch(w){d?h.push(w):d=w}if(e.cancelBubble||g===t||g===null)break;o=g}if(d){for(let w of h)queueMicrotask(()=>{throw w});throw d}}finally{e[Xn]=t,delete e.currentTarget,De(f),sr(p)}}}const wg=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function cd(e){return wg?.createHTML(e)??e}function ud(e){var t=So("template");return t.innerHTML=cd(e.replaceAll("<!>","<!---->")),t.content}function le(e,t){var r=dt;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function U(e,t){var r=(t&vu)!==0,n=(t&Df)!==0,i,o=!e.startsWith("<!>");return()=>{if(K)return le(it,null),it;i===void 0&&(i=ud(o?e:"<!>"+e),r||(i=Kt(i)));var s=n||Hu?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Kt(s),c=s.lastChild;le(a,c)}else le(s,s);return s}}function _g(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&vu)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(K)return le(it,null),it;if(!s){var a=ud(o),c=Kt(a);if(i)for(s=document.createDocumentFragment();Kt(c);)s.appendChild(Kt(c));else s=Kt(c)}var u=s.cloneNode(!0);if(i){var f=Kt(u),p=u.lastChild;le(f,p)}else le(u,u);return u}}function Bn(e,t){return _g(e,t,"svg")}function As(e=""){if(!K){var t=ie(e+"");return le(t,t),t}var r=it;return r.nodeType!==si?(r.before(r=ie()),kt(r)):Co(r),le(r,r),r}function A(){if(K)return le(it,null),it;var e=document.createDocumentFragment(),t=document.createComment(""),r=ie();return e.append(t,r),le(t,r),e}function C(e,t){if(K){var r=dt;((r.f&xr)===0||r.nodes.end===null)&&(r.nodes.end=it),Pe();return}e!==null&&e.before(t)}function at(){if(K&&it&&it.nodeType===Kr&&it.textContent?.startsWith("$")){const e=it.textContent.substring(1);return Pe(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}let qi=!0;function Oi(e){qi=e}function rn(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function ua(e,t){return dd(e,t)}function Sg(e,t){Cs(),t.intro=t.intro??!1;const r=t.target,n=K,i=it;try{for(var o=Kt(r);o&&(o.nodeType!==Kr||o.data!==Zs);)o=ye(o);if(!o)throw an;Bt(!0),kt(o);const s=dd(e,{...t,anchor:o});return Bt(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw s;return s!==an&&console.warn("Failed to hydrate: ",s),t.recover===!1&&hf(),Cs(),ia(r),Bt(!1),ua(e,t)}finally{Bt(n),kt(i)}}const Ei=new Map;function dd(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0,transformError:a}){Cs();var c=void 0,u=ng(()=>{var f=r??t.appendChild(ie());Yf(f,{pending:()=>{}},h=>{V({});var g=Mt;if(o&&(g.c=o),i&&(n.$$events=i),K&&le(h,null),qi=s,c=e(h,n)||{},qi=!0,K&&(dt.nodes.end=it,it===null||it.nodeType!==Kr||it.data!==Js))throw ai(),an;H()},a);var p=new Set,d=h=>{for(var g=0;g<h.length;g++){var b=h[g];if(!p.has(b)){p.add(b);var w=vg(b);for(const x of[t,document]){var S=Ei.get(x);S===void 0&&(S=new Map,Ei.set(x,S));var T=S.get(b);T===void 0?(x.addEventListener(b,Ps,{passive:w}),S.set(b,1)):S.set(b,T+1)}}}};return d(bo(ad)),Ts.add(d),()=>{for(var h of p)for(const w of[t,document]){var g=Ei.get(w),b=g.get(h);--b==0?(w.removeEventListener(h,Ps),g.delete(h),g.size===0&&Ei.delete(w)):g.set(h,b)}Ts.delete(d),f!==r&&f.parentNode?.removeChild(f)}});return Ds.set(c,u),c}let Ds=new WeakMap;function hd(e,t){const r=Ds.get(e);return r?(Ds.delete(e),r(t)):Promise.resolve()}class Vn{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#o=t=>{if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)aa(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,s]of this.#t){if(this.#t.delete(o),o===t)break;const a=this.#r.get(s);a&&(Qt(a.effect),this.#r.delete(s))}for(const[o,s]of this.#e){if(o===r||this.#n.has(o))continue;const a=()=>{if(Array.from(this.#t.values()).includes(o)){var u=document.createDocumentFragment();la(s,u),u.append(ie()),this.#r.set(o,{effect:s,fragment:u})}else Qt(s);this.#n.delete(o),this.#e.delete(o)};this.#i||!n?(this.#n.add(o),nn(s,a,!1)):a()}}};#a=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(Qt(i.effect),this.#r.delete(n))};ensure(t,r){var n=mt,i=zu();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var o=document.createDocumentFragment(),s=ie();o.append(s),this.#r.set(t,{effect:de(()=>r(s)),fragment:o})}else this.#e.set(t,de(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[a,c]of this.#e)a===t?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of this.#r)a===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(this.#o),n.ondiscard(this.#a)}else K&&(this.anchor=it),this.#o(n)}}const pc=0,vc=1,Cg=2;function a1(e,t,r,n,i){K&&Pe();var o=fn(),s=Gt,a=o?Ae(s):ji(s,!1,!1),c=o?Ae(s):ji(s,!1,!1),u=new Vn(e);Tr(()=>{var f=mt;f.deactivate();var p=t();f.activate();var d=!1;let h=K&&ic(p)===(e.data===wo);if(h&&(kt(Pn()),Bt(!1)),ic(p)){var g=ku(),b=!1;const w=S=>{if(!d){b=!0,g(!1),ze.ensure(),K&&Bt(!1);try{S()}finally{Qn(!1),Sn||ta()}}};p.then(S=>{w(()=>{br(a,S),u.ensure(vc,n&&(T=>n(T,a)))})},S=>{w(()=>{if(br(c,S),u.ensure(Cg,i&&(T=>i(T,c))),!i)throw c.v})}),K?u.ensure(pc,r):xe(()=>{b||w(()=>{u.ensure(pc,r)})})}else br(a,p),u.ensure(vc,n&&(w=>n(w,a)));return h&&Bt(!0),()=>{d=!0}})}function k(e,t,r=!1){var n;K&&(n=it,Pe());var i=new Vn(e),o=r?or:0;function s(a,c){if(K){var u=Qs(n);if(a!==parseInt(u.substring(1))){var f=Pn();kt(f),i.anchor=f,Bt(!1),i.ensure(a,c),Bt(!0);return}}i.ensure(a,c)}Tr(()=>{var a=!1;t((c,u=0)=>{a=!0,s(u,c)}),a||s(-1,null)},o)}const xg=Symbol("NaN");function Tg(e,t,r){K&&Pe();var n=new Vn(e),i=!fn();Tr(()=>{var o=t();o!==o&&(o=xg),i&&o!==null&&typeof o=="object"&&(o={}),n.ensure(o,r)})}function l1(e,t){return t}function Pg(e,t,r){for(var n=[],i=t.length,o,s=t.length,a=0;a<i;a++){let p=t[a];nn(p,()=>{if(o){if(o.pending.delete(p),o.done.add(p),o.pending.size===0){var d=e.outrogroups;Os(e,bo(o.done)),d.delete(o),d.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=n.length===0&&r!==null;if(c){var u=r,f=u.parentNode;ia(f),f.append(u),e.items.clear()}Os(e,t,!c)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Os(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const a of s)n.add(e.items.get(a).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n?.has(o)){o.f|=Qe;const s=document.createDocumentFragment();la(o,s)}else Qt(t[i],r)}}var mc;function On(e,t,r,n,i,o=null){var s=e,a=new Map,c=(t&pu)!==0;if(c){var u=e;s=K?kt(Kt(u)):u.appendChild(ie())}K&&Pe();var f=null,p=ra(()=>{var x=r();return mo(x)?x:x==null?[]:bo(x)}),d,h=new Map,g=!0;function b(x){(T.effect.f&Ce)===0&&(T.pending.delete(x),T.fallback=f,Ag(T,d,s,t,n),f!==null&&(d.length===0?(f.f&Qe)===0?aa(f):(f.f^=Qe,Gn(f,null,s)):nn(f,()=>{f=null})))}function w(x){T.pending.delete(x)}var S=Tr(()=>{d=l(p);var x=d.length;let D=!1;if(K){var N=Qs(s)===wo;N!==(x===0)&&(s=Pn(),kt(s),Bt(!1),D=!0)}for(var O=new Set,E=mt,F=zu(),W=0;W<x;W+=1){K&&it.nodeType===Kr&&it.data===Js&&(s=it,D=!0,Bt(!1));var R=d[W],G=n(R,W),B=g?null:a.get(G);B?(B.v&&br(B.v,R),B.i&&br(B.i,W),F&&E.unskip_effect(B.e)):(B=Dg(a,g?s:mc??=ie(),R,G,W,i,t,r),g||(B.e.f|=Qe),a.set(G,B)),O.add(G)}if(x===0&&o&&!f&&(g?f=de(()=>o(s)):(f=de(()=>o(mc??=ie())),f.f|=Qe)),x>O.size&&af(),K&&x>0&&kt(Pn()),!g)if(h.set(E,O),F){for(const[Z,Q]of a)O.has(Z)||E.skip_effect(Q.e);E.oncommit(b),E.ondiscard(w)}else b(E);D&&Bt(!0),l(p)}),T={effect:S,items:a,pending:h,outrogroups:null,fallback:f};g=!1,K&&(s=it)}function zn(e){for(;e!==null&&(e.f&Ue)===0;)e=e.next;return e}function Ag(e,t,r,n,i){var o=(n&wf)!==0,s=t.length,a=e.items,c=zn(e.effect.first),u,f=null,p,d=[],h=[],g,b,w,S;if(o)for(S=0;S<s;S+=1)g=t[S],b=i(g,S),w=a.get(b).e,(w.f&Qe)===0&&(w.nodes?.a?.measure(),(p??=new Set).add(w));for(S=0;S<s;S+=1){if(g=t[S],b=i(g,S),w=a.get(b).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(w),R.done.delete(w);if((w.f&Qe)!==0)if(w.f^=Qe,w===c)Gn(w,null,r);else{var T=f?f.next:c;w===e.effect.last&&(e.effect.last=w.prev),w.prev&&(w.prev.next=w.next),w.next&&(w.next.prev=w.prev),Dr(e,f,w),Dr(e,w,T),Gn(w,T,r),f=w,d=[],h=[],c=zn(f.next);continue}if((w.f&me)!==0&&(aa(w),o&&(w.nodes?.a?.unfix(),(p??=new Set).delete(w))),w!==c){if(u!==void 0&&u.has(w)){if(d.length<h.length){var x=h[0],D;f=x.prev;var N=d[0],O=d[d.length-1];for(D=0;D<d.length;D+=1)Gn(d[D],x,r);for(D=0;D<h.length;D+=1)u.delete(h[D]);Dr(e,N.prev,O.next),Dr(e,f,N),Dr(e,O,x),c=x,f=O,S-=1,d=[],h=[]}else u.delete(w),Gn(w,c,r),Dr(e,w.prev,w.next),Dr(e,w,f===null?e.effect.first:f.next),Dr(e,f,w),f=w;continue}for(d=[],h=[];c!==null&&c!==w;)(u??=new Set).add(c),h.push(c),c=zn(c.next);if(c===null)continue}(w.f&Qe)===0&&d.push(w),f=w,c=zn(w.next)}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Os(e,bo(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||u!==void 0){var E=[];if(u!==void 0)for(w of u)(w.f&me)===0&&E.push(w);for(;c!==null;)(c.f&me)===0&&c!==e.fallback&&E.push(c),c=zn(c.next);var F=E.length;if(F>0){var W=(n&pu)!==0&&s===0?r:null;if(o){for(S=0;S<F;S+=1)E[S].nodes?.a?.measure();for(S=0;S<F;S+=1)E[S].nodes?.a?.fix()}Pg(e,E,W)}}o&&xe(()=>{if(p!==void 0)for(w of p)w.nodes?.a?.apply()})}function Dg(e,t,r,n,i,o,s,a){var c=(s&bf)!==0?(s&_f)===0?ji(r,!1,!1):Ae(r):null,u=(s&yf)!==0?Ae(i):null;return{v:c,i:u,e:de(()=>(o(t,c??r,u??i,a),()=>{e.delete(n)}))}}function Gn(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,o=t&&(t.f&Qe)===0?t.nodes.start:r;n!==null;){var s=ye(n);if(o.before(n),n===i)return;n=s}}function Dr(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function c1(e,t,r=!1,n=!1,i=!1,o=!1){var s=e,a="";if(r){var c=e;K&&(s=kt(Kt(c)))}Jt(()=>{var u=dt;if(a===(a=t()??"")){K&&Pe();return}if(r&&!K){u.nodes=null,c.innerHTML=a,a!==""&&le(Kt(c),c.lastChild);return}if(u.nodes!==null&&(Gu(u.nodes.start,u.nodes.end),u.nodes=null),a!==""){if(K){it.data;for(var f=Pe(),p=f;f!==null&&(f.nodeType!==Kr||f.data!=="");)p=f,f=ye(f);if(f===null)throw ai(),an;le(it,p),s=kt(f);return}var d=n?bu:i?Of:void 0,h=So(n?"svg":i?"math":"template",d);h.innerHTML=a;var g=n||i?h:h.content;if(le(Kt(g),g.lastChild),n||i)for(;Kt(g);)s.before(Kt(g));else s.before(g)}})}function M(e,t,...r){var n=new Vn(e);Tr(()=>{const i=t()??null;n.ensure(i,i&&(o=>i(o,...r)))},or)}function Or(e,t,r){var n;K&&(n=it,Pe());var i=new Vn(e);Tr(()=>{var o=t()??null;if(K){var s=Qs(n),a=s===Zs,c=o!==null;if(a!==c){var u=Pn();kt(u),i.anchor=u,Bt(!1),i.ensure(o,o&&(f=>r(f,o))),Bt(!0);return}}i.ensure(o,o&&(f=>r(f,o)))},or)}const Og=()=>performance.now(),pr={tick:e=>requestAnimationFrame(e),now:()=>Og(),tasks:new Set};function fd(){const e=pr.now();pr.tasks.forEach(t=>{t.c(e)||(pr.tasks.delete(t),t.f())}),pr.tasks.size!==0&&pr.tick(fd)}function Eg(e){let t;return pr.tasks.size===0&&pr.tick(fd),{promise:new Promise(r=>{pr.tasks.add(t={c:e,f:r})}),abort(){pr.tasks.delete(t)}}}function Es(e,t){Fn(()=>{e.dispatchEvent(new CustomEvent(t))})}function Ig(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function bc(e){const t={},r=e.split(";");for(const n of r){const[i,o]=n.split(":");if(!i||o===void 0)break;const s=Ig(i.trim());t[s]=o.trim()}return t}const Mg=e=>e;function u1(e,t,r,n){var i=(e&Af)!==0,o="in",s,a=t.inert,c=t.style.overflow,u,f;function p(){return Fn(()=>s??=r()(t,n?.()??{},{direction:o}))}var d={is_global:i,in(){t.inert=a,u?.abort(),u=gd(t,p(),f,1,()=>{Es(t,"introend"),u?.abort(),u=s=void 0,t.style.overflow=c})},out(w){{w?.(),s=void 0;return}},stop:()=>{u?.abort()}},h=dt;if((h.nodes.t??=[]).push(d),qi){var g=i;if(!g){for(var b=h.parent;b&&(b.f&or)!==0;)for(;(b=b.parent)&&(b.f&Cr)===0;);g=!b||(b.f&xr)!==0}g&&Ln(()=>{Et(()=>d.in())})}}function gd(e,t,r,n,i){if(yn(t)){var o,s=!1;return xe(()=>{if(!s){var b=t({direction:"in"});o=gd(e,b,r,n,i)}}),{abort:()=>{s=!0,o?.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(!t?.duration&&!t?.delay)return Es(e,"introstart"),i(),{abort:L,deactivate:L,reset:L,t:()=>n};const{delay:a=0,css:c,tick:u,easing:f=Mg}=t;var p=[];if(u&&u(0,1),c){var d=bc(c(0,1));p.push(d,d)}var h=()=>1-n,g=e.animate(p,{duration:a,fill:"forwards"});return g.onfinish=()=>{g.cancel(),Es(e,"introstart");var b=1-n,w=n-b,S=t.duration*Math.abs(w),T=[];if(S>0){var x=!1;if(c)for(var D=Math.ceil(S/16.666666666666668),N=0;N<=D;N+=1){var O=b+w*f(N/D),E=bc(c(O,1-O));T.push(E),x||=E.overflow==="hidden"}x&&(e.style.overflow="hidden"),h=()=>{var F=g.currentTime;return b+w*f(F/S)},u&&Eg(()=>{if(g.playState!=="running")return!1;var F=h();return u(F,1-F),!0})}g=e.animate(T,{duration:S,fill:"forwards"}),g.onfinish=()=>{h=()=>n,u?.(n,1-n),i()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=L)},deactivate:()=>{i=L},reset:()=>{},t:()=>h()}}function d1(e,t,r,n,i,o){let s=K;K&&Pe();var a=null;K&&it.nodeType===of&&(a=it,Pe());var c=K?it:e,u=new Vn(c,!1);Tr(()=>{const f=t()||null;var p=r||f==="svg"?bu:void 0;if(f===null){u.ensure(null,null),Oi(!0);return}return u.ensure(f,d=>{if(f){if(a=K?a:So(f,p),le(a,a),n){K&&bg(f)&&a.append(document.createComment(""));var h=K?Kt(a):a.appendChild(ie());K&&(h===null?Bt(!1):kt(h)),n(a,h)}dt.nodes.end=a,d.before(a)}K&&kt(d)}),Oi(!0),()=>{f&&Oi(!1)}},or),To(()=>{Oi(!0)}),s&&(Bt(!0),kt(c))}function h1(e,t){let r=null,n=K;var i;if(K){r=it;for(var o=Kt(document.head);o!==null&&(o.nodeType!==Kr||o.data!==e);)o=ye(o);if(o===null)Bt(!1);else{var s=ye(o);o.remove(),kt(s)}}K||(i=document.head.appendChild(ie()));try{Tr(()=>t(i),fu|Yr)}finally{n&&(Bt(!0),kt(r))}}function f1(e,t,r){Ln(()=>{var n=Et(()=>t(e,r?.())||{});if(n?.destroy)return()=>n.destroy()})}function Ng(e,t){var r=void 0,n;qu(()=>{r!==(r=t())&&(n&&(Qt(n),n=null),r&&(n=de(()=>{Ln(()=>r(e))})))})}function pd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=pd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Wi(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=pd(e))&&(n&&(n+=" "),n+=t);return n}function ke(e){return typeof e=="object"?Wi(e):e??""}const yc=[...`
3
+ \r\f \v\uFEFF`];function kg(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var a=s+o;(s===0||yc.includes(n[s-1]))&&(a===n.length||yc.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function wc(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Zo(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Fg(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(Zo)),i&&c.push(...Object.keys(i).map(Zo));var u=0,f=-1;const b=e.length;for(var p=0;p<b;p++){var d=e[p];if(a?d==="/"&&e[p-1]==="*"&&(a=!1):o?o===d&&(o=!1):d==="/"&&e[p+1]==="*"?a=!0:d==='"'||d==="'"?o=d:d==="("?s++:d===")"&&s--,!a&&o===!1&&s===0){if(d===":"&&f===-1)f=p;else if(d===";"||p===b-1){if(f!==-1){var h=Zo(e.substring(u,f).trim());if(!c.includes(h)){d!==";"&&p++;var g=e.substring(u,p).trim();r+=" "+g+";"}}u=p+1,f=-1}}}}return n&&(r+=wc(n)),i&&(r+=wc(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Fe(e,t,r,n,i,o){var s=e.__className;if(K||s!==r||s===void 0){var a=kg(r,n,o);(!K||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var c in o){var u=!!o[c];(i==null||u!==!!i[c])&&e.classList.toggle(c,u)}return o}function Jo(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function Ui(e,t,r,n){var i=e.__style;if(K||i!==t){var o=Fg(t,n);(!K||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Jo(e,r?.[0],n[0]),Jo(e,r?.[1],n[1],"important")):Jo(e,r,n));return n}function Xi(e,t,r=!1){if(e.multiple){if(t==null)return;if(!mo(t))return Ef();for(var n of e.options)n.selected=t.includes(Jn(n));return}for(n of e.options){var i=Jn(n);if(Jf(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function vd(e){var t=new MutationObserver(()=>{Xi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),To(()=>{t.disconnect()})}function g1(e,t,r=t){var n=new WeakSet,i=!0;xo(e,"change",o=>{var s=o?"[selected]":":checked",a;if(e.multiple)a=[].map.call(e.querySelectorAll(s),Jn);else{var c=e.querySelector(s)??e.querySelector("option:not([disabled])");a=c&&Jn(c)}r(a),e.__value=a,mt!==null&&n.add(mt)}),Ln(()=>{var o=t();if(e===document.activeElement){var s=mt;if(n.has(s))return}if(Xi(e,o,i),i&&o===void 0){var a=e.querySelector(":checked");a!==null&&(o=Jn(a),r(o))}e.__value=o,i=!1}),vd(e)}function Jn(e){return"__value"in e?e.__value:e.value}const Yn=Symbol("class"),wn=Symbol("style"),md=Symbol("is custom element"),bd=Symbol("is html"),Rg=oi?"link":"LINK",Lg=oi?"input":"INPUT",Bg=oi?"option":"OPTION",Vg=oi?"select":"SELECT",Hg=oi?"progress":"PROGRESS";function Wg(e){if(K){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ct(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Ct(e,"checked",null),e.checked=i}}};e.__on_r=r,xe(r),Yu()}}function p1(e,t){var r=ha(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==Hg)||(e.value=t??"")}function da(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ct(e,t,r,n){var i=ha(e);K&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Rg)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[nf]=r),r==null?e.removeAttribute(t):typeof r!="string"&&yd(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ug(e,t,r,n,i=!1,o=!1){if(K&&i&&e.nodeName===Lg){var s=e,a=s.type==="checkbox"?"defaultChecked":"defaultValue";a in r||Wg(s)}var c=ha(e),u=c[md],f=!c[bd];let p=K&&u;p&&Bt(!1);var d=t||{},h=e.nodeName===Bg;for(var g in t)g in r||(r[g]=null);r.class?r.class=ke(r.class):(n||r[Yn])&&(r.class=null),r[wn]&&(r.style??=null);var b=yd(e);for(const O in r){let E=r[O];if(h&&O==="value"&&E==null){e.value=e.__value="",d[O]=E;continue}if(O==="class"){var w=e.namespaceURI==="http://www.w3.org/1999/xhtml";Fe(e,w,E,n,t?.[Yn],r[Yn]),d[O]=E,d[Yn]=r[Yn];continue}if(O==="style"){Ui(e,E,t?.[wn],r[wn]),d[O]=E,d[wn]=r[wn];continue}var S=d[O];if(!(E===S&&!(E===void 0&&e.hasAttribute(O)))){d[O]=E;var T=O[0]+O[1];if(T!=="$$")if(T==="on"){const F={},W="$$"+O;let R=O.slice(2);var x=hg(R);if(ug(R)&&(R=R.slice(0,-7),F.capture=!0),!x&&S){if(E!=null)continue;e.removeEventListener(R,d[W],F),d[W]=null}if(x)Qr(R,e,E),ld([R]);else if(E!=null){let G=function(B){d[O].call(this,B)};d[W]=ca(R,e,G,F)}}else if(O==="style")Ct(e,O,E);else if(O==="autofocus")tg(e,!!E);else if(!u&&(O==="__value"||O==="value"&&E!=null))e.value=e.__value=E;else if(O==="selected"&&h)da(e,E);else{var D=O;f||(D=gg(D));var N=D==="defaultValue"||D==="defaultChecked";if(E==null&&!u&&!N)if(c[O]=null,D==="value"||D==="checked"){let F=e;const W=t===void 0;if(D==="value"){let R=F.defaultValue;F.removeAttribute(D),F.defaultValue=R,F.value=F.__value=W?R:null}else{let R=F.defaultChecked;F.removeAttribute(D),F.defaultChecked=R,F.checked=W?R:!1}}else e.removeAttribute(O);else N||b.includes(D)&&(u||typeof E!="string")?(e[D]=E,D in c&&(c[D]=Gt)):typeof E!="function"&&Ct(e,D,E)}}}return p&&Bt(!0),d}function J(e,t,r=[],n=[],i=[],o,s=!1,a=!1){Nu(i,r,n,c=>{var u=void 0,f={},p=e.nodeName===Vg,d=!1;if(qu(()=>{var g=t(...c.map(l)),b=Ug(e,u,g,o,s,a);d&&p&&"value"in g&&Xi(e,g.value);for(let S of Object.getOwnPropertySymbols(f))g[S]||Qt(f[S]);for(let S of Object.getOwnPropertySymbols(g)){var w=g[S];S.description===yu&&(!u||w!==u[S])&&(f[S]&&Qt(f[S]),f[S]=de(()=>Ng(e,()=>w))),b[S]=w}u=b}),p){var h=e;Ln(()=>{Xi(h,u.value,!0),vd(h)})}d=!0})}function ha(e){return e.__attributes??={[md]:e.nodeName.includes("-"),[bd]:e.namespaceURI===mu}}var _c=new Map;function yd(e){var t=e.getAttribute("is")||e.nodeName,r=_c.get(t);if(r)return r;_c.set(t,r=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=uu(i);for(var s in n)n[s].set&&r.push(s);i=yo(i)}return r}let Qo=null;function zg(){if(Qo===null){var e=So("select");e.innerHTML=cd("<option><span>t</span></option>"),Qo=e.firstChild?.firstChild?.nodeType===1}return Qo}function wd(e,t){var r=K;zg()||(Bt(!1),e.textContent="",e.append($f("")));try{t()}finally{r&&(K?z(e):(Bt(!0),kt(e)))}}function Yg(e,t,r=t){var n=new WeakSet;xo(e,"input",async i=>{var o=i?e.defaultValue:e.value;if(o=$o(e)?ts(o):o,r(o),mt!==null&&n.add(mt),await id(),o!==(o=t())){var s=e.selectionStart,a=e.selectionEnd,c=e.value.length;if(e.value=o??"",a!==null){var u=e.value.length;s===a&&a===c&&u>c?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=s,e.selectionEnd=Math.min(a,u))}}}),(K&&e.defaultValue!==e.value||Et(t)==null&&e.value)&&(r($o(e)?ts(e.value):e.value),mt!==null&&n.add(mt)),ui(()=>{var i=t();if(e===document.activeElement){var o=mt;if(n.has(o))return}$o(e)&&i===ts(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function v1(e,t,r=t){xo(e,"change",n=>{var i=n?e.defaultChecked:e.checked;r(i)}),(K&&e.defaultChecked!==e.checked||Et(t)==null)&&r(e.checked),ui(()=>{var n=t();e.checked=!!n})}function $o(e){var t=e.type;return t==="number"||t==="range"}function ts(e){return e===""?null:+e}function m1(e,t,r=t){xo(e,"change",()=>{r(e.files)}),K&&e.files&&r(e.files),ui(()=>{e.files=t()})}function Sc(e,t){return e===t||e?.[rr]===t}function _d(e={},t,r,n){var i=Mt.r,o=dt;return Ln(()=>{var s,a;return ui(()=>{s=a,a=[],Et(()=>{e!==r(...a)&&(t(e,...a),s&&Sc(r(...s),e)&&t(null,...s))})}),()=>{let c=o;for(;c!==i&&c.parent!==null&&c.parent.f&ys;)c=c.parent;const u=()=>{a&&Sc(r(...a),e)&&t(null,...a)},f=c.teardown;c.teardown=()=>{u(),f?.()}}}),e}function Sd(e=!1){const t=Mt,r=t.l.u;if(!r)return;let n=()=>lg(t.s);if(e){let i=0,o={};const s=ci(()=>{let a=!1;const c=t.s;for(const u in c)c[u]!==o[u]&&(o[u]=c[u],a=!0);return a&&i++,i});n=()=>l(s)}r.b.length&&Rn(()=>{Cc(t,n),ms(r.b)}),nt(()=>{const i=Et(()=>r.m.map(rf));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&nt(()=>{Cc(t,n),ms(r.a)})}function Cc(e,t){if(e.l.s)for(const r of e.l.s)l(r);t()}function b1(e){var t=Ae(0);return function(){return arguments.length===1?(v(t,l(t)+1),arguments[0]):(l(t),e())}}const Kg={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function q(e,t,r){return new Proxy({props:e,exclude:t},Kg)}const jg={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(yn(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];yn(i)&&(i=i());const o=Nr(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(yn(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Nr(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===rr||t===Xs)return!1;for(let r of e.props)if(yn(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(yn(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function wt(...e){return new Proxy({props:e},jg)}function m(e,t,r,n){var i=!kn||(r&Cf)!==0,o=(r&Tf)!==0,s=(r&Pf)!==0,a=n,c=!0,u=()=>(c&&(c=!1,a=s?Et(n):n),a);let f;if(o){var p=rr in e||Xs in e;f=Nr(e,t)?.set??(p&&t in e?x=>e[t]=x:void 0)}var d,h=!1;o?[d,h]=Hf(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=u(),f&&(i&&ff(),f(d)));var g;if(i?g=()=>{var x=e[t];return x===void 0?u():(c=!0,x)}:g=()=>{var x=e[t];return x!==void 0&&(a=void 0),x===void 0?a:x},i&&(r&xf)===0)return g;if(f){var b=e.$$legacy;return(function(x,D){return arguments.length>0?((!i||!D||b||h)&&f(D?g():x),x):g()})}var w=!1,S=((r&Sf)!==0?ci:ra)(()=>(w=!1,g()));o&&l(S);var T=dt;return(function(x,D){if(arguments.length>0){const N=D?l(S):i&&o?qt(x):x;return v(S,N),w=!0,a!==void 0&&(a=N),x}return Lr&&w||(T.f&Ce)!==0?S.v:l(S)})}function y1(e){return class extends qg{constructor(t){super({component:e,...t})}}}class qg{#t;#e;constructor(t){var r=new Map,n=(o,s)=>{var a=ji(s,!1,!1);return r.set(o,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(o,s){return l(r.get(s)??n(s,Reflect.get(o,s)))},has(o,s){return s===Xs?!0:(l(r.get(s)??n(s,Reflect.get(o,s))),Reflect.has(o,s))},set(o,s,a){return v(r.get(s)??n(s,a),a),Reflect.set(o,s,a)}});this.#e=(t.hydrate?Sg:ua)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&ta(),this.#t=i.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||cu(this,o,{get(){return this.#e[o]},set(s){this.#e[o]=s},enumerable:!0});this.#e.$set=o=>{Object.assign(i,o)},this.#e.$destroy=()=>{hd(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}function hi(e){Mt===null&&Gs(),kn&&Mt.l!==null?Xg(Mt).m.push(e):nt(()=>{const t=Et(e);if(typeof t=="function")return t})}function w1(e){Mt===null&&Gs(),hi(()=>()=>Et(e))}function Xg(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Gg="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Gg);Nf();var Zg=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Jg=["difference","intersection","symmetricDifference","union"],xc=!1;class Is extends Set{#t=new Map;#e=I(0);#r=I(0);#n=He||-1;constructor(t){if(super(),t){for(var r of t)super.add(r);this.#r.v=super.size}xc||this.#o()}#i(t){return He===this.#n?I(t):Ae(t)}#o(){xc=!0;var t=Is.prototype,r=Set.prototype;for(const n of Zg)t[n]=function(...i){return l(this.#e),r[n].apply(this,i)};for(const n of Jg)t[n]=function(...i){l(this.#e);var o=r[n].apply(this,i);return new Is(o)}}has(t){var r=super.has(t),n=this.#t,i=n.get(t);if(i===void 0){if(!r)return l(this.#e),!1;i=this.#i(!0),n.set(t,i)}return l(i),r}add(t){return super.has(t)||(super.add(t),v(this.#r,super.size),pe(this.#e)),this}delete(t){var r=super.delete(t),n=this.#t,i=n.get(t);return i!==void 0&&(n.delete(t),v(i,!1)),r&&(v(this.#r,super.size),pe(this.#e)),r}clear(){if(super.size!==0){super.clear();var t=this.#t;for(var r of t.values())v(r,!1);t.clear(),v(this.#r,0),pe(this.#e)}}keys(){return this.values()}values(){return l(this.#e),super.values()}entries(){return l(this.#e),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return l(this.#r)}}class Ms extends Map{#t=new Map;#e=I(0);#r=I(0);#n=He||-1;constructor(t){if(super(),t){for(var[r,n]of t)super.set(r,n);this.#r.v=super.size}}#i(t){return He===this.#n?I(t):Ae(t)}has(t){var r=this.#t,n=r.get(t);if(n===void 0)if(super.has(t))n=this.#i(0),r.set(t,n);else return l(this.#e),!1;return l(n),!0}forEach(t,r){this.#o(),super.forEach(t,r)}get(t){var r=this.#t,n=r.get(t);if(n===void 0)if(super.has(t))n=this.#i(0),r.set(t,n);else{l(this.#e);return}return l(n),super.get(t)}set(t,r){var n=this.#t,i=n.get(t),o=super.get(t),s=super.set(t,r),a=this.#e;if(i===void 0)i=this.#i(0),n.set(t,i),v(this.#r,super.size),pe(a);else if(o!==r){pe(i);var c=a.reactions===null?null:new Set(a.reactions),u=c===null||!i.reactions?.every(f=>c.has(f));u&&pe(a)}return s}delete(t){var r=this.#t,n=r.get(t),i=super.delete(t);return n!==void 0&&(r.delete(t),v(n,-1)),i&&(v(this.#r,super.size),pe(this.#e)),i}clear(){if(super.size!==0){super.clear();var t=this.#t;v(this.#r,0);for(var r of t.values())v(r,-1);pe(this.#e),t.clear()}}#o(){l(this.#e);var t=this.#t;if(this.#r.v!==t.size){for(var r of super.keys())if(!t.has(r)){var n=this.#i(0);t.set(r,n)}}for([,n]of this.#t)l(n)}keys(){return l(this.#e),super.keys()}values(){return this.#o(),super.values()}entries(){return this.#o(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return l(this.#r),super.size}}class Qg{#t;#e;constructor(t,r){this.#t=t,this.#e=li(r)}get current(){return this.#e(),this.#t()}}const $g=/\(.+\)/,tp=new Set(["all","print","screen","and","or","not","only"]);class _1 extends Qg{constructor(t,r){let n=$g.test(t)||t.split(/[\s,]+/).some(o=>tp.has(o.trim()))?t:`(${t})`;const i=window.matchMedia(n);super(()=>i.matches,o=>bt(i,"change",o))}}function ep(e){return typeof e=="function"}function fi(e){return e!==null&&typeof e=="object"}const rp=["string","number","bigint","boolean"];function Ns(e){return e==null||rp.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Ns(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const En=Symbol("box"),Po=Symbol("is-writable");function _(e,t){const r=y(e);return t?{[En]:!0,[Po]:!0,get current(){return l(r)},set current(n){t(n)}}:{[En]:!0,get current(){return e()}}}function gi(e){return fi(e)&&En in e}function fa(e){return gi(e)&&Po in e}function Cd(e){return gi(e)?e:ep(e)?_(e):ae(e)}function np(e){return Object.entries(e).reduce((t,[r,n])=>gi(n)?(fa(n)?Object.defineProperty(t,r,{get(){return n.current},set(i){n.current=i}}):Object.defineProperty(t,r,{get(){return n.current}}),t):Object.assign(t,{[r]:n}),{})}function ip(e){return fa(e)?{[En]:!0,get current(){return e.current}}:e}function ae(e){let t=I(qt(e));return{[En]:!0,[Po]:!0,get current(){return l(t)},set current(r){v(t,r,!0)}}}function gn(e){let t=I(qt(e));return{[En]:!0,[Po]:!0,get current(){return l(t)},set current(r){v(t,r,!0)}}}gn.from=Cd;gn.with=_;gn.flatten=np;gn.readonly=ip;gn.isBox=gi;gn.isWritableBox=fa;function xd(...e){return function(t){for(const r of e)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):r.current?.call(this,t)}}}var Tc=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,op=/\n/g,sp=/^\s*/,ap=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,lp=/^:\s*/,cp=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,up=/^[;\s]*/,dp=/^\s+|\s+$/g,hp=`
4
+ `,Pc="/",Ac="*",$r="",fp="comment",gp="declaration";function pp(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function i(g){var b=g.match(op);b&&(r+=b.length);var w=g.lastIndexOf(hp);n=~w?g.length-w:n+g.length}function o(){var g={line:r,column:n};return function(b){return b.position=new s(g),u(),b}}function s(g){this.start=g,this.end={line:r,column:n},this.source=t.source}s.prototype.content=e;function a(g){var b=new Error(t.source+":"+r+":"+n+": "+g);if(b.reason=g,b.filename=t.source,b.line=r,b.column=n,b.source=e,!t.silent)throw b}function c(g){var b=g.exec(e);if(b){var w=b[0];return i(w),e=e.slice(w.length),b}}function u(){c(sp)}function f(g){var b;for(g=g||[];b=p();)b!==!1&&g.push(b);return g}function p(){var g=o();if(!(Pc!=e.charAt(0)||Ac!=e.charAt(1))){for(var b=2;$r!=e.charAt(b)&&(Ac!=e.charAt(b)||Pc!=e.charAt(b+1));)++b;if(b+=2,$r===e.charAt(b-1))return a("End of comment missing");var w=e.slice(2,b-2);return n+=2,i(w),e=e.slice(b),n+=2,g({type:fp,comment:w})}}function d(){var g=o(),b=c(ap);if(b){if(p(),!c(lp))return a("property missing ':'");var w=c(cp),S=g({type:gp,property:Dc(b[0].replace(Tc,$r)),value:w?Dc(w[0].replace(Tc,$r)):$r});return c(up),S}}function h(){var g=[];f(g);for(var b;b=d();)b!==!1&&(g.push(b),f(g));return g}return u(),h()}function Dc(e){return e?e.replace(dp,$r):$r}function vp(e,t){let r=null;if(!e||typeof e!="string")return r;const n=pp(e),i=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;const{property:s,value:a}=o;i?t(s,a,o):a&&(r=r||{},r[s]=a)}),r}const mp=/\d/,bp=["-","_","/","."];function yp(e=""){if(!mp.test(e))return e!==e.toLowerCase()}function wp(e){const t=[];let r="",n,i;for(const o of e){const s=bp.includes(o);if(s===!0){t.push(r),r="",n=void 0;continue}const a=yp(o);if(i===!1){if(n===!1&&a===!0){t.push(r),r=o,n=a;continue}if(n===!0&&a===!1&&r.length>1){const c=r.at(-1);t.push(r.slice(0,Math.max(0,r.length-1))),r=c+o,n=a;continue}}r+=o,n=a,i=s}return t.push(r),t}function Td(e){return e?wp(e).map(t=>Sp(t)).join(""):""}function _p(e){return Cp(Td(e||""))}function Sp(e){return e?e[0].toUpperCase()+e.slice(1):""}function Cp(e){return e?e[0].toLowerCase()+e.slice(1):""}function Zn(e){if(!e)return{};const t={};function r(n,i){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){t[Td(n)]=i;return}if(n.startsWith("--")){t[n]=i;return}t[_p(n)]=i}return vp(e,r),t}function on(...e){return(...t)=>{for(const r of e)typeof r=="function"&&r(...t)}}function xp(e,t){const r=RegExp(e,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,t):n}}const Tp=xp(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Pp(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Tp(t)}: ${e[t]};`).join(`
5
+ `)}function Ao(e={}){return Pp(e).replace(`
6
+ `," ")}const Ap=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Dp=new Set(Ap);function Op(e){return Dp.has(e)}function j(...e){const t={...e[0]};for(let r=1;r<e.length;r++){const n=e[r];if(n){for(const i of Object.keys(n)){const o=t[i],s=n[i],a=typeof o=="function",c=typeof s=="function";if(a&&Op(i)){const u=o,f=s;t[i]=xd(u,f)}else if(a&&c)t[i]=on(o,s);else if(i==="class"){const u=Ns(o),f=Ns(s);u&&f?t[i]=Wi(o,s):u?t[i]=Wi(o):f&&(t[i]=Wi(s))}else if(i==="style"){const u=typeof o=="object",f=typeof s=="object",p=typeof o=="string",d=typeof s=="string";if(u&&f)t[i]={...o,...s};else if(u&&d){const h=Zn(s);t[i]={...o,...h}}else if(p&&f){const h=Zn(o);t[i]={...h,...s}}else if(p&&d){const h=Zn(o),g=Zn(s);t[i]={...h,...g}}else u?t[i]=o:f?t[i]=s:p?t[i]=o:d&&(t[i]=s)}else t[i]=s!==void 0?s:o}for(const i of Object.getOwnPropertySymbols(n)){const o=t[i],s=n[i];t[i]=s!==void 0?s:o}}}return typeof t.style=="object"&&(t.style=Ao(t.style).replaceAll(`
7
+ `," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const Ep={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%)"},Pd=Ao(Ep),Ad=typeof window<"u"?window:void 0;function Ip(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}let Mp=class{#t;#e;constructor(t={}){const{window:r=Ad,document:n=r?.document}=t;r!==void 0&&(this.#t=n,this.#e=li(i=>{const o=bt(r,"focusin",i),s=bt(r,"focusout",i);return()=>{o(),s()}}))}get current(){return this.#e?.(),this.#t?Ip(this.#t):null}};new Mp;function Dd(e){return typeof e=="function"}function Np(e,t){if(Dd(e)){const n=e();return n===void 0?t:n}return e===void 0?t:e}let Vt=class{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return xu(this.#e)}get(){const t=Ki(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const r=Ki(this.#e);return r===void 0?t:r}set(t){return Cu(this.#e,t)}};function Do(e,t){let r=I(null);const n=y(()=>Np(t,250));function i(...o){if(l(r))l(r).timeout&&clearTimeout(l(r).timeout);else{let s,a;const c=new Promise((u,f)=>{s=u,a=f});v(r,{timeout:null,runner:null,promise:c,resolve:s,reject:a},!0)}return l(r).runner=async()=>{if(!l(r))return;const s=l(r);v(r,null);try{s.resolve(await e.apply(this,o))}catch(a){s.reject(a)}},l(r).timeout=setTimeout(l(r).runner,l(n)),l(r).promise}return i.cancel=async()=>{(!l(r)||l(r).timeout===null)&&(await new Promise(o=>setTimeout(o,0)),!l(r)||l(r).timeout===null)||(clearTimeout(l(r).timeout),l(r).reject("Cancelled"),v(r,null))},i.runScheduledNow=async()=>{(!l(r)||!l(r).timeout)&&(await new Promise(o=>setTimeout(o,0)),!l(r)||!l(r).timeout)||(clearTimeout(l(r).timeout),l(r).timeout=null,await l(r).runner?.())},Object.defineProperty(i,"pending",{enumerable:!0,get(){return!!l(r)?.timeout}}),i}function kp(e,t){switch(e){case"post":nt(t);break;case"pre":Rn(t);break}}function Od(e,t,r,n={}){const{lazy:i=!1}=n;let o=!i,s=Array.isArray(e)?[]:void 0;kp(t,()=>{const a=Array.isArray(e)?e.map(u=>u()):e();if(!o){o=!0,s=a;return}const c=Et(()=>r(a,s));return s=a,c})}function et(e,t,r){Od(e,"post",t,r)}function Fp(e,t,r){Od(e,"pre",t,r)}et.pre=Fp;function Oc(e){return Dd(e)?e():e}class Rp{#t={width:0,height:0};#e=!1;#r;#n;#i;#o=y(()=>(l(this.#s)?.(),this.getSize().width));#a=y(()=>(l(this.#s)?.(),this.getSize().height));#s=y(()=>{const t=Oc(this.#n);if(t)return li(r=>{if(!this.#i)return;const n=new this.#i.ResizeObserver(i=>{this.#e=!0;for(const o of i){const s=this.#r.box==="content-box"?o.contentBoxSize:o.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),this.#t.height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}r()});return n.observe(t),()=>{this.#e=!1,n.disconnect()}})});constructor(t,r={box:"border-box"}){this.#i=r.window??Ad,this.#r=r,this.#n=t,this.#t={width:0,height:0}}calculateSize(){const t=Oc(this.#n);if(!t||!this.#i)return;const r=t.offsetWidth,n=t.offsetHeight;if(this.#r.box==="border-box")return{width:r,height:n};const i=this.#i.getComputedStyle(t),o=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),s=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),a=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),c=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),u=r-o-a,f=n-s-c;return{width:u,height:f}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return l(this.#s)?.(),this.getSize()}get width(){return l(this.#o)}get height(){return l(this.#a)}}class ga{#t=I(!1);constructor(){nt(()=>(Et(()=>v(this.#t,!0)),()=>{v(this.#t,!1)}))}get current(){return l(this.#t)}}class Ed{#t=()=>{};#e=y(()=>this.#t());constructor(t,r){let n;r!==void 0&&(n=r),this.#t=()=>{try{return n}finally{n=t()}}}get current(){return l(this.#e)}}function jr(e){nt(()=>()=>{e()})}function Oo(e){nt(()=>Et(()=>e()))}function Id(e,t){return setTimeout(t,e)}function Br(e){id().then(e)}const Lp=1,Bp=9,Vp=11;function ks(e){return fi(e)&&e.nodeType===Lp&&typeof e.nodeName=="string"}function Md(e){return fi(e)&&e.nodeType===Bp}function Hp(e){return fi(e)&&e.constructor?.name==="VisualViewport"}function Wp(e){return fi(e)&&e.nodeType!==void 0}function Nd(e){return Wp(e)&&e.nodeType===Vp&&"host"in e}function Up(e,t){if(!e||!t||!ks(e)||!ks(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&Nd(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function pa(e){return Md(e)?e:Hp(e)?e.document:e?.ownerDocument??document}function va(e){return Nd(e)?va(e.host):Md(e)?e.defaultView??window:ks(e)?e.ownerDocument?.defaultView??window:window}function zp(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}class Pr{element;#t=y(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return l(this.#t)}set root(t){v(this.#t,t)}constructor(t){typeof t=="function"?this.element=_(t):this.element=t}getDocument=()=>pa(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>zp(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,r)=>this.getWindow().setTimeout(t,r);clearTimeout=t=>this.getWindow().clearTimeout(t)}function rt(e,t){return{[cg()]:r=>gi(e)?(e.current=r,Et(()=>t?.(r)),()=>{"isConnected"in r&&r.isConnected||(e.current=null,t?.(null))}):(e(r),Et(()=>t?.(r)),()=>{"isConnected"in r&&r.isConnected||(e(null),t?.(null))})}}function he(e){return e?"true":"false"}function kd(e){return e?"true":void 0}function ft(e){return e?"":void 0}function Gi(e){return e?!0:void 0}function qr(e){return e?"open":"closed"}function Yp(e){return e?"checked":"unchecked"}function Fd(e,t){return t?"mixed":e?"true":"false"}class Kp{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(r=>[r,this.getAttr(r)]))}getAttr(t,r){return r?`data-${r}-${t}`:`${this.#e}${t}`}selector(t,r){return`[${this.getAttr(t,r)}]`}}function we(e){const t=new Kp(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const $e="ArrowDown",pi="ArrowLeft",vi="ArrowRight",Re="ArrowUp",ma="End",ar="Enter",jp="Escape",ba="Home",Rd="PageDown",Ld="PageUp",We=" ",Ec="Tab";function qp(e){return window.getComputedStyle(e).getPropertyValue("direction")}function Xp(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?pi:vi,vertical:$e}[t]}function Gp(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?vi:pi,vertical:Re}[t]}function Zp(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Xp(e,t),prevKey:Gp(e,t)}}const mi=typeof document<"u",Fs=Jp();function Jp(){return mi&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function yr(e){return e instanceof HTMLElement}function vr(e){return e instanceof Element}function Qp(e){return e instanceof Element||e instanceof SVGElement}function Zi(e){return e.pointerType==="touch"}function $p(e){return e.matches(":focus-visible")}function tv(e){return e!==null}class ev{#t;#e=gn(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,r,n=!1){const i=this.#t.rootNode.current;if(!i||!t)return;const o=this.getCandidateNodes();if(!o.length)return;const s=o.indexOf(t),a=qp(i),{nextKey:c,prevKey:u}=Zp(a,this.#t.orientation.current),f=this.#t.loop.current,p={[c]:s+1,[u]:s-1,[ba]:0,[ma]:o.length-1};if(n){const g=c===$e?vi:$e,b=u===Re?pi:Re;p[g]=s+1,p[b]=s-1}let d=p[r.key];if(d===void 0)return;r.preventDefault(),d<0&&f?d=o.length-1:d===o.length&&f&&(d=0);const h=o[d];if(h)return h.focus(),this.#e.current=h.id,this.#t.onCandidateFocus?.(h),h}getTabIndex(t){const r=this.getCandidateNodes(),n=this.#e.current!==null;return t&&!n&&r[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const r=this.#t.rootNode.current?.querySelector(`#${t}`);!r||!yr(r)||r.focus()}}class rv{#t;#e=null;constructor(t){this.#t=t,jr(()=>this.#r())}#r(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#r();const r=this.#t.ref.current;if(r){if(typeof r.getAnimations!="function"){this.#n(t);return}this.#e=window.requestAnimationFrame(()=>{const n=r.getAnimations();if(n.length===0){this.#n(t);return}Promise.allSettled(n.map(i=>i.finished)).then(()=>{this.#n(t)})})}}#n(t){const r=()=>{t()};this.#t.afterTick?Br(r):r()}}class ln{#t;#e;#r;#n=I(!1);constructor(t){this.#t=t,v(this.#n,t.open.current,!0),this.#e=t.enabled??!0,this.#r=new rv({ref:this.#t.ref,afterTick:this.#t.open}),et(()=>this.#t.open.current,r=>{r&&v(this.#n,!0),this.#e&&this.#r.run(()=>{r===this.#t.open.current&&(this.#t.open.current||v(this.#n,!1),this.#t.onComplete?.())})})}get shouldRender(){return l(this.#n)}}function st(){}function lt(e,t){return`bits-${e}`}const nv=we({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),cn=new Vt("Dialog.Root | AlertDialog.Root");class ya{static create(t){const r=cn.getOr(null);return cn.set(new ya(t,r))}opts;#t=I(null);get triggerNode(){return l(this.#t)}set triggerNode(t){v(this.#t,t,!0)}#e=I(null);get contentNode(){return l(this.#e)}set contentNode(t){v(this.#e,t,!0)}#r=I(null);get overlayNode(){return l(this.#r)}set overlayNode(t){v(this.#r,t,!0)}#n=I(null);get descriptionNode(){return l(this.#n)}set descriptionNode(t){v(this.#n,t,!0)}#i=I(void 0);get contentId(){return l(this.#i)}set contentId(t){v(this.#i,t,!0)}#o=I(void 0);get titleId(){return l(this.#o)}set titleId(t){v(this.#o,t,!0)}#a=I(void 0);get triggerId(){return l(this.#a)}set triggerId(t){v(this.#a,t,!0)}#s=I(void 0);get descriptionId(){return l(this.#s)}set descriptionId(t){v(this.#s,t,!0)}#l=I(null);get cancelNode(){return l(this.#l)}set cancelNode(t){v(this.#l,t,!0)}#c=I(0);get nestedOpenCount(){return l(this.#c)}set nestedOpenCount(t){v(this.#c,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,r){this.opts=t,this.parent=r,this.depth=r?r.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new ln({ref:_(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ln({ref:_(()=>this.overlayNode),open:this.opts.open,enabled:!0}),et(()=>this.opts.open.current,n=>{this.parent&&(n?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),jr(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>nv.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=y(()=>({"data-state":qr(this.opts.open.current)}));get sharedProps(){return l(this.#u)}set sharedProps(t){v(this.#u,t)}}class wa{static create(t){return new wa(t,cn.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===We||t.key===ar)&&(t.preventDefault(),this.root.handleClose())}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class _a{static create(t){return new _a(t,cn.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.root.titleId=this.opts.id.current,this.attachment=rt(this.opts.ref),et.pre(()=>this.opts.id.current,n=>{this.root.titleId=n})}#t=y(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class Sa{static create(t){return new Sa(t,cn.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.root.descriptionId=this.opts.id.current,this.attachment=rt(this.opts.ref,n=>{this.root.descriptionNode=n}),et.pre(()=>this.opts.id.current,n=>{this.root.descriptionId=n})}#t=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class Ca{static create(t){return new Ca(t,cn.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref,n=>{this.root.contentNode=n,this.root.contentId=n?.id})}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){v(this.#t,t)}#e=y(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":ft(this.root.nestedOpenCount>0),"data-nested":ft(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class xa{static create(t){return new xa(t,cn.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref,n=>this.root.overlayNode=n)}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){v(this.#t,t)}#e=y(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":ft(this.root.nestedOpenCount>0),"data-nested":ft(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}var iv=U("<div><!></div>");function x1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"level",3,2),s=q(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=_a.create({id:_(()=>n()),level:_(()=>o()),ref:_(()=>i(),h=>i(h))}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=h=>{var g=A(),b=P(g);M(b,()=>t.child,()=>({props:l(c)})),C(h,g)},d=h=>{var g=iv();J(g,()=>({...l(c)}));var b=Y(g);M(b,()=>t.children??L),z(g),C(h,g)};k(f,h=>{t.child?h(p):h(d,-1)})}C(e,u),H()}function ov(e,t){var r=A(),n=P(r);Tg(n,()=>t.children,i=>{var o=A(),s=P(o);M(s,()=>t.children??L),C(i,o)}),C(e,r)}const sv=new Vt("BitsConfig");function av(){const e=new lv(null,{});return sv.getOr(e).opts}class lv{opts;constructor(t,r){const n=cv(t,r);this.opts={defaultPortalTo:n(i=>i.defaultPortalTo),defaultLocale:n(i=>i.defaultLocale)}}}function cv(e,t){return r=>_(()=>{const i=r(t)?.current;if(i!==void 0)return i;if(e!==null)return r(e.opts)?.current})}function Bd(e,t){return r=>{const n=av();return _(()=>{const i=r();if(i!==void 0)return i;const o=e(n).current;return o!==void 0?o:t})}}const uv=Bd(e=>e.defaultLocale,"en"),dv=Bd(e=>e.defaultPortalTo,"body");function T1(e,t){V(t,!0);const r=dv(()=>t.to),n=Rf();let i=y(o);function o(){if(!mi||t.disabled)return null;let p=null;return typeof r.current=="string"?p=document.querySelector(r.current):p=r.current,p}let s;function a(){s&&(hd(s),s=null)}et([()=>l(i),()=>t.disabled],([p,d])=>{if(!p||d){a();return}return s=ua(ov,{target:p,props:{children:t.children},context:n}),()=>{a()}});var c=A(),u=P(c);{var f=p=>{var d=A(),h=P(d);M(h,()=>t.children??L),C(p,d)};k(u,p=>{t.disabled&&p(f)})}C(e,c),H()}function Ic(e,t=500){let r=null;const n=(...i)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...i)},t)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Vd(e,t){return e===t||e.contains(t)}function Hd(e){return e?.ownerDocument??document}function hv(e,t){const{clientX:r,clientY:n}=e,i=t.getBoundingClientRect();return r<i.left||r>i.right||n<i.top||n>i.bottom}var Wd=["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] *)"],Ji=Wd.join(","),Ud=typeof Element>"u",un=Ud?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Qi=!Ud&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},$i=function(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&(typeof t.closest=="function"?t.closest("[inert]"):$i(t.parentNode));return s},fv=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},zd=function(t,r,n){if($i(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Ji));return r&&un.call(t,Ji)&&i.unshift(t),i=i.filter(n),i},to=function(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!$i(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=to(c,!0,n);n.flatten?i.push.apply(i,u):i.push({scopeParent:s,candidates:u})}else{var f=un.call(s,Ji);f&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var p=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),d=!$i(p,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(p&&d){var h=to(p===!0?s.children:p.children,!0,n);n.flatten?i.push.apply(i,h):i.push({scopeParent:s,candidates:h})}else o.unshift.apply(o,s.children)}}return i},Yd=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Kd=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||fv(t))&&!Yd(t)?0:t.tabIndex},gv=function(t,r){var n=Kd(t);return n<0&&r&&!Yd(t)?0:n},pv=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},jd=function(t){return t.tagName==="INPUT"},vv=function(t){return jd(t)&&t.type==="hidden"},mv=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},bv=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},yv=function(t){if(!t.name)return!0;var r=t.form||Qi(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){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",s.message),!1}var o=bv(i,t.form);return!o||o===t},wv=function(t){return jd(t)&&t.type==="radio"},_v=function(t){return wv(t)&&!yv(t)},Sv=function(t){var r,n=t&&Qi(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,a,c;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!o&&i;){var u,f,p;n=Qi(i),i=(u=n)===null||u===void 0?void 0:u.host,o=!!((f=i)!==null&&f!==void 0&&(p=f.ownerDocument)!==null&&p!==void 0&&p.contains(i))}}return o},Mc=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},Cv=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(n==="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 s=un.call(t,"details>summary:first-of-type"),a=s?t.parentElement:t;if(un.call(a,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,f=Qi(t);if(u&&!u.shadowRoot&&i(u)===!0)return Mc(t);t.assignedSlot?t=t.assignedSlot:!u&&f!==t.ownerDocument?t=f.host:t=u}t=c}if(Sv(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Mc(t);return!1},xv=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return un.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},eo=function(t,r){return!(r.disabled||vv(r)||Cv(r,t)||mv(r)||xv(r))},Rs=function(t,r){return!(_v(r)||Kd(r)<0||!eo(t,r))},Tv=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},qd=function(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,c=gv(a,s),u=s?qd(i.candidates):a;c===0?s?r.push.apply(r,u):r.push(a):n.push({documentOrder:o,tabIndex:c,item:i,isScope:s,content:u})}),n.sort(pv).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},Pv=function(t,r){r=r||{};var n;return r.getShadowRoot?n=to([t],r.includeContainer,{filter:Rs.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:Tv}):n=zd(t,r.includeContainer,Rs.bind(null,r)),qd(n)},Av=function(t,r){r=r||{};var n;return r.getShadowRoot?n=to([t],r.includeContainer,{filter:eo.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=zd(t,r.includeContainer,eo.bind(null,r)),n},Dv=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return un.call(t,Ji)===!1?!1:Rs(r,t)},Ov=Wd.concat("iframe:not([inert]):not([inert] *)").join(","),Ev=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return un.call(t,Ov)===!1?!1:eo(r,t)};function Iv(e,t){const r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function es(e,t){return e>=0&&e<t.length}function Mv(e,t,r=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?r?e[0]:void 0:e[t+1]}function Nv(e,t,r=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?r?e[e.length-1]:void 0:e[t-1]}function kv(e,t,r,n=!0){if(e.length===0||t<0||t>=e.length)return;let i=t+r;return n?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function Fv(e,t,r,n=!0){if(e.length===0||t<0||t>=e.length)return;let i=t-r;return n?i=(i%e.length+e.length)%e.length:i=Math.max(0,Math.min(i,e.length-1)),e[i]}function Ta(e,t,r){const n=t.toLowerCase();if(n.endsWith(" ")){const p=n.slice(0,-1);if(e.filter(b=>b.toLowerCase().startsWith(p)).length<=1)return Ta(e,p,r);const h=r?.toLowerCase();if(h&&h.startsWith(p)&&h.charAt(p.length)===" "&&t.trim()===p)return r;const g=e.filter(b=>b.toLowerCase().startsWith(n));if(g.length>0){const b=r?e.indexOf(r):-1;return Nc(g,Math.max(b,0)).find(T=>T!==r)||r}}const o=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=o.toLowerCase(),a=r?e.indexOf(r):-1;let c=Nc(e,Math.max(a,0));o.length===1&&(c=c.filter(p=>p!==r));const f=c.find(p=>p?.toLowerCase().startsWith(s));return f!==r?f:void 0}function Nc(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const Rv={afterMs:1e4,onChange:st};function Xd(e,t){const{afterMs:r,onChange:n,getWindow:i}={...Rv,...t};let o=null,s=I(qt(e));function a(){return i().setTimeout(()=>{v(s,e,!0),n?.(e)},r)}return nt(()=>()=>{o&&i().clearTimeout(o)}),_(()=>l(s),c=>{v(s,c,!0),n?.(c),o&&i().clearTimeout(o),o=a()})}class Lv{#t;#e;#r=y(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#n=y(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Xd("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,r){if(!r.length)return;this.#e.current=this.#e.current+t;const n=l(this.#n)(),i=r.find(c=>c===n)?.textContent?.trim()??"",o=r.map(c=>c.textContent?.trim()??""),s=Ta(o,this.#e.current,i),a=r.find(c=>c.textContent?.trim()===s);return a&&l(this.#r)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}const Bv="data-context-menu-trigger",Vv="data-context-menu-content";we({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??=new Map;class Pa{static create(t){return new Pa(t)}opts;#t;#e;#r={pointerdown:!1};#n=!1;#i=!1;#o=void 0;#a;#s=st;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,nt(()=>{this.#o=Hd(this.opts.ref.current)});let r=st;const n=()=>{this.#v(),globalThis.bitsDismissableLayers.delete(this),this.#h.destroy(),r()};et([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return Id(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),r(),r=this.#c())}),n}),jr(()=>{this.#v.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#h.destroy(),this.#s(),r()})}#l=t=>{t.defaultPrevented||this.opts.ref.current&&Br(()=>{!this.opts.ref.current||this.#p(t.target)||t.target&&!this.#i&&this.#a.current?.(t)})};#c(){return on(bt(this.#o,"pointerdown",on(this.#f,this.#d),{capture:!0}),bt(this.#o,"pointerdown",on(this.#g,this.#h)),bt(this.#o,"focusin",this.#l))}#u=t=>{let r=t;r.defaultPrevented&&(r=kc(t)),this.#t.current(t)};#h=Ic(t=>{if(!this.opts.ref.current){this.#s();return}const r=this.opts.isValidEvent.current(t,this.opts.ref.current)||Uv(t,this.opts.ref.current);if(!this.#n||this.#m()||!r){this.#s();return}let n=t;if(n.defaultPrevented&&(n=kc(n)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=bt(this.#o,"click",this.#u,{once:!0})):this.#t.current(n)},10);#f=t=>{this.#r[t.type]=!0};#g=t=>{this.#r[t.type]=!1};#d=()=>{this.opts.ref.current&&(this.#n=Wv(this.opts.ref.current))};#p=t=>this.opts.ref.current?Vd(this.opts.ref.current,t):!1;#v=Ic(()=>{for(const t in this.#r)this.#r[t]=!1;this.#n=!1},20);#m(){return Object.values(this.#r).some(Boolean)}#y=()=>{this.#i=!0};#b=()=>{this.#i=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Hv(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:r}])=>r==="close"||r==="ignore")}function Wv(e){const t=[...globalThis.bitsDismissableLayers],r=Hv(t);if(r)return r[0].opts.ref.current===e;const[n]=t[0];return n.opts.ref.current===e}function Uv(e,t){const r=e.target;if(!Qp(r))return!1;const n=!!r.closest(`[${Bv}]`);if("button"in e&&e.button>0&&!n)return!1;if("button"in e&&e.button===0&&n)return!0;const i=!!t.closest(`[${Vv}]`);return n&&i?!1:Hd(r).documentElement.contains(r)&&!Vd(t,r)&&hv(e,t)}function kc(e){const t=e.currentTarget,r=e.target;let n;e instanceof PointerEvent?n=new PointerEvent(e.type,e):n=new PointerEvent("pointerdown",e);let i=!1;return new Proxy(n,{get:(s,a)=>a==="currentTarget"?t:a==="target"?r:a==="preventDefault"?()=>{i=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:a==="defaultPrevented"?i:a in s?s[a]:e[a]})}function Gd(e,t){V(t,!0);let r=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"onInteractOutside",3,st),i=m(t,"onFocusOutside",3,st),o=m(t,"isValidEvent",3,()=>!1);const s=Pa.create({id:_(()=>t.id),interactOutsideBehavior:_(()=>r()),onInteractOutside:_(()=>n()),enabled:_(()=>t.enabled),onFocusOutside:_(()=>i()),isValidEvent:_(()=>o()),ref:t.ref});var a=A(),c=P(a);M(c,()=>t.children??L,()=>({props:s.props})),C(e,a),H()}globalThis.bitsEscapeLayers??=new Map;class Aa{static create(t){return new Aa(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Pr(this.opts.ref);let r=st;et(()=>t.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),r=this.#t()),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>bt(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==jp||!zv(this))return;const r=new KeyboardEvent(t.type,t);t.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)}}function zv(e){const t=[...globalThis.bitsEscapeLayers],r=t.findLast(([i,{current:o}])=>o==="close"||o==="ignore");if(r)return r[0]===e;const[n]=t[0];return n===e}function Zd(e,t){V(t,!0);let r=m(t,"escapeKeydownBehavior",3,"close"),n=m(t,"onEscapeKeydown",3,st);Aa.create({escapeKeydownBehavior:_(()=>r()),onEscapeKeydown:_(()=>n()),enabled:_(()=>t.enabled),ref:t.ref});var i=A(),o=P(i);M(o,()=>t.children??L),C(e,i),H()}class Da{static instance;#t=ae([]);#e=new WeakMap;#r=new WeakMap;static getInstance(){return this.instance||(this.instance=new Da),this.instance}register(t){const r=this.getActive();r&&r!==t&&r.pause();const n=document.activeElement;n&&n!==document.body&&this.#r.set(t,n),this.#t.current=this.#t.current.filter(i=>i!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(n=>n!==t);const r=this.getActive();r&&r.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,r){this.#e.set(t,r)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,r){this.#r.set(t,r)}getPreFocusMemory(t){return this.#r.get(t)}clearPreFocusMemory(t){this.#r.delete(t)}}class Oa{#t=!1;#e=null;#r=Da.getInstance();#n=[];#i;constructor(t){this.#i=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#o(){for(const t of this.#n)t();this.#n=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#r.register(this),this.#l(),this.#a()}unmount(){this.#e&&(this.#o(),this.#s(),this.#r.unregister(this),this.#r.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const r=this.#u();r?(r.focus(),this.#r.setFocusMemory(this,r)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const r=this.#r.getPreFocusMemory(this);if(r&&document.contains(r))try{r.focus()}catch{document.body.focus()}}}#l(){if(!this.#e||!this.#i.trap.current)return;const t=this.#e,r=t.ownerDocument,n=s=>{if(this.#t||!this.#r.isActiveScope(this))return;const a=s.target;if(!a)return;if(t.contains(a))this.#r.setFocusMemory(this,a);else{const u=this.#r.getFocusMemory(this);if(u&&t.contains(u)&&Ev(u))s.preventDefault(),u.focus();else{const f=this.#u(),p=this.#h()[0];(f||p||t).focus()}}},i=s=>{if(!this.#i.loop||this.#t||s.key!=="Tab"||!this.#r.isActiveScope(this))return;const a=this.#c();if(a.length===0)return;const c=a[0],u=a[a.length-1];!s.shiftKey&&r.activeElement===u?(s.preventDefault(),c.focus()):s.shiftKey&&r.activeElement===c&&(s.preventDefault(),u.focus())};this.#n.push(bt(r,"focusin",n,{capture:!0}),bt(t,"keydown",i));const o=new MutationObserver(()=>{const s=this.#r.getFocusMemory(this);if(s&&!t.contains(s)){const a=this.#u(),c=this.#h()[0],u=a||c;u?(u.focus(),this.#r.setFocusMemory(this,u)):t.focus()}});o.observe(t,{childList:!0,subtree:!0}),this.#n.push(()=>o.disconnect())}#c(){return this.#e?Pv(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#c()[0]||null}#h(){return this.#e?Av(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let r=null;return et([()=>t.ref.current,()=>t.enabled.current],([n,i])=>{n&&i?(r||(r=new Oa(t)),r.mount(n)):r&&(r.unmount(),r=null)}),jr(()=>{r?.unmount()}),{get props(){return{tabindex:-1}}}}}function Jd(e,t){V(t,!0);let r=m(t,"enabled",3,!1),n=m(t,"trapFocus",3,!1),i=m(t,"loop",3,!1),o=m(t,"onCloseAutoFocus",3,st),s=m(t,"onOpenAutoFocus",3,st);const a=Oa.use({enabled:_(()=>r()),trap:_(()=>n()),loop:i(),onCloseAutoFocus:_(()=>o()),onOpenAutoFocus:_(()=>s()),ref:t.ref});var c=A(),u=P(c);M(u,()=>t.focusScope??L,()=>({props:a.props})),C(e,c),H()}globalThis.bitsTextSelectionLayers??=new Map;class Ea{static create(t){return new Ea(t)}opts;domContext;#t=st;constructor(t){this.opts=t,this.domContext=new Pr(t.ref);let r=st;et(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=this.#e()),()=>{r(),this.#n(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return on(bt(this.domContext.getDocument(),"pointerdown",this.#r),bt(this.domContext.getDocument(),"pointerup",xd(this.#n,this.opts.onPointerUp.current)))}#r=t=>{const r=this.opts.ref.current,n=t.target;!yr(r)||!yr(n)||!this.opts.enabled.current||!Kv(this)||!Up(r,n)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Yv(r,this.domContext.getDocument().body)))};#n=()=>{this.#t(),this.#t=st}}const Fc=e=>e.style.userSelect||e.style.webkitUserSelect;function Yv(e,t){const r=Fc(t),n=Fc(e);return Ii(t,"none"),Ii(e,"text"),()=>{Ii(t,r),Ii(e,n)}}function Ii(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Kv(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const r=t.at(-1);return r?r[0]===e:!1}function Qd(e,t){V(t,!0);let r=m(t,"preventOverflowTextSelection",3,!0),n=m(t,"onPointerDown",3,st),i=m(t,"onPointerUp",3,st);Ea.create({id:_(()=>t.id),onPointerDown:_(()=>n()),onPointerUp:_(()=>i()),enabled:_(()=>t.enabled&&r()),ref:t.ref});var o=A(),s=P(o);M(s,()=>t.children??L),C(e,o),H()}globalThis.bitsIdCounter??={current:0};function Xr(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class jv{#t;#e=0;#r=I();#n;constructor(t){this.#t=t}#i(){this.#e-=1,this.#n&&this.#e<=0&&(this.#n(),v(this.#r,void 0),this.#n=void 0)}get(...t){return this.#e+=1,l(this.#r)===void 0&&(this.#n=rg(()=>{v(this.#r,this.#t(...t),!0)})),nt(()=>()=>{this.#i()}),l(this.#r)}}const zi=new Ms;let Mi=I(null),rs=null,Kn=null,jn=!1;const Rc=_(()=>{for(const e of zi.values())if(e)return!0;return!1});let ns=null;const qv=new jv(()=>{function e(){document.body.setAttribute("style",l(Mi)??""),document.body.style.removeProperty("--scrollbar-width"),Fs&&rs?.(),v(Mi,null)}function t(){Kn!==null&&(window.clearTimeout(Kn),Kn=null)}function r(i,o){t(),jn=!0,ns=Date.now();const s=ns,a=()=>{Kn=null,ns===s&&($d(zi)?jn=!1:(jn=!1,o()))},c=i===null?24:i;Kn=window.setTimeout(a,c)}function n(){l(Mi)===null&&zi.size===0&&!jn&&v(Mi,document.body.getAttribute("style"),!0)}return et(()=>Rc.current,()=>{if(!Rc.current)return;n(),jn=!1;const i=getComputedStyle(document.documentElement),o=getComputedStyle(document.body),s=i.scrollbarGutter?.includes("stable")||o.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(o.paddingRight??"0",10)+a,margin:Number.parseInt(o.marginRight??"0",10)};a>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Fs&&(rs=bt(document,"touchmove",f=>{f.target===document.documentElement&&(f.touches.length>1||f.preventDefault())},{passive:!1})),Br(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),jr(()=>()=>{rs?.()}),{get lockMap(){return zi},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:t,ensureInitialStyleCaptured:n}});class Xv{#t=Xr();#e;#r=()=>null;#n;locked;constructor(t,r=()=>null){this.#e=t,this.#r=r,this.#n=qv.get(),this.#n&&(this.#n.cancelPendingCleanup(),this.#n.ensureInitialStyleCaptured(),this.#n.lockMap.set(this.#t,this.#e??!1),this.locked=_(()=>this.#n.lockMap.get(this.#t)??!1,n=>this.#n.lockMap.set(this.#t,n)),jr(()=>{if(this.#n.lockMap.delete(this.#t),$d(this.#n.lockMap))return;const n=this.#r();this.#n.scheduleCleanupIfNoNewLocks(n,()=>{this.#n.resetBodyStyle()})}))}}function $d(e){for(const[t,r]of e)if(r)return!0;return!1}function ro(e,t){V(t,!0);let r=m(t,"preventScroll",3,!0),n=m(t,"restoreScrollDelay",3,null);r()&&new Xv(r(),()=>n()),H()}var Gv=U("<div><!></div>");function P1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"forceMount",3,!1),o=m(t,"ref",15,null),s=q(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=xa.create({id:_(()=>n()),ref:_(()=>o(),d=>o(d))}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=d=>{var h=A(),g=P(h);{var b=S=>{var T=A(),x=P(T);{let D=y(()=>({props:j(l(c)),...a.snippetProps}));M(x,()=>t.child,()=>l(D))}C(S,T)},w=S=>{var T=Gv();J(T,D=>({...D}),[()=>j(l(c))]);var x=Y(T);M(x,()=>t.children??L,()=>a.snippetProps),z(T),C(S,T)};k(g,S=>{t.child?S(b):S(w,-1)})}C(d,h)};k(f,d=>{(a.shouldRender||i())&&d(p)})}C(e,u),H()}var Zv=U("<div><!></div>");function A1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=q(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const s=Sa.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=Zv();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}function is(e,t){return e-t*Math.floor(e/t)}const th=1721426;function Ni(e,t,r,n){t=Ia(e,t);let i=t-1,o=-2;return r<=2?o=0:Yi(t)&&(o=-1),th-1+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*r-362)/12+o+n)}function Yi(e){return e%4===0&&(e%100!==0||e%400===0)}function Ia(e,t){return e==="BC"?1-t:t}function Jv(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const Qv={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class In{fromJulianDay(t){let r=t,n=r-th,i=Math.floor(n/146097),o=is(n,146097),s=Math.floor(o/36524),a=is(o,36524),c=Math.floor(a/1461),u=is(a,1461),f=Math.floor(u/365),p=i*400+s*100+c*4+f+(s!==4&&f!==4?1:0),[d,h]=Jv(p),g=r-Ni(d,h,1,1),b=2;r<Ni(d,h,3,1)?b=0:Yi(h)&&(b=1);let w=Math.floor(((g+b)*12+373)/367),S=r-Ni(d,h,w,1)+1;return new Wr(d,h,w,S)}toJulianDay(t){return Ni(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Qv[Yi(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Yi(t.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const $v={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Er(e,t){return t=ve(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function Eo(e,t){return t=ve(t,e.calendar),e=Ls(e),t=Ls(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function D1(e,t){return eh(e.calendar,t.calendar)&&Eo(e,t)}function eh(e,t){var r,n,i,o;return(o=(i=(r=e.isEqual)===null||r===void 0?void 0:r.call(e,t))!==null&&i!==void 0?i:(n=t.isEqual)===null||n===void 0?void 0:n.call(t,e))!==null&&o!==void 0?o:e.identifier===t.identifier}function tm(e,t){return Er(e,rm(t))}function rh(e,t,r){let n=e.calendar.toJulianDay(e),i=am(t),o=Math.ceil(n+1-i)%7;return o<0&&(o+=7),o}function em(e){return tr(Date.now(),e)}function rm(e){return um(em(e))}function nh(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function nm(e,t){return Lc(e)-Lc(t)}function Lc(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let os=null,im=!1;function Mr(){return os==null&&(os=new Intl.DateTimeFormat().resolvedOptions().timeZone),os}function ih(){return im}function Ls(e){return e.subtract({days:e.day-1})}function om(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}const Bc=new Map,ss=new Map;function sm(e){if(Intl.Locale){let r=Bc.get(e);return r||(r=new Intl.Locale(e).maximize().region,r&&Bc.set(e,r)),r}let t=e.split("-")[1];return t==="u"?void 0:t}function am(e){let t=ss.get(e);if(!t){if(Intl.Locale){let n=new Intl.Locale(e);if("getWeekInfo"in n&&(t=n.getWeekInfo(),t))return ss.set(e,t),t.firstDay}let r=sm(e);if(e.includes("-fw-")){let n=e.split("-fw-")[1].split("-")[0];n==="mon"?t={firstDay:1}:n==="tue"?t={firstDay:2}:n==="wed"?t={firstDay:3}:n==="thu"?t={firstDay:4}:n==="fri"?t={firstDay:5}:n==="sat"?t={firstDay:6}:t={firstDay:0}}else e.includes("-ca-iso8601")?t={firstDay:1}:t={firstDay:r&&$v[r]||0};ss.set(e,t)}return t.firstDay}function Vr(e){e=ve(e,new In);let t=Ia(e.era,e.year);return oh(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function oh(e,t,r,n,i,o,s){let a=new Date;return a.setUTCHours(n,i,o,s),a.setUTCFullYear(e,t-1,r),a.getTime()}function ti(e,t){if(t==="UTC")return 0;if(e>0&&t===Mr()&&!ih())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:i,hour:o,minute:s,second:a}=sh(e,t);return oh(r,n,i,o,s,a,0)-Math.floor(e/1e3)*1e3}const Vc=new Map;function sh(e,t){let r=Vc.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Vc.set(t,r));let n=r.formatToParts(new Date(e)),i={};for(let o of n)o.type!=="literal"&&(i[o.type]=o.value);return{year:i.era==="BC"||i.era==="B"?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour==="24"?0:+i.hour,minute:+i.minute,second:+i.second}}const no=864e5;function lm(e,t){let r=Vr(e),n=r-ti(r-no,t),i=r-ti(r+no,t);return ah(e,t,n,i)}function ah(e,t,r,n){return(r===n?[r]:[r,n]).filter(o=>cm(e,t,o))}function cm(e,t,r){let n=sh(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Je(e,t,r="compatible"){let n=Hr(e);if(t==="UTC")return Vr(n);if(t===Mr()&&r==="compatible"&&!ih()){n=ve(n,new In);let c=new Date,u=Ia(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let i=Vr(n),o=ti(i-no,t),s=ti(i+no,t),a=ah(n,t,i-o,i-s);if(a.length===1)return a[0];if(a.length>1)switch(r){case"compatible":case"earlier":return a[0];case"later":return a[a.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(i-o,i-s);case"compatible":case"later":return Math.max(i-o,i-s);case"reject":throw new RangeError("No such absolute time found")}}function lh(e,t,r="compatible"){return new Date(Je(e,t,r))}function tr(e,t){let r=ti(e,t),n=new Date(e+r),i=n.getUTCFullYear(),o=n.getUTCMonth()+1,s=n.getUTCDate(),a=n.getUTCHours(),c=n.getUTCMinutes(),u=n.getUTCSeconds(),f=n.getUTCMilliseconds();return new lr(i<1?"BC":"AD",i<1?-i+1:i,o,s,t,r,a,c,u,f)}function um(e){return new Wr(e.calendar,e.era,e.year,e.month,e.day)}function Hr(e,t){let r=0,n=0,i=0,o=0;if("timeZone"in e)({hour:r,minute:n,second:i,millisecond:o}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:i,millisecond:o}=t),new wr(e.calendar,e.era,e.year,e.month,e.day,r,n,i,o)}function ve(e,t){if(eh(e.calendar,t))return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,dn(n),n}function dm(e,t,r){if(e instanceof lr)return e.timeZone===t?e:fm(e,t);let n=Je(e,t,r);return tr(n,t)}function hm(e){let t=Vr(e)-e.offset;return new Date(t)}function fm(e,t){let r=Vr(e)-e.offset;return ve(tr(r,t),e.calendar)}const qn=36e5;function Io(e,t){let r=e.copy(),n="hour"in r?mm(r,t):0;Bs(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,Vs(r),ch(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,gm(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let i=r.calendar.getYearsInEra(r);if(r.year>i){var o,s;let c=(o=(s=r.calendar).isInverseEra)===null||o===void 0?void 0:o.call(s,r);r.year=i,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let a=r.calendar.getMonthsInYear(r);return r.month>a&&(r.month=a,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function Bs(e,t){var r,n;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function Vs(e){for(;e.month<1;)Bs(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Bs(e,1)}function gm(e){for(;e.day<1;)e.month--,Vs(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Vs(e)}function ch(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function dn(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),ch(e)}function uh(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function dh(e,t){return Io(e,uh(t))}function Ma(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),dn(r),r}function io(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),vm(r),r}function pm(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ki(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ki(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ki(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ki(e.hour,24),t}function vm(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ki(e,t){let r=e%t;return r<0&&(r+=t),r}function mm(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,pm(e)}function Na(e,t,r,n){let i=e.copy();switch(t){case"era":{let a=e.calendar.getEras(),c=a.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=mr(c,r,0,a.length-1,n?.round),i.era=a[c],dn(i);break}case"year":var o,s;!((o=(s=i.calendar).isInverseEra)===null||o===void 0)&&o.call(s,i)&&(r=-r),i.year=mr(e.year,r,-1/0,9999,n?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case"month":i.month=mr(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":i.day=mr(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),dn(i),i}function hh(e,t,r,n){let i=e.copy();switch(t){case"hour":{let o=e.hour,s=0,a=23;if(n?.hourCycle===12){let c=o>=12;s=c?12:0,a=c?23:11}i.hour=mr(o,r,s,a,n?.round);break}case"minute":i.minute=mr(e.minute,r,0,59,n?.round);break;case"second":i.second=mr(e.second,r,0,59,n?.round);break;case"millisecond":i.millisecond=mr(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return i}function mr(e,t,r,n,i=!1){if(i){e+=Math.sign(t),e<r&&(e=n);let o=Math.abs(t);t>0?e=Math.ceil(e/o)*o:e=Math.floor(e/o)*o,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function fh(e,t){let r;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let i=Io(Hr(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});r=Je(i,e.timeZone)}else r=Vr(e)-e.offset;r+=t.milliseconds||0,r+=(t.seconds||0)*1e3,r+=(t.minutes||0)*6e4,r+=(t.hours||0)*36e5;let n=tr(r,e.timeZone);return ve(n,e.calendar)}function bm(e,t){return fh(e,uh(t))}function ym(e,t,r,n){switch(t){case"hour":{let i=0,o=23;if(n?.hourCycle===12){let g=e.hour>=12;i=g?12:0,o=g?23:11}let s=Hr(e),a=ve(io(s,{hour:i}),new In),c=[Je(a,e.timeZone,"earlier"),Je(a,e.timeZone,"later")].filter(g=>tr(g,e.timeZone).day===a.day)[0],u=ve(io(s,{hour:o}),new In),f=[Je(u,e.timeZone,"earlier"),Je(u,e.timeZone,"later")].filter(g=>tr(g,e.timeZone).day===u.day).pop(),p=Vr(e)-e.offset,d=Math.floor(p/qn),h=p%qn;return p=mr(d,r,Math.floor(c/qn),Math.floor(f/qn),n?.round)*qn+h,ve(tr(p,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return hh(e,t,r,n);case"era":case"year":case"month":case"day":{let i=Na(Hr(e),t,r,n),o=Je(i,e.timeZone);return ve(tr(o,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function wm(e,t,r){let n=Hr(e),i=io(Ma(n,t),t);if(i.compare(n)===0)return e;let o=Je(i,e.timeZone,r);return ve(tr(o,e.timeZone),e.calendar)}const _m=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Sm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Cm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::?(\d{2}))?(?::?(\d{2}))?)?\[(.*?)\]$/,gh=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ph(e){let t=e.match(_m);if(!t)throw gh.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let r=new Wr(Yt(t[1],0,9999),Yt(t[2],1,12),1);return r.day=Yt(t[3],1,r.calendar.getDaysInMonth(r)),r}function vh(e){let t=e.match(Sm);if(!t)throw gh.test(e)?new Error(`Invalid ISO 8601 date time string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date time string: "+e);let r=Yt(t[1],-9999,9999),n=r<1?"BC":"AD",i=new wr(n,r<1?-r+1:r,Yt(t[2],1,12),1,t[4]?Yt(t[4],0,23):0,t[5]?Yt(t[5],0,59):0,t[6]?Yt(t[6],0,59):0,t[7]?Yt(t[7],0,1/0)*1e3:0);return i.day=Yt(t[3],0,i.calendar.getDaysInMonth(i)),i}function mh(e,t){let r=e.match(Cm);if(!r)throw new Error("Invalid ISO 8601 date time string: "+e);let n=Yt(r[1],-9999,9999),i=n<1?"BC":"AD",o=new lr(i,n<1?-n+1:n,Yt(r[2],1,12),1,r[11],0,r[4]?Yt(r[4],0,23):0,r[5]?Yt(r[5],0,59):0,r[6]?Yt(r[6],0,59):0,r[7]?Yt(r[7],0,1/0)*1e3:0);o.day=Yt(r[3],0,o.calendar.getDaysInMonth(o));let s=Hr(o),a;if(r[8]){let f=Yt(r[8],-23,23);var c,u;if(o.offset=Math.sign(f)*(Math.abs(f)*36e5+Yt((c=r[9])!==null&&c!==void 0?c:"0",0,59)*6e4+Yt((u=r[10])!==null&&u!==void 0?u:"0",0,59)*1e3),a=Vr(o)-o.offset,!lm(s,o.timeZone).includes(a))throw new Error(`Offset ${yh(o.offset)} is invalid for ${ka(o)} in ${o.timeZone}`)}else a=Je(Hr(s),o.timeZone,t);return tr(a,o.timeZone)}function Yt(e,t,r){let n=Number(e);if(n<t||n>r)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${r}`);return n}function xm(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function bh(e){let t=ve(e,new In),r;return t.era==="BC"?r=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):r=String(t.year).padStart(4,"0"),`${r}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function ka(e){return`${bh(e)}T${xm(e)}`}function yh(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let r=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),o=`${t}${String(r).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return i!==0&&(o+=`:${String(i).padStart(2,"0")}`),o}function Tm(e){return`${ka(e)}${yh(e.offset)}[${e.timeZone}]`}function Pm(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fa(e,t,r){Pm(e,t),t.set(e,r)}function Ra(e){let t=typeof e[0]=="object"?e.shift():new In,r;if(typeof e[0]=="string")r=e.shift();else{let s=t.getEras();r=s[s.length-1]}let n=e.shift(),i=e.shift(),o=e.shift();return[t,r,n,i,o]}var Am=new WeakMap;class Wr{copy(){return this.era?new Wr(this.calendar,this.era,this.year,this.month,this.day):new Wr(this.calendar,this.year,this.month,this.day)}add(t){return Io(this,t)}subtract(t){return dh(this,t)}set(t){return Ma(this,t)}cycle(t,r,n){return Na(this,t,r,n)}toDate(t){return lh(this,t)}toString(){return bh(this)}compare(t){return nh(this,t)}constructor(...t){Fa(this,Am,{writable:!0,value:void 0});let[r,n,i,o,s]=Ra(t);this.calendar=r,this.era=n,this.year=i,this.month=o,this.day=s,dn(this)}}var Dm=new WeakMap;class wr{copy(){return this.era?new wr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new wr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Io(this,t)}subtract(t){return dh(this,t)}set(t){return Ma(io(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Na(this,t,r,n);default:return hh(this,t,r,n)}}toDate(t,r){return lh(this,t,r)}toString(){return ka(this)}compare(t){let r=nh(this,t);return r===0?nm(this,Hr(t)):r}constructor(...t){Fa(this,Dm,{writable:!0,value:void 0});let[r,n,i,o,s]=Ra(t);this.calendar=r,this.era=n,this.year=i,this.month=o,this.day=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,dn(this)}}var Om=new WeakMap;class lr{copy(){return this.era?new lr(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new lr(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return fh(this,t)}subtract(t){return bm(this,t)}set(t,r){return wm(this,t,r)}cycle(t,r,n){return ym(this,t,r,n)}toDate(){return hm(this)}toString(){return Tm(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-dm(t,this.timeZone).toDate().getTime()}constructor(...t){Fa(this,Om,{writable:!0,value:void 0});let[r,n,i,o,s]=Ra(t),a=t.shift(),c=t.shift();this.calendar=r,this.era=n,this.year=i,this.month=o,this.day=s,this.timeZone=a,this.offset=c,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,dn(this)}}let as=new Map;class Ge{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} – ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),i=this.formatter.formatToParts(r);return[...n.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return Mm()&&(this.resolvedHourCycle||(this.resolvedHourCycle=Nm(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=wh(t,r),this.options=r}}const Em={true:{ja:"h11"},false:{}};function wh(e,t={}){if(typeof t.hour12=="boolean"&&Im()){t={...t};let i=Em[String(t.hour12)][e.split("-")[0]],o=t.hour12?"h12":"h23";t.hourCycle=i??o,delete t.hour12}let r=e+(t?Object.entries(t).sort((i,o)=>i[0]<o[0]?-1:1).join():"");if(as.has(r))return as.get(r);let n=new Intl.DateTimeFormat(e,t);return as.set(r,n),n}let ls=null;function Im(){return ls==null&&(ls=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ls}let cs=null;function Mm(){return cs==null&&(cs=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),cs}function Nm(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=wh(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(o=>o.type==="hour").value,10),i=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(o=>o.type==="hour").value,10);if(n===0&&i===23)return"h23";if(n===24&&i===23)return"h24";if(n===0&&i===11)return"h11";if(n===12&&i===11)return"h12";throw new Error("Unexpected hour cycle result")}function km(e){if(!mi||!e)return null;let t=e.querySelector("[data-bits-announcer]");const r=i=>{const o=e.createElement("div");return o.role="log",o.ariaLive=i,o.setAttribute("aria-relevant","additions"),o};if(!yr(t)){const i=e.createElement("div");i.style.cssText=Pd,i.setAttribute("data-bits-announcer",""),i.appendChild(r("assertive")),i.appendChild(r("polite")),t=i,e.body.insertBefore(t,e.body.firstChild)}return{getLog:i=>{if(!yr(t))return null;const o=t.querySelector(`[aria-live="${i}"]`);return yr(o)?o:null}}}function Hc(e){const t=km(e);function r(n,i="assertive",o=7500){if(!t||!mi||!e)return;const s=t.getLog(i),a=e.createElement("div");return typeof n=="number"?n=n.toString():n===null?n="Empty":n=n.trim(),a.innerText=n,i==="assertive"?s?.replaceChildren(a):s?.appendChild(a),setTimeout(()=>{a.remove()},o)}return{announce:r}}const Fm={defaultValue:void 0,granularity:"day"};function Rm(e){const t={...Fm,...e},{defaultValue:r,granularity:n,minValue:i,maxValue:o}=t;if(Array.isArray(r)&&r.length)return r[r.length-1];if(r&&!Array.isArray(r))return r;{let s=new Date;i&&s<i.toDate(Mr())?s=i.toDate(Mr()):o&&s>o.toDate(Mr())&&(s=o.toDate(Mr()));const a=s.getFullYear(),c=s.getMonth()+1,u=s.getDate();return["hour","minute","second"].includes(n??"day")?new wr(a,c,u,0,0,0):new Wr(a,c,u)}}function _h(e,t){let r;return t instanceof lr?r=mh(e):t instanceof wr?r=vh(e):r=ph(e),r.calendar!==t.calendar?ve(r,t.calendar):r}function Ve(e,t=Mr()){return e instanceof lr?e.toDate():e.toDate(t)}function Lm(e){if(e instanceof Wr)return"date";if(e instanceof wr)return"datetime";if(e instanceof lr)return"zoneddatetime";throw new Error("Unknown date type")}function Bm(e,t){switch(t){case"date":return ph(e);case"datetime":return vh(e);case"zoneddatetime":return mh(e);default:throw new Error(`Unknown date type: ${t}`)}}function Vm(e){return e instanceof wr}function Sh(e){return e instanceof lr}function Hs(e){return Vm(e)||Sh(e)}function Hm(e){if(e instanceof Date){const t=e.getFullYear(),r=e.getMonth()+1;return new Date(t,r,0).getDate()}else return e.set({day:100}).day}function ei(e,t){return e.compare(t)<0}function Wm(e,t){return e.compare(t)>0}function Wc(e,t,r){const n=rh(e,r);return t>n?e.subtract({days:n+7-t}):t===n?e:e.subtract({days:n-t})}function Uc(e,t,r){const n=rh(e,r),i=t===0?6:t-1;return n===i?e:n>i?e.add({days:7-n+i}):e.add({days:i-n})}const Um={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function zm(e){let t=e.initialLocale;function r(h){t=h}function n(){return t}function i(h,g){return new Ge(t,g).format(h)}function o(h,g=!0){return Hs(h)&&g?i(Ve(h),{dateStyle:"long",timeStyle:"long"}):i(Ve(h),{dateStyle:"long"})}function s(h){if(typeof e.monthFormat.current!="function"&&typeof e.yearFormat.current!="function")return new Ge(t,{month:e.monthFormat.current,year:e.yearFormat.current}).format(h);const g=typeof e.monthFormat.current=="function"?e.monthFormat.current(h.getMonth()+1):new Ge(t,{month:e.monthFormat.current}).format(h),b=typeof e.yearFormat.current=="function"?e.yearFormat.current(h.getFullYear()):new Ge(t,{year:e.yearFormat.current}).format(h);return`${g} ${b}`}function a(h){return new Ge(t,{month:"long"}).format(h)}function c(h){return new Ge(t,{year:"numeric"}).format(h)}function u(h,g){return Sh(h)?new Ge(t,{...g,timeZone:h.timeZone}).formatToParts(Ve(h)):new Ge(t,g).formatToParts(Ve(h))}function f(h,g="narrow"){return new Ge(t,{weekday:g}).format(h)}function p(h,g=void 0){return new Ge(t,{hour:"numeric",minute:"numeric",hourCycle:g===24?"h23":void 0}).formatToParts(h).find(S=>S.type==="dayPeriod")?.value==="PM"?"PM":"AM"}function d(h,g,b={}){const w={...Um,...b},T=u(h,w).find(x=>x.type===g);return T?T.value:""}return{setLocale:r,getLocale:n,fullMonth:a,fullYear:c,fullMonthAndYear:s,toParts:u,custom:i,part:d,dayPeriod:p,selectedDate:o,dayOfWeek:f}}function Ym(e){return!(!yr(e)||!e.hasAttribute("data-bits-day"))}function zc(e,t){const r=[];let n=e.add({days:1});const i=t;for(;n.compare(i)<0;)r.push(n),n=n.add({days:1});return r}function us(e){const{dateObj:t,weekStartsOn:r,fixedWeeks:n,locale:i}=e,o=Hm(t),s=Array.from({length:o},(w,S)=>t.set({day:S+1})),a=Ls(t),c=om(t),u=r!==void 0?Wc(a,r,"en-US"):Wc(a,0,i),f=r!==void 0?Uc(c,r,"en-US"):Uc(c,0,i),p=zc(u.subtract({days:1}),a),d=zc(c,f.add({days:1})),h=p.length+s.length+d.length;if(n&&h<42){const w=42-h;let S=d[d.length-1];S||(S=t.add({months:1}).set({day:1}));let T=w;d.length===0&&(T=w-1,d.push(S));const x=Array.from({length:T},(D,N)=>{const O=N+1;return S.add({days:O})});d.push(...x)}const g=p.concat(s,d),b=Iv(g,7);return{value:t,dates:g,weeks:b}}function bi(e){const{numberOfMonths:t,dateObj:r,...n}=e,i=[];if(!t||t===1)return i.push(us({...n,dateObj:r})),i;i.push(us({...n,dateObj:r}));for(let o=1;o<t;o++){const s=r.add({months:o});i.push(us({...n,dateObj:s}))}return i}function ds(e){return e?Array.from(e.querySelectorAll("[data-bits-day]:not([data-disabled]):not([data-outside-visible-months])")).filter(r=>yr(r)):[]}function Yc(e,t){const r=e.getAttribute("data-value");r&&(t.current=_h(r,t.current))}function Km({node:e,add:t,placeholder:r,calendarNode:n,isPrevButtonDisabled:i,isNextButtonDisabled:o,months:s,numberOfMonths:a}){const c=ds(n);if(!c.length)return;const f=c.indexOf(e)+t;if(es(f,c)){const p=c[f];return Yc(p,r),p.focus()}if(f<0){if(i)return;const p=s[0]?.value;if(!p)return;r.current=p.subtract({months:a}),Br(()=>{const d=ds(n);if(!d.length)return;const h=d.length-Math.abs(f);if(es(h,d)){const g=d[h];return Yc(g,r),g.focus()}})}if(f>=c.length){if(o)return;const p=s[0]?.value;if(!p)return;r.current=p.add({months:a}),Br(()=>{const d=ds(n);if(!d.length)return;const h=f-c.length;if(es(h,d))return d[h].focus()})}}const Kc=[$e,Re,pi,vi],jc=[ar,We];function jm({event:e,handleCellClick:t,shiftFocus:r,placeholderValue:n}){const i=e.target;if(!Ym(i)||!Kc.includes(e.key)&&!jc.includes(e.key))return;e.preventDefault();const o={[$e]:7,[Re]:-7,[pi]:-1,[vi]:1};if(Kc.includes(e.key)){const s=o[e.key];s!==void 0&&r(i,s)}if(jc.includes(e.key)){const s=i.getAttribute("data-value");if(!s)return;t(e,_h(s,n))}}function qm({months:e,setMonths:t,numberOfMonths:r,pagedNavigation:n,weekStartsOn:i,locale:o,fixedWeeks:s,setPlaceholder:a}){const c=e[0]?.value;if(c)if(n)a(c.add({months:r}));else{const u=c.add({months:1}),f=bi({dateObj:u,weekStartsOn:i,locale:o,fixedWeeks:s,numberOfMonths:r});a(u),t(f)}}function Xm({months:e,setMonths:t,numberOfMonths:r,pagedNavigation:n,weekStartsOn:i,locale:o,fixedWeeks:s,setPlaceholder:a}){const c=e[0]?.value;if(c)if(n)a(c.subtract({months:r}));else{const u=c.subtract({months:1}),f=bi({dateObj:u,weekStartsOn:i,locale:o,fixedWeeks:s,numberOfMonths:r});a(u),t(f)}}function Gm({months:e,formatter:t,weekdayFormat:r}){if(!e.length)return[];const i=e[0].weeks[0];return i?i.map(o=>t.dayOfWeek(Ve(o),r)):[]}function Zm(e){nt(()=>{const t=e.weekStartsOn.current,r=e.locale.current,n=e.fixedWeeks.current,i=e.numberOfMonths.current;Et(()=>{const o=e.placeholder.current;if(!o)return;const s={weekStartsOn:t,locale:r,fixedWeeks:n,numberOfMonths:i};e.setMonths(bi({...s,dateObj:o}))})})}function Jm({calendarNode:e,label:t,accessibleHeadingId:r}){const n=pa(e),i=n.createElement("div");i.style.cssText=Ao({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute",whiteSpace:"nowrap",width:"1px"});const o=n.createElement("div");return o.textContent=t,o.id=r,o.role="heading",o.ariaLevel="2",e.insertBefore(i,e.firstChild),i.appendChild(o),()=>{const s=n.getElementById(r);s&&(i.parentElement?.removeChild(i),s.remove())}}function Qm({placeholder:e,getVisibleMonths:t,weekStartsOn:r,locale:n,fixedWeeks:i,numberOfMonths:o,setMonths:s}){nt(()=>{e.current,Et(()=>{if(t().some(c=>Eo(c,e.current)))return;const a={weekStartsOn:r.current,locale:n.current,fixedWeeks:i.current,numberOfMonths:o.current};s(bi({...a,dateObj:e.current}))})})}function $m({maxValue:e,months:t,disabled:r}){if(!e||!t.length)return!1;if(r)return!0;const n=t[t.length-1]?.value;if(!n)return!1;const i=n.add({months:1}).set({day:1});return Wm(i,e)}function tb({minValue:e,months:t,disabled:r}){if(!e||!t.length)return!1;if(r)return!0;const n=t[0]?.value;if(!n)return!1;const i=n.subtract({months:1}).set({day:35});return ei(i,e)}function eb({months:e,locale:t,formatter:r}){if(!e.length)return"";if(t!==r.getLocale()&&r.setLocale(t),e.length===1){const f=Ve(e[0].value);return`${r.fullMonthAndYear(f)}`}const n=Ve(e[0].value),i=Ve(e[e.length-1].value),o=r.fullMonth(n),s=r.fullMonth(i),a=r.fullYear(n),c=r.fullYear(i);return a===c?`${o} - ${s} ${c}`:`${o} ${a} - ${s} ${c}`}function rb({fullCalendarLabel:e,id:t,isInvalid:r,disabled:n,readonly:i}){return{id:t,role:"application","aria-label":e,"data-invalid":ft(r),"data-disabled":ft(n),"data-readonly":ft(i)}}function nb(e){if(!mi)return;const t=Array.from(e.querySelectorAll("[data-bits-day]:not([aria-disabled=true])"));if(t.length===0)return;const r=t[0],n=r?.getAttribute("data-value"),i=r?.getAttribute("data-type");if(!(!n||!i))return Bm(n,i)}function ib({ref:e,placeholder:t,defaultPlaceholder:r,minValue:n,maxValue:i,isDateDisabled:o}){function s(a){return!!(o.current(a)||n.current&&ei(a,n.current)||i.current&&ei(i.current,a))}et(()=>e.current,()=>{e.current&&t.current&&Er(t.current,r)&&s(r)&&(t.current=nb(e.current)??r)})}function ob(e,t){return!e||!t?e:Hs(e)&&Hs(t)?e.set({hour:t.hour,minute:t.minute,millisecond:t.millisecond,second:t.second}):e}const sb=we({component:"calendar",parts:["root","grid","cell","next-button","prev-button","day","grid-body","grid-head","grid-row","head-cell","header","heading","month-select","year-select"]});function ab(e){const t=new Date().getFullYear(),r=Math.max(e.placeholderYear,t);let n,i;if(e.minValue)n=e.minValue.year;else{const s=r-100;n=e.placeholderYear<s?e.placeholderYear-10:s}e.maxValue?i=e.maxValue.year:i=r+10,n>i&&(n=i);const o=i-n+1;return Array.from({length:o},(s,a)=>n+a)}const Ee=new Vt("Calendar.Root | RangeCalender.Root");class La{static create(t){return Ee.set(new La(t))}opts;#t=y(()=>this.months.map(t=>t.value));get visibleMonths(){return l(this.#t)}set visibleMonths(t){v(this.#t,t)}formatter;accessibleHeadingId=Xr();domContext;attachment;#e=I(qt([]));get months(){return l(this.#e)}set months(t){v(this.#e,t,!0)}announcer;constructor(t){this.opts=t,this.attachment=rt(this.opts.ref),this.domContext=new Pr(t.ref),this.announcer=Hc(null),this.formatter=zm({initialLocale:this.opts.locale.current,monthFormat:this.opts.monthFormat,yearFormat:this.opts.yearFormat}),this.setMonths=this.setMonths.bind(this),this.nextPage=this.nextPage.bind(this),this.prevPage=this.prevPage.bind(this),this.prevYear=this.prevYear.bind(this),this.nextYear=this.nextYear.bind(this),this.setYear=this.setYear.bind(this),this.setMonth=this.setMonth.bind(this),this.isOutsideVisibleMonths=this.isOutsideVisibleMonths.bind(this),this.isDateDisabled=this.isDateDisabled.bind(this),this.isDateSelected=this.isDateSelected.bind(this),this.shiftFocus=this.shiftFocus.bind(this),this.handleCellClick=this.handleCellClick.bind(this),this.handleMultipleUpdate=this.handleMultipleUpdate.bind(this),this.handleSingleUpdate=this.handleSingleUpdate.bind(this),this.onkeydown=this.onkeydown.bind(this),this.getBitsAttr=this.getBitsAttr.bind(this),hi(()=>{this.announcer=Hc(this.domContext.getDocument())}),this.months=bi({dateObj:this.opts.placeholder.current,weekStartsOn:this.opts.weekStartsOn.current,locale:this.opts.locale.current,fixedWeeks:this.opts.fixedWeeks.current,numberOfMonths:this.opts.numberOfMonths.current}),this.#o(),this.#a(),this.#s(),Qm({placeholder:this.opts.placeholder,getVisibleMonths:()=>this.visibleMonths,weekStartsOn:this.opts.weekStartsOn,locale:this.opts.locale,fixedWeeks:this.opts.fixedWeeks,numberOfMonths:this.opts.numberOfMonths,setMonths:r=>this.months=r}),Zm({fixedWeeks:this.opts.fixedWeeks,locale:this.opts.locale,numberOfMonths:this.opts.numberOfMonths,placeholder:this.opts.placeholder,setMonths:this.setMonths,weekStartsOn:this.opts.weekStartsOn}),et(()=>this.fullCalendarLabel,r=>{const n=this.domContext.getElementById(this.accessibleHeadingId);n&&(n.textContent=r)}),et(()=>this.opts.value.current,()=>{const r=this.opts.value.current;if(Array.isArray(r)&&r.length){const n=r[r.length-1];n&&this.opts.placeholder.current!==n&&(this.opts.placeholder.current=n)}else!Array.isArray(r)&&r&&this.opts.placeholder.current!==r&&(this.opts.placeholder.current=r)}),ib({placeholder:t.placeholder,defaultPlaceholder:t.defaultPlaceholder,isDateDisabled:t.isDateDisabled,maxValue:t.maxValue,minValue:t.minValue,ref:t.ref})}setMonths(t){this.months=t}#r=y(()=>Gm({months:this.months,formatter:this.formatter,weekdayFormat:this.opts.weekdayFormat.current}));get weekdays(){return l(this.#r)}set weekdays(t){v(this.#r,t)}#n=y(()=>Et(()=>this.opts.placeholder.current.year));get initialPlaceholderYear(){return l(this.#n)}set initialPlaceholderYear(t){v(this.#n,t)}#i=y(()=>ab({minValue:this.opts.minValue.current,maxValue:this.opts.maxValue.current,placeholderYear:this.initialPlaceholderYear}));get defaultYears(){return l(this.#i)}set defaultYears(t){v(this.#i,t)}#o(){nt(()=>{if(Et(()=>this.opts.initialFocus.current)){const r=this.opts.ref.current?.querySelector("[data-focused]");r&&r.focus()}})}#a(){nt(()=>this.opts.ref.current?Jm({calendarNode:this.opts.ref.current,label:this.fullCalendarLabel,accessibleHeadingId:this.accessibleHeadingId}):void 0)}#s(){Rn(()=>{this.formatter.getLocale()!==this.opts.locale.current&&this.formatter.setLocale(this.opts.locale.current)})}nextPage(){qm({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:t=>this.opts.placeholder.current=t,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}prevPage(){Xm({fixedWeeks:this.opts.fixedWeeks.current,locale:this.opts.locale.current,numberOfMonths:this.opts.numberOfMonths.current,pagedNavigation:this.opts.pagedNavigation.current,setMonths:this.setMonths,setPlaceholder:t=>this.opts.placeholder.current=t,weekStartsOn:this.opts.weekStartsOn.current,months:this.months})}nextYear(){this.opts.placeholder.current=this.opts.placeholder.current.add({years:1})}prevYear(){this.opts.placeholder.current=this.opts.placeholder.current.subtract({years:1})}setYear(t){this.opts.placeholder.current=this.opts.placeholder.current.set({year:t})}setMonth(t){this.opts.placeholder.current=this.opts.placeholder.current.set({month:t})}#l=y(()=>$m({maxValue:this.opts.maxValue.current,months:this.months,disabled:this.opts.disabled.current}));get isNextButtonDisabled(){return l(this.#l)}set isNextButtonDisabled(t){v(this.#l,t)}#c=y(()=>tb({minValue:this.opts.minValue.current,months:this.months,disabled:this.opts.disabled.current}));get isPrevButtonDisabled(){return l(this.#c)}set isPrevButtonDisabled(t){v(this.#c,t)}#u=y(()=>{const t=this.opts.value.current,r=this.opts.isDateDisabled.current,n=this.opts.isDateUnavailable.current;if(Array.isArray(t)){if(!t.length)return!1;for(const i of t)if(r(i)||n(i))return!0}else{if(!t)return!1;if(r(t)||n(t))return!0}return!1});get isInvalid(){return l(this.#u)}set isInvalid(t){v(this.#u,t)}#h=y(()=>(this.opts.monthFormat.current,this.opts.yearFormat.current,eb({months:this.months,formatter:this.formatter,locale:this.opts.locale.current})));get headingValue(){return l(this.#h)}set headingValue(t){v(this.#h,t)}#f=y(()=>`${this.opts.calendarLabel.current} ${this.headingValue}`);get fullCalendarLabel(){return l(this.#f)}set fullCalendarLabel(t){v(this.#f,t)}isOutsideVisibleMonths(t){return!this.visibleMonths.some(r=>Eo(t,r))}isDateDisabled(t){if(this.opts.isDateDisabled.current(t)||this.opts.disabled.current)return!0;const r=this.opts.minValue.current,n=this.opts.maxValue.current;return!!(r&&ei(t,r)||n&&ei(n,t))}isDateSelected(t){const r=this.opts.value.current;return Array.isArray(r)?r.some(n=>Er(n,t)):r?Er(r,t):!1}shiftFocus(t,r){return Km({node:t,add:r,placeholder:this.opts.placeholder,calendarNode:this.opts.ref.current,isPrevButtonDisabled:this.isPrevButtonDisabled,isNextButtonDisabled:this.isNextButtonDisabled,months:this.months,numberOfMonths:this.opts.numberOfMonths.current})}#g(t){if(this.opts.type.current!=="multiple"||!this.opts.maxDays.current)return!0;const r=t.length;return!(this.opts.maxDays.current&&r>this.opts.maxDays.current)}handleCellClick(t,r){if(this.opts.readonly.current||this.opts.isDateDisabled.current?.(r)||this.opts.isDateUnavailable.current?.(r))return;const n=this.opts.value.current;if(this.opts.type.current==="multiple")(Array.isArray(n)||n===void 0)&&(this.opts.value.current=this.handleMultipleUpdate(n,r));else if(!Array.isArray(n)){const o=this.handleSingleUpdate(n,r);o?this.announcer.announce(`Selected Date: ${this.formatter.selectedDate(o,!1)}`,"polite"):this.announcer.announce("Selected date is now empty.","polite",5e3),this.opts.value.current=ob(o,n),o!==void 0&&this.opts.onDateSelect?.current?.()}}handleMultipleUpdate(t,r){if(!t){const o=[r];return this.#g(o)?o:[r]}if(!Array.isArray(t))return;const n=t.findIndex(o=>Er(o,r)),i=this.opts.preventDeselect.current;if(n===-1){const o=[...t,r];return this.#g(o)?o:[r]}else{if(i)return t;{const o=t.filter(s=>!Er(s,r));if(!o.length){this.opts.placeholder.current=r;return}return o}}}handleSingleUpdate(t,r){if(!t)return r;if(!this.opts.preventDeselect.current&&Er(t,r)){this.opts.placeholder.current=r;return}return r}onkeydown(t){jm({event:t,handleCellClick:this.handleCellClick,shiftFocus:this.shiftFocus,placeholderValue:this.opts.placeholder.current})}#d=y(()=>({months:this.months,weekdays:this.weekdays}));get snippetProps(){return l(this.#d)}set snippetProps(t){v(this.#d,t)}getBitsAttr=t=>sb.getAttr(t);#p=y(()=>({...rb({fullCalendarLabel:this.fullCalendarLabel,id:this.opts.id.current,isInvalid:this.isInvalid,disabled:this.opts.disabled.current,readonly:this.opts.readonly.current}),[this.getBitsAttr("root")]:"",onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#p)}set props(t){v(this.#p,t)}}const Ch=new Vt("Calendar.Cell | RangeCalendar.Cell");class Ba{static create(t){return Ch.set(new Ba(t,Ee.get()))}opts;root;#t=y(()=>Ve(this.opts.date.current));get cellDate(){return l(this.#t)}set cellDate(t){v(this.#t,t)}#e=y(()=>this.root.opts.isDateUnavailable.current(this.opts.date.current));get isUnavailable(){return l(this.#e)}set isUnavailable(t){v(this.#e,t)}#r=y(()=>tm(this.opts.date.current,Mr()));get isDateToday(){return l(this.#r)}set isDateToday(t){v(this.#r,t)}#n=y(()=>!Eo(this.opts.date.current,this.opts.month.current));get isOutsideMonth(){return l(this.#n)}set isOutsideMonth(t){v(this.#n,t)}#i=y(()=>this.root.isOutsideVisibleMonths(this.opts.date.current));get isOutsideVisibleMonths(){return l(this.#i)}set isOutsideVisibleMonths(t){v(this.#i,t)}#o=y(()=>this.root.isDateDisabled(this.opts.date.current)||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current);get isDisabled(){return l(this.#o)}set isDisabled(t){v(this.#o,t)}#a=y(()=>Er(this.opts.date.current,this.root.opts.placeholder.current));get isFocusedDate(){return l(this.#a)}set isFocusedDate(t){v(this.#a,t)}#s=y(()=>this.root.isDateSelected(this.opts.date.current));get isSelectedDate(){return l(this.#s)}set isSelectedDate(t){v(this.#s,t)}#l=y(()=>this.root.formatter.custom(this.cellDate,{weekday:"long",month:"long",day:"numeric",year:"numeric"}));get labelText(){return l(this.#l)}set labelText(t){v(this.#l,t)}attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#c=y(()=>({disabled:this.isDisabled,unavailable:this.isUnavailable,selected:this.isSelectedDate,day:`${this.opts.date.current.day}`}));get snippetProps(){return l(this.#c)}set snippetProps(t){v(this.#c,t)}#u=y(()=>this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current||this.isUnavailable);get ariaDisabled(){return l(this.#u)}set ariaDisabled(t){v(this.#u,t)}#h=y(()=>({"data-unavailable":ft(this.isUnavailable),"data-today":this.isDateToday?"":void 0,"data-outside-month":this.isOutsideMonth?"":void 0,"data-outside-visible-months":this.isOutsideVisibleMonths?"":void 0,"data-focused":this.isFocusedDate?"":void 0,"data-selected":ft(this.isSelectedDate),"data-value":this.opts.date.current.toString(),"data-type":Lm(this.opts.date.current),"data-disabled":ft(this.isDisabled||this.isOutsideMonth&&this.root.opts.disableDaysOutsideMonth.current)}));get sharedDataAttrs(){return l(this.#h)}set sharedDataAttrs(t){v(this.#h,t)}#f=y(()=>({id:this.opts.id.current,role:"gridcell","aria-selected":he(this.isSelectedDate),"aria-disabled":he(this.ariaDisabled),...this.sharedDataAttrs,[this.root.getBitsAttr("cell")]:"",...this.attachment}));get props(){return l(this.#f)}set props(t){v(this.#f,t)}}class Va{static create(t){return new Va(t,Ch.get())}opts;cell;attachment;constructor(t,r){this.opts=t,this.cell=r,this.onclick=this.onclick.bind(this),this.attachment=rt(this.opts.ref)}#t=y(()=>this.cell.isOutsideMonth&&this.cell.root.opts.disableDaysOutsideMonth.current||this.cell.isDisabled?void 0:this.cell.isFocusedDate?0:-1);onclick(t){this.cell.isDisabled||this.cell.root.handleCellClick(t,this.cell.opts.date.current)}#e=y(()=>({disabled:this.cell.isDisabled,unavailable:this.cell.isUnavailable,selected:this.cell.isSelectedDate,day:`${this.cell.opts.date.current.day}`}));get snippetProps(){return l(this.#e)}set snippetProps(t){v(this.#e,t)}#r=y(()=>({id:this.opts.id.current,role:"button","aria-label":this.cell.labelText,"aria-disabled":he(this.cell.ariaDisabled),...this.cell.sharedDataAttrs,tabindex:l(this.#t),[this.cell.root.getBitsAttr("day")]:"","data-bits-day":"",onclick:this.onclick,...this.attachment}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}}class Ha{static create(t){return new Ha(t,Ee.get())}opts;root;#t=y(()=>this.root.isNextButtonDisabled);get isDisabled(){return l(this.#t)}set isDisabled(t){v(this.#t,t)}attachment;constructor(t,r){this.opts=t,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=rt(this.opts.ref)}onclick(t){this.isDisabled||this.root.nextPage()}#e=y(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Next","aria-disabled":he(this.isDisabled),"data-disabled":ft(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("next-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Wa{static create(t){return new Wa(t,Ee.get())}opts;root;#t=y(()=>this.root.isPrevButtonDisabled);get isDisabled(){return l(this.#t)}set isDisabled(t){v(this.#t,t)}attachment;constructor(t,r){this.opts=t,this.root=r,this.onclick=this.onclick.bind(this),this.attachment=rt(this.opts.ref)}onclick(t){this.isDisabled||this.root.prevPage()}#e=y(()=>({id:this.opts.id.current,role:"button",type:"button","aria-label":"Previous","aria-disabled":he(this.isDisabled),"data-disabled":ft(this.isDisabled),disabled:this.isDisabled,[this.root.getBitsAttr("prev-button")]:"",onclick:this.onclick,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Ua{static create(t){return new Ua(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,tabindex:-1,role:"grid","aria-readonly":he(this.root.opts.readonly.current),"aria-disabled":he(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),"data-disabled":ft(this.root.opts.disabled.current),[this.root.getBitsAttr("grid")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class za{static create(t){return new za(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,"data-disabled":ft(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-body")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class Ya{static create(t){return new Ya(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,"data-disabled":ft(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-head")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class Ka{static create(t){return new Ka(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,"data-disabled":ft(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),[this.root.getBitsAttr("grid-row")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class ja{static create(t){return new ja(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,"data-disabled":ft(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),[this.root.getBitsAttr("head-cell")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class qa{static create(t){return new qa(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref)}#t=y(()=>({id:this.opts.id.current,"data-disabled":ft(this.root.opts.disabled.current),"data-readonly":ft(this.root.opts.readonly.current),[this.root.getBitsAttr("header")]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class Xa{static create(t){return new Xa(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=rt(this.opts.ref)}#t=y(()=>{this.root.opts.locale.current;const t=this.opts.months.current,r=this.opts.monthFormat.current,n=[];for(const i of t){const o=this.root.opts.placeholder.current.set({month:i});let s;typeof r=="function"?s=r(i):s=this.root.formatter.custom(Ve(o),{month:r}),n.push({value:i,label:s})}return n});get monthItems(){return l(this.#t)}set monthItems(t){v(this.#t,t)}#e=y(()=>this.root.opts.placeholder.current.month);get currentMonth(){return l(this.#e)}set currentMonth(t){v(this.#e,t)}#r=y(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return l(this.#r)}set isDisabled(t){v(this.#r,t)}#n=y(()=>({monthItems:this.monthItems,selectedMonthItem:this.monthItems.find(t=>t.value===this.currentMonth)}));get snippetProps(){return l(this.#n)}set snippetProps(t){v(this.#n,t)}onchange(t){if(this.isDisabled)return;const r=t.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({month:n}))}#i=y(()=>({id:this.opts.id.current,value:this.currentMonth,disabled:this.isDisabled,"data-disabled":ft(this.isDisabled),[this.root.getBitsAttr("month-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return l(this.#i)}set props(t){v(this.#i,t)}}class Ga{static create(t){return new Ga(t,Ee.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.onchange=this.onchange.bind(this),this.attachment=rt(this.opts.ref)}#t=y(()=>this.opts.years.current&&this.opts.years.current.length?this.opts.years.current:this.root.defaultYears);get years(){return l(this.#t)}set years(t){v(this.#t,t)}#e=y(()=>{this.root.opts.locale.current;const t=this.opts.yearFormat.current,r=[];for(const n of this.years){const i=this.root.opts.placeholder.current.set({year:n});let o;typeof t=="function"?o=t(n):o=this.root.formatter.custom(Ve(i),{year:t}),r.push({value:n,label:o})}return r});get yearItems(){return l(this.#e)}set yearItems(t){v(this.#e,t)}#r=y(()=>this.root.opts.placeholder.current.year);get currentYear(){return l(this.#r)}set currentYear(t){v(this.#r,t)}#n=y(()=>this.root.opts.disabled.current||this.opts.disabled.current);get isDisabled(){return l(this.#n)}set isDisabled(t){v(this.#n,t)}#i=y(()=>({yearItems:this.yearItems,selectedYearItem:this.yearItems.find(t=>t.value===this.currentYear)}));get snippetProps(){return l(this.#i)}set snippetProps(t){v(this.#i,t)}onchange(t){if(this.isDisabled)return;const r=t.target,n=parseInt(r.value,10);isNaN(n)||(this.root.opts.placeholder.current=this.root.opts.placeholder.current.set({year:n}))}#o=y(()=>({id:this.opts.id.current,value:this.currentYear,disabled:this.isDisabled,"data-disabled":ft(this.isDisabled),[this.root.getBitsAttr("year-select")]:"",onchange:this.onchange,...this.attachment}));get props(){return l(this.#o)}set props(t){v(this.#o,t)}}var lb=U("<div><!></div>");function O1(e,t){V(t,!0);let r=m(t,"id",19,Xr),n=m(t,"ref",15,null),i=m(t,"value",15),o=m(t,"onValueChange",3,st),s=m(t,"placeholder",15),a=m(t,"onPlaceholderChange",3,st),c=m(t,"weekdayFormat",3,"narrow"),u=m(t,"pagedNavigation",3,!1),f=m(t,"isDateDisabled",3,()=>!1),p=m(t,"isDateUnavailable",3,()=>!1),d=m(t,"fixedWeeks",3,!1),h=m(t,"numberOfMonths",3,1),g=m(t,"calendarLabel",3,"Event"),b=m(t,"disabled",3,!1),w=m(t,"readonly",3,!1),S=m(t,"minValue",3,void 0),T=m(t,"maxValue",3,void 0),x=m(t,"preventDeselect",3,!1),D=m(t,"disableDaysOutsideMonth",3,!0),N=m(t,"initialFocus",3,!1),O=m(t,"monthFormat",3,"long"),E=m(t,"yearFormat",3,"numeric"),F=q(t,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","placeholder","onPlaceholderChange","weekdayFormat","weekStartsOn","pagedNavigation","isDateDisabled","isDateUnavailable","fixedWeeks","numberOfMonths","locale","calendarLabel","disabled","readonly","minValue","maxValue","preventDeselect","type","disableDaysOutsideMonth","initialFocus","maxDays","monthFormat","yearFormat"]);const W=Rm({defaultValue:i(),minValue:S(),maxValue:T()});function R(){s()===void 0&&s(W)}R(),et.pre(()=>s(),()=>{R()});function G(){i()===void 0&&i(t.type==="single"?void 0:[])}G(),et.pre(()=>i(),()=>{G()});const B=La.create({id:_(()=>r()),ref:_(()=>n(),X=>n(X)),weekdayFormat:_(()=>c()),weekStartsOn:_(()=>t.weekStartsOn),pagedNavigation:_(()=>u()),isDateDisabled:_(()=>f()),isDateUnavailable:_(()=>p()),fixedWeeks:_(()=>d()),numberOfMonths:_(()=>h()),locale:uv(()=>t.locale),calendarLabel:_(()=>g()),readonly:_(()=>w()),disabled:_(()=>b()),minValue:_(()=>S()),maxValue:_(()=>T()),disableDaysOutsideMonth:_(()=>D()),initialFocus:_(()=>N()),maxDays:_(()=>t.maxDays),placeholder:_(()=>s(),X=>{s(X),a()(X)}),preventDeselect:_(()=>x()),value:_(()=>i(),X=>{i(X),o()(X)}),type:_(()=>t.type),monthFormat:_(()=>O()),yearFormat:_(()=>E()),defaultPlaceholder:W}),Z=y(()=>j(F,B.props));var Q=A(),gt=P(Q);{var St=X=>{var tt=A(),pt=P(tt);{let It=y(()=>({props:l(Z),...B.snippetProps}));M(pt,()=>t.child,()=>l(It))}C(X,tt)},ht=X=>{var tt=lb();J(tt,()=>({...l(Z)}));var pt=Y(tt);M(pt,()=>t.children??L,()=>B.snippetProps),z(tt),C(X,tt)};k(gt,X=>{t.child?X(St):X(ht,-1)})}C(e,Q),H()}var cb=U("<div><!></div>");function E1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=Va.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);{let b=y(()=>({props:l(a),...s.snippetProps}));M(g,()=>t.child,()=>l(b))}C(d,h)},p=d=>{var h=cb();J(h,()=>({...l(a)}));var g=Y(h);{var b=S=>{var T=A(),x=P(T);M(x,()=>t.children??L,()=>s.snippetProps),C(S,T)},w=S=>{var T=As();Jt(()=>rn(T,s.cell.opts.date.current.day)),C(S,T)};k(g,S=>{t.children?S(b):S(w,-1)})}z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var ub=U("<table><!></table>");function I1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=Ua.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=ub();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var db=U("<tbody><!></tbody>");function M1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=za.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=db();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var hb=U("<td><!></td>");function N1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id","date","month"]);const s=Ba.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d)),date:_(()=>t.date),month:_(()=>t.month)}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);{let b=y(()=>({props:l(a),...s.snippetProps}));M(g,()=>t.child,()=>l(b))}C(d,h)},p=d=>{var h=hb();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L,()=>s.snippetProps),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var fb=U("<thead><!></thead>");function k1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=Ya.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=fb();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var gb=U("<th><!></th>");function F1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=ja.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=gb();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var pb=U("<tr><!></tr>");function R1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=Ka.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=pb();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var vb=U("<header><!></header>");function L1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","children","child","ref","id"]);const s=qa.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=vb();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var mb=U("<option> </option>"),bb=U("<!>",1),yb=U("<select><!></select>");function B1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"months",19,()=>[1,2,3,4,5,6,7,8,9,10,11,12]),s=m(t,"monthFormat",3,"long"),a=m(t,"disabled",3,!1),c=m(t,"aria-label",3,"Select a month"),u=q(t,["$$slots","$$events","$$legacy","children","child","ref","id","months","monthFormat","disabled","aria-label"]);const f=Xa.create({id:_(()=>i()),ref:_(()=>n(),w=>n(w)),months:_(()=>o()),monthFormat:_(()=>s()),disabled:_(()=>!!a())}),p=y(()=>j(u,f.props,{"aria-label":c()}));var d=A(),h=P(d);{var g=w=>{var S=A(),T=P(S);{let x=y(()=>({props:l(p),...f.snippetProps}));M(T,()=>t.child,()=>l(x))}C(w,S)},b=w=>{var S=yb();J(S,()=>({...l(p)})),wd(S,()=>{var T=Y(S),x=bb(),D=P(x);{var N=E=>{var F=A(),W=P(F);M(W,()=>t.children??L,()=>f.snippetProps),C(E,F)},O=E=>{var F=A(),W=P(F);On(W,17,()=>f.monthItems,R=>R.value,(R,G)=>{var B=mb(),Z=Y(B,!0);z(B);var Q={};Jt(()=>{da(B,l(G).value===f.currentMonth),rn(Z,l(G).label),Q!==(Q=l(G).value)&&(B.value=(B.__value=l(G).value)??"")}),C(R,B)}),C(E,F)};k(D,E=>{t.children?E(N):E(O,-1)})}C(T,x)}),C(w,S)};k(h,w=>{t.child?w(g):w(b,-1)})}C(e,d),H()}var wb=U("<button><!></button>");function V1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"tabindex",3,0),s=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const a=Ha.create({id:_(()=>n()),ref:_(()=>i(),h=>i(h))}),c=y(()=>j(s,a.props,{tabindex:o()}));var u=A(),f=P(u);{var p=h=>{var g=A(),b=P(g);M(b,()=>t.child,()=>({props:l(c)})),C(h,g)},d=h=>{var g=wb();J(g,()=>({...l(c)}));var b=Y(g);M(b,()=>t.children??L),z(g),C(h,g)};k(f,h=>{t.child?h(p):h(d,-1)})}C(e,u),H()}var _b=U("<button><!></button>");function H1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"tabindex",3,0),s=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","tabindex"]);const a=Wa.create({id:_(()=>n()),ref:_(()=>i(),h=>i(h))}),c=y(()=>j(s,a.props,{tabindex:o()}));var u=A(),f=P(u);{var p=h=>{var g=A(),b=P(g);M(b,()=>t.child,()=>({props:l(c)})),C(h,g)},d=h=>{var g=_b();J(g,()=>({...l(c)}));var b=Y(g);M(b,()=>t.children??L),z(g),C(h,g)};k(f,h=>{t.child?h(p):h(d,-1)})}C(e,u),H()}var Sb=U("<option> </option>"),Cb=U("<!>",1),xb=U("<select><!></select>");function W1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"yearFormat",3,"numeric"),s=m(t,"disabled",3,!1),a=m(t,"aria-label",3,"Select a year"),c=q(t,["$$slots","$$events","$$legacy","children","child","ref","id","years","yearFormat","disabled","aria-label"]);const u=Ga.create({id:_(()=>i()),ref:_(()=>n(),b=>n(b)),years:_(()=>t.years),yearFormat:_(()=>o()),disabled:_(()=>!!s())}),f=y(()=>j(c,u.props,{"aria-label":a()}));var p=A(),d=P(p);{var h=b=>{var w=A(),S=P(w);{let T=y(()=>({props:l(f),...u.snippetProps}));M(S,()=>t.child,()=>l(T))}C(b,w)},g=b=>{var w=xb();J(w,()=>({...l(f)})),wd(w,()=>{var S=Y(w),T=Cb(),x=P(T);{var D=O=>{var E=A(),F=P(E);M(F,()=>t.children??L,()=>u.snippetProps),C(O,E)},N=O=>{var E=A(),F=P(E);On(F,17,()=>u.yearItems,W=>W.value,(W,R)=>{var G=Sb(),B=Y(G,!0);z(G);var Z={};Jt(()=>{da(G,l(R).value===u.currentYear),rn(B,l(R).label),Z!==(Z=l(R).value)&&(G.value=(G.__value=l(R).value)??"")}),C(W,G)}),C(O,E)};k(x,O=>{t.children?O(D):O(N,-1)})}C(S,T)}),C(b,w)};k(d,b=>{t.child?b(h):b(g,-1)})}C(e,p),H()}const Tb=we({component:"checkbox",parts:["root","group","group-label","input"]}),Pb=new Vt("Checkbox.Group"),xh=new Vt("Checkbox.Root");class Za{static create(t,r=null){return xh.set(new Za(t,r))}opts;group;#t=y(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return l(this.#t)}set trueName(t){v(this.#t,t)}#e=y(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return l(this.#e)}set trueRequired(t){v(this.#e,t)}#r=y(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return l(this.#r)}set trueDisabled(t){v(this.#r,t)}#n=y(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return l(this.#n)}set trueReadonly(t){v(this.#n,t)}attachment;constructor(t,r){this.opts=t,this.group=r,this.attachment=rt(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),et.pre([()=>Ff(this.group?.opts.value.current),()=>this.opts.value.current],([n,i])=>{!n||!i||(this.opts.checked.current=n.includes(i))}),et.pre(()=>this.opts.checked.current,n=>{this.group&&(n?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(t){if(!(this.trueDisabled||this.trueReadonly)){if(t.key===ar){t.preventDefault(),this.opts.type.current==="submit"&&t.currentTarget.closest("form")?.requestSubmit();return}t.key===We&&(t.preventDefault(),this.#i())}}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(t){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}t.preventDefault(),this.#i()}}#o=y(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return l(this.#o)}set snippetProps(t){v(this.#o,t)}#a=y(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":Fd(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":he(this.trueRequired),"aria-readonly":he(this.trueReadonly),"data-disabled":ft(this.trueDisabled),"data-readonly":ft(this.trueReadonly),"data-state":Ab(this.opts.checked.current,this.opts.indeterminate.current),[Tb.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#a)}set props(t){v(this.#a,t)}}class Ja{static create(){return new Ja(xh.get())}root;#t=y(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return l(this.#t)}set trueChecked(t){v(this.#t,t)}#e=y(()=>!!this.root.trueName);get shouldRender(){return l(this.#e)}set shouldRender(t){v(this.#e,t)}constructor(t){this.root=t,this.onfocus=this.onfocus.bind(this)}onfocus(t){yr(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#r=y(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}}function Ab(e,t){return t?"indeterminate":e?"checked":"unchecked"}var Db=U("<input/>"),Ob=U("<input/>");function Qa(e,t){V(t,!0);let r=m(t,"value",15),n=q(t,["$$slots","$$events","$$legacy","value"]);const i=y(()=>j(n,{"aria-hidden":"true",tabindex:-1,style:Pd}));var o=A(),s=P(o);{var a=u=>{var f=Db();J(f,()=>({...l(i),value:r()}),void 0,void 0,void 0,void 0,!0),C(u,f)},c=u=>{var f=Ob();J(f,()=>({...l(i)}),void 0,void 0,void 0,void 0,!0),Yg(f,r),C(u,f)};k(s,u=>{l(i).type==="checkbox"?u(a):u(c,-1)})}C(e,o),H()}function Eb(e,t){V(t,!1);const r=Ja.create();Sd();var n=A(),i=P(n);{var o=s=>{Qa(s,wt(()=>r.props))};k(i,s=>{r.shouldRender&&s(o)})}C(e,n),H()}var Ib=U("<button><!></button>"),Mb=U("<!> <!>",1);function U1(e,t){const r=at();V(t,!0);let n=m(t,"checked",15,!1),i=m(t,"ref",15,null),o=m(t,"disabled",3,!1),s=m(t,"required",3,!1),a=m(t,"name",3,void 0),c=m(t,"value",3,"on"),u=m(t,"id",19,()=>lt(r)),f=m(t,"indeterminate",15,!1),p=m(t,"type",3,"button"),d=q(t,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const h=Pb.getOr(null);h&&c()&&(h.opts.value.current.includes(c())?n(!0):n(!1)),et.pre(()=>c(),()=>{h&&c()&&(h.opts.value.current.includes(c())?n(!0):n(!1))});const g=Za.create({checked:_(()=>n(),N=>{n(N),t.onCheckedChange?.(N)}),disabled:_(()=>o()??!1),required:_(()=>s()),name:_(()=>a()),value:_(()=>c()),id:_(()=>u()),ref:_(()=>i(),N=>i(N)),indeterminate:_(()=>f(),N=>{f(N),t.onIndeterminateChange?.(N)}),type:_(()=>p()),readonly:_(()=>!!t.readonly)},h),b=y(()=>j({...d},g.props));var w=Mb(),S=P(w);{var T=N=>{var O=A(),E=P(O);{let F=y(()=>({props:l(b),...g.snippetProps}));M(E,()=>t.child,()=>l(F))}C(N,O)},x=N=>{var O=Ib();J(O,()=>({...l(b)}));var E=Y(O);M(E,()=>t.children??L,()=>g.snippetProps),z(O),C(N,O)};k(S,N=>{t.child?N(T):N(x,-1)})}var D=se(S,2);Eb(D,{}),C(e,w),H()}const $a=we({component:"collapsible",parts:["root","content","trigger"]}),tl=new Vt("Collapsible.Root");class el{static create(t){return tl.set(new el(t))}opts;attachment;#t=I(null);get contentNode(){return l(this.#t)}set contentNode(t){v(this.#t,t,!0)}contentPresence;#e=I(void 0);get contentId(){return l(this.#e)}set contentId(t){v(this.#e,t,!0)}constructor(t){this.opts=t,this.toggleOpen=this.toggleOpen.bind(this),this.attachment=rt(this.opts.ref),this.contentPresence=new ln({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}})}toggleOpen(){this.opts.open.current=!this.opts.open.current}#r=y(()=>({id:this.opts.id.current,"data-state":qr(this.opts.open.current),"data-disabled":ft(this.opts.disabled.current),[$a.root]:"",...this.attachment}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}}class rl{static create(t){return new rl(t,tl.get())}opts;root;attachment;#t=y(()=>this.opts.hiddenUntilFound.current?this.root.opts.open.current:this.opts.forceMount.current||this.root.opts.open.current);get present(){return l(this.#t)}set present(t){v(this.#t,t)}#e;#r=I(!1);#n=I(0);#i=I(0);constructor(t,r){this.opts=t,this.root=r,v(this.#r,r.opts.open.current,!0),this.root.contentId=this.opts.id.current,this.attachment=rt(this.opts.ref,n=>this.root.contentNode=n),et.pre(()=>this.opts.id.current,n=>{this.root.contentId=n}),Rn(()=>{const n=requestAnimationFrame(()=>{v(this.#r,!1)});return()=>{cancelAnimationFrame(n)}}),et.pre([()=>this.opts.ref.current,()=>this.opts.hiddenUntilFound.current],([n,i])=>!n||!i?void 0:bt(n,"beforematch",()=>{this.root.opts.open.current||requestAnimationFrame(()=>{this.root.opts.open.current=!0})})),et([()=>this.opts.ref.current,()=>this.present],([n])=>{n&&Br(()=>{if(!this.opts.ref.current)return;this.#e=this.#e||{transitionDuration:n.style.transitionDuration,animationName:n.style.animationName},n.style.transitionDuration="0s",n.style.animationName="none";const i=n.getBoundingClientRect();if(v(this.#i,i.height,!0),v(this.#n,i.width,!0),!l(this.#r)){const{animationName:o,transitionDuration:s}=this.#e;n.style.transitionDuration=s,n.style.animationName=o}})})}get shouldRender(){return this.root.contentPresence.shouldRender}#o=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#o)}set snippetProps(t){v(this.#o,t)}#a=y(()=>({id:this.opts.id.current,style:{"--bits-collapsible-content-height":l(this.#i)?`${l(this.#i)}px`:void 0,"--bits-collapsible-content-width":l(this.#n)?`${l(this.#n)}px`:void 0},hidden:this.opts.hiddenUntilFound.current&&!this.root.opts.open.current?"until-found":void 0,"data-state":qr(this.root.opts.open.current),"data-disabled":ft(this.root.opts.disabled.current),[$a.content]:"",...this.opts.hiddenUntilFound.current&&!this.shouldRender?{}:{hidden:this.opts.hiddenUntilFound.current?!this.shouldRender:this.opts.forceMount.current?void 0:!this.shouldRender},...this.attachment}));get props(){return l(this.#a)}set props(t){v(this.#a,t)}}class nl{static create(t){return new nl(t,tl.get())}opts;root;attachment;#t=y(()=>this.opts.disabled.current||this.root.opts.disabled.current);constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){if(!l(this.#t)){if(t.button!==0)return t.preventDefault();this.root.toggleOpen()}}onkeydown(t){l(this.#t)||(t.key===We||t.key===ar)&&(t.preventDefault(),this.root.toggleOpen())}#e=y(()=>({id:this.opts.id.current,type:"button",disabled:l(this.#t),"aria-controls":this.root.contentId,"aria-expanded":he(this.root.opts.open.current),"data-state":qr(this.root.opts.open.current),"data-disabled":ft(l(this.#t)),[$a.trigger]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}var Nb=U("<div><!></div>");function z1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"open",15,!1),s=m(t,"disabled",3,!1),a=m(t,"onOpenChange",3,st),c=m(t,"onOpenChangeComplete",3,st),u=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","open","disabled","onOpenChange","onOpenChangeComplete"]);const f=el.create({open:_(()=>o(),w=>{o(w),a()(w)}),disabled:_(()=>s()),id:_(()=>n()),ref:_(()=>i(),w=>i(w)),onOpenChangeComplete:_(()=>c())}),p=y(()=>j(u,f.props));var d=A(),h=P(d);{var g=w=>{var S=A(),T=P(S);M(T,()=>t.child,()=>({props:l(p)})),C(w,S)},b=w=>{var S=Nb();J(S,()=>({...l(p)}));var T=Y(S);M(T,()=>t.children??L),z(S),C(w,S)};k(h,w=>{t.child?w(g):w(b,-1)})}C(e,d),H()}var kb=U("<div><!></div>");function Y1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"forceMount",3,!1),o=m(t,"hiddenUntilFound",3,!1),s=m(t,"id",19,()=>lt(r)),a=q(t,["$$slots","$$events","$$legacy","child","ref","forceMount","hiddenUntilFound","children","id"]);const c=rl.create({id:_(()=>s()),forceMount:_(()=>i()),hiddenUntilFound:_(()=>o()),ref:_(()=>n(),g=>n(g))}),u=y(()=>j(a,c.props));var f=A(),p=P(f);{var d=g=>{var b=A(),w=P(b);{let S=y(()=>({...c.snippetProps,props:l(u)}));M(w,()=>t.child,()=>l(S))}C(g,b)},h=g=>{var b=kb();J(b,()=>({...l(u)}));var w=Y(b);M(w,()=>t.children??L),z(b),C(g,b)};k(p,g=>{t.child?g(d):g(h,-1)})}C(e,f),H()}var Fb=U("<button><!></button>");function K1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"disabled",3,!1),s=q(t,["$$slots","$$events","$$legacy","children","child","ref","id","disabled"]);const a=nl.create({id:_(()=>i()),ref:_(()=>n(),h=>n(h)),disabled:_(()=>o())}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=h=>{var g=A(),b=P(g);M(b,()=>t.child,()=>({props:l(c)})),C(h,g)},d=h=>{var g=Fb();J(g,()=>({...l(c)}));var b=Y(g);M(b,()=>t.children??L),z(g),C(h,g)};k(f,h=>{t.child?h(p):h(d,-1)})}C(e,u),H()}const Rb=["top","right","bottom","left"],Ur=Math.min,ge=Math.max,oo=Math.round,Fi=Math.floor,nr=e=>({x:e,y:e}),Lb={left:"right",right:"left",bottom:"top",top:"bottom"},Bb={start:"end",end:"start"};function Ws(e,t,r){return ge(e,Ur(t,r))}function _r(e,t){return typeof e=="function"?e(t):e}function Sr(e){return e.split("-")[0]}function Hn(e){return e.split("-")[1]}function il(e){return e==="x"?"y":"x"}function ol(e){return e==="y"?"height":"width"}const Vb=new Set(["top","bottom"]);function er(e){return Vb.has(Sr(e))?"y":"x"}function sl(e){return il(er(e))}function Hb(e,t,r){r===void 0&&(r=!1);const n=Hn(e),i=sl(e),o=ol(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=so(s)),[s,so(s)]}function Wb(e){const t=so(e);return[Us(e),t,Us(t)]}function Us(e){return e.replace(/start|end/g,t=>Bb[t])}const qc=["left","right"],Xc=["right","left"],Ub=["top","bottom"],zb=["bottom","top"];function Yb(e,t,r){switch(e){case"top":case"bottom":return r?t?Xc:qc:t?qc:Xc;case"left":case"right":return t?Ub:zb;default:return[]}}function Kb(e,t,r,n){const i=Hn(e);let o=Yb(Sr(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(Us)))),o}function so(e){return e.replace(/left|right|bottom|top/g,t=>Lb[t])}function jb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Th(e){return typeof e!="number"?jb(e):{top:e,right:e,bottom:e,left:e}}function ao(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Gc(e,t,r){let{reference:n,floating:i}=e;const o=er(t),s=sl(t),a=ol(s),c=Sr(t),u=o==="y",f=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let h;switch(c){case"top":h={x:f,y:n.y-i.height};break;case"bottom":h={x:f,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:p};break;case"left":h={x:n.x-i.width,y:p};break;default:h={x:n.x,y:n.y}}switch(Hn(t)){case"start":h[s]-=d*(r&&u?-1:1);break;case"end":h[s]+=d*(r&&u?-1:1);break}return h}async function qb(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=_r(t,e),g=Th(h),w=a[d?p==="floating"?"reference":"floating":p],S=ao(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(w)))==null||r?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),T=p==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),D=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},N=ao(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:T,offsetParent:x,strategy:c}):T);return{top:(S.top-N.top+g.top)/D.y,bottom:(N.bottom-S.bottom+g.bottom)/D.y,left:(S.left-N.left+g.left)/D.x,right:(N.right-S.right+g.right)/D.x}}const Xb=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,a=o.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:p}=Gc(u,n,c),d=n,h={},g=0;for(let w=0;w<a.length;w++){var b;const{name:S,fn:T}=a[w],{x,y:D,data:N,reset:O}=await T({x:f,y:p,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:{...s,detectOverflow:(b=s.detectOverflow)!=null?b:qb},elements:{reference:e,floating:t}});f=x??f,p=D??p,h={...h,[S]:{...h[S],...N}},O&&g<=50&&(g++,typeof O=="object"&&(O.placement&&(d=O.placement),O.rects&&(u=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):O.rects),{x:f,y:p}=Gc(u,d,c)),w=-1)}return{x:f,y:p,placement:d,strategy:i,middlewareData:h}},Gb=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:u,padding:f=0}=_r(e,t)||{};if(u==null)return{};const p=Th(f),d={x:r,y:n},h=sl(i),g=ol(h),b=await s.getDimensions(u),w=h==="y",S=w?"top":"left",T=w?"bottom":"right",x=w?"clientHeight":"clientWidth",D=o.reference[g]+o.reference[h]-d[h]-o.floating[g],N=d[h]-o.reference[h],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=O?O[x]:0;(!E||!await(s.isElement==null?void 0:s.isElement(O)))&&(E=a.floating[x]||o.floating[g]);const F=D/2-N/2,W=E/2-b[g]/2-1,R=Ur(p[S],W),G=Ur(p[T],W),B=R,Z=E-b[g]-G,Q=E/2-b[g]/2+F,gt=Ws(B,Q,Z),St=!c.arrow&&Hn(i)!=null&&Q!==gt&&o.reference[g]/2-(Q<B?R:G)-b[g]/2<0,ht=St?Q<B?Q-B:Q-Z:0;return{[h]:d[h]+ht,data:{[h]:gt,centerOffset:Q-gt-ht,...St&&{alignmentOffset:ht}},reset:St}}}),Zb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...w}=_r(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const S=Sr(i),T=er(a),x=Sr(a)===a,D=await(c.isRTL==null?void 0:c.isRTL(u.floating)),N=d||(x||!b?[so(a)]:Wb(a)),O=g!=="none";!d&&O&&N.push(...Kb(a,b,g,D));const E=[a,...N],F=await c.detectOverflow(t,w),W=[];let R=((n=o.flip)==null?void 0:n.overflows)||[];if(f&&W.push(F[S]),p){const Q=Hb(i,s,D);W.push(F[Q[0]],F[Q[1]])}if(R=[...R,{placement:i,overflows:W}],!W.every(Q=>Q<=0)){var G,B;const Q=(((G=o.flip)==null?void 0:G.index)||0)+1,gt=E[Q];if(gt&&(!(p==="alignment"?T!==er(gt):!1)||R.every(X=>er(X.placement)===T?X.overflows[0]>0:!0)))return{data:{index:Q,overflows:R},reset:{placement:gt}};let St=(B=R.filter(ht=>ht.overflows[0]<=0).sort((ht,X)=>ht.overflows[1]-X.overflows[1])[0])==null?void 0:B.placement;if(!St)switch(h){case"bestFit":{var Z;const ht=(Z=R.filter(X=>{if(O){const tt=er(X.placement);return tt===T||tt==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(tt=>tt>0).reduce((tt,pt)=>tt+pt,0)]).sort((X,tt)=>X[1]-tt[1])[0])==null?void 0:Z[0];ht&&(St=ht);break}case"initialPlacement":St=a;break}if(i!==St)return{reset:{placement:St}}}return{}}}};function Zc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jc(e){return Rb.some(t=>e[t]>=0)}const Jb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=_r(e,t);switch(i){case"referenceHidden":{const s=await n.detectOverflow(t,{...o,elementContext:"reference"}),a=Zc(s,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Jc(a)}}}case"escaped":{const s=await n.detectOverflow(t,{...o,altBoundary:!0}),a=Zc(s,r.floating);return{data:{escapedOffsets:a,escaped:Jc(a)}}}default:return{}}}}},Ph=new Set(["left","top"]);async function Qb(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Sr(r),a=Hn(r),c=er(r)==="y",u=Ph.has(s)?-1:1,f=o&&c?-1:1,p=_r(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),c?{x:h*f,y:d*u}:{x:d*u,y:h*f}}const $b=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:s,middlewareData:a}=t,c=await Qb(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:s}}}}},ty=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:T,y:x}=S;return{x:T,y:x}}},...u}=_r(e,t),f={x:r,y:n},p=await o.detectOverflow(t,u),d=er(Sr(i)),h=il(d);let g=f[h],b=f[d];if(s){const S=h==="y"?"top":"left",T=h==="y"?"bottom":"right",x=g+p[S],D=g-p[T];g=Ws(x,g,D)}if(a){const S=d==="y"?"top":"left",T=d==="y"?"bottom":"right",x=b+p[S],D=b-p[T];b=Ws(x,b,D)}const w=c.fn({...t,[h]:g,[d]:b});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[h]:s,[d]:a}}}}}},ey=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=_r(e,t),f={x:r,y:n},p=er(i),d=il(p);let h=f[d],g=f[p];const b=_r(a,t),w=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(c){const x=d==="y"?"height":"width",D=o.reference[d]-o.floating[x]+w.mainAxis,N=o.reference[d]+o.reference[x]-w.mainAxis;h<D?h=D:h>N&&(h=N)}if(u){var S,T;const x=d==="y"?"width":"height",D=Ph.has(Sr(i)),N=o.reference[p]-o.floating[x]+(D&&((S=s.offset)==null?void 0:S[p])||0)+(D?0:w.crossAxis),O=o.reference[p]+o.reference[x]+(D?0:((T=s.offset)==null?void 0:T[p])||0)-(D?w.crossAxis:0);g<N?g=N:g>O&&(g=O)}return{[d]:h,[p]:g}}}},ry=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:c=()=>{},...u}=_r(e,t),f=await s.detectOverflow(t,u),p=Sr(i),d=Hn(i),h=er(i)==="y",{width:g,height:b}=o.floating;let w,S;p==="top"||p==="bottom"?(w=p,S=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(S=p,w=d==="end"?"top":"bottom");const T=b-f.top-f.bottom,x=g-f.left-f.right,D=Ur(b-f[w],T),N=Ur(g-f[S],x),O=!t.middlewareData.shift;let E=D,F=N;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(F=x),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(E=T),O&&!d){const R=ge(f.left,0),G=ge(f.right,0),B=ge(f.top,0),Z=ge(f.bottom,0);h?F=g-2*(R!==0||G!==0?R+G:ge(f.left,f.right)):E=b-2*(B!==0||Z!==0?B+Z:ge(f.top,f.bottom))}await c({...t,availableWidth:F,availableHeight:E});const W=await s.getDimensions(a.floating);return g!==W.width||b!==W.height?{reset:{rects:!0}}:{}}}};function Mo(){return typeof window<"u"}function Wn(e){return Ah(e)?(e.nodeName||"").toLowerCase():"#document"}function be(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ur(e){var t;return(t=(Ah(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ah(e){return Mo()?e instanceof Node||e instanceof be(e).Node:!1}function Ye(e){return Mo()?e instanceof Element||e instanceof be(e).Element:!1}function cr(e){return Mo()?e instanceof HTMLElement||e instanceof be(e).HTMLElement:!1}function Qc(e){return!Mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof be(e).ShadowRoot}const ny=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=Ke(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!ny.has(i)}const iy=new Set(["table","td","th"]);function oy(e){return iy.has(Wn(e))}const sy=[":popover-open",":modal"];function No(e){return sy.some(t=>{try{return e.matches(t)}catch{return!1}})}const ay=["transform","translate","scale","rotate","perspective"],ly=["transform","translate","scale","rotate","perspective","filter"],cy=["paint","layout","strict","content"];function al(e){const t=ll(),r=Ye(e)?Ke(e):e;return ay.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ly.some(n=>(r.willChange||"").includes(n))||cy.some(n=>(r.contain||"").includes(n))}function uy(e){let t=zr(e);for(;cr(t)&&!Mn(t);){if(al(t))return t;if(No(t))return null;t=zr(t)}return null}function ll(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const dy=new Set(["html","body","#document"]);function Mn(e){return dy.has(Wn(e))}function Ke(e){return be(e).getComputedStyle(e)}function ko(e){return Ye(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Wn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qc(e)&&e.host||ur(e);return Qc(t)?t.host:t}function Dh(e){const t=zr(e);return Mn(t)?e.ownerDocument?e.ownerDocument.body:e.body:cr(t)&&yi(t)?t:Dh(t)}function ri(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Dh(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=be(i);if(o){const a=zs(s);return t.concat(s,s.visualViewport||[],yi(i)?i:[],a&&r?ri(a):[])}return t.concat(i,ri(i,[],r))}function zs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oh(e){const t=Ke(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=cr(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,a=oo(r)!==o||oo(n)!==s;return a&&(r=o,n=s),{width:r,height:n,$:a}}function cl(e){return Ye(e)?e:e.contextElement}function Cn(e){const t=cl(e);if(!cr(t))return nr(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Oh(t);let s=(o?oo(r.width):r.width)/n,a=(o?oo(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const hy=nr(0);function Eh(e){const t=be(e);return!ll()||!t.visualViewport?hy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function fy(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==be(e)?!1:t}function hn(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=cl(e);let s=nr(1);t&&(n?Ye(n)&&(s=Cn(n)):s=Cn(e));const a=fy(o,r,n)?Eh(o):nr(0);let c=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,p=i.height/s.y;if(o){const d=be(o),h=n&&Ye(n)?be(n):n;let g=d,b=zs(g);for(;b&&n&&h!==g;){const w=Cn(b),S=b.getBoundingClientRect(),T=Ke(b),x=S.left+(b.clientLeft+parseFloat(T.paddingLeft))*w.x,D=S.top+(b.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,u*=w.y,f*=w.x,p*=w.y,c+=x,u+=D,g=be(b),b=zs(g)}}return ao({width:f,height:p,x:c,y:u})}function Fo(e,t){const r=ko(e).scrollLeft;return t?t.left+r:hn(ur(e)).left+r}function Ih(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Fo(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function gy(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",s=ur(n),a=t?No(t.floating):!1;if(n===s||a&&o)return r;let c={scrollLeft:0,scrollTop:0},u=nr(1);const f=nr(0),p=cr(n);if((p||!p&&!o)&&((Wn(n)!=="body"||yi(s))&&(c=ko(n)),cr(n))){const h=hn(n);u=Cn(n),f.x=h.x+n.clientLeft,f.y=h.y+n.clientTop}const d=s&&!p&&!o?Ih(s,c):nr(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+d.x,y:r.y*u.y-c.scrollTop*u.y+f.y+d.y}}function py(e){return Array.from(e.getClientRects())}function vy(e){const t=ur(e),r=ko(e),n=e.ownerDocument.body,i=ge(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=ge(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+Fo(e);const a=-r.scrollTop;return Ke(n).direction==="rtl"&&(s+=ge(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:a}}const $c=25;function my(e,t){const r=be(e),n=ur(e),i=r.visualViewport;let o=n.clientWidth,s=n.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const f=ll();(!f||f&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=Fo(n);if(u<=0){const f=n.ownerDocument,p=f.body,d=getComputedStyle(p),h=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,g=Math.abs(n.clientWidth-p.clientWidth-h);g<=$c&&(o-=g)}else u<=$c&&(o+=u);return{width:o,height:s,x:a,y:c}}const by=new Set(["absolute","fixed"]);function yy(e,t){const r=hn(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=cr(e)?Cn(e):nr(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,c=i*o.x,u=n*o.y;return{width:s,height:a,x:c,y:u}}function tu(e,t,r){let n;if(t==="viewport")n=my(e,r);else if(t==="document")n=vy(ur(e));else if(Ye(t))n=yy(t,r);else{const i=Eh(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ao(n)}function Mh(e,t){const r=zr(e);return r===t||!Ye(r)||Mn(r)?!1:Ke(r).position==="fixed"||Mh(r,t)}function wy(e,t){const r=t.get(e);if(r)return r;let n=ri(e,[],!1).filter(a=>Ye(a)&&Wn(a)!=="body"),i=null;const o=Ke(e).position==="fixed";let s=o?zr(e):e;for(;Ye(s)&&!Mn(s);){const a=Ke(s),c=al(s);!c&&a.position==="fixed"&&(i=null),(o?!c&&!i:!c&&a.position==="static"&&!!i&&by.has(i.position)||yi(s)&&!c&&Mh(e,s))?n=n.filter(f=>f!==s):i=a,s=zr(s)}return t.set(e,n),n}function _y(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?No(t)?[]:wy(t,this._c):[].concat(r),n],a=s[0],c=s.reduce((u,f)=>{const p=tu(t,f,i);return u.top=ge(p.top,u.top),u.right=Ur(p.right,u.right),u.bottom=Ur(p.bottom,u.bottom),u.left=ge(p.left,u.left),u},tu(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sy(e){const{width:t,height:r}=Oh(e);return{width:t,height:r}}function Cy(e,t,r){const n=cr(t),i=ur(t),o=r==="fixed",s=hn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=nr(0);function u(){c.x=Fo(i)}if(n||!n&&!o)if((Wn(t)!=="body"||yi(i))&&(a=ko(t)),n){const h=hn(t,!0,o,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else i&&u();o&&!n&&i&&u();const f=i&&!n&&!o?Ih(i,a):nr(0),p=s.left+a.scrollLeft-c.x-f.x,d=s.top+a.scrollTop-c.y-f.y;return{x:p,y:d,width:s.width,height:s.height}}function hs(e){return Ke(e).position==="static"}function eu(e,t){if(!cr(e)||Ke(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ur(e)===r&&(r=r.ownerDocument.body),r}function Nh(e,t){const r=be(e);if(No(e))return r;if(!cr(e)){let i=zr(e);for(;i&&!Mn(i);){if(Ye(i)&&!hs(i))return i;i=zr(i)}return r}let n=eu(e,t);for(;n&&oy(n)&&hs(n);)n=eu(n,t);return n&&Mn(n)&&hs(n)&&!al(n)?r:n||uy(e)||r}const xy=async function(e){const t=this.getOffsetParent||Nh,r=this.getDimensions,n=await r(e.floating);return{reference:Cy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ty(e){return Ke(e).direction==="rtl"}const Py={convertOffsetParentRelativeRectToViewportRelativeRect:gy,getDocumentElement:ur,getClippingRect:_y,getOffsetParent:Nh,getElementRects:xy,getClientRects:py,getDimensions:Sy,getScale:Cn,isElement:Ye,isRTL:Ty};function kh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ay(e,t){let r=null,n;const i=ur(e);function o(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const u=e.getBoundingClientRect(),{left:f,top:p,width:d,height:h}=u;if(a||t(),!d||!h)return;const g=Fi(p),b=Fi(i.clientWidth-(f+d)),w=Fi(i.clientHeight-(p+h)),S=Fi(f),x={rootMargin:-g+"px "+-b+"px "+-w+"px "+-S+"px",threshold:ge(0,Ur(1,c))||1};let D=!0;function N(O){const E=O[0].intersectionRatio;if(E!==c){if(!D)return s();E?s(!1,E):n=setTimeout(()=>{s(!1,1e-7)},1e3)}E===1&&!kh(u,e.getBoundingClientRect())&&s(),D=!1}try{r=new IntersectionObserver(N,{...x,root:i.ownerDocument})}catch{r=new IntersectionObserver(N,x)}r.observe(e)}return s(!0),o}function Dy(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=cl(e),f=i||o?[...u?ri(u):[],...ri(t)]:[];f.forEach(S=>{i&&S.addEventListener("scroll",r,{passive:!0}),o&&S.addEventListener("resize",r)});const p=u&&a?Ay(u,r):null;let d=-1,h=null;s&&(h=new ResizeObserver(S=>{let[T]=S;T&&T.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),r()}),u&&!c&&h.observe(u),h.observe(t));let g,b=c?hn(e):null;c&&w();function w(){const S=hn(e);b&&!kh(b,S)&&r(),b=S,g=requestAnimationFrame(w)}return r(),()=>{var S;f.forEach(T=>{i&&T.removeEventListener("scroll",r),o&&T.removeEventListener("resize",r)}),p?.(),(S=h)==null||S.disconnect(),h=null,c&&cancelAnimationFrame(g)}}const Oy=$b,Ey=ty,Iy=Zb,My=ry,Ny=Jb,ky=Gb,Fy=ey,Ry=(e,t,r)=>{const n=new Map,i={platform:Py,...r},o={...i.platform,_c:n};return Xb(e,t,{...i,platform:o})};function Jr(e){return typeof e=="function"?e():e}function Fh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ru(e,t){const r=Fh(e);return Math.round(t*r)/r}function ni(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Ly(e){const t=e.whileElementsMounted,r=y(()=>Jr(e.open)??!0),n=y(()=>Jr(e.middleware)),i=y(()=>Jr(e.transform)??!0),o=y(()=>Jr(e.placement)??"bottom"),s=y(()=>Jr(e.strategy)??"absolute"),a=y(()=>Jr(e.sideOffset)??0),c=y(()=>Jr(e.alignOffset)??0),u=e.reference;let f=I(0),p=I(0);const d=ae(null);let h=I(qt(l(s))),g=I(qt(l(o))),b=I(qt({})),w=I(!1),S=!1;const T=y(()=>{const W=d.current?ru(d.current,l(f)):l(f),R=d.current?ru(d.current,l(p)):l(p);return l(i)?{position:l(h),left:"0",top:"0",transform:`translate(${W}px, ${R}px)`,...d.current&&Fh(d.current)>=1.5&&{willChange:"transform"}}:{position:l(h),left:`${W}px`,top:`${R}px`}});let x;function D(){u.current===null||d.current===null||Ry(u.current,d.current,{middleware:l(n),placement:l(o),strategy:l(s)}).then(W=>{const R=u.current;if(By(R)){v(b,{...l(b),hide:{...l(b).hide,referenceHidden:!0}},!0);return}if(!l(r)&&l(f)!==0&&l(p)!==0){const B=Math.max(Math.abs(l(a)),Math.abs(l(c)),15);if(W.x<=B&&W.y<=B)return}v(f,W.x,!0),v(p,W.y,!0),v(h,W.strategy,!0),v(g,W.placement,!0),v(b,W.middlewareData,!0),v(w,!0)})}function N(){typeof x=="function"&&(x(),x=void 0)}function O(){if(N(),t===void 0){D();return}l(r)&&(u.current===null||d.current===null||(x=t(u.current,d.current,D)))}function E(){!l(r)&&d.current===null&&v(w,!1)}function F(){return[l(n),l(o),l(s),l(a),l(c),l(r)]}return nt(()=>{t===void 0&&l(r)&&D()}),nt(O),nt(()=>{if(t!==void 0){if(F(),!l(r)){S=!1;return}if(!l(w)){S=!1;return}if(!S){S=!0;return}D()}}),nt(E),nt(()=>N),{floating:d,reference:u,get strategy(){return l(h)},get placement(){return l(g)},get middlewareData(){return l(b)},get isPositioned(){return l(w)},get floatingStyles(){return l(T)},get update(){return D}}}function By(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Vy={top:"bottom",right:"left",bottom:"top",left:"right"},ul=new Vt("Floating.Root"),Ys=new Vt("Floating.Content"),dl=new Vt("Floating.Root");class lo{static create(t=!1){return t?dl.set(new lo):ul.set(new lo)}anchorNode=ae(null);customAnchorNode=ae(null);triggerNode=ae(null);constructor(){nt(()=>{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})}}class co{static create(t,r=!1){return r?Ys.set(new co(t,dl.get())):Ys.set(new co(t,ul.get()))}opts;root;contentRef=ae(null);wrapperRef=ae(null);arrowRef=ae(null);contentAttachment=rt(this.contentRef);wrapperAttachment=rt(this.wrapperRef);arrowAttachment=rt(this.arrowRef);arrowId=ae(Xr());#t=y(()=>{if(typeof this.opts.style=="string")return Zn(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#r=new Rp(()=>this.arrowRef.current??void 0);#n=y(()=>this.#r?.width??0);#i=y(()=>this.#r?.height??0);#o=y(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=y(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=y(()=>l(this.#a).length>0);get hasExplicitBoundaries(){return l(this.#s)}set hasExplicitBoundaries(t){v(this.#s,t)}#l=y(()=>({padding:this.opts.collisionPadding.current,boundary:l(this.#a).filter(tv),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return l(this.#l)}set detectOverflowOptions(t){v(this.#l,t)}#c=I(void 0);#u=I(void 0);#h=I(void 0);#f=I(void 0);#g=y(()=>[Oy({mainAxis:this.opts.sideOffset.current+l(this.#i),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Ey({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Fy():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Iy({...this.detectOverflowOptions}),My({...this.detectOverflowOptions,apply:({rects:t,availableWidth:r,availableHeight:n})=>{const{width:i,height:o}=t.reference;v(this.#c,r,!0),v(this.#u,n,!0),v(this.#h,i,!0),v(this.#f,o,!0)}}),this.arrowRef.current&&ky({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Hy({arrowWidth:l(this.#n),arrowHeight:l(this.#i)}),this.opts.hideWhenDetached.current&&Ny({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return l(this.#g)}set middleware(t){v(this.#g,t)}floating;#d=y(()=>Wy(this.floating.placement));get placedSide(){return l(this.#d)}set placedSide(t){v(this.#d,t)}#p=y(()=>Uy(this.floating.placement));get placedAlign(){return l(this.#p)}set placedAlign(t){v(this.#p,t)}#v=y(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return l(this.#v)}set arrowX(t){v(this.#v,t)}#m=y(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return l(this.#m)}set arrowY(t){v(this.#m,t)}#y=y(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return l(this.#y)}set cannotCenterArrow(t){v(this.#y,t)}#b=I();get contentZIndex(){return l(this.#b)}set contentZIndex(t){v(this.#b,t,!0)}#w=y(()=>Vy[this.placedSide]);get arrowBaseSide(){return l(this.#w)}set arrowBaseSide(t){v(this.#w,t)}#_=y(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${l(this.#c)}px`,"--bits-floating-available-height":`${l(this.#u)}px`,"--bits-floating-anchor-width":`${l(this.#h)}px`,"--bits-floating-anchor-height":`${l(this.#f)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...l(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return l(this.#_)}set wrapperProps(t){v(this.#_,t)}#S=y(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Ao({...l(this.#t)}),...this.contentAttachment}));get props(){return l(this.#S)}set props(t){v(this.#S,t)}#C=y(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return l(this.#C)}set arrowStyle(t){v(this.#C,t)}constructor(t,r){this.opts=t,this.root=r,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),et(()=>t.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=Ly({strategy:()=>this.opts.strategy.current,placement:()=>l(this.#o),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>Dy(...n,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),nt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),et(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const i=va(n),o=i.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const s=i.getComputedStyle(n).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{i.cancelAnimationFrame(o)}}),nt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class hl{static create(t){return new hl(t,Ys.get())}opts;content;constructor(t,r){this.opts=t,this.content=r}#t=y(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}class uo{static create(t,r=!1){return r?new uo(t,dl.get()):new uo(t,ul.get())}opts;root;constructor(t,r){this.opts=t,this.root=r,t.virtualEl&&t.virtualEl.current?r.triggerNode=Cd(t.virtualEl.current):r.triggerNode=t.ref}}function Hy(e){return{name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[u,f]=fl(r),p={start:"0%",center:"50%",end:"100%"}[f],d=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+c/2;let g="",b="";return u==="bottom"?(g=s?p:`${d}px`,b=`${-c}px`):u==="top"?(g=s?p:`${d}px`,b=`${n.floating.height+c}px`):u==="right"?(g=`${-c}px`,b=s?p:`${h}px`):u==="left"&&(g=`${n.floating.width+c}px`,b=s?p:`${h}px`),{data:{x:g,y:b}}}}}function fl(e){const[t,r="center"]=e.split("-");return[t,r]}function Wy(e){return fl(e)[0]}function Uy(e){return fl(e)[1]}function gl(e,t){V(t,!0);let r=m(t,"tooltip",3,!1);lo.create(r());var n=A(),i=P(n);M(i,()=>t.children??L),C(e,n),H()}class zy{#t;#e=y(()=>this.#t.candidateValues());#r;constructor(t){this.#t=t,this.#r=Xd("",{afterMs:1e3,getWindow:this.#t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!this.#t.enabled()||!l(this.#e).length)return;this.#r.current=this.#r.current+t;const r=this.#t.getCurrentItem(),n=l(this.#e).find(a=>a===r)??"",i=l(this.#e).map(a=>a??""),o=Ta(i,this.#r.current,n),s=l(this.#e).find(a=>a===o);return s&&this.#t.onMatch(s),s}resetTypeahead(){this.#r.current=""}}const Yy=[$e,Ld,ba],Ky=[Re,Rd,ma],jy=[...Yy,...Ky],qy=we({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),wi=new Vt("Select.Root | Combobox.Root"),Ro=new Vt("Select.Content | Combobox.Content");class Rh{opts;#t=I(!1);get touchedInput(){return l(this.#t)}set touchedInput(t){v(this.#t,t,!0)}#e=I(null);get inputNode(){return l(this.#e)}set inputNode(t){v(this.#e,t,!0)}#r=I(null);get contentNode(){return l(this.#r)}set contentNode(t){v(this.#r,t,!0)}contentPresence;#n=I(null);get viewportNode(){return l(this.#n)}set viewportNode(t){v(this.#n,t,!0)}#i=I(null);get triggerNode(){return l(this.#i)}set triggerNode(t){v(this.#i,t,!0)}#o=I("");get valueId(){return l(this.#o)}set valueId(t){v(this.#o,t,!0)}#a=I(null);get highlightedNode(){return l(this.#a)}set highlightedNode(t){v(this.#a,t,!0)}#s=y(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null);get highlightedValue(){return l(this.#s)}set highlightedValue(t){v(this.#s,t)}#l=y(()=>{if(this.highlightedNode)return this.highlightedNode.id});get highlightedId(){return l(this.#l)}set highlightedId(t){v(this.#l,t)}#c=y(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null);get highlightedLabel(){return l(this.#c)}set highlightedLabel(t){v(this.#c,t)}isUsingKeyboard=!1;isCombobox=!1;domContext=new Pr(()=>null);constructor(t){this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new ln({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Rn(()=>{this.opts.open.current||this.setHighlightedNode(null)})}setHighlightedNode(t,r=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||r)&&t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let r=this.getCandidateNodes();if(r.length){if(this.viewportNode){const n=this.viewportNode.getBoundingClientRect();r=r.filter(i=>{if(!this.viewportNode)return!1;const o=i.getBoundingClientRect();return o.right<=n.right&&o.left>=n.left&&o.bottom<=n.bottom&&o.top>=n.top})}this.setHighlightedNode(r[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(n=>n.dataset.value===t)??null}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}getBitsAttr=t=>qy.getAttr(t,this.isCombobox?"combobox":void 0)}class Xy extends Rh{opts;isMulti=!1;#t=y(()=>this.opts.value.current!=="");get hasValue(){return l(this.#t)}set hasValue(t){v(this.#t,t)}#e=y(()=>this.opts.items.current.length?this.opts.items.current.find(t=>t.value===this.opts.value.current)?.label??"":"");get currentLabel(){return l(this.#e)}set currentLabel(t){v(this.#e,t)}#r=y(()=>this.opts.items.current.length?this.opts.items.current.filter(r=>!r.disabled).map(r=>r.label):[]);get candidateLabels(){return l(this.#r)}set candidateLabels(t){v(this.#r,t)}#n=y(()=>!(this.isMulti||this.opts.items.current.length===0));get dataTypeaheadEnabled(){return l(this.#n)}set dataTypeaheadEnabled(t){v(this.#n,t)}constructor(t){super(t),this.opts=t,nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),et(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current===t}toggleItem(t,r=t){const n=this.includesItem(t)?"":t;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=r)}setInitialHighlightedNode(){Br(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const t=this.getNodeByValue(this.opts.value.current);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Gy extends Rh{opts;isMulti=!0;#t=y(()=>this.opts.value.current.length>0);get hasValue(){return l(this.#t)}set hasValue(t){v(this.#t,t)}constructor(t){super(t),this.opts=t,nt(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),et(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}includesItem(t){return this.opts.value.current.includes(t)}toggleItem(t,r=t){this.includesItem(t)?this.opts.value.current=this.opts.value.current.filter(n=>n!==t):this.opts.value.current=[...this.opts.value.current,t],this.opts.inputValue.current=r}setInitialHighlightedNode(){Br(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const t=this.getNodeByValue(this.opts.value.current[0]);if(t){this.setHighlightedNode(t,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}class Zy{static create(t){const{type:r,...n}=t,i=r==="single"?new Xy(n):new Gy(n);return wi.set(i)}}class pl{static create(t){return new pl(t,wi.get())}opts;root;attachment;#t;#e;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref,n=>this.root.triggerNode=n),this.root.domContext=new Pr(t.ref),this.#t=new Lv({getCurrentItem:()=>this.root.highlightedNode,onMatch:n=>{this.root.setHighlightedNode(n)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()}),this.#e=new zy({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:n=>{if(this.root.isMulti||!this.root.opts.items.current)return;const i=this.root.opts.items.current.find(o=>o.label===n);i&&(this.root.opts.value.current=i.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()}),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}#r(){this.root.opts.open.current=!0,this.#e.resetTypeahead(),this.#t.resetTypeahead()}#n(t){this.#r()}#i(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===Re||t.key===$e)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ar||t.key===We||t.key===$e||t.key===Re)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){this.#e.handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const s=this.root.getCandidateNodes();if(!s.length)return;if(t.key===$e){const a=s[0];this.root.setHighlightedNode(a)}else if(t.key===Re){const a=s[s.length-1];this.root.setHighlightedNode(a)}return}if(t.key===Ec){this.root.handleClose();return}if((t.key===ar||t.key===We&&this.#t.search==="")&&!t.isComposing&&(t.preventDefault(),this.#i()))return;if(t.key===Re&&t.altKey&&this.root.handleClose(),jy.includes(t.key)){t.preventDefault();const s=this.root.getCandidateNodes(),a=this.root.highlightedNode,c=a?s.indexOf(a):-1,u=this.root.opts.loop.current;let f;if(t.key===$e?f=Mv(s,c,u):t.key===Re?f=Nv(s,c,u):t.key===Rd?f=kv(s,c,10,u):t.key===Ld?f=Fv(s,c,10,u):t.key===ba?f=s[0]:t.key===ma&&(f=s[s.length-1]),!f)return;this.root.setHighlightedNode(f);return}const r=t.ctrlKey||t.altKey||t.metaKey,n=t.key.length===1,i=t.key===We,o=this.root.getCandidateNodes();if(t.key!==Ec){if(!r&&(n||i)){!this.#t.handleTypeaheadSearch(t.key,o)&&i&&(t.preventDefault(),this.#i());return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const r=t.target;r?.hasPointerCapture(t.pointerId)&&r?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?this.#n(t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?this.#n(t):this.root.handleClose()))}#o=y(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":he(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":qr(this.root.opts.open.current),"data-disabled":ft(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment}));get props(){return l(this.#o)}set props(t){v(this.#o,t)}}class vl{static create(t){return Ro.set(new vl(t,wi.get()))}opts;root;attachment;#t=I(!1);get isPositioned(){return l(this.#t)}set isPositioned(t){v(this.#t,t,!0)}domContext;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref,n=>this.root.contentNode=n),this.domContext=new Pr(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),jr(()=>{this.root.contentNode=null,this.isPositioned=!1}),et(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.isPositioned=!1)}),this.onpointermove=this.onpointermove.bind(this)}onpointermove(t){this.root.isUsingKeyboard=!1}#e=y(()=>ni(this.root.isCombobox?"combobox":"select"));onInteractOutside=t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#r=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#r)}set snippetProps(t){v(this.#r,t)}#n=y(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":qr(this.root.opts.open.current),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...l(this.#e)},onpointermove:this.onpointermove,...this.attachment}));get props(){return l(this.#n)}set props(t){v(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.isPositioned=!0)}}}class ml{static create(t){return new ml(t,wi.get())}opts;root;attachment;#t=y(()=>this.root.includesItem(this.opts.value.current));get isSelected(){return l(this.#t)}set isSelected(t){v(this.#t,t)}#e=y(()=>this.root.highlightedValue===this.opts.value.current);get isHighlighted(){return l(this.#e)}set isHighlighted(t){v(this.#e,t)}prevHighlighted=new Ed(()=>this.isHighlighted);#r=I(!1);get mounted(){return l(this.#r)}set mounted(t){v(this.#r,t,!0)}constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref),et([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),et(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}#n=y(()=>({selected:this.isSelected,highlighted:this.isHighlighted}));get snippetProps(){return l(this.#n)}set snippetProps(t){v(this.#n,t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!Fs){bt(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}#i=y(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":ft(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment}));get props(){return l(this.#i)}set props(t){v(this.#i,t)}}class bl{static create(t){return new bl(t,wi.get())}opts;root;#t=y(()=>this.root.opts.name.current!=="");get shouldRender(){return l(this.#t)}set shouldRender(t){v(this.#t,t)}constructor(t,r){this.opts=t,this.root=r,this.onfocus=this.onfocus.bind(this)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}#e=y(()=>({disabled:Gi(this.root.opts.disabled.current),required:Gi(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class yl{static create(t){return new yl(t,Ro.get())}opts;content;root;attachment;#t=I(0);get prevScrollTop(){return l(this.#t)}set prevScrollTop(t){v(this.#t,t,!0)}constructor(t,r){this.opts=t,this.content=r,this.root=r.root,this.attachment=rt(t.ref,n=>{this.root.viewportNode=n})}#e=y(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Lh{opts;content;root;attachment;autoScrollTimer=null;userScrollTimer=-1;isUserScrolling=!1;onAutoScroll=st;#t=I(!1);get mounted(){return l(this.#t)}set mounted(t){v(this.#t,t,!0)}constructor(t,r){this.opts=t,this.content=r,this.root=r.root,this.attachment=rt(t.ref),et([()=>this.mounted],()=>{if(!this.mounted){this.isUserScrolling=!1;return}this.isUserScrolling}),nt(()=>{this.mounted||this.clearAutoScrollInterval()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}handleUserScroll(){this.content.domContext.clearTimeout(this.userScrollTimer),this.isUserScrolling=!0,this.userScrollTimer=this.content.domContext.setTimeout(()=>{this.isUserScrolling=!1},200)}clearAutoScrollInterval(){this.autoScrollTimer!==null&&(this.content.domContext.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=null)}onpointerdown(t){if(this.autoScrollTimer!==null)return;const r=n=>{this.onAutoScroll(),this.autoScrollTimer=this.content.domContext.setTimeout(()=>r(n+1),this.opts.delay.current(n))};this.autoScrollTimer=this.content.domContext.setTimeout(()=>r(1),this.opts.delay.current(0))}onpointermove(t){this.onpointerdown(t)}onpointerleave(t){this.clearAutoScrollInterval()}#e=y(()=>({id:this.opts.id.current,"aria-hidden":kd(!0),style:{flexShrink:0},onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class wl{static create(t){return new wl(new Lh(t,Ro.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollDown(){return l(this.#t)}set canScrollDown(t){v(this.#t,t,!0)}scrollIntoViewTimer=null;constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,et([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),bt(this.root.viewportNode,"scroll",()=>this.handleScroll())}),et([()=>this.root.opts.inputValue.current,()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{!this.root.viewportNode||!this.content.isPositioned||this.handleScroll(!0)}),et(()=>this.scrollButtonState.mounted,()=>{this.scrollButtonState.mounted&&(this.scrollIntoViewTimer&&clearTimeout(this.scrollIntoViewTimer),this.scrollIntoViewTimer=Id(5,()=>{this.root.highlightedNode?.scrollIntoView({block:this.root.opts.scrollAlignment.current})}))})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const r=this.root.viewportNode.scrollHeight-this.root.viewportNode.clientHeight,n=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollDown=Math.ceil(this.root.viewportNode.scrollTop)<r-n};handleAutoScroll=()=>{const t=this.root.viewportNode,r=this.root.highlightedNode;!t||!r||(t.scrollTop=t.scrollTop+r.offsetHeight)};#e=y(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-down-button")]:""}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class _l{static create(t){return new _l(new Lh(t,Ro.get()))}scrollButtonState;content;root;#t=I(!1);get canScrollUp(){return l(this.#t)}set canScrollUp(t){v(this.#t,t,!0)}constructor(t){this.scrollButtonState=t,this.content=t.content,this.root=t.root,this.scrollButtonState.onAutoScroll=this.handleAutoScroll,et([()=>this.root.viewportNode,()=>this.content.isPositioned],()=>{if(!(!this.root.viewportNode||!this.content.isPositioned))return this.handleScroll(!0),bt(this.root.viewportNode,"scroll",()=>this.handleScroll())})}handleScroll=(t=!1)=>{if(t||this.scrollButtonState.handleUserScroll(),!this.root.viewportNode)return;const r=Number.parseInt(getComputedStyle(this.root.viewportNode).paddingTop,10);this.canScrollUp=this.root.viewportNode.scrollTop-r>.1};handleAutoScroll=()=>{!this.root.viewportNode||!this.root.highlightedNode||(this.root.viewportNode.scrollTop=this.root.viewportNode.scrollTop-this.root.highlightedNode.offsetHeight)};#e=y(()=>({...this.scrollButtonState.props,[this.root.getBitsAttr("scroll-up-button")]:""}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}function fs(e,t){V(t,!0);let r=m(t,"value",15);const n=bl.create({value:_(()=>r())});var i=A(),o=P(i);{var s=a=>{Qa(a,wt(()=>n.props,{get autocomplete(){return t.autocomplete},get value(){return r()},set value(c){r(c)}}))};k(o,a=>{n.shouldRender&&a(s)})}C(e,i),H()}function Bh(e,t){V(t,!0);let r=m(t,"tooltip",3,!1);uo.create({id:_(()=>t.id),virtualEl:_(()=>t.virtualEl),ref:t.ref},r());var n=A(),i=P(n);M(i,()=>t.children??L),C(e,n),H()}var Jy=Bn('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),Qy=U("<span><!></span>");function $y(e,t){V(t,!0);let r=m(t,"id",19,Xr),n=m(t,"width",3,10),i=m(t,"height",3,5),o=q(t,["$$slots","$$events","$$legacy","id","children","child","width","height"]);const s=y(()=>j(o,{id:r()}));var a=A(),c=P(a);{var u=p=>{var d=A(),h=P(d);M(h,()=>t.child,()=>({props:l(s)})),C(p,d)},f=p=>{var d=Qy();J(d,()=>({...l(s)}));var h=Y(d);{var g=w=>{var S=A(),T=P(S);M(T,()=>t.children??L),C(w,S)},b=w=>{var S=Jy();Jt(()=>{Ct(S,"width",n()),Ct(S,"height",i())}),C(w,S)};k(h,w=>{t.children?w(g):w(b,-1)})}z(d),C(p,d)};k(c,p=>{t.child?p(u):p(f,-1)})}C(e,a),H()}function tw(e,t){V(t,!0);let r=m(t,"id",19,Xr),n=m(t,"ref",15,null),i=q(t,["$$slots","$$events","$$legacy","id","ref"]);const o=hl.create({id:_(()=>r()),ref:_(()=>n(),a=>n(a))}),s=y(()=>j(i,o.props));$y(e,wt(()=>l(s))),H()}function ew(e,t){V(t,!0);let r=m(t,"side",3,"bottom"),n=m(t,"sideOffset",3,0),i=m(t,"align",3,"center"),o=m(t,"alignOffset",3,0),s=m(t,"arrowPadding",3,0),a=m(t,"avoidCollisions",3,!0),c=m(t,"collisionBoundary",19,()=>[]),u=m(t,"collisionPadding",3,0),f=m(t,"hideWhenDetached",3,!1),p=m(t,"onPlaced",3,()=>{}),d=m(t,"sticky",3,"partial"),h=m(t,"updatePositionStrategy",3,"optimized"),g=m(t,"strategy",3,"fixed"),b=m(t,"dir",3,"ltr"),w=m(t,"style",19,()=>({})),S=m(t,"wrapperId",19,Xr),T=m(t,"customAnchor",3,null),x=m(t,"tooltip",3,!1);const D=co.create({side:_(()=>r()),sideOffset:_(()=>n()),align:_(()=>i()),alignOffset:_(()=>o()),id:_(()=>t.id),arrowPadding:_(()=>s()),avoidCollisions:_(()=>a()),collisionBoundary:_(()=>c()),collisionPadding:_(()=>u()),hideWhenDetached:_(()=>f()),onPlaced:_(()=>p()),sticky:_(()=>d()),updatePositionStrategy:_(()=>h()),strategy:_(()=>g()),dir:_(()=>b()),style:_(()=>w()),enabled:_(()=>t.enabled),wrapperId:_(()=>S()),customAnchor:_(()=>T())},x()),N=y(()=>j(D.wrapperProps,{style:{pointerEvents:"auto"}}));var O=A(),E=P(O);M(E,()=>t.content??L,()=>({props:D.props,wrapperProps:l(N)})),C(e,O),H()}function rw(e,t){V(t,!0),hi(()=>{t.onPlaced?.()});var r=A(),n=P(r);M(n,()=>t.content??L,()=>({props:{},wrapperProps:{}})),C(e,r),H()}const nw=we({component:"separator",parts:["root"]});class Sl{static create(t){return new Sl(t)}opts;attachment;constructor(t){this.opts=t,this.attachment=rt(t.ref)}#t=y(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":kd(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[nw.root]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}var iw=U("<div><!></div>");function j1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"decorative",3,!1),s=m(t,"orientation",3,"horizontal"),a=q(t,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const c=Sl.create({ref:_(()=>i(),g=>i(g)),id:_(()=>n()),decorative:_(()=>o()),orientation:_(()=>s())}),u=y(()=>j(a,c.props));var f=A(),p=P(f);{var d=g=>{var b=A(),w=P(b);M(w,()=>t.child,()=>({props:l(u)})),C(g,b)},h=g=>{var b=iw();J(b,()=>({...l(u)}));var w=Y(b);M(w,()=>t.children??L),z(b),C(g,b)};k(p,g=>{t.child?g(d):g(h,-1)})}C(e,f),H()}function ow(e,t){let r=m(t,"isStatic",3,!1),n=q(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=A(),o=P(i);{var s=c=>{rw(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{ew(c,wt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>n))};k(o,c=>{r()?c(s):c(a,-1)})}C(e,i)}var sw=U("<!> <!>",1);function Vh(e,t){V(t,!0);let r=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=m(t,"tooltip",3,!1),c=m(t,"contentPointerEvents",3,"auto"),u=q(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"]);ow(e,{get isStatic(){return s()},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 a()},content:(p,d)=>{let h=()=>d?.().props,g=()=>d?.().wrapperProps;var b=sw(),w=P(b);{var S=D=>{ro(D,{get preventScroll(){return t.preventScroll}})},T=D=>{ro(D,{get preventScroll(){return t.preventScroll}})};k(w,D=>{t.forceMount&&t.enabled?D(S):t.forceMount||D(T,1)})}var x=se(w,2);Jd(x,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return n()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(N,O)=>{let E=()=>O?.().props;Zd(N,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(F,W)=>{Gd(F,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(G,B)=>{let Z=()=>B?.().props;Qd(G,{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:(Q,gt)=>{var St=A(),ht=P(St);{let X=y(()=>({props:j(u,h(),Z(),E(),{style:{pointerEvents:c()}}),wrapperProps:g()}));M(ht,()=>t.popper??L,()=>l(X))}C(Q,St)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(p,b)},$$slots:{content:!0}}),H()}function Cl(e,t){let r=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=q(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 c=A(),u=P(c);{var f=p=>{Vh(p,wt({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 s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return t.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};k(u,p=>{t.shouldRender&&p(f)})}C(e,c)}function xl(e,t){let r=m(t,"interactOutsideBehavior",3,"close"),n=m(t,"trapFocus",3,!0),i=m(t,"isValidEvent",3,()=>!1),o=m(t,"customAnchor",3,null),s=m(t,"isStatic",3,!1),a=q(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"]);Vh(e,wt({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 s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return t.loop},get trapFocus(){return n()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}var aw=U("<div><div><!></div></div>"),lw=U("<div><div><!></div></div>");function q1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"forceMount",3,!1),s=m(t,"side",3,"bottom"),a=m(t,"onInteractOutside",3,st),c=m(t,"onEscapeKeydown",3,st),u=m(t,"preventScroll",3,!1),f=q(t,["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]);const p=vl.create({id:_(()=>n()),ref:_(()=>i(),S=>i(S)),onInteractOutside:_(()=>a()),onEscapeKeydown:_(()=>c())}),d=y(()=>j(f,p.props));var h=A(),g=P(h);{var b=S=>{xl(S,wt(()=>l(d),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return s()},get enabled(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!0,get shouldRender(){return p.shouldRender},popper:(x,D)=>{let N=()=>D?.().props,O=()=>D?.().wrapperProps;const E=y(()=>j(N(),{style:p.props.style},{style:t.style}));var F=A(),W=P(F);{var R=B=>{var Z=A(),Q=P(Z);{let gt=y(()=>({props:l(E),wrapperProps:O(),...p.snippetProps}));M(Q,()=>t.child,()=>l(gt))}C(B,Z)},G=B=>{var Z=aw();J(Z,()=>({...O()}));var Q=Y(Z);J(Q,()=>({...l(E)}));var gt=Y(Q);M(gt,()=>t.children??L),z(Q),z(Z),C(B,Z)};k(W,B=>{t.child?B(R):B(G,-1)})}C(x,F)},$$slots:{popper:!0}}))},w=S=>{Cl(S,wt(()=>l(d),()=>p.popperProps,{get ref(){return p.opts.ref},get side(){return s()},get open(){return p.root.opts.open.current},get id(){return n()},get preventScroll(){return u()},forceMount:!1,get shouldRender(){return p.shouldRender},popper:(x,D)=>{let N=()=>D?.().props,O=()=>D?.().wrapperProps;const E=y(()=>j(N(),{style:p.props.style},{style:t.style}));var F=A(),W=P(F);{var R=B=>{var Z=A(),Q=P(Z);{let gt=y(()=>({props:l(E),wrapperProps:O(),...p.snippetProps}));M(Q,()=>t.child,()=>l(gt))}C(B,Z)},G=B=>{var Z=lw();J(Z,()=>({...O()}));var Q=Y(Z);J(Q,()=>({...l(E)}));var gt=Y(Q);M(gt,()=>t.children??L),z(Q),z(Z),C(B,Z)};k(W,B=>{t.child?B(R):B(G,-1)})}C(x,F)},$$slots:{popper:!0}}))};k(g,S=>{o()?S(b):o()||S(w,1)})}C(e,h),H()}function Tl(e,t){V(t,!0);let r=m(t,"mounted",15,!1),n=m(t,"onMountedChange",3,st);Oo(()=>(r(!0),n()(!0),()=>{r(!1),n()(!1)})),H()}var cw=U("<div><!></div>"),uw=U("<!> <!>",1);function X1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"label",19,()=>t.value),s=m(t,"disabled",3,!1),a=m(t,"onHighlight",3,st),c=m(t,"onUnhighlight",3,st),u=q(t,["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]);const f=ml.create({id:_(()=>n()),ref:_(()=>i(),S=>i(S)),value:_(()=>t.value),disabled:_(()=>s()),label:_(()=>o()),onHighlight:_(()=>a()),onUnhighlight:_(()=>c())}),p=y(()=>j(u,f.props));var d=uw(),h=P(d);{var g=S=>{var T=A(),x=P(T);{let D=y(()=>({props:l(p),...f.snippetProps}));M(x,()=>t.child,()=>l(D))}C(S,T)},b=S=>{var T=cw();J(T,()=>({...l(p)}));var x=Y(T);M(x,()=>t.children??L,()=>f.snippetProps),z(T),C(S,T)};k(h,S=>{t.child?S(g):S(b,-1)})}var w=se(h,2);Tl(w,{get mounted(){return f.mounted},set mounted(S){f.mounted=S}}),C(e,d),H()}var dw=U("<div><!></div>");function G1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=q(t,["$$slots","$$events","$$legacy","id","ref","children","child"]);const s=yl.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=dw();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var hw=U("<div><!></div>"),fw=U("<!> <!>",1);function Z1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"delay",3,()=>50),s=q(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const a=wl.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d)),delay:_(()=>o())}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=d=>{var h=fw(),g=P(h);Tl(g,{get mounted(){return a.scrollButtonState.mounted},set mounted(T){a.scrollButtonState.mounted=T}});var b=se(g,2);{var w=T=>{var x=A(),D=P(x);M(D,()=>t.child,()=>({props:s})),C(T,x)},S=T=>{var x=hw();J(x,()=>({...l(c)}));var D=Y(x);M(D,()=>t.children??L),z(x),C(T,x)};k(b,T=>{t.child?T(w):T(S,-1)})}C(d,h)};k(f,d=>{a.canScrollDown&&d(p)})}C(e,u),H()}var gw=U("<div><!></div>"),pw=U("<!> <!>",1);function J1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"delay",3,()=>50),s=q(t,["$$slots","$$events","$$legacy","id","ref","delay","child","children"]);const a=_l.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d)),delay:_(()=>o())}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=d=>{var h=pw(),g=P(h);Tl(g,{get mounted(){return a.scrollButtonState.mounted},set mounted(T){a.scrollButtonState.mounted=T}});var b=se(g,2);{var w=T=>{var x=A(),D=P(x);M(D,()=>t.child,()=>({props:s})),C(T,x)},S=T=>{var x=gw();J(x,()=>({...l(c)}));var D=Y(x);M(D,()=>t.children??L),z(x),C(T,x)};k(b,T=>{t.child?T(w):T(S,-1)})}C(d,h)};k(f,d=>{a.canScrollUp&&d(p)})}C(e,u),H()}function gs(e,t){const[r,n]=e;let i=!1;const o=t.length;for(let s=0,a=o-1;s<o;a=s++){const[c,u]=t[s]??[0,0],[f,p]=t[a]??[0,0];u>=n!=p>=n&&r<=(f-c)*(n-u)/(p-u)+c&&(i=!i)}return i}function ps(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function nu(e,t){const r=e.left+e.width/2,n=e.top+e.height/2,i=t.left+t.width/2,o=t.top+t.height/2,s=i-r,a=o-n;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class Hh{#t;#e;#r;#n=null;#i=null;#o=[];#a=null;#s=null;#l=null;#c(){this.#s!==null&&(cancelAnimationFrame(this.#s),this.#s=null)}#u(){this.#c(),this.#s=requestAnimationFrame(()=>{this.#s=null,!(!this.#n||!this.#i)&&(this.#d(),this.#t.onPointerExit())})}#h(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#f(){this.#r!==null&&(this.#h(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#n||!this.#i)&&(this.#d(),this.#t.onPointerExit())},this.#r))}constructor(t){this.#t=t,this.#e=t.buffer??1;const r=t.transitIntentTimeout;this.#r=typeof r=="number"&&r>0?r:null,et([t.triggerNode,t.contentNode,t.enabled],([n,i,o])=>{if(!n||!i||!o){this.#a=null,this.#d();return}this.#a&&this.#a!==n&&this.#d(),this.#a=n;const s=pa(n),a=d=>{this.#g([d.clientX,d.clientY],n,i)},c=d=>{const h=d.relatedTarget;if(vr(h)&&i.contains(h))return;const g=this.#t.ignoredTargets?.()??[];vr(h)&&g.some(b=>b===h||b.contains(h))||(this.#o=vr(h)&&g.length>0?g.filter(b=>h.contains(b)):[],this.#n=[d.clientX,d.clientY],this.#i="content",this.#u())},u=()=>{this.#d()},f=()=>{this.#d()},p=d=>{const h=d.relatedTarget;vr(h)&&n.contains(h)||(this.#n=[d.clientX,d.clientY],this.#i="trigger",this.#u())};return[bt(s,"pointermove",a),bt(n,"pointerleave",c),bt(n,"pointerenter",u),bt(i,"pointerenter",f),bt(i,"pointerleave",p)].reduce((d,h)=>()=>{d(),h()},()=>{})})}#g(t,r,n){if(!this.#n||!this.#i)return;this.#c(),this.#f();const i=r.getBoundingClientRect(),o=n.getBoundingClientRect();if(this.#i==="content"&&ps(t,o)){this.#d();return}if(this.#i==="trigger"&&ps(t,i)){this.#d();return}if(this.#i==="content"&&this.#o.length>0)for(const f of this.#o){const p=f.getBoundingClientRect();if(ps(t,p))return;const d=nu(i,p),h=this.#p(i,p,d);if(h&&gs(t,h))return}const s=nu(i,o),a=this.#p(i,o,s);if(a&&gs(t,a))return;const c=this.#i==="content"?o:i,u=this.#v(this.#n,c,s,this.#i);gs(t,u)||(this.#d(),this.#t.onPointerExit())}#d(){this.#n=null,this.#i=null,this.#o=[],this.#c(),this.#h()}#p(t,r,n){const i=this.#e;switch(n){case"top":return[[Math.min(t.left,r.left)-i,t.top],[Math.min(t.left,r.left)-i,r.bottom],[Math.max(t.right,r.right)+i,r.bottom],[Math.max(t.right,r.right)+i,t.top]];case"bottom":return[[Math.min(t.left,r.left)-i,t.bottom],[Math.min(t.left,r.left)-i,r.top],[Math.max(t.right,r.right)+i,r.top],[Math.max(t.right,r.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,r.top)-i],[r.right,Math.min(t.top,r.top)-i],[r.right,Math.max(t.bottom,r.bottom)+i],[t.left,Math.max(t.bottom,r.bottom)+i]];case"right":return[[t.right,Math.min(t.top,r.top)-i],[r.left,Math.min(t.top,r.top)-i],[r.left,Math.max(t.bottom,r.bottom)+i],[t.right,Math.max(t.bottom,r.bottom)+i]]}}#v(t,r,n,i){const o=this.#e*4,[s,a]=t;switch(i==="trigger"?this.#m(n):n){case"top":return[[s-o,a+o],[s+o,a+o],[r.right+o,r.bottom],[r.right+o,r.top],[r.left-o,r.top],[r.left-o,r.bottom]];case"bottom":return[[s-o,a-o],[s+o,a-o],[r.right+o,r.top],[r.right+o,r.bottom],[r.left-o,r.bottom],[r.left-o,r.top]];case"left":return[[s+o,a-o],[s+o,a+o],[r.right,r.bottom+o],[r.left,r.bottom+o],[r.left,r.top-o],[r.right,r.top-o]];case"right":return[[s-o,a-o],[s-o,a+o],[r.left,r.bottom+o],[r.right,r.bottom+o],[r.right,r.top-o],[r.left,r.top-o]]}}#m(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const ho=we({component:"popover",parts:["root","trigger","content","close","overlay"]}),Lo=new Vt("Popover.Root");class Pl{static create(t){return Lo.set(new Pl(t))}opts;#t=I(null);get contentNode(){return l(this.#t)}set contentNode(t){v(this.#t,t,!0)}contentPresence;#e=I(null);get triggerNode(){return l(this.#e)}set triggerNode(t){v(this.#e,t,!0)}#r=I(null);get overlayNode(){return l(this.#r)}set overlayNode(t){v(this.#r,t,!0)}overlayPresence;#n=I(!1);get openedViaHover(){return l(this.#n)}set openedViaHover(t){v(this.#n,t,!0)}#i=I(!1);get hasInteractedWithContent(){return l(this.#i)}set hasInteractedWithContent(t){v(this.#i,t,!0)}#o=I(!1);get hoverCooldown(){return l(this.#o)}set hoverCooldown(t){v(this.#o,t,!0)}#a=I(0);get closeDelay(){return l(this.#a)}set closeDelay(t){v(this.#a,t,!0)}#s=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new ln({ref:_(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ln({ref:_(()=>this.overlayNode),open:this.opts.open}),et(()=>this.opts.open.current,r=>{r||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#s!==null&&this.#l&&(this.#l.clearTimeout(this.#s),this.#s=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#s=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#s=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class Al{static create(t){return new Al(t,Lo.get())}opts;root;attachment;domContext;#t=null;#e=null;#r=I(!1);constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref,n=>this.root.triggerNode=n),this.domContext=new Pr(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),et(()=>this.opts.closeDelay.current,n=>{this.root.closeDelay=n})}#n(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#i(){this.#e!==null&&(this.domContext.clearTimeout(this.#e),this.#e=null)}#o(){this.#n(),this.#i()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Zi(t)||(v(this.#r,!0),this.#i(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const r=this.opts.openDelay.current;r<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},r)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Zi(t)||(v(this.#r,!1),this.#n(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#o(),l(this.#r)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}l(this.#r)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===ar||t.key===We)&&(t.preventDefault(),this.#o(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#s=y(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":he(this.root.opts.open.current),"data-state":qr(this.root.opts.open.current),"aria-controls":this.#a(),[ho.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return l(this.#s)}set props(t){v(this.#s,t)}}class Dl{static create(t){return new Dl(t,Lo.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref,n=>this.root.contentNode=n),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new Hh({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const r=t.target;vr(r)&&Dv(r)&&this.root.markInteraction()}onpointerenter(t){Zi(t)||this.root.cancelDelayedClose()}onpointerleave(t){Zi(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!vr(t.target))return;const r=t.target.closest(ho.selector("trigger"));if(!(r&&r===this.root.triggerNode)){if(this.opts.customAnchor.current){if(vr(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const n=document.querySelector(this.opts.customAnchor.current);if(n&&n.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){v(this.#t,t)}#e=y(()=>({id:this.opts.id.current,tabindex:-1,"data-state":qr(this.root.opts.open.current),[ho.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}class Ol{static create(t){return new Ol(t,Lo.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.root.handleClose()}onkeydown(t){(t.key===ar||t.key===We)&&(t.preventDefault(),this.root.handleClose())}#t=y(()=>({id:this.opts.id.current,onclick:this.onclick,onkeydown:this.onkeydown,type:"button",[ho.close]:"",...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}var vw=U("<div><div><!></div></div>"),mw=U("<div><div><!></div></div>");function Q1(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"forceMount",3,!1),s=m(t,"onOpenAutoFocus",3,st),a=m(t,"onCloseAutoFocus",3,st),c=m(t,"onEscapeKeydown",3,st),u=m(t,"onInteractOutside",3,st),f=m(t,"trapFocus",3,!0),p=m(t,"preventScroll",3,!1),d=m(t,"customAnchor",3,null),h=q(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const g=Dl.create({id:_(()=>i()),ref:_(()=>n(),O=>n(O)),onInteractOutside:_(()=>u()),onEscapeKeydown:_(()=>c()),customAnchor:_(()=>d())}),b=y(()=>j(h,g.props)),w=y(()=>f()&&g.shouldTrapFocus);function S(O){g.shouldTrapFocus||O.preventDefault(),s()(O)}var T=A(),x=P(T);{var D=O=>{xl(O,wt(()=>l(b),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return l(w)},get preventScroll(){return p()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:S,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(F,W)=>{let R=()=>W?.().props,G=()=>W?.().wrapperProps;const B=y(()=>j(R(),{style:ni("popover")},{style:t.style}));var Z=A(),Q=P(Z);{var gt=ht=>{var X=A(),tt=P(X);{let pt=y(()=>({props:l(B),wrapperProps:G(),...g.snippetProps}));M(tt,()=>t.child,()=>l(pt))}C(ht,X)},St=ht=>{var X=vw();J(X,()=>({...G()}));var tt=Y(X);J(tt,()=>({...l(B)}));var pt=Y(tt);M(pt,()=>t.children??L),z(tt),z(X),C(ht,X)};k(Q,ht=>{t.child?ht(gt):ht(St,-1)})}C(F,Z)},$$slots:{popper:!0}}))},N=O=>{Cl(O,wt(()=>l(b),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return i()},get trapFocus(){return l(w)},get preventScroll(){return p()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:S,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(F,W)=>{let R=()=>W?.().props,G=()=>W?.().wrapperProps;const B=y(()=>j(R(),{style:ni("popover")},{style:t.style}));var Z=A(),Q=P(Z);{var gt=ht=>{var X=A(),tt=P(X);{let pt=y(()=>({props:l(B),wrapperProps:G(),...g.snippetProps}));M(tt,()=>t.child,()=>l(pt))}C(ht,X)},St=ht=>{var X=mw();J(X,()=>({...G()}));var tt=Y(X);J(tt,()=>({...l(B)}));var pt=Y(tt);M(pt,()=>t.children??L),z(tt),z(X),C(ht,X)};k(Q,ht=>{t.child?ht(gt):ht(St,-1)})}C(F,Z)},$$slots:{popper:!0}}))};k(x,O=>{o()?O(D):o()||O(N,1)})}C(e,T),H()}var bw=U("<button><!></button>");function $1(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"type",3,"button"),s=m(t,"disabled",3,!1),a=m(t,"openOnHover",3,!1),c=m(t,"openDelay",3,700),u=m(t,"closeDelay",3,300),f=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const p=Al.create({id:_(()=>n()),ref:_(()=>i(),h=>i(h)),disabled:_(()=>!!s()),openOnHover:_(()=>a()),openDelay:_(()=>c()),closeDelay:_(()=>u())}),d=y(()=>j(f,p.props,{type:o()}));Bh(e,{get id(){return n()},get ref(){return p.opts.ref},children:(h,g)=>{var b=A(),w=P(b);{var S=x=>{var D=A(),N=P(D);M(N,()=>t.child,()=>({props:l(d)})),C(x,D)},T=x=>{var D=bw();J(D,()=>({...l(d)}));var N=Y(D);M(N,()=>t.children??L),z(D),C(x,D)};k(w,x=>{t.child?x(S):x(T,-1)})}C(h,b)},$$slots:{default:!0}}),H()}var yw=U("<button><!></button>");function t_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=q(t,["$$slots","$$events","$$legacy","child","children","id","ref"]);const s=Ol.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=yw();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}function e_(e,t){V(t,!0);let r=m(t,"open",15,!1),n=m(t,"onOpenChange",3,st),i=m(t,"onOpenChangeComplete",3,st);ya.create({variant:_(()=>"dialog"),open:_(()=>r(),a=>{r(a),n()(a)}),onOpenChangeComplete:_(()=>i())});var o=A(),s=P(o);M(s,()=>t.children??L),C(e,o),H()}var ww=U("<button><!></button>");function r_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"disabled",3,!1),s=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const a=wa.create({variant:_(()=>"close"),id:_(()=>n()),ref:_(()=>i(),h=>i(h)),disabled:_(()=>!!o())}),c=y(()=>j(s,a.props));var u=A(),f=P(u);{var p=h=>{var g=A(),b=P(g);M(b,()=>t.child,()=>({props:l(c)})),C(h,g)},d=h=>{var g=ww();J(g,()=>({...l(c)}));var b=Y(g);M(b,()=>t.children??L),z(g),C(h,g)};k(f,h=>{t.child?h(p):h(d,-1)})}C(e,u),H()}var _w=U("<!> <!>",1),Sw=U("<!> <div><!></div>",1);function n_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"forceMount",3,!1),s=m(t,"onCloseAutoFocus",3,st),a=m(t,"onOpenAutoFocus",3,st),c=m(t,"onEscapeKeydown",3,st),u=m(t,"onInteractOutside",3,st),f=m(t,"trapFocus",3,!0),p=m(t,"preventScroll",3,!0),d=m(t,"restoreScrollDelay",3,null),h=q(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const g=Ca.create({id:_(()=>n()),ref:_(()=>i(),x=>i(x))}),b=y(()=>j(h,g.props));var w=A(),S=P(w);{var T=x=>{Jd(x,{get ref(){return g.opts.ref},loop:!0,get trapFocus(){return f()},get enabled(){return g.root.opts.open.current},get onOpenAutoFocus(){return a()},get onCloseAutoFocus(){return s()},focusScope:(N,O)=>{let E=()=>O?.().props;Zd(N,wt(()=>l(b),{get enabled(){return g.root.opts.open.current},get ref(){return g.opts.ref},onEscapeKeydown:F=>{c()(F),!F.defaultPrevented&&g.root.handleClose()},children:(F,W)=>{Gd(F,wt(()=>l(b),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},onInteractOutside:R=>{u()(R),!R.defaultPrevented&&g.root.handleClose()},children:(R,G)=>{Qd(R,wt(()=>l(b),{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},children:(B,Z)=>{var Q=A(),gt=P(Q);{var St=X=>{var tt=_w(),pt=P(tt);{var It=Wt=>{ro(Wt,{get preventScroll(){return p()},get restoreScrollDelay(){return d()}})};k(pt,Wt=>{g.root.opts.open.current&&Wt(It)})}var Nt=se(pt,2);{let Wt=y(()=>({props:j(l(b),E()),...g.snippetProps}));M(Nt,()=>t.child,()=>l(Wt))}C(X,tt)},ht=X=>{var tt=Sw(),pt=P(tt);ro(pt,{get preventScroll(){return p()}});var It=se(pt,2);J(It,Wt=>({...Wt}),[()=>j(l(b),E())]);var Nt=Y(It);M(Nt,()=>t.children??L),z(It),C(X,tt)};k(gt,X=>{t.child?X(St):X(ht,-1)})}C(B,Q)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};k(S,x=>{(g.shouldRender||o())&&x(T)})}C(e,w),H()}const Cw=we({component:"label",parts:["root"]});class El{static create(t){return new El(t)}opts;attachment;constructor(t){this.opts=t,this.attachment=rt(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}onmousedown(t){t.detail>1&&t.preventDefault()}#t=y(()=>({id:this.opts.id.current,[Cw.root]:"",onmousedown:this.onmousedown,...this.attachment}));get props(){return l(this.#t)}set props(t){v(this.#t,t)}}var xw=U("<label><!></label>");function i_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const s=El.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d))}),a=y(()=>j(o,s.props,{for:t.for}));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=xw();J(h,()=>({...l(a),for:t.for}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}class Nn{#t;#e;constructor(t,r){this.#t=t,this.#e=r,this.handler=this.handler.bind(this),nt(this.handler)}handler(){let t=0;const r=this.#t();if(!r)return;const n=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(this.#e)});return n.observe(r),()=>{window.cancelAnimationFrame(t),n.unobserve(r)}}}class Wh{state;#t;constructor(t,r){this.state=ae(t),this.#t=r,this.dispatch=this.dispatch.bind(this)}#e(t){return this.#t[this.state.current][t]??this.state.current}dispatch(t){this.state.current=this.#e(t)}}const iu=new WeakMap,Tw=16,Pw={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}};class Aw{opts;#t=I("none");get prevAnimationNameState(){return l(this.#t)}set prevAnimationNameState(t){v(this.#t,t,!0)}#e=I(qt({display:"",animationName:"none"}));get styles(){return l(this.#e)}set styles(t){v(this.#e,t,!0)}initialStatus;previousPresent;machine;present;constructor(t){this.opts=t,this.present=this.opts.open,this.initialStatus=t.open.current?"mounted":"unmounted",this.previousPresent=new Ed(()=>this.present.current),this.machine=new Wh(this.initialStatus,Pw),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.handleAnimationStart=this.handleAnimationStart.bind(this),Dw(this),Ow(this),Ew(this)}handleAnimationEnd(t){if(!this.opts.ref.current)return;const r=this.styles.animationName||fo(this.opts.ref.current),n=r.includes(t.animationName)||r==="none";t.target===this.opts.ref.current&&n&&this.machine.dispatch("ANIMATION_END")}handleAnimationStart(t){if(this.opts.ref.current&&t.target===this.opts.ref.current){const r=fo(this.opts.ref.current,!0);this.prevAnimationNameState=r,this.styles.animationName=r}}#r=y(()=>["mounted","unmountSuspended"].includes(this.machine.state.current));get isPresent(){return l(this.#r)}set isPresent(t){v(this.#r,t)}}function Dw(e){et(()=>e.present.current,()=>{if(!e.opts.ref.current||!(e.present.current!==e.previousPresent.current))return;const r=e.prevAnimationNameState,n=fo(e.opts.ref.current,!0);if(e.styles.animationName=n,e.present.current)e.machine.dispatch("MOUNT");else if(n==="none"||e.styles.display==="none")e.machine.dispatch("UNMOUNT");else{const i=r!==n;e.previousPresent.current&&i?e.machine.dispatch("ANIMATION_OUT"):e.machine.dispatch("UNMOUNT")}})}function Ow(e){et(()=>e.machine.state.current,()=>{if(!e.opts.ref.current)return;const t=e.machine.state.current==="mounted"?fo(e.opts.ref.current,!0):"none";e.prevAnimationNameState=t,e.styles.animationName=t})}function Ew(e){et(()=>e.opts.ref.current,()=>{if(!e.opts.ref.current)return;const t=getComputedStyle(e.opts.ref.current);return e.styles={display:t.display,animationName:t.animationName||"none"},on(bt(e.opts.ref.current,"animationstart",e.handleAnimationStart),bt(e.opts.ref.current,"animationcancel",e.handleAnimationEnd),bt(e.opts.ref.current,"animationend",e.handleAnimationEnd))})}function fo(e,t=!1){if(!e)return"none";const r=performance.now(),n=iu.get(e);if(!t&&n&&r-n.timestamp<Tw)return n.value;const i=getComputedStyle(e).animationName||"none";return iu.set(e,{value:i,timestamp:r}),i}function Bo(e,t){V(t,!0);const r=new Aw({open:_(()=>t.open),ref:t.ref});var n=A(),i=P(n);{var o=s=>{var a=A(),c=P(a);M(c,()=>t.presence??L,()=>({present:r.isPresent})),C(s,a)};k(i,s=>{(t.forceMount||t.open||r.isPresent)&&s(o)})}C(e,n),H()}function o_(e,t){V(t,!0);let r=m(t,"open",15,!1),n=m(t,"onOpenChange",3,st),i=m(t,"onOpenChangeComplete",3,st);Pl.create({open:_(()=>r(),o=>{r(o),n()(o)}),onOpenChangeComplete:_(()=>i())}),gl(e,{children:(o,s)=>{var a=A(),c=P(a);M(c,()=>t.children??L),C(o,a)},$$slots:{default:!0}}),H()}function Iw(e,t,r){return Math.min(r,Math.max(t,e))}const _i=we({component:"scroll-area",parts:["root","viewport","corner","thumb","scrollbar"]}),Si=new Vt("ScrollArea.Root"),Ci=new Vt("ScrollArea.Scrollbar"),Vo=new Vt("ScrollArea.ScrollbarVisible"),Il=new Vt("ScrollArea.ScrollbarAxis"),Uh=new Vt("ScrollArea.ScrollbarShared");class Ml{static create(t){return Si.set(new Ml(t))}opts;attachment;#t=I(null);get scrollAreaNode(){return l(this.#t)}set scrollAreaNode(t){v(this.#t,t,!0)}#e=I(null);get viewportNode(){return l(this.#e)}set viewportNode(t){v(this.#e,t,!0)}#r=I(null);get contentNode(){return l(this.#r)}set contentNode(t){v(this.#r,t,!0)}#n=I(null);get scrollbarXNode(){return l(this.#n)}set scrollbarXNode(t){v(this.#n,t,!0)}#i=I(null);get scrollbarYNode(){return l(this.#i)}set scrollbarYNode(t){v(this.#i,t,!0)}#o=I(0);get cornerWidth(){return l(this.#o)}set cornerWidth(t){v(this.#o,t,!0)}#a=I(0);get cornerHeight(){return l(this.#a)}set cornerHeight(t){v(this.#a,t,!0)}#s=I(!1);get scrollbarXEnabled(){return l(this.#s)}set scrollbarXEnabled(t){v(this.#s,t,!0)}#l=I(!1);get scrollbarYEnabled(){return l(this.#l)}set scrollbarYEnabled(t){v(this.#l,t,!0)}domContext;constructor(t){this.opts=t,this.attachment=rt(t.ref,r=>this.scrollAreaNode=r),this.domContext=new Pr(t.ref)}#c=y(()=>({id:this.opts.id.current,dir:this.opts.dir.current,style:{position:"relative","--bits-scroll-area-corner-height":`${this.cornerHeight}px`,"--bits-scroll-area-corner-width":`${this.cornerWidth}px`},[_i.root]:"",...this.attachment}));get props(){return l(this.#c)}set props(t){v(this.#c,t)}}class Nl{static create(t){return new Nl(t,Si.get())}opts;root;attachment;#t=ae(Xr());#e=ae(null);contentAttachment=rt(this.#e,t=>this.root.contentNode=t);constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref,n=>this.root.viewportNode=n)}#r=y(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[_i.viewport]:"",...this.attachment}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}#n=y(()=>({id:this.#t.current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0},...this.contentAttachment}));get contentProps(){return l(this.#n)}set contentProps(t){v(this.#n,t)}}class kl{static create(t){return Ci.set(new kl(t,Si.get()))}opts;root;#t=y(()=>this.opts.orientation.current==="horizontal");get isHorizontal(){return l(this.#t)}set isHorizontal(t){v(this.#t,t)}#e=I(!1);get hasThumb(){return l(this.#e)}set hasThumb(t){v(this.#e,t,!0)}constructor(t,r){this.opts=t,this.root=r,et(()=>this.isHorizontal,n=>n?(this.root.scrollbarXEnabled=!0,()=>{this.root.scrollbarXEnabled=!1}):(this.root.scrollbarYEnabled=!0,()=>{this.root.scrollbarYEnabled=!1}))}}class Fl{static create(){return new Fl(Ci.get())}scrollbar;root;#t=I(!1);get isVisible(){return l(this.#t)}set isVisible(t){v(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,nt(()=>{const r=this.root.scrollAreaNode,n=this.root.opts.scrollHideDelay.current;let i=0;if(!r)return;const o=()=>{this.root.domContext.clearTimeout(i),Et(()=>this.isVisible=!0)},s=()=>{i&&this.root.domContext.clearTimeout(i),i=this.root.domContext.setTimeout(()=>{Et(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},n)},a=on(bt(r,"pointerenter",o),bt(r,"pointerleave",s));return()=>{this.root.domContext.getWindow().clearTimeout(i),a()}})}#e=y(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Rl{static create(){return new Rl(Ci.get())}scrollbar;root;machine=new Wh("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});#t=y(()=>this.machine.state.current==="hidden");get isHidden(){return l(this.#t)}set isHidden(t){v(this.#t,t)}constructor(t){this.scrollbar=t,this.root=t.root;const r=Do(()=>this.machine.dispatch("SCROLL_END"),100);nt(()=>{const n=this.machine.state.current,i=this.root.opts.scrollHideDelay.current;if(n==="idle"){const o=this.root.domContext.setTimeout(()=>this.machine.dispatch("HIDE"),i);return()=>this.root.domContext.clearTimeout(o)}}),nt(()=>{const n=this.root.viewportNode;if(!n)return;const i=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let o=n[i];return bt(n,"scroll",()=>{const c=n[i];o!==c&&(this.machine.dispatch("SCROLL"),r()),o=c})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(t){this.machine.dispatch("POINTER_ENTER")}onpointerleave(t){this.machine.dispatch("POINTER_LEAVE")}#e=y(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Ho{static create(){return new Ho(Ci.get())}scrollbar;root;#t=I(!1);get isVisible(){return l(this.#t)}set isVisible(t){v(this.#t,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root;const r=Do(()=>{const n=this.root.viewportNode;if(!n)return;const i=n.offsetWidth<n.scrollWidth,o=n.offsetHeight<n.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?i:o},10);new Nn(()=>this.root.viewportNode,r),new Nn(()=>this.root.contentNode,r)}#e=y(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Ll{static create(){return Vo.set(new Ll(Ci.get()))}scrollbar;root;#t=I(null);get thumbNode(){return l(this.#t)}set thumbNode(t){v(this.#t,t,!0)}#e=I(0);get pointerOffset(){return l(this.#e)}set pointerOffset(t){v(this.#e,t,!0)}#r=I({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return l(this.#r)}set sizes(t){v(this.#r,t)}#n=y(()=>zh(this.sizes.viewport,this.sizes.content));get thumbRatio(){return l(this.#n)}set thumbRatio(t){v(this.#n,t)}#i=y(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return l(this.#i)}set hasThumb(t){v(this.#i,t)}#o=I("");get prevTransformStyle(){return l(this.#o)}set prevTransformStyle(t){v(this.#o,t,!0)}constructor(t){this.scrollbar=t,this.root=t.root,nt(()=>{this.scrollbar.hasThumb=this.hasThumb}),nt(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(t){this.sizes=t}getScrollPosition(t,r){return Mw({pointerPos:t,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:r})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(t){this.pointerOffset=t}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollLeft,n=`translate3d(${ou({scrollPos:t,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}xOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=t)}xOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(t,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const t=this.root.viewportNode.scrollTop,n=`translate3d(0, ${ou({scrollPos:t,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=n,this.prevTransformStyle=n}yOnWheelScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=t)}yOnDragScroll(t){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(t,this.root.opts.dir.current))}}class Bl{static create(t){return Il.set(new Bl(t,Vo.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=I();get computedStyle(){return l(this.#t)}set computedStyle(t){v(this.#t,t,!0)}constructor(t,r){this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,this.attachment=rt(this.scrollbar.opts.ref,n=>this.root.scrollbarXNode=n),nt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),nt(()=>{this.onResize()})}onThumbPointerDown=t=>{this.scrollbarVis.onThumbPointerDown(t.x)};onDragScroll=t=>{this.scrollbarVis.xOnDragScroll(t.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(t,r)=>{if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollLeft+t.deltaX;this.scrollbarVis.xOnWheelScroll(n),Kh(n,r)&&t.preventDefault()};onResize=()=>{this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollWidth,viewport:this.root.viewportNode.offsetWidth,scrollbar:{size:this.scrollbar.opts.ref.current.clientWidth,paddingStart:go(this.computedStyle.paddingLeft),paddingEnd:go(this.computedStyle.paddingRight)}})};#e=y(()=>Wo(this.scrollbarVis.sizes));get thumbSize(){return l(this.#e)}set thumbSize(t){v(this.#e,t)}#r=y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"horizontal",style:{bottom:0,left:this.root.opts.dir.current==="rtl"?"var(--bits-scroll-area-corner-width)":0,right:this.root.opts.dir.current==="ltr"?"var(--bits-scroll-area-corner-width)":0,"--bits-scroll-area-thumb-width":`${this.thumbSize}px`},...this.attachment}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}}class Vl{static create(t){return Il.set(new Vl(t,Vo.get()))}opts;scrollbarVis;root;scrollbar;attachment;#t=I();get computedStyle(){return l(this.#t)}set computedStyle(t){v(this.#t,t,!0)}constructor(t,r){this.opts=t,this.scrollbarVis=r,this.root=r.root,this.scrollbar=r.scrollbar,this.attachment=rt(this.scrollbar.opts.ref,n=>this.root.scrollbarYNode=n),nt(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),nt(()=>{this.onResize()}),this.onThumbPointerDown=this.onThumbPointerDown.bind(this),this.onDragScroll=this.onDragScroll.bind(this),this.onThumbPointerUp=this.onThumbPointerUp.bind(this),this.onThumbPositionChange=this.onThumbPositionChange.bind(this),this.onWheelScroll=this.onWheelScroll.bind(this),this.onResize=this.onResize.bind(this)}onThumbPointerDown(t){this.scrollbarVis.onThumbPointerDown(t.y)}onDragScroll(t){this.scrollbarVis.yOnDragScroll(t.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(t,r){if(!this.root.viewportNode)return;const n=this.root.viewportNode.scrollTop+t.deltaY;this.scrollbarVis.yOnWheelScroll(n),Kh(n,r)&&t.preventDefault()}onResize(){this.scrollbar.opts.ref.current&&this.root.viewportNode&&this.computedStyle&&this.scrollbarVis.setSizes({content:this.root.viewportNode.scrollHeight,viewport:this.root.viewportNode.offsetHeight,scrollbar:{size:this.scrollbar.opts.ref.current.clientHeight,paddingStart:go(this.computedStyle.paddingTop),paddingEnd:go(this.computedStyle.paddingBottom)}})}#e=y(()=>Wo(this.scrollbarVis.sizes));get thumbSize(){return l(this.#e)}set thumbSize(t){v(this.#e,t)}#r=y(()=>({id:this.scrollbar.opts.id.current,"data-orientation":"vertical",style:{top:0,right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:"var(--bits-scroll-area-corner-height)","--bits-scroll-area-thumb-height":`${this.thumbSize}px`},...this.attachment}));get props(){return l(this.#r)}set props(t){v(this.#r,t)}}class Hl{static create(){return Uh.set(new Hl(Il.get()))}scrollbarState;root;scrollbarVis;scrollbar;#t=I(null);get rect(){return l(this.#t)}set rect(t){v(this.#t,t)}#e=I("");get prevWebkitUserSelect(){return l(this.#e)}set prevWebkitUserSelect(t){v(this.#e,t,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#r=y(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return l(this.#r)}set maxScrollPos(t){v(this.#r,t)}constructor(t){this.scrollbarState=t,this.root=t.root,this.scrollbarVis=t.scrollbarVis,this.scrollbar=t.scrollbarVis.scrollbar,this.handleResize=Do(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,nt(()=>{const r=this.maxScrollPos,n=this.scrollbar.opts.ref.current;this.root.viewportNode;const i=s=>{const a=s.target;n?.contains(a)&&this.handleWheelScroll(s,r)};return bt(this.root.domContext.getDocument(),"wheel",i,{passive:!1})}),Rn(()=>{this.scrollbarVis.sizes,Et(()=>this.handleThumbPositionChange())}),new Nn(()=>this.scrollbar.opts.ref.current,this.handleResize),new Nn(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onlostpointercapture=this.onlostpointercapture.bind(this)}handleDragScroll(t){if(!this.rect)return;const r=t.clientX-this.rect.left,n=t.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:r,y:n})}#n(){this.rect!==null&&(this.root.domContext.getDocument().body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null)}onpointerdown(t){if(t.button!==0)return;t.target.setPointerCapture(t.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=this.root.domContext.getDocument().body.style.webkitUserSelect,this.root.domContext.getDocument().body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(t)}onpointermove(t){this.handleDragScroll(t)}onpointerup(t){const r=t.target;r.hasPointerCapture(t.pointerId)&&r.releasePointerCapture(t.pointerId),this.#n()}onlostpointercapture(t){this.#n()}#i=y(()=>j({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[_i.scrollbar]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup,onlostpointercapture:this.onlostpointercapture}));get props(){return l(this.#i)}set props(t){v(this.#i,t)}}class Wl{static create(t){return new Wl(t,Uh.get())}opts;scrollbarState;attachment;#t;#e=I();#r=Do(()=>{l(this.#e)&&(l(this.#e)(),v(this.#e,void 0))},100);constructor(t,r){this.opts=t,this.scrollbarState=r,this.#t=r.root,this.attachment=rt(this.opts.ref,n=>this.scrollbarState.scrollbarVis.thumbNode=n),nt(()=>{const n=this.#t.viewportNode;if(!n)return;const i=()=>{if(this.#r(),!l(this.#e)){const s=Nw(n,this.scrollbarState.handleThumbPositionChange);v(this.#e,s,!0),this.scrollbarState.handleThumbPositionChange()}};return Et(()=>this.scrollbarState.handleThumbPositionChange()),bt(n,"scroll",i)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(t){const r=t.target;if(!r)return;const n=r.getBoundingClientRect(),i=t.clientX-n.left,o=t.clientY-n.top;this.scrollbarState.handleThumbPointerDown({x:i,y:o})}onpointerup(t){this.scrollbarState.handleThumbPointerUp()}#n=y(()=>({id:this.opts.id.current,"data-state":this.scrollbarState.scrollbarVis.hasThumb?"visible":"hidden",style:{width:"var(--bits-scroll-area-thumb-width)",height:"var(--bits-scroll-area-thumb-height)",transform:this.scrollbarState.scrollbarVis.prevTransformStyle},onpointerdowncapture:this.onpointerdowncapture,onpointerup:this.onpointerup,[_i.thumb]:"",...this.attachment}));get props(){return l(this.#n)}set props(t){v(this.#n,t)}}class Ul{static create(t){return new Ul(t,Si.get())}opts;root;attachment;#t=I(0);#e=I(0);#r=y(()=>!!(l(this.#t)&&l(this.#e)));get hasSize(){return l(this.#r)}set hasSize(t){v(this.#r,t)}constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref),new Nn(()=>this.root.scrollbarXNode,()=>{const n=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=n,v(this.#e,n,!0)}),new Nn(()=>this.root.scrollbarYNode,()=>{const n=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=n,v(this.#t,n,!0)})}#n=y(()=>({id:this.opts.id.current,style:{width:l(this.#t),height:l(this.#e),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[_i.corner]:"",...this.attachment}));get props(){return l(this.#n)}set props(t){v(this.#n,t)}}function go(e){return e?Number.parseInt(e,10):0}function zh(e,t){const r=e/t;return Number.isNaN(r)?0:r}function Wo(e){const t=zh(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Mw({pointerPos:e,pointerOffset:t,sizes:r,dir:n="ltr"}){const i=Wo(r),o=i/2,s=t||o,a=i-s,c=r.scrollbar.paddingStart+s,u=r.scrollbar.size-r.scrollbar.paddingEnd-a,f=r.content-r.viewport,p=n==="ltr"?[0,f]:[f*-1,0];return Yh([c,u],p)(e)}function ou({scrollPos:e,sizes:t,dir:r="ltr"}){const n=Wo(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,s=t.content-t.viewport,a=o-n,c=r==="ltr"?[0,s]:[s*-1,0],u=Iw(e,c[0],c[1]);return Yh([0,s],[0,a])(u)}function Yh(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Kh(e,t){return e>0&&e<t}function Nw(e,t){let r={left:e.scrollLeft,top:e.scrollTop},n=0;const i=va(e);return(function o(){const s={left:e.scrollLeft,top:e.scrollTop},a=r.left!==s.left,c=r.top!==s.top;(a||c)&&t(),r=s,n=i.requestAnimationFrame(o)})(),()=>i.cancelAnimationFrame(n)}var kw=U("<div><!></div>");function s_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"type",3,"hover"),s=m(t,"dir",3,"ltr"),a=m(t,"scrollHideDelay",3,600),c=q(t,["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]);const u=Ml.create({type:_(()=>o()),dir:_(()=>s()),scrollHideDelay:_(()=>a()),id:_(()=>i()),ref:_(()=>n(),b=>n(b))}),f=y(()=>j(c,u.props));var p=A(),d=P(p);{var h=b=>{var w=A(),S=P(w);M(S,()=>t.child,()=>({props:l(f)})),C(b,w)},g=b=>{var w=kw();J(w,()=>({...l(f)}));var S=Y(w);M(S,()=>t.children??L),z(w),C(b,w)};k(d,b=>{t.child?b(h):b(g,-1)})}C(e,p),H()}var Fw=U("<div><div><!></div></div>");function a_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","ref","id","children"]);const s=Nl.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props)),c=y(()=>j({},s.contentProps));var u=Fw();J(u,()=>({...l(a)}));var f=Y(u);J(f,()=>({...l(c)}));var p=Y(f);M(p,()=>t.children??L),z(f),z(u),C(e,u),H()}var Rw=U("<div><!></div>");function jh(e,t){V(t,!0);let r=q(t,["$$slots","$$events","$$legacy","child","children"]);const n=Hl.create(),i=y(()=>j(r,n.props));var o=A(),s=P(o);{var a=u=>{var f=A(),p=P(f);M(p,()=>t.child,()=>({props:l(i)})),C(u,f)},c=u=>{var f=Rw();J(f,()=>({...l(i)}));var p=Y(f);M(p,()=>t.children??L),z(f),C(u,f)};k(s,u=>{t.child?u(a):u(c,-1)})}C(e,o),H()}function Lw(e,t){V(t,!0);let r=q(t,["$$slots","$$events","$$legacy"]);const n=new ga,i=Bl.create({mounted:_(()=>n.current)}),o=y(()=>j(r,i.props));jh(e,wt(()=>l(o))),H()}function Bw(e,t){V(t,!0);let r=q(t,["$$slots","$$events","$$legacy"]);const n=new ga,i=Vl.create({mounted:_(()=>n.current)}),o=y(()=>j(r,i.props));jh(e,wt(()=>l(o))),H()}function Uo(e,t){V(t,!0);let r=q(t,["$$slots","$$events","$$legacy"]);const n=Ll.create();var i=A(),o=P(i);{var s=c=>{Lw(c,wt(()=>r))},a=c=>{Bw(c,wt(()=>r))};k(o,c=>{n.scrollbar.opts.orientation.current==="horizontal"?c(s):c(a,-1)})}C(e,i),H()}function Vw(e,t){V(t,!0);let r=m(t,"forceMount",3,!1),n=q(t,["$$slots","$$events","$$legacy","forceMount"]);const i=Ho.create(),o=y(()=>j(n,i.props));{const s=c=>{Uo(c,wt(()=>l(o)))};let a=y(()=>r()||i.isVisible);Bo(e,{get open(){return l(a)},get ref(){return i.scrollbar.opts.ref},presence:s,$$slots:{presence:!0}})}H()}function Hw(e,t){V(t,!0);let r=m(t,"forceMount",3,!1),n=q(t,["$$slots","$$events","$$legacy","forceMount"]);const i=Rl.create(),o=y(()=>j(n,i.props));{const s=c=>{Uo(c,wt(()=>l(o)))};let a=y(()=>r()||!i.isHidden);Bo(e,wt(()=>l(o),{get open(){return l(a)},get ref(){return i.scrollbar.opts.ref},presence:s,$$slots:{presence:!0}}))}H()}function Ww(e,t){V(t,!0);let r=m(t,"forceMount",3,!1),n=q(t,["$$slots","$$events","$$legacy","forceMount"]);const i=Fl.create(),o=Ho.create(),s=y(()=>j(n,i.props,o.props,{"data-state":i.isVisible?"visible":"hidden"})),a=y(()=>r()||i.isVisible&&o.isVisible);Bo(e,{get open(){return l(a)},get ref(){return o.scrollbar.opts.ref},presence:u=>{Uo(u,wt(()=>l(s)))},$$slots:{presence:!0}}),H()}function l_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","ref","id","orientation"]);const s=kl.create({orientation:_(()=>t.orientation),id:_(()=>i()),ref:_(()=>n(),g=>n(g))}),a=y(()=>s.root.opts.type.current);var c=A(),u=P(c);{var f=g=>{Ww(g,wt(()=>o,{get id(){return i()}}))},p=g=>{Hw(g,wt(()=>o,{get id(){return i()}}))},d=g=>{Vw(g,wt(()=>o,{get id(){return i()}}))},h=g=>{Uo(g,wt(()=>o,{get id(){return i()}}))};k(u,g=>{l(a)==="hover"?g(f):l(a)==="scroll"?g(p,1):l(a)==="auto"?g(d,2):l(a)==="always"&&g(h,3)})}C(e,c),H()}var Uw=U("<div><!></div>");function zw(e,t){V(t,!0);let r=m(t,"ref",15,null),n=q(t,["$$slots","$$events","$$legacy","ref","id","child","children","present"]);const i=new ga,o=Wl.create({id:_(()=>t.id),ref:_(()=>r(),p=>r(p)),mounted:_(()=>i.current)}),s=y(()=>j(n,o.props,{style:{hidden:!t.present}}));var a=A(),c=P(a);{var u=p=>{var d=A(),h=P(d);M(h,()=>t.child,()=>({props:l(s)})),C(p,d)},f=p=>{var d=Uw();J(d,()=>({...l(s)}));var h=Y(d);M(h,()=>t.children??L),z(d),C(p,d)};k(c,p=>{t.child?p(u):p(f,-1)})}C(e,a),H()}function c_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"forceMount",3,!1),s=q(t,["$$slots","$$events","$$legacy","id","ref","forceMount"]);const a=Vo.get();{const c=(f,p)=>{let d=()=>p?.().present;zw(f,wt(()=>s,{get id(){return n()},get present(){return d()},get ref(){return i()},set ref(h){i(h)}}))};let u=y(()=>o()||a.hasThumb);Bo(e,{get open(){return l(u)},get ref(){return a.scrollbar.opts.ref},presence:c,$$slots:{presence:!0}})}H()}var Yw=U("<div><!></div>");function Kw(e,t){V(t,!0);let r=m(t,"ref",15,null),n=q(t,["$$slots","$$events","$$legacy","ref","id","children","child"]);const i=Ul.create({id:_(()=>t.id),ref:_(()=>r(),f=>r(f))}),o=y(()=>j(n,i.props));var s=A(),a=P(s);{var c=f=>{var p=A(),d=P(p);M(d,()=>t.child,()=>({props:l(o)})),C(f,p)},u=f=>{var p=Yw();J(p,()=>({...l(o)}));var d=Y(p);M(d,()=>t.children??L),z(p),C(f,p)};k(a,f=>{t.child?f(c):f(u,-1)})}C(e,s),H()}function u_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","ref","id"]);const s=Si.get(),a=y(()=>!!(s.scrollbarXNode&&s.scrollbarYNode)),c=y(()=>s.opts.type.current!=="scroll"&&l(a));var u=A(),f=P(u);{var p=d=>{Kw(d,wt(()=>o,{get id(){return i()},get ref(){return n()},set ref(h){n(h)}}))};k(f,d=>{l(c)&&d(p)})}C(e,u),H()}var jw=U("<!> <!>",1);function d_(e,t){V(t,!0);let r=m(t,"value",15),n=m(t,"onValueChange",3,st),i=m(t,"name",3,""),o=m(t,"disabled",3,!1),s=m(t,"open",15,!1),a=m(t,"onOpenChange",3,st),c=m(t,"onOpenChangeComplete",3,st),u=m(t,"loop",3,!1),f=m(t,"scrollAlignment",3,"nearest"),p=m(t,"required",3,!1),d=m(t,"items",19,()=>[]),h=m(t,"allowDeselect",3,!1);function g(){r()===void 0&&r(t.type==="single"?"":[])}g(),et.pre(()=>r(),()=>{g()});let b=I("");const w=Zy.create({type:t.type,value:_(()=>r(),E=>{r(E),n()(E)}),disabled:_(()=>o()),required:_(()=>p()),open:_(()=>s(),E=>{s(E),a()(E)}),loop:_(()=>u()),scrollAlignment:_(()=>f()),name:_(()=>i()),isCombobox:!1,items:_(()=>d()),allowDeselect:_(()=>h()),inputValue:_(()=>l(b),E=>v(b,E,!0)),onOpenChangeComplete:_(()=>c())});var S=jw(),T=P(S);gl(T,{children:(E,F)=>{var W=A(),R=P(W);M(R,()=>t.children??L),C(E,W)},$$slots:{default:!0}});var x=se(T,2);{var D=E=>{var F=A(),W=P(F);{var R=B=>{fs(B,{get autocomplete(){return t.autocomplete}})},G=B=>{var Z=A(),Q=P(Z);On(Q,16,()=>w.opts.value.current,gt=>gt,(gt,St)=>{fs(gt,{get value(){return St},get autocomplete(){return t.autocomplete}})}),C(B,Z)};k(W,B=>{w.opts.value.current.length===0?B(R):B(G,-1)})}C(E,F)},N=y(()=>Array.isArray(w.opts.value.current)),O=E=>{fs(E,{get autocomplete(){return t.autocomplete},get value(){return w.opts.value.current},set value(F){w.opts.value.current=F}})};k(x,E=>{l(N)?E(D):E(O,-1)})}C(e,S),H()}var qw=U("<button><!></button>");function h_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"type",3,"button"),s=q(t,["$$slots","$$events","$$legacy","id","ref","child","children","type"]);const a=pl.create({id:_(()=>n()),ref:_(()=>i(),p=>i(p))}),c=y(()=>j(s,a.props,{type:o()}));var u=A(),f=P(u);Or(f,()=>Bh,(p,d)=>{d(p,{get id(){return n()},get ref(){return a.opts.ref},children:(h,g)=>{var b=A(),w=P(b);{var S=x=>{var D=A(),N=P(D);M(N,()=>t.child,()=>({props:l(c)})),C(x,D)},T=x=>{var D=qw();J(D,()=>({...l(c)}));var N=Y(D);M(N,()=>t.children??L),z(D),C(x,D)};k(w,x=>{t.child?x(S):x(T,-1)})}C(h,b)},$$slots:{default:!0}})}),C(e,u),H()}const qh=we({component:"switch",parts:["root","thumb"]}),zl=new Vt("Switch.Root");class Yl{static create(t){return zl.set(new Yl(t))}opts;attachment;constructor(t){this.opts=t,this.attachment=rt(t.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this)}#t(){this.opts.checked.current=!this.opts.checked.current}onkeydown(t){!(t.key===ar||t.key===We)||this.opts.disabled.current||(t.preventDefault(),this.#t())}onclick(t){this.opts.disabled.current||this.#t()}#e=y(()=>({"data-disabled":ft(this.opts.disabled.current),"data-state":Yp(this.opts.checked.current),"data-required":ft(this.opts.required.current)}));get sharedProps(){return l(this.#e)}set sharedProps(t){v(this.#e,t)}#r=y(()=>({checked:this.opts.checked.current}));get snippetProps(){return l(this.#r)}set snippetProps(t){v(this.#r,t)}#n=y(()=>({...this.sharedProps,id:this.opts.id.current,role:"switch",disabled:Gi(this.opts.disabled.current),"aria-checked":Fd(this.opts.checked.current,!1),"aria-required":he(this.opts.required.current),[qh.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#n)}set props(t){v(this.#n,t)}}class Kl{static create(){return new Kl(zl.get())}root;#t=y(()=>this.root.opts.name.current!==void 0);get shouldRender(){return l(this.#t)}set shouldRender(t){v(this.#t,t)}constructor(t){this.root=t}#e=y(()=>({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}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class jl{static create(t){return new jl(t,zl.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref)}#t=y(()=>({checked:this.root.opts.checked.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){v(this.#t,t)}#e=y(()=>({...this.root.sharedProps,id:this.opts.id.current,[qh.thumb]:"",...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}function Xw(e,t){V(t,!1);const r=Kl.create();Sd();var n=A(),i=P(n);{var o=s=>{Qa(s,wt(()=>r.props))};k(i,s=>{r.shouldRender&&s(o)})}C(e,n),H()}var Gw=U("<button><!></button>"),Zw=U("<!> <!>",1);function f_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=m(t,"disabled",3,!1),s=m(t,"required",3,!1),a=m(t,"checked",15,!1),c=m(t,"value",3,"on"),u=m(t,"name",3,void 0),f=m(t,"type",3,"button"),p=m(t,"onCheckedChange",3,st),d=q(t,["$$slots","$$events","$$legacy","child","children","ref","id","disabled","required","checked","value","name","type","onCheckedChange"]);const h=Yl.create({checked:_(()=>a(),D=>{a(D),p()?.(D)}),disabled:_(()=>o()??!1),required:_(()=>s()),value:_(()=>c()),name:_(()=>u()),id:_(()=>i()),ref:_(()=>n(),D=>n(D))}),g=y(()=>j(d,h.props,{type:f()}));var b=Zw(),w=P(b);{var S=D=>{var N=A(),O=P(N);{let E=y(()=>({props:l(g),...h.snippetProps}));M(O,()=>t.child,()=>l(E))}C(D,N)},T=D=>{var N=Gw();J(N,()=>({...l(g)}));var O=Y(N);M(O,()=>t.children??L,()=>h.snippetProps),z(N),C(D,N)};k(w,D=>{t.child?D(S):D(T,-1)})}var x=se(w,2);Xw(x,{}),C(e,b),H()}var Jw=U("<span><!></span>");function g_(e,t){const r=at();V(t,!0);let n=m(t,"ref",15,null),i=m(t,"id",19,()=>lt(r)),o=q(t,["$$slots","$$events","$$legacy","child","children","ref","id"]);const s=jl.create({id:_(()=>i()),ref:_(()=>n(),d=>n(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);{let b=y(()=>({props:l(a),...s.snippetProps}));M(g,()=>t.child,()=>l(b))}C(d,h)},p=d=>{var h=Jw();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L,()=>s.snippetProps),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}const po=we({component:"tabs",parts:["root","list","trigger","content"]}),ql=new Vt("Tabs.Root");class Xl{static create(t){return ql.set(new Xl(t))}opts;attachment;rovingFocusGroup;#t=I(qt([]));get triggerIds(){return l(this.#t)}set triggerIds(t){v(this.#t,t,!0)}valueToTriggerId=new Ms;valueToContentId=new Ms;constructor(t){this.opts=t,this.attachment=rt(t.ref),this.rovingFocusGroup=new ev({candidateAttr:po.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(t,r){return this.triggerIds.push(t),this.valueToTriggerId.set(r,t),()=>{this.triggerIds=this.triggerIds.filter(n=>n!==t),this.valueToTriggerId.delete(r)}}registerContent(t,r){return this.valueToContentId.set(r,t),()=>{this.valueToContentId.delete(r)}}setValue(t){this.opts.value.current=t}#e=y(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[po.root]:"",...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Gl{static create(t){return new Gl(t,ql.get())}opts;root;attachment;#t=y(()=>this.root.opts.disabled.current);constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref)}#e=y(()=>({id:this.opts.id.current,role:"tablist","aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[po.list]:"","data-disabled":ft(l(this.#t)),...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}}class Zl{static create(t){return new Zl(t,ql.get())}opts;root;attachment;#t=I(0);#e=y(()=>this.root.opts.value.current===this.opts.value.current);#r=y(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=y(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(t.ref),et([()=>this.opts.id.current,()=>this.opts.value.current],([n,i])=>this.root.registerTrigger(n,i)),nt(()=>{this.root.triggerIds.length,l(this.#e)||!this.root.opts.value.current?v(this.#t,0):v(this.#t,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(t){this.root.opts.activationMode.current!=="automatic"||l(this.#r)||this.#i()}onclick(t){l(this.#r)||this.#i()}onkeydown(t){if(!l(this.#r)){if(t.key===We||t.key===ar){t.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)}}#o=y(()=>({id:this.opts.id.current,role:"tab","data-state":Qw(l(this.#e)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":ft(l(this.#r)),"aria-selected":he(l(this.#e)),"aria-controls":l(this.#n),[po.trigger]:"",disabled:Gi(l(this.#r)),tabindex:l(this.#t),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return l(this.#o)}set props(t){v(this.#o,t)}}function Qw(e){return e?"active":"inactive"}var $w=U("<div><!></div>");function p_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"value",15,""),s=m(t,"onValueChange",3,st),a=m(t,"orientation",3,"horizontal"),c=m(t,"loop",3,!0),u=m(t,"activationMode",3,"automatic"),f=m(t,"disabled",3,!1),p=q(t,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","orientation","loop","activationMode","disabled","children","child"]);const d=Xl.create({id:_(()=>n()),value:_(()=>o(),T=>{o(T),s()(T)}),orientation:_(()=>a()),loop:_(()=>c()),activationMode:_(()=>u()),disabled:_(()=>f()),ref:_(()=>i(),T=>i(T))}),h=y(()=>j(p,d.props));var g=A(),b=P(g);{var w=T=>{var x=A(),D=P(x);M(D,()=>t.child,()=>({props:l(h)})),C(T,x)},S=T=>{var x=$w();J(x,()=>({...l(h)}));var D=Y(x);M(D,()=>t.children??L),z(x),C(T,x)};k(b,T=>{t.child?T(w):T(S,-1)})}C(e,g),H()}var t0=U("<div><!></div>");function v_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=q(t,["$$slots","$$events","$$legacy","child","children","id","ref"]);const s=Gl.create({id:_(()=>n()),ref:_(()=>i(),d=>i(d))}),a=y(()=>j(o,s.props));var c=A(),u=P(c);{var f=d=>{var h=A(),g=P(h);M(g,()=>t.child,()=>({props:l(a)})),C(d,h)},p=d=>{var h=t0();J(h,()=>({...l(a)}));var g=Y(h);M(g,()=>t.children??L),z(h),C(d,h)};k(u,d=>{t.child?d(f):d(p,-1)})}C(e,c),H()}var e0=U("<button><!></button>");function m_(e,t){const r=at();V(t,!0);let n=m(t,"disabled",3,!1),i=m(t,"id",19,()=>lt(r)),o=m(t,"type",3,"button"),s=m(t,"ref",15,null),a=q(t,["$$slots","$$events","$$legacy","child","children","disabled","id","type","value","ref"]);const c=Zl.create({id:_(()=>i()),disabled:_(()=>n()??!1),value:_(()=>t.value),ref:_(()=>s(),g=>s(g))}),u=y(()=>j(a,c.props,{type:o()}));var f=A(),p=P(f);{var d=g=>{var b=A(),w=P(b);M(w,()=>t.child,()=>({props:l(u)})),C(g,b)},h=g=>{var b=e0();J(b,()=>({...l(u)}));var w=Y(b);M(w,()=>t.children??L),z(b),C(g,b)};k(p,g=>{t.child?g(d):g(h,-1)})}C(e,f),H()}class Ks{#t;#e;#r=null;constructor(t,r){this.#e=t,this.#t=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),jr(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...t){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#e(...t)},this.#t)}}const Xh=we({component:"tooltip",parts:["content","trigger"]}),Gh=new Vt("Tooltip.Provider"),Jl=new Vt("Tooltip.Root");class r0{#t=I(qt(new Map));get triggers(){return l(this.#t)}set triggers(t){v(this.#t,t,!0)}#e=I(null);get activeTriggerId(){return l(this.#e)}set activeTriggerId(t){v(this.#e,t,!0)}#r=y(()=>{const t=this.activeTriggerId;return t===null?null:this.triggers.get(t)?.node??null});get activeTriggerNode(){return l(this.#r)}set activeTriggerNode(t){v(this.#r,t)}#n=y(()=>{const t=this.activeTriggerId;return t===null?null:this.triggers.get(t)?.payload??null});get activePayload(){return l(this.#n)}set activePayload(t){v(this.#n,t)}register=t=>{const r=new Map(this.triggers);r.set(t.id,t),this.triggers=r,this.#i()};update=t=>{const r=new Map(this.triggers);r.set(t.id,t),this.triggers=r,this.#i()};unregister=t=>{if(!this.triggers.has(t))return;const r=new Map(this.triggers);r.delete(t),this.triggers=r,this.activeTriggerId===t&&(this.activeTriggerId=null)};setActiveTrigger=t=>{if(t===null){this.activeTriggerId=null;return}if(!this.triggers.has(t)){this.activeTriggerId=null;return}this.activeTriggerId=t};get=t=>this.triggers.get(t);has=t=>this.triggers.has(t);getFirstTriggerId=()=>{const t=this.triggers.entries().next();return t.done?null:t.value[0]};#i=()=>{const t=this.activeTriggerId;t!==null&&(this.triggers.has(t)||(this.activeTriggerId=null))}}class Ql{static create(t){return Gh.set(new Ql(t))}opts;#t=I(!0);get isOpenDelayed(){return l(this.#t)}set isOpenDelayed(t){v(this.#t,t,!0)}isPointerInTransit=ae(!1);#e;#r=I(null);constructor(t){this.opts=t,this.#e=new Ks(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),Oo(()=>bt(window,"scroll",r=>{const n=l(this.#r);if(!n)return;const i=n.triggerNode;if(!i)return;const o=r.target;(o instanceof Element||o instanceof Document)&&o.contains(i)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#e.start()};#i=()=>{this.#e.stop()};onOpen=t=>{l(this.#r)&&l(this.#r)!==t&&l(this.#r).handleClose(),this.#i(),this.isOpenDelayed=!1,v(this.#r,t,!0)};onClose=t=>{l(this.#r)===t&&v(this.#r,null),this.#n()};isTooltipOpen=t=>l(this.#r)===t}class $l{static create(t){return Jl.set(new $l(t,Gh.get()))}opts;provider;#t=y(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return l(this.#t)}set delayDuration(t){v(this.#t,t)}#e=y(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return l(this.#e)}set disableHoverableContent(t){v(this.#e,t)}#r=y(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return l(this.#r)}set disableCloseOnTriggerClick(t){v(this.#r,t)}#n=y(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return l(this.#n)}set disabled(t){v(this.#n,t)}#i=y(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return l(this.#i)}set ignoreNonKeyboardFocus(t){v(this.#i,t)}registry;tether;#o=I(null);get contentNode(){return l(this.#o)}set contentNode(t){v(this.#o,t,!0)}contentPresence;#a=I(!1);#s;#l=y(()=>this.opts.open.current?l(this.#a)?"delayed-open":"instant-open":"closed");get stateAttr(){return l(this.#l)}set stateAttr(t){v(this.#l,t)}constructor(t,r){this.opts=t,this.provider=r,this.tether=t.tether.current?.state??null,this.registry=this.tether?.registry??new r0,this.#s=new Ks(()=>{v(this.#a,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,Oo(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new ln({open:this.opts.open,ref:_(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),et(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=new Ks(()=>{v(this.#a,!0),this.opts.open.current=!0},this.delayDuration))}),et(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),et(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),et(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#s.stop(),v(this.#a,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#c=()=>{this.#s.stop();const t=!this.provider.isOpenDelayed,r=this.delayDuration??0;t||r===0?(v(this.#a,!1),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=t=>{this.setActiveTrigger(t),this.#c()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const t=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(t)};setActiveTrigger=t=>{this.registry.setActiveTrigger(t)};registerTrigger=t=>{this.registry.register(t),t.disabled&&this.registry.activeTriggerId===t.id&&this.opts.open.current&&this.handleClose()};updateTrigger=t=>{this.registry.update(t),t.disabled&&this.registry.activeTriggerId===t.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=t=>{const r=this.registry.activeTriggerId===t;this.registry.unregister(t),r&&this.opts.open.current&&this.handleClose()};isActiveTrigger=t=>this.registry.activeTriggerId===t;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class vo{static create(t){return t.tether.current?new vo(t,null,t.tether.current.state):new vo(t,Jl.get(),null)}opts;root;tether;attachment;#t=ae(!1);#e=I(!1);domContext;#r=null;#n=!1;#i=null;constructor(t,r,n){this.opts=t,this.root=r,this.tether=n,this.domContext=new Pr(t.ref),this.attachment=rt(this.opts.ref,i=>this.#s(i)),et(()=>this.opts.id.current,()=>{this.#s(this.opts.ref.current)}),et(()=>this.opts.payload.current,()=>{this.#s(this.opts.ref.current)}),et(()=>this.opts.disabled.current,()=>{this.#s(this.opts.ref.current)}),Oo(()=>(this.#n=!0,this.#s(this.opts.ref.current),()=>{const i=this.#o(),o=this.#i;o&&(this.tether?this.tether.registry.unregister(o):i?.unregisterTrigger(o)),this.#i=null,this.#n=!1}))}#o=()=>this.tether?.root??this.root;#a=()=>{const t=this.#o();return this.opts.disabled.current||!!t?.disabled};#s=t=>{if(!this.#n)return;const r=this.opts.id.current,n=this.opts.payload.current,i=this.opts.disabled.current;if(this.#i&&this.#i!==r){const a=this.#o();this.tether?this.tether.registry.unregister(this.#i):a?.unregisterTrigger(this.#i)}const o={id:r,node:t,payload:n,disabled:i},s=this.#o();this.tether?(this.tether.registry.has(r)?this.tether.registry.update(o):this.tether.registry.register(o),i&&this.tether.registry.activeTriggerId===r&&s?.opts.open.current&&s.handleClose()):s?.registry.has(r)?s.updateTrigger(o):s?.registerTrigger(o),this.#i=r};#l=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#t.current=!1};#c=()=>{this.#a()||(this.#t.current=!1)};#u=()=>{this.#a()||(this.#t.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#h=t=>{const r=this.#o();if(r){if(this.#a()){r.opts.open.current&&r.handleClose();return}if(t.pointerType!=="touch"){if(r.provider.isPointerInTransit.current){this.#l(),this.#r=window.setTimeout(()=>{r.provider.isPointerInTransit.current&&(r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),v(this.#e,!0))},250);return}r.onTriggerEnter(this.opts.id.current),v(this.#e,!0)}}};#f=t=>{const r=this.#o();if(r){if(this.#a()){r.opts.open.current&&r.handleClose();return}t.pointerType!=="touch"&&(l(this.#e)||(this.#l(),r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),v(this.#e,!0)))}};#g=t=>{const r=this.#o();if(!r||this.#a())return;if(this.#l(),!r.isActiveTrigger(this.opts.id.current)){v(this.#e,!1);return}const n=t.relatedTarget;if(vr(n)){for(const i of r.registry.triggers.values())if(i.node===n){if(r.provider.opts.skipDelayDuration.current>0){v(this.#e,!1);return}r.handleClose(),v(this.#e,!1);return}}r.onTriggerLeave(),v(this.#e,!1)};#d=t=>{const r=this.#o();if(r&&!this.#t.current){if(this.#a()){r.opts.open.current&&r.handleClose();return}r.ignoreNonKeyboardFocus&&!$p(t.currentTarget)||(r.setActiveTrigger(this.opts.id.current),r.handleOpen())}};#p=()=>{const t=this.#o();!t||this.#a()||t.handleClose()};#v=()=>{const t=this.#o();!t||t.disableCloseOnTriggerClick||this.#a()||t.handleClose()};#m=y(()=>{const t=this.#o(),r=!!(t?.opts.open.current&&t.isActiveTrigger(this.opts.id.current)),n=this.#a();return{id:this.opts.id.current,"aria-describedby":r?t?.contentNode?.id:void 0,"data-state":r?t?.stateAttr:"closed","data-disabled":ft(n),"data-delay-duration":`${t?.delayDuration??0}`,[Xh.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#c,onpointerdown:this.#u,onpointerenter:this.#h,onpointermove:this.#f,onpointerleave:this.#g,onfocus:this.#d,onblur:this.#p,onclick:this.#v,...this.attachment}});get props(){return l(this.#m)}set props(t){v(this.#m,t)}}class tc{static create(t){return new tc(t,Jl.get())}opts;root;attachment;constructor(t,r){this.opts=t,this.root=r,this.attachment=rt(this.opts.ref,n=>this.root.contentNode=n),new Hh({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],i=this.root.triggerNode;for(const o of this.root.registry.triggers.values())o.node&&o.node!==i&&n.push(o.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=t=>{if(vr(t.target)&&this.root.triggerNode?.contains(t.target)&&this.root.disableCloseOnTriggerClick){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current?.(t),!t.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=t=>{t.preventDefault()};onCloseAutoFocus=t=>{t.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#t=y(()=>({open:this.root.opts.open.current}));get snippetProps(){return l(this.#t)}set snippetProps(t){v(this.#t,t)}#e=y(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":ft(this.root.disabled),style:{outline:"none"},[Xh.content]:"",...this.attachment}));get props(){return l(this.#e)}set props(t){v(this.#e,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function b_(e,t){V(t,!0);let r=m(t,"open",15,!1),n=m(t,"triggerId",15,null),i=m(t,"onOpenChange",3,st),o=m(t,"onOpenChangeComplete",3,st);const s=$l.create({open:_(()=>r(),a=>{r(a),i()(a)}),triggerId:_(()=>n(),a=>{n(a)}),delayDuration:_(()=>t.delayDuration),disableCloseOnTriggerClick:_(()=>t.disableCloseOnTriggerClick),disableHoverableContent:_(()=>t.disableHoverableContent),ignoreNonKeyboardFocus:_(()=>t.ignoreNonKeyboardFocus),disabled:_(()=>t.disabled),onOpenChangeComplete:_(()=>o()),tether:_(()=>t.tether)});gl(e,{tooltip:!0,children:(a,c)=>{var u=A(),f=P(u);M(f,()=>t.children??L,()=>({open:s.opts.open.current,triggerId:s.activeTriggerId,payload:s.activePayload})),C(a,u)},$$slots:{default:!0}}),H()}var n0=U("<div><div><!></div></div>"),i0=U("<div><div><!></div></div>");function y_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"ref",15,null),o=m(t,"side",3,"top"),s=m(t,"sideOffset",3,0),a=m(t,"align",3,"center"),c=m(t,"avoidCollisions",3,!0),u=m(t,"arrowPadding",3,0),f=m(t,"sticky",3,"partial"),p=m(t,"hideWhenDetached",3,!1),d=m(t,"collisionPadding",3,0),h=m(t,"onInteractOutside",3,st),g=m(t,"onEscapeKeydown",3,st),b=m(t,"forceMount",3,!1),w=q(t,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]);const S=tc.create({id:_(()=>n()),ref:_(()=>i(),F=>i(F)),onInteractOutside:_(()=>h()),onEscapeKeydown:_(()=>g())}),T=y(()=>({side:o(),sideOffset:s(),align:a(),avoidCollisions:c(),arrowPadding:u(),sticky:f(),hideWhenDetached:p(),collisionPadding:d(),strategy:t.strategy,customAnchor:t.customAnchor??S.root.triggerNode})),x=y(()=>j(w,l(T),S.props));var D=A(),N=P(D);{var O=F=>{{const W=(G,B)=>{let Z=()=>B?.().props,Q=()=>B?.().wrapperProps;const gt=y(()=>j(Z(),{style:ni("tooltip")},{style:t.style}));var St=A(),ht=P(St);{var X=pt=>{var It=A(),Nt=P(It);{let Wt=y(()=>({props:l(gt),wrapperProps:Q(),...S.snippetProps}));M(Nt,()=>t.child,()=>l(Wt))}C(pt,It)},tt=pt=>{var It=n0();J(It,()=>({...Q()}));var Nt=Y(It);J(Nt,()=>({...l(gt)}));var Wt=Y(Nt);M(Wt,()=>t.children??L),z(Nt),z(It),C(pt,It)};k(ht,pt=>{t.child?pt(X):pt(tt,-1)})}C(G,St)};let R=y(()=>S.root.disableHoverableContent?"none":"auto");xl(F,wt(()=>l(x),()=>S.popperProps,{get enabled(){return S.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return S.opts.ref},tooltip:!0,get shouldRender(){return S.shouldRender},get contentPointerEvents(){return l(R)},popper:W,$$slots:{popper:!0}}))}},E=F=>{{const W=(G,B)=>{let Z=()=>B?.().props,Q=()=>B?.().wrapperProps;const gt=y(()=>j(Z(),{style:ni("tooltip")},{style:t.style}));var St=A(),ht=P(St);{var X=pt=>{var It=A(),Nt=P(It);{let Wt=y(()=>({props:l(gt),wrapperProps:Q(),...S.snippetProps}));M(Nt,()=>t.child,()=>l(Wt))}C(pt,It)},tt=pt=>{var It=i0();J(It,()=>({...Q()}));var Nt=Y(It);J(Nt,()=>({...l(gt)}));var Wt=Y(Nt);M(Wt,()=>t.children??L),z(Nt),z(It),C(pt,It)};k(ht,pt=>{t.child?pt(X):pt(tt,-1)})}C(G,St)};let R=y(()=>S.root.disableHoverableContent?"none":"auto");Cl(F,wt(()=>l(x),()=>S.popperProps,{get open(){return S.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return S.opts.ref},tooltip:!0,get shouldRender(){return S.shouldRender},get contentPointerEvents(){return l(R)},popper:W,$$slots:{popper:!0}}))}};k(N,F=>{b()?F(O):b()||F(E,1)})}C(e,D),H()}var o0=U("<button><!></button>");function w_(e,t){const r=at();V(t,!0);let n=m(t,"id",19,()=>lt(r)),i=m(t,"disabled",3,!1),o=m(t,"type",3,"button"),s=m(t,"tabindex",3,0),a=m(t,"ref",15,null),c=q(t,["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]);const u=vo.create({id:_(()=>n()),disabled:_(()=>i()??!1),tabindex:_(()=>s()??0),payload:_(()=>t.payload),tether:_(()=>t.tether),ref:_(()=>a(),b=>a(b))}),f=y(()=>j(c,u.props,{type:o()}));var p=A(),d=P(p);{var h=b=>{var w=A(),S=P(w);M(S,()=>t.child,()=>({props:l(f)})),C(b,w)},g=b=>{var w=o0();J(w,()=>({...l(f)}));var S=Y(w);M(S,()=>t.children??L),z(w),C(b,w)};k(d,b=>{t.child?b(h):b(g,-1)})}C(e,p),H()}function __(e,t){V(t,!0);let r=m(t,"ref",15,null),n=q(t,["$$slots","$$events","$$legacy","ref"]);tw(e,wt(()=>n,{get ref(){return r()},set ref(i){r(i)}})),H()}function S_(e,t){V(t,!0);let r=m(t,"delayDuration",3,700),n=m(t,"disableCloseOnTriggerClick",3,!1),i=m(t,"disableHoverableContent",3,!1),o=m(t,"disabled",3,!1),s=m(t,"ignoreNonKeyboardFocus",3,!1),a=m(t,"skipDelayDuration",3,300);Ql.create({delayDuration:_(()=>r()),disableCloseOnTriggerClick:_(()=>n()),disableHoverableContent:_(()=>i()),disabled:_(()=>o()),ignoreNonKeyboardFocus:_(()=>s()),skipDelayDuration:_(()=>a())});var c=A(),u=P(c);M(u,()=>t.children??L),C(e,c),H()}const s0=Array(12).fill(0);var a0=U('<div class="sonner-loading-bar"></div>'),l0=U('<div><div class="sonner-spinner"></div></div>');function c0(e,t){V(t,!0);var r=l0(),n=Y(r);On(n,23,()=>s0,(i,o)=>`spinner-bar-${o}`,(i,o)=>{var s=a0();C(i,s)}),z(n),z(r),Jt(i=>{Fe(r,1,i),Ct(r,"data-visible",t.visible)},[()=>ke(["sonner-loading-wrapper",t.class].filter(Boolean).join(" "))]),C(e,r),H()}function Ze(...e){return e.filter(Boolean).join(" ")}const u0=typeof document<"u",d0=typeof window<"u"?window:void 0;function h0(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}class f0{#t;#e;constructor(t={}){const{window:r=d0,document:n=r?.document}=t;r!==void 0&&(this.#t=n,this.#e=li(i=>{const o=bt(r,"focusin",i),s=bt(r,"focusout",i);return()=>{o(),s()}}))}get current(){return this.#e?.(),this.#t?h0(this.#t):null}}new f0;class g0{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return xu(this.#e)}get(){const t=Ki(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const r=Ki(this.#e);return r===void 0?t:r}set(t){return Cu(this.#e,t)}}const p0=new g0("<Toaster/>");let su=0;class v0{#t=I(qt([]));get toasts(){return l(this.#t)}set toasts(t){v(this.#t,t,!0)}#e=I(qt([]));get heights(){return l(this.#e)}set heights(t){v(this.#e,t,!0)}#r=t=>{const r=this.toasts.findIndex(n=>n.id===t);return r===-1?null:r};addToast=t=>{u0&&this.toasts.unshift(t)};updateToast=({id:t,data:r,type:n,message:i})=>{const o=this.toasts.findIndex(a=>a.id===t),s=this.toasts[o];this.toasts[o]={...s,...r,id:t,title:i,type:n,updated:!0}};create=t=>{const{message:r,...n}=t,i=typeof t?.id=="number"||t.id&&t.id?.length>0?t.id:su++,o=t.dismissible!==void 0?t.dismissible:t.dismissable!==void 0?t.dismissable:!0,s=t.type===void 0?"default":t.type;return Et(()=>{this.toasts.find(c=>c.id===i)?this.updateToast({id:i,data:t,type:s,message:r,dismissible:o}):this.addToast({...n,id:i,title:r,dismissible:o,type:s})}),i};dismiss=t=>(Et(()=>{if(t===void 0){this.toasts=this.toasts.map(n=>({...n,dismiss:!0}));return}const r=this.toasts.findIndex(n=>n.id===t);this.toasts[r]&&(this.toasts[r]={...this.toasts[r],dismiss:!0})}),t);remove=t=>{if(t===void 0){this.toasts=[];return}const r=this.#r(t);if(r!==null)return this.toasts.splice(r,1),t};message=(t,r)=>this.create({...r,type:"default",message:t});error=(t,r)=>this.create({...r,type:"error",message:t});success=(t,r)=>this.create({...r,type:"success",message:t});info=(t,r)=>this.create({...r,type:"info",message:t});warning=(t,r)=>this.create({...r,type:"warning",message:t});loading=(t,r)=>this.create({...r,type:"loading",message:t});promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:typeof r.loading=="string"?r.loading:r.loading()}));const i=t instanceof Promise?t:t();let o=n!==void 0;return i.then(s=>{if(typeof s=="object"&&s&&"ok"in s&&typeof s.ok=="boolean"&&!s.ok){o=!1;const a=m0(s);this.create({id:n,type:"error",message:a})}else if(r.success!==void 0){o=!1;const a=typeof r.success=="function"?r.success(s):r.success;this.create({id:n,type:"success",message:a})}}).catch(s=>{if(r.error!==void 0){o=!1;const a=typeof r.error=="function"?r.error(s):r.error;this.create({id:n,type:"error",message:a})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),r.finally?.()}),n};custom=(t,r)=>{const n=r?.id||su++;return this.create({component:t,id:n,...r}),n};removeHeight=t=>{this.heights=this.heights.filter(r=>r.toastId!==t)};setHeight=t=>{const r=this.#r(t.toastId);if(r===null){this.heights.push(t);return}this.heights[r]=t};reset=()=>{this.toasts=[],this.heights=[]}}function m0(e){return e&&typeof e=="object"&&"status"in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}const Ot=new v0;function b0(e,t){return Ot.create({message:e,...t})}class y0{#t=y(()=>Ot.toasts.filter(t=>!t.dismiss));get toasts(){return l(this.#t)}}const w0=b0,C_=Object.assign(w0,{success:Ot.success,info:Ot.info,warning:Ot.warning,error:Ot.error,custom:Ot.custom,message:Ot.message,promise:Ot.promise,dismiss:Ot.dismiss,loading:Ot.loading,getActiveToasts:()=>Ot.toasts.filter(e=>!e.dismiss)});function Ri(e){return e.label!==void 0}function _0(){let e=I(qt(typeof document<"u"?document.hidden:!1));return nt(()=>bt(document,"visibilitychange",()=>{v(e,document.hidden,!0)})),{get current(){return l(e)}}}const au=4e3,S0=14,C0=45,x0=200,T0=.05,P0={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""};function A0(e){const[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}function lu(e){return 1/(1.5+Math.abs(e)/20)}var D0=U("<div><!></div>"),O0=U('<button data-close-button=""><!></button>'),E0=U('<div data-icon=""><!> <!></div>'),I0=U('<div data-description=""><!></div>'),M0=U('<button data-button="" data-cancel=""> </button>'),N0=U('<button data-button=""> </button>'),k0=U('<!> <div data-content=""><div data-title=""><!></div> <!></div> <!> <!>',1),F0=U('<li aria-atomic="true" data-sonner-toast=""><!> <!></li>');function R0(e,t){V(t,!0);const r=ut=>{var yt=A(),Pt=P(yt);{var Ft=Dt=>{var te=D0(),Zr=Y(te);M(Zr,()=>t.loadingIcon),z(te),Jt(Un=>{Fe(te,1,Un),Ct(te,"data-visible",l(O)==="loading")},[()=>ke(Ze(l(tt)?.loader,t.toast?.classes?.loader,"sonner-loader"))]),C(Dt,te)},Rt=Dt=>{{let te=y(()=>Ze(l(tt)?.loader,t.toast.classes?.loader)),Zr=y(()=>l(O)==="loading");c0(Dt,{get class(){return l(te)},get visible(){return l(Zr)}})}};k(Pt,Dt=>{t.loadingIcon?Dt(Ft):Dt(Rt,-1)})}C(ut,yt)};let n=m(t,"cancelButtonStyle",3,""),i=m(t,"actionButtonStyle",3,""),o=m(t,"descriptionClass",3,""),s=m(t,"unstyled",3,!1),a=m(t,"defaultRichColors",3,!1);const c={...P0};let u=I(!1),f=I(!1),p=I(!1),d=I(!1),h=I(!1),g=I(0),b=I(0),w=t.toast.duration||t.duration||au,S=I(void 0),T=I(null),x=I(null);const D=y(()=>t.index===0),N=y(()=>t.index+1<=t.visibleToasts),O=y(()=>t.toast.type),E=y(()=>t.toast.dismissible!==void 0?t.toast.dismissible!==!1:t.toast.dismissable!==!1),F=y(()=>t.toast.class||""),W=y(()=>t.toast.descriptionClass||""),R=y(()=>Ot.heights.findIndex(ut=>ut.toastId===t.toast.id)||0),G=y(()=>t.toast.closeButton??t.closeButton),B=y(()=>t.toast.duration??t.duration??au);let Z=null;const Q=y(()=>t.position.split("-")),gt=y(()=>Ot.heights.reduce((ut,yt,Pt)=>Pt>=l(R)?ut:ut+yt.height,0)),St=_0(),ht=y(()=>t.toast.invert||t.invert),X=y(()=>l(O)==="loading"),tt=y(()=>({...c,...t.classes})),pt=y(()=>t.toast.title),It=y(()=>t.toast.description);let Nt=I(0),Wt=I(0);const pn=y(()=>Math.round(l(R)*S0+l(gt)));nt(()=>{l(pt),l(It);let ut;t.expanded||t.expandByDefault?ut=1:ut=1-t.index*T0;const yt=Et(()=>l(S));if(yt===void 0)return;yt.style.setProperty("height","auto");const Pt=yt.offsetHeight,Ft=yt.getBoundingClientRect().height,Rt=Math.round(Ft/ut+Number.EPSILON&100)/100;yt.style.removeProperty("height");let Dt;Math.abs(Rt-Pt)<1?Dt=Rt:Dt=Pt,v(b,Dt,!0),Ot.setHeight({toastId:t.toast.id,height:Dt})});function $(){v(f,!0),v(g,l(pn),!0),Ot.removeHeight(t.toast.id),setTimeout(()=>{Ot.remove(t.toast.id)},x0)}let Ut;const je=y(()=>t.toast.promise&&l(O)==="loading"||t.toast.duration===Number.POSITIVE_INFINITY);function qe(){v(Nt,new Date().getTime(),!0),Ut=setTimeout(()=>{t.toast.onAutoClose?.(t.toast),$()},w)}function Gr(){if(l(Wt)<l(Nt)){const ut=new Date().getTime()-l(Nt);w=w-ut}v(Wt,new Date().getTime(),!0)}nt(()=>{t.toast.updated&&(clearTimeout(Ut),w=l(B),qe())}),nt(()=>(l(je)||(t.expanded||t.interacting||t.pauseWhenPageIsHidden&&St.current?Gr():qe()),()=>clearTimeout(Ut))),hi(()=>{v(u,!0);const ut=l(S)?.getBoundingClientRect().height;return v(b,ut,!0),Ot.setHeight({toastId:t.toast.id,height:ut}),()=>{Ot.removeHeight(t.toast.id)}}),nt(()=>{t.toast.delete&&Et(()=>{$(),t.toast.onDismiss?.(t.toast)})});const zo=ut=>{if(l(X))return;v(g,l(pn),!0);const yt=ut.target;yt.setPointerCapture(ut.pointerId),yt.tagName!=="BUTTON"&&(v(p,!0),Z={x:ut.clientX,y:ut.clientY})},ec=()=>{if(l(d)||!l(E))return;Z=null;const ut=Number(l(S)?.style.getPropertyValue("--swipe-amount-x").replace("px","")||0),yt=Number(l(S)?.style.getPropertyValue("--swipe-amount-y").replace("px","")||0),Pt=new Date().getTime()-0,Ft=l(T)==="x"?ut:yt,Rt=Math.abs(Ft)/Pt;if(Math.abs(Ft)>=C0||Rt>.11){v(g,l(pn),!0),t.toast.onDismiss?.(t.toast),l(T)==="x"?v(x,ut>0?"right":"left",!0):v(x,yt>0?"down":"up",!0),$(),v(d,!0);return}else l(S)?.style.setProperty("--swipe-amount-x","0px"),l(S)?.style.setProperty("--swipe-amount-y","0px");v(h,!1),v(p,!1),v(T,null)},xi=ut=>{if(!Z||!l(E)||(window.getSelection()?.toString().length??-1)>0)return;const Pt=ut.clientY-Z.y,Ft=ut.clientX-Z.x,Rt=t.swipeDirections??A0(t.position);!l(T)&&(Math.abs(Ft)>1||Math.abs(Pt)>1)&&v(T,Math.abs(Ft)>Math.abs(Pt)?"x":"y",!0);let Dt={x:0,y:0};if(l(T)==="y"){if(Rt.includes("top")||Rt.includes("bottom"))if(Rt.includes("top")&&Pt<0||Rt.includes("bottom")&&Pt>0)Dt.y=Pt;else{const te=Pt*lu(Pt);Dt.y=Math.abs(te)<Math.abs(Pt)?te:Pt}}else if(l(T)==="x"&&(Rt.includes("left")||Rt.includes("right")))if(Rt.includes("left")&&Ft<0||Rt.includes("right")&&Ft>0)Dt.x=Ft;else{const te=Ft*lu(Ft);Dt.x=Math.abs(te)<Math.abs(Ft)?te:Ft}(Math.abs(Dt.x)>0||Math.abs(Dt.y)>0)&&v(h,!0),l(S)?.style.setProperty("--swipe-amount-x",`${Dt.x}px`),l(S)?.style.setProperty("--swipe-amount-y",`${Dt.y}px`)},Xe=()=>{v(p,!1),v(T,null),Z=null},dr=y(()=>t.toast.icon?t.toast.icon:l(O)==="success"?t.successIcon:l(O)==="error"?t.errorIcon:l(O)==="warning"?t.warningIcon:l(O)==="info"?t.infoIcon:l(O)==="loading"?t.loadingIcon:null);var ct=F0();Ct(ct,"tabindex",0);let vn;var Ti=Y(ct);{var rc=ut=>{var yt=O0(),Pt=Y(yt);M(Pt,()=>t.closeIcon??L),z(yt),Jt(Ft=>{Ct(yt,"aria-label",t.closeButtonAriaLabel),Ct(yt,"data-disabled",l(X)),Fe(yt,1,Ft)},[()=>ke(Ze(l(tt)?.closeButton,t.toast?.classes?.closeButton))]),Qr("click",yt,()=>{l(X)||!l(E)||($(),t.toast.onDismiss?.(t.toast))}),C(ut,yt)};k(Ti,ut=>{l(G)&&!t.toast.component&&l(O)!=="loading"&&t.closeIcon!==null&&ut(rc)})}var Yo=se(Ti,2);{var Ko=ut=>{const yt=y(()=>t.toast.component);var Pt=A(),Ft=P(Pt);Or(Ft,()=>l(yt),(Rt,Dt)=>{Dt(Rt,wt(()=>t.toast.componentProps,{closeToast:$}))}),C(ut,Pt)},jo=ut=>{var yt=k0(),Pt=P(yt);{var Ft=xt=>{var At=E0(),ot=Y(At);{var Lt=_t=>{var Tt=A(),oe=P(Tt);{var zt=Ar=>{var Ai=A(),Xo=P(Ai);Or(Xo,()=>t.toast.icon,(ee,ne)=>{ne(ee,{})}),C(Ar,Ai)},Ne=Ar=>{r(Ar)};k(oe,Ar=>{t.toast.icon?Ar(zt):Ar(Ne,-1)})}C(_t,Tt)};k(ot,_t=>{(t.toast.promise||l(O)==="loading")&&_t(Lt)})}var Xt=se(ot,2);{var Ht=_t=>{var Tt=A(),oe=P(Tt);{var zt=ee=>{var ne=A(),hr=P(ne);Or(hr,()=>t.toast.icon,(Qh,$h)=>{$h(Qh,{})}),C(ee,ne)},Ne=ee=>{var ne=A(),hr=P(ne);M(hr,()=>t.successIcon??L),C(ee,ne)},Ar=ee=>{var ne=A(),hr=P(ne);M(hr,()=>t.errorIcon??L),C(ee,ne)},Ai=ee=>{var ne=A(),hr=P(ne);M(hr,()=>t.warningIcon??L),C(ee,ne)},Xo=ee=>{var ne=A(),hr=P(ne);M(hr,()=>t.infoIcon??L),C(ee,ne)};k(oe,ee=>{t.toast.icon?ee(zt):l(O)==="success"?ee(Ne,1):l(O)==="error"?ee(Ar,2):l(O)==="warning"?ee(Ai,3):l(O)==="info"&&ee(Xo,4)})}C(_t,Tt)};k(Xt,_t=>{t.toast.type!=="loading"&&_t(Ht)})}z(At),Jt(_t=>Fe(At,1,_t),[()=>ke(Ze(l(tt)?.icon,t.toast?.classes?.icon))]),C(xt,At)};k(Pt,xt=>{(l(O)||t.toast.icon||t.toast.promise)&&t.toast.icon!==null&&(l(dr)!==null||t.toast.icon)&&xt(Ft)})}var Rt=se(Pt,2),Dt=Y(Rt),te=Y(Dt);{var Zr=xt=>{var At=A(),ot=P(At);{var Lt=Ht=>{const _t=y(()=>t.toast.title);var Tt=A(),oe=P(Tt);Or(oe,()=>l(_t),(zt,Ne)=>{Ne(zt,wt(()=>t.toast.componentProps))}),C(Ht,Tt)},Xt=Ht=>{var _t=As();Jt(()=>rn(_t,t.toast.title)),C(Ht,_t)};k(ot,Ht=>{typeof t.toast.title!="string"?Ht(Lt):Ht(Xt,-1)})}C(xt,At)};k(te,xt=>{t.toast.title&&xt(Zr)})}z(Dt);var Un=se(Dt,2);{var qo=xt=>{var At=I0(),ot=Y(At);{var Lt=Ht=>{const _t=y(()=>t.toast.description);var Tt=A(),oe=P(Tt);Or(oe,()=>l(_t),(zt,Ne)=>{Ne(zt,wt(()=>t.toast.componentProps))}),C(Ht,Tt)},Xt=Ht=>{var _t=As();Jt(()=>rn(_t,t.toast.description)),C(Ht,_t)};k(ot,Ht=>{typeof t.toast.description!="string"?Ht(Lt):Ht(Xt,-1)})}z(At),Jt(Ht=>Fe(At,1,Ht),[()=>ke(Ze(o(),l(W),l(tt)?.description,t.toast.classes?.description))]),C(xt,At)};k(Un,xt=>{t.toast.description&&xt(qo)})}z(Rt);var Pi=se(Rt,2);{var Ie=xt=>{var At=A(),ot=P(At);{var Lt=_t=>{var Tt=A(),oe=P(Tt);Or(oe,()=>t.toast.cancel,(zt,Ne)=>{Ne(zt,{})}),C(_t,Tt)},Xt=_t=>{var Tt=M0(),oe=Y(Tt,!0);z(Tt),Jt(zt=>{Ui(Tt,t.toast.cancelButtonStyle??n()),Fe(Tt,1,zt),rn(oe,t.toast.cancel.label)},[()=>ke(Ze(l(tt)?.cancelButton,t.toast?.classes?.cancelButton))]),Qr("click",Tt,zt=>{Ri(t.toast.cancel)&&l(E)&&(t.toast.cancel?.onClick?.(zt),$())}),C(_t,Tt)},Ht=y(()=>Ri(t.toast.cancel));k(ot,_t=>{typeof t.toast.cancel=="function"?_t(Lt):l(Ht)&&_t(Xt,1)})}C(xt,At)};k(Pi,xt=>{t.toast.cancel&&xt(Ie)})}var re=se(Pi,2);{var Me=xt=>{var At=A(),ot=P(At);{var Lt=_t=>{var Tt=A(),oe=P(Tt);Or(oe,()=>t.toast.action,(zt,Ne)=>{Ne(zt,{})}),C(_t,Tt)},Xt=_t=>{var Tt=N0(),oe=Y(Tt,!0);z(Tt),Jt(zt=>{Ui(Tt,t.toast.actionButtonStyle??i()),Fe(Tt,1,zt),rn(oe,t.toast.action.label)},[()=>ke(Ze(l(tt)?.actionButton,t.toast?.classes?.actionButton))]),Qr("click",Tt,zt=>{Ri(t.toast.action)&&(t.toast.action?.onClick(zt),!zt.defaultPrevented&&$())}),C(_t,Tt)},Ht=y(()=>Ri(t.toast.action));k(ot,_t=>{typeof t.toast.action=="function"?_t(Lt):l(Ht)&&_t(Xt,1)})}C(xt,At)};k(re,xt=>{t.toast.action&&xt(Me)})}Jt((xt,At)=>{Fe(Rt,1,xt),Fe(Dt,1,At)},[()=>ke(Ze(l(tt)?.content,t.toast?.classes?.content)),()=>ke(Ze(l(tt)?.title,t.toast?.classes?.title))]),C(ut,yt)};k(Yo,ut=>{t.toast.component?ut(Ko):ut(jo,-1)})}z(ct),_d(ct,ut=>v(S,ut),()=>l(S)),Jt((ut,yt,Pt)=>{Fe(ct,1,ut),Ct(ct,"aria-live",t.toast.important?"assertive":"polite"),Ct(ct,"data-rich-colors",t.toast.richColors??a()),Ct(ct,"data-styled",!(t.toast.component||t.toast.unstyled||s())),Ct(ct,"data-mounted",l(u)),Ct(ct,"data-promise",yt),Ct(ct,"data-swiped",l(h)),Ct(ct,"data-removed",l(f)),Ct(ct,"data-visible",l(N)),Ct(ct,"data-y-position",l(Q)[0]),Ct(ct,"data-x-position",l(Q)[1]),Ct(ct,"data-index",t.index),Ct(ct,"data-front",l(D)),Ct(ct,"data-swiping",l(p)),Ct(ct,"data-dismissible",l(E)),Ct(ct,"data-type",l(O)),Ct(ct,"data-invert",l(ht)),Ct(ct,"data-swipe-out",l(d)),Ct(ct,"data-swipe-direction",l(x)),Ct(ct,"data-expanded",Pt),vn=Ui(ct,`${t.style} ${t.toast.style}`,vn,{"--index":t.index,"--toasts-before":t.index,"--z-index":Ot.toasts.length-t.index,"--offset":`${l(f)?l(g):l(pn)}px`,"--initial-height":t.expandByDefault?"auto":`${l(b)}px`})},[()=>ke(Ze(t.class,l(F),l(tt)?.toast,t.toast?.classes?.toast,l(tt)?.[l(O)],t.toast?.classes?.[l(O)])),()=>!!t.toast.promise,()=>!!(t.expanded||t.expandByDefault&&l(u))]),Qr("pointermove",ct,xi),Qr("pointerup",ct,ec),Qr("pointerdown",ct,zo),yg("dragend",ct,Xe),C(e,ct),H()}ld(["pointermove","pointerup","pointerdown","click"]);var L0=Bn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-success-icon=""><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>');function B0(e){var t=L0();C(e,t)}var V0=Bn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-error-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>');function H0(e){var t=V0();C(e,t)}var W0=Bn('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" data-sonner-warning-icon="" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function U0(e){var t=W0();C(e,t)}var z0=Bn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20" data-sonner-info-icon=""><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>');function Y0(e){var t=z0();C(e,t)}var K0=Bn('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" data-sonner-close-icon=""><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>');function j0(e){var t=K0();C(e,t)}const q0=3,Zh="24px",Jh="16px",X0=4e3,G0=356,Z0=14,vs="dark",Li="light";function J0(e,t){const r={};return[e,t].forEach((n,i)=>{const o=i===1,s=o?"--mobile-offset":"--offset",a=o?Jh:Zh;function c(u){["top","right","bottom","left"].forEach(f=>{r[`${s}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?c(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{const f=n[u];f===void 0?r[`${s}-${u}`]=a:r[`${s}-${u}`]=typeof f=="number"?`${f}px`:f}):c(a)}),r}var Q0=U("<ol></ol>"),$0=U('<section aria-live="polite" aria-relevant="additions text" aria-atomic="false" class="svelte-1945zy"><!></section>');function x_(e,t){V(t,!0);function r($){return $!=="system"?$:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?vs:Li}let n=m(t,"invert",3,!1),i=m(t,"position",3,"bottom-right"),o=m(t,"hotkey",19,()=>["altKey","KeyT"]),s=m(t,"expand",3,!1),a=m(t,"closeButton",3,!1),c=m(t,"offset",3,Zh),u=m(t,"mobileOffset",3,Jh),f=m(t,"theme",3,"light"),p=m(t,"richColors",3,!1),d=m(t,"duration",3,X0),h=m(t,"visibleToasts",3,q0),g=m(t,"toastOptions",19,()=>({})),b=m(t,"dir",7,"auto"),w=m(t,"gap",3,Z0),S=m(t,"pauseWhenPageIsHidden",3,!1),T=m(t,"containerAriaLabel",3,"Notifications"),x=m(t,"closeButtonAriaLabel",3,"Close toast"),D=q(t,["$$slots","$$events","$$legacy","invert","position","hotkey","expand","closeButton","offset","mobileOffset","theme","richColors","duration","visibleToasts","toastOptions","dir","gap","pauseWhenPageIsHidden","loadingIcon","successIcon","errorIcon","warningIcon","closeIcon","infoIcon","containerAriaLabel","class","closeButtonAriaLabel","onblur","onfocus","onmouseenter","onmousemove","onmouseleave","ondragend","onpointerdown","onpointerup"]);function N(){if(b()!=="auto")return b();if(typeof window>"u"||typeof document>"u")return"ltr";const $=document.documentElement.getAttribute("dir");return $==="auto"||!$?(Et(()=>b(window.getComputedStyle(document.documentElement).direction??"ltr")),b()):(Et(()=>b($)),$)}const O=y(()=>Array.from(new Set([i(),...Ot.toasts.filter($=>$.position).map($=>$.position)].filter(Boolean))));let E=I(!1),F=I(!1),W=I(qt(r(f()))),R=I(void 0),G=I(null),B=I(!1);const Z=y(()=>o().join("+").replace(/Key/g,"").replace(/Digit/g,""));nt(()=>{Ot.toasts.length<=1&&v(E,!1)}),nt(()=>{const $=Ot.toasts.filter(Ut=>Ut.dismiss&&!Ut.delete);if($.length>0){const Ut=Ot.toasts.map(je=>$.find(Gr=>Gr.id===je.id)?{...je,delete:!0}:je);Ot.toasts=Ut}}),nt(()=>()=>{l(R)&&l(G)&&(l(G).focus({preventScroll:!0}),v(G,null),v(B,!1))}),hi(()=>(Ot.reset(),bt(document,"keydown",Ut=>{o().every(qe=>Ut[qe]||Ut.code===qe)&&(v(E,!0),l(R)?.focus()),Ut.code==="Escape"&&(document.activeElement===l(R)||l(R)?.contains(document.activeElement))&&v(E,!1)}))),nt(()=>{if(f()!=="system"&&v(W,f()),typeof window<"u"){f()==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v(W,vs):v(W,Li));const $=window.matchMedia("(prefers-color-scheme: dark)"),Ut=({matches:je})=>{f()==="system"&&v(W,je?vs:Li,!0)};"addEventListener"in $?$.addEventListener("change",Ut):$.addListener(Ut)}});const Q=$=>{t.onblur?.($),l(B)&&!$.currentTarget.contains($.relatedTarget)&&(v(B,!1),l(G)&&(l(G).focus({preventScroll:!0}),v(G,null)))},gt=$=>{t.onfocus?.($),!($.target instanceof HTMLElement&&$.target.dataset.dismissible==="false")&&(l(B)||(v(B,!0),v(G,$.relatedTarget,!0)))},St=$=>{t.onpointerdown?.($),!($.target instanceof HTMLElement&&$.target.dataset.dismissible==="false")&&v(F,!0)},ht=$=>{t.onmouseenter?.($),v(E,!0)},X=$=>{t.onmouseleave?.($),l(F)||v(E,!1)},tt=$=>{t.onmousemove?.($),v(E,!0)},pt=$=>{t.ondragend?.($),v(E,!1)},It=$=>{t.onpointerup?.($),v(F,!1)};p0.set(new y0);var Nt=$0();Ct(Nt,"tabindex",-1);var Wt=Y(Nt);{var pn=$=>{var Ut=A(),je=P(Ut);On(je,18,()=>l(O),qe=>qe,(qe,Gr,zo,ec)=>{const xi=y(()=>{const[ct,vn]=Gr.split("-");return{y:ct,x:vn}}),Xe=y(()=>J0(c(),u()));var dr=Q0();J(dr,ct=>({tabindex:-1,dir:ct,class:t.class,"data-sonner-toaster":!0,"data-sonner-theme":l(W),"data-y-position":l(xi).y,"data-x-position":l(xi).x,style:t.style,onblur:Q,onfocus:gt,onmouseenter:ht,onmousemove:tt,onmouseleave:X,ondragend:pt,onpointerdown:St,onpointerup:It,...D,[wn]:{"--front-toast-height":`${Ot.heights[0]?.height}px`,"--width":`${G0}px`,"--gap":`${w()}px`,"--offset-top":l(Xe)["--offset-top"],"--offset-right":l(Xe)["--offset-right"],"--offset-bottom":l(Xe)["--offset-bottom"],"--offset-left":l(Xe)["--offset-left"],"--mobile-offset-top":l(Xe)["--mobile-offset-top"],"--mobile-offset-right":l(Xe)["--mobile-offset-right"],"--mobile-offset-bottom":l(Xe)["--mobile-offset-bottom"],"--mobile-offset-left":l(Xe)["--mobile-offset-left"]}}),[N],void 0,void 0,"svelte-1945zy"),On(dr,23,()=>Ot.toasts.filter(ct=>!ct.position&&l(zo)===0||ct.position===Gr),ct=>ct.id,(ct,vn,Ti,rc)=>{{const Yo=Ie=>{var re=A(),Me=P(re);{var xt=ot=>{var Lt=A(),Xt=P(Lt);M(Xt,()=>t.successIcon??L),C(ot,Lt)},At=ot=>{B0(ot)};k(Me,ot=>{t.successIcon?ot(xt):t.successIcon!==null&&ot(At,1)})}C(Ie,re)},Ko=Ie=>{var re=A(),Me=P(re);{var xt=ot=>{var Lt=A(),Xt=P(Lt);M(Xt,()=>t.errorIcon??L),C(ot,Lt)},At=ot=>{H0(ot)};k(Me,ot=>{t.errorIcon?ot(xt):t.errorIcon!==null&&ot(At,1)})}C(Ie,re)},jo=Ie=>{var re=A(),Me=P(re);{var xt=ot=>{var Lt=A(),Xt=P(Lt);M(Xt,()=>t.warningIcon??L),C(ot,Lt)},At=ot=>{U0(ot)};k(Me,ot=>{t.warningIcon?ot(xt):t.warningIcon!==null&&ot(At,1)})}C(Ie,re)},ut=Ie=>{var re=A(),Me=P(re);{var xt=ot=>{var Lt=A(),Xt=P(Lt);M(Xt,()=>t.infoIcon??L),C(ot,Lt)},At=ot=>{Y0(ot)};k(Me,ot=>{t.infoIcon?ot(xt):t.infoIcon!==null&&ot(At,1)})}C(Ie,re)},yt=Ie=>{var re=A(),Me=P(re);{var xt=ot=>{var Lt=A(),Xt=P(Lt);M(Xt,()=>t.closeIcon??L),C(ot,Lt)},At=ot=>{j0(ot)};k(Me,ot=>{t.closeIcon?ot(xt):t.closeIcon!==null&&ot(At,1)})}C(Ie,re)};let Pt=y(()=>g()?.duration??d()),Ft=y(()=>g()?.class??""),Rt=y(()=>g()?.descriptionClass||""),Dt=y(()=>g()?.style??""),te=y(()=>g().classes||{}),Zr=y(()=>g().unstyled??!1),Un=y(()=>g()?.cancelButtonStyle??""),qo=y(()=>g()?.actionButtonStyle??""),Pi=y(()=>g()?.closeButtonAriaLabel??x());R0(ct,{get index(){return l(Ti)},get toast(){return l(vn)},get defaultRichColors(){return p()},get duration(){return l(Pt)},get class(){return l(Ft)},get descriptionClass(){return l(Rt)},get invert(){return n()},get visibleToasts(){return h()},get closeButton(){return a()},get interacting(){return l(F)},get position(){return Gr},get style(){return l(Dt)},get classes(){return l(te)},get unstyled(){return l(Zr)},get cancelButtonStyle(){return l(Un)},get actionButtonStyle(){return l(qo)},get closeButtonAriaLabel(){return l(Pi)},get expandByDefault(){return s()},get expanded(){return l(E)},get pauseWhenPageIsHidden(){return S()},get loadingIcon(){return t.loadingIcon},successIcon:Yo,errorIcon:Ko,warningIcon:jo,infoIcon:ut,closeIcon:yt,$$slots:{successIcon:!0,errorIcon:!0,warningIcon:!0,infoIcon:!0,closeIcon:!0}})}}),z(dr),_d(dr,ct=>v(R,ct),()=>l(R)),Jt(()=>dr.dir=dr.dir),C(qe,dr)}),C($,Ut)};k(Wt,$=>{Ot.toasts.length>0&&$(pn)})}z(Nt),Jt(()=>Ct(Nt,"aria-label",`${T()??""} ${l(Z)??""}`)),C(e,Nt),H()}export{uc as $,On as A,Fe as B,U1 as C,Ct as D,J as E,_d as F,g_ as G,i1 as H,Yg as I,m1 as J,l1 as K,i_ as L,d1 as M,yg as N,Qr as O,ld as P,nt as Q,ke as R,f_ as S,a1 as T,id as U,l_ as V,c_ as W,a_ as X,u_ as Y,s_ as Z,Sd as _,M as a,y_ as a$,c1 as a0,z1 as a1,K1 as a2,Y1 as a3,Rn as a4,y1 as a5,o_ as a6,T1 as a7,Q1 as a8,$1 as a9,L1 as aA,R1 as aB,M1 as aC,k1 as aD,F1 as aE,V1 as aF,H1 as aG,B1 as aH,da as aI,W1 as aJ,Ge as aK,vd as aL,Xi as aM,p_ as aN,v_ as aO,m_ as aP,v1 as aQ,b1 as aR,ra as aS,Et as aT,w1 as aU,_1 as aV,Ki as aW,Cu as aX,Wi as aY,b_ as aZ,w_ as a_,Ui as aa,f1 as ab,Wg as ac,p1 as ad,Bn as ae,g1 as af,t1 as ag,j1 as ah,Wr as ai,Mr as aj,n1 as ak,d_ as al,X1 as am,J1 as an,Z1 as ao,q1 as ap,G1 as aq,h_ as ar,t_ as as,Is as at,s1 as au,O1 as av,D1 as aw,N1 as ax,E1 as ay,I1 as az,C as b,__ as b0,S_ as b1,j as b2,e_ as b3,P1 as b4,n_ as b5,r_ as b6,x1 as b7,A1 as b8,Tg as b9,u1 as ba,li as bb,bt as bc,rg as bd,x_ as be,C_ as bf,h1 as bg,Ln as bh,Qf as bi,r1 as bj,o1 as bk,A as c,H as d,m as e,P as f,Or as g,l as h,Y as i,k as j,z as k,U as l,I as m,L as n,qt as o,V as p,hi as q,q as r,wt as s,se as t,y as u,v,Mf as w,As as x,Jt as y,rn as z};