@htmlbricks/hb-gallery-video 0.61.34 → 0.61.35

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(hr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Pn=1,Yn=2,Fn=16,jn=1,Hn=4,qn=8,Un=16,Vn=1,Bn=2,pr="[",Lt="[!",Pt="]",Qe={},J=Symbol(),Wn="http://www.w3.org/1999/xhtml",br=!1;var Yt=Array.isArray,zn=Array.prototype.indexOf,Ft=Array.from,gt=Object.keys,et=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,Gn=Object.getOwnPropertyDescriptors,Xn=Object.prototype,Kn=Array.prototype,gr=Object.getPrototypeOf,_r=Object.isExtensible;function mr(e){for(var t=0;t<e.length;t++)e[t]()}function Jn(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const oe=2,jt=4,Ht=8,tt=16,De=32,Ce=64,wr=128,ce=256,_t=512,Q=1024,de=2048,Ne=4096,be=8192,Ue=16384,qt=32768,Ut=65536,yr=1<<17,Zn=1<<18,rt=1<<19,Qn=1<<20,Vt=1<<21,Bt=1<<22,Ve=1<<23,mt=Symbol("$state"),$r=Symbol("legacy props"),ei=Symbol(""),Wt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ti=3,ct=8;function ri(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function ni(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ii(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function si(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ai(e){throw new Error("https://svelte.dev/e/effect_orphan")}function li(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function oi(){throw new Error("https://svelte.dev/e/hydration_failed")}function ui(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function fi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ci(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function di(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let L=!1;function ge(e){L=e}let U;function ye(e){if(e===null)throw wt(),Qe;return U=e}function yt(){return ye(Le(U))}function Z(e){if(L){if(Le(U)!==null)throw wt(),Qe;U=e}}function zt(){for(var e=0,t=U;;){if(t.nodeType===ct){var r=t.data;if(r===Pt){if(e===0)return t;e-=1}else(r===pr||r===Lt)&&(e+=1)}var n=Le(t);t.remove(),t=n}}function xr(e){if(!e||e.nodeType!==ct)throw wt(),Qe;return e.data}function Er(e){return e===this.v}function vi(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!vi(e,this.v)}let hi=!1,_e=null;function $t(e){_e=e}function kr(e,t=!1,r){_e={p:_e,c:null,e:null,s:e,x:null,l:null}}function Mr(e){var t=_e,r=t.e;if(r!==null){t.e=null;for(var n of r)Jr(n)}return e!==void 0&&(t.x=e),_e=t.p,e??{}}function Dr(){return!0}const pi=new WeakMap;function bi(e){var t=C;if(t===null)return N.f|=Ve,e;if((t.f&qt)===0){if((t.f&wr)===0)throw!t.parent&&e instanceof Error&&Tr(e),e;t.b.error(e)}else Gt(e,t)}function Gt(e,t){for(;t!==null;){if((t.f&wr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&Tr(e),e}function Tr(e){const t=pi.get(e);t&&(et(e,"message",{value:t.message}),et(e,"stack",{value:t.stack}))}const gi=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let dt=[],vt=[];function Or(){var e=dt;dt=[],mr(e)}function Ar(){var e=vt;vt=[],mr(e)}function _i(e){dt.length===0&&queueMicrotask(Or),dt.push(e)}function mi(e){vt.length===0&&gi(Ar),vt.push(e)}function wi(){dt.length>0&&Or(),vt.length>0&&Ar()}function yi(){const e=C.b;return e===null&&ri(),e}function Xt(e){var t=oe|de,r=N!==null&&(N.f&oe)!==0?N:null;return C===null||r!==null&&(r.f&ce)!==0?t|=ce:C.f|=rt,{ctx:_e,deps:null,effects:null,equals:Er,f:t,fn:e,reactions:null,rv:0,v:J,wv:0,parent:r??C,ac:null}}function $i(e,t){let r=C;r===null&&ni();var n=r.b,i=void 0,s=ht(J),a=null,l=!N;return Ii(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(d){o=Promise.reject(d)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=q,c=n.is_pending();l&&(n.update_pending_count(1),c||f.increment());const p=(d,h=void 0)=>{a=null,c||f.activate(),h?h!==Wt&&(s.f|=Ve,Mt(s,h)):((s.f&Ve)!==0&&(s.f^=Ve),Mt(s,d)),l&&(n.update_pending_count(-1),c||f.decrement()),Ir()};if(i.then(p,d=>p(null,d||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function c(){f===i?o(s):u(i)}f.then(c,c)}u(i)})}function Cr(e){const t=Xt(e);return t.equals=Sr,t}function Nr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)xe(t[r])}}function xi(e){for(var t=e.parent;t!==null;){if((t.f&oe)===0)return t;t=t.parent}return null}function Kt(e){var t,r=C;Se(xi(e));try{Nr(e),t=dn(e)}finally{Se(r)}return t}function Rr(e){var t=Kt(e);if(e.equals(t)||(e.v=t,e.wv=fn()),!Xe){var r=(Pe||(e.f&ce)!==0)&&e.deps!==null?Ne:Q;ae(e,r)}}function Ei(e,t,r){const n=Xt;if(t.length===0){r(e.map(n));return}var i=q,s=C,a=Si(),l=yi();Promise.all(t.map(o=>$i(o))).then(o=>{i?.activate(),a();try{r([...e.map(n),...o])}catch(u){(s.f&Ue)===0&&Gt(u,s)}i?.deactivate(),Ir()}).catch(o=>{l.error(o)})}function Si(){var e=C,t=N,r=_e,n=q;return function(){Se(e),he(t),$t(r),n?.activate()}}function Ir(){Se(null),he(null),$t(null)}const Jt=new Set;let q=null,xt=null,Lr=new Set,Et=[];function Pr(){const e=Et.shift();Et.length>0&&queueMicrotask(Pr),e()}let Be=[],St=null,Zt=!1,kt=!1;class We{current=new Map;#t=new Map;#e=new Set;#r=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#n=[];#l=[];#c=[];#d=[];skipped_effects=new Set;process(t){Be=[],xt=null;for(const i of t)this.#h(i);if(this.#i.length===0&&this.#r===0){this.#v();var r=this.#s,n=this.#n;this.#s=[],this.#n=[],this.#l=[],xt=q,q=null,Fr(r),Fr(n),q===null?q=this:Jt.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#n),this.#o(this.#l);for(const i of this.#i)lt(i);for(const i of this.#a)lt(i);this.#i=[],this.#a=[]}#h(t){t.f^=Q;for(var r=t.first;r!==null;){var n=r.f,i=(n&(De|Ce))!==0,s=i&&(n&Q)!==0,a=s||(n&be)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(i)r.f^=Q;else if((n&jt)!==0)this.#n.push(r);else if((n&Q)===0)if((n&Bt)!==0){var l=r.b?.is_pending()?this.#a:this.#i;l.push(r)}else Tt(r)&&((r.f&tt)!==0&&this.#l.push(r),lt(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)r=u.next,u=u.parent}}#o(t){for(const r of t)((r.f&de)!==0?this.#c:this.#d).push(r),ae(r,Q);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){q=this}deactivate(){q=null,xt=null;for(const t of Lr)if(Lr.delete(t),t(),q!==null)break}neuter(){this.#f=!0}flush(){Be.length>0?Yr():this.#v(),q===this&&(this.#r===0&&Jt.delete(this),this.deactivate())}#v(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)ae(t,de),nt(t);for(const t of this.#d)ae(t,Ne),nt(t);this.#s=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Jn()).promise}static ensure(){if(q===null){const t=q=new We;Jt.add(q),kt||We.enqueue(()=>{q===t&&t.flush()})}return q}static enqueue(t){Et.length===0&&queueMicrotask(Pr),Et.unshift(t)}}function ne(e){var t=kt;kt=!0;try{for(var r;;){if(wi(),Be.length===0&&(q?.flush(),Be.length===0))return St=null,r;Yr()}}finally{kt=t}}function Yr(){var e=at;Zt=!0;try{var t=0;for(an(!0);Be.length>0;){var r=We.ensure();if(t++>1e3){var n,i;ki()}r.process(Be),Re.clear()}}finally{Zt=!1,an(e),St=null}}function ki(){try{li()}catch(e){Gt(e,St)}}let ze=null;function Fr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ue|be))===0&&Tt(n)&&(ze=[],lt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?rn(n):n.fn=null),ze?.length>0)){Re.clear();for(const i of ze)lt(i);ze=[]}}ze=null}}function nt(e){for(var t=St=e;t.parent!==null;){t=t.parent;var r=t.f;if(Zt&&t===C&&(r&tt)!==0)return;if((r&(Ce|De))!==0){if((r&Q)===0)return;t.f^=Q}}Be.push(t)}const Re=new Map;function ht(e,t){var r={f:0,v:e,reactions:null,equals:Er,rv:0,wv:0};return r}function ie(e,t){const r=ht(e);return Yi(r),r}function jr(e,t=!1,r=!0){const n=ht(e);return t||(n.equals=Sr),n}function X(e,t,r=!1){N!==null&&(!Ee||(N.f&yr)!==0)&&Dr()&&(N.f&(oe|tt|Bt|yr))!==0&&!Te?.includes(e)&&di();let n=r?Ie(t):t;return Mt(e,n)}function Mt(e,t){if(!e.equals(t)){var r=e.v;Xe?Re.set(e,t):Re.set(e,r),e.v=t;var n=We.ensure();n.capture(e,r),(e.f&oe)!==0&&((e.f&de)!==0&&Kt(e),ae(e,(e.f&ce)===0?Q:Ne)),e.wv=fn(),Hr(e,de),C!==null&&(C.f&Q)!==0&&(C.f&(De|Ce))===0&&(pe===null?Fi([e]):pe.push(e))}return t}function Qt(e){X(e,e.v+1)}function Hr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&de)===0;l&&ae(s,t),(a&oe)!==0?Hr(s,Ne):l&&((a&tt)!==0&&ze!==null&&ze.push(s),nt(s))}}function Ie(e){if(typeof e!="object"||e===null||mt in e)return e;const t=gr(e);if(t!==Xn&&t!==Kn)return e;var r=new Map,n=Yt(e),i=ie(0),s=Ke,a=l=>{if(Ke===s)return l();var o=N,u=Ke;he(null),un(s);var f=l();return he(o),un(u),f};return n&&r.set("length",ie(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&fi();var f=r.get(o);return f===void 0?f=a(()=>{var c=ie(u.value);return r.set(o,c),c}):X(f,u.value,!0),!0},deleteProperty(l,o){var u=r.get(o);if(u===void 0){if(o in l){const f=a(()=>ie(J));r.set(o,f),Qt(i)}}else X(u,J),Qt(i);return!0},get(l,o,u){if(o===mt)return e;var f=r.get(o),c=o in l;if(f===void 0&&(!c||qe(l,o)?.writable)&&(f=a(()=>{var d=Ie(c?l[o]:J),h=ie(d);return h}),r.set(o,f)),f!==void 0){var p=E(f);return p===J?void 0:p}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=r.get(o);f&&(u.value=E(f))}else if(u===void 0){var c=r.get(o),p=c?.v;if(c!==void 0&&p!==J)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return u},has(l,o){if(o===mt)return!0;var u=r.get(o),f=u!==void 0&&u.v!==J||Reflect.has(l,o);if(u!==void 0||C!==null&&(!f||qe(l,o)?.writable)){u===void 0&&(u=a(()=>{var p=f?Ie(l[o]):J,d=ie(p);return d}),r.set(o,u));var c=E(u);if(c===J)return!1}return f},set(l,o,u,f){var c=r.get(o),p=o in l;if(n&&o==="length")for(var d=u;d<c.v;d+=1){var h=r.get(d+"");h!==void 0?X(h,J):d in l&&(h=a(()=>ie(J)),r.set(d+"",h))}if(c===void 0)(!p||qe(l,o)?.writable)&&(c=a(()=>ie(void 0)),X(c,Ie(u)),r.set(o,c));else{p=c.v!==J;var m=a(()=>Ie(u));X(c,m)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(f,u),!p){if(n&&typeof o=="string"){var R=r.get("length"),$=Number(o);Number.isInteger($)&&$>=R.v&&X(R,$+1)}Qt(i)}return!0},ownKeys(l){E(i);var o=Reflect.ownKeys(l).filter(c=>{var p=r.get(c);return p===void 0||p.v!==J});for(var[u,f]of r)f.v!==J&&!(u in l)&&o.push(u);return o},setPrototypeOf(){ci()}})}var qr,Ur,Vr,Br;function er(){if(qr===void 0){qr=window,Ur=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Vr=qe(t,"firstChild").get,Br=qe(t,"nextSibling").get,_r(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),_r(r)&&(r.__t=void 0)}}function it(e=""){return document.createTextNode(e)}function Ge(e){return Vr.call(e)}function Le(e){return Br.call(e)}function ee(e,t){if(!L)return Ge(e);var r=Ge(U);return r===null&&(r=U.appendChild(it())),ye(r),r}function Wr(e,t){if(!L){var r=Ge(e);return r instanceof Comment&&r.data===""?Le(r):r}return U}function me(e,t=1,r=!1){let n=L?U:e;for(var i;t--;)i=n,n=Le(n);if(!L)return n;if(r&&n?.nodeType!==ti){var s=it();return n===null?i?.after(s):n.before(s),ye(s),s}return ye(n),n}function zr(e){e.textContent=""}function Gr(){return!1}let Xr=!1;function Kr(){Xr||(Xr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Dt(e){var t=N,r=C;he(null),Se(null);try{return e()}finally{he(t),Se(r)}}function Mi(e,t,r,n=r){e.addEventListener(t,()=>Dt(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),Kr()}function Di(e){C===null&&N===null&&ai(),N!==null&&(N.f&ce)!==0&&C===null&&si(),Xe&&ii()}function Ti(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function $e(e,t,r,n=!0){var i=C;i!==null&&(i.f&be)!==0&&(e|=be);var s={ctx:_e,deps:null,nodes_start:null,nodes_end:null,f:e|de,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{lt(s),s.f|=qt}catch(o){throw xe(s),o}else t!==null&&nt(s);if(n){var a=s;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&rt)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Ti(a,i),N!==null&&(N.f&oe)!==0&&(e&Ce)===0)){var l=N;(l.effects??=[]).push(a)}}return s}function Oi(e){const t=$e(Ht,null,!1);return ae(t,Q),t.teardown=e,t}function Ai(e){Di();var t=C.f,r=!N&&(t&De)!==0&&(t&qt)===0;if(r){var n=_e;(n.e??=[]).push(e)}else return Jr(e)}function Jr(e){return $e(jt|Qn,e,!1)}function Ci(e){We.ensure();const t=$e(Ce|rt,e,!0);return()=>{xe(t)}}function Ni(e){We.ensure();const t=$e(Ce|rt,e,!0);return(r={})=>new Promise(n=>{r.outro?tr(t,()=>{xe(t),n(void 0)}):(xe(t),n(void 0))})}function Ri(e){return $e(jt,e,!1)}function Ii(e){return $e(Bt|rt,e,!0)}function Zr(e,t=0){return $e(Ht|t,e,!0)}function ve(e,t=[],r=[]){Ei(t,r,n=>{$e(Ht,()=>e(...n.map(E)),!0)})}function Qr(e,t=0){var r=$e(tt|t,e,!0);return r}function st(e,t=!0){return $e(De|rt,e,!0,t)}function en(e){var t=e.teardown;if(t!==null){const r=Xe,n=N;ln(!0),he(null);try{t.call(null)}finally{ln(r),he(n)}}}function tn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Dt(()=>{i.abort(Wt)});var n=r.next;(r.f&Ce)!==0?r.parent=null:xe(r,t),r=n}}function Li(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&De)===0&&xe(t),t=r}}function xe(e,t=!0){var r=!1;(t||(e.f&Zn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Pi(e.nodes_start,e.nodes_end),r=!0),tn(e,t&&!r),Ot(e,0),ae(e,Ue);var n=e.transitions;if(n!==null)for(const s of n)s.stop();en(e);var i=e.parent;i!==null&&i.first!==null&&rn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Pi(e,t){for(;e!==null;){var r=e===t?null:Le(e);e.remove(),e=r}}function rn(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 tr(e,t){var r=[];rr(e,r,!0),nn(r,()=>{xe(e),t&&t()})}function nn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function rr(e,t,r){if((e.f&be)===0){if(e.f^=be,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ut)!==0||(n.f&De)!==0;rr(n,t,s?r:!1),n=i}}}function nr(e){sn(e,!0)}function sn(e,t){if((e.f&be)!==0){e.f^=be,(e.f&Q)===0&&(ae(e,de),nt(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ut)!==0||(r.f&De)!==0;sn(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let at=!1;function an(e){at=e}let Xe=!1;function ln(e){Xe=e}let N=null,Ee=!1;function he(e){N=e}let C=null;function Se(e){C=e}let Te=null;function Yi(e){N!==null&&(Te===null?Te=[e]:Te.push(e))}let se=null,ue=0,pe=null;function Fi(e){pe=e}let on=1,pt=0,Ke=pt;function un(e){Ke=e}let Pe=!1;function fn(){return++on}function Tt(e){var t=e.f;if((t&de)!==0)return!0;if((t&Ne)!==0){var r=e.deps,n=(t&ce)!==0;if(r!==null){var i,s,a=(t&_t)!==0,l=n&&C!==null&&!Pe,o=r.length;if((a||l)&&(C===null||(C.f&Ue)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=r[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=_t),l&&f!==null&&(f.f&ce)===0&&(u.f^=ce)}for(i=0;i<o;i++)if(s=r[i],Tt(s)&&Rr(s),s.wv>e.wv)return!0}(!n||C!==null&&!Pe)&&ae(e,Q)}return!1}function cn(e,t,r=!0){var n=e.reactions;if(n!==null&&!Te?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&oe)!==0?cn(s,t,!1):t===s&&(r?ae(s,de):(s.f&Q)!==0&&ae(s,Ne),nt(s))}}function dn(e){var t=se,r=ue,n=pe,i=N,s=Pe,a=Te,l=_e,o=Ee,u=Ke,f=e.f;se=null,ue=0,pe=null,Pe=(f&ce)!==0&&(Ee||!at||N===null),N=(f&(De|Ce))===0?e:null,Te=null,$t(e.ctx),Ee=!1,Ke=++pt,e.ac!==null&&(Dt(()=>{e.ac.abort(Wt)}),e.ac=null);try{e.f|=Vt;var c=e.fn,p=c(),d=e.deps;if(se!==null){var h;if(Ot(e,ue),d!==null&&ue>0)for(d.length=ue+se.length,h=0;h<se.length;h++)d[ue+h]=se[h];else e.deps=d=se;if(!Pe||(f&oe)!==0&&e.reactions!==null)for(h=ue;h<d.length;h++)(d[h].reactions??=[]).push(e)}else d!==null&&ue<d.length&&(Ot(e,ue),d.length=ue);if(Dr()&&pe!==null&&!Ee&&d!==null&&(e.f&(oe|Ne|de))===0)for(h=0;h<pe.length;h++)cn(pe[h],e);return i!==null&&i!==e&&(pt++,pe!==null&&(n===null?n=pe:n.push(...pe))),(e.f&Ve)!==0&&(e.f^=Ve),p}catch(m){return bi(m)}finally{e.f^=Vt,se=t,ue=r,pe=n,N=i,Pe=s,Te=a,$t(l),Ee=o,Ke=u}}function ji(e,t){let r=t.reactions;if(r!==null){var n=zn.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&oe)!==0&&(se===null||!se.includes(t))&&(ae(t,Ne),(t.f&(ce|_t))===0&&(t.f^=_t),Nr(t),Ot(t,0))}function Ot(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)ji(e,r[n])}function lt(e){var t=e.f;if((t&Ue)===0){ae(e,Q);var r=C,n=at;C=e,at=!0;try{(t&tt)!==0?Li(e):tn(e),en(e);var i=dn(e);e.teardown=typeof i=="function"?i:null,e.wv=on;var s;br&&hi&&(e.f&de)!==0&&e.deps}finally{at=n,C=r}}}async function Hi(){await Promise.resolve(),ne()}function E(e){var t=e.f,r=(t&oe)!==0;if(N!==null&&!Ee){var n=C!==null&&(C.f&Ue)!==0;if(!n&&!Te?.includes(e)){var i=N.deps;if((N.f&Vt)!==0)e.rv<pt&&(e.rv=pt,se===null&&i!==null&&i[ue]===e?ue++:se===null?se=[e]:(!Pe||!se.includes(e))&&se.push(e));else{(N.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[N]:s.includes(N)||s.push(N)}}}else if(r&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&ce)===0&&(a.f^=ce)}if(Xe){if(Re.has(e))return Re.get(e);if(r){a=e;var o=a.v;return((a.f&Q)===0&&a.reactions!==null||vn(a))&&(o=Kt(a)),Re.set(a,o),o}}else r&&(a=e,Tt(a)&&Rr(a));if((e.f&Ve)!==0)throw e.v;return e.v}function vn(e){if(e.v===J)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Re.has(t)||(t.f&oe)!==0&&vn(t))return!0;return!1}function hn(e){var t=Ee;try{return Ee=!0,e()}finally{Ee=t}}const qi=-7169;function ae(e,t){e.f=e.f&qi|t}const pn=new Set,ir=new Set;function Ui(e,t,r,n={}){function i(s){if(n.capture||bt.call(t,s),!s.cancelBubble)return Dt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?_i(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Vi(e,t,r,n,i){var s={capture:n,passive:i},a=Ui(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Oi(()=>{t.removeEventListener(e,a,s)})}function Bi(e){for(var t=0;t<e.length;t++)pn.add(e[t]);for(var r of ir)r(e)}let bn=null;function bt(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;bn=e;var a=0,l=bn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){et(e,"currentTarget",{configurable:!0,get(){return s||r}});var f=N,c=C;he(null),Se(null);try{for(var p,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var m=s["__"+n];if(m!=null&&(!s.disabled||e.target===s))if(Yt(m)){var[S,...R]=m;S.apply(s,[e,...R])}else m.call(s,e)}catch($){p?d.push($):p=$}if(e.cancelBubble||h===t||h===null)break;s=h}if(p){for(let $ of d)queueMicrotask(()=>{throw $});throw p}}finally{e.__root=t,delete e.currentTarget,he(f),Se(c)}}}function Wi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function At(e,t){var r=C;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ye(e,t){var r=(t&Vn)!==0,n=(t&Bn)!==0,i,s=!e.startsWith("<!>");return()=>{if(L)return At(U,null),U;i===void 0&&(i=Wi(s?e:"<!>"+e),r||(i=Ge(i)));var a=n||Ur?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ge(a),o=a.lastChild;At(l,o)}else At(a,a);return a}}function Oe(e,t){if(L){C.nodes_end=U,yt();return}e!==null&&e.before(t)}const zi=["touchstart","touchmove"];function Gi(e){return zi.includes(e)}function gn(e,t){return _n(e,t)}function Xi(e,t){er(),t.intro=t.intro??!1;const r=t.target,n=L,i=U;try{for(var s=Ge(r);s&&(s.nodeType!==ct||s.data!==pr);)s=Le(s);if(!s)throw Qe;ge(!0),ye(s),yt();const a=_n(e,{...t,anchor:s});if(U===null||U.nodeType!==ct||U.data!==Pt)throw wt(),Qe;return ge(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Qe&&console.warn("Failed to hydrate: ",a),t.recover===!1&&oi(),er(),zr(r),ge(!1),gn(e,t)}finally{ge(n),ye(i)}}const ot=new Map;function _n(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){er();var l=new Set,o=c=>{for(var p=0;p<c.length;p++){var d=c[p];if(!l.has(d)){l.add(d);var h=Gi(d);t.addEventListener(d,bt,{passive:h});var m=ot.get(d);m===void 0?(document.addEventListener(d,bt,{passive:h}),ot.set(d,1)):ot.set(d,m+1)}}};o(Ft(pn)),ir.add(o);var u=void 0,f=Ni(()=>{var c=r??t.appendChild(it());return st(()=>{if(s){kr({});var p=_e;p.c=s}i&&(n.$$events=i),L&&At(c,null),u=e(c,n)||{},L&&(C.nodes_end=U),s&&Mr()}),()=>{for(var p of l){t.removeEventListener(p,bt);var d=ot.get(p);--d===0?(document.removeEventListener(p,bt),ot.delete(p)):ot.set(p,d)}ir.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return sr.set(u,f),u}let sr=new WeakMap;function Ki(e,t){const r=sr.get(e);return r?(sr.delete(e),r(t)):Promise.resolve()}function ut(e,t,r=!1){L&&yt();var n=e,i=null,s=null,a=J,l=r?Ut:0,o=!1;const u=(d,h=!0)=>{o=!0,p(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?i:s,h=a?s:i;d&&nr(d),h&&tr(h,()=>{a?s=null:i=null})}const p=(d,h)=>{if(a===(a=d))return;let m=!1;if(L){const A=xr(n)===Lt;!!a===A&&(n=zt(),ye(n),ge(!1),m=!0)}var S=Gr(),R=n;if(S&&(f=document.createDocumentFragment(),f.append(R=it())),a?i??=h&&st(()=>h(R)):s??=h&&st(()=>h(R)),S){var $=q,T=a?i:s,k=a?s:i;T&&$.skipped_effects.delete(T),k&&$.skipped_effects.add(k),$.add_callback(c)}else c();m&&ge(!0)};Qr(()=>{o=!1,t(u),o||p(null,null)},l),L&&(n=U)}function Ji(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)rr(t[a].e,i,!0);var l=s>0&&i.length===0&&r!==null;if(l){var o=r.parentNode;zr(o),o.append(r),n.clear(),ke(e,t[0].prev,t[s-1].next)}nn(i,()=>{for(var u=0;u<s;u++){var f=t[u];l||(n.delete(f.k),ke(e,f.prev,f.next)),xe(f.e,!l)}})}function Zi(e,t,r,n,i,s=null){var a=e,l={flags:t,items:new Map,first:null};{var o=e;a=L?ye(Ge(o)):o.appendChild(it())}L&&yt();var u=null,f=!1,c=new Map,p=Cr(()=>{var S=r();return Yt(S)?S:S==null?[]:Ft(S)}),d,h;function m(){Qi(h,d,l,c,a,i,t,n,r),s!==null&&(d.length===0?u?nr(u):u=st(()=>s(a)):u!==null&&tr(u,()=>{u=null}))}Qr(()=>{h??=C,d=E(p);var S=d.length;if(f&&S===0)return;f=S===0;let R=!1;if(L){var $=xr(a)===Lt;$!==(S===0)&&(a=zt(),ye(a),ge(!1),R=!0)}if(L){for(var T=null,k,A=0;A<S;A++){if(U.nodeType===ct&&U.data===Pt){a=U,R=!0,ge(!1);break}var B=d[A],W=n(B,A);k=ar(U,l,T,null,B,W,A,i,t,r),l.items.set(W,k),T=k}S>0&&ye(zt())}if(L)S===0&&s&&(u=st(()=>s(a)));else if(Gr()){var te=new Set,V=q;for(A=0;A<S;A+=1){B=d[A],W=n(B,A);var Y=l.items.get(W)??c.get(W);Y?mn(Y,B,A):(k=ar(null,l,null,null,B,W,A,i,t,r,!0),c.set(W,k)),te.add(W)}for(const[O,x]of l.items)te.has(O)||V.skipped_effects.add(x.e);V.add_callback(m)}else m();R&&ge(!0),E(p)}),L&&(a=U)}function Qi(e,t,r,n,i,s,a,l,o){var u=t.length,f=r.items,c=r.first,p=c,d,h=null,m=[],S=[],R,$,T,k;for(k=0;k<u;k+=1){if(R=t[k],$=l(R,k),T=f.get($),T===void 0){var A=n.get($);if(A!==void 0){n.delete($),f.set($,A);var B=h?h.next:p;ke(r,h,A),ke(r,A,B),lr(A,B,i),h=A}else{var W=p?p.e.nodes_start:i;h=ar(W,r,h,h===null?r.first:h.next,R,$,k,s,a,o)}f.set($,h),m=[],S=[],p=h.next;continue}if(mn(T,R,k),(T.e.f&be)!==0&&nr(T.e),T!==p){if(d!==void 0&&d.has(T)){if(m.length<S.length){var te=S[0],V;h=te.prev;var Y=m[0],O=m[m.length-1];for(V=0;V<m.length;V+=1)lr(m[V],te,i);for(V=0;V<S.length;V+=1)d.delete(S[V]);ke(r,Y.prev,O.next),ke(r,h,Y),ke(r,O,te),p=te,h=O,k-=1,m=[],S=[]}else d.delete(T),lr(T,p,i),ke(r,T.prev,T.next),ke(r,T,h===null?r.first:h.next),ke(r,h,T),h=T;continue}for(m=[],S=[];p!==null&&p.k!==$;)(p.e.f&be)===0&&(d??=new Set).add(p),S.push(p),p=p.next;if(p===null)continue;T=p}m.push(T),h=T,p=T.next}if(p!==null||d!==void 0){for(var x=d===void 0?[]:Ft(d);p!==null;)(p.e.f&be)===0&&x.push(p),p=p.next;var w=x.length;if(w>0){var v=u===0?i:null;Ji(r,x,v)}}e.first=r.first&&r.first.e,e.last=h&&h.e;for(var b of n.values())xe(b.e);n.clear()}function mn(e,t,r,n){Mt(e.v,t),e.i=r}function ar(e,t,r,n,i,s,a,l,o,u,f){var c=(o&Pn)!==0,p=(o&Fn)===0,d=c?p?jr(i,!1,!1):ht(i):i,h=(o&Yn)===0?a:ht(a),m={i:h,v:d,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var S=document.createDocumentFragment();S.append(e=it())}return m.e=st(()=>l(e,d,h,u),L),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?f||(t.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function lr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=Le(s);i.before(s),s=a}}function ke(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function es(e,t){Ri(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ts(e,t,r){var n=""+e;return n}function rs(e,t){return e==null?null:String(e)}function wn(e,t,r,n,i,s){var a=e.__className;if(L||a!==r||a===void 0){var l=ts(r);(!L||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function yn(e,t,r,n){var i=e.__style;if(L||i!==t){var s=rs(t);(!L||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ns=Symbol("is custom element"),is=Symbol("is html");function Ct(e){if(L){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;or(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;or(e,"checked",null),e.checked=i}}};e.__on_r=r,mi(r),Kr()}}function $n(e,t){var r=xn(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function or(e,t,r,n){var i=xn(e);L&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ei]=r),r==null?e.removeAttribute(t):typeof r!="string"&&En(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function we(e,t,r){var n=N,i=C;let s=L;L&&ge(!1),he(null),Se(null);try{t!=="style"&&(ur.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?En(e).includes(t):r&&typeof r=="object")?e[t]=r:or(e,t,r==null?r:String(r))}finally{he(n),Se(i),s&&ge(!0)}}function xn(e){return e.__attributes??={[ns]:e.nodeName.includes("-"),[is]:e.namespaceURI===Wn}}var ur=new Map;function En(e){var t=e.getAttribute("is")||e.nodeName,r=ur.get(t);if(r)return r;ur.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Gn(i);for(var a in n)n[a].set&&r.push(a);i=gr(i)}return r}function Sn(e,t,r=t){var n=new WeakSet;Mi(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=fr(e)?cr(s):s,r(s),q!==null&&n.add(q),await Hi(),s!==(s=t())){var a=e.selectionStart,l=e.selectionEnd;e.value=s??"",l!==null&&(e.selectionStart=a,e.selectionEnd=Math.min(l,e.value.length))}}),(L&&e.defaultValue!==e.value||hn(t)==null&&e.value)&&(r(fr(e)?cr(e.value):e.value),q!==null&&n.add(q)),Zr(()=>{var i=t();if(e===document.activeElement){var s=xt??q;if(n.has(s))return}fr(e)&&i===cr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function fr(e){var t=e.type;return t==="number"||t==="range"}function cr(e){return e===""?null:+e}let Nt=!1;function ss(e){var t=Nt;try{return Nt=!1,[e(),Nt]}finally{Nt=t}}function fe(e,t,r,n){var i=(r&qn)!==0,s=(r&Un)!==0,a=n,l=!0,o=()=>(l&&(l=!1,a=s?hn(n):n),a),u;if(i){var f=mt in e||$r in e;u=qe(e,t)?.set??(f&&t in e?$=>e[t]=$:void 0)}var c,p=!1;i?[c,p]=ss(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=o(),u&&(ui(),u(c)));var d;if(d=()=>{var $=e[t];return $===void 0?o():(l=!0,$)},(r&Hn)===0)return d;if(u){var h=e.$$legacy;return(function($,T){return arguments.length>0?((!T||h||p)&&u(T?d():$),$):d()})}var m=!1,S=((r&jn)!==0?Xt:Cr)(()=>(m=!1,d()));i&&E(S);var R=C;return(function($,T){if(arguments.length>0){const k=T?E(S):i?Ie($):$;return X(S,k),m=!0,a!==void 0&&(a=k),$}return Xe&&m||(R.f&Ue)!==0?S.v:E(S)})}function as(e){return new ls(e)}class ls{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=jr(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return E(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===$r?!0:(E(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return X(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Xi:gn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||et(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ki(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let kn;typeof HTMLElement=="function"&&(kn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Oe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=os(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Rt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=as({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ci(()=>{Zr(()=>{this.$$r=!0;for(const n of gt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Rt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rt(e,r,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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 os(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function us(e,t,r,n,i,s){let a=class extends kn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return gt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return gt(t).forEach(l=>{et(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Rt(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=qe(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{et(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function Mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},fs=It.exports,Dn;function cs(){return Dn||(Dn=1,(function(e,t){(function(r,n){e.exports=n()})(fs,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",l="minute",o="hour",u="day",f="week",c="month",p="quarter",d="year",h="date",m="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var b=["th","st","nd","rd"],g=v%100;return"["+v+(b[(g-20)%10]||b[g]||b[0])+"]"}},T=function(v,b,g){var y=String(v);return!y||y.length>=b?v:""+Array(b+1-y.length).join(g)+v},k={s:T,z:function(v){var b=-v.utcOffset(),g=Math.abs(b),y=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+T(y,2,"0")+":"+T(_,2,"0")},m:function v(b,g){if(b.date()<g.date())return-v(g,b);var y=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(y,c),M=g-_<0,D=b.clone().add(y+(M?-1:1),c);return+(-(y+(g-_)/(M?_-D:D-_))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:c,y:d,w:f,d:u,D:h,h:o,m:l,s:a,ms:s,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},A="en",B={};B[A]=$;var W="$isDayjsObject",te=function(v){return v instanceof x||!(!v||!v[W])},V=function v(b,g,y){var _;if(!b)return A;if(typeof b=="string"){var M=b.toLowerCase();B[M]&&(_=M),g&&(B[M]=g,_=M);var D=b.split("-");if(!_&&D.length>1)return v(D[0])}else{var P=b.name;B[P]=b,_=P}return!y&&_&&(A=_),_||!y&&A},Y=function(v,b){if(te(v))return v.clone();var g=typeof b=="object"?b:{};return g.date=v,g.args=arguments,new x(g)},O=k;O.l=V,O.i=te,O.w=function(v,b){return Y(v,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var x=(function(){function v(g){this.$L=V(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[W]=!0}var b=v.prototype;return b.parse=function(g){this.$d=(function(y){var _=y.date,M=y.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var D=_.match(S);if(D){var P=D[2]-1||0,H=(D[7]||"0").substring(0,3);return M?new Date(Date.UTC(D[1],P,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],P,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(_)})(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return this.$d.toString()!==m},b.isSame=function(g,y){var _=Y(g);return this.startOf(y)<=_&&_<=this.endOf(y)},b.isAfter=function(g,y){return Y(g)<this.startOf(y)},b.isBefore=function(g,y){return this.endOf(y)<Y(g)},b.$g=function(g,y,_){return O.u(g)?this[y]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,y){var _=this,M=!!O.u(y)||y,D=O.p(g),P=function(F,I){var j=O.w(_.$u?Date.UTC(_.$y,I,F):new Date(_.$y,I,F),_);return M?j:j.endOf(u)},H=function(F,I){return O.w(_.toDate()[F].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(I)),_)},G=this.$W,K=this.$M,le=this.$D,je="set"+(this.$u?"UTC":"");switch(D){case d:return M?P(1,0):P(31,11);case c:return M?P(1,K):P(0,K+1);case f:var Ae=this.$locale().weekStart||0,Je=(G<Ae?G+7:G)-Ae;return P(M?le-Je:le+(6-Je),K);case u:case h:return H(je+"Hours",0);case o:return H(je+"Minutes",1);case l:return H(je+"Seconds",2);case a:return H(je+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,y){var _,M=O.p(g),D="set"+(this.$u?"UTC":""),P=(_={},_[u]=D+"Date",_[h]=D+"Date",_[c]=D+"Month",_[d]=D+"FullYear",_[o]=D+"Hours",_[l]=D+"Minutes",_[a]=D+"Seconds",_[s]=D+"Milliseconds",_)[M],H=M===u?this.$D+(y-this.$W):y;if(M===c||M===d){var G=this.clone().set(h,1);G.$d[P](H),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else P&&this.$d[P](H);return this.init(),this},b.set=function(g,y){return this.clone().$set(g,y)},b.get=function(g){return this[O.p(g)]()},b.add=function(g,y){var _,M=this;g=Number(g);var D=O.p(y),P=function(K){var le=Y(M);return O.w(le.date(le.date()+Math.round(K*g)),M)};if(D===c)return this.set(c,this.$M+g);if(D===d)return this.set(d,this.$y+g);if(D===u)return P(1);if(D===f)return P(7);var H=(_={},_[l]=n,_[o]=i,_[a]=r,_)[D]||1,G=this.$d.getTime()+g*H;return O.w(G,this)},b.subtract=function(g,y){return this.add(-1*g,y)},b.format=function(g){var y=this,_=this.$locale();if(!this.isValid())return _.invalidDate||m;var M=g||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),P=this.$H,H=this.$m,G=this.$M,K=_.weekdays,le=_.months,je=_.meridiem,Ae=function(I,j,z,re){return I&&(I[j]||I(y,M))||z[j].slice(0,re)},Je=function(I){return O.s(P%12||12,I,"0")},F=je||function(I,j,z){var re=I<12?"AM":"PM";return z?re.toLowerCase():re};return M.replace(R,(function(I,j){return j||(function(z){switch(z){case"YY":return String(y.$y).slice(-2);case"YYYY":return O.s(y.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Ae(_.monthsShort,G,le,3);case"MMMM":return Ae(le,G);case"D":return y.$D;case"DD":return O.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Ae(_.weekdaysMin,y.$W,K,2);case"ddd":return Ae(_.weekdaysShort,y.$W,K,3);case"dddd":return K[y.$W];case"H":return String(P);case"HH":return O.s(P,2,"0");case"h":return Je(1);case"hh":return Je(2);case"a":return F(P,H,!0);case"A":return F(P,H,!1);case"m":return String(H);case"mm":return O.s(H,2,"0");case"s":return String(y.$s);case"ss":return O.s(y.$s,2,"0");case"SSS":return O.s(y.$ms,3,"0");case"Z":return D}return null})(I)||D.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,y,_){var M,D=this,P=O.p(y),H=Y(g),G=(H.utcOffset()-this.utcOffset())*n,K=this-H,le=function(){return O.m(D,H)};switch(P){case d:M=le()/12;break;case c:M=le();break;case p:M=le()/3;break;case f:M=(K-G)/6048e5;break;case u:M=(K-G)/864e5;break;case o:M=K/i;break;case l:M=K/n;break;case a:M=K/r;break;default:M=K}return _?M:O.a(M)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return B[this.$L]},b.locale=function(g,y){if(!g)return this.$L;var _=this.clone(),M=V(g,y,!0);return M&&(_.$L=M),_},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},v})(),w=x.prototype;return Y.prototype=w,[["$ms",s],["$s",a],["$m",l],["$H",o],["$W",u],["$M",c],["$y",d],["$D",h]].forEach((function(v){w[v[1]]=function(b){return this.$g(b,v[0],v[1])}})),Y.extend=function(v,b){return v.$i||(v(b,x,Y),v.$i=!0),Y},Y.locale=V,Y.isDayjs=te,Y.unix=function(v){return Y(1e3*v)},Y.en=B[A],Y.Ls=B,Y.p={},Y}))})(It)),It.exports}var ds=cs();const Fe=Mn(ds),Tn={version:"0.61.34"};function On(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var ft={},dr,An;function vs(){if(An)return dr;An=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Qe&&console.warn("Failed to hydrate: ",a),t.recover===!1&&oi(),er(),zr(r),ge(!1),gn(e,t)}finally{ge(n),ye(i)}}const ot=new Map;function _n(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){er();var l=new Set,o=c=>{for(var p=0;p<c.length;p++){var d=c[p];if(!l.has(d)){l.add(d);var h=Gi(d);t.addEventListener(d,bt,{passive:h});var m=ot.get(d);m===void 0?(document.addEventListener(d,bt,{passive:h}),ot.set(d,1)):ot.set(d,m+1)}}};o(Ft(pn)),ir.add(o);var u=void 0,f=Ni(()=>{var c=r??t.appendChild(it());return st(()=>{if(s){kr({});var p=_e;p.c=s}i&&(n.$$events=i),L&&At(c,null),u=e(c,n)||{},L&&(C.nodes_end=U),s&&Mr()}),()=>{for(var p of l){t.removeEventListener(p,bt);var d=ot.get(p);--d===0?(document.removeEventListener(p,bt),ot.delete(p)):ot.set(p,d)}ir.delete(o),c!==r&&c.parentNode?.removeChild(c)}});return sr.set(u,f),u}let sr=new WeakMap;function Ki(e,t){const r=sr.get(e);return r?(sr.delete(e),r(t)):Promise.resolve()}function ut(e,t,r=!1){L&&yt();var n=e,i=null,s=null,a=J,l=r?Ut:0,o=!1;const u=(d,h=!0)=>{o=!0,p(h,d)};var f=null;function c(){f!==null&&(f.lastChild.remove(),n.before(f),f=null);var d=a?i:s,h=a?s:i;d&&nr(d),h&&tr(h,()=>{a?s=null:i=null})}const p=(d,h)=>{if(a===(a=d))return;let m=!1;if(L){const A=xr(n)===Lt;!!a===A&&(n=zt(),ye(n),ge(!1),m=!0)}var S=Gr(),R=n;if(S&&(f=document.createDocumentFragment(),f.append(R=it())),a?i??=h&&st(()=>h(R)):s??=h&&st(()=>h(R)),S){var $=q,T=a?i:s,k=a?s:i;T&&$.skipped_effects.delete(T),k&&$.skipped_effects.add(k),$.add_callback(c)}else c();m&&ge(!0)};Qr(()=>{o=!1,t(u),o||p(null,null)},l),L&&(n=U)}function Ji(e,t,r){for(var n=e.items,i=[],s=t.length,a=0;a<s;a++)rr(t[a].e,i,!0);var l=s>0&&i.length===0&&r!==null;if(l){var o=r.parentNode;zr(o),o.append(r),n.clear(),ke(e,t[0].prev,t[s-1].next)}nn(i,()=>{for(var u=0;u<s;u++){var f=t[u];l||(n.delete(f.k),ke(e,f.prev,f.next)),xe(f.e,!l)}})}function Zi(e,t,r,n,i,s=null){var a=e,l={flags:t,items:new Map,first:null};{var o=e;a=L?ye(Ge(o)):o.appendChild(it())}L&&yt();var u=null,f=!1,c=new Map,p=Cr(()=>{var S=r();return Yt(S)?S:S==null?[]:Ft(S)}),d,h;function m(){Qi(h,d,l,c,a,i,t,n,r),s!==null&&(d.length===0?u?nr(u):u=st(()=>s(a)):u!==null&&tr(u,()=>{u=null}))}Qr(()=>{h??=C,d=E(p);var S=d.length;if(f&&S===0)return;f=S===0;let R=!1;if(L){var $=xr(a)===Lt;$!==(S===0)&&(a=zt(),ye(a),ge(!1),R=!0)}if(L){for(var T=null,k,A=0;A<S;A++){if(U.nodeType===ct&&U.data===Pt){a=U,R=!0,ge(!1);break}var B=d[A],W=n(B,A);k=ar(U,l,T,null,B,W,A,i,t,r),l.items.set(W,k),T=k}S>0&&ye(zt())}if(L)S===0&&s&&(u=st(()=>s(a)));else if(Gr()){var te=new Set,V=q;for(A=0;A<S;A+=1){B=d[A],W=n(B,A);var Y=l.items.get(W)??c.get(W);Y?mn(Y,B,A):(k=ar(null,l,null,null,B,W,A,i,t,r,!0),c.set(W,k)),te.add(W)}for(const[O,x]of l.items)te.has(O)||V.skipped_effects.add(x.e);V.add_callback(m)}else m();R&&ge(!0),E(p)}),L&&(a=U)}function Qi(e,t,r,n,i,s,a,l,o){var u=t.length,f=r.items,c=r.first,p=c,d,h=null,m=[],S=[],R,$,T,k;for(k=0;k<u;k+=1){if(R=t[k],$=l(R,k),T=f.get($),T===void 0){var A=n.get($);if(A!==void 0){n.delete($),f.set($,A);var B=h?h.next:p;ke(r,h,A),ke(r,A,B),lr(A,B,i),h=A}else{var W=p?p.e.nodes_start:i;h=ar(W,r,h,h===null?r.first:h.next,R,$,k,s,a,o)}f.set($,h),m=[],S=[],p=h.next;continue}if(mn(T,R,k),(T.e.f&be)!==0&&nr(T.e),T!==p){if(d!==void 0&&d.has(T)){if(m.length<S.length){var te=S[0],V;h=te.prev;var Y=m[0],O=m[m.length-1];for(V=0;V<m.length;V+=1)lr(m[V],te,i);for(V=0;V<S.length;V+=1)d.delete(S[V]);ke(r,Y.prev,O.next),ke(r,h,Y),ke(r,O,te),p=te,h=O,k-=1,m=[],S=[]}else d.delete(T),lr(T,p,i),ke(r,T.prev,T.next),ke(r,T,h===null?r.first:h.next),ke(r,h,T),h=T;continue}for(m=[],S=[];p!==null&&p.k!==$;)(p.e.f&be)===0&&(d??=new Set).add(p),S.push(p),p=p.next;if(p===null)continue;T=p}m.push(T),h=T,p=T.next}if(p!==null||d!==void 0){for(var x=d===void 0?[]:Ft(d);p!==null;)(p.e.f&be)===0&&x.push(p),p=p.next;var w=x.length;if(w>0){var v=u===0?i:null;Ji(r,x,v)}}e.first=r.first&&r.first.e,e.last=h&&h.e;for(var b of n.values())xe(b.e);n.clear()}function mn(e,t,r,n){Mt(e.v,t),e.i=r}function ar(e,t,r,n,i,s,a,l,o,u,f){var c=(o&Pn)!==0,p=(o&Fn)===0,d=c?p?jr(i,!1,!1):ht(i):i,h=(o&Yn)===0?a:ht(a),m={i:h,v:d,k:s,a:null,e:null,prev:r,next:n};try{if(e===null){var S=document.createDocumentFragment();S.append(e=it())}return m.e=st(()=>l(e,d,h,u),L),m.e.prev=r&&r.e,m.e.next=n&&n.e,r===null?f||(t.first=m):(r.next=m,r.e.next=m.e),n!==null&&(n.prev=m,n.e.prev=m.e),m}finally{}}function lr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=Le(s);i.before(s),s=a}}function ke(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function es(e,t){Ri(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ts(e,t,r){var n=""+e;return n}function rs(e,t){return e==null?null:String(e)}function wn(e,t,r,n,i,s){var a=e.__className;if(L||a!==r||a===void 0){var l=ts(r);(!L||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function yn(e,t,r,n){var i=e.__style;if(L||i!==t){var s=rs(t);(!L||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const ns=Symbol("is custom element"),is=Symbol("is html");function Ct(e){if(L){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;or(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;or(e,"checked",null),e.checked=i}}};e.__on_r=r,mi(r),Kr()}}function $n(e,t){var r=xn(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function or(e,t,r,n){var i=xn(e);L&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ei]=r),r==null?e.removeAttribute(t):typeof r!="string"&&En(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function we(e,t,r){var n=N,i=C;let s=L;L&&ge(!1),he(null),Se(null);try{t!=="style"&&(ur.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?En(e).includes(t):r&&typeof r=="object")?e[t]=r:or(e,t,r==null?r:String(r))}finally{he(n),Se(i),s&&ge(!0)}}function xn(e){return e.__attributes??={[ns]:e.nodeName.includes("-"),[is]:e.namespaceURI===Wn}}var ur=new Map;function En(e){var t=e.getAttribute("is")||e.nodeName,r=ur.get(t);if(r)return r;ur.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Gn(i);for(var a in n)n[a].set&&r.push(a);i=gr(i)}return r}function Sn(e,t,r=t){var n=new WeakSet;Mi(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=fr(e)?cr(s):s,r(s),q!==null&&n.add(q),await Hi(),s!==(s=t())){var a=e.selectionStart,l=e.selectionEnd;e.value=s??"",l!==null&&(e.selectionStart=a,e.selectionEnd=Math.min(l,e.value.length))}}),(L&&e.defaultValue!==e.value||hn(t)==null&&e.value)&&(r(fr(e)?cr(e.value):e.value),q!==null&&n.add(q)),Zr(()=>{var i=t();if(e===document.activeElement){var s=xt??q;if(n.has(s))return}fr(e)&&i===cr(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function fr(e){var t=e.type;return t==="number"||t==="range"}function cr(e){return e===""?null:+e}let Nt=!1;function ss(e){var t=Nt;try{return Nt=!1,[e(),Nt]}finally{Nt=t}}function fe(e,t,r,n){var i=(r&qn)!==0,s=(r&Un)!==0,a=n,l=!0,o=()=>(l&&(l=!1,a=s?hn(n):n),a),u;if(i){var f=mt in e||$r in e;u=qe(e,t)?.set??(f&&t in e?$=>e[t]=$:void 0)}var c,p=!1;i?[c,p]=ss(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=o(),u&&(ui(),u(c)));var d;if(d=()=>{var $=e[t];return $===void 0?o():(l=!0,$)},(r&Hn)===0)return d;if(u){var h=e.$$legacy;return(function($,T){return arguments.length>0?((!T||h||p)&&u(T?d():$),$):d()})}var m=!1,S=((r&jn)!==0?Xt:Cr)(()=>(m=!1,d()));i&&E(S);var R=C;return(function($,T){if(arguments.length>0){const k=T?E(S):i?Ie($):$;return X(S,k),m=!0,a!==void 0&&(a=k),$}return Xe&&m||(R.f&Ue)!==0?S.v:E(S)})}function as(e){return new ls(e)}class ls{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=jr(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return E(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===$r?!0:(E(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return X(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Xi:gn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||et(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Ki(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let kn;typeof HTMLElement=="function"&&(kn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),Oe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=os(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Rt(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=as({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Ci(()=>{Zr(()=>{this.$$r=!0;for(const n of gt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Rt(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Rt(e,r,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 gt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Rt(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 os(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function us(e,t,r,n,i,s){let a=class extends kn{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return gt(t).map(l=>(t[l].attribute||l).toLowerCase())}};return gt(t).forEach(l=>{et(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=Rt(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=qe(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),n.forEach(l=>{et(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function Mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It={exports:{}},fs=It.exports,Dn;function cs(){return Dn||(Dn=1,(function(e,t){(function(r,n){e.exports=n()})(fs,(function(){var r=1e3,n=6e4,i=36e5,s="millisecond",a="second",l="minute",o="hour",u="day",f="week",c="month",p="quarter",d="year",h="date",m="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var b=["th","st","nd","rd"],g=v%100;return"["+v+(b[(g-20)%10]||b[g]||b[0])+"]"}},T=function(v,b,g){var y=String(v);return!y||y.length>=b?v:""+Array(b+1-y.length).join(g)+v},k={s:T,z:function(v){var b=-v.utcOffset(),g=Math.abs(b),y=Math.floor(g/60),_=g%60;return(b<=0?"+":"-")+T(y,2,"0")+":"+T(_,2,"0")},m:function v(b,g){if(b.date()<g.date())return-v(g,b);var y=12*(g.year()-b.year())+(g.month()-b.month()),_=b.clone().add(y,c),M=g-_<0,D=b.clone().add(y+(M?-1:1),c);return+(-(y+(g-_)/(M?_-D:D-_))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:c,y:d,w:f,d:u,D:h,h:o,m:l,s:a,ms:s,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},A="en",B={};B[A]=$;var W="$isDayjsObject",te=function(v){return v instanceof x||!(!v||!v[W])},V=function v(b,g,y){var _;if(!b)return A;if(typeof b=="string"){var M=b.toLowerCase();B[M]&&(_=M),g&&(B[M]=g,_=M);var D=b.split("-");if(!_&&D.length>1)return v(D[0])}else{var P=b.name;B[P]=b,_=P}return!y&&_&&(A=_),_||!y&&A},Y=function(v,b){if(te(v))return v.clone();var g=typeof b=="object"?b:{};return g.date=v,g.args=arguments,new x(g)},O=k;O.l=V,O.i=te,O.w=function(v,b){return Y(v,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var x=(function(){function v(g){this.$L=V(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[W]=!0}var b=v.prototype;return b.parse=function(g){this.$d=(function(y){var _=y.date,M=y.utc;if(_===null)return new Date(NaN);if(O.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var D=_.match(S);if(D){var P=D[2]-1||0,H=(D[7]||"0").substring(0,3);return M?new Date(Date.UTC(D[1],P,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)):new Date(D[1],P,D[3]||1,D[4]||0,D[5]||0,D[6]||0,H)}}return new Date(_)})(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return O},b.isValid=function(){return this.$d.toString()!==m},b.isSame=function(g,y){var _=Y(g);return this.startOf(y)<=_&&_<=this.endOf(y)},b.isAfter=function(g,y){return Y(g)<this.startOf(y)},b.isBefore=function(g,y){return this.endOf(y)<Y(g)},b.$g=function(g,y,_){return O.u(g)?this[y]:this.set(_,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,y){var _=this,M=!!O.u(y)||y,D=O.p(g),P=function(F,I){var j=O.w(_.$u?Date.UTC(_.$y,I,F):new Date(_.$y,I,F),_);return M?j:j.endOf(u)},H=function(F,I){return O.w(_.toDate()[F].apply(_.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(I)),_)},G=this.$W,K=this.$M,le=this.$D,je="set"+(this.$u?"UTC":"");switch(D){case d:return M?P(1,0):P(31,11);case c:return M?P(1,K):P(0,K+1);case f:var Ae=this.$locale().weekStart||0,Je=(G<Ae?G+7:G)-Ae;return P(M?le-Je:le+(6-Je),K);case u:case h:return H(je+"Hours",0);case o:return H(je+"Minutes",1);case l:return H(je+"Seconds",2);case a:return H(je+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,y){var _,M=O.p(g),D="set"+(this.$u?"UTC":""),P=(_={},_[u]=D+"Date",_[h]=D+"Date",_[c]=D+"Month",_[d]=D+"FullYear",_[o]=D+"Hours",_[l]=D+"Minutes",_[a]=D+"Seconds",_[s]=D+"Milliseconds",_)[M],H=M===u?this.$D+(y-this.$W):y;if(M===c||M===d){var G=this.clone().set(h,1);G.$d[P](H),G.init(),this.$d=G.set(h,Math.min(this.$D,G.daysInMonth())).$d}else P&&this.$d[P](H);return this.init(),this},b.set=function(g,y){return this.clone().$set(g,y)},b.get=function(g){return this[O.p(g)]()},b.add=function(g,y){var _,M=this;g=Number(g);var D=O.p(y),P=function(K){var le=Y(M);return O.w(le.date(le.date()+Math.round(K*g)),M)};if(D===c)return this.set(c,this.$M+g);if(D===d)return this.set(d,this.$y+g);if(D===u)return P(1);if(D===f)return P(7);var H=(_={},_[l]=n,_[o]=i,_[a]=r,_)[D]||1,G=this.$d.getTime()+g*H;return O.w(G,this)},b.subtract=function(g,y){return this.add(-1*g,y)},b.format=function(g){var y=this,_=this.$locale();if(!this.isValid())return _.invalidDate||m;var M=g||"YYYY-MM-DDTHH:mm:ssZ",D=O.z(this),P=this.$H,H=this.$m,G=this.$M,K=_.weekdays,le=_.months,je=_.meridiem,Ae=function(I,j,z,re){return I&&(I[j]||I(y,M))||z[j].slice(0,re)},Je=function(I){return O.s(P%12||12,I,"0")},F=je||function(I,j,z){var re=I<12?"AM":"PM";return z?re.toLowerCase():re};return M.replace(R,(function(I,j){return j||(function(z){switch(z){case"YY":return String(y.$y).slice(-2);case"YYYY":return O.s(y.$y,4,"0");case"M":return G+1;case"MM":return O.s(G+1,2,"0");case"MMM":return Ae(_.monthsShort,G,le,3);case"MMMM":return Ae(le,G);case"D":return y.$D;case"DD":return O.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return Ae(_.weekdaysMin,y.$W,K,2);case"ddd":return Ae(_.weekdaysShort,y.$W,K,3);case"dddd":return K[y.$W];case"H":return String(P);case"HH":return O.s(P,2,"0");case"h":return Je(1);case"hh":return Je(2);case"a":return F(P,H,!0);case"A":return F(P,H,!1);case"m":return String(H);case"mm":return O.s(H,2,"0");case"s":return String(y.$s);case"ss":return O.s(y.$s,2,"0");case"SSS":return O.s(y.$ms,3,"0");case"Z":return D}return null})(I)||D.replace(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,y,_){var M,D=this,P=O.p(y),H=Y(g),G=(H.utcOffset()-this.utcOffset())*n,K=this-H,le=function(){return O.m(D,H)};switch(P){case d:M=le()/12;break;case c:M=le();break;case p:M=le()/3;break;case f:M=(K-G)/6048e5;break;case u:M=(K-G)/864e5;break;case o:M=K/i;break;case l:M=K/n;break;case a:M=K/r;break;default:M=K}return _?M:O.a(M)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return B[this.$L]},b.locale=function(g,y){if(!g)return this.$L;var _=this.clone(),M=V(g,y,!0);return M&&(_.$L=M),_},b.clone=function(){return O.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},v})(),w=x.prototype;return Y.prototype=w,[["$ms",s],["$s",a],["$m",l],["$H",o],["$W",u],["$M",c],["$y",d],["$D",h]].forEach((function(v){w[v[1]]=function(b){return this.$g(b,v[0],v[1])}})),Y.extend=function(v,b){return v.$i||(v(b,x,Y),v.$i=!0),Y},Y.locale=V,Y.isDayjs=te,Y.unix=function(v){return Y(1e3*v)},Y.en=B[A],Y.Ls=B,Y.p={},Y}))})(It)),It.exports}var ds=cs();const Fe=Mn(ds),Tn={version:"0.61.35"};function On(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const r=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");if(n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e?.local)n.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];n.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${r}`}document.head.appendChild(n)}catch(n){console.warn(n)}}var ft={},dr,An;function vs(){if(An)return dr;An=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
3
3
  `,u="/",f="*",c="",p="comment",d="declaration";dr=function(m,S){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];S=S||{};var R=1,$=1;function T(w){var v=w.match(t);v&&(R+=v.length);var b=w.lastIndexOf(o);$=~b?w.length-b:$+w.length}function k(){var w={line:R,column:$};return function(v){return v.position=new A(w),te(),v}}function A(w){this.start=w,this.end={line:R,column:$},this.source=S.source}A.prototype.content=m;function B(w){var v=new Error(S.source+":"+R+":"+$+": "+w);if(v.reason=w,v.filename=S.source,v.line=R,v.column=$,v.source=m,!S.silent)throw v}function W(w){var v=w.exec(m);if(v){var b=v[0];return T(b),m=m.slice(b.length),v}}function te(){W(r)}function V(w){var v;for(w=w||[];v=Y();)v!==!1&&w.push(v);return w}function Y(){var w=k();if(!(u!=m.charAt(0)||f!=m.charAt(1))){for(var v=2;c!=m.charAt(v)&&(f!=m.charAt(v)||u!=m.charAt(v+1));)++v;if(v+=2,c===m.charAt(v-1))return B("End of comment missing");var b=m.slice(2,v-2);return $+=2,T(b),m=m.slice(v),$+=2,w({type:p,comment:b})}}function O(){var w=k(),v=W(n);if(v){if(Y(),!W(i))return B("property missing ':'");var b=W(s),g=w({type:d,property:h(v[0].replace(e,c)),value:b?h(b[0].replace(e,c)):c});return W(a),g}}function x(){var w=[];V(w);for(var v;v=O();)v!==!1&&(w.push(v),V(w));return w}return te(),x()};function h(m){return m?m.replace(l,c):c}return dr}var Cn;function hs(){if(Cn)return ft;Cn=1;var e=ft&&ft.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=r;var t=e(vs());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,t.default)(n),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return ft}var ps=hs();const Nn=Mn(ps);Nn.default;function Rn(e,t,r,n,i){const s=e?.target?.value;s&&(t("dateFilterVideos",{start:Fe(s,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"start"}),r()||X(n,Fe(s,"YYYY-MM-DD").startOf("day").toDate(),!0),i(void 0))}function In(e,t,r,n,i){const s=e.target.value;t("dateFilterVideos",{end:Fe(s,"YYYY-MM-DD").startOf("day").toDate(),dateKey:"end"}),r()||X(n,Fe(s,"YYYY-MM-DD").endOf("day").toDate(),!0),i(void 0)}var bs=Ye('<div class="col-4 col-xxl-2 svelte-1p2gf62"><div class="input-group mb-3 svelte-1p2gf62"><span class="input-group-text svelte-1p2gf62" id="search">&#x1F50E;</span> <input type="text" class="form-control svelte-1p2gf62" placeholder="..." aria-label="Search" aria-describedby="search"/></div></div>'),gs=Ye('<div class="input-group mb-3 svelte-1p2gf62"><span class="input-group-text svelte-1p2gf62">&#128197;</span> <input type="date" class="form-control svelte-1p2gf62" style="max-width: 200px"/> <input type="date" class="form-control svelte-1p2gf62" style="max-width: 200px"/></div>'),_s=Ye('<div class="col-12 svelte-1p2gf62"><div class="input-group mb-3 svelte-1p2gf62"><span class="input-group-text svelte-1p2gf62" id="search">&#x1F50E;</span> <input type="text" class="form-control svelte-1p2gf62" placeholder="..." aria-label="Search" aria-describedby="search"/></div></div>'),ms=Ye('<div class="row svelte-1p2gf62"><div class="col-12 svelte-1p2gf62"><div class="input-group mb-3 svelte-1p2gf62"><span class="input-group-text svelte-1p2gf62">&#128197;</span> <input type="date" class="form-control svelte-1p2gf62"/> <input type="date" class="form-control svelte-1p2gf62"/></div></div></div>'),ws=Ye('<div class="col-12 col-xxl-3 col-xl-4 col-md-6 svelte-1p2gf62" style="padding:12px"><hb-card-video></hb-card-video></div>',2),ys=Ye('<div class="row svelte-1p2gf62"></div> <nav style="margin-top:20px" aria-label="Page navigation example" class="svelte-1p2gf62"><hb-paginate></hb-paginate></nav>',3),$s=Ye('<div class="d-none d-md-block svelte-1p2gf62"><div class="row svelte-1p2gf62"><!> <div class="col-8 col-xxl-10 svelte-1p2gf62"><!></div></div></div> <div class="d-block d-md-none svelte-1p2gf62"><div class="row svelte-1p2gf62"><!></div> <!></div> <!>',1),xs=Ye('<div class="container-fluid svelte-1p2gf62" part="container"><!></div>');const Es={hash:"svelte-1p2gf62",code:`@charset "UTF-8";
4
4
  @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");
5
5
  /*!
package/manifest.json CHANGED
@@ -217,5 +217,5 @@
217
217
  "size": {},
218
218
  "iifePath": "main.iife.js",
219
219
  "repoName": "@htmlbricks/hb-gallery-video",
220
- "version": "0.61.34"
220
+ "version": "0.61.35"
221
221
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-gallery-video",
3
- "version": "0.61.34",
3
+ "version": "0.61.35",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [