@htmlbricks/hb-searchbar 0.60.9 → 0.60.10
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 +3 -3
- package/main.iife.js.map +1 -1
- package/manifest.json +21 -1
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +11 -0
- package/types/webcomponent.type.d.ts +1 -0
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const de=1,pe=2,ft=4,_o=8,$o=16,zo=1,jo=2,Se="[",Ce="[!",Be="]",Ir={},C=Symbol(),Eo="http://www.w3.org/1999/xhtml",mt=!1;var Ne=Array.isArray,Ao=Array.prototype.indexOf,Me=Array.from,ve=Object.keys,Pr=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,Ro=Object.getOwnPropertyDescriptors,To=Object.prototype,So=Array.prototype,dt=Object.getPrototypeOf,pt=Object.isExtensible;function vt(r){for(var e=0;e<r.length;e++)r[e]()}function Co(){var r,e,t=new Promise((o,l)=>{r=o,e=l});return{promise:t,resolve:r,reject:e}}const Y=2,Oe=4,Le=8,Fr=16,cr=32,hr=64,xt=128,X=256,xe=512,O=1024,Z=2048,wr=4096,or=8192,Rr=16384,Ge=32768,Ie=65536,ct=1<<17,gt=1<<18,qr=1<<19,Bo=1<<20,Pe=1<<21,De=1<<22,Tr=1<<23,Fe=Symbol("$state"),No=Symbol("legacy props"),Mo=Symbol(""),qe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ut=3,Hr=8;function Oo(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Lo(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Go(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Io(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Do(r){throw new Error("https://svelte.dev/e/effect_orphan")}function Fo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ho(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Uo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ce(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function lr(r){$=r}let E;function W(r){if(r===null)throw ce(),Ir;return E=r}function ge(){return W(ar(E))}function L(r){if($){if(ar(E)!==null)throw ce(),Ir;E=r}}function He(){for(var r=0,e=E;;){if(e.nodeType===Hr){var t=e.data;if(t===Be){if(r===0)return e;r-=1}else(t===Se||t===Ce)&&(r+=1)}var o=ar(e);e.remove(),e=o}}function ht(r){if(!r||r.nodeType!==Hr)throw ce(),Ir;return r.data}function wt(r){return r===this.v}function Yo(r,e){return r!=r?e==e:r!==e||r!==null&&typeof r=="object"||typeof r=="function"}function yt(r){return!Yo(r,this.v)}let Wo=!1,Q=null;function ue(r){Q=r}function kt(r,e=!1,t){Q={p:Q,c:null,e:null,s:r,x:null,l:null}}function _t(r){var e=Q,t=e.e;if(t!==null){e.e=null;for(var o of t)Kt(o)}return r!==void 0&&(e.x=r),Q=e.p,r??{}}function $t(){return!0}const Ko=new WeakMap;function Jo(r){var e=w;if(e===null)return k.f|=Tr,r;if((e.f&Ge)===0){if((e.f&xt)===0)throw!e.parent&&r instanceof Error&&zt(r),r;e.b.error(r)}else Ue(r,e)}function Ue(r,e){for(;e!==null;){if((e.f&xt)!==0)try{e.b.error(r);return}catch(t){r=t}e=e.parent}throw r instanceof Error&&zt(r),r}function zt(r){const e=Ko.get(r);e&&(Pr(r,"message",{value:e.message}),Pr(r,"stack",{value:e.stack}))}const Xo=typeof requestIdleCallback>"u"?r=>setTimeout(r,1):requestIdleCallback;let Qr=[],re=[];function jt(){var r=Qr;Qr=[],vt(r)}function Et(){var r=re;re=[],vt(r)}function At(r){Qr.length===0&&queueMicrotask(jt),Qr.push(r)}function Zo(r){re.length===0&&Xo(Et),re.push(r)}function Qo(){Qr.length>0&&jt(),re.length>0&&Et()}function rl(){const r=w.b;return r===null&&Oo(),r}function he(r){var e=Y|Z,t=k!==null&&(k.f&Y)!==0?k:null;return w===null||t!==null&&(t.f&X)!==0?e|=X:w.f|=qr,{ctx:Q,deps:null,effects:null,equals:wt,f:e,fn:r,reactions:null,rv:0,v:C,wv:0,parent:t??w,ac:null}}function el(r,e){let t=w;t===null&&Go();var o=t.b,l=void 0,i=ee(C),n=null,s=!k;return vl(()=>{try{var a=r();n&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var b=()=>a;l=n?.then(b,b)??Promise.resolve(a),n=l;var m=A,p=o.is_pending();s&&(o.update_pending_count(1),p||m.increment());const x=(v,f=void 0)=>{n=null,p||m.activate(),f?f!==qe&&(i.f|=Tr,te(i,f)):((i.f&Tr)!==0&&(i.f^=Tr),te(i,v)),s&&(o.update_pending_count(-1),p||m.decrement()),Ct()};if(l.then(x,v=>x(null,v||"unknown")),m)return()=>{queueMicrotask(()=>m.neuter())}}),new Promise(a=>{function b(m){function p(){m===l?a(i):b(l)}m.then(p,p)}b(l)})}function Rt(r){const e=he(r);return lo(e),e}function tl(r){const e=he(r);return e.equals=yt,e}function Tt(r){var e=r.effects;if(e!==null){r.effects=null;for(var t=0;t<e.length;t+=1)fr(e[t])}}function ol(r){for(var e=r.parent;e!==null;){if((e.f&Y)===0)return e;e=e.parent}return null}function Ve(r){var e,t=w;$r(ol(r));try{Tt(r),e=bo(r)}finally{$r(t)}return e}function St(r){var e=Ve(r);if(r.equals(e)||(r.v=e,r.wv=so()),!Mr){var t=(zr||(r.f&X)!==0)&&r.deps!==null?wr:O;U(r,t)}}function ll(r,e,t){const o=he;if(e.length===0){t(r.map(o));return}var l=A,i=w,n=il(),s=rl();Promise.all(e.map(a=>el(a))).then(a=>{l?.activate(),n();try{t([...r.map(o),...a])}catch(b){(i.f&Rr)===0&&Ue(b,i)}l?.deactivate(),Ct()}).catch(a=>{s.error(a)})}function il(){var r=w,e=k,t=Q,o=A;return function(){$r(r),dr(e),ue(t),o?.activate()}}function Ct(){$r(null),dr(null),ue(null)}const Ye=new Set;let A=null,we=null,Bt=new Set,ye=[];function Nt(){const r=ye.shift();ye.length>0&&queueMicrotask(Nt),r()}let Sr=[],ke=null,We=!1,_e=!1;class Cr{current=new Map;#e=new Map;#r=new Set;#t=0;#b=null;#f=!1;#l=[];#n=[];#i=[];#o=[];#s=[];#m=[];#d=[];skipped_effects=new Set;process(e){Sr=[],we=null;for(const l of e)this.#v(l);if(this.#l.length===0&&this.#t===0){this.#p();var t=this.#i,o=this.#o;this.#i=[],this.#o=[],this.#s=[],we=A,A=null,Ot(t),Ot(o),A===null?A=this:Ye.delete(this),this.#b?.resolve()}else this.#a(this.#i),this.#a(this.#o),this.#a(this.#s);for(const l of this.#l)Wr(l);for(const l of this.#n)Wr(l);this.#l=[],this.#n=[]}#v(e){e.f^=O;for(var t=e.first;t!==null;){var o=t.f,l=(o&(cr|hr))!==0,i=l&&(o&O)!==0,n=i||(o&or)!==0||this.skipped_effects.has(t);if(!n&&t.fn!==null){if(l)t.f^=O;else if((o&Oe)!==0)this.#o.push(t);else if((o&O)===0)if((o&De)!==0){var s=t.b?.is_pending()?this.#n:this.#l;s.push(t)}else ze(t)&&((t.f&Fr)!==0&&this.#s.push(t),Wr(t));var a=t.first;if(a!==null){t=a;continue}}var b=t.parent;for(t=t.next;t===null&&b!==null;)t=b.next,b=b.parent}}#a(e){for(const t of e)((t.f&Z)!==0?this.#m:this.#d).push(t),U(t,O);e.length=0}capture(e,t){this.#e.has(e)||this.#e.set(e,t),this.current.set(e,e.v)}activate(){A=this}deactivate(){A=null,we=null;for(const e of Bt)if(Bt.delete(e),e(),A!==null)break}neuter(){this.#f=!0}flush(){Sr.length>0?Mt():this.#p(),A===this&&(this.#t===0&&Ye.delete(this),this.deactivate())}#p(){if(!this.#f)for(const e of this.#r)e();this.#r.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#m)U(e,Z),Ur(e);for(const e of this.#d)U(e,wr),Ur(e);this.#i=[],this.#o=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#b??=Co()).promise}static ensure(){if(A===null){const e=A=new Cr;Ye.add(A),_e||Cr.enqueue(()=>{A===e&&e.flush()})}return A}static enqueue(e){ye.length===0&&queueMicrotask(Nt),ye.unshift(e)}}function Br(r){var e=_e;_e=!0;try{for(var t;;){if(Qo(),Sr.length===0&&(A?.flush(),Sr.length===0))return ke=null,t;Mt()}}finally{_e=e}}function Mt(){var r=Yr;We=!0;try{var e=0;for(to(!0);Sr.length>0;){var t=Cr.ensure();if(e++>1e3){var o,l;nl()}t.process(Sr),yr.clear()}}finally{We=!1,to(r),ke=null}}function nl(){try{Fo()}catch(r){Ue(r,ke)}}let Nr=null;function Ot(r){var e=r.length;if(e!==0){for(var t=0;t<e;){var o=r[t++];if((o.f&(Rr|or))===0&&ze(o)&&(Nr=[],Wr(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null&&o.ac===null?Qt(o):o.fn=null),Nr?.length>0)){yr.clear();for(const l of Nr)Wr(l);Nr=[]}}Nr=null}}function Ur(r){for(var e=ke=r;e.parent!==null;){e=e.parent;var t=e.f;if(We&&e===w&&(t&Fr)!==0)return;if((t&(hr|cr))!==0){if((t&O)===0)return;e.f^=O}}Sr.push(e)}const yr=new Map;function ee(r,e){var t={f:0,v:r,reactions:null,equals:wt,rv:0,wv:0};return t}function ir(r,e){const t=ee(r);return lo(t),t}function Lt(r,e=!1,t=!0){const o=ee(r);return e||(o.equals=yt),o}function G(r,e,t=!1){k!==null&&(!mr||(k.f&ct)!==0)&&$t()&&(k.f&(Y|Fr|De|ct))!==0&&!gr?.includes(r)&&Vo();let o=t?oe(e):e;return te(r,o)}function te(r,e){if(!r.equals(e)){var t=r.v;Mr?yr.set(r,e):yr.set(r,t),r.v=e;var o=Cr.ensure();o.capture(r,t),(r.f&Y)!==0&&((r.f&Z)!==0&&Ve(r),U(r,(r.f&X)===0?O:wr)),r.wv=so(),Gt(r,Z),w!==null&&(w.f&O)!==0&&(w.f&(cr|hr))===0&&(rr===null?gl([r]):rr.push(r))}return e}function Ke(r){G(r,r.v+1)}function Gt(r,e){var t=r.reactions;if(t!==null)for(var o=t.length,l=0;l<o;l++){var i=t[l],n=i.f,s=(n&Z)===0;s&&U(i,e),(n&Y)!==0?Gt(i,wr):s&&((n&Fr)!==0&&Nr!==null&&Nr.push(i),Ur(i))}}function oe(r){if(typeof r!="object"||r===null||Fe in r)return r;const e=dt(r);if(e!==To&&e!==So)return r;var t=new Map,o=Ne(r),l=ir(0),i=Or,n=s=>{if(Or===i)return s();var a=k,b=Or;dr(null),no(i);var m=s();return dr(a),no(b),m};return o&&t.set("length",ir(r.length)),new Proxy(r,{defineProperty(s,a,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Ho();var m=t.get(a);return m===void 0?m=n(()=>{var p=ir(b.value);return t.set(a,p),p}):G(m,b.value,!0),!0},deleteProperty(s,a){var b=t.get(a);if(b===void 0){if(a in s){const m=n(()=>ir(C));t.set(a,m),Ke(l)}}else G(b,C),Ke(l);return!0},get(s,a,b){if(a===Fe)return r;var m=t.get(a),p=a in s;if(m===void 0&&(!p||Dr(s,a)?.writable)&&(m=n(()=>{var v=oe(p?s[a]:C),f=ir(v);return f}),t.set(a,m)),m!==void 0){var x=d(m);return x===C?void 0:x}return Reflect.get(s,a,b)},getOwnPropertyDescriptor(s,a){var b=Reflect.getOwnPropertyDescriptor(s,a);if(b&&"value"in b){var m=t.get(a);m&&(b.value=d(m))}else if(b===void 0){var p=t.get(a),x=p?.v;if(p!==void 0&&x!==C)return{enumerable:!0,configurable:!0,value:x,writable:!0}}return b},has(s,a){if(a===Fe)return!0;var b=t.get(a),m=b!==void 0&&b.v!==C||Reflect.has(s,a);if(b!==void 0||w!==null&&(!m||Dr(s,a)?.writable)){b===void 0&&(b=n(()=>{var x=m?oe(s[a]):C,v=ir(x);return v}),t.set(a,b));var p=d(b);if(p===C)return!1}return m},set(s,a,b,m){var p=t.get(a),x=a in s;if(o&&a==="length")for(var v=b;v<p.v;v+=1){var f=t.get(v+"");f!==void 0?G(f,C):v in s&&(f=n(()=>ir(C)),t.set(v+"",f))}if(p===void 0)(!x||Dr(s,a)?.writable)&&(p=n(()=>ir(void 0)),G(p,oe(b)),t.set(a,p));else{x=p.v!==C;var u=n(()=>oe(b));G(p,u)}var h=Reflect.getOwnPropertyDescriptor(s,a);if(h?.set&&h.set.call(m,b),!x){if(o&&typeof a=="string"){var j=t.get("length"),y=Number(a);Number.isInteger(y)&&y>=j.v&&G(j,y+1)}Ke(l)}return!0},ownKeys(s){d(l);var a=Reflect.ownKeys(s).filter(p=>{var x=t.get(p);return x===void 0||x.v!==C});for(var[b,m]of t)m.v!==C&&!(b in s)&&a.push(b);return a},setPrototypeOf(){Uo()}})}var It,Pt,Dt,Ft;function Je(){if(It===void 0){It=window,Pt=/Firefox/.test(navigator.userAgent);var r=Element.prototype,e=Node.prototype,t=Text.prototype;Dt=Dr(e,"firstChild").get,Ft=Dr(e,"nextSibling").get,pt(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),pt(t)&&(t.__t=void 0)}}function kr(r=""){return document.createTextNode(r)}function _r(r){return Dt.call(r)}function ar(r){return Ft.call(r)}function D(r,e){if(!$)return _r(r);var t=_r(E);if(t===null)t=E.appendChild(kr());else if(e&&t.nodeType!==ut){var o=kr();return t?.before(o),W(o),o}return W(t),t}function qt(r,e){if(!$){var t=_r(r);return t instanceof Comment&&t.data===""?ar(t):t}return E}function K(r,e=1,t=!1){let o=$?E:r;for(var l;e--;)l=o,o=ar(o);if(!$)return o;if(t&&o?.nodeType!==ut){var i=kr();return o===null?l?.after(i):o.before(i),W(i),i}return W(o),o}function Ht(r){r.textContent=""}function Ut(){return!1}let Vt=!1;function Yt(){Vt||(Vt=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const e of r.target.elements)e.__on_r?.()})},{capture:!0}))}function $e(r){var e=k,t=w;dr(null),$r(null);try{return r()}finally{dr(e),$r(t)}}function sl(r,e,t,o=t){r.addEventListener(e,()=>$e(t));const l=r.__on_r;l?r.__on_r=()=>{l(),o(!0)}:r.__on_r=()=>o(!0),Yt()}function al(r){w===null&&k===null&&Do(),k!==null&&(k.f&X)!==0&&w===null&&Po(),Mr&&Io()}function bl(r,e){var t=e.last;t===null?e.last=e.first=r:(t.next=r,r.prev=t,e.last=r)}function br(r,e,t,o=!0){var l=w;l!==null&&(l.f&or)!==0&&(r|=or);var i={ctx:Q,deps:null,nodes_start:null,nodes_end:null,f:r|Z,first:null,fn:e,last:null,next:null,parent:l,b:l&&l.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(t)try{Wr(i),i.f|=Ge}catch(a){throw fr(i),a}else e!==null&&Ur(i);if(o){var n=i;if(t&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&qr)===0&&(n=n.first),n!==null&&(n.parent=l,l!==null&&bl(n,l),k!==null&&(k.f&Y)!==0&&(r&hr)===0)){var s=k;(s.effects??=[]).push(n)}}return i}function fl(r){const e=br(Le,null,!1);return U(e,O),e.teardown=r,e}function Wt(r){al();var e=w.f,t=!k&&(e&cr)!==0&&(e&Ge)===0;if(t){var o=Q;(o.e??=[]).push(r)}else return Kt(r)}function Kt(r){return br(Oe|Bo,r,!1)}function ml(r){Cr.ensure();const e=br(hr|qr,r,!0);return()=>{fr(e)}}function dl(r){Cr.ensure();const e=br(hr|qr,r,!0);return(t={})=>new Promise(o=>{t.outro?Ze(e,()=>{fr(e),o(void 0)}):(fr(e),o(void 0))})}function pl(r){return br(Oe,r,!1)}function vl(r){return br(De|qr,r,!0)}function Jt(r,e=0){return br(Le|e,r,!0)}function nr(r,e=[],t=[]){ll(e,t,o=>{br(Le,()=>r(...o.map(d)),!0)})}function Xe(r,e=0){var t=br(Fr|e,r,!0);return t}function Vr(r,e=!0){return br(cr|qr,r,!0,e)}function Xt(r){var e=r.teardown;if(e!==null){const t=Mr,o=k;oo(!0),dr(null);try{e.call(null)}finally{oo(t),dr(o)}}}function Zt(r,e=!1){var t=r.first;for(r.first=r.last=null;t!==null;){const l=t.ac;l!==null&&$e(()=>{l.abort(qe)});var o=t.next;(t.f&hr)!==0?t.parent=null:fr(t,e),t=o}}function xl(r){for(var e=r.first;e!==null;){var t=e.next;(e.f&cr)===0&&fr(e),e=t}}function fr(r,e=!0){var t=!1;(e||(r.f>)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(cl(r.nodes_start,r.nodes_end),t=!0),Zt(r,e&&!t),je(r,0),U(r,Rr);var o=r.transitions;if(o!==null)for(const i of o)i.stop();Xt(r);var l=r.parent;l!==null&&l.first!==null&&Qt(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function cl(r,e){for(;r!==null;){var t=r===e?null:ar(r);r.remove(),r=t}}function Qt(r){var e=r.parent,t=r.prev,o=r.next;t!==null&&(t.next=o),o!==null&&(o.prev=t),e!==null&&(e.first===r&&(e.first=o),e.last===r&&(e.last=t))}function Ze(r,e){var t=[];Qe(r,t,!0),ro(t,()=>{fr(r),e&&e()})}function ro(r,e){var t=r.length;if(t>0){var o=()=>--t||e();for(var l of r)l.out(o)}else e()}function Qe(r,e,t){if((r.f&or)===0){if(r.f^=or,r.transitions!==null)for(const n of r.transitions)(n.is_global||t)&&e.push(n);for(var o=r.first;o!==null;){var l=o.next,i=(o.f&Ie)!==0||(o.f&cr)!==0;Qe(o,e,i?t:!1),o=l}}}function rt(r){eo(r,!0)}function eo(r,e){if((r.f&or)!==0){r.f^=or,(r.f&O)===0&&(U(r,Z),Ur(r));for(var t=r.first;t!==null;){var o=t.next,l=(t.f&Ie)!==0||(t.f&cr)!==0;eo(t,l?e:!1),t=o}if(r.transitions!==null)for(const i of r.transitions)(i.is_global||e)&&i.in()}}let Yr=!1;function to(r){Yr=r}let Mr=!1;function oo(r){Mr=r}let k=null,mr=!1;function dr(r){k=r}let w=null;function $r(r){w=r}let gr=null;function lo(r){k!==null&&(gr===null?gr=[r]:gr.push(r))}let F=null,J=0,rr=null;function gl(r){rr=r}let io=1,le=0,Or=le;function no(r){Or=r}let zr=!1;function so(){return++io}function ze(r){var e=r.f;if((e&Z)!==0)return!0;if((e&wr)!==0){var t=r.deps,o=(e&X)!==0;if(t!==null){var l,i,n=(e&xe)!==0,s=o&&w!==null&&!zr,a=t.length;if((n||s)&&(w===null||(w.f&Rr)===0)){var b=r,m=b.parent;for(l=0;l<a;l++)i=t[l],(n||!i?.reactions?.includes(b))&&(i.reactions??=[]).push(b);n&&(b.f^=xe),s&&m!==null&&(m.f&X)===0&&(b.f^=X)}for(l=0;l<a;l++)if(i=t[l],ze(i)&&St(i),i.wv>r.wv)return!0}(!o||w!==null&&!zr)&&U(r,O)}return!1}function ao(r,e,t=!0){var o=r.reactions;if(o!==null&&!gr?.includes(r))for(var l=0;l<o.length;l++){var i=o[l];(i.f&Y)!==0?ao(i,e,!1):e===i&&(t?U(i,Z):(i.f&O)!==0&&U(i,wr),Ur(i))}}function bo(r){var e=F,t=J,o=rr,l=k,i=zr,n=gr,s=Q,a=mr,b=Or,m=r.f;F=null,J=0,rr=null,zr=(m&X)!==0&&(mr||!Yr||k===null),k=(m&(cr|hr))===0?r:null,gr=null,ue(r.ctx),mr=!1,Or=++le,r.ac!==null&&($e(()=>{r.ac.abort(qe)}),r.ac=null);try{r.f|=Pe;var p=r.fn,x=p(),v=r.deps;if(F!==null){var f;if(je(r,J),v!==null&&J>0)for(v.length=J+F.length,f=0;f<F.length;f++)v[J+f]=F[f];else r.deps=v=F;if(!zr||(m&Y)!==0&&r.reactions!==null)for(f=J;f<v.length;f++)(v[f].reactions??=[]).push(r)}else v!==null&&J<v.length&&(je(r,J),v.length=J);if($t()&&rr!==null&&!mr&&v!==null&&(r.f&(Y|wr|Z))===0)for(f=0;f<rr.length;f++)ao(rr[f],r);return l!==null&&l!==r&&(le++,rr!==null&&(o===null?o=rr:o.push(...rr))),(r.f&Tr)!==0&&(r.f^=Tr),x}catch(u){return Jo(u)}finally{r.f^=Pe,F=e,J=t,rr=o,k=l,zr=i,gr=n,ue(s),mr=a,Or=b}}function ul(r,e){let t=e.reactions;if(t!==null){var o=Ao.call(t,r);if(o!==-1){var l=t.length-1;l===0?t=e.reactions=null:(t[o]=t[l],t.pop())}}t===null&&(e.f&Y)!==0&&(F===null||!F.includes(e))&&(U(e,wr),(e.f&(X|xe))===0&&(e.f^=xe),Tt(e),je(e,0))}function je(r,e){var t=r.deps;if(t!==null)for(var o=e;o<t.length;o++)ul(r,t[o])}function Wr(r){var e=r.f;if((e&Rr)===0){U(r,O);var t=w,o=Yr;w=r,Yr=!0;try{(e&Fr)!==0?xl(r):Zt(r),Xt(r);var l=bo(r);r.teardown=typeof l=="function"?l:null,r.wv=io;var i;mt&&Wo&&(r.f&Z)!==0&&r.deps}finally{Yr=o,w=t}}}async function hl(){await Promise.resolve(),Br()}function d(r){var e=r.f,t=(e&Y)!==0;if(k!==null&&!mr){var o=w!==null&&(w.f&Rr)!==0;if(!o&&!gr?.includes(r)){var l=k.deps;if((k.f&Pe)!==0)r.rv<le&&(r.rv=le,F===null&&l!==null&&l[J]===r?J++:F===null?F=[r]:(!zr||!F.includes(r))&&F.push(r));else{(k.deps??=[]).push(r);var i=r.reactions;i===null?r.reactions=[k]:i.includes(k)||i.push(k)}}}else if(t&&r.deps===null&&r.effects===null){var n=r,s=n.parent;s!==null&&(s.f&X)===0&&(n.f^=X)}if(Mr){if(yr.has(r))return yr.get(r);if(t){n=r;var a=n.v;return((n.f&O)===0&&n.reactions!==null||fo(n))&&(a=Ve(n)),yr.set(n,a),a}}else t&&(n=r,ze(n)&&St(n));if((r.f&Tr)!==0)throw r.v;return r.v}function fo(r){if(r.v===C)return!0;if(r.deps===null)return!1;for(const e of r.deps)if(yr.has(e)||(e.f&Y)!==0&&fo(e))return!0;return!1}function mo(r){var e=mr;try{return mr=!0,r()}finally{mr=e}}const wl=-7169;function U(r,e){r.f=r.f&wl|e}const po=new Set,et=new Set;function yl(r,e,t,o={}){function l(i){if(o.capture||ie.call(e,i),!i.cancelBubble)return $e(()=>t?.call(this,i))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?At(()=>{e.addEventListener(r,l,o)}):e.addEventListener(r,l,o),l}function kl(r,e,t,o,l){var i={capture:o,passive:l},n=yl(r,e,t,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fl(()=>{e.removeEventListener(r,n,i)})}function _l(r){for(var e=0;e<r.length;e++)po.add(r[e]);for(var t of et)t(r)}let vo=null;function ie(r){var e=this,t=e.ownerDocument,o=r.type,l=r.composedPath?.()||[],i=l[0]||r.target;vo=r;var n=0,s=vo===r&&r.__root;if(s){var a=l.indexOf(s);if(a!==-1&&(e===document||e===window)){r.__root=e;return}var b=l.indexOf(e);if(b===-1)return;a<=b&&(n=a)}if(i=l[n]||r.target,i!==e){Pr(r,"currentTarget",{configurable:!0,get(){return i||t}});var m=k,p=w;dr(null),$r(null);try{for(var x,v=[];i!==null;){var f=i.assignedSlot||i.parentNode||i.host||null;try{var u=i["__"+o];if(u!=null&&(!i.disabled||r.target===i))if(Ne(u)){var[h,...j]=u;h.apply(i,[r,...j])}else u.call(i,r)}catch(y){x?v.push(y):x=y}if(r.cancelBubble||f===e||f===null)break;i=f}if(x){for(let y of v)queueMicrotask(()=>{throw y});throw x}}finally{r.__root=e,delete r.currentTarget,dr(m),$r(p)}}}let er;function $l(){er=void 0}function zl(r){let e=null,t=$;var o;if($){for(e=E,er===void 0&&(er=_r(document.head));er!==null&&(er.nodeType!==Hr||er.data!==Se);)er=ar(er);er===null?lr(!1):er=W(ar(er))}$||(o=document.head.appendChild(kr()));try{Xe(()=>r(o),gt)}finally{t&&(lr(!0),er=E,W(e))}}function jl(r){var e=document.createElement("template");return e.innerHTML=r.replaceAll("<!>","<!---->"),e.content}function Ee(r,e){var t=w;t.nodes_start===null&&(t.nodes_start=r,t.nodes_end=e)}function I(r,e){var t=(e&zo)!==0,o=(e&jo)!==0,l,i=!r.startsWith("<!>");return()=>{if($)return Ee(E,null),E;l===void 0&&(l=jl(i?r:"<!>"+r),t||(l=_r(l)));var n=o||Pt?document.importNode(l,!0):l.cloneNode(!0);if(t){var s=_r(n),a=n.lastChild;Ee(s,a)}else Ee(n,n);return n}}function B(r,e){if($){w.nodes_end=E,ge();return}r!==null&&r.before(e)}const El=["touchstart","touchmove"];function Al(r){return El.includes(r)}function Kr(r,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(r.__t??=r.nodeValue)&&(r.__t=t,r.nodeValue=t+"")}function xo(r,e){return co(r,e)}function Rl(r,e){Je(),e.intro=e.intro??!1;const t=e.target,o=$,l=E;try{for(var i=_r(t);i&&(i.nodeType!==Hr||i.data!==Se);)i=ar(i);if(!i)throw Ir;lr(!0),W(i),ge();const n=co(r,{...e,anchor:i});if(E===null||E.nodeType!==Hr||E.data!==Be)throw ce(),Ir;return lr(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
|
|
2
|
-
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw n;return n!==Ir&&console.warn("Failed to hydrate: ",n),e.recover===!1&&qo(),Je(),Ht(t),lr(!1),xo(r,e)}finally{lr(o),W(l),$l()}}const Jr=new Map;function co(r,{target:e,anchor:t,props:o={},events:l,context:i,intro:n=!0}){Je();var s=new Set,a=p=>{for(var x=0;x<p.length;x++){var v=p[x];if(!s.has(v)){s.add(v);var f=Al(v);e.addEventListener(v,ie,{passive:f});var u=Jr.get(v);u===void 0?(document.addEventListener(v,ie,{passive:f}),Jr.set(v,1)):Jr.set(v,u+1)}}};a(Me(po)),et.add(a);var b=void 0,m=dl(()=>{var p=t??e.appendChild(kr());return Vr(()=>{if(i){kt({});var x=Q;x.c=i}l&&(o.$$events=l),$&&Ee(p,null),b=r(p,o)||{},$&&(w.nodes_end=E),i&&_t()}),()=>{for(var x of s){e.removeEventListener(x,ie);var v=Jr.get(x);--v===0?(document.removeEventListener(x,ie),Jr.delete(x)):Jr.set(x,v)}et.delete(a),p!==t&&p.parentNode?.removeChild(p)}});return tt.set(b,m),b}let tt=new WeakMap;function Tl(r,e){const t=tt.get(r);return t?(tt.delete(r),t(e)):Promise.resolve()}function Sl(r){Q===null&&Lo(),Wt(()=>{const e=mo(r);if(typeof e=="function")return e})}function sr(r,e,t=!1){$&&ge();var o=r,l=null,i=null,n=C,s=t?Ie:0,a=!1;const b=(v,f=!0)=>{a=!0,x(f,v)};var m=null;function p(){m!==null&&(m.lastChild.remove(),o.before(m),m=null);var v=n?l:i,f=n?i:l;v&&rt(v),f&&Ze(f,()=>{n?i=null:l=null})}const x=(v,f)=>{if(n===(n=v))return;let u=!1;if($){const T=ht(o)===Ce;!!n===T&&(o=He(),W(o),lr(!1),u=!0)}var h=Ut(),j=o;if(h&&(m=document.createDocumentFragment(),m.append(j=kr())),n?l??=f&&Vr(()=>f(j)):i??=f&&Vr(()=>f(j)),h){var y=A,q=n?l:i,H=n?i:l;q&&y.skipped_effects.delete(q),H&&y.skipped_effects.add(H),y.add_callback(p)}else p();u&&lr(!0)};Xe(()=>{a=!1,e(b),a||x(null,null)},s),$&&(o=E)}function Cl(r,e){return e}function Bl(r,e,t){for(var o=r.items,l=[],i=e.length,n=0;n<i;n++)Qe(e[n].e,l,!0);var s=i>0&&l.length===0&&t!==null;if(s){var a=t.parentNode;Ht(a),a.append(t),o.clear(),pr(r,e[0].prev,e[i-1].next)}ro(l,()=>{for(var b=0;b<i;b++){var m=e[b];s||(o.delete(m.k),pr(r,m.prev,m.next)),fr(m.e,!s)}})}function go(r,e,t,o,l,i=null){var n=r,s={flags:e,items:new Map,first:null},a=(e&ft)!==0;if(a){var b=r;n=$?W(_r(b)):b.appendChild(kr())}$&&ge();var m=null,p=!1,x=new Map,v=tl(()=>{var j=t();return Ne(j)?j:j==null?[]:Me(j)}),f,u;function h(){Nl(u,f,s,x,n,l,e,o,t),i!==null&&(f.length===0?m?rt(m):m=Vr(()=>i(n)):m!==null&&Ze(m,()=>{m=null}))}Xe(()=>{u??=w,f=d(v);var j=f.length;if(p&&j===0)return;p=j===0;let y=!1;if($){var q=ht(n)===Ce;q!==(j===0)&&(n=He(),W(n),lr(!1),y=!0)}if($){for(var H=null,T,c=0;c<j;c++){if(E.nodeType===Hr&&E.data===Be){n=E,y=!0,lr(!1);break}var _=f[c],N=o(_,c);T=ot(E,s,H,null,_,N,c,l,e,t),s.items.set(N,T),H=T}j>0&&W(He())}if($)j===0&&i&&(m=Vr(()=>i(n)));else if(Ut()){var Lr=new Set,Xr=A;for(c=0;c<j;c+=1){_=f[c],N=o(_,c);var g=s.items.get(N)??x.get(N);g?(e&(de|pe))!==0&&uo(g,_,c,e):(T=ot(null,s,null,null,_,N,c,l,e,t,!0),x.set(N,T)),Lr.add(N)}for(const[S,xr]of s.items)Lr.has(S)||Xr.skipped_effects.add(xr.e);Xr.add_callback(h)}else h();y&&lr(!0),d(v)}),$&&(n=E)}function Nl(r,e,t,o,l,i,n,s,a){var b=(n&_o)!==0,m=(n&(de|pe))!==0,p=e.length,x=t.items,v=t.first,f=v,u,h=null,j,y=[],q=[],H,T,c,_;if(b)for(_=0;_<p;_+=1)H=e[_],T=s(H,_),c=x.get(T),c!==void 0&&(c.a?.measure(),(j??=new Set).add(c));for(_=0;_<p;_+=1){if(H=e[_],T=s(H,_),c=x.get(T),c===void 0){var N=o.get(T);if(N!==void 0){o.delete(T),x.set(T,N);var Lr=h?h.next:f;pr(t,h,N),pr(t,N,Lr),lt(N,Lr,l),h=N}else{var Xr=f?f.e.nodes_start:l;h=ot(Xr,t,h,h===null?t.first:h.next,H,T,_,i,n,a)}x.set(T,h),y=[],q=[],f=h.next;continue}if(m&&uo(c,H,_,n),(c.e.f&or)!==0&&(rt(c.e),b&&(c.a?.unfix(),(j??=new Set).delete(c))),c!==f){if(u!==void 0&&u.has(c)){if(y.length<q.length){var g=q[0],S;h=g.prev;var xr=y[0],ur=y[y.length-1];for(S=0;S<y.length;S+=1)lt(y[S],g,l);for(S=0;S<q.length;S+=1)u.delete(q[S]);pr(t,xr.prev,ur.next),pr(t,h,xr),pr(t,ur,g),f=g,h=ur,_-=1,y=[],q=[]}else u.delete(c),lt(c,f,l),pr(t,c.prev,c.next),pr(t,c,h===null?t.first:h.next),pr(t,h,c),h=c;continue}for(y=[],q=[];f!==null&&f.k!==T;)(f.e.f&or)===0&&(u??=new Set).add(f),q.push(f),f=f.next;if(f===null)continue;c=f}y.push(c),h=c,f=c.next}if(f!==null||u!==void 0){for(var z=u===void 0?[]:Me(u);f!==null;)(f.e.f&or)===0&&z.push(f),f=f.next;var se=z.length;if(se>0){var Te=(n&ft)!==0&&p===0?l:null;if(b){for(_=0;_<se;_+=1)z[_].a?.measure();for(_=0;_<se;_+=1)z[_].a?.fix()}Bl(t,z,Te)}}b&&At(()=>{if(j!==void 0)for(c of j)c.a?.apply()}),r.first=t.first&&t.first.e,r.last=h&&h.e;for(var ae of o.values())fr(ae.e);o.clear()}function uo(r,e,t,o){(o&de)!==0&&te(r.v,e),(o&pe)!==0?te(r.i,t):r.i=t}function ot(r,e,t,o,l,i,n,s,a,b,m){var p=(a&de)!==0,x=(a&$o)===0,v=p?x?Lt(l,!1,!1):ee(l):l,f=(a&pe)===0?n:ee(n),u={i:f,v,k:i,a:null,e:null,prev:t,next:o};try{if(r===null){var h=document.createDocumentFragment();h.append(r=kr())}return u.e=Vr(()=>s(r,v,f,b),$),u.e.prev=t&&t.e,u.e.next=o&&o.e,t===null?m||(e.first=u):(t.next=u,t.e.next=u.e),o!==null&&(o.prev=u,o.e.prev=u.e),u}finally{}}function lt(r,e,t){for(var o=r.next?r.next.e.nodes_start:t,l=e?e.e.nodes_start:t,i=r.e.nodes_start;i!==null&&i!==o;){var n=ar(i);l.before(i),i=n}}function pr(r,e,t){e===null?r.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ml(r,e){pl(()=>{var t=r.getRootNode(),o=t.host?t:t.head??t.ownerDocument.head;if(!o.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l)}})}function Ol(r,e,t){var o=r==null?"":""+r;return o=o?o+" "+e:e,o===""?null:o}function Ll(r,e){return r==null?null:String(r)}function vr(r,e,t,o,l,i){var n=r.__className;if($||n!==t||n===void 0){var s=Ol(t,o);(!$||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):r.className=s),r.__className=t}return i}function Gl(r,e,t,o){var l=r.__style;if($||l!==e){var i=Ll(e);(!$||i!==r.getAttribute("style"))&&(i==null?r.removeAttribute("style"):r.style.cssText=i),r.__style=e}return o}const Il=Symbol("is custom element"),Pl=Symbol("is html");function Dl(r){if($){var e=!1,t=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var o=r.value;Ae(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var l=r.checked;Ae(r,"checked",null),r.checked=l}}};r.__on_r=t,Zo(t),Yt()}}function Ae(r,e,t,o){var l=Fl(r);$&&(l[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName==="LINK")||l[e]!==(l[e]=t)&&(e==="loading"&&(r[Mo]=t),t==null?r.removeAttribute(e):typeof t!="string"&&ql(r).includes(e)?r[e]=t:r.setAttribute(e,t))}function Fl(r){return r.__attributes??={[Il]:r.nodeName.includes("-"),[Pl]:r.namespaceURI===Eo}}var ho=new Map;function ql(r){var e=r.getAttribute("is")||r.nodeName,t=ho.get(e);if(t)return t;ho.set(e,t=[]);for(var o,l=r,i=Element.prototype;i!==l;){o=Ro(l);for(var n in o)o[n].set&&t.push(n);l=dt(l)}return t}function Hl(r,e,t=e){var o=new WeakSet;sl(r,"input",async l=>{var i=l?r.defaultValue:r.value;if(i=it(r)?nt(i):i,t(i),A!==null&&o.add(A),await hl(),i!==(i=e())){var n=r.selectionStart,s=r.selectionEnd;r.value=i??"",s!==null&&(r.selectionStart=n,r.selectionEnd=Math.min(s,r.value.length))}}),($&&r.defaultValue!==r.value||mo(e)==null&&r.value)&&(t(it(r)?nt(r.value):r.value),A!==null&&o.add(A)),Jt(()=>{var l=e();if(r===document.activeElement){var i=we??A;if(o.has(i))return}it(r)&&l===nt(r.value)||r.type==="date"&&!l&&!r.value||l!==r.value&&(r.value=l??"")})}function it(r){var e=r.type;return e==="number"||e==="range"}function nt(r){return r===""?null:+r}function ne(r,e,t,o){var l=o,i=!0,n=()=>(i&&(i=!1,l=o),l),s;s=r[e],s===void 0&&o!==void 0&&(s=n());var a;a=()=>{var x=r[e];return x===void 0?n():(i=!0,x)};var b=!1,m=he(()=>(b=!1,a())),p=w;return(function(x,v){if(arguments.length>0){const f=v?d(m):x;return G(m,f),b=!0,l!==void 0&&(l=f),x}return Mr&&b||(p.f&Rr)!==0?m.v:d(m)})}function Ul(r){return new Vl(r)}class Vl{#e;#r;constructor(e){var t=new Map,o=(i,n)=>{var s=Lt(n,!1,!1);return t.set(i,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(i,n){return d(t.get(n)??o(n,Reflect.get(i,n)))},has(i,n){return n===No?!0:(d(t.get(n)??o(n,Reflect.get(i,n))),Reflect.has(i,n))},set(i,n,s){return G(t.get(n)??o(n,s),s),Reflect.set(i,n,s)}});this.#r=(e.hydrate?Rl:xo)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Br(),this.#e=l.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Pr(this,i,{get(){return this.#r[i]},set(n){this.#r[i]=n},enumerable:!0});this.#r.$set=i=>{Object.assign(l,i)},this.#r.$destroy=()=>{Tl(this.#r)}}$set(e){this.#r.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];const o=(...l)=>t.call(this,...l);return this.#e[e].push(o),()=>{this.#e[e]=this.#e[e].filter(l=>l!==o)}}$destroy(){this.#r.$destroy()}}let wo;typeof HTMLElement=="function"&&(wo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,e,t){super(),this.$$ctor=r,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(r,e,t){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const o=this.$$c.$on(r,e);this.$$l_u.set(e,o)}super.addEventListener(r,e,t)}removeEventListener(r,e,t){if(super.removeEventListener(r,e,t),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(o){return l=>{const i=document.createElement("slot");o!=="default"&&(i.name=o),B(l,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Yl(this);for(const o of this.$$s)o in t&&(o==="default"&&!this.$$d.children?(this.$$d.children=r(o),e.default=!0):e[o]=r(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Re(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Ul({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=ml(()=>{Jt(()=>{this.$$r=!0;for(const o of ve(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];const l=Re(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const i=this.$$c.$on(o,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(r,e,t){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Re(r,t,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return ve(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function Re(r,e,t,o){const l=t[r]?.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!t[r])return e;if(o==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Yl(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Wl(r,e,t,o,l,i){let n=class extends wo{constructor(){super(r,t,l),this.$$p_d=e}static get observedAttributes(){return ve(e).map(s=>(e[s].attribute||s).toLowerCase())}};return ve(e).forEach(s=>{Pr(n.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Re(s,a,e),this.$$d[s]=a;var b=this.$$c;if(b){var m=Dr(b,s)?.get;m?b[s]=a:b.$set({[s]:a})}}})}),o.forEach(s=>{Pr(n.prototype,s,{get(){return this.$$c?.[s]}})}),r.element=n,n}function Kl(r,e,t,o,l,i){G(e,!0),r.key!=="Enter"&&(console.log("debouncing",d(t)),d(o)&&clearTimeout(d(o)),G(o,setTimeout(()=>{d(t)&&d(t).length>Number(l())&&i("input")},500),!0))}function Jl(r,e){r&&r.preventDefault?.(),console.log("clicked searching"),e("button")}var Xl=I('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1rxrfb7"/>'),Zl=(r,e)=>{e("button")},Ql=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ri=I("<i></i>"),ei=I("<i></i>"),ti=I("<span><!> </span>"),oi=I('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></a>'),li=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ii=I("<i></i>"),ni=I("<i></i>"),si=I("<span><!> </span>"),ai=I('<button class="dropdown-item d-flex align-items-center gap-2 svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></button>'),bi=I("<i></i>"),fi=I("<span><!> </span>"),mi=I('<div class="px-3 pb-2 svelte-1rxrfb7"><div class="d-flex flex-wrap gap-1 svelte-1rxrfb7"></div></div>'),di=I('<li class="svelte-1rxrfb7"><hr class="dropdown-divider svelte-1rxrfb7"/></li>'),pi=I('<li class="svelte-1rxrfb7"><!> <!></li> <!>',1),vi=I('<li class="svelte-1rxrfb7"><h6 class="dropdown-header svelte-1rxrfb7">Suggested results</h6></li> <!>',1),xi=I('<div><div class="position-relative svelte-1rxrfb7"><input id="custom-search-input" class="form-control svelte-1rxrfb7" type="search" aria-label="Search" aria-describedby="search"/> <button class="btn bg-transparent px-2 py-0 position-absolute top-50 start-5 translate-middle-y svelte-1rxrfb7" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search svelte-1rxrfb7" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" class="svelte-1rxrfb7"></path></svg></button></div> <div class="dropdown svelte-1rxrfb7" style="position: absolute; width:100%"><ul id="custom-search-list"><li class="svelte-1rxrfb7"><button class="dropdown-item svelte-1rxrfb7"> </button></li> <!></ul></div></div>');const ci={hash:"svelte-1rxrfb7",code:`@charset "UTF-8";
|
|
1
|
+
(function(ft){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const me=1,de=2,mt=4,$o=8,zo=16,jo=1,Eo=2,Te="[",Se="[!",Ce="]",Pr={},B=Symbol(),Ao="http://www.w3.org/1999/xhtml",dt=!1;var Be=Array.isArray,Ro=Array.prototype.indexOf,Ne=Array.from,pe=Object.keys,Dr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,To=Object.getOwnPropertyDescriptors,So=Object.prototype,Co=Array.prototype,pt=Object.getPrototypeOf,vt=Object.isExtensible;function xt(r){for(var e=0;e<r.length;e++)r[e]()}function Bo(){var r,e,t=new Promise((o,l)=>{r=o,e=l});return{promise:t,resolve:r,reject:e}}const Y=2,Me=4,Oe=8,qr=16,cr=32,wr=64,ct=128,X=256,ve=512,O=1024,Z=2048,yr=4096,or=8192,Sr=16384,Le=32768,Ge=65536,gt=1<<17,ut=1<<18,Hr=1<<19,No=1<<20,Ie=1<<21,Pe=1<<22,Cr=1<<23,De=Symbol("$state"),Mo=Symbol("legacy props"),Oo=Symbol(""),Fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ht=3,Ur=8;function Lo(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Go(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Io(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Po(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Do(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fo(r){throw new Error("https://svelte.dev/e/effect_orphan")}function qo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ho(){throw new Error("https://svelte.dev/e/hydration_failed")}function Uo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Vo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xe(r){console.warn("https://svelte.dev/e/hydration_mismatch")}let _=!1;function lr(r){_=r}let E;function W(r){if(r===null)throw xe(),Pr;return E=r}function ce(){return W(br(E))}function L(r){if(_){if(br(E)!==null)throw xe(),Pr;E=r}}function qe(){for(var r=0,e=E;;){if(e.nodeType===Ur){var t=e.data;if(t===Ce){if(r===0)return e;r-=1}else(t===Te||t===Se)&&(r+=1)}var o=br(e);e.remove(),e=o}}function wt(r){if(!r||r.nodeType!==Ur)throw xe(),Pr;return r.data}function yt(r){return r===this.v}function Wo(r,e){return r!=r?e==e:r!==e||r!==null&&typeof r=="object"||typeof r=="function"}function kt(r){return!Wo(r,this.v)}let Ko=!1,Q=null;function ge(r){Q=r}function _t(r,e=!1,t){Q={p:Q,c:null,e:null,s:r,x:null,l:null}}function $t(r){var e=Q,t=e.e;if(t!==null){e.e=null;for(var o of t)Jt(o)}return r!==void 0&&(e.x=r),Q=e.p,r??{}}function zt(){return!0}const Jo=new WeakMap;function Xo(r){var e=h;if(e===null)return y.f|=Cr,r;if((e.f&Le)===0){if((e.f&ct)===0)throw!e.parent&&r instanceof Error&&jt(r),r;e.b.error(r)}else He(r,e)}function He(r,e){for(;e!==null;){if((e.f&ct)!==0)try{e.b.error(r);return}catch(t){r=t}e=e.parent}throw r instanceof Error&&jt(r),r}function jt(r){const e=Jo.get(r);e&&(Dr(r,"message",{value:e.message}),Dr(r,"stack",{value:e.stack}))}const Zo=typeof requestIdleCallback>"u"?r=>setTimeout(r,1):requestIdleCallback;let ee=[],te=[];function Et(){var r=ee;ee=[],xt(r)}function At(){var r=te;te=[],xt(r)}function Rt(r){ee.length===0&&queueMicrotask(Et),ee.push(r)}function Qo(r){te.length===0&&Zo(At),te.push(r)}function rl(){ee.length>0&&Et(),te.length>0&&At()}function el(){const r=h.b;return r===null&&Lo(),r}function ue(r){var e=Y|Z,t=y!==null&&(y.f&Y)!==0?y:null;return h===null||t!==null&&(t.f&X)!==0?e|=X:h.f|=Hr,{ctx:Q,deps:null,effects:null,equals:yt,f:e,fn:r,reactions:null,rv:0,v:B,wv:0,parent:t??h,ac:null}}function tl(r,e){let t=h;t===null&&Io();var o=t.b,l=void 0,i=oe(B),n=null,s=!y;return xl(()=>{try{var a=r();n&&Promise.resolve(a).catch(()=>{})}catch(v){a=Promise.reject(v)}var b=()=>a;l=n?.then(b,b)??Promise.resolve(a),n=l;var f=A,x=o.is_pending();s&&(o.update_pending_count(1),x||f.increment());const p=(v,m=void 0)=>{n=null,x||f.activate(),m?m!==Fe&&(i.f|=Cr,le(i,m)):((i.f&Cr)!==0&&(i.f^=Cr),le(i,v)),s&&(o.update_pending_count(-1),x||f.decrement()),Bt()};if(l.then(p,v=>p(null,v||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(a=>{function b(f){function x(){f===l?a(i):b(l)}f.then(x,x)}b(l)})}function Tt(r){const e=ue(r);return io(e),e}function ol(r){const e=ue(r);return e.equals=kt,e}function St(r){var e=r.effects;if(e!==null){r.effects=null;for(var t=0;t<e.length;t+=1)mr(e[t])}}function ll(r){for(var e=r.parent;e!==null;){if((e.f&Y)===0)return e;e=e.parent}return null}function Ue(r){var e,t=h;jr(ll(r));try{St(r),e=fo(r)}finally{jr(t)}return e}function Ct(r){var e=Ue(r);if(r.equals(e)||(r.v=e,r.wv=ao()),!Or){var t=(Er||(r.f&X)!==0)&&r.deps!==null?yr:O;q(r,t)}}function il(r,e,t){const o=ue;if(e.length===0){t(r.map(o));return}var l=A,i=h,n=nl(),s=el();Promise.all(e.map(a=>tl(a))).then(a=>{l?.activate(),n();try{t([...r.map(o),...a])}catch(b){(i.f&Sr)===0&&He(b,i)}l?.deactivate(),Bt()}).catch(a=>{s.error(a)})}function nl(){var r=h,e=y,t=Q,o=A;return function(){jr(r),pr(e),ge(t),o?.activate()}}function Bt(){jr(null),pr(null),ge(null)}const Ve=new Set;let A=null,he=null,Nt=new Set,we=[];function Mt(){const r=we.shift();we.length>0&&queueMicrotask(Mt),r()}let Br=[],ye=null,Ye=!1,ke=!1;class Nr{current=new Map;#e=new Map;#r=new Set;#t=0;#b=null;#f=!1;#l=[];#n=[];#i=[];#o=[];#s=[];#m=[];#d=[];skipped_effects=new Set;process(e){Br=[],he=null;for(const l of e)this.#v(l);if(this.#l.length===0&&this.#t===0){this.#p();var t=this.#i,o=this.#o;this.#i=[],this.#o=[],this.#s=[],he=A,A=null,Lt(t),Lt(o),A===null?A=this:Ve.delete(this),this.#b?.resolve()}else this.#a(this.#i),this.#a(this.#o),this.#a(this.#s);for(const l of this.#l)Kr(l);for(const l of this.#n)Kr(l);this.#l=[],this.#n=[]}#v(e){e.f^=O;for(var t=e.first;t!==null;){var o=t.f,l=(o&(cr|wr))!==0,i=l&&(o&O)!==0,n=i||(o&or)!==0||this.skipped_effects.has(t);if(!n&&t.fn!==null){if(l)t.f^=O;else if((o&Me)!==0)this.#o.push(t);else if((o&O)===0)if((o&Pe)!==0){var s=t.b?.is_pending()?this.#n:this.#l;s.push(t)}else $e(t)&&((t.f&qr)!==0&&this.#s.push(t),Kr(t));var a=t.first;if(a!==null){t=a;continue}}var b=t.parent;for(t=t.next;t===null&&b!==null;)t=b.next,b=b.parent}}#a(e){for(const t of e)((t.f&Z)!==0?this.#m:this.#d).push(t),q(t,O);e.length=0}capture(e,t){this.#e.has(e)||this.#e.set(e,t),this.current.set(e,e.v)}activate(){A=this}deactivate(){A=null,he=null;for(const e of Nt)if(Nt.delete(e),e(),A!==null)break}neuter(){this.#f=!0}flush(){Br.length>0?Ot():this.#p(),A===this&&(this.#t===0&&Ve.delete(this),this.deactivate())}#p(){if(!this.#f)for(const e of this.#r)e();this.#r.clear()}increment(){this.#t+=1}decrement(){if(this.#t-=1,this.#t===0){for(const e of this.#m)q(e,Z),Vr(e);for(const e of this.#d)q(e,yr),Vr(e);this.#i=[],this.#o=[],this.flush()}else this.deactivate()}add_callback(e){this.#r.add(e)}settled(){return(this.#b??=Bo()).promise}static ensure(){if(A===null){const e=A=new Nr;Ve.add(A),ke||Nr.enqueue(()=>{A===e&&e.flush()})}return A}static enqueue(e){we.length===0&&queueMicrotask(Mt),we.unshift(e)}}function kr(r){var e=ke;ke=!0;try{for(var t;;){if(rl(),Br.length===0&&(A?.flush(),Br.length===0))return ye=null,t;Ot()}}finally{ke=e}}function Ot(){var r=Wr;Ye=!0;try{var e=0;for(oo(!0);Br.length>0;){var t=Nr.ensure();if(e++>1e3){var o,l;sl()}t.process(Br),_r.clear()}}finally{Ye=!1,oo(r),ye=null}}function sl(){try{qo()}catch(r){He(r,ye)}}let Mr=null;function Lt(r){var e=r.length;if(e!==0){for(var t=0;t<e;){var o=r[t++];if((o.f&(Sr|or))===0&&$e(o)&&(Mr=[],Kr(o),o.deps===null&&o.first===null&&o.nodes_start===null&&(o.teardown===null&&o.ac===null?ro(o):o.fn=null),Mr?.length>0)){_r.clear();for(const l of Mr)Kr(l);Mr=[]}}Mr=null}}function Vr(r){for(var e=ye=r;e.parent!==null;){e=e.parent;var t=e.f;if(Ye&&e===h&&(t&qr)!==0)return;if((t&(wr|cr))!==0){if((t&O)===0)return;e.f^=O}}Br.push(e)}const _r=new Map;function oe(r,e){var t={f:0,v:r,reactions:null,equals:yt,rv:0,wv:0};return t}function ir(r,e){const t=oe(r);return io(t),t}function Gt(r,e=!1,t=!0){const o=oe(r);return e||(o.equals=kt),o}function G(r,e,t=!1){y!==null&&(!dr||(y.f>)!==0)&&zt()&&(y.f&(Y|qr|Pe|gt))!==0&&!gr?.includes(r)&&Yo();let o=t?ie(e):e;return le(r,o)}function le(r,e){if(!r.equals(e)){var t=r.v;Or?_r.set(r,e):_r.set(r,t),r.v=e;var o=Nr.ensure();o.capture(r,t),(r.f&Y)!==0&&((r.f&Z)!==0&&Ue(r),q(r,(r.f&X)===0?O:yr)),r.wv=ao(),It(r,Z),h!==null&&(h.f&O)!==0&&(h.f&(cr|wr))===0&&(rr===null?ul([r]):rr.push(r))}return e}function We(r){G(r,r.v+1)}function It(r,e){var t=r.reactions;if(t!==null)for(var o=t.length,l=0;l<o;l++){var i=t[l],n=i.f,s=(n&Z)===0;s&&q(i,e),(n&Y)!==0?It(i,yr):s&&((n&qr)!==0&&Mr!==null&&Mr.push(i),Vr(i))}}function ie(r){if(typeof r!="object"||r===null||De in r)return r;const e=pt(r);if(e!==So&&e!==Co)return r;var t=new Map,o=Be(r),l=ir(0),i=Lr,n=s=>{if(Lr===i)return s();var a=y,b=Lr;pr(null),so(i);var f=s();return pr(a),so(b),f};return o&&t.set("length",ir(r.length)),new Proxy(r,{defineProperty(s,a,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Uo();var f=t.get(a);return f===void 0?f=n(()=>{var x=ir(b.value);return t.set(a,x),x}):G(f,b.value,!0),!0},deleteProperty(s,a){var b=t.get(a);if(b===void 0){if(a in s){const f=n(()=>ir(B));t.set(a,f),We(l)}}else G(b,B),We(l);return!0},get(s,a,b){if(a===De)return r;var f=t.get(a),x=a in s;if(f===void 0&&(!x||Fr(s,a)?.writable)&&(f=n(()=>{var v=ie(x?s[a]:B),m=ir(v);return m}),t.set(a,f)),f!==void 0){var p=d(f);return p===B?void 0:p}return Reflect.get(s,a,b)},getOwnPropertyDescriptor(s,a){var b=Reflect.getOwnPropertyDescriptor(s,a);if(b&&"value"in b){var f=t.get(a);f&&(b.value=d(f))}else if(b===void 0){var x=t.get(a),p=x?.v;if(x!==void 0&&p!==B)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return b},has(s,a){if(a===De)return!0;var b=t.get(a),f=b!==void 0&&b.v!==B||Reflect.has(s,a);if(b!==void 0||h!==null&&(!f||Fr(s,a)?.writable)){b===void 0&&(b=n(()=>{var p=f?ie(s[a]):B,v=ir(p);return v}),t.set(a,b));var x=d(b);if(x===B)return!1}return f},set(s,a,b,f){var x=t.get(a),p=a in s;if(o&&a==="length")for(var v=b;v<x.v;v+=1){var m=t.get(v+"");m!==void 0?G(m,B):v in s&&(m=n(()=>ir(B)),t.set(v+"",m))}if(x===void 0)(!p||Fr(s,a)?.writable)&&(x=n(()=>ir(void 0)),G(x,ie(b)),t.set(a,x));else{p=x.v!==B;var u=n(()=>ie(b));G(x,u)}var w=Reflect.getOwnPropertyDescriptor(s,a);if(w?.set&&w.set.call(f,b),!p){if(o&&typeof a=="string"){var $=t.get("length"),z=Number(a);Number.isInteger(z)&&z>=$.v&&G($,z+1)}We(l)}return!0},ownKeys(s){d(l);var a=Reflect.ownKeys(s).filter(x=>{var p=t.get(x);return p===void 0||p.v!==B});for(var[b,f]of t)f.v!==B&&!(b in s)&&a.push(b);return a},setPrototypeOf(){Vo()}})}var Pt,Dt,Ft,qt;function Ke(){if(Pt===void 0){Pt=window,Dt=/Firefox/.test(navigator.userAgent);var r=Element.prototype,e=Node.prototype,t=Text.prototype;Ft=Fr(e,"firstChild").get,qt=Fr(e,"nextSibling").get,vt(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),vt(t)&&(t.__t=void 0)}}function $r(r=""){return document.createTextNode(r)}function zr(r){return Ft.call(r)}function br(r){return qt.call(r)}function D(r,e){if(!_)return zr(r);var t=zr(E);if(t===null)t=E.appendChild($r());else if(e&&t.nodeType!==ht){var o=$r();return t?.before(o),W(o),o}return W(t),t}function Ht(r,e){if(!_){var t=zr(r);return t instanceof Comment&&t.data===""?br(t):t}return E}function K(r,e=1,t=!1){let o=_?E:r;for(var l;e--;)l=o,o=br(o);if(!_)return o;if(t&&o?.nodeType!==ht){var i=$r();return o===null?l?.after(i):o.before(i),W(i),i}return W(o),o}function Ut(r){r.textContent=""}function Vt(){return!1}let Yt=!1;function Wt(){Yt||(Yt=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const e of r.target.elements)e.__on_r?.()})},{capture:!0}))}function _e(r){var e=y,t=h;pr(null),jr(null);try{return r()}finally{pr(e),jr(t)}}function al(r,e,t,o=t){r.addEventListener(e,()=>_e(t));const l=r.__on_r;l?r.__on_r=()=>{l(),o(!0)}:r.__on_r=()=>o(!0),Wt()}function bl(r){h===null&&y===null&&Fo(),y!==null&&(y.f&X)!==0&&h===null&&Do(),Or&&Po()}function fl(r,e){var t=e.last;t===null?e.last=e.first=r:(t.next=r,r.prev=t,e.last=r)}function fr(r,e,t,o=!0){var l=h;l!==null&&(l.f&or)!==0&&(r|=or);var i={ctx:Q,deps:null,nodes_start:null,nodes_end:null,f:r|Z,first:null,fn:e,last:null,next:null,parent:l,b:l&&l.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(t)try{Kr(i),i.f|=Le}catch(a){throw mr(i),a}else e!==null&&Vr(i);if(o){var n=i;if(t&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&Hr)===0&&(n=n.first),n!==null&&(n.parent=l,l!==null&&fl(n,l),y!==null&&(y.f&Y)!==0&&(r&wr)===0)){var s=y;(s.effects??=[]).push(n)}}return i}function ml(r){const e=fr(Oe,null,!1);return q(e,O),e.teardown=r,e}function Kt(r){bl();var e=h.f,t=!y&&(e&cr)!==0&&(e&Le)===0;if(t){var o=Q;(o.e??=[]).push(r)}else return Jt(r)}function Jt(r){return fr(Me|No,r,!1)}function dl(r){Nr.ensure();const e=fr(wr|Hr,r,!0);return()=>{mr(e)}}function pl(r){Nr.ensure();const e=fr(wr|Hr,r,!0);return(t={})=>new Promise(o=>{t.outro?Xe(e,()=>{mr(e),o(void 0)}):(mr(e),o(void 0))})}function vl(r){return fr(Me,r,!1)}function xl(r){return fr(Pe|Hr,r,!0)}function Xt(r,e=0){return fr(Oe|e,r,!0)}function nr(r,e=[],t=[]){il(e,t,o=>{fr(Oe,()=>r(...o.map(d)),!0)})}function Je(r,e=0){var t=fr(qr|e,r,!0);return t}function Yr(r,e=!0){return fr(cr|Hr,r,!0,e)}function Zt(r){var e=r.teardown;if(e!==null){const t=Or,o=y;lo(!0),pr(null);try{e.call(null)}finally{lo(t),pr(o)}}}function Qt(r,e=!1){var t=r.first;for(r.first=r.last=null;t!==null;){const l=t.ac;l!==null&&_e(()=>{l.abort(Fe)});var o=t.next;(t.f&wr)!==0?t.parent=null:mr(t,e),t=o}}function cl(r){for(var e=r.first;e!==null;){var t=e.next;(e.f&cr)===0&&mr(e),e=t}}function mr(r,e=!0){var t=!1;(e||(r.f&ut)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(gl(r.nodes_start,r.nodes_end),t=!0),Qt(r,e&&!t),ze(r,0),q(r,Sr);var o=r.transitions;if(o!==null)for(const i of o)i.stop();Zt(r);var l=r.parent;l!==null&&l.first!==null&&ro(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function gl(r,e){for(;r!==null;){var t=r===e?null:br(r);r.remove(),r=t}}function ro(r){var e=r.parent,t=r.prev,o=r.next;t!==null&&(t.next=o),o!==null&&(o.prev=t),e!==null&&(e.first===r&&(e.first=o),e.last===r&&(e.last=t))}function Xe(r,e){var t=[];Ze(r,t,!0),eo(t,()=>{mr(r),e&&e()})}function eo(r,e){var t=r.length;if(t>0){var o=()=>--t||e();for(var l of r)l.out(o)}else e()}function Ze(r,e,t){if((r.f&or)===0){if(r.f^=or,r.transitions!==null)for(const n of r.transitions)(n.is_global||t)&&e.push(n);for(var o=r.first;o!==null;){var l=o.next,i=(o.f&Ge)!==0||(o.f&cr)!==0;Ze(o,e,i?t:!1),o=l}}}function Qe(r){to(r,!0)}function to(r,e){if((r.f&or)!==0){r.f^=or,(r.f&O)===0&&(q(r,Z),Vr(r));for(var t=r.first;t!==null;){var o=t.next,l=(t.f&Ge)!==0||(t.f&cr)!==0;to(t,l?e:!1),t=o}if(r.transitions!==null)for(const i of r.transitions)(i.is_global||e)&&i.in()}}let Wr=!1;function oo(r){Wr=r}let Or=!1;function lo(r){Or=r}let y=null,dr=!1;function pr(r){y=r}let h=null;function jr(r){h=r}let gr=null;function io(r){y!==null&&(gr===null?gr=[r]:gr.push(r))}let F=null,J=0,rr=null;function ul(r){rr=r}let no=1,ne=0,Lr=ne;function so(r){Lr=r}let Er=!1;function ao(){return++no}function $e(r){var e=r.f;if((e&Z)!==0)return!0;if((e&yr)!==0){var t=r.deps,o=(e&X)!==0;if(t!==null){var l,i,n=(e&ve)!==0,s=o&&h!==null&&!Er,a=t.length;if((n||s)&&(h===null||(h.f&Sr)===0)){var b=r,f=b.parent;for(l=0;l<a;l++)i=t[l],(n||!i?.reactions?.includes(b))&&(i.reactions??=[]).push(b);n&&(b.f^=ve),s&&f!==null&&(f.f&X)===0&&(b.f^=X)}for(l=0;l<a;l++)if(i=t[l],$e(i)&&Ct(i),i.wv>r.wv)return!0}(!o||h!==null&&!Er)&&q(r,O)}return!1}function bo(r,e,t=!0){var o=r.reactions;if(o!==null&&!gr?.includes(r))for(var l=0;l<o.length;l++){var i=o[l];(i.f&Y)!==0?bo(i,e,!1):e===i&&(t?q(i,Z):(i.f&O)!==0&&q(i,yr),Vr(i))}}function fo(r){var e=F,t=J,o=rr,l=y,i=Er,n=gr,s=Q,a=dr,b=Lr,f=r.f;F=null,J=0,rr=null,Er=(f&X)!==0&&(dr||!Wr||y===null),y=(f&(cr|wr))===0?r:null,gr=null,ge(r.ctx),dr=!1,Lr=++ne,r.ac!==null&&(_e(()=>{r.ac.abort(Fe)}),r.ac=null);try{r.f|=Ie;var x=r.fn,p=x(),v=r.deps;if(F!==null){var m;if(ze(r,J),v!==null&&J>0)for(v.length=J+F.length,m=0;m<F.length;m++)v[J+m]=F[m];else r.deps=v=F;if(!Er||(f&Y)!==0&&r.reactions!==null)for(m=J;m<v.length;m++)(v[m].reactions??=[]).push(r)}else v!==null&&J<v.length&&(ze(r,J),v.length=J);if(zt()&&rr!==null&&!dr&&v!==null&&(r.f&(Y|yr|Z))===0)for(m=0;m<rr.length;m++)bo(rr[m],r);return l!==null&&l!==r&&(ne++,rr!==null&&(o===null?o=rr:o.push(...rr))),(r.f&Cr)!==0&&(r.f^=Cr),p}catch(u){return Xo(u)}finally{r.f^=Ie,F=e,J=t,rr=o,y=l,Er=i,gr=n,ge(s),dr=a,Lr=b}}function hl(r,e){let t=e.reactions;if(t!==null){var o=Ro.call(t,r);if(o!==-1){var l=t.length-1;l===0?t=e.reactions=null:(t[o]=t[l],t.pop())}}t===null&&(e.f&Y)!==0&&(F===null||!F.includes(e))&&(q(e,yr),(e.f&(X|ve))===0&&(e.f^=ve),St(e),ze(e,0))}function ze(r,e){var t=r.deps;if(t!==null)for(var o=e;o<t.length;o++)hl(r,t[o])}function Kr(r){var e=r.f;if((e&Sr)===0){q(r,O);var t=h,o=Wr;h=r,Wr=!0;try{(e&qr)!==0?cl(r):Qt(r),Zt(r);var l=fo(r);r.teardown=typeof l=="function"?l:null,r.wv=no;var i;dt&&Ko&&(r.f&Z)!==0&&r.deps}finally{Wr=o,h=t}}}async function wl(){await Promise.resolve(),kr()}function d(r){var e=r.f,t=(e&Y)!==0;if(y!==null&&!dr){var o=h!==null&&(h.f&Sr)!==0;if(!o&&!gr?.includes(r)){var l=y.deps;if((y.f&Ie)!==0)r.rv<ne&&(r.rv=ne,F===null&&l!==null&&l[J]===r?J++:F===null?F=[r]:(!Er||!F.includes(r))&&F.push(r));else{(y.deps??=[]).push(r);var i=r.reactions;i===null?r.reactions=[y]:i.includes(y)||i.push(y)}}}else if(t&&r.deps===null&&r.effects===null){var n=r,s=n.parent;s!==null&&(s.f&X)===0&&(n.f^=X)}if(Or){if(_r.has(r))return _r.get(r);if(t){n=r;var a=n.v;return((n.f&O)===0&&n.reactions!==null||mo(n))&&(a=Ue(n)),_r.set(n,a),a}}else t&&(n=r,$e(n)&&Ct(n));if((r.f&Cr)!==0)throw r.v;return r.v}function mo(r){if(r.v===B)return!0;if(r.deps===null)return!1;for(const e of r.deps)if(_r.has(e)||(e.f&Y)!==0&&mo(e))return!0;return!1}function po(r){var e=dr;try{return dr=!0,r()}finally{dr=e}}const yl=-7169;function q(r,e){r.f=r.f&yl|e}const vo=new Set,rt=new Set;function kl(r,e,t,o={}){function l(i){if(o.capture||se.call(e,i),!i.cancelBubble)return _e(()=>t?.call(this,i))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Rt(()=>{e.addEventListener(r,l,o)}):e.addEventListener(r,l,o),l}function _l(r,e,t,o,l){var i={capture:o,passive:l},n=kl(r,e,t,i);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ml(()=>{e.removeEventListener(r,n,i)})}function $l(r){for(var e=0;e<r.length;e++)vo.add(r[e]);for(var t of rt)t(r)}let xo=null;function se(r){var e=this,t=e.ownerDocument,o=r.type,l=r.composedPath?.()||[],i=l[0]||r.target;xo=r;var n=0,s=xo===r&&r.__root;if(s){var a=l.indexOf(s);if(a!==-1&&(e===document||e===window)){r.__root=e;return}var b=l.indexOf(e);if(b===-1)return;a<=b&&(n=a)}if(i=l[n]||r.target,i!==e){Dr(r,"currentTarget",{configurable:!0,get(){return i||t}});var f=y,x=h;pr(null),jr(null);try{for(var p,v=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var u=i["__"+o];if(u!=null&&(!i.disabled||r.target===i))if(Be(u)){var[w,...$]=u;w.apply(i,[r,...$])}else u.call(i,r)}catch(z){p?v.push(z):p=z}if(r.cancelBubble||m===e||m===null)break;i=m}if(p){for(let z of v)queueMicrotask(()=>{throw z});throw p}}finally{r.__root=e,delete r.currentTarget,pr(f),jr(x)}}}let er;function zl(){er=void 0}function jl(r){let e=null,t=_;var o;if(_){for(e=E,er===void 0&&(er=zr(document.head));er!==null&&(er.nodeType!==Ur||er.data!==Te);)er=br(er);er===null?lr(!1):er=W(br(er))}_||(o=document.head.appendChild($r()));try{Je(()=>r(o),ut)}finally{t&&(lr(!0),er=E,W(e))}}function El(r){var e=document.createElement("template");return e.innerHTML=r.replaceAll("<!>","<!---->"),e.content}function je(r,e){var t=h;t.nodes_start===null&&(t.nodes_start=r,t.nodes_end=e)}function I(r,e){var t=(e&jo)!==0,o=(e&Eo)!==0,l,i=!r.startsWith("<!>");return()=>{if(_)return je(E,null),E;l===void 0&&(l=El(i?r:"<!>"+r),t||(l=zr(l)));var n=o||Dt?document.importNode(l,!0):l.cloneNode(!0);if(t){var s=zr(n),a=n.lastChild;je(s,a)}else je(n,n);return n}}function N(r,e){if(_){h.nodes_end=E,ce();return}r!==null&&r.before(e)}const Al=["touchstart","touchmove"];function Rl(r){return Al.includes(r)}function Jr(r,e){var t=e==null?"":typeof e=="object"?e+"":e;t!==(r.__t??=r.nodeValue)&&(r.__t=t,r.nodeValue=t+"")}function co(r,e){return go(r,e)}function Tl(r,e){Ke(),e.intro=e.intro??!1;const t=e.target,o=_,l=E;try{for(var i=zr(t);i&&(i.nodeType!==Ur||i.data!==Te);)i=br(i);if(!i)throw Pr;lr(!0),W(i),ce();const n=go(r,{...e,anchor:i});if(E===null||E.nodeType!==Ur||E.data!==Ce)throw xe(),Pr;return lr(!1),n}catch(n){if(n instanceof Error&&n.message.split(`
|
|
2
|
+
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw n;return n!==Pr&&console.warn("Failed to hydrate: ",n),e.recover===!1&&Ho(),Ke(),Ut(t),lr(!1),co(r,e)}finally{lr(o),W(l),zl()}}const Xr=new Map;function go(r,{target:e,anchor:t,props:o={},events:l,context:i,intro:n=!0}){Ke();var s=new Set,a=x=>{for(var p=0;p<x.length;p++){var v=x[p];if(!s.has(v)){s.add(v);var m=Rl(v);e.addEventListener(v,se,{passive:m});var u=Xr.get(v);u===void 0?(document.addEventListener(v,se,{passive:m}),Xr.set(v,1)):Xr.set(v,u+1)}}};a(Ne(vo)),rt.add(a);var b=void 0,f=pl(()=>{var x=t??e.appendChild($r());return Yr(()=>{if(i){_t({});var p=Q;p.c=i}l&&(o.$$events=l),_&&je(x,null),b=r(x,o)||{},_&&(h.nodes_end=E),i&&$t()}),()=>{for(var p of s){e.removeEventListener(p,se);var v=Xr.get(p);--v===0?(document.removeEventListener(p,se),Xr.delete(p)):Xr.set(p,v)}rt.delete(a),x!==t&&x.parentNode?.removeChild(x)}});return et.set(b,f),b}let et=new WeakMap;function Sl(r,e){const t=et.get(r);return t?(et.delete(r),t(e)):Promise.resolve()}function Cl(r){Q===null&&Go(),Kt(()=>{const e=po(r);if(typeof e=="function")return e})}function sr(r,e,t=!1){_&&ce();var o=r,l=null,i=null,n=B,s=t?Ge:0,a=!1;const b=(v,m=!0)=>{a=!0,p(m,v)};var f=null;function x(){f!==null&&(f.lastChild.remove(),o.before(f),f=null);var v=n?l:i,m=n?i:l;v&&Qe(v),m&&Xe(m,()=>{n?i=null:l=null})}const p=(v,m)=>{if(n===(n=v))return;let u=!1;if(_){const S=wt(o)===Se;!!n===S&&(o=qe(),W(o),lr(!1),u=!0)}var w=Vt(),$=o;if(w&&(f=document.createDocumentFragment(),f.append($=$r())),n?l??=m&&Yr(()=>m($)):i??=m&&Yr(()=>m($)),w){var z=A,T=n?l:i,H=n?i:l;T&&z.skipped_effects.delete(T),H&&z.skipped_effects.add(H),z.add_callback(x)}else x();u&&lr(!0)};Je(()=>{a=!1,e(b),a||p(null,null)},s),_&&(o=E)}function Bl(r,e){return e}function Nl(r,e,t){for(var o=r.items,l=[],i=e.length,n=0;n<i;n++)Ze(e[n].e,l,!0);var s=i>0&&l.length===0&&t!==null;if(s){var a=t.parentNode;Ut(a),a.append(t),o.clear(),vr(r,e[0].prev,e[i-1].next)}eo(l,()=>{for(var b=0;b<i;b++){var f=e[b];s||(o.delete(f.k),vr(r,f.prev,f.next)),mr(f.e,!s)}})}function uo(r,e,t,o,l,i=null){var n=r,s={flags:e,items:new Map,first:null},a=(e&mt)!==0;if(a){var b=r;n=_?W(zr(b)):b.appendChild($r())}_&&ce();var f=null,x=!1,p=new Map,v=ol(()=>{var $=t();return Be($)?$:$==null?[]:Ne($)}),m,u;function w(){Ml(u,m,s,p,n,l,e,o,t),i!==null&&(m.length===0?f?Qe(f):f=Yr(()=>i(n)):f!==null&&Xe(f,()=>{f=null}))}Je(()=>{u??=h,m=d(v);var $=m.length;if(x&&$===0)return;x=$===0;let z=!1;if(_){var T=wt(n)===Se;T!==($===0)&&(n=qe(),W(n),lr(!1),z=!0)}if(_){for(var H=null,S,g=0;g<$;g++){if(E.nodeType===Ur&&E.data===Ce){n=E,z=!0,lr(!1);break}var k=m[g],C=o(k,g);S=tt(E,s,H,null,k,C,g,l,e,t),s.items.set(C,S),H=S}$>0&&W(qe())}if(_)$===0&&i&&(f=Yr(()=>i(n)));else if(Vt()){var Gr=new Set,Qr=A;for(g=0;g<$;g+=1){k=m[g],C=o(k,g);var ur=s.items.get(C)??p.get(C);ur?(e&(me|de))!==0&&ho(ur,k,g,e):(S=tt(null,s,null,null,k,C,g,l,e,t,!0),p.set(C,S)),Gr.add(C)}for(const[c,U]of s.items)Gr.has(c)||Qr.skipped_effects.add(U.e);Qr.add_callback(w)}else w();z&&lr(!0),d(v)}),_&&(n=E)}function Ml(r,e,t,o,l,i,n,s,a){var b=(n&$o)!==0,f=(n&(me|de))!==0,x=e.length,p=t.items,v=t.first,m=v,u,w=null,$,z=[],T=[],H,S,g,k;if(b)for(k=0;k<x;k+=1)H=e[k],S=s(H,k),g=p.get(S),g!==void 0&&(g.a?.measure(),($??=new Set).add(g));for(k=0;k<x;k+=1){if(H=e[k],S=s(H,k),g=p.get(S),g===void 0){var C=o.get(S);if(C!==void 0){o.delete(S),p.set(S,C);var Gr=w?w.next:m;vr(t,w,C),vr(t,C,Gr),ot(C,Gr,l),w=C}else{var Qr=m?m.e.nodes_start:l;w=tt(Qr,t,w,w===null?t.first:w.next,H,S,k,i,n,a)}p.set(S,w),z=[],T=[],m=w.next;continue}if(f&&ho(g,H,k,n),(g.e.f&or)!==0&&(Qe(g.e),b&&(g.a?.unfix(),($??=new Set).delete(g))),g!==m){if(u!==void 0&&u.has(g)){if(z.length<T.length){var ur=T[0],c;w=ur.prev;var U=z[0],hr=z[z.length-1];for(c=0;c<z.length;c+=1)ot(z[c],ur,l);for(c=0;c<T.length;c+=1)u.delete(T[c]);vr(t,U.prev,hr.next),vr(t,w,U),vr(t,hr,ur),m=ur,w=hr,k-=1,z=[],T=[]}else u.delete(g),ot(g,m,l),vr(t,g.prev,g.next),vr(t,g,w===null?t.first:w.next),vr(t,w,g),w=g;continue}for(z=[],T=[];m!==null&&m.k!==S;)(m.e.f&or)===0&&(u??=new Set).add(m),T.push(m),m=m.next;if(m===null)continue;g=m}z.push(g),w=g,m=g.next}if(m!==null||u!==void 0){for(var ar=u===void 0?[]:Ne(u);m!==null;)(m.e.f&or)===0&&ar.push(m),m=m.next;var j=ar.length;if(j>0){var nt=(n&mt)!==0&&x===0?l:null;if(b){for(k=0;k<j;k+=1)ar[k].a?.measure();for(k=0;k<j;k+=1)ar[k].a?.fix()}Nl(t,ar,nt)}}b&&Rt(()=>{if($!==void 0)for(g of $)g.a?.apply()}),r.first=t.first&&t.first.e,r.last=w&&w.e;for(var Re of o.values())mr(Re.e);o.clear()}function ho(r,e,t,o){(o&me)!==0&&le(r.v,e),(o&de)!==0?le(r.i,t):r.i=t}function tt(r,e,t,o,l,i,n,s,a,b,f){var x=(a&me)!==0,p=(a&zo)===0,v=x?p?Gt(l,!1,!1):oe(l):l,m=(a&de)===0?n:oe(n),u={i:m,v,k:i,a:null,e:null,prev:t,next:o};try{if(r===null){var w=document.createDocumentFragment();w.append(r=$r())}return u.e=Yr(()=>s(r,v,m,b),_),u.e.prev=t&&t.e,u.e.next=o&&o.e,t===null?f||(e.first=u):(t.next=u,t.e.next=u.e),o!==null&&(o.prev=u,o.e.prev=u.e),u}finally{}}function ot(r,e,t){for(var o=r.next?r.next.e.nodes_start:t,l=e?e.e.nodes_start:t,i=r.e.nodes_start;i!==null&&i!==o;){var n=br(i);l.before(i),i=n}}function vr(r,e,t){e===null?r.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}function Ol(r,e){vl(()=>{var t=r.getRootNode(),o=t.host?t:t.head??t.ownerDocument.head;if(!o.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,o.appendChild(l)}})}function Ll(r,e,t){var o=r==null?"":""+r;return o=o?o+" "+e:e,o===""?null:o}function Gl(r,e){return r==null?null:String(r)}function xr(r,e,t,o,l,i){var n=r.__className;if(_||n!==t||n===void 0){var s=Ll(t,o);(!_||s!==r.getAttribute("class"))&&(s==null?r.removeAttribute("class"):r.className=s),r.__className=t}return i}function Il(r,e,t,o){var l=r.__style;if(_||l!==e){var i=Gl(e);(!_||i!==r.getAttribute("style"))&&(i==null?r.removeAttribute("style"):r.style.cssText=i),r.__style=e}return o}const Pl=Symbol("is custom element"),Dl=Symbol("is html");function Fl(r){if(_){var e=!1,t=()=>{if(!e){if(e=!0,r.hasAttribute("value")){var o=r.value;Ee(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var l=r.checked;Ee(r,"checked",null),r.checked=l}}};r.__on_r=t,Qo(t),Wt()}}function Ee(r,e,t,o){var l=ql(r);_&&(l[e]=r.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&r.nodeName==="LINK")||l[e]!==(l[e]=t)&&(e==="loading"&&(r[Oo]=t),t==null?r.removeAttribute(e):typeof t!="string"&&Hl(r).includes(e)?r[e]=t:r.setAttribute(e,t))}function ql(r){return r.__attributes??={[Pl]:r.nodeName.includes("-"),[Dl]:r.namespaceURI===Ao}}var wo=new Map;function Hl(r){var e=r.getAttribute("is")||r.nodeName,t=wo.get(e);if(t)return t;wo.set(e,t=[]);for(var o,l=r,i=Element.prototype;i!==l;){o=To(l);for(var n in o)o[n].set&&t.push(n);l=pt(l)}return t}function Ul(r,e,t=e){var o=new WeakSet;al(r,"input",async l=>{var i=l?r.defaultValue:r.value;if(i=lt(r)?it(i):i,t(i),A!==null&&o.add(A),await wl(),i!==(i=e())){var n=r.selectionStart,s=r.selectionEnd;r.value=i??"",s!==null&&(r.selectionStart=n,r.selectionEnd=Math.min(s,r.value.length))}}),(_&&r.defaultValue!==r.value||po(e)==null&&r.value)&&(t(lt(r)?it(r.value):r.value),A!==null&&o.add(A)),Xt(()=>{var l=e();if(r===document.activeElement){var i=he??A;if(o.has(i))return}lt(r)&&l===it(r.value)||r.type==="date"&&!l&&!r.value||l!==r.value&&(r.value=l??"")})}function lt(r){var e=r.type;return e==="number"||e==="range"}function it(r){return r===""?null:+r}function Zr(r,e,t,o){var l=o,i=!0,n=()=>(i&&(i=!1,l=o),l),s;s=r[e],s===void 0&&o!==void 0&&(s=n());var a;a=()=>{var p=r[e];return p===void 0?n():(i=!0,p)};var b=!1,f=ue(()=>(b=!1,a())),x=h;return(function(p,v){if(arguments.length>0){const m=v?d(f):p;return G(f,m),b=!0,l!==void 0&&(l=m),p}return Or&&b||(x.f&Sr)!==0?f.v:d(f)})}function Vl(r){return new Yl(r)}class Yl{#e;#r;constructor(e){var t=new Map,o=(i,n)=>{var s=Gt(n,!1,!1);return t.set(i,s),s};const l=new Proxy({...e.props||{},$$events:{}},{get(i,n){return d(t.get(n)??o(n,Reflect.get(i,n)))},has(i,n){return n===Mo?!0:(d(t.get(n)??o(n,Reflect.get(i,n))),Reflect.has(i,n))},set(i,n,s){return G(t.get(n)??o(n,s),s),Reflect.set(i,n,s)}});this.#r=(e.hydrate?Tl:co)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&kr(),this.#e=l.$$events;for(const i of Object.keys(this.#r))i==="$set"||i==="$destroy"||i==="$on"||Dr(this,i,{get(){return this.#r[i]},set(n){this.#r[i]=n},enumerable:!0});this.#r.$set=i=>{Object.assign(l,i)},this.#r.$destroy=()=>{Sl(this.#r)}}$set(e){this.#r.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];const o=(...l)=>t.call(this,...l);return this.#e[e].push(o),()=>{this.#e[e]=this.#e[e].filter(l=>l!==o)}}$destroy(){this.#r.$destroy()}}let yo;typeof HTMLElement=="function"&&(yo=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,e,t){super(),this.$$ctor=r,this.$$s=e,t&&this.attachShadow({mode:"open"})}addEventListener(r,e,t){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(e),this.$$c){const o=this.$$c.$on(r,e);this.$$l_u.set(e,o)}super.addEventListener(r,e,t)}removeEventListener(r,e,t){if(super.removeEventListener(r,e,t),this.$$c){const o=this.$$l_u.get(e);o&&(o(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(o){return l=>{const i=document.createElement("slot");o!=="default"&&(i.name=o),N(l,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},t=Wl(this);for(const o of this.$$s)o in t&&(o==="default"&&!this.$$d.children?(this.$$d.children=r(o),e.default=!0):e[o]=r(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Ae(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=Vl({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=dl(()=>{Xt(()=>{this.$$r=!0;for(const o of pe(this.$$c)){if(!this.$$p_d[o]?.reflect)continue;this.$$d[o]=this.$$c[o];const l=Ae(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const i=this.$$c.$on(o,l);this.$$l_u.set(l,i)}this.$$l={}}}attributeChangedCallback(r,e,t){this.$$r||(r=this.$$g_p(r),this.$$d[r]=Ae(r,t,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return pe(this.$$p_d).find(e=>this.$$p_d[e].attribute===r||!this.$$p_d[e].attribute&&e.toLowerCase()===r)||r}});function Ae(r,e,t,o){const l=t[r]?.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!o||!t[r])return e;if(o==="toAttribute")switch(l){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(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Wl(r){const e={};return r.childNodes.forEach(t=>{e[t.slot||"default"]=!0}),e}function Kl(r,e,t,o,l,i){let n=class extends yo{constructor(){super(r,t,l),this.$$p_d=e}static get observedAttributes(){return pe(e).map(s=>(e[s].attribute||s).toLowerCase())}};return pe(e).forEach(s=>{Dr(n.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Ae(s,a,e),this.$$d[s]=a;var b=this.$$c;if(b){var f=Fr(b,s)?.get;f?b[s]=a:b.$set({[s]:a})}}})}),o.forEach(s=>{Dr(n.prototype,s,{get(){return this.$$c?.[s]}})}),r.element=n,n}function Jl(r,e,t,o,l,i){G(e,!0),r.key!=="Enter"&&(console.log("debouncing",d(t)),d(o)&&clearTimeout(d(o)),G(o,setTimeout(()=>{d(t)&&d(t).length>Number(l())&&i("input")},500),!0))}function Xl(r,e){r&&r.preventDefault?.(),console.log("clicked searching"),e("button")}var Zl=I('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1rxrfb7"/>'),Ql=(r,e)=>{e("button")},ri=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ei=I("<i></i>"),ti=I("<i></i>"),oi=I("<span><!> </span>"),li=I('<a class="dropdown-item d-flex align-items-center gap-2 text-decoration-none svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></a>'),ii=(r,e,t,o)=>{G(e,d(t).text,!0),o("searchlist",d(t).id)},ni=I("<i></i>"),si=I("<i></i>"),ai=I("<span><!> </span>"),bi=I('<button class="dropdown-item d-flex align-items-center gap-2 svelte-1rxrfb7"><!> <span class="flex-grow-1 svelte-1rxrfb7"> </span> <!></button>'),fi=I("<i></i>"),mi=I("<span><!> </span>"),di=I('<div class="px-3 pb-2 svelte-1rxrfb7"><div class="d-flex flex-wrap gap-1 svelte-1rxrfb7"></div></div>'),pi=I('<li class="svelte-1rxrfb7"><hr class="dropdown-divider svelte-1rxrfb7"/></li>'),vi=I('<li class="svelte-1rxrfb7"><!> <!></li> <!>',1),xi=I('<li class="svelte-1rxrfb7"><h6 class="dropdown-header svelte-1rxrfb7">Suggested results</h6></li> <!>',1),ci=I('<div><div class="position-relative svelte-1rxrfb7"><input id="custom-search-input" class="form-control svelte-1rxrfb7" type="search" aria-label="Search" aria-describedby="search"/> <button class="btn bg-transparent px-2 py-0 position-absolute top-50 start-5 translate-middle-y svelte-1rxrfb7" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search svelte-1rxrfb7" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z" class="svelte-1rxrfb7"></path></svg></button></div> <div class="dropdown svelte-1rxrfb7" style="position: absolute; width:100%"><ul id="custom-search-list"><li class="svelte-1rxrfb7"><button class="dropdown-item svelte-1rxrfb7"> </button></li> <!></ul></div></div>');const gi={hash:"svelte-1rxrfb7",code:`@charset "UTF-8";
|
|
3
3
|
@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");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
@@ -270,5 +270,5 @@ button.svelte-1rxrfb7 {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
270
270
|
}
|
|
271
271
|
@media print {.d-print-inline.svelte-1rxrfb7 {display:inline !important;}.d-print-inline-block.svelte-1rxrfb7 {display:inline-block !important;}.d-print-block.svelte-1rxrfb7 {display:block !important;}.d-print-grid.svelte-1rxrfb7 {display:grid !important;}.d-print-inline-grid.svelte-1rxrfb7 {display:inline-grid !important;}.d-print-table.svelte-1rxrfb7 {display:table !important;}.d-print-table-row.svelte-1rxrfb7 {display:table-row !important;}.d-print-table-cell.svelte-1rxrfb7 {display:table-cell !important;}.d-print-flex.svelte-1rxrfb7 {display:flex !important;}.d-print-inline-flex.svelte-1rxrfb7 {display:inline-flex !important;}.d-print-none.svelte-1rxrfb7 {display:none !important;}
|
|
272
272
|
}:host {font-family:"Roboto", sans-serif;}#custom-search-input.svelte-1rxrfb7 {background-color:#ebeef4;color:var(--bs-secondary-color);border-bottom:0px;padding-left:33px;
|
|
273
|
-
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-1rxrfb7::placeholder {color:var(--bs-secondary-color);opacity:0.5;}#custom-search-list.svelte-1rxrfb7 {position:static;margin:0px;background-color:rgba(255, 255, 255, 0.95);border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}`};function
|
|
273
|
+
/* 36px - between ps-4 (24px) and ps-5 (48px) */}#custom-search-input.svelte-1rxrfb7::placeholder {color:var(--bs-secondary-color);opacity:0.5;}#custom-search-list.svelte-1rxrfb7 {position:static;margin:0px;background-color:rgba(255, 255, 255, 0.95);border-radius:0px 0px 5px 5px;border-top:none;max-height:200px;overflow-y:auto;}`};function ko(r,e){_t(e,!0),Ol(r,gi);let t=Zr(e,"id",7,""),o=Zr(e,"style",7,""),l=Zr(e,"searchlabel",7,"Search"),i=Zr(e,"searchlist"),n=Zr(e,"minlength",7,0),s=Zr(e,"disable_preview",7,"no"),a=ir(""),b=ir(!1),f=Tt(()=>i()?.filter?.(c=>c?.fixed||c?.text?.toLowerCase().includes(d(a).toLowerCase())));const x=Tt(()=>s()!=="yes"&&s()!=="true"&&s()!=="on"&&d(a)?.length>Number(n())&&d(b));Kt(()=>{if(t()||t(""),i()||i([]),typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing searchlist",c)}});async function p(c,U){if(!d(a))return;console.log("searching",c,d(a));let hr;U?(hr=i()?.find(ar=>ar.id===U),hr&&u("search",{input:d(a),by:c,item:hr})):u("search",{input:d(a),by:c}),c!=="input"&&G(b,!1)}let v=ir(void 0);function m(c){console.log("closeDropdown",c.target.closest("hb-searchbar")),!(!d(b)||c.target.closest("hb-searchbar"))&&G(b,!1)}Cl(()=>(console.log("mounting searchbar"),window.addEventListener("click",m),()=>{console.log("unmounting searchbar"),window.removeEventListener("click",m)}));function u(c,U){e.$$host.dispatchEvent(new CustomEvent(c,{detail:U}))}var w={get id(){return t()},set id(c=""){t(c),kr()},get style(){return o()},set style(c=""){o(c),kr()},get searchlabel(){return l()},set searchlabel(c="Search"){l(c),kr()},get searchlist(){return i()},set searchlist(c){i(c),kr()},get minlength(){return n()},set minlength(c=0){n(c),kr()},get disable_preview(){return s()},set disable_preview(c="no"){s(c),kr()}},$=ci();jl(c=>{var U=Zl();N(c,U)});var z=D($),T=D(z);Fl(T),T.__input=[Jl,b,a,v,n,p];var H=K(T,2);H.__click=[Xl,p],L(z);var S=K(z,2),g=D(S),k=D(g),C=D(k);C.__click=[Ql,p];var Gr=D(C);L(C),L(k);var Qr=K(k,2);{var ur=c=>{var U=xi(),hr=K(Ht(U),2);uo(hr,19,()=>d(f),ar=>ar.id,(ar,j,nt)=>{var Re=vi(),st=Ht(Re),_o=D(st);{var ui=V=>{var P=li();P.__click=[ri,a,j,p];var Ar=D(P);{var ae=M=>{var R=ei();nr(()=>xr(R,1,`bi bi-${d(j).icon?d(j).icon:"dot"}`,"svelte-1rxrfb7")),N(M,R)};sr(Ar,M=>{(d(j).icon||d(f).find(R=>R.icon))&&M(ae)})}var tr=K(Ar,2),Rr=D(tr,!0);L(tr);var re=K(tr,2);{var be=M=>{var R=oi(),Tr=D(R);{var at=Ir=>{var fe=ti();nr(()=>xr(fe,1,`bi bi-${d(j).badge.icon}`,"svelte-1rxrfb7")),N(Ir,fe)};sr(Tr,Ir=>{d(j).badge.icon&&Ir(at)})}var bt=K(Tr);L(R),nr(()=>{xr(R,1,`badge bg-${d(j).badge.color||"secondary"} d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(bt,` ${d(j).badge.text??""}`)}),N(M,R)};sr(re,M=>{d(j).badge&&M(be)})}L(P),nr(()=>{Ee(P,"href",d(j).url),Jr(Rr,d(j).text)}),N(V,P)},hi=V=>{var P=bi();P.__click=[ii,a,j,p];var Ar=D(P);{var ae=M=>{var R=ni();nr(()=>xr(R,1,`bi bi-${d(j).icon?d(j).icon:"dot"}`,"svelte-1rxrfb7")),N(M,R)};sr(Ar,M=>{(d(j).icon||d(f).find(R=>R.icon))&&M(ae)})}var tr=K(Ar,2),Rr=D(tr,!0);L(tr);var re=K(tr,2);{var be=M=>{var R=ai(),Tr=D(R);{var at=Ir=>{var fe=si();nr(()=>xr(fe,1,`bi bi-${d(j).badge.icon}`,"svelte-1rxrfb7")),N(Ir,fe)};sr(Tr,Ir=>{d(j).badge.icon&&Ir(at)})}var bt=K(Tr);L(R),nr(()=>{xr(R,1,`badge bg-${d(j).badge.color||"secondary"} d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(bt,` ${d(j).badge.text??""}`)}),N(M,R)};sr(re,M=>{d(j).badge&&M(be)})}L(P),nr(()=>Jr(Rr,d(j).text)),N(V,P)};sr(_o,V=>{d(j).url?V(ui):V(hi,!1)})}var wi=K(_o,2);{var yi=V=>{var P=di(),Ar=D(P);uo(Ar,21,()=>d(j).tags,Bl,(ae,tr)=>{var Rr=mi(),re=D(Rr);{var be=R=>{var Tr=fi();nr(()=>xr(Tr,1,`bi bi-${d(tr).icon}`,"svelte-1rxrfb7")),N(R,Tr)};sr(re,R=>{d(tr).icon&&R(be)})}var M=K(re);L(Rr),nr(()=>{xr(Rr,1,`badge bg-${d(tr).color||"light"} text-dark d-flex align-items-center gap-1`,"svelte-1rxrfb7"),Jr(M,` ${d(tr).text??""}`)}),N(ae,Rr)}),L(Ar),L(P),N(V,P)};sr(wi,V=>{d(j).tags&&d(j).tags.length>0&&V(yi)})}L(st);var ki=K(st,2);{var _i=V=>{var P=pi();N(V,P)};sr(ki,V=>{d(nt)<d(f).length-1&&V(_i)})}N(ar,Re)}),N(c,U)};sr(Qr,c=>{d(f)?.length&&c(ur)})}return L(g),L(S),L($),nr(()=>{xr($,1,`${d(x)?"border-primary-subtle":""} position-relative`,"svelte-1rxrfb7"),Il(T,d(x)?"border-radius: 5px 5px 0px 0px;":"border-radius: 5px"),Ee(T,"placeholder",l()),xr(g,1,`dropdown-menu ${d(x)?"show":""}`,"svelte-1rxrfb7"),Jr(Gr,`... ${d(a)??""}`)}),_l("keypress",T,c=>{c.key==="Enter"&&(c.preventDefault(),p("button"))}),Ul(T,()=>d(a),c=>G(a,c)),N(r,$),$t(w)}$l(["input","click"]),customElements.define("hb-searchbar",Kl(ko,{id:{},style:{},searchlabel:{},searchlist:{},minlength:{},disable_preview:{}},[],[],!0)),ft.Component=ko,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})})(this.searchbar=this.searchbar||{});
|
|
274
274
|
//# sourceMappingURL=main.iife.js.map
|