studiograph 1.3.22 → 1.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/_app/immutable/assets/2.CTYRPjeo.css +1 -0
- package/dist/web/_app/immutable/assets/3.CHSDCrUY.css +1 -0
- package/dist/web/_app/immutable/assets/{3.Bxy1xbfc.css → 4.BG3bIPWj.css} +1 -1
- package/dist/web/_app/immutable/assets/{4.aFSdMTV2.css → 5.DFeGxLYf.css} +1 -1
- package/dist/web/_app/immutable/assets/dialog-close.FS8bdfxr.css +1 -0
- package/dist/web/_app/immutable/chunks/AnfEg8V4.js +1 -0
- package/dist/web/_app/immutable/chunks/B97Kx4RB.js +1 -0
- package/dist/web/_app/immutable/chunks/BBZMKXAH.js +1 -0
- package/dist/web/_app/immutable/chunks/{2BuoqS97.js → BB_5th5W.js} +2 -2
- package/dist/web/_app/immutable/chunks/{CbWA7IDo.js → BLp0X8Gk.js} +1 -1
- package/dist/web/_app/immutable/chunks/BNVCPAnF.js +1 -0
- package/dist/web/_app/immutable/chunks/BSywCyUT.js +1 -0
- package/dist/web/_app/immutable/chunks/Bjfzvir2.js +5 -0
- package/dist/web/_app/immutable/chunks/CA7sXyoK.js +1 -0
- package/dist/web/_app/immutable/chunks/COcw_cRx.js +1 -0
- package/dist/web/_app/immutable/chunks/{BYMNYbod.js → CYrVHOHA.js} +1 -1
- package/dist/web/_app/immutable/chunks/C_QVf50i.js +1 -0
- package/dist/web/_app/immutable/chunks/Cd9--YY2.js +1 -0
- package/dist/web/_app/immutable/chunks/Ceu3bj1o.js +1 -0
- package/dist/web/_app/immutable/chunks/CgErnhBW.js +1 -0
- package/dist/web/_app/immutable/chunks/Cgf7KRFh.js +1 -0
- package/dist/web/_app/immutable/chunks/CpcSCnI7.js +4 -0
- package/dist/web/_app/immutable/chunks/CqwkWwtq.js +1 -0
- package/dist/web/_app/immutable/chunks/CrgPkghk.js +1 -0
- package/dist/web/_app/immutable/chunks/D0nCr7a3.js +1 -0
- package/dist/web/_app/immutable/chunks/DKX4rCEq.js +1 -0
- package/dist/web/_app/immutable/chunks/DLGVnhPm.js +2 -0
- package/dist/web/_app/immutable/chunks/DZaKuUr5.js +1 -0
- package/dist/web/_app/immutable/chunks/{Bl-KiNAn.js → DlpeZMIZ.js} +1 -1
- package/dist/web/_app/immutable/chunks/DoQdsI-P.js +2 -0
- package/dist/web/_app/immutable/chunks/DvFfSfZL.js +1 -0
- package/dist/web/_app/immutable/chunks/FefWW-qv.js +1 -0
- package/dist/web/_app/immutable/chunks/JPu9c3TR.js +1 -0
- package/dist/web/_app/immutable/chunks/OKhOOfKB.js +1 -0
- package/dist/web/_app/immutable/chunks/PPVm8Dsz.js +1 -0
- package/dist/web/_app/immutable/chunks/{BONf5_Rr.js → WSUKABI_.js} +1 -1
- package/dist/web/_app/immutable/chunks/Zx02i7Iu.js +1 -0
- package/dist/web/_app/immutable/entry/app.BxhKNuFJ.js +2 -0
- package/dist/web/_app/immutable/entry/start.CloSpMNx.js +1 -0
- package/dist/web/_app/immutable/nodes/0.Dr58SgIR.js +10 -0
- package/dist/web/_app/immutable/nodes/1.DwHT-bKx.js +1 -0
- package/dist/web/_app/immutable/nodes/2.B0guDadR.js +84 -0
- package/dist/web/_app/immutable/nodes/3.DULCRKEo.js +1 -0
- package/dist/web/_app/immutable/nodes/4.BL33aqX8.js +11 -0
- package/dist/web/_app/immutable/nodes/5.DKuT9ZGn.js +4 -0
- package/dist/web/_app/immutable/nodes/6.B2s7rCo9.js +2 -0
- package/dist/web/_app/immutable/nodes/7.CaBsGR7t.js +2 -0
- package/dist/web/_app/immutable/nodes/8.0m8wJPJv.js +1 -0
- package/dist/web/_app/immutable/nodes/9.DCpK_lrP.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +13 -10
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/2.DRZ4qWy8.css +0 -1
- package/dist/web/_app/immutable/assets/AppShell.DFQamTEo.css +0 -1
- package/dist/web/_app/immutable/chunks/5Q3iZDZU.js +0 -1
- package/dist/web/_app/immutable/chunks/BJlvZ6_w.js +0 -1
- package/dist/web/_app/immutable/chunks/BODLxJgV.js +0 -1
- package/dist/web/_app/immutable/chunks/C6O5NX2h.js +0 -2
- package/dist/web/_app/immutable/chunks/CBPCy2wh.js +0 -1
- package/dist/web/_app/immutable/chunks/CTpBBS5W.js +0 -2
- package/dist/web/_app/immutable/chunks/D2e_f7WK.js +0 -1
- package/dist/web/_app/immutable/chunks/D7wFh3Y6.js +0 -91
- package/dist/web/_app/immutable/chunks/Da6P0VJZ.js +0 -1
- package/dist/web/_app/immutable/chunks/DbMgkTYM.js +0 -1
- package/dist/web/_app/immutable/chunks/DkBrGIdc.js +0 -1
- package/dist/web/_app/immutable/chunks/VncLXI-e.js +0 -1
- package/dist/web/_app/immutable/chunks/kW-E0CmU.js +0 -1
- package/dist/web/_app/immutable/chunks/uZSxhCI4.js +0 -1
- package/dist/web/_app/immutable/entry/app.CaQFD8Sp.js +0 -2
- package/dist/web/_app/immutable/entry/start.DXYjdKxA.js +0 -1
- package/dist/web/_app/immutable/nodes/0.BFYFTPQZ.js +0 -10
- package/dist/web/_app/immutable/nodes/1.DSUtECoD.js +0 -1
- package/dist/web/_app/immutable/nodes/2.FUuVOvKB.js +0 -1
- package/dist/web/_app/immutable/nodes/3.CgL6-2JW.js +0 -11
- package/dist/web/_app/immutable/nodes/4.D4dn7z-O.js +0 -4
- package/dist/web/_app/immutable/nodes/5.B_Ktfrhu.js +0 -2
- package/dist/web/_app/immutable/nodes/6.OeYr_YON.js +0 -1
- package/dist/web/_app/immutable/nodes/7.VbcWnkhD.js +0 -2
- package/dist/web/_app/immutable/nodes/8.rD4JJv28.js +0 -1
- /package/dist/web/_app/immutable/assets/{5.CquhUpOu.css → 6.CquhUpOu.css} +0 -0
- /package/dist/web/_app/immutable/assets/{6.CT4xL4K3.css → 8.CT4xL4K3.css} +0 -0
- /package/dist/web/_app/immutable/assets/{8.BUrHkYry.css → 9.BUrHkYry.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var Gt=Array.isArray,zt=Array.prototype.indexOf,le=Array.prototype.includes,Un=Array.from,Bn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,$t=Object.prototype,Xt=Array.prototype,ut=Object.getPrototypeOf,tt=Object.isExtensible;function Gn(e){return typeof e=="function"}const Zt=()=>{};function zn(e){return e()}function Wt(e){for(var t=0;t<e.length;t++)e[t]()}function ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,fe=4,oe=8,He=1<<24,$=16,L=32,X=64,Jt=128,k=512,E=1024,T=2048,P=4096,F=8192,V=16384,ve=32768,Ae=65536,nt=1<<17,Qt=1<<18,de=1<<19,_t=1<<20,$n=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Qn=1,Oe=3,vt=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function en(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tr(){throw new Error("https://svelte.dev/e/hydration_failed")}function nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const sr=1,ar=2,fr=4,ir=8,lr=16,or=1,ur=2,cr=4,_r=8,vr=16,dr=1,hr=2,on="[",un="[!",pr="[?",cn="]",Ue={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",wr="http://www.w3.org/2000/svg",yr="http://www.w3.org/1998/Math/MathML",Er="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function gr(e){G=e}let S;function ue(e){if(e===null)throw Be(),Ue;return S=e}function Tr(){return ue(Z(S))}function Ar(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function xr(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Sr(e=!0){for(var t=0,n=S;;){if(n.nodeType===vt){var r=n.data;if(r===cn){if(t===0)return n;t-=1}else(r===on||r===un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Rr(e){if(!e||e.nodeType!==vt)throw Be(),Ue;return e.data}function dt(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ht(e){return!vn(e,this.v)}let be=!1;function Nr(){be=!0}let h=null;function xe(e){h=e}function Or(e){return ke().get(e)}function kr(e,t){return ke().set(e,t),t}function Dr(e){return ke().has(e)}function Cr(){return ke()}function Ir(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:be&&!t?{s:null,u:null,$:[]}:null}}function Mr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function me(){return!be||h!==null&&h.l===null}function ke(e){return h===null&&Ve(),h.c??=new Map(dn(h)||void 0)}function dn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function pt(){var e=J;J=[],Wt(e)}function Pe(e){if(J.length===0&&!ye){var t=J;queueMicrotask(()=>{t===J&&pt()})}J.push(e)}function hn(){for(;J.length>0;)pt()}function pn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&fe)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Jt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function y(e,t){e.f=e.f&wn|t}function Ge(e){(e.f&k)!==0||e.deps===null?y(e,E):y(e,P)}function wt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,wt(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),wt(e.deps),y(e,E)}const ge=new Set;let w=null,rt=null,I=null,A=[],De=null,ye=!1,ce=null;class ie{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,P),Y(r)}}process(t){A=[],this.apply();var n=ce=[],r=[];for(const s of t)this.#u(s,n,r);if(ce=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)mt(s,a)}else{rt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),st(r),st(n),this.#i.clear(),this.#n.clear(),rt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&F)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&fe)!==0?n.push(s):he(s)&&((a&$)!==0&&this.#n.add(s),ae(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,yt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)Et(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ct()).promise}static ensure(){if(w===null){const t=w=new ie;ge.add(w),ye||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function En(e){var t=ye;ye=!0;try{for(var n;;){if(hn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;yt()}}finally{ye=t}}function yt(){var e=null;try{for(var t=0;A.length>0;){var n=ie.ensure();if(t++>1e3){var r,s;bn()}n.process(A),B.clear()}}finally{A=[],De=null,ce=null}}function bn(){try{sn()}catch(e){Se(e,De)}}let j=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&he(r)&&(j=new Set,ae(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pt(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|F))===0&&ae(f)}}j.clear()}}j=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?Et(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&bt(s,t,r)&&(y(s,T),Y(s))}}function bt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(le.call(t,s))return!0;if((s.f&m)!==0&&bt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(fe|oe|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ce!==null&&t===d&&(e.f&oe)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function mt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function gt(e,t,n,r){const s=me()?ze:Tn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=mn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>gn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function mn(){var e=d,t=v,n=h,r=w;return function(a=!0){_e(e),K(t),xe(n),a&&r?.activate()}}function Fe(e=!0){_e(null),K(null),xe(null),e&&w?.deactivate()}function Tt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function ze(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:h,deps:null,effects:null,equals:dt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function gn(e,t,n){d===null&&en();var s=void 0,a=$e(b),l=!v,o=new Map;return Pn(()=>{var f=ct();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=Tt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[p,C]of o){if(o.delete(p),p===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),In(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Pr(e){const t=ze(e);return jt(t),t}function Tn(e){const t=ze(e);return t.equals=ht,t}function An(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function xn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ke(e){var t,n=d;_e(xn(e));try{e.f&=~re,An(e),t=Vt(e)}finally{_e(n)}return t}function At(e){var t=Ke(e);if(!e.equals(t)&&(e.wv=Ht(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Dt()||w?.is_fork)&&I.set(e,t):Ge(e))}function Sn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Zt,t.ac=null,Ee(t,0),We(t))}function xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ae(t)}let Le=new Set;const B=new Map;let St=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:dt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return jt(n),n}function Fr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=ht),be&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&nt)!==0)&&me()&&(v.f&(m|$|qe|nt))!==0&&(D===null||!le.call(D,e))&&ln();let r=n?pe(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=ie.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&Ke(s),Ge(s)}e.wv=Ht(),Rt(e,T),me()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(O===null?Yn([e]):O.push(e)),!r.is_fork&&Le.size>0&&!St&&Rn()}return t}function Rn(){St=!1;for(const e of Le)(e.f&E)!==0&&y(e,P),he(e)&&ae(e);Le.clear()}function Lr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function Rt(e,t){var n=e.reactions;if(n!==null)for(var r=me(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&k&&(l.f|=re),Rt(i,P))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function pe(e){if(typeof e!="object"||e===null||te in e)return e;const t=ut(e);if(t!==$t&&t!==Xt)return e;var n=new Map,r=Gt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;K(null),ot(a);var u=o();return K(f),ot(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&an();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||we(o,f)?.writable)&&(u=l(()=>{var g=pe(c?o[f]:b),p=H(g);return p}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||we(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?pe(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var p=n.get(g+"");p!==void 0?q(p,b):g in o&&(p=l(()=>H(b)),n.set(g+"",p))}if(c===void 0)(!_||we(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,pe(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>pe(i));q(c,C)}var Qe=Reflect.getOwnPropertyDescriptor(o,f);if(Qe?.set&&Qe.set.call(u,i),!_){if(r&&typeof f=="string"){var et=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=et.v&&q(et,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){fn()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function jr(e,t){return Object.is(at(e),at(t))}var ft,Nn,On,Nt,Ot;function Yr(){if(ft===void 0){ft=window,Nn=document,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=we(t,"firstChild").get,Ot=we(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Nt.call(e)}function Z(e){return Ot.call(e)}function Hr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==Oe){var r=Re();return n?.before(r),ue(r),r}return t&&Xe(n),ue(n),n}function qr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Oe){var r=Re();return S?.before(r),ue(r),r}Xe(S)}return S}function Vr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==Oe){var a=Re();return r===null?s?.after(a):r.before(a),ue(a),a}Xe(r)}return ue(r),r}function kn(e){e.textContent=""}function Ur(){return!1}function Br(e,t,n){return document.createElementNS(t??_n,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Oe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gr(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function zr(e){G&&Ne(e)!==null&&kn(e)}let it=!1;function Dn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;K(null),_e(null);try{return e()}finally{K(t),_e(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function kt(e){d===null&&(v===null&&rn(),nn()),se&&tn()}function Cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&fe)!==0)ce!==null?ce.push(r):Y(r);else if(t!==null){try{ae(r)}catch(l){throw z(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Cn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Dt(){return v!==null&&!M}function In(e){const t=N(oe,null);return y(t,E),t.teardown=e,t}function Mn(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return N(fe|_t,e)}function $r(e){return kt(),N(oe|_t,e)}function Xr(e){ie.ensure();const t=N(X|de,e);return()=>{z(t)}}function Zr(e){ie.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?jn(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function Wr(e){return N(fe,e)}function Jr(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=It(()=>{e(),!r.ran&&(r.ran=!0,Je(t))})}function Qr(){var e=h;It(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&y(n,P),he(n)&&ae(n),t.ran=!1}})}function Pn(e){return N(qe|de,e)}function It(e,t=0){return N(oe|t,e)}function es(e,t=[],n=[],r=[]){gt(r,t,n,s=>{N(oe,()=>e(...s.map(ee)))})}function ts(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=Tt();gt(r,t,n,a=>{N(fe,()=>e(...a.map(ee))),s&&s()})}function ns(e,t=0){var n=N($|t,e);return n}function rs(e,t=0){var n=N(He|t,e);return n}function ss(e){return N(L|de,e)}function Mt(e){var t=e.teardown;if(t!==null){const n=se,r=v;lt(!0),K(null);try{t.call(null)}finally{lt(n),K(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,t),n=r}}function Fn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ln(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),Ee(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Mt(e);var s=e.parent;s!==null&&s.first!==null&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ln(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Pt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var r=[];Ft(e,r,!0);var s=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Ft(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Ft(s,t,l?n:!1),s=a}}}function as(e){Lt(e,!0)}function Lt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Lt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function fs(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function lt(e){se=e}let v=null,M=!1;function K(e){v=e}let d=null;function _e(e){d=e}let D=null;function jt(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,O=null;function Yn(e){O=e}let Yt=1,Q=0,ne=Q;function ot(e){ne=e}function Ht(){return++Yt}function he(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(he(a)&&At(a),a.wv>e.wv)return!0}(t&k)!==0&&I===null&&y(e,E)}return!1}function qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&le.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?qt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,P),Y(a))}}function Vt(e){var t=x,n=R,r=O,s=v,a=D,l=h,o=M,f=ne,i=e.f;x=null,R=0,O=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var p;if(g||Ee(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Dt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(Ee(e,R),_.length=R);if(me()&&O!==null&&!M&&_!==null&&(e.f&(m|P|T))===0)for(p=0;p<O.length;p++)qt(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return pn(C)}finally{e.f^=Me,x=t,R=n,O=r,v=s,D=a,xe(l),M=o,ne=f}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=zt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!le.call(x,t))){var a=t;(a.f&k)!==0&&(a.f^=k,a.f&=~re),Ge(a),Sn(a),Ee(a,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function ae(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Fn(e):We(e),Mt(e);var s=Vt(e);e.teardown=typeof s=="function"?s:null,e.wv=Yt;var a}finally{Te=r,d=n}}}async function is(){await Promise.resolve(),En()}function ls(){return ie.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!le.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:le.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Bt(l))&&(o=Ke(l)),B.set(l,o),o}var f=(l.f&k)===0&&!M&&v!==null&&(Te||(v.f&k)!==0),i=(l.f&ve)===0;he(l)&&(f&&(l.f|=k),At(l)),f&&!i&&(xt(l),Ut(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&k)===0&&(xt(t),Ut(t))}function Bt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Bt(t))return!0;return!1}function Je(e){var t=M;try{return M=!0,e()}finally{M=t}}function os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ut(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function qn(e){h===null&&Ve(),be&&h.l!==null?Vn(h).m.push(e):Mn(()=>{const t=Je(e);if(typeof t=="function")return t})}function us(e){h===null&&Ve(),qn(()=>()=>Je(e))}function Vn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Nn as $,Ae as A,Rr as B,vt as C,Sr as D,de as E,on as F,h as G,Qt as H,$r as I,Wt as J,Mn as K,Je as L,zn as M,ze as N,Nr as O,Wr as P,pe as Q,Or as R,Xn as S,En as T,Bn as U,qn as V,is as W,as as X,z as Y,jn as Z,ss as _,Qr as a,Oe as a$,w as a0,fs as a1,Ur as a2,un as a3,It as a4,Pe as a5,te as a6,we as a7,nr as a8,cr as a9,ir as aA,Kr as aB,rt as aC,Zt as aD,Dt as aE,Ie as aF,Jt as aG,pr as aH,ie as aI,y as aJ,T as aK,Y as aL,P as aM,yn as aN,K as aO,xe as aP,pn as aQ,v as aR,Se as aS,rr as aT,mr as aU,Ze as aV,In as aW,Br as aX,On as aY,dr as aZ,hr as a_,se as aa,d as ab,V as ac,_r as ad,be as ae,ur as af,or as ag,Tn as ah,Gn as ai,vr as aj,$e as ak,Lr as al,_e as am,je as an,er as ao,ar as ap,sr as aq,lr as ar,Gt as as,Un as at,cn as au,$n as av,F as aw,L as ax,kn as ay,fr as az,Mr as b,Xe as b0,ve as b1,Yr as b2,Ue as b3,tr as b4,Zr as b5,Be as b6,rs as b7,br as b8,jr as b9,ls as bA,gt as ba,_n as bb,ut as bc,Er as bd,Kt as be,Jn as bf,Gr as bg,b as bh,Dn as bi,Zn as bj,ft as bk,us as bl,Kn as bm,Dr as bn,kr as bo,Xr as bp,$t as bq,Qn as br,wr as bs,zr as bt,me as bu,Ln as bv,yr as bw,ne as bx,Cr as by,vn as bz,Hr as c,os as d,Re as e,ns as f,ee as g,G as h,Z as i,gr as j,ue as k,Jr as l,Fr as m,xr as n,S as o,Ir as p,Ne as q,Ar as r,q as s,es as t,qr as u,Vr as v,ts as w,Pr as x,H as y,Tr as z};
|
|
1
|
+
var Gt=Array.isArray,zt=Array.prototype.indexOf,le=Array.prototype.includes,Un=Array.from,Bn=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Kt=Object.getOwnPropertyDescriptors,$t=Object.prototype,Xt=Array.prototype,ut=Object.getPrototypeOf,tt=Object.isExtensible;function Gn(e){return typeof e=="function"}const Zt=()=>{};function zn(e){return e()}function Wt(e){for(var t=0;t<e.length;t++)e[t]()}function ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function Kn(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,fe=4,oe=8,He=1<<24,$=16,L=32,X=64,Jt=128,k=512,E=1024,T=2048,P=4096,F=8192,V=16384,ve=32768,Ae=65536,nt=1<<17,Qt=1<<18,de=1<<19,_t=1<<20,$n=1<<25,re=65536,Me=1<<21,qe=1<<22,U=1<<23,te=Symbol("$state"),Xn=Symbol("legacy props"),Zn=Symbol(""),W=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Qn=1,Oe=3,vt=8;function Ve(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function en(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function er(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tr(){throw new Error("https://svelte.dev/e/hydration_failed")}function nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const sr=1,ar=2,fr=4,ir=8,lr=16,or=1,ur=2,cr=4,_r=8,vr=16,dr=1,hr=2,on="[",un="[!",pr="[?",cn="]",Ue={},b=Symbol(),_n="http://www.w3.org/1999/xhtml",wr="http://www.w3.org/2000/svg",yr="http://www.w3.org/1998/Math/MathML",Er="@attach";function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function br(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function gr(e){G=e}let S;function ue(e){if(e===null)throw Be(),Ue;return S=e}function Tr(){return ue(Z(S))}function Ar(e){if(G){if(Z(S)!==null)throw Be(),Ue;S=e}}function xr(e=1){if(G){for(var t=e,n=S;t--;)n=Z(n);S=n}}function Sr(e=!0){for(var t=0,n=S;;){if(n.nodeType===vt){var r=n.data;if(r===cn){if(t===0)return n;t-=1}else(r===on||r===un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Rr(e){if(!e||e.nodeType!==vt)throw Be(),Ue;return e.data}function dt(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ht(e){return!vn(e,this.v)}let be=!1;function Nr(){be=!0}let h=null;function xe(e){h=e}function Or(e){return ke().get(e)}function kr(e,t){return ke().set(e,t),t}function Dr(e){return ke().has(e)}function Cr(){return ke()}function Ir(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:be&&!t?{s:null,u:null,$:[]}:null}}function Mr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,h=t.p,e??{}}function me(){return!be||h!==null&&h.l===null}function ke(e){return h===null&&Ve(),h.c??=new Map(dn(h)||void 0)}function dn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let J=[];function pt(){var e=J;J=[],Wt(e)}function Pe(e){if(J.length===0&&!ye){var t=J;queueMicrotask(()=>{t===J&&pt()})}J.push(e)}function hn(){for(;J.length>0;)pt()}function pn(e){var t=d;if(t===null)return v.f|=U,e;if((t.f&ve)===0&&(t.f&fe)===0)throw e;Se(e,t)}function Se(e,t){for(;t!==null;){if((t.f&Jt)!==0){if((t.f&ve)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const wn=-7169;function y(e,t){e.f=e.f&wn|t}function Ge(e){(e.f&k)!==0||e.deps===null?y(e,E):y(e,P)}function wt(e){if(e!==null)for(const t of e)(t.f&m)===0||(t.f&re)===0||(t.f^=re,wt(t.deps))}function yn(e,t,n){(e.f&T)!==0?t.add(e):(e.f&P)!==0&&n.add(e),wt(e.deps),y(e,E)}const ge=new Set;let w=null,rt=null,I=null,A=[],De=null,ye=!1,ce=null;class ie{current=new Map;previous=new Map;#t=new Set;#s=new Set;#r=0;#a=0;#f=null;#i=new Set;#n=new Set;#e=new Map;is_fork=!1;#l=!1;#o(){return this.is_fork||this.#a>0}skip_effect(t){this.#e.has(t)||this.#e.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#e.get(t);if(n){this.#e.delete(t);for(var r of n.d)y(r,T),Y(r);for(r of n.m)y(r,P),Y(r)}}process(t){A=[],this.apply();var n=ce=[],r=[];for(const s of t)this.#u(s,n,r);if(ce=null,this.#o()){this.#c(r),this.#c(n);for(const[s,a]of this.#e)mt(s,a)}else{rt=this,w=null;for(const s of this.#t)s(this);this.#t.clear(),this.#r===0&&this.#_(),st(r),st(n),this.#i.clear(),this.#n.clear(),rt=null,this.#f?.resolve()}I=null}#u(t,n,r){t.f^=E;for(var s=t.first;s!==null;){var a=s.f,l=(a&(L|X))!==0,o=l&&(a&E)!==0,f=o||(a&F)!==0||this.#e.has(s);if(!f&&s.fn!==null){l?s.f^=E:(a&fe)!==0?n.push(s):he(s)&&((a&$)!==0&&this.#n.add(s),ae(s));var i=s.first;if(i!==null){s=i;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)yn(t[n],this.#i,this.#n)}capture(t,n){n!==b&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&U)===0&&(this.current.set(t,t.v),I?.set(t,t.v))}activate(){w=this,this.apply()}deactivate(){w===this&&(w=null,I=null)}flush(){if(A.length>0)w=this,yt();else if(this.#r===0&&!this.is_fork){for(const t of this.#t)t(this);this.#t.clear(),this.#_(),this.#f?.resolve()}this.deactivate()}discard(){for(const t of this.#s)t(this);this.#s.clear()}#_(){if(ge.size>1){this.previous.clear();var t=w,n=I,r=!0;for(const a of ge){if(a===this){r=!1;continue}const l=[];for(const[f,i]of this.current){if(a.current.has(f))if(r&&i!==a.current.get(f))a.current.set(f,i);else continue;l.push(f)}if(l.length===0)continue;const o=[...a.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var s=A;A=[];const f=new Set,i=new Map;for(const u of l)Et(u,o,f,i);if(A.length>0){w=a,a.apply();for(const u of A)a.#u(u,[],[]);a.deactivate()}A=s}}w=t,I=n}this.#e.clear(),ge.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),!this.#l&&(this.#l=!0,Pe(()=>{this.#l=!1,this.#o()?A.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#n.delete(t),y(t,T),Y(t);for(const t of this.#n)y(t,P),Y(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#s.add(t)}settled(){return(this.#f??=ct()).promise}static ensure(){if(w===null){const t=w=new ie;ge.add(w),ye||Pe(()=>{w===t&&t.flush()})}return w}apply(){}}function En(e){var t=ye;ye=!0;try{for(var n;;){if(hn(),A.length===0&&(w?.flush(),A.length===0))return De=null,n;yt()}}finally{ye=t}}function yt(){var e=null;try{for(var t=0;A.length>0;){var n=ie.ensure();if(t++>1e3){var r,s;bn()}n.process(A),B.clear()}}finally{A=[],De=null,ce=null}}function bn(){try{sn()}catch(e){Se(e,De)}}let j=null;function st(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|F))===0&&he(r)&&(j=new Set,ae(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pt(r),j?.size>0)){B.clear();for(const s of j){if((s.f&(V|F))!==0)continue;const a=[s];let l=s.parent;for(;l!==null;)j.has(l)&&(j.delete(l),a.push(l)),l=l.parent;for(let o=a.length-1;o>=0;o--){const f=a[o];(f.f&(V|F))===0&&ae(f)}}j.clear()}}j=null}}function Et(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const a=s.f;(a&m)!==0?Et(s,t,n,r):(a&(qe|$))!==0&&(a&T)===0&&bt(s,t,r)&&(y(s,T),Y(s))}}function bt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(le.call(t,s))return!0;if((s.f&m)!==0&&bt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Y(e){var t=De=e,n=t.b;if(n?.is_pending&&(e.f&(fe|oe|He))!==0&&(e.f&ve)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(ce!==null&&t===d&&(e.f&oe)===0)return;if((r&(X|L))!==0){if((r&E)===0)return;t.f^=E}}A.push(t)}function mt(e,t){if(!((e.f&L)!==0&&(e.f&E)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&P)!==0&&t.m.push(e),y(e,E);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function gt(e,t,n,r){const s=me()?ze:Tn;var a=e.filter(c=>!c.settled);if(n.length===0&&a.length===0){r(t.map(s));return}var l=d,o=mn(),f=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function i(c){o();try{r(c)}catch(_){(l.f&V)===0&&Se(_,l)}Fe()}if(n.length===0){f.then(()=>i(t.map(s)));return}function u(){o(),Promise.all(n.map(c=>gn(c))).then(c=>i([...t.map(s),...c])).catch(c=>Se(c,l))}f?f.then(u):u()}function mn(){var e=d,t=v,n=h,r=w;return function(a=!0){_e(e),K(t),xe(n),a&&r?.activate()}}function Fe(e=!0){_e(null),K(null),xe(null),e&&w?.deactivate()}function Tt(){var e=d.b,t=w,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function ze(e){var t=m|T,n=v!==null&&(v.f&m)!==0?v:null;return d!==null&&(d.f|=de),{ctx:h,deps:null,effects:null,equals:dt,f:t,fn:e,reactions:null,rv:0,v:b,wv:0,parent:n??d,ac:null}}function gn(e,t,n){d===null&&en();var s=void 0,a=$e(b),l=!v,o=new Map;return Pn(()=>{var f=ct();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fe)}catch(_){f.reject(_),Fe()}var i=w;if(l){var u=Tt();o.get(i)?.reject(W),o.delete(i),o.set(i,f)}const c=(_,g=void 0)=>{if(i.activate(),g)g!==W&&(a.f|=U,je(a,g));else{(a.f&U)!==0&&(a.f^=U),je(a,_);for(const[p,C]of o){if(o.delete(p),p===i)break;C.reject(W)}}u&&u()};f.promise.then(c,_=>c(null,_||"unknown"))}),In(()=>{for(const f of o.values())f.reject(W)}),new Promise(f=>{function i(u){function c(){u===s?f(a):i(s)}u.then(c,c)}i(s)})}function Pr(e){const t=ze(e);return jt(t),t}function Tn(e){const t=ze(e);return t.equals=ht,t}function An(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function xn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function Ke(e){var t,n=d;_e(xn(e));try{e.f&=~re,An(e),t=Vt(e)}finally{_e(n)}return t}function At(e){var t=Ke(e);if(!e.equals(t)&&(e.wv=Ht(),(!w?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){y(e,E);return}se||(I!==null?(Dt()||w?.is_fork)&&I.set(e,t):Ge(e))}function Sn(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(W),t.teardown=Zt,t.ac=null,Ee(t,0),We(t))}function xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ae(t)}let Le=new Set;const B=new Map;let St=!1;function $e(e,t){var n={f:0,v:e,reactions:null,equals:dt,rv:0,wv:0};return n}function H(e,t){const n=$e(e);return jt(n),n}function Fr(e,t=!1,n=!0){const r=$e(e);return t||(r.equals=ht),be&&n&&h!==null&&h.l!==null&&(h.l.s??=[]).push(r),r}function q(e,t,n=!1){v!==null&&(!M||(v.f&nt)!==0)&&me()&&(v.f&(m|$|qe|nt))!==0&&(D===null||!le.call(D,e))&&ln();let r=n?pe(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;se?B.set(e,t):B.set(e,n),e.v=t;var r=ie.ensure();if(r.capture(e,n),(e.f&m)!==0){const s=e;(e.f&T)!==0&&Ke(s),Ge(s)}e.wv=Ht(),Rt(e,T),me()&&d!==null&&(d.f&E)!==0&&(d.f&(L|X))===0&&(O===null?Yn([e]):O.push(e)),!r.is_fork&&Le.size>0&&!St&&Rn()}return t}function Rn(){St=!1;for(const e of Le)(e.f&E)!==0&&y(e,P),he(e)&&ae(e);Le.clear()}function Lr(e,t=1){var n=ee(e),r=t===1?n++:n--;return q(e,n),r}function Ie(e){q(e,e.v+1)}function Rt(e,t){var n=e.reactions;if(n!==null)for(var r=me(),s=n.length,a=0;a<s;a++){var l=n[a],o=l.f;if(!(!r&&l===d)){var f=(o&T)===0;if(f&&y(l,t),(o&m)!==0){var i=l;I?.delete(i),(o&re)===0&&(o&k&&(l.f|=re),Rt(i,P))}else f&&((o&$)!==0&&j!==null&&j.add(l),Y(l))}}}function pe(e){if(typeof e!="object"||e===null||te in e)return e;const t=ut(e);if(t!==$t&&t!==Xt)return e;var n=new Map,r=Gt(e),s=H(0),a=ne,l=o=>{if(ne===a)return o();var f=v,i=ne;K(null),ot(a);var u=o();return K(f),ot(i),u};return r&&n.set("length",H(e.length)),new Proxy(e,{defineProperty(o,f,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&an();var u=n.get(f);return u===void 0?l(()=>{var c=H(i.value);return n.set(f,c),c}):q(u,i.value,!0),!0},deleteProperty(o,f){var i=n.get(f);if(i===void 0){if(f in o){const u=l(()=>H(b));n.set(f,u),Ie(s)}}else q(i,b),Ie(s);return!0},get(o,f,i){if(f===te)return e;var u=n.get(f),c=f in o;if(u===void 0&&(!c||we(o,f)?.writable)&&(u=l(()=>{var g=pe(c?o[f]:b),p=H(g);return p}),n.set(f,u)),u!==void 0){var _=ee(u);return _===b?void 0:_}return Reflect.get(o,f,i)},getOwnPropertyDescriptor(o,f){var i=Reflect.getOwnPropertyDescriptor(o,f);if(i&&"value"in i){var u=n.get(f);u&&(i.value=ee(u))}else if(i===void 0){var c=n.get(f),_=c?.v;if(c!==void 0&&_!==b)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(o,f){if(f===te)return!0;var i=n.get(f),u=i!==void 0&&i.v!==b||Reflect.has(o,f);if(i!==void 0||d!==null&&(!u||we(o,f)?.writable)){i===void 0&&(i=l(()=>{var _=u?pe(o[f]):b,g=H(_);return g}),n.set(f,i));var c=ee(i);if(c===b)return!1}return u},set(o,f,i,u){var c=n.get(f),_=f in o;if(r&&f==="length")for(var g=i;g<c.v;g+=1){var p=n.get(g+"");p!==void 0?q(p,b):g in o&&(p=l(()=>H(b)),n.set(g+"",p))}if(c===void 0)(!_||we(o,f)?.writable)&&(c=l(()=>H(void 0)),q(c,pe(i)),n.set(f,c));else{_=c.v!==b;var C=l(()=>pe(i));q(c,C)}var Qe=Reflect.getOwnPropertyDescriptor(o,f);if(Qe?.set&&Qe.set.call(u,i),!_){if(r&&typeof f=="string"){var et=n.get("length"),Ce=Number(f);Number.isInteger(Ce)&&Ce>=et.v&&q(et,Ce+1)}Ie(s)}return!0},ownKeys(o){ee(s);var f=Reflect.ownKeys(o).filter(c=>{var _=n.get(c);return _===void 0||_.v!==b});for(var[i,u]of n)u.v!==b&&!(i in o)&&f.push(i);return f},setPrototypeOf(){fn()}})}function at(e){try{if(e!==null&&typeof e=="object"&&te in e)return e[te]}catch{}return e}function jr(e,t){return Object.is(at(e),at(t))}var ft,Nn,On,Nt,Ot;function Yr(){if(ft===void 0){ft=window,Nn=document,On=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Nt=we(t,"firstChild").get,Ot=we(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Re(e=""){return document.createTextNode(e)}function Ne(e){return Nt.call(e)}function Z(e){return Ot.call(e)}function Hr(e,t){if(!G)return Ne(e);var n=Ne(S);if(n===null)n=S.appendChild(Re());else if(t&&n.nodeType!==Oe){var r=Re();return n?.before(r),ue(r),r}return t&&Xe(n),ue(n),n}function qr(e,t=!1){if(!G){var n=Ne(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(S?.nodeType!==Oe){var r=Re();return S?.before(r),ue(r),r}Xe(S)}return S}function Vr(e,t=1,n=!1){let r=G?S:e;for(var s;t--;)s=r,r=Z(r);if(!G)return r;if(n){if(r?.nodeType!==Oe){var a=Re();return r===null?s?.after(a):r.before(a),ue(a),a}Xe(r)}return ue(r),r}function kn(e){e.textContent=""}function Ur(){return!1}function Br(e,t,n){return document.createElementNS(t??_n,e,void 0)}function Xe(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Oe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Gr(e,t){if(t){const n=document.body;e.autofocus=!0,Pe(()=>{document.activeElement===n&&e.focus()})}}function zr(e){G&&Ne(e)!==null&&kn(e)}let it=!1;function Dn(){it||(it=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ze(e){var t=v,n=d;K(null),_e(null);try{return e()}finally{K(t),_e(n)}}function Kr(e,t,n,r=n){e.addEventListener(t,()=>Ze(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Dn()}function kt(e){d===null&&(v===null&&rn(),nn()),se&&tn()}function Cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function N(e,t){var n=d;n!==null&&(n.f&F)!==0&&(e|=F);var r={ctx:h,deps:null,nodes:null,f:e|T|k,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&fe)!==0)ce!==null?ce.push(r):Y(r);else if(t!==null){try{ae(r)}catch(l){throw z(r),l}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&$)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae))}if(s!==null&&(s.parent=n,n!==null&&Cn(s,n),v!==null&&(v.f&m)!==0&&(e&X)===0)){var a=v;(a.effects??=[]).push(s)}return r}function Dt(){return v!==null&&!M}function In(e){const t=N(oe,null);return y(t,E),t.teardown=e,t}function Mn(e){kt();var t=d.f,n=!v&&(t&L)!==0&&(t&ve)===0;if(n){var r=h;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return N(fe|_t,e)}function $r(e){return kt(),N(oe|_t,e)}function Xr(e){ie.ensure();const t=N(X|de,e);return()=>{z(t)}}function Zr(e){ie.ensure();const t=N(X|de,e);return(n={})=>new Promise(r=>{n.outro?jn(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function Wr(e){return N(fe,e)}function Jr(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=It(()=>{e(),!r.ran&&(r.ran=!0,Je(t))})}function Qr(){var e=h;It(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&E)!==0&&n.deps!==null&&y(n,P),he(n)&&ae(n),t.ran=!1}})}function Pn(e){return N(qe|de,e)}function It(e,t=0){return N(oe|t,e)}function es(e,t=[],n=[],r=[]){gt(r,t,n,s=>{N(oe,()=>e(...s.map(ee)))})}function ts(e,t=[],n=[],r=[]){if(n.length>0||r.length>0)var s=Tt();gt(r,t,n,a=>{N(fe,()=>e(...a.map(ee))),s&&s()})}function ns(e,t=0){var n=N($|t,e);return n}function rs(e,t=0){var n=N(He|t,e);return n}function ss(e){return N(L|de,e)}function Mt(e){var t=e.teardown;if(t!==null){const n=se,r=v;lt(!0),K(null);try{t.call(null)}finally{lt(n),K(r)}}}function We(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ze(()=>{s.abort(W)});var r=n.next;(n.f&X)!==0?n.parent=null:z(n,t),n=r}}function Fn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ln(e.nodes.start,e.nodes.end),n=!0),We(e,t&&!n),Ee(e,0),y(e,V);var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)a.stop();Mt(e);var s=e.parent;s!==null&&s.first!==null&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ln(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Pt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function jn(e,t,n=!0){var r=[];Ft(e,r,!0);var s=()=>{n&&z(e),t&&t()},a=r.length;if(a>0){var l=()=>--a||s();for(var o of r)o.out(l)}else s()}function Ft(e,t,n){if((e.f&F)===0){e.f^=F;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var a=s.next,l=(s.f&Ae)!==0||(s.f&L)!==0&&(e.f&$)!==0;Ft(s,t,l?n:!1),s=a}}}function as(e){Lt(e,!0)}function Lt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&E)===0&&(y(e,T),Y(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ae)!==0||(n.f&L)!==0;Lt(n,s?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(const l of a)(l.is_global||t)&&l.in()}}function fs(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let Te=!1,se=!1;function lt(e){se=e}let v=null,M=!1;function K(e){v=e}let d=null;function _e(e){d=e}let D=null;function jt(e){v!==null&&(D===null?D=[e]:D.push(e))}let x=null,R=0,O=null;function Yn(e){O=e}let Yt=1,Q=0,ne=Q;function ot(e){ne=e}function Ht(){return++Yt}function he(e){var t=e.f;if((t&T)!==0)return!0;if(t&m&&(e.f&=~re),(t&P)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var a=n[s];if(he(a)&&At(a),a.wv>e.wv)return!0}(t&k)!==0&&I===null&&y(e,E)}return!1}function qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&le.call(D,e)))for(var s=0;s<r.length;s++){var a=r[s];(a.f&m)!==0?qt(a,t,!1):t===a&&(n?y(a,T):(a.f&E)!==0&&y(a,P),Y(a))}}function Vt(e){var t=x,n=R,r=O,s=v,a=D,l=h,o=M,f=ne,i=e.f;x=null,R=0,O=null,v=(i&(L|X))===0?e:null,D=null,xe(e.ctx),M=!1,ne=++Q,e.ac!==null&&(Ze(()=>{e.ac.abort(W)}),e.ac=null);try{e.f|=Me;var u=e.fn,c=u();e.f|=ve;var _=e.deps,g=w?.is_fork;if(x!==null){var p;if(g||Ee(e,R),_!==null&&R>0)for(_.length=R+x.length,p=0;p<x.length;p++)_[R+p]=x[p];else e.deps=_=x;if(Dt()&&(e.f&k)!==0)for(p=R;p<_.length;p++)(_[p].reactions??=[]).push(e)}else!g&&_!==null&&R<_.length&&(Ee(e,R),_.length=R);if(me()&&O!==null&&!M&&_!==null&&(e.f&(m|P|T))===0)for(p=0;p<O.length;p++)qt(O[p],e);if(s!==null&&s!==e){if(Q++,s.deps!==null)for(let C=0;C<n;C+=1)s.deps[C].rv=Q;if(t!==null)for(const C of t)C.rv=Q;O!==null&&(r===null?r=O:r.push(...O))}return(e.f&U)!==0&&(e.f^=U),c}catch(C){return pn(C)}finally{e.f^=Me,x=t,R=n,O=r,v=s,D=a,xe(l),M=o,ne=f}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=zt.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&m)!==0&&(x===null||!le.call(x,t))){var a=t;(a.f&k)!==0&&(a.f^=k,a.f&=~re),Ge(a),Sn(a),Ee(a,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function ae(e){var t=e.f;if((t&V)===0){y(e,E);var n=d,r=Te;d=e,Te=!0;try{(t&($|He))!==0?Fn(e):We(e),Mt(e);var s=Vt(e);e.teardown=typeof s=="function"?s:null,e.wv=Yt;var a}finally{Te=r,d=n}}}async function is(){await Promise.resolve(),En()}function ls(){return ie.ensure().settled()}function ee(e){var t=e.f,n=(t&m)!==0;if(v!==null&&!M){var r=d!==null&&(d.f&V)!==0;if(!r&&(D===null||!le.call(D,e))){var s=v.deps;if((v.f&Me)!==0)e.rv<Q&&(e.rv=Q,x===null&&s!==null&&s[R]===e?R++:x===null?x=[e]:x.push(e));else{(v.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[v]:le.call(a,v)||a.push(v)}}}if(se&&B.has(e))return B.get(e);if(n){var l=e;if(se){var o=l.v;return((l.f&E)===0&&l.reactions!==null||Bt(l))&&(o=Ke(l)),B.set(l,o),o}var f=(l.f&k)===0&&!M&&v!==null&&(Te||(v.f&k)!==0),i=(l.f&ve)===0;he(l)&&(f&&(l.f|=k),At(l)),f&&!i&&(xt(l),Ut(l))}if(I?.has(e))return I.get(e);if((e.f&U)!==0)throw e.v;return e.v}function Ut(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&k)===0&&(xt(t),Ut(t))}function Bt(e){if(e.v===b)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(B.has(t)||(t.f&m)!==0&&Bt(t))return!0;return!1}function Je(e){var t=M;try{return M=!0,e()}finally{M=t}}function os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(te in e)Ye(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&te in n&&Ye(n)}}}function Ye(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ye(e[r],t)}catch{}const n=ut(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Kt(n);for(let s in r){const a=r[s].get;if(a)try{a.call(e)}catch{}}}}}function qn(e){h===null&&Ve(),be&&h.l!==null?Vn(h).m.push(e):Mn(()=>{const t=Je(e);if(typeof t=="function")return t})}function us(e){h===null&&Ve(),qn(()=>()=>Je(e))}function Vn(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{Kr as $,$n as A,ss as B,vt as C,er as D,Ae as E,Ur as F,Tn as G,on as H,Gt as I,Un as J,sr as K,lr as L,$e as M,ar as N,as as O,jn as P,F as Q,L as R,kn as S,z as T,Pe as U,Z as V,fr as W,ir as X,H as Y,Qt as Z,de as _,Qr as a,P as a$,is as a0,Je as a1,It as a2,rt as a3,qr as a4,Vr as a5,pe as a6,Lr as a7,h as a8,$r as a9,En as aA,Bn as aB,qn as aC,us as aD,rs as aE,br as aF,jr as aG,In as aH,gt as aI,_n as aJ,ut as aK,Er as aL,Kt as aM,Jn as aN,Gr as aO,b as aP,Dn as aQ,Zn as aR,Zt as aS,Dt as aT,Ie as aU,Jt as aV,pr as aW,ie as aX,y as aY,T as aZ,Y as a_,Wt as aa,Mn as ab,zn as ac,ze as ad,Nr as ae,ts as af,Pr as ag,Nn as ah,Wr as ai,we as aj,nr as ak,cr as al,se as am,d as an,V as ao,_r as ap,be as aq,ur as ar,or as as,Gn as at,te as au,Xn as av,vr as aw,_e as ax,Or as ay,fs as az,Mr as b,yn as b0,K as b1,xe as b2,pn as b3,v as b4,Se as b5,rr as b6,mr as b7,Ze as b8,Br as b9,ls as bA,On as ba,dr as bb,hr as bc,Oe as bd,Xe as be,ve as bf,Yr as bg,Ue as bh,tr as bi,Zr as bj,Be as bk,vn as bl,ft as bm,Kn as bn,Dr as bo,kr as bp,Xr as bq,Ln as br,wr as bs,yr as bt,zr as bu,$t as bv,Qn as bw,me as bx,ne as by,Cr as bz,Hr as c,os as d,ns as e,Tr as f,ee as g,G as h,Rr as i,Sr as j,ue as k,Jr as l,Fr as m,xr as n,gr as o,Ir as p,S as q,Ar as r,q as s,es as t,Re as u,Ne as v,un as w,cn as x,je as y,w as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a8 as d,a9 as g,aa as l,ab as i,a1 as b,ac as m,g as p,d as v,ad as h,ae as k}from"./BLp0X8Gk.js";function x(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let c=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],c=!0);return c&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),l(e.b)}),i(()=>{const n=b(()=>e.m.map(m));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&i(()=>{u(a,f),l(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{x as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as O,e as y,h as M,k as b,v as Z,f as $,g as V,i as j,w as ee,j as U,o as F,q as H,C as re,x as ne,y as X,z as fe,A as m,B as L,D as ae,F as ie,G as le,I as ue,J as B,K as se,L as oe,m as te,M as Y,N as ve,O as J,P as K,Q as z,R as de,S as ce,T as pe,U as _e,V as he,W as P,X as ge}from"./BLp0X8Gk.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];K(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;ce(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)pe(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&P)!==0;if(a){var t=e;u=M?b(Z(t)):t.appendChild(O())}M&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?J(n):(n.f^=m,D(n,null,u)):K(n,()=>{n=null}))}var I=y(()=>{o=V(E);var f=o.length;let N=!1;if(M){var S=j(u)===ee;S!==(f===0)&&(u=U(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){M&&H.nodeType===re&&H.data===ne&&(u=H,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&X(v.v,w),v.i&&X(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),M&&f>0&&b(U()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,M&&(u=H)}function k(e){for(;e!==null&&(e.f&de)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&ge)!==0,u=i.length,p=e.items,a=k(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)D(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),D(r,N,l),n=r,o=[],c=[],a=k(n.next);continue}if((r.f&z)!==0&&(J(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)D(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),D(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=k(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=k(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=k(a.next);var w=_.length;if(w>0){var R=(d&P)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&_e(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):Y(l):null,t=(u&ve)!==0?Y(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function D(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=he(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as E,s as Je,f as Yt,l as or,o as W,g as R,p as se,b as pt,m as fo,u as ho}from"./DoQdsI-P.js";import{i as Qe}from"./BNVCPAnF.js";import{aL as go,h as po,f as mo,bx as vo,e as yo,Y as P,by as Fn,M as bo,g as u,s as y,aU as Qt,p as F,l as zt,d as bt,a as $e,c as ot,n as tn,r as it,b as N,m as Vt,t as en,ag as x,a6 as Lt,bo as wo,ay as Nn,bp as xo,a9 as So,ab as Z,a1 as He,a0 as Ao,a4 as T,aS as z,bz as Oo,bq as ir,a5 as ve,aC as Co}from"./BLp0X8Gk.js";import{B as Eo,i as J,b as sr}from"./OKhOOfKB.js";import{a as mt,s as _}from"./CrgPkghk.js";import{l as Ht,p as v,r as H,s as tt}from"./FefWW-qv.js";import{b as Le,a as Q}from"./DLGVnhPm.js";import{c as Dt}from"./B97Kx4RB.js";import{c as _t,b as Po}from"./JPu9c3TR.js";function To(){return Symbol(go)}const Mo=Symbol("NaN");function Ro(e,t,n){po&&mo();var r=new Eo(e),o=!vo();yo(()=>{var s=t();s!==s&&(s=Mo),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class Io extends Map{#t=new Map;#e=P(0);#n=P(0);#r=Fn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Fn===this.#r?P(t):bo(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return u(this.#e),!1;return u(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{u(this.#e);return}return u(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Qt(a);else if(s!==n){Qt(o);var c=a.reactions===null?null:new Set(a.reactions),l=c===null||!o.reactions?.every(h=>c.has(h));l&&Qt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Qt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Qt(this.#e),t.clear()}}#i(){u(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)u(r)}keys(){return u(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return u(this.#n),super.size}}var kn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fo=/\n/g,No=/^\s*/,ko=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Do=/^:\s*/,_o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Bo=/^[;\s]*/,Lo=/^\s+|\s+$/g,Wo=`
|
|
2
|
+
`,Dn="/",_n="*",It="",zo="comment",Vo="declaration";function Ho(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(m){var p=m.match(Fo);p&&(n+=p.length);var b=m.lastIndexOf(Wo);r=~b?m.length-b:r+m.length}function s(){var m={line:n,column:r};return function(p){return p.position=new i(m),l(),p}}function i(m){this.start=m,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(m){var p=new Error(t.source+":"+n+":"+r+": "+m);if(p.reason=m,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(m){var p=m.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function l(){c(No)}function h(m){var p;for(m=m||[];p=d();)p!==!1&&m.push(p);return m}function d(){var m=s();if(!(Dn!=e.charAt(0)||_n!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(_n!=e.charAt(p)||Dn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,m({type:zo,comment:b})}}function g(){var m=s(),p=c(ko);if(p){if(d(),!c(Do))return a("property missing ':'");var b=c(_o),S=m({type:Vo,property:Bn(p[0].replace(kn,It)),value:b?Bn(b[0].replace(kn,It)):It});return c(Bo),S}}function f(){var m=[];h(m);for(var p;p=g();)p!==!1&&(m.push(p),h(m));return m}return l(),f()}function Bn(e){return e?e.replace(Lo,It):It}function Ko(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Ho(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}var Uo=Yt("<title> </title>"),jo=Yt('<svg><!><path d="M22 16 12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"></path></svg>');function Ec(e,t){const n=Ht(t,["children","$$slots","$$events","$$legacy"]),r=Ht(n,["size","title"]);F(t,!1);const o=Vt(),s=Vt();let i=v(t,"size",8,16),a=v(t,"title",8,void 0);zt(()=>(bt(n),bt(a())),()=>{y(o,n["aria-label"]||n["aria-labelledby"]||a())}),zt(()=>(u(o),bt(n)),()=>{y(s,{"aria-hidden":u(o)?void 0:!0,role:u(o)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),$e(),Qe();var c=jo();mt(c,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:i(),height:i(),...u(s),...r}));var l=ot(c);{var h=d=>{var g=Uo(),f=ot(g,!0);it(g),en(()=>Je(f,a())),E(d,g)};J(l,d=>{a()&&d(h)})}tn(),it(c),E(e,c),N()}var Yo=Yt("<title> </title>"),Go=Yt('<svg><!><path d="M17 15 17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"></path></svg>');function Pc(e,t){const n=Ht(t,["children","$$slots","$$events","$$legacy"]),r=Ht(n,["size","title"]);F(t,!1);const o=Vt(),s=Vt();let i=v(t,"size",8,16),a=v(t,"title",8,void 0);zt(()=>(bt(n),bt(a())),()=>{y(o,n["aria-label"]||n["aria-labelledby"]||a())}),zt(()=>(u(o),bt(n)),()=>{y(s,{"aria-hidden":u(o)?void 0:!0,role:u(o)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),$e(),Qe();var c=Go();mt(c,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:i(),height:i(),...u(s),...r}));var l=ot(c);{var h=d=>{var g=Yo(),f=ot(g,!0);it(g),en(()=>Je(f,a())),E(d,g)};J(l,d=>{a()&&d(h)})}tn(),it(c),E(e,c),N()}var Xo=Yt("<title> </title>"),qo=Yt('<svg><!><path d="M12 12H14V24H12z"></path><path d="M18 12H20V24H18z"></path><path d="M4,6V8H6V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V8h2V6ZM8,28V8H24V28Z"></path><path d="M12 2H20V4H12z"></path></svg>');function Tc(e,t){const n=Ht(t,["children","$$slots","$$events","$$legacy"]),r=Ht(n,["size","title"]);F(t,!1);const o=Vt(),s=Vt();let i=v(t,"size",8,16),a=v(t,"title",8,void 0);zt(()=>(bt(n),bt(a())),()=>{y(o,n["aria-label"]||n["aria-labelledby"]||a())}),zt(()=>(u(o),bt(n)),()=>{y(s,{"aria-hidden":u(o)?void 0:!0,role:u(o)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),$e(),Qe();var c=qo();mt(c,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:i(),height:i(),...u(s),...r}));var l=ot(c);{var h=d=>{var g=Xo(),f=ot(g,!0);it(g),en(()=>Je(f,a())),E(d,g)};J(l,d=>{a()&&d(h)})}tn(4),it(c),E(e,c),N()}function Zo(e){return typeof e=="function"}function ae(e){return e!==null&&typeof e=="object"}const Jo=["string","number","bigint","boolean"];function Ke(e){return e==null||Jo.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Ke(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Kt=Symbol("box"),Ie=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Kt]:!0,[Ie]:!0,get current(){return u(n)},set current(r){t(r)}}:{[Kt]:!0,get current(){return e()}}}function ce(e){return ae(e)&&Kt in e}function nn(e){return ce(e)&&Ie in e}function ar(e){return ce(e)?e:Zo(e)?w(e):dt(e)}function Qo(e){return Object.entries(e).reduce((t,[n,r])=>ce(r)?(nn(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function $o(e){return nn(e)?{[Kt]:!0,get current(){return e.current}}:e}function dt(e){let t=P(Lt(e));return{[Kt]:!0,[Ie]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}function Bt(e){let t=P(Lt(e));return{[Kt]:!0,[Ie]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}Bt.from=ar;Bt.with=w;Bt.flatten=Qo;Bt.readonly=$o;Bt.isBox=ce;Bt.isWritableBox=nn;function cr(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}const ti=/\d/,ei=["-","_","/","."];function ni(e=""){if(!ti.test(e))return e!==e.toLowerCase()}function ri(e){const t=[];let n="",r,o;for(const s of e){const i=ei.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=ni(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function lr(e){return e?ri(e).map(t=>ii(t)).join(""):""}function oi(e){return si(lr(e||""))}function ii(e){return e?e[0].toUpperCase()+e.slice(1):""}function si(e){return e?e[0].toLowerCase()+e.slice(1):""}function ne(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[lr(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[oi(r)]=o}return Ko(e,n),t}function Ft(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function ai(e,t){const n=RegExp(e,"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,t):r}}const ci=ai(/[A-Z]/,e=>`-${e.toLowerCase()}`);function li(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${ci(t)}: ${e[t]};`).join(`
|
|
3
|
+
`)}function ur(e={}){return li(e).replace(`
|
|
4
|
+
`," ")}const ui=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],di=new Set(ui);function fi(e){return di.has(e)}function at(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&fi(o)){const l=s,h=i;t[o]=cr(l,h)}else if(a&&c)t[o]=Ft(s,i);else if(o==="class"){const l=Ke(s),h=Ke(i);l&&h?t[o]=Le(s,i):l?t[o]=Le(s):h&&(t[o]=Le(i))}else if(o==="style"){const l=typeof s=="object",h=typeof i=="object",d=typeof s=="string",g=typeof i=="string";if(l&&h)t[o]={...s,...i};else if(l&&g){const f=ne(i);t[o]={...s,...f}}else if(d&&h){const f=ne(s);t[o]={...f,...i}}else if(d&&g){const f=ne(s),m=ne(i);t[o]={...f,...m}}else l?t[o]=s:h?t[o]=i:d?t[o]=s:g&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=ur(t.style).replaceAll(`
|
|
5
|
+
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const dr=typeof window<"u"?window:void 0;function hi(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class gi{#t;#e;constructor(t={}){const{window:n=dr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=or(o=>{const s=W(n,"focusin",o),i=W(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?hi(this.#t):null}}new gi;function pi(e){return typeof e=="function"}class Pt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return wo(this.#e)}get(){const t=Nn(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=Nn(this.#e);return n===void 0?t:n}set(t){return xo(this.#e,t)}}function mi(e,t){switch(e){case"post":Z(t);break;case"pre":So(t);break}}function fr(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;mi(t,()=>{const a=Array.isArray(e)?e.map(l=>l()):e();if(!s){s=!0,i=a;return}const c=He(()=>n(a,i));return i=a,c})}function K(e,t,n){fr(e,"post",t,n)}function vi(e,t,n){fr(e,"pre",t,n)}K.pre=vi;function Ln(e){return pi(e)?e():e}class yi{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(u(this.#s)?.(),this.getSize().width));#a=x(()=>(u(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=Ln(this.#r);if(t)return or(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,l)=>Math.max(c,l.inlineSize),0),this.#t.height=a.reduce((c,l)=>Math.max(c,l.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??dr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Ln(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),l=n-s-a,h=r-i-c;return{width:l,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return u(this.#s)?.(),this.getSize()}get width(){return u(this.#i)}get height(){return u(this.#a)}}function Gt(e){Z(()=>()=>{e()})}function hr(e,t){return setTimeout(t,e)}function yt(e){Ao().then(e)}const bi=1,wi=9,xi=11;function Ue(e){return ae(e)&&e.nodeType===bi&&typeof e.nodeName=="string"}function gr(e){return ae(e)&&e.nodeType===wi}function Si(e){return ae(e)&&e.constructor?.name==="VisualViewport"}function Ai(e){return ae(e)&&e.nodeType!==void 0}function pr(e){return Ai(e)&&e.nodeType===xi&&"host"in e}function Oi(e,t){if(!e||!t||!Ue(e)||!Ue(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&pr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function le(e){return gr(e)?e:Si(e)?e.document:e?.ownerDocument??document}function rn(e){return pr(e)?rn(e.host):gr(e)?e.defaultView??window:Ue(e)?e.ownerDocument?.defaultView??window:window}function Ci(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class on{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return u(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>le(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Ci(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function et(e,t){return{[To()]:n=>ce(e)?(e.current=n,He(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),He(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function mr(e){return e?"true":"false"}function Ut(e){return e?"":void 0}function Mc(e){return e?!0:void 0}function sn(e){return e?"open":"closed"}function Rc(e,t){return t?"mixed":e?"true":"false"}class Ei{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function vr(e){const t=new Ei(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const oe="ArrowDown",an="ArrowLeft",cn="ArrowRight",ye="ArrowUp",yr="End",Fe="Enter",Pi="Escape",br="Home",Ti="PageDown",Mi="PageUp",ue=" ",Ri="Tab";function Ii(e){return window.getComputedStyle(e).getPropertyValue("direction")}function Fi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?an:cn,vertical:oe}[t]}function Ni(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?cn:an,vertical:ye}[t]}function ki(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Fi(e,t),prevKey:Ni(e,t)}}const wr=typeof document<"u",Wn=Di();function Di(){return wr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function wt(e){return e instanceof HTMLElement}function je(e){return e instanceof Element}function xr(e){return e instanceof Element||e instanceof SVGElement}function _i(e){return e!==null}function Bi(e){return e instanceof HTMLInputElement&&"select"in e}class Li{#t;#e=Bt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=Ii(o),{nextKey:c,prevKey:l}=ki(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[l]:i-1,[br]:0,[yr]:s.length-1};if(r){const m=c===oe?cn:oe,p=l===ye?an:ye;d[m]=i+1,d[p]=i-1}let g=d[n.key];if(g===void 0)return;n.preventDefault(),g<0&&h?g=s.length-1:g===s.length&&h&&(g=0);const f=s[g];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!wt(n)||n.focus()}}class Wi{#t;#e=null;constructor(t){this.#t=t,Gt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?yt(n):n()}}class Ye{#t;#e;#n;#r=P(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Wi({ref:this.#t.ref,afterTick:this.#t.open}),K(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return u(this.#r)}}function B(){}function de(e,t){return`bits-${e}`}const zi=vr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),xt=new Pt("Dialog.Root | AlertDialog.Root");class ln{static create(t){const n=xt.getOr(null);return xt.set(new ln(t,n))}opts;#t=P(null);get triggerNode(){return u(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=P(null);get contentNode(){return u(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=P(null);get overlayNode(){return u(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=P(null);get descriptionNode(){return u(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=P(void 0);get contentId(){return u(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=P(void 0);get titleId(){return u(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=P(void 0);get triggerId(){return u(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=P(void 0);get descriptionId(){return u(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=P(null);get cancelNode(){return u(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#u=P(0);get nestedOpenCount(){return u(this.#u)}set nestedOpenCount(t){y(this.#u,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ye({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ye({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),K(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),Gt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>zi.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#l=x(()=>({"data-state":sn(this.opts.open.current)}));get sharedProps(){return u(this.#l)}set sharedProps(t){y(this.#l,t)}}class Sr{static create(t){return new Sr(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ue||t.key===Fe)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Ar{static create(t){return new Ar(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class un{static create(t){return new un(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=et(this.opts.ref),K.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class dn{static create(t){return new dn(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=et(this.opts.ref,r=>{this.root.descriptionNode=r}),K.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class fn{static create(t){return new fn(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Ut(this.root.nestedOpenCount>0),"data-nested":Ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class hn{static create(t){return new hn(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Ut(this.root.nestedOpenCount>0),"data-nested":Ut(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class gn{static create(t){return new gn(t,xt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ue||t.key===Fe)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}function Vi(e,t){F(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,B),o=v(t,"onOpenChangeComplete",3,B);ln.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=R(),i=T(s);_(i,()=>t.children??z),E(e,s),N()}var Hi=pt("<div><!></div>");function Ki(e,t){const n=se();F(t,!0);let r=v(t,"id",19,()=>de(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=H(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=un.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>at(i,a.props));var l=R(),h=T(l);{var d=f=>{var m=R(),p=T(m);_(p,()=>t.child,()=>({props:u(c)})),E(f,m)},g=f=>{var m=Hi();mt(m,()=>({...u(c)}));var p=ot(m);_(p,()=>t.children??z),it(m),E(f,m)};J(h,f=>{t.child?f(d):f(g,!1)})}E(e,l),N()}var Ui=pt("<button><!></button>");function ji(e,t){const n=se();F(t,!0);let r=v(t,"id",19,()=>de(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=H(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=gn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>at(i,a.props));var l=R(),h=T(l);{var d=f=>{var m=R(),p=T(m);_(p,()=>t.child,()=>({props:u(c)})),E(f,m)},g=f=>{var m=Ui();mt(m,()=>({...u(c)}));var p=ot(m);_(p,()=>t.children??z),it(m),E(f,m)};J(h,f=>{t.child?f(d):f(g,!1)})}E(e,l),N()}function Yi(e,t){var n=R(),r=T(n);Ro(r,()=>t.children,o=>{var s=R(),i=T(s);_(i,()=>t.children??z),E(o,s)}),E(e,n)}const Gi=new Pt("BitsConfig");function Xi(){const e=new qi(null,{});return Gi.getOr(e).opts}class qi{opts;constructor(t,n){const r=Zi(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Zi(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function Ji(e,t){return n=>{const r=Xi();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const Qi=Ji(e=>e.defaultPortalTo,"body");function $i(e,t){F(t,!0);const n=Qi(()=>t.to),r=Oo();let o=x(s);function s(){if(!wr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(ho(i),i=null)}K([()=>u(o),()=>t.disabled],([d,g])=>{if(!d||g){a();return}return i=fo(Yi,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=R(),l=T(c);{var h=d=>{var g=R(),f=T(g);_(f,()=>t.children??z),E(d,g)};J(l,d=>{t.disabled&&d(h)})}E(e,c),N()}class ts{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return W(t,this.eventName,o,r)}}function zn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Or(e,t){return e===t||e.contains(t)}function Cr(e){return e?.ownerDocument??document}function es(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const ns=[Fe,ue],rs=[oe,Mi,br],Er=[ye,Ti,yr],os=[...rs,...Er];function Vn(e){return e.pointerType==="mouse"}function is(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=le(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&Bi(e)&&t&&e.select()}function ss(e,{select:t=!1}={},n){const r=n();for(const o of e)if(is(o,{select:t}),n()!==r)return!0}let $t=P(!1);class Ot{static _refs=0;static _cleanup;constructor(){Z(()=>(Ot._refs===0&&(Ot._cleanup=ir(()=>{const t=[],n=o=>{y($t,!1)},r=o=>{y($t,!0)};return t.push(W(document,"pointerdown",n,{capture:!0}),W(document,"pointermove",n,{capture:!0}),W(document,"keydown",r,{capture:!0})),Ft(...t)})),Ot._refs++,()=>{Ot._refs--,Ot._refs===0&&(y($t,!1),Ot._cleanup?.())}))}get current(){return u($t)}set current(t){y($t,t,!0)}}var Pr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],be=Pr.join(","),Tr=typeof Element>"u",Nt=Tr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,we=!Tr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},xe=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):xe(t.parentNode));return i},as=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Mr=function(t,n,r){if(xe(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(be));return n&&Nt.call(t,be)&&o.unshift(t),o=o.filter(r),o},Se=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!xe(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,l=Se(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var h=Nt.call(i,be);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),g=!xe(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&g){var f=Se(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},Rr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ir=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||as(t))&&!Rr(t)?0:t.tabIndex},cs=function(t,n){var r=Ir(t);return r<0&&n&&!Rr(t)?0:r},ls=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Fr=function(t){return t.tagName==="INPUT"},us=function(t){return Fr(t)&&t.type==="hidden"},ds=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},fs=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},hs=function(t){if(!t.name)return!0;var n=t.form||we(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){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",i.message),!1}var s=fs(o,t.form);return!s||s===t},gs=function(t){return Fr(t)&&t.type==="radio"},ps=function(t){return gs(t)&&!hs(t)},ms=function(t){var n,r=t&&we(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var l,h,d;r=we(o),o=(l=r)===null||l===void 0?void 0:l.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},Hn=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},vs=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Nt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Nt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,h=we(t);if(l&&!l.shadowRoot&&o(l)===!0)return Hn(t);t.assignedSlot?t=t.assignedSlot:!l&&h!==t.ownerDocument?t=h.host:t=l}t=c}if(ms(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Hn(t);return!1},ys=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.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 Nt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Ae=function(t,n){return!(n.disabled||us(n)||vs(n,t)||ds(n)||ys(n))},Ge=function(t,n){return!(ps(n)||Ir(n)<0||!Ae(t,n))},bs=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Nr=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=cs(a,i),l=i?Nr(o.candidates):a;c===0?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(ls).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},kr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Se([t],n.includeContainer,{filter:Ge.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:bs}):r=Mr(t,n.includeContainer,Ge.bind(null,n)),Nr(r)},Dr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Se([t],n.includeContainer,{filter:Ae.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=Mr(t,n.includeContainer,Ae.bind(null,n)),r},pn=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,be)===!1?!1:Ge(n,t)},ws=Pr.concat("iframe:not([inert]):not([inert] *)").join(","),_r=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,ws)===!1?!1:Ae(n,t)};function re(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function xs(e,t){if(!pn(e,re()))return Ss(e,t);const n=le(e),r=kr(n.body,re());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function Ss(e,t){const n=le(e);if(!_r(e,re()))return n.body;const r=Dr(n.body,re());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>pn(i,re()))??n.body}function As(e,t){return e.length!==t.length?!1:e.every((n,r)=>Br(n,t[r]))}function Br(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?As(e,t):typeof e=="object"&&typeof t=="object"?Os(e,t):Object.is(e,t)}function Os(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Br(e[o],t[o]))return!1;return!0}function Ic(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function Fc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function Nc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function kc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Lr(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Lr(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const m=e.filter(p=>p.toLowerCase().startsWith(r));if(m.length>0){const p=n?e.indexOf(n):-1;return Kn(m,Math.max(p,0)).find(O=>O!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Kn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Kn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Cs={afterMs:1e4,onChange:B};function Wr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...Cs,...t};let s=null,i=P(Lt(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>u(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class Es{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Wr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=u(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Lr(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&u(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class Ps{#t;#e;#n;#r=P(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=Wr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{u(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>rn(this.#t.triggerNode())}),K([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Ft(W(n,"pointerleave",s),W(r,"pointerleave",i))}),K(()=>u(this.#r),()=>{const n=o=>{if(!u(this.#r))return;const s=o.target;if(!je(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!Is(i,u(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=le(t.triggerNode()??t.contentNode());if(r)return W(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!wt(r))return;const o={x:t.clientX,y:t.clientY},s=Ts(o,r.getBoundingClientRect()),i=Ms(o,s),a=Rs(n.getBoundingClientRect()),c=Fs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function Ts(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ms(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function Rs(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Is(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,l=t[i].x,h=t[i].y;c>r!=h>r&&n<(l-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function Fs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Ns(t)}function Ns(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const ks="data-context-menu-trigger",Ds="data-context-menu-content",zr=new Pt("Menu.Root"),mn=new Pt("Menu.Root | Menu.Sub"),Vr=new Pt("Menu.Content"),_s=new ts("bitsmenuopen",{bubbles:!1,cancelable:!0}),Bs=vr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Hr{static create(t){const n=new Hr(t);return zr.set(n)}opts;isUsingKeyboard=new Ot;#t=P(!1);get ignoreCloseAutoFocus(){return u(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=P(!1);get isPointerInTransit(){return u(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Bs.getAttr(t,this.opts.variant.current)}class Kr{static create(t,n){return mn.set(new Kr(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=P(null);get contentNode(){return u(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=P(null);get triggerNode(){return u(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new Ye({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&K(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class Ur{static create(t){return Vr.set(new Ur(t,mn.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=P("");get search(){return u(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=P(!1);get mounted(){return u(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new on(t.ref),this.attachment=et(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Ps({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new Es({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Li({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),K(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{yt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return _s.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)&&this.parentMenu.triggerNode&&pn(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=xs(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),yt(()=>{r.focus(),yt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===Ri){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!wt(n)||!wt(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&os.includes(t.key)&&(t.preventDefault(),Er.includes(t.key)&&c.reverse(),ss(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){je(t.currentTarget)&&je(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&&yt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!xr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}t.target.closest(`#${n}`)&&t.preventDefault()}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return u(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":sn(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return u(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class Ls{opts;content;attachment;#t=P(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=et(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&Vn(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!wt(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||Vn(t)&&this.content.onItemLeave(t)}onfocus(t){yt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){yt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":mr(this.opts.disabled.current),"data-disabled":Ut(this.opts.disabled.current),"data-highlighted":u(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}class jr{static create(t){const n=new Ls(t,Vr.get());return new jr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ue)&&ns.includes(t.key)){if(!wt(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!wt(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>at(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return u(this.#n)}set props(t){y(this.#n,t)}}class Yr{static create(t){return new Yr(t,zr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=et(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Gr{static create(t){return new Gr(t,mn.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=et(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ue||t.key===Fe){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===oe&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":mr(this.parentMenu.opts.open.current),"aria-controls":u(this.#t),"data-disabled":Ut(this.opts.disabled.current),"data-state":sn(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}globalThis.bitsDismissableLayers??=new Map;class vn{static create(t){return new vn(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=B;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=Cr(this.opts.ref.current)});let n=B;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};K([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return hr(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#u())}),r}),Gt(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&&yt(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#u(){return Ft(W(this.#i,"pointerdown",Ft(this.#h,this.#p),{capture:!0}),W(this.#i,"pointerdown",Ft(this.#g,this.#d)),W(this.#i,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=Un(t)),this.#t.current(t)};#d=zn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Vs(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=Un(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=W(this.#i,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=zs(this.opts.ref.current))};#m=t=>this.opts.ref.current?Or(this.opts.ref.current,t):!1;#f=zn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Ws(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function zs(e){const t=[...globalThis.bitsDismissableLayers],n=Ws(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Vs(e,t){const n=e.target;if(!xr(n))return!1;const r=!!n.closest(`[${ks}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${Ds}]`);return r&&o?!1:Cr(n).documentElement.contains(n)&&!Or(t,n)&&es(e,t)}function Un(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function Xr(e,t){F(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,B),o=v(t,"onFocusOutside",3,B),s=v(t,"isValidEvent",3,()=>!1);const i=vn.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=R(),c=T(a);_(c,()=>t.children??z,()=>({props:i.props})),E(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class yn{static create(t){return new yn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new on(this.opts.ref);let n=B;K(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>W(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==Pi||!Hs(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Hs(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function qr(e,t){F(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,B);yn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=R(),s=T(o);_(s,()=>t.children??z),E(e,o),N()}class bn{static instance;#t=dt([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new bn),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class wn{#t=!1;#e=null;#n=bn.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const l=this.#n.getFocusMemory(this);if(l&&t.contains(l)&&_r(l))i.preventDefault(),l.focus();else{const h=this.#l(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#u();if(a.length===0)return;const c=a[0],l=a[a.length-1];!i.shiftKey&&n.activeElement===l?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),l.focus())};this.#r.push(W(n,"focusin",r,{capture:!0}),W(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#l(),c=this.#d()[0],l=a||c;l?(l.focus(),this.#n.setFocusMemory(this,l)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#u(){return this.#e?kr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#u()[0]||null}#d(){return this.#e?Dr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return K([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new wn(t)),n.mount(r)):n&&(n.unmount(),n=null)}),Gt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function Zr(e,t){F(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,B),i=v(t,"onOpenAutoFocus",3,B);const a=wn.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=R(),l=T(c);_(l,()=>t.focusScope??z,()=>({props:a.props})),E(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class xn{static create(t){return new xn(t)}opts;domContext;#t=B;constructor(t){this.opts=t,this.domContext=new on(t.ref);let n=B;K(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Ft(W(this.domContext.getDocument(),"pointerdown",this.#n),W(this.domContext.getDocument(),"pointerup",cr(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!wt(n)||!wt(r)||!this.opts.enabled.current||!Us(this)||!Oi(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Ks(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=B}}const jn=e=>e.style.userSelect||e.style.webkitUserSelect;function Ks(e,t){const n=jn(t),r=jn(e);return he(t,"none"),he(e,"text"),()=>{he(t,n),he(e,r)}}function he(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Us(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Jr(e,t){F(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,B),o=v(t,"onPointerUp",3,B);xn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=R(),i=T(s);_(i,()=>t.children??z),E(e,s),N()}globalThis.bitsIdCounter??={current:0};function Sn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class js{#t;#e=0;#n=P();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,u(this.#n)===void 0&&(this.#r=ir(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),u(this.#n)}}const me=new Io;let ge=P(null),We=null,te=null,ee=!1;const Yn=w(()=>{for(const e of me.values())if(e)return!0;return!1});let ze=null;const Ys=new js(()=>{function e(){document.body.setAttribute("style",u(ge)??""),document.body.style.removeProperty("--scrollbar-width"),Wn&&We?.(),y(ge,null)}function t(){te!==null&&(window.clearTimeout(te),te=null)}function n(o,s){t(),ee=!0,ze=Date.now();const i=ze,a=()=>{te=null,ze===i&&(Qr(me)?ee=!1:(ee=!1,s()))},c=o===null?24:o;te=window.setTimeout(a,c)}function r(){u(ge)===null&&me.size===0&&!ee&&y(ge,document.body.getAttribute("style"),!0)}return K(()=>Yn.current,()=>{if(!Yn.current)return;r(),ee=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Wn&&(We=W(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),yt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Gt(()=>()=>{We?.()}),{get lockMap(){return me},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Gs{#t=Sn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=Ys.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),Gt(()=>{if(this.#r.lockMap.delete(this.#t),Qr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function Qr(e){for(const[t,n]of e)if(n)return!0;return!1}function Oe(e,t){F(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Gs(n(),()=>r()),N()}var Xs=pt("<!> <!>",1),qs=pt("<!> <div><!></div>",1);function Zs(e,t){const n=se();F(t,!0);let r=v(t,"id",19,()=>de(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,B),c=v(t,"onEscapeKeydown",3,B),l=v(t,"onOpenAutoFocus",3,B),h=v(t,"onInteractOutside",3,B),d=v(t,"preventScroll",3,!0),g=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),m=H(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=fn.create({id:w(()=>r()),ref:w(()=>o(),A=>o(A))}),b=x(()=>at(m,p.props));var S=R(),O=T(S);{var C=A=>{Zr(A,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:M=>{l()(M),!M.defaultPrevented&&(M.preventDefault(),hr(0,()=>p.opts.ref.current?.focus()))},focusScope:(M,D)=>{let U=()=>D?.().props;qr(M,tt(()=>u(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:k=>{c()(k),!k.defaultPrevented&&p.root.handleClose()},children:(k,L)=>{Xr(k,tt(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:j=>{h()(j),!j.defaultPrevented&&p.root.handleClose()},children:(j,Y)=>{Jr(j,tt(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(st,V)=>{var ct=R(),$=T(ct);{var G=q=>{var Tt=Xs(),Zt=T(Tt);{var Jt=Mt=>{Oe(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};J(Zt,Mt=>{p.root.opts.open.current&&Mt(Jt)})}var Be=ve(Zt,2);{let Mt=x(()=>({props:at(u(b),U()),...p.snippetProps}));_(Be,()=>t.child,()=>u(Mt))}E(q,Tt)},X=q=>{var Tt=qs(),Zt=T(Tt);Oe(Zt,{get preventScroll(){return d()}});var Jt=ve(Zt,2);mt(Jt,Mt=>({...Mt}),[()=>at(u(b),U())]);var Be=ot(Jt);_(Be,()=>t.children??z),it(Jt),E(q,Tt)};J($,q=>{t.child?q(G):q(X,!1)})}E(st,ct)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};J(O,A=>{(p.shouldRender||s())&&A(C)})}E(e,S),N()}var Js=pt("<div><!></div>");function Qs(e,t){const n=se();F(t,!0);let r=v(t,"id",19,()=>de(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=H(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=hn.create({id:w(()=>r()),ref:w(()=>s(),g=>s(g))}),c=x(()=>at(i,a.props));var l=R(),h=T(l);{var d=g=>{var f=R(),m=T(f);{var p=S=>{var O=R(),C=T(O);{let A=x(()=>({props:at(u(c)),...a.snippetProps}));_(C,()=>t.child,()=>u(A))}E(S,O)},b=S=>{var O=Js();mt(O,A=>({...A}),[()=>at(u(c))]);var C=ot(O);_(C,()=>t.children??z,()=>a.snippetProps),it(O),E(S,O)};J(m,S=>{t.child?S(p):S(b,!1)})}E(g,f)};J(h,g=>{(a.shouldRender||o())&&g(d)})}E(e,l),N()}var $s=pt("<div><!></div>");function ta(e,t){const n=se();F(t,!0);let r=v(t,"id",19,()=>de(n)),o=v(t,"ref",15,null),s=H(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=dn.create({id:w(()=>r()),ref:w(()=>o(),g=>o(g))}),a=x(()=>at(s,i.props));var c=R(),l=T(c);{var h=g=>{var f=R(),m=T(f);_(m,()=>t.child,()=>({props:u(a)})),E(g,f)},d=g=>{var f=$s();mt(f,()=>({...u(a)}));var m=ot(f);_(m,()=>t.children??z),it(f),E(g,f)};J(l,g=>{t.child?g(h):g(d,!1)})}E(e,c),N()}const ea=["top","right","bottom","left"],Ct=Math.min,nt=Math.max,Ce=Math.round,pe=Math.floor,ht=e=>({x:e,y:e}),na={left:"right",right:"left",bottom:"top",top:"bottom"},ra={start:"end",end:"start"};function Xe(e,t,n){return nt(e,Ct(t,n))}function St(e,t){return typeof e=="function"?e(t):e}function At(e){return e.split("-")[0]}function Xt(e){return e.split("-")[1]}function An(e){return e==="x"?"y":"x"}function On(e){return e==="y"?"height":"width"}const oa=new Set(["top","bottom"]);function ft(e){return oa.has(At(e))?"y":"x"}function Cn(e){return An(ft(e))}function ia(e,t,n){n===void 0&&(n=!1);const r=Xt(e),o=Cn(e),s=On(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ee(i)),[i,Ee(i)]}function sa(e){const t=Ee(e);return[qe(e),t,qe(t)]}function qe(e){return e.replace(/start|end/g,t=>ra[t])}const Gn=["left","right"],Xn=["right","left"],aa=["top","bottom"],ca=["bottom","top"];function la(e,t,n){switch(e){case"top":case"bottom":return n?t?Xn:Gn:t?Gn:Xn;case"left":case"right":return t?aa:ca;default:return[]}}function ua(e,t,n,r){const o=Xt(e);let s=la(At(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(qe)))),s}function Ee(e){return e.replace(/left|right|bottom|top/g,t=>na[t])}function da(e){return{top:0,right:0,bottom:0,left:0,...e}}function $r(e){return typeof e!="number"?da(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qn(e,t,n){let{reference:r,floating:o}=e;const s=ft(t),i=Cn(t),a=On(i),c=At(t),l=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Xt(t)){case"start":f[i]-=g*(n&&l?-1:1);break;case"end":f[i]+=g*(n&&l?-1:1);break}return f}async function fa(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:g=!1,padding:f=0}=St(t,e),m=$r(f),b=a[g?d==="floating"?"reference":"floating":d],S=Pe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:h,strategy:c})),O=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),A=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},I=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:C,strategy:c}):O);return{top:(S.top-I.top+m.top)/A.y,bottom:(I.bottom-S.bottom+m.bottom)/A.y,left:(S.left-I.left+m.left)/A.x,right:(I.right-S.right+m.right)/A.x}}const ha=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=qn(l,r,c),g=r,f={},m=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:O}=a[b],{x:C,y:A,data:I,reset:M}=await O({x:h,y:d,initialPlacement:r,placement:g,strategy:o,middlewareData:f,rects:l,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:fa},elements:{reference:e,floating:t}});h=C??h,d=A??d,f={...f,[S]:{...f[S],...I}},M&&m<=50&&(m++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(l=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):M.rects),{x:h,y:d}=qn(l,g,c)),b=-1)}return{x:h,y:d,placement:g,strategy:o,middlewareData:f}},ga=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:h=0}=St(e,t)||{};if(l==null)return{};const d=$r(h),g={x:n,y:r},f=Cn(o),m=On(f),p=await i.getDimensions(l),b=f==="y",S=b?"top":"left",O=b?"bottom":"right",C=b?"clientHeight":"clientWidth",A=s.reference[m]+s.reference[f]-g[f]-s.floating[m],I=g[f]-s.reference[f],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let D=M?M[C]:0;(!D||!await(i.isElement==null?void 0:i.isElement(M)))&&(D=a.floating[C]||s.floating[m]);const U=A/2-I/2,k=D/2-p[m]/2-1,L=Ct(d[S],k),j=Ct(d[O],k),Y=L,st=D-p[m]-j,V=D/2-p[m]/2+U,ct=Xe(Y,V,st),$=!c.arrow&&Xt(o)!=null&&V!==ct&&s.reference[m]/2-(V<Y?L:j)-p[m]/2<0,G=$?V<Y?V-Y:V-st:0;return{[f]:g[f]+G,data:{[f]:ct,centerOffset:V-ct-G,...$&&{alignmentOffset:G}},reset:$}}}),pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...b}=St(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=At(o),O=ft(a),C=At(a)===a,A=await(c.isRTL==null?void 0:c.isRTL(l.floating)),I=g||(C||!p?[Ee(a)]:sa(a)),M=m!=="none";!g&&M&&I.push(...ua(a,p,m,A));const D=[a,...I],U=await c.detectOverflow(t,b),k=[];let L=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&k.push(U[S]),d){const V=ia(o,i,A);k.push(U[V[0]],U[V[1]])}if(L=[...L,{placement:o,overflows:k}],!k.every(V=>V<=0)){var j,Y;const V=(((j=s.flip)==null?void 0:j.index)||0)+1,ct=D[V];if(ct&&(!(d==="alignment"?O!==ft(ct):!1)||L.every(X=>ft(X.placement)===O?X.overflows[0]>0:!0)))return{data:{index:V,overflows:L},reset:{placement:ct}};let $=(Y=L.filter(G=>G.overflows[0]<=0).sort((G,X)=>G.overflows[1]-X.overflows[1])[0])==null?void 0:Y.placement;if(!$)switch(f){case"bestFit":{var st;const G=(st=L.filter(X=>{if(M){const q=ft(X.placement);return q===O||q==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(q=>q>0).reduce((q,Tt)=>q+Tt,0)]).sort((X,q)=>X[1]-q[1])[0])==null?void 0:st[0];G&&($=G);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Zn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Jn(e){return ea.some(t=>e[t]>=0)}const ma=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=St(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Zn(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Jn(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Zn(i,n.floating);return{data:{escapedOffsets:a,escaped:Jn(a)}}}default:return{}}}}},to=new Set(["left","top"]);async function va(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=At(n),a=Xt(n),c=ft(n)==="y",l=to.has(i)?-1:1,h=s&&c?-1:1,d=St(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*h,y:g*l}:{x:g*l,y:f*h}}const ya=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await va(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},ba=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:O,y:C}=S;return{x:O,y:C}}},...l}=St(e,t),h={x:n,y:r},d=await s.detectOverflow(t,l),g=ft(At(o)),f=An(g);let m=h[f],p=h[g];if(i){const S=f==="y"?"top":"left",O=f==="y"?"bottom":"right",C=m+d[S],A=m-d[O];m=Xe(C,m,A)}if(a){const S=g==="y"?"top":"left",O=g==="y"?"bottom":"right",C=p+d[S],A=p-d[O];p=Xe(C,p,A)}const b=c.fn({...t,[f]:m,[g]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[g]:a}}}}}},wa=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=St(e,t),h={x:n,y:r},d=ft(o),g=An(d);let f=h[g],m=h[d];const p=St(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const C=g==="y"?"height":"width",A=s.reference[g]-s.floating[C]+b.mainAxis,I=s.reference[g]+s.reference[C]-b.mainAxis;f<A?f=A:f>I&&(f=I)}if(l){var S,O;const C=g==="y"?"width":"height",A=to.has(At(o)),I=s.reference[d]-s.floating[C]+(A&&((S=i.offset)==null?void 0:S[d])||0)+(A?0:b.crossAxis),M=s.reference[d]+s.reference[C]+(A?0:((O=i.offset)==null?void 0:O[d])||0)-(A?b.crossAxis:0);m<I?m=I:m>M&&(m=M)}return{[g]:f,[d]:m}}}},xa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=St(e,t),h=await i.detectOverflow(t,l),d=At(o),g=Xt(o),f=ft(o)==="y",{width:m,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=g===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=g==="end"?"top":"bottom");const O=p-h.top-h.bottom,C=m-h.left-h.right,A=Ct(p-h[b],O),I=Ct(m-h[S],C),M=!t.middlewareData.shift;let D=A,U=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(U=C),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=O),M&&!g){const L=nt(h.left,0),j=nt(h.right,0),Y=nt(h.top,0),st=nt(h.bottom,0);f?U=m-2*(L!==0||j!==0?L+j:nt(h.left,h.right)):D=p-2*(Y!==0||st!==0?Y+st:nt(h.top,h.bottom))}await c({...t,availableWidth:U,availableHeight:D});const k=await i.getDimensions(a.floating);return m!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function qt(e){return eo(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vt(e){var t;return(t=(eo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eo(e){return Ne()?e instanceof Node||e instanceof rt(e).Node:!1}function lt(e){return Ne()?e instanceof Element||e instanceof rt(e).Element:!1}function gt(e){return Ne()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function Qn(e){return!Ne()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const Sa=new Set(["inline","contents"]);function fe(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=ut(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sa.has(o)}const Aa=new Set(["table","td","th"]);function Oa(e){return Aa.has(qt(e))}const Ca=[":popover-open",":modal"];function ke(e){return Ca.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ea=["transform","translate","scale","rotate","perspective"],Pa=["transform","translate","scale","rotate","perspective","filter"],Ta=["paint","layout","strict","content"];function En(e){const t=Pn(),n=lt(e)?ut(e):e;return Ea.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pa.some(r=>(n.willChange||"").includes(r))||Ta.some(r=>(n.contain||"").includes(r))}function Ma(e){let t=Et(e);for(;gt(t)&&!jt(t);){if(En(t))return t;if(ke(t))return null;t=Et(t)}return null}function Pn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ra=new Set(["html","body","#document"]);function jt(e){return Ra.has(qt(e))}function ut(e){return rt(e).getComputedStyle(e)}function De(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Et(e){if(qt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qn(e)&&e.host||vt(e);return Qn(t)?t.host:t}function no(e){const t=Et(e);return jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:gt(t)&&fe(t)?t:no(t)}function ie(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=no(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=rt(o);if(s){const a=Ze(i);return t.concat(i,i.visualViewport||[],fe(o)?o:[],a&&n?ie(a):[])}return t.concat(o,ie(o,[],n))}function Ze(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ro(e){const t=ut(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=gt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ce(n)!==s||Ce(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Tn(e){return lt(e)?e:e.contextElement}function Wt(e){const t=Tn(e);if(!gt(t))return ht(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ro(t);let i=(s?Ce(n.width):n.width)/r,a=(s?Ce(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Ia=ht(0);function oo(e){const t=rt(e);return!Pn()||!t.visualViewport?Ia:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Fa(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tn(e);let i=ht(1);t&&(r?lt(r)&&(i=Wt(r)):i=Wt(e));const a=Fa(s,n,r)?oo(s):ht(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const g=rt(s),f=r&<(r)?rt(r):r;let m=g,p=Ze(m);for(;p&&r&&f!==m;){const b=Wt(p),S=p.getBoundingClientRect(),O=ut(p),C=S.left+(p.clientLeft+parseFloat(O.paddingLeft))*b.x,A=S.top+(p.clientTop+parseFloat(O.paddingTop))*b.y;c*=b.x,l*=b.y,h*=b.x,d*=b.y,c+=C,l+=A,m=rt(p),p=Ze(m)}}return Pe({width:h,height:d,x:c,y:l})}function _e(e,t){const n=De(e).scrollLeft;return t?t.left+n:kt(vt(e)).left+n}function io(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-_e(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Na(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=vt(r),a=t?ke(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ht(1);const h=ht(0),d=gt(r);if((d||!d&&!s)&&((qt(r)!=="body"||fe(i))&&(c=De(r)),gt(r))){const f=kt(r);l=Wt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const g=i&&!d&&!s?io(i,c):ht(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+g.x,y:n.y*l.y-c.scrollTop*l.y+h.y+g.y}}function ka(e){return Array.from(e.getClientRects())}function Da(e){const t=vt(e),n=De(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+_e(e);const a=-n.scrollTop;return ut(r).direction==="rtl"&&(i+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const $n=25;function _a(e,t){const n=rt(e),r=vt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=Pn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=_e(r);if(l<=0){const h=r.ownerDocument,d=h.body,g=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-f);m<=$n&&(s-=m)}else l<=$n&&(s+=l);return{width:s,height:i,x:a,y:c}}const Ba=new Set(["absolute","fixed"]);function La(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=gt(e)?Wt(e):ht(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function tr(e,t,n){let r;if(t==="viewport")r=_a(e,n);else if(t==="document")r=Da(vt(e));else if(lt(t))r=La(t,n);else{const o=oo(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pe(r)}function so(e,t){const n=Et(e);return n===t||!lt(n)||jt(n)?!1:ut(n).position==="fixed"||so(n,t)}function Wa(e,t){const n=t.get(e);if(n)return n;let r=ie(e,[],!1).filter(a=>lt(a)&&qt(a)!=="body"),o=null;const s=ut(e).position==="fixed";let i=s?Et(e):e;for(;lt(i)&&!jt(i);){const a=ut(i),c=En(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Ba.has(o.position)||fe(i)&&!c&&so(e,i))?r=r.filter(h=>h!==i):o=a,i=Et(i)}return t.set(e,r),r}function za(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?ke(t)?[]:Wa(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,h)=>{const d=tr(t,h,o);return l.top=nt(d.top,l.top),l.right=Ct(d.right,l.right),l.bottom=Ct(d.bottom,l.bottom),l.left=nt(d.left,l.left),l},tr(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Va(e){const{width:t,height:n}=ro(e);return{width:t,height:n}}function Ha(e,t,n){const r=gt(t),o=vt(t),s=n==="fixed",i=kt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ht(0);function l(){c.x=_e(o)}if(r||!r&&!s)if((qt(t)!=="body"||fe(o))&&(a=De(t)),r){const f=kt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&l();s&&!r&&o&&l();const h=o&&!r&&!s?io(o,a):ht(0),d=i.left+a.scrollLeft-c.x-h.x,g=i.top+a.scrollTop-c.y-h.y;return{x:d,y:g,width:i.width,height:i.height}}function Ve(e){return ut(e).position==="static"}function er(e,t){if(!gt(e)||ut(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return vt(e)===n&&(n=n.ownerDocument.body),n}function ao(e,t){const n=rt(e);if(ke(e))return n;if(!gt(e)){let o=Et(e);for(;o&&!jt(o);){if(lt(o)&&!Ve(o))return o;o=Et(o)}return n}let r=er(e,t);for(;r&&Oa(r)&&Ve(r);)r=er(r,t);return r&&jt(r)&&Ve(r)&&!En(r)?n:r||Ma(e)||n}const Ka=async function(e){const t=this.getOffsetParent||ao,n=this.getDimensions,r=await n(e.floating);return{reference:Ha(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ua(e){return ut(e).direction==="rtl"}const ja={convertOffsetParentRelativeRectToViewportRelativeRect:Na,getDocumentElement:vt,getClippingRect:za,getOffsetParent:ao,getElementRects:Ka,getClientRects:ka,getDimensions:Va,getScale:Wt,isElement:lt,isRTL:Ua};function co(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ya(e,t){let n=null,r;const o=vt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:h,top:d,width:g,height:f}=l;if(a||t(),!g||!f)return;const m=pe(d),p=pe(o.clientWidth-(h+g)),b=pe(o.clientHeight-(d+f)),S=pe(h),C={rootMargin:-m+"px "+-p+"px "+-b+"px "+-S+"px",threshold:nt(0,Ct(1,c))||1};let A=!0;function I(M){const D=M[0].intersectionRatio;if(D!==c){if(!A)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!co(l,e.getBoundingClientRect())&&i(),A=!1}try{n=new IntersectionObserver(I,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,C)}n.observe(e)}return i(!0),s}function Ga(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Tn(e),h=o||s?[...l?ie(l):[],...ie(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=l&&a?Ya(l,n):null;let g=-1,f=null;i&&(f=new ResizeObserver(S=>{let[O]=S;O&&O.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var C;(C=f)==null||C.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let m,p=c?kt(e):null;c&&b();function b(){const S=kt(e);p&&!co(p,S)&&n(),p=S,m=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(O=>{o&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const Xa=ya,qa=ba,Za=pa,Ja=xa,Qa=ma,$a=ga,tc=wa,ec=(e,t,n)=>{const r=new Map,o={platform:ja,...n},s={...o.platform,_c:r};return ha(e,t,{...o,platform:s})};function Rt(e){return typeof e=="function"?e():e}function lo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nr(e,t){const n=lo(e);return Math.round(t*n)/n}function Dc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function nc(e){const t=e.whileElementsMounted,n=x(()=>Rt(e.open)??!0),r=x(()=>Rt(e.middleware)),o=x(()=>Rt(e.transform)??!0),s=x(()=>Rt(e.placement)??"bottom"),i=x(()=>Rt(e.strategy)??"absolute"),a=x(()=>Rt(e.sideOffset)??0),c=x(()=>Rt(e.alignOffset)??0),l=e.reference;let h=P(0),d=P(0);const g=dt(null);let f=P(Lt(u(i))),m=P(Lt(u(s))),p=P(Lt({})),b=P(!1),S=!1;const O=x(()=>{const k=g.current?nr(g.current,u(h)):u(h),L=g.current?nr(g.current,u(d)):u(d);return u(o)?{position:u(f),left:"0",top:"0",transform:`translate(${k}px, ${L}px)`,...g.current&&lo(g.current)>=1.5&&{willChange:"transform"}}:{position:u(f),left:`${k}px`,top:`${L}px`}});let C;function A(){l.current===null||g.current===null||ec(l.current,g.current,{middleware:u(r),placement:u(s),strategy:u(i)}).then(k=>{const L=l.current;if(rc(L)){y(p,{...u(p),hide:{...u(p).hide,referenceHidden:!0}},!0);return}if(!u(n)&&u(h)!==0&&u(d)!==0){const Y=Math.max(Math.abs(u(a)),Math.abs(u(c)),15);if(k.x<=Y&&k.y<=Y)return}y(h,k.x,!0),y(d,k.y,!0),y(f,k.strategy,!0),y(m,k.placement,!0),y(p,k.middlewareData,!0),y(b,!0)})}function I(){typeof C=="function"&&(C(),C=void 0)}function M(){if(I(),t===void 0){A();return}u(n)&&(l.current===null||g.current===null||(C=t(l.current,g.current,A)))}function D(){u(n)||y(b,!1)}function U(){return[u(r),u(s),u(i),u(a),u(c),u(n)]}return Z(()=>{t===void 0&&u(n)&&A()}),Z(M),Z(()=>{if(t!==void 0){if(U(),!u(n)){S=!1;return}if(!u(b)){S=!1;return}if(!S){S=!0;return}A()}}),Z(D),Z(()=>I),{floating:g,reference:l,get strategy(){return u(f)},get placement(){return u(m)},get middlewareData(){return u(p)},get isPositioned(){return u(b)},get floatingStyles(){return u(O)},get update(){return A}}}function rc(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const oc={top:"bottom",right:"left",bottom:"top",left:"right"},Mn=new Pt("Floating.Root"),rr=new Pt("Floating.Content"),Rn=new Pt("Floating.Root");class Te{static create(t=!1){return t?Rn.set(new Te):Mn.set(new Te)}anchorNode=dt(null);customAnchorNode=dt(null);triggerNode=dt(null);constructor(){Z(()=>{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 Me{static create(t,n=!1){return n?rr.set(new Me(t,Rn.get())):rr.set(new Me(t,Mn.get()))}opts;root;contentRef=dt(null);wrapperRef=dt(null);arrowRef=dt(null);contentAttachment=et(this.contentRef);wrapperAttachment=et(this.wrapperRef);arrowAttachment=et(this.arrowRef);arrowId=dt(Sn());#t=x(()=>{if(typeof this.opts.style=="string")return ne(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new yi(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>u(this.#a).length>0);get hasExplicitBoundaries(){return u(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:u(this.#a).filter(_i),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return u(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#u=P(void 0);#l=P(void 0);#d=P(void 0);#h=P(void 0);#g=x(()=>[Xa({mainAxis:this.opts.sideOffset.current+u(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tc():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Za({...this.detectOverflowOptions}),Ja({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#u,n,!0),y(this.#l,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&$a({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ic({arrowWidth:u(this.#r),arrowHeight:u(this.#o)}),this.opts.hideWhenDetached.current&&Qa({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return u(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>sc(this.floating.placement));get placedSide(){return u(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>ac(this.floating.placement));get placedAlign(){return u(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return u(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return u(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return u(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=P();get contentZIndex(){return u(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>oc[this.placedSide]);get arrowBaseSide(){return u(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({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":`${u(this.#u)}px`,"--bits-floating-available-height":`${u(this.#l)}px`,"--bits-floating-anchor-width":`${u(this.#d)}px`,"--bits-floating-anchor-height":`${u(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...u(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return u(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:ur({...u(this.#t)}),...this.contentAttachment}));get props(){return u(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({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 u(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),K(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=nc({strategy:()=>this.opts.strategy.current,placement:()=>u(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Ga(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),K(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=rn(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Re{static create(t,n=!1){return n?new Re(t,Rn.get()):new Re(t,Mn.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=ar(t.virtualEl.current):n.triggerNode=t.ref}}function ic(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,h]=In(n),d={start:"0%",center:"50%",end:"100%"}[h],g=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let m="",p="";return l==="bottom"?(m=i?d:`${g}px`,p=`${-c}px`):l==="top"?(m=i?d:`${g}px`,p=`${r.floating.height+c}px`):l==="right"?(m=`${-c}px`,p=i?d:`${f}px`):l==="left"&&(m=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:m,y:p}}}}}function In(e){const[t,n="center"]=e.split("-");return[t,n]}function sc(e){return In(e)[0]}function ac(e){return In(e)[1]}function _c(e,t){F(t,!0);let n=v(t,"tooltip",3,!1);Te.create(n());var r=R(),o=T(r);_(o,()=>t.children??z),E(e,r),N()}function Bc(e,t){F(t,!0);let n=v(t,"tooltip",3,!1);Re.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=R(),o=T(r);_(o,()=>t.children??z),E(e,r),N()}function cc(e,t){F(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),l=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),g=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),m=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,Sn),O=v(t,"customAnchor",3,null),C=v(t,"tooltip",3,!1);const A=Me.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>l()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>g()),updatePositionStrategy:w(()=>f()),strategy:w(()=>m()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>O())},C()),I=x(()=>at(A.wrapperProps,{style:{pointerEvents:"auto"}}));var M=R(),D=T(M);_(D,()=>t.content??z,()=>({props:A.props,wrapperProps:u(I)})),E(e,M),N()}function lc(e,t){F(t,!0),Co(()=>{t.onPlaced?.()});var n=R(),r=T(n);_(r,()=>t.content??z,()=>({props:{},wrapperProps:{}})),E(e,n),N()}function uc(e,t){let n=v(t,"isStatic",3,!1),r=H(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=R(),s=T(o);{var i=c=>{lc(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{cc(c,tt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};J(s,c=>{n()?c(i):c(a,!1)})}E(e,o)}var dc=pt("<!> <!>",1);function uo(e,t){F(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),l=H(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);uc(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(d,g)=>{let f=()=>g?.().props,m=()=>g?.().wrapperProps;var p=dc(),b=T(p);{var S=A=>{Oe(A,{get preventScroll(){return t.preventScroll}})},O=A=>{Oe(A,{get preventScroll(){return t.preventScroll}})};J(b,A=>{t.forceMount&&t.enabled?A(S):t.forceMount||A(O,1)})}var C=ve(b,2);Zr(C,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(I,M)=>{let D=()=>M?.().props;qr(I,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(U,k)=>{Xr(U,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(j,Y)=>{let st=()=>Y?.().props;Jr(j,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(V,ct)=>{var $=R(),G=T($);{let X=x(()=>({props:at(l,f(),st(),D(),{style:{pointerEvents:c()}}),wrapperProps:m()}));_(G,()=>t.popper??z,()=>u(X))}E(V,$)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),E(d,p)},$$slots:{content:!0}}),N()}function Lc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=H(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=R(),l=T(c);{var h=d=>{uo(d,tt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};J(l,d=>{t.shouldRender&&d(h)})}E(e,c)}function Wc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=H(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);uo(e,tt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function zc(e){return Q(`/api/repos/${encodeURIComponent(e)}/sync`,{method:"POST"})}function Vc(){return Q("/api/sync",{method:"POST"})}function Hc(e,t,n){return Q(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(t)}/${encodeURIComponent(n)}/refresh`,{method:"POST"})}function Kc(e,t,n){return Q(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(t)}/${encodeURIComponent(n)}/refresh/apply`,{method:"POST"})}function Uc(){return Q("/api/sources")}function jc(){return Q("/api/connectors")}function Yc(e){return Q(`/api/connectors/${encodeURIComponent(e)}/config`)}function Gc(e,t){return Q(`/api/connectors/${encodeURIComponent(e)}/config`,{method:"POST",body:JSON.stringify({...t,name:e})})}function Xc(e){return Q(`/api/connectors/${encodeURIComponent(e)}/config`,{method:"DELETE"})}function qc(e){return Q(`/api/sources/${encodeURIComponent(e)}`)}function Zc(e,t){return Q(`/api/sources/${encodeURIComponent(e)}`,{method:"POST",body:JSON.stringify(t)})}function Jc(e,t){return Q(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({sync:t})})}function Qc(e){return Q(`/api/connectors/${encodeURIComponent(e)}/oauth/authorize`,{method:"POST"})}function $c(e){return Q(`/api/connectors/${encodeURIComponent(e)}/oauth/status`)}function tl(e){return Q(`/api/connectors/${encodeURIComponent(e)}/oauth/disconnect`,{method:"POST"})}function el(e,t){F(t,!0);let n=v(t,"open",15,!1),r=H(t,["$$slots","$$events","$$legacy","open"]);var o=R(),s=T(o);Dt(s,()=>Vi,(i,a)=>{a(i,tt(()=>r,{get open(){return n()},set open(c){n(c)}}))}),E(e,o),N()}function fc(e,t){let n=H(t,["$$slots","$$events","$$legacy"]);var r=R(),o=T(r);Dt(o,()=>$i,(s,i)=>{i(s,tt(()=>n))}),E(e,r)}function nl(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class"]);var o=R(),s=T(o);{let i=x(()=>_t("text-lg font-semibold",t.class));Dt(s,()=>Ki,(a,c)=>{c(a,tt({"data-slot":"alert-dialog-title",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}E(e,o),N()}function rl(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class"]);var o=R(),s=T(o);{let i=x(()=>t.class||_t(Po({variant:"ghost"})));Dt(s,()=>ji,(a,c)=>{c(a,tt({"data-slot":"alert-dialog-cancel",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}E(e,o),N()}var hc=pt("<div><!></div>");function ol(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=hc();mt(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>_t("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=ot(o);_(s,()=>t.children??z),it(o),sr(o,i=>n(i),()=>n()),E(e,o),N()}var gc=pt("<div><!></div>");function il(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=gc();mt(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>_t("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=ot(o);_(s,()=>t.children??z),it(o),sr(o,i=>n(i),()=>n()),E(e,o),N()}function pc(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class"]);var o=R(),s=T(o);{let i=x(()=>_t("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Dt(s,()=>Qs,(a,c)=>{c(a,tt({"data-slot":"alert-dialog-overlay",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}E(e,o),N()}var mc=pt("<!> <!>",1);function sl(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);fc(e,tt(()=>t.portalProps,{children:(o,s)=>{var i=mc(),a=T(i);pc(a,{});var c=ve(a,2);{let l=x(()=>_t("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Dt(c,()=>Zs,(h,d)=>{d(h,tt({"data-slot":"alert-dialog-content",get class(){return u(l)}},()=>r,{get ref(){return n()},set ref(g){n(g)}}))})}E(o,i)},$$slots:{default:!0}})),N()}function al(e,t){F(t,!0);let n=v(t,"ref",15,null),r=H(t,["$$slots","$$events","$$legacy","ref","class"]);var o=R(),s=T(o);{let i=x(()=>_t("text-[var(--color-text-secondary)] text-sm",t.class));Dt(s,()=>ta,(a,c)=>{c(a,tt({"data-slot":"alert-dialog-description",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}E(e,o),N()}export{ur as $,Pc as A,el as B,Ec as C,Gr as D,qr as E,_c as F,Kc as G,Hc as H,Sr as I,Pt as J,et as K,Ut as L,jr as M,K as N,ue as O,Wc as P,Fe as Q,Mc as R,Oe as S,Jr as T,mr as U,Io as V,Li as W,vr as X,ta as Y,Vc as Z,zc as _,Yr as a,Ye as a0,sn as a1,yt as a2,on as a3,Rc as a4,wt as a5,As as a6,Wr as a7,Lr as a8,Es as a9,ye as aa,oe as ab,Ri as ac,Mi as ad,br as ae,Ti as af,yr as ag,Ic as ah,Fc as ai,Nc as aj,kc as ak,Gt as al,Wn as am,Uc as an,jc as ao,Ro as ap,Zc as aq,qc as ar,Jc as as,Yc as at,Gc as au,tl as av,Xc as aw,Qc as ax,$c as ay,w as b,de as c,Hr as d,Kr as e,Ur as f,Lc as g,Dc as h,Bc as i,$i as j,Ar as k,ln as l,at as m,B as n,fn as o,Zr as p,Xr as q,Qs as r,Ki as s,Tc as t,sl as u,il as v,nl as w,al as x,ol as y,rl as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={project:"#5a70b0",organization:"#89a8ab",person:"#c09088",meeting:"#b5c090",deal:"#78d098",deliverable:"#e05050",decision:"#2a38a0",dataset:"#9090c0",process:"#b09890",deck:"#4a60a0",doc:"#a0c0d8",document:"#d8a0c0",note:"#707068",publication:"#d87070",reference:"#208850",task:"#b86058",role:"#484060","practice-area":"#7a7a98","case-study":"#2a4a3a",standard:"#dada98"};function r(e){return e?a[e]??"#5c5c66":"#5c5c66"}const c={person:"people","practice-area":"practice-areas","case-study":"case-studies",process:"processes"};function s(e){return c[e]??e+"s"}export{r as e,s as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b,s as R,f as P,d as S,c as H,b as T,g as Y}from"./DoQdsI-P.js";import{p as $,l as k,s as M,d as w,g as u,a as Z,c as d,n as j,r as v,b as D,m as A,t as G,ay as q,a5 as h,a4 as E}from"./BLp0X8Gk.js";import{a as F,s as I}from"./CrgPkghk.js";import{i as x}from"./OKhOOfKB.js";import{s as C}from"./DLGVnhPm.js";import{l as B,p as V}from"./FefWW-qv.js";import{g as J}from"./BBZMKXAH.js";import{i as K}from"./BNVCPAnF.js";import{n as L}from"./AnfEg8V4.js";import{B as Q}from"./JPu9c3TR.js";var U=P("<title> </title>"),W=P('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function X(_,e){const t=B(e,["children","$$slots","$$events","$$legacy"]),g=B(t,["size","title"]);$(e,!1);const i=A(),l=A();let o=V(e,"size",8,16),s=V(e,"title",8,void 0);k(()=>(w(t),w(s())),()=>{M(i,t["aria-label"]||t["aria-labelledby"]||s())}),k(()=>(u(i),w(t)),()=>{M(l,{"aria-hidden":u(i)?void 0:!0,role:u(i)?"img":void 0,focusable:Number(t.tabindex)===0?!0:void 0})}),Z(),K();var r=W();F(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:o(),height:o(),...u(l),...g}));var f=d(r);{var p=n=>{var c=U(),y=d(c,!0);v(c),G(()=>R(y,s())),b(n,c)};x(f,n=>{s()&&n(p)})}j(3),v(r),b(_,r),D()}var tt=T('<div class="view-toolbar svelte-r6dy5f"><div></div> <div class="view-toggles svelte-r6dy5f"><button><span class="toggle-label">Details</span></button> <button><span class="toggle-label">Graph</span></button></div> <div class="toolbar-right svelte-r6dy5f"><!> <!></div></div>');function vt(_,e){$(e,!0);let t=V(e,"activeView",3,"entity");const g=q("chat");function i(a){J(a,{noScroll:!0})}var l=tt(),o=h(d(l),2),s=d(o);let r;var f=h(s,2);let p;v(o);var n=h(o,2),c=d(n);{var y=a=>{var m=Y(),z=E(m);I(z,()=>e.right),b(a,m)};x(c,a=>{e.right&&a(y)})}var N=h(c,2);{var O=a=>{Q(a,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return g.toggle},children:(m,z)=>{X(m,{size:14})},$$slots:{default:!0}})};x(N,a=>{g.open||a(O)})}v(n),v(l),G(()=>{r=C(s,1,"toggle-btn svelte-r6dy5f",null,r,{active:t()==="entity"}),p=C(f,1,"toggle-btn svelte-r6dy5f",null,p,{active:t()==="graph"})}),H("click",s,()=>t()!=="entity"&&i(L.entityPath??"/")),H("click",f,()=>t()!=="graph"&&i("/graph")),b(_,l),D()}S(["click"]);export{vt as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{extensions as e,FilterSystem as i,FilterPipe as t}from"./
|
|
1
|
+
import{extensions as e,FilterSystem as i,FilterPipe as t}from"./BB_5th5W.js";e.add(i);e.add(t);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aS as b,bl as O,aC as v,Y as u,g as f,s as d}from"./BLp0X8Gk.js";const h=[];function A(e,t=b){let n=null;const r=new Set;function s(o){if(O(e,o)&&(e=o,n)){const l=!h.length;for(const c of r)c[1](),h.push(c,e);if(l){for(let c=0;c<h.length;c+=2)h[c][0](h[c+1]);h.length=0}}}function i(o){s(o(e))}function a(o,l=b){const c=[o,l];return r.add(c),r.size===1&&(n=t(s,i)||b),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}new URL("sveltekit-internal://");function G(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function z(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function H({href:e}){return e.split("#")[0]}function K(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(c,...x)=>(n(c),a[o](c,...x));t();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function N(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function I(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const L=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&p.delete(m(e)),L(e,t));const p=new Map;function B(e,t){const n=m(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);const a=r.getAttribute("data-ttl");return a&&p.set(n,{body:s,init:i,ttl:1e3*Number(a)}),r.getAttribute("data-b64")!==null&&(s=I(s)),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function J(e,t,n){if(p.size>0){const r=m(e,n),s=p.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);p.delete(r)}}return window.fetch(t,n)}function m(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${N(...s)}"]`}return r}const P=globalThis.__sveltekit_evrvh2?.base??"",$=globalThis.__sveltekit_evrvh2?.assets??P??"",q="1774422491086",W="sveltekit:snapshot",X="sveltekit:scroll",M="sveltekit:states",F="sveltekit:pageurl",Q="sveltekit:history",Z="sveltekit:navigation",y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},k=location.origin;function ee(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function te(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...y,"":y.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ne(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||C(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===k&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function se(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(a)}}function oe(e){const t=A(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const E={v:()=>{}};function ae(){const{set:e,subscribe:t}=A(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${$}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==q;return a&&(e(!0),E.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function C(e,t,n){return e.origin!==k||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ie(e){}const U=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...U];const V=new Set([...U]);[...V];let w,R,_;const Y=v.toString().includes("$$")||/function \w+\(\) \{\}/.test(v.toString());Y?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},R={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL("https://example.com"));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},E.v=()=>_.current=!0);function fe(e){Object.assign(w,e)}export{Q as H,Z as N,F as P,M as S,z as a,P as b,ae as c,D as d,R as e,B as f,J as g,ne as h,C as i,re as j,se as k,H as l,K as m,G as n,k as o,w as p,y as q,ee as r,te as s,X as t,fe as u,W as v,A as w,oe as x,ie as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as n,Y as o,s as t}from"./BLp0X8Gk.js";import{a as u}from"./DLGVnhPm.js";function f(){return u("/api/auth/status")}function p(){return u("/api/auth/me")}function g(e,a){return u("/api/auth/login",{method:"POST",body:JSON.stringify({email:e,password:a})})}function S(){return u("/api/auth/logout",{method:"POST"})}function b(e,a,r){return u("/api/auth/setup",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r})})}function w(){return u("/api/auth/users")}function O(e,a,r,i){return u("/api/auth/users",{method:"POST",body:JSON.stringify({email:e,password:a,displayName:r,role:i})})}function N(e){return u(`/api/auth/users/${e}`,{method:"DELETE"})}function P(e,a){return u(`/api/auth/users/${e}/password`,{method:"PATCH",body:JSON.stringify({password:a})})}let l=o(null),d=o(!1),c=o(!1),s=o(!0),h=o("");const m={get user(){return n(l)},get authEnabled(){return n(d)},get needsSetup(){return n(c)},get loading(){return n(s)},get workspaceName(){return n(h)},async checkAuth(){t(s,!0);try{const e=await f();if(t(d,e.authEnabled,!0),t(c,e.userCount===0),e.workspaceName&&t(h,e.workspaceName,!0),n(c))return t(s,!1),{authenticated:!1,authEnabled:!1,needsSetup:!0};if(!e.authEnabled)return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1};try{const{user:a}=await p();return t(l,a,!0),t(s,!1),{authenticated:!0,authEnabled:!0,needsSetup:!1}}catch{return t(l,null),t(s,!1),{authenticated:!1,authEnabled:!0,needsSetup:!1}}}catch{return t(s,!1),{authenticated:!0,authEnabled:!1,needsSetup:!1}}},async login(e,a){const{user:r}=await g(e,a);return t(l,r,!0),t(d,!0),r},async setup(e,a,r){const{user:i}=await b(e,a,r);return t(l,i,!0),t(d,!0),t(c,!1),i},async logout(){await S(),t(l,null)}},T=Object.freeze(Object.defineProperty({__proto__:null,auth:m},Symbol.toStringTag,{value:"Module"}));export{m as a,T as b,O as c,N as d,w as l,P as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,s as k,f as h}from"./DoQdsI-P.js";import{i as C}from"./BNVCPAnF.js";import{p as M,l as c,s as m,d as f,g as i,a as A,c as _,n as B,r as u,b as N,m as v,t as P}from"./BLp0X8Gk.js";import{i as R}from"./OKhOOfKB.js";import{a as Y}from"./CrgPkghk.js";import{l as g,p as b}from"./FefWW-qv.js";var j=h("<title> </title>"),q=h('<svg><!><path d="M13 24 4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"></path></svg>');function J(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);M(t,!1);const a=v(),n=v();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(f(e),f(s())),()=>{m(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),f(e)),()=>{m(n,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),A(),C();var r=q();Y(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(n),...w}));var y=_(r);{var z=o=>{var l=j(),$=_(l,!0);u(l),P(()=>k($,s())),p(o,l)};R(y,o=>{s()&&o(z)})}B(),u(r),p(x,r),N()}export{J as C};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u,e as y,Z as _,_ as o,h as t,C as g,V as i,o as l,k as d,q as p,v}from"./BLp0X8Gk.js";function C(n,r){let s=null,E=t;var a;if(t){s=p;for(var e=v(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(a=document.head.appendChild(u()));try{y(()=>r(a),_|o)}finally{E&&(l(!0),d(s))}}export{C as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y as T,a6 as H,g as m,s as n,a1 as N,ag as Y}from"./BLp0X8Gk.js";import{i as G}from"./BBZMKXAH.js";import{u as P,w as h}from"./DZaKuUr5.js";import{a as L}from"./Cd9--YY2.js";import{n as b}from"./AnfEg8V4.js";function mt(...t){return t.filter(Boolean).join(" ")}const V=typeof document<"u";let D=0;class q{#t=T(H([]));get toasts(){return m(this.#t)}set toasts(e){n(this.#t,e,!0)}#e=T(H([]));get heights(){return m(this.#e)}set heights(e){n(this.#e,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{V&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:r})=>{const o=this.toasts.findIndex(d=>d.id===e),u=this.toasts[o];this.toasts[o]={...u,...s,id:e,title:r,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,r=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:D++,o=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,u=e.type===void 0?"default":e.type;return N(()=>{this.toasts.find($=>$.id===r)?this.updateToast({id:r,data:e,type:u,message:s,dismissible:o}):this.addToast({...i,id:r,title:s,dismissible:o,type:u})}),r};dismiss=e=>(N(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const r=e instanceof Promise?e:e();let o=i!==void 0;return r.then(u=>{if(typeof u=="object"&&u&&"ok"in u&&typeof u.ok=="boolean"&&!u.ok){o=!1;const d=z(u);this.create({id:i,type:"error",message:d})}else if(s.success!==void 0){o=!1;const d=typeof s.success=="function"?s.success(u):s.success;this.create({id:i,type:"success",message:d})}}).catch(u=>{if(s.error!==void 0){o=!1;const d=typeof s.error=="function"?s.error(u):s.error;this.create({id:i,type:"error",message:d})}}).finally(()=>{o&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||D++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function z(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const f=new q;function K(t,e){return f.create({message:t,...e})}class St{#t=Y(()=>f.toasts.filter(e=>!e.dismiss));get toasts(){return m(this.#t)}}const Q=K,a=Object.assign(Q,{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading,getActiveToasts:()=>f.toasts.filter(t=>!t.dismiss)}),X=800;function Z(){let t=T(!1),e=T(null),s=T(null),i=null,r=null,o=!1;function u(p,S,y,l){i&&i.repo===p&&i.type===S&&i.id===y?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:S,id:y,payload:{...l}},d()}function d(){r&&clearTimeout(r),r=setTimeout($,X)}async function $(){if(r=null,!o&&i){const{repo:p,type:S,id:y,payload:l}=i;i=null,o=!0,n(t,!0),n(s,null);try{if(await P(p,S,y,l),n(e,new Date,!0),l.data?.name){const E=h.repos.find(O=>O.name===p)?.entities.find(O=>O.id===y);E&&(E.title=l.data.name)}}catch(g){n(s,g.message??"Save failed",!0);const E=g.status??g.statusCode;(!E||E>=500)&&(i={repo:p,type:S,id:y,payload:l})}finally{n(t,!1),o=!1,i&&$()}}}function F(){r&&(clearTimeout(r),r=null),i&&$()}async function J(p,S,y,l){n(t,!0),n(s,null);try{const g=await P(p,S,y,l);return n(e,new Date,!0),g}catch(g){return n(s,g.message??"Save failed",!0),null}finally{n(t,!1)}}function R(){n(s,null),n(e,null),i=null,r&&(clearTimeout(r),r=null)}return{get saving(){return m(t)},get lastSaved(){return m(e)},get error(){return m(s)},get hasPending(){return!!(i||o)},scheduleAutoSave:u,flush:F,saveEntity:J,reset:R}}const v=Z();let c=null,U=null,j=null,B=[],_=null,x=1e3,k=T(!1),M=T(null);const w=new Map,I={},A={};function C(t,e){w.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;a(i)}function tt(t){for(const[e,s]of w)s.repo===t&&(clearTimeout(s.timer),w.delete(e))}function et(t){const e=L.user?.displayName;if(t.type==="sync_progress"){const s=I[t.repo];if(s){const i=t.message.trim(),r=i.match(/^Syncing from source:\s*(.+)$/i);r&&(A[t.repo]=`Syncing ${r[1].trim()}…`);const o=A[t.repo]??`Syncing ${t.repo}…`;a.loading(o,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),b.selectedRepo===t.repo&&b.selectedType===t.entityType&&b.selectedId===t.entityId){v.hasPending?a(`${t.actor} also saved changes to this entity`):G();return}const i=w.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>C(t.actor,i),1e4);else{const r={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>C(t.actor,r),1e4)};w.set(t.actor,r)}return}if(t.type==="session_commit"){if(e&&t.actor===e){n(M,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;a(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(tt(t.repo),!I[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;a.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){a(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){a(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){a(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){U?.(t);return}if(t.type==="online"){j?.(t);return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&b.selectedRepo===t.repo&&b.deselect(),h.load();return}}function W(){if(typeof window>"u"||c&&(c.readyState===WebSocket.OPEN||c.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;c=new WebSocket(e),c.binaryType="arraybuffer",c.onopen=()=>{n(k,!0),x=1e3,h.refreshAll();for(const s of B)s()},c.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){c?.send(JSON.stringify({type:"pong"}));return}const r=i;r.type&&r.type!=="toast"&&et(r)}catch{}},c.onclose=()=>{n(k,!1),c=null,_=setTimeout(()=>{x=Math.min(x*2,1e4),W()},x)},c.onerror=()=>{}}function st(){_&&(clearTimeout(_),_=null),c&&(c.close(),c=null),n(k,!1);for(const[,t]of w)clearTimeout(t.timer);w.clear()}function it(t,e=4e3){a(t,{duration:e})}function rt(t,e){const s=crypto.randomUUID();return e?.loading?a.loading(t,{id:s,duration:36e5}):a(t,{id:s}),s}function nt(t,e,s){if(s?.loading){a.loading(e,{id:t});return}/failed|error/i.test(e)?a.error(e,{id:t,duration:s?.duration??6e3}):a.success(e,{id:t,duration:s?.duration??4e3})}function ot(t){const e=crypto.randomUUID();I[t]=e,a.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function ct(t,e,s){const i=I[t];i&&(delete I[t],delete A[t],s?a.error(e,{id:i,duration:6e3}):a.success(e,{id:i,duration:4e3}))}function at(t){U=t}function ut(t){j=t}function lt(t){B.push(t)}function ft(t){c?.readyState===WebSocket.OPEN&&c.send(JSON.stringify(t))}const Tt={get connected(){return m(k)},get lastAutoSaved(){return m(M)},get ws(){return c},connect:W,disconnect:st,showToast:it,showPersistentToast:rt,updateToast:nt,startSyncToast:ot,finishSyncToast:ct,send:ft,setPresenceHandler:at,setOnlineHandler:ut,addConnectHandler:lt};export{St as S,mt as c,v as e,Tt as r,f as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Y as I,a6 as _,s as a,g as s,a7 as U}from"./BLp0X8Gk.js";import{i as H,g as L}from"./BBZMKXAH.js";import{n as h}from"./AnfEg8V4.js";import{w as V}from"./DZaKuUr5.js";function W(g,c,n){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:n}).then(async o=>{if(!o.ok){c({type:"error",message:`HTTP ${o.status}`});return}const r=o.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const m=new TextDecoder;let f="";for(;;){const{done:b,value:O}=await r.read();if(b)break;f+=m.decode(O,{stream:!0});const C=f.split(`
|
|
2
|
+
`);f=C.pop()??"";for(const p of C)if(p.startsWith("data: "))try{const x=JSON.parse(p.slice(6));c(x)}catch{}}}).catch(o=>{o.name!=="AbortError"&&c({type:"error",message:o.message})})}const D="sg-chat-sessions",J="sg-chat-version",X=14;function w(){try{const g=localStorage.getItem(D);if(!g)return[];if(localStorage.getItem(J)==="2")return JSON.parse(g);const o=JSON.parse(g).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(m=>m.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(D,JSON.stringify(o)),localStorage.setItem(J,"2"),o}catch{return[]}}function $(g){const n=[...g].sort((o,r)=>r.updatedAt.localeCompare(o.updatedAt)).slice(0,X);try{localStorage.setItem(D,JSON.stringify(n)),localStorage.setItem(J,"2")}catch{}}function k(g,c){const n=w(),o=c.map(({streaming:m,...f})=>f),r=n.findIndex(m=>m.id===g);r>=0&&(n[r].messages=o,n[r].updatedAt=new Date().toISOString()),$(n)}function z(){const c=w().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt))[0];let n=I(_(c?c.messages.map(e=>({...e,streaming:!1})):[])),o=I(_(c?.id??null)),r=I(!1),m=I(0),f=I(0),b=I(null),O=null,C=I(""),p=I(_(!!c));const x=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function R(){N();const e=crypto.randomUUID();a(o,e,!0),a(n,[],!0),a(p,!1)}function M(){if(s(o)&&s(p))return s(o);const e=s(o)||crypto.randomUUID();a(o,e,!0);const i=new Date().toISOString(),d=w();return d.push({id:e,createdAt:i,updatedAt:i,title:"New chat",messages:[]}),$(d),a(p,!0),e}function E(e){if(!e.trim()||s(r))return;a(b,null);const i=M();s(n).push({role:"user",content:e}),s(n).push({role:"agent",content:"",segments:[],streaming:!0}),a(r,!0);const d=w(),l=d.find(t=>t.id===i);l&&l.title==="New chat"&&(l.title=e.slice(0,50),$(d)),k(i,s(n));let A=!1,T=null;O=new AbortController;const q=h.selectedSubPath?`${h.selectedRepo}/${h.selectedType}/${h.selectedId}/${h.selectedSubPath}`:h.selectedId?`${h.selectedRepo}/${h.selectedType}/${h.selectedId}`:null,P=s(n).slice(0,-2).map(t=>({role:t.role==="agent"?"assistant":t.role,content:t.content})),G={message:e,context:q??void 0,sessionId:i,history:P.length>0?P:void 0};W(G,t=>{const u=s(n)[s(n).length-1];if(!u||u.role!=="agent")return;const y=u.segments;switch(t.type){case"token":{u.content+=t.text??"";const S=y[y.length-1];S&&S.type==="text"?S.content+=t.text??"":y.push({type:"text",content:t.text??""}),u.segments=y,U(f);break}case"tool_start":if(t.name){x.has(t.name)&&(A=!0);const S=y[y.length-1];S&&S.type==="tools"?S.names=[...S.names,t.name]:y.push({type:"tools",names:[t.name]}),u.segments=y,U(f)}break;case"mutation":A=!0,t.action==="created"&&t.repo&&t.entityType&&t.entityId&&(T={repo:t.repo,entityType:t.entityType,entityId:t.entityId}),window.StudioChrome?.emitMutation?.({action:t.action,repo:t.repo,entityType:t.entityType,entityId:t.entityId});break;case"highlight":a(b,t.entityIds&&t.entityIds.length>0?new Set(t.entityIds):null,!0);break;case"done":t.message&&!u.content&&(u.content=t.message,u.segments=[{type:"text",content:t.message}]),u.streaming=!1,a(r,!1),k(i,s(n)),A&&(H().then(()=>{U(m)}),V.refreshAll().then(()=>{T&&L(`/${T.repo}/${T.entityType}/${T.entityId}`)}));break;case"error":u.content+=`
|
|
3
|
+
|
|
4
|
+
Error: ${t.message}`,u.streaming=!1,a(r,!1),k(i,s(n));break}},O.signal)}function N(){O?.abort(),a(r,!1);const e=s(n)[s(n).length-1];e?.streaming&&(e.streaming=!1),fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{})}function Y(){N(),a(n,[],!0),s(o)&&s(p)&&k(s(o),s(n))}function K(e){const d=w().filter(l=>l.id!==e);if($(d),s(o)===e){const l=d.sort((A,T)=>T.updatedAt.localeCompare(A.updatedAt));l.length>0?(a(o,l[0].id,!0),a(n,l[0].messages.map(A=>({...A,streaming:!1})),!0),a(p,!0)):(a(o,null),a(n,[],!0),a(p,!1))}}function Z(e){const d=w().find(l=>l.id===e);d&&(N(),a(o,d.id,!0),a(n,d.messages.map(l=>({...l,streaming:!1})),!0),a(p,!0))}function j(){return w().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(i=>i.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===s(o)}))}return{get messages(){return s(n)},get streaming(){return s(r)},get mutationCount(){return s(m)},get scrollTick(){return s(f)},get highlightedIds(){return s(b)},get activeSessionId(){return s(o)},get draftInput(){return s(C)},set draftInput(e){a(C,e,!0)},send:E,stop:N,clear:Y,newSession:R,deleteSession:K,getSessions:j,loadSession:Z}}const ee=z();export{ee as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,s as $,f as h}from"./DoQdsI-P.js";import{i as M}from"./BNVCPAnF.js";import{p as I,l as c,a as P,g as i,c as m,n as Z,r as _,b as k,m as u,s as g,d as n,t as B}from"./BLp0X8Gk.js";import{i as C}from"./OKhOOfKB.js";import{a as N}from"./CrgPkghk.js";import{l as v,p as b}from"./FefWW-qv.js";var R=h("<title> </title>"),V=h('<svg><!><path d="M16,2A14,14,0,1,0,30,16,14.0158,14.0158,0,0,0,16,2Zm0,26A12,12,0,0,1,16,4V16l8.4812,8.4814A11.9625,11.9625,0,0,1,16,28Z"></path></svg>');function G(x,t){const e=v(t,["children","$$slots","$$events","$$legacy"]),w=v(e,["size","title"]);I(t,!1);const a=u(),f=u();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(n(e),n(s())),()=>{g(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),n(e)),()=>{g(f,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),P(),M();var r=V();N(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(f),...w}));var y=m(r);{var z=o=>{var l=R(),A=m(l,!0);_(l),B(()=>$(A,s())),p(o,l)};C(y,o=>{s()&&o(z)})}Z(),_(r),p(x,r),k()}export{G as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as J,E as Q,aE as K,T as P,B as V,ai as $,h as T,I as X,aF as Z,aG as W,aH as m,aI as x,aJ as ee,aK as se,g as re,aL as ae,aM as te,aN as I,o as B,aO as ie,aP as fe,U as ue,aQ as oe,aR as le}from"./BLp0X8Gk.js";import{B as ce}from"./OKhOOfKB.js";import{i as ne,c as ve,d as _e,j as de,n as be,k as he}from"./DoQdsI-P.js";import{t as pe,c as Ae,s as Te}from"./DLGVnhPm.js";function Ue(e,r,...s){var a=new ce(e);J(()=>{const t=r()??null;a.ensure(t,t&&(c=>t(c,...s)))},Q)}function ge(e,r){var s=void 0,a;K(()=>{s!==(s=r())&&(a&&(P(a),a=null),s&&(a=V(()=>{$(()=>s(e))})))})}function w(e,r={},s,a){for(var t in s){var c=s[t];r[t]!==c&&(s[t]==null?e.style.removeProperty(t):e.style.setProperty(t,c,a))}}function ye(e,r,s,a){var t=e.__style;if(T||t!==r){var c=pe(r,a);(!T||c!==e.getAttribute("style"))&&(c==null?e.removeAttribute("style"):e.style.cssText=c),e.__style=r}else a&&(Array.isArray(a)?(w(e,s?.[0],a[0]),w(e,s?.[1],a[1],"important")):w(e,s,a));return a}function M(e,r,s=!1){if(e.multiple){if(r==null)return;if(!X(r))return Z();for(var a of e.options)a.selected=r.includes(H(a));return}for(a of e.options){var t=H(a);if(W(t,r)){a.selected=!0;return}}(!s||r!==void 0)&&(e.selectedIndex=-1)}function Se(e){var r=new MutationObserver(()=>{M(e,e.__value)});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),m(()=>{r.disconnect()})}function H(e){return"__value"in e?e.__value:e.value}const E=Symbol("class"),N=Symbol("style"),j=Symbol("is custom element"),Y=Symbol("is html"),Ee=I?"link":"LINK",Ne=I?"input":"INPUT",Ie=I?"option":"OPTION",Le=I?"select":"SELECT",Oe=I?"progress":"PROGRESS";function ke(e){if(T){var r=!1,s=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var a=e.value;O(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var t=e.checked;O(e,"checked",null),e.checked=t}}};e.__on_r=s,ue(s),oe()}}function Be(e,r){var s=C(e);s.value===(s.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==Oe)||(e.value=r??"")}function we(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function O(e,r,s,a){var t=C(e);T&&(t[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Ee)||t[r]!==(t[r]=s)&&(r==="loading"&&(e[le]=s),s==null?e.removeAttribute(r):typeof s!="string"&&D(e).includes(r)?e[r]=s:e.setAttribute(r,s))}function Pe(e,r,s,a,t=!1,c=!1){if(T&&t&&e.nodeName===Ne){var b=e,k=b.type==="checkbox"?"defaultChecked":"defaultValue";k in s||ke(b)}var h=C(e),_=h[j],p=!h[Y];let g=T&&_;g&&B(!1);var u=r||{},y=e.nodeName===Ie;for(var d in r)d in s||(s[d]=null);s.class?s.class=Ae(s.class):(a||s[E])&&(s.class=null),s[N]&&(s.style??=null);var L=D(e);for(const i in s){let f=s[i];if(y&&i==="value"&&f==null){e.value=e.__value="",u[i]=f;continue}if(i==="class"){var S=e.namespaceURI==="http://www.w3.org/1999/xhtml";Te(e,S,f,a,r?.[E],s[E]),u[i]=f,u[E]=s[E];continue}if(i==="style"){ye(e,f,r?.[N],s[N]),u[i]=f,u[N]=s[N];continue}var n=u[i];if(!(f===n&&!(f===void 0&&e.hasAttribute(i)))){u[i]=f;var R=i[0]+i[1];if(R!=="$$")if(R==="on"){const v={},A="$$"+i;let l=i.slice(2);var G=he(l);if(ne(l)&&(l=l.slice(0,-7),v.capture=!0),!G&&n){if(f!=null)continue;e.removeEventListener(l,u[A],v),u[A]=null}if(G)ve(l,e,f),_e([l]);else if(f!=null){let q=function(z){u[i].call(this,z)};u[A]=de(l,e,q,v)}}else if(i==="style")O(e,i,f);else if(i==="autofocus")ie(e,!!f);else if(!_&&(i==="__value"||i==="value"&&f!=null))e.value=e.__value=f;else if(i==="selected"&&y)we(e,f);else{var o=i;p||(o=be(o));var U=o==="defaultValue"||o==="defaultChecked";if(f==null&&!_&&!U)if(h[i]=null,o==="value"||o==="checked"){let v=e;const A=r===void 0;if(o==="value"){let l=v.defaultValue;v.removeAttribute(o),v.defaultValue=l,v.value=v.__value=A?l:null}else{let l=v.defaultChecked;v.removeAttribute(o),v.defaultChecked=l,v.checked=A?l:!1}}else e.removeAttribute(i);else U||L.includes(o)&&(_||typeof f!="string")?(e[o]=f,o in h&&(h[o]=fe)):typeof f!="function"&&O(e,o,f)}}}return g&&B(!0),u}function He(e,r,s=[],a=[],t=[],c,b=!1,k=!1){x(t,s,a,h=>{var _=void 0,p={},g=e.nodeName===Le,u=!1;if(K(()=>{var d=r(...h.map(re)),L=Pe(e,_,d,c,b,k);u&&g&&"value"in d&&M(e,d.value);for(let n of Object.getOwnPropertySymbols(p))d[n]||P(p[n]);for(let n of Object.getOwnPropertySymbols(d)){var S=d[n];n.description===ae&&(!_||S!==_[n])&&(p[n]&&P(p[n]),p[n]=V(()=>ge(e,()=>S))),L[n]=S}_=L}),g){var y=e;$(()=>{M(y,_.value,!0),Se(y)})}u=!0})}function C(e){return e.__attributes??={[j]:e.nodeName.includes("-"),[Y]:e.namespaceURI===ee}}var F=new Map;function D(e){var r=e.getAttribute("is")||e.nodeName,s=F.get(r);if(s)return s;F.set(r,s=[]);for(var a,t=e,c=Element.prototype;c!==t;){a=te(t);for(var b in a)a[b].set&&s.push(b);t=se(t)}return s}export{N as S,He as a,Be as b,ye as c,O as d,ke as r,Ue as s};
|