@htmlbricks/hb-tooltip 0.62.6 → 0.62.8
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/main.iife.js +9 -9
- package/main.iife.js.map +1 -1
- package/manifest.json +13 -1
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +3 -0
- package/types/webcomponent.type.d.ts +1 -0
package/main.iife.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(gn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Hr=1,qr=2,mn="[",Ie="[!",wn="]",Pt={},P=Symbol(),We=!1;var zr=Array.isArray,Yr=Array.prototype.indexOf,Ur=Array.from,me=Object.keys,we=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,Xr=Object.prototype,Kr=Array.prototype,Gr=Object.getPrototypeOf,yn=Object.isExtensible;function Jr(t){for(var e=0;e<t.length;e++)t[e]()}function bn(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const L=2,He=4,qe=8,mt=16,wt=32,At=64,ye=128,J=512,D=1024,j=2048,yt=4096,lt=8192,bt=16384,be=32768,qt=65536,xn=1<<17,$n=1<<18,Dt=1<<19,Zr=1<<20,Nt=32768,ze=1<<21,Ye=1<<22,St=1<<23,xe=Symbol("$state"),Qr=Symbol("legacy props"),zt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ue=3,Yt=8;function ti(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ei(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ni(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ri(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ii(t){throw new Error("https://svelte.dev/e/effect_orphan")}function si(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function oi(){throw new Error("https://svelte.dev/e/hydration_failed")}function li(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ai(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ci(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function ui(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Ut(t){R=t}let E;function U(t){if(t===null)throw re(),Pt;return E=t}function Xt(){return U(ct(E))}function En(t){if(R){if(ct(E)!==null)throw re(),Pt;E=t}}function hi(t=1){if(R){for(var e=t,n=E;e--;)n=ct(n);E=n}}function Rn(t=!0){for(var e=0,n=E;;){if(n.nodeType===Yt){var r=n.data;if(r===wn){if(e===0)return n;e-=1}else(r===mn||r===Ie)&&(e+=1)}var s=ct(n);t&&n.remove(),n=s}}function di(t){if(!t||t.nodeType!==Yt)throw re(),Pt;return t.data}function An(t){return t===this.v}function vi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function pi(t){return!vi(t,this.v)}let _i=!1,H=null;function Kt(t){H=t}function Sn(t,e=!1,n){H={p:H,i:!1,c:null,e:null,s:t,x:null,l:null}}function Tn(t){var e=H,n=e.e;if(n!==null){e.e=null;for(var r of n)Xn(r)}return t!==void 0&&(e.x=t),e.i=!0,H=e.p,t??{}}function On(){return!0}let Ft=[];function Cn(){var t=Ft;Ft=[],Jr(t)}function ie(t){if(Ft.length===0&&!se){var e=Ft;queueMicrotask(()=>{e===Ft&&Cn()})}Ft.push(t)}function gi(){for(;Ft.length>0;)Cn()}function kn(t){var e=x;if(e===null)return b.f|=St,t;if((e.f&be)===0){if((e.f&ye)===0)throw t;e.b.error(t)}else Gt(t,e)}function Gt(t,e){for(;e!==null;){if((e.f&ye)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const $e=new Set;let T=null,X=null,K=[],Ee=null,Xe=!1,se=!1;class Z{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){K=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#o(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(T=null,Pn(n.render_effects),Pn(n.effects),this.#f?.resolve()),X=null}#o(e,n){e.f^=D;for(var r=e.first;r!==null;){var s=r.f,i=(s&(wt|At))!==0,o=i&&(s&D)!==0,l=o||(s<)!==0||this.skipped_effects.has(r);if((r.f&ye)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=D:(s&He)!==0?n.effects.push(r):ue(r)&&((r.f&mt)!==0&&n.block_effects.push(r),he(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(e){for(const n of e)((n.f&j)!==0?this.#s:this.#i).push(n),this.#a(n.deps),N(n,D)}#a(e){if(e!==null)for(const n of e)(n.f&L)===0||(n.f&Nt)===0||(n.f^=Nt,this.#a(n.deps))}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&St)===0&&(this.current.set(e,e.v),X?.set(e,e.v))}activate(){T=this,this.apply()}deactivate(){T===this&&(T=null,X=null)}flush(){if(this.activate(),K.length>0){if(Ln(),T!==null&&T!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#c(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#n===0&&this.#u()}#u(){if($e.size>1){this.previous.clear();var e=X,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of $e){if(i===this){n=!1;continue}const o=[];for(const[f,a]of this.current){if(i.current.has(f))if(n&&a!==i.current.get(f))i.current.set(f,a);else continue;o.push(f)}if(o.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var s=K;K=[];const f=new Set,a=new Map;for(const h of o)Dn(h,l,f,a);if(K.length>0){T=i,i.apply();for(const h of K)i.#o(h,r);i.deactivate()}K=s}}T=null,X=e}this.committed=!0,$e.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#s)N(e,j),Mt(e);for(const e of this.#i)N(e,yt),Mt(e);this.#s=[],this.#i=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#f??=bn()).promise}static ensure(){if(T===null){const e=T=new Z;$e.add(T),se||Z.enqueue(()=>{T===e&&e.flush()})}return T}static enqueue(e){ie(e)}apply(){}}function Re(t){var e=se;se=!0;try{for(var n;;){if(gi(),K.length===0&&(T?.flush(),K.length===0))return Ee=null,n;Ln()}}finally{se=e}}function Ln(){var t=Ot;Xe=!0;var e=null;try{var n=0;for(Oe(!0);K.length>0;){var r=Z.ensure();if(n++>1e3){var s,i;mi()}r.process(K),Tt.clear()}}finally{Xe=!1,Oe(t),Ee=null}}function mi(){try{si()}catch(t){Gt(t,Ee)}}let xt=null;function Pn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(bt|lt))===0&&ue(r)&&(xt=new Set,he(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?tr(r):r.fn=null),xt?.size>0)){Tt.clear();for(const s of xt){if((s.f&(bt|lt))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)xt.has(o)&&(xt.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(bt|lt))===0&&he(f)}}xt.clear()}}xt=null}}function Dn(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const s of t.reactions){const i=s.f;(i&L)!==0?Dn(s,e,n,r):(i&(Ye|mt))!==0&&(i&j)===0&&Nn(s,e,r)&&(N(s,j),Mt(s))}}function Nn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const s of t.deps){if(e.includes(s))return!0;if((s.f&L)!==0&&Nn(s,e,n))return n.set(s,!0),!0}return n.set(t,!1),!1}function Mt(t){for(var e=Ee=t;e.parent!==null;){e=e.parent;var n=e.f;if(Xe&&e===x&&(n&mt)!==0&&(n&$n)===0)return;if((n&(At|wt))!==0){if((n&D)===0)return;e.f^=D}}K.push(e)}function wi(t){let e=0,n=oe(0),r;return()=>{Te()&&(w(n),nn(()=>(e===0&&(r=sn(()=>t(()=>le(n)))),e+=1,()=>{ie(()=>{e-=1,e===0&&(r?.(),r=void 0,le(n))})})))}}var yi=qt|Dt|ye;function bi(t,e,n){new xi(t,e,n)}class xi{parent;#e=!1;#t;#n=R?E:null;#r;#f;#s;#i=null;#o=null;#l=null;#a=null;#c=null;#u=0;#h=0;#v=!1;#d=null;#w=wi(()=>(this.#d=oe(this.#u),()=>{this.#d=null}));constructor(e,n,r){this.#t=e,this.#r=n,this.#f=r,this.parent=x.b,this.#e=!!this.#r.pending,this.#s=Gn(()=>{if(x.b=this,R){const i=this.#n;Xt(),i.nodeType===Yt&&i.data===Ie?this.#b():this.#y()}else{var s=this.#g();try{this.#i=$t(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},yi),R&&(this.#t=E)}#y(){try{this.#i=$t(()=>this.#f(this.#t))}catch(e){this.error(e)}this.#e=!1}#b(){const e=this.#r.pending;e&&(this.#o=$t(()=>e(this.#t)),Z.enqueue(()=>{var n=this.#g();this.#i=this.#p(()=>(Z.ensure(),$t(()=>this.#f(n)))),this.#h>0?this.#_():(ae(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#g(){var e=this.#t;return this.#e&&(this.#c=ft(),this.#t.before(this.#c),e=this.#c),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#p(e){var n=x,r=b,s=H;dt(this.#s),I(this.#s),Kt(this.#s.ctx);try{return e()}catch(i){return kn(i),null}finally{dt(n),I(r),Kt(s)}}#_(){const e=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#c),rr(this.#i,this.#a)),this.#o===null&&(this.#o=$t(()=>e(this.#t)))}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#h+=e,this.#h===0&&(this.#e=!1,this.#o&&ae(this.#o,()=>{this.#o=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#m(e),this.#u+=e,this.#d&&Se(this.#d,this.#u)}get_effect_pending(){return this.#w(),w(this.#d)}error(e){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw e;this.#i&&(V(this.#i),this.#i=null),this.#o&&(V(this.#o),this.#o=null),this.#l&&(V(this.#l),this.#l=null),R&&(U(this.#n),hi(),U(Rn()));var s=!1,i=!1;const o=()=>{if(s){ui();return}s=!0,i&&ci(),Z.ensure(),this.#u=0,this.#l!==null&&ae(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#p(()=>(this.#v=!1,$t(()=>this.#f(this.#t)))),this.#h>0?this.#_():this.#e=!1};var l=b;try{I(null),i=!0,n?.(e,o),i=!1}catch(f){Gt(f,this.#s&&this.#s.parent)}finally{I(l)}r&&ie(()=>{this.#l=this.#p(()=>{Z.ensure(),this.#v=!0;try{return $t(()=>{r(this.#t,()=>e,()=>o)})}catch(f){return Gt(f,this.#s.parent),null}finally{this.#v=!1}})})}}function $i(t,e,n,r){const s=Ke;if(n.length===0&&t.length===0){r(e.map(s));return}var i=T,o=x,l=Ei();function f(){Promise.all(n.map(a=>Ri(a))).then(a=>{l();try{r([...e.map(s),...a])}catch(h){(o.f&bt)===0&&Gt(h,o)}i?.deactivate(),Ae()}).catch(a=>{Gt(a,o)})}t.length>0?Promise.all(t).then(()=>{l();try{return f()}finally{i?.deactivate(),Ae()}}):f()}function Ei(){var t=x,e=b,n=H,r=T;return function(i=!0){dt(t),I(e),Kt(n),i&&r?.activate()}}function Ae(){dt(null),I(null),Kt(null)}function Ke(t){var e=L|j,n=b!==null&&(b.f&L)!==0?b:null;return x!==null&&(x.f|=Dt),{ctx:H,deps:null,effects:null,equals:An,f:e,fn:t,reactions:null,rv:0,v:P,wv:0,parent:n??x,ac:null}}function Ri(t,e){let n=x;n===null&&ei();var r=n.b,s=void 0,i=oe(P),o=!b,l=new Map;return Ni(()=>{var f=bn();s=f.promise;try{Promise.resolve(t()).then(f.resolve,f.reject).then(()=>{a===T&&a.committed&&a.deactivate(),Ae()})}catch(d){f.reject(d),Ae()}var a=T;if(o){var h=!r.is_pending();r.update_pending_count(1),a.increment(h),l.get(a)?.reject(zt),l.delete(a),l.set(a,f)}const c=(d,u=void 0)=>{if(a.activate(),u)u!==zt&&(i.f|=St,Se(i,u));else{(i.f&St)!==0&&(i.f^=St),Se(i,d);for(const[v,p]of l){if(l.delete(v),v===a)break;p.reject(zt)}}o&&(r.update_pending_count(-1),a.decrement(h))};f.promise.then(c,d=>c(null,d||"unknown"))}),Un(()=>{for(const f of l.values())f.reject(zt)}),new Promise(f=>{function a(h){function c(){h===s?f(i):a(s)}h.then(c,c)}a(s)})}function Ge(t){const e=Ke(t);return sr(e),e}function Fn(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)V(e[n])}}function Ai(t){for(var e=t.parent;e!==null;){if((e.f&L)===0)return(e.f&bt)===0?e:null;e=e.parent}return null}function Je(t){var e,n=x;dt(Ai(t));try{t.f&=~Nt,Fn(t),e=cr(t)}finally{dt(n)}return e}function Mn(t){var e=Je(t);if(t.equals(e)||(T?.is_fork||(t.v=e),t.wv=fr()),!jt)if(X!==null)Te()&&X.set(t,e);else{var n=(t.f&J)===0?yt:D;N(t,n)}}let Ze=new Set;const Tt=new Map;let jn=!1;function oe(t,e){var n={f:0,v:t,reactions:null,equals:An,rv:0,wv:0};return n}function Q(t,e){const n=oe(t);return sr(n),n}function Si(t,e=!1,n=!0){const r=oe(t);return e||(r.equals=pi),r}function B(t,e,n=!1){b!==null&&(!ht||(b.f&xn)!==0)&&On()&&(b.f&(L|mt|Ye|xn))!==0&&!Et?.includes(t)&&ai();let r=n?fe(e):e;return Se(t,r)}function Se(t,e){if(!t.equals(e)){var n=t.v;jt?Tt.set(t,e):Tt.set(t,n),t.v=e;var r=Z.ensure();r.capture(t,n),(t.f&L)!==0&&((t.f&j)!==0&&Je(t),N(t,(t.f&J)!==0?D:yt)),t.wv=fr(),Bn(t,j),x!==null&&(x.f&D)!==0&&(x.f&(wt|At))===0&&(G===null?Bi([t]):G.push(t)),!r.is_fork&&Ze.size>0&&!jn&&Ti()}return e}function Ti(){jn=!1;var t=Ot;Oe(!0);const e=Array.from(Ze);try{for(const n of e)(n.f&D)!==0&&N(n,yt),ue(n)&&he(n)}finally{Oe(t)}Ze.clear()}function le(t){B(t,t.v+1)}function Bn(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],o=i.f,l=(o&j)===0;if(l&&N(i,e),(o&L)!==0){var f=i;X?.delete(f),(o&Nt)===0&&(o&J&&(i.f|=Nt),Bn(f,yt))}else l&&((o&mt)!==0&&xt!==null&&xt.add(i),Mt(i))}}function fe(t){if(typeof t!="object"||t===null||xe in t)return t;const e=Gr(t);if(e!==Xr&&e!==Kr)return t;var n=new Map,r=zr(t),s=Q(0),i=Bt,o=l=>{if(Bt===i)return l();var f=b,a=Bt;I(null),lr(i);var h=l();return I(f),lr(a),h};return r&&n.set("length",Q(t.length)),new Proxy(t,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&li();var h=n.get(f);return h===void 0?h=o(()=>{var c=Q(a.value);return n.set(f,c),c}):B(h,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const h=o(()=>Q(P));n.set(f,h),le(s)}}else B(a,P),le(s);return!0},get(l,f,a){if(f===xe)return t;var h=n.get(f),c=f in l;if(h===void 0&&(!c||Ht(l,f)?.writable)&&(h=o(()=>{var u=fe(c?l[f]:P),v=Q(u);return v}),n.set(f,h)),h!==void 0){var d=w(h);return d===P?void 0:d}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var h=n.get(f);h&&(a.value=w(h))}else if(a===void 0){var c=n.get(f),d=c?.v;if(c!==void 0&&d!==P)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(l,f){if(f===xe)return!0;var a=n.get(f),h=a!==void 0&&a.v!==P||Reflect.has(l,f);if(a!==void 0||x!==null&&(!h||Ht(l,f)?.writable)){a===void 0&&(a=o(()=>{var d=h?fe(l[f]):P,u=Q(d);return u}),n.set(f,a));var c=w(a);if(c===P)return!1}return h},set(l,f,a,h){var c=n.get(f),d=f in l;if(r&&f==="length")for(var u=a;u<c.v;u+=1){var v=n.get(u+"");v!==void 0?B(v,P):u in l&&(v=o(()=>Q(P)),n.set(u+"",v))}if(c===void 0)(!d||Ht(l,f)?.writable)&&(c=o(()=>Q(void 0)),B(c,fe(a)),n.set(f,c));else{d=c.v!==P;var p=o(()=>fe(a));B(c,p)}var g=Reflect.getOwnPropertyDescriptor(l,f);if(g?.set&&g.set.call(h,a),!d){if(r&&typeof f=="string"){var m=n.get("length"),y=Number(f);Number.isInteger(y)&&y>=m.v&&B(m,y+1)}le(s)}return!0},ownKeys(l){w(s);var f=Reflect.ownKeys(l).filter(c=>{var d=n.get(c);return d===void 0||d.v!==P});for(var[a,h]of n)h.v!==P&&!(a in l)&&f.push(a);return f},setPrototypeOf(){fi()}})}var Vn,In,Wn,Hn;function Qe(){if(Vn===void 0){Vn=window,In=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Wn=Ht(e,"firstChild").get,Hn=Ht(e,"nextSibling").get,yn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),yn(n)&&(n.__t=void 0)}}function ft(t=""){return document.createTextNode(t)}function at(t){return Wn.call(t)}function ct(t){return Hn.call(t)}function qn(t,e){if(!R)return at(t);var n=at(E);return n===null&&(n=E.appendChild(ft())),U(n),n}function zn(t,e=!1){if(!R){var n=at(t);return n instanceof Comment&&n.data===""?ct(n):n}if(e&&E?.nodeType!==Ue){var r=ft();return E?.before(r),U(r),r}return E}function Yn(t,e=1,n=!1){let r=R?E:t;for(var s;e--;)s=r,r=ct(r);if(!R)return r;if(n&&r?.nodeType!==Ue){var i=ft();return r===null?s?.after(i):r.before(i),U(i),i}return U(r),r}function Oi(t){t.textContent=""}function Ci(){return!1}function tn(t){var e=b,n=x;I(null),dt(null);try{return t()}finally{I(e),dt(n)}}function ki(t){x===null&&(b===null&&ii(),ri()),jt&&ni()}function Li(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function ut(t,e,n){var r=x;r!==null&&(r.f<)!==0&&(t|=lt);var s={ctx:H,deps:null,nodes_start:null,nodes_end:null,f:t|j|J,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{he(s),s.f|=be}catch(l){throw V(s),l}else e!==null&&Mt(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Dt)===0&&(i=i.first,(t&mt)!==0&&(t&qt)!==0&&i!==null&&(i.f|=qt)),i!==null&&(i.parent=r,r!==null&&Li(i,r),b!==null&&(b.f&L)!==0&&(t&At)===0)){var o=b;(o.effects??=[]).push(i)}return s}function Te(){return b!==null&&!ht}function Un(t){const e=ut(qe,null,!1);return N(e,D),e.teardown=t,e}function en(t){ki();var e=x.f,n=!b&&(e&wt)!==0&&(e&be)===0;if(n){var r=H;(r.e??=[]).push(t)}else return Xn(t)}function Xn(t){return ut(He|Zr,t,!1)}function Pi(t){Z.ensure();const e=ut(At|Dt,t,!0);return()=>{V(e)}}function Di(t){Z.ensure();const e=ut(At|Dt,t,!0);return(n={})=>new Promise(r=>{n.outro?ae(e,()=>{V(e),r(void 0)}):(V(e),r(void 0))})}function Kn(t){return ut(He,t,!1)}function Ni(t){return ut(Ye|Dt,t,!0)}function nn(t,e=0){return ut(qe|e,t,!0)}function rn(t,e=[],n=[],r=[]){$i(r,e,n,s=>{ut(qe,()=>t(...s.map(w)),!0)})}function Gn(t,e=0){var n=ut(mt|e,t,!0);return n}function $t(t){return ut(wt|Dt,t,!0)}function Jn(t){var e=t.teardown;if(e!==null){const n=jt,r=b;ir(!0),I(null);try{e.call(null)}finally{ir(n),I(r)}}}function Zn(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&tn(()=>{s.abort(zt)});var r=n.next;(n.f&At)!==0?n.parent=null:V(n,e),n=r}}function Fi(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&wt)===0&&V(e),e=n}}function V(t,e=!0){var n=!1;(e||(t.f&$n)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Qn(t.nodes_start,t.nodes_end),n=!0),Zn(t,e&&!n),Ce(t,0),N(t,bt);var r=t.transitions;if(r!==null)for(const i of r)i.stop();Jn(t);var s=t.parent;s!==null&&s.first!==null&&tr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Qn(t,e){for(;t!==null;){var n=t===e?null:ct(t);t.remove(),t=n}}function tr(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ae(t,e,n=!0){var r=[];er(t,r,!0),Mi(r,()=>{n&&V(t),e&&e()})}function Mi(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function er(t,e,n){if((t.f<)===0){if(t.f^=lt,t.transitions!==null)for(const o of t.transitions)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&qt)!==0||(r.f&wt)!==0&&(t.f&mt)!==0;er(r,e,i?n:!1),r=s}}}function ji(t){nr(t,!0)}function nr(t,e){if((t.f<)!==0){t.f^=lt,(t.f&D)===0&&(N(t,j),Mt(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&qt)!==0||(n.f&wt)!==0;nr(n,s?e:!1),n=r}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function rr(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var s=n===r?null:ct(n);e.append(n),n=s}}let Ot=!1;function Oe(t){Ot=t}let jt=!1;function ir(t){jt=t}let b=null,ht=!1;function I(t){b=t}let x=null;function dt(t){x=t}let Et=null;function sr(t){b!==null&&(Et===null?Et=[t]:Et.push(t))}let F=null,q=0,G=null;function Bi(t){G=t}let or=1,ce=0,Bt=ce;function lr(t){Bt=t}function fr(){return++or}function ue(t){var e=t.f;if((e&j)!==0)return!0;if(e&L&&(t.f&=~Nt),(e&yt)!==0){var n=t.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(ue(i)&&Mn(i),i.wv>t.wv)return!0}(e&J)!==0&&X===null&&N(t,D)}return!1}function ar(t,e,n=!0){var r=t.reactions;if(r!==null&&!Et?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&L)!==0?ar(i,e,!1):e===i&&(n?N(i,j):(i.f&D)!==0&&N(i,yt),Mt(i))}}function cr(t){var e=F,n=q,r=G,s=b,i=Et,o=H,l=ht,f=Bt,a=t.f;F=null,q=0,G=null,b=(a&(wt|At))===0?t:null,Et=null,Kt(t.ctx),ht=!1,Bt=++ce,t.ac!==null&&(tn(()=>{t.ac.abort(zt)}),t.ac=null);try{t.f|=ze;var h=t.fn,c=h(),d=t.deps;if(F!==null){var u;if(Ce(t,q),d!==null&&q>0)for(d.length=q+F.length,u=0;u<F.length;u++)d[q+u]=F[u];else t.deps=d=F;if(Ot&&Te()&&(t.f&J)!==0)for(u=q;u<d.length;u++)(d[u].reactions??=[]).push(t)}else d!==null&&q<d.length&&(Ce(t,q),d.length=q);if(On()&&G!==null&&!ht&&d!==null&&(t.f&(L|yt|j))===0)for(u=0;u<G.length;u++)ar(G[u],t);return s!==null&&s!==t&&(ce++,G!==null&&(r===null?r=G:r.push(...G))),(t.f&St)!==0&&(t.f^=St),c}catch(v){return kn(v)}finally{t.f^=ze,F=e,q=n,G=r,b=s,Et=i,Kt(o),ht=l,Bt=f}}function Vi(t,e){let n=e.reactions;if(n!==null){var r=Yr.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&L)!==0&&(F===null||!F.includes(e))&&(N(e,yt),(e.f&J)!==0&&(e.f^=J,e.f&=~Nt),Fn(e),Ce(e,0))}function Ce(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Vi(t,n[r])}function he(t){var e=t.f;if((e&bt)===0){N(t,D);var n=x,r=Ot;x=t,Ot=!0;try{(e&mt)!==0?Fi(t):Zn(t),Jn(t);var s=cr(t);t.teardown=typeof s=="function"?s:null,t.wv=or;var i;We&&_i&&(t.f&j)!==0&&t.deps}finally{Ot=r,x=n}}}function w(t){var e=t.f,n=(e&L)!==0;if(b!==null&&!ht){var r=x!==null&&(x.f&bt)!==0;if(!r&&!Et?.includes(t)){var s=b.deps;if((b.f&ze)!==0)t.rv<ce&&(t.rv=ce,F===null&&s!==null&&s[q]===t?q++:F===null?F=[t]:F.includes(t)||F.push(t));else{(b.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[b]:i.includes(b)||i.push(b)}}}if(jt){if(Tt.has(t))return Tt.get(t);if(n){var o=t,l=o.v;return((o.f&D)===0&&o.reactions!==null||hr(o))&&(l=Je(o)),Tt.set(o,l),l}}else n&&!X?.has(t)&&(o=t,ue(o)&&Mn(o),Ot&&Te()&&(o.f&J)===0&&ur(o));if(X?.has(t))return X.get(t);if((t.f&St)!==0)throw t.v;return t.v}function ur(t){if(t.deps!==null){t.f^=J;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&L)!==0&&(e.f&J)===0&&ur(e)}}function hr(t){if(t.v===P)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Tt.has(e)||(e.f&L)!==0&&hr(e))return!0;return!1}function sn(t){var e=ht;try{return ht=!0,t()}finally{ht=e}}const Ii=-7169;function N(t,e){t.f=t.f&Ii|e}const Wi=new Set,dr=new Set;function Hi(t,e,n,r={}){function s(i){if(r.capture||de.call(e,i),!i.cancelBubble)return tn(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ie(()=>{e.addEventListener(t,s,r)}):e.addEventListener(t,s,r),s}function ke(t,e,n,r,s){var i={capture:r,passive:s},o=Hi(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Un(()=>{e.removeEventListener(t,o,i)})}let vr=null;function de(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;vr=t;var o=0,l=vr===t&&t.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(e===document||e===window)){t.__root=e;return}var a=s.indexOf(e);if(a===-1)return;f<=a&&(o=f)}if(i=s[o]||t.target,i!==e){we(t,"currentTarget",{configurable:!0,get(){return i||n}});var h=b,c=x;I(null),dt(null);try{for(var d,u=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var p=i["__"+r];p!=null&&(!i.disabled||t.target===i)&&p.call(i,t)}catch(g){d?u.push(g):d=g}if(t.cancelBubble||v===e||v===null)break;i=v}if(d){for(let g of u)queueMicrotask(()=>{throw g});throw d}}finally{t.__root=e,delete t.currentTarget,I(h),dt(c)}}}function pr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function vt(t,e){var n=x;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function _r(t,e){var n=(e&Hr)!==0,r=(e&qr)!==0,s,i=!t.startsWith("<!>");return()=>{if(R)return vt(E,null),E;s===void 0&&(s=pr(i?t:"<!>"+t),n||(s=at(s)));var o=r||In?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=at(o),f=o.lastChild;vt(l,f)}else vt(o,o);return o}}function gr(t=""){if(!R){var e=ft(t+"");return vt(e,e),e}var n=E;return n.nodeType!==Ue&&(n.before(n=ft()),U(n)),vt(n,n),n}function qi(){if(R)return vt(E,null),E;var t=document.createDocumentFragment(),e=document.createComment(""),n=ft();return t.append(e,n),vt(e,n),t}function Jt(t,e){if(R){var n=x;((n.f&be)===0||n.nodes_end===null)&&(n.nodes_end=E),Xt();return}t!==null&&t.before(e)}const zi=["touchstart","touchmove"];function Yi(t){return zi.includes(t)}function Ui(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function mr(t,e){return wr(t,e)}function Xi(t,e){Qe(),e.intro=e.intro??!1;const n=e.target,r=R,s=E;try{for(var i=at(n);i&&(i.nodeType!==Yt||i.data!==mn);)i=ct(i);if(!i)throw Pt;Ut(!0),U(i);const o=wr(t,{...e,anchor:i});return Ut(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Pt&&console.warn("Failed to hydrate: ",o),e.recover===!1&&oi(),Qe(),Oi(n),Ut(!1),mr(t,e)}finally{Ut(r),U(s)}}const Zt=new Map;function wr(t,{target:e,anchor:n,props:r={},events:s,context:i,intro:o=!0}){Qe();var l=new Set,f=c=>{for(var d=0;d<c.length;d++){var u=c[d];if(!l.has(u)){l.add(u);var v=Yi(u);e.addEventListener(u,de,{passive:v});var p=Zt.get(u);p===void 0?(document.addEventListener(u,de,{passive:v}),Zt.set(u,1)):Zt.set(u,p+1)}}};f(Ur(Wi)),dr.add(f);var a=void 0,h=Di(()=>{var c=n??e.appendChild(ft());return bi(c,{pending:()=>{}},d=>{if(i){Sn({});var u=H;u.c=i}if(s&&(r.$$events=s),R&&vt(d,null),a=t(d,r)||{},R&&(x.nodes_end=E,E===null||E.nodeType!==Yt||E.data!==wn))throw re(),Pt;i&&Tn()}),()=>{for(var d of l){e.removeEventListener(d,de);var u=Zt.get(d);--u===0?(document.removeEventListener(d,de),Zt.delete(d)):Zt.set(d,u)}dr.delete(f),c!==n&&c.parentNode?.removeChild(c)}});return on.set(a,h),a}let on=new WeakMap;function Ki(t,e){const n=on.get(t);return n?(on.delete(t),n(e)):Promise.resolve()}class Gi{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#f=!0;constructor(e,n=!0){this.anchor=e,this.#f=n}#s=()=>{var e=T;if(this.#e.has(e)){var n=this.#e.get(e),r=this.#t.get(n);if(r)ji(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#t.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#e){if(this.#e.delete(i),i===e)break;const l=this.#n.get(o);l&&(V(l.effect),this.#n.delete(o))}for(const[i,o]of this.#t){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#e.values()).includes(i)){var a=document.createDocumentFragment();rr(o,a),a.append(ft()),this.#n.set(i,{effect:o,fragment:a})}else V(o);this.#r.delete(i),this.#t.delete(i)};this.#f||!r?(this.#r.add(i),ae(o,l,!1)):l()}}};#i=e=>{this.#e.delete(e);const n=Array.from(this.#e.values());for(const[r,s]of this.#n)n.includes(r)||(V(s.effect),this.#n.delete(r))};ensure(e,n){var r=T,s=Ci();if(n&&!this.#t.has(e)&&!this.#n.has(e))if(s){var i=document.createDocumentFragment(),o=ft();i.append(o),this.#n.set(e,{effect:$t(()=>n(o)),fragment:i})}else this.#t.set(e,$t(()=>n(this.anchor)));if(this.#e.set(r,e),s){for(const[l,f]of this.#t)l===e?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===e?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else R&&(this.anchor=E),this.#s()}}function Ji(t){H===null&&ti(),en(()=>{const e=sn(t);if(typeof e=="function")return e})}function yr(t,e,n=!1){R&&Xt();var r=new Gi(t),s=n?qt:0;function i(o,l){if(R){const a=di(t)===Ie;if(o===a){var f=Rn();U(f),r.anchor=f,Ut(!1),r.ensure(o,l),Ut(!0);return}}r.ensure(o,l)}Gn(()=>{var o=!1;e((l,f=!0)=>{o=!0,i(f,l)}),o||i(!1,null)},s)}function Zi(t,e,n=!1,r=!1,s=!1){var i=t,o="";rn(()=>{var l=x;if(o===(o=e()??"")){R&&Xt();return}if(l.nodes_start!==null&&(Qn(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),o!==""){if(R){E.data;for(var f=Xt(),a=f;f!==null&&(f.nodeType!==Yt||f.data!=="");)a=f,f=ct(f);if(f===null)throw re(),Pt;vt(E,a),i=U(f);return}var h=o+"";n?h=`<svg>${h}</svg>`:r&&(h=`<math>${h}</math>`);var c=pr(h);if((n||r)&&(c=at(c)),vt(at(c),c.lastChild),n||r)for(;at(c);)i.before(at(c));else i.before(c)}})}function Qi(t,e,n,r,s){R&&Xt();var i=e.$$slots?.[n],o=!1;i===!0&&(i=e.children,o=!0),i===void 0?s!==null&&s(t):i(t,o?()=>r:r)}function ts(t,e){Kn(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function es(t,e){return t==null?null:String(t)}function ns(t,e,n,r){var s=t.__style;if(R||s!==e){var i=es(e);(!R||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return r}function br(t,e){return t===e||t?.[xe]===e}function xr(t={},e,n,r){return Kn(()=>{var s,i;return nn(()=>{s=i,i=[],sn(()=>{t!==n(...i)&&(e(t,...i),s&&br(n(...s),t)&&e(null,...s))})}),()=>{ie(()=>{i&&br(n(...i),t)&&e(null,...i)})}}),t}function ln(t,e,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),l;l=t[e],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var d=t[e];return d===void 0?o():(i=!0,d)};var a=!1,h=Ke(()=>(a=!1,f())),c=x;return(function(d,u){if(arguments.length>0){const v=u?w(h):d;return B(h,v),a=!0,s!==void 0&&(s=v),d}return jt&&a||(c.f&bt)!==0?h.v:w(h)})}function rs(t){return new is(t)}class is{#e;#t;constructor(e){var n=new Map,r=(i,o)=>{var l=Si(o,!1,!1);return n.set(i,l),l};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return w(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===Qr?!0:(w(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return B(n.get(o)??r(o,l),l),Reflect.set(i,o,l)}});this.#t=(e.hydrate?Xi:mr)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Re(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||we(this,i,{get(){return this.#t[i]},set(o){this.#t[i]=o},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Ki(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let $r;typeof HTMLElement=="function"&&($r=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Jt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=ss(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Le(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=rs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Pi(()=>{nn(()=>{this.$$r=!0;for(const r of me(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Le(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Le(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return me(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Le(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ss(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function os(t,e,n,r,s,i){let o=class extends $r{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return me(e).map(l=>(e[l].attribute||l).toLowerCase())}};return me(e).forEach(l=>{we(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Le(l,f,e),this.$$d[l]=f;var a=this.$$c;if(a){var h=Ht(a,l)?.get;h?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{we(o.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=o,o}const Qt=Math.min,Vt=Math.max,Pe=Math.round,De=Math.floor,pt=t=>({x:t,y:t}),ls={left:"right",right:"left",bottom:"top",top:"bottom"},fs={start:"end",end:"start"};function fn(t,e,n){return Vt(t,Qt(e,n))}function ve(t,e){return typeof t=="function"?t(e):t}function It(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function Er(t){return t==="x"?"y":"x"}function an(t){return t==="y"?"height":"width"}const as=new Set(["top","bottom"]);function Ct(t){return as.has(It(t))?"y":"x"}function cn(t){return Er(Ct(t))}function cs(t,e,n){n===void 0&&(n=!1);const r=pe(t),s=cn(t),i=an(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ne(o)),[o,Ne(o)]}function us(t){const e=Ne(t);return[un(t),e,un(e)]}function un(t){return t.replace(/start|end/g,e=>fs[e])}const Rr=["left","right"],Ar=["right","left"],hs=["top","bottom"],ds=["bottom","top"];function vs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ar:Rr:e?Rr:Ar;case"left":case"right":return e?hs:ds;default:return[]}}function ps(t,e,n,r){const s=pe(t);let i=vs(It(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(un)))),i}function Ne(t){return t.replace(/left|right|bottom|top/g,e=>ls[e])}function _s(t){return{top:0,right:0,bottom:0,left:0,...t}}function Sr(t){return typeof t!="number"?_s(t):{top:t,right:t,bottom:t,left:t}}function Fe(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function Tr(t,e,n){let{reference:r,floating:s}=t;const i=Ct(e),o=cn(e),l=an(o),f=It(e),a=i==="y",h=r.x+r.width/2-s.width/2,c=r.y+r.height/2-s.height/2,d=r[l]/2-s[l]/2;let u;switch(f){case"top":u={x:h,y:r.y-s.height};break;case"bottom":u={x:h,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:c};break;case"left":u={x:r.x-s.width,y:c};break;default:u={x:r.x,y:r.y}}switch(pe(e)){case"start":u[o]-=d*(n&&a?-1:1);break;case"end":u[o]+=d*(n&&a?-1:1);break}return u}const gs=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),f=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:c}=Tr(a,r,f),d=r,u={},v=0;for(let p=0;p<l.length;p++){const{name:g,fn:m}=l[p],{x:y,y:$,data:k,reset:S}=await m({x:h,y:c,initialPlacement:r,placement:d,strategy:s,middlewareData:u,rects:a,platform:o,elements:{reference:t,floating:e}});h=y??h,c=$??c,u={...u,[g]:{...u[g],...k}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(a=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:h,y:c}=Tr(a,d,f)),p=-1)}return{x:h,y:c,placement:d,strategy:s,middlewareData:u}};async function Or(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:d=!1,padding:u=0}=ve(e,t),v=Sr(u),g=l[d?c==="floating"?"reference":"floating":c],m=Fe(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:h,strategy:f})),y=c==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},S=Fe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:$,strategy:f}):y);return{top:(m.top-S.top+v.top)/k.y,bottom:(S.bottom-m.bottom+v.bottom)/k.y,left:(m.left-S.left+v.left)/k.x,right:(S.right-m.right+v.right)/k.x}}const ms=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:f}=e,{element:a,padding:h=0}=ve(t,e)||{};if(a==null)return{};const c=Sr(h),d={x:n,y:r},u=cn(s),v=an(u),p=await o.getDimensions(a),g=u==="y",m=g?"top":"left",y=g?"bottom":"right",$=g?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[u]-d[u]-i.floating[v],S=d[u]-i.reference[u],nt=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let _=nt?nt[$]:0;(!_||!await(o.isElement==null?void 0:o.isElement(nt)))&&(_=l.floating[$]||i.floating[v]);const O=k/2-S/2,W=_/2-p[v]/2-1,M=Qt(c[m],W),rt=Qt(c[y],W),Y=M,C=_-p[v]-rt,A=_/2-p[v]/2+O,it=fn(Y,A,C),Rt=!f.arrow&&pe(s)!=null&&A!==it&&i.reference[v]/2-(A<Y?M:rt)-p[v]/2<0,st=Rt?A<Y?A-Y:A-C:0;return{[u]:d[u]+st,data:{[u]:it,centerOffset:A-it-st,...Rt&&{alignmentOffset:st}},reset:Rt}}}),ws=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:f,elements:a}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...g}=ve(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=It(s),y=Ct(l),$=It(l)===l,k=await(f.isRTL==null?void 0:f.isRTL(a.floating)),S=d||($||!p?[Ne(l)]:us(l)),nt=v!=="none";!d&&nt&&S.push(...ps(l,p,v,k));const _=[l,...S],O=await Or(e,g),W=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(h&&W.push(O[m]),c){const A=cs(s,o,k);W.push(O[A[0]],O[A[1]])}if(M=[...M,{placement:s,overflows:W}],!W.every(A=>A<=0)){var rt,Y;const A=(((rt=i.flip)==null?void 0:rt.index)||0)+1,it=_[A];if(it&&(!(c==="alignment"?y!==Ct(it):!1)||M.every(ot=>Ct(ot.placement)===y?ot.overflows[0]>0:!0)))return{data:{index:A,overflows:M},reset:{placement:it}};let Rt=(Y=M.filter(st=>st.overflows[0]<=0).sort((st,ot)=>st.overflows[1]-ot.overflows[1])[0])==null?void 0:Y.placement;if(!Rt)switch(u){case"bestFit":{var C;const st=(C=M.filter(ot=>{if(nt){const Lt=Ct(ot.placement);return Lt===y||Lt==="y"}return!0}).map(ot=>[ot.placement,ot.overflows.filter(Lt=>Lt>0).reduce((Lt,io)=>Lt+io,0)]).sort((ot,Lt)=>ot[1]-Lt[1])[0])==null?void 0:C[0];st&&(Rt=st);break}case"initialPlacement":Rt=l;break}if(s!==Rt)return{reset:{placement:Rt}}}return{}}}},ys=new Set(["left","top"]);async function bs(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=It(n),l=pe(n),f=Ct(n)==="y",a=ys.has(o)?-1:1,h=i&&f?-1:1,c=ve(e,t);let{mainAxis:d,crossAxis:u,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof v=="number"&&(u=l==="end"?v*-1:v),f?{x:u*h,y:d*a}:{x:d*a,y:u*h}}const xs=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=e,f=await bs(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+f.x,y:i+f.y,data:{...f,placement:o}}}}},$s=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:g=>{let{x:m,y}=g;return{x:m,y}}},...f}=ve(t,e),a={x:n,y:r},h=await Or(e,f),c=Ct(It(s)),d=Er(c);let u=a[d],v=a[c];if(i){const g=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=u+h[g],$=u-h[m];u=fn(y,u,$)}if(o){const g=c==="y"?"top":"left",m=c==="y"?"bottom":"right",y=v+h[g],$=v-h[m];v=fn(y,v,$)}const p=l.fn({...e,[d]:u,[c]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[d]:i,[c]:o}}}}}};function Me(){return typeof window<"u"}function te(t){return Cr(t)?(t.nodeName||"").toLowerCase():"#document"}function z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _t(t){var e;return(e=(Cr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cr(t){return Me()?t instanceof Node||t instanceof z(t).Node:!1}function tt(t){return Me()?t instanceof Element||t instanceof z(t).Element:!1}function gt(t){return Me()?t instanceof HTMLElement||t instanceof z(t).HTMLElement:!1}function kr(t){return!Me()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof z(t).ShadowRoot}const Es=new Set(["inline","contents"]);function _e(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=et(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Es.has(s)}const Rs=new Set(["table","td","th"]);function As(t){return Rs.has(te(t))}const Ss=[":popover-open",":modal"];function je(t){return Ss.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ts=["transform","translate","scale","rotate","perspective"],Os=["transform","translate","scale","rotate","perspective","filter"],Cs=["paint","layout","strict","content"];function hn(t){const e=dn(),n=tt(t)?et(t):t;return Ts.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Os.some(r=>(n.willChange||"").includes(r))||Cs.some(r=>(n.contain||"").includes(r))}function ks(t){let e=kt(t);for(;gt(e)&&!ee(e);){if(hn(e))return e;if(je(e))return null;e=kt(e)}return null}function dn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ls=new Set(["html","body","#document"]);function ee(t){return Ls.has(te(t))}function et(t){return z(t).getComputedStyle(t)}function Be(t){return tt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function kt(t){if(te(t)==="html")return t;const e=t.assignedSlot||t.parentNode||kr(t)&&t.host||_t(t);return kr(e)?e.host:e}function Lr(t){const e=kt(t);return ee(e)?t.ownerDocument?t.ownerDocument.body:t.body:gt(e)&&_e(e)?e:Lr(e)}function ge(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Lr(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=z(s);if(i){const l=vn(o);return e.concat(o,o.visualViewport||[],_e(s)?s:[],l&&n?ge(l):[])}return e.concat(s,ge(s,[],n))}function vn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Pr(t){const e=et(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=gt(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,l=Pe(n)!==i||Pe(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function pn(t){return tt(t)?t:t.contextElement}function ne(t){const e=pn(t);if(!gt(e))return pt(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Pr(e);let o=(i?Pe(n.width):n.width)/r,l=(i?Pe(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ps=pt(0);function Dr(t){const e=z(t);return!dn()||!e.visualViewport?Ps:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ds(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==z(t)?!1:e}function Wt(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=pn(t);let o=pt(1);e&&(r?tt(r)&&(o=ne(r)):o=ne(t));const l=Ds(i,n,r)?Dr(i):pt(0);let f=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,h=s.width/o.x,c=s.height/o.y;if(i){const d=z(i),u=r&&tt(r)?z(r):r;let v=d,p=vn(v);for(;p&&r&&u!==v;){const g=ne(p),m=p.getBoundingClientRect(),y=et(p),$=m.left+(p.clientLeft+parseFloat(y.paddingLeft))*g.x,k=m.top+(p.clientTop+parseFloat(y.paddingTop))*g.y;f*=g.x,a*=g.y,h*=g.x,c*=g.y,f+=$,a+=k,v=z(p),p=vn(v)}}return Fe({width:h,height:c,x:f,y:a})}function Ve(t,e){const n=Be(t).scrollLeft;return e?e.left+n:Wt(_t(t)).left+n}function Nr(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Ve(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function Ns(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=_t(r),l=e?je(e.floating):!1;if(r===o||l&&i)return n;let f={scrollLeft:0,scrollTop:0},a=pt(1);const h=pt(0),c=gt(r);if((c||!c&&!i)&&((te(r)!=="body"||_e(o))&&(f=Be(r)),gt(r))){const u=Wt(r);a=ne(r),h.x=u.x+r.clientLeft,h.y=u.y+r.clientTop}const d=o&&!c&&!i?Nr(o,f):pt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+h.x+d.x,y:n.y*a.y-f.scrollTop*a.y+h.y+d.y}}function Fs(t){return Array.from(t.getClientRects())}function Ms(t){const e=_t(t),n=Be(t),r=t.ownerDocument.body,s=Vt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Vt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ve(t);const l=-n.scrollTop;return et(r).direction==="rtl"&&(o+=Vt(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}const Fr=25;function js(t,e){const n=z(t),r=_t(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,f=0;if(s){i=s.width,o=s.height;const h=dn();(!h||h&&e==="fixed")&&(l=s.offsetLeft,f=s.offsetTop)}const a=Ve(r);if(a<=0){const h=r.ownerDocument,c=h.body,d=getComputedStyle(c),u=h.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-u);v<=Fr&&(i-=v)}else a<=Fr&&(i+=a);return{width:i,height:o,x:l,y:f}}const Bs=new Set(["absolute","fixed"]);function Vs(t,e){const n=Wt(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=gt(t)?ne(t):pt(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,f=s*i.x,a=r*i.y;return{width:o,height:l,x:f,y:a}}function Mr(t,e,n){let r;if(e==="viewport")r=js(t,n);else if(e==="document")r=Ms(_t(t));else if(tt(e))r=Vs(e,n);else{const s=Dr(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Fe(r)}function jr(t,e){const n=kt(t);return n===e||!tt(n)||ee(n)?!1:et(n).position==="fixed"||jr(n,e)}function Is(t,e){const n=e.get(t);if(n)return n;let r=ge(t,[],!1).filter(l=>tt(l)&&te(l)!=="body"),s=null;const i=et(t).position==="fixed";let o=i?kt(t):t;for(;tt(o)&&!ee(o);){const l=et(o),f=hn(o);!f&&l.position==="fixed"&&(s=null),(i?!f&&!s:!f&&l.position==="static"&&!!s&&Bs.has(s.position)||_e(o)&&!f&&jr(t,o))?r=r.filter(h=>h!==o):s=l,o=kt(o)}return e.set(t,r),r}function Ws(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?je(e)?[]:Is(e,this._c):[].concat(n),r],l=o[0],f=o.reduce((a,h)=>{const c=Mr(e,h,s);return a.top=Vt(c.top,a.top),a.right=Qt(c.right,a.right),a.bottom=Qt(c.bottom,a.bottom),a.left=Vt(c.left,a.left),a},Mr(e,l,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Hs(t){const{width:e,height:n}=Pr(t);return{width:e,height:n}}function qs(t,e,n){const r=gt(e),s=_t(e),i=n==="fixed",o=Wt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const f=pt(0);function a(){f.x=Ve(s)}if(r||!r&&!i)if((te(e)!=="body"||_e(s))&&(l=Be(e)),r){const u=Wt(e,!0,i,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else s&&a();i&&!r&&s&&a();const h=s&&!r&&!i?Nr(s,l):pt(0),c=o.left+l.scrollLeft-f.x-h.x,d=o.top+l.scrollTop-f.y-h.y;return{x:c,y:d,width:o.width,height:o.height}}function _n(t){return et(t).position==="static"}function Br(t,e){if(!gt(t)||et(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return _t(t)===n&&(n=n.ownerDocument.body),n}function Vr(t,e){const n=z(t);if(je(t))return n;if(!gt(t)){let s=kt(t);for(;s&&!ee(s);){if(tt(s)&&!_n(s))return s;s=kt(s)}return n}let r=Br(t,e);for(;r&&As(r)&&_n(r);)r=Br(r,e);return r&&ee(r)&&_n(r)&&!hn(r)?n:r||ks(t)||n}const zs=async function(t){const e=this.getOffsetParent||Vr,n=this.getDimensions,r=await n(t.floating);return{reference:qs(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ys(t){return et(t).direction==="rtl"}const Us={convertOffsetParentRelativeRectToViewportRelativeRect:Ns,getDocumentElement:_t,getClippingRect:Ws,getOffsetParent:Vr,getElementRects:zs,getClientRects:Fs,getDimensions:Hs,getScale:ne,isElement:tt,isRTL:Ys};function Ir(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Xs(t,e){let n=null,r;const s=_t(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const a=t.getBoundingClientRect(),{left:h,top:c,width:d,height:u}=a;if(l||e(),!d||!u)return;const v=De(c),p=De(s.clientWidth-(h+d)),g=De(s.clientHeight-(c+u)),m=De(h),$={rootMargin:-v+"px "+-p+"px "+-g+"px "+-m+"px",threshold:Vt(0,Qt(1,f))||1};let k=!0;function S(nt){const _=nt[0].intersectionRatio;if(_!==f){if(!k)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!Ir(a,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...$,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,$)}n.observe(t)}return o(!0),i}function Ks(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,a=pn(t),h=s||i?[...a?ge(a):[],...ge(e)]:[];h.forEach(m=>{s&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const c=a&&l?Xs(a,n):null;let d=-1,u=null;o&&(u=new ResizeObserver(m=>{let[y]=m;y&&y.target===a&&u&&(u.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var $;($=u)==null||$.observe(e)})),n()}),a&&!f&&u.observe(a),u.observe(e));let v,p=f?Wt(t):null;f&&g();function g(){const m=Wt(t);p&&!Ir(p,m)&&n(),p=m,v=requestAnimationFrame(g)}return n(),()=>{var m;h.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),c?.(),(m=u)==null||m.disconnect(),u=null,f&&cancelAnimationFrame(v)}}const Gs=xs,Js=$s,Zs=ws,Qs=ms,to=(t,e,n)=>{const r=new Map,s={platform:Us,...n},i={...s.platform,_c:r};return gs(t,e,{...s,platform:i})};var eo=_r('<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>'),no=_r('<span id="tooltip-trigger" role="tooltip"><!></span> <!>',1);const ro={hash:"svelte-5j6wnh",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}'};function Wr(t,e){Sn(e,!0),ts(t,ro);let n=ln(e,"id",7,""),r=ln(e,"tooltip"),s=ln(e,"show"),i,o=Q(void 0),l=Q(void 0),f,a=Q(!1);function h(_,O){e.$$host.dispatchEvent(new CustomEvent(_,{detail:O}))}Ji(()=>{i=e.$$host?.shadowRoot?.querySelector("#tooltip-trigger")});let c=Ge(()=>{if(!r())return null;if(typeof r()=="string")try{return JSON.parse(r())}catch(_){return console.warn("Invalid tooltip JSON",_),null}return r()}),d=Ge(()=>{if(s()!==void 0){if(s()===!0||s()===!1)return s();if(typeof s()=="string"){if(["true","1","on","yes"].includes(s()))return!0;if(["false","0","off","no"].includes(s()))return!1}}});function u(){w(d)!==void 0&&B(a,w(d),!0)}en(()=>{u()});function v(){w(d)===void 0&&B(a,!0)}function p(){w(d)===void 0&&B(a,!1)}en(()=>{if(w(a)){if(h("visualizationChange",{id:n(),show:!0}),i&&w(o)){let _=w(c)?.placement||"top";_==="auto"&&(_="top");const O=[Gs(6),Zs(),Js({padding:5})];w(l)&&O.push(Qs({element:w(l)})),f=Ks(i,w(o),()=>{!i||!w(o)||to(i,w(o),{placement:_,middleware:O}).then(({x:W,y:M,placement:rt,middlewareData:Y})=>{Object.assign(w(o).style,{left:`${W}px`,top:`${M}px`});const{x:C,y:A}=Y.arrow||{},it={top:"bottom",right:"left",bottom:"top",left:"right"}[rt.split("-")[0]];w(l)&&Object.assign(w(l).style,{left:C!=null?`${C}px`:"",top:A!=null?`${A}px`:"",right:"",bottom:"",[it]:"-4px"})})})}}else h("visualizationChange",{id:n(),show:!1}),f&&f();return()=>{f&&f()}});let g=Ge(()=>{const _=w(c)?.style||{};if(_.disableDefaultStyle)return"";const O=_.backgroundColor||"black",W=_.color||"white",M=_.padding||"0.5rem 1rem",rt=_.borderRadius||"0.25rem",Y=_.opacity!==void 0?_.opacity:.9,C=_.fontSize||"0.875rem";return`
|
|
1
|
+
(function(Rn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,Xr=2,An="[",Ue="[!",Sn="]",Dt={},D=Symbol(),Xe=!1;var Kr=Array.isArray,Gr=Array.prototype.indexOf,Jr=Array.from,we=Object.keys,ye=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Zr=Object.prototype,Qr=Array.prototype,ti=Object.getPrototypeOf,Tn=Object.isExtensible;function ei(t){for(var e=0;e<t.length;e++)t[e]()}function On(){var t,e,n=new Promise((r,s)=>{t=r,e=s});return{promise:n,resolve:t,reject:e}}const P=2,Ke=4,Ge=8,yt=16,bt=32,St=64,be=128,et=512,N=1024,B=2048,xt=4096,ct=8192,$t=16384,xe=32768,zt=65536,Cn=1<<17,kn=1<<18,Nt=1<<19,ni=1<<20,Ft=32768,Je=1<<21,Ze=1<<22,Tt=1<<23,$e=Symbol("$state"),ri=Symbol("legacy props"),Yt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=3,Ut=8;function ii(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function si(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function oi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function li(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fi(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ai(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ci(){throw new Error("https://svelte.dev/e/hydration_failed")}function ui(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function di(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function hi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function vi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function re(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function pi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function Xt(t){R=t}let E;function z(t){if(t===null)throw re(),Dt;return E=t}function Kt(){return z(dt(E))}function Re(t){if(R){if(dt(E)!==null)throw re(),Dt;E=t}}function _i(t=1){if(R){for(var e=t,n=E;e--;)n=dt(n);E=n}}function Ln(t=!0){for(var e=0,n=E;;){if(n.nodeType===Ut){var r=n.data;if(r===Sn){if(e===0)return n;e-=1}else(r===An||r===Ue)&&(e+=1)}var s=dt(n);t&&n.remove(),n=s}}function gi(t){if(!t||t.nodeType!==Ut)throw re(),Dt;return t.data}function Pn(t){return t===this.v}function mi(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function wi(t){return!mi(t,this.v)}let yi=!1,Y=null;function Gt(t){Y=t}function Dn(t,e=!1,n){Y={p:Y,i:!1,c:null,e:null,s:t,x:null,l:null}}function Nn(t){var e=Y,n=e.e;if(n!==null){e.e=null;for(var r of n)Zn(r)}return t!==void 0&&(e.x=t),e.i=!0,Y=e.p,t??{}}function Fn(){return!0}let Mt=[];function Mn(){var t=Mt;Mt=[],ei(t)}function ie(t){if(Mt.length===0&&!se){var e=Mt;queueMicrotask(()=>{e===Mt&&Mn()})}Mt.push(t)}function bi(){for(;Mt.length>0;)Mn()}function jn(t){var e=x;if(e===null)return b.f|=Tt,t;if((e.f&xe)===0){if((e.f&be)===0)throw t;e.b.error(t)}else Jt(t,e)}function Jt(t,e){for(;e!==null;){if((e.f&be)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const Ae=new Set;let T=null,Z=null,Q=[],Se=null,Qe=!1,se=!1;class nt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){Q=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#o(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(T=null,Vn(n.render_effects),Vn(n.effects),this.#f?.resolve()),Z=null}#o(e,n){e.f^=N;for(var r=e.first;r!==null;){var s=r.f,i=(s&(bt|St))!==0,o=i&&(s&N)!==0,l=o||(s&ct)!==0||this.skipped_effects.has(r);if((r.f&be)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=N:(s&Ke)!==0?n.effects.push(r):ue(r)&&((r.f&yt)!==0&&n.block_effects.push(r),de(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(e){for(const n of e)((n.f&B)!==0?this.#s:this.#i).push(n),this.#a(n.deps),F(n,N)}#a(e){if(e!==null)for(const n of e)(n.f&P)===0||(n.f&Ft)===0||(n.f^=Ft,this.#a(n.deps))}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&Tt)===0&&(this.current.set(e,e.v),Z?.set(e,e.v))}activate(){T=this,this.apply()}deactivate(){T===this&&(T=null,Z=null)}flush(){if(this.activate(),Q.length>0){if(Bn(),T!==null&&T!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#c(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#n===0&&this.#u()}#u(){if(Ae.size>1){this.previous.clear();var e=Z,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ae){if(i===this){n=!1;continue}const o=[];for(const[f,a]of this.current){if(i.current.has(f))if(n&&a!==i.current.get(f))i.current.set(f,a);else continue;o.push(f)}if(o.length===0)continue;const l=[...i.current.keys()].filter(f=>!this.current.has(f));if(l.length>0){var s=Q;Q=[];const f=new Set,a=new Map;for(const d of o)In(d,l,f,a);if(Q.length>0){T=i,i.apply();for(const d of Q)i.#o(d,r);i.deactivate()}Q=s}}T=null,Z=e}this.committed=!0,Ae.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#s)F(e,B),jt(e);for(const e of this.#i)F(e,xt),jt(e);this.#s=[],this.#i=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#f??=On()).promise}static ensure(){if(T===null){const e=T=new nt;Ae.add(T),se||nt.enqueue(()=>{T===e&&e.flush()})}return T}static enqueue(e){ie(e)}apply(){}}function Te(t){var e=se;se=!0;try{for(var n;;){if(bi(),Q.length===0&&(T?.flush(),Q.length===0))return Se=null,n;Bn()}}finally{se=e}}function Bn(){var t=Ct;Qe=!0;var e=null;try{var n=0;for(Ne(!0);Q.length>0;){var r=nt.ensure();if(n++>1e3){var s,i;xi()}r.process(Q),Ot.clear()}}finally{Qe=!1,Ne(t),Se=null}}function xi(){try{ai()}catch(t){Jt(t,Se)}}let Et=null;function Vn(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&($t|ct))===0&&ue(r)&&(Et=new Set,de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?ir(r):r.fn=null),Et?.size>0)){Ot.clear();for(const s of Et){if((s.f&($t|ct))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)Et.has(o)&&(Et.delete(o),i.push(o)),o=o.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&($t|ct))===0&&de(f)}}Et.clear()}}Et=null}}function In(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const s of t.reactions){const i=s.f;(i&P)!==0?In(s,e,n,r):(i&(Ze|yt))!==0&&(i&B)===0&&Wn(s,e,r)&&(F(s,B),jt(s))}}function Wn(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const s of t.deps){if(e.includes(s))return!0;if((s.f&P)!==0&&Wn(s,e,n))return n.set(s,!0),!0}return n.set(t,!1),!1}function jt(t){for(var e=Se=t;e.parent!==null;){e=e.parent;var n=e.f;if(Qe&&e===x&&(n&yt)!==0&&(n&kn)===0)return;if((n&(St|bt))!==0){if((n&N)===0)return;e.f^=N}}Q.push(e)}function $i(t){let e=0,n=oe(0),r;return()=>{Pe()&&(g(n),an(()=>(e===0&&(r=cn(()=>t(()=>le(n)))),e+=1,()=>{ie(()=>{e-=1,e===0&&(r?.(),r=void 0,le(n))})})))}}var Ei=zt|Nt|be;function Ri(t,e,n){new Ai(t,e,n)}class Ai{parent;#e=!1;#t;#n=R?E:null;#r;#f;#s;#i=null;#o=null;#l=null;#a=null;#c=null;#u=0;#d=0;#v=!1;#h=null;#w=$i(()=>(this.#h=oe(this.#u),()=>{this.#h=null}));constructor(e,n,r){this.#t=e,this.#r=n,this.#f=r,this.parent=x.b,this.#e=!!this.#r.pending,this.#s=tr(()=>{if(x.b=this,R){const i=this.#n;Kt(),i.nodeType===Ut&&i.data===Ue?this.#b():this.#y()}else{var s=this.#g();try{this.#i=Rt(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#_():this.#e=!1}return()=>{this.#c?.remove()}},Ei),R&&(this.#t=E)}#y(){try{this.#i=Rt(()=>this.#f(this.#t))}catch(e){this.error(e)}this.#e=!1}#b(){const e=this.#r.pending;e&&(this.#o=Rt(()=>e(this.#t)),nt.enqueue(()=>{var n=this.#g();this.#i=this.#p(()=>(nt.ensure(),Rt(()=>this.#f(n)))),this.#d>0?this.#_():(ae(this.#o,()=>{this.#o=null}),this.#e=!1)}))}#g(){var e=this.#t;return this.#e&&(this.#c=it(),this.#t.before(this.#c),e=this.#c),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#p(e){var n=x,r=b,s=Y;pt(this.#s),W(this.#s),Gt(this.#s.ctx);try{return e()}catch(i){return jn(i),null}finally{pt(n),W(r),Gt(s)}}#_(){const e=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#c),lr(this.#i,this.#a)),this.#o===null&&(this.#o=Rt(()=>e(this.#t)))}#m(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e);return}this.#d+=e,this.#d===0&&(this.#e=!1,this.#o&&ae(this.#o,()=>{this.#o=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e){this.#m(e),this.#u+=e,this.#h&&Ce(this.#h,this.#u)}get_effect_pending(){return this.#w(),g(this.#h)}error(e){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw e;this.#i&&(I(this.#i),this.#i=null),this.#o&&(I(this.#o),this.#o=null),this.#l&&(I(this.#l),this.#l=null),R&&(z(this.#n),_i(),z(Ln()));var s=!1,i=!1;const o=()=>{if(s){pi();return}s=!0,i&&vi(),nt.ensure(),this.#u=0,this.#l!==null&&ae(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#i=this.#p(()=>(this.#v=!1,Rt(()=>this.#f(this.#t)))),this.#d>0?this.#_():this.#e=!1};var l=b;try{W(null),i=!0,n?.(e,o),i=!1}catch(f){Jt(f,this.#s&&this.#s.parent)}finally{W(l)}r&&ie(()=>{this.#l=this.#p(()=>{nt.ensure(),this.#v=!0;try{return Rt(()=>{r(this.#t,()=>e,()=>o)})}catch(f){return Jt(f,this.#s.parent),null}finally{this.#v=!1}})})}}function Si(t,e,n,r){const s=tn;if(n.length===0&&t.length===0){r(e.map(s));return}var i=T,o=x,l=Ti();function f(){Promise.all(n.map(a=>Oi(a))).then(a=>{l();try{r([...e.map(s),...a])}catch(d){(o.f&$t)===0&&Jt(d,o)}i?.deactivate(),Oe()}).catch(a=>{Jt(a,o)})}t.length>0?Promise.all(t).then(()=>{l();try{return f()}finally{i?.deactivate(),Oe()}}):f()}function Ti(){var t=x,e=b,n=Y,r=T;return function(i=!0){pt(t),W(e),Gt(n),i&&r?.activate()}}function Oe(){pt(null),W(null),Gt(null)}function tn(t){var e=P|B,n=b!==null&&(b.f&P)!==0?b:null;return x!==null&&(x.f|=Nt),{ctx:Y,deps:null,effects:null,equals:Pn,f:e,fn:t,reactions:null,rv:0,v:D,wv:0,parent:n??x,ac:null}}function Oi(t,e){let n=x;n===null&&si();var r=n.b,s=void 0,i=oe(D),o=!b,l=new Map;return Bi(()=>{var f=On();s=f.promise;try{Promise.resolve(t()).then(f.resolve,f.reject).then(()=>{a===T&&a.committed&&a.deactivate(),Oe()})}catch(h){f.reject(h),Oe()}var a=T;if(o){var d=!r.is_pending();r.update_pending_count(1),a.increment(d),l.get(a)?.reject(Yt),l.delete(a),l.set(a,f)}const c=(h,u=void 0)=>{if(a.activate(),u)u!==Yt&&(i.f|=Tt,Ce(i,u));else{(i.f&Tt)!==0&&(i.f^=Tt),Ce(i,h);for(const[v,p]of l){if(l.delete(v),v===a)break;p.reject(Yt)}}o&&(r.update_pending_count(-1),a.decrement(d))};f.promise.then(c,h=>c(null,h||"unknown"))}),Jn(()=>{for(const f of l.values())f.reject(Yt)}),new Promise(f=>{function a(d){function c(){d===s?f(i):a(s)}d.then(c,c)}a(s)})}function en(t){const e=tn(t);return ar(e),e}function Hn(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)I(e[n])}}function Ci(t){for(var e=t.parent;e!==null;){if((e.f&P)===0)return(e.f&$t)===0?e:null;e=e.parent}return null}function nn(t){var e,n=x;pt(Ci(t));try{t.f&=~Ft,Hn(t),e=vr(t)}finally{pt(n)}return e}function qn(t){var e=nn(t);if(t.equals(e)||(T?.is_fork||(t.v=e),t.wv=dr()),!Bt)if(Z!==null)Pe()&&Z.set(t,e);else{var n=(t.f&et)===0?xt:N;F(t,n)}}let rn=new Set;const Ot=new Map;let zn=!1;function oe(t,e){var n={f:0,v:t,reactions:null,equals:Pn,rv:0,wv:0};return n}function rt(t,e){const n=oe(t);return ar(n),n}function ki(t,e=!1,n=!0){const r=oe(t);return e||(r.equals=wi),r}function V(t,e,n=!1){b!==null&&(!vt||(b.f&Cn)!==0)&&Fn()&&(b.f&(P|yt|Ze|Cn))!==0&&!At?.includes(t)&&hi();let r=n?fe(e):e;return Ce(t,r)}function Ce(t,e){if(!t.equals(e)){var n=t.v;Bt?Ot.set(t,e):Ot.set(t,n),t.v=e;var r=nt.ensure();r.capture(t,n),(t.f&P)!==0&&((t.f&B)!==0&&nn(t),F(t,(t.f&et)!==0?N:xt)),t.wv=dr(),Yn(t,B),x!==null&&(x.f&N)!==0&&(x.f&(bt|St))===0&&(tt===null?Hi([t]):tt.push(t)),!r.is_fork&&rn.size>0&&!zn&&Li()}return e}function Li(){zn=!1;var t=Ct;Ne(!0);const e=Array.from(rn);try{for(const n of e)(n.f&N)!==0&&F(n,xt),ue(n)&&de(n)}finally{Ne(t)}rn.clear()}function le(t){V(t,t.v+1)}function Yn(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],o=i.f,l=(o&B)===0;if(l&&F(i,e),(o&P)!==0){var f=i;Z?.delete(f),(o&Ft)===0&&(o&et&&(i.f|=Ft),Yn(f,xt))}else l&&((o&yt)!==0&&Et!==null&&Et.add(i),jt(i))}}function fe(t){if(typeof t!="object"||t===null||$e in t)return t;const e=ti(t);if(e!==Zr&&e!==Qr)return t;var n=new Map,r=Kr(t),s=rt(0),i=Vt,o=l=>{if(Vt===i)return l();var f=b,a=Vt;W(null),ur(i);var d=l();return W(f),ur(a),d};return r&&n.set("length",rt(t.length)),new Proxy(t,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ui();var d=n.get(f);return d===void 0?d=o(()=>{var c=rt(a.value);return n.set(f,c),c}):V(d,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const d=o(()=>rt(D));n.set(f,d),le(s)}}else V(a,D),le(s);return!0},get(l,f,a){if(f===$e)return t;var d=n.get(f),c=f in l;if(d===void 0&&(!c||qt(l,f)?.writable)&&(d=o(()=>{var u=fe(c?l[f]:D),v=rt(u);return v}),n.set(f,d)),d!==void 0){var h=g(d);return h===D?void 0:h}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var d=n.get(f);d&&(a.value=g(d))}else if(a===void 0){var c=n.get(f),h=c?.v;if(c!==void 0&&h!==D)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return a},has(l,f){if(f===$e)return!0;var a=n.get(f),d=a!==void 0&&a.v!==D||Reflect.has(l,f);if(a!==void 0||x!==null&&(!d||qt(l,f)?.writable)){a===void 0&&(a=o(()=>{var h=d?fe(l[f]):D,u=rt(h);return u}),n.set(f,a));var c=g(a);if(c===D)return!1}return d},set(l,f,a,d){var c=n.get(f),h=f in l;if(r&&f==="length")for(var u=a;u<c.v;u+=1){var v=n.get(u+"");v!==void 0?V(v,D):u in l&&(v=o(()=>rt(D)),n.set(u+"",v))}if(c===void 0)(!h||qt(l,f)?.writable)&&(c=o(()=>rt(void 0)),V(c,fe(a)),n.set(f,c));else{h=c.v!==D;var p=o(()=>fe(a));V(c,p)}var m=Reflect.getOwnPropertyDescriptor(l,f);if(m?.set&&m.set.call(d,a),!h){if(r&&typeof f=="string"){var w=n.get("length"),y=Number(f);Number.isInteger(y)&&y>=w.v&&V(w,y+1)}le(s)}return!0},ownKeys(l){g(s);var f=Reflect.ownKeys(l).filter(c=>{var h=n.get(c);return h===void 0||h.v!==D});for(var[a,d]of n)d.v!==D&&!(a in l)&&f.push(a);return f},setPrototypeOf(){di()}})}var Un,Xn,Kn,Gn;function sn(){if(Un===void 0){Un=window,Xn=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Kn=qt(e,"firstChild").get,Gn=qt(e,"nextSibling").get,Tn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Tn(n)&&(n.__t=void 0)}}function it(t=""){return document.createTextNode(t)}function ut(t){return Kn.call(t)}function dt(t){return Gn.call(t)}function ke(t,e){if(!R)return ut(t);var n=ut(E);if(n===null)n=E.appendChild(it());else if(e&&n.nodeType!==Ee){var r=it();return n?.before(r),z(r),r}return z(n),n}function Le(t,e=!1){if(!R){var n=ut(t);return n instanceof Comment&&n.data===""?dt(n):n}if(e&&E?.nodeType!==Ee){var r=it();return E?.before(r),z(r),r}return E}function on(t,e=1,n=!1){let r=R?E:t;for(var s;e--;)s=r,r=dt(r);if(!R)return r;if(n&&r?.nodeType!==Ee){var i=it();return r===null?s?.after(i):r.before(i),z(i),i}return z(r),r}function Pi(t){t.textContent=""}function Di(){return!1}function ln(t){var e=b,n=x;W(null),pt(null);try{return t()}finally{W(e),pt(n)}}function Ni(t){x===null&&(b===null&&fi(),li()),Bt&&oi()}function Fi(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function ht(t,e,n){var r=x;r!==null&&(r.f&ct)!==0&&(t|=ct);var s={ctx:Y,deps:null,nodes_start:null,nodes_end:null,f:t|B|et,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(s),s.f|=xe}catch(l){throw I(s),l}else e!==null&&jt(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Nt)===0&&(i=i.first,(t&yt)!==0&&(t&zt)!==0&&i!==null&&(i.f|=zt)),i!==null&&(i.parent=r,r!==null&&Fi(i,r),b!==null&&(b.f&P)!==0&&(t&St)===0)){var o=b;(o.effects??=[]).push(i)}return s}function Pe(){return b!==null&&!vt}function Jn(t){const e=ht(Ge,null,!1);return F(e,N),e.teardown=t,e}function fn(t){Ni();var e=x.f,n=!b&&(e&bt)!==0&&(e&xe)===0;if(n){var r=Y;(r.e??=[]).push(t)}else return Zn(t)}function Zn(t){return ht(Ke|ni,t,!1)}function Mi(t){nt.ensure();const e=ht(St|Nt,t,!0);return()=>{I(e)}}function ji(t){nt.ensure();const e=ht(St|Nt,t,!0);return(n={})=>new Promise(r=>{n.outro?ae(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function Qn(t){return ht(Ke,t,!1)}function Bi(t){return ht(Ze|Nt,t,!0)}function an(t,e=0){return ht(Ge|e,t,!0)}function De(t,e=[],n=[],r=[]){Si(r,e,n,s=>{ht(Ge,()=>t(...s.map(g)),!0)})}function tr(t,e=0){var n=ht(yt|e,t,!0);return n}function Rt(t){return ht(bt|Nt,t,!0)}function er(t){var e=t.teardown;if(e!==null){const n=Bt,r=b;fr(!0),W(null);try{e.call(null)}finally{fr(n),W(r)}}}function nr(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const s=n.ac;s!==null&&ln(()=>{s.abort(Yt)});var r=n.next;(n.f&St)!==0?n.parent=null:I(n,e),n=r}}function Vi(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&bt)===0&&I(e),e=n}}function I(t,e=!0){var n=!1;(e||(t.f&kn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(rr(t.nodes_start,t.nodes_end),n=!0),nr(t,e&&!n),Fe(t,0),F(t,$t);var r=t.transitions;if(r!==null)for(const i of r)i.stop();er(t);var s=t.parent;s!==null&&s.first!==null&&ir(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function rr(t,e){for(;t!==null;){var n=t===e?null:dt(t);t.remove(),t=n}}function ir(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function ae(t,e,n=!0){var r=[];sr(t,r,!0),Ii(r,()=>{n&&I(t),e&&e()})}function Ii(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var s of t)s.out(r)}else e()}function sr(t,e,n){if((t.f&ct)===0){if(t.f^=ct,t.transitions!==null)for(const o of t.transitions)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var s=r.next,i=(r.f&zt)!==0||(r.f&bt)!==0&&(t.f&yt)!==0;sr(r,e,i?n:!1),r=s}}}function Wi(t){or(t,!0)}function or(t,e){if((t.f&ct)!==0){t.f^=ct,(t.f&N)===0&&(F(t,B),jt(t));for(var n=t.first;n!==null;){var r=n.next,s=(n.f&zt)!==0||(n.f&bt)!==0;or(n,s?e:!1),n=r}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}function lr(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var s=n===r?null:dt(n);e.append(n),n=s}}let Ct=!1;function Ne(t){Ct=t}let Bt=!1;function fr(t){Bt=t}let b=null,vt=!1;function W(t){b=t}let x=null;function pt(t){x=t}let At=null;function ar(t){b!==null&&(At===null?At=[t]:At.push(t))}let M=null,U=0,tt=null;function Hi(t){tt=t}let cr=1,ce=0,Vt=ce;function ur(t){Vt=t}function dr(){return++cr}function ue(t){var e=t.f;if((e&B)!==0)return!0;if(e&P&&(t.f&=~Ft),(e&xt)!==0){var n=t.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(ue(i)&&qn(i),i.wv>t.wv)return!0}(e&et)!==0&&Z===null&&F(t,N)}return!1}function hr(t,e,n=!0){var r=t.reactions;if(r!==null&&!At?.includes(t))for(var s=0;s<r.length;s++){var i=r[s];(i.f&P)!==0?hr(i,e,!1):e===i&&(n?F(i,B):(i.f&N)!==0&&F(i,xt),jt(i))}}function vr(t){var e=M,n=U,r=tt,s=b,i=At,o=Y,l=vt,f=Vt,a=t.f;M=null,U=0,tt=null,b=(a&(bt|St))===0?t:null,At=null,Gt(t.ctx),vt=!1,Vt=++ce,t.ac!==null&&(ln(()=>{t.ac.abort(Yt)}),t.ac=null);try{t.f|=Je;var d=t.fn,c=d(),h=t.deps;if(M!==null){var u;if(Fe(t,U),h!==null&&U>0)for(h.length=U+M.length,u=0;u<M.length;u++)h[U+u]=M[u];else t.deps=h=M;if(Ct&&Pe()&&(t.f&et)!==0)for(u=U;u<h.length;u++)(h[u].reactions??=[]).push(t)}else h!==null&&U<h.length&&(Fe(t,U),h.length=U);if(Fn()&&tt!==null&&!vt&&h!==null&&(t.f&(P|xt|B))===0)for(u=0;u<tt.length;u++)hr(tt[u],t);return s!==null&&s!==t&&(ce++,tt!==null&&(r===null?r=tt:r.push(...tt))),(t.f&Tt)!==0&&(t.f^=Tt),c}catch(v){return jn(v)}finally{t.f^=Je,M=e,U=n,tt=r,b=s,At=i,Gt(o),vt=l,Vt=f}}function qi(t,e){let n=e.reactions;if(n!==null){var r=Gr.call(n,t);if(r!==-1){var s=n.length-1;s===0?n=e.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(e.f&P)!==0&&(M===null||!M.includes(e))&&(F(e,xt),(e.f&et)!==0&&(e.f^=et,e.f&=~Ft),Hn(e),Fe(e,0))}function Fe(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)qi(t,n[r])}function de(t){var e=t.f;if((e&$t)===0){F(t,N);var n=x,r=Ct;x=t,Ct=!0;try{(e&yt)!==0?Vi(t):nr(t),er(t);var s=vr(t);t.teardown=typeof s=="function"?s:null,t.wv=cr;var i;Xe&&yi&&(t.f&B)!==0&&t.deps}finally{Ct=r,x=n}}}function g(t){var e=t.f,n=(e&P)!==0;if(b!==null&&!vt){var r=x!==null&&(x.f&$t)!==0;if(!r&&!At?.includes(t)){var s=b.deps;if((b.f&Je)!==0)t.rv<ce&&(t.rv=ce,M===null&&s!==null&&s[U]===t?U++:M===null?M=[t]:M.includes(t)||M.push(t));else{(b.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[b]:i.includes(b)||i.push(b)}}}if(Bt){if(Ot.has(t))return Ot.get(t);if(n){var o=t,l=o.v;return((o.f&N)===0&&o.reactions!==null||_r(o))&&(l=nn(o)),Ot.set(o,l),l}}else n&&!Z?.has(t)&&(o=t,ue(o)&&qn(o),Ct&&Pe()&&(o.f&et)===0&&pr(o));if(Z?.has(t))return Z.get(t);if((t.f&Tt)!==0)throw t.v;return t.v}function pr(t){if(t.deps!==null){t.f^=et;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&P)!==0&&(e.f&et)===0&&pr(e)}}function _r(t){if(t.v===D)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ot.has(e)||(e.f&P)!==0&&_r(e))return!0;return!1}function cn(t){var e=vt;try{return vt=!0,t()}finally{vt=e}}const zi=-7169;function F(t,e){t.f=t.f&zi|e}const Yi=new Set,gr=new Set;function Ui(t,e,n,r={}){function s(i){if(r.capture||he.call(e,i),!i.cancelBubble)return ln(()=>n?.call(this,i))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ie(()=>{e.addEventListener(t,s,r)}):e.addEventListener(t,s,r),s}function Me(t,e,n,r,s){var i={capture:r,passive:s},o=Ui(t,e,n,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Jn(()=>{e.removeEventListener(t,o,i)})}let mr=null;function he(t){var e=this,n=e.ownerDocument,r=t.type,s=t.composedPath?.()||[],i=s[0]||t.target;mr=t;var o=0,l=mr===t&&t.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(e===document||e===window)){t.__root=e;return}var a=s.indexOf(e);if(a===-1)return;f<=a&&(o=f)}if(i=s[o]||t.target,i!==e){ye(t,"currentTarget",{configurable:!0,get(){return i||n}});var d=b,c=x;W(null),pt(null);try{for(var h,u=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var p=i["__"+r];p!=null&&(!i.disabled||t.target===i)&&p.call(i,t)}catch(m){h?u.push(m):h=m}if(t.cancelBubble||v===e||v===null)break;i=v}if(h){for(let m of u)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,W(d),pt(c)}}}function wr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function _t(t,e){var n=x;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function un(t,e){var n=(e&Ur)!==0,r=(e&Xr)!==0,s,i=!t.startsWith("<!>");return()=>{if(R)return _t(E,null),E;s===void 0&&(s=wr(i?t:"<!>"+t),n||(s=ut(s)));var o=r||Xn?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=ut(o),f=o.lastChild;_t(l,f)}else _t(o,o);return o}}function yr(t=""){if(!R){var e=it(t+"");return _t(e,e),e}var n=E;return n.nodeType!==Ee&&(n.before(n=it()),z(n)),_t(n,n),n}function br(){if(R)return _t(E,null),E;var t=document.createDocumentFragment(),e=document.createComment(""),n=it();return t.append(e,n),_t(e,n),t}function kt(t,e){if(R){var n=x;((n.f&xe)===0||n.nodes_end===null)&&(n.nodes_end=E),Kt();return}t!==null&&t.before(e)}const Xi=["touchstart","touchmove"];function Ki(t){return Xi.includes(t)}function dn(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function xr(t,e){return $r(t,e)}function Gi(t,e){sn(),e.intro=e.intro??!1;const n=e.target,r=R,s=E;try{for(var i=ut(n);i&&(i.nodeType!==Ut||i.data!==An);)i=dt(i);if(!i)throw Dt;Xt(!0),z(i);const o=$r(t,{...e,anchor:i});return Xt(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Dt&&console.warn("Failed to hydrate: ",o),e.recover===!1&&ci(),sn(),Pi(n),Xt(!1),xr(t,e)}finally{Xt(r),z(s)}}const Zt=new Map;function $r(t,{target:e,anchor:n,props:r={},events:s,context:i,intro:o=!0}){sn();var l=new Set,f=c=>{for(var h=0;h<c.length;h++){var u=c[h];if(!l.has(u)){l.add(u);var v=Ki(u);e.addEventListener(u,he,{passive:v});var p=Zt.get(u);p===void 0?(document.addEventListener(u,he,{passive:v}),Zt.set(u,1)):Zt.set(u,p+1)}}};f(Jr(Yi)),gr.add(f);var a=void 0,d=ji(()=>{var c=n??e.appendChild(it());return Ri(c,{pending:()=>{}},h=>{if(i){Dn({});var u=Y;u.c=i}if(s&&(r.$$events=s),R&&_t(h,null),a=t(h,r)||{},R&&(x.nodes_end=E,E===null||E.nodeType!==Ut||E.data!==Sn))throw re(),Dt;i&&Nn()}),()=>{for(var h of l){e.removeEventListener(h,he);var u=Zt.get(h);--u===0?(document.removeEventListener(h,he),Zt.delete(h)):Zt.set(h,u)}gr.delete(f),c!==n&&c.parentNode?.removeChild(c)}});return hn.set(a,d),a}let hn=new WeakMap;function Ji(t,e){const n=hn.get(t);return n?(hn.delete(t),n(e)):Promise.resolve()}class Zi{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#f=!0;constructor(e,n=!0){this.anchor=e,this.#f=n}#s=()=>{var e=T;if(this.#e.has(e)){var n=this.#e.get(e),r=this.#t.get(n);if(r)Wi(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#t.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#e){if(this.#e.delete(i),i===e)break;const l=this.#n.get(o);l&&(I(l.effect),this.#n.delete(o))}for(const[i,o]of this.#t){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#e.values()).includes(i)){var a=document.createDocumentFragment();lr(o,a),a.append(it()),this.#n.set(i,{effect:o,fragment:a})}else I(o);this.#r.delete(i),this.#t.delete(i)};this.#f||!r?(this.#r.add(i),ae(o,l,!1)):l()}}};#i=e=>{this.#e.delete(e);const n=Array.from(this.#e.values());for(const[r,s]of this.#n)n.includes(r)||(I(s.effect),this.#n.delete(r))};ensure(e,n){var r=T,s=Di();if(n&&!this.#t.has(e)&&!this.#n.has(e))if(s){var i=document.createDocumentFragment(),o=it();i.append(o),this.#n.set(e,{effect:Rt(()=>n(o)),fragment:i})}else this.#t.set(e,Rt(()=>n(this.anchor)));if(this.#e.set(r,e),s){for(const[l,f]of this.#t)l===e?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[l,f]of this.#n)l===e?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else R&&(this.anchor=E),this.#s()}}function Qi(t){Y===null&&ii(),fn(()=>{const e=cn(t);if(typeof e=="function")return e})}function vn(t,e,n=!1){R&&Kt();var r=new Zi(t),s=n?zt:0;function i(o,l){if(R){const a=gi(t)===Ue;if(o===a){var f=Ln();z(f),r.anchor=f,Xt(!1),r.ensure(o,l),Xt(!0);return}}r.ensure(o,l)}tr(()=>{var o=!1;e((l,f=!0)=>{o=!0,i(f,l)}),o||i(!1,null)},s)}function ts(t,e,n=!1,r=!1,s=!1){var i=t,o="";De(()=>{var l=x;if(o===(o=e()??"")){R&&Kt();return}if(l.nodes_start!==null&&(rr(l.nodes_start,l.nodes_end),l.nodes_start=l.nodes_end=null),o!==""){if(R){E.data;for(var f=Kt(),a=f;f!==null&&(f.nodeType!==Ut||f.data!=="");)a=f,f=dt(f);if(f===null)throw re(),Dt;_t(E,a),i=z(f);return}var d=o+"";n?d=`<svg>${d}</svg>`:r&&(d=`<math>${d}</math>`);var c=wr(d);if((n||r)&&(c=ut(c)),_t(ut(c),c.lastChild),n||r)for(;ut(c);)i.before(ut(c));else i.before(c)}})}function es(t,e,n,r,s){R&&Kt();var i=e.$$slots?.[n],o=!1;i===!0&&(i=e.children,o=!0),i===void 0?s!==null&&s(t):i(t,o?()=>r:r)}function ns(t,e){Qn(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function rs(t,e){return t==null?null:String(t)}function is(t,e,n,r){var s=t.__style;if(R||s!==e){var i=rs(e);(!R||i!==t.getAttribute("style"))&&(i==null?t.removeAttribute("style"):t.style.cssText=i),t.__style=e}return r}function Er(t,e){return t===e||t?.[$e]===e}function Rr(t={},e,n,r){return Qn(()=>{var s,i;return an(()=>{s=i,i=[],cn(()=>{t!==n(...i)&&(e(t,...i),s&&Er(n(...s),t)&&e(null,...s))})}),()=>{ie(()=>{i&&Er(n(...i),t)&&e(null,...i)})}}),t}function pn(t,e,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=r),s),l;l=t[e],l===void 0&&r!==void 0&&(l=o());var f;f=()=>{var h=t[e];return h===void 0?o():(i=!0,h)};var a=!1,d=tn(()=>(a=!1,f())),c=x;return(function(h,u){if(arguments.length>0){const v=u?g(d):h;return V(d,v),a=!0,s!==void 0&&(s=v),h}return Bt&&a||(c.f&$t)!==0?d.v:g(d)})}function ss(t){return new os(t)}class os{#e;#t;constructor(e){var n=new Map,r=(i,o)=>{var l=ki(o,!1,!1);return n.set(i,l),l};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return g(n.get(o)??r(o,Reflect.get(i,o)))},has(i,o){return o===ri?!0:(g(n.get(o)??r(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return V(n.get(o)??r(o,l),l),Reflect.set(i,o,l)}});this.#t=(e.hydrate?Gi:xr)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Te(),this.#e=s.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||ye(this,i,{get(){return this.#t[i]},set(o){this.#t[i]=o},enumerable:!0});this.#t.$set=i=>{Object.assign(s,i)},this.#t.$destroy=()=>{Ji(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...s)=>n.call(this,...s);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(s=>s!==r)}}$destroy(){this.#t.$destroy()}}let Ar;typeof HTMLElement=="function"&&(Ar=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),kt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=ls(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=je(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ss({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Mi(()=>{an(()=>{this.$$r=!0;for(const r of we(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=je(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return we(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,n,r){const s=n[t]?.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function ls(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function fs(t,e,n,r,s,i){let o=class extends Ar{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return we(e).map(l=>(e[l].attribute||l).toLowerCase())}};return we(e).forEach(l=>{ye(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=je(l,f,e),this.$$d[l]=f;var a=this.$$c;if(a){var d=qt(a,l)?.get;d?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{ye(o.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=o,o}const Qt=Math.min,It=Math.max,Be=Math.round,Ve=Math.floor,gt=t=>({x:t,y:t}),as={left:"right",right:"left",bottom:"top",top:"bottom"},cs={start:"end",end:"start"};function _n(t,e,n){return It(t,Qt(e,n))}function ve(t,e){return typeof t=="function"?t(e):t}function Wt(t){return t.split("-")[0]}function pe(t){return t.split("-")[1]}function Sr(t){return t==="x"?"y":"x"}function gn(t){return t==="y"?"height":"width"}const us=new Set(["top","bottom"]);function Lt(t){return us.has(Wt(t))?"y":"x"}function mn(t){return Sr(Lt(t))}function ds(t,e,n){n===void 0&&(n=!1);const r=pe(t),s=mn(t),i=gn(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=Ie(o)),[o,Ie(o)]}function hs(t){const e=Ie(t);return[wn(t),e,wn(e)]}function wn(t){return t.replace(/start|end/g,e=>cs[e])}const Tr=["left","right"],Or=["right","left"],vs=["top","bottom"],ps=["bottom","top"];function _s(t,e,n){switch(t){case"top":case"bottom":return n?e?Or:Tr:e?Tr:Or;case"left":case"right":return e?vs:ps;default:return[]}}function gs(t,e,n,r){const s=pe(t);let i=_s(Wt(t),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(wn)))),i}function Ie(t){return t.replace(/left|right|bottom|top/g,e=>as[e])}function ms(t){return{top:0,right:0,bottom:0,left:0,...t}}function Cr(t){return typeof t!="number"?ms(t):{top:t,right:t,bottom:t,left:t}}function We(t){const{x:e,y:n,width:r,height:s}=t;return{width:r,height:s,top:n,left:e,right:e+r,bottom:n+s,x:e,y:n}}function kr(t,e,n){let{reference:r,floating:s}=t;const i=Lt(e),o=mn(e),l=gn(o),f=Wt(e),a=i==="y",d=r.x+r.width/2-s.width/2,c=r.y+r.height/2-s.height/2,h=r[l]/2-s[l]/2;let u;switch(f){case"top":u={x:d,y:r.y-s.height};break;case"bottom":u={x:d,y:r.y+r.height};break;case"right":u={x:r.x+r.width,y:c};break;case"left":u={x:r.x-s.width,y:c};break;default:u={x:r.x,y:r.y}}switch(pe(e)){case"start":u[o]-=h*(n&&a?-1:1);break;case"end":u[o]+=h*(n&&a?-1:1);break}return u}const ws=async(t,e,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),f=await(o.isRTL==null?void 0:o.isRTL(e));let a=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:d,y:c}=kr(a,r,f),h=r,u={},v=0;for(let p=0;p<l.length;p++){const{name:m,fn:w}=l[p],{x:y,y:$,data:k,reset:S}=await w({x:d,y:c,initialPlacement:r,placement:h,strategy:s,middlewareData:u,rects:a,platform:o,elements:{reference:t,floating:e}});d=y??d,c=$??c,u={...u,[m]:{...u[m],...k}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(a=S.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):S.rects),{x:d,y:c}=kr(a,h,f)),p=-1)}return{x:d,y:c,placement:h,strategy:s,middlewareData:u}};async function Lr(t,e){var n;e===void 0&&(e={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:h=!1,padding:u=0}=ve(e,t),v=Cr(u),m=l[h?c==="floating"?"reference":"floating":c],w=We(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:a,rootBoundary:d,strategy:f})),y=c==="floating"?{x:r,y:s,width:o.floating.width,height:o.floating.height}:o.reference,$=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement($))?await(i.getScale==null?void 0:i.getScale($))||{x:1,y:1}:{x:1,y:1},S=We(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:$,strategy:f}):y);return{top:(w.top-S.top+v.top)/k.y,bottom:(S.bottom-w.bottom+v.bottom)/k.y,left:(w.left-S.left+v.left)/k.x,right:(S.right-w.right+v.right)/k.x}}const ys=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:s,rects:i,platform:o,elements:l,middlewareData:f}=e,{element:a,padding:d=0}=ve(t,e)||{};if(a==null)return{};const c=Cr(d),h={x:n,y:r},u=mn(s),v=gn(u),p=await o.getDimensions(a),m=u==="y",w=m?"top":"left",y=m?"bottom":"right",$=m?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[u]-h[u]-i.floating[v],S=h[u]-i.reference[u],lt=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a));let _=lt?lt[$]:0;(!_||!await(o.isElement==null?void 0:o.isElement(lt)))&&(_=l.floating[$]||i.floating[v]);const O=k/2-S/2,H=_/2-p[v]/2-1,j=Qt(c[w],H),ft=Qt(c[y],H),K=j,C=_-p[v]-ft,A=_/2-p[v]/2+O,G=_n(K,A,C),at=!f.arrow&&pe(s)!=null&&A!==G&&i.reference[v]/2-(A<K?j:ft)-p[v]/2<0,J=at?A<K?A-K:A-C:0;return{[u]:h[u]+J,data:{[u]:G,centerOffset:A-G-J,...at&&{alignmentOffset:J}},reset:at}}}),bs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:f,elements:a}=e,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...m}=ve(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=Wt(s),y=Lt(l),$=Wt(l)===l,k=await(f.isRTL==null?void 0:f.isRTL(a.floating)),S=h||($||!p?[Ie(l)]:hs(l)),lt=v!=="none";!h&<&&S.push(...gs(l,p,v,k));const _=[l,...S],O=await Lr(e,m),H=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&H.push(O[w]),c){const A=ds(s,o,k);H.push(O[A[0]],O[A[1]])}if(j=[...j,{placement:s,overflows:H}],!H.every(A=>A<=0)){var ft,K;const A=(((ft=i.flip)==null?void 0:ft.index)||0)+1,G=_[A];if(G&&(!(c==="alignment"?y!==Lt(G):!1)||j.every(L=>Lt(L.placement)===y?L.overflows[0]>0:!0)))return{data:{index:A,overflows:j},reset:{placement:G}};let at=(K=j.filter(J=>J.overflows[0]<=0).sort((J,L)=>J.overflows[1]-L.overflows[1])[0])==null?void 0:K.placement;if(!at)switch(u){case"bestFit":{var C;const J=(C=j.filter(L=>{if(lt){const q=Lt(L.placement);return q===y||q==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(q=>q>0).reduce((q,me)=>q+me,0)]).sort((L,q)=>L[1]-q[1])[0])==null?void 0:C[0];J&&(at=J);break}case"initialPlacement":at=l;break}if(s!==at)return{reset:{placement:at}}}return{}}}},xs=new Set(["left","top"]);async function $s(t,e){const{placement:n,platform:r,elements:s}=t,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=Wt(n),l=pe(n),f=Lt(n)==="y",a=xs.has(o)?-1:1,d=i&&f?-1:1,c=ve(e,t);let{mainAxis:h,crossAxis:u,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof v=="number"&&(u=l==="end"?v*-1:v),f?{x:u*d,y:h*a}:{x:h*a,y:u*d}}const Es=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=e,f=await $s(e,t);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+f.x,y:i+f.y,data:{...f,placement:o}}}}},Rs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:l={fn:m=>{let{x:w,y}=m;return{x:w,y}}},...f}=ve(t,e),a={x:n,y:r},d=await Lr(e,f),c=Lt(Wt(s)),h=Sr(c);let u=a[h],v=a[c];if(i){const m=h==="y"?"top":"left",w=h==="y"?"bottom":"right",y=u+d[m],$=u-d[w];u=_n(y,u,$)}if(o){const m=c==="y"?"top":"left",w=c==="y"?"bottom":"right",y=v+d[m],$=v-d[w];v=_n(y,v,$)}const p=l.fn({...e,[h]:u,[c]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[c]:o}}}}}};function He(){return typeof window<"u"}function te(t){return Pr(t)?(t.nodeName||"").toLowerCase():"#document"}function X(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(Pr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pr(t){return He()?t instanceof Node||t instanceof X(t).Node:!1}function st(t){return He()?t instanceof Element||t instanceof X(t).Element:!1}function wt(t){return He()?t instanceof HTMLElement||t instanceof X(t).HTMLElement:!1}function Dr(t){return!He()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof X(t).ShadowRoot}const As=new Set(["inline","contents"]);function _e(t){const{overflow:e,overflowX:n,overflowY:r,display:s}=ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!As.has(s)}const Ss=new Set(["table","td","th"]);function Ts(t){return Ss.has(te(t))}const Os=[":popover-open",":modal"];function qe(t){return Os.some(e=>{try{return t.matches(e)}catch{return!1}})}const Cs=["transform","translate","scale","rotate","perspective"],ks=["transform","translate","scale","rotate","perspective","filter"],Ls=["paint","layout","strict","content"];function yn(t){const e=bn(),n=st(t)?ot(t):t;return Cs.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ks.some(r=>(n.willChange||"").includes(r))||Ls.some(r=>(n.contain||"").includes(r))}function Ps(t){let e=Pt(t);for(;wt(e)&&!ee(e);){if(yn(e))return e;if(qe(e))return null;e=Pt(e)}return null}function bn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ds=new Set(["html","body","#document"]);function ee(t){return Ds.has(te(t))}function ot(t){return X(t).getComputedStyle(t)}function ze(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Pt(t){if(te(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Dr(t)&&t.host||mt(t);return Dr(e)?e.host:e}function Nr(t){const e=Pt(t);return ee(e)?t.ownerDocument?t.ownerDocument.body:t.body:wt(e)&&_e(e)?e:Nr(e)}function ge(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const s=Nr(t),i=s===((r=t.ownerDocument)==null?void 0:r.body),o=X(s);if(i){const l=xn(o);return e.concat(o,o.visualViewport||[],_e(s)?s:[],l&&n?ge(l):[])}return e.concat(s,ge(s,[],n))}function xn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Fr(t){const e=ot(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const s=wt(t),i=s?t.offsetWidth:n,o=s?t.offsetHeight:r,l=Be(n)!==i||Be(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function $n(t){return st(t)?t:t.contextElement}function ne(t){const e=$n(t);if(!wt(e))return gt(1);const n=e.getBoundingClientRect(),{width:r,height:s,$:i}=Fr(e);let o=(i?Be(n.width):n.width)/r,l=(i?Be(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ns=gt(0);function Mr(t){const e=X(t);return!bn()||!e.visualViewport?Ns:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fs(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==X(t)?!1:e}function Ht(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const s=t.getBoundingClientRect(),i=$n(t);let o=gt(1);e&&(r?st(r)&&(o=ne(r)):o=ne(t));const l=Fs(i,n,r)?Mr(i):gt(0);let f=(s.left+l.x)/o.x,a=(s.top+l.y)/o.y,d=s.width/o.x,c=s.height/o.y;if(i){const h=X(i),u=r&&st(r)?X(r):r;let v=h,p=xn(v);for(;p&&r&&u!==v;){const m=ne(p),w=p.getBoundingClientRect(),y=ot(p),$=w.left+(p.clientLeft+parseFloat(y.paddingLeft))*m.x,k=w.top+(p.clientTop+parseFloat(y.paddingTop))*m.y;f*=m.x,a*=m.y,d*=m.x,c*=m.y,f+=$,a+=k,v=X(p),p=xn(v)}}return We({width:d,height:c,x:f,y:a})}function Ye(t,e){const n=ze(t).scrollLeft;return e?e.left+n:Ht(mt(t)).left+n}function jr(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Ye(t,n),s=n.top+e.scrollTop;return{x:r,y:s}}function Ms(t){let{elements:e,rect:n,offsetParent:r,strategy:s}=t;const i=s==="fixed",o=mt(r),l=e?qe(e.floating):!1;if(r===o||l&&i)return n;let f={scrollLeft:0,scrollTop:0},a=gt(1);const d=gt(0),c=wt(r);if((c||!c&&!i)&&((te(r)!=="body"||_e(o))&&(f=ze(r)),wt(r))){const u=Ht(r);a=ne(r),d.x=u.x+r.clientLeft,d.y=u.y+r.clientTop}const h=o&&!c&&!i?jr(o,f):gt(0);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-f.scrollLeft*a.x+d.x+h.x,y:n.y*a.y-f.scrollTop*a.y+d.y+h.y}}function js(t){return Array.from(t.getClientRects())}function Bs(t){const e=mt(t),n=ze(t),r=t.ownerDocument.body,s=It(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=It(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Ye(t);const l=-n.scrollTop;return ot(r).direction==="rtl"&&(o+=It(e.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}const Br=25;function Vs(t,e){const n=X(t),r=mt(t),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,f=0;if(s){i=s.width,o=s.height;const d=bn();(!d||d&&e==="fixed")&&(l=s.offsetLeft,f=s.offsetTop)}const a=Ye(r);if(a<=0){const d=r.ownerDocument,c=d.body,h=getComputedStyle(c),u=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,v=Math.abs(r.clientWidth-c.clientWidth-u);v<=Br&&(i-=v)}else a<=Br&&(i+=a);return{width:i,height:o,x:l,y:f}}const Is=new Set(["absolute","fixed"]);function Ws(t,e){const n=Ht(t,!0,e==="fixed"),r=n.top+t.clientTop,s=n.left+t.clientLeft,i=wt(t)?ne(t):gt(1),o=t.clientWidth*i.x,l=t.clientHeight*i.y,f=s*i.x,a=r*i.y;return{width:o,height:l,x:f,y:a}}function Vr(t,e,n){let r;if(e==="viewport")r=Vs(t,n);else if(e==="document")r=Bs(mt(t));else if(st(e))r=Ws(e,n);else{const s=Mr(t);r={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return We(r)}function Ir(t,e){const n=Pt(t);return n===e||!st(n)||ee(n)?!1:ot(n).position==="fixed"||Ir(n,e)}function Hs(t,e){const n=e.get(t);if(n)return n;let r=ge(t,[],!1).filter(l=>st(l)&&te(l)!=="body"),s=null;const i=ot(t).position==="fixed";let o=i?Pt(t):t;for(;st(o)&&!ee(o);){const l=ot(o),f=yn(o);!f&&l.position==="fixed"&&(s=null),(i?!f&&!s:!f&&l.position==="static"&&!!s&&Is.has(s.position)||_e(o)&&!f&&Ir(t,o))?r=r.filter(d=>d!==o):s=l,o=Pt(o)}return e.set(t,r),r}function qs(t){let{element:e,boundary:n,rootBoundary:r,strategy:s}=t;const o=[...n==="clippingAncestors"?qe(e)?[]:Hs(e,this._c):[].concat(n),r],l=o[0],f=o.reduce((a,d)=>{const c=Vr(e,d,s);return a.top=It(c.top,a.top),a.right=Qt(c.right,a.right),a.bottom=Qt(c.bottom,a.bottom),a.left=It(c.left,a.left),a},Vr(e,l,s));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function zs(t){const{width:e,height:n}=Fr(t);return{width:e,height:n}}function Ys(t,e,n){const r=wt(e),s=mt(e),i=n==="fixed",o=Ht(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const f=gt(0);function a(){f.x=Ye(s)}if(r||!r&&!i)if((te(e)!=="body"||_e(s))&&(l=ze(e)),r){const u=Ht(e,!0,i,e);f.x=u.x+e.clientLeft,f.y=u.y+e.clientTop}else s&&a();i&&!r&&s&&a();const d=s&&!r&&!i?jr(s,l):gt(0),c=o.left+l.scrollLeft-f.x-d.x,h=o.top+l.scrollTop-f.y-d.y;return{x:c,y:h,width:o.width,height:o.height}}function En(t){return ot(t).position==="static"}function Wr(t,e){if(!wt(t)||ot(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return mt(t)===n&&(n=n.ownerDocument.body),n}function Hr(t,e){const n=X(t);if(qe(t))return n;if(!wt(t)){let s=Pt(t);for(;s&&!ee(s);){if(st(s)&&!En(s))return s;s=Pt(s)}return n}let r=Wr(t,e);for(;r&&Ts(r)&&En(r);)r=Wr(r,e);return r&&ee(r)&&En(r)&&!yn(r)?n:r||Ps(t)||n}const Us=async function(t){const e=this.getOffsetParent||Hr,n=this.getDimensions,r=await n(t.floating);return{reference:Ys(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xs(t){return ot(t).direction==="rtl"}const Ks={convertOffsetParentRelativeRectToViewportRelativeRect:Ms,getDocumentElement:mt,getClippingRect:qs,getOffsetParent:Hr,getElementRects:Us,getClientRects:js,getDimensions:zs,getScale:ne,isElement:st,isRTL:Xs};function qr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Gs(t,e){let n=null,r;const s=mt(t);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),i();const a=t.getBoundingClientRect(),{left:d,top:c,width:h,height:u}=a;if(l||e(),!h||!u)return;const v=Ve(c),p=Ve(s.clientWidth-(d+h)),m=Ve(s.clientHeight-(c+u)),w=Ve(d),$={rootMargin:-v+"px "+-p+"px "+-m+"px "+-w+"px",threshold:It(0,Qt(1,f))||1};let k=!0;function S(lt){const _=lt[0].intersectionRatio;if(_!==f){if(!k)return o();_?o(!1,_):r=setTimeout(()=>{o(!1,1e-7)},1e3)}_===1&&!qr(a,t.getBoundingClientRect())&&o(),k=!1}try{n=new IntersectionObserver(S,{...$,root:s.ownerDocument})}catch{n=new IntersectionObserver(S,$)}n.observe(t)}return o(!0),i}function Js(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,a=$n(t),d=s||i?[...a?ge(a):[],...ge(e)]:[];d.forEach(w=>{s&&w.addEventListener("scroll",n,{passive:!0}),i&&w.addEventListener("resize",n)});const c=a&&l?Gs(a,n):null;let h=-1,u=null;o&&(u=new ResizeObserver(w=>{let[y]=w;y&&y.target===a&&u&&(u.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var $;($=u)==null||$.observe(e)})),n()}),a&&!f&&u.observe(a),u.observe(e));let v,p=f?Ht(t):null;f&&m();function m(){const w=Ht(t);p&&!qr(p,w)&&n(),p=w,v=requestAnimationFrame(m)}return n(),()=>{var w;d.forEach(y=>{s&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),c?.(),(w=u)==null||w.disconnect(),u=null,f&&cancelAnimationFrame(v)}}const Zs=Es,Qs=Rs,to=bs,eo=ys,no=(t,e,n)=>{const r=new Map,s={platform:Ks,...n},i={...s.platform,_c:r};return ws(t,e,{...s,platform:i})};var ro=un('<div style="text-align: center; font-weight: bold; margin-bottom: 4px;"> </div> <div style="text-align: justify"> </div>',1),io=un('<div class="tooltip-element svelte-5j6wnh" role="tooltip"><!> <div class="tooltip-arrow svelte-5j6wnh"></div></div>'),so=un('<span id="tooltip-trigger" role="tooltip"><!></span> <!>',1);const oo={hash:"svelte-5j6wnh",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}.tooltip-element.svelte-5j6wnh {position:absolute;width:max-content;top:0;left:0;z-index:1000;pointer-events:none;}.tooltip-arrow.svelte-5j6wnh {position:absolute;width:8px;height:8px;background:var(--tooltip-bg, black);transform:rotate(45deg);}'};function zr(t,e){Dn(e,!0),ns(t,oo);let n=pn(e,"id",7,""),r=pn(e,"tooltip"),s=pn(e,"show"),i,o=rt(void 0),l=rt(void 0),f,a=rt(!1);function d(_,O){e.$$host.dispatchEvent(new CustomEvent(_,{detail:O}))}Qi(()=>{i=e.$$host?.shadowRoot?.querySelector("#tooltip-trigger")});let c=en(()=>{if(!r())return null;if(typeof r()=="string")try{return JSON.parse(r())}catch(_){return console.warn("Invalid tooltip JSON",_),null}return r()}),h=en(()=>{if(s()!==void 0){if(s()===!0||s()===!1)return s();if(typeof s()=="string"){if(["true","1","on","yes"].includes(s()))return!0;if(["false","0","off","no"].includes(s()))return!1}}});function u(){g(h)!==void 0&&V(a,g(h),!0)}fn(()=>{u()});function v(){g(h)===void 0&&V(a,!0)}function p(){g(h)===void 0&&V(a,!1)}fn(()=>{if(g(a)){if(d("visualizationChange",{id:n(),show:!0}),i&&g(o)){let _=g(c)?.placement||"top";_==="auto"&&(_="top");const O=[Zs(6),to(),Qs({padding:5})];g(l)&&O.push(eo({element:g(l)})),f=Js(i,g(o),()=>{!i||!g(o)||no(i,g(o),{placement:_,middleware:O}).then(({x:H,y:j,placement:ft,middlewareData:K})=>{Object.assign(g(o).style,{left:`${H}px`,top:`${j}px`});const{x:C,y:A}=K.arrow||{},G={top:"bottom",right:"left",bottom:"top",left:"right"}[ft.split("-")[0]];g(l)&&Object.assign(g(l).style,{left:C!=null?`${C}px`:"",top:A!=null?`${A}px`:"",right:"",bottom:"",[G]:"-4px"})})})}}else d("visualizationChange",{id:n(),show:!1}),f&&f();return()=>{f&&f()}});let m=en(()=>{const _=g(c)?.style||{};if(_.disableDefaultStyle)return"";const O=_.backgroundColor||"black",H=_.color||"white",j=_.padding||"0.5rem 1rem",ft=_.borderRadius||"0.25rem",K=_.opacity!==void 0?_.opacity:.9,C=_.fontSize||"0.875rem";return`
|
|
3
3
|
background-color: ${O};
|
|
4
|
-
color: ${
|
|
5
|
-
padding: ${
|
|
6
|
-
border-radius: ${
|
|
7
|
-
opacity: ${
|
|
4
|
+
color: ${H};
|
|
5
|
+
padding: ${j};
|
|
6
|
+
border-radius: ${ft};
|
|
7
|
+
opacity: ${K};
|
|
8
8
|
font-size: ${C};
|
|
9
9
|
--tooltip-bg: ${O};
|
|
10
|
-
max-width: ${
|
|
11
|
-
max-height: ${
|
|
12
|
-
`});var
|
|
10
|
+
max-width: ${g(c)?.maxWidth||(g(c)?.description?"200px":"auto")};
|
|
11
|
+
max-height: ${g(c)?.maxHeight||"auto"};
|
|
12
|
+
`});var w={get id(){return n()},set id(_=""){n(_),Te()},get tooltip(){return r()},set tooltip(_){r(_),Te()},get show(){return s()},set show(_){s(_),Te()}},y=so(),$=Le(y),k=ke($);es(k,e,"default",{},_=>{var O=yr(" ");kt(_,O)}),Re($);var S=on($,2);{var lt=_=>{var O=io(),H=ke(O);{var j=C=>{var A=br(),G=Le(A);ts(G,()=>g(c)?.title||""),kt(C,A)},ft=C=>{var A=br(),G=Le(A);{var at=L=>{var q=ro(),me=Le(q),lo=ke(me,!0);Re(me);var Yr=on(me,2),fo=ke(Yr,!0);Re(Yr),De(()=>{dn(lo,g(c).title),dn(fo,g(c).description)}),kt(L,q)},J=L=>{var q=yr();De(()=>dn(q,g(c)?.title||"")),kt(L,q)};vn(G,L=>{g(c)?.description?L(at):L(J,!1)},!0)}kt(C,A)};vn(H,C=>{g(c)?.html?C(j):C(ft,!1)})}var K=on(H,2);Rr(K,C=>V(l,C),()=>g(l)),Re(O),Rr(O,C=>V(o,C),()=>g(o)),De(()=>is(O,g(m))),kt(_,O)};vn(S,_=>{g(a)&&_(lt)})}return Me("mouseenter",$,v),Me("mouseleave",$,p),Me("focus",$,v),Me("blur",$,p),kt(t,y),Nn(w)}customElements.define("hb-tooltip",fs(zr,{id:{},tooltip:{},show:{}},["default"],[],!0)),Rn.Component=zr,Object.defineProperty(Rn,Symbol.toStringTag,{value:"Module"})})(this.tooltip=this.tooltip||{});
|
|
13
13
|
//# sourceMappingURL=main.iife.js.map
|