@htmlbricks/hb-vertical-img-txt-archive 0.65.22 → 0.66.0

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,3 +1,3 @@
1
- (function(St){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Bn=1,Hn=2,Vn=16,Yn=2,Rt="[",He="[!",lt="]",we={},x=Symbol(),Un="http://www.w3.org/1999/xhtml",ot=!1;var Ot=Array.isArray,Wn=Array.prototype.indexOf,at=Array.from,Ve=Object.keys,Ye=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,zn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Jn=Array.prototype,Dt=Object.getPrototypeOf,Mt=Object.isExtensible;function Kn(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const T=2,ut=4,ct=8,Q=16,ee=32,le=64,Ue=128,V=512,k=1024,R=2048,te=4096,M=8192,ne=16384,We=32768,ye=65536,Pt=1<<17,Ft=1<<18,ce=1<<19,Xn=1<<20,he=32768,ht=1<<21,dt=1<<22,oe=1<<23,vt=Symbol("$state"),Zn=Symbol("legacy props"),Qn=Symbol(""),be=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Ee=8;function er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ur(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function re(e){m=e}let g;function O(e){if(e===null)throw ze(),we;return g=e}function Ge(){return O(z(g))}function Te(e){if(m){if(z(g)!==null)throw ze(),we;g=e}}function cr(e=1){if(m){for(var t=e,n=g;t--;)n=z(n);g=n}}function Je(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ee){var r=n.data;if(r===lt){if(t===0)return n;t-=1}else(r===Rt||r===He)&&(t+=1)}var s=z(n);e&&n.remove(),n=s}}function It(e){if(!e||e.nodeType!==Ee)throw ze(),we;return e.data}function jt(e){return e===this.v}function hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qt(e){return!hr(e,this.v)}let dr=!1,P=null;function xe(e){P=e}function Bt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ht(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Vt(){return!0}let de=[];function Yt(){var e=de;de=[],Kn(e)}function pt(e){if(de.length===0&&!Me){var t=de;queueMicrotask(()=>{t===de&&Yt()})}de.push(e)}function vr(){for(;de.length>0;)Yt()}function Ut(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&We)===0){if((t.f&Ue)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ue)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ke=new Set;let $=null,F=null,I=[],Xe=null,gt=!1,Me=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){I=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#f(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):($=null,zt(n.render_effects),zt(n.effects),this.#o?.resolve()),F=null}#f(t,n){t.f^=k;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ee|le))!==0,f=i&&(s&k)!==0,l=f||(s&M)!==0||this.skipped_effects.has(r);if((r.f&Ue)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=k:(s&ut)!==0?n.effects.push(r):je(r)&&((r.f&Q)!==0&&n.block_effects.push(r),qe(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&R)!==0?this.#s:this.#i).push(n),this.#a(n.deps),A(n,k)}#a(t){if(t!==null)for(const n of t)(n.f&T)===0||(n.f&he)===0||(n.f^=he,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,F=null)}flush(){if(this.activate(),I.length>0){if(Wt(),$!==null&&$!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Ke.size>1){this.previous.clear();var t=F,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ke){if(i===this){n=!1;continue}const f=[];for(const[o,a]of this.current){if(i.current.has(o))if(n&&a!==i.current.get(o))i.current.set(o,a);else continue;f.push(o)}if(f.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var s=I;I=[];const o=new Set,a=new Map;for(const u of f)Gt(u,l,o,a);if(I.length>0){$=i,i.apply();for(const u of I)i.#f(u,r);i.deactivate()}I=s}}$=null,F=t}this.committed=!0,Ke.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)A(t,R),ve(t);for(const t of this.#i)A(t,te),ve(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Lt()).promise}static ensure(){if($===null){const t=$=new Y;Ke.add($),Me||Y.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){pt(t)}apply(){}}function mt(e){var t=Me;Me=!0;try{for(var n;;){if(vr(),I.length===0&&($?.flush(),I.length===0))return Xe=null,n;Wt()}}finally{Me=t}}function Wt(){var e=ue;gt=!0;var t=null;try{var n=0;for(et(!0);I.length>0;){var r=Y.ensure();if(n++>1e3){var s,i;_r()}r.process(I),ae.clear()}}finally{gt=!1,et(e),Xe=null}}function _r(){try{ir()}catch(e){ke(e,Xe)}}let ie=null;function zt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ne|M))===0&&je(r)&&(ie=new Set,qe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?_n(r):r.fn=null),ie?.size>0)){ae.clear();for(const s of ie){if((s.f&(ne|M))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)ie.has(f)&&(ie.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(ne|M))===0&&qe(o)}}ie.clear()}}ie=null}}function Gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&T)!==0?Gt(s,t,n,r):(i&(dt|Q))!==0&&(i&R)===0&&Jt(s,t,r)&&(A(s,R),ve(s))}}function Jt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&T)!==0&&Jt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ve(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var n=t.f;if(gt&&t===p&&(n&Q)!==0&&(n&Ft)===0)return;if((n&(le|ee))!==0){if((n&k)===0)return;t.f^=k}}I.push(t)}function pr(e){let t=0,n=_e(0),r;return()=>{Qe()&&(E(n),cn(()=>(t===0&&(r=Yr(()=>e(()=>Pe(n)))),t+=1,()=>{pt(()=>{t-=1,t===0&&(r?.(),r=void 0,Pe(n))})})))}}var gr=ye|ce|Ue;function mr(e,t,n){new wr(e,t,n)}class wr{parent;#t=!1;#e;#n=m?g:null;#r;#o;#s;#i=null;#f=null;#l=null;#a=null;#u=null;#c=0;#h=0;#v=!1;#d=null;#w=pr(()=>(this.#d=_e(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=p.b,this.#t=!!this.#r.pending,this.#s=xt(()=>{if(p.b=this,m){const i=this.#n;Ge(),i.nodeType===Ee&&i.data===He?this.#y():this.#$()}else{var s=this.#g();try{this.#i=B(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},gr),m&&(this.#e=g)}#$(){try{this.#i=B(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#f=B(()=>t(this.#e)),Y.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#o(n)))),this.#h>0?this.#p():(Ne(this.#f,()=>{this.#f=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=q(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=p,r=_,s=P;K(this.#s),D(this.#s),xe(this.#s.ctx);try{return t()}catch(i){return Ut(i),null}finally{K(n),D(r),xe(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),mn(this.#i,this.#a)),this.#f===null&&(this.#f=B(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#f&&Ne(this.#f,()=>{this.#f=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&Le(this.#d,this.#c)}get_effect_pending(){return this.#w(),E(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(C(this.#i),this.#i=null),this.#f&&(C(this.#f),this.#f=null),this.#l&&(C(this.#l),this.#l=null),m&&(O(this.#n),cr(),O(Je()));var s=!1,i=!1;const f=()=>{if(s){ur();return}s=!0,i&&ar(),Y.ensure(),this.#c=0,this.#l!==null&&Ne(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#o(this.#e)))),this.#h>0?this.#p():this.#t=!1};var l=_;try{D(null),i=!0,n?.(t,f),i=!1}catch(o){ke(o,this.#s&&this.#s.parent)}finally{D(l)}r&&pt(()=>{this.#l=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{r(this.#e,()=>t,()=>f)})}catch(o){return ke(o,this.#s.parent),null}finally{this.#v=!1}})})}}function $r(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)kt(t[i].e,r,!0);pn(r,()=>{var f=r.length===0&&n!==null;if(f){var l=n,o=l.parentNode;ln(o),o.append(l),e.items.clear(),W(e,t[0].prev,t[s-1].next)}for(var a=0;a<s;a++){var u=t[a];f||(e.items.delete(u.k),W(e,u.prev,u.next)),C(u.e,!f)}e.first===t[0]&&(e.first=t[0].prev)})}function yr(e,t,n,r,s,i=null){var f=e,l=new Map,o=null;{var a=e;f=m?O(Ce(a)):a.appendChild(q())}m&&Ge();var u=null,h=Ar(()=>{var y=n();return Ot(y)?y:y==null?[]:at(y)}),c,d=!0;function v(){br(S,c,f,t,r),u!==null&&(c.length===0?(u.fragment?(f.before(u.fragment),u.fragment=null):At(u.effect),w.first=u.effect):Ne(u.effect,()=>{u=null}))}var w=xt(()=>{c=E(h);var y=c.length;let b=!1;if(m){var Re=It(f)===He;Re!==(y===0)&&(f=Je(),O(f),re(!1),b=!0)}for(var fe=new Set,X=$,Oe=null,st=on(),De=0;De<y;De+=1){m&&g.nodeType===Ee&&g.data===lt&&(f=g,b=!0,re(!1));var Nt=c[De],ft=r(Nt,De),Z=d?null:l.get(ft);Z?(Le(Z.v,Nt),Z.i=De,st&&X.skipped_effects.delete(Z.e)):(Z=Er(d?f:null,Oe,Nt,ft,De,s,t,n),d&&(Z.o=!0,Oe===null?o=Z:Oe.next=Z,Oe=Z),l.set(ft,Z)),fe.add(ft)}if(y===0&&i&&!u)if(d)u={fragment:null,effect:B(()=>i(f))};else{var jn=document.createDocumentFragment(),qn=q();jn.append(qn),u={fragment:jn,effect:B(()=>i(qn))}}if(m&&y>0&&O(Je()),!d)if(st){for(const[gi,mi]of l)fe.has(gi)||X.skipped_effects.add(mi.e);X.oncommit(v),X.ondiscard(()=>{})}else v();b&&re(!0),E(h)}),S={effect:w,items:l,first:o};d=!1,m&&(f=g)}function br(e,t,n,r,s){var i=t.length,f=e.items,l=e.first,o,a=null,u=[],h=[],c,d,v,w;for(w=0;w<i;w+=1){if(c=t[w],d=s(c,w),v=f.get(d),e.first??=v,!v.o){v.o=!0;var S=a?a.next:l;W(e,a,v),W(e,v,S),wt(v,S,n),a=v,u=[],h=[],l=a.next;continue}if((v.e.f&M)!==0&&At(v.e),v!==l){if(o!==void 0&&o.has(v)){if(u.length<h.length){var y=h[0],b;a=y.prev;var Re=u[0],fe=u[u.length-1];for(b=0;b<u.length;b+=1)wt(u[b],y,n);for(b=0;b<h.length;b+=1)o.delete(h[b]);W(e,Re.prev,fe.next),W(e,a,Re),W(e,fe,y),l=y,a=fe,w-=1,u=[],h=[]}else o.delete(v),wt(v,l,n),W(e,v.prev,v.next),W(e,v,a===null?e.first:a.next),W(e,a,v),a=v;continue}for(u=[],h=[];l!==null&&l.k!==d;)(l.e.f&M)===0&&(o??=new Set).add(l),h.push(l),l=l.next;if(l===null)continue;v=l}u.push(v),a=v,l=v.next}if(l!==null||o!==void 0){for(var X=o===void 0?[]:at(o);l!==null;)(l.e.f&M)===0&&X.push(l),l=l.next;var Oe=X.length;if(Oe>0){var st=i===0?n:null;$r(e,X,st)}}}function Er(e,t,n,r,s,i,f,l){var o=(f&Bn)!==0,a=(f&Vn)===0,u=o?a?Qt(n,!1,!1):_e(n):n,h=(f&Hn)===0?s:_e(s),c={i:h,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=q())}return c.e=B(()=>i(e,u,h,l)),t!==null&&(t.next=c),c}finally{}}function wt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var f=z(i);s.before(i),i=f}}function W(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Tr(e,t,n,r){const s=$t;if(n.length===0&&e.length===0){r(t.map(s));return}var i=$,f=p,l=xr();function o(){Promise.all(n.map(a=>kr(a))).then(a=>{l();try{r([...t.map(s),...a])}catch(u){(f.f&ne)===0&&ke(u,f)}i?.deactivate(),Ze()}).catch(a=>{ke(a,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{i?.deactivate(),Ze()}}):o()}function xr(){var e=p,t=_,n=P,r=$;return function(i=!0){K(e),D(t),xe(n),i&&r?.activate()}}function Ze(){K(null),D(null),xe(null)}function $t(e){var t=T|R,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=ce),{ctx:P,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??p,ac:null}}function kr(e,t){let n=p;n===null&&er();var r=n.b,s=void 0,i=_e(x),f=!_,l=new Map;return Ir(()=>{var o=Lt();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===$&&a.committed&&a.deactivate(),Ze()})}catch(c){o.reject(c),Ze()}var a=$;if(f){var u=!r.is_pending();r.update_pending_count(1),a.increment(u),l.get(a)?.reject(be),l.delete(a),l.set(a,o)}const h=(c,d=void 0)=>{if(a.activate(),d)d!==be&&(i.f|=oe,Le(i,d));else{(i.f&oe)!==0&&(i.f^=oe),Le(i,c);for(const[v,w]of l){if(l.delete(v),v===a)break;w.reject(be)}}f&&(r.update_pending_count(-1),a.decrement(u))};o.promise.then(h,c=>h(null,c||"unknown"))}),an(()=>{for(const o of l.values())o.reject(be)}),new Promise(o=>{function a(u){function h(){u===s?o(i):a(s)}u.then(h,h)}a(s)})}function Ar(e){const t=$t(e);return t.equals=qt,t}function Kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function Cr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&ne)===0?t:null;t=t.parent}return null}function yt(e){var t,n=p;K(Cr(e));try{e.f&=~he,Kt(e),t=Tn(e)}finally{K(n)}return t}function Xt(e){var t=yt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=bn()),!pe)if(F!==null)Qe()&&F.set(e,t);else{var n=(e.f&V)===0?te:k;A(e,n)}}let bt=new Set;const ae=new Map;let Zt=!1;function _e(e,t){var n={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return n}function U(e,t){const n=_e(e);return Br(n),n}function Qt(e,t=!1,n=!0){const r=_e(e);return t||(r.equals=qt),r}function j(e,t,n=!1){_!==null&&(!J||(_.f&Pt)!==0)&&Vt()&&(_.f&(T|Q|dt|Pt))!==0&&!se?.includes(e)&&or();let r=n?Ae(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;pe?ae.set(e,t):ae.set(e,n),e.v=t;var r=Y.ensure();r.capture(e,n),(e.f&T)!==0&&((e.f&R)!==0&&yt(e),A(e,(e.f&V)!==0?k:te)),e.wv=bn(),en(e,R),p!==null&&(p.f&k)!==0&&(p.f&(ee|le))===0&&(H===null?Hr([e]):H.push(e)),!r.is_fork&&bt.size>0&&!Zt&&Nr()}return t}function Nr(){Zt=!1;var e=ue;et(!0);const t=Array.from(bt);try{for(const n of t)(n.f&k)!==0&&A(n,te),je(n)&&qe(n)}finally{et(e)}bt.clear()}function Pe(e){j(e,e.v+1)}function en(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&R)===0;if(l&&A(i,t),(f&T)!==0){var o=i;F?.delete(o),(f&he)===0&&(f&V&&(i.f|=he),en(o,te))}else l&&((f&Q)!==0&&ie!==null&&ie.add(i),ve(i))}}function Ae(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Dt(e);if(t!==Gn&&t!==Jn)return e;var n=new Map,r=Ot(e),s=U(0),i=ge,f=l=>{if(ge===i)return l();var o=_,a=ge;D(null),yn(i);var u=l();return D(o),yn(a),u};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&fr();var u=n.get(o);return u===void 0?u=f(()=>{var h=U(a.value);return n.set(o,h),h}):j(u,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const u=f(()=>U(x));n.set(o,u),Pe(s)}}else j(a,x),Pe(s);return!0},get(l,o,a){if(o===vt)return e;var u=n.get(o),h=o in l;if(u===void 0&&(!h||$e(l,o)?.writable)&&(u=f(()=>{var d=Ae(h?l[o]:x),v=U(d);return v}),n.set(o,u)),u!==void 0){var c=E(u);return c===x?void 0:c}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var u=n.get(o);u&&(a.value=E(u))}else if(a===void 0){var h=n.get(o),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,o){if(o===vt)return!0;var a=n.get(o),u=a!==void 0&&a.v!==x||Reflect.has(l,o);if(a!==void 0||p!==null&&(!u||$e(l,o)?.writable)){a===void 0&&(a=f(()=>{var c=u?Ae(l[o]):x,d=U(c);return d}),n.set(o,a));var h=E(a);if(h===x)return!1}return u},set(l,o,a,u){var h=n.get(o),c=o in l;if(r&&o==="length")for(var d=a;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?j(v,x):d in l&&(v=f(()=>U(x)),n.set(d+"",v))}if(h===void 0)(!c||$e(l,o)?.writable)&&(h=f(()=>U(void 0)),j(h,Ae(a)),n.set(o,h));else{c=h.v!==x;var w=f(()=>Ae(a));j(h,w)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(u,a),!c){if(r&&typeof o=="string"){var y=n.get("length"),b=Number(o);Number.isInteger(b)&&b>=y.v&&j(y,b+1)}Pe(s)}return!0},ownKeys(l){E(s);var o=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==x});for(var[a,u]of n)u.v!==x&&!(a in l)&&o.push(a);return o},setPrototypeOf(){lr()}})}var tn,nn,rn,sn;function Et(){if(tn===void 0){tn=window,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=$e(t,"firstChild").get,sn=$e(t,"nextSibling").get,Mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mt(n)&&(n.__t=void 0)}}function q(e=""){return document.createTextNode(e)}function Ce(e){return rn.call(e)}function z(e){return sn.call(e)}function Fe(e,t){if(!m)return Ce(e);var n=Ce(g);if(n===null)n=g.appendChild(q());else if(t&&n.nodeType!==_t){var r=q();return n?.before(r),O(r),r}return O(n),n}function Sr(e,t=!1){if(!m){var n=Ce(e);return n instanceof Comment&&n.data===""?z(n):n}if(t&&g?.nodeType!==_t){var r=q();return g?.before(r),O(r),r}return g}function fn(e,t=1,n=!1){let r=m?g:e;for(var s;t--;)s=r,r=z(r);if(!m)return r;if(n&&r?.nodeType!==_t){var i=q();return r===null?s?.after(i):r.before(i),O(i),i}return O(r),r}function ln(e){e.textContent=""}function on(){return!1}function Rr(e,t,n,r=!0){r&&n();for(var s of t)e.addEventListener(s,n);an(()=>{for(var i of t)e.removeEventListener(i,n)})}function Tt(e){var t=_,n=p;D(null),K(null);try{return e()}finally{D(t),K(n)}}function Or(e){p===null&&(_===null&&rr(),nr()),pe&&tr()}function Dr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function G(e,t,n){var r=p;r!==null&&(r.f&M)!==0&&(e|=M);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|R|V,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{qe(s),s.f|=We}catch(l){throw C(s),l}else t!==null&&ve(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&Q)!==0&&(e&ye)!==0&&i!==null&&(i.f|=ye)),i!==null&&(i.parent=r,r!==null&&Dr(i,r),_!==null&&(_.f&T)!==0&&(e&le)===0)){var f=_;(f.effects??=[]).push(i)}return s}function Qe(){return _!==null&&!J}function an(e){const t=G(ct,null,!1);return A(t,k),t.teardown=e,t}function Mr(e){Or();var t=p.f,n=!_&&(t&ee)!==0&&(t&We)===0;if(n){var r=P;(r.e??=[]).push(e)}else return un(e)}function un(e){return G(ut|Xn,e,!1)}function Lr(e){Y.ensure();const t=G(le|ce,e,!0);return()=>{C(t)}}function Pr(e){Y.ensure();const t=G(le|ce,e,!0);return(n={})=>new Promise(r=>{n.outro?Ne(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Fr(e){return G(ut,e,!1)}function Ir(e){return G(dt|ce,e,!0)}function cn(e,t=0){return G(ct|t,e,!0)}function hn(e,t=[],n=[],r=[]){Tr(r,t,n,s=>{G(ct,()=>e(...s.map(E)),!0)})}function xt(e,t=0){var n=G(Q|t,e,!0);return n}function B(e){return G(ee|ce,e,!0)}function dn(e){var t=e.teardown;if(t!==null){const n=pe,r=_;wn(!0),D(null);try{t.call(null)}finally{wn(n),D(r)}}}function vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Tt(()=>{s.abort(be)});var r=n.next;(n.f&le)!==0?n.parent=null:C(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qr(e.nodes_start,e.nodes_end),n=!0),vn(e,t&&!n),tt(e,0),A(e,ne);var r=e.transitions;if(r!==null)for(const i of r)i.stop();dn(e);var s=e.parent;s!==null&&s.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qr(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function _n(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ne(e,t,n=!0){var r=[];kt(e,r,!0),pn(r,()=>{n&&C(e),t&&t()})}function pn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function kt(e,t,n){if((e.f&M)===0){if(e.f^=M,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ye)!==0||(r.f&ee)!==0&&(e.f&Q)!==0;kt(r,t,i?n:!1),r=s}}}function At(e){gn(e,!0)}function gn(e,t){if((e.f&M)!==0){e.f^=M,(e.f&k)===0&&(A(e,R),ve(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ye)!==0||(n.f&ee)!==0;gn(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function mn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:z(n);t.append(n),n=s}}let ue=!1;function et(e){ue=e}let pe=!1;function wn(e){pe=e}let _=null,J=!1;function D(e){_=e}let p=null;function K(e){p=e}let se=null;function Br(e){_!==null&&(se===null?se=[e]:se.push(e))}let N=null,L=0,H=null;function Hr(e){H=e}let $n=1,Ie=0,ge=Ie;function yn(e){ge=e}function bn(){return++$n}function je(e){var t=e.f;if((t&R)!==0)return!0;if(t&T&&(e.f&=~he),(t&te)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(je(i)&&Xt(i),i.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,k)}return!1}function En(e,t,n=!0){var r=e.reactions;if(r!==null&&!se?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&T)!==0?En(i,t,!1):t===i&&(n?A(i,R):(i.f&k)!==0&&A(i,te),ve(i))}}function Tn(e){var t=N,n=L,r=H,s=_,i=se,f=P,l=J,o=ge,a=e.f;N=null,L=0,H=null,_=(a&(ee|le))===0?e:null,se=null,xe(e.ctx),J=!1,ge=++Ie,e.ac!==null&&(Tt(()=>{e.ac.abort(be)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u(),c=e.deps;if(N!==null){var d;if(tt(e,L),c!==null&&L>0)for(c.length=L+N.length,d=0;d<N.length;d++)c[L+d]=N[d];else e.deps=c=N;if(ue&&Qe()&&(e.f&V)!==0)for(d=L;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&L<c.length&&(tt(e,L),c.length=L);if(Vt()&&H!==null&&!J&&c!==null&&(e.f&(T|te|R))===0)for(d=0;d<H.length;d++)En(H[d],e);return s!==null&&s!==e&&(Ie++,H!==null&&(r===null?r=H:r.push(...H))),(e.f&oe)!==0&&(e.f^=oe),h}catch(v){return Ut(v)}finally{e.f^=ht,N=t,L=n,H=r,_=s,se=i,xe(f),J=l,ge=o}}function Vr(e,t){let n=t.reactions;if(n!==null){var r=Wn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&T)!==0&&(N===null||!N.includes(t))&&(A(t,te),(t.f&V)!==0&&(t.f^=V,t.f&=~he),Kt(t),tt(t,0))}function tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function qe(e){var t=e.f;if((t&ne)===0){A(e,k);var n=p,r=ue;p=e,ue=!0;try{(t&Q)!==0?jr(e):vn(e),dn(e);var s=Tn(e);e.teardown=typeof s=="function"?s:null,e.wv=$n;var i;ot&&dr&&(e.f&R)!==0&&e.deps}finally{ue=r,p=n}}}function E(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!J){var r=p!==null&&(p.f&ne)!==0;if(!r&&!se?.includes(e)){var s=_.deps;if((_.f&ht)!==0)e.rv<Ie&&(e.rv=Ie,N===null&&s!==null&&s[L]===e?L++:N===null?N=[e]:N.includes(e)||N.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(pe){if(ae.has(e))return ae.get(e);if(n){var f=e,l=f.v;return((f.f&k)===0&&f.reactions!==null||kn(f))&&(l=yt(f)),ae.set(f,l),l}}else n&&!F?.has(e)&&(f=e,je(f)&&Xt(f),ue&&Qe()&&(f.f&V)===0&&xn(f));if(F?.has(e))return F.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function xn(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&V)===0&&xn(t)}}function kn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&T)!==0&&kn(t))return!0;return!1}function Yr(e){var t=J;try{return J=!0,e()}finally{J=t}}const Ur=-7169;function A(e,t){e.f=e.f&Ur|t}const Wr=new Set,An=new Set;let Cn=null;function nt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cn=e;var f=0,l=Cn===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(i=s[f]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=_,h=p;D(null),K(null);try{for(var c,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+r];w!=null&&(!i.disabled||e.target===i)&&w.call(i,e)}catch(S){c?d.push(S):c=S}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let S of d)queueMicrotask(()=>{throw S});throw c}}finally{e.__root=t,delete e.currentTarget,D(u),K(h)}}}function zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Be(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Nn(e,t){var n=(t&Yn)!==0,r,s=!e.startsWith("<!>");return()=>{if(m)return Be(g,null),g;r===void 0&&(r=zr(s?e:"<!>"+e),r=Ce(r));var i=n||nn?document.importNode(r,!0):r.cloneNode(!0);return Be(i,i),i}}function Gr(){if(m)return Be(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=q();return e.append(t,n),Be(t,n),e}function rt(e,t){if(m){var n=p;((n.f&We)===0||n.nodes_end===null)&&(n.nodes_end=g),Ge();return}e!==null&&e.before(t)}const Jr=["touchstart","touchmove"];function Kr(e){return Jr.includes(e)}function Sn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Rn(e,t){return On(e,t)}function Xr(e,t){Et(),t.intro=t.intro??!1;const n=t.target,r=m,s=g;try{for(var i=Ce(n);i&&(i.nodeType!==Ee||i.data!==Rt);)i=z(i);if(!i)throw we;re(!0),O(i);const f=On(e,{...t,anchor:i});return re(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==we&&console.warn("Failed to hydrate: ",f),t.recover===!1&&sr(),Et(),ln(n),re(!1),Rn(e,t)}finally{re(r),O(s)}}const Se=new Map;function On(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){Et();var l=new Set,o=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!l.has(d)){l.add(d);var v=Kr(d);t.addEventListener(d,nt,{passive:v});var w=Se.get(d);w===void 0?(document.addEventListener(d,nt,{passive:v}),Se.set(d,1)):Se.set(d,w+1)}}};o(at(Wr)),An.add(o);var a=void 0,u=Pr(()=>{var h=n??t.appendChild(q());return mr(h,{pending:()=>{}},c=>{if(i){Bt({});var d=P;d.c=i}if(s&&(r.$$events=s),m&&Be(c,null),a=e(c,r)||{},m&&(p.nodes_end=g,g===null||g.nodeType!==Ee||g.data!==lt))throw ze(),we;i&&Ht()}),()=>{for(var c of l){t.removeEventListener(c,nt);var d=Se.get(c);--d===0?(document.removeEventListener(c,nt),Se.delete(c)):Se.set(c,d)}An.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Ct.set(a,u),a}let Ct=new WeakMap;function Zr(e,t){const n=Ct.get(e);return n?(Ct.delete(e),n(t)):Promise.resolve()}class Qr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=$;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)At(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#n.get(f);l&&(C(l.effect),this.#n.delete(f))}for(const[i,f]of this.#e){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();mn(f,a),a.append(q()),this.#n.set(i,{effect:f,fragment:a})}else C(f);this.#r.delete(i),this.#e.delete(i)};this.#o||!r?(this.#r.add(i),Ne(f,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(C(s.effect),this.#n.delete(r))};ensure(t,n){var r=$,s=on();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),f=q();i.append(f),this.#n.set(t,{effect:B(()=>n(f)),fragment:i})}else this.#e.set(t,B(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function ei(e,t,n=!1){m&&Ge();var r=new Qr(e),s=n?ye:0;function i(f,l){if(m){const a=It(e)===He;if(f===a){var o=Je();O(o),r.anchor=o,re(!1),r.ensure(f,l),re(!0);return}}r.ensure(f,l)}xt(()=>{var f=!1;t((l,o=!0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}function ti(e,t){Fr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var s=e.__style;if(m||s!==t){var i=ni(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Dn(e,t,n,r){var s=fi(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Qn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function fi(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Un}}var Mn=new Map;function li(e){var t=e.getAttribute("is")||e.nodeName,n=Mn.get(t);if(n)return n;Mn.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=zn(s);for(var f in r)r[f].set&&n.push(f);s=Dt(s)}return n}function oi(e,t){Rr(window,["resize"],()=>Tt(()=>t(window[e])))}function Ln(e,t,n,r){var s=r,i=!0,f=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=f());var o;o=()=>{var c=e[t];return c===void 0?f():(i=!0,c)};var a=!1,u=$t(()=>(a=!1,o())),h=p;return(function(c,d){if(arguments.length>0){const v=d?E(u):c;return j(u,v),a=!0,s!==void 0&&(s=v),c}return pe&&a||(h.f&ne)!==0?u.v:E(u)})}function ai(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(i,f)=>{var l=Qt(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return E(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Zn?!0:(E(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return j(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#e=(t.hydrate?Xr:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&mt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(f){this.#e[i]=f},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Zr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),rt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ci(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=it(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Lr(()=>{cn(()=>{this.$$r=!0;for(const r of Ve(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=it(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=it(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function hi(e,t,n,r,s,i){let f=class extends Pn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ve(t).forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=it(l,o,t),this.$$d[l]=o;var a=this.$$c;if(a){var u=$e(a,l)?.get;u?a[l]=o:a.$set({[l]:o})}}})}),r.forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}var me={},Fn;function di(){if(Fn)return me;Fn=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(r,s){var i,f,l="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((f=s?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||f===void 0)&&f.length))for(var o=function(c){var d=s?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});d&&(l+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var h=u[a];o(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var f=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(f),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(o+"-",""),"/").concat(f)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,f){return r.formatDate(s,i,f||this.lang)},r.getDefaultLang=function(){var s,i,f,l="en";return navigator?.languages&&(!((f=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||f===void 0)&&f.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(s,i,f){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(f&&(!((l=i[f])===null||l===void 0)&&l[s]))return i[f][s];var o="",a=r.getDefaultLang();if(!f||a!==f){var u=i?.[a];u?.[s]&&(o=u[s])}return o},r.formatDate=function(s,i,f){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(f||r.getDefaultLang(),i);return l.format(s)},r})();return me.LanguageTranslator=n,me}di();var vi=Nn('<div class="collection_item svelte-16chsc" part="item"><div class="collection_item_image"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),_i=Nn('<div id="collection_container" part="container" class="svelte-16chsc"></div>');const pi={hash:"svelte-16chsc",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-16chsc {max-width:100%;}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;}'};function In(e,t){Bt(t,!0),ti(e,pi);let n=Ln(t,"id",7,""),r=Ln(t,"collection"),s=U(0),i=U(5);Ae({}),Mr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(h){console.error("error parsing collection",h)}let u=0;if(r()?.length&&r().forEach(h=>{h.index=u++}),r()){const h=Math.round(E(s)/250);j(i,h<r().length?h:r().length,!0)}else j(i,5)});var f={get id(){return n()},set id(u=""){n(u),mt()},get collection(){return r()},set collection(u){r(u),mt()}},l=Gr(),o=Sr(l);{var a=u=>{var h=_i();yr(h,21,r,c=>c.index,(c,d)=>{var v=vi(),w=Fe(v),S=Fe(w);Te(w);var y=fn(w,2),b=Fe(y),Re=Fe(b,!0);Te(b);var fe=fn(b,2),X=Fe(fe,!0);Te(fe),Te(y),Te(v),hn(()=>{Dn(S,"src",E(d).image),Dn(S,"alt",E(d).title),Sn(Re,E(d).title),Sn(X,E(d).text)}),rt(c,v)}),Te(h),hn(()=>ri(h,`grid-template-columns: repeat(${E(i)||5}, auto)`)),rt(u,h)};ei(o,u=>{r()?.length&&u(a)})}return oi("innerWidth",u=>j(s,u,!0)),rt(e,l),Ht(f)}customElements.define("hb-vertical-img-txt-archive",hi(In,{id:{},collection:{}},[],[],!0)),St.Component=In,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
1
+ (function(St){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Bn=1,Hn=2,Vn=16,Yn=2,Rt="[",He="[!",lt="]",we={},x=Symbol(),Un="http://www.w3.org/1999/xhtml",ot=!1;var Ot=Array.isArray,Wn=Array.prototype.indexOf,at=Array.from,Ve=Object.keys,Ye=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,zn=Object.getOwnPropertyDescriptors,Gn=Object.prototype,Jn=Array.prototype,Dt=Object.getPrototypeOf,Mt=Object.isExtensible;function Kn(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const T=2,ut=4,ct=8,Q=16,ee=32,le=64,Ue=128,V=512,k=1024,R=2048,te=4096,M=8192,ne=16384,We=32768,ye=65536,Pt=1<<17,Ft=1<<18,ce=1<<19,Xn=1<<20,he=32768,ht=1<<21,dt=1<<22,oe=1<<23,vt=Symbol("$state"),Zn=Symbol("legacy props"),Qn=Symbol(""),be=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},_t=3,Ee=8;function er(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function nr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ir(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ur(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let m=!1;function re(e){m=e}let g;function O(e){if(e===null)throw ze(),we;return g=e}function Ge(){return O(z(g))}function Te(e){if(m){if(z(g)!==null)throw ze(),we;g=e}}function cr(e=1){if(m){for(var t=e,n=g;t--;)n=z(n);g=n}}function Je(e=!0){for(var t=0,n=g;;){if(n.nodeType===Ee){var r=n.data;if(r===lt){if(t===0)return n;t-=1}else(r===Rt||r===He)&&(t+=1)}var s=z(n);e&&n.remove(),n=s}}function It(e){if(!e||e.nodeType!==Ee)throw ze(),we;return e.data}function jt(e){return e===this.v}function hr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function qt(e){return!hr(e,this.v)}let dr=!1,P=null;function xe(e){P=e}function Bt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ht(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Vt(){return!0}let de=[];function Yt(){var e=de;de=[],Kn(e)}function pt(e){if(de.length===0&&!De){var t=de;queueMicrotask(()=>{t===de&&Yt()})}de.push(e)}function vr(){for(;de.length>0;)Yt()}function Ut(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&We)===0){if((t.f&Ue)===0)throw e;t.b.error(e)}else ke(e,t)}function ke(e,t){for(;t!==null;){if((t.f&Ue)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Ke=new Set;let $=null,F=null,I=[],Xe=null,gt=!1,De=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){I=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#f(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):($=null,zt(n.render_effects),zt(n.effects),this.#o?.resolve()),F=null}#f(t,n){t.f^=k;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ee|le))!==0,f=i&&(s&k)!==0,l=f||(s&M)!==0||this.skipped_effects.has(r);if((r.f&Ue)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){i?r.f^=k:(s&ut)!==0?n.effects.push(r):je(r)&&((r.f&Q)!==0&&n.block_effects.push(r),qe(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#l(t){for(const n of t)((n.f&R)!==0?this.#s:this.#i).push(n),this.#a(n.deps),A(n,k)}#a(t){if(t!==null)for(const n of t)(n.f&T)===0||(n.f&he)===0||(n.f^=he,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){$=this,this.apply()}deactivate(){$===this&&($=null,F=null)}flush(){if(this.activate(),I.length>0){if(Wt(),$!==null&&$!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Ke.size>1){this.previous.clear();var t=F,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ke){if(i===this){n=!1;continue}const f=[];for(const[o,a]of this.current){if(i.current.has(o))if(n&&a!==i.current.get(o))i.current.set(o,a);else continue;f.push(o)}if(f.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var s=I;I=[];const o=new Set,a=new Map;for(const u of f)Gt(u,l,o,a);if(I.length>0){$=i,i.apply();for(const u of I)i.#f(u,r);i.deactivate()}I=s}}$=null,F=t}this.committed=!0,Ke.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)A(t,R),ve(t);for(const t of this.#i)A(t,te),ve(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Lt()).promise}static ensure(){if($===null){const t=$=new Y;Ke.add($),De||Y.enqueue(()=>{$===t&&t.flush()})}return $}static enqueue(t){pt(t)}apply(){}}function mt(e){var t=De;De=!0;try{for(var n;;){if(vr(),I.length===0&&($?.flush(),I.length===0))return Xe=null,n;Wt()}}finally{De=t}}function Wt(){var e=ue;gt=!0;var t=null;try{var n=0;for(et(!0);I.length>0;){var r=Y.ensure();if(n++>1e3){var s,i;_r()}r.process(I),ae.clear()}}finally{gt=!1,et(e),Xe=null}}function _r(){try{ir()}catch(e){ke(e,Xe)}}let ie=null;function zt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ne|M))===0&&je(r)&&(ie=new Set,qe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?_n(r):r.fn=null),ie?.size>0)){ae.clear();for(const s of ie){if((s.f&(ne|M))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)ie.has(f)&&(ie.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const o=i[l];(o.f&(ne|M))===0&&qe(o)}}ie.clear()}}ie=null}}function Gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&T)!==0?Gt(s,t,n,r):(i&(dt|Q))!==0&&(i&R)===0&&Jt(s,t,r)&&(A(s,R),ve(s))}}function Jt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&T)!==0&&Jt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ve(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var n=t.f;if(gt&&t===p&&(n&Q)!==0&&(n&Ft)===0)return;if((n&(le|ee))!==0){if((n&k)===0)return;t.f^=k}}I.push(t)}function pr(e){let t=0,n=_e(0),r;return()=>{Qe()&&(E(n),cn(()=>(t===0&&(r=Yr(()=>e(()=>Le(n)))),t+=1,()=>{pt(()=>{t-=1,t===0&&(r?.(),r=void 0,Le(n))})})))}}var gr=ye|ce|Ue;function mr(e,t,n){new wr(e,t,n)}class wr{parent;#t=!1;#e;#n=m?g:null;#r;#o;#s;#i=null;#f=null;#l=null;#a=null;#u=null;#c=0;#h=0;#v=!1;#d=null;#w=pr(()=>(this.#d=_e(this.#c),()=>{this.#d=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=p.b,this.#t=!!this.#r.pending,this.#s=xt(()=>{if(p.b=this,m){const i=this.#n;Ge(),i.nodeType===Ee&&i.data===He?this.#y():this.#$()}else{var s=this.#g();try{this.#i=B(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},gr),m&&(this.#e=g)}#$(){try{this.#i=B(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#f=B(()=>t(this.#e)),Y.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#o(n)))),this.#h>0?this.#p():(Ce(this.#f,()=>{this.#f=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=q(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=p,r=_,s=P;K(this.#s),D(this.#s),xe(this.#s.ctx);try{return t()}catch(i){return Ut(i),null}finally{K(n),D(r),xe(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),mn(this.#i,this.#a)),this.#f===null&&(this.#f=B(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#f&&Ce(this.#f,()=>{this.#f=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#d&&Me(this.#d,this.#c)}get_effect_pending(){return this.#w(),E(this.#d)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(C(this.#i),this.#i=null),this.#f&&(C(this.#f),this.#f=null),this.#l&&(C(this.#l),this.#l=null),m&&(O(this.#n),cr(),O(Je()));var s=!1,i=!1;const f=()=>{if(s){ur();return}s=!0,i&&ar(),Y.ensure(),this.#c=0,this.#l!==null&&Ce(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#o(this.#e)))),this.#h>0?this.#p():this.#t=!1};var l=_;try{D(null),i=!0,n?.(t,f),i=!1}catch(o){ke(o,this.#s&&this.#s.parent)}finally{D(l)}r&&pt(()=>{this.#l=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{r(this.#e,()=>t,()=>f)})}catch(o){return ke(o,this.#s.parent),null}finally{this.#v=!1}})})}}function $r(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)kt(t[i].e,r,!0);pn(r,()=>{var f=r.length===0&&n!==null;if(f){var l=n,o=l.parentNode;ln(o),o.append(l),e.items.clear(),U(e,t[0].prev,t[s-1].next)}for(var a=0;a<s;a++){var u=t[a];f||(e.items.delete(u.k),U(e,u.prev,u.next)),C(u.e,!f)}e.first===t[0]&&(e.first=t[0].prev)})}function yr(e,t,n,r,s,i=null){var f=e,l=new Map,o=null;{var a=e;f=m?O(Ae(a)):a.appendChild(q())}m&&Ge();var u=null,h=Ar(()=>{var y=n();return Ot(y)?y:y==null?[]:at(y)}),c,d=!0;function v(){br(S,c,f,t,r),u!==null&&(c.length===0?(u.fragment?(f.before(u.fragment),u.fragment=null):At(u.effect),w.first=u.effect):Ce(u.effect,()=>{u=null}))}var w=xt(()=>{c=E(h);var y=c.length;let b=!1;if(m){var Se=It(f)===He;Se!==(y===0)&&(f=Je(),O(f),re(!1),b=!0)}for(var fe=new Set,X=$,Re=null,st=on(),Oe=0;Oe<y;Oe+=1){m&&g.nodeType===Ee&&g.data===lt&&(f=g,b=!0,re(!1));var Nt=c[Oe],ft=r(Nt,Oe),Z=d?null:l.get(ft);Z?(Me(Z.v,Nt),Z.i=Oe,st&&X.skipped_effects.delete(Z.e)):(Z=Er(d?f:null,Re,Nt,ft,Oe,s,t,n),d&&(Z.o=!0,Re===null?o=Z:Re.next=Z,Re=Z),l.set(ft,Z)),fe.add(ft)}if(y===0&&i&&!u)if(d)u={fragment:null,effect:B(()=>i(f))};else{var jn=document.createDocumentFragment(),qn=q();jn.append(qn),u={fragment:jn,effect:B(()=>i(qn))}}if(m&&y>0&&O(Je()),!d)if(st){for(const[gi,mi]of l)fe.has(gi)||X.skipped_effects.add(mi.e);X.oncommit(v),X.ondiscard(()=>{})}else v();b&&re(!0),E(h)}),S={effect:w,items:l,first:o};d=!1,m&&(f=g)}function br(e,t,n,r,s){var i=t.length,f=e.items,l=e.first,o,a=null,u=[],h=[],c,d,v,w;for(w=0;w<i;w+=1){if(c=t[w],d=s(c,w),v=f.get(d),e.first??=v,!v.o){v.o=!0;var S=a?a.next:l;U(e,a,v),U(e,v,S),wt(v,S,n),a=v,u=[],h=[],l=a.next;continue}if((v.e.f&M)!==0&&At(v.e),v!==l){if(o!==void 0&&o.has(v)){if(u.length<h.length){var y=h[0],b;a=y.prev;var Se=u[0],fe=u[u.length-1];for(b=0;b<u.length;b+=1)wt(u[b],y,n);for(b=0;b<h.length;b+=1)o.delete(h[b]);U(e,Se.prev,fe.next),U(e,a,Se),U(e,fe,y),l=y,a=fe,w-=1,u=[],h=[]}else o.delete(v),wt(v,l,n),U(e,v.prev,v.next),U(e,v,a===null?e.first:a.next),U(e,a,v),a=v;continue}for(u=[],h=[];l!==null&&l.k!==d;)(l.e.f&M)===0&&(o??=new Set).add(l),h.push(l),l=l.next;if(l===null)continue;v=l}u.push(v),a=v,l=v.next}if(l!==null||o!==void 0){for(var X=o===void 0?[]:at(o);l!==null;)(l.e.f&M)===0&&X.push(l),l=l.next;var Re=X.length;if(Re>0){var st=i===0?n:null;$r(e,X,st)}}}function Er(e,t,n,r,s,i,f,l){var o=(f&Bn)!==0,a=(f&Vn)===0,u=o?a?Qt(n,!1,!1):_e(n):n,h=(f&Hn)===0?s:_e(s),c={i:h,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var d=document.createDocumentFragment();d.append(e=q())}return c.e=B(()=>i(e,u,h,l)),t!==null&&(t.next=c),c}finally{}}function wt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var f=z(i);s.before(i),i=f}}function U(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Tr(e,t,n,r){const s=$t;if(n.length===0&&e.length===0){r(t.map(s));return}var i=$,f=p,l=xr();function o(){Promise.all(n.map(a=>kr(a))).then(a=>{l();try{r([...t.map(s),...a])}catch(u){(f.f&ne)===0&&ke(u,f)}i?.deactivate(),Ze()}).catch(a=>{ke(a,f)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{i?.deactivate(),Ze()}}):o()}function xr(){var e=p,t=_,n=P,r=$;return function(i=!0){K(e),D(t),xe(n),i&&r?.activate()}}function Ze(){K(null),D(null),xe(null)}function $t(e){var t=T|R,n=_!==null&&(_.f&T)!==0?_:null;return p!==null&&(p.f|=ce),{ctx:P,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??p,ac:null}}function kr(e,t){let n=p;n===null&&er();var r=n.b,s=void 0,i=_e(x),f=!_,l=new Map;return Ir(()=>{var o=Lt();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===$&&a.committed&&a.deactivate(),Ze()})}catch(c){o.reject(c),Ze()}var a=$;if(f){var u=!r.is_pending();r.update_pending_count(1),a.increment(u),l.get(a)?.reject(be),l.delete(a),l.set(a,o)}const h=(c,d=void 0)=>{if(a.activate(),d)d!==be&&(i.f|=oe,Me(i,d));else{(i.f&oe)!==0&&(i.f^=oe),Me(i,c);for(const[v,w]of l){if(l.delete(v),v===a)break;w.reject(be)}}f&&(r.update_pending_count(-1),a.decrement(u))};o.promise.then(h,c=>h(null,c||"unknown"))}),an(()=>{for(const o of l.values())o.reject(be)}),new Promise(o=>{function a(u){function h(){u===s?o(i):a(s)}u.then(h,h)}a(s)})}function Ar(e){const t=$t(e);return t.equals=qt,t}function Kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function Cr(e){for(var t=e.parent;t!==null;){if((t.f&T)===0)return(t.f&ne)===0?t:null;t=t.parent}return null}function yt(e){var t,n=p;K(Cr(e));try{e.f&=~he,Kt(e),t=Tn(e)}finally{K(n)}return t}function Xt(e){var t=yt(e);if(e.equals(t)||($?.is_fork||(e.v=t),e.wv=bn()),!pe)if(F!==null)Qe()&&F.set(e,t);else{var n=(e.f&V)===0?te:k;A(e,n)}}let bt=new Set;const ae=new Map;let Zt=!1;function _e(e,t){var n={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return n}function W(e,t){const n=_e(e);return Br(n),n}function Qt(e,t=!1,n=!0){const r=_e(e);return t||(r.equals=qt),r}function j(e,t,n=!1){_!==null&&(!J||(_.f&Pt)!==0)&&Vt()&&(_.f&(T|Q|dt|Pt))!==0&&!se?.includes(e)&&or();let r=n?Pe(t):t;return Me(e,r)}function Me(e,t){if(!e.equals(t)){var n=e.v;pe?ae.set(e,t):ae.set(e,n),e.v=t;var r=Y.ensure();r.capture(e,n),(e.f&T)!==0&&((e.f&R)!==0&&yt(e),A(e,(e.f&V)!==0?k:te)),e.wv=bn(),en(e,R),p!==null&&(p.f&k)!==0&&(p.f&(ee|le))===0&&(H===null?Hr([e]):H.push(e)),!r.is_fork&&bt.size>0&&!Zt&&Nr()}return t}function Nr(){Zt=!1;var e=ue;et(!0);const t=Array.from(bt);try{for(const n of t)(n.f&k)!==0&&A(n,te),je(n)&&qe(n)}finally{et(e)}bt.clear()}function Le(e){j(e,e.v+1)}function en(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],f=i.f,l=(f&R)===0;if(l&&A(i,t),(f&T)!==0){var o=i;F?.delete(o),(f&he)===0&&(f&V&&(i.f|=he),en(o,te))}else l&&((f&Q)!==0&&ie!==null&&ie.add(i),ve(i))}}function Pe(e){if(typeof e!="object"||e===null||vt in e)return e;const t=Dt(e);if(t!==Gn&&t!==Jn)return e;var n=new Map,r=Ot(e),s=W(0),i=ge,f=l=>{if(ge===i)return l();var o=_,a=ge;D(null),yn(i);var u=l();return D(o),yn(a),u};return r&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(l,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&fr();var u=n.get(o);return u===void 0?u=f(()=>{var h=W(a.value);return n.set(o,h),h}):j(u,a.value,!0),!0},deleteProperty(l,o){var a=n.get(o);if(a===void 0){if(o in l){const u=f(()=>W(x));n.set(o,u),Le(s)}}else j(a,x),Le(s);return!0},get(l,o,a){if(o===vt)return e;var u=n.get(o),h=o in l;if(u===void 0&&(!h||$e(l,o)?.writable)&&(u=f(()=>{var d=Pe(h?l[o]:x),v=W(d);return v}),n.set(o,u)),u!==void 0){var c=E(u);return c===x?void 0:c}return Reflect.get(l,o,a)},getOwnPropertyDescriptor(l,o){var a=Reflect.getOwnPropertyDescriptor(l,o);if(a&&"value"in a){var u=n.get(o);u&&(a.value=E(u))}else if(a===void 0){var h=n.get(o),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,o){if(o===vt)return!0;var a=n.get(o),u=a!==void 0&&a.v!==x||Reflect.has(l,o);if(a!==void 0||p!==null&&(!u||$e(l,o)?.writable)){a===void 0&&(a=f(()=>{var c=u?Pe(l[o]):x,d=W(c);return d}),n.set(o,a));var h=E(a);if(h===x)return!1}return u},set(l,o,a,u){var h=n.get(o),c=o in l;if(r&&o==="length")for(var d=a;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?j(v,x):d in l&&(v=f(()=>W(x)),n.set(d+"",v))}if(h===void 0)(!c||$e(l,o)?.writable)&&(h=f(()=>W(void 0)),j(h,Pe(a)),n.set(o,h));else{c=h.v!==x;var w=f(()=>Pe(a));j(h,w)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(u,a),!c){if(r&&typeof o=="string"){var y=n.get("length"),b=Number(o);Number.isInteger(b)&&b>=y.v&&j(y,b+1)}Le(s)}return!0},ownKeys(l){E(s);var o=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==x});for(var[a,u]of n)u.v!==x&&!(a in l)&&o.push(a);return o},setPrototypeOf(){lr()}})}var tn,nn,rn,sn;function Et(){if(tn===void 0){tn=window,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=$e(t,"firstChild").get,sn=$e(t,"nextSibling").get,Mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Mt(n)&&(n.__t=void 0)}}function q(e=""){return document.createTextNode(e)}function Ae(e){return rn.call(e)}function z(e){return sn.call(e)}function Fe(e,t){if(!m)return Ae(e);var n=Ae(g);if(n===null)n=g.appendChild(q());else if(t&&n.nodeType!==_t){var r=q();return n?.before(r),O(r),r}return O(n),n}function Sr(e,t=!1){if(!m){var n=Ae(e);return n instanceof Comment&&n.data===""?z(n):n}if(t&&g?.nodeType!==_t){var r=q();return g?.before(r),O(r),r}return g}function fn(e,t=1,n=!1){let r=m?g:e;for(var s;t--;)s=r,r=z(r);if(!m)return r;if(n&&r?.nodeType!==_t){var i=q();return r===null?s?.after(i):r.before(i),O(i),i}return O(r),r}function ln(e){e.textContent=""}function on(){return!1}function Rr(e,t,n,r=!0){r&&n();for(var s of t)e.addEventListener(s,n);an(()=>{for(var i of t)e.removeEventListener(i,n)})}function Tt(e){var t=_,n=p;D(null),K(null);try{return e()}finally{D(t),K(n)}}function Or(e){p===null&&(_===null&&rr(),nr()),pe&&tr()}function Dr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function G(e,t,n){var r=p;r!==null&&(r.f&M)!==0&&(e|=M);var s={ctx:P,deps:null,nodes_start:null,nodes_end:null,f:e|R|V,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{qe(s),s.f|=We}catch(l){throw C(s),l}else t!==null&&ve(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&Q)!==0&&(e&ye)!==0&&i!==null&&(i.f|=ye)),i!==null&&(i.parent=r,r!==null&&Dr(i,r),_!==null&&(_.f&T)!==0&&(e&le)===0)){var f=_;(f.effects??=[]).push(i)}return s}function Qe(){return _!==null&&!J}function an(e){const t=G(ct,null,!1);return A(t,k),t.teardown=e,t}function Mr(e){Or();var t=p.f,n=!_&&(t&ee)!==0&&(t&We)===0;if(n){var r=P;(r.e??=[]).push(e)}else return un(e)}function un(e){return G(ut|Xn,e,!1)}function Lr(e){Y.ensure();const t=G(le|ce,e,!0);return()=>{C(t)}}function Pr(e){Y.ensure();const t=G(le|ce,e,!0);return(n={})=>new Promise(r=>{n.outro?Ce(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Fr(e){return G(ut,e,!1)}function Ir(e){return G(dt|ce,e,!0)}function cn(e,t=0){return G(ct|t,e,!0)}function hn(e,t=[],n=[],r=[]){Tr(r,t,n,s=>{G(ct,()=>e(...s.map(E)),!0)})}function xt(e,t=0){var n=G(Q|t,e,!0);return n}function B(e){return G(ee|ce,e,!0)}function dn(e){var t=e.teardown;if(t!==null){const n=pe,r=_;wn(!0),D(null);try{t.call(null)}finally{wn(n),D(r)}}}function vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Tt(()=>{s.abort(be)});var r=n.next;(n.f&le)!==0?n.parent=null:C(n,t),n=r}}function jr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ee)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qr(e.nodes_start,e.nodes_end),n=!0),vn(e,t&&!n),tt(e,0),A(e,ne);var r=e.transitions;if(r!==null)for(const i of r)i.stop();dn(e);var s=e.parent;s!==null&&s.first!==null&&_n(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qr(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function _n(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ce(e,t,n=!0){var r=[];kt(e,r,!0),pn(r,()=>{n&&C(e),t&&t()})}function pn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function kt(e,t,n){if((e.f&M)===0){if(e.f^=M,e.transitions!==null)for(const f of e.transitions)(f.is_global||n)&&t.push(f);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ye)!==0||(r.f&ee)!==0&&(e.f&Q)!==0;kt(r,t,i?n:!1),r=s}}}function At(e){gn(e,!0)}function gn(e,t){if((e.f&M)!==0){e.f^=M,(e.f&k)===0&&(A(e,R),ve(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ye)!==0||(n.f&ee)!==0;gn(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function mn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:z(n);t.append(n),n=s}}let ue=!1;function et(e){ue=e}let pe=!1;function wn(e){pe=e}let _=null,J=!1;function D(e){_=e}let p=null;function K(e){p=e}let se=null;function Br(e){_!==null&&(se===null?se=[e]:se.push(e))}let N=null,L=0,H=null;function Hr(e){H=e}let $n=1,Ie=0,ge=Ie;function yn(e){ge=e}function bn(){return++$n}function je(e){var t=e.f;if((t&R)!==0)return!0;if(t&T&&(e.f&=~he),(t&te)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(je(i)&&Xt(i),i.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,k)}return!1}function En(e,t,n=!0){var r=e.reactions;if(r!==null&&!se?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&T)!==0?En(i,t,!1):t===i&&(n?A(i,R):(i.f&k)!==0&&A(i,te),ve(i))}}function Tn(e){var t=N,n=L,r=H,s=_,i=se,f=P,l=J,o=ge,a=e.f;N=null,L=0,H=null,_=(a&(ee|le))===0?e:null,se=null,xe(e.ctx),J=!1,ge=++Ie,e.ac!==null&&(Tt(()=>{e.ac.abort(be)}),e.ac=null);try{e.f|=ht;var u=e.fn,h=u(),c=e.deps;if(N!==null){var d;if(tt(e,L),c!==null&&L>0)for(c.length=L+N.length,d=0;d<N.length;d++)c[L+d]=N[d];else e.deps=c=N;if(ue&&Qe()&&(e.f&V)!==0)for(d=L;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&L<c.length&&(tt(e,L),c.length=L);if(Vt()&&H!==null&&!J&&c!==null&&(e.f&(T|te|R))===0)for(d=0;d<H.length;d++)En(H[d],e);return s!==null&&s!==e&&(Ie++,H!==null&&(r===null?r=H:r.push(...H))),(e.f&oe)!==0&&(e.f^=oe),h}catch(v){return Ut(v)}finally{e.f^=ht,N=t,L=n,H=r,_=s,se=i,xe(f),J=l,ge=o}}function Vr(e,t){let n=t.reactions;if(n!==null){var r=Wn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&T)!==0&&(N===null||!N.includes(t))&&(A(t,te),(t.f&V)!==0&&(t.f^=V,t.f&=~he),Kt(t),tt(t,0))}function tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Vr(e,n[r])}function qe(e){var t=e.f;if((t&ne)===0){A(e,k);var n=p,r=ue;p=e,ue=!0;try{(t&Q)!==0?jr(e):vn(e),dn(e);var s=Tn(e);e.teardown=typeof s=="function"?s:null,e.wv=$n;var i;ot&&dr&&(e.f&R)!==0&&e.deps}finally{ue=r,p=n}}}function E(e){var t=e.f,n=(t&T)!==0;if(_!==null&&!J){var r=p!==null&&(p.f&ne)!==0;if(!r&&!se?.includes(e)){var s=_.deps;if((_.f&ht)!==0)e.rv<Ie&&(e.rv=Ie,N===null&&s!==null&&s[L]===e?L++:N===null?N=[e]:N.includes(e)||N.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(pe){if(ae.has(e))return ae.get(e);if(n){var f=e,l=f.v;return((f.f&k)===0&&f.reactions!==null||kn(f))&&(l=yt(f)),ae.set(f,l),l}}else n&&!F?.has(e)&&(f=e,je(f)&&Xt(f),ue&&Qe()&&(f.f&V)===0&&xn(f));if(F?.has(e))return F.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function xn(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&T)!==0&&(t.f&V)===0&&xn(t)}}function kn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&T)!==0&&kn(t))return!0;return!1}function Yr(e){var t=J;try{return J=!0,e()}finally{J=t}}const Ur=-7169;function A(e,t){e.f=e.f&Ur|t}const Wr=new Set,An=new Set;let Cn=null;function nt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Cn=e;var f=0,l=Cn===e&&e.__root;if(l){var o=s.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=s.indexOf(t);if(a===-1)return;o<=a&&(f=o)}if(i=s[f]||e.target,i!==t){Ye(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=_,h=p;D(null),K(null);try{for(var c,d=[];i!==null;){var v=i.assignedSlot||i.parentNode||i.host||null;try{var w=i["__"+r];w!=null&&(!i.disabled||e.target===i)&&w.call(i,e)}catch(S){c?d.push(S):c=S}if(e.cancelBubble||v===t||v===null)break;i=v}if(c){for(let S of d)queueMicrotask(()=>{throw S});throw c}}finally{e.__root=t,delete e.currentTarget,D(u),K(h)}}}function zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Be(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Nn(e,t){var n=(t&Yn)!==0,r,s=!e.startsWith("<!>");return()=>{if(m)return Be(g,null),g;r===void 0&&(r=zr(s?e:"<!>"+e),r=Ae(r));var i=n||nn?document.importNode(r,!0):r.cloneNode(!0);return Be(i,i),i}}function Gr(){if(m)return Be(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=q();return e.append(t,n),Be(t,n),e}function rt(e,t){if(m){var n=p;((n.f&We)===0||n.nodes_end===null)&&(n.nodes_end=g),Ge();return}e!==null&&e.before(t)}const Jr=["touchstart","touchmove"];function Kr(e){return Jr.includes(e)}function Sn(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Rn(e,t){return On(e,t)}function Xr(e,t){Et(),t.intro=t.intro??!1;const n=t.target,r=m,s=g;try{for(var i=Ae(n);i&&(i.nodeType!==Ee||i.data!==Rt);)i=z(i);if(!i)throw we;re(!0),O(i);const f=On(e,{...t,anchor:i});return re(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==we&&console.warn("Failed to hydrate: ",f),t.recover===!1&&sr(),Et(),ln(n),re(!1),Rn(e,t)}finally{re(r),O(s)}}const Ne=new Map;function On(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0}){Et();var l=new Set,o=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!l.has(d)){l.add(d);var v=Kr(d);t.addEventListener(d,nt,{passive:v});var w=Ne.get(d);w===void 0?(document.addEventListener(d,nt,{passive:v}),Ne.set(d,1)):Ne.set(d,w+1)}}};o(at(Wr)),An.add(o);var a=void 0,u=Pr(()=>{var h=n??t.appendChild(q());return mr(h,{pending:()=>{}},c=>{if(i){Bt({});var d=P;d.c=i}if(s&&(r.$$events=s),m&&Be(c,null),a=e(c,r)||{},m&&(p.nodes_end=g,g===null||g.nodeType!==Ee||g.data!==lt))throw ze(),we;i&&Ht()}),()=>{for(var c of l){t.removeEventListener(c,nt);var d=Ne.get(c);--d===0?(document.removeEventListener(c,nt),Ne.delete(c)):Ne.set(c,d)}An.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Ct.set(a,u),a}let Ct=new WeakMap;function Zr(e,t){const n=Ct.get(e);return n?(Ct.delete(e),n(t)):Promise.resolve()}class Qr{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=$;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)At(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,f]of this.#t){if(this.#t.delete(i),i===t)break;const l=this.#n.get(f);l&&(C(l.effect),this.#n.delete(f))}for(const[i,f]of this.#e){if(i===n||this.#r.has(i))continue;const l=()=>{if(Array.from(this.#t.values()).includes(i)){var a=document.createDocumentFragment();mn(f,a),a.append(q()),this.#n.set(i,{effect:f,fragment:a})}else C(f);this.#r.delete(i),this.#e.delete(i)};this.#o||!r?(this.#r.add(i),Ce(f,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(C(s.effect),this.#n.delete(r))};ensure(t,n){var r=$,s=on();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),f=q();i.append(f),this.#n.set(t,{effect:B(()=>n(f)),fragment:i})}else this.#e.set(t,B(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else m&&(this.anchor=g),this.#s()}}function ei(e,t,n=!1){m&&Ge();var r=new Qr(e),s=n?ye:0;function i(f,l){if(m){const a=It(e)===He;if(f===a){var o=Je();O(o),r.anchor=o,re(!1),r.ensure(f,l),re(!0);return}}r.ensure(f,l)}xt(()=>{var f=!1;t((l,o=!0)=>{f=!0,i(o,l)}),f||i(!1,null)},s)}function ti(e,t){Fr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var s=e.__style;if(m||s!==t){var i=ni(t);(!m||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Dn(e,t,n,r){var s=fi(e);m&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Qn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function fi(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Un}}var Mn=new Map;function li(e){var t=e.getAttribute("is")||e.nodeName,n=Mn.get(t);if(n)return n;Mn.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=zn(s);for(var f in r)r[f].set&&n.push(f);s=Dt(s)}return n}function oi(e,t){Rr(window,["resize"],()=>Tt(()=>t(window[e])))}function Ln(e,t,n,r){var s=r,i=!0,f=()=>(i&&(i=!1,s=r),s),l;l=e[t],l===void 0&&r!==void 0&&(l=f());var o;o=()=>{var c=e[t];return c===void 0?f():(i=!0,c)};var a=!1,u=$t(()=>(a=!1,o())),h=p;return(function(c,d){if(arguments.length>0){const v=d?E(u):c;return j(u,v),a=!0,s!==void 0&&(s=v),c}return pe&&a||(h.f&ne)!==0?u.v:E(u)})}function ai(e){return new ui(e)}class ui{#t;#e;constructor(t){var n=new Map,r=(i,f)=>{var l=Qt(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return E(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Zn?!0:(E(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return j(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#e=(t.hydrate?Xr:Rn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&mt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||Ye(this,i,{get(){return this.#e[i]},set(f){this.#e[i]=f},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Zr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Pn;typeof HTMLElement=="function"&&(Pn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),rt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ci(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=it(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Lr(()=>{cn(()=>{this.$$r=!0;for(const r of Ve(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=it(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=it(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function it(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ci(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function hi(e,t,n,r,s,i){let f=class extends Pn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ve(t).forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=it(l,o,t),this.$$d[l]=o;var a=this.$$c;if(a){var u=$e(a,l)?.get;u?a[l]=o:a.$set({[l]:o})}}})}),r.forEach(l=>{Ye(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}var me={},Fn;function di(){if(Fn)return me;Fn=1,Object.defineProperty(me,"__esModule",{value:!0}),me.LanguageTranslator=void 0,me.getChildStyleToPass=e,me.addComponent=t;function e(r,s){var i,f,l="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((f=s?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||f===void 0)&&f.length))for(var o=function(c){var d=s?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});d&&(l+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var h=u[a];o(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var f=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var l=document.createElement("script");if(l.id=i+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(f),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=i.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(i.replace(o+"-",""),"/").concat(f)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,f){return r.formatDate(s,i,f||this.lang)},r.getDefaultLang=function(){var s,i,f,l="en";return navigator?.languages&&(!((f=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||f===void 0)&&f.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(s,i,f){var l;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(f&&(!((l=i[f])===null||l===void 0)&&l[s]))return i[f][s];var o="",a=r.getDefaultLang();if(!f||a!==f){var u=i?.[a];u?.[s]&&(o=u[s])}return o},r.formatDate=function(s,i,f){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(f||r.getDefaultLang(),i);return l.format(s)},r})();return me.LanguageTranslator=n,me}di();var vi=Nn('<div class="collection_item svelte-16chsc" part="item"><div class="collection_item_image"><img part="image" class="svelte-16chsc"/></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),_i=Nn('<div id="collection_container" part="container" class="svelte-16chsc"></div>');const pi={hash:"svelte-16chsc",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}#collection_container.svelte-16chsc {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-16chsc {max-width:100%;}img.svelte-16chsc {width:100%;height:100%;object-fit:cover;}'};function In(e,t){Bt(t,!0),ti(e,pi);let n=Ln(t,"id",7,""),r=Ln(t,"collection"),s=W(0),i=W(5);Mr(()=>{if(typeof r()=="string")try{r(JSON.parse(r()))}catch(h){console.error("error parsing collection",h)}let u=0;if(r()?.length&&r().forEach(h=>{h.index=u++}),r()){const h=Math.round(E(s)/250);j(i,h<r().length?h:r().length,!0)}else j(i,5)});var f={get id(){return n()},set id(u=""){n(u),mt()},get collection(){return r()},set collection(u){r(u),mt()}},l=Gr(),o=Sr(l);{var a=u=>{var h=_i();yr(h,21,r,c=>c.index,(c,d)=>{var v=vi(),w=Fe(v),S=Fe(w);Te(w);var y=fn(w,2),b=Fe(y),Se=Fe(b,!0);Te(b);var fe=fn(b,2),X=Fe(fe,!0);Te(fe),Te(y),Te(v),hn(()=>{Dn(S,"src",E(d).image),Dn(S,"alt",E(d).title),Sn(Se,E(d).title),Sn(X,E(d).text)}),rt(c,v)}),Te(h),hn(()=>ri(h,`grid-template-columns: repeat(${E(i)||5}, auto)`)),rt(u,h)};ei(o,u=>{r()?.length&&u(a)})}return oi("innerWidth",u=>j(s,u,!0)),rt(e,l),Ht(f)}customElements.define("hb-vertical-img-txt-archive",hi(In,{id:{},collection:{}},[],[],!0)),St.Component=In,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
3
3
  //# sourceMappingURL=main.iife.js.map