@htmlbricks/hb-payment-paypal 0.66.0 → 0.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Ze){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const nn=2,Qe="[",Xe="[!",et="]",we={},w=Symbol(),Me=!1;var rn=Array.isArray,sn=Array.prototype.indexOf,ln=Array.from,be=Object.keys,ye=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,fn=Object.prototype,on=Array.prototype,un=Object.getPrototypeOf,tt=Object.isExtensible;function an(e){for(var t=0;t<e.length;t++)e[t]()}function cn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const m=2,Be=4,dn=8,L=16,H=32,V=64,ge=128,N=512,$=1024,x=2048,M=4096,W=8192,z=16384,$e=32768,Ee=65536,nt=1<<17,rt=1<<18,se=1<<19,hn=1<<20,Q=32768,qe=1<<21,it=1<<22,ue=1<<23,Ue=Symbol("$state"),_n=Symbol("legacy props"),st=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xe=8;function vn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function pn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function mn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function wn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function bn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function yn(){throw new Error("https://svelte.dev/e/hydration_failed")}function gn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function En(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function lt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Sn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Se(e){j=e}let b;function ae(e){if(e===null)throw lt(),we;return b=e}function ft(){return ae(fe(b))}function kn(e=1){if(j){for(var t=e,n=b;t--;)n=fe(n);b=n}}function Tn(e=!0){for(var t=0,n=b;;){if(n.nodeType===xe){var r=n.data;if(r===et){if(t===0)return n;t-=1}else(r===Qe||r===Xe)&&(t+=1)}var s=fe(n);e&&n.remove(),n=s}}function ot(e){return e===this.v}function On(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Rn(e){return!On(e,this.v)}let An=!1,k=null;function ke(e){k=e}function ut(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:null}}function at(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)Ct(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function ct(){return!0}let X=[];function dt(){var e=X;X=[],an(e)}function Ye(e){if(X.length===0&&!ce){var t=X;queueMicrotask(()=>{t===X&&dt()})}X.push(e)}function Cn(){for(;X.length>0;)dt()}function ht(e){var t=v;if(t===null)return _.f|=ue,e;if((t.f&$e)===0){if((t.f&ge)===0)throw e;t.b.error(e)}else Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&ge)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Oe=new Set;let y=null,T=null,O=[],Re=null,He=!1,ce=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#o=0;#s=0;#u=null;#l=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){O=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#n(r,n);this.is_fork||this.#a(),this.is_deferred()?(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects)):(y=null,vt(n.render_effects),vt(n.effects),this.#u?.resolve()),T=null}#n(t,n){t.f^=$;for(var r=t.first;r!==null;){var s=r.f,i=(s&(H|V))!==0,l=i&&(s&$)!==0,f=l||(s&W)!==0||this.skipped_effects.has(r);if((r.f&ge)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!f&&r.fn!==null){i?r.f^=$:(s&Be)!==0?n.effects.push(r):pe(r)&&((r.f&L)!==0&&n.block_effects.push(r),me(r));var o=r.first;if(o!==null){r=o;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#r(n.effects),this.#r(n.render_effects),this.#r(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#r(t){for(const n of t)((n.f&x)!==0?this.#l:this.#i).push(n),this.#f(n.deps),E(n,$)}#f(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&Q)===0||(n.f^=Q,this.#f(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&ue)===0&&(this.current.set(t,t.v),T?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,T=null)}flush(){if(this.activate(),O.length>0){if(_t(),y!==null&&y!==this)return}else this.#o===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#a(){if(this.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#o===0&&this.#c()}#c(){if(Oe.size>1){this.previous.clear();var t=T,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Oe){if(i===this){n=!1;continue}const l=[];for(const[o,u]of this.current){if(i.current.has(o))if(n&&u!==i.current.get(o))i.current.set(o,u);else continue;l.push(o)}if(l.length===0)continue;const f=[...i.current.keys()].filter(o=>!this.current.has(o));if(f.length>0){var s=O;O=[];const o=new Set,u=new Map;for(const c of l)pt(c,f,o,u);if(O.length>0){y=i,i.apply();for(const c of O)i.#n(c,r);i.deactivate()}O=s}}y=null,T=t}this.committed=!0,Oe.delete(this)}increment(t){this.#o+=1,t&&(this.#s+=1)}decrement(t){this.#o-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#l)E(t,x),le(t);for(const t of this.#i)E(t,M),le(t);this.#l=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#u??=cn()).promise}static ensure(){if(y===null){const t=y=new P;Oe.add(y),ce||P.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ye(t)}apply(){}}function de(e){var t=ce;ce=!0;try{for(var n;;){if(Cn(),O.length===0&&(y?.flush(),O.length===0))return Re=null,n;_t()}}finally{ce=t}}function _t(){var e=G;He=!0;var t=null;try{var n=0;for(je(!0);O.length>0;){var r=P.ensure();if(n++>1e3){var s,i;Nn()}r.process(O),K.clear()}}finally{He=!1,je(e),Re=null}}function Nn(){try{bn()}catch(e){Te(e,Re)}}let B=null;function vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(z|W))===0&&pe(r)&&(B=new Set,me(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Dt(r):r.fn=null),B?.size>0)){K.clear();for(const s of B){if((s.f&(z|W))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)B.has(l)&&(B.delete(l),i.push(l)),l=l.parent;for(let f=i.length-1;f>=0;f--){const o=i[f];(o.f&(z|W))===0&&me(o)}}B.clear()}}B=null}}function pt(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&m)!==0?pt(s,t,n,r):(i&(it|L))!==0&&(i&x)===0&&mt(s,t,r)&&(E(s,x),le(s))}}function mt(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&m)!==0&&mt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function le(e){for(var t=Re=e;t.parent!==null;){t=t.parent;var n=t.f;if(He&&t===v&&(n&L)!==0&&(n&rt)===0)return;if((n&(V|H))!==0){if((n&$)===0)return;t.f^=$}}O.push(t)}function jn(e){let t=0,n=Ae(0),r;return()=>{Ce()&&(F(n),Nt(()=>(t===0&&(r=Vt(()=>e(()=>he(n)))),t+=1,()=>{Ye(()=>{t-=1,t===0&&(r?.(),r=void 0,he(n))})})))}}var Pn=Ee|se|ge;function Dn(e,t,n){new In(e,t,n)}class In{parent;#t=!1;#e;#o=j?b:null;#s;#u;#l;#i=null;#n=null;#r=null;#f=null;#a=null;#c=0;#d=0;#_=!1;#h=null;#b=jn(()=>(this.#h=Ae(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#u=r,this.parent=v.b,this.#t=!!this.#s.pending,this.#l=zn(()=>{if(v.b=this,j){const i=this.#o;ft(),i.nodeType===xe&&i.data===Xe?this.#g():this.#y()}else{var s=this.#m();try{this.#i=te(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#a?.remove()}},Pn),j&&(this.#e=b)}#y(){try{this.#i=te(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#t=!1}#g(){const t=this.#s.pending;t&&(this.#n=te(()=>t(this.#e)),P.enqueue(()=>{var n=this.#m();this.#i=this.#v(()=>(P.ensure(),te(()=>this.#u(n)))),this.#d>0?this.#p():(Ne(this.#n,()=>{this.#n=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#a=Tt(),this.#e.before(this.#a),t=this.#a),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#v(t){var n=v,r=_,s=k;Z(this.#l),R(this.#l),ke(this.#l.ctx);try{return t()}catch(i){return ht(i),null}finally{Z(n),R(r),ke(s)}}#p(){const t=this.#s.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#a),Zn(this.#i,this.#f)),this.#n===null&&(this.#n=te(()=>t(this.#e)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#n&&Ne(this.#n,()=>{this.#n=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#w(t),this.#c+=t,this.#h&&gt(this.#h,this.#c)}get_effect_pending(){return this.#b(),F(this.#h)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#_||!n&&!r)throw t;this.#i&&(D(this.#i),this.#i=null),this.#n&&(D(this.#n),this.#n=null),this.#r&&(D(this.#r),this.#r=null),j&&(ae(this.#o),kn(),ae(Tn()));var s=!1,i=!1;const l=()=>{if(s){Sn();return}s=!0,i&&xn(),P.ensure(),this.#c=0,this.#r!==null&&Ne(this.#r,()=>{this.#r=null}),this.#t=this.has_pending_snippet(),this.#i=this.#v(()=>(this.#_=!1,te(()=>this.#u(this.#e)))),this.#d>0?this.#p():this.#t=!1};var f=_;try{R(null),i=!0,n?.(t,l),i=!1}catch(o){Te(o,this.#l&&this.#l.parent)}finally{R(f)}r&&Ye(()=>{this.#r=this.#v(()=>{P.ensure(),this.#_=!0;try{return te(()=>{r(this.#e,()=>t,()=>l)})}catch(o){return Te(o,this.#l.parent),null}finally{this.#_=!1}})})}}function Fn(e){var t=m|x,n=_!==null&&(_.f&m)!==0?_:null;return v!==null&&(v.f|=se),{ctx:k,deps:null,effects:null,equals:ot,f:t,fn:e,reactions:null,rv:0,v:w,wv:0,parent:n??v,ac:null}}function wt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)D(t[n])}}function Ln(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&z)===0?t:null;t=t.parent}return null}function Ve(e){var t,n=v;Z(Ln(e));try{e.f&=~Q,wt(e),t=Ut(e)}finally{Z(n)}return t}function bt(e){var t=Ve(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=Bt()),!ne)if(T!==null)Ce()&&T.set(e,t);else{var n=(e.f&N)===0?M:$;E(e,n)}}let We=new Set;const K=new Map;let yt=!1;function Ae(e,t){var n={f:0,v:e,reactions:null,equals:ot,rv:0,wv:0};return n}function J(e,t){const n=Ae(e);return Qn(n),n}function Mn(e,t=!1,n=!0){const r=Ae(e);return t||(r.equals=Rn),r}function q(e,t,n=!1){_!==null&&(!I||(_.f&nt)!==0)&&ct()&&(_.f&(m|L|it|nt))!==0&&!U?.includes(e)&&En();let r=n?_e(t):t;return gt(e,r)}function gt(e,t){if(!e.equals(t)){var n=e.v;ne?K.set(e,t):K.set(e,n),e.v=t;var r=P.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&x)!==0&&Ve(e),E(e,(e.f&N)!==0?$:M)),e.wv=Bt(),$t(e,x),v!==null&&(v.f&$)!==0&&(v.f&(H|V))===0&&(A===null?Xn([e]):A.push(e)),!r.is_fork&&We.size>0&&!yt&&Bn()}return t}function Bn(){yt=!1;var e=G;je(!0);const t=Array.from(We);try{for(const n of t)(n.f&$)!==0&&E(n,M),pe(n)&&me(n)}finally{je(e)}We.clear()}function he(e){q(e,e.v+1)}function $t(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,f=(l&x)===0;if(f&&E(i,t),(l&m)!==0){var o=i;T?.delete(o),(l&Q)===0&&(l&N&&(i.f|=Q),$t(o,M))}else f&&((l&L)!==0&&B!==null&&B.add(i),le(i))}}function _e(e){if(typeof e!="object"||e===null||Ue in e)return e;const t=un(e);if(t!==fn&&t!==on)return e;var n=new Map,r=rn(e),s=J(0),i=re,l=f=>{if(re===i)return f();var o=_,u=re;R(null),Mt(i);var c=f();return R(o),Mt(u),c};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(f,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&gn();var c=n.get(o);return c===void 0?c=l(()=>{var h=J(u.value);return n.set(o,h),h}):q(c,u.value,!0),!0},deleteProperty(f,o){var u=n.get(o);if(u===void 0){if(o in f){const c=l(()=>J(w));n.set(o,c),he(s)}}else q(u,w),he(s);return!0},get(f,o,u){if(o===Ue)return e;var c=n.get(o),h=o in f;if(c===void 0&&(!h||ie(f,o)?.writable)&&(c=l(()=>{var a=_e(h?f[o]:w),p=J(a);return p}),n.set(o,c)),c!==void 0){var d=F(c);return d===w?void 0:d}return Reflect.get(f,o,u)},getOwnPropertyDescriptor(f,o){var u=Reflect.getOwnPropertyDescriptor(f,o);if(u&&"value"in u){var c=n.get(o);c&&(u.value=F(c))}else if(u===void 0){var h=n.get(o),d=h?.v;if(h!==void 0&&d!==w)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(f,o){if(o===Ue)return!0;var u=n.get(o),c=u!==void 0&&u.v!==w||Reflect.has(f,o);if(u!==void 0||v!==null&&(!c||ie(f,o)?.writable)){u===void 0&&(u=l(()=>{var d=c?_e(f[o]):w,a=J(d);return a}),n.set(o,u));var h=F(u);if(h===w)return!1}return c},set(f,o,u,c){var h=n.get(o),d=o in f;if(r&&o==="length")for(var a=u;a<h.v;a+=1){var p=n.get(a+"");p!==void 0?q(p,w):a in f&&(p=l(()=>J(w)),n.set(a+"",p))}if(h===void 0)(!d||ie(f,o)?.writable)&&(h=l(()=>J(void 0)),q(h,_e(u)),n.set(o,h));else{d=h.v!==w;var C=l(()=>_e(u));q(h,C)}var Y=Reflect.getOwnPropertyDescriptor(f,o);if(Y?.set&&Y.set.call(c,u),!d){if(r&&typeof o=="string"){var Le=n.get("length"),Ge=Number(o);Number.isInteger(Ge)&&Ge>=Le.v&&q(Le,Ge+1)}he(s)}return!0},ownKeys(f){F(s);var o=Reflect.ownKeys(f).filter(h=>{var d=n.get(h);return d===void 0||d.v!==w});for(var[u,c]of n)c.v!==w&&!(u in f)&&o.push(u);return o},setPrototypeOf(){$n()}})}var Et,xt,St,kt;function ze(){if(Et===void 0){Et=window,xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;St=ie(t,"firstChild").get,kt=ie(t,"nextSibling").get,tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),tt(n)&&(n.__t=void 0)}}function Tt(e=""){return document.createTextNode(e)}function Ot(e){return St.call(e)}function fe(e){return kt.call(e)}function qn(e){e.textContent=""}function Rt(e){var t=_,n=v;R(null),Z(null);try{return e()}finally{R(t),Z(n)}}function Un(e){v===null&&(_===null&&wn(),mn()),ne&&pn()}function Yn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ee(e,t,n){var r=v;r!==null&&(r.f&W)!==0&&(e|=W);var s={ctx:k,deps:null,nodes_start:null,nodes_end:null,f:e|x|N,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{me(s),s.f|=$e}catch(f){throw D(s),f}else t!==null&&le(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&se)===0&&(i=i.first,(e&L)!==0&&(e&Ee)!==0&&i!==null&&(i.f|=Ee)),i!==null&&(i.parent=r,r!==null&&Yn(i,r),_!==null&&(_.f&m)!==0&&(e&V)===0)){var l=_;(l.effects??=[]).push(i)}return s}function Ce(){return _!==null&&!I}function At(e){Un();var t=v.f,n=!_&&(t&H)!==0&&(t&$e)===0;if(n){var r=k;(r.e??=[]).push(e)}else return Ct(e)}function Ct(e){return ee(Be|hn,e,!1)}function Hn(e){P.ensure();const t=ee(V|se,e,!0);return()=>{D(t)}}function Vn(e){P.ensure();const t=ee(V|se,e,!0);return(n={})=>new Promise(r=>{n.outro?Ne(t,()=>{D(t),r(void 0)}):(D(t),r(void 0))})}function Wn(e){return ee(Be,e,!1)}function Nt(e,t=0){return ee(dn|t,e,!0)}function zn(e,t=0){var n=ee(L|t,e,!0);return n}function te(e){return ee(H|se,e,!0)}function jt(e){var t=e.teardown;if(t!==null){const n=ne,r=_;Ft(!0),R(null);try{t.call(null)}finally{Ft(n),R(r)}}}function Pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Rt(()=>{s.abort(st)});var r=n.next;(n.f&V)!==0?n.parent=null:D(n,t),n=r}}function Kn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&H)===0&&D(t),t=n}}function D(e,t=!0){var n=!1;(t||(e.f&rt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Jn(e.nodes_start,e.nodes_end),n=!0),Pt(e,t&&!n),Pe(e,0),E(e,z);var r=e.transitions;if(r!==null)for(const i of r)i.stop();jt(e);var s=e.parent;s!==null&&s.first!==null&&Dt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Jn(e,t){for(;e!==null;){var n=e===t?null:fe(e);e.remove(),e=n}}function Dt(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=[];It(e,r,!0),Gn(r,()=>{n&&D(e),t&&t()})}function Gn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function It(e,t,n){if((e.f&W)===0){if(e.f^=W,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Ee)!==0||(r.f&H)!==0&&(e.f&L)!==0;It(r,t,i?n:!1),r=s}}}function Zn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:fe(n);t.append(n),n=s}}let G=!1;function je(e){G=e}let ne=!1;function Ft(e){ne=e}let _=null,I=!1;function R(e){_=e}let v=null;function Z(e){v=e}let U=null;function Qn(e){_!==null&&(U===null?U=[e]:U.push(e))}let g=null,S=0,A=null;function Xn(e){A=e}let Lt=1,ve=0,re=ve;function Mt(e){re=e}function Bt(){return++Lt}function pe(e){var t=e.f;if((t&x)!==0)return!0;if(t&m&&(e.f&=~Q),(t&M)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(pe(i)&&bt(i),i.wv>e.wv)return!0}(t&N)!==0&&T===null&&E(e,$)}return!1}function qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!U?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&m)!==0?qt(i,t,!1):t===i&&(n?E(i,x):(i.f&$)!==0&&E(i,M),le(i))}}function Ut(e){var t=g,n=S,r=A,s=_,i=U,l=k,f=I,o=re,u=e.f;g=null,S=0,A=null,_=(u&(H|V))===0?e:null,U=null,ke(e.ctx),I=!1,re=++ve,e.ac!==null&&(Rt(()=>{e.ac.abort(st)}),e.ac=null);try{e.f|=qe;var c=e.fn,h=c(),d=e.deps;if(g!==null){var a;if(Pe(e,S),d!==null&&S>0)for(d.length=S+g.length,a=0;a<g.length;a++)d[S+a]=g[a];else e.deps=d=g;if(G&&Ce()&&(e.f&N)!==0)for(a=S;a<d.length;a++)(d[a].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Pe(e,S),d.length=S);if(ct()&&A!==null&&!I&&d!==null&&(e.f&(m|M|x))===0)for(a=0;a<A.length;a++)qt(A[a],e);return s!==null&&s!==e&&(ve++,A!==null&&(r===null?r=A:r.push(...A))),(e.f&ue)!==0&&(e.f^=ue),h}catch(p){return ht(p)}finally{e.f^=qe,g=t,S=n,A=r,_=s,U=i,ke(l),I=f,re=o}}function er(e,t){let n=t.reactions;if(n!==null){var r=sn.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&m)!==0&&(g===null||!g.includes(t))&&(E(t,M),(t.f&N)!==0&&(t.f^=N,t.f&=~Q),wt(t),Pe(t,0))}function Pe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)er(e,n[r])}function me(e){var t=e.f;if((t&z)===0){E(e,$);var n=v,r=G;v=e,G=!0;try{(t&L)!==0?Kn(e):Pt(e),jt(e);var s=Ut(e);e.teardown=typeof s=="function"?s:null,e.wv=Lt;var i;Me&&An&&(e.f&x)!==0&&e.deps}finally{G=r,v=n}}}function F(e){var t=e.f,n=(t&m)!==0;if(_!==null&&!I){var r=v!==null&&(v.f&z)!==0;if(!r&&!U?.includes(e)){var s=_.deps;if((_.f&qe)!==0)e.rv<ve&&(e.rv=ve,g===null&&s!==null&&s[S]===e?S++:g===null?g=[e]:g.includes(e)||g.push(e));else{(_.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[_]:i.includes(_)||i.push(_)}}}if(ne){if(K.has(e))return K.get(e);if(n){var l=e,f=l.v;return((l.f&$)===0&&l.reactions!==null||Ht(l))&&(f=Ve(l)),K.set(l,f),f}}else n&&!T?.has(e)&&(l=e,pe(l)&&bt(l),G&&Ce()&&(l.f&N)===0&&Yt(l));if(T?.has(e))return T.get(e);if((e.f&ue)!==0)throw e.v;return e.v}function Yt(e){if(e.deps!==null){e.f^=N;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&m)!==0&&(t.f&N)===0&&Yt(t)}}function Ht(e){if(e.v===w)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(K.has(t)||(t.f&m)!==0&&Ht(t))return!0;return!1}function Vt(e){var t=I;try{return I=!0,e()}finally{I=t}}const tr=-7169;function E(e,t){e.f=e.f&tr|t}const nr=new Set,Wt=new Set;let zt=null;function De(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;zt=e;var l=0,f=zt===e&&e.__root;if(f){var o=s.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;o<=u&&(l=o)}if(i=s[l]||e.target,i!==t){ye(e,"currentTarget",{configurable:!0,get(){return i||n}});var c=_,h=v;R(null),Z(null);try{for(var d,a=[];i!==null;){var p=i.assignedSlot||i.parentNode||i.host||null;try{var C=i["__"+r];C!=null&&(!i.disabled||e.target===i)&&C.call(i,e)}catch(Y){d?a.push(Y):d=Y}if(e.cancelBubble||p===t||p===null)break;i=p}if(d){for(let Y of a)queueMicrotask(()=>{throw Y});throw d}}finally{e.__root=t,delete e.currentTarget,R(c),Z(h)}}}function rr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ke(e,t){var n=v;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ir(e,t){var n=(t&nn)!==0,r,s=!e.startsWith("<!>");return()=>{if(j)return Ke(b,null),b;r===void 0&&(r=rr(s?e:"<!>"+e),r=Ot(r));var i=n||xt?document.importNode(r,!0):r.cloneNode(!0);return Ke(i,i),i}}function Kt(e,t){if(j){var n=v;((n.f&$e)===0||n.nodes_end===null)&&(n.nodes_end=b),ft();return}e!==null&&e.before(t)}const sr=["touchstart","touchmove"];function lr(e){return sr.includes(e)}function Jt(e,t){return Gt(e,t)}function fr(e,t){ze(),t.intro=t.intro??!1;const n=t.target,r=j,s=b;try{for(var i=Ot(n);i&&(i.nodeType!==xe||i.data!==Qe);)i=fe(i);if(!i)throw we;Se(!0),ae(i);const l=Gt(e,{...t,anchor:i});return Se(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==we&&console.warn("Failed to hydrate: ",l),t.recover===!1&&yn(),ze(),qn(n),Se(!1),Jt(e,t)}finally{Se(r),ae(s)}}const oe=new Map;function Gt(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){ze();var f=new Set,o=h=>{for(var d=0;d<h.length;d++){var a=h[d];if(!f.has(a)){f.add(a);var p=lr(a);t.addEventListener(a,De,{passive:p});var C=oe.get(a);C===void 0?(document.addEventListener(a,De,{passive:p}),oe.set(a,1)):oe.set(a,C+1)}}};o(ln(nr)),Wt.add(o);var u=void 0,c=Vn(()=>{var h=n??t.appendChild(Tt());return Dn(h,{pending:()=>{}},d=>{if(i){ut({});var a=k;a.c=i}if(s&&(r.$$events=s),j&&Ke(d,null),u=e(d,r)||{},j&&(v.nodes_end=b,b===null||b.nodeType!==xe||b.data!==et))throw lt(),we;i&&at()}),()=>{for(var d of f){t.removeEventListener(d,De);var a=oe.get(d);--a===0?(document.removeEventListener(d,De),oe.delete(d)):oe.set(d,a)}Wt.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Je.set(u,c),u}let Je=new WeakMap;function or(e,t){const n=Je.get(e);return n?(Je.delete(e),n(t)):Promise.resolve()}function ur(e){k===null&&vn(),At(()=>{const t=Vt(e);if(typeof t=="function")return t})}function ar(e,t){Wn(()=>{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 Ie(e,t,n,r){var s=r,i=!0,l=()=>(i&&(i=!1,s=r),s),f;f=e[t],f===void 0&&r!==void 0&&(f=l());var o;o=()=>{var d=e[t];return d===void 0?l():(i=!0,d)};var u=!1,c=Fn(()=>(u=!1,o())),h=v;return(function(d,a){if(arguments.length>0){const p=a?F(c):d;return q(c,p),u=!0,s!==void 0&&(s=p),d}return ne&&u||(h.f&z)!==0?c.v:F(c)})}function cr(e){return new dr(e)}class dr{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var f=Mn(l,!1,!1);return n.set(i,f),f};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return F(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===_n?!0:(F(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,f){return q(n.get(l)??r(l,f),f),Reflect.set(i,l,f)}});this.#e=(t.hydrate?fr:Jt)(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)&&de(),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(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{or(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 Zt;typeof HTMLElement=="function"&&(Zt=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),Kt(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=hr(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]=Fe(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=cr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hn(()=>{Nt(()=>{this.$$r=!0;for(const r of be(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Fe(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]=Fe(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 be(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Fe(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 hr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function _r(e,t,n,r,s,i){let l=class extends Zt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return be(t).map(f=>(t[f].attribute||f).toLowerCase())}};return be(t).forEach(f=>{ye(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(o){o=Fe(f,o,t),this.$$d[f]=o;var u=this.$$c;if(u){var c=ie(u,f)?.get;c?u[f]=o:u.$set({[f]:o})}}})}),r.forEach(f=>{ye(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}function vr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}typeof SuppressedError=="function"&&SuppressedError;function pr(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=Qt(e,t),s=n.cloneNode();if(delete s.dataset.uidAuto,Object.keys(s.dataset).length!==Object.keys(r.dataset).length)return null;var i=!0;return Object.keys(s.dataset).forEach(function(l){s.dataset[l]!==r.dataset[l]&&(i=!1)}),i?n:null}function mr(e){var t=e.url,n=e.attributes,r=e.onSuccess,s=e.onError,i=Qt(t,n);i.onerror=s,i.onload=r,document.head.insertBefore(i,document.head.firstElementChild)}function wr(e){var t=e.sdkBaseUrl,n=e.environment,r=vr(e,["sdkBaseUrl","environment"]),s=t||gr(n),i=r,l=Object.keys(i).filter(function(u){return typeof i[u]<"u"&&i[u]!==null&&i[u]!==""}).reduce(function(u,c){var h=i[c].toString();return c=br(c),c.substring(0,4)==="data"||c==="crossorigin"?u.attributes[c]=h:u.queryParams[c]=h,u},{queryParams:{},attributes:{}}),f=l.queryParams,o=l.attributes;return f["merchant-id"]&&f["merchant-id"].indexOf(",")!==-1&&(o["data-merchant-id"]=f["merchant-id"],f["merchant-id"]="*"),{url:"".concat(s,"?").concat(yr(f)),attributes:o}}function br(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function yr(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function gr(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function Qt(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function $r(e,t){if(t===void 0&&(t=Promise),en(e,t),typeof document>"u")return t.resolve(null);var n=wr(e),r=n.url,s=n.attributes,i=s["data-namespace"]||"paypal",l=Xt(i);return s["data-js-sdk-library"]||(s["data-js-sdk-library"]="paypal-js"),pr(r,s)&&l?t.resolve(l):Er({url:r,attributes:s},t).then(function(){var f=Xt(i);if(f)return f;throw new Error("The window.".concat(i," global variable is not available."))})}function Er(e,t){t===void 0&&(t=Promise),en(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(s,i){if(typeof document>"u")return s();mr({url:n,attributes:r,onSuccess:function(){return s()},onError:function(){var l=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return i(l)}})})}function Xt(e){return window[e]}function en(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var xr=ir('<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>');const Sr={hash:"svelte-d34b58",code:`@charset "UTF-8";
1
+ (function(nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const vn=2,rt="[",it="[!",st="[?",lt="]",xe={},$=Symbol(),_n="http://www.w3.org/1999/xhtml",pn=!1;var mn=Array.isArray,wn=Array.prototype.indexOf,le=Array.prototype.includes,bn=Array.from,Se=Object.keys,Te=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,yn=Object.prototype,gn=Array.prototype,$n=Object.getPrototypeOf,ot=Object.isExtensible;const En=()=>{};function xn(e){for(var t=0;t<e.length;t++)e[t]()}function Sn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const b=2,ae=4,at=8,ut=1<<24,H=16,B=32,Y=64,Fe=128,k=512,g=1024,E=2048,I=4096,z=8192,V=16384,X=32768,ft=1<<25,Oe=65536,ct=1<<17,Tn=1<<18,ue=1<<19,On=1<<20,ee=65536,Le=1<<21,dt=1<<22,pe=1<<23,Be=Symbol("$state"),kn=Symbol("legacy props"),qe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ue=8;function An(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Nn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function In(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Fn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ht(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ln(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let C=!1;function ke(e){C=e}let x;function me(e){if(e===null)throw ht(),xe;return x=e}function vt(){return me(he(x))}function Bn(e=1){if(C){for(var t=e,n=x;t--;)n=he(n);x=n}}function qn(e=!0){for(var t=0,n=x;;){if(n.nodeType===Ue){var r=n.data;if(r===lt){if(t===0)return n;t-=1}else(r===rt||r===it||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=he(n);e&&n.remove(),n=i}}function _t(e){return e===this.v}function Un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hn(e){return!Un(e,this.v)}let Yn=!1,A=null;function Ae(e){A=e}function pt(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function mt(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)Ut(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function wt(){return!0}let te=[];function bt(){var e=te;te=[],xn(e)}function fe(e){if(te.length===0&&!we){var t=te;queueMicrotask(()=>{t===te&&bt()})}te.push(e)}function zn(){for(;te.length>0;)bt()}function yt(e){var t=p;if(t===null)return _.f|=pe,e;if((t.f&X)===0&&(t.f&ae)===0)throw e;ce(e,t)}function ce(e,t){for(;t!==null;){if((t.f&Fe)!==0){if((t.f&X)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Vn=-7169;function y(e,t){e.f=e.f&Vn|t}function He(e){(e.f&k)!==0||e.deps===null?y(e,g):y(e,I)}function gt(e){if(e!==null)for(const t of e)(t.f&b)===0||(t.f&ee)===0||(t.f^=ee,gt(t.deps))}function $t(e,t,n){(e.f&E)!==0?t.add(e):(e.f&I)!==0&&n.add(e),gt(e.deps),y(e,g)}const W=new Set;let w=null,j=null,Ye=null,we=!1,ze=!1,de=null,Re=null;var Et=0;let Wn=1;class K{id=Wn++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#a=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#o=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#a.size>0}#v(){for(const r of this.#u)for(const i of r.#a.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)y(r,E),this.schedule(r);for(r of n.m)y(r,I),this.schedule(r)}}#h(){if(Et++>1e3&&(W.delete(this),Kn()),!this.#d()){for(const l of this.#r)this.#i.delete(l),y(l,E),this.schedule(l);for(const l of this.#i)y(l,I),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=de=[],r=[],i=Re=[];for(const l of t)try{this.#f(l,n,r)}catch(u){throw kt(l),u}if(w=null,i.length>0){var s=K.ensure();for(const l of i)s.schedule(l)}if(de=null,Re=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[l,u]of this.#o)Ot(l,u)}else{this.#s.size===0&&W.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),xt(r),xt(n),this.#l?.resolve()}var o=w;if(this.#t.length>0){const l=o??=this;l.#t.push(...this.#t.filter(u=>!l.#t.includes(u)))}o!==null&&(W.add(o),o.#h()),W.has(this)||this.#p()}#f(t,n,r){t.f^=g;for(var i=t.first;i!==null;){var s=i.f,o=(s&(B|Y))!==0,l=o&&(s&g)!==0,u=l||(s&z)!==0||this.#o.has(i);if(!u&&i.fn!==null){o?i.f^=g:(s&ae)!==0?n.push(i):$e(i)&&((s&H)!==0&&this.#i.add(i),ve(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)$t(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==$&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&pe)===0&&(this.current.set(t,[t.v,r]),j?.set(t,t.v))}activate(){w=this}deactivate(){w=null,j=null}flush(){try{ze=!0,w=this,this.#h()}finally{Et=0,Ye=null,de=null,Re=null,ze=!1,w=null,j=null,G.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),W.delete(this)}#p(){for(const a of W){var t=a.id<this.id,n=[];for(const[f,[v,c]]of this.current){if(a.current.has(f)){var r=a.current.get(f)[0];if(t&&v!==r)a.current.set(f,[v,c]);else continue}n.push(f)}var i=[...a.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)St(l,i,s,o);if(a.#t.length>0){a.apply();for(var u of a.#t)a.#f(u,[],[]);a.#t=[]}a.deactivate()}}for(const a of W)a.#u.has(this)&&(a.#u.delete(this),a.#u.size===0&&!a.#d()&&(a.activate(),a.#h()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#a.get(n)??0;this.#a.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.#a.get(n)??0;s===1?this.#a.delete(n):this.#a.set(n,s-1)}this.#c||r||(this.#c=!0,fe(()=>{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??=Sn()).promise}static ensure(){if(w===null){const t=w=new K;ze||(W.add(w),we||fe(()=>{w===t&&t.flush()}))}return w}apply(){{j=null;return}}schedule(t){if(Ye=t,t.b?.is_pending&&(t.f&(ae|at|ut))!==0&&(t.f&X)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(de!==null&&n===p&&(_===null||(_.f&b)===0))return;if((r&(Y|B))!==0){if((r&g)===0)return;n.f^=g}}this.#t.push(n)}}function be(e){var t=we;we=!0;try{for(var n;;){if(zn(),w===null)return n;w.flush()}}finally{we=t}}function Kn(){try{jn()}catch(e){ce(e,Ye)}}let q=null;function xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(V|z))===0&&$e(r)&&(q=new Set,ve(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&zt(r),q?.size>0)){G.clear();for(const i of q){if((i.f&(V|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)q.has(o)&&(q.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const u=s[l];(u.f&(V|z))===0&&ve(u)}}q.clear()}}q=null}}function St(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&b)!==0?St(i,t,n,r):(s&(dt|H))!==0&&(s&E)===0&&Tt(i,t,r)&&(y(i,E),Ve(i))}}function Tt(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(le.call(t,i))return!0;if((i.f&b)!==0&&Tt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Ve(e){w.schedule(e)}function Ot(e,t){if(!((e.f&B)!==0&&(e.f&g)!==0)){(e.f&E)!==0?t.d.push(e):(e.f&I)!==0&&t.m.push(e),y(e,g);for(var n=e.first;n!==null;)Ot(n,t),n=n.next}}function kt(e){y(e,g);for(var t=e.first;t!==null;)kt(t),t=t.next}function Gn(e){let t=0,n=Ne(0),r;return()=>{Ze()&&(L(n),Ht(()=>(t===0&&(r=tn(()=>e(()=>ye(n)))),t+=1,()=>{fe(()=>{t-=1,t===0&&(r?.(),r=void 0,ye(n))})})))}}var Jn=Oe|ue;function Zn(e,t,n,r){new Qn(e,t,n,r)}class Qn{parent;is_pending=!1;transform_error;#e;#n=C?x:null;#s;#a;#l;#t=null;#r=null;#i=null;#o=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#_=Gn(()=>(this.#f=Ne(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#a=s=>{var o=p;o.b=this,o.f|=Fe,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=cr(()=>{if(C){const s=this.#n;vt();const o=s.data===it;if(s.data.startsWith(st)){const u=JSON.parse(s.data.slice(st.length));this.#g(u)}else o?this.#$():this.#p()}else this.#b()},Jn),C&&(this.#e=x)}#p(){try{this.#t=re(()=>this.#a(this.#e))}catch(t){this.error(t)}}#g(t){const n=this.#s.failed;n&&(this.#i=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=re(()=>t(this.#e)),fe(()=>{var n=this.#o=document.createDocumentFragment(),r=Ft();n.append(r),this.#t=this.#w(()=>re(()=>this.#a(r))),this.#u===0&&(this.#e.before(n),this.#o=null,Ce(this.#r,()=>{this.#r=null}),this.#m(w))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#t=re(()=>{this.#a(this.#e)}),this.#u>0){var t=this.#o=document.createDocumentFragment();vr(this.#t,t);const n=this.#s.pending;this.#r=re(()=>n(this.#e))}else this.#m(w)}catch(n){this.error(n)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){$t(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#w(t){var n=p,r=_,i=A;Q(this.#l),F(this.#l),Ae(this.#l.ctx);try{return K.ensure(),t()}catch(s){return yt(s),null}finally{Q(n),F(r),Ae(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#u+=t,this.#u===0&&(this.#m(n),this.#r&&Ce(this.#r,()=>{this.#r=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,fe(()=>{this.#d=!1,this.#f&&Ct(this.#f,this.#c)}))}get_effect_pending(){return this.#_(),L(this.#f)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(D(this.#t),this.#t=null),this.#r&&(D(this.#r),this.#r=null),this.#i&&(D(this.#i),this.#i=null),C&&(me(this.#n),Bn(),me(qn()));var i=!1,s=!1;const o=()=>{if(i){Ln();return}i=!0,s&&Fn(),this.#i!==null&&Ce(this.#i,()=>{this.#i=null}),this.#w(()=>{this.#b()})},l=u=>{try{s=!0,n?.(u,o),s=!1}catch(a){ce(a,this.#l&&this.#l.parent)}r&&(this.#i=this.#w(()=>{try{return re(()=>{var a=p;a.b=this,a.f|=Fe,r(this.#e,()=>u,()=>o)})}catch(a){return ce(a,this.#l.parent),null}}))};fe(()=>{var u;try{u=this.transform_error(t)}catch(a){ce(a,this.#l&&this.#l.parent);return}u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(l,a=>ce(a,this.#l&&this.#l.parent)):l(u)})}}function Xn(e){var t=b|E,n=_!==null&&(_.f&b)!==0?_:null;return p!==null&&(p.f|=ue),{ctx:A,deps:null,effects:null,equals:_t,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:n??p,ac:null}}function er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)D(t[n])}}function tr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&V)===0?t:null;t=t.parent}return null}function We(e){var t,n=p;Q(tr(e));try{e.f&=~ee,er(e),t=Qt(e)}finally{Q(n)}return t}function At(e){var t=e.v,n=We(e);if(!e.equals(n)&&(e.wv=Jt(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){y(e,g);return}Z||(j!==null?(Ze()||w?.is_fork)&&j.set(e,n):He(e))}function nr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(qe),t.teardown=En,t.ac=null,Ee(t,0),Qe(t))}function Rt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ve(t)}let Ke=new Set;const G=new Map;let Nt=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:_t,rv:0,wv:0};return n}function J(e,t){const n=Ne(e);return _r(n),n}function rr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=Hn),r}function U(e,t,n=!1){_!==null&&(!M||(_.f&ct)!==0)&&wt()&&(_.f&(b|H|dt|ct))!==0&&(R===null||!le.call(R,e))&&In();let r=n?ge(t):t;return Ct(e,r,Re)}function Ct(e,t,n=null){if(!e.equals(t)){var r=e.v;Z?G.set(e,t):G.set(e,r),e.v=t;var i=K.ensure();if(i.capture(e,r),(e.f&b)!==0){const s=e;(e.f&E)!==0&&We(s),j===null&&He(s)}e.wv=Jt(),jt(e,E,n),p!==null&&(p.f&g)!==0&&(p.f&(B|Y))===0&&(N===null?pr([e]):N.push(e)),!i.is_fork&&Ke.size>0&&!Nt&&ir()}return t}function ir(){Nt=!1;for(const e of Ke)(e.f&g)!==0&&y(e,I),$e(e)&&ve(e);Ke.clear()}function ye(e){U(e,e.v+1)}function jt(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&E)===0;if(u&&y(o,t),(l&b)!==0){var a=o;j?.delete(a),(l&ee)===0&&(l&k&&(o.f|=ee),jt(a,I,n))}else if(u){var f=o;(l&H)!==0&&q!==null&&q.add(f),n!==null?n.push(f):Ve(f)}}}function ge(e){if(typeof e!="object"||e===null||Be in e)return e;const t=$n(e);if(t!==yn&&t!==gn)return e;var n=new Map,r=mn(e),i=J(0),s=se,o=l=>{if(se===s)return l();var u=_,a=se;F(null),Gt(s);var f=l();return F(u),Gt(a),f};return r&&n.set("length",J(e.length)),new Proxy(e,{defineProperty(l,u,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Mn();var f=n.get(u);return f===void 0?o(()=>{var v=J(a.value);return n.set(u,v),v}):U(f,a.value,!0),!0},deleteProperty(l,u){var a=n.get(u);if(a===void 0){if(u in l){const f=o(()=>J($));n.set(u,f),ye(i)}}else U(a,$),ye(i);return!0},get(l,u,a){if(u===Be)return e;var f=n.get(u),v=u in l;if(f===void 0&&(!v||oe(l,u)?.writable)&&(f=o(()=>{var h=ge(v?l[u]:$),d=J(h);return d}),n.set(u,f)),f!==void 0){var c=L(f);return c===$?void 0:c}return Reflect.get(l,u,a)},getOwnPropertyDescriptor(l,u){var a=Reflect.getOwnPropertyDescriptor(l,u);if(a&&"value"in a){var f=n.get(u);f&&(a.value=L(f))}else if(a===void 0){var v=n.get(u),c=v?.v;if(v!==void 0&&c!==$)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,u){if(u===Be)return!0;var a=n.get(u),f=a!==void 0&&a.v!==$||Reflect.has(l,u);if(a!==void 0||p!==null&&(!f||oe(l,u)?.writable)){a===void 0&&(a=o(()=>{var c=f?ge(l[u]):$,h=J(c);return h}),n.set(u,a));var v=L(a);if(v===$)return!1}return f},set(l,u,a,f){var v=n.get(u),c=u in l;if(r&&u==="length")for(var h=a;h<v.v;h+=1){var d=n.get(h+"");d!==void 0?U(d,$):h in l&&(d=o(()=>J($)),n.set(h+"",d))}if(v===void 0)(!c||oe(l,u)?.writable)&&(v=o(()=>J(void 0)),U(v,ge(a)),n.set(u,v));else{c=v.v!==$;var m=o(()=>ge(a));U(v,m)}var S=Reflect.getOwnPropertyDescriptor(l,u);if(S?.set&&S.set.call(f,a),!c){if(r&&typeof u=="string"){var P=n.get("length"),_e=Number(u);Number.isInteger(_e)&&_e>=P.v&&U(P,_e+1)}ye(i)}return!0},ownKeys(l){L(i);var u=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==$});for(var[a,f]of n)f.v!==$&&!(a in l)&&u.push(a);return u},setPrototypeOf(){Pn()}})}var Dt,Mt,Pt,It;function Ge(){if(Dt===void 0){Dt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Pt=oe(t,"firstChild").get,It=oe(t,"nextSibling").get,ot(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ot(n)&&(n.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function Lt(e){return Pt.call(e)}function he(e){return It.call(e)}function sr(e){e.textContent=""}function Je(e,t,n){return document.createElementNS(_n,e,void 0)}function Bt(e){var t=_,n=p;F(null),Q(null);try{return e()}finally{F(t),Q(n)}}function lr(e){p===null&&(_===null&&Cn(),Nn()),Z&&Rn()}function or(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t){var n=p;n!==null&&(n.f&z)!==0&&(e|=z);var r={ctx:A,deps:null,nodes:null,f:e|E|k,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&ae)!==0)de!==null?de.push(r):K.ensure().schedule(r);else if(t!==null){try{ve(r)}catch(o){throw D(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ue)===0&&(i=i.first,(e&H)!==0&&(e&Oe)!==0&&i!==null&&(i.f|=Oe))}if(i!==null&&(i.parent=n,n!==null&&or(i,n),_!==null&&(_.f&b)!==0&&(e&Y)===0)){var s=_;(s.effects??=[]).push(i)}return r}function Ze(){return _!==null&&!M}function qt(e){lr();var t=p.f,n=!_&&(t&B)!==0&&(t&X)===0;if(n){var r=A;(r.e??=[]).push(e)}else return Ut(e)}function Ut(e){return ne(ae|On,e)}function ar(e){K.ensure();const t=ne(Y|ue,e);return()=>{D(t)}}function ur(e){K.ensure();const t=ne(Y|ue,e);return(n={})=>new Promise(r=>{n.outro?Ce(t,()=>{D(t),r(void 0)}):(D(t),r(void 0))})}function fr(e){return ne(ae,e)}function Ht(e,t=0){return ne(at|t,e)}function cr(e,t=0){var n=ne(H|t,e);return n}function re(e){return ne(B|ue,e)}function Yt(e){var t=e.teardown;if(t!==null){const n=Z,r=_;Wt(!0),F(null);try{t.call(null)}finally{Wt(n),F(r)}}}function Qe(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Bt(()=>{i.abort(qe)});var r=n.next;(n.f&Y)!==0?n.parent=null:D(n,t),n=r}}function dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&D(t),t=n}}function D(e,t=!0){var n=!1;(t||(e.f&Tn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(hr(e.nodes.start,e.nodes.end),n=!0),y(e,ft),Qe(e,t&&!n),Ee(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Yt(e),e.f^=ft,e.f|=V;var i=e.parent;i!==null&&i.first!==null&&zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function hr(e,t){for(;e!==null;){var n=e===t?null:he(e);e.remove(),e=n}}function zt(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=[];Vt(e,r,!0);var i=()=>{n&&D(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function Vt(e,t,n){if((e.f&z)===0){e.f^=z;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&Oe)!==0||(i.f&B)!==0&&(e.f&H)!==0;Vt(i,t,o?n:!1),i=s}}}function vr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:he(n);t.append(n),n=i}}let je=!1,Z=!1;function Wt(e){Z=e}let _=null,M=!1;function F(e){_=e}let p=null;function Q(e){p=e}let R=null;function _r(e){_!==null&&(R===null?R=[e]:R.push(e))}let T=null,O=0,N=null;function pr(e){N=e}let Kt=1,ie=0,se=ie;function Gt(e){se=e}function Jt(){return++Kt}function $e(e){var t=e.f;if((t&E)!==0)return!0;if(t&b&&(e.f&=~ee),(t&I)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if($e(s)&&At(s),s.wv>e.wv)return!0}(t&k)!==0&&j===null&&y(e,g)}return!1}function Zt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(R!==null&&le.call(R,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&b)!==0?Zt(s,t,!1):t===s&&(n?y(s,E):(s.f&g)!==0&&y(s,I),Ve(s))}}function Qt(e){var t=T,n=O,r=N,i=_,s=R,o=A,l=M,u=se,a=e.f;T=null,O=0,N=null,_=(a&(B|Y))===0?e:null,R=null,Ae(e.ctx),M=!1,se=++ie,e.ac!==null&&(Bt(()=>{e.ac.abort(qe)}),e.ac=null);try{e.f|=Le;var f=e.fn,v=f();e.f|=X;var c=e.deps,h=w?.is_fork;if(T!==null){var d;if(h||Ee(e,O),c!==null&&O>0)for(c.length=O+T.length,d=0;d<T.length;d++)c[O+d]=T[d];else e.deps=c=T;if(Ze()&&(e.f&k)!==0)for(d=O;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!h&&c!==null&&O<c.length&&(Ee(e,O),c.length=O);if(wt()&&N!==null&&!M&&c!==null&&(e.f&(b|I|E))===0)for(d=0;d<N.length;d++)Zt(N[d],e);if(i!==null&&i!==e){if(ie++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=ie;if(t!==null)for(const m of t)m.rv=ie;N!==null&&(r===null?r=N:r.push(...N))}return(e.f&pe)!==0&&(e.f^=pe),v}catch(m){return yt(m)}finally{e.f^=Le,T=t,O=n,N=r,_=i,R=s,Ae(o),M=l,se=u}}function mr(e,t){let n=t.reactions;if(n!==null){var r=wn.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&b)!==0&&(T===null||!le.call(T,t))){var s=t;(s.f&k)!==0&&(s.f^=k,s.f&=~ee),He(s),nr(s),Ee(s,0)}}function Ee(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)mr(e,n[r])}function ve(e){var t=e.f;if((t&V)===0){y(e,g);var n=p,r=je;p=e,je=!0;try{(t&(H|ut))!==0?dr(e):Qe(e),Yt(e);var i=Qt(e);e.teardown=typeof i=="function"?i:null,e.wv=Kt;var s;pn&&Yn&&(e.f&E)!==0&&e.deps}finally{je=r,p=n}}}function L(e){var t=e.f,n=(t&b)!==0;if(_!==null&&!M){var r=p!==null&&(p.f&V)!==0;if(!r&&(R===null||!le.call(R,e))){var i=_.deps;if((_.f&Le)!==0)e.rv<ie&&(e.rv=ie,T===null&&i!==null&&i[O]===e?O++:T===null?T=[e]:T.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:le.call(s,_)||s.push(_)}}}if(Z&&G.has(e))return G.get(e);if(n){var o=e;if(Z){var l=o.v;return((o.f&g)===0&&o.reactions!==null||en(o))&&(l=We(o)),G.set(o,l),l}var u=(o.f&k)===0&&!M&&_!==null&&(je||(_.f&k)!==0),a=(o.f&X)===0;$e(o)&&(u&&(o.f|=k),At(o)),u&&!a&&(Rt(o),Xt(o))}if(j?.has(e))return j.get(e);if((e.f&pe)!==0)throw e.v;return e.v}function Xt(e){if(e.f|=k,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&k)===0&&(Rt(t),Xt(t))}function en(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&b)!==0&&en(t))return!0;return!1}function tn(e){var t=M;try{return M=!0,e()}finally{M=t}}const De=Symbol("events"),wr=new Set,nn=new Set;let rn=null;function sn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;rn=e;var o=0,l=rn===e&&e[De];if(l){var u=i.indexOf(l);if(u!==-1&&(t===document||t===window)){e[De]=t;return}var a=i.indexOf(t);if(a===-1)return;u<=a&&(o=u)}if(s=i[o]||e.target,s!==t){Te(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=_,v=p;F(null),Q(null);try{for(var c,h=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[De]?.[r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(S){c?h.push(S):c=S}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let S of h)queueMicrotask(()=>{throw S});throw c}}finally{e[De]=t,delete e.currentTarget,F(f),Q(v)}}}const br=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function yr(e){return br?.createHTML(e)??e}function gr(e){var t=Je("template");return t.innerHTML=yr(e.replaceAll("<!>","<!---->")),t.content}function Xe(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function $r(e,t){var n=(t&vn)!==0,r,i=!e.startsWith("<!>");return()=>{if(C)return Xe(x,null),x;r===void 0&&(r=gr(i?e:"<!>"+e),r=Lt(r));var s=n||Mt?document.importNode(r,!0):r.cloneNode(!0);return Xe(s,s),s}}function ln(e,t){if(C){var n=p;((n.f&X)===0||n.nodes.end===null)&&(n.nodes.end=x),vt();return}e!==null&&e.before(t)}const Er=["touchstart","touchmove"];function xr(e){return Er.includes(e)}function on(e,t){return an(e,t)}function Sr(e,t){Ge(),t.intro=t.intro??!1;const n=t.target,r=C,i=x;try{for(var s=Lt(n);s&&(s.nodeType!==Ue||s.data!==rt);)s=he(s);if(!s)throw xe;ke(!0),me(s);const o=an(e,{...t,anchor:s});return ke(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
2
+ `).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==xe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&Dn(),Ge(),sr(n),ke(!1),on(e,t)}finally{ke(r),me(i)}}const Me=new Map;function an(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){Ge();var u=void 0,a=ur(()=>{var f=n??t.appendChild(Ft());Zn(f,{pending:()=>{}},h=>{pt({});var d=A;if(s&&(d.c=s),i&&(r.$$events=i),C&&Xe(h,null),u=e(h,r)||{},C&&(p.nodes.end=x,x===null||x.nodeType!==Ue||x.data!==lt))throw ht(),xe;mt()},l);var v=new Set,c=h=>{for(var d=0;d<h.length;d++){var m=h[d];if(!v.has(m)){v.add(m);var S=xr(m);for(const tt of[t,document]){var P=Me.get(tt);P===void 0&&(P=new Map,Me.set(tt,P));var _e=P.get(m);_e===void 0?(tt.addEventListener(m,sn,{passive:S}),P.set(m,1)):P.set(m,_e+1)}}}};return c(bn(wr)),nn.add(c),()=>{for(var h of v)for(const S of[t,document]){var d=Me.get(S),m=d.get(h);--m==0?(S.removeEventListener(h,sn),d.delete(h),d.size===0&&Me.delete(S)):d.set(h,m)}nn.delete(c),f!==n&&f.parentNode?.removeChild(f)}});return et.set(u,a),u}let et=new WeakMap;function Tr(e,t){const n=et.get(e);return n?(et.delete(e),n(t)):Promise.resolve()}function Or(e){A===null&&An(),qt(()=>{const t=tn(e);if(typeof t=="function")return t})}function kr(e,t){fr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Je("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Pe(e,t,n,r){var i=r,s=!0,o=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=o());var u;u=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var a=!1,f=Xn(()=>(a=!1,u())),v=p;return(function(c,h){if(arguments.length>0){const d=h?L(f):c;return U(f,d),a=!0,i!==void 0&&(i=d),c}return Z&&a||(v.f&V)!==0?f.v:L(f)})}function Ar(e){return new Rr(e)}class Rr{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=rr(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return L(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===kn?!0:(L(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return U(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?Sr:on)(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)&&be(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Te(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Tr(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 un;typeof HTMLElement=="function"&&(un=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=Je("slot");r!=="default"&&(s.name=r),ln(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Nr(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]=Ie(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=Ar({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ar(()=>{Ht(()=>{this.$$r=!0;for(const r of Se(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Ie(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]=Ie(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 Se(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ie(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 Nr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Cr(e,t,n,r,i,s){let o=class extends un{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Se(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Se(t).forEach(l=>{Te(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){u=Ie(l,u,t),this.$$d[l]=u;var a=this.$$c;if(a){var f=oe(a,l)?.get;f?a[l]=u:a.$set({[l]:u})}}})}),r.forEach(l=>{Te(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}function jr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}typeof SuppressedError=="function"&&SuppressedError;function Dr(e,t){var n=document.querySelector('script[src="'.concat(e,'"]'));if(n===null)return null;var r=fn(e,t),i=n.cloneNode();if(delete i.dataset.uidAuto,Object.keys(i.dataset).length!==Object.keys(r.dataset).length)return null;var s=!0;return Object.keys(i.dataset).forEach(function(o){i.dataset[o]!==r.dataset[o]&&(s=!1)}),s?n:null}function Mr(e){var t=e.url,n=e.attributes,r=e.onSuccess,i=e.onError,s=fn(t,n);s.onerror=i,s.onload=r,document.head.insertBefore(s,document.head.firstElementChild)}function Pr(e){var t=e.sdkBaseUrl,n=e.environment,r=jr(e,["sdkBaseUrl","environment"]),i=t||Lr(n),s=r,o=Object.keys(s).filter(function(a){return typeof s[a]<"u"&&s[a]!==null&&s[a]!==""}).reduce(function(a,f){var v=s[f].toString();return f=Ir(f),f.substring(0,4)==="data"||f==="crossorigin"?a.attributes[f]=v:a.queryParams[f]=v,a},{queryParams:{},attributes:{}}),l=o.queryParams,u=o.attributes;return l["merchant-id"]&&l["merchant-id"].indexOf(",")!==-1&&(u["data-merchant-id"]=l["merchant-id"],l["merchant-id"]="*"),{url:"".concat(i,"?").concat(Fr(l)),attributes:u}}function Ir(e){var t=function(n,r){return(r?"-":"")+n.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}function Fr(e){var t="";return Object.keys(e).forEach(function(n){t.length!==0&&(t+="&"),t+=n+"="+e[n]}),t}function Lr(e){return e==="sandbox"?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js"}function fn(e,t){t===void 0&&(t={});var n=document.createElement("script");return n.src=e,Object.keys(t).forEach(function(r){n.setAttribute(r,t[r]),r==="data-csp-nonce"&&n.setAttribute("nonce",t["data-csp-nonce"])}),n}function Br(e,t){if(t===void 0&&(t=Promise),dn(e,t),typeof document>"u")return t.resolve(null);var n=Pr(e),r=n.url,i=n.attributes,s=i["data-namespace"]||"paypal",o=cn(s);return i["data-js-sdk-library"]||(i["data-js-sdk-library"]="paypal-js"),Dr(r,i)&&o?t.resolve(o):qr({url:r,attributes:i},t).then(function(){var l=cn(s);if(l)return l;throw new Error("The window.".concat(s," global variable is not available."))})}function qr(e,t){t===void 0&&(t=Promise),dn(e,t);var n=e.url,r=e.attributes;if(typeof n!="string"||n.length===0)throw new Error("Invalid url.");if(typeof r<"u"&&typeof r!="object")throw new Error("Expected attributes to be an object.");return new t(function(i,s){if(typeof document>"u")return i();Mr({url:n,attributes:r,onSuccess:function(){return i()},onError:function(){var o=new Error('The script "'.concat(n,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return s(o)}})})}function cn(e){return window[e]}function dn(e,t){if(typeof e!="object"||e===null)throw new Error("Expected an options object.");var n=e.environment;if(n&&n!=="production"&&n!=="sandbox")throw new Error('The `environment` option must be either "production" or "sandbox".');if(typeof t<"u"&&typeof t!="function")throw new Error("Expected PromisePonyfill to be a function.")}var Ur=$r('<div part="btn" id="paypalbtn" class="svelte-d34b58"></div>');const Hr={hash:"svelte-d34b58",code:`@charset "UTF-8";
3
3
  @import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
@@ -65,5 +65,5 @@
65
65
  @media (min-width: 1200px) {
66
66
  }
67
67
  @media print {
68
- }:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function tn(e,t){ut(t,!0),ar(e,Sr);let n=Ie(t,"id",7,""),r=Ie(t,"paypalid"),s=Ie(t,"total",7,0),i=Ie(t,"currency",7,"EUR"),l=!1,f,o;At(()=>{typeof s()=="string"&&s(Number(s())),i()?i(i().toUpperCase()):i("EUR"),r()&&u()});function u(){f&&f.Buttons?.().close?.(),r()&&o&&!l&&(l=!0,$r({"client-id":r(),currency:i()}).then(a=>{console.info("configured paypal payment"),f=a,l=!1,f?.Buttons?.({style:{layout:"horizontal",tagline:!1,height:40},createOrder(p,C){return C.order.create({intent:"CAPTURE",purchase_units:[{amount:{currency_code:i(),value:s().toString()}}]})},onApprove(p,C){return C?.order?C.order.capture().then(function(Y){c("paymentCompleted",{method:"paypal",total:s()})}):new Promise((Y,Le)=>{Le("no order")})}}).render(o).catch(p=>{console.error("failed to render the PayPal Buttons",p)})}).catch(a=>{console.error("failed to load the PayPal JS SDK script",a)}))}ur(()=>(o=t.$$host?.shadowRoot?.querySelector("#paypalbtn"),u(),()=>{try{f.Buttons?.().close?.()}catch{}}));function c(a,p){t.$$host.dispatchEvent(new CustomEvent(a,{detail:p}))}var h={get id(){return n()},set id(a=""){n(a),de()},get paypalid(){return r()},set paypalid(a){r(a),de()},get total(){return s()},set total(a=0){s(a),de()},get currency(){return i()},set currency(a="EUR"){i(a),de()}},d=xr();return Kt(e,d),at(h)}customElements.define("hb-payment-paypal",_r(tn,{id:{},paypalid:{},total:{},currency:{}},[],[],!0)),Ze.Component=tn,Object.defineProperty(Ze,Symbol.toStringTag,{value:"Module"})})(this["payment-paypal"]=this["payment-paypal"]||{});
68
+ }:host {--hb-checkout-border: 0.5px solid rgba(197, 197, 197, 0.808);font-family:"Roboto", sans-serif;}`};function hn(e,t){pt(t,!0),kr(e,Hr);let n=Pe(t,"id",7,""),r=Pe(t,"paypalid"),i=Pe(t,"total",7,0),s=Pe(t,"currency",7,"EUR"),o=!1,l,u;qt(()=>{typeof i()=="string"&&i(Number(i())),s()?s(s().toUpperCase()):s("EUR"),r()&&a()});function a(){l&&l.Buttons?.().close?.(),r()&&u&&!o&&(o=!0,Br({"client-id":r(),currency:s()}).then(h=>{console.info("configured paypal payment"),l=h,o=!1,l?.Buttons?.({style:{layout:"horizontal",tagline:!1,height:40},createOrder(d,m){return m.order.create({intent:"CAPTURE",purchase_units:[{amount:{currency_code:s(),value:i().toString()}}]})},onApprove(d,m){return m?.order?m.order.capture().then(function(S){f("paymentCompleted",{method:"paypal",total:i()})}):new Promise((S,P)=>{P("no order")})}}).render(u).catch(d=>{console.error("failed to render the PayPal Buttons",d)})}).catch(h=>{console.error("failed to load the PayPal JS SDK script",h)}))}Or(()=>(u=t.$$host?.shadowRoot?.querySelector("#paypalbtn"),a(),()=>{try{l.Buttons?.().close?.()}catch{}}));function f(h,d){t.$$host.dispatchEvent(new CustomEvent(h,{detail:d}))}var v={get id(){return n()},set id(h=""){n(h),be()},get paypalid(){return r()},set paypalid(h){r(h),be()},get total(){return i()},set total(h=0){i(h),be()},get currency(){return s()},set currency(h="EUR"){s(h),be()}},c=Ur();return ln(e,c),mt(v)}customElements.define("hb-payment-paypal",Cr(hn,{id:{},paypalid:{},total:{},currency:{}},[],[],{mode:"open"})),nt.Component=hn,Object.defineProperty(nt,Symbol.toStringTag,{value:"Module"})})(this["payment-paypal"]=this["payment-paypal"]||{});
69
69
  //# sourceMappingURL=main.iife.js.map