@htmlbricks/hb-dropdown-notifications 0.65.23 → 0.66.1
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 +5 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +13 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(_t){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const wr=1,kr=2,gt="[",Qe="[!",mt="]",ue={},k=Symbol(),yr="http://www.w3.org/1999/xhtml",et=!1;var xr=Array.isArray,$r=Array.prototype.indexOf,Er=Array.from,Pe=Object.keys,Le=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Tr=Object.getOwnPropertyDescriptors,Sr=Object.prototype,Ar=Array.prototype,wt=Object.getPrototypeOf,kt=Object.isExtensible;function Nr(e){for(var t=0;t<e.length;t++)e[t]()}function yt(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const w=2,tt=4,rt=8,H=16,Q=32,ee=64,De=128,P=512,y=1024,S=2048,Y=4096,F=8192,V=16384,nt=32768,ce=65536,xt=1<<17,$t=1<<18,se=1<<19,Cr=1<<20,ie=32768,st=1<<21,it=1<<22,te=1<<23,ot=Symbol("$state"),Rr=Symbol("legacy props"),Or=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Et=3,we=8;function Mr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Pr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ie(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function zr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function ve(e){g=e}let _;function j(e){if(e===null)throw Ie(),ue;return _=e}function Fe(){return j(W(_))}function je(e){if(g){if(W(_)!==null)throw Ie(),ue;_=e}}function Br(e=1){if(g){for(var t=e,r=_;t--;)r=W(r);_=r}}function Tt(e=!0){for(var t=0,r=_;;){if(r.nodeType===we){var n=r.data;if(n===mt){if(t===0)return r;t-=1}else(n===gt||n===Qe)&&(t+=1)}var i=W(r);e&&r.remove(),r=i}}function qr(e){if(!e||e.nodeType!==we)throw Ie(),ue;return e.data}function St(e){return e===this.v}function Ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hr(e){return!Ur(e,this.v)}let Yr=!1,L=null;function be(e){L=e}function At(e,t=!1,r){L={p:L,i:!1,c:null,e:null,s:e,x:null,l:null}}function Nt(e){var t=L,r=t.e;if(r!==null){t.e=null;for(var n of r)un(n)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Ct(){return!0}let oe=[];function Rt(){var e=oe;oe=[],Nr(e)}function lt(e){if(oe.length===0&&!ke){var t=oe;queueMicrotask(()=>{t===oe&&Rt()})}oe.push(e)}function Vr(){for(;oe.length>0;)Rt()}function Ot(e){var t=b;if(t===null)return v.f|=te,e;if((t.f&nt)===0){if((t.f&De)===0)throw e;t.b.error(e)}else pe(e,t)}function pe(e,t){for(;t!==null;){if((t.f&De)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const ze=new Set;let m=null,R=null,O=[],Be=null,at=!1,ke=!1;class D{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#a=null;#i=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){O=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#o(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects)):(m=null,Pt(r.render_effects),Pt(r.effects),this.#a?.resolve()),R=null}#o(t,r){t.f^=y;for(var n=t.first;n!==null;){var i=n.f,s=(i&(Q|ee))!==0,o=s&&(i&y)!==0,l=o||(i&F)!==0||this.skipped_effects.has(n);if((n.f&De)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=y:(i&tt)!==0?r.effects.push(n):Ne(n)&&((n.f&H)!==0&&r.block_effects.push(n),Ce(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),this.#l(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#l(t){for(const r of t)((r.f&S)!==0?this.#i:this.#s).push(r),this.#f(r.deps),x(r,y)}#f(t){if(t!==null)for(const r of t)(r.f&w)===0||(r.f&ie)===0||(r.f^=ie,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&te)===0&&(this.current.set(t,t.v),R?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,R=null)}flush(){if(this.activate(),O.length>0){if(Mt(),m!==null&&m!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#d()}#d(){if(ze.size>1){this.previous.clear();var t=R,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of ze){if(s===this){r=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(r&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=O;O=[];const a=new Set,f=new Map;for(const d of o)Lt(d,l,a,f);if(O.length>0){m=s,s.apply();for(const d of O)s.#o(d,n);s.deactivate()}O=i}}m=null,R=t}this.committed=!0,ze.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#i)x(t,S),le(t);for(const t of this.#s)x(t,Y),le(t);this.#i=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=yt()).promise}static ensure(){if(m===null){const t=m=new D;ze.add(m),ke||D.enqueue(()=>{m===t&&t.flush()})}return m}static enqueue(t){lt(t)}apply(){}}function ye(e){var t=ke;ke=!0;try{for(var r;;){if(Vr(),O.length===0&&(m?.flush(),O.length===0))return Be=null,r;Mt()}}finally{ke=t}}function Mt(){var e=ne;at=!0;var t=null;try{var r=0;for(Ve(!0);O.length>0;){var n=D.ensure();if(r++>1e3){var i,s;Kr()}n.process(O),re.clear()}}finally{at=!1,Ve(e),Be=null}}function Kr(){try{Pr()}catch(e){pe(e,Be)}}let K=null;function Pt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(V|F))===0&&Ne(n)&&(K=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Xt(n):n.fn=null),K?.size>0)){re.clear();for(const i of K){if((i.f&(V|F))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)K.has(o)&&(K.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(V|F))===0&&Ce(a)}}K.clear()}}K=null}}function Lt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&w)!==0?Lt(i,t,r,n):(s&(it|H))!==0&&(s&S)===0&&Dt(i,t,n)&&(x(i,S),le(i))}}function Dt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&w)!==0&&Dt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function le(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var r=t.f;if(at&&t===b&&(r&H)!==0&&(r&$t)===0)return;if((r&(ee|Q))!==0){if((r&y)===0)return;t.f^=y}}O.push(t)}function Gr(e){let t=0,r=xe(0),n;return()=>{Ye()&&(E(r),Kt(()=>(t===0&&(n=yn(()=>e(()=>$e(r)))),t+=1,()=>{lt(()=>{t-=1,t===0&&(n?.(),n=void 0,$e(r))})})))}}var Wr=ce|se|De;function Jr(e,t,r){new Xr(e,t,r)}class Xr{parent;#t=!1;#e;#r=g?_:null;#n;#a;#i;#s=null;#o=null;#l=null;#f=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#m=Gr(()=>(this.#h=xe(this.#d),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#a=n,this.parent=b.b,this.#t=!!this.#n.pending,this.#i=Gt(()=>{if(b.b=this,g){const s=this.#r;Fe(),s.nodeType===we&&s.data===Qe?this.#k():this.#w()}else{var i=this.#_();try{this.#s=J(()=>n(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},Wr),g&&(this.#e=_)}#w(){try{this.#s=J(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#k(){const t=this.#n.pending;t&&(this.#o=J(()=>t(this.#e)),D.enqueue(()=>{var r=this.#_();this.#s=this.#b(()=>(D.ensure(),J(()=>this.#a(r)))),this.#c>0?this.#p():(Se(this.#o,()=>{this.#o=null}),this.#t=!1)}))}#_(){var t=this.#e;return this.#t&&(this.#u=ae(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=b,n=v,i=L;U(this.#i),N(this.#i),be(this.#i.ctx);try{return t()}catch(s){return Ot(s),null}finally{U(r),N(n),be(i)}}#p(){const t=this.#n.pending;this.#s!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),er(this.#s,this.#f)),this.#o===null&&(this.#o=J(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#o&&Se(this.#o,()=>{this.#o=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#d+=t,this.#h&&Ue(this.#h,this.#d)}get_effect_pending(){return this.#m(),E(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#s&&(A(this.#s),this.#s=null),this.#o&&(A(this.#o),this.#o=null),this.#l&&(A(this.#l),this.#l=null),g&&(j(this.#r),Br(),j(Tt()));var i=!1,s=!1;const o=()=>{if(i){zr();return}i=!0,s&&jr(),D.ensure(),this.#d=0,this.#l!==null&&Se(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#s=this.#b(()=>(this.#v=!1,J(()=>this.#a(this.#e)))),this.#c>0?this.#p():this.#t=!1};var l=v;try{N(null),s=!0,r?.(t,o),s=!1}catch(a){pe(a,this.#i&&this.#i.parent)}finally{N(l)}n&<(()=>{this.#l=this.#b(()=>{D.ensure(),this.#v=!0;try{return J(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return pe(a,this.#i.parent),null}finally{this.#v=!1}})})}}function Zr(e,t,r,n){const i=It;if(r.length===0&&e.length===0){n(t.map(i));return}var s=m,o=b,l=Qr();function a(){Promise.all(r.map(f=>en(f))).then(f=>{l();try{n([...t.map(i),...f])}catch(d){(o.f&V)===0&&pe(d,o)}s?.deactivate(),qe()}).catch(f=>{pe(f,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{s?.deactivate(),qe()}}):a()}function Qr(){var e=b,t=v,r=L,n=m;return function(s=!0){U(e),N(t),be(r),s&&n?.activate()}}function qe(){U(null),N(null),be(null)}function It(e){var t=w|S,r=v!==null&&(v.f&w)!==0?v:null;return b!==null&&(b.f|=se),{ctx:L,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:r??b,ac:null}}function en(e,t){let r=b;r===null&&Mr();var n=r.b,i=void 0,s=xe(k),o=!v,l=new Map;return vn(()=>{var a=yt();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===m&&f.committed&&f.deactivate(),qe()})}catch(u){a.reject(u),qe()}var f=m;if(o){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),l.get(f)?.reject(he),l.delete(f),l.set(f,a)}const h=(u,c=void 0)=>{if(f.activate(),c)c!==he&&(s.f|=te,Ue(s,c));else{(s.f&te)!==0&&(s.f^=te),Ue(s,u);for(const[p,I]of l){if(l.delete(p),p===f)break;I.reject(he)}}o&&(n.update_pending_count(-1),f.decrement(d))};a.promise.then(h,u=>h(null,u||"unknown"))}),fn(()=>{for(const a of l.values())a.reject(he)}),new Promise(a=>{function f(d){function h(){d===i?a(s):f(i)}d.then(h,h)}f(i)})}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)A(t[r])}}function tn(e){for(var t=e.parent;t!==null;){if((t.f&w)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function ft(e){var t,r=b;U(tn(e));try{e.f&=~ie,Ft(e),t=or(e)}finally{U(r)}return t}function jt(e){var t=ft(e);if(e.equals(t)||(m?.is_fork||(e.v=t),e.wv=sr()),!ge)if(R!==null)Ye()&&R.set(e,t);else{var r=(e.f&P)===0?Y:y;x(e,r)}}let ut=new Set;const re=new Map;let zt=!1;function xe(e,t){var r={f:0,v:e,reactions:null,equals:St,rv:0,wv:0};return r}function G(e,t){const r=xe(e);return mn(r),r}function rn(e,t=!1,r=!0){const n=xe(e);return t||(n.equals=Hr),n}function z(e,t,r=!1){v!==null&&(!q||(v.f&xt)!==0)&&Ct()&&(v.f&(w|H|it|xt))!==0&&!X?.includes(e)&&Fr();let n=r?Ee(t):t;return Ue(e,n)}function Ue(e,t){if(!e.equals(t)){var r=e.v;ge?re.set(e,t):re.set(e,r),e.v=t;var n=D.ensure();n.capture(e,r),(e.f&w)!==0&&((e.f&S)!==0&&ft(e),x(e,(e.f&P)!==0?y:Y)),e.wv=sr(),Bt(e,S),b!==null&&(b.f&y)!==0&&(b.f&(Q|ee))===0&&(M===null?wn([e]):M.push(e)),!n.is_fork&&ut.size>0&&!zt&&nn()}return t}function nn(){zt=!1;var e=ne;Ve(!0);const t=Array.from(ut);try{for(const r of t)(r.f&y)!==0&&x(r,Y),Ne(r)&&Ce(r)}finally{Ve(e)}ut.clear()}function $e(e){z(e,e.v+1)}function Bt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&S)===0;if(l&&x(s,t),(o&w)!==0){var a=s;R?.delete(a),(o&ie)===0&&(o&P&&(s.f|=ie),Bt(a,Y))}else l&&((o&H)!==0&&K!==null&&K.add(s),le(s))}}function Ee(e){if(typeof e!="object"||e===null||ot in e)return e;const t=wt(e);if(t!==Sr&&t!==Ar)return e;var r=new Map,n=xr(e),i=G(0),s=fe,o=l=>{if(fe===s)return l();var a=v,f=fe;N(null),nr(s);var d=l();return N(a),nr(f),d};return n&&r.set("length",G(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Dr();var d=r.get(a);return d===void 0?d=o(()=>{var h=G(f.value);return r.set(a,h),h}):z(d,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const d=o(()=>G(k));r.set(a,d),$e(i)}}else z(f,k),$e(i);return!0},get(l,a,f){if(a===ot)return e;var d=r.get(a),h=a in l;if(d===void 0&&(!h||de(l,a)?.writable)&&(d=o(()=>{var c=Ee(h?l[a]:k),p=G(c);return p}),r.set(a,d)),d!==void 0){var u=E(d);return u===k?void 0:u}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var d=r.get(a);d&&(f.value=E(d))}else if(f===void 0){var h=r.get(a),u=h?.v;if(h!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(l,a){if(a===ot)return!0;var f=r.get(a),d=f!==void 0&&f.v!==k||Reflect.has(l,a);if(f!==void 0||b!==null&&(!d||de(l,a)?.writable)){f===void 0&&(f=o(()=>{var u=d?Ee(l[a]):k,c=G(u);return c}),r.set(a,f));var h=E(f);if(h===k)return!1}return d},set(l,a,f,d){var h=r.get(a),u=a in l;if(n&&a==="length")for(var c=f;c<h.v;c+=1){var p=r.get(c+"");p!==void 0?z(p,k):c in l&&(p=o(()=>G(k)),r.set(c+"",p))}if(h===void 0)(!u||de(l,a)?.writable)&&(h=o(()=>G(void 0)),z(h,Ee(f)),r.set(a,h));else{u=h.v!==k;var I=o(()=>Ee(f));z(h,I)}var Z=Reflect.getOwnPropertyDescriptor(l,a);if(Z?.set&&Z.set.call(d,f),!u){if(n&&typeof a=="string"){var Re=r.get("length"),Oe=Number(a);Number.isInteger(Oe)&&Oe>=Re.v&&z(Re,Oe+1)}$e(i)}return!0},ownKeys(l){E(i);var a=Reflect.ownKeys(l).filter(h=>{var u=r.get(h);return u===void 0||u.v!==k});for(var[f,d]of r)d.v!==k&&!(f in l)&&a.push(f);return a},setPrototypeOf(){Ir()}})}var qt,Ut,Ht,Yt;function dt(){if(qt===void 0){qt=window,Ut=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Ht=de(t,"firstChild").get,Yt=de(t,"nextSibling").get,kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),kt(r)&&(r.__t=void 0)}}function ae(e=""){return document.createTextNode(e)}function _e(e){return Ht.call(e)}function W(e){return Yt.call(e)}function He(e,t){if(!g)return _e(e);var r=_e(_);return r===null&&(r=_.appendChild(ae())),j(r),r}function sn(e,t=!1){if(!g){var r=_e(e);return r instanceof Comment&&r.data===""?W(r):r}if(t&&_?.nodeType!==Et){var n=ae();return _?.before(n),j(n),n}return _}function Te(e,t=1,r=!1){let n=g?_:e;for(var i;t--;)i=n,n=W(n);if(!g)return n;if(r&&n?.nodeType!==Et){var s=ae();return n===null?i?.after(s):n.before(s),j(s),s}return j(n),n}function on(e){e.textContent=""}function ln(){return!1}function Vt(e){var t=v,r=b;N(null),U(null);try{return e()}finally{N(t),U(r)}}function an(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r){var n=b;n!==null&&(n.f&F)!==0&&(e|=F);var i={ctx:L,deps:null,nodes_start:null,nodes_end:null,f:e|S|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ce(i),i.f|=nt}catch(l){throw A(i),l}else t!==null&&le(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&se)===0&&(s=s.first,(e&H)!==0&&(e&ce)!==0&&s!==null&&(s.f|=ce)),s!==null&&(s.parent=n,n!==null&&an(s,n),v!==null&&(v.f&w)!==0&&(e&ee)===0)){var o=v;(o.effects??=[]).push(s)}return i}function Ye(){return v!==null&&!q}function fn(e){const t=B(rt,null,!1);return x(t,y),t.teardown=e,t}function un(e){return B(tt|Cr,e,!1)}function dn(e){D.ensure();const t=B(ee|se,e,!0);return()=>{A(t)}}function cn(e){D.ensure();const t=B(ee|se,e,!0);return(r={})=>new Promise(n=>{r.outro?Se(t,()=>{A(t),n(void 0)}):(A(t),n(void 0))})}function hn(e){return B(tt,e,!1)}function vn(e){return B(it|se,e,!0)}function Kt(e,t=0){return B(rt|t,e,!0)}function ct(e,t=[],r=[],n=[]){Zr(n,t,r,i=>{B(rt,()=>e(...i.map(E)),!0)})}function Gt(e,t=0){var r=B(H|t,e,!0);return r}function J(e){return B(Q|se,e,!0)}function Wt(e){var t=e.teardown;if(t!==null){const r=ge,n=v;tr(!0),N(null);try{t.call(null)}finally{tr(r),N(n)}}}function Jt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Vt(()=>{i.abort(he)});var n=r.next;(r.f&ee)!==0?r.parent=null:A(r,t),r=n}}function bn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Q)===0&&A(t),t=r}}function A(e,t=!0){var r=!1;(t||(e.f&$t)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(pn(e.nodes_start,e.nodes_end),r=!0),Jt(e,t&&!r),Ke(e,0),x(e,V);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Wt(e);var i=e.parent;i!==null&&i.first!==null&&Xt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function pn(e,t){for(;e!==null;){var r=e===t?null:W(e);e.remove(),e=r}}function Xt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Se(e,t,r=!0){var n=[];Zt(e,n,!0),_n(n,()=>{r&&A(e),t&&t()})}function _n(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Zt(e,t,r){if((e.f&F)===0){if(e.f^=F,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&ce)!==0||(n.f&Q)!==0&&(e.f&H)!==0;Zt(n,t,s?r:!1),n=i}}}function gn(e){Qt(e,!0)}function Qt(e,t){if((e.f&F)!==0){e.f^=F,(e.f&y)===0&&(x(e,S),le(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ce)!==0||(r.f&Q)!==0;Qt(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function er(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:W(r);t.append(r),r=i}}let ne=!1;function Ve(e){ne=e}let ge=!1;function tr(e){ge=e}let v=null,q=!1;function N(e){v=e}let b=null;function U(e){b=e}let X=null;function mn(e){v!==null&&(X===null?X=[e]:X.push(e))}let $=null,C=0,M=null;function wn(e){M=e}let rr=1,Ae=0,fe=Ae;function nr(e){fe=e}function sr(){return++rr}function Ne(e){var t=e.f;if((t&S)!==0)return!0;if(t&w&&(e.f&=~ie),(t&Y)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(Ne(s)&&jt(s),s.wv>e.wv)return!0}(t&P)!==0&&R===null&&x(e,y)}return!1}function ir(e,t,r=!0){var n=e.reactions;if(n!==null&&!X?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&w)!==0?ir(s,t,!1):t===s&&(r?x(s,S):(s.f&y)!==0&&x(s,Y),le(s))}}function or(e){var t=$,r=C,n=M,i=v,s=X,o=L,l=q,a=fe,f=e.f;$=null,C=0,M=null,v=(f&(Q|ee))===0?e:null,X=null,be(e.ctx),q=!1,fe=++Ae,e.ac!==null&&(Vt(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=st;var d=e.fn,h=d(),u=e.deps;if($!==null){var c;if(Ke(e,C),u!==null&&C>0)for(u.length=C+$.length,c=0;c<$.length;c++)u[C+c]=$[c];else e.deps=u=$;if(ne&&Ye()&&(e.f&P)!==0)for(c=C;c<u.length;c++)(u[c].reactions??=[]).push(e)}else u!==null&&C<u.length&&(Ke(e,C),u.length=C);if(Ct()&&M!==null&&!q&&u!==null&&(e.f&(w|Y|S))===0)for(c=0;c<M.length;c++)ir(M[c],e);return i!==null&&i!==e&&(Ae++,M!==null&&(n===null?n=M:n.push(...M))),(e.f&te)!==0&&(e.f^=te),h}catch(p){return Ot(p)}finally{e.f^=st,$=t,C=r,M=n,v=i,X=s,be(o),q=l,fe=a}}function kn(e,t){let r=t.reactions;if(r!==null){var n=$r.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&w)!==0&&($===null||!$.includes(t))&&(x(t,Y),(t.f&P)!==0&&(t.f^=P,t.f&=~ie),Ft(t),Ke(t,0))}function Ke(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)kn(e,r[n])}function Ce(e){var t=e.f;if((t&V)===0){x(e,y);var r=b,n=ne;b=e,ne=!0;try{(t&H)!==0?bn(e):Jt(e),Wt(e);var i=or(e);e.teardown=typeof i=="function"?i:null,e.wv=rr;var s;et&&Yr&&(e.f&S)!==0&&e.deps}finally{ne=n,b=r}}}function E(e){var t=e.f,r=(t&w)!==0;if(v!==null&&!q){var n=b!==null&&(b.f&V)!==0;if(!n&&!X?.includes(e)){var i=v.deps;if((v.f&st)!==0)e.rv<Ae&&(e.rv=Ae,$===null&&i!==null&&i[C]===e?C++:$===null?$=[e]:$.includes(e)||$.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ge){if(re.has(e))return re.get(e);if(r){var o=e,l=o.v;return((o.f&y)===0&&o.reactions!==null||ar(o))&&(l=ft(o)),re.set(o,l),l}}else r&&!R?.has(e)&&(o=e,Ne(o)&&jt(o),ne&&Ye()&&(o.f&P)===0&&lr(o));if(R?.has(e))return R.get(e);if((e.f&te)!==0)throw e.v;return e.v}function lr(e){if(e.deps!==null){e.f^=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&w)!==0&&(t.f&P)===0&&lr(t)}}function ar(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(re.has(t)||(t.f&w)!==0&&ar(t))return!0;return!1}function yn(e){var t=q;try{return q=!0,e()}finally{q=t}}const xn=-7169;function x(e,t){e.f=e.f&xn|t}const fr=new Set,ht=new Set;function $n(e){for(var t=0;t<e.length;t++)fr.add(e[t]);for(var r of ht)r(e)}let ur=null;function Ge(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;ur=e;var o=0,l=ur===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Le(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=v,h=b;N(null),U(null);try{for(var u,c=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var I=s["__"+n];I!=null&&(!s.disabled||e.target===s)&&I.call(s,e)}catch(Z){u?c.push(Z):u=Z}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let Z of c)queueMicrotask(()=>{throw Z});throw u}}finally{e.__root=t,delete e.currentTarget,N(d),U(h)}}}function En(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function We(e,t){var r=b;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function vt(e,t){var r=(t&wr)!==0,n=(t&kr)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return We(_,null),_;i===void 0&&(i=En(s?e:"<!>"+e),r||(i=_e(i)));var o=n||Ut?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=_e(o),a=o.lastChild;We(l,a)}else We(o,o);return o}}function Je(e,t){if(g){var r=b;((r.f&nt)===0||r.nodes_end===null)&&(r.nodes_end=_),Fe();return}e!==null&&e.before(t)}const Tn=["touchstart","touchmove"];function Sn(e){return Tn.includes(e)}function dr(e,t){return cr(e,t)}function An(e,t){dt(),t.intro=t.intro??!1;const r=t.target,n=g,i=_;try{for(var s=_e(r);s&&(s.nodeType!==we||s.data!==gt);)s=W(s);if(!s)throw ue;ve(!0),j(s);const o=cr(e,{...t,anchor:s});return ve(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
3
|
-
\r\f \v\uFEFF`];function
|
|
1
|
+
(function(kt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dn=1,In=2,xt="[",yt="[!",$t="[?",Et="]",pe={},E=Symbol(),Tt="http://www.w3.org/1999/xhtml",Pn=!1;var Ln=Array.isArray,Fn=Array.prototype.indexOf,_e=Array.prototype.includes,zn=Array.from,Fe=Object.keys,ze=Object.defineProperty,me=Object.getOwnPropertyDescriptor,jn=Object.getOwnPropertyDescriptors,Bn=Object.prototype,Hn=Array.prototype,St=Object.getPrototypeOf,At=Object.isExtensible;const Yn=()=>{};function qn(e){for(var t=0;t<e.length;t++)e[t]()}function Nt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const y=2,be=4,je=8,Rt=1<<24,ee=16,G=32,te=64,tt=128,M=512,x=1024,T=2048,B=4096,H=8192,L=16384,le=32768,Ot=1<<25,we=65536,Ct=1<<17,Vn=1<<18,ae=1<<19,Un=1<<20,fe=65536,nt=1<<21,rt=1<<22,ne=1<<23,it=Symbol("$state"),Gn=Symbol("legacy props"),Kn=Symbol(""),K=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Wn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),st=3,Be=8;function Jn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Xn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Zn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function er(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function He(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function rr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function ge(e){g=e}let b;function Y(e){if(e===null)throw He(),pe;return b=e}function Ye(){return Y(Z(b))}function qe(e){if(g){if(Z(b)!==null)throw He(),pe;b=e}}function ir(e=1){if(g){for(var t=e,n=b;t--;)n=Z(n);b=n}}function Mt(e=!0){for(var t=0,n=b;;){if(n.nodeType===Be){var r=n.data;if(r===Et){if(t===0)return n;t-=1}else(r===xt||r===yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Z(n);e&&n.remove(),n=i}}function sr(e){if(!e||e.nodeType!==Be)throw He(),pe;return e.data}function Dt(e){return e===this.v}function or(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function lr(e){return!or(e,this.v)}let ar=!1,F=null;function ke(e){F=e}function It(e,t=!1,n){F={p:F,i:!1,c:null,e:null,s:e,x:null,r:_,l:null}}function Pt(e){var t=F,n=t.e;if(n!==null){t.e=null;for(var r of n)Rr(r)}return e!==void 0&&(t.x=e),t.i=!0,F=t.p,e??{}}function Lt(){return!0}let ue=[];function Ft(){var e=ue;ue=[],qn(e)}function xe(e){if(ue.length===0&&!Te){var t=ue;queueMicrotask(()=>{t===ue&&Ft()})}ue.push(e)}function fr(){for(;ue.length>0;)Ft()}function zt(e){var t=_;if(t===null)return p.f|=ne,e;if((t.f&le)===0&&(t.f&be)===0)throw e;re(e,t)}function re(e,t){for(;t!==null;){if((t.f&tt)!==0){if((t.f&le)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const ur=-7169;function k(e,t){e.f=e.f&ur|t}function ot(e){(e.f&M)!==0||e.deps===null?k(e,x):k(e,B)}function jt(e){if(e!==null)for(const t of e)(t.f&y)===0||(t.f&fe)===0||(t.f^=fe,jt(t.deps))}function Bt(e,t,n){(e.f&T)!==0?t.add(e):(e.f&B)!==0&&n.add(e),jt(e.deps),k(e,x)}const ie=new Set;let w=null,z=null,lt=null,Te=!1,at=!1,ye=null,Ve=null;var Ht=0;let dr=1;class W{id=dr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#d=!1;#f=new Set;#c(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)k(r,T),this.schedule(r);for(r of n.m)k(r,B),this.schedule(r)}}#h(){if(Ht++>1e3&&(ie.delete(this),cr()),!this.#c()){for(const o of this.#o)this.#l.delete(o),k(o,T),this.schedule(o);for(const o of this.#l)k(o,B),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=ye=[],r=[],i=Ve=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw Gt(o),a}if(w=null,i.length>0){var s=W.ensure();for(const o of i)s.schedule(o)}if(ye=null,Ve=null,this.#c()||this.#v()){this.#p(r),this.#p(n);for(const[o,a]of this.#a)Ut(o,a)}else{this.#t.size===0&&ie.delete(this),this.#o.clear(),this.#l.clear();for(const o of this.#e)o(this);this.#e.clear(),Yt(r),Yt(n),this.#s?.resolve()}var l=w;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(ie.add(l),l.#h()),ie.has(this)||this.#_()}#u(t,n,r){t.f^=x;for(var i=t.first;i!==null;){var s=i.f,l=(s&(G|te))!==0,o=l&&(s&x)!==0,a=o||(s&H)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=x:(s&be)!==0?n.push(i):Me(i)&&((s&ee)!==0&&this.#l.add(i),Ee(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)Bt(t[n],this.#o,this.#l)}capture(t,n,r=!1){n!==E&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&ne)===0&&(this.current.set(t,[t.v,r]),z?.set(t,t.v))}activate(){w=this}deactivate(){w=null,z=null}flush(){try{at=!0,w=this,this.#h()}finally{Ht=0,lt=null,ye=null,Ve=null,at=!1,w=null,z=null,se.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ie.delete(this)}#_(){for(const f of ie){var t=f.id<this.id,n=[];for(const[u,[h,d]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,d]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)qt(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of ie)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#c()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#d||r||(this.#d=!0,xe(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#l.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Nt()).promise}static ensure(){if(w===null){const t=w=new W;at||(ie.add(w),Te||xe(()=>{w===t&&t.flush()}))}return w}apply(){{z=null;return}}schedule(t){if(lt=t,t.b?.is_pending&&(t.f&(be|je|Rt))!==0&&(t.f&le)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ye!==null&&n===_&&(p===null||(p.f&y)===0))return;if((r&(te|G))!==0){if((r&x)===0)return;n.f^=x}}this.#r.push(n)}}function Se(e){var t=Te;Te=!0;try{for(var n;;){if(fr(),w===null)return n;w.flush()}}finally{Te=t}}function cr(){try{Xn()}catch(e){re(e,lt)}}let J=null;function Yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(L|H))===0&&Me(r)&&(J=new Set,Ee(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&un(r),J?.size>0)){se.clear();for(const i of J){if((i.f&(L|H))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)J.has(l)&&(J.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(L|H))===0&&Ee(a)}}J.clear()}}J=null}}function qt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&y)!==0?qt(i,t,n,r):(s&(rt|ee))!==0&&(s&T)===0&&Vt(i,t,r)&&(k(i,T),ft(i))}}function Vt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(_e.call(t,i))return!0;if((i.f&y)!==0&&Vt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ft(e){w.schedule(e)}function Ut(e,t){if(!((e.f&G)!==0&&(e.f&x)!==0)){(e.f&T)!==0?t.d.push(e):(e.f&B)!==0&&t.m.push(e),k(e,x);for(var n=e.first;n!==null;)Ut(n,t),n=n.next}}function Gt(e){k(e,x);for(var t=e.first;t!==null;)Gt(t),t=t.next}function hr(e){let t=0,n=Ae(0),r;return()=>{vt()&&(S(n),ln(()=>(t===0&&(r=Br(()=>e(()=>Ne(n)))),t+=1,()=>{xe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ne(n))})})))}}var vr=we|ae;function pr(e,t,n,r){new _r(e,t,n,r)}class _r{parent;is_pending=!1;transform_error;#e;#n=g?b:null;#t;#i;#s;#r=null;#o=null;#l=null;#a=null;#d=0;#f=0;#c=!1;#v=new Set;#h=new Set;#u=null;#p=hr(()=>(this.#u=Ae(this.#d),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=_;l.b=this,l.f|=tt,r(s)},this.parent=_.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=an(()=>{if(g){const s=this.#n;Ye();const l=s.data===yt;if(s.data.startsWith($t)){const a=JSON.parse(s.data.slice($t.length));this.#k(a)}else l?this.#x():this.#_()}else this.#w()},vr),g&&(this.#e=b)}#_(){try{this.#r=Q(()=>this.#i(this.#e))}catch(t){this.error(t)}}#k(t){const n=this.#t.failed;n&&(this.#l=Q(()=>{n(this.#e,()=>t,()=>()=>{})}))}#x(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=Q(()=>t(this.#e)),xe(()=>{var n=this.#a=document.createDocumentFragment(),r=de();n.append(r),this.#r=this.#b(()=>Q(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Ce(this.#o,()=>{this.#o=null}),this.#m(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#d=0,this.#r=Q(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();hn(this.#r,t);const n=this.#t.pending;this.#o=Q(()=>n(this.#e))}else this.#m(w)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Bt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var n=_,r=p,i=F;U(this.#s),D(this.#s),ke(this.#s.ctx);try{return W.ensure(),t()}catch(s){return zt(s),null}finally{U(n),D(r),ke(i)}}#g(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t,n);return}this.#f+=t,this.#f===0&&(this.#m(n),this.#o&&Ce(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#g(t,n),this.#d+=t,!(!this.#u||this.#c)&&(this.#c=!0,xe(()=>{this.#c=!1,this.#u&&Ge(this.#u,this.#d)}))}get_effect_pending(){return this.#p(),S(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(N(this.#r),this.#r=null),this.#o&&(N(this.#o),this.#o=null),this.#l&&(N(this.#l),this.#l=null),g&&(Y(this.#n),ir(),Y(Mt()));var i=!1,s=!1;const l=()=>{if(i){rr();return}i=!0,s&&nr(),this.#l!==null&&Ce(this.#l,()=>{this.#l=null}),this.#b(()=>{this.#w()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){re(f,this.#s&&this.#s.parent)}r&&(this.#l=this.#b(()=>{try{return Q(()=>{var f=_;f.b=this,f.f|=tt,r(this.#e,()=>a,()=>l)})}catch(f){return re(f,this.#s.parent),null}}))};xe(()=>{var a;try{a=this.transform_error(t)}catch(f){re(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>re(f,this.#s&&this.#s.parent)):o(a)})}}function mr(e,t,n,r){const i=Wt;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=_,o=br(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function f(d){o();try{r(d)}catch(v){(l.f&L)===0&&re(v,l)}Ue()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=Kt();function h(){Promise.all(n.map(d=>wr(d))).then(d=>f([...t.map(i),...d])).catch(d=>re(d,l)).finally(()=>u())}a?a.then(()=>{o(),h(),Ue()}):h()}function br(){var e=_,t=p,n=F,r=w;return function(s=!0){U(e),D(t),ke(n),s&&(e.f&L)===0&&(r?.activate(),r?.apply())}}function Ue(e=!0){U(null),D(null),ke(null),e&&w?.deactivate()}function Kt(){var e=_,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Wt(e){var t=y|T,n=p!==null&&(p.f&y)!==0?p:null;return _!==null&&(_.f|=ae),{ctx:F,deps:null,effects:null,equals:Dt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function wr(e,t,n){let r=_;r===null&&Jn();var i=void 0,s=Ae(E),l=!p,o=new Map;return Dr(()=>{var a=_,f=Nt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Ue)}catch(v){f.reject(v),Ue()}var u=w;if(l){if((a.f&le)!==0)var h=Kt();if(r.b.is_rendered())o.get(u)?.reject(K),o.delete(u);else{for(const v of o.values())v.reject(K);o.clear()}o.set(u,f)}const d=(v,c=void 0)=>{if(h){var m=c===K;h(m)}if(!(c===K||(a.f&L)!==0)){if(u.activate(),c)s.f|=ne,Ge(s,c);else{(s.f&ne)!==0&&(s.f^=ne),Ge(s,v);for(const[$,O]of o){if(o.delete($),$===u)break;O.reject(K)}}u.deactivate()}};f.promise.then(d,v=>d(null,v||"unknown"))}),Nr(()=>{for(const a of o.values())a.reject(K)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function gr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)N(t[n])}}function kr(e){for(var t=e.parent;t!==null;){if((t.f&y)===0)return(t.f&L)===0?t:null;t=t.parent}return null}function ut(e){var t,n=_;U(kr(e));try{e.f&=~fe,gr(e),t=wn(e)}finally{U(n)}return t}function Jt(e){var t=e.v,n=ut(e);if(!e.equals(n)&&(e.wv=mn(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){k(e,x);return}ce||(z!==null?(vt()||w?.is_fork)&&z.set(e,n):ot(e))}function xr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(K),t.teardown=Yn,t.ac=null,De(t,0),_t(t))}function Xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ee(t)}let dt=new Set;const se=new Map;let Zt=!1;function Ae(e,t){var n={f:0,v:e,reactions:null,equals:Dt,rv:0,wv:0};return n}function X(e,t){const n=Ae(e);return Fr(n),n}function yr(e,t=!1,n=!0){const r=Ae(e);return t||(r.equals=lr),r}function q(e,t,n=!1){p!==null&&(!j||(p.f&Ct)!==0)&&Lt()&&(p.f&(y|ee|rt|Ct))!==0&&(I===null||!_e.call(I,e))&&tr();let r=n?Re(t):t;return Ge(e,r,Ve)}function Ge(e,t,n=null){if(!e.equals(t)){var r=e.v;ce?se.set(e,t):se.set(e,r),e.v=t;var i=W.ensure();if(i.capture(e,r),(e.f&y)!==0){const s=e;(e.f&T)!==0&&ut(s),z===null&&ot(s)}e.wv=mn(),Qt(e,T,n),_!==null&&(_.f&x)!==0&&(_.f&(G|te))===0&&(P===null?zr([e]):P.push(e)),!i.is_fork&&dt.size>0&&!Zt&&$r()}return t}function $r(){Zt=!1;for(const e of dt)(e.f&x)!==0&&k(e,B),Me(e)&&Ee(e);dt.clear()}function Ne(e){q(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&T)===0;if(a&&k(l,t),(o&y)!==0){var f=l;z?.delete(f),(o&fe)===0&&(o&M&&(l.f|=fe),Qt(f,B,n))}else if(a){var u=l;(o&ee)!==0&&J!==null&&J.add(u),n!==null?n.push(u):ft(u)}}}function Re(e){if(typeof e!="object"||e===null||it in e)return e;const t=St(e);if(t!==Bn&&t!==Hn)return e;var n=new Map,r=Ln(e),i=X(0),s=ve,l=o=>{if(ve===s)return o();var a=p,f=ve;D(null),_n(s);var u=o();return D(a),_n(f),u};return r&&n.set("length",X(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Qn();var u=n.get(a);return u===void 0?l(()=>{var h=X(f.value);return n.set(a,h),h}):q(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>X(E));n.set(a,u),Ne(i)}}else q(f,E),Ne(i);return!0},get(o,a,f){if(a===it)return e;var u=n.get(a),h=a in o;if(u===void 0&&(!h||me(o,a)?.writable)&&(u=l(()=>{var v=Re(h?o[a]:E),c=X(v);return c}),n.set(a,u)),u!==void 0){var d=S(u);return d===E?void 0:d}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=S(u))}else if(f===void 0){var h=n.get(a),d=h?.v;if(h!==void 0&&d!==E)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(o,a){if(a===it)return!0;var f=n.get(a),u=f!==void 0&&f.v!==E||Reflect.has(o,a);if(f!==void 0||_!==null&&(!u||me(o,a)?.writable)){f===void 0&&(f=l(()=>{var d=u?Re(o[a]):E,v=X(d);return v}),n.set(a,f));var h=S(f);if(h===E)return!1}return u},set(o,a,f,u){var h=n.get(a),d=a in o;if(r&&a==="length")for(var v=f;v<h.v;v+=1){var c=n.get(v+"");c!==void 0?q(c,E):v in o&&(c=l(()=>X(E)),n.set(v+"",c))}if(h===void 0)(!d||me(o,a)?.writable)&&(h=l(()=>X(void 0)),q(h,Re(f)),n.set(a,h));else{d=h.v!==E;var m=l(()=>Re(f));q(h,m)}var $=Reflect.getOwnPropertyDescriptor(o,a);if($?.set&&$.set.call(u,f),!d){if(r&&typeof a=="string"){var O=n.get("length"),oe=Number(a);Number.isInteger(oe)&&oe>=O.v&&q(O,oe+1)}Ne(i)}return!0},ownKeys(o){S(i);var a=Reflect.ownKeys(o).filter(h=>{var d=n.get(h);return d===void 0||d.v!==E});for(var[f,u]of n)u.v!==E&&!(f in o)&&a.push(f);return a},setPrototypeOf(){er()}})}var en,tn,nn,rn;function ct(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=me(t,"firstChild").get,rn=me(t,"nextSibling").get,At(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),At(n)&&(n.__t=void 0)}}function de(e=""){return document.createTextNode(e)}function $e(e){return nn.call(e)}function Z(e){return rn.call(e)}function Ke(e,t){if(!g)return $e(e);var n=$e(b);return n===null&&(n=b.appendChild(de())),Y(n),n}function Er(e,t=!1){if(!g){var n=$e(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t){if(b?.nodeType!==st){var r=de();return b?.before(r),Y(r),r}sn(b)}return b}function Oe(e,t=1,n=!1){let r=g?b:e;for(var i;t--;)i=r,r=Z(r);if(!g)return r;if(n){if(r?.nodeType!==st){var s=de();return r===null?i?.after(s):r.before(s),Y(s),s}sn(r)}return Y(r),r}function Tr(e){e.textContent=""}function Sr(){return!1}function ht(e,t,n){return document.createElementNS(Tt,e,void 0)}function sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===st;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function on(e){var t=p,n=_;D(null),U(null);try{return e()}finally{D(t),U(n)}}function Ar(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=_;n!==null&&(n.f&H)!==0&&(e|=H);var r={ctx:F,deps:null,nodes:null,f:e|T|M,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&be)!==0)ye!==null?ye.push(r):W.ensure().schedule(r);else if(t!==null){try{Ee(r)}catch(l){throw N(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ae)===0&&(i=i.first,(e&ee)!==0&&(e&we)!==0&&i!==null&&(i.f|=we))}if(i!==null&&(i.parent=n,n!==null&&Ar(i,n),p!==null&&(p.f&y)!==0&&(e&te)===0)){var s=p;(s.effects??=[]).push(i)}return r}function vt(){return p!==null&&!j}function Nr(e){const t=V(je,null);return k(t,x),t.teardown=e,t}function Rr(e){return V(be|Un,e)}function Or(e){W.ensure();const t=V(te|ae,e);return()=>{N(t)}}function Cr(e){W.ensure();const t=V(te|ae,e);return(n={})=>new Promise(r=>{n.outro?Ce(t,()=>{N(t),r(void 0)}):(N(t),r(void 0))})}function Mr(e){return V(be,e)}function Dr(e){return V(rt|ae,e)}function ln(e,t=0){return V(je|t,e)}function pt(e,t=[],n=[],r=[]){mr(r,t,n,i=>{V(je,()=>e(...i.map(S)))})}function an(e,t=0){var n=V(ee|t,e);return n}function Q(e){return V(G|ae,e)}function fn(e){var t=e.teardown;if(t!==null){const n=ce,r=p;vn(!0),D(null);try{t.call(null)}finally{vn(n),D(r)}}}function _t(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&on(()=>{i.abort(K)});var r=n.next;(n.f&te)!==0?n.parent=null:N(n,t),n=r}}function Ir(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&G)===0&&N(t),t=n}}function N(e,t=!0){var n=!1;(t||(e.f&Vn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Pr(e.nodes.start,e.nodes.end),n=!0),k(e,Ot),_t(e,t&&!n),De(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();fn(e),e.f^=Ot,e.f|=L;var i=e.parent;i!==null&&i.first!==null&&un(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pr(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function un(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ce(e,t,n=!0){var r=[];dn(e,r,!0);var i=()=>{n&&N(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function dn(e,t,n){if((e.f&H)===0){e.f^=H;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&we)!==0||(i.f&G)!==0&&(e.f&ee)!==0;dn(i,t,l?n:!1),i=s}}}function Lr(e){cn(e,!0)}function cn(e,t){if((e.f&H)!==0){e.f^=H,(e.f&x)===0&&(k(e,T),W.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&we)!==0||(n.f&G)!==0;cn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function hn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Z(n);t.append(n),n=i}}let We=!1,ce=!1;function vn(e){ce=e}let p=null,j=!1;function D(e){p=e}let _=null;function U(e){_=e}let I=null;function Fr(e){p!==null&&(I===null?I=[e]:I.push(e))}let R=null,C=0,P=null;function zr(e){P=e}let pn=1,he=0,ve=he;function _n(e){ve=e}function mn(){return++pn}function Me(e){var t=e.f;if((t&T)!==0)return!0;if(t&y&&(e.f&=~fe),(t&B)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Me(s)&&Jt(s),s.wv>e.wv)return!0}(t&M)!==0&&z===null&&k(e,x)}return!1}function bn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&_e.call(I,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&y)!==0?bn(s,t,!1):t===s&&(n?k(s,T):(s.f&x)!==0&&k(s,B),ft(s))}}function wn(e){var t=R,n=C,r=P,i=p,s=I,l=F,o=j,a=ve,f=e.f;R=null,C=0,P=null,p=(f&(G|te))===0?e:null,I=null,ke(e.ctx),j=!1,ve=++he,e.ac!==null&&(on(()=>{e.ac.abort(K)}),e.ac=null);try{e.f|=nt;var u=e.fn,h=u();e.f|=le;var d=e.deps,v=w?.is_fork;if(R!==null){var c;if(v||De(e,C),d!==null&&C>0)for(d.length=C+R.length,c=0;c<R.length;c++)d[C+c]=R[c];else e.deps=d=R;if(vt()&&(e.f&M)!==0)for(c=C;c<d.length;c++)(d[c].reactions??=[]).push(e)}else!v&&d!==null&&C<d.length&&(De(e,C),d.length=C);if(Lt()&&P!==null&&!j&&d!==null&&(e.f&(y|B|T))===0)for(c=0;c<P.length;c++)bn(P[c],e);if(i!==null&&i!==e){if(he++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=he;if(t!==null)for(const m of t)m.rv=he;P!==null&&(r===null?r=P:r.push(...P))}return(e.f&ne)!==0&&(e.f^=ne),h}catch(m){return zt(m)}finally{e.f^=nt,R=t,C=n,P=r,p=i,I=s,ke(l),j=o,ve=a}}function jr(e,t){let n=t.reactions;if(n!==null){var r=Fn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&y)!==0&&(R===null||!_e.call(R,t))){var s=t;(s.f&M)!==0&&(s.f^=M,s.f&=~fe),ot(s),xr(s),De(s,0)}}function De(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)jr(e,n[r])}function Ee(e){var t=e.f;if((t&L)===0){k(e,x);var n=_,r=We;_=e,We=!0;try{(t&(ee|Rt))!==0?Ir(e):_t(e),fn(e);var i=wn(e);e.teardown=typeof i=="function"?i:null,e.wv=pn;var s;Pn&&ar&&(e.f&T)!==0&&e.deps}finally{We=r,_=n}}}function S(e){var t=e.f,n=(t&y)!==0;if(p!==null&&!j){var r=_!==null&&(_.f&L)!==0;if(!r&&(I===null||!_e.call(I,e))){var i=p.deps;if((p.f&nt)!==0)e.rv<he&&(e.rv=he,R===null&&i!==null&&i[C]===e?C++:R===null?R=[e]:R.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:_e.call(s,p)||s.push(p)}}}if(ce&&se.has(e))return se.get(e);if(n){var l=e;if(ce){var o=l.v;return((l.f&x)===0&&l.reactions!==null||kn(l))&&(o=ut(l)),se.set(l,o),o}var a=(l.f&M)===0&&!j&&p!==null&&(We||(p.f&M)!==0),f=(l.f&le)===0;Me(l)&&(a&&(l.f|=M),Jt(l)),a&&!f&&(Xt(l),gn(l))}if(z?.has(e))return z.get(e);if((e.f&ne)!==0)throw e.v;return e.v}function gn(e){if(e.f|=M,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&y)!==0&&(t.f&M)===0&&(Xt(t),gn(t))}function kn(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&y)!==0&&kn(t))return!0;return!1}function Br(e){var t=j;try{return j=!0,e()}finally{j=t}}const Ie=Symbol("events"),xn=new Set,mt=new Set;function Hr(e,t,n){(t[Ie]??={})[e]=n}function Yr(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of mt)n(e)}let yn=null;function $n(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;yn=e;var l=0,o=yn===e&&e[Ie];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[Ie]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,h=_;D(null),U(null);try{for(var d,v=[];s!==null;){var c=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[Ie]?.[r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch($){d?v.push($):d=$}if(e.cancelBubble||c===t||c===null)break;s=c}if(d){for(let $ of v)queueMicrotask(()=>{throw $});throw d}}finally{e[Ie]=t,delete e.currentTarget,D(u),U(h)}}}const qr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Vr(e){return qr?.createHTML(e)??e}function Ur(e){var t=ht("template");return t.innerHTML=Vr(e.replaceAll("<!>","<!---->")),t.content}function Je(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function bt(e,t){var n=(t&Dn)!==0,r=(t&In)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return Je(b,null),b;i===void 0&&(i=Ur(s?e:"<!>"+e),n||(i=$e(i)));var l=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=$e(l),a=l.lastChild;Je(o,a)}else Je(l,l);return l}}function Xe(e,t){if(g){var n=_;((n.f&le)===0||n.nodes.end===null)&&(n.nodes.end=b),Ye();return}e!==null&&e.before(t)}const Gr=["touchstart","touchmove"];function Kr(e){return Gr.includes(e)}function En(e,t){return Tn(e,t)}function Wr(e,t){ct(),t.intro=t.intro??!1;const n=t.target,r=g,i=b;try{for(var s=$e(n);s&&(s.nodeType!==Be||s.data!==xt);)s=Z(s);if(!s)throw pe;ge(!0),Y(s);const l=Tn(e,{...t,anchor:s});return ge(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==pe&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Zn(),ct(),Tr(n),ge(!1),En(e,t)}finally{ge(r),Y(i)}}const Ze=new Map;function Tn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){ct();var a=void 0,f=Cr(()=>{var u=n??t.appendChild(de());pr(u,{pending:()=>{}},v=>{It({});var c=F;if(s&&(c.c=s),i&&(r.$$events=i),g&&Je(v,null),a=e(v,r)||{},g&&(_.nodes.end=b,b===null||b.nodeType!==Be||b.data!==Et))throw He(),pe;Pt()},o);var h=new Set,d=v=>{for(var c=0;c<v.length;c++){var m=v[c];if(!h.has(m)){h.add(m);var $=Kr(m);for(const Pe of[t,document]){var O=Ze.get(Pe);O===void 0&&(O=new Map,Ze.set(Pe,O));var oe=O.get(m);oe===void 0?(Pe.addEventListener(m,$n,{passive:$}),O.set(m,1)):O.set(m,oe+1)}}}};return d(zn(xn)),mt.add(d),()=>{for(var v of h)for(const $ of[t,document]){var c=Ze.get($),m=c.get(v);--m==0?($.removeEventListener(v,$n),c.delete(v),c.size===0&&Ze.delete($)):c.set(v,m)}mt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return wt.set(a,f),a}let wt=new WeakMap;function Jr(e,t){const n=wt.get(e);return n?(wt.delete(e),n(t)):Promise.resolve()}class Xr{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Lr(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(N(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();hn(l,f),f.append(de()),this.#t.set(s,{effect:l,fragment:f})}else N(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),Ce(l,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(N(i.effect),this.#t.delete(r))};ensure(t,n){var r=w,i=Sr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=de();s.append(l),this.#t.set(t,{effect:Q(()=>n(l)),fragment:s})}else this.#n.set(t,Q(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else g&&(this.anchor=b),this.#r(r)}}function Sn(e,t,n=!1){var r;g&&(r=b,Ye());var i=new Xr(e),s=n?we:0;function l(o,a){if(g){var f=sr(r);if(o!==parseInt(f.substring(1))){var u=Mt();Y(u),i.anchor=u,ge(!1),i.ensure(o,a),ge(!0);return}}i.ensure(o,a)}an(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function Zr(e,t,n,r,i){g&&Ye();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t.children,l=!0),s===void 0||s(e,l?()=>r:r)}function Qr(e){const t={};e.children&&(t.default=!0);for(const n in e.$$slots)t[n]=!0;return t}function ei(e,t){Mr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=ht("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const An=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function ti(e,t,n){var r=e==null?"":""+e;if(n){for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,l=0;(l=r.indexOf(i,l))>=0;){var o=l+s;(l===0||An.includes(r[l-1]))&&(o===r.length||An.includes(r[o]))?r=(l===0?"":r.substring(0,l))+r.substring(o+1):l=o}}return r===""?null:r}function Nn(e,t,n,r,i,s){var l=e.__className;if(g||l!==n||l===void 0){var o=ti(n,r,s);(!g||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}else if(s&&i!==s)for(var a in s){var f=!!s[a];(i==null||f!==!!i[a])&&e.classList.toggle(a,f)}return s}const ni=Symbol("is custom element"),ri=Symbol("is html"),ii=Wn?"link":"LINK";function gt(e,t,n,r){var i=si(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ii)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Kn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&oi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function si(e){return e.__attributes??={[ni]:e.nodeName.includes("-"),[ri]:e.namespaceURI===Tt}}var Rn=new Map;function oi(e){var t=e.getAttribute("is")||e.nodeName,n=Rn.get(t);if(n)return n;Rn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=jn(i);for(var l in r)r[l].set&&n.push(l);i=St(i)}return n}function Qe(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var d=e[t];return d===void 0?l():(s=!0,d)};var f=!1,u=Wt(()=>(f=!1,a())),h=_;return(function(d,v){if(arguments.length>0){const c=v?S(u):d;return q(u,c),f=!0,i!==void 0&&(i=c),d}return ce&&f||(h.f&L)!==0?u.v:S(u)})}function li(e){return new ai(e)}class ai{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=yr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return S(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Gn?!0:(S(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return q(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?Wr:En)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Se(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||ze(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Jr(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let On;typeof HTMLElement=="function"&&(On=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=ht("slot");r!=="default"&&(s.name=r),Xe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=fi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=et(i,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=li({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Or(()=>{ln(()=>{this.$$r=!0;for(const r of Fe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=et(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=et(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Fe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function et(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function fi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ui(e,t,n,r,i,s){let l=class extends On{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Fe(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Fe(t).forEach(o=>{ze(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=et(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=me(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{ze(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}var di=bt('<a class="text-sm font-semibold ms-auto svelte-1exkksu">Clear all</a>'),ci=bt('<div class="dropdown-divider svelte-1exkksu"></div> <div class="dropdown-item py-2 text-center svelte-1exkksu"><a class="font-semibold text-muted text-primary-hover svelte-1exkksu">View all</a></div>',1),hi=bt('<div class="dropdown svelte-1exkksu"><a href="#"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bell-fill svelte-1exkksu" viewBox="0 0 16 16"><path d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zm.995-14.901a1 1 0 1 0-1.99 0A5.002 5.002 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z" class="svelte-1exkksu"></path></svg></a> <div aria-labelledby="dropdown-notifications"><div class="dropdown-item d-flex align-items-center svelte-1exkksu"><h6 class="dropdown-header p-0 m-0 font-semibold svelte-1exkksu">Notifications</h6> <!></div> <!> <!></div></div>');const vi={hash:"svelte-1exkksu",code:`@charset "UTF-8";
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
6
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
7
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
|
|
9
|
+
*/.svelte-1exkksu,
|
|
10
10
|
.svelte-1exkksu::before,
|
|
11
11
|
.svelte-1exkksu::after {box-sizing:border-box;}
|
|
12
12
|
|
|
@@ -108,5 +108,5 @@ svg.svelte-1exkksu {vertical-align:middle;}.svelte-1exkksu::-moz-focus-inner {pa
|
|
|
108
108
|
@media (min-width: 1200px) {
|
|
109
109
|
}
|
|
110
110
|
@media print {
|
|
111
|
-
}.dropdown.svelte-1exkksu {display:inline-block;}.text-xs.svelte-1exkksu {font-size:0.75rem !important;}.text-sm.svelte-1exkksu {font-size:0.875rem !important;}.font-semibold.svelte-1exkksu {font-weight:500 !important;}.text-muted.svelte-1exkksu {--x-text-opacity: 1;}.text-muted.svelte-1exkksu {color:rgba(var(--x-muted-rgb), var(--x-text-opacity)) !important;}.dropdown-menu-end.svelte-1exkksu {left:auto;right:0;}`};function
|
|
111
|
+
}.dropdown.svelte-1exkksu {display:inline-block;}.text-xs.svelte-1exkksu {font-size:0.75rem !important;}.text-sm.svelte-1exkksu {font-size:0.875rem !important;}.font-semibold.svelte-1exkksu {font-weight:500 !important;}.text-muted.svelte-1exkksu {--x-text-opacity: 1;}.text-muted.svelte-1exkksu {color:rgba(var(--x-muted-rgb), var(--x-text-opacity)) !important;}.dropdown-menu-end.svelte-1exkksu {left:auto;right:0;}`};function Cn(e,t){const n=Qr(t);It(t,!0),ei(e,vi);let r=Qe(t,"id",7,""),i=Qe(t,"clearurl",7,""),s=Qe(t,"viewurl",7,""),l=Qe(t,"align",7,"left"),o=X(!1);console.log(n);var a={get id(){return r()},set id(A=""){r(A),Se()},get clearurl(){return i()},set clearurl(A=""){i(A),Se()},get viewurl(){return s()},set viewurl(A=""){s(A),Se()},get align(){return l()},set align(A="left"){l(A),Se()}},f=hi(),u=Ke(f);let h;var d=Oe(u,2);let v;var c=Ke(d),m=Oe(Ke(c),2);{var $=A=>{var Le=di();pt(()=>gt(Le,"href",i())),Xe(A,Le)};Sn(m,A=>{i()&&A($)})}qe(c);var O=Oe(c,2);Zr(O,t,"default",{});var oe=Oe(O,2);{var Pe=A=>{var Le=ci(),Mn=Oe(Er(Le),2),pi=Ke(Mn);qe(Mn),pt(()=>gt(pi,"href",s())),Xe(A,Le)};Sn(oe,A=>{s()&&A(Pe)})}return qe(d),qe(f),pt(()=>{h=Nn(u,1,"nav-link px-3 text-base text-xs text-opacity-70 text-opacity-100-hover svelte-1exkksu",null,h,{show:S(o)}),gt(u,"aria-expanded",S(o)),v=Nn(d,1,"dropdown-menu px-2 svelte-1exkksu",null,v,{show:S(o),"dropdown-menu-end":l()==="right"})}),Hr("click",u,()=>q(o,!S(o))),Xe(e,f),Pt(a)}Yr(["click"]),customElements.define("hb-dropdown-notifications",ui(Cn,{id:{},clearurl:{},viewurl:{},align:{}},["default"],[],{mode:"open"})),kt.Component=Cn,Object.defineProperty(kt,Symbol.toStringTag,{value:"Module"})})(this["dropdown-notifications"]=this["dropdown-notifications"]||{});
|
|
112
112
|
//# sourceMappingURL=main.iife.js.map
|