@htmlbricks/hb-page-checkout 0.66.6 → 0.66.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,6 @@
1
- (function($t){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const qn=1,In=4,Mn=8,Ln=16,Dn=2,kt="[",xt="[!",Et="[?",St="]",Ae={},T=Symbol(),Tt="http://www.w3.org/1999/xhtml",Fn=!1;var jn=Array.isArray,Bn=Array.prototype.indexOf,be=Array.prototype.includes,Un=Array.from,Ie=Object.keys,Me=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,Hn=Object.getOwnPropertyDescriptors,Yn=Object.prototype,zn=Array.prototype,Nt=Object.getPrototypeOf,At=Object.isExtensible;const Vn=()=>{};function Jn(e){for(var t=0;t<e.length;t++)e[t]()}function Ot(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const E=2,$e=4,Le=8,Rt=1<<24,X=16,V=32,Z=64,Qe=128,q=512,S=1024,O=2048,Y=4096,Q=8192,j=16384,ee=32768,Ct=1<<25,De=65536,Pt=1<<17,Gn=1<<18,ce=1<<19,Kn=1<<20,he=65536,et=1<<21,tt=1<<22,te=1<<23,Fe=Symbol("$state"),qt=Symbol("legacy props"),Wn=Symbol(""),J=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Xn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),It=3,nt=8;function Zn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function er(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function ir(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function sr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function or(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function fr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ke(e){$=e}let k;function ne(e){if(e===null)throw rt(),Ae;return k=e}function Mt(){return ne(oe(k))}function je(e){if($){if(oe(k)!==null)throw rt(),Ae;k=e}}function ur(e=1){if($){for(var t=e,n=k;t--;)n=oe(n);k=n}}function cr(e=!0){for(var t=0,n=k;;){if(n.nodeType===nt){var r=n.data;if(r===St){if(t===0)return n;t-=1}else(r===kt||r===xt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=oe(n);e&&n.remove(),n=i}}function Lt(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 Dt(e){return!hr(e,this.v)}let dr=!1,I=null;function xe(e){I=e}function Ft(e,t=!1,n){I={p:I,i:!1,c:null,e:null,s:e,x:null,r:m,l:null}}function jt(e){var t=I,n=t.e;if(n!==null){t.e=null;for(var r of n)fn(r)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Bt(){return!0}let de=[];function Ut(){var e=de;de=[],Jn(e)}function ve(e){if(de.length===0&&!Oe){var t=de;queueMicrotask(()=>{t===de&&Ut()})}de.push(e)}function vr(){for(;de.length>0;)Ut()}function Ht(e){var t=m;if(t===null)return p.f|=te,e;if((t.f&ee)===0&&(t.f&$e)===0)throw e;re(e,t)}function re(e,t){for(;t!==null;){if((t.f&Qe)!==0){if((t.f&ee)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const _r=-7169;function x(e,t){e.f=e.f&_r|t}function it(e){(e.f&q)!==0||e.deps===null?x(e,S):x(e,Y)}function Yt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&he)===0||(t.f^=he,Yt(t.deps))}function zt(e,t,n){(e.f&O)!==0?t.add(e):(e.f&Y)!==0&&n.add(e),Yt(e.deps),x(e,S)}let Be=!1;function pr(e){var t=Be;try{return Be=!1,[e(),Be]}finally{Be=t}}const ie=new Set;let y=null,B=null,st=null,Oe=!1,lt=!1,Ee=null,Ue=null;var Vt=0;let mr=1;class se{id=mr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#o.size>0}#v(){for(const r of this.#f)for(const i of r.#o.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)x(r,O),this.schedule(r);for(r of n.m)x(r,Y),this.schedule(r)}}#d(){if(Vt++>1e3&&(ie.delete(this),gr()),!this.#h()){for(const a of this.#r)this.#i.delete(a),x(a,O),this.schedule(a);for(const a of this.#i)x(a,Y),this.schedule(a)}const t=this.#t;this.#t=[],this.apply();var n=Ee=[],r=[],i=Ue=[];for(const a of t)try{this.#u(a,n,r)}catch(f){throw Xt(a),f}if(y=null,i.length>0){var s=se.ensure();for(const a of i)s.schedule(a)}if(Ee=null,Ue=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[a,f]of this.#a)Wt(a,f)}else{this.#s.size===0&&ie.delete(this),this.#r.clear(),this.#i.clear();for(const a of this.#e)a(this);this.#e.clear(),Jt(r),Jt(n),this.#l?.resolve()}var l=y;if(this.#t.length>0){const a=l??=this;a.#t.push(...this.#t.filter(f=>!a.#t.includes(f)))}l!==null&&(ie.add(l),l.#d()),ie.has(this)||this.#p()}#u(t,n,r){t.f^=S;for(var i=t.first;i!==null;){var s=i.f,l=(s&(V|Z))!==0,a=l&&(s&S)!==0,f=a||(s&Q)!==0||this.#a.has(i);if(!f&&i.fn!==null){l?i.f^=S:(s&$e)!==0?n.push(i):Pe(i)&&((s&X)!==0&&this.#i.add(i),Te(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)zt(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&te)===0&&(this.current.set(t,[t.v,r]),B?.set(t,t.v))}activate(){y=this}deactivate(){y=null,B=null}flush(){try{lt=!0,y=this,this.#d()}finally{Vt=0,st=null,Ee=null,Ue=null,lt=!1,y=null,B=null,le.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ie.delete(this)}#p(){for(const o of ie){var t=o.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(o.current.has(u)){var r=o.current.get(u)[0];if(t&&h!==r)o.current.set(u,[h,c]);else continue}n.push(u)}var i=[...o.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&o.discard();else if(n.length>0){o.activate();var s=new Set,l=new Map;for(var a of n)Gt(a,i,s,l);if(o.#t.length>0){o.apply();for(var f of o.#t)o.#u(f,[],[]);o.#t=[]}o.deactivate()}}for(const o of ie)o.#f.has(this)&&(o.#f.delete(this),o.#f.size===0&&!o.#h()&&(o.activate(),o.#d()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#o.get(n)??0;this.#o.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#o.get(n)??0;s===1?this.#o.delete(n):this.#o.set(n,s-1)}this.#c||r||(this.#c=!0,ve(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=Ot()).promise}static ensure(){if(y===null){const t=y=new se;lt||(ie.add(y),Oe||ve(()=>{y===t&&t.flush()}))}return y}apply(){{B=null;return}}schedule(t){if(st=t,t.b?.is_pending&&(t.f&($e|Le|Rt))!==0&&(t.f&ee)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ee!==null&&n===m&&(p===null||(p.f&E)===0))return;if((r&(Z|V))!==0){if((r&S)===0)return;n.f^=S}}this.#t.push(n)}}function _e(e){var t=Oe;Oe=!0;try{for(var n;;){if(vr(),y===null)return n;y.flush()}}finally{Oe=t}}function gr(){try{nr()}catch(e){re(e,st)}}let G=null;function Jt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(j|Q))===0&&Pe(r)&&(G=new Set,Te(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&hn(r),G?.size>0)){le.clear();for(const i of G){if((i.f&(j|Q))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)G.has(l)&&(G.delete(l),s.push(l)),l=l.parent;for(let a=s.length-1;a>=0;a--){const f=s[a];(f.f&(j|Q))===0&&Te(f)}}G.clear()}}G=null}}function Gt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Gt(i,t,n,r):(s&(tt|X))!==0&&(s&O)===0&&Kt(i,t,r)&&(x(i,O),at(i))}}function Kt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(be.call(t,i))return!0;if((i.f&E)!==0&&Kt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function at(e){y.schedule(e)}function Wt(e,t){if(!((e.f&V)!==0&&(e.f&S)!==0)){(e.f&O)!==0?t.d.push(e):(e.f&Y)!==0&&t.m.push(e),x(e,S);for(var n=e.first;n!==null;)Wt(n,t),n=n.next}}function Xt(e){x(e,S);for(var t=e.first;t!==null;)Xt(t),t=t.next}function wr(e){let t=0,n=Re(0),r;return()=>{vt()&&(F(n),un(()=>(t===0&&(r=$n(()=>e(()=>Ce(n)))),t+=1,()=>{ve(()=>{t-=1,t===0&&(r?.(),r=void 0,Ce(n))})})))}}var yr=De|ce;function br(e,t,n,r){new $r(e,t,n,r)}class $r{parent;is_pending=!1;transform_error;#e;#n=$?k:null;#s;#o;#l;#t=null;#r=null;#i=null;#a=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=wr(()=>(this.#u=Re(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#o=s=>{var l=m;l.b=this,l.f|=Qe,r(s)},this.parent=m.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=Ur(()=>{if($){const s=this.#n;Mt();const l=s.data===xt;if(s.data.startsWith(Et)){const f=JSON.parse(s.data.slice(Et.length));this.#b(f)}else l?this.#$():this.#p()}else this.#w()},yr),$&&(this.#e=k)}#p(){try{this.#t=me(()=>this.#o(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#s.failed;n&&(this.#i=me(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=me(()=>t(this.#e)),ve(()=>{var n=this.#a=document.createDocumentFragment(),r=ze();n.append(r),this.#t=this.#g(()=>me(()=>this.#o(r))),this.#f===0&&(this.#e.before(n),this.#a=null,Ge(this.#r,()=>{this.#r=null}),this.#m(y))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#t=me(()=>{this.#o(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();zr(this.#t,t);const n=this.#s.pending;this.#r=me(()=>n(this.#e))}else this.#m(y)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){zt(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#g(t){var n=m,r=p,i=I;M(this.#l),R(this.#l),xe(this.#l.ctx);try{return se.ensure(),t()}catch(s){return Ht(s),null}finally{M(n),R(r),xe(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#m(n),this.#r&&Ge(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,ve(()=>{this.#h=!1,this.#u&&Ye(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),F(this.#u)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(U(this.#t),this.#t=null),this.#r&&(U(this.#r),this.#r=null),this.#i&&(U(this.#i),this.#i=null),$&&(ne(this.#n),ur(),ne(cr()));var i=!1,s=!1;const l=()=>{if(i){fr();return}i=!0,s&&or(),this.#i!==null&&Ge(this.#i,()=>{this.#i=null}),this.#g(()=>{this.#w()})},a=f=>{try{s=!0,n?.(f,l),s=!1}catch(o){re(o,this.#l&&this.#l.parent)}r&&(this.#i=this.#g(()=>{try{return me(()=>{var o=m;o.b=this,o.f|=Qe,r(this.#e,()=>f,()=>l)})}catch(o){return re(o,this.#l.parent),null}}))};ve(()=>{var f;try{f=this.transform_error(t)}catch(o){re(o,this.#l&&this.#l.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(a,o=>re(o,this.#l&&this.#l.parent)):a(f)})}}function kr(e,t,n,r){const i=ot;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=m,a=xr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function o(c){a();try{r(c)}catch(d){(l.f&j)===0&&re(d,l)}He()}if(n.length===0){f.then(()=>o(t.map(i)));return}var u=Zt();function h(){Promise.all(n.map(c=>Er(c))).then(c=>o([...t.map(i),...c])).catch(c=>re(c,l)).finally(()=>u())}f?f.then(()=>{a(),h(),He()}):h()}function xr(){var e=m,t=p,n=I,r=y;return function(s=!0){M(e),R(t),xe(n),s&&(e.f&j)===0&&(r?.activate(),r?.apply())}}function He(e=!0){M(null),R(null),xe(null),e&&y?.deactivate()}function Zt(){var e=m,t=e.b,n=y,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function ot(e){var t=E|O,n=p!==null&&(p.f&E)!==0?p:null;return m!==null&&(m.f|=ce),{ctx:I,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??m,ac:null}}function Er(e,t,n){let r=m;r===null&&Zn();var i=void 0,s=Re(T),l=!p,a=new Map;return Br(()=>{var f=m,o=Ot();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(He)}catch(d){o.reject(d),He()}var u=y;if(l){if((f.f&ee)!==0)var h=Zt();if(r.b.is_rendered())a.get(u)?.reject(J),a.delete(u);else{for(const d of a.values())d.reject(J);a.clear()}a.set(u,o)}const c=(d,v=void 0)=>{if(h){var g=v===J;h(g)}if(!(v===J||(f.f&j)!==0)){if(u.activate(),v)s.f|=te,Ye(s,v);else{(s.f&te)!==0&&(s.f^=te),Ye(s,d);for(const[w,A]of a){if(a.delete(w),w===u)break;A.reject(J)}}u.deactivate()}};o.promise.then(c,d=>c(null,d||"unknown"))}),on(()=>{for(const f of a.values())f.reject(J)}),new Promise(f=>{function o(u){function h(){u===i?f(s):o(i)}u.then(h,h)}o(i)})}function Sr(e){const t=ot(e);return t.equals=Dt,t}function Tr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function Nr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&j)===0?t:null;t=t.parent}return null}function ft(e){var t,n=m;M(Nr(e));try{e.f&=~he,Tr(e),t=wn(e)}finally{M(n)}return t}function Qt(e){var t=e.v,n=ft(e);if(!e.equals(n)&&(e.wv=mn(),(!y?.is_fork||e.deps===null)&&(e.v=n,y?.capture(e,t,!0),e.deps===null))){x(e,S);return}fe||(B!==null?(vt()||y?.is_fork)&&B.set(e,n):it(e))}function Ar(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(J),t.teardown=Vn,t.ac=null,qe(t,0),_t(t))}function en(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Te(t)}let ut=new Set;const le=new Map;let tn=!1;function Re(e,t){var n={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return n}function ae(e,t){const n=Re(e);return Vr(n),n}function Or(e,t=!1,n=!0){const r=Re(e);return t||(r.equals=Dt),r}function K(e,t,n=!1){p!==null&&(!H||(p.f&Pt)!==0)&&Bt()&&(p.f&(E|X|tt|Pt))!==0&&(L===null||!be.call(L,e))&&ar();let r=n?Se(t):t;return Ye(e,r,Ue)}function Ye(e,t,n=null){if(!e.equals(t)){var r=e.v;fe?le.set(e,t):le.set(e,r),e.v=t;var i=se.ensure();if(i.capture(e,r),(e.f&E)!==0){const s=e;(e.f&O)!==0&&ft(s),B===null&&it(s)}e.wv=mn(),nn(e,O,n),m!==null&&(m.f&S)!==0&&(m.f&(V|Z))===0&&(D===null?Jr([e]):D.push(e)),!i.is_fork&&ut.size>0&&!tn&&Rr()}return t}function Rr(){tn=!1;for(const e of ut)(e.f&S)!==0&&x(e,Y),Pe(e)&&Te(e);ut.clear()}function Ce(e){K(e,e.v+1)}function nn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],a=l.f,f=(a&O)===0;if(f&&x(l,t),(a&E)!==0){var o=l;B?.delete(o),(a&he)===0&&(a&q&&(l.f|=he),nn(o,Y,n))}else if(f){var u=l;(a&X)!==0&&G!==null&&G.add(u),n!==null?n.push(u):at(u)}}}function Se(e){if(typeof e!="object"||e===null||Fe in e)return e;const t=Nt(e);if(t!==Yn&&t!==zn)return e;var n=new Map,r=jn(e),i=ae(0),s=we,l=a=>{if(we===s)return a();var f=p,o=we;R(null),pn(s);var u=a();return R(f),pn(o),u};return r&&n.set("length",ae(e.length)),new Proxy(e,{defineProperty(a,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&sr();var u=n.get(f);return u===void 0?l(()=>{var h=ae(o.value);return n.set(f,h),h}):K(u,o.value,!0),!0},deleteProperty(a,f){var o=n.get(f);if(o===void 0){if(f in a){const u=l(()=>ae(T));n.set(f,u),Ce(i)}}else K(o,T),Ce(i);return!0},get(a,f,o){if(f===Fe)return e;var u=n.get(f),h=f in a;if(u===void 0&&(!h||ue(a,f)?.writable)&&(u=l(()=>{var d=Se(h?a[f]:T),v=ae(d);return v}),n.set(f,u)),u!==void 0){var c=F(u);return c===T?void 0:c}return Reflect.get(a,f,o)},getOwnPropertyDescriptor(a,f){var o=Reflect.getOwnPropertyDescriptor(a,f);if(o&&"value"in o){var u=n.get(f);u&&(o.value=F(u))}else if(o===void 0){var h=n.get(f),c=h?.v;if(h!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(a,f){if(f===Fe)return!0;var o=n.get(f),u=o!==void 0&&o.v!==T||Reflect.has(a,f);if(o!==void 0||m!==null&&(!u||ue(a,f)?.writable)){o===void 0&&(o=l(()=>{var c=u?Se(a[f]):T,d=ae(c);return d}),n.set(f,o));var h=F(o);if(h===T)return!1}return u},set(a,f,o,u){var h=n.get(f),c=f in a;if(r&&f==="length")for(var d=o;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?K(v,T):d in a&&(v=l(()=>ae(T)),n.set(d+"",v))}if(h===void 0)(!c||ue(a,f)?.writable)&&(h=l(()=>ae(void 0)),K(h,Se(o)),n.set(f,h));else{c=h.v!==T;var g=l(()=>Se(o));K(h,g)}var w=Reflect.getOwnPropertyDescriptor(a,f);if(w?.set&&w.set.call(u,o),!c){if(r&&typeof f=="string"){var A=n.get("length"),b=Number(f);Number.isInteger(b)&&b>=A.v&&K(A,b+1)}Ce(i)}return!0},ownKeys(a){F(i);var f=Reflect.ownKeys(a).filter(h=>{var c=n.get(h);return c===void 0||c.v!==T});for(var[o,u]of n)u.v!==T&&!(o in a)&&f.push(o);return f},setPrototypeOf(){lr()}})}var rn,sn,ln,an;function ct(){if(rn===void 0){rn=window,sn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ln=ue(t,"firstChild").get,an=ue(t,"nextSibling").get,At(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),At(n)&&(n.__t=void 0)}}function ze(e=""){return document.createTextNode(e)}function Ve(e){return ln.call(e)}function oe(e){return an.call(e)}function Je(e,t){if(!$)return Ve(e);var n=Ve(k);return n===null&&(n=k.appendChild(ze())),ne(n),n}function Cr(e,t=1,n=!1){let r=$?k:e;for(var i;t--;)i=r,r=oe(r);if(!$)return r;if(n){if(r?.nodeType!==It){var s=ze();return r===null?i?.after(s):r.before(s),ne(s),s}qr(r)}return ne(r),r}function Pr(e){e.textContent=""}function ht(e,t,n){return document.createElementNS(Tt,e,void 0)}function qr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===It;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function dt(e){var t=p,n=m;R(null),M(null);try{return e()}finally{R(t),M(n)}}function Ir(e){m===null&&(p===null&&tr(),er()),fe&&Qn()}function Mr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=m;n!==null&&(n.f&Q)!==0&&(e|=Q);var r={ctx:I,deps:null,nodes:null,f:e|O|q,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&$e)!==0)Ee!==null?Ee.push(r):se.ensure().schedule(r);else if(t!==null){try{Te(r)}catch(l){throw U(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ce)===0&&(i=i.first,(e&X)!==0&&(e&De)!==0&&i!==null&&(i.f|=De))}if(i!==null&&(i.parent=n,n!==null&&Mr(i,n),p!==null&&(p.f&E)!==0&&(e&Z)===0)){var s=p;(s.effects??=[]).push(i)}return r}function vt(){return p!==null&&!H}function on(e){const t=z(Le,null);return x(t,S),t.teardown=e,t}function Lr(e){Ir();var t=m.f,n=!p&&(t&V)!==0&&(t&ee)===0;if(n){var r=I;(r.e??=[]).push(e)}else return fn(e)}function fn(e){return z($e|Kn,e)}function Dr(e){se.ensure();const t=z(Z|ce,e);return()=>{U(t)}}function Fr(e){se.ensure();const t=z(Z|ce,e);return(n={})=>new Promise(r=>{n.outro?Ge(t,()=>{U(t),r(void 0)}):(U(t),r(void 0))})}function jr(e){return z($e,e)}function Br(e){return z(tt|ce,e)}function un(e,t=0){return z(Le|t,e)}function pe(e,t=[],n=[],r=[]){kr(r,t,n,i=>{z(Le,()=>e(...i.map(F)))})}function Ur(e,t=0){var n=z(X|t,e);return n}function me(e){return z(V|ce,e)}function cn(e){var t=e.teardown;if(t!==null){const n=fe,r=p;vn(!0),R(null);try{t.call(null)}finally{vn(n),R(r)}}}function _t(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&dt(()=>{i.abort(J)});var r=n.next;(n.f&Z)!==0?n.parent=null:U(n,t),n=r}}function Hr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&U(t),t=n}}function U(e,t=!0){var n=!1;(t||(e.f&Gn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Yr(e.nodes.start,e.nodes.end),n=!0),x(e,Ct),_t(e,t&&!n),qe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();cn(e),e.f^=Ct,e.f|=j;var i=e.parent;i!==null&&i.first!==null&&hn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Yr(e,t){for(;e!==null;){var n=e===t?null:oe(e);e.remove(),e=n}}function hn(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 Ge(e,t,n=!0){var r=[];dn(e,r,!0);var i=()=>{n&&U(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var a of r)a.out(l)}else i()}function dn(e,t,n){if((e.f&Q)===0){e.f^=Q;var r=e.nodes&&e.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&t.push(a);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&De)!==0||(i.f&V)!==0&&(e.f&X)!==0;dn(i,t,l?n:!1),i=s}}}function zr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:oe(n);t.append(n),n=i}}let Ke=!1,fe=!1;function vn(e){fe=e}let p=null,H=!1;function R(e){p=e}let m=null;function M(e){m=e}let L=null;function Vr(e){p!==null&&(L===null?L=[e]:L.push(e))}let C=null,P=0,D=null;function Jr(e){D=e}let _n=1,ge=0,we=ge;function pn(e){we=e}function mn(){return++_n}function Pe(e){var t=e.f;if((t&O)!==0)return!0;if(t&E&&(e.f&=~he),(t&Y)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Pe(s)&&Qt(s),s.wv>e.wv)return!0}(t&q)!==0&&B===null&&x(e,S)}return!1}function gn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(L!==null&&be.call(L,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&E)!==0?gn(s,t,!1):t===s&&(n?x(s,O):(s.f&S)!==0&&x(s,Y),at(s))}}function wn(e){var t=C,n=P,r=D,i=p,s=L,l=I,a=H,f=we,o=e.f;C=null,P=0,D=null,p=(o&(V|Z))===0?e:null,L=null,xe(e.ctx),H=!1,we=++ge,e.ac!==null&&(dt(()=>{e.ac.abort(J)}),e.ac=null);try{e.f|=et;var u=e.fn,h=u();e.f|=ee;var c=e.deps,d=y?.is_fork;if(C!==null){var v;if(d||qe(e,P),c!==null&&P>0)for(c.length=P+C.length,v=0;v<C.length;v++)c[P+v]=C[v];else e.deps=c=C;if(vt()&&(e.f&q)!==0)for(v=P;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!d&&c!==null&&P<c.length&&(qe(e,P),c.length=P);if(Bt()&&D!==null&&!H&&c!==null&&(e.f&(E|Y|O))===0)for(v=0;v<D.length;v++)gn(D[v],e);if(i!==null&&i!==e){if(ge++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=ge;if(t!==null)for(const g of t)g.rv=ge;D!==null&&(r===null?r=D:r.push(...D))}return(e.f&te)!==0&&(e.f^=te),h}catch(g){return Ht(g)}finally{e.f^=et,C=t,P=n,D=r,p=i,L=s,xe(l),H=a,we=f}}function Gr(e,t){let n=t.reactions;if(n!==null){var r=Bn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&E)!==0&&(C===null||!be.call(C,t))){var s=t;(s.f&q)!==0&&(s.f^=q,s.f&=~he),it(s),Ar(s),qe(s,0)}}function qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Gr(e,n[r])}function Te(e){var t=e.f;if((t&j)===0){x(e,S);var n=m,r=Ke;m=e,Ke=!0;try{(t&(X|Rt))!==0?Hr(e):_t(e),cn(e);var i=wn(e);e.teardown=typeof i=="function"?i:null,e.wv=_n;var s;Fn&&dr&&(e.f&O)!==0&&e.deps}finally{Ke=r,m=n}}}function F(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!H){var r=m!==null&&(m.f&j)!==0;if(!r&&(L===null||!be.call(L,e))){var i=p.deps;if((p.f&et)!==0)e.rv<ge&&(e.rv=ge,C===null&&i!==null&&i[P]===e?P++:C===null?C=[e]:C.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:be.call(s,p)||s.push(p)}}}if(fe&&le.has(e))return le.get(e);if(n){var l=e;if(fe){var a=l.v;return((l.f&S)===0&&l.reactions!==null||bn(l))&&(a=ft(l)),le.set(l,a),a}var f=(l.f&q)===0&&!H&&p!==null&&(Ke||(p.f&q)!==0),o=(l.f&ee)===0;Pe(l)&&(f&&(l.f|=q),Qt(l)),f&&!o&&(en(l),yn(l))}if(B?.has(e))return B.get(e);if((e.f&te)!==0)throw e.v;return e.v}function yn(e){if(e.f|=q,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&q)===0&&(en(t),yn(t))}function bn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(le.has(t)||(t.f&E)!==0&&bn(t))return!0;return!1}function $n(e){var t=H;try{return H=!0,e()}finally{H=t}}const We=Symbol("events"),Kr=new Set,kn=new Set;function Wr(e,t,n,r={}){function i(s){if(r.capture||mt.call(t,s),!s.cancelBubble)return dt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ve(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function pt(e,t,n,r,i){var s={capture:r,passive:i},l=Wr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&on(()=>{t.removeEventListener(e,l,s)})}let xn=null;function mt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;xn=e;var l=0,a=xn===e&&e[We];if(a){var f=i.indexOf(a);if(f!==-1&&(t===document||t===window)){e[We]=t;return}var o=i.indexOf(t);if(o===-1)return;f<=o&&(l=f)}if(s=i[l]||e.target,s!==t){Me(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,h=m;R(null),M(null);try{for(var c,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[We]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(w){c?d.push(w):c=w}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let w of d)queueMicrotask(()=>{throw w});throw c}}finally{e[We]=t,delete e.currentTarget,R(u),M(h)}}}const Xr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Zr(e){return Xr?.createHTML(e)??e}function Qr(e){var t=ht("template");return t.innerHTML=Zr(e.replaceAll("<!>","<!---->")),t.content}function gt(e,t){var n=m;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ei(e,t){var n=(t&Dn)!==0,r,i=!e.startsWith("<!>");return()=>{if($)return gt(k,null),k;r===void 0&&(r=Qr(i?e:"<!>"+e),r=Ve(r));var s=n||sn?document.importNode(r,!0):r.cloneNode(!0);return gt(s,s),s}}function En(e,t){if($){var n=m;((n.f&ee)===0||n.nodes.end===null)&&(n.nodes.end=k),Mt();return}e!==null&&e.before(t)}const ti=["touchstart","touchmove"];function ni(e){return ti.includes(e)}function Sn(e,t){return Tn(e,t)}function ri(e,t){ct(),t.intro=t.intro??!1;const n=t.target,r=$,i=k;try{for(var s=Ve(n);s&&(s.nodeType!==nt||s.data!==kt);)s=oe(s);if(!s)throw Ae;ke(!0),ne(s);const l=Tn(e,{...t,anchor:s});return ke(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Ae&&console.warn("Failed to hydrate: ",l),t.recover===!1&&rr(),ct(),Pr(n),ke(!1),Sn(e,t)}finally{ke(r),ne(i)}}const Xe=new Map;function Tn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:a}){ct();var f=void 0,o=Fr(()=>{var u=n??t.appendChild(ze());br(u,{pending:()=>{}},d=>{Ft({});var v=I;if(s&&(v.c=s),i&&(r.$$events=i),$&&gt(d,null),f=e(d,r)||{},$&&(m.nodes.end=k,k===null||k.nodeType!==nt||k.data!==St))throw rt(),Ae;jt()},a);var h=new Set,c=d=>{for(var v=0;v<d.length;v++){var g=d[v];if(!h.has(g)){h.add(g);var w=ni(g);for(const _ of[t,document]){var A=Xe.get(_);A===void 0&&(A=new Map,Xe.set(_,A));var b=A.get(g);b===void 0?(_.addEventListener(g,mt,{passive:w}),A.set(g,1)):A.set(g,b+1)}}}};return c(Un(Kr)),kn.add(c),()=>{for(var d of h)for(const w of[t,document]){var v=Xe.get(w),g=v.get(d);--g==0?(w.removeEventListener(d,mt),v.delete(d),v.size===0&&Xe.delete(w)):v.set(d,g)}kn.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return wt.set(f,o),f}let wt=new WeakMap;function ii(e,t){const n=wt.get(e);return n?(wt.delete(e),n(t)):Promise.resolve()}function si(e,t){jr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=ht("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function li(e,t,n){var r=""+e;return r}function Nn(e,t,n,r,i,s){var l=e.__className;if($||l!==n||l===void 0){var a=li(n);(!$||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=n}return s}const ai=Symbol("is custom element"),oi=Symbol("is html"),fi=Xn?"link":"LINK";function ui(e,t,n,r){var i=ci(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===fi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Wn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&An(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ye(e,t,n){var r=p,i=m;let s=$;$&&ke(!1),R(null),M(null);try{t!=="style"&&(yt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?An(e).includes(t):n&&typeof n=="object")?e[t]=n:ui(e,t,n==null?n:String(n))}finally{R(r),M(i),s&&ke(!0)}}function ci(e){return e.__attributes??={[ai]:e.nodeName.includes("-"),[oi]:e.namespaceURI===Tt}}var yt=new Map;function An(e){var t=e.getAttribute("is")||e.nodeName,n=yt.get(t);if(n)return n;yt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Hn(i);for(var l in r)r[l].set&&n.push(l);i=Nt(i)}return n}function Ne(e,t,n,r){var i=(n&Mn)!==0,s=(n&Ln)!==0,l=r,a=!0,f=()=>(a&&(a=!1,l=s?$n(r):r),l);let o;if(i){var u=Fe in e||qt in e;o=ue(e,t)?.set??(u&&t in e?b=>e[t]=b:void 0)}var h,c=!1;i?[h,c]=pr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),o&&(ir(),o(h)));var d;if(d=()=>{var b=e[t];return b===void 0?f():(a=!0,b)},(n&In)===0)return d;if(o){var v=e.$$legacy;return(function(b,_){return arguments.length>0?((!_||v||c)&&o(_?d():b),b):d()})}var g=!1,w=((n&qn)!==0?ot:Sr)(()=>(g=!1,d()));i&&F(w);var A=m;return(function(b,_){if(arguments.length>0){const W=_?F(w):i?Se(b):b;return K(w,W),g=!0,l!==void 0&&(l=W),b}return fe&&g||(A.f&j)!==0?w.v:F(w)})}function hi(e){return new di(e)}class di{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var a=Or(l,!1,!1);return n.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return F(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===qt?!0:(F(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return K(n.get(l)??r(l,a),a),Reflect.set(s,l,a)}});this.#n=(t.hydrate?ri:Sn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&_e(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Me(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ii(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let On;typeof HTMLElement=="function"&&(On=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=ht("slot");r!=="default"&&(s.name=r),En(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=vi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Ze(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=hi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Dr(()=>{un(()=>{this.$$r=!0;for(const r of Ie(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ze(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ze(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 Ie(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ze(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function vi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function _i(e,t,n,r,i,s){let l=class extends On{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ie(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ie(t).forEach(a=>{Me(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(f){f=Ze(a,f,t),this.$$d[a]=f;var o=this.$$c;if(o){var u=ue(o,a)?.get;u?o[a]=f:o.$set({[a]:f})}}})}),r.forEach(a=>{Me(l.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=l,l}const Rn={version:"0.66.6"};function Cn(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 n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var pi=ei('<div class="container svelte-sykhqk"><div class="row svelte-sykhqk"><div class="col-7 svelte-sykhqk" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-sykhqk" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>',2);const mi={hash:"svelte-sykhqk",code:`@charset "UTF-8";
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,ee=4096,te=8192,ne=16384,re=32768,ie=1<<25,ae=65536,oe=1<<19,se=1<<20,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var S=!1;function ke(e){S=e}var C;function w(e){if(e===null)throw De(),t;return C=e}function Ae(){return w(R(C))}function je(e){if(S){if(R(C)!==null)throw De(),t;C=e}}function Me(e=1){if(S){for(var t=e,n=C;t--;)n=R(n);C=n}}function Ne(e=!0){for(var t=0,n=C;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,T=null;function ze(e){T=e}function Be(e,t=!1,n){T={p:T,i:!1,c:null,e:null,s:e,x:null,r:q,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=T,n=t.e;if(n!==null){t.e=null;for(var r of n)an(r)}return e!==void 0&&(t.x=e),t.i=!0,T=t.p,e??{}}function He(){return!Re||T!==null&&T.l===null}var E=[];function Ue(){var e=E;E=[],_(e)}function D(e){if(E.length===0&&!et){var t=E;queueMicrotask(()=>{t===E&&Ue()})}E.push(e)}function We(){for(;E.length>0;)Ue()}function Ge(e){var t=q;if(t===null)return W.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;O(e,t)}function O(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ke=~(b|ee|y);function k(e,t){e.f=e.f&Ke|t}function qe(e){e.f&512||e.deps===null?k(e,y):k(e,ee)}function Je(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Je(t.deps))}function Ye(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Je(e.deps),k(e,y)}var Xe=!1,Ze=!1;function Qe(e){var t=Ze;try{return Ze=!1,[e(),Ze]}finally{Ze=t}}var A=new Set,j=null,M=null,$e=null,et=!1,tt=!1,nt=null,rt=null,it=0,at=1,ot=class e{id=at++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)k(n,b),this.schedule(n);for(n of t.m)k(n,ee),this.schedule(n)}}#p(){if(it++>1e3&&(A.delete(this),st()),!this.#d()){for(let e of this.#o)this.#s.delete(e),k(e,b),this.schedule(e);for(let e of this.#s)k(e,ee),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=nt=[],r=[],i=rt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw pt(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(nt=null,rt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ft(e,t)}else{this.#n.size===0&&A.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),ct(r),ct(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(A.add(o),o.#p()),A.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):An(r)&&(i&16&&this.#s.add(r),Fn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ye(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{tt=!0,j=this,this.#p()}finally{it=0,$e=null,nt=null,rt=null,tt=!1,j=null,M=null,F.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),A.delete(this)}#g(){for(let c of A){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)lt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of A)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,D(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(j===null){let t=j=new e;tt||(A.add(j),et||D(()=>{j===t&&t.flush()}))}return j}apply(){if(!Le||!this.is_fork&&A.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of A)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)M.has(e)||M.set(e,t)}}schedule(e){if($e=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt!==null&&t===q&&(Le||(W===null||!(W.f&2))&&!Xe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function N(e){var t=et;et=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(We(),j===null)return n;j.flush()}}finally{et=t}}function st(){try{be()}catch(e){O(e,$e)}}var P=null;function ct(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&An(r)&&(P=new Set,Fn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&gn(r),P?.size>0)){F.clear();for(let e of P){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)P.has(n)&&(P.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Fn(n)}}P.clear()}}P=null}}function lt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?lt(i,t,n,r):e&4194320&&!(e&2048)&&ut(i,t,r)&&(k(i,b),dt(i))}}function ut(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ut(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function dt(e){j.schedule(e)}function ft(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),k(e,y);for(var n=e.first;n!==null;)ft(n,t),n=n.next}}function pt(e){k(e,y);for(var t=e.first;t!==null;)pt(t),t=t.next}function mt(e){let t=0,n=Nt(0),r;return()=>{tn()&&($(n),un(()=>(t===0&&(r=Rn(()=>e(()=>Lt(n)))),t+=1,()=>{D(()=>{--t,t===0&&(r?.(),r=void 0,Lt(n))})})))}}var ht=ae|oe;function gt(e,t,n,r){new _t(e,t,n,r)}var _t=class{parent;is_pending=!1;transform_error;#e;#t=S?C:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=mt(()=>(this.#m=Nt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=dn(()=>{if(S){let e=this.#t;Ae();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},ht),S&&(this.#e=C)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),D(()=>{var e=this.#c=document.createDocumentFragment(),t=Gt();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,_n(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();yn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ye(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=T;J(this.#i),K(this.#i),ze(this.#i.ctx);try{return ot.ensure(),e()}catch(e){return Ge(e),null}finally{J(t),K(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&_n(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,D(()=>{this.#d=!1,this.#m&&Ft(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),S&&(w(this.#t),Me(),w(Ne()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&_n(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){O(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return O(e,this.#i.parent),null}}))};D(()=>{var t;try{t=this.transform_error(e)}catch(e){O(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>O(e,this.#i&&this.#i.parent)):o(t)})}};function vt(e,t,n,r){let i=He()?St:wt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=yt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||O(e,o)}bt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=xt();function d(){Promise.all(n.map(e=>Ct(e))).then(e=>l([...t.map(i),...e])).catch(e=>O(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),bt()}):d()}function yt(){var e=q,t=W,n=T,r=j;return function(i=!0){J(e),K(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function bt(e=!0){J(null),K(null),ze(null),e&&j?.deactivate()}function xt(){var e=q,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function St(e){var t=2|b,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=oe),{ctx:T,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function Ct(e,t,r){let i=q;i===null&&ge();var a=void 0,o=Nt(n),s=!W,c=new Map;return ln(()=>{var t=q,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(bt)}catch(e){n.reject(e),bt()}var r=j;if(s){if(t.f&32768)var l=xt();if(i.b.is_rendered())c.get(r)?.reject(x),c.delete(r);else{for(let e of c.values())e.reject(x);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(r.activate(),n)o.f|=de,Ft(o,n);else{o.f&8388608&&(o.f^=de),Ft(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(x)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),nn(()=>{for(let e of c.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function wt(e){let t=St(e);return t.equals=Ie,t}function Tt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Et(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Dt(e){var t,n=q;J(Et(e));try{e.f&=~ce,Tt(e),t=Mn(e)}finally{J(n)}return t}function Ot(e){var t=e.v,n=Dt(e);if(!e.equals(n)&&(e.wv=kn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){k(e,y);return}U||(M===null?qe(e):(tn()||j?.is_fork)&&M.set(e,n))}function kt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=g,t.ac=null,Pn(t,0),pn(t))}function At(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Fn(t)}var jt=new Set,F=new Map,Mt=!1;function Nt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function I(e,t){let n=Nt(e,t);return Cn(n),n}function Pt(e,t=!1,n=!0){let r=Nt(e);return t||(r.equals=Ie),Re&&n&&T!==null&&T.l!==null&&(T.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&He()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&Te(),Ft(e,n?zt(t):t,rt)}function Ft(e,t,n=null){if(!e.equals(t)){var r=e.v;U?F.set(e,t):F.set(e,r),e.v=t;var i=ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Dt(t),M===null&&qe(t)}e.wv=kn(),Rt(e,b,n),He()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?wn([e]):Q.push(e)),!i.is_fork&&jt.size>0&&!Mt&&It()}return t}function It(){Mt=!1;for(let e of jt)e.f&1024&&k(e,ee),An(e)&&Fn(e);jt.clear()}function Lt(e){L(e,e.v+1)}function Rt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&b)===0;if(l&&k(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=ce),Rt(u,ee,n))}else if(l){var d=s;c&16&&P!==null&&P.add(d),n===null?dt(d):n.push(d)}}}}function zt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=I(0),s=null,c=Dn,l=e=>{if(Dn===c)return e();var t=W,n=Dn;K(null),On(c);var r=e();return K(t),On(n),r};return a&&r.set(`length`,I(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=I(n.value,s);return r.set(t,e),e}):L(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>I(n,s));r.set(t,e),Lt(o)}}else L(i,n),Lt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>I(zt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>I(a?zt(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>I(n,s)),r.set(p+``,m)):L(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>I(void 0,s)),L(d,zt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>zt(i));L(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&L(_,v+1)}Lt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Bt,Vt,Ht,Ut;function Wt(){if(Bt===void 0){Bt=window,Vt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ht=u(t,`firstChild`).get,Ut=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function Gt(e=``){return document.createTextNode(e)}function Kt(e){return Ht.call(e)}function R(e){return Ut.call(e)}function qt(e,t){if(!S)return Kt(e);var n=Kt(C);if(n===null)n=C.appendChild(Gt());else if(t&&n.nodeType!==3){var r=Gt();return n?.before(r),w(r),r}return t&&Zt(n),w(n),n}function Jt(e,t=1,n=!1){let r=S?C:e;for(var i;t--;)i=r,r=R(r);if(!S)return r;if(n){if(r?.nodeType!==3){var a=Gt();return r===null?i?.after(a):r.before(a),w(a),a}Zt(r)}return w(r),r}function Yt(e){e.textContent=``}function Xt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Zt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Qt(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function $t(e){q===null&&(W===null&&ye(e),ve()),U&&_e(e)}function en(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function z(e,t){var n=q;n!==null&&n.f&8192&&(e|=te);var r={ctx:T,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)nt===null?ot.ensure().schedule(r):nt.push(r);else if(t!==null){try{Fn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ae))}if(i!==null&&(i.parent=n,n!==null&&en(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function tn(){return W!==null&&!G}function nn(e){let t=z(8,null);return k(t,y),t.teardown=e,t}function rn(e){$t(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=T;(n.e??=[]).push(e)}else return an(e)}function an(e){return z(4|se,e)}function on(e){ot.ensure();let t=z(64|oe,e);return()=>{H(t)}}function sn(e){ot.ensure();let t=z(64|oe,e);return(e={})=>new Promise(n=>{e.outro?_n(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function cn(e){return z(4,e)}function ln(e){return z(ue|oe,e)}function un(e,t=0){return z(8|t,e)}function B(e,t=[],n=[],r=[]){vt(r,t,n,t=>{z(8,()=>e(...t.map($)))})}function dn(e,t=0){return z(16|t,e)}function V(e){return z(32|oe,e)}function fn(e){var t=e.teardown;if(t!==null){let e=U,n=W;Sn(!0),K(null);try{t.call(null)}finally{Sn(e),K(n)}}}function pn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Qt(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function mn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(hn(e.nodes.start,e.nodes.end),n=!0),k(e,ie),pn(e,t&&!n),Pn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();fn(e),e.f^=ie,e.f|=ne;var i=e.parent;i!==null&&i.first!==null&&gn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function hn(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function gn(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 _n(e,t,n=!0){var r=[];vn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function vn(e,t,n){if(!(e.f&8192)){e.f^=te;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;vn(i,t,o?n:!1),i=a}}}function yn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var bn=null,xn=!1,U=!1;function Sn(e){U=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function Cn(e){W!==null&&(!Le||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function wn(e){Q=e}var Tn=1,En=0,Dn=En;function On(e){Dn=e}function kn(){return++Tn}function An(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(An(a)&&Ot(a),a.wv>e.wv)return!0}t&512&&M===null&&k(e,y)}return!1}function jn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?jn(a,t,!1):t===a&&(n?k(a,b):a.f&1024&&k(a,ee),dt(a))}}function Mn(e){var t=X,n=Z,r=Q,i=W,a=Y,o=T,s=G,c=Dn,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,ze(e.ctx),G=!1,Dn=++En,e.ac!==null&&(Qt(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=re;var f=e.deps,p=j?.is_fork;if(X!==null){var m;if(p||Pn(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(tn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Pn(e,Z),f.length=Z);if(He()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)jn(Q[m],e);if(i!==null&&i!==e){if(En++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=En;if(t!==null)for(let e of t)e.rv=En;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=de),d}catch(e){return Ge(e)}finally{e.f^=le,X=t,Z=n,Q=r,W=i,Y=a,ze(o),G=s,Dn=c}}function Nn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),qe(s),kt(s),Pn(s,0)}}function Pn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Nn(e,n[r])}function Fn(e){var t=e.f;if(!(t&16384)){k(e,y);var n=q,r=xn;q=e,xn=!0;try{t&16777232?mn(e):pn(e),fn(e);var i=Mn(e);e.teardown=typeof i==`function`?i:null,e.wv=Tn}finally{xn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(bn?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<En&&(e.rv=En,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(U&&F.has(e))return F.get(e);if(t){var i=e;if(U){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Ln(i))&&(a=Dt(i)),F.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(xn||(W.f&512)!=0),c=(i.f&re)===0;An(i)&&(s&&(i.f|=512),Ot(i)),s&&!c&&(At(i),In(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function In(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(At(t),In(t))}function Ln(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(F.has(t)||t.f&2&&Ln(t))return!0;return!1}function Rn(e){var t=G;try{return G=!0,e()}finally{G=t}}var zn=Symbol(`events`),Bn=new Set,Vn=new Set;function Hn(e,t,n,r={}){function i(e){if(r.capture||Gn.call(t,e),!e.cancelBubble)return Qt(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?D(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Un(e,t,n,r,i){var a={capture:r,passive:i},o=Hn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&nn(()=>{t.removeEventListener(e,o,a)})}var Wn=null;function Gn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Wn=e;var o=0,s=Wn===e&&e[zn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[zn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[zn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[zn]=t,delete e.currentTarget,K(d),J(f)}}}var Kn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function qn(e){return Kn?.createHTML(e)??e}function Jn(e){var t=Xt(`template`);return t.innerHTML=qn(e.replaceAll(`<!>`,`<!---->`)),t.content}function Yn(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Xn(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(S)return Yn(C,null),C;i===void 0&&(i=Jn(a?e:`<!>`+e),n||(i=Kt(i)));var t=r||Vt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Kt(t),s=t.lastChild;Yn(o,s)}else Yn(t,t);return t}}function Zn(e,t){if(S){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=C),Ae();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var Qn=[`touchstart`,`touchmove`];function $n(e){return Qn.includes(e)}function er(e,t){return rr(e,t)}function tr(e,n){Wt(),n.intro=n.intro??!1;let r=n.target,i=S,a=C;try{for(var o=Kt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=R(o);if(!o)throw t;ke(!0),w(o);let i=rr(e,{...n,anchor:o});return ke(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Wt(),Yt(r),ke(!1),er(e,n)}finally{ke(i),w(a)}}var nr=new Map;function rr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Wt();var u=void 0,d=sn(()=>{var c=r??n.appendChild(Gt());gt(c,{pending:()=>{}},n=>{Be({});var r=T;if(o&&(r.c=o),a&&(i.$$events=a),S&&Yn(n,null),u=e(n,i)||{},S&&(q.nodes.end=C,C===null||C.nodeType!==8||C.data!==`]`))throw De(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=$n(r);for(let e of[n,document]){var a=nr.get(e);a===void 0&&(a=new Map,nr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Gn,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Bn)),Vn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=nr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,Gn),t.delete(e),t.size===0&&nr.delete(r)):t.set(e,i)}Vn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return ir.set(u,d),u}var ir=new WeakMap;function ar(e,t){let n=ir.get(e);return n?(ir.delete(e),n(t)):Promise.resolve()}function or(e,t){cn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Xt(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var sr=[...`
3
+ \r\f\xA0\v`];function cr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||sr.includes(r[o-1]))&&(s===r.length||sr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function lr(e,t,n,r,i,a){var o=e.__className;if(S||o!==n||o===void 0){var s=cr(n,r,a);(!S||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var ur=Symbol(`is custom element`),dr=Symbol(`is html`),fr=he?`link`:`LINK`;function pr(e,t,n,r){var i=hr(e);S&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===fr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&_r(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function mr(e,t,n){var r=W,i=q;let a=S;S&&ke(!1),K(null),J(null);try{t!==`style`&&(gr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?_r(e).includes(t):n&&typeof n==`object`)?e[t]=n:pr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&ke(!0)}}function hr(e){return e.__attributes??={[ur]:e.nodeName.includes(`-`),[dr]:e.namespaceURI===r}}var gr=new Map;function _r(e){var t=e.getAttribute(`is`)||e.nodeName,n=gr.get(t);if(n)return n;gr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function vr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Rn(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Qe(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?St:wt)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?zt(e):e;return L(v,n),_=!0,s!==void 0&&(s=n),e}return U&&_||y.f&16384?v.v:$(v)})}function yr(e){return new br(e)}var br=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Pt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?tr:er)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&N(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{ar(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},xr;typeof HTMLElement==`function`&&(xr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=Xt(`slot`);e!==`default`&&(n.name=e),Zn(t,n)}}let t={},n=Cr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Sr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=yr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=on(()=>{un(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Sr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Sr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Sr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Cr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function wr(e,t,n,r,i,a){let o=class extends xr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Sr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Tr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.8`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Er(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var Dr=Xn(`<div class="container svelte-sykhqk"><div class="row svelte-sykhqk"><div class="col-7 svelte-sykhqk" style="padding-right:30px"><hb-checkout></hb-checkout></div> <div class="col-5 svelte-sykhqk" style="padding-left:30px"><hb-checkout-shopping-cart></hb-checkout-shopping-cart></div></div></div>`,2),Or={hash:`svelte-sykhqk`,code:`@charset "UTF-8";
3
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");
4
5
  /*!
5
6
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
@@ -84,5 +85,5 @@
84
85
  @media (min-width: 1200px) {
85
86
  }
86
87
  @media print {
87
- }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}hb-checkout-shopping-cart.svelte-sykhqk {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function Pn(e,t){Ft(t,!0),si(e,mi);const n={merchantName:"merchant",countryCode:"IT",total:0,currencyCode:"EUR",items:[]};let r=Ne(t,"id",7,""),i=Ne(t,"shipments",23,()=>[]),s=Ne(t,"user",7),l=Ne(t,"payment",7,n),a=Ne(t,"gateways",23,()=>[]),f=Ne(t,"completed",7,"no");Lr(()=>{typeof i()=="string"&&i(JSON.parse(i())||[]),typeof a()=="string"&&a(JSON.parse(a())||[]),typeof l()=="string"&&l(JSON.parse(l())),l()&&(i().find(N=>N.selected)||i().find(N=>N.standard))&&(l().shipmentFee=(i()?.find(N=>N.selected)||i().find(N=>N.standard))?.price);let _=l()?.shipmentFee||0;for(const N of l().items)_+=N.unitaryPrice*(N.quantity||1)+Math.round(N.taxPercentage*.01*N.unitaryPrice*(N.quantity||1)*100)/100;let W;switch(l()?.countryCode?.toUpperCase()){default:W="EUR"}l().total=Math.round(_*100)/100,l().currencyCode=W});function o(_,W){t.$$host.dispatchEvent(new CustomEvent(_,{detail:W}))}Cn({repoName:"@htmlbricks/hb-checkout-shopping-cart",version:Rn.version}),Cn({repoName:"@htmlbricks/hb-checkout",version:Rn.version});function u(_){const W=i().findIndex(bt=>bt.id===_.id),N=i()[W];i().forEach(bt=>bt.selected=!1),N.selected=!0,l().shipmentFee=N.price,console.log("sss",N,_)}function h(_){_.completed?(f("yes"),o("paymentCompleted",_)):console.warn(_)}var c={get id(){return r()},set id(_=""){r(_),_e()},get shipments(){return i()},set shipments(_=[]){i(_),_e()},get user(){return s()},set user(_){s(_),_e()},get payment(){return l()},set payment(_=n){l(_),_e()},get gateways(){return a()},set gateways(_=[]){a(_),_e()},get completed(){return f()},set completed(_="no"){f(_),_e()}},d=pi(),v=Je(d),g=Je(v),w=Je(g);pe(()=>ye(w,"completed",f())),pe(()=>ye(w,"user",s())),pe(()=>ye(w,"shipments",JSON.stringify(i()))),pe(()=>ye(w,"gateways",JSON.stringify(a()))),pe(()=>ye(w,"payment",JSON.stringify(l()))),Nn(w,1,"svelte-sykhqk"),je(g);var A=Cr(g,2),b=Je(A);return pe(()=>ye(b,"completed",f())),pe(()=>ye(b,"payment",JSON.stringify(l()))),Nn(b,1,"svelte-sykhqk"),je(A),je(v),je(d),pt("paymentCompleted",w,_=>h(_.detail)),pt("saveUser",w,_=>o("saveUser",_.detail)),pt("saveShipment",w,_=>u(_.detail)),En(e,d),jt(c)}customElements.define("hb-page-checkout",_i(Pn,{id:{},shipments:{},user:{},payment:{},gateways:{},completed:{}},[],[],{mode:"open"})),$t.Component=Pn,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})})(this["page-checkout"]=this["page-checkout"]||{});
88
- //# sourceMappingURL=main.iife.js.map
88
+ }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}hb-checkout-shopping-cart.svelte-sykhqk {border:var(--hb-checkout-border);--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);}`};function kr(e,t){Be(t,!0),or(e,Or);let n={merchantName:`merchant`,countryCode:`IT`,total:0,currencyCode:`EUR`,items:[]},r=vr(t,`id`,7,``),i=vr(t,`shipments`,23,()=>[]),a=vr(t,`user`,7),o=vr(t,`payment`,7,n),s=vr(t,`gateways`,23,()=>[]),c=vr(t,`completed`,7,`no`);rn(()=>{typeof i()==`string`&&i(JSON.parse(i())||[]),typeof s()==`string`&&s(JSON.parse(s())||[]),typeof o()==`string`&&o(JSON.parse(o())),o()&&(i().find(e=>e.selected)||i().find(e=>e.standard))&&(o().shipmentFee=(i()?.find(e=>e.selected)||i().find(e=>e.standard))?.price);let e=o()?.shipmentFee||0;for(let t of o().items)e+=t.unitaryPrice*(t.quantity||1)+Math.round(t.taxPercentage*.01*t.unitaryPrice*(t.quantity||1)*100)/100;let t;switch(o()?.countryCode?.toUpperCase()){default:t=`EUR`}o().total=Math.round(e*100)/100,o().currencyCode=t});function l(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}Er({repoName:`@htmlbricks/hb-checkout-shopping-cart`,version:Tr.version}),Er({repoName:`@htmlbricks/hb-checkout`,version:Tr.version});function u(e){let t=i().findIndex(t=>t.id===e.id),n=i()[t];i().forEach(e=>e.selected=!1),n.selected=!0,o().shipmentFee=n.price,console.log(`sss`,n,e)}function d(e){e.completed?(c(`yes`),l(`paymentCompleted`,e)):console.warn(e)}var f={get id(){return r()},set id(e=``){r(e),N()},get shipments(){return i()},set shipments(e=[]){i(e),N()},get user(){return a()},set user(e){a(e),N()},get payment(){return o()},set payment(e=n){o(e),N()},get gateways(){return s()},set gateways(e=[]){s(e),N()},get completed(){return c()},set completed(e=`no`){c(e),N()}},p=Dr(),m=qt(p),h=qt(m),g=qt(h);B(()=>mr(g,`completed`,c())),B(()=>mr(g,`user`,a())),B(()=>mr(g,`shipments`,JSON.stringify(i()))),B(()=>mr(g,`gateways`,JSON.stringify(s()))),B(()=>mr(g,`payment`,JSON.stringify(o()))),lr(g,1,`svelte-sykhqk`),je(h);var _=Jt(h,2),v=qt(_);return B(()=>mr(v,`completed`,c())),B(()=>mr(v,`payment`,JSON.stringify(o()))),lr(v,1,`svelte-sykhqk`),je(_),je(m),je(p),Un(`paymentCompleted`,g,e=>d(e.detail)),Un(`saveUser`,g,e=>l(`saveUser`,e.detail)),Un(`saveShipment`,g,e=>u(e.detail)),Zn(e,p),Ve(f)}customElements.define(`hb-page-checkout`,wr(kr,{id:{},shipments:{},user:{},payment:{},gateways:{},completed:{}},[],[],{mode:`open`})),e.Component=kr})(this[`page-checkout`]=this[`page-checkout`]||{});
89
+ //# sourceMappingURL=main.iife.js.map