const Za="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Za);let cn=!1,Ja=!1;function Qa(){cn=!0}Qa();const Ko=1,jo=2,Ds=4,$a=8,eu=16,tu=1,nu=2,Vs=4,ru=8,ou=16,iu=1,su=2,Ee=Symbol(),lu="http://www.w3.org/1999/xhtml",au="http://www.w3.org/2000/svg",uu="@attach",Hi=!1;var zn=Array.isArray,cu=Array.prototype.indexOf,qo=Array.from,Ls=Object.defineProperty,It=Object.getOwnPropertyDescriptor,zs=Object.getOwnPropertyDescriptors,Hs=Object.prototype,du=Array.prototype,Er=Object.getPrototypeOf,Bi=Object.isExtensible;function wn(t){return typeof t=="function"}const U=()=>{};function fu(t){return typeof t?.then=="function"}function hu(t){return t()}function On(t){for(var e=0;e<t.length;e++)t[e]()}function gu(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const n=[];for(const r of t)if(n.push(r),n.length===e)break;return n}const Ye=2,Bs=4,Tr=8,Xo=16,St=32,Kt=64,Yo=128,Be=256,gr=512,Ue=1024,bt=2048,Dt=4096,vt=8192,Zo=16384,Gs=32768,dn=65536,pu=1<<17,Gi=1<<18,vu=1<<19,Us=1<<20,bo=1<<21,lt=Symbol("$state"),Ws=Symbol("legacy props"),mu=Symbol("");function Ks(t){return t===this.v}function Jo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function wu(t,e){return t!==e}function Qo(t){return!Jo(t,this.v)}function bu(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function yu(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _u(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Su(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cu(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function xu(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ru(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Au=[];function Eu(t,e=!1){return dr(t,new Map,"",Au)}function dr(t,e,n,r,o=null){if(typeof t=="object"&&t!==null){var i=e.get(t);if(i!==void 0)return i;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(zn(t)){var s=Array(t.length);e.set(t,s),o!==null&&e.set(o,s);for(var l=0;l<t.length;l+=1){var a=t[l];l in t&&(s[l]=dr(a,e,n,r))}return s}if(Er(t)===Hs){s={},e.set(t,s),o!==null&&e.set(o,s);for(var u in t)s[u]=dr(t[u],e,n,r);return s}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function")return dr(t.toJSON(),e,n,r,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}function $o(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let be=null;function pr(t){be=t}function Ui(t){return Or().get(t)}function Tu(t,e){return Or().set(t,e),e}function Ou(t){return Or().has(t)}function Iu(){return Or()}function W(t,e=!1,n){var r=be={p:be,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};cn&&!e&&(be.l={s:null,u:null,r1:[],r2:He(!1)}),Fr(()=>{r.d=!0})}function K(t){const e=be;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var n=we,r=ve;e.e=null;try{for(var o=0;o<s.length;o++){var i=s[o];ct(i.effect),Je(i.reaction),Bn(i.fn)}}finally{ct(n),Je(r)}}be=e.p,e.m=!0}return t||{}}function jt(){return!cn||be!==null&&be.l===null}function Or(t){return be===null&&$o(),be.c??=new Map(Fu(be)||void 0)}function Fu(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function Fe(t){if(typeof t!="object"||t===null||lt in t)return t;const e=Er(t);if(e!==Hs&&e!==du)return t;var n=new Map,r=zn(t),o=N(0),i=ve,s=l=>{var a=ve;Je(i);var u=l();return Je(a),u};return r&&n.set("length",N(t.length)),new Proxy(t,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&xu();var h=n.get(a);return h===void 0?h=s(()=>{var d=N(u.value);return n.set(a,d),d}):S(h,u.value,!0),!0},deleteProperty(l,a){var u=n.get(a);if(u===void 0){if(a in l){const f=s(()=>N(Ee));n.set(a,f),Yr(o)}}else{if(r&&typeof a=="string"){var h=n.get("length"),d=Number(a);Number.isInteger(d)&&d<h.v&&S(h,d)}S(u,Ee),Yr(o)}return!0},get(l,a,u){if(a===lt)return t;var h=n.get(a),d=a in l;if(h===void 0&&(!d||It(l,a)?.writable)&&(h=s(()=>{var c=Fe(d?l[a]:Ee),p=N(c);return p}),n.set(a,h)),h!==void 0){var f=g(h);return f===Ee?void 0:f}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var h=n.get(a);h&&(u.value=g(h))}else if(u===void 0){var d=n.get(a),f=d?.v;if(d!==void 0&&f!==Ee)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(l,a){if(a===lt)return!0;var u=n.get(a),h=u!==void 0&&u.v!==Ee||Reflect.has(l,a);if(u!==void 0||we!==null&&(!h||It(l,a)?.writable)){u===void 0&&(u=s(()=>{var f=h?Fe(l[a]):Ee,c=N(f);return c}),n.set(a,u));var d=g(u);if(d===Ee)return!1}return h},set(l,a,u,h){var d=n.get(a),f=a in l;if(r&&a==="length")for(var c=u;c<d.v;c+=1){var p=n.get(c+"");p!==void 0?S(p,Ee):c in l&&(p=s(()=>N(Ee)),n.set(c+"",p))}if(d===void 0)(!f||It(l,a)?.writable)&&(d=s(()=>N(void 0)),S(d,Fe(u)),n.set(a,d));else{f=d.v!==Ee;var v=s(()=>Fe(u));S(d,v)}var w=Reflect.getOwnPropertyDescriptor(l,a);if(w?.set&&w.set.call(h,u),!f){if(r&&typeof a=="string"){var m=n.get("length"),y=Number(a);Number.isInteger(y)&&y>=m.v&&S(m,y+1)}Yr(o)}return!0},ownKeys(l){g(o);var a=Reflect.ownKeys(l).filter(d=>{var f=n.get(d);return f===void 0||f.v!==Ee});for(var[u,h]of n)h.v!==Ee&&!(u in l)&&a.push(u);return a},setPrototypeOf(){Pu()}})}function Yr(t,e=1){S(t,t.v+e)}function Wi(t){try{if(t!==null&&typeof t=="object"&&lt in t)return t[lt]}catch{}return t}function Mu(t,e){return Object.is(Wi(t),Wi(e))}function Ht(t){var e=Ye|bt,n=ve!==null&&(ve.f&Ye)!==0?ve:null;return we===null||n!==null&&(n.f&Be)!==0?e|=Be:we.f|=Us,{ctx:be,deps:null,effects:null,equals:Ks,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:n??we}}function P(t){const e=Ht(t);return al(e),e}function Ze(t){const e=Ht(t);return e.equals=Qo,e}function js(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)ke(e[n])}}function Nu(t){for(var e=t.parent;e!==null;){if((e.f&Ye)===0)return e;e=e.parent}return null}function qs(t){var e,n=we;ct(Nu(t));try{js(t),e=fl(t)}finally{ct(n)}return e}function Xs(t){var e=qs(t);if(t.equals(e)||(t.v=e,t.wv=cl()),!fn){var n=(Tt||(t.f&Be)!==0)&&t.deps!==null?Dt:Ue;nt(t,n)}}const In=new Map;function He(t,e){var n={f:0,v:t,reactions:null,equals:Ks,rv:0,wv:0};return n}function N(t,e){const n=He(t);return al(n),n}function Fn(t,e=!1,n=!0){const r=He(t);return e||(r.equals=Qo),cn&&n&&be!==null&&be.l!==null&&(be.l.s??=[]).push(r),r}function ib(t,e){return S(t,Ce(()=>g(t))),e}function S(t,e,n=!1){ve!==null&&(!et||(ve.f&Gi)!==0)&&jt()&&(ve.f&(Ye|Xo|Gi))!==0&&!(Xe?.[1].includes(t)&&Xe[0]===ve)&&Ru();let r=n?Fe(e):e;return rn(t,r)}function rn(t,e){if(!t.equals(e)){var n=t.v;fn?In.set(t,e):In.set(t,n),t.v=e,(t.f&Ye)!==0&&((t.f&bt)!==0&&qs(t),nt(t,(t.f&Be)===0?Ue:Dt)),t.wv=cl(),Ys(t,bt),jt()&&we!==null&&(we.f&Ue)!==0&&(we.f&(St|Kt))===0&&(je===null?qu([t]):je.push(t))}return e}function Ki(t,e=1){var n=g(t),r=e===1?n++:n--;return S(t,n),r}function Ys(t,e){var n=t.reactions;if(n!==null)for(var r=jt(),o=n.length,i=0;i<o;i++){var s=n[i],l=s.f;(l&bt)===0&&(!r&&s===we||(nt(s,e),(l&(Ue|Be))!==0&&((l&Ye)!==0?Ys(s,Dt):ni(s))))}}function ku(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let Du=!1;var ji,Zs,Js,Qs;function Vu(){if(ji===void 0){ji=window,Zs=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Js=It(e,"firstChild").get,Qs=It(e,"nextSibling").get,Bi(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Bi(n)&&(n.__t=void 0)}}function Hn(t=""){return document.createTextNode(t)}function it(t){return Js.call(t)}function Ir(t){return Qs.call(t)}function oe(t,e){return it(t)}function I(t,e){{var n=it(t);return n instanceof Comment&&n.data===""?Ir(n):n}}function Bt(t,e=1,n=!1){let r=t;for(;e--;)r=Ir(r);return r}function Lu(t){t.textContent=""}function $s(t){we===null&&ve===null&&_u(),ve!==null&&(ve.f&Be)!==0&&we===null&&yu(),fn&&bu()}function zu(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function qt(t,e,n,r=!0){var o=we,i={ctx:be,deps:null,nodes_start:null,nodes_end:null,f:t|bt,first:null,fn:e,last:null,next:null,parent:o,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Mr(i),i.f|=Gs}catch(a){throw ke(i),a}else e!==null&&ni(i);var s=n&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&(Us|Yo))===0;if(!s&&r&&(o!==null&&zu(i,o),ve!==null&&(ve.f&Ye)!==0)){var l=ve;(l.effects??=[]).push(i)}return i}function Hu(){return ve!==null&&!et}function Fr(t){const e=qt(Tr,null,!1);return nt(e,Ue),e.teardown=t,e}function ge(t){$s();var e=we!==null&&(we.f&St)!==0&&be!==null&&!be.m;if(e){var n=be;(n.e??=[]).push({fn:t,effect:we,reaction:ve})}else{var r=Bn(t);return r}}function Gt(t){return $s(),Xt(t)}function Bu(t){const e=qt(Kt,t,!0);return()=>{ke(e)}}function Gu(t){const e=qt(Kt,t,!0);return(n={})=>new Promise(r=>{n.outro?at(e,()=>{ke(e),r(void 0)}):(ke(e),r(void 0))})}function Bn(t){return qt(Bs,t,!1)}function sb(t,e){var n=be,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=Xt(()=>{t(),!r.ran&&(r.ran=!0,S(n.l.r2,!0),Ce(e))})}function lb(){var t=be;Xt(()=>{if(g(t.l.r2)){for(var e of t.l.r1){var n=e.effect;(n.f&Ue)!==0&&nt(n,Dt),Un(n)&&Mr(n),e.ran=!1}t.l.r2.v=!1}})}function Xt(t){return qt(Tr,t,!0)}function ei(t,e=[],n=Ht){const r=e.map(n);return ft(()=>t(...r.map(g)))}function ft(t,e=0){return qt(Tr|Xo|e,t,!0)}function Ne(t,e=!0){return qt(Tr|St,t,!0,e)}function el(t){var e=t.teardown;if(e!==null){const n=fn,r=ve;qi(!0),Je(null);try{e.call(null)}finally{qi(n),Je(r)}}}function tl(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){var r=n.next;(n.f&Kt)!==0?n.parent=null:ke(n,e),n=r}}function Uu(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&St)===0&&ke(e),e=n}}function ke(t,e=!0){var n=!1;(e||(t.f&vu)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(nl(t.nodes_start,t.nodes_end),n=!0),tl(t,e&&!n),mr(t,0),nt(t,Zo);var r=t.transitions;if(r!==null)for(const i of r)i.stop();el(t);var o=t.parent;o!==null&&o.first!==null&&rl(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function nl(t,e){for(;t!==null;){var n=t===e?null:Ir(t);t.remove(),t=n}}function rl(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function at(t,e){var n=[];ti(t,n,!0),ol(n,()=>{ke(t),e&&e()})}function ol(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var o of t)o.out(r)}else e()}function ti(t,e,n){if((t.f&vt)===0){if(t.f^=vt,t.transitions!==null)for(const s of t.transitions)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var o=r.next,i=(r.f&dn)!==0||(r.f&St)!==0;ti(r,e,i?n:!1),r=o}}}function Ft(t){il(t,!0)}function il(t,e){if((t.f&vt)!==0){t.f^=vt;for(var n=t.first;n!==null;){var r=n.next,o=(n.f&dn)!==0||(n.f&St)!==0;il(n,o?e:!1),n=r}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}let Mn=[],yo=[];function sl(){var t=Mn;Mn=[],On(t)}function Wu(){var t=yo;yo=[],On(t)}function Gn(t){Mn.length===0&&queueMicrotask(sl),Mn.push(t)}function Ku(){Mn.length>0&&sl(),yo.length>0&&Wu()}function ju(t){var e=we;if((e.f&Gs)===0){if((e.f&Yo)===0)throw t;e.fn(t)}else ll(t,e)}function ll(t,e){for(;e!==null;){if((e.f&Yo)!==0)try{e.fn(t);return}catch{}e=e.parent}throw t}let Nn=!1,kn=null,zt=!1,fn=!1;function qi(t){fn=t}let En=[];let ve=null,et=!1;function Je(t){ve=t}let we=null;function ct(t){we=t}let Xe=null;function al(t){ve!==null&&ve.f&bo&&(Xe===null?Xe=[ve,[t]]:Xe[1].push(t))}let Ie=null,Le=0,je=null;function qu(t){je=t}let ul=1,vr=0,Tt=!1;function cl(){return++ul}function Un(t){var e=t.f;if((e&bt)!==0)return!0;if((e&Dt)!==0){var n=t.deps,r=(e&Be)!==0;if(n!==null){var o,i,s=(e&gr)!==0,l=r&&we!==null&&!Tt,a=n.length;if(s||l){var u=t,h=u.parent;for(o=0;o<a;o++)i=n[o],(s||!i?.reactions?.includes(u))&&(i.reactions??=[]).push(u);s&&(u.f^=gr),l&&h!==null&&(h.f&Be)===0&&(u.f^=Be)}for(o=0;o<a;o++)if(i=n[o],Un(i)&&Xs(i),i.wv>t.wv)return!0}(!r||we!==null&&!Tt)&&nt(t,Ue)}return!1}function dl(t,e,n=!0){var r=t.reactions;if(r!==null)for(var o=0;o<r.length;o++){var i=r[o];Xe?.[1].includes(t)&&Xe[0]===ve||((i.f&Ye)!==0?dl(i,e,!1):e===i&&(n?nt(i,bt):(i.f&Ue)!==0&&nt(i,Dt),ni(i)))}}function fl(t){var e=Ie,n=Le,r=je,o=ve,i=Tt,s=Xe,l=be,a=et,u=t.f;Ie=null,Le=0,je=null,Tt=(u&Be)!==0&&(et||!zt||ve===null),ve=(u&(St|Kt))===0?t:null,Xe=null,pr(t.ctx),et=!1,vr++,t.f|=bo;try{var h=(0,t.fn)(),d=t.deps;if(Ie!==null){var f;if(mr(t,Le),d!==null&&Le>0)for(d.length=Le+Ie.length,f=0;f<Ie.length;f++)d[Le+f]=Ie[f];else t.deps=d=Ie;if(!Tt||(u&Ye)!==0&&t.reactions!==null)for(f=Le;f<d.length;f++)(d[f].reactions??=[]).push(t)}else d!==null&&Le<d.length&&(mr(t,Le),d.length=Le);if(jt()&&je!==null&&!et&&d!==null&&(t.f&(Ye|Dt|bt))===0)for(f=0;f<je.length;f++)dl(je[f],t);return o!==null&&o!==t&&(vr++,je!==null&&(r===null?r=je:r.push(...je))),h}catch(c){ju(c)}finally{Ie=e,Le=n,je=r,ve=o,Tt=i,Xe=s,pr(l),et=a,t.f^=bo}}function Xu(t,e){let n=e.reactions;if(n!==null){var r=cu.call(n,t);if(r!==-1){var o=n.length-1;o===0?n=e.reactions=null:(n[r]=n[o],n.pop())}}n===null&&(e.f&Ye)!==0&&(Ie===null||!Ie.includes(e))&&(nt(e,Dt),(e.f&(Be|gr))===0&&(e.f^=gr),js(e),mr(e,0))}function mr(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Xu(t,n[r])}function Mr(t){var e=t.f;if((e&Zo)===0){nt(t,Ue);var n=we,r=zt;we=t,zt=!0;try{(e&Xo)!==0?Uu(t):tl(t),el(t);var o=fl(t);t.teardown=typeof o=="function"?o:null,t.wv=ul;var i;Hi&&Ja&&(t.f&bt)!==0&&t.deps}finally{zt=r,we=n}}}function Yu(){try{Su()}catch(t){if(kn!==null)ll(t,kn);else throw t}}function hl(){var t=zt;try{var e=0;for(zt=!0;En.length>0;){e++>1e3&&Yu();var n=En,r=n.length;En=[];for(var o=0;o<r;o++){var i=Ju(n[o]);Zu(i)}In.clear()}}finally{Nn=!1,zt=t,kn=null}}function Zu(t){var e=t.length;if(e!==0)for(var n=0;n<e;n++){var r=t[n];(r.f&(Zo|vt))===0&&Un(r)&&(Mr(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?rl(r):r.fn=null))}}function ni(t){Nn||(Nn=!0,queueMicrotask(hl));for(var e=kn=t;e.parent!==null;){e=e.parent;var n=e.f;if((n&(Kt|St))!==0){if((n&Ue)===0)return;e.f^=Ue}}En.push(e)}function Ju(t){for(var e=[],n=t;n!==null;){var r=n.f,o=(r&(St|Kt))!==0,i=o&&(r&Ue)!==0;if(!i&&(r&vt)===0){(r&Bs)!==0?e.push(n):o?n.f^=Ue:Un(n)&&Mr(n);var s=n.first;if(s!==null){n=s;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}return e}function gl(t){for(var e;;){if(Ku(),En.length===0)return Nn=!1,kn=null,e;Nn=!0,hl()}}async function pl(){await Promise.resolve(),gl()}function g(t){var e=t.f,n=(e&Ye)!==0;if(ve!==null&&!et){if(!Xe?.[1].includes(t)||Xe[0]!==ve){var r=ve.deps;t.rv<vr&&(t.rv=vr,Ie===null&&r!==null&&r[Le]===t?Le++:Ie===null?Ie=[t]:(!Tt||!Ie.includes(t))&&Ie.push(t))}}else if(n&&t.deps===null&&t.effects===null){var o=t,i=o.parent;i!==null&&(i.f&Be)===0&&(o.f^=Be)}return n&&(o=t,Un(o)&&Xs(o)),fn&&In.has(t)?In.get(t):t.v}function Ce(t){var e=et;try{return et=!0,t()}finally{et=e}}const Qu=-7169;function nt(t,e){t.f=t.f&Qu|e}function en(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(lt in t)_o(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&lt in n&&_o(n)}}}function _o(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{_o(t[r],e)}catch{}const n=Er(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=zs(n);for(let o in r){const i=r[o].get;if(i)try{i.call(t)}catch{}}}}}function $u(t,e){if(e){const n=document.body;t.autofocus=!0,Gn(()=>{document.activeElement===n&&t.focus()})}}let Xi=!1;function ec(){Xi||(Xi=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function vl(t){var e=ve,n=we;Je(null),ct(null);try{return t()}finally{Je(e),ct(n)}}function ml(t,e,n,r=n){t.addEventListener(e,()=>vl(n));const o=t.__on_r;o?t.__on_r=()=>{o(),r(!0)}:t.__on_r=()=>r(!0),ec()}const wl=new Set,So=new Set;function ri(t,e,n,r={}){function o(i){if(r.capture||Pn.call(e,i),!i.cancelBubble)return vl(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Gn(()=>{e.addEventListener(t,o,r)}):e.addEventListener(t,o,r),o}function Se(t,e,n,r={}){var o=ri(e,t,n,r);return()=>{t.removeEventListener(e,o,r)}}function ab(t,e,n,r,o){var i={capture:r,passive:o},s=ri(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Fr(()=>{e.removeEventListener(t,s,i)})}function tc(t){for(var e=0;e<t.length;e++)wl.add(t[e]);for(var n of So)n(t)}function Pn(t){var e=this,n=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],i=o[0]||t.target,s=0,l=t.__root;if(l){var a=o.indexOf(l);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var u=o.indexOf(e);if(u===-1)return;a<=u&&(s=a)}if(i=o[s]||t.target,i!==e){Ls(t,"currentTarget",{configurable:!0,get(){return i||n}});var h=ve,d=we;Je(null),ct(null);try{for(var f,c=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var v=i["__"+r];if(v!=null&&(!i.disabled||t.target===i))if(zn(v)){var[w,...m]=v;w.apply(i,[t,...m])}else v.call(i,t)}catch(y){f?c.push(y):f=y}if(t.cancelBubble||p===e||p===null)break;i=p}if(f){for(let y of c)queueMicrotask(()=>{throw y});throw f}}finally{t.__root=e,delete t.currentTarget,Je(h),ct(d)}}}function oi(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ut(t,e){var n=we;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function ue(t,e){var n=(e&iu)!==0,r=(e&su)!==0,o,i=!t.startsWith("<!>");return()=>{o===void 0&&(o=oi(i?t:"<!>"+t),n||(o=it(o)));var s=r||Zs?document.importNode(o,!0):o.cloneNode(!0);if(n){var l=it(s),a=s.lastChild;Ut(l,a)}else Ut(s,s);return s}}function nc(t,e,n="svg"){var r=!t.startsWith("<!>"),o=`<${n}>${r?t:"<!>"+t}</${n}>`,i;return()=>{if(!i){var s=oi(o),l=it(s);i=it(l)}var a=i.cloneNode(!0);return Ut(a,a),a}}function rc(t,e){return nc(t,e,"svg")}function oc(t=""){{var e=Hn(t+"");return Ut(e,e),e}}function F(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Hn();return t.append(e,n),Ut(e,n),t}function A(t,e){t!==null&&t.before(e)}function ic(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const sc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function lc(t){return sc.includes(t)}const ac={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 uc(t){return t=t.toLowerCase(),ac[t]??t}const cc=["touchstart","touchmove"];function dc(t){return cc.includes(t)}function fc(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function hc(t,e){return gc(t,e)}const Zt=new Map;function gc(t,{target:e,anchor:n,props:r={},events:o,context:i,intro:s=!0}){Vu();var l=new Set,a=d=>{for(var f=0;f<d.length;f++){var c=d[f];if(!l.has(c)){l.add(c);var p=dc(c);e.addEventListener(c,Pn,{passive:p});var v=Zt.get(c);v===void 0?(document.addEventListener(c,Pn,{passive:p}),Zt.set(c,1)):Zt.set(c,v+1)}}};a(qo(wl)),So.add(a);var u=void 0,h=Gu(()=>{var d=n??e.appendChild(Hn());return Ne(()=>{if(i){W({});var f=be;f.c=i}o&&(r.$$events=o),u=t(d,r)||{},i&&K()}),()=>{for(var f of l){e.removeEventListener(f,Pn);var c=Zt.get(f);--c===0?(document.removeEventListener(f,Pn),Zt.delete(f)):Zt.set(f,c)}So.delete(a),d!==n&&d.parentNode?.removeChild(d)}});return Co.set(u,h),u}let Co=new WeakMap;function pc(t,e){const n=Co.get(t);return n?(Co.delete(t),n(e)):Promise.resolve()}function D(t,e,...n){var r=t,o=U,i;ft(()=>{o!==(o=e())&&(i&&(ke(i),i=null),i=Ne(()=>o(r,...n)))},dn)}function bl(t){be===null&&$o(),cn&&be.l!==null?vc(be).m.push(t):ge(()=>{const e=Ce(t);if(typeof e=="function")return e})}function ub(t){be===null&&$o(),bl(()=>()=>Ce(t))}function vc(t){var e=t.l;return e.u??={a:[],b:[],m:[]}}const Zr=0,nr=1,Jr=2;function cb(t,e,n,r,o){var i=t,s=jt(),l=be,a=Ee,u,h,d,f=s?He(void 0):Fn(void 0,!1,!1),c=s?He(void 0):Fn(void 0,!1,!1),p=!1;function v(m,y){p=!0,y&&(ct(w),Je(w),pr(l));try{m===Zr&&n&&(u?Ft(u):u=Ne(()=>n(i))),m===nr&&r&&(h?Ft(h):h=Ne(()=>r(i,f))),m===Jr&&o&&(d?Ft(d):d=Ne(()=>o(i,c))),m!==Zr&&u&&at(u,()=>u=null),m!==nr&&h&&at(h,()=>h=null),m!==Jr&&d&&at(d,()=>d=null)}finally{y&&(pr(null),Je(null),ct(null),gl())}}var w=ft(()=>{if(a!==(a=e())){if(fu(a)){var m=a;p=!1,m.then(y=>{m===a&&(rn(f,y),v(nr,!0))},y=>{if(m===a&&(rn(c,y),v(Jr,!0),!o))throw c.v}),Gn(()=>{p||v(Zr,!0)})}else rn(f,a),v(nr,!1);return()=>a=Ee}})}function Z(t,e,[n,r]=[0,0]){var o=t,i=null,s=null,l=Ee,a=n>0?dn:0,u=!1;const h=(f,c=!0)=>{u=!0,d(c,f)},d=(f,c)=>{l!==(l=f)&&(l?(i?Ft(i):c&&(i=Ne(()=>c(o))),s&&at(s,()=>{s=null})):(s?Ft(s):c&&(s=Ne(()=>c(o,[n+1,r]))),i&&at(i,()=>{i=null})))};ft(()=>{u=!1,e(h),u||d(null,null)},a)}function yl(t,e,n){var r=t,o=Ee,i,s=jt()?wu:Jo;ft(()=>{s(o,o=e())&&(i&&at(i),i=Ne(()=>n(r)))})}function mc(t,e){return e}function wc(t,e,n,r){for(var o=[],i=e.length,s=0;s<i;s++)ti(e[s].e,o,!0);var l=i>0&&o.length===0&&n!==null;if(l){var a=n.parentNode;Lu(a),a.append(n),r.clear(),Et(t,e[0].prev,e[i-1].next)}ol(o,()=>{for(var u=0;u<i;u++){var h=e[u];l||(r.delete(h.k),Et(t,h.prev,h.next)),ke(h.e,!l)}})}function bc(t,e,n,r,o,i=null){var s=t,l={flags:e,items:new Map,first:null},a=(e&Ds)!==0;if(a){var u=t;s=u.appendChild(Hn())}var h=null,d=!1,f=Ze(()=>{var c=n();return zn(c)?c:c==null?[]:qo(c)});ft(()=>{var c=g(f),p=c.length;d&&p===0||(d=p===0,yc(c,l,s,o,e,r,n),i!==null&&(p===0?h?Ft(h):h=Ne(()=>i(s)):h!==null&&at(h,()=>{h=null})),g(f))})}function yc(t,e,n,r,o,i,s){var l=(o&$a)!==0,a=(o&(Ko|jo))!==0,u=t.length,h=e.items,d=e.first,f=d,c,p=null,v,w=[],m=[],y,x,E,T;if(l)for(T=0;T<u;T+=1)y=t[T],x=i(y,T),E=h.get(x),E!==void 0&&(E.a?.measure(),(v??=new Set).add(E));for(T=0;T<u;T+=1){if(y=t[T],x=i(y,T),E=h.get(x),E===void 0){var O=f?f.e.nodes_start:n;p=Sc(O,e,p,p===null?e.first:p.next,y,x,T,r,o,s),h.set(x,p),w=[],m=[],f=p.next;continue}if(a&&_c(E,y,T,o),(E.e.f&vt)!==0&&(Ft(E.e),l&&(E.a?.unfix(),(v??=new Set).delete(E))),E!==f){if(c!==void 0&&c.has(E)){if(w.length<m.length){var C=m[0],R;p=C.prev;var M=w[0],L=w[w.length-1];for(R=0;R<w.length;R+=1)Yi(w[R],C,n);for(R=0;R<m.length;R+=1)c.delete(m[R]);Et(e,M.prev,L.next),Et(e,p,M),Et(e,L,C),f=C,p=L,T-=1,w=[],m=[]}else c.delete(E),Yi(E,f,n),Et(e,E.prev,E.next),Et(e,E,p===null?e.first:p.next),Et(e,p,E),p=E;continue}for(w=[],m=[];f!==null&&f.k!==x;)(f.e.f&vt)===0&&(c??=new Set).add(f),m.push(f),f=f.next;if(f===null)continue;E=f}w.push(E),p=E,f=E.next}if(f!==null||c!==void 0){for(var J=c===void 0?[]:qo(c);f!==null;)(f.e.f&vt)===0&&J.push(f),f=f.next;var j=J.length;if(j>0){var z=(o&Ds)!==0&&u===0?n:null;if(l){for(T=0;T<j;T+=1)J[T].a?.measure();for(T=0;T<j;T+=1)J[T].a?.fix()}wc(e,J,z,h)}}l&&Gn(()=>{if(v!==void 0)for(E of v)E.a?.apply()}),we.first=e.first&&e.first.e,we.last=p&&p.e}function _c(t,e,n,r){(r&Ko)!==0&&rn(t.v,e),(r&jo)!==0?rn(t.i,n):t.i=n}function Sc(t,e,n,r,o,i,s,l,a,u){var h=(a&Ko)!==0,d=(a&eu)===0,f=h?d?Fn(o,!1,!1):He(o):o,c=(a&jo)===0?s:He(s),p={i:c,v:f,k:i,a:null,e:null,prev:n,next:r};try{return p.e=Ne(()=>l(t,f,c,u),Du),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?e.first=p:(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function Yi(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,o=e?e.e.nodes_start:n,i=t.e.nodes_start;i!==r;){var s=Ir(i);o.before(i),i=s}}function Et(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function db(t,e,n=!1,r=!1,o=!1){var i=t,s="";ei(()=>{var l=we;if(s!==(s=e()??"")&&(l.nodes_start!==null&&(nl(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),s!=="")){var a=s+"";n?a=`<svg>${a}</svg>`:r&&(a=`<math>${a}</math>`);var u=oi(a);if((n||r)&&(u=it(u)),Ut(it(u),u.lastChild),n||r)for(;it(u);)i.before(it(u));else i.before(u)}})}function Me(t,e,n,r,o){var i=e.$$slots?.[n],s=!1;i===!0&&(i=e.children,s=!0),i===void 0||i(t,s?()=>r:r)}function _l(t,e,n){var r=t,o,i;ft(()=>{o!==(o=e())&&(i&&(at(i),i=null),o&&(i=Ne(()=>n(r,o))))},dn)}function Cc(t,e,n,r,o,i){var s,l,a=null,u=t,h;ft(()=>{const d=e()||null;var f=n||d==="svg"?au:null;d!==s&&(h&&(d===null?at(h,()=>{h=null,l=null}):d===l?Ft(h):ke(h)),d&&d!==l&&(h=Ne(()=>{if(a=f?document.createElementNS(f,d):document.createElement(d),Ut(a,a),r){var c=a.appendChild(Hn());r(a,c)}we.nodes_end=a,u.before(a)})),s=d,s&&(l=s))},dn)}function xc(t,e){var n=void 0,r;ft(()=>{n!==(n=e())&&(r&&(ke(r),r=null),n&&(r=Ne(()=>{Bn(()=>n(t))})))})}function Sl(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Sl(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function fr(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Sl(t))&&(r&&(r+=" "),r+=e);return r}function Pc(t){return typeof t=="object"?fr(t):t??""}const Zi=[...` 	
\r\f \v\uFEFF`];function Rc(t,e,n){var r=t==null?"":""+t;if(n){for(var o in n)if(n[o])r=r?r+" "+o:o;else if(r.length)for(var i=o.length,s=0;(s=r.indexOf(o,s))>=0;){var l=s+i;(s===0||Zi.includes(r[s-1]))&&(l===r.length||Zi.includes(r[l]))?r=(s===0?"":r.substring(0,s))+r.substring(l+1):s=l}}return r===""?null:r}function Ji(t,e=!1){var n=e?" !important;":";",r="";for(var o in t){var i=t[o];i!=null&&i!==""&&(r+=" "+o+": "+i+n)}return r}function Qr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ac(t,e){if(e){var n="",r,o;if(Array.isArray(e)?(r=e[0],o=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,s=0,l=!1,a=[];r&&a.push(...Object.keys(r).map(Qr)),o&&a.push(...Object.keys(o).map(Qr));var u=0,h=-1;const v=t.length;for(var d=0;d<v;d++){var f=t[d];if(l?f==="/"&&t[d-1]==="*"&&(l=!1):i?i===f&&(i=!1):f==="/"&&t[d+1]==="*"?l=!0:f==='"'||f==="'"?i=f:f==="("?s++:f===")"&&s--,!l&&i===!1&&s===0){if(f===":"&&h===-1)h=d;else if(f===";"||d===v-1){if(h!==-1){var c=Qr(t.substring(u,h).trim());if(!a.includes(c)){f!==";"&&d++;var p=t.substring(u,d).trim();n+=" "+p+";"}}u=d+1,h=-1}}}}return r&&(n+=Ji(r)),o&&(n+=Ji(o,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function Ec(t,e,n,r,o,i){var s=t.__className;if(s!==n||s===void 0){var l=Rc(n,r,i);l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l),t.__className=n}else if(i&&o!==i)for(var a in i){var u=!!i[a];(o==null||u!==!!o[a])&&t.classList.toggle(a,u)}return i}function $r(t,e={},n,r){for(var o in n){var i=n[o];e[o]!==i&&(n[o]==null?t.style.removeProperty(o):t.style.setProperty(o,i,r))}}function Tc(t,e,n,r){var o=t.__style;if(o!==e){var i=Ac(e,r);i==null?t.removeAttribute("style"):t.style.cssText=i,t.__style=e}else r&&(Array.isArray(r)?($r(t,n?.[0],r[0]),$r(t,n?.[1],r[1],"important")):$r(t,n,r));return r}function xo(t,e,n){if(t.multiple){if(e==null)return;if(!zn(e))return ku();for(var r of t.options)r.selected=e.includes(Qi(r));return}for(r of t.options){var o=Qi(r);if(Mu(o,e)){r.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Oc(t){var e=new MutationObserver(()=>{xo(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Fr(()=>{e.disconnect()})}function Qi(t){return"__value"in t?t.__value:t.value}const bn=Symbol("class"),yn=Symbol("style"),Cl=Symbol("is custom element"),xl=Symbol("is html");function Ic(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Po(t,e,n,r){var o=Pl(t);o[e]!==(o[e]=n)&&(e==="loading"&&(t[mu]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Rl(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Fc(t,e,n,r,o=!1){var i=Pl(t),s=i[Cl],l=!i[xl],a=e||{},u=t.tagName==="OPTION";for(var h in e)h in n||(n[h]=null);n.class?n.class=Pc(n.class):n[bn]&&(n.class=null),n[yn]&&(n.style??=null);var d=Rl(t);for(const y in n){let x=n[y];if(u&&y==="value"&&x==null){t.value=t.__value="",a[y]=x;continue}if(y==="class"){var f=t.namespaceURI==="http://www.w3.org/1999/xhtml";Ec(t,f,x,r,e?.[bn],n[bn]),a[y]=x,a[bn]=n[bn];continue}if(y==="style"){Tc(t,x,e?.[yn],n[yn]),a[y]=x,a[yn]=n[yn];continue}var c=a[y];if(!(x===c&&!(x===void 0&&t.hasAttribute(y)))){a[y]=x;var p=y[0]+y[1];if(p!=="$$")if(p==="on"){const E={},T="$$"+y;let O=y.slice(2);var v=lc(O);if(ic(O)&&(O=O.slice(0,-7),E.capture=!0),!v&&c){if(x!=null)continue;t.removeEventListener(O,a[T],E),a[T]=null}if(x!=null)if(v)t[`__${O}`]=x,tc([O]);else{let C=function(R){a[y].call(this,R)};a[T]=ri(O,t,C,E)}else v&&(t[`__${O}`]=void 0)}else if(y==="style")Po(t,y,x);else if(y==="autofocus")$u(t,!!x);else if(!s&&(y==="__value"||y==="value"&&x!=null))t.value=t.__value=x;else if(y==="selected"&&u)Ic(t,x);else{var w=y;l||(w=uc(w));var m=w==="defaultValue"||w==="defaultChecked";if(x==null&&!s&&!m)if(i[y]=null,w==="value"||w==="checked"){let E=t;const T=e===void 0;if(w==="value"){let O=E.defaultValue;E.removeAttribute(w),E.defaultValue=O,E.value=E.__value=T?O:null}else{let O=E.defaultChecked;E.removeAttribute(w),E.defaultChecked=O,E.checked=T?O:!1}}else t.removeAttribute(y);else m||d.includes(w)&&(s||typeof x!="string")?t[w]=x:typeof x!="function"&&Po(t,w,x)}}}return a}function le(t,e,n=[],r,o=!1,i=Ht){const s=n.map(i);var l=void 0,a={},u=t.nodeName==="SELECT",h=!1;if(ft(()=>{var f=e(...s.map(g)),c=Fc(t,l,f,r,o);h&&u&&"value"in f&&xo(t,f.value,!1);for(let v of Object.getOwnPropertySymbols(a))f[v]||ke(a[v]);for(let v of Object.getOwnPropertySymbols(f)){var p=f[v];v.description===uu&&(!l||p!==l[v])&&(a[v]&&ke(a[v]),a[v]=Ne(()=>xc(t,()=>p))),c[v]=p}l=c}),u){var d=t;Bn(()=>{xo(d,l.value),Oc(d)})}h=!0}function Pl(t){return t.__attributes??={[Cl]:t.nodeName.includes("-"),[xl]:t.namespaceURI===lu}}var $i=new Map;function Rl(t){var e=$i.get(t.nodeName);if(e)return e;$i.set(t.nodeName,e=[]);for(var n,r=t,o=Element.prototype;o!==r;){n=zs(r);for(var i in n)n[i].set&&e.push(i);r=Er(r)}return e}function fb(t,e,n=e){var r=jt();ml(t,"input",o=>{var i=o?t.defaultValue:t.value;if(i=eo(t)?to(i):i,n(i),r&&i!==(i=e())){var s=t.selectionStart,l=t.selectionEnd;t.value=i??"",l!==null&&(t.selectionStart=s,t.selectionEnd=Math.min(l,t.value.length))}}),Ce(e)==null&&t.value&&n(eo(t)?to(t.value):t.value),Xt(()=>{var o=e();eo(t)&&o===to(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function eo(t){var e=t.type;return e==="number"||e==="range"}function to(t){return t===""?null:+t}function hb(t,e,n=e){ml(t,"change",()=>{n(t.files)}),Xt(()=>{t.files=e()})}function es(t,e){return t===e||t?.[lt]===e}function gb(t={},e,n,r){return Bn(()=>{var o,i;return Xt(()=>{o=i,i=[],Ce(()=>{t!==n(...i)&&(e(t,...i),o&&es(n(...o),t)&&e(null,...o))})}),()=>{Gn(()=>{i&&es(n(...i),t)&&e(null,...i)})}}),t}function Mc(t=!1){const e=be,n=e.l.u;if(!n)return;let r=()=>en(e.s);if(t){let o=0,i={};const s=Ht(()=>{let l=!1;const a=e.s;for(const u in a)a[u]!==i[u]&&(i[u]=a[u],l=!0);return l&&o++,o});r=()=>g(s)}n.b.length&&Gt(()=>{ts(e,r),On(n.b)}),ge(()=>{const o=Ce(()=>n.m.map(hu));return()=>{for(const i of o)typeof i=="function"&&i()}}),n.a.length&&ge(()=>{ts(e,r),On(n.a)})}function ts(t,e){if(t.l.s)for(const n of t.l.s)g(n);e()}function ii(t,e,n){if(t==null)return e(void 0),n&&n(void 0),U;const r=Ce(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const Jt=[];function Nc(t,e){return{subscribe:kc(t,e).subscribe}}function kc(t,e=U){let n=null;const r=new Set;function o(l){if(Jo(t,l)&&(t=l,n)){const a=!Jt.length;for(const u of r)u[1](),Jt.push(u,t);if(a){for(let u=0;u<Jt.length;u+=2)Jt[u][0](Jt[u+1]);Jt.length=0}}}function i(l){o(l(t))}function s(l,a=U){const u=[l,a];return r.add(u),r.size===1&&(n=e(o,i)||U),l(t),()=>{r.delete(u),r.size===0&&n&&(n(),n=null)}}return{set:o,update:i,subscribe:s}}function pb(t,e,n){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=e.length<2;return Nc(n,(s,l)=>{let a=!1;const u=[];let h=0,d=U;const f=()=>{if(h)return;d();const p=e(r?u[0]:u,s,l);i?s(p):d=typeof p=="function"?p:U},c=o.map((p,v)=>ii(p,w=>{u[v]=w,h&=~(1<<v),a&&f()},()=>{h|=1<<v}));return a=!0,f(),function(){On(c),d(),a=!1}})}function Dc(t){let e;return ii(t,n=>e=n)(),e}let Rn=!1,Ro=Symbol();function vb(t,e,n){const r=n[e]??={store:null,source:Fn(void 0),unsubscribe:U};if(r.store!==t&&!(Ro in n))if(r.unsubscribe(),r.store=t??null,t==null)r.source.v=void 0,r.unsubscribe=U;else{var o=!0;r.unsubscribe=ii(t,i=>{o?r.source.v=i:S(r.source,i)}),o=!1}return t&&Ro in n?Dc(t):g(r.source)}function mb(t,e){return t.set(e),e}function wb(){const t={};function e(){Fr(()=>{for(var n in t)t[n].unsubscribe();Ls(t,Ro,{enumerable:!1,value:!0})})}return[t,e]}function bb(){Rn=!0}function Vc(t){var e=Rn;try{return Rn=!1,[t(),Rn]}finally{Rn=e}}const Lc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ie(t,e,n){return new Proxy({props:t,exclude:e},Lc)}const zc={get(t,e){if(!t.exclude.includes(e))return g(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,n){return e in t.special||(t.special[e]=b({get[e](){return t.props[e]}},e,Vs)),t.special[e](n),Ki(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),Ki(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Oe(t,e){return new Proxy({props:t,exclude:e,special:{},version:He(0)},zc)}const Hc={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(wn(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let o=t.props[r];wn(o)&&(o=o());const i=It(o,e);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(wn(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const o=It(r,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===lt||e===Ws)return!1;for(let n of t.props)if(wn(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(wn(n)&&(n=n()),!!n){for(const r in n)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(n))e.includes(r)||e.push(r)}return e}};function ae(...t){return new Proxy({props:t},Hc)}function ns(t){return t.ctx?.d??!1}function b(t,e,n,r){var o=(n&tu)!==0,i=!cn||(n&nu)!==0,s=(n&ru)!==0,l=(n&ou)!==0,a=!1,u;s?[u,a]=Vc(()=>t[e]):u=t[e];var h=lt in t||Ws in t,d=s&&(It(t,e)?.set??(h&&e in t&&(O=>t[e]=O)))||void 0,f=r,c=!0,p=!1,v=()=>(p=!0,c&&(c=!1,l?f=Ce(r):f=r),f);u===void 0&&r!==void 0&&(d&&i&&Cu(),u=v(),d&&d(u));var w;if(i)w=()=>{var O=t[e];return O===void 0?v():(c=!0,p=!1,O)};else{var m=(o?Ht:Ze)(()=>t[e]);m.f|=pu,w=()=>{var O=g(m);return O!==void 0&&(f=void 0),O===void 0?f:O}}if((n&Vs)===0&&i)return w;if(d){var y=t.$$legacy;return function(O,C){return arguments.length>0?((!i||!C||y||a)&&d(C?w():O),O):w()}}var x=!1,E=Fn(u),T=Ht(()=>{var O=w(),C=g(E);return x?(x=!1,C):E.v=O});return s&&g(T),o||(T.equals=Qo),function(O,C){if(arguments.length>0){const R=C?g(T):i&&s?Fe(O):O;if(!T.equals(R)){if(x=!0,S(E,R),p&&f!==void 0&&(f=R),ns(T))return O;Ce(()=>g(T))}return O}return ns(T)?T.v:g(T)}}function tn(t){S(t,t.v+1)}function Bc(t){let e=0,n=He(0),r;return()=>{Hu()&&(g(n),Xt(()=>(e===0&&(r=Ce(()=>t(()=>tn(n)))),e+=1,()=>{pl().then(()=>{e-=1,e===0&&(r?.(),r=void 0)})})))}}const si="-",Gc=t=>{const e=Wc(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:s=>{const l=s.split(si);return l[0]===""&&l.length!==1&&l.shift(),Al(l,e)||Uc(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Al=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),o=r?Al(t.slice(1),r):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(si);return e.validators.find(({validator:s})=>s(i))?.classGroupId},rs=/^\[(.+)\]$/,Uc=t=>{if(rs.test(t)){const e=rs.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Wc=t=>{const{theme:e,classGroups:n}=t,r={nextPart:new Map,validators:[]};for(const o in n)Ao(n[o],r,o,e);return r},Ao=(t,e,n,r)=>{t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:os(e,o);i.classGroupId=n;return}if(typeof o=="function"){if(Kc(o)){Ao(o(r),e,n,r);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Ao(s,os(e,i),n,r)})})},os=(t,e)=>{let n=t;return e.split(si).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Kc=t=>t.isThemeGetter,jc=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Eo="!",To=":",qc=To.length,Xc=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const i=[];let s=0,l=0,a=0,u;for(let p=0;p<o.length;p++){let v=o[p];if(s===0&&l===0){if(v===To){i.push(o.slice(a,p)),a=p+qc;continue}if(v==="/"){u=p;continue}}v==="["?s++:v==="]"?s--:v==="("?l++:v===")"&&l--}const h=i.length===0?o:o.substring(a),d=Yc(h),f=d!==h,c=u&&u>a?u-a:void 0;return{modifiers:i,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:c}};if(e){const o=e+To,i=r;r=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Yc=t=>t.endsWith(Eo)?t.substring(0,t.length-1):t.startsWith(Eo)?t.substring(1):t,Zc=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let i=[];return r.forEach(s=>{s[0]==="["||e[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Jc=t=>({cache:jc(t.cacheSize),parseClassName:Xc(t),sortModifiers:Zc(t),...Gc(t)}),Qc=/\s+/,$c=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=e,s=[],l=t.trim().split(Qc);let a="";for(let u=l.length-1;u>=0;u-=1){const h=l[u],{isExternal:d,modifiers:f,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:v}=n(h);if(d){a=h+(a.length>0?" "+a:a);continue}let w=!!v,m=r(w?p.substring(0,v):p);if(!m){if(!w){a=h+(a.length>0?" "+a:a);continue}if(m=r(p),!m){a=h+(a.length>0?" "+a:a);continue}w=!1}const y=i(f).join(":"),x=c?y+Eo:y,E=x+m;if(s.includes(E))continue;s.push(E);const T=o(m,w);for(let O=0;O<T.length;++O){const C=T[O];s.push(x+C)}a=h+(a.length>0?" "+a:a)}return a};function ed(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=El(e))&&(r&&(r+=" "),r+=n);return r}const El=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=El(t[r]))&&(n&&(n+=" "),n+=e);return n};function td(t,...e){let n,r,o,i=s;function s(a){const u=e.reduce((h,d)=>d(h),t());return n=Jc(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const h=$c(a,n);return o(a,h),h}return function(){return i(ed.apply(null,arguments))}}const Re=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},Tl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ol=/^\((?:(\w[\w-]*):)?(.+)\)$/i,nd=/^\d+\/\d+$/,rd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,od=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,id=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,sd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ld=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qt=t=>nd.test(t),de=t=>!!t&&!Number.isNaN(Number(t)),Pt=t=>!!t&&Number.isInteger(Number(t)),no=t=>t.endsWith("%")&&de(t.slice(0,-1)),gt=t=>rd.test(t),ad=()=>!0,ud=t=>od.test(t)&&!id.test(t),Il=()=>!1,cd=t=>sd.test(t),dd=t=>ld.test(t),fd=t=>!B(t)&&!G(t),hd=t=>hn(t,Nl,Il),B=t=>Tl.test(t),Lt=t=>hn(t,kl,ud),ro=t=>hn(t,wd,de),is=t=>hn(t,Fl,Il),gd=t=>hn(t,Ml,dd),rr=t=>hn(t,Dl,cd),G=t=>Ol.test(t),_n=t=>gn(t,kl),pd=t=>gn(t,bd),ss=t=>gn(t,Fl),vd=t=>gn(t,Nl),md=t=>gn(t,Ml),or=t=>gn(t,Dl,!0),hn=(t,e,n)=>{const r=Tl.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},gn=(t,e,n=!1)=>{const r=Ol.exec(t);return r?r[1]?e(r[1]):n:!1},Fl=t=>t==="position"||t==="percentage",Ml=t=>t==="image"||t==="url",Nl=t=>t==="length"||t==="size"||t==="bg-size",kl=t=>t==="length",wd=t=>t==="number",bd=t=>t==="family-name",Dl=t=>t==="shadow",yd=()=>{const t=Re("color"),e=Re("font"),n=Re("text"),r=Re("font-weight"),o=Re("tracking"),i=Re("leading"),s=Re("breakpoint"),l=Re("container"),a=Re("spacing"),u=Re("radius"),h=Re("shadow"),d=Re("inset-shadow"),f=Re("text-shadow"),c=Re("drop-shadow"),p=Re("blur"),v=Re("perspective"),w=Re("aspect"),m=Re("ease"),y=Re("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),G,B],O=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],R=()=>[G,B,a],M=()=>[Qt,"full","auto",...R()],L=()=>[Pt,"none","subgrid",G,B],J=()=>["auto",{span:["full",Pt,G,B]},Pt,G,B],j=()=>[Pt,"auto",G,B],z=()=>["auto","min","max","fr",G,B],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...R()],ne=()=>[Qt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],k=()=>[t,G,B],he=()=>[...E(),ss,is,{position:[G,B]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],H=()=>["auto","cover","contain",vd,hd,{size:[G,B]}],Q=()=>[no,_n,Lt],q=()=>["","none","full",u,G,B],Y=()=>["",de,_n,Lt],me=()=>["solid","dashed","dotted","double"],Ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[de,no,ss,is],Pe=()=>["","none",p,G,B],Qe=()=>["none",de,G,B],Ve=()=>["none",de,G,B],mn=()=>[de,G,B],Yt=()=>[Qt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gt],breakpoint:[gt],color:[ad],container:[gt],"drop-shadow":[gt],ease:["in","out","in-out"],font:[fd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gt],shadow:[gt],spacing:["px",de],text:[gt],"text-shadow":[gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qt,B,G,w]}],container:["container"],columns:[{columns:[de,B,G,l]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Pt,"auto",G,B]}],basis:[{basis:[Qt,"full","auto",l,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[de,Qt,"auto","initial","none",B]}],grow:[{grow:["",de,G,B]}],shrink:[{shrink:["",de,G,B]}],order:[{order:[Pt,"first","last","none",G,B]}],"grid-cols":[{"grid-cols":L()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":L()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[l,"screen",...ne()]}],"min-w":[{"min-w":[l,"screen","none",...ne()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",n,_n,Lt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,G,ro]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",no,B]}],"font-family":[{font:[pd,B,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,B]}],"line-clamp":[{"line-clamp":[de,"none",G,ro]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",G,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[de,"from-font","auto",G,Lt]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[de,"auto",G,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,B]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:H()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Pt,G,B],radial:["",G,B],conic:[Pt,G,B]},md,gd]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:q()}],"rounded-s":[{"rounded-s":q()}],"rounded-e":[{"rounded-e":q()}],"rounded-t":[{"rounded-t":q()}],"rounded-r":[{"rounded-r":q()}],"rounded-b":[{"rounded-b":q()}],"rounded-l":[{"rounded-l":q()}],"rounded-ss":[{"rounded-ss":q()}],"rounded-se":[{"rounded-se":q()}],"rounded-ee":[{"rounded-ee":q()}],"rounded-es":[{"rounded-es":q()}],"rounded-tl":[{"rounded-tl":q()}],"rounded-tr":[{"rounded-tr":q()}],"rounded-br":[{"rounded-br":q()}],"rounded-bl":[{"rounded-bl":q()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[de,G,B]}],"outline-w":[{outline:["",de,_n,Lt]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",h,or,rr]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",d,or,rr]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[de,Lt]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",f,or,rr]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[de,G,B]}],"mix-blend":[{"mix-blend":[...Ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[de]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[G,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[de]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:H()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,B]}],filter:[{filter:["","none",G,B]}],blur:[{blur:Pe()}],brightness:[{brightness:[de,G,B]}],contrast:[{contrast:[de,G,B]}],"drop-shadow":[{"drop-shadow":["","none",c,or,rr]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",de,G,B]}],"hue-rotate":[{"hue-rotate":[de,G,B]}],invert:[{invert:["",de,G,B]}],saturate:[{saturate:[de,G,B]}],sepia:[{sepia:["",de,G,B]}],"backdrop-filter":[{"backdrop-filter":["","none",G,B]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[de,G,B]}],"backdrop-contrast":[{"backdrop-contrast":[de,G,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",de,G,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[de,G,B]}],"backdrop-invert":[{"backdrop-invert":["",de,G,B]}],"backdrop-opacity":[{"backdrop-opacity":[de,G,B]}],"backdrop-saturate":[{"backdrop-saturate":[de,G,B]}],"backdrop-sepia":[{"backdrop-sepia":["",de,G,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[de,"initial",G,B]}],ease:[{ease:["linear","initial",m,G,B]}],delay:[{delay:[de,G,B]}],animate:[{animate:["none",y,G,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,G,B]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Qe()}],"rotate-x":[{"rotate-x":Qe()}],"rotate-y":[{"rotate-y":Qe()}],"rotate-z":[{"rotate-z":Qe()}],scale:[{scale:Ve()}],"scale-x":[{"scale-x":Ve()}],"scale-y":[{"scale-y":Ve()}],"scale-z":[{"scale-z":Ve()}],"scale-3d":["scale-3d"],skew:[{skew:mn()}],"skew-x":[{"skew-x":mn()}],"skew-y":[{"skew-y":mn()}],transform:[{transform:[G,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Yt()}],"translate-x":[{"translate-x":Yt()}],"translate-y":[{"translate-y":Yt()}],"translate-z":[{"translate-z":Yt()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,B]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,B]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[de,_n,Lt,ro]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},yb=td(yd);function _d(t){return typeof t=="function"}function Sd(t){return t!==null&&typeof t=="object"}const Cd=["string","number","bigint","boolean"];function Oo(t){return t==null||Cd.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>Oo(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Dn=Symbol("box"),li=Symbol("is-writable");function xd(t){return Sd(t)&&Dn in t}function Pd(t){return _.isBox(t)&&li in t}function _(t){let e=N(Fe(t));return{[Dn]:!0,[li]:!0,get current(){return g(e)},set current(n){S(e,n,!0)}}}function Rd(t,e){const n=P(t);return e?{[Dn]:!0,[li]:!0,get current(){return g(n)},set current(r){e(r)}}:{[Dn]:!0,get current(){return t()}}}function Ad(t){return _.isBox(t)?t:_d(t)?_.with(t):_(t)}function Ed(t){return Object.entries(t).reduce((e,[n,r])=>_.isBox(r)?(_.isWritableBox(r)?Object.defineProperty(e,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(e,n,{get(){return r.current}}),e):Object.assign(e,{[n]:r}),{})}function Td(t){return _.isWritableBox(t)?{[Dn]:!0,get current(){return t.current}}:t}_.from=Ad;_.with=Rd;_.flatten=Ed;_.readonly=Td;_.isBox=xd;_.isWritableBox=Pd;function Vl(...t){return function(e){for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):n.current?.call(this,e)}}}var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ll(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $t={},oo,as;function Od(){if(as)return oo;as=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,a=`
`,u="/",h="*",d="",f="comment",c="declaration";oo=function(v,w){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];w=w||{};var m=1,y=1;function x(z){var V=z.match(e);V&&(m+=V.length);var X=z.lastIndexOf(a);y=~X?z.length-X:y+z.length}function E(){var z={line:m,column:y};return function(V){return V.position=new T(z),R(),V}}function T(z){this.start=z,this.end={line:m,column:y},this.source=w.source}T.prototype.content=v;function O(z){var V=new Error(w.source+":"+m+":"+y+": "+z);if(V.reason=z,V.filename=w.source,V.line=m,V.column=y,V.source=v,!w.silent)throw V}function C(z){var V=z.exec(v);if(V){var X=V[0];return x(X),v=v.slice(X.length),V}}function R(){C(n)}function M(z){var V;for(z=z||[];V=L();)V!==!1&&z.push(V);return z}function L(){var z=E();if(!(u!=v.charAt(0)||h!=v.charAt(1))){for(var V=2;d!=v.charAt(V)&&(h!=v.charAt(V)||u!=v.charAt(V+1));)++V;if(V+=2,d===v.charAt(V-1))return O("End of comment missing");var X=v.slice(2,V-2);return y+=2,x(X),v=v.slice(V),y+=2,z({type:f,comment:X})}}function J(){var z=E(),V=C(r);if(V){if(L(),!C(o))return O("property missing ':'");var X=C(i),re=z({type:c,property:p(V[0].replace(t,d)),value:X?p(X[0].replace(t,d)):d});return C(s),re}}function j(){var z=[];M(z);for(var V;V=J();)V!==!1&&(z.push(V),M(z));return z}return R(),j()};function p(v){return v?v.replace(l,d):d}return oo}var us;function Id(){if(us)return $t;us=1;var t=$t&&$t.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($t,"__esModule",{value:!0}),$t.default=n;var e=t(Od());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var s=(0,e.default)(r),l=typeof o=="function";return s.forEach(function(a){if(a.type==="declaration"){var u=a.property,h=a.value;l?o(u,h,a):h&&(i=i||{},i[u]=h)}}),i}return $t}var Fd=Id();const cs=Ll(Fd),Md=cs.default||cs,Nd=/\d/,kd=["-","_","/","."];function Dd(t=""){if(!Nd.test(t))return t!==t.toLowerCase()}function Vd(t){const e=[];let n="",r,o;for(const i of t){const s=kd.includes(i);if(s===!0){e.push(n),n="",r=void 0;continue}const l=Dd(i);if(o===!1){if(r===!1&&l===!0){e.push(n),n=i,r=l;continue}if(r===!0&&l===!1&&n.length>1){const a=n.at(-1);e.push(n.slice(0,Math.max(0,n.length-1))),n=a+i,r=l;continue}}n+=i,r=l,o=s}return e.push(n),e}function zl(t){return t?Vd(t).map(e=>zd(e)).join(""):""}function Ld(t){return Hd(zl(t||""))}function zd(t){return t?t[0].toUpperCase()+t.slice(1):""}function Hd(t){return t?t[0].toLowerCase()+t.slice(1):""}function An(t){if(!t)return{};const e={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){e[zl(r)]=o;return}if(r.startsWith("--")){e[r]=o;return}e[Ld(r)]=o}return Md(t,n),e}function mt(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}function Bd(t,e){const n=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,e):r}}const Gd=Bd(/[A-Z]/,t=>`-${t.toLowerCase()}`);function Ud(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${Gd(e)}: ${t[e]};`).join(`
`)}function ai(t={}){return Ud(t).replace(`
`," ")}const Hl={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%)"};ai(Hl);function Wd(t){return t.length>2&&t.startsWith("on")&&t[2]===t[2]?.toLowerCase()}function $(...t){const e={...t[0]};for(let n=1;n<t.length;n++){const r=t[n];for(const o in r){const i=e[o],s=r[o],l=typeof i=="function",a=typeof s=="function";if(l&&Wd(o)){const u=i,h=s;e[o]=Vl(u,h)}else if(l&&a)e[o]=mt(i,s);else if(o==="class"){const u=Oo(i),h=Oo(s);u&&h?e[o]=fr(i,s):u?e[o]=fr(i):h&&(e[o]=fr(s))}else if(o==="style"){const u=typeof i=="object",h=typeof s=="object",d=typeof i=="string",f=typeof s=="string";if(u&&h)e[o]={...i,...s};else if(u&&f){const c=An(s);e[o]={...i,...c}}else if(d&&h){const c=An(i);e[o]={...c,...s}}else if(d&&f){const c=An(i),p=An(s);e[o]={...c,...p}}else u?e[o]=i:h?e[o]=s:d?e[o]=i:f&&(e[o]=s)}else e[o]=s!==void 0?s:i}}return typeof e.style=="object"&&(e.style=ai(e.style).replaceAll(`
`," ")),e.hidden!==!0&&(e.hidden=void 0,delete e.hidden),e.disabled!==!0&&(e.disabled=void 0,delete e.disabled),e}const Bl=typeof window<"u"?window:void 0;function Kd(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}class Io extends Map{#e=new Map;#t=N(0);#n=N(0);constructor(e){if(super(),e){for(var[n,r]of e)super.set(n,r);this.#n.v=super.size}}has(e){var n=this.#e,r=n.get(e);if(r===void 0){var o=super.get(e);if(o!==void 0)r=He(0),n.set(e,r);else return g(this.#t),!1}return g(r),!0}forEach(e,n){this.#r(),super.forEach(e,n)}get(e){var n=this.#e,r=n.get(e);if(r===void 0){var o=super.get(e);if(o!==void 0)r=He(0),n.set(e,r);else{g(this.#t);return}}return g(r),super.get(e)}set(e,n){var r=this.#e,o=r.get(e),i=super.get(e),s=super.set(e,n),l=this.#t;if(o===void 0)o=He(0),r.set(e,o),S(this.#n,super.size),tn(l);else if(i!==n){tn(o);var a=l.reactions===null?null:new Set(l.reactions),u=a===null||!o.reactions?.every(h=>a.has(h));u&&tn(l)}return s}delete(e){var n=this.#e,r=n.get(e),o=super.delete(e);return r!==void 0&&(n.delete(e),S(this.#n,super.size),S(r,-1),tn(this.#t)),o}clear(){if(super.size!==0){super.clear();var e=this.#e;S(this.#n,0);for(var n of e.values())S(n,-1);tn(this.#t),e.clear()}}#r(){g(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var n of super.keys())if(!e.has(n)){var r=He(0);e.set(n,r)}}for([,r]of this.#e)g(r)}keys(){return g(this.#t),super.keys()}values(){return this.#r(),super.values()}entries(){return this.#r(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return g(this.#n),super.size}}class jd{#e;#t;constructor(e={}){const{window:n=Bl,document:r=n?.document}=e;n!==void 0&&(this.#e=r,this.#t=Bc(o=>{const i=Se(n,"focusin",o),s=Se(n,"focusout",o);return()=>{i(),s()}}))}get current(){return this.#t?.(),this.#e?Kd(this.#e):null}}new jd;function qd(t){return typeof t=="function"}function Nr(t,e=250){let n=N(null);function r(...o){if(g(n))g(n).timeout&&clearTimeout(g(n).timeout);else{let i,s;const l=new Promise((a,u)=>{i=a,s=u});S(n,{timeout:null,runner:null,promise:l,resolve:i,reject:s},!0)}return g(n).runner=async()=>{if(!g(n))return;const i=g(n);S(n,null);try{i.resolve(await t.apply(this,o))}catch(s){i.reject(s)}},g(n).timeout=setTimeout(g(n).runner,typeof e=="function"?e():e),g(n).promise}return r.cancel=async()=>{(!g(n)||g(n).timeout===null)&&(await new Promise(o=>setTimeout(o,0)),!g(n)||g(n).timeout===null)||(clearTimeout(g(n).timeout),g(n).reject("Cancelled"),S(n,null))},r.runScheduledNow=async()=>{(!g(n)||!g(n).timeout)&&(await new Promise(o=>setTimeout(o,0)),!g(n)||!g(n).timeout)||(clearTimeout(g(n).timeout),g(n).timeout=null,await g(n).runner?.())},Object.defineProperty(r,"pending",{enumerable:!0,get(){return!!g(n)?.timeout}}),r}function Xd(t,e){switch(t){case"post":ge(e);break;case"pre":Gt(e);break}}function Gl(t,e,n,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(t)?[]:void 0;Xd(e,()=>{const l=Array.isArray(t)?t.map(u=>u()):t();if(!i){i=!0,s=l;return}const a=Ce(()=>n(l,s));return s=l,a})}function ye(t,e,n){Gl(t,"post",e,n)}function Yd(t,e,n){Gl(t,"pre",e,n)}ye.pre=Yd;function Zd(t){return qd(t)?t():t}class Jd{#e=N(Fe({width:0,height:0}));constructor(e,n={box:"border-box"}){const r=n.window??Bl;S(this.#e,{width:n.initialSize?.width??0,height:n.initialSize?.height??0},!0),ge(()=>{if(!r)return;const o=Zd(e);if(!o)return;const i=new r.ResizeObserver(s=>{for(const l of s){const a=n.box==="content-box"?l.contentBoxSize:l.borderBoxSize,u=Array.isArray(a)?a:[a];g(this.#e).width=u.reduce((h,d)=>Math.max(h,d.inlineSize),0),g(this.#e).height=u.reduce((h,d)=>Math.max(h,d.blockSize),0)}});return i.observe(o),()=>{i.disconnect()}})}get current(){return g(this.#e)}get width(){return g(this.#e).width}get height(){return g(this.#e).height}}class ui{#e=N(!1);constructor(){ge(()=>(Ce(()=>S(this.#e,!0)),()=>{S(this.#e,!1)}))}get current(){return g(this.#e)}}class Qd{#e=N(void 0);#t;constructor(e){ge(()=>{S(this.#e,this.#t,!0),this.#t=e()})}get current(){return g(this.#e)}}let Ae=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return Ou(this.#t)}get(){const e=Ui(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const n=Ui(this.#t);return n===void 0?e:n}set(e){return Tu(this.#t,e)}};function kr(t){ge(()=>()=>{t()})}function ce({id:t,ref:e,deps:n=()=>!0,onRefChange:r,getRootNode:o}){ye([()=>t.current,n],([i])=>{const l=(o?.()??document)?.getElementById(i);l?e.current=l:e.current=null,r?.(e.current)}),kr(()=>{e.current=null,r?.(null)})}function Dr(t,e){return setTimeout(e,t)}function $e(t){pl().then(t)}function Ul(t){ge(()=>Ce(()=>t()))}function Ct(t){return t?"open":"closed"}function Wl(t){return t?"true":"false"}function ci(t){return t?"true":"false"}function xt(t){return t?"":void 0}function Kl(t){return t?"true":"false"}function $d(t){return t?"true":void 0}function ef(t){return t?"":void 0}function tf(t){return t?!0:void 0}function nf(t){return t?!0:void 0}const wr="ArrowDown",di="ArrowLeft",fi="ArrowRight",br="ArrowUp",jl="End",Vr="Enter",rf="Escape",ql="Home",hi=" ",of="Tab",sf="p",lf="n",af="j",uf="k";function cf(t){return window.getComputedStyle(t).getPropertyValue("direction")}function df(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?di:fi,vertical:wr}[e]}function ff(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?fi:di,vertical:br}[e]}function hf(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:df(t,e),prevKey:ff(t,e)}}const Wn=typeof document<"u",ds=gf();function gf(){return Wn&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function yr(t){return t instanceof HTMLElement}function Kn(t){return t instanceof Element}function Fo(t){return t.pointerType==="touch"}function Xl(t){return t.matches(":focus-visible")}function pf(t){return t!==null}function vf(t){return t instanceof HTMLInputElement&&"select"in t}function mf(t,e){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Yl(t){const e=_(null);function n(){if(!Wn)return[];const s=document.getElementById(t.rootNodeId.current);return s?t.candidateSelector?Array.from(s.querySelectorAll(t.candidateSelector)):t.candidateAttr?Array.from(s.querySelectorAll(`[${t.candidateAttr}]:not([data-disabled])`)):[]:[]}function r(){const s=n();s.length&&s[0]?.focus()}function o(s,l,a=!1){const u=document.getElementById(t.rootNodeId.current);if(!u||!s)return;const h=n();if(!h.length)return;const d=h.indexOf(s),f=cf(u),{nextKey:c,prevKey:p}=hf(f,t.orientation.current),v=t.loop.current,w={[c]:d+1,[p]:d-1,[ql]:0,[jl]:h.length-1};if(a){const x=c===wr?fi:wr,E=p===br?di:br;w[x]=d+1,w[E]=d-1}let m=w[l.key];if(m===void 0)return;l.preventDefault(),m<0&&v?m=h.length-1:m===h.length&&v&&(m=0);const y=h[m];if(y)return y.focus(),e.current=y.id,t.onCandidateFocus?.(y),y}function i(s){const l=n(),a=e.current!==null;return s&&!a&&l[0]===s?(e.current=s.id,0):s?.id===e.current?0:-1}return{setCurrentTabStopId(s){e.current=s},getTabIndex:i,handleKeydown:o,focusFirstCandidate:r,currentTabStopId:e}}const wf="data-accordion-root",Zl="data-accordion-trigger",bf="data-accordion-content",yf="data-accordion-item",_f="data-accordion-header";class Jl{opts;rovingFocusGroup;constructor(e){this.opts=e,ce(this.opts),this.rovingFocusGroup=Yl({rootNodeId:this.opts.id,candidateAttr:Zl,loop:this.opts.loop,orientation:this.opts.orientation})}#e=P(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,"data-disabled":xt(this.opts.disabled.current),[wf]:""}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Sf extends Jl{opts;isMulti=!1;constructor(e){super(e),this.opts=e,this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(e){return this.opts.value.current===e}toggleItem(e){this.opts.value.current=this.includesItem(e)?"":e}}class Cf extends Jl{#e;isMulti=!0;constructor(e){super(e),this.#e=e.value,this.includesItem=this.includesItem.bind(this),this.toggleItem=this.toggleItem.bind(this)}includesItem(e){return this.#e.current.includes(e)}toggleItem(e){this.includesItem(e)?this.#e.current=this.#e.current.filter(n=>n!==e):this.#e.current=[...this.#e.current,e]}}class xf{opts;root;#e=P(()=>this.root.includesItem(this.opts.value.current));get isActive(){return g(this.#e)}set isActive(e){S(this.#e,e)}#t=P(()=>this.opts.disabled.current||this.root.opts.disabled.current);get isDisabled(){return g(this.#t)}set isDisabled(e){S(this.#t,e)}constructor(e){this.opts=e,this.root=e.rootState,this.updateValue=this.updateValue.bind(this),ce({...e,deps:()=>this.isActive})}updateValue(){this.root.toggleItem(this.opts.value.current)}#n=P(()=>({id:this.opts.id.current,"data-state":Ct(this.isActive),"data-disabled":xt(this.isDisabled),"data-orientation":this.root.opts.orientation.current,[yf]:""}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}class Pf{opts;itemState;#e;#t=P(()=>this.opts.disabled.current||this.itemState.opts.disabled.current||this.#e.opts.disabled.current);constructor(e,n){this.opts=e,this.itemState=n,this.#e=n.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),ce(e)}onclick(e){if(!g(this.#t)){if(e.button!==0)return e.preventDefault();this.itemState.updateValue()}}onkeydown(e){if(!g(this.#t)){if(e.key===hi||e.key===Vr){e.preventDefault(),this.itemState.updateValue();return}this.#e.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#n=P(()=>({id:this.opts.id.current,disabled:g(this.#t),"aria-expanded":ci(this.itemState.isActive),"aria-disabled":Wl(g(this.#t)),"data-disabled":xt(g(this.#t)),"data-state":Ct(this.itemState.isActive),"data-orientation":this.#e.opts.orientation.current,[Zl]:"",tabindex:0,onclick:this.onclick,onkeydown:this.onkeydown}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}class Rf{opts;item;#e=void 0;#t=!1;#n=N(0);#r=N(0);#o=P(()=>this.opts.forceMount.current||this.item.isActive);get present(){return g(this.#o)}set present(e){S(this.#o,e)}constructor(e,n){this.opts=e,this.item=n,this.#t=this.item.isActive,ce(e),Gt(()=>{const r=requestAnimationFrame(()=>{this.#t=!1});return()=>{cancelAnimationFrame(r)}}),ye([()=>this.present,()=>this.opts.ref.current],([r,o])=>{o&&$e(()=>{if(!this.opts.ref.current)return;this.#e=this.#e||{transitionDuration:o.style.transitionDuration,animationName:o.style.animationName},o.style.transitionDuration="0s",o.style.animationName="none";const i=o.getBoundingClientRect();if(S(this.#r,i.height,!0),S(this.#n,i.width,!0),!this.#t){const{animationName:s,transitionDuration:l}=this.#e;o.style.transitionDuration=l,o.style.animationName=s}})})}#i=P(()=>({open:this.item.isActive}));get snippetProps(){return g(this.#i)}set snippetProps(e){S(this.#i,e)}#l=P(()=>({id:this.opts.id.current,"data-state":Ct(this.item.isActive),"data-disabled":xt(this.item.isDisabled),"data-orientation":this.item.root.opts.orientation.current,[bf]:"",style:{"--bits-accordion-content-height":`${g(this.#r)}px`,"--bits-accordion-content-width":`${g(this.#n)}px`}}));get props(){return g(this.#l)}set props(e){S(this.#l,e)}}class Af{opts;item;constructor(e,n){this.opts=e,this.item=n,ce(e)}#e=P(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,"data-heading-level":this.opts.level.current,"data-state":Ct(this.item.isActive),"data-orientation":this.item.root.opts.orientation.current,[_f]:""}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}const Ql=new Ae("Accordion.Root"),Lr=new Ae("Accordion.Item");function Ef(t){const{type:e,...n}=t,r=e==="single"?new Sf(n):new Cf(n);return Ql.set(r)}function Tf(t){const e=Ql.get();return Lr.set(new xf({...t,rootState:e}))}function Of(t){return new Pf(t,Lr.get())}function If(t){return new Rf(t,Lr.get())}function Ff(t){return new Af(t,Lr.get())}globalThis.bitsIdCounter??={current:0};function fe(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}function pe(){}var Mf=ue("<div><!></div>");function Sb(t,e){W(e,!0);let n=b(e,"disabled",3,!1),r=b(e,"value",15),o=b(e,"ref",15,null),i=b(e,"id",19,fe),s=b(e,"onValueChange",3,pe),l=b(e,"loop",3,!0),a=b(e,"orientation",3,"vertical"),u=ie(e,["$$slots","$$events","$$legacy","disabled","children","child","type","value","ref","id","onValueChange","loop","orientation"]);function h(){r()===void 0&&r(e.type==="single"?"":[])}h(),ye.pre(()=>r(),()=>{h()});const d=Ef({type:e.type,value:_.with(()=>r(),m=>{r(m),s()(m)}),id:_.with(()=>i()),disabled:_.with(()=>n()),loop:_.with(()=>l()),orientation:_.with(()=>a()),ref:_.with(()=>o(),m=>o(m))}),f=P(()=>$(u,d.props));var c=F(),p=I(c);{var v=m=>{var y=F(),x=I(y);D(x,()=>e.child,()=>({props:g(f)})),A(m,y)},w=m=>{var y=Mf();le(y,()=>({...g(f)}));var x=oe(y);D(x,()=>e.children??U),A(m,y)};Z(p,m=>{e.child?m(v):m(w,!1)})}A(t,c),K()}var Nf=ue("<div><!></div>");function Cb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"disabled",3,!1),o=b(e,"value",19,fe),i=b(e,"ref",15,null),s=ie(e,["$$slots","$$events","$$legacy","id","disabled","value","children","child","ref"]);const l=Tf({value:_.with(()=>o()),disabled:_.with(()=>r()),id:_.with(()=>n()),ref:_.with(()=>i(),c=>i(c))}),a=P(()=>$(s,l.props));var u=F(),h=I(u);{var d=c=>{var p=F(),v=I(p);D(v,()=>e.child,()=>({props:g(a)})),A(c,p)},f=c=>{var p=Nf();le(p,()=>({...g(a)}));var v=oe(p);D(v,()=>e.children??U),A(c,p)};Z(h,c=>{e.child?c(d):c(f,!1)})}A(t,u),K()}var kf=ue("<div><!></div>");function xb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"level",3,2),o=b(e,"ref",15,null),i=ie(e,["$$slots","$$events","$$legacy","id","level","children","child","ref"]);const s=Ff({id:_.with(()=>n()),level:_.with(()=>r()),ref:_.with(()=>o(),f=>o(f))}),l=P(()=>$(i,s.props));var a=F(),u=I(a);{var h=f=>{var c=F(),p=I(c);D(p,()=>e.child,()=>({props:g(l)})),A(f,c)},d=f=>{var c=kf();le(c,()=>({...g(l)}));var p=oe(c);D(p,()=>e.children??U),A(f,c)};Z(u,f=>{e.child?f(h):f(d,!1)})}A(t,a),K()}var Df=ue("<button><!></button>");function Pb(t,e){W(e,!0);let n=b(e,"disabled",3,!1),r=b(e,"ref",15,null),o=b(e,"id",19,fe),i=ie(e,["$$slots","$$events","$$legacy","disabled","ref","id","children","child"]);const s=Of({disabled:_.with(()=>n()),id:_.with(()=>o()),ref:_.with(()=>r(),f=>r(f))}),l=P(()=>$(i,s.props));var a=F(),u=I(a);{var h=f=>{var c=F(),p=I(c);D(p,()=>e.child,()=>({props:g(l)})),A(f,c)},d=f=>{var c=Df();le(c,()=>({type:"button",...g(l)}));var p=oe(c);D(p,()=>e.children??U),A(f,c)};Z(u,f=>{e.child?f(h):f(d,!1)})}A(t,a),K()}function $l(t,e){const n=_(t);function r(i){return e[n.current][i]??n.current}return{state:n,dispatch:i=>{n.current=r(i)}}}function Vf(t,e){let n=N(Fe({})),r=N("none");const o=t.current?"mounted":"unmounted";let i=N(null);const s=new Qd(()=>t.current);ye([()=>e.current,()=>t.current],([f,c])=>{!f||!c||$e(()=>{S(i,document.getElementById(f),!0)})});const{state:l,dispatch:a}=$l(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});ye(()=>t.current,f=>{if(g(i)||S(i,document.getElementById(e.current),!0),!g(i)||!(f!==s.current))return;const p=g(r),v=ir(g(i));f?a("MOUNT"):v==="none"||g(n).display==="none"?a("UNMOUNT"):a(s&&p!==v?"ANIMATION_OUT":"UNMOUNT")});function u(f){if(g(i)||S(i,document.getElementById(e.current),!0),!g(i))return;const c=ir(g(i)),p=c.includes(f.animationName)||c==="none";f.target===g(i)&&p&&a("ANIMATION_END")}function h(f){g(i)||S(i,document.getElementById(e.current),!0),g(i)&&f.target===g(i)&&S(r,ir(g(i)),!0)}ye(()=>l.current,()=>{if(g(i)||S(i,document.getElementById(e.current),!0),!g(i))return;const f=ir(g(i));S(r,l.current==="mounted"?f:"none",!0)}),ye(()=>g(i),f=>{if(f)return S(n,getComputedStyle(f),!0),mt(Se(f,"animationstart",h),Se(f,"animationcancel",u),Se(f,"animationend",u))});const d=P(()=>["mounted","unmountSuspended"].includes(l.current));return{get current(){return g(d)}}}function ir(t){return t&&getComputedStyle(t).animationName||"none"}function Vt(t,e){W(e,!0);const n=Vf(_.with(()=>e.present),_.with(()=>e.id));var r=F(),o=I(r);{var i=s=>{var l=F(),a=I(l);D(a,()=>e.presence??U,()=>({present:n})),A(s,l)};Z(o,s=>{(e.forceMount||e.present||n.current)&&s(i)})}A(t,r),K()}var Lf=ue("<div><!></div>");function Rb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=b(e,"forceMount",3,!1),i=ie(e,["$$slots","$$events","$$legacy","child","ref","id","forceMount","children"]);const s=If({forceMount:_.with(()=>o()),id:_.with(()=>r()),ref:_.with(()=>n(),l=>n(l))});Vt(t,{forceMount:!0,get present(){return s.present},get id(){return r()},presence:(a,u)=>{let h=()=>u?.().present;var d=F();const f=P(()=>$(i,s.props,{hidden:o()?void 0:!h().current}));var c=I(d);{var p=w=>{var m=F(),y=I(m),x=Ze(()=>({props:g(f),...s.snippetProps}));D(y,()=>e.child,()=>g(x)),A(w,m)},v=w=>{var m=Lf();le(m,()=>({...g(f)}));var y=oe(m);D(y,()=>e.children??U),A(w,m)};Z(c,w=>{e.child?w(p):w(v,!1)})}A(a,d)},$$slots:{presence:!0}}),K()}function zf(t){return{content:`data-${t}-content`,trigger:`data-${t}-trigger`,overlay:`data-${t}-overlay`,title:`data-${t}-title`,description:`data-${t}-description`,close:`data-${t}-close`,cancel:`data-${t}-cancel`,action:`data-${t}-action`}}class Hf{opts;#e=N(null);get triggerNode(){return g(this.#e)}set triggerNode(e){S(this.#e,e,!0)}#t=N(null);get contentNode(){return g(this.#t)}set contentNode(e){S(this.#t,e,!0)}#n=N(null);get descriptionNode(){return g(this.#n)}set descriptionNode(e){S(this.#n,e,!0)}#r=N(void 0);get contentId(){return g(this.#r)}set contentId(e){S(this.#r,e,!0)}#o=N(void 0);get titleId(){return g(this.#o)}set titleId(e){S(this.#o,e,!0)}#i=N(void 0);get triggerId(){return g(this.#i)}set triggerId(e){S(this.#i,e,!0)}#l=N(void 0);get descriptionId(){return g(this.#l)}set descriptionId(e){S(this.#l,e,!0)}#a=N(null);get cancelNode(){return g(this.#a)}set cancelNode(e){S(this.#a,e,!0)}#s=P(()=>zf(this.opts.variant.current));get attrs(){return g(this.#s)}set attrs(e){S(this.#s,e)}constructor(e){this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}#u=P(()=>({"data-state":Ct(this.opts.open.current)}));get sharedProps(){return g(this.#u)}set sharedProps(e){S(this.#u,e)}}class Bf{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.titleId=r?.id},deps:()=>this.root.opts.open.current})}#e=P(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.attrs.title]:"",...this.root.sharedProps}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Gf{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,deps:()=>this.root.opts.open.current,onRefChange:r=>{this.root.descriptionNode=r,this.root.descriptionId=r?.id}})}#e=P(()=>({id:this.opts.id.current,[this.root.attrs.description]:"",...this.root.sharedProps}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Uf{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,deps:()=>this.root.opts.open.current,onRefChange:r=>{this.root.contentNode=r,this.root.contentId=r?.id}})}#e=P(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#e)}set snippetProps(e){S(this.#e,e)}#t=P(()=>({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.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class Wf{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,deps:()=>this.root.opts.open.current})}#e=P(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#e)}set snippetProps(e){S(this.#e,e)}#t=P(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}const jn=new Ae("Dialog.Root");function Kf(t){return jn.set(new Hf(t))}function jf(t){return new Bf(t,jn.get())}function qf(t){return new Uf(t,jn.get())}function Xf(t){return new Wf(t,jn.get())}function Yf(t){return new Gf(t,jn.get())}var Zf=ue("<div><!></div>");function Ab(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"level",3,2),i=ie(e,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const s=jf({id:_.with(()=>n()),level:_.with(()=>o()),ref:_.with(()=>r(),f=>r(f))}),l=P(()=>$(i,s.props));var a=F(),u=I(a);{var h=f=>{var c=F(),p=I(c);D(p,()=>e.child,()=>({props:g(l)})),A(f,c)},d=f=>{var c=Zf();le(c,()=>({...g(l)}));var p=oe(c);D(p,()=>e.children??U),A(f,c)};Z(u,f=>{e.child?f(h):f(d,!1)})}A(t,a),K()}function Jf(t,e){var n=F(),r=I(n);yl(r,()=>e.children,o=>{var i=F(),s=I(i);D(s,()=>e.children??U),A(o,i)}),A(t,n)}function Eb(t,e){W(e,!0);let n=b(e,"to",3,"body");const r=Iu();let o=P(i);function i(){if(!Wn||e.disabled)return null;let d=null;return typeof n()=="string"?d=document.querySelector(n()):(n()instanceof HTMLElement||n()instanceof DocumentFragment)&&(d=n()),d}let s;function l(){s&&(pc(s),s=null)}ye([()=>g(o),()=>e.disabled],([d,f])=>{if(!d||f){l();return}return s=hc(Jf,{target:d,props:{children:e.children},context:r}),()=>{l()}});var a=F(),u=I(a);{var h=d=>{var f=F(),c=I(f);D(c,()=>e.children??U),A(d,f)};Z(u,d=>{e.disabled&&d(h)})}A(t,a),K()}function qn(t,e,n,r){const o=Array.isArray(e)?e:[e];return o.forEach(i=>t.addEventListener(i,n,r)),()=>{o.forEach(i=>t.removeEventListener(i,n,r))}}class ea{eventName;options;constructor(e,n={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=n}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,n){const r=this.createEvent(n);return e.dispatchEvent(r),r}listen(e,n,r){const o=i=>{n(i)};return Se(e,this.eventName,o,r)}}function fs(t,e=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...o)},e)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function gi(t,e){return t===e||t.contains(e)}function ta(t){return t?.ownerDocument??document}function Qf(t){if(!t)return null;for(const e of t.childNodes)if(e.nodeType!==Node.COMMENT_NODE)return e;return null}function $f(t,e){const{clientX:n,clientY:r}=t,o=e.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}globalThis.bitsDismissableLayers??=new Map;class eh{opts;#e;#t;#n={pointerdown:!1};#r=!1;#o=!1;node=_(null);#i=void 0;#l;#a=N(null);get currNode(){return g(this.#a)}set currNode(e){S(this.#a,e,!0)}#s=pe;constructor(e){this.opts=e,ce({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:o=>{this.currNode=o}}),this.#t=e.interactOutsideBehavior,this.#e=e.onInteractOutside,this.#l=e.onFocusOutside,ge(()=>{this.#i=ta(this.currNode)});let n=pe;const r=()=>{this.#g(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};ye([()=>this.opts.enabled.current,()=>this.currNode],([o,i])=>{if(!(!o||!i))return Dr(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,this.#t),n(),n=this.#c())}),r}),kr(()=>{this.#g.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#u=e=>{e.defaultPrevented||this.currNode&&$e(()=>{!this.currNode||this.#v(e.target)||e.target&&!this.#o&&this.#l.current?.(e)})};#c(){return mt(Se(this.#i,"pointerdown",mt(this.#f,this.#p),{capture:!0}),Se(this.#i,"pointerdown",mt(this.#w,this.#d)),Se(this.#i,"focusin",this.#u))}#h=e=>{let n=e;n.defaultPrevented&&(n=hs(e)),this.#e.current(e)};#d=fs(e=>{if(!this.currNode){this.#s();return}const n=this.opts.isValidEvent.current(e,this.currNode)||oh(e,this.currNode);if(!this.#r||this.#m()||!n){this.#s();return}let r=e;if(r.defaultPrevented&&(r=hs(r)),this.#t.current!=="close"&&this.#t.current!=="defer-otherwise-close"){this.#s();return}e.pointerType==="touch"?(this.#s(),this.#s=qn(this.#i,"click",this.#h,{once:!0})):this.#e.current(r)},10);#f=e=>{this.#n[e.type]=!0};#w=e=>{this.#n[e.type]=!1};#p=()=>{this.node.current&&(this.#r=rh(this.node.current))};#v=e=>this.node.current?gi(this.node.current,e):!1;#g=fs(()=>{for(const e in this.#n)this.#n[e]=!1;this.#r=!1},20);#m(){return Object.values(this.#n).some(Boolean)}#b=()=>{this.#o=!0};#y=()=>{this.#o=!1};props={onfocuscapture:this.#b,onblurcapture:this.#y}}function th(t){return new eh(t)}function nh(t){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function rh(t){const e=[...globalThis.bitsDismissableLayers],n=nh(e);if(n)return n[0].node.current===t;const[r]=e[0];return r.node.current===t}function oh(t,e){if("button"in t&&t.button>0)return!1;const n=t.target;return Kn(n)?ta(n).documentElement.contains(n)&&!gi(e,n)&&$f(t,e):!1}function hs(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(r,{get:(s,l)=>l==="currentTarget"?e:l==="target"?n:l==="preventDefault"?()=>{o=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:l==="defaultPrevented"?o:l in s?s[l]:t[l]})}function na(t,e){W(e,!0);let n=b(e,"interactOutsideBehavior",3,"close"),r=b(e,"onInteractOutside",3,pe),o=b(e,"onFocusOutside",3,pe),i=b(e,"isValidEvent",3,()=>!1);const s=th({id:_.with(()=>e.id),interactOutsideBehavior:_.with(()=>n()),onInteractOutside:_.with(()=>r()),enabled:_.with(()=>e.enabled),onFocusOutside:_.with(()=>o()),isValidEvent:_.with(()=>i())});var l=F(),a=I(l);D(a,()=>e.children??U,()=>({props:s.props})),A(t,l),K()}globalThis.bitsEscapeLayers??=new Map;class ih{opts;constructor(e){this.opts=e;let n=pe;ye(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=this.#e()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>Se(document,"keydown",this.#t,{passive:!1});#t=e=>{if(e.key!==rf||!lh(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function sh(t){return new ih(t)}function lh(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function ra(t,e){W(e,!0);let n=b(e,"escapeKeydownBehavior",3,"close"),r=b(e,"onEscapeKeydown",3,pe);sh({escapeKeydownBehavior:_.with(()=>n()),onEscapeKeydown:_.with(()=>r()),enabled:_.with(()=>e.enabled)});var o=F(),i=I(o);D(i,()=>e.children??U),A(t,o),K()}const Rt=_([]);function ah(){return{add(t){const e=Rt.current[0];e&&t.id!==e.id&&e.pause(),Rt.current=gs(Rt.current,t),Rt.current.unshift(t)},remove(t){Rt.current=gs(Rt.current,t),Rt.current[0]?.resume()},get current(){return Rt.current}}}function uh(){let t=N(!1),e=N(!1);return{id:fe(),get paused(){return g(t)},get isHandlingFocus(){return g(e)},set isHandlingFocus(n){S(e,n,!0)},pause(){S(t,!0)},resume(){S(t,!1)}}}function gs(t,e){return[...t].filter(n=>n.id!==e.id)}function ch(t){return t.filter(e=>e.tagName!=="A")}function At(t,{select:e=!1}={}){if(!(t&&t.focus)||document.activeElement===t)return;const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&vf(t)&&e&&t.select()}function dh(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(At(r,{select:e}),document.activeElement!==n)return!0}function ps(t,e){for(const n of t)if(!mf(n,e))return n}function pi(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function fh(t){const e=pi(t),n=ps(e,t),r=ps(e.reverse(),t);return[n,r]}/*!
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var hh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],gh=hh.join(","),oa=typeof Element>"u",_r=oa?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Sr=!oa&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},ph=function t(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&t(e.parentNode);return s},vh=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},mh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},wh=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||vh(e))&&!mh(e)?0:e.tabIndex},ia=function(e){return e.tagName==="INPUT"},bh=function(e){return ia(e)&&e.type==="hidden"},yh=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},_h=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},Sh=function(e){if(!e.name)return!0;var n=e.form||Sr(e),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.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 i=_h(o,e.form);return!i||i===e},Ch=function(e){return ia(e)&&e.type==="radio"},xh=function(e){return Ch(e)&&!Sh(e)},Ph=function(e){var n,r=e&&Sr(e),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,l,a;for(i=!!((s=o)!==null&&s!==void 0&&(l=s.ownerDocument)!==null&&l!==void 0&&l.contains(o)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!i&&o;){var u,h,d;r=Sr(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return i},vs=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},Rh=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=_r.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(_r.call(s,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var l=e;e;){var a=e.parentElement,u=Sr(e);if(a&&!a.shadowRoot&&o(a)===!0)return vs(e);e.assignedSlot?e=e.assignedSlot:!a&&u!==e.ownerDocument?e=u.host:e=a}e=l}if(Ph(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return vs(e);return!1},Ah=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return _r.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Eh=function(e,n){return!(n.disabled||ph(n)||bh(n)||Rh(n,e)||yh(n)||Ah(n))},Th=function(e,n){return!(xh(n)||wh(n)<0||!Eh(e,n))},Oh=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return _r.call(e,gh)===!1?!1:Th(n,e)};const Ih=new ea("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),Fh=new ea("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),Mh=new Ae("FocusScope");function Nh({id:t,loop:e,enabled:n,onOpenAutoFocus:r,onCloseAutoFocus:o,forceMount:i}){const s=ah(),l=uh(),a=_(null),u=Mh.getOr({ignoreCloseAutoFocus:!1});let h=null;ce({id:t,ref:a,deps:()=>n.current});function d(m){if(!(l.paused||!a.current||l.isHandlingFocus)){l.isHandlingFocus=!0;try{const y=m.target;if(!yr(y))return;const x=a.current.contains(y);if(m.type==="focusin")if(x)h=y;else{if(u.ignoreCloseAutoFocus)return;At(h,{select:!0})}else m.type==="focusout"&&!x&&!u.ignoreCloseAutoFocus&&At(h,{select:!0})}finally{l.isHandlingFocus=!1}}}function f(m){if(!h||!a.current)return;let y=!1;for(const x of m){if(x.type==="childList"&&x.removedNodes.length>0)for(const E of x.removedNodes){if(E===h){y=!0;break}if(E.nodeType===Node.ELEMENT_NODE&&E.contains(h)){y=!0;break}}if(y)break}y&&a.current&&!a.current.contains(document.activeElement)&&At(a.current)}ye([()=>a.current,()=>n.current],([m,y])=>{if(!m||!y)return;const x=mt(Se(document,"focusin",d),Se(document,"focusout",d)),E=new MutationObserver(f);return E.observe(m,{childList:!0,subtree:!0,attributes:!1}),()=>{x(),E.disconnect()}}),ye([()=>i.current,()=>a.current],([m,y])=>{if(m)return;const x=document.activeElement;return c(y,x),()=>{y&&p(x)}}),ye([()=>i.current,()=>a.current,()=>n.current],([m,y])=>{if(!m)return;const x=document.activeElement;return c(y,x),()=>{y&&p(x)}});function c(m,y){if(m||(m=document.getElementById(t.current)),!m||!n.current)return;if(s.add(l),!m.contains(y)){const E=Ih.createEvent();r.current(E),E.defaultPrevented||$e(()=>{if(!m)return;dh(ch(pi(m)),{select:!0})||At(m)})}}function p(m){const y=Fh.createEvent();o.current?.(y);const x=u.ignoreCloseAutoFocus;Dr(0,()=>{!y.defaultPrevented&&m&&!x&&At(Oh(m)?m:document.body,{select:!0}),s.remove(l)})}function v(m){if(!n.current||!e.current&&!n.current||l.paused)return;const y=m.key===of&&!m.ctrlKey&&!m.altKey&&!m.metaKey,x=document.activeElement;if(!(y&&x))return;const E=a.current;if(!E)return;const[T,O]=fh(E);T&&O?!m.shiftKey&&x===O?(m.preventDefault(),e.current&&At(T,{select:!0})):m.shiftKey&&x===T&&(m.preventDefault(),e.current&&At(O,{select:!0})):x===E&&m.preventDefault()}const w=P(()=>({id:t.current,tabindex:-1,onkeydown:v}));return{get props(){return g(w)}}}function sa(t,e){W(e,!0);let n=b(e,"trapFocus",3,!1),r=b(e,"loop",3,!1),o=b(e,"onCloseAutoFocus",3,pe),i=b(e,"onOpenAutoFocus",3,pe),s=b(e,"forceMount",3,!1);const l=Nh({enabled:_.with(()=>n()),loop:_.with(()=>r()),onCloseAutoFocus:_.with(()=>o()),onOpenAutoFocus:_.with(()=>i()),id:_.with(()=>e.id),forceMount:_.with(()=>s())});var a=F(),u=I(a);D(u,()=>e.focusScope??U,()=>({props:l.props})),A(t,a),K()}globalThis.bitsTextSelectionLayers??=new Map;class kh{opts;#e=pe;#t=_(null);constructor(e){this.opts=e,ce({id:e.id,ref:this.#t,deps:()=>this.opts.enabled.current});let n=pe;ye(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#n()),()=>{n(),this.#o(),globalThis.bitsTextSelectionLayers.delete(this)}))}#n(){return mt(Se(document,"pointerdown",this.#r),Se(document,"pointerup",Vl(this.#o,this.opts.onPointerUp.current)))}#r=e=>{const n=this.#t.current,r=e.target;!yr(n)||!yr(r)||!this.opts.enabled.current||!Lh(this)||!gi(n,r)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&(this.#e=Vh(n)))};#o=()=>{this.#e(),this.#e=pe}}function Dh(t){return new kh(t)}const ms=t=>t.style.userSelect||t.style.webkitUserSelect;function Vh(t){const e=document.body,n=ms(e),r=ms(t);return sr(e,"none"),sr(t,"text"),()=>{sr(e,n),sr(t,r)}}function sr(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function Lh(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function la(t,e){W(e,!0);let n=b(e,"preventOverflowTextSelection",3,!0),r=b(e,"onPointerDown",3,pe),o=b(e,"onPointerUp",3,pe);Dh({id:_.with(()=>e.id),onPointerDown:_.with(()=>r()),onPointerUp:_.with(()=>o()),enabled:_.with(()=>e.enabled&&n())});var i=F(),s=I(i);D(s,()=>e.children??U),A(t,i),K()}function zh(t){let e=0,n=N(void 0),r;function o(){e-=1,r&&e<=0&&(r(),S(n,void 0),r=void 0)}return(...i)=>(e+=1,g(n)===void 0&&(r=Bu(()=>{S(n,t(...i),!0)})),ge(()=>()=>{o()}),g(n))}const Hh=zh(()=>{const t=new Io,e=P(()=>{for(const i of t.values())if(i)return!0;return!1});let n=N(null),r=null;function o(){Wn&&(document.body.setAttribute("style",g(n)??""),document.body.style.removeProperty("--scrollbar-width"),ds&&r?.())}return ge(()=>{const i=g(e);return Ce(()=>{if(!i)return;S(n,document.body.getAttribute("style"),!0);const s=getComputedStyle(document.body),l=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+l,margin:Number.parseInt(s.marginRight??"0",10)};l>0&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),ds&&(r=qn(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),$e(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),ge(()=>()=>{r?.()}),{get map(){return t},resetBodyStyle:o}});function Bh(t,e=()=>null){const n=fe(),r=Hh();if(!r)return;const o=P(e);r.map.set(n,t??!1);const i=_.with(()=>r.map.get(n)??!1,s=>r.map.set(n,s));return ge(()=>()=>{r.map.delete(n),!Gh(r.map)&&(g(o)===null?requestAnimationFrame(()=>r.resetBodyStyle()):Dr(g(o),()=>r.resetBodyStyle()))}),i}function Gh(t){for(const[e,n]of t)if(n)return!0;return!1}function Cr(t,e){W(e,!0);let n=b(e,"preventScroll",3,!0),r=b(e,"restoreScrollDelay",3,null);Bh(n(),()=>r()),K()}function Uh({forceMount:t,present:e,trapFocus:n,open:r}){return t?r&&n:e&&n&&r}var Wh=ue("<div><!></div>");function Tb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"forceMount",3,!1),o=b(e,"ref",15,null),i=ie(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const s=Xf({id:_.with(()=>n()),ref:_.with(()=>o(),u=>o(u))}),l=P(()=>$(i,s.props)),a=P(()=>s.root.opts.open.current||r());Vt(t,{get id(){return n()},get present(){return g(a)},presence:h=>{var d=F(),f=I(d);{var c=v=>{var w=F(),m=I(w),y=Ze(()=>({props:$(g(l)),...s.snippetProps}));D(m,()=>e.child,()=>g(y)),A(v,w)},p=v=>{var w=Wh();le(w,y=>({...y}),[()=>$(g(l))]);var m=oe(w);D(m,()=>e.children??U,()=>s.snippetProps),A(v,w)};Z(f,v=>{e.child?v(c):v(p,!1)})}A(h,d)},$$slots:{presence:!0}}),K()}var Kh=ue("<div><!></div>");function Ob(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=Yf({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=Kh();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}const jh=["top","right","bottom","left"],Mt=Math.min,ze=Math.max,xr=Math.round,lr=Math.floor,ut=t=>({x:t,y:t}),qh={left:"right",right:"left",bottom:"top",top:"bottom"},Xh={start:"end",end:"start"};function Mo(t,e,n){return ze(t,Mt(e,n))}function yt(t,e){return typeof t=="function"?t(e):t}function _t(t){return t.split("-")[0]}function pn(t){return t.split("-")[1]}function vi(t){return t==="x"?"y":"x"}function mi(t){return t==="y"?"height":"width"}const Yh=new Set(["top","bottom"]);function st(t){return Yh.has(_t(t))?"y":"x"}function wi(t){return vi(st(t))}function Zh(t,e,n){n===void 0&&(n=!1);const r=pn(t),o=wi(t),i=mi(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=Pr(s)),[s,Pr(s)]}function Jh(t){const e=Pr(t);return[No(t),e,No(e)]}function No(t){return t.replace(/start|end/g,e=>Xh[e])}const ws=["left","right"],bs=["right","left"],Qh=["top","bottom"],$h=["bottom","top"];function eg(t,e,n){switch(t){case"top":case"bottom":return n?e?bs:ws:e?ws:bs;case"left":case"right":return e?Qh:$h;default:return[]}}function tg(t,e,n,r){const o=pn(t);let i=eg(_t(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map(No)))),i}function Pr(t){return t.replace(/left|right|bottom|top/g,e=>qh[e])}function ng(t){return{top:0,right:0,bottom:0,left:0,...t}}function aa(t){return typeof t!="number"?ng(t):{top:t,right:t,bottom:t,left:t}}function Rr(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function ys(t,e,n){let{reference:r,floating:o}=t;const i=st(e),s=wi(e),l=mi(s),a=_t(e),u=i==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[l]/2-o[l]/2;let c;switch(a){case"top":c={x:h,y:r.y-o.height};break;case"bottom":c={x:h,y:r.y+r.height};break;case"right":c={x:r.x+r.width,y:d};break;case"left":c={x:r.x-o.width,y:d};break;default:c={x:r.x,y:r.y}}switch(pn(e)){case"start":c[s]-=f*(n&&u?-1:1);break;case"end":c[s]+=f*(n&&u?-1:1);break}return c}const rg=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:h,y:d}=ys(u,r,a),f=r,c={},p=0;for(let v=0;v<l.length;v++){const{name:w,fn:m}=l[v],{x:y,y:x,data:E,reset:T}=await m({x:h,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:c,rects:u,platform:s,elements:{reference:t,floating:e}});h=y??h,d=x??d,c={...c,[w]:{...c[w],...E}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):T.rects),{x:h,y:d}=ys(u,f,a)),v=-1)}return{x:h,y:d,placement:f,strategy:o,middlewareData:c}};async function Vn(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:l,strategy:a}=t,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:f=!1,padding:c=0}=yt(e,t),p=aa(c),w=l[f?d==="floating"?"reference":"floating":d],m=Rr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:a})),y=d==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},T=Rr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:a}):y);return{top:(m.top-T.top+p.top)/E.y,bottom:(T.bottom-m.bottom+p.bottom)/E.y,left:(m.left-T.left+p.left)/E.x,right:(T.right-m.right+p.right)/E.x}}const og=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=e,{element:u,padding:h=0}=yt(t,e)||{};if(u==null)return{};const d=aa(h),f={x:n,y:r},c=wi(o),p=mi(c),v=await s.getDimensions(u),w=c==="y",m=w?"top":"left",y=w?"bottom":"right",x=w?"clientHeight":"clientWidth",E=i.reference[p]+i.reference[c]-f[c]-i.floating[p],T=f[c]-i.reference[c],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let C=O?O[x]:0;(!C||!await(s.isElement==null?void 0:s.isElement(O)))&&(C=l.floating[x]||i.floating[p]);const R=E/2-T/2,M=C/2-v[p]/2-1,L=Mt(d[m],M),J=Mt(d[y],M),j=L,z=C-v[p]-J,V=C/2-v[p]/2+R,X=Mo(j,V,z),re=!a.arrow&&pn(o)!=null&&V!==X&&i.reference[p]/2-(V<j?L:J)-v[p]/2<0,ne=re?V<j?V-j:V-z:0;return{[c]:f[c]+ne,data:{[c]:X,centerOffset:V-X-ne,...re&&{alignmentOffset:ne}},reset:re}}}),ig=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:l,platform:a,elements:u}=e,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...w}=yt(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=_t(o),y=st(l),x=_t(l)===l,E=await(a.isRTL==null?void 0:a.isRTL(u.floating)),T=f||(x||!v?[Pr(l)]:Jh(l)),O=p!=="none";!f&&O&&T.push(...tg(l,v,p,E));const C=[l,...T],R=await Vn(e,w),M=[];let L=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&M.push(R[m]),d){const V=Zh(o,s,E);M.push(R[V[0]],R[V[1]])}if(L=[...L,{placement:o,overflows:M}],!M.every(V=>V<=0)){var J,j;const V=(((J=i.flip)==null?void 0:J.index)||0)+1,X=C[V];if(X&&(!(d==="alignment"?y!==st(X):!1)||L.every(k=>k.overflows[0]>0&&st(k.placement)===y)))return{data:{index:V,overflows:L},reset:{placement:X}};let re=(j=L.filter(ne=>ne.overflows[0]<=0).sort((ne,k)=>ne.overflows[1]-k.overflows[1])[0])==null?void 0:j.placement;if(!re)switch(c){case"bestFit":{var z;const ne=(z=L.filter(k=>{if(O){const he=st(k.placement);return he===y||he==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(he=>he>0).reduce((he,_e)=>he+_e,0)]).sort((k,he)=>k[1]-he[1])[0])==null?void 0:z[0];ne&&(re=ne);break}case"initialPlacement":re=l;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function _s(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ss(t){return jh.some(e=>t[e]>=0)}const sg=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=yt(t,e);switch(r){case"referenceHidden":{const i=await Vn(e,{...o,elementContext:"reference"}),s=_s(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ss(s)}}}case"escaped":{const i=await Vn(e,{...o,altBoundary:!0}),s=_s(i,n.floating);return{data:{escapedOffsets:s,escaped:Ss(s)}}}default:return{}}}}},ua=new Set(["left","top"]);async function lg(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=_t(n),l=pn(n),a=st(n)==="y",u=ua.has(s)?-1:1,h=i&&a?-1:1,d=yt(e,t);let{mainAxis:f,crossAxis:c,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&typeof p=="number"&&(c=l==="end"?p*-1:p),a?{x:c*h,y:f*u}:{x:f*u,y:c*h}}const ag=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=e,a=await lg(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},ug=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:m,y}=w;return{x:m,y}}},...a}=yt(t,e),u={x:n,y:r},h=await Vn(e,a),d=st(_t(o)),f=vi(d);let c=u[f],p=u[d];if(i){const w=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=c+h[w],x=c-h[m];c=Mo(y,c,x)}if(s){const w=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=p+h[w],x=p-h[m];p=Mo(y,p,x)}const v=l.fn({...e,[f]:c,[d]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:s}}}}}},cg=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=yt(t,e),h={x:n,y:r},d=st(o),f=vi(d);let c=h[f],p=h[d];const v=yt(l,e),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){const x=f==="y"?"height":"width",E=i.reference[f]-i.floating[x]+w.mainAxis,T=i.reference[f]+i.reference[x]-w.mainAxis;c<E?c=E:c>T&&(c=T)}if(u){var m,y;const x=f==="y"?"width":"height",E=ua.has(_t(o)),T=i.reference[d]-i.floating[x]+(E&&((m=s.offset)==null?void 0:m[d])||0)+(E?0:w.crossAxis),O=i.reference[d]+i.reference[x]+(E?0:((y=s.offset)==null?void 0:y[d])||0)-(E?w.crossAxis:0);p<T?p=T:p>O&&(p=O)}return{[f]:c,[d]:p}}}},dg=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:s,elements:l}=e,{apply:a=()=>{},...u}=yt(t,e),h=await Vn(e,u),d=_t(o),f=pn(o),c=st(o)==="y",{width:p,height:v}=i.floating;let w,m;d==="top"||d==="bottom"?(w=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(m=d,w=f==="end"?"top":"bottom");const y=v-h.top-h.bottom,x=p-h.left-h.right,E=Mt(v-h[w],y),T=Mt(p-h[m],x),O=!e.middlewareData.shift;let C=E,R=T;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(C=y),O&&!f){const L=ze(h.left,0),J=ze(h.right,0),j=ze(h.top,0),z=ze(h.bottom,0);c?R=p-2*(L!==0||J!==0?L+J:ze(h.left,h.right)):C=v-2*(j!==0||z!==0?j+z:ze(h.top,h.bottom))}await a({...e,availableWidth:R,availableHeight:C});const M=await s.getDimensions(l.floating);return p!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function zr(){return typeof window<"u"}function vn(t){return ca(t)?(t.nodeName||"").toLowerCase():"#document"}function Ge(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ht(t){var e;return(e=(ca(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ca(t){return zr()?t instanceof Node||t instanceof Ge(t).Node:!1}function rt(t){return zr()?t instanceof Element||t instanceof Ge(t).Element:!1}function dt(t){return zr()?t instanceof HTMLElement||t instanceof Ge(t).HTMLElement:!1}function Cs(t){return!zr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ge(t).ShadowRoot}const fg=new Set(["inline","contents"]);function Xn(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!fg.has(o)}const hg=new Set(["table","td","th"]);function gg(t){return hg.has(vn(t))}const pg=[":popover-open",":modal"];function Hr(t){return pg.some(e=>{try{return t.matches(e)}catch{return!1}})}const vg=["transform","translate","scale","rotate","perspective"],mg=["transform","translate","scale","rotate","perspective","filter"],wg=["paint","layout","strict","content"];function bi(t){const e=yi(),n=rt(t)?ot(t):t;return vg.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||mg.some(r=>(n.willChange||"").includes(r))||wg.some(r=>(n.contain||"").includes(r))}function bg(t){let e=Nt(t);for(;dt(e)&&!sn(e);){if(bi(e))return e;if(Hr(e))return null;e=Nt(e)}return null}function yi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yg=new Set(["html","body","#document"]);function sn(t){return yg.has(vn(t))}function ot(t){return Ge(t).getComputedStyle(t)}function Br(t){return rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nt(t){if(vn(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Cs(t)&&t.host||ht(t);return Cs(e)?e.host:e}function da(t){const e=Nt(t);return sn(e)?t.ownerDocument?t.ownerDocument.body:t.body:dt(e)&&Xn(e)?e:da(e)}function Ln(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=da(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=Ge(o);if(i){const l=ko(s);return e.concat(s,s.visualViewport||[],Xn(o)?o:[],l&&n?Ln(l):[])}return e.concat(o,Ln(o,[],n))}function ko(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function fa(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=dt(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,l=xr(n)!==i||xr(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function _i(t){return rt(t)?t:t.contextElement}function on(t){const e=_i(t);if(!dt(e))return ut(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=fa(e);let s=(i?xr(n.width):n.width)/r,l=(i?xr(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const _g=ut(0);function ha(t){const e=Ge(t);return!yi()||!e.visualViewport?_g:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sg(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ge(t)?!1:e}function Wt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=_i(t);let s=ut(1);e&&(r?rt(r)&&(s=on(r)):s=on(t));const l=Sg(i,n,r)?ha(i):ut(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,h=o.width/s.x,d=o.height/s.y;if(i){const f=Ge(i),c=r&&rt(r)?Ge(r):r;let p=f,v=ko(p);for(;v&&r&&c!==p;){const w=on(v),m=v.getBoundingClientRect(),y=ot(v),x=m.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,E=m.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;a*=w.x,u*=w.y,h*=w.x,d*=w.y,a+=x,u+=E,p=Ge(v),v=ko(p)}}return Rr({width:h,height:d,x:a,y:u})}function Si(t,e){const n=Br(t).scrollLeft;return e?e.left+n:Wt(ht(t)).left+n}function ga(t,e,n){n===void 0&&(n=!1);const r=t.getBoundingClientRect(),o=r.left+e.scrollLeft-(n?0:Si(t,r)),i=r.top+e.scrollTop;return{x:o,y:i}}function Cg(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=ht(r),l=e?Hr(e.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=ut(1);const h=ut(0),d=dt(r);if((d||!d&&!i)&&((vn(r)!=="body"||Xn(s))&&(a=Br(r)),dt(r))){const c=Wt(r);u=on(r),h.x=c.x+r.clientLeft,h.y=c.y+r.clientTop}const f=s&&!d&&!i?ga(s,a,!0):ut(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+h.x+f.x,y:n.y*u.y-a.scrollTop*u.y+h.y+f.y}}function xg(t){return Array.from(t.getClientRects())}function Pg(t){const e=ht(t),n=Br(t),r=t.ownerDocument.body,o=ze(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=ze(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Si(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(s+=ze(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function Rg(t,e){const n=Ge(t),r=ht(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=yi();(!u||u&&e==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const Ag=new Set(["absolute","fixed"]);function Eg(t,e){const n=Wt(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=dt(t)?on(t):ut(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function xs(t,e,n){let r;if(e==="viewport")r=Rg(t,n);else if(e==="document")r=Pg(ht(t));else if(rt(e))r=Eg(e,n);else{const o=ha(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Rr(r)}function pa(t,e){const n=Nt(t);return n===e||!rt(n)||sn(n)?!1:ot(n).position==="fixed"||pa(n,e)}function Tg(t,e){const n=e.get(t);if(n)return n;let r=Ln(t,[],!1).filter(l=>rt(l)&&vn(l)!=="body"),o=null;const i=ot(t).position==="fixed";let s=i?Nt(t):t;for(;rt(s)&&!sn(s);){const l=ot(s),a=bi(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&Ag.has(o.position)||Xn(s)&&!a&&pa(t,s))?r=r.filter(h=>h!==s):o=l,s=Nt(s)}return e.set(t,r),r}function Og(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?Hr(e)?[]:Tg(e,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,h)=>{const d=xs(e,h,o);return u.top=ze(d.top,u.top),u.right=Mt(d.right,u.right),u.bottom=Mt(d.bottom,u.bottom),u.left=ze(d.left,u.left),u},xs(e,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Ig(t){const{width:e,height:n}=fa(t);return{width:e,height:n}}function Fg(t,e,n){const r=dt(e),o=ht(e),i=n==="fixed",s=Wt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const a=ut(0);function u(){a.x=Si(o)}if(r||!r&&!i)if((vn(e)!=="body"||Xn(o))&&(l=Br(e)),r){const c=Wt(e,!0,i,e);a.x=c.x+e.clientLeft,a.y=c.y+e.clientTop}else o&&u();i&&!r&&o&&u();const h=o&&!r&&!i?ga(o,l):ut(0),d=s.left+l.scrollLeft-a.x-h.x,f=s.top+l.scrollTop-a.y-h.y;return{x:d,y:f,width:s.width,height:s.height}}function io(t){return ot(t).position==="static"}function Ps(t,e){if(!dt(t)||ot(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ht(t)===n&&(n=n.ownerDocument.body),n}function va(t,e){const n=Ge(t);if(Hr(t))return n;if(!dt(t)){let o=Nt(t);for(;o&&!sn(o);){if(rt(o)&&!io(o))return o;o=Nt(o)}return n}let r=Ps(t,e);for(;r&&gg(r)&&io(r);)r=Ps(r,e);return r&&sn(r)&&io(r)&&!bi(r)?n:r||bg(t)||n}const Mg=async function(t){const e=this.getOffsetParent||va,n=this.getDimensions,r=await n(t.floating);return{reference:Fg(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ng(t){return ot(t).direction==="rtl"}const kg={convertOffsetParentRelativeRectToViewportRelativeRect:Cg,getDocumentElement:ht,getClippingRect:Og,getOffsetParent:va,getElementRects:Mg,getClientRects:xg,getDimensions:Ig,getScale:on,isElement:rt,isRTL:Ng};function ma(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Dg(t,e){let n=null,r;const o=ht(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=t.getBoundingClientRect(),{left:h,top:d,width:f,height:c}=u;if(l||e(),!f||!c)return;const p=lr(d),v=lr(o.clientWidth-(h+f)),w=lr(o.clientHeight-(d+c)),m=lr(h),x={rootMargin:-p+"px "+-v+"px "+-w+"px "+-m+"px",threshold:ze(0,Mt(1,a))||1};let E=!0;function T(O){const C=O[0].intersectionRatio;if(C!==a){if(!E)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!ma(u,t.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(T,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(t)}return s(!0),i}function Vg(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=_i(t),h=o||i?[...u?Ln(u):[],...Ln(e)]:[];h.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const d=u&&l?Dg(u,n):null;let f=-1,c=null;s&&(c=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&c&&(c.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=c)==null||x.observe(e)})),n()}),u&&!a&&c.observe(u),c.observe(e));let p,v=a?Wt(t):null;a&&w();function w(){const m=Wt(t);v&&!ma(v,m)&&n(),v=m,p=requestAnimationFrame(w)}return n(),()=>{var m;h.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),d?.(),(m=c)==null||m.disconnect(),c=null,a&&cancelAnimationFrame(p)}}const Lg=ag,zg=ug,Hg=ig,Bg=dg,Gg=sg,Ug=og,Wg=cg,Kg=(t,e,n)=>{const r=new Map,o={platform:kg,...n},i={...o.platform,_c:r};return rg(t,e,{...o,platform:i})};function Sn(t){return typeof t=="function"?t():t}function wa(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rs(t,e){const n=wa(t);return Math.round(e*n)/n}function ln(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function jg(t){const e=t.whileElementsMounted,n=P(()=>Sn(t.open)??!0),r=P(()=>Sn(t.middleware)),o=P(()=>Sn(t.transform)??!0),i=P(()=>Sn(t.placement)??"bottom"),s=P(()=>Sn(t.strategy)??"absolute"),l=t.reference;let a=N(0),u=N(0);const h=_(null);let d=N(Fe(g(s))),f=N(Fe(g(i))),c=N(Fe({})),p=N(!1);const v=P(()=>{const T={position:g(d),left:"0",top:"0"};if(!h.current)return T;const O=Rs(h.current,g(a)),C=Rs(h.current,g(u));return g(o)?{...T,transform:`translate(${O}px, ${C}px)`,...wa(h.current)>=1.5&&{willChange:"transform"}}:{position:g(d),left:`${O}px`,top:`${C}px`}});let w;function m(){l.current===null||h.current===null||Kg(l.current,h.current,{middleware:g(r),placement:g(i),strategy:g(s)}).then(T=>{S(a,T.x,!0),S(u,T.y,!0),S(d,T.strategy,!0),S(f,T.placement,!0),S(c,T.middlewareData,!0),S(p,!0)})}function y(){typeof w=="function"&&(w(),w=void 0)}function x(){if(y(),e===void 0){m();return}l.current===null||h.current===null||(w=e(l.current,h.current,m))}function E(){g(n)||S(p,!1)}return ge(m),ge(x),ge(E),ge(()=>y),{floating:h,reference:l,get strategy(){return g(d)},get placement(){return g(f)},get middlewareData(){return g(c)},get isPositioned(){return g(p)},get floatingStyles(){return g(v)},get update(){return m}}}const qg={top:"bottom",right:"left",bottom:"top",left:"right"};class Xg{anchorNode=_(null);customAnchorNode=_(null);triggerNode=_(null);constructor(){ge(()=>{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 Yg{opts;root;contentRef=_(null);wrapperRef=_(null);arrowRef=_(null);arrowId=_(fe());#e=P(()=>{if(typeof this.opts.style=="string")return An(this.opts.style);if(!this.opts.style)return{}});#t=void 0;#n=new Jd(()=>this.arrowRef.current??void 0);#r=P(()=>this.#n?.width??0);#o=P(()=>this.#n?.height??0);#i=P(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#l=P(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#a=P(()=>g(this.#l).length>0);get hasExplicitBoundaries(){return g(this.#a)}set hasExplicitBoundaries(e){S(this.#a,e)}#s=P(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#l).filter(pf),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(this.#s)}set detectOverflowOptions(e){S(this.#s,e)}#u=N(void 0);#c=N(void 0);#h=N(void 0);#d=N(void 0);#f=P(()=>[Lg({mainAxis:this.opts.sideOffset.current+g(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&zg({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Wg():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Hg({...this.detectOverflowOptions}),Bg({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference;S(this.#u,n,!0),S(this.#c,r,!0),S(this.#h,o,!0),S(this.#d,i,!0)}}),this.arrowRef.current&&Ug({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),tp({arrowWidth:g(this.#r),arrowHeight:g(this.#o)}),this.opts.hideWhenDetached.current&&Gg({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#f)}set middleware(e){S(this.#f,e)}floating;#w=P(()=>np(this.floating.placement));get placedSide(){return g(this.#w)}set placedSide(e){S(this.#w,e)}#p=P(()=>rp(this.floating.placement));get placedAlign(){return g(this.#p)}set placedAlign(e){S(this.#p,e)}#v=P(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#v)}set arrowX(e){S(this.#v,e)}#g=P(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#g)}set arrowY(e){S(this.#g,e)}#m=P(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#m)}set cannotCenterArrow(e){S(this.#m,e)}#b=N();get contentZIndex(){return g(this.#b)}set contentZIndex(e){S(this.#b,e,!0)}#y=P(()=>qg[this.placedSide]);get arrowBaseSide(){return g(this.#y)}set arrowBaseSide(e){S(this.#y,e)}#_=P(()=>({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":`${g(this.#u)}px`,"--bits-floating-available-height":`${g(this.#c)}px`,"--bits-floating-anchor-width":`${g(this.#h)}px`,"--bits-floating-anchor-height":`${g(this.#d)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#e)},dir:this.opts.dir.current}));get wrapperProps(){return g(this.#_)}set wrapperProps(e){S(this.#_,e)}#S=P(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ai({...g(this.#e)})}));get props(){return g(this.#S)}set props(e){S(this.#S,e)}#C=P(()=>({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 g(this.#C)}set arrowStyle(e){S(this.#C,e)}constructor(e,n){this.opts=e,this.root=n,e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ye(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),ce({id:this.opts.wrapperId,ref:this.wrapperRef,deps:()=>this.opts.enabled.current}),ce({id:this.opts.id,ref:this.contentRef,deps:()=>this.opts.enabled.current}),this.floating=jg({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Vg(...r,{animationFrame:this.#t?.current==="always"}),open:()=>this.opts.enabled.current}),ge(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),ye(()=>this.contentRef.current,r=>{r&&(this.contentZIndex=window.getComputedStyle(r).zIndex)}),ge(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Zg{opts;root;ref=_(null);constructor(e,n){this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=_.from(e.virtualEl.current):ce({id:e.id,ref:this.ref,onRefChange:r=>{n.triggerNode.current=r}})}}const Ci=new Ae("Floating.Root"),Jg=new Ae("Floating.Content");function Qg(){return Ci.set(new Xg)}function $g(t){return Jg.set(new Yg(t,Ci.get()))}function ep(t){return new Zg(t,Ci.get())}function tp(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,s=o.arrow?.centerOffset!==0,l=s?0:t.arrowWidth,a=s?0:t.arrowHeight,[u,h]=xi(n),d={start:"0%",center:"50%",end:"100%"}[h],f=(o.arrow?.x??0)+l/2,c=(o.arrow?.y??0)+a/2;let p="",v="";return u==="bottom"?(p=s?d:`${f}px`,v=`${-a}px`):u==="top"?(p=s?d:`${f}px`,v=`${r.floating.height+a}px`):u==="right"?(p=`${-a}px`,v=s?d:`${c}px`):u==="left"&&(p=`${r.floating.width+a}px`,v=s?d:`${c}px`),{data:{x:p,y:v}}}}}function xi(t){const[e,n="center"]=t.split("-");return[e,n]}function np(t){return xi(t)[0]}function rp(t){return xi(t)[1]}function Pi(t,e){W(e,!0),Qg();var n=F(),r=I(n);D(r,()=>e.children??U),A(t,n),K()}function op(t,e=1e4,n=pe){let r=null,o=N(Fe(t));function i(){return window.setTimeout(()=>{S(o,t,!0),n(t)},e)}return ge(()=>()=>{r&&clearTimeout(r)}),_.with(()=>g(o),s=>{S(o,s,!0),n(s),r&&clearTimeout(r),r=i()})}function Ri(t,e){W(e,!0),ep({id:_.with(()=>e.id),virtualEl:_.with(()=>e.virtualEl)});var n=F(),r=I(n);D(r,()=>e.children??U),A(t,n),K()}function ip(t,e){W(e,!0);let n=b(e,"side",3,"bottom"),r=b(e,"sideOffset",3,0),o=b(e,"align",3,"center"),i=b(e,"alignOffset",3,0),s=b(e,"arrowPadding",3,0),l=b(e,"avoidCollisions",3,!0),a=b(e,"collisionBoundary",19,()=>[]),u=b(e,"collisionPadding",3,0),h=b(e,"hideWhenDetached",3,!1),d=b(e,"onPlaced",3,()=>{}),f=b(e,"sticky",3,"partial"),c=b(e,"updatePositionStrategy",3,"optimized"),p=b(e,"strategy",3,"fixed"),v=b(e,"dir",3,"ltr"),w=b(e,"style",19,()=>({})),m=b(e,"wrapperId",19,fe),y=b(e,"customAnchor",3,null);const x=$g({side:_.with(()=>n()),sideOffset:_.with(()=>r()),align:_.with(()=>o()),alignOffset:_.with(()=>i()),id:_.with(()=>e.id),arrowPadding:_.with(()=>s()),avoidCollisions:_.with(()=>l()),collisionBoundary:_.with(()=>a()),collisionPadding:_.with(()=>u()),hideWhenDetached:_.with(()=>h()),onPlaced:_.with(()=>d()),sticky:_.with(()=>f()),updatePositionStrategy:_.with(()=>c()),strategy:_.with(()=>p()),dir:_.with(()=>v()),style:_.with(()=>w()),enabled:_.with(()=>e.enabled),wrapperId:_.with(()=>m()),customAnchor:_.with(()=>y())}),E=P(()=>$(x.wrapperProps,{style:{pointerEvents:"auto"}}));var T=F(),O=I(T);D(O,()=>e.content??U,()=>({props:x.props,wrapperProps:g(E)})),A(t,T),K()}function sp(t,e){W(e,!0),bl(()=>{e.onPlaced?.()});var n=F(),r=I(n);D(r,()=>e.content??U,()=>({props:{},wrapperProps:{}})),A(t,n),K()}const lp="data-separator-root";class ap{opts;constructor(e){this.opts=e,ce(e)}#e=P(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":$d(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[lp]:""}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}function up(t){return new ap(t)}var cp=ue("<div><!></div>");function Ib(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"decorative",3,!1),i=b(e,"orientation",3,"horizontal"),s=ie(e,["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]);const l=up({ref:_.with(()=>r(),c=>r(c)),id:_.with(()=>n()),decorative:_.with(()=>o()),orientation:_.with(()=>i())}),a=P(()=>$(s,l.props));var u=F(),h=I(u);{var d=c=>{var p=F(),v=I(p);D(v,()=>e.child,()=>({props:g(a)})),A(c,p)},f=c=>{var p=cp();le(p,()=>({...g(a)}));var v=oe(p);D(v,()=>e.children??U),A(c,p)};Z(h,c=>{e.child?c(d):c(f,!1)})}A(t,u),K()}function dp(t,e){let n=b(e,"isStatic",3,!1),r=ie(e,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=F(),i=I(o);{var s=a=>{sp(a,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},l=a=>{ip(a,ae({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>r))};Z(i,a=>{n()?a(s):a(l,!1)})}A(t,o)}var fp=ue("<!> <!>",1);function ba(t,e){W(e,!0);let n=b(e,"interactOutsideBehavior",3,"close"),r=b(e,"trapFocus",3,!0),o=b(e,"isValidEvent",3,()=>!1),i=b(e,"customAnchor",3,null),s=b(e,"isStatic",3,!1),l=ie(e,["$$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"]);dp(t,{get isStatic(){return s()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return i()},get enabled(){return e.enabled},content:(u,h)=>{let d=()=>h?.().props,f=()=>h?.().wrapperProps;var c=fp(),p=I(c);{var v=x=>{Cr(x,{get preventScroll(){return e.preventScroll}})},w=(x,E)=>{{var T=O=>{Cr(O,{get preventScroll(){return e.preventScroll}})};Z(x,O=>{e.forceMount||O(T)},E)}};Z(p,x=>{e.forceMount&&e.enabled?x(v):x(w,!1)})}var m=Bt(p,2);const y=P(()=>e.enabled&&r());sa(m,{get id(){return e.id},get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get trapFocus(){return g(y)},get forceMount(){return e.forceMount},focusScope:(E,T)=>{let O=()=>T?.().props;ra(E,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},children:(C,R)=>{{const M=(L,J)=>{let j=()=>J?.().props;la(L,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},children:(z,V)=>{var X=F(),re=I(X),ne=Ze(()=>({props:$(l,d(),j(),O(),{style:{pointerEvents:"auto"}}),wrapperProps:f()}));D(re,()=>e.popper??U,()=>g(ne)),A(z,X)},$$slots:{default:!0}})};na(C,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return n()},isValidEvent:o(),get enabled(){return e.enabled},children:M,$$slots:{default:!0}})}},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),A(u,c)},$$slots:{content:!0}}),K()}function Ai(t,e){let n=b(e,"interactOutsideBehavior",3,"close"),r=b(e,"trapFocus",3,!0),o=b(e,"isValidEvent",3,()=>!1),i=b(e,"customAnchor",3,null),s=b(e,"isStatic",3,!1),l=ie(e,["$$slots","$$events","$$legacy","popper","present","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"]);Vt(t,ae({get id(){return e.id},get present(){return e.present}},()=>l,{presence:u=>{ba(u,ae({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return e.present},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},isValidEvent:o(),get onFocusOutside(){return e.onFocusOutside},forceMount:!1},()=>l))},$$slots:{presence:!0}}))}function Ei(t,e){let n=b(e,"interactOutsideBehavior",3,"close"),r=b(e,"trapFocus",3,!0),o=b(e,"isValidEvent",3,()=>!1),i=b(e,"customAnchor",3,null),s=b(e,"isStatic",3,!1),l=ie(e,["$$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"]);ba(t,ae({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return e.loop},get trapFocus(){return r()},isValidEvent:o(),get onFocusOutside(){return e.onFocusOutside}},()=>l,{forceMount:!0}))}function hp(t,e){W(e,!0);let n=b(e,"mounted",15,!1),r=b(e,"onMountedChange",3,pe);Ul(()=>(n(!0),r()(!0),()=>{n(!1),r()(!1)})),K()}function gp(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}}function pp(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}}var hr={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var vp=hr.exports,As;function mp(){return As||(As=1,function(t,e){(function(n,r){t.exports=r(n)})(typeof ls<"u"?ls:vp,function(n){if(n.CSS&&n.CSS.escape)return n.CSS.escape;var r=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),s=i.length,l=-1,a,u="",h=i.charCodeAt(0);++l<s;){if(a=i.charCodeAt(l),a==0){u+="�";continue}if(a>=1&&a<=31||a==127||l==0&&a>=48&&a<=57||l==1&&a>=48&&a<=57&&h==45){u+="\\"+a.toString(16)+" ";continue}if(l==0&&s==1&&a==45){u+="\\"+i.charAt(l);continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){u+=i.charAt(l);continue}u+="\\"+i.charAt(l)}return u};return n.CSS||(n.CSS={}),n.CSS.escape=r,r})}(hr)),hr.exports}var wp=mp();const bp=Ll(wp),yp="data-command-root",_p="data-command-empty",ya="data-command-group",_a="data-command-group-items",Sa="data-command-group-heading",Ca="data-command-item",Sp="data-command-input-label",nn="data-value",Cn=`[${ya}]`,so=`[${_a}]`,Cp=`[${Sa}]`,xp=`[${Ca}]`,lo=`${xp}:not([aria-disabled="true"])`,Yn=new Ae("Command.Root"),Zn=new Ae("Command.Group"),Es={search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}};class Pp{opts;#e=!1;sortAfterTick=!1;sortAndFilterAfterTick=!1;allItems=new Set;allGroups=new Map;allIds=new Map;#t=N(0);get key(){return g(this.#t)}set key(e){S(this.#t,e,!0)}#n=N(null);get viewportNode(){return g(this.#n)}set viewportNode(e){S(this.#n,e,!0)}#r=N(null);get inputNode(){return g(this.#r)}set inputNode(e){S(this.#r,e,!0)}#o=N(null);get labelNode(){return g(this.#o)}set labelNode(e){S(this.#o,e,!0)}#i=N(Es);get commandState(){return g(this.#i)}set commandState(e){S(this.#i,e)}#l=N(Fe(Es));get _commandState(){return g(this.#l)}set _commandState(e){S(this.#l,e,!0)}#a(){return Eu(this._commandState)}#s(){this.#e||(this.#e=!0,$e(()=>{this.#e=!1;const e=this.#a();!Object.is(this.commandState,e)&&(this.commandState=e,this.opts.onStateChange?.current?.(e))}))}setState(e,n,r){Object.is(this._commandState[e],n)||(this._commandState[e]=n,e==="search"?(this.#d(),this.#c()):e==="value"&&(r||this.#w()),this.#s())}constructor(e){this.opts=e;const n={...this._commandState,value:this.opts.value.current??""};this._commandState=n,this.commandState=n,ce(e),this.onkeydown=this.onkeydown.bind(this)}#u(e,n){const r=this.opts.filter.current??Pa;return e?r(e,this._commandState.search,n):0}#c(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){this.#h();return}const e=this._commandState.filtered.items,n=[];for(const s of this._commandState.filtered.groups){const l=this.allGroups.get(s);let a=0;if(!l){n.push([s,a]);continue}for(const u of l){const h=e.get(u);a=Math.max(h??0,a)}n.push([s,a])}const r=this.viewportNode,o=this.getValidItems().sort((s,l)=>{const a=s.getAttribute("data-value"),u=l.getAttribute("data-value"),h=e.get(a)??0;return(e.get(u)??0)-h});for(const s of o){const l=s.closest(so);if(l){const a=s.parentElement===l?s:s.closest(`${so} > *`);a&&l.appendChild(a)}else{const a=s.parentElement===r?s:s.closest(`${so} > *`);a&&r?.appendChild(a)}}const i=n.sort((s,l)=>l[1]-s[1]);for(const s of i){const l=r?.querySelector(`${Cn}[${nn}="${bp(s[0])}"]`);l?.parentElement?.appendChild(l)}this.#h()}setValue(e,n){e!==this.opts.value.current&&e===""&&$e(()=>{this.key++}),this.setState("value",e,n),this.opts.value.current=e}#h(){$e(()=>{const n=this.getValidItems().find(r=>r.getAttribute("aria-disabled")!=="true")?.getAttribute(nn);this.setValue(n||"")})}#d(){if(!this._commandState.search||this.opts.shouldFilter.current===!1){this._commandState.filtered.count=this.allItems.size;return}this._commandState.filtered.groups=new Set;let e=0;for(const n of this.allItems){const r=this.allIds.get(n)?.value??"",o=this.allIds.get(n)?.keywords??[],i=this.#u(r,o);this._commandState.filtered.items.set(n,i),i>0&&e++}for(const[n,r]of this.allGroups)for(const o of r){const i=this._commandState.filtered.items.get(o);if(i&&i>0){this._commandState.filtered.groups.add(n);break}}this._commandState.filtered.count=e}getValidItems(){const e=this.opts.ref.current;return e?Array.from(e.querySelectorAll(lo)).filter(r=>!!r):[]}#f(){const e=this.opts.ref.current;if(!e)return;const n=e.querySelector(`${lo}[data-selected]`);if(n)return n}#w(){$e(()=>{const e=this.#f();if(!e)return;const n=e.parentElement?.parentElement;if(!n)return;const r=Qf(n);if(r&&r.dataset?.value===e.dataset?.value){e?.closest(Cn)?.querySelector(Cp)?.scrollIntoView({block:"nearest"});return}e.scrollIntoView({block:"nearest"})})}updateSelectedToIndex(e){const r=this.getValidItems()[e];r&&this.setValue(r.getAttribute(nn)??"")}updateSelectedByItem(e){const n=this.#f(),r=this.getValidItems(),o=r.findIndex(s=>s===n);let i=r[o+e];this.opts.loop.current&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&this.setValue(i.getAttribute(nn)??"")}updateSelectedByGroup(e){let r=this.#f()?.closest(Cn),o;for(;r&&!o;)r=e>0?gp(r,Cn):pp(r,Cn),o=r?.querySelector(lo);o?this.setValue(o.getAttribute(nn)??""):this.updateSelectedByItem(e)}registerValue(e,n){return e&&e===this.allIds.get(e)?.value||this.allIds.set(e,{value:e,keywords:n}),this._commandState.filtered.items.set(e,this.#u(e,n)),this.sortAfterTick||(this.sortAfterTick=!0,$e(()=>{this.#c(),this.sortAfterTick=!1})),()=>{this.allIds.delete(e)}}registerItem(e,n){return this.allItems.add(e),n&&(this.allGroups.has(n)?this.allGroups.get(n).add(e):this.allGroups.set(n,new Set([e]))),this.sortAndFilterAfterTick||(this.sortAndFilterAfterTick=!0,$e(()=>{this.#d(),this.#c(),this.sortAndFilterAfterTick=!1})),this.#s(),()=>{const r=this.#f();this.allIds.delete(e),this.allItems.delete(e),this.commandState.filtered.items.delete(e),this.#d(),r?.getAttribute("id")===e&&this.#h(),this.#s()}}registerGroup(e){return this.allGroups.has(e)||this.allGroups.set(e,new Set),()=>{this.allIds.delete(e),this.allGroups.delete(e)}}#p(){return this.updateSelectedToIndex(this.getValidItems().length-1)}#v(e){e.preventDefault(),e.metaKey?this.#p():e.altKey?this.updateSelectedByGroup(1):this.updateSelectedByItem(1)}#g(e){e.preventDefault(),e.metaKey?this.updateSelectedToIndex(0):e.altKey?this.updateSelectedByGroup(-1):this.updateSelectedByItem(-1)}onkeydown(e){switch(e.key){case lf:case af:{this.opts.vimBindings.current&&e.ctrlKey&&this.#v(e);break}case wr:this.#v(e);break;case sf:case uf:{this.opts.vimBindings.current&&e.ctrlKey&&this.#g(e);break}case br:this.#g(e);break;case ql:e.preventDefault(),this.updateSelectedToIndex(0);break;case jl:e.preventDefault(),this.#p();break;case Vr:if(!e.isComposing&&e.keyCode!==229){e.preventDefault();const n=this.#f();n&&n?.click()}}}#m=P(()=>({id:this.opts.id.current,role:"application",[yp]:"",tabindex:-1,onkeydown:this.onkeydown}));get props(){return g(this.#m)}set props(e){S(this.#m,e)}}class Rp{opts;root;#e=!0;#t=P(()=>this.root._commandState.filtered.count===0&&this.#e===!1||this.opts.forceMount.current);get shouldRender(){return g(this.#t)}set shouldRender(e){S(this.#t,e)}constructor(e,n){this.opts=e,this.root=n,Gt(()=>{this.#e=!1}),ce({...e,deps:()=>this.shouldRender})}#n=P(()=>({id:this.opts.id.current,role:"presentation",[_p]:""}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}class Ap{opts;root;#e=N(null);get headingNode(){return g(this.#e)}set headingNode(e){S(this.#e,e,!0)}#t=N("");get trueValue(){return g(this.#t)}set trueValue(e){S(this.#t,e,!0)}#n=P(()=>this.opts.forceMount.current||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search?!0:this.root._commandState.filtered.groups.has(this.trueValue));get shouldRender(){return g(this.#n)}set shouldRender(e){S(this.#n,e)}constructor(e,n){this.opts=e,this.root=n,this.trueValue=e.value.current??e.id.current,ce({...e,deps:()=>this.shouldRender}),ye(()=>this.trueValue,()=>this.root.registerGroup(this.trueValue)),ge(()=>this.opts.value.current?(this.trueValue=this.opts.value.current,this.root.registerValue(this.opts.value.current)):this.headingNode&&this.headingNode.textContent?(this.trueValue=this.headingNode.textContent.trim().toLowerCase(),this.root.registerValue(this.trueValue)):(this.trueValue=`-----${this.opts.id.current}`,this.root.registerValue(this.trueValue)))}#r=P(()=>({id:this.opts.id.current,role:"presentation",hidden:this.shouldRender?void 0:!0,"data-value":this.trueValue,[ya]:""}));get props(){return g(this.#r)}set props(e){S(this.#r,e)}}class Ep{opts;group;constructor(e,n){this.opts=e,this.group=n,ce({...e,onRefChange:r=>{this.group.headingNode=r}})}#e=P(()=>({id:this.opts.id.current,[Sa]:""}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Tp{opts;group;constructor(e,n){this.opts=e,this.group=n,ce(e)}#e=P(()=>({id:this.opts.id.current,role:"group",[_a]:"","aria-labelledby":this.group.headingNode?.id??void 0}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Op{opts;root;#e=null;#t=P(()=>this.opts.forceMount.current||this.#e?.opts.forceMount.current===!0);#n=N("");get trueValue(){return g(this.#n)}set trueValue(e){S(this.#n,e,!0)}#r=P(()=>{if(this.opts.ref.current,g(this.#t)||this.root.opts.shouldFilter.current===!1||!this.root.commandState.search)return!0;const e=this.root.commandState.filtered.items.get(this.trueValue);return e===void 0?!1:e>0});get shouldRender(){return g(this.#r)}set shouldRender(e){S(this.#r,e)}#o=P(()=>this.root.opts.value.current===this.trueValue&&this.trueValue!=="");get isSelected(){return g(this.#o)}set isSelected(e){S(this.#o,e)}constructor(e,n){this.opts=e,this.root=n,this.#e=Zn.getOr(null),this.trueValue=e.value.current,ce({...e,deps:()=>!!this.root.commandState.search}),ye([()=>this.trueValue,()=>this.#e?.trueValue,()=>this.opts.forceMount.current],()=>{if(!this.opts.forceMount.current)return this.root.registerItem(this.trueValue,this.#e?.trueValue)}),ye([()=>this.opts.value.current,()=>this.opts.ref.current],()=>{!this.opts.value.current&&this.opts.ref.current?.textContent&&(this.trueValue=this.opts.ref.current.textContent.trim()),this.root.registerValue(this.trueValue,e.keywords.current.map(r=>r.trim())),this.opts.ref.current?.setAttribute(nn,this.trueValue)}),this.onclick=this.onclick.bind(this),this.onpointermove=this.onpointermove.bind(this)}#i(){this.opts.disabled.current||(this.#l(),this.opts.onSelect?.current())}#l(){this.opts.disabled.current||this.root.setValue(this.trueValue,!0)}onpointermove(e){this.opts.disabled.current||this.root.opts.disablePointerSelection.current||this.#l()}onclick(e){this.opts.disabled.current||this.#i()}#a=P(()=>({id:this.opts.id.current,"aria-disabled":Wl(this.opts.disabled.current),"aria-selected":Kl(this.isSelected),"data-disabled":xt(this.opts.disabled.current),"data-selected":ef(this.isSelected),"data-value":this.trueValue,[Ca]:"",role:"option",onpointermove:this.onpointermove,onclick:this.onclick}));get props(){return g(this.#a)}set props(e){S(this.#a,e)}}class Ip{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.labelNode=r}})}#e=P(()=>({id:this.opts.id.current,[Sp]:"",for:this.opts.for?.current,style:Hl}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}function Fp(t){return Yn.set(new Pp(t))}function Mp(t){return new Rp(t,Yn.get())}function Np(t){const e=Zn.getOr(null);return new Op({...t,group:e},Yn.get())}function kp(t){return Zn.set(new Ap(t,Yn.get()))}function Dp(t){return new Ep(t,Zn.get())}function Vp(t){return new Tp(t,Zn.get())}function Lp(t){return new Ip(t,Yn.get())}var zp=ue("<label><!></label>");function Hp(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","id","ref","children"]);const i=Lp({id:_.with(()=>n()),ref:_.with(()=>r(),u=>r(u))}),s=P(()=>$(o,i.props));var l=zp();le(l,()=>({...g(s)}));var a=oe(l);D(a,()=>e.children??U),A(t,l),K()}var Bp=ue("<!> <!>",1),Gp=ue("<div><!> <!></div>");function Fb(t,e){W(e,!0);const n=M=>{Hp(M,{children:(L,J)=>{var j=oc();ei(()=>fc(j,d())),A(L,j)},$$slots:{default:!0}})};let r=b(e,"id",19,fe),o=b(e,"ref",15,null),i=b(e,"value",15,""),s=b(e,"onValueChange",3,pe),l=b(e,"onStateChange",3,pe),a=b(e,"loop",3,!1),u=b(e,"shouldFilter",3,!0),h=b(e,"filter",3,Pa),d=b(e,"label",3,""),f=b(e,"vimBindings",3,!0),c=b(e,"disablePointerSelection",3,!1),p=ie(e,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","onStateChange","loop","shouldFilter","filter","label","vimBindings","disablePointerSelection","children","child"]);const v=Fp({id:_.with(()=>r()),ref:_.with(()=>o(),M=>o(M)),filter:_.with(()=>h()),shouldFilter:_.with(()=>u()),loop:_.with(()=>a()),value:_.with(()=>i(),M=>{i()!==M&&(i(M),s()(M))}),vimBindings:_.with(()=>f()),disablePointerSelection:_.with(()=>c()),onStateChange:_.with(()=>l())}),w=M=>v.updateSelectedToIndex(M),m=M=>v.updateSelectedByGroup(M),y=M=>v.updateSelectedByItem(M),x=()=>v.getValidItems(),E=P(()=>$(p,v.props));var T=F(),O=I(T);{var C=M=>{var L=Bp(),J=I(L);n(J);var j=Bt(J,2);D(j,()=>e.child,()=>({props:g(E)})),A(M,L)},R=M=>{var L=Gp();le(L,()=>({...g(E)}));var J=oe(L);n(J);var j=Bt(J,2);D(j,()=>e.children??U),A(M,L)};Z(O,M=>{e.child?M(C):M(R,!1)})}return A(t,T),K({updateSelectedToIndex:w,updateSelectedByGroup:m,updateSelectedByItem:y,getValidItems:x})}var Up=ue("<div><!></div>");function Mb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"forceMount",3,!1),i=ie(e,["$$slots","$$events","$$legacy","id","ref","children","child","forceMount"]);const s=Mp({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d)),forceMount:_.with(()=>o())}),l=P(()=>$(s.props,i));var a=F(),u=I(a);{var h=d=>{var f=F(),c=I(f);{var p=w=>{var m=F(),y=I(m);D(y,()=>e.child,()=>({props:g(l)})),A(w,m)},v=w=>{var m=Up();le(m,()=>({...g(l)}));var y=oe(m);D(y,()=>e.children??U),A(w,m)};Z(c,w=>{e.child?w(p):w(v,!1)})}A(d,f)};Z(u,d=>{s.shouldRender&&d(h)})}A(t,a),K()}var Wp=ue("<div><!></div>");function Nb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"value",3,""),i=b(e,"forceMount",3,!1),s=ie(e,["$$slots","$$events","$$legacy","id","ref","value","forceMount","children","child"]);const l=kp({id:_.with(()=>n()),ref:_.with(()=>r(),c=>r(c)),forceMount:_.with(()=>i()),value:_.with(()=>o())}),a=P(()=>$(s,l.props));var u=F(),h=I(u);{var d=c=>{var p=F(),v=I(p);D(v,()=>e.child,()=>({props:g(a)})),A(c,p)},f=c=>{var p=Wp();le(p,()=>({...g(a)}));var v=oe(p);D(v,()=>e.children??U),A(c,p)};Z(h,c=>{e.child?c(d):c(f,!1)})}A(t,u),K()}var Kp=ue("<div><!></div>");function kb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const i=Dp({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=Kp();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}var jp=ue("<div><!></div>"),qp=ue('<div style="display: contents;"><!></div>');function Db(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","id","ref","children","child"]);const i=Vp({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props));var l=qp(),a=oe(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=jp();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}var Xp=ue("<div><!></div>"),Yp=ue('<div style="display: contents;" data-item-wrapper=""><!></div>');function Vb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"value",3,""),i=b(e,"disabled",3,!1),s=b(e,"onSelect",3,pe),l=b(e,"forceMount",3,!1),a=b(e,"keywords",19,()=>[]),u=ie(e,["$$slots","$$events","$$legacy","id","ref","value","disabled","children","child","onSelect","forceMount","keywords"]);const h=Np({id:_.with(()=>n()),ref:_.with(()=>r(),p=>r(p)),value:_.with(()=>o()),disabled:_.with(()=>i()),onSelect:_.with(()=>s()),forceMount:_.with(()=>l()),keywords:_.with(()=>a())}),d=P(()=>$(u,h.props));var f=F(),c=I(f);yl(c,()=>h.root.key,p=>{var v=Yp(),w=oe(v);{var m=y=>{var x=F(),E=I(x);{var T=C=>{var R=F(),M=I(R);D(M,()=>e.child,()=>({props:g(d)})),A(C,R)},O=C=>{var R=Xp();le(R,()=>({...g(d)}));var M=oe(R);D(M,()=>e.children??U),A(C,R)};Z(E,C=>{e.child?C(T):C(O,!1)})}A(y,x)};Z(w,y=>{h.shouldRender&&y(m)})}ei(()=>Po(v,"data-value",h.trueValue)),A(p,v)}),A(t,f),K()}const Ts=1,Zp=.9,Jp=.8,Qp=.17,ao=.1,uo=.999,$p=.9999,ev=.99,tv=/[\\/_+.#"@[({&]/,nv=/[\\/_+.#"@[({&]/g,rv=/[\s-]/,xa=/[\s-]/g;function Do(t,e,n,r,o,i,s){if(i===e.length)return o===t.length?Ts:ev;const l=`${o},${i}`;if(s[l]!==void 0)return s[l];const a=r.charAt(i);let u=n.indexOf(a,o),h=0,d,f,c,p;for(;u>=0;)d=Do(t,e,n,r,u+1,i+1,s),d>h&&(u===o?d*=Ts:tv.test(t.charAt(u-1))?(d*=Jp,c=t.slice(o,u-1).match(nv),c&&o>0&&(d*=uo**c.length)):rv.test(t.charAt(u-1))?(d*=Zp,p=t.slice(o,u-1).match(xa),p&&o>0&&(d*=uo**p.length)):(d*=Qp,o>0&&(d*=uo**(u-o))),t.charAt(u)!==e.charAt(i)&&(d*=$p)),(d<ao&&n.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(u-1)!==r.charAt(i))&&(f=Do(t,e,n,r,u+1,i+2,s),f*ao>d&&(d=f*ao)),d>h&&(h=d),u=n.indexOf(a,u+1);return s[l]=h,h}function Os(t){return t.toLowerCase().replace(xa," ")}function Pa(t,e,n){return t=n&&n.length>0?`${`${t} ${n?.join(" ")}`}`:t,Do(t,e,Os(t),Os(e),0,0,{})}function Ra(t){const e=P(()=>t.enabled()),n=op(!1,t.transitTimeout??300,s=>{g(e)&&t.setIsPointerInTransit?.(s)});let r=N(null);function o(){S(r,null),n.current=!1}function i(s,l){const a=s.currentTarget;if(!yr(a))return;const u={x:s.clientX,y:s.clientY},h=ov(u,a.getBoundingClientRect()),d=iv(u,h),f=sv(l.getBoundingClientRect()),c=av([...d,...f]);S(r,c,!0),n.current=!0}return ye([t.triggerNode,t.contentNode,t.enabled],([s,l,a])=>{if(!s||!l||!a)return;const u=d=>{i(d,l)},h=d=>{i(d,s)};return mt(Se(s,"pointerleave",u),Se(l,"pointerleave",h))}),ye(()=>g(r),()=>Se(document,"pointermove",l=>{if(!g(r))return;const a=l.target;if(!Kn(a))return;const u={x:l.clientX,y:l.clientY},h=t.triggerNode()?.contains(a)||t.contentNode()?.contains(a),d=!lv(u,g(r));h?o():d&&(o(),t.onPointerExit())})),{isPointerInTransit:n}}function ov(t,e){const n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function iv(t,e,n=5){const r=n*1.5;switch(e){case"top":return[{x:t.x-n,y:t.y+n},{x:t.x,y:t.y-r},{x:t.x+n,y:t.y+n}];case"bottom":return[{x:t.x-n,y:t.y-n},{x:t.x,y:t.y+r},{x:t.x+n,y:t.y-n}];case"left":return[{x:t.x+n,y:t.y-n},{x:t.x-r,y:t.y},{x:t.x+n,y:t.y+n}];case"right":return[{x:t.x-n,y:t.y-n},{x:t.x+r,y:t.y},{x:t.x-n,y:t.y+n}]}}function sv(t){const{top:e,right:n,bottom:r,left:o}=t;return[{x:o,y:e},{x:n,y:e},{x:n,y:r},{x:o,y:r}]}function lv(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const l=e[i].x,a=e[i].y,u=e[s].x,h=e[s].y;a>r!=h>r&&n<(u-l)*(r-a)/(h-a)+l&&(o=!o)}return o}function av(t){const e=t.slice();return e.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),uv(e)}function uv(t){if(t.length<=1)return t.slice();const e=[];for(let r=0;r<t.length;r++){const o=t[r];for(;e.length>=2;){const i=e[e.length-1],s=e[e.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))e.pop();else break}e.push(o)}e.pop();const n=[];for(let r=t.length-1;r>=0;r--){const o=t[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),e.length===1&&n.length===1&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}class cv{opts;#e=N(null);get contentNode(){return g(this.#e)}set contentNode(e){S(this.#e,e,!0)}#t=N(null);get triggerNode(){return g(this.#t)}set triggerNode(e){S(this.#t,e,!0)}constructor(e){this.opts=e}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}}class dv{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.triggerNode=r}}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button===0&&this.root.toggleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===Vr||e.key===hi)&&(e.preventDefault(),this.root.toggleOpen())}#e(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#t=P(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ci(this.root.opts.open.current),"data-state":Ct(this.root.opts.open.current),"aria-controls":this.#e(),"data-popover-trigger":"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class fv{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,deps:()=>this.root.opts.open.current,onRefChange:r=>{this.root.contentNode=r}})}onInteractOutside=e=>{this.opts.onInteractOutside.current(e),!(e.defaultPrevented||!Kn(e.target)||e.target.closest("[data-popover-trigger]")===this.root.triggerNode)&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current(e),!e.defaultPrevented&&this.root.handleClose()};onCloseAutoFocus=e=>{this.opts.onCloseAutoFocus.current(e),!e.defaultPrevented&&(e.preventDefault(),this.root.triggerNode?.focus())};#e=P(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#e)}set snippetProps(e){S(this.#e,e)}#t=P(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ct(this.root.opts.open.current),"data-popover-content":"",style:{pointerEvents:"auto"}}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onCloseAutoFocus:this.onCloseAutoFocus}}const Ti=new Ae("Popover.Root");function hv(t){return Ti.set(new cv(t))}function gv(t){return new dv(t,Ti.get())}function pv(t){return new fv(t,Ti.get())}var vv=ue("<div><div><!></div></div>"),mv=ue("<div><div><!></div></div>");function Lb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=b(e,"forceMount",3,!1),i=b(e,"onCloseAutoFocus",3,pe),s=b(e,"onEscapeKeydown",3,pe),l=b(e,"onInteractOutside",3,pe),a=b(e,"trapFocus",3,!0),u=b(e,"preventScroll",3,!1),h=ie(e,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll"]);const d=pv({id:_.with(()=>r()),ref:_.with(()=>n(),m=>n(m)),onInteractOutside:_.with(()=>l()),onEscapeKeydown:_.with(()=>s()),onCloseAutoFocus:_.with(()=>i())}),f=P(()=>$(h,d.props));var c=F(),p=I(c);{var v=m=>{Ei(m,ae(()=>g(f),()=>d.popperProps,{get enabled(){return d.root.opts.open.current},get id(){return r()},get trapFocus(){return a()},get preventScroll(){return u()},loop:!0,forceMount:!0,popper:(x,E)=>{let T=()=>E?.().props,O=()=>E?.().wrapperProps;var C=F();const R=P(()=>$(T(),{style:ln("popover")}));var M=I(C);{var L=j=>{var z=F(),V=I(z),X=Ze(()=>({props:g(R),wrapperProps:O(),...d.snippetProps}));D(V,()=>e.child,()=>g(X)),A(j,z)},J=j=>{var z=vv();le(z,()=>({...O()}));var V=oe(z);le(V,()=>({...g(R)}));var X=oe(V);D(X,()=>e.children??U),A(j,z)};Z(M,j=>{e.child?j(L):j(J,!1)})}A(x,C)},$$slots:{popper:!0}}))},w=(m,y)=>{{var x=E=>{Ai(E,ae(()=>g(f),()=>d.popperProps,{get present(){return d.root.opts.open.current},get id(){return r()},get trapFocus(){return a()},get preventScroll(){return u()},loop:!0,forceMount:!1,popper:(O,C)=>{let R=()=>C?.().props,M=()=>C?.().wrapperProps;var L=F();const J=P(()=>$(R(),{style:ln("popover")}));var j=I(L);{var z=X=>{var re=F(),ne=I(re),k=Ze(()=>({props:g(J),wrapperProps:M(),...d.snippetProps}));D(ne,()=>e.child,()=>g(k)),A(X,re)},V=X=>{var re=mv();le(re,()=>({...M()}));var ne=oe(re);le(ne,()=>({...g(J)}));var k=oe(ne);D(k,()=>e.children??U),A(X,re)};Z(j,X=>{e.child?X(z):X(V,!1)})}A(O,L)},$$slots:{popper:!0}}))};Z(m,E=>{o()||E(x)},y)}};Z(p,m=>{o()?m(v):m(w,!1)})}A(t,c),K()}var wv=ue("<button><!></button>");function zb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"type",3,"button"),i=b(e,"disabled",3,!1),s=ie(e,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled"]);const l=gv({id:_.with(()=>n()),ref:_.with(()=>r(),u=>r(u)),disabled:_.with(()=>!!i())}),a=P(()=>$(s,l.props,{type:o()}));Ri(t,{get id(){return n()},children:(u,h)=>{var d=F(),f=I(d);{var c=v=>{var w=F(),m=I(w);D(m,()=>e.child,()=>({props:g(a)})),A(v,w)},p=v=>{var w=wv();le(w,()=>({...g(a)}));var m=oe(w);D(m,()=>e.children??U),A(v,w)};Z(f,v=>{e.child?v(c):v(p,!1)})}A(u,d)},$$slots:{default:!0}}),K()}function Hb(t,e){W(e,!0);let n=b(e,"open",15,!1),r=b(e,"onOpenChange",3,pe);Kf({variant:_.with(()=>"dialog"),open:_.with(()=>n(),s=>{n(s),r()(s)})});var o=F(),i=I(o);D(i,()=>e.children??U),A(t,o),K()}var bv=ue("<!> <!>",1),yv=ue("<!> <div><!></div>",1);function Bb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"forceMount",3,!1),i=b(e,"onCloseAutoFocus",3,pe),s=b(e,"onOpenAutoFocus",3,pe),l=b(e,"onEscapeKeydown",3,pe),a=b(e,"onInteractOutside",3,pe),u=b(e,"trapFocus",3,!0),h=b(e,"preventScroll",3,!0),d=b(e,"restoreScrollDelay",3,null),f=ie(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onOpenAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const c=qf({id:_.with(()=>n()),ref:_.with(()=>r(),w=>r(w))}),p=P(()=>$(f,c.props)),v=P(()=>c.root.opts.open.current||o());Vt(t,ae(()=>g(p),{get forceMount(){return o()},get present(){return g(v)},presence:m=>{const y=P(()=>Uh({forceMount:o(),present:c.root.opts.open.current,trapFocus:u(),open:c.root.opts.open.current}));sa(m,{loop:!0,get trapFocus(){return g(y)},get onOpenAutoFocus(){return s()},get id(){return n()},onCloseAutoFocus:E=>{i()(E),!E.defaultPrevented&&c.root.triggerNode?.focus()},focusScope:(E,T)=>{let O=()=>T?.().props;ra(E,ae(()=>g(p),{get enabled(){return c.root.opts.open.current},onEscapeKeydown:C=>{l()(C),!C.defaultPrevented&&c.root.handleClose()},children:(C,R)=>{na(C,ae(()=>g(p),{get enabled(){return c.root.opts.open.current},onInteractOutside:M=>{a()(M),!M.defaultPrevented&&c.root.handleClose()},children:(M,L)=>{la(M,ae(()=>g(p),{get enabled(){return c.root.opts.open.current},children:(J,j)=>{var z=F(),V=I(z);{var X=ne=>{var k=bv(),he=I(k);{var _e=q=>{Cr(q,{get preventScroll(){return h()},get restoreScrollDelay(){return d()}})};Z(he,q=>{c.root.opts.open.current&&q(_e)})}var H=Bt(he,2),Q=Ze(()=>({props:$(g(p),O()),...c.snippetProps}));D(H,()=>e.child,()=>g(Q)),A(ne,k)},re=ne=>{var k=yv(),he=I(k);Cr(he,{get preventScroll(){return h()}});var _e=Bt(he,2);le(_e,Q=>({...Q}),[()=>$(g(p),O())]);var H=oe(_e);D(H,()=>e.children??U),A(ne,k)};Z(V,ne=>{e.child?ne(X):ne(re,!1)})}A(J,z)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})},$$slots:{presence:!0}})),K()}const _v="data-label-root";class Sv{opts;constructor(e){this.opts=e,this.onmousedown=this.onmousedown.bind(this),ce(e)}onmousedown(e){e.detail>1&&e.preventDefault()}#e=P(()=>({id:this.opts.id.current,[_v]:"",onmousedown:this.onmousedown}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}function Cv(t){return new Sv(t)}var xv=ue("<label><!></label>");function Gb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","children","child","id","ref","for"]);const i=Cv({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props,{for:e.for}));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=xv();le(f,()=>({...g(s),for:e.for}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}const Pv="data-link-preview-content",Rv="data-link-preview-trigger";class Av{opts;#e=N(!1);get hasSelection(){return g(this.#e)}set hasSelection(e){S(this.#e,e,!0)}#t=N(!1);get isPointerDownOnContent(){return g(this.#t)}set isPointerDownOnContent(e){S(this.#t,e,!0)}#n=N(!1);get containsSelection(){return g(this.#n)}set containsSelection(e){S(this.#n,e,!0)}timeout=null;#r=N(null);get contentNode(){return g(this.#r)}set contentNode(e){S(this.#r,e,!0)}#o=N(!1);get contentMounted(){return g(this.#o)}set contentMounted(e){S(this.#o,e,!0)}#i=N(null);get triggerNode(){return g(this.#i)}set triggerNode(e){S(this.#i,e,!0)}isOpening=!1;constructor(e){this.opts=e,ye(()=>this.opts.open.current,n=>{if(!n){this.hasSelection=!1;return}const o=Se(document,"pointerup",()=>{this.containsSelection=!1,this.isPointerDownOnContent=!1,Dr(1,()=>{document.getSelection()?.toString()!==""?this.hasSelection=!0:this.hasSelection=!1})});if(!this.contentNode)return;const i=pi(this.contentNode);for(const s of i)s.setAttribute("tabindex","-1");return()=>{o(),this.hasSelection=!1,this.isPointerDownOnContent=!1}})}clearTimeout(){this.timeout&&(window.clearTimeout(this.timeout),this.timeout=null)}handleOpen(){this.clearTimeout(),!this.opts.open.current&&(this.isOpening=!0,this.timeout=window.setTimeout(()=>{this.isOpening&&(this.opts.open.current=!0,this.isOpening=!1)},this.opts.openDelay.current))}immediateClose(){this.clearTimeout(),this.isOpening=!1,this.opts.open.current=!1}handleClose(){this.isOpening=!1,this.clearTimeout(),!this.isPointerDownOnContent&&!this.hasSelection&&(this.timeout=window.setTimeout(()=>{this.opts.open.current=!1},this.opts.closeDelay.current))}}class Ev{opts;root;constructor(e,n){this.opts=e,this.root=n,this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this),ce({...e,onRefChange:r=>{this.root.triggerNode=r}})}onpointerenter(e){Fo(e)||this.root.handleOpen()}onpointerleave(e){Fo(e)||this.root.contentMounted||this.root.immediateClose()}onfocus(e){Xl(e.currentTarget)&&this.root.handleOpen()}onblur(e){this.root.handleClose()}#e=P(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ci(this.root.opts.open.current),"data-state":Ct(this.root.opts.open.current),"aria-controls":this.root.contentNode?.id,role:"button",[Rv]:"",onpointerenter:this.onpointerenter,onfocus:this.onfocus,onblur:this.onblur,onpointerleave:this.onpointerleave}));get props(){return g(this.#e)}set props(e){S(this.#e,e)}}class Tv{opts;root;constructor(e,n){this.opts=e,this.root=n,this.onpointerdown=this.onpointerdown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onfocusout=this.onfocusout.bind(this),ce({...e,onRefChange:r=>{this.root.contentNode=r},deps:()=>this.root.opts.open.current}),Ra({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.opts.ref.current,enabled:()=>this.root.opts.open.current,onPointerExit:()=>{this.root.handleClose()}}),kr(()=>{this.root.clearTimeout()})}onpointerdown(e){const n=e.target;Kn(n)&&(e.currentTarget.contains(n)&&(this.root.containsSelection=!0),this.root.hasSelection=!0,this.root.isPointerDownOnContent=!0)}onpointerenter(e){Fo(e)||this.root.handleOpen()}onfocusout(e){e.preventDefault()}onInteractOutside=e=>{this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};#e=P(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#e)}set snippetProps(e){S(this.#e,e)}#t=P(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ct(this.root.opts.open.current),[Pv]:"",onpointerdown:this.onpointerdown,onpointerenter:this.onpointerenter,onfocusout:this.onfocusout}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}const Oi=new Ae("LinkPreview.Root");function Ov(t){return Oi.set(new Av(t))}function Iv(t){return new Ev(t,Oi.get())}function Fv(t){return new Tv(t,Oi.get())}function Ub(t,e){W(e,!0);let n=b(e,"open",15,!1),r=b(e,"onOpenChange",3,pe),o=b(e,"openDelay",3,700),i=b(e,"closeDelay",3,300);Ov({open:_.with(()=>n(),a=>{n(a),r()(a)}),openDelay:_.with(()=>o()),closeDelay:_.with(()=>i())});var s=F(),l=I(s);_l(l,()=>Pi,(a,u)=>{u(a,{children:(h,d)=>{var f=F(),c=I(f);D(c,()=>e.children??U),A(h,f)},$$slots:{default:!0}})}),A(t,s),K()}var Mv=ue("<div><div><!></div></div>"),Nv=ue("<div><div><!></div></div>"),kv=ue("<!> <!>",1);function Wb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"side",3,"top"),i=b(e,"sideOffset",3,0),s=b(e,"align",3,"center"),l=b(e,"avoidCollisions",3,!0),a=b(e,"arrowPadding",3,0),u=b(e,"sticky",3,"partial"),h=b(e,"hideWhenDetached",3,!1),d=b(e,"collisionPadding",3,0),f=b(e,"onInteractOutside",3,pe),c=b(e,"onEscapeKeydown",3,pe),p=b(e,"forceMount",3,!1),v=ie(e,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const w=Fv({id:_.with(()=>n()),ref:_.with(()=>r(),C=>r(C)),onInteractOutside:_.with(()=>f()),onEscapeKeydown:_.with(()=>c())}),m=P(()=>({side:o(),sideOffset:i(),align:s(),avoidCollisions:l(),arrowPadding:a(),sticky:u(),hideWhenDetached:h(),collisionPadding:d()})),y=P(()=>$(v,g(m),w.props));var x=F(),E=I(x);{var T=C=>{Ei(C,ae(()=>g(y),()=>w.popperProps,{get enabled(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,popper:(M,L)=>{let J=()=>L?.().props,j=()=>L?.().wrapperProps;var z=F();const V=P(()=>$(J(),{style:ln("link-preview")}));var X=I(z);{var re=k=>{var he=F(),_e=I(he),H=Ze(()=>({props:g(V),wrapperProps:j(),...w.snippetProps}));D(_e,()=>e.child,()=>g(H)),A(k,he)},ne=k=>{var he=Mv();le(he,()=>({...j()}));var _e=oe(he);le(_e,()=>({...g(V)}));var H=oe(_e);D(H,()=>e.children??U),A(k,he)};Z(X,k=>{e.child?k(re):k(ne,!1)})}A(M,z)},$$slots:{popper:!0}}))},O=(C,R)=>{{var M=L=>{Ai(L,ae(()=>g(y),()=>w.popperProps,{get present(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,popper:(j,z)=>{let V=()=>z?.().props,X=()=>z?.().wrapperProps;var re=kv();const ne=P(()=>$(V(),{style:ln("link-preview")}));var k=I(re);{var he=Q=>{var q=F(),Y=I(q),me=Ze(()=>({props:g(ne),wrapperProps:X(),...w.snippetProps}));D(Y,()=>e.child,()=>g(me)),A(Q,q)},_e=Q=>{var q=Nv();le(q,()=>({...X()}));var Y=oe(q);le(Y,()=>({...g(ne)}));var me=oe(Y);D(me,()=>e.children??U),A(Q,q)};Z(k,Q=>{e.child?Q(he):Q(_e,!1)})}var H=Bt(k,2);hp(H,{get mounted(){return w.root.contentMounted},set mounted(Q){w.root.contentMounted=Q}}),A(j,re)},$$slots:{popper:!0}}))};Z(C,L=>{p()||L(M)},R)}};Z(E,C=>{p()?C(T):C(O,!1)})}A(t,x),K()}var Dv=ue("<a><!></a>");function Kb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=ie(e,["$$slots","$$events","$$legacy","ref","id","child","children"]);const i=Iv({id:_.with(()=>r()),ref:_.with(()=>n(),u=>n(u))}),s=P(()=>$(o,i.props));var l=F(),a=I(l);_l(a,()=>Ri,(u,h)=>{h(u,{get id(){return r()},children:(d,f)=>{var c=F(),p=I(c);{var v=m=>{var y=F(),x=I(y);D(x,()=>e.child,()=>({props:g(s)})),A(m,y)},w=m=>{var y=Dv();le(y,()=>({...g(s)}));var x=oe(y);D(x,()=>e.children??U),A(m,y)};Z(p,m=>{e.child?m(v):m(w,!1)})}A(d,c)},$$slots:{default:!0}})}),A(t,l),K()}function an(t,e){ge(()=>{let n=0;const r=t();if(!r)return;const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(e)});return o.observe(r),()=>{window.cancelAnimationFrame(n),o.unobserve(r)}})}function jb(t,e){W(e,!0);let n=b(e,"open",15,!1),r=b(e,"onOpenChange",3,pe);hv({open:_.with(()=>n(),o=>{n(o),r()(o)})}),Pi(t,{children:(o,i)=>{var s=F(),l=I(s);D(l,()=>e.children??U),A(o,s)},$$slots:{default:!0}}),K()}function Vv(t,e,n){return Math.min(n,Math.max(e,t))}const Lv="data-scroll-area-root",zv="data-scroll-area-viewport",Hv="data-scroll-area-corner",Bv="data-scroll-area-thumb",Gv="data-scroll-area-scrollbar";class Uv{opts;#e=N(null);get scrollAreaNode(){return g(this.#e)}set scrollAreaNode(e){S(this.#e,e,!0)}#t=N(null);get viewportNode(){return g(this.#t)}set viewportNode(e){S(this.#t,e,!0)}#n=N(null);get contentNode(){return g(this.#n)}set contentNode(e){S(this.#n,e,!0)}#r=N(null);get scrollbarXNode(){return g(this.#r)}set scrollbarXNode(e){S(this.#r,e,!0)}#o=N(null);get scrollbarYNode(){return g(this.#o)}set scrollbarYNode(e){S(this.#o,e,!0)}#i=N(0);get cornerWidth(){return g(this.#i)}set cornerWidth(e){S(this.#i,e,!0)}#l=N(0);get cornerHeight(){return g(this.#l)}set cornerHeight(e){S(this.#l,e,!0)}#a=N(!1);get scrollbarXEnabled(){return g(this.#a)}set scrollbarXEnabled(e){S(this.#a,e,!0)}#s=N(!1);get scrollbarYEnabled(){return g(this.#s)}set scrollbarYEnabled(e){S(this.#s,e,!0)}constructor(e){this.opts=e,ce({...e,onRefChange:n=>{this.scrollAreaNode=n}})}#u=P(()=>({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`},[Lv]:""}));get props(){return g(this.#u)}set props(e){S(this.#u,e)}}class Wv{opts;root;#e=_(fe());#t=_(null);constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.viewportNode=r}}),ce({id:this.#e,ref:this.#t,onRefChange:r=>{this.root.contentNode=r}})}#n=P(()=>({id:this.opts.id.current,style:{overflowX:this.root.scrollbarXEnabled?"scroll":"hidden",overflowY:this.root.scrollbarYEnabled?"scroll":"hidden"},[zv]:""}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}#r=P(()=>({id:this.#e.current,"data-scroll-area-content":"",style:{minWidth:this.root.scrollbarXEnabled?"fit-content":void 0}}));get contentProps(){return g(this.#r)}set contentProps(e){S(this.#r,e)}}class Kv{opts;root;#e=P(()=>this.opts.orientation.current==="horizontal");get isHorizontal(){return g(this.#e)}set isHorizontal(e){S(this.#e,e)}#t=N(!1);get hasThumb(){return g(this.#t)}set hasThumb(e){S(this.#t,e,!0)}constructor(e,n){this.opts=e,this.root=n,ge(()=>(this.isHorizontal?this.root.scrollbarXEnabled=!0:this.root.scrollbarYEnabled=!0,()=>{this.isHorizontal?this.root.scrollbarXEnabled=!1:this.root.scrollbarYEnabled=!1}))}}class jv{scrollbar;root;#e=N(!1);get isVisible(){return g(this.#e)}set isVisible(e){S(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,ge(()=>{const n=this.root.scrollAreaNode,r=this.root.opts.scrollHideDelay.current;let o=0;if(!n)return;const i=()=>{window.clearTimeout(o),Ce(()=>this.isVisible=!0)},s=()=>{o&&window.clearTimeout(o),o=window.setTimeout(()=>{Ce(()=>{this.scrollbar.hasThumb=!1,this.isVisible=!1})},r)},l=mt(Se(n,"pointerenter",i),Se(n,"pointerleave",s));return()=>{window.clearTimeout(o),l()}})}#t=P(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class qv{scrollbar;root;machine=$l("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"}});#e=P(()=>this.machine.state.current==="hidden");get isHidden(){return g(this.#e)}set isHidden(e){S(this.#e,e)}constructor(e){this.scrollbar=e,this.root=e.root;const n=Nr(()=>this.machine.dispatch("SCROLL_END"),100);ge(()=>{const r=this.machine.state.current,o=this.root.opts.scrollHideDelay.current;if(r==="idle"){const i=window.setTimeout(()=>this.machine.dispatch("HIDE"),o);return()=>window.clearTimeout(i)}}),ge(()=>{const r=this.root.viewportNode;if(!r)return;const o=this.scrollbar.isHorizontal?"scrollLeft":"scrollTop";let i=r[o];return qn(r,"scroll",()=>{const a=r[o];i!==a&&(this.machine.dispatch("SCROLL"),n()),i=a})}),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this)}onpointerenter(e){this.machine.dispatch("POINTER_ENTER")}onpointerleave(e){this.machine.dispatch("POINTER_LEAVE")}#t=P(()=>({"data-state":this.machine.state.current==="hidden"?"hidden":"visible",onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class Xv{scrollbar;root;#e=N(!1);get isVisible(){return g(this.#e)}set isVisible(e){S(this.#e,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root;const n=Nr(()=>{const r=this.root.viewportNode;if(!r)return;const o=r.offsetWidth<r.scrollWidth,i=r.offsetHeight<r.scrollHeight;this.isVisible=this.scrollbar.isHorizontal?o:i},10);an(()=>this.root.viewportNode,n),an(()=>this.root.contentNode,n)}#t=P(()=>({"data-state":this.isVisible?"visible":"hidden"}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class Yv{scrollbar;root;#e=N(null);get thumbNode(){return g(this.#e)}set thumbNode(e){S(this.#e,e,!0)}#t=N(0);get pointerOffset(){return g(this.#t)}set pointerOffset(e){S(this.#t,e,!0)}#n=N({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}});get sizes(){return g(this.#n)}set sizes(e){S(this.#n,e)}#r=P(()=>Ta(this.sizes.viewport,this.sizes.content));get thumbRatio(){return g(this.#r)}set thumbRatio(e){S(this.#r,e)}#o=P(()=>this.thumbRatio>0&&this.thumbRatio<1);get hasThumb(){return g(this.#o)}set hasThumb(e){S(this.#o,e)}#i=N("");get prevTransformStyle(){return g(this.#i)}set prevTransformStyle(e){S(this.#i,e,!0)}constructor(e){this.scrollbar=e,this.root=e.root,ge(()=>{this.scrollbar.hasThumb=this.hasThumb}),Gt(()=>{!this.scrollbar.hasThumb&&this.thumbNode&&(this.prevTransformStyle=this.thumbNode.style.transform)})}setSizes(e){this.sizes=e}getScrollPosition(e,n){return fm({pointerPos:e,pointerOffset:this.pointerOffset,sizes:this.sizes,dir:n})}onThumbPointerUp(){this.pointerOffset=0}onThumbPointerDown(e){this.pointerOffset=e}xOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const e=this.root.viewportNode.scrollLeft,r=`translate3d(${Is({scrollPos:e,sizes:this.sizes,dir:this.root.opts.dir.current})}px, 0, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}xOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=e)}xOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollLeft=this.getScrollPosition(e,this.root.opts.dir.current))}yOnThumbPositionChange(){if(!(this.root.viewportNode&&this.thumbNode))return;const e=this.root.viewportNode.scrollTop,r=`translate3d(0, ${Is({scrollPos:e,sizes:this.sizes})}px, 0)`;this.thumbNode.style.transform=r,this.prevTransformStyle=r}yOnWheelScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=e)}yOnDragScroll(e){this.root.viewportNode&&(this.root.viewportNode.scrollTop=this.getScrollPosition(e,this.root.opts.dir.current))}}class Zv{opts;scrollbarVis;root;#e=N();get computedStyle(){return g(this.#e)}set computedStyle(e){S(this.#e,e,!0)}scrollbar;constructor(e,n){this.opts=e,this.scrollbarVis=n,this.root=n.root,this.scrollbar=n.scrollbar,ce({...this.scrollbar.opts,onRefChange:r=>{this.root.scrollbarXNode=r},deps:()=>this.opts.mounted.current}),ge(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),ge(()=>{this.onResize()})}onThumbPointerDown=e=>{this.scrollbarVis.onThumbPointerDown(e.x)};onDragScroll=e=>{this.scrollbarVis.xOnDragScroll(e.x)};onThumbPointerUp=()=>{this.scrollbarVis.onThumbPointerUp()};onThumbPositionChange=()=>{this.scrollbarVis.xOnThumbPositionChange()};onWheelScroll=(e,n)=>{if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollLeft+e.deltaX;this.scrollbarVis.xOnWheelScroll(r),Ia(r,n)&&e.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:Ar(this.computedStyle.paddingLeft),paddingEnd:Ar(this.computedStyle.paddingRight)}})};#t=P(()=>Ur(this.scrollbarVis.sizes));get thumbSize(){return g(this.#t)}set thumbSize(e){S(this.#t,e)}#n=P(()=>({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`}}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}class Jv{opts;scrollbarVis;root;scrollbar;#e=N();get computedStyle(){return g(this.#e)}set computedStyle(e){S(this.#e,e,!0)}constructor(e,n){this.opts=e,this.scrollbarVis=n,this.root=n.root,this.scrollbar=n.scrollbar,ce({...this.scrollbar.opts,onRefChange:r=>{this.root.scrollbarYNode=r},deps:()=>this.opts.mounted.current}),ge(()=>{this.scrollbar.opts.ref.current&&this.opts.mounted.current&&(this.computedStyle=getComputedStyle(this.scrollbar.opts.ref.current))}),ge(()=>{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(e){this.scrollbarVis.onThumbPointerDown(e.y)}onDragScroll(e){this.scrollbarVis.yOnDragScroll(e.y)}onThumbPointerUp(){this.scrollbarVis.onThumbPointerUp()}onThumbPositionChange(){this.scrollbarVis.yOnThumbPositionChange()}onWheelScroll(e,n){if(!this.root.viewportNode)return;const r=this.root.viewportNode.scrollTop+e.deltaY;this.scrollbarVis.yOnWheelScroll(r),Ia(r,n)&&e.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:Ar(this.computedStyle.paddingTop),paddingEnd:Ar(this.computedStyle.paddingBottom)}})}#t=P(()=>Ur(this.scrollbarVis.sizes));get thumbSize(){return g(this.#t)}set thumbSize(e){S(this.#t,e)}#n=P(()=>({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`}}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}class Qv{scrollbarState;root;scrollbarVis;scrollbar;#e=N(null);get rect(){return g(this.#e)}set rect(e){S(this.#e,e)}#t=N("");get prevWebkitUserSelect(){return g(this.#t)}set prevWebkitUserSelect(e){S(this.#t,e,!0)}handleResize;handleThumbPositionChange;handleWheelScroll;handleThumbPointerDown;handleThumbPointerUp;#n=P(()=>this.scrollbarVis.sizes.content-this.scrollbarVis.sizes.viewport);get maxScrollPos(){return g(this.#n)}set maxScrollPos(e){S(this.#n,e)}constructor(e){this.scrollbarState=e,this.root=e.root,this.scrollbarVis=e.scrollbarVis,this.scrollbar=e.scrollbarVis.scrollbar,this.handleResize=Nr(()=>this.scrollbarState.onResize(),10),this.handleThumbPositionChange=this.scrollbarState.onThumbPositionChange,this.handleWheelScroll=this.scrollbarState.onWheelScroll,this.handleThumbPointerDown=this.scrollbarState.onThumbPointerDown,this.handleThumbPointerUp=this.scrollbarState.onThumbPointerUp,ge(()=>{const n=this.maxScrollPos,r=this.scrollbar.opts.ref.current;return this.root.viewportNode,qn(document,"wheel",s=>{const l=s.target;r?.contains(l)&&this.handleWheelScroll(s,n)},{passive:!1})}),Gt(()=>{this.scrollbarVis.sizes,Ce(()=>this.handleThumbPositionChange())}),Gt(()=>{this.handleThumbPositionChange()}),an(()=>this.scrollbar.opts.ref.current,this.handleResize),an(()=>this.root.contentNode,this.handleResize),this.onpointerdown=this.onpointerdown.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onpointerup=this.onpointerup.bind(this)}handleDragScroll(e){if(!this.rect)return;const n=e.clientX-this.rect.left,r=e.clientY-this.rect.top;this.scrollbarState.onDragScroll({x:n,y:r})}onpointerdown(e){if(e.button!==0)return;e.target.setPointerCapture(e.pointerId),this.rect=this.scrollbar.opts.ref.current?.getBoundingClientRect()??null,this.prevWebkitUserSelect=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior="auto"),this.handleDragScroll(e)}onpointermove(e){this.handleDragScroll(e)}onpointerup(e){const n=e.target;n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=this.prevWebkitUserSelect,this.root.viewportNode&&(this.root.viewportNode.style.scrollBehavior=""),this.rect=null}#r=P(()=>$({...this.scrollbarState.props,style:{position:"absolute",...this.scrollbarState.props.style},[Gv]:"",onpointerdown:this.onpointerdown,onpointermove:this.onpointermove,onpointerup:this.onpointerup}));get props(){return g(this.#r)}set props(e){S(this.#r,e)}}class $v{opts;scrollbarState;#e;#t=N();#n=Nr(()=>{g(this.#t)&&(g(this.#t)(),S(this.#t,void 0))},100);constructor(e,n){this.opts=e,this.scrollbarState=n,this.#e=n.root,ce({...e,onRefChange:r=>{this.scrollbarState.scrollbarVis.thumbNode=r},deps:()=>this.opts.mounted.current}),ge(()=>{const r=this.#e.viewportNode;if(!r)return;const o=()=>{if(this.#n(),!g(this.#t)){const s=hm(r,this.scrollbarState.handleThumbPositionChange);S(this.#t,s,!0),this.scrollbarState.handleThumbPositionChange()}};return this.scrollbarState.handleThumbPositionChange(),qn(r,"scroll",o)}),this.onpointerdowncapture=this.onpointerdowncapture.bind(this),this.onpointerup=this.onpointerup.bind(this)}onpointerdowncapture(e){const n=e.target;if(!n)return;const r=n.getBoundingClientRect(),o=e.clientX-r.left,i=e.clientY-r.top;this.scrollbarState.handleThumbPointerDown({x:o,y:i})}onpointerup(e){this.scrollbarState.handleThumbPointerUp()}#r=P(()=>({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,[Bv]:""}));get props(){return g(this.#r)}set props(e){S(this.#r,e)}}class em{opts;root;#e=N(0);#t=N(0);#n=P(()=>!!(g(this.#e)&&g(this.#t)));get hasSize(){return g(this.#n)}set hasSize(e){S(this.#n,e)}constructor(e,n){this.opts=e,this.root=n,an(()=>this.root.scrollbarXNode,()=>{const r=this.root.scrollbarXNode?.offsetHeight||0;this.root.cornerHeight=r,S(this.#t,r,!0)}),an(()=>this.root.scrollbarYNode,()=>{const r=this.root.scrollbarYNode?.offsetWidth||0;this.root.cornerWidth=r,S(this.#e,r,!0)}),ce(e)}#r=P(()=>({id:this.opts.id.current,style:{width:g(this.#e),height:g(this.#t),position:"absolute",right:this.root.opts.dir.current==="ltr"?0:void 0,left:this.root.opts.dir.current==="rtl"?0:void 0,bottom:0},[Hv]:""}));get props(){return g(this.#r)}set props(e){S(this.#r,e)}}const Jn=new Ae("ScrollArea.Root"),Qn=new Ae("ScrollArea.Scrollbar"),Gr=new Ae("ScrollArea.ScrollbarVisible"),Ii=new Ae("ScrollArea.ScrollbarAxis"),Aa=new Ae("ScrollArea.ScrollbarShared");function tm(t){return Jn.set(new Uv(t))}function nm(t){return new Wv(t,Jn.get())}function rm(t){return Qn.set(new Kv(t,Jn.get()))}function om(){return Gr.set(new Yv(Qn.get()))}function Ea(){return new Xv(Qn.get())}function im(){return new qv(Qn.get())}function sm(){return new jv(Qn.get())}function lm(t){return Ii.set(new Zv(t,Gr.get()))}function am(t){return Ii.set(new Jv(t,Gr.get()))}function um(){return Aa.set(new Qv(Ii.get()))}function cm(t){return new $v(t,Aa.get())}function dm(t){return new em(t,Jn.get())}function Ar(t){return t?Number.parseInt(t,10):0}function Ta(t,e){const n=t/e;return Number.isNaN(n)?0:n}function Ur(t){const e=Ta(t.viewport,t.content),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,r=(t.scrollbar.size-n)*e;return Math.max(r,18)}function fm({pointerPos:t,pointerOffset:e,sizes:n,dir:r="ltr"}){const o=Ur(n),i=o/2,s=e||i,l=o-s,a=n.scrollbar.paddingStart+s,u=n.scrollbar.size-n.scrollbar.paddingEnd-l,h=n.content-n.viewport,d=r==="ltr"?[0,h]:[h*-1,0];return Oa([a,u],d)(t)}function Is({scrollPos:t,sizes:e,dir:n="ltr"}){const r=Ur(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,s=e.content-e.viewport,l=i-r,a=n==="ltr"?[0,s]:[s*-1,0],u=Vv(t,a[0],a[1]);return Oa([0,s],[0,l])(u)}function Oa(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const r=(e[1]-e[0])/(t[1]-t[0]);return e[0]+r*(n-t[0])}}function Ia(t,e){return t>0&&t<e}function hm(t,e){let n={left:t.scrollLeft,top:t.scrollTop},r=0;return function o(){const i={left:t.scrollLeft,top:t.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&e(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)}var gm=ue("<div><!></div>");function qb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=b(e,"type",3,"hover"),i=b(e,"dir",3,"ltr"),s=b(e,"scrollHideDelay",3,600),l=ie(e,["$$slots","$$events","$$legacy","ref","id","type","dir","scrollHideDelay","children","child"]);const a=tm({type:_.with(()=>o()),dir:_.with(()=>i()),scrollHideDelay:_.with(()=>s()),id:_.with(()=>r()),ref:_.with(()=>n(),p=>n(p))}),u=P(()=>$(l,a.props));var h=F(),d=I(h);{var f=p=>{var v=F(),w=I(v);D(w,()=>e.child,()=>({props:g(u)})),A(p,v)},c=p=>{var v=gm();le(v,()=>({...g(u)}));var w=oe(v);D(w,()=>e.children??U),A(p,v)};Z(d,p=>{e.child?p(f):p(c,!1)})}A(t,h),K()}var pm=ue("<div><div><!></div></div>");function Xb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=ie(e,["$$slots","$$events","$$legacy","ref","id","children"]);const i=nm({id:_.with(()=>r()),ref:_.with(()=>n(),d=>n(d))}),s=P(()=>$(o,i.props)),l=P(()=>$({},i.contentProps));var a=pm();le(a,()=>({...g(s)}));var u=oe(a);le(u,()=>({...g(l)}));var h=oe(u);D(h,()=>e.children??U),A(t,a),K()}var vm=ue("<div><!></div>");function Fa(t,e){W(e,!0);let n=ie(e,["$$slots","$$events","$$legacy","child","children"]);const r=um(),o=P(()=>$(n,r.props));var i=F(),s=I(i);{var l=u=>{var h=F(),d=I(h);D(d,()=>e.child,()=>({props:g(o)})),A(u,h)},a=u=>{var h=vm();le(h,()=>({...g(o)}));var d=oe(h);D(d,()=>e.children??U),A(u,h)};Z(s,u=>{e.child?u(l):u(a,!1)})}A(t,i),K()}function mm(t,e){W(e,!0);let n=ie(e,["$$slots","$$events","$$legacy"]);const r=new ui,o=lm({mounted:_.with(()=>r.current)}),i=P(()=>$(n,o.props));Fa(t,ae(()=>g(i))),K()}function wm(t,e){W(e,!0);let n=ie(e,["$$slots","$$events","$$legacy"]);const r=new ui,o=am({mounted:_.with(()=>r.current)}),i=P(()=>$(n,o.props));Fa(t,ae(()=>g(i))),K()}function Wr(t,e){W(e,!0);let n=ie(e,["$$slots","$$events","$$legacy"]);const r=om();var o=F(),i=I(o);{var s=a=>{mm(a,ae(()=>n))},l=a=>{wm(a,ae(()=>n))};Z(i,a=>{r.scrollbar.opts.orientation.current==="horizontal"?a(s):a(l,!1)})}A(t,o),K()}function bm(t,e){W(e,!0);let n=b(e,"forceMount",3,!1),r=ie(e,["$$slots","$$events","$$legacy","forceMount"]);const o=Ea(),i=P(()=>$(r,o.props)),s=P(()=>n()||o.isVisible);Vt(t,ae({get present(){return g(s)}},()=>g(i),{presence:a=>{Wr(a,ae(()=>g(i)))},$$slots:{presence:!0}})),K()}function ym(t,e){W(e,!0);let n=b(e,"forceMount",3,!1),r=ie(e,["$$slots","$$events","$$legacy","forceMount"]);const o=im(),i=P(()=>$(r,o.props)),s=P(()=>n()||!o.isHidden);Vt(t,ae(()=>g(i),{get present(){return g(s)},presence:a=>{Wr(a,ae(()=>g(i)))},$$slots:{presence:!0}})),K()}function _m(t,e){W(e,!0);let n=b(e,"forceMount",3,!1),r=ie(e,["$$slots","$$events","$$legacy","forceMount"]);const o=sm(),i=Ea(),s=P(()=>$(r,o.props,i.props,{"data-state":o.isVisible?"visible":"hidden"})),l=P(()=>n()||o.isVisible&&i.isVisible);Vt(t,ae(()=>g(s),{get present(){return g(l)},presence:u=>{Wr(u,ae(()=>g(s)))},$$slots:{presence:!0}})),K()}function Yb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=ie(e,["$$slots","$$events","$$legacy","ref","id","orientation"]);const i=rm({orientation:_.with(()=>e.orientation),id:_.with(()=>r()),ref:_.with(()=>n(),d=>n(d))}),s=P(()=>i.root.opts.type.current);var l=F(),a=I(l);{var u=d=>{_m(d,ae(()=>o,{get id(){return r()}}))},h=(d,f)=>{{var c=v=>{ym(v,ae(()=>o,{get id(){return r()}}))},p=(v,w)=>{{var m=x=>{bm(x,ae(()=>o,{get id(){return r()}}))},y=(x,E)=>{{var T=O=>{Wr(O,ae(()=>o,{get id(){return r()}}))};Z(x,O=>{g(s)==="always"&&O(T)},E)}};Z(v,x=>{g(s)==="auto"?x(m):x(y,!1)},w)}};Z(d,v=>{g(s)==="scroll"?v(c):v(p,!1)},f)}};Z(a,d=>{g(s)==="hover"?d(u):d(h,!1)})}A(t,l),K()}var Sm=ue("<div><!></div>");function Cm(t,e){W(e,!0);let n=b(e,"ref",15,null),r=ie(e,["$$slots","$$events","$$legacy","ref","id","child","children","present"]);const o=new ui,i=cm({id:_.with(()=>e.id),ref:_.with(()=>n(),d=>n(d)),mounted:_.with(()=>o.current)}),s=P(()=>$(r,i.props,{style:{hidden:!e.present}}));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=Sm();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}function Zb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"forceMount",3,!1),i=ie(e,["$$slots","$$events","$$legacy","id","ref","forceMount"]);const s=Gr.get(),l=P(()=>o()||s.hasThumb);Vt(t,ae({get present(){return g(l)}},()=>i,{get id(){return n()},presence:(u,h)=>{let d=()=>h?.().present;Cm(u,ae(()=>i,{get id(){return n()},get present(){return d().current},get ref(){return r()},set ref(f){r(f)}}))},$$slots:{presence:!0}})),K()}var xm=ue("<div><!></div>");function Pm(t,e){W(e,!0);let n=b(e,"ref",15,null),r=ie(e,["$$slots","$$events","$$legacy","ref","id","children","child"]);const o=dm({id:_.with(()=>e.id),ref:_.with(()=>n(),h=>n(h))}),i=P(()=>$(r,o.props));var s=F(),l=I(s);{var a=h=>{var d=F(),f=I(d);D(f,()=>e.child,()=>({props:g(i)})),A(h,d)},u=h=>{var d=xm();le(d,()=>({...g(i)}));var f=oe(d);D(f,()=>e.children??U),A(h,d)};Z(l,h=>{e.child?h(a):h(u,!1)})}A(t,s),K()}function Jb(t,e){W(e,!0);let n=b(e,"ref",15,null),r=b(e,"id",19,fe),o=ie(e,["$$slots","$$events","$$legacy","ref","id"]);const i=Jn.get(),s=P(()=>!!(i.scrollbarXNode&&i.scrollbarYNode)),l=P(()=>i.opts.type.current!=="scroll"&&g(s));var a=F(),u=I(a);{var h=d=>{Pm(d,ae(()=>o,{get id(){return r()},get ref(){return n()},set ref(f){n(f)}}))};Z(u,d=>{g(l)&&d(h)})}A(t,a),K()}const Rm="data-tabs-root",Am="data-tabs-list",Ma="data-tabs-trigger",Em="data-tabs-content";class Tm{opts;rovingFocusGroup;#e=N(Fe([]));get triggerIds(){return g(this.#e)}set triggerIds(e){S(this.#e,e,!0)}valueToTriggerId=new Io;valueToContentId=new Io;constructor(e){this.opts=e,ce(e),this.rovingFocusGroup=Yl({candidateAttr:Ma,rootNodeId:this.opts.id,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,n){return this.triggerIds.push(e),this.valueToTriggerId.set(n,e),()=>{this.triggerIds=this.triggerIds.filter(r=>r!==e),this.valueToTriggerId.delete(n)}}registerContent(e,n){return this.valueToContentId.set(n,e),()=>{this.valueToContentId.delete(n)}}setValue(e){this.opts.value.current=e}#t=P(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[Rm]:""}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class Om{opts;root;#e=P(()=>this.root.opts.disabled.current);constructor(e,n){this.opts=e,this.root=n,ce(e)}#t=P(()=>({id:this.opts.id.current,role:"tablist","aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[Am]:"","data-disabled":xt(g(this.#e))}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}}class Im{opts;root;#e=P(()=>this.root.opts.value.current===this.opts.value.current);#t=P(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=N(0);#r=P(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,n){this.opts=e,this.root=n,ce(e),ye([()=>this.opts.id.current,()=>this.opts.value.current],([r,o])=>this.root.registerTrigger(r,o)),ge(()=>{this.root.triggerIds.length,g(this.#e)||!this.root.opts.value.current?S(this.#n,0):S(this.#n,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#o(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!=="automatic"||g(this.#t)||this.#o()}onclick(e){g(this.#t)||this.#o()}onkeydown(e){if(!g(this.#t)){if(e.key===hi||e.key===Vr){e.preventDefault(),this.#o();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#i=P(()=>({id:this.opts.id.current,role:"tab","data-state":Na(g(this.#e)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":xt(g(this.#t)),"aria-selected":Kl(g(this.#e)),"aria-controls":g(this.#r),[Ma]:"",disabled:nf(g(this.#t)),tabindex:g(this.#n),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown}));get props(){return g(this.#i)}set props(e){S(this.#i,e)}}class Fm{opts;root;#e=P(()=>this.root.opts.value.current===this.opts.value.current);#t=P(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,n){this.opts=e,this.root=n,ce(e),ye([()=>this.opts.id.current,()=>this.opts.value.current],([r,o])=>this.root.registerContent(r,o))}#n=P(()=>({id:this.opts.id.current,role:"tabpanel",hidden:tf(!g(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Na(g(this.#e)),"aria-labelledby":g(this.#t),[Em]:""}));get props(){return g(this.#n)}set props(e){S(this.#n,e)}}const Kr=new Ae("Tabs.Root");function Mm(t){return Kr.set(new Tm(t))}function Nm(t){return new Im(t,Kr.get())}function km(t){return new Om(t,Kr.get())}function Dm(t){return new Fm(t,Kr.get())}function Na(t){return t?"active":"inactive"}var Vm=ue("<div><!></div>");function Qb(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"value",15,""),i=b(e,"onValueChange",3,pe),s=b(e,"orientation",3,"horizontal"),l=b(e,"loop",3,!0),a=b(e,"activationMode",3,"automatic"),u=b(e,"disabled",3,!1),h=ie(e,["$$slots","$$events","$$legacy","id","ref","value","onValueChange","orientation","loop","activationMode","disabled","children","child"]);const d=Mm({id:_.with(()=>n()),value:_.with(()=>o(),m=>{o(m),i()(m)}),orientation:_.with(()=>s()),loop:_.with(()=>l()),activationMode:_.with(()=>a()),disabled:_.with(()=>u()),ref:_.with(()=>r(),m=>r(m))}),f=P(()=>$(h,d.props));var c=F(),p=I(c);{var v=m=>{var y=F(),x=I(y);D(x,()=>e.child,()=>({props:g(f)})),A(m,y)},w=m=>{var y=Vm();le(y,()=>({...g(f)}));var x=oe(y);D(x,()=>e.children??U),A(m,y)};Z(p,m=>{e.child?m(v):m(w,!1)})}A(t,c),K()}var Lm=ue("<div><!></div>");function $b(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","children","child","id","ref","value"]);const i=Dm({value:_.with(()=>e.value),id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=Lm();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}var zm=ue("<div><!></div>");function ey(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=ie(e,["$$slots","$$events","$$legacy","child","children","id","ref"]);const i=km({id:_.with(()=>n()),ref:_.with(()=>r(),d=>r(d))}),s=P(()=>$(o,i.props));var l=F(),a=I(l);{var u=d=>{var f=F(),c=I(f);D(c,()=>e.child,()=>({props:g(s)})),A(d,f)},h=d=>{var f=zm();le(f,()=>({...g(s)}));var c=oe(f);D(c,()=>e.children??U),A(d,f)};Z(a,d=>{e.child?d(u):d(h,!1)})}A(t,l),K()}var Hm=ue("<button><!></button>");function ty(t,e){W(e,!0);let n=b(e,"disabled",3,!1),r=b(e,"id",19,fe),o=b(e,"type",3,"button"),i=b(e,"ref",15,null),s=ie(e,["$$slots","$$events","$$legacy","child","children","disabled","id","type","value","ref"]);const l=Nm({id:_.with(()=>r()),disabled:_.with(()=>n()??!1),value:_.with(()=>e.value),ref:_.with(()=>i(),c=>i(c))}),a=P(()=>$(s,l.props,{type:o()}));var u=F(),h=I(u);{var d=c=>{var p=F(),v=I(p);D(v,()=>e.child,()=>({props:g(a)})),A(c,p)},f=c=>{var p=Hm();le(p,()=>({...g(a)}));var v=oe(p);D(v,()=>e.children??U),A(c,p)};Z(h,c=>{e.child?c(d):c(f,!1)})}A(t,u),K()}function Vo(t,e,n={}){const{immediate:r=!0}=n,o=_(!1);let i;function s(){i&&(clearTimeout(i),i=null)}function l(){o.current=!1,s()}function a(...u){s(),o.current=!0,i=setTimeout(()=>{o.current=!1,i=null,t(...u)},e)}return r&&(o.current=!0,Wn&&a()),kr(()=>{l()}),{isPending:_.readonly(o),start:a,stop:l}}const Bm="data-tooltip-content",Gm="data-tooltip-trigger";class Um{opts;#e=N(!0);get isOpenDelayed(){return g(this.#e)}set isOpenDelayed(e){S(this.#e,e,!0)}isPointerInTransit=_(!1);#t;#n=N(null);constructor(e){this.opts=e,this.#t=Vo(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current,{immediate:!1})}#r=()=>{this.opts.skipDelayDuration.current!==0&&this.#t.start()};#o=()=>{this.#t.stop()};onOpen=e=>{g(this.#n)&&g(this.#n)!==e&&g(this.#n).handleClose(),this.#o(),this.isOpenDelayed=!1,S(this.#n,e,!0)};onClose=e=>{g(this.#n)===e&&S(this.#n,null),this.#r()};isTooltipOpen=e=>g(this.#n)===e}class Wm{opts;provider;#e=P(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return g(this.#e)}set delayDuration(e){S(this.#e,e)}#t=P(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return g(this.#t)}set disableHoverableContent(e){S(this.#t,e)}#n=P(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return g(this.#n)}set disableCloseOnTriggerClick(e){S(this.#n,e)}#r=P(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return g(this.#r)}set disabled(e){S(this.#r,e)}#o=P(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return g(this.#o)}set ignoreNonKeyboardFocus(e){S(this.#o,e)}#i=N(null);get contentNode(){return g(this.#i)}set contentNode(e){S(this.#i,e,!0)}#l=N(null);get triggerNode(){return g(this.#l)}set triggerNode(e){S(this.#l,e,!0)}#a=N(!1);#s;#u=P(()=>this.opts.open.current?g(this.#a)?"delayed-open":"instant-open":"closed");get stateAttr(){return g(this.#u)}set stateAttr(e){S(this.#u,e)}constructor(e,n){this.opts=e,this.provider=n,this.#s=Vo(()=>{S(this.#a,!0),this.opts.open.current=!0},this.delayDuration??0,{immediate:!1}),ye(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#s=Vo(()=>{S(this.#a,!0),this.opts.open.current=!0},this.delayDuration,{immediate:!1}))}),ye(()=>this.opts.open.current,r=>{r?this.provider.onOpen(this):this.provider.onClose(this)})}handleOpen=()=>{this.#s.stop(),S(this.#a,!1),this.opts.open.current=!0};handleClose=()=>{this.#s.stop(),this.opts.open.current=!1};#c=()=>{this.#s.stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(S(this.#a,n>0&&e,!0),this.opts.open.current=!0):this.#s.start()};onTriggerEnter=()=>{this.#c()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#s.stop()}}class Km{opts;root;#e=_(!1);#t=N(!1);#n=P(()=>this.opts.disabled.current||this.root.disabled);constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.triggerNode=r}})}handlePointerUp=()=>{this.#e.current=!1};#r=()=>{g(this.#n)||(this.#e.current=!1)};#o=()=>{g(this.#n)||(this.#e.current=!0,document.addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))};#i=e=>{g(this.#n)||e.pointerType!=="touch"&&(g(this.#t)||this.root.provider.isPointerInTransit.current||(this.root.onTriggerEnter(),S(this.#t,!0)))};#l=()=>{g(this.#n)||(this.root.onTriggerLeave(),S(this.#t,!1))};#a=e=>{this.#e.current||g(this.#n)||this.root.ignoreNonKeyboardFocus&&!Xl(e.currentTarget)||this.root.handleOpen()};#s=()=>{g(this.#n)||this.root.handleClose()};#u=()=>{this.root.disableCloseOnTriggerClick||g(this.#n)||this.root.handleClose()};#c=P(()=>({id:this.opts.id.current,"aria-describedby":this.root.opts.open.current?this.root.contentNode?.id:void 0,"data-state":this.root.stateAttr,"data-disabled":xt(g(this.#n)),"data-delay-duration":`${this.root.delayDuration}`,[Gm]:"",tabindex:g(this.#n)?void 0:0,disabled:this.opts.disabled.current,onpointerup:this.#r,onpointerdown:this.#o,onpointermove:this.#i,onpointerleave:this.#l,onfocus:this.#a,onblur:this.#s,onclick:this.#u}));get props(){return g(this.#c)}set props(e){S(this.#c,e)}}class jm{opts;root;constructor(e,n){this.opts=e,this.root=n,ce({...e,onRefChange:r=>{this.root.contentNode=r},deps:()=>this.root.opts.open.current}),Ra({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()},setIsPointerInTransit:r=>{this.root.provider.isPointerInTransit.current=r},transitTimeout:this.root.provider.opts.skipDelayDuration.current}),Ul(()=>Se(window,"scroll",r=>{const o=r.target;o&&o.contains(this.root.triggerNode)&&this.root.handleClose()}))}onInteractOutside=e=>{if(Kn(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};#e=P(()=>({open:this.root.opts.open.current}));get snippetProps(){return g(this.#e)}set snippetProps(e){S(this.#e,e)}#t=P(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":xt(this.root.disabled),style:{pointerEvents:"auto",outline:"none"},[Bm]:""}));get props(){return g(this.#t)}set props(e){S(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}const ka=new Ae("Tooltip.Provider"),Fi=new Ae("Tooltip.Root");function qm(t){return ka.set(new Um(t))}function Xm(t){return Fi.set(new Wm(t,ka.get()))}function Ym(t){return new Km(t,Fi.get())}function Zm(t){return new jm(t,Fi.get())}function ny(t,e){W(e,!0);let n=b(e,"open",15,!1),r=b(e,"onOpenChange",3,pe);Xm({open:_.with(()=>n(),o=>{n(o),r()(o)}),delayDuration:_.with(()=>e.delayDuration),disableCloseOnTriggerClick:_.with(()=>e.disableCloseOnTriggerClick),disableHoverableContent:_.with(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:_.with(()=>e.ignoreNonKeyboardFocus),disabled:_.with(()=>e.disabled)}),Pi(t,{children:(o,i)=>{var s=F(),l=I(s);D(l,()=>e.children??U),A(o,s)},$$slots:{default:!0}}),K()}var Jm=ue("<div><div><!></div></div>"),Qm=ue("<div><div><!></div></div>");function ry(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"ref",15,null),o=b(e,"side",3,"top"),i=b(e,"sideOffset",3,0),s=b(e,"align",3,"center"),l=b(e,"avoidCollisions",3,!0),a=b(e,"arrowPadding",3,0),u=b(e,"sticky",3,"partial"),h=b(e,"hideWhenDetached",3,!1),d=b(e,"collisionPadding",3,0),f=b(e,"onInteractOutside",3,pe),c=b(e,"onEscapeKeydown",3,pe),p=b(e,"forceMount",3,!1),v=ie(e,["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","hideWhenDetached","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount"]);const w=Zm({id:_.with(()=>n()),ref:_.with(()=>r(),C=>r(C)),onInteractOutside:_.with(()=>f()),onEscapeKeydown:_.with(()=>c())}),m=P(()=>({side:o(),sideOffset:i(),align:s(),avoidCollisions:l(),arrowPadding:a(),sticky:u(),hideWhenDetached:h(),collisionPadding:d()})),y=P(()=>$(v,g(m),w.props));var x=F(),E=I(x);{var T=C=>{Ei(C,ae(()=>g(y),()=>w.popperProps,{get enabled(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,popper:(M,L)=>{let J=()=>L?.().props,j=()=>L?.().wrapperProps;var z=F();const V=P(()=>$(J(),{style:ln("tooltip")}));var X=I(z);{var re=k=>{var he=F(),_e=I(he),H=Ze(()=>({props:g(V),wrapperProps:j(),...w.snippetProps}));D(_e,()=>e.child,()=>g(H)),A(k,he)},ne=k=>{var he=Jm();le(he,()=>({...j()}));var _e=oe(he);le(_e,()=>({...g(V)}));var H=oe(_e);D(H,()=>e.children??U),A(k,he)};Z(X,k=>{e.child?k(re):k(ne,!1)})}A(M,z)},$$slots:{popper:!0}}))},O=(C,R)=>{{var M=L=>{Ai(L,ae(()=>g(y),()=>w.popperProps,{get present(){return w.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,popper:(j,z)=>{let V=()=>z?.().props,X=()=>z?.().wrapperProps;var re=F();const ne=P(()=>$(V(),{style:ln("tooltip")}));var k=I(re);{var he=H=>{var Q=F(),q=I(Q),Y=Ze(()=>({props:g(ne),wrapperProps:X(),...w.snippetProps}));D(q,()=>e.child,()=>g(Y)),A(H,Q)},_e=H=>{var Q=Qm();le(Q,()=>({...X()}));var q=oe(Q);le(q,()=>({...g(ne)}));var Y=oe(q);D(Y,()=>e.children??U),A(H,Q)};Z(k,H=>{e.child?H(he):H(_e,!1)})}A(j,re)},$$slots:{popper:!0}}))};Z(C,L=>{p()||L(M)},R)}};Z(E,C=>{p()?C(T):C(O,!1)})}A(t,x),K()}var $m=ue("<button><!></button>");function oy(t,e){W(e,!0);let n=b(e,"id",19,fe),r=b(e,"disabled",3,!1),o=b(e,"type",3,"button"),i=b(e,"ref",15,null),s=ie(e,["$$slots","$$events","$$legacy","children","child","id","disabled","type","ref"]);const l=Ym({id:_.with(()=>n()),disabled:_.with(()=>r()??!1),ref:_.with(()=>i(),u=>i(u))}),a=P(()=>$(s,l.props,{type:o()}));Ri(t,{get id(){return n()},children:(u,h)=>{var d=F(),f=I(d);{var c=v=>{var w=F(),m=I(w);D(m,()=>e.child,()=>({props:g(a)})),A(v,w)},p=v=>{var w=$m();le(w,()=>({...g(a)}));var m=oe(w);D(m,()=>e.children??U),A(v,w)};Z(f,v=>{e.child?v(c):v(p,!1)})}A(u,d)},$$slots:{default:!0}}),K()}function iy(t,e){W(e,!0);let n=b(e,"delayDuration",3,700),r=b(e,"disableCloseOnTriggerClick",3,!1),o=b(e,"disableHoverableContent",3,!1),i=b(e,"disabled",3,!1),s=b(e,"ignoreNonKeyboardFocus",3,!1),l=b(e,"skipDelayDuration",3,300);qm({delayDuration:_.with(()=>n()),disableCloseOnTriggerClick:_.with(()=>r()),disableHoverableContent:_.with(()=>o()),disabled:_.with(()=>i()),ignoreNonKeyboardFocus:_.with(()=>s()),skipDelayDuration:_.with(()=>l())});var a=F(),u=I(a);D(u,()=>e.children??U),A(t,a),K()}/**
 * @license lucide-svelte v0.517.0 - ISC
 *
 * ISC License
 * 
 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
 * 
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 * 
 */const ew={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var tw=rc("<svg><!><!></svg>");function De(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=Oe(n,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);W(e,!1);let o=b(e,"name",8,void 0),i=b(e,"color",8,"currentColor"),s=b(e,"size",8,24),l=b(e,"strokeWidth",8,2),a=b(e,"absoluteStrokeWidth",8,!1),u=b(e,"iconNode",24,()=>[]);const h=(...p)=>p.filter((v,w,m)=>!!v&&m.indexOf(v)===w).join(" ");Mc();var d=tw();le(d,(p,v)=>({...ew,...r,width:s(),height:s(),stroke:i(),"stroke-width":p,class:v}),[()=>(en(a()),en(l()),en(s()),Ce(()=>a()?Number(l())*24/Number(s()):l())),()=>(en(o()),en(n),Ce(()=>h("lucide-icon","lucide",o()?`lucide-${o()}`:"",n.class)))]);var f=oe(d);bc(f,1,u,mc,(p,v)=>{var w=P(()=>gu(g(v),2));let m=()=>g(w)[0],y=()=>g(w)[1];var x=F(),E=I(x);Cc(E,m,!0,(T,O)=>{le(T,()=>({...y()}))}),A(p,x)});var c=Bt(f);Me(c,e,"default",{}),A(t,d),K()}function sy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]];De(t,ae({name:"arrow-left"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function ly(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]];De(t,ae({name:"arrow-right"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function ay(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m21 16-4 4-4-4"}],["path",{d:"M17 20V4"}],["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}]];De(t,ae({name:"arrow-up-down"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function uy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M20 6 9 17l-5-5"}]];De(t,ae({name:"check"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function cy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m15 18-6-6 6-6"}]];De(t,ae({name:"chevron-left"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function dy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m9 18 6-6-6-6"}]];De(t,ae({name:"chevron-right"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function fy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m11 17-5-5 5-5"}],["path",{d:"m18 17-5-5 5-5"}]];De(t,ae({name:"chevrons-left"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function hy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m6 17 5-5-5-5"}],["path",{d:"m13 17 5-5-5-5"}]];De(t,ae({name:"chevrons-right"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function gy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M10 8h.01"}],["path",{d:"M12 12h.01"}],["path",{d:"M14 8h.01"}],["path",{d:"M16 12h.01"}],["path",{d:"M18 8h.01"}],["path",{d:"M6 8h.01"}],["path",{d:"M7 16h10"}],["path",{d:"M8 12h.01"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2"}]];De(t,ae({name:"keyboard"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function py(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"}]];De(t,ae({name:"moon"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function vy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor"}]];De(t,ae({name:"palette"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function my(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];De(t,ae({name:"search"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function wy(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"m18 14 4 4-4 4"}],["path",{d:"m18 2 4 4-4 4"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45"}]];De(t,ae({name:"shuffle"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}function by(t,e){const n=Oe(e,["children","$$slots","$$events","$$legacy"]),r=[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]];De(t,ae({name:"sun"},()=>n,{get iconNode(){return r},children:(o,i)=>{var s=F(),l=I(s);Me(l,e,"default",{}),A(o,s)},$$slots:{default:!0}}))}var Lo=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},$n=za,nw=Mi,rw=lw,ow=Da,iw=La,sw=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Mi(t){for(var e=[],n=0,r=0,o="",i;(i=sw.exec(t))!=null;){var s=i[0],l=i[1],a=i.index;if(o+=t.slice(r,a),r=a+s.length,l){o+=l[1];continue}o&&(e.push(o),o="");var u=i[2],h=i[3],d=i[4],f=i[5],c=i[6],p=i[7],v=c==="+"||c==="*",w=c==="?"||c==="*",m=u||"/",y=d||f||(p?".*":"[^"+m+"]+?");e.push({name:h||n++,prefix:u||"",delimiter:m,optional:w,repeat:v,pattern:aw(y)})}return r<t.length&&(o+=t.substr(r)),o&&e.push(o),e}function lw(t){return Da(Mi(t))}function Da(t){for(var e=new Array(t.length),n=0;n<t.length;n++)typeof t[n]=="object"&&(e[n]=new RegExp("^"+t[n].pattern+"$"));return function(r){for(var o="",i=r||{},s=0;s<t.length;s++){var l=t[s];if(typeof l=="string"){o+=l;continue}var a=i[l.name],u;if(a==null){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to be defined')}if(Lo(a)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received "'+a+'"');if(a.length===0){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<a.length;h++){if(u=encodeURIComponent(a[h]),!e[s].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');o+=(h===0?l.prefix:l.delimiter)+u}continue}if(u=encodeURIComponent(a),!e[s].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');o+=l.prefix+u}return o}}function Fs(t){return t.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function aw(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Ni(t,e){return t.keys=e,t}function Va(t){return t.sensitive?"":"i"}function uw(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return Ni(t,e)}function cw(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(za(t[o],e,n).source);var i=new RegExp("(?:"+r.join("|")+")",Va(n));return Ni(i,e)}function dw(t,e,n){for(var r=Mi(t),o=La(r,n),i=0;i<r.length;i++)typeof r[i]!="string"&&e.push(r[i]);return Ni(o,e)}function La(t,e){e=e||{};for(var n=e.strict,r=e.end!==!1,o="",i=t[t.length-1],s=typeof i=="string"&&/\/$/.test(i),l=0;l<t.length;l++){var a=t[l];if(typeof a=="string")o+=Fs(a);else{var u=Fs(a.prefix),h=a.pattern;a.repeat&&(h+="(?:"+u+h+")*"),a.optional?u?h="(?:"+u+"("+h+"))?":h="("+h+")?":h=u+"("+h+")",o+=h}}return n||(o=(s?o.slice(0,-2):o)+"(?:\\/(?=$))?"),r?o+="$":o+=n&&s?"":"(?=\\/|$)",new RegExp("^"+o,Va(e))}function za(t,e,n){return e=e||[],Lo(e)?n||(n={}):(n=e,e=[]),t instanceof RegExp?uw(t,e):Lo(t)?cw(t,e,n):dw(t,e,n)}$n.parse=nw;$n.compile=rw;$n.tokensToFunction=ow;$n.tokensToRegExp=iw;var un=typeof document<"u",qe=typeof window<"u",jr=typeof history<"u",fw=typeof process<"u",zo=un&&document.ontouchstart?"touchstart":"click",wt=qe&&!!(window.history.location||window.location);function xe(){this.callbacks=[],this.exits=[],this.current="",this.len=0,this._decodeURLComponents=!0,this._base="",this._strict=!1,this._running=!1,this._hashbang=!1,this.clickHandler=this.clickHandler.bind(this),this._onpopstate=this._onpopstate.bind(this)}xe.prototype.configure=function(t){var e=t||{};this._window=e.window||qe&&window,this._decodeURLComponents=e.decodeURLComponents!==!1,this._popstate=e.popstate!==!1&&qe,this._click=e.click!==!1&&un,this._hashbang=!!e.hashbang;var n=this._window;this._popstate?n.addEventListener("popstate",this._onpopstate,!1):qe&&n.removeEventListener("popstate",this._onpopstate,!1),this._click?n.document.addEventListener(zo,this.clickHandler,!1):un&&n.document.removeEventListener(zo,this.clickHandler,!1),this._hashbang&&qe&&!jr?n.addEventListener("hashchange",this._onpopstate,!1):qe&&n.removeEventListener("hashchange",this._onpopstate,!1)};xe.prototype.base=function(t){if(arguments.length===0)return this._base;this._base=t};xe.prototype._getBase=function(){var t=this._base;if(t)return t;var e=qe&&this._window&&this._window.location;return qe&&this._hashbang&&e&&e.protocol==="file:"&&(t=e.pathname),t};xe.prototype.strict=function(t){if(arguments.length===0)return this._strict;this._strict=t};xe.prototype.start=function(t){var e=t||{};if(this.configure(e),e.dispatch!==!1){this._running=!0;var n;if(wt){var r=this._window,o=r.location;this._hashbang&&~o.hash.indexOf("#!")?n=o.hash.substr(2)+o.search:this._hashbang?n=o.search+o.hash:n=o.pathname+o.search+o.hash}this.replace(n,null,!0,e.dispatch)}};xe.prototype.stop=function(){if(this._running){this.current="",this.len=0,this._running=!1;var t=this._window;this._click&&t.document.removeEventListener(zo,this.clickHandler,!1),qe&&t.removeEventListener("popstate",this._onpopstate,!1),qe&&t.removeEventListener("hashchange",this._onpopstate,!1)}};xe.prototype.show=function(t,e,n,r){var o=new er(t,e,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,n!==!1&&this.dispatch(o,i),o.handled!==!1&&r!==!1&&o.pushState(),o};xe.prototype.back=function(t,e){var n=this;if(this.len>0){var r=this._window;jr&&r.history.back(),this.len--}else setTimeout(t?function(){n.show(t,e)}:function(){n.show(n._getBase(),e)})};xe.prototype.redirect=function(t,e){var n=this;typeof t=="string"&&typeof e=="string"&&qr.call(this,t,function(r){setTimeout(function(){n.replace(e)},0)}),typeof t=="string"&&typeof e>"u"&&setTimeout(function(){n.replace(t)},0)};xe.prototype.replace=function(t,e,n,r){var o=new er(t,e,this),i=this.prevContext;return this.prevContext=o,this.current=o.path,o.init=n,o.save(),r!==!1&&this.dispatch(o,i),o};xe.prototype.dispatch=function(t,e){var n=0,r=0,o=this;function i(){var l=o.exits[r++];if(!l)return s();l(e,i)}function s(){var l=o.callbacks[n++];if(t.path!==o.current){t.handled=!1;return}if(!l)return hw.call(o,t);l(t,s)}e?i():s()};xe.prototype.exit=function(t,e){if(typeof t=="function")return this.exit("*",t);for(var n=new tr(t,null,this),r=1;r<arguments.length;++r)this.exits.push(n.middleware(arguments[r]))};xe.prototype.clickHandler=function(t){if(this._which(t)===1&&!(t.metaKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented){var e=t.target,n=t.path||(t.composedPath?t.composedPath():null);if(n){for(var r=0;r<n.length;r++)if(n[r].nodeName&&n[r].nodeName.toUpperCase()==="A"&&n[r].href){e=n[r];break}}for(;e&&e.nodeName.toUpperCase()!=="A";)e=e.parentNode;if(!(!e||e.nodeName.toUpperCase()!=="A")){var o=typeof e.href=="object"&&e.href.constructor.name==="SVGAnimatedString";if(!(e.hasAttribute("download")||e.getAttribute("rel")==="external")){var i=e.getAttribute("href");if(!(!this._hashbang&&this._samePath(e)&&(e.hash||i==="#"))&&!(i&&i.indexOf("mailto:")>-1)&&!(o?e.target.baseVal:e.target)&&!(!o&&!this.sameOrigin(e.href))){var s=o?e.href.baseVal:e.pathname+e.search+(e.hash||"");s=s[0]!=="/"?"/"+s:s,fw&&s.match(/^\/[a-zA-Z]:\//)&&(s=s.replace(/^\/[a-zA-Z]:\//,"/"));var l=s,a=this._getBase();s.indexOf(a)===0&&(s=s.substr(a.length)),this._hashbang&&(s=s.replace("#!","")),!(a&&l===s&&(!wt||this._window.location.protocol!=="file:"))&&(t.preventDefault(),this.show(l))}}}}};xe.prototype._onpopstate=function(){var t=!1;return qe?(un&&document.readyState==="complete"?t=!0:window.addEventListener("load",function(){setTimeout(function(){t=!0},0)}),function(n){if(t){var r=this;if(n.state){var o=n.state.path;r.replace(o,n.state)}else if(wt){var i=r._window.location;r.show(i.pathname+i.search+i.hash,void 0,void 0,!1)}}}):function(){}}();xe.prototype._which=function(t){return t=t||qe&&this._window.event,t.which==null?t.button:t.which};xe.prototype._toURL=function(t){var e=this._window;if(typeof URL=="function"&&wt)return new URL(t,e.location.toString());if(un){var n=e.document.createElement("a");return n.href=t,n}};xe.prototype.sameOrigin=function(t){if(!t||!wt)return!1;var e=this._toURL(t),n=this._window,r=n.location;return r.protocol===e.protocol&&r.hostname===e.hostname&&(r.port===e.port||r.port===""&&(e.port==80||e.port==443))};xe.prototype._samePath=function(t){if(!wt)return!1;var e=this._window,n=e.location;return t.pathname===n.pathname&&t.search===n.search};xe.prototype._decodeURLEncodedURIComponent=function(t){return typeof t!="string"?t:this._decodeURLComponents?decodeURIComponent(t.replace(/\+/g," ")):t};function Ha(){var t=new xe;function e(){return qr.apply(t,arguments)}return e.callbacks=t.callbacks,e.exits=t.exits,e.base=t.base.bind(t),e.strict=t.strict.bind(t),e.start=t.start.bind(t),e.stop=t.stop.bind(t),e.show=t.show.bind(t),e.back=t.back.bind(t),e.redirect=t.redirect.bind(t),e.replace=t.replace.bind(t),e.dispatch=t.dispatch.bind(t),e.exit=t.exit.bind(t),e.configure=t.configure.bind(t),e.sameOrigin=t.sameOrigin.bind(t),e.clickHandler=t.clickHandler.bind(t),e.create=Ha,Object.defineProperty(e,"len",{get:function(){return t.len},set:function(n){t.len=n}}),Object.defineProperty(e,"current",{get:function(){return t.current},set:function(n){t.current=n}}),e.Context=er,e.Route=tr,e}function qr(t,e){if(typeof t=="function")return qr.call(this,"*",t);if(typeof e=="function")for(var n=new tr(t,null,this),r=1;r<arguments.length;++r)this.callbacks.push(n.middleware(arguments[r]));else typeof t=="string"?this[typeof e=="string"?"redirect":"show"](t,e):this.start(t)}function hw(t){if(!t.handled){var e,n=this,r=n._window;n._hashbang?e=wt&&this._getBase()+r.location.hash.replace("#!",""):e=wt&&r.location.pathname+r.location.search,e!==t.canonicalPath&&(n.stop(),t.handled=!1,wt&&(r.location.href=t.canonicalPath))}}function gw(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function er(t,e,n){var r=this.page=n||qr,o=r._window,i=r._hashbang,s=r._getBase();t[0]==="/"&&t.indexOf(s)!==0&&(t=s+(i?"#!":"")+t);var l=t.indexOf("?");this.canonicalPath=t;var a=new RegExp("^"+gw(s));if(this.path=t.replace(a,"")||"/",i&&(this.path=this.path.replace("#!","")||"/"),this.title=un&&o.document.title,this.state=e||{},this.state.path=t,this.querystring=~l?r._decodeURLEncodedURIComponent(t.slice(l+1)):"",this.pathname=r._decodeURLEncodedURIComponent(~l?t.slice(0,l):t),this.params={},this.hash="",!i){if(!~this.path.indexOf("#"))return;var u=this.path.split("#");this.path=this.pathname=u[0],this.hash=r._decodeURLEncodedURIComponent(u[1])||"",this.querystring=this.querystring.split("#")[0]}}er.prototype.pushState=function(){var t=this.page,e=t._window,n=t._hashbang;t.len++,jr&&e.history.pushState(this.state,this.title,n&&this.path!=="/"?"#!"+this.path:this.canonicalPath)};er.prototype.save=function(){var t=this.page;jr&&t._window.history.replaceState(this.state,this.title,t._hashbang&&this.path!=="/"?"#!"+this.path:this.canonicalPath)};function tr(t,e,n){var r=this.page=n||ki,o=e||{};o.strict=o.strict||r._strict,this.path=t==="*"?"(.*)":t,this.method="GET",this.regexp=$n(this.path,this.keys=[],o)}tr.prototype.middleware=function(t){var e=this;return function(n,r){if(e.match(n.path,n.params))return n.routePath=e.path,t(n,r);r()}};tr.prototype.match=function(t,e){var n=this.keys,r=t.indexOf("?"),o=~r?t.slice(0,r):t,i=this.regexp.exec(decodeURIComponent(o));if(!i)return!1;delete e[0];for(var s=1,l=i.length;s<l;++s){var a=n[s-1],u=this.page._decodeURLEncodedURIComponent(i[s]);(u!==void 0||!hasOwnProperty.call(e,a.name))&&(e[a.name]=u)}return!0};var ki=Ha(),pw=ki,vw=ki;pw.default=vw;var co={exports:{}},Ms;function yy(){return Ms||(Ms=1,function(t){(function(e,n,r){if(!e)return;for(var o={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},i={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},a,u=1;u<20;++u)o[111+u]="f"+u;for(u=0;u<=9;++u)o[u+96]=u.toString();function h(C,R,M){if(C.addEventListener){C.addEventListener(R,M,!1);return}C.attachEvent("on"+R,M)}function d(C){if(C.type=="keypress"){var R=String.fromCharCode(C.which);return C.shiftKey||(R=R.toLowerCase()),R}return o[C.which]?o[C.which]:i[C.which]?i[C.which]:String.fromCharCode(C.which).toLowerCase()}function f(C,R){return C.sort().join(",")===R.sort().join(",")}function c(C){var R=[];return C.shiftKey&&R.push("shift"),C.altKey&&R.push("alt"),C.ctrlKey&&R.push("ctrl"),C.metaKey&&R.push("meta"),R}function p(C){if(C.preventDefault){C.preventDefault();return}C.returnValue=!1}function v(C){if(C.stopPropagation){C.stopPropagation();return}C.cancelBubble=!0}function w(C){return C=="shift"||C=="ctrl"||C=="alt"||C=="meta"}function m(){if(!a){a={};for(var C in o)C>95&&C<112||o.hasOwnProperty(C)&&(a[o[C]]=C)}return a}function y(C,R,M){return M||(M=m()[C]?"keydown":"keypress"),M=="keypress"&&R.length&&(M="keydown"),M}function x(C){return C==="+"?["+"]:(C=C.replace(/\+{2}/g,"+plus"),C.split("+"))}function E(C,R){var M,L,J,j=[];for(M=x(C),J=0;J<M.length;++J)L=M[J],l[L]&&(L=l[L]),R&&R!="keypress"&&s[L]&&(L=s[L],j.push("shift")),w(L)&&j.push(L);return R=y(L,j,R),{key:L,modifiers:j,action:R}}function T(C,R){return C===null||C===n?!1:C===R?!0:T(C.parentNode,R)}function O(C){var R=this;if(C=C||n,!(R instanceof O))return new O(C);R.target=C,R._callbacks={},R._directMap={};var M={},L,J=!1,j=!1,z=!1;function V(H){H=H||{};var Q=!1,q;for(q in M){if(H[q]){Q=!0;continue}M[q]=0}Q||(z=!1)}function X(H,Q,q,Y,me,Ke){var se,Pe,Qe=[],Ve=q.type;if(!R._callbacks[H])return[];for(Ve=="keyup"&&w(H)&&(Q=[H]),se=0;se<R._callbacks[H].length;++se)if(Pe=R._callbacks[H][se],!(!Y&&Pe.seq&&M[Pe.seq]!=Pe.level)&&Ve==Pe.action&&(Ve=="keypress"&&!q.metaKey&&!q.ctrlKey||f(Q,Pe.modifiers))){var mn=!Y&&Pe.combo==me,Yt=Y&&Pe.seq==Y&&Pe.level==Ke;(mn||Yt)&&R._callbacks[H].splice(se,1),Qe.push(Pe)}return Qe}function re(H,Q,q,Y){R.stopCallback(Q,Q.target||Q.srcElement,q,Y)||H(Q,q)===!1&&(p(Q),v(Q))}R._handleKey=function(H,Q,q){var Y=X(H,Q,q),me,Ke={},se=0,Pe=!1;for(me=0;me<Y.length;++me)Y[me].seq&&(se=Math.max(se,Y[me].level));for(me=0;me<Y.length;++me){if(Y[me].seq){if(Y[me].level!=se)continue;Pe=!0,Ke[Y[me].seq]=1,re(Y[me].callback,q,Y[me].combo,Y[me].seq);continue}Pe||re(Y[me].callback,q,Y[me].combo)}var Qe=q.type=="keypress"&&j;q.type==z&&!w(H)&&!Qe&&V(Ke),j=Pe&&q.type=="keydown"};function ne(H){typeof H.which!="number"&&(H.which=H.keyCode);var Q=d(H);if(Q){if(H.type=="keyup"&&J===Q){J=!1;return}R.handleKey(Q,c(H),H)}}function k(){clearTimeout(L),L=setTimeout(V,1e3)}function he(H,Q,q,Y){M[H]=0;function me(Ve){return function(){z=Ve,++M[H],k()}}function Ke(Ve){re(q,Ve,H),Y!=="keyup"&&(J=d(Ve)),setTimeout(V,10)}for(var se=0;se<Q.length;++se){var Pe=se+1===Q.length,Qe=Pe?Ke:me(Y||E(Q[se+1]).action);_e(Q[se],Qe,Y,H,se)}}function _e(H,Q,q,Y,me){R._directMap[H+":"+q]=Q,H=H.replace(/\s+/g," ");var Ke=H.split(" "),se;if(Ke.length>1){he(H,Ke,Q,q);return}se=E(H,q),R._callbacks[se.key]=R._callbacks[se.key]||[],X(se.key,se.modifiers,{type:se.action},Y,H,me),R._callbacks[se.key][Y?"unshift":"push"]({callback:Q,modifiers:se.modifiers,action:se.action,seq:Y,level:me,combo:H})}R._bindMultiple=function(H,Q,q){for(var Y=0;Y<H.length;++Y)_e(H[Y],Q,q)},h(C,"keypress",ne),h(C,"keydown",ne),h(C,"keyup",ne)}O.prototype.bind=function(C,R,M){var L=this;return C=C instanceof Array?C:[C],L._bindMultiple.call(L,C,R,M),L},O.prototype.unbind=function(C,R){var M=this;return M.bind.call(M,C,function(){},R)},O.prototype.trigger=function(C,R){var M=this;return M._directMap[C+":"+R]&&M._directMap[C+":"+R]({},C),M},O.prototype.reset=function(){var C=this;return C._callbacks={},C._directMap={},C},O.prototype.stopCallback=function(C,R){var M=this;if((" "+R.className+" ").indexOf(" mousetrap ")>-1||T(R,M.target))return!1;if("composedPath"in C&&typeof C.composedPath=="function"){var L=C.composedPath()[0];L!==C.target&&(R=L)}return R.tagName=="INPUT"||R.tagName=="SELECT"||R.tagName=="TEXTAREA"||R.isContentEditable},O.prototype.handleKey=function(){var C=this;return C._handleKey.apply(C,arguments)},O.addKeycodes=function(C){for(var R in C)C.hasOwnProperty(R)&&(o[R]=C[R]);a=null},O.init=function(){var C=O(n);for(var R in C)R.charAt(0)!=="_"&&(O[R]=function(M){return function(){return C[M].apply(C,arguments)}}(R))},O.init(),e.Mousetrap=O,t.exports&&(t.exports=O)})(typeof window<"u"?window:null,typeof window<"u"?document:null)}(co)),co.exports}/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function Ot(t,e){return typeof t=="function"?t(e):t}function We(t,e){return n=>{e.setState(r=>({...r,[t]:Ot(n,r[t])}))}}function Xr(t){return t instanceof Function}function mw(t){return Array.isArray(t)&&t.every(e=>typeof e=="number")}function ww(t,e){const n=[],r=o=>{o.forEach(i=>{n.push(i);const s=e(i);s!=null&&s.length&&r(s)})};return r(t),n}function ee(t,e,n){let r=[],o;return i=>{let s;n.key&&n.debug&&(s=Date.now());const l=t(i);if(!(l.length!==r.length||l.some((h,d)=>r[d]!==h)))return o;r=l;let u;if(n.key&&n.debug&&(u=Date.now()),o=e(...l),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-s)*100)/100,d=Math.round((Date.now()-u)*100)/100,f=d/16,c=(p,v)=>{for(p=String(p);p.length<v;)p=" "+p;return p};console.info(`%c⏱ ${c(d,5)} /${c(h,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n?.key)}return o}}function te(t,e,n,r){return{debug:()=>{var o;return(o=t?.debugAll)!=null?o:t[e]},key:!1,onChange:r}}function bw(t,e,n,r){const o=()=>{var s;return(s=i.getValue())!=null?s:t.options.renderFallbackValue},i={id:`${e.id}_${n.id}`,row:e,column:n,getValue:()=>e.getValue(r),renderValue:o,getContext:ee(()=>[t,n,e,i],(s,l,a,u)=>({table:s,column:l,row:a,cell:u,getValue:u.getValue,renderValue:u.renderValue}),te(t.options,"debugCells"))};return t._features.forEach(s=>{s.createCell==null||s.createCell(i,n,e,t)},{}),i}function yw(t,e,n,r){var o,i;const l={...t._getDefaultColumnDef(),...e},a=l.accessorKey;let u=(o=(i=l.id)!=null?i:a?typeof String.prototype.replaceAll=="function"?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,h;if(l.accessorFn?h=l.accessorFn:a&&(a.includes(".")?h=f=>{let c=f;for(const v of a.split(".")){var p;c=(p=c)==null?void 0:p[v]}return c}:h=f=>f[l.accessorKey]),!u)throw new Error;let d={id:`${String(u)}`,accessorFn:h,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:ee(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(c=>c.getFlatColumns())]},te(t.options,"debugColumns")),getLeafColumns:ee(()=>[t._getOrderColumnsFn()],f=>{var c;if((c=d.columns)!=null&&c.length){let p=d.columns.flatMap(v=>v.getLeafColumns());return f(p)}return[d]},te(t.options,"debugColumns"))};for(const f of t._features)f.createColumn==null||f.createColumn(d,t);return d}const Te="debugHeaders";function Ns(t,e,n){var r;let i={id:(r=n.id)!=null?r:e.id,column:e,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const s=[],l=a=>{a.subHeaders&&a.subHeaders.length&&a.subHeaders.map(l),s.push(a)};return l(i),s},getContext:()=>({table:t,header:i,column:e})};return t._features.forEach(s=>{s.createHeader==null||s.createHeader(i,t)}),i}const _w={createTable:t=>{t.getHeaderGroups=ee(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,o)=>{var i,s;const l=(i=r?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],a=(s=o?.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],u=n.filter(d=>!(r!=null&&r.includes(d.id))&&!(o!=null&&o.includes(d.id)));return ar(e,[...l,...u,...a],t)},te(t.options,Te)),t.getCenterHeaderGroups=ee(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),ar(e,n,t,"center")),te(t.options,Te)),t.getLeftHeaderGroups=ee(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(e,n,r)=>{var o;const i=(o=r?.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return ar(e,i,t,"left")},te(t.options,Te)),t.getRightHeaderGroups=ee(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(e,n,r)=>{var o;const i=(o=r?.map(s=>n.find(l=>l.id===s)).filter(Boolean))!=null?o:[];return ar(e,i,t,"right")},te(t.options,Te)),t.getFooterGroups=ee(()=>[t.getHeaderGroups()],e=>[...e].reverse(),te(t.options,Te)),t.getLeftFooterGroups=ee(()=>[t.getLeftHeaderGroups()],e=>[...e].reverse(),te(t.options,Te)),t.getCenterFooterGroups=ee(()=>[t.getCenterHeaderGroups()],e=>[...e].reverse(),te(t.options,Te)),t.getRightFooterGroups=ee(()=>[t.getRightHeaderGroups()],e=>[...e].reverse(),te(t.options,Te)),t.getFlatHeaders=ee(()=>[t.getHeaderGroups()],e=>e.map(n=>n.headers).flat(),te(t.options,Te)),t.getLeftFlatHeaders=ee(()=>[t.getLeftHeaderGroups()],e=>e.map(n=>n.headers).flat(),te(t.options,Te)),t.getCenterFlatHeaders=ee(()=>[t.getCenterHeaderGroups()],e=>e.map(n=>n.headers).flat(),te(t.options,Te)),t.getRightFlatHeaders=ee(()=>[t.getRightHeaderGroups()],e=>e.map(n=>n.headers).flat(),te(t.options,Te)),t.getCenterLeafHeaders=ee(()=>[t.getCenterFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(t.options,Te)),t.getLeftLeafHeaders=ee(()=>[t.getLeftFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(t.options,Te)),t.getRightLeafHeaders=ee(()=>[t.getRightFlatHeaders()],e=>e.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),te(t.options,Te)),t.getLeafHeaders=ee(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(e,n,r)=>{var o,i,s,l,a,u;return[...(o=(i=e[0])==null?void 0:i.headers)!=null?o:[],...(s=(l=n[0])==null?void 0:l.headers)!=null?s:[],...(a=(u=r[0])==null?void 0:u.headers)!=null?a:[]].map(h=>h.getLeafHeaders()).flat()},te(t.options,Te))}};function ar(t,e,n,r){var o,i;let s=0;const l=function(f,c){c===void 0&&(c=1),s=Math.max(s,c),f.filter(p=>p.getIsVisible()).forEach(p=>{var v;(v=p.columns)!=null&&v.length&&l(p.columns,c+1)},0)};l(t);let a=[];const u=(f,c)=>{const p={depth:c,id:[r,`${c}`].filter(Boolean).join("_"),headers:[]},v=[];f.forEach(w=>{const m=[...v].reverse()[0],y=w.column.depth===p.depth;let x,E=!1;if(y&&w.column.parent?x=w.column.parent:(x=w.column,E=!0),m&&m?.column===x)m.subHeaders.push(w);else{const T=Ns(n,x,{id:[r,c,x.id,w?.id].filter(Boolean).join("_"),isPlaceholder:E,placeholderId:E?`${v.filter(O=>O.column===x).length}`:void 0,depth:c,index:v.length});T.subHeaders.push(w),v.push(T)}p.headers.push(w),w.headerGroup=p}),a.push(p),c>0&&u(v,c-1)},h=e.map((f,c)=>Ns(n,f,{depth:s,index:c}));u(h,s-1),a.reverse();const d=f=>f.filter(p=>p.column.getIsVisible()).map(p=>{let v=0,w=0,m=[0];p.subHeaders&&p.subHeaders.length?(m=[],d(p.subHeaders).forEach(x=>{let{colSpan:E,rowSpan:T}=x;v+=E,m.push(T)})):v=1;const y=Math.min(...m);return w=w+y,p.colSpan=v,p.rowSpan=w,{colSpan:v,rowSpan:w}});return d((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}const Di=(t,e,n,r,o,i,s)=>{let l={id:e,index:r,original:n,depth:o,parentId:s,_valuesCache:{},_uniqueValuesCache:{},getValue:a=>{if(l._valuesCache.hasOwnProperty(a))return l._valuesCache[a];const u=t.getColumn(a);if(u!=null&&u.accessorFn)return l._valuesCache[a]=u.accessorFn(l.original,r),l._valuesCache[a]},getUniqueValues:a=>{if(l._uniqueValuesCache.hasOwnProperty(a))return l._uniqueValuesCache[a];const u=t.getColumn(a);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[a]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[a]):(l._uniqueValuesCache[a]=[l.getValue(a)],l._uniqueValuesCache[a])},renderValue:a=>{var u;return(u=l.getValue(a))!=null?u:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>ww(l.subRows,a=>a.subRows),getParentRow:()=>l.parentId?t.getRow(l.parentId,!0):void 0,getParentRows:()=>{let a=[],u=l;for(;;){const h=u.getParentRow();if(!h)break;a.push(h),u=h}return a.reverse()},getAllCells:ee(()=>[t.getAllLeafColumns()],a=>a.map(u=>bw(t,l,u,u.id)),te(t.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[l.getAllCells()],a=>a.reduce((u,h)=>(u[h.column.id]=h,u),{}),te(t.options,"debugRows"))};for(let a=0;a<t._features.length;a++){const u=t._features[a];u==null||u.createRow==null||u.createRow(l,t)}return l},Sw={createColumn:(t,e)=>{t._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():e.getPreFilteredRowModel(),t._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},Ba=(t,e,n)=>{var r,o;const i=n==null||(r=n.toString())==null?void 0:r.toLowerCase();return!!(!((o=t.getValue(e))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};Ba.autoRemove=t=>tt(t);const Ga=(t,e,n)=>{var r;return!!(!((r=t.getValue(e))==null||(r=r.toString())==null)&&r.includes(n))};Ga.autoRemove=t=>tt(t);const Ua=(t,e,n)=>{var r;return((r=t.getValue(e))==null||(r=r.toString())==null?void 0:r.toLowerCase())===n?.toLowerCase()};Ua.autoRemove=t=>tt(t);const Wa=(t,e,n)=>{var r;return(r=t.getValue(e))==null?void 0:r.includes(n)};Wa.autoRemove=t=>tt(t);const Ka=(t,e,n)=>!n.some(r=>{var o;return!((o=t.getValue(e))!=null&&o.includes(r))});Ka.autoRemove=t=>tt(t)||!(t!=null&&t.length);const ja=(t,e,n)=>n.some(r=>{var o;return(o=t.getValue(e))==null?void 0:o.includes(r)});ja.autoRemove=t=>tt(t)||!(t!=null&&t.length);const qa=(t,e,n)=>t.getValue(e)===n;qa.autoRemove=t=>tt(t);const Xa=(t,e,n)=>t.getValue(e)==n;Xa.autoRemove=t=>tt(t);const Vi=(t,e,n)=>{let[r,o]=n;const i=t.getValue(e);return i>=r&&i<=o};Vi.resolveFilterValue=t=>{let[e,n]=t,r=typeof e!="number"?parseFloat(e):e,o=typeof n!="number"?parseFloat(n):n,i=e===null||Number.isNaN(r)?-1/0:r,s=n===null||Number.isNaN(o)?1/0:o;if(i>s){const l=i;i=s,s=l}return[i,s]};Vi.autoRemove=t=>tt(t)||tt(t[0])&&tt(t[1]);const pt={includesString:Ba,includesStringSensitive:Ga,equalsString:Ua,arrIncludes:Wa,arrIncludesAll:Ka,arrIncludesSome:ja,equals:qa,weakEquals:Xa,inNumberRange:Vi};function tt(t){return t==null||t===""}const Cw={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:We("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,e)=>{t.getAutoFilterFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=n?.getValue(t.id);return typeof r=="string"?pt.includesString:typeof r=="number"?pt.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?pt.equals:Array.isArray(r)?pt.arrIncludes:pt.weakEquals},t.getFilterFn=()=>{var n,r;return Xr(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(n=(r=e.options.filterFns)==null?void 0:r[t.columnDef.filterFn])!=null?n:pt[t.columnDef.filterFn]},t.getCanFilter=()=>{var n,r,o;return((n=t.columnDef.enableColumnFilter)!=null?n:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((o=e.options.enableFilters)!=null?o:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var n;return(n=e.getState().columnFilters)==null||(n=n.find(r=>r.id===t.id))==null?void 0:n.value},t.getFilterIndex=()=>{var n,r;return(n=(r=e.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===t.id))!=null?n:-1},t.setFilterValue=n=>{e.setColumnFilters(r=>{const o=t.getFilterFn(),i=r?.find(h=>h.id===t.id),s=Ot(n,i?i.value:void 0);if(ks(o,s,t)){var l;return(l=r?.filter(h=>h.id!==t.id))!=null?l:[]}const a={id:t.id,value:s};if(i){var u;return(u=r?.map(h=>h.id===t.id?a:h))!=null?u:[]}return r!=null&&r.length?[...r,a]:[a]})}},createRow:(t,e)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=e=>{const n=t.getAllLeafColumns(),r=o=>{var i;return(i=Ot(e,o))==null?void 0:i.filter(s=>{const l=n.find(a=>a.id===s.id);if(l){const a=l.getFilterFn();if(ks(a,s.value,l))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(r)},t.resetColumnFilters=e=>{var n,r;t.setColumnFilters(e?[]:(n=(r=t.initialState)==null?void 0:r.columnFilters)!=null?n:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function ks(t,e,n){return(t&&t.autoRemove?t.autoRemove(e,n):!1)||typeof e>"u"||typeof e=="string"&&!e}const xw=(t,e,n)=>n.reduce((r,o)=>{const i=o.getValue(t);return r+(typeof i=="number"?i:0)},0),Pw=(t,e,n)=>{let r;return n.forEach(o=>{const i=o.getValue(t);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},Rw=(t,e,n)=>{let r;return n.forEach(o=>{const i=o.getValue(t);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},Aw=(t,e,n)=>{let r,o;return n.forEach(i=>{const s=i.getValue(t);s!=null&&(r===void 0?s>=s&&(r=o=s):(r>s&&(r=s),o<s&&(o=s)))}),[r,o]},Ew=(t,e)=>{let n=0,r=0;if(e.forEach(o=>{let i=o.getValue(t);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},Tw=(t,e)=>{if(!e.length)return;const n=e.map(i=>i.getValue(t));if(!mw(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,s)=>i-s);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},Ow=(t,e)=>Array.from(new Set(e.map(n=>n.getValue(t))).values()),Iw=(t,e)=>new Set(e.map(n=>n.getValue(t))).size,Fw=(t,e)=>e.length,fo={sum:xw,min:Pw,max:Rw,extent:Aw,mean:Ew,median:Tw,unique:Ow,uniqueCount:Iw,count:Fw},Mw={getDefaultColumnDef:()=>({aggregatedCell:t=>{var e,n;return(e=(n=t.getValue())==null||n.toString==null?void 0:n.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:We("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,e)=>{t.toggleGrouping=()=>{e.setGrouping(n=>n!=null&&n.includes(t.id)?n.filter(r=>r!==t.id):[...n??[],t.id])},t.getCanGroup=()=>{var n,r;return((n=t.columnDef.enableGrouping)!=null?n:!0)&&((r=e.options.enableGrouping)!=null?r:!0)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.includes(t.id)},t.getGroupedIndex=()=>{var n;return(n=e.getState().grouping)==null?void 0:n.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const n=t.getCanGroup();return()=>{n&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const n=e.getCoreRowModel().flatRows[0],r=n?.getValue(t.id);if(typeof r=="number")return fo.sum;if(Object.prototype.toString.call(r)==="[object Date]")return fo.extent},t.getAggregationFn=()=>{var n,r;if(!t)throw new Error;return Xr(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(n=(r=e.options.aggregationFns)==null?void 0:r[t.columnDef.aggregationFn])!=null?n:fo[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=e=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(e),t.resetGrouping=e=>{var n,r;t.setGrouping(e?[]:(n=(r=t.initialState)==null?void 0:r.grouping)!=null?n:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,e)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=n=>{if(t._groupingValuesCache.hasOwnProperty(n))return t._groupingValuesCache[n];const r=e.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(t._groupingValuesCache[n]=r.columnDef.getGroupingValue(t.original),t._groupingValuesCache[n]):t.getValue(n)},t._groupingValuesCache={}},createCell:(t,e,n,r)=>{t.getIsGrouped=()=>e.getIsGrouped()&&e.id===n.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&e.getIsGrouped(),t.getIsAggregated=()=>{var o;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function Nw(t,e,n){if(!(e!=null&&e.length)||!n)return t;const r=t.filter(i=>!e.includes(i.id));return n==="remove"?r:[...e.map(i=>t.find(s=>s.id===i)).filter(Boolean),...r]}const kw={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:We("columnOrder",t)}),createColumn:(t,e)=>{t.getIndex=ee(n=>[Tn(e,n)],n=>n.findIndex(r=>r.id===t.id),te(e.options,"debugColumns")),t.getIsFirstColumn=n=>{var r;return((r=Tn(e,n)[0])==null?void 0:r.id)===t.id},t.getIsLastColumn=n=>{var r;const o=Tn(e,n);return((r=o[o.length-1])==null?void 0:r.id)===t.id}},createTable:t=>{t.setColumnOrder=e=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(e),t.resetColumnOrder=e=>{var n;t.setColumnOrder(e?[]:(n=t.initialState.columnOrder)!=null?n:[])},t._getOrderColumnsFn=ee(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(e,n,r)=>o=>{let i=[];if(!(e!=null&&e.length))i=o;else{const s=[...e],l=[...o];for(;l.length&&s.length;){const a=s.shift(),u=l.findIndex(h=>h.id===a);u>-1&&i.push(l.splice(u,1)[0])}i=[...i,...l]}return Nw(i,n,r)},te(t.options,"debugTable"))}},ho=()=>({left:[],right:[]}),Dw={getInitialState:t=>({columnPinning:ho(),...t}),getDefaultOptions:t=>({onColumnPinningChange:We("columnPinning",t)}),createColumn:(t,e)=>{t.pin=n=>{const r=t.getLeafColumns().map(o=>o.id).filter(Boolean);e.setColumnPinning(o=>{var i,s;if(n==="right"){var l,a;return{left:((l=o?.left)!=null?l:[]).filter(d=>!(r!=null&&r.includes(d))),right:[...((a=o?.right)!=null?a:[]).filter(d=>!(r!=null&&r.includes(d))),...r]}}if(n==="left"){var u,h;return{left:[...((u=o?.left)!=null?u:[]).filter(d=>!(r!=null&&r.includes(d))),...r],right:((h=o?.right)!=null?h:[]).filter(d=>!(r!=null&&r.includes(d)))}}return{left:((i=o?.left)!=null?i:[]).filter(d=>!(r!=null&&r.includes(d))),right:((s=o?.right)!=null?s:[]).filter(d=>!(r!=null&&r.includes(d)))}})},t.getCanPin=()=>t.getLeafColumns().some(r=>{var o,i,s;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(s=e.options.enableColumnPinning)!=null?s:e.options.enablePinning)!=null?i:!0)}),t.getIsPinned=()=>{const n=t.getLeafColumns().map(l=>l.id),{left:r,right:o}=e.getState().columnPinning,i=n.some(l=>r?.includes(l)),s=n.some(l=>o?.includes(l));return i?"left":s?"right":!1},t.getPinnedIndex=()=>{var n,r;const o=t.getIsPinned();return o?(n=(r=e.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(t.id))!=null?n:-1:0}},createRow:(t,e)=>{t.getCenterVisibleCells=ee(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(s=>!i.includes(s.column.id))},te(e.options,"debugRows")),t.getLeftVisibleCells=ee(()=>[t._getAllVisibleCells(),e.getState().columnPinning.left],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),te(e.options,"debugRows")),t.getRightVisibleCells=ee(()=>[t._getAllVisibleCells(),e.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(s=>s.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),te(e.options,"debugRows"))},createTable:t=>{t.setColumnPinning=e=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(e),t.resetColumnPinning=e=>{var n,r;return t.setColumnPinning(e?ho():(n=(r=t.initialState)==null?void 0:r.columnPinning)!=null?n:ho())},t.getIsSomeColumnsPinned=e=>{var n;const r=t.getState().columnPinning;if(!e){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t.getLeftLeafColumns=ee(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(e,n)=>(n??[]).map(r=>e.find(o=>o.id===r)).filter(Boolean),te(t.options,"debugColumns")),t.getRightLeafColumns=ee(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(e,n)=>(n??[]).map(r=>e.find(o=>o.id===r)).filter(Boolean),te(t.options,"debugColumns")),t.getCenterLeafColumns=ee(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,n,r)=>{const o=[...n??[],...r??[]];return e.filter(i=>!o.includes(i.id))},te(t.options,"debugColumns"))}};function Vw(t){return t||(typeof document<"u"?document:null)}const ur={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},go=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Lw={getDefaultColumnDef:()=>ur,getInitialState:t=>({columnSizing:{},columnSizingInfo:go(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:We("columnSizing",t),onColumnSizingInfoChange:We("columnSizingInfo",t)}),createColumn:(t,e)=>{t.getSize=()=>{var n,r,o;const i=e.getState().columnSizing[t.id];return Math.min(Math.max((n=t.columnDef.minSize)!=null?n:ur.minSize,(r=i??t.columnDef.size)!=null?r:ur.size),(o=t.columnDef.maxSize)!=null?o:ur.maxSize)},t.getStart=ee(n=>[n,Tn(e,n),e.getState().columnSizing],(n,r)=>r.slice(0,t.getIndex(n)).reduce((o,i)=>o+i.getSize(),0),te(e.options,"debugColumns")),t.getAfter=ee(n=>[n,Tn(e,n),e.getState().columnSizing],(n,r)=>r.slice(t.getIndex(n)+1).reduce((o,i)=>o+i.getSize(),0),te(e.options,"debugColumns")),t.resetSize=()=>{e.setColumnSizing(n=>{let{[t.id]:r,...o}=n;return o})},t.getCanResize=()=>{var n,r;return((n=t.columnDef.enableResizing)!=null?n:!0)&&((r=e.options.enableColumnResizing)!=null?r:!0)},t.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,e)=>{t.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(t),n},t.getStart=()=>{if(t.index>0){const n=t.headerGroup.headers[t.index-1];return n.getStart()+n.getSize()}return 0},t.getResizeHandler=n=>{const r=e.getColumn(t.column.id),o=r?.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),po(i)&&i.touches&&i.touches.length>1))return;const s=t.getSize(),l=t?t.getLeafHeaders().map(m=>[m.column.id,m.column.getSize()]):[[r.id,r.getSize()]],a=po(i)?Math.round(i.touches[0].clientX):i.clientX,u={},h=(m,y)=>{typeof y=="number"&&(e.setColumnSizingInfo(x=>{var E,T;const O=e.options.columnResizeDirection==="rtl"?-1:1,C=(y-((E=x?.startOffset)!=null?E:0))*O,R=Math.max(C/((T=x?.startSize)!=null?T:0),-.999999);return x.columnSizingStart.forEach(M=>{let[L,J]=M;u[L]=Math.round(Math.max(J+J*R,0)*100)/100}),{...x,deltaOffset:C,deltaPercentage:R}}),(e.options.columnResizeMode==="onChange"||m==="end")&&e.setColumnSizing(x=>({...x,...u})))},d=m=>h("move",m),f=m=>{h("end",m),e.setColumnSizingInfo(y=>({...y,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=Vw(n),p={moveHandler:m=>d(m.clientX),upHandler:m=>{c?.removeEventListener("mousemove",p.moveHandler),c?.removeEventListener("mouseup",p.upHandler),f(m.clientX)}},v={moveHandler:m=>(m.cancelable&&(m.preventDefault(),m.stopPropagation()),d(m.touches[0].clientX),!1),upHandler:m=>{var y;c?.removeEventListener("touchmove",v.moveHandler),c?.removeEventListener("touchend",v.upHandler),m.cancelable&&(m.preventDefault(),m.stopPropagation()),f((y=m.touches[0])==null?void 0:y.clientX)}},w=zw()?{passive:!1}:!1;po(i)?(c?.addEventListener("touchmove",v.moveHandler,w),c?.addEventListener("touchend",v.upHandler,w)):(c?.addEventListener("mousemove",p.moveHandler,w),c?.addEventListener("mouseup",p.upHandler,w)),e.setColumnSizingInfo(m=>({...m,startOffset:a,startSize:s,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:t=>{t.setColumnSizing=e=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(e),t.setColumnSizingInfo=e=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(e),t.resetColumnSizing=e=>{var n;t.setColumnSizing(e?{}:(n=t.initialState.columnSizing)!=null?n:{})},t.resetHeaderSizeInfo=e=>{var n;t.setColumnSizingInfo(e?go():(n=t.initialState.columnSizingInfo)!=null?n:go())},t.getTotalSize=()=>{var e,n;return(e=(n=t.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?e:0},t.getLeftTotalSize=()=>{var e,n;return(e=(n=t.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?e:0},t.getCenterTotalSize=()=>{var e,n;return(e=(n=t.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?e:0},t.getRightTotalSize=()=>{var e,n;return(e=(n=t.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?e:0}}};let cr=null;function zw(){if(typeof cr=="boolean")return cr;let t=!1;try{const e={get passive(){return t=!0,!1}},n=()=>{};window.addEventListener("test",n,e),window.removeEventListener("test",n)}catch{t=!1}return cr=t,cr}function po(t){return t.type==="touchstart"}const Hw={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:We("columnVisibility",t)}),createColumn:(t,e)=>{t.toggleVisibility=n=>{t.getCanHide()&&e.setColumnVisibility(r=>({...r,[t.id]:n??!t.getIsVisible()}))},t.getIsVisible=()=>{var n,r;const o=t.columns;return(n=o.length?o.some(i=>i.getIsVisible()):(r=e.getState().columnVisibility)==null?void 0:r[t.id])!=null?n:!0},t.getCanHide=()=>{var n,r;return((n=t.columnDef.enableHiding)!=null?n:!0)&&((r=e.options.enableHiding)!=null?r:!0)},t.getToggleVisibilityHandler=()=>n=>{t.toggleVisibility==null||t.toggleVisibility(n.target.checked)}},createRow:(t,e)=>{t._getAllVisibleCells=ee(()=>[t.getAllCells(),e.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),te(e.options,"debugRows")),t.getVisibleCells=ee(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],te(e.options,"debugRows"))},createTable:t=>{const e=(n,r)=>ee(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),te(t.options,"debugColumns"));t.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=n=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(n),t.resetColumnVisibility=n=>{var r;t.setColumnVisibility(n?{}:(r=t.initialState.columnVisibility)!=null?r:{})},t.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;t.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}};function Tn(t,e){return e?e==="center"?t.getCenterVisibleLeafColumns():e==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const Bw={createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},Gw={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:We("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var n;const r=(n=t.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[e.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(t,e)=>{t.getCanGlobalFilter=()=>{var n,r,o,i;return((n=t.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((o=e.options.enableFilters)!=null?o:!0)&&((i=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(t))!=null?i:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>pt.includesString,t.getGlobalFilterFn=()=>{var e,n;const{globalFilterFn:r}=t.options;return Xr(r)?r:r==="auto"?t.getGlobalAutoFilterFn():(e=(n=t.options.filterFns)==null?void 0:n[r])!=null?e:pt[r]},t.setGlobalFilter=e=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(e)},t.resetGlobalFilter=e=>{t.setGlobalFilter(e?void 0:t.initialState.globalFilter)}}},Uw={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:We("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let e=!1,n=!1;t._autoResetExpanded=()=>{var r,o;if(!e){t._queue(()=>{e=!0});return}if((r=(o=t.options.autoResetAll)!=null?o:t.options.autoResetExpanded)!=null?r:!t.options.manualExpanding){if(n)return;n=!0,t._queue(()=>{t.resetExpanded(),n=!1})}},t.setExpanded=r=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(r),t.toggleAllRowsExpanded=r=>{r??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=r=>{var o,i;t.setExpanded(r?{}:(o=(i=t.initialState)==null?void 0:i.expanded)!=null?o:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const r=t.getState().expanded;return r===!0||Object.values(r).some(Boolean)},t.getIsAllRowsExpanded=()=>{const r=t.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||t.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},t.getExpandedDepth=()=>{let r=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(i=>{const s=i.split(".");r=Math.max(r,s.length)}),r},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,e)=>{t.toggleExpanded=n=>{e.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[t.id]);let s={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(l=>{s[l]=!0}):s=r,n=(o=n)!=null?o:!i,!i&&n)return{...s,[t.id]:!0};if(i&&!n){const{[t.id]:l,...a}=s;return a}return r})},t.getIsExpanded=()=>{var n;const r=e.getState().expanded;return!!((n=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(t))!=null?n:r===!0||r?.[t.id])},t.getCanExpand=()=>{var n,r,o;return(n=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(t))!=null?n:((r=e.options.enableExpanding)!=null?r:!0)&&!!((o=t.subRows)!=null&&o.length)},t.getIsAllParentsExpanded=()=>{let n=!0,r=t;for(;n&&r.parentId;)r=e.getRow(r.parentId,!0),n=r.getIsExpanded();return n},t.getToggleExpandedHandler=()=>{const n=t.getCanExpand();return()=>{n&&t.toggleExpanded()}}}},Ho=0,Bo=10,vo=()=>({pageIndex:Ho,pageSize:Bo}),Ww={getInitialState:t=>({...t,pagination:{...vo(),...t?.pagination}}),getDefaultOptions:t=>({onPaginationChange:We("pagination",t)}),createTable:t=>{let e=!1,n=!1;t._autoResetPageIndex=()=>{var r,o;if(!e){t._queue(()=>{e=!0});return}if((r=(o=t.options.autoResetAll)!=null?o:t.options.autoResetPageIndex)!=null?r:!t.options.manualPagination){if(n)return;n=!0,t._queue(()=>{t.resetPageIndex(),n=!1})}},t.setPagination=r=>{const o=i=>Ot(r,i);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(o)},t.resetPagination=r=>{var o;t.setPagination(r?vo():(o=t.initialState.pagination)!=null?o:vo())},t.setPageIndex=r=>{t.setPagination(o=>{let i=Ot(r,o.pageIndex);const s=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return i=Math.max(0,Math.min(i,s)),{...o,pageIndex:i}})},t.resetPageIndex=r=>{var o,i;t.setPageIndex(r?Ho:(o=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Ho)},t.resetPageSize=r=>{var o,i;t.setPageSize(r?Bo:(o=(i=t.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:Bo)},t.setPageSize=r=>{t.setPagination(o=>{const i=Math.max(1,Ot(r,o.pageSize)),s=o.pageSize*o.pageIndex,l=Math.floor(s/i);return{...o,pageIndex:l,pageSize:i}})},t.setPageCount=r=>t.setPagination(o=>{var i;let s=Ot(r,(i=t.options.pageCount)!=null?i:-1);return typeof s=="number"&&(s=Math.max(-1,s)),{...o,pageCount:s}}),t.getPageOptions=ee(()=>[t.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,s)=>s)),o},te(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:r}=t.getState().pagination,o=t.getPageCount();return o===-1?!0:o===0?!1:r<o-1},t.previousPage=()=>t.setPageIndex(r=>r-1),t.nextPage=()=>t.setPageIndex(r=>r+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var r;return(r=t.options.pageCount)!=null?r:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var r;return(r=t.options.rowCount)!=null?r:t.getPrePaginationRowModel().rows.length}}},mo=()=>({top:[],bottom:[]}),Kw={getInitialState:t=>({rowPinning:mo(),...t}),getDefaultOptions:t=>({onRowPinningChange:We("rowPinning",t)}),createRow:(t,e)=>{t.pin=(n,r,o)=>{const i=r?t.getLeafRows().map(a=>{let{id:u}=a;return u}):[],s=o?t.getParentRows().map(a=>{let{id:u}=a;return u}):[],l=new Set([...s,t.id,...i]);e.setRowPinning(a=>{var u,h;if(n==="bottom"){var d,f;return{top:((d=a?.top)!=null?d:[]).filter(v=>!(l!=null&&l.has(v))),bottom:[...((f=a?.bottom)!=null?f:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)]}}if(n==="top"){var c,p;return{top:[...((c=a?.top)!=null?c:[]).filter(v=>!(l!=null&&l.has(v))),...Array.from(l)],bottom:((p=a?.bottom)!=null?p:[]).filter(v=>!(l!=null&&l.has(v)))}}return{top:((u=a?.top)!=null?u:[]).filter(v=>!(l!=null&&l.has(v))),bottom:((h=a?.bottom)!=null?h:[]).filter(v=>!(l!=null&&l.has(v)))}})},t.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=e.options;return typeof r=="function"?r(t):(n=r??o)!=null?n:!0},t.getIsPinned=()=>{const n=[t.id],{top:r,bottom:o}=e.getState().rowPinning,i=n.some(l=>r?.includes(l)),s=n.some(l=>o?.includes(l));return i?"top":s?"bottom":!1},t.getPinnedIndex=()=>{var n,r;const o=t.getIsPinned();if(!o)return-1;const i=(n=o==="top"?e.getTopRows():e.getBottomRows())==null?void 0:n.map(s=>{let{id:l}=s;return l});return(r=i?.indexOf(t.id))!=null?r:-1}},createTable:t=>{t.setRowPinning=e=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(e),t.resetRowPinning=e=>{var n,r;return t.setRowPinning(e?mo():(n=(r=t.initialState)==null?void 0:r.rowPinning)!=null?n:mo())},t.getIsSomeRowsPinned=e=>{var n;const r=t.getState().rowPinning;if(!e){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[e])!=null&&n.length)},t._getPinnedRows=(e,n,r)=>{var o;return((o=t.options.keepPinnedRows)==null||o?(n??[]).map(s=>{const l=t.getRow(s,!0);return l.getIsAllParentsExpanded()?l:null}):(n??[]).map(s=>e.find(l=>l.id===s))).filter(Boolean).map(s=>({...s,position:r}))},t.getTopRows=ee(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(e,n)=>t._getPinnedRows(e,n,"top"),te(t.options,"debugRows")),t.getBottomRows=ee(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(e,n)=>t._getPinnedRows(e,n,"bottom"),te(t.options,"debugRows")),t.getCenterRows=ee(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(e,n,r)=>{const o=new Set([...n??[],...r??[]]);return e.filter(i=>!o.has(i.id))},te(t.options,"debugRows"))}},jw={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:We("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=e=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(e),t.resetRowSelection=e=>{var n;return t.setRowSelection(e?{}:(n=t.initialState.rowSelection)!=null?n:{})},t.toggleAllRowsSelected=e=>{t.setRowSelection(n=>{e=typeof e<"u"?e:!t.getIsAllRowsSelected();const r={...n},o=t.getPreGroupedRowModel().flatRows;return e?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},t.toggleAllPageRowsSelected=e=>t.setRowSelection(n=>{const r=typeof e<"u"?e:!t.getIsAllPageRowsSelected(),o={...n};return t.getRowModel().rows.forEach(i=>{Go(o,i.id,r,!0,t)}),o}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=ee(()=>[t.getState().rowSelection,t.getCoreRowModel()],(e,n)=>Object.keys(e).length?wo(t,n):{rows:[],flatRows:[],rowsById:{}},te(t.options,"debugTable")),t.getFilteredSelectedRowModel=ee(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(e,n)=>Object.keys(e).length?wo(t,n):{rows:[],flatRows:[],rowsById:{}},te(t.options,"debugTable")),t.getGroupedSelectedRowModel=ee(()=>[t.getState().rowSelection,t.getSortedRowModel()],(e,n)=>Object.keys(e).length?wo(t,n):{rows:[],flatRows:[],rowsById:{}},te(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const e=t.getFilteredRowModel().flatRows,{rowSelection:n}=t.getState();let r=!!(e.length&&Object.keys(n).length);return r&&e.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},t.getIsAllPageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=t.getState();let r=!!e.length;return r&&e.some(o=>!n[o.id])&&(r=!1),r},t.getIsSomeRowsSelected=()=>{var e;const n=Object.keys((e=t.getState().rowSelection)!=null?e:{}).length;return n>0&&n<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const e=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:e.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>e=>{t.toggleAllRowsSelected(e.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>e=>{t.toggleAllPageRowsSelected(e.target.checked)}},createRow:(t,e)=>{t.toggleSelected=(n,r)=>{const o=t.getIsSelected();e.setRowSelection(i=>{var s;if(n=typeof n<"u"?n:!o,t.getCanSelect()&&o===n)return i;const l={...i};return Go(l,t.id,n,(s=r?.selectChildren)!=null?s:!0,e),l})},t.getIsSelected=()=>{const{rowSelection:n}=e.getState();return Li(t,n)},t.getIsSomeSelected=()=>{const{rowSelection:n}=e.getState();return Uo(t,n)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=e.getState();return Uo(t,n)==="all"},t.getCanSelect=()=>{var n;return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(t):(n=e.options.enableRowSelection)!=null?n:!0},t.getCanSelectSubRows=()=>{var n;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(t):(n=e.options.enableSubRowSelection)!=null?n:!0},t.getCanMultiSelect=()=>{var n;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(t):(n=e.options.enableMultiRowSelection)!=null?n:!0},t.getToggleSelectedHandler=()=>{const n=t.getCanSelect();return r=>{var o;n&&t.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Go=(t,e,n,r,o)=>{var i;const s=o.getRow(e,!0);n?(s.getCanMultiSelect()||Object.keys(t).forEach(l=>delete t[l]),s.getCanSelect()&&(t[e]=!0)):delete t[e],r&&(i=s.subRows)!=null&&i.length&&s.getCanSelectSubRows()&&s.subRows.forEach(l=>Go(t,l.id,n,r,o))};function wo(t,e){const n=t.getState().rowSelection,r=[],o={},i=function(s,l){return s.map(a=>{var u;const h=Li(a,n);if(h&&(r.push(a),o[a.id]=a),(u=a.subRows)!=null&&u.length&&(a={...a,subRows:i(a.subRows)}),h)return a}).filter(Boolean)};return{rows:i(e.rows),flatRows:r,rowsById:o}}function Li(t,e){var n;return(n=e[t.id])!=null?n:!1}function Uo(t,e,n){var r;if(!((r=t.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return t.subRows.forEach(s=>{if(!(i&&!o)&&(s.getCanSelect()&&(Li(s,e)?i=!0:o=!1),s.subRows&&s.subRows.length)){const l=Uo(s,e);l==="all"?i=!0:(l==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Wo=/([0-9]+)/gm,qw=(t,e,n)=>Ya(kt(t.getValue(n)).toLowerCase(),kt(e.getValue(n)).toLowerCase()),Xw=(t,e,n)=>Ya(kt(t.getValue(n)),kt(e.getValue(n))),Yw=(t,e,n)=>zi(kt(t.getValue(n)).toLowerCase(),kt(e.getValue(n)).toLowerCase()),Zw=(t,e,n)=>zi(kt(t.getValue(n)),kt(e.getValue(n))),Jw=(t,e,n)=>{const r=t.getValue(n),o=e.getValue(n);return r>o?1:r<o?-1:0},Qw=(t,e,n)=>zi(t.getValue(n),e.getValue(n));function zi(t,e){return t===e?0:t>e?1:-1}function kt(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function Ya(t,e){const n=t.split(Wo).filter(Boolean),r=e.split(Wo).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),s=parseInt(o,10),l=parseInt(i,10),a=[s,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(s)?-1:1;if(s>l)return 1;if(l>s)return-1}return n.length-r.length}const xn={alphanumeric:qw,alphanumericCaseSensitive:Xw,text:Yw,textCaseSensitive:Zw,datetime:Jw,basic:Qw},$w={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:We("sorting",t),isMultiSortEvent:e=>e.shiftKey}),createColumn:(t,e)=>{t.getAutoSortingFn=()=>{const n=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o?.getValue(t.id);if(Object.prototype.toString.call(i)==="[object Date]")return xn.datetime;if(typeof i=="string"&&(r=!0,i.split(Wo).length>1))return xn.alphanumeric}return r?xn.text:xn.basic},t.getAutoSortDir=()=>{const n=e.getFilteredRowModel().flatRows[0];return typeof n?.getValue(t.id)=="string"?"asc":"desc"},t.getSortingFn=()=>{var n,r;if(!t)throw new Error;return Xr(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(n=(r=e.options.sortingFns)==null?void 0:r[t.columnDef.sortingFn])!=null?n:xn[t.columnDef.sortingFn]},t.toggleSorting=(n,r)=>{const o=t.getNextSortingOrder(),i=typeof n<"u"&&n!==null;e.setSorting(s=>{const l=s?.find(c=>c.id===t.id),a=s?.findIndex(c=>c.id===t.id);let u=[],h,d=i?n:o==="desc";if(s!=null&&s.length&&t.getCanMultiSort()&&r?l?h="toggle":h="add":s!=null&&s.length&&a!==s.length-1?h="replace":l?h="toggle":h="replace",h==="toggle"&&(i||o||(h="remove")),h==="add"){var f;u=[...s,{id:t.id,desc:d}],u.splice(0,u.length-((f=e.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=s.map(c=>c.id===t.id?{...c,desc:d}:c):h==="remove"?u=s.filter(c=>c.id!==t.id):u=[{id:t.id,desc:d}];return u})},t.getFirstSortDir=()=>{var n,r;return((n=(r=t.columnDef.sortDescFirst)!=null?r:e.options.sortDescFirst)!=null?n:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=n=>{var r,o;const i=t.getFirstSortDir(),s=t.getIsSorted();return s?s!==i&&((r=e.options.enableSortingRemoval)==null||r)&&(!(n&&(o=e.options.enableMultiRemove)!=null)||o)?!1:s==="desc"?"asc":"desc":i},t.getCanSort=()=>{var n,r;return((n=t.columnDef.enableSorting)!=null?n:!0)&&((r=e.options.enableSorting)!=null?r:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var n,r;return(n=(r=t.columnDef.enableMultiSort)!=null?r:e.options.enableMultiSort)!=null?n:!!t.accessorFn},t.getIsSorted=()=>{var n;const r=(n=e.getState().sorting)==null?void 0:n.find(o=>o.id===t.id);return r?r.desc?"desc":"asc":!1},t.getSortIndex=()=>{var n,r;return(n=(r=e.getState().sorting)==null?void 0:r.findIndex(o=>o.id===t.id))!=null?n:-1},t.clearSorting=()=>{e.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==t.id):[])},t.getToggleSortingHandler=()=>{const n=t.getCanSort();return r=>{n&&(r.persist==null||r.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(r):!1))}}},createTable:t=>{t.setSorting=e=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(e),t.resetSorting=e=>{var n,r;t.setSorting(e?[]:(n=(r=t.initialState)==null?void 0:r.sorting)!=null?n:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},eb=[_w,Hw,kw,Dw,Sw,Cw,Bw,Gw,$w,Mw,Uw,Ww,Kw,jw,Lw];function _y(t){var e,n;const r=[...eb,...(e=t._features)!=null?e:[]];let o={_features:r};const i=o._features.reduce((f,c)=>Object.assign(f,c.getDefaultOptions==null?void 0:c.getDefaultOptions(o)),{}),s=f=>o.options.mergeOptions?o.options.mergeOptions(i,f):{...i,...f};let a={...{},...(n=t.initialState)!=null?n:{}};o._features.forEach(f=>{var c;a=(c=f.getInitialState==null?void 0:f.getInitialState(a))!=null?c:a});const u=[];let h=!1;const d={_features:r,options:{...i,...t},initialState:a,_queue:f=>{u.push(f),h||(h=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();h=!1}).catch(c=>setTimeout(()=>{throw c})))},reset:()=>{o.setState(o.initialState)},setOptions:f=>{const c=Ot(f,o.options);o.options=s(c)},getState:()=>o.options.state,setState:f=>{o.options.onStateChange==null||o.options.onStateChange(f)},_getRowId:(f,c,p)=>{var v;return(v=o.options.getRowId==null?void 0:o.options.getRowId(f,c,p))!=null?v:`${p?[p.id,c].join("."):c}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(f,c)=>{let p=(c?o.getPrePaginationRowModel():o.getRowModel()).rowsById[f];if(!p&&(p=o.getCoreRowModel().rowsById[f],!p))throw new Error;return p},_getDefaultColumnDef:ee(()=>[o.options.defaultColumn],f=>{var c;return f=(c=f)!=null?c:{},{header:p=>{const v=p.header.column.columnDef;return v.accessorKey?v.accessorKey:v.accessorFn?v.id:null},cell:p=>{var v,w;return(v=(w=p.renderValue())==null||w.toString==null?void 0:w.toString())!=null?v:null},...o._features.reduce((p,v)=>Object.assign(p,v.getDefaultColumnDef==null?void 0:v.getDefaultColumnDef()),{}),...f}},te(t,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:ee(()=>[o._getColumnDefs()],f=>{const c=function(p,v,w){return w===void 0&&(w=0),p.map(m=>{const y=yw(o,m,w,v),x=m;return y.columns=x.columns?c(x.columns,y,w+1):[],y})};return c(f)},te(t,"debugColumns")),getAllFlatColumns:ee(()=>[o.getAllColumns()],f=>f.flatMap(c=>c.getFlatColumns()),te(t,"debugColumns")),_getAllFlatColumnsById:ee(()=>[o.getAllFlatColumns()],f=>f.reduce((c,p)=>(c[p.id]=p,c),{}),te(t,"debugColumns")),getAllLeafColumns:ee(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(f,c)=>{let p=f.flatMap(v=>v.getLeafColumns());return c(p)},te(t,"debugColumns")),getColumn:f=>o._getAllFlatColumnsById()[f]};Object.assign(o,d);for(let f=0;f<o._features.length;f++){const c=o._features[f];c==null||c.createTable==null||c.createTable(o)}return o}function Sy(){return t=>ee(()=>[t.options.data],e=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,s){i===void 0&&(i=0);const l=[];for(let u=0;u<o.length;u++){const h=Di(t,t._getRowId(o[u],u,s),o[u],u,i,void 0,s?.id);if(n.flatRows.push(h),n.rowsById[h.id]=h,l.push(h),t.options.getSubRows){var a;h.originalSubRows=t.options.getSubRows(o[u],u),(a=h.originalSubRows)!=null&&a.length&&(h.subRows=r(h.originalSubRows,i+1,h))}}return l};return n.rows=r(e),n},te(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function tb(t){const e=[],n=r=>{var o;e.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return t.rows.forEach(n),{rows:e,flatRows:t.flatRows,rowsById:t.rowsById}}function nb(t,e,n){return n.options.filterFromLeafRows?rb(t,e,n):ob(t,e,n)}function rb(t,e,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(a,u){u===void 0&&(u=0);const h=[];for(let f=0;f<a.length;f++){var d;let c=a[f];const p=Di(n,c.id,c.original,c.index,c.depth,void 0,c.parentId);if(p.columnFilters=c.columnFilters,(d=c.subRows)!=null&&d.length&&u<s){if(p.subRows=l(c.subRows,u+1),c=p,e(c)&&!p.subRows.length){h.push(c),i[c.id]=c,o.push(c);continue}if(e(c)||p.subRows.length){h.push(c),i[c.id]=c,o.push(c);continue}}else c=p,e(c)&&(h.push(c),i[c.id]=c,o.push(c))}return h};return{rows:l(t),flatRows:o,rowsById:i}}function ob(t,e,n){var r;const o=[],i={},s=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,l=function(a,u){u===void 0&&(u=0);const h=[];for(let f=0;f<a.length;f++){let c=a[f];if(e(c)){var d;if((d=c.subRows)!=null&&d.length&&u<s){const v=Di(n,c.id,c.original,c.index,c.depth,void 0,c.parentId);v.subRows=l(c.subRows,u+1),c=v}h.push(c),o.push(c),i[c.id]=c}}return h};return{rows:l(t),flatRows:o,rowsById:i}}function Cy(){return t=>ee(()=>[t.getPreFilteredRowModel(),t.getState().columnFilters,t.getState().globalFilter],(e,n,r)=>{if(!e.rows.length||!(n!=null&&n.length)&&!r){for(let f=0;f<e.flatRows.length;f++)e.flatRows[f].columnFilters={},e.flatRows[f].columnFiltersMeta={};return e}const o=[],i=[];(n??[]).forEach(f=>{var c;const p=t.getColumn(f.id);if(!p)return;const v=p.getFilterFn();v&&o.push({id:f.id,filterFn:v,resolvedValue:(c=v.resolveFilterValue==null?void 0:v.resolveFilterValue(f.value))!=null?c:f.value})});const s=(n??[]).map(f=>f.id),l=t.getGlobalFilterFn(),a=t.getAllLeafColumns().filter(f=>f.getCanGlobalFilter());r&&l&&a.length&&(s.push("__global__"),a.forEach(f=>{var c;i.push({id:f.id,filterFn:l,resolvedValue:(c=l.resolveFilterValue==null?void 0:l.resolveFilterValue(r))!=null?c:r})}));let u,h;for(let f=0;f<e.flatRows.length;f++){const c=e.flatRows[f];if(c.columnFilters={},o.length)for(let p=0;p<o.length;p++){u=o[p];const v=u.id;c.columnFilters[v]=u.filterFn(c,v,u.resolvedValue,w=>{c.columnFiltersMeta[v]=w})}if(i.length){for(let p=0;p<i.length;p++){h=i[p];const v=h.id;if(h.filterFn(c,v,h.resolvedValue,w=>{c.columnFiltersMeta[v]=w})){c.columnFilters.__global__=!0;break}}c.columnFilters.__global__!==!0&&(c.columnFilters.__global__=!1)}}const d=f=>{for(let c=0;c<s.length;c++)if(f.columnFilters[s[c]]===!1)return!1;return!0};return nb(e.rows,d,t)},te(t.options,"debugTable","getFilteredRowModel",()=>t._autoResetPageIndex()))}function xy(t){return e=>ee(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:i}=n;let{rows:s,flatRows:l,rowsById:a}=r;const u=o*i,h=u+o;s=s.slice(u,h);let d;e.options.paginateExpandedRows?d={rows:s,flatRows:l,rowsById:a}:d=tb({rows:s,flatRows:l,rowsById:a}),d.flatRows=[];const f=c=>{d.flatRows.push(c),c.subRows.length&&c.subRows.forEach(f)};return d.rows.forEach(f),d},te(e.options,"debugTable"))}function Py(){return t=>ee(()=>[t.getState().sorting,t.getPreSortedRowModel()],(e,n)=>{if(!n.rows.length||!(e!=null&&e.length))return n;const r=t.getState().sorting,o=[],i=r.filter(a=>{var u;return(u=t.getColumn(a.id))==null?void 0:u.getCanSort()}),s={};i.forEach(a=>{const u=t.getColumn(a.id);u&&(s[a.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const l=a=>{const u=a.map(h=>({...h}));return u.sort((h,d)=>{for(let c=0;c<i.length;c+=1){var f;const p=i[c],v=s[p.id],w=v.sortUndefined,m=(f=p?.desc)!=null?f:!1;let y=0;if(w){const x=h.getValue(p.id),E=d.getValue(p.id),T=x===void 0,O=E===void 0;if(T||O){if(w==="first")return T?-1:1;if(w==="last")return T?1:-1;y=T&&O?0:T?w:-w}}if(y===0&&(y=v.sortingFn(h,d,p.id)),y!==0)return m&&(y*=-1),v.invertSorting&&(y*=-1),y}return h.index-d.index}),u.forEach(h=>{var d;o.push(h),(d=h.subRows)!=null&&d.length&&(h.subRows=l(h.subRows))}),u};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}},te(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}export{Yb as $,oc as A,ei as B,Fb as C,Nb as D,fe as E,fc as F,Vb as G,Eb as H,jb as I,zb as J,iy as K,ny as L,oy as M,Mc as N,my as O,Lb as P,vb as Q,ab as R,Ib as S,ry as T,py as U,by as V,wy as W,fb as X,wb as Y,Ce as Z,en as _,b as a,dy as a$,Zb as a0,Xb as a1,Jb as a2,qb as a3,bc as a4,uy as a5,mc as a6,Tc as a7,Ze as a8,sb as a9,ye as aA,Eu as aB,Ae as aC,_ as aD,ge as aE,Dr as aF,$e as aG,Hb as aH,ce as aI,Bb as aJ,$ as aK,Tb as aL,Ab as aM,Ob as aN,gy as aO,ub as aP,hc as aQ,$b as aR,ey as aS,ty as aT,Qb as aU,$u as aV,ib as aW,_y as aX,Gt as aY,fy as aZ,cy as a_,lb as aa,S as ab,Fn as ac,vy as ad,sy as ae,Pc as af,Ec as ag,ly as ah,pw as ai,Wb as aj,Ub as ak,Kb as al,Cc as am,hb as an,Gb as ao,bl as ap,rc as aq,mb as ar,bb as as,tc as at,N as au,yy as av,Ll as aw,Dc as ax,Fe as ay,Se as az,F as b,hy as b0,ay as b1,xy as b2,Cy as b3,Py as b4,Sy as b5,Po as b6,cb as b7,Me as b8,Rb as b9,Cb as ba,gu as bb,Pb as bc,xb as bd,Sb as be,db as bf,fr as c,pb as d,A as e,I as f,K as g,ue as h,Z as i,le as j,oe as k,gb as l,_l as m,U as n,ae as o,W as p,g as q,ie as r,D as s,yb as t,P as u,Mb as v,kc as w,Bt as x,Db as y,kb as z};
//# sourceMappingURL=vendor-BQRQ0M_C.js.map
