@htmlbricks/hb-payment-paypal 0.65.23 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +3 -4
- package/package.json +1 -1
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 rr=2,Qe="[",Xe="[!",et="]",ge={},g=Symbol(),Le=!1;var nr=Array.isArray,sr=Array.prototype.indexOf,ir=Array.from,me=Object.keys,ye=Object.defineProperty,se=Object.getOwnPropertyDescriptor,or=Object.prototype,lr=Array.prototype,ar=Object.getPrototypeOf,tt=Object.isExtensible;function fr(e){for(var t=0;t<e.length;t++)e[t]()}function ur(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const p=2,Be=4,cr=8,F=16,H=32,V=64,we=128,N=512,$=1024,x=2048,L=4096,z=8192,W=16384,$e=32768,Ee=65536,rt=1<<17,nt=1<<18,ie=1<<19,dr=1<<20,Q=32768,Ue=1<<21,st=1<<22,fe=1<<23,qe=Symbol("$state"),hr=Symbol("legacy props"),it=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},xe=8;function br(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function _r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function pr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mr(){throw new Error("https://svelte.dev/e/hydration_failed")}function yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function xr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let j=!1;function Se(e){j=e}let m;function ue(e){if(e===null)throw ot(),ge;return m=e}function lt(){return ue(le(m))}function Sr(e=1){if(j){for(var t=e,r=m;t--;)r=le(r);m=r}}function kr(e=!0){for(var t=0,r=m;;){if(r.nodeType===xe){var n=r.data;if(n===et){if(t===0)return r;t-=1}else(n===Qe||n===Xe)&&(t+=1)}var i=le(r);e&&r.remove(),r=i}}function at(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Or(e){return!Tr(e,this.v)}let Cr=!1,k=null;function ke(e){k=e}function ft(e,t=!1,r){k={p:k,i:!1,c:null,e:null,s:e,x:null,l:null}}function ut(e){var t=k,r=t.e;if(r!==null){t.e=null;for(var n of r)At(n)}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=[],fr(e)}function Ye(e){if(X.length===0&&!ce){var t=X;queueMicrotask(()=>{t===X&&dt()})}X.push(e)}function Rr(){for(;X.length>0;)dt()}function ht(e){var t=_;if(t===null)return b.f|=fe,e;if((t.f&$e)===0){if((t.f&we)===0)throw e;t.b.error(e)}else Te(e,t)}function Te(e,t){for(;t!==null;){if((t.f&we)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Oe=new Set;let y=null,T=null,O=[],Ce=null,He=!1,ce=!1;class P{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#a=0;#i=0;#f=null;#o=[];#s=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){O=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#r(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects)):(y=null,_t(r.render_effects),_t(r.effects),this.#f?.resolve()),T=null}#r(t,r){t.f^=$;for(var n=t.first;n!==null;){var i=n.f,s=(i&(H|V))!==0,o=s&&(i&$)!==0,l=o||(i&z)!==0||this.skipped_effects.has(n);if((n.f&we)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=$:(i&Be)!==0?r.effects.push(n):ve(n)&&((n.f&F)!==0&&r.block_effects.push(n),pe(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#n(r.effects),this.#n(r.render_effects),this.#n(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#n(t){for(const r of t)((r.f&x)!==0?this.#o:this.#s).push(r),this.#l(r.deps),E(r,$)}#l(t){if(t!==null)for(const r of t)(r.f&p)===0||(r.f&Q)===0||(r.f^=Q,this.#l(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&fe)===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(bt(),y!==null&&y!==this)return}else this.#a===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#i===0){for(const t of this.#t)t();this.#t.clear()}this.#a===0&&this.#c()}#c(){if(Oe.size>1){this.previous.clear();var t=T,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Oe){if(s===this){r=!1;continue}const o=[];for(const[a,f]of this.current){if(s.current.has(a))if(r&&f!==s.current.get(a))s.current.set(a,f);else continue;o.push(a)}if(o.length===0)continue;const l=[...s.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var i=O;O=[];const a=new Set,f=new Map;for(const c of o)vt(c,l,a,f);if(O.length>0){y=s,s.apply();for(const c of O)s.#r(c,n);s.deactivate()}O=i}}y=null,T=t}this.committed=!0,Oe.delete(this)}increment(t){this.#a+=1,t&&(this.#i+=1)}decrement(t){this.#a-=1,t&&(this.#i-=1),this.revive()}revive(){for(const t of this.#o)E(t,x),oe(t);for(const t of this.#s)E(t,L),oe(t);this.#o=[],this.#s=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=ur()).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 r;;){if(Rr(),O.length===0&&(y?.flush(),O.length===0))return Ce=null,r;bt()}}finally{ce=t}}function bt(){var e=G;He=!0;var t=null;try{var r=0;for(je(!0);O.length>0;){var n=P.ensure();if(r++>1e3){var i,s;Ar()}n.process(O),K.clear()}}finally{He=!1,je(e),Ce=null}}function Ar(){try{gr()}catch(e){Te(e,Ce)}}let B=null;function _t(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(W|z))===0&&ve(n)&&(B=new Set,pe(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?It(n):n.fn=null),B?.size>0)){K.clear();for(const i of B){if((i.f&(W|z))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)B.has(o)&&(B.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(W|z))===0&&pe(a)}}B.clear()}}B=null}}function vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&p)!==0?vt(i,t,r,n):(s&(st|F))!==0&&(s&x)===0&&pt(i,t,n)&&(E(i,x),oe(i))}}function pt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&p)!==0&&pt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function oe(e){for(var t=Ce=e;t.parent!==null;){t=t.parent;var r=t.f;if(He&&t===_&&(r&F)!==0&&(r&nt)===0)return;if((r&(V|H))!==0){if((r&$)===0)return;t.f^=$}}O.push(t)}function Nr(e){let t=0,r=Re(0),n;return()=>{Ae()&&(M(r),Nt(()=>(t===0&&(n=Vt(()=>e(()=>he(r)))),t+=1,()=>{Ye(()=>{t-=1,t===0&&(n?.(),n=void 0,he(r))})})))}}var jr=Ee|ie|we;function Pr(e,t,r){new Ir(e,t,r)}class Ir{parent;#t=!1;#e;#a=j?m:null;#i;#f;#o;#s=null;#r=null;#n=null;#l=null;#u=null;#c=0;#d=0;#b=!1;#h=null;#m=Nr(()=>(this.#h=Re(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#i=r,this.#f=n,this.parent=_.b,this.#t=!!this.#i.pending,this.#o=zr(()=>{if(_.b=this,j){const s=this.#a;lt(),s.nodeType===xe&&s.data===Xe?this.#w():this.#y()}else{var i=this.#p();try{this.#s=te(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#v():this.#t=!1}return()=>{this.#u?.remove()}},jr),j&&(this.#e=m)}#y(){try{this.#s=te(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#i.pending;t&&(this.#r=te(()=>t(this.#e)),P.enqueue(()=>{var r=this.#p();this.#s=this.#_(()=>(P.ensure(),te(()=>this.#f(r)))),this.#d>0?this.#v():(Ne(this.#r,()=>{this.#r=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#u=Tt(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=_,n=b,i=k;Z(this.#o),C(this.#o),ke(this.#o.ctx);try{return t()}catch(s){return ht(s),null}finally{Z(r),C(n),ke(i)}}#v(){const t=this.#i.pending;this.#s!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),Gr(this.#s,this.#l)),this.#r===null&&(this.#r=te(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#r&&Ne(this.#r,()=>{this.#r=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&wt(this.#h,this.#c)}get_effect_pending(){return this.#m(),M(this.#h)}error(t){var r=this.#i.onerror;let n=this.#i.failed;if(this.#b||!r&&!n)throw t;this.#s&&(I(this.#s),this.#s=null),this.#r&&(I(this.#r),this.#r=null),this.#n&&(I(this.#n),this.#n=null),j&&(ue(this.#a),Sr(),ue(kr()));var i=!1,s=!1;const o=()=>{if(i){xr();return}i=!0,s&&Er(),P.ensure(),this.#c=0,this.#n!==null&&Ne(this.#n,()=>{this.#n=null}),this.#t=this.has_pending_snippet(),this.#s=this.#_(()=>(this.#b=!1,te(()=>this.#f(this.#e)))),this.#d>0?this.#v():this.#t=!1};var l=b;try{C(null),s=!0,r?.(t,o),s=!1}catch(a){Te(a,this.#o&&this.#o.parent)}finally{C(l)}n&&Ye(()=>{this.#n=this.#_(()=>{P.ensure(),this.#b=!0;try{return te(()=>{n(this.#e,()=>t,()=>o)})}catch(a){return Te(a,this.#o.parent),null}finally{this.#b=!1}})})}}function Dr(e){var t=p|x,r=b!==null&&(b.f&p)!==0?b:null;return _!==null&&(_.f|=ie),{ctx:k,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:g,wv:0,parent:r??_,ac:null}}function gt(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)I(t[r])}}function Mr(e){for(var t=e.parent;t!==null;){if((t.f&p)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function Ve(e){var t,r=_;Z(Mr(e));try{e.f&=~Q,gt(e),t=qt(e)}finally{Z(r)}return t}function mt(e){var t=Ve(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=Bt()),!re)if(T!==null)Ae()&&T.set(e,t);else{var r=(e.f&N)===0?L:$;E(e,r)}}let ze=new Set;const K=new Map;let yt=!1;function Re(e,t){var r={f:0,v:e,reactions:null,equals:at,rv:0,wv:0};return r}function J(e,t){const r=Re(e);return Zr(r),r}function Fr(e,t=!1,r=!0){const n=Re(e);return t||(n.equals=Or),n}function U(e,t,r=!1){b!==null&&(!D||(b.f&rt)!==0)&&ct()&&(b.f&(p|F|st|rt))!==0&&!q?.includes(e)&&$r();let n=r?be(t):t;return wt(e,n)}function wt(e,t){if(!e.equals(t)){var r=e.v;re?K.set(e,t):K.set(e,r),e.v=t;var n=P.ensure();n.capture(e,r),(e.f&p)!==0&&((e.f&x)!==0&&Ve(e),E(e,(e.f&N)!==0?$:L)),e.wv=Bt(),$t(e,x),_!==null&&(_.f&$)!==0&&(_.f&(H|V))===0&&(R===null?Qr([e]):R.push(e)),!n.is_fork&&ze.size>0&&!yt&&Lr()}return t}function Lr(){yt=!1;var e=G;je(!0);const t=Array.from(ze);try{for(const r of t)(r.f&$)!==0&&E(r,L),ve(r)&&pe(r)}finally{je(e)}ze.clear()}function he(e){U(e,e.v+1)}function $t(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],o=s.f,l=(o&x)===0;if(l&&E(s,t),(o&p)!==0){var a=s;T?.delete(a),(o&Q)===0&&(o&N&&(s.f|=Q),$t(a,L))}else l&&((o&F)!==0&&B!==null&&B.add(s),oe(s))}}function be(e){if(typeof e!="object"||e===null||qe in e)return e;const t=ar(e);if(t!==or&&t!==lr)return e;var r=new Map,n=nr(e),i=J(0),s=ne,o=l=>{if(ne===s)return l();var a=b,f=ne;C(null),Lt(s);var c=l();return C(a),Lt(f),c};return n&&r.set("length",J(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yr();var c=r.get(a);return c===void 0?c=o(()=>{var h=J(f.value);return r.set(a,h),h}):U(c,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const c=o(()=>J(g));r.set(a,c),he(i)}}else U(f,g),he(i);return!0},get(l,a,f){if(a===qe)return e;var c=r.get(a),h=a in l;if(c===void 0&&(!h||se(l,a)?.writable)&&(c=o(()=>{var u=be(h?l[a]:g),v=J(u);return v}),r.set(a,c)),c!==void 0){var d=M(c);return d===g?void 0:d}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var c=r.get(a);c&&(f.value=M(c))}else if(f===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==g)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return f},has(l,a){if(a===qe)return!0;var f=r.get(a),c=f!==void 0&&f.v!==g||Reflect.has(l,a);if(f!==void 0||_!==null&&(!c||se(l,a)?.writable)){f===void 0&&(f=o(()=>{var d=c?be(l[a]):g,u=J(d);return u}),r.set(a,f));var h=M(f);if(h===g)return!1}return c},set(l,a,f,c){var h=r.get(a),d=a in l;if(n&&a==="length")for(var u=f;u<h.v;u+=1){var v=r.get(u+"");v!==void 0?U(v,g):u in l&&(v=o(()=>J(g)),r.set(u+"",v))}if(h===void 0)(!d||se(l,a)?.writable)&&(h=o(()=>J(void 0)),U(h,be(f)),r.set(a,h));else{d=h.v!==g;var A=o(()=>be(f));U(h,A)}var Y=Reflect.getOwnPropertyDescriptor(l,a);if(Y?.set&&Y.set.call(c,f),!d){if(n&&typeof a=="string"){var Fe=r.get("length"),Ge=Number(a);Number.isInteger(Ge)&&Ge>=Fe.v&&U(Fe,Ge+1)}he(i)}return!0},ownKeys(l){M(i);var a=Reflect.ownKeys(l).filter(h=>{var d=r.get(h);return d===void 0||d.v!==g});for(var[f,c]of r)c.v!==g&&!(f in l)&&a.push(f);return a},setPrototypeOf(){wr()}})}var Et,xt,St,kt;function We(){if(Et===void 0){Et=window,xt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;St=se(t,"firstChild").get,kt=se(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(r)&&(r.__t=void 0)}}function Tt(e=""){return document.createTextNode(e)}function Ot(e){return St.call(e)}function le(e){return kt.call(e)}function Br(e){e.textContent=""}function Ct(e){var t=b,r=_;C(null),Z(null);try{return e()}finally{C(t),Z(r)}}function Ur(e){_===null&&(b===null&&pr(),vr()),re&&_r()}function qr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ee(e,t,r){var n=_;n!==null&&(n.f&z)!==0&&(e|=z);var i={ctx:k,deps:null,nodes_start:null,nodes_end:null,f:e|x|N,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{pe(i),i.f|=$e}catch(l){throw I(i),l}else t!==null&&oe(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ie)===0&&(s=s.first,(e&F)!==0&&(e&Ee)!==0&&s!==null&&(s.f|=Ee)),s!==null&&(s.parent=n,n!==null&&qr(s,n),b!==null&&(b.f&p)!==0&&(e&V)===0)){var o=b;(o.effects??=[]).push(s)}return i}function Ae(){return b!==null&&!D}function Rt(e){Ur();var t=_.f,r=!b&&(t&H)!==0&&(t&$e)===0;if(r){var n=k;(n.e??=[]).push(e)}else return At(e)}function At(e){return ee(Be|dr,e,!1)}function Yr(e){P.ensure();const t=ee(V|ie,e,!0);return()=>{I(t)}}function Hr(e){P.ensure();const t=ee(V|ie,e,!0);return(r={})=>new Promise(n=>{r.outro?Ne(t,()=>{I(t),n(void 0)}):(I(t),n(void 0))})}function Vr(e){return ee(Be,e,!1)}function Nt(e,t=0){return ee(cr|t,e,!0)}function zr(e,t=0){var r=ee(F|t,e,!0);return r}function te(e){return ee(H|ie,e,!0)}function jt(e){var t=e.teardown;if(t!==null){const r=re,n=b;Mt(!0),C(null);try{t.call(null)}finally{Mt(r),C(n)}}}function Pt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Ct(()=>{i.abort(it)});var n=r.next;(r.f&V)!==0?r.parent=null:I(r,t),r=n}}function Wr(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&H)===0&&I(t),t=r}}function I(e,t=!0){var r=!1;(t||(e.f&nt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Kr(e.nodes_start,e.nodes_end),r=!0),Pt(e,t&&!r),Pe(e,0),E(e,W);var n=e.transitions;if(n!==null)for(const s of n)s.stop();jt(e);var i=e.parent;i!==null&&i.first!==null&&It(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Kr(e,t){for(;e!==null;){var r=e===t?null:le(e);e.remove(),e=r}}function It(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ne(e,t,r=!0){var n=[];Dt(e,n,!0),Jr(n,()=>{r&&I(e),t&&t()})}function Jr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Dt(e,t,r){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const o of e.transitions)(o.is_global||r)&&t.push(o);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ee)!==0||(n.f&H)!==0&&(e.f&F)!==0;Dt(n,t,s?r:!1),n=i}}}function Gr(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:le(r);t.append(r),r=i}}let G=!1;function je(e){G=e}let re=!1;function Mt(e){re=e}let b=null,D=!1;function C(e){b=e}let _=null;function Z(e){_=e}let q=null;function Zr(e){b!==null&&(q===null?q=[e]:q.push(e))}let w=null,S=0,R=null;function Qr(e){R=e}let Ft=1,_e=0,ne=_e;function Lt(e){ne=e}function Bt(){return++Ft}function ve(e){var t=e.f;if((t&x)!==0)return!0;if(t&p&&(e.f&=~Q),(t&L)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(ve(s)&&mt(s),s.wv>e.wv)return!0}(t&N)!==0&&T===null&&E(e,$)}return!1}function Ut(e,t,r=!0){var n=e.reactions;if(n!==null&&!q?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&p)!==0?Ut(s,t,!1):t===s&&(r?E(s,x):(s.f&$)!==0&&E(s,L),oe(s))}}function qt(e){var t=w,r=S,n=R,i=b,s=q,o=k,l=D,a=ne,f=e.f;w=null,S=0,R=null,b=(f&(H|V))===0?e:null,q=null,ke(e.ctx),D=!1,ne=++_e,e.ac!==null&&(Ct(()=>{e.ac.abort(it)}),e.ac=null);try{e.f|=Ue;var c=e.fn,h=c(),d=e.deps;if(w!==null){var u;if(Pe(e,S),d!==null&&S>0)for(d.length=S+w.length,u=0;u<w.length;u++)d[S+u]=w[u];else e.deps=d=w;if(G&&Ae()&&(e.f&N)!==0)for(u=S;u<d.length;u++)(d[u].reactions??=[]).push(e)}else d!==null&&S<d.length&&(Pe(e,S),d.length=S);if(ct()&&R!==null&&!D&&d!==null&&(e.f&(p|L|x))===0)for(u=0;u<R.length;u++)Ut(R[u],e);return i!==null&&i!==e&&(_e++,R!==null&&(n===null?n=R:n.push(...R))),(e.f&fe)!==0&&(e.f^=fe),h}catch(v){return ht(v)}finally{e.f^=Ue,w=t,S=r,R=n,b=i,q=s,ke(o),D=l,ne=a}}function Xr(e,t){let r=t.reactions;if(r!==null){var n=sr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&p)!==0&&(w===null||!w.includes(t))&&(E(t,L),(t.f&N)!==0&&(t.f^=N,t.f&=~Q),gt(t),Pe(t,0))}function Pe(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xr(e,r[n])}function pe(e){var t=e.f;if((t&W)===0){E(e,$);var r=_,n=G;_=e,G=!0;try{(t&F)!==0?Wr(e):Pt(e),jt(e);var i=qt(e);e.teardown=typeof i=="function"?i:null,e.wv=Ft;var s;Le&&Cr&&(e.f&x)!==0&&e.deps}finally{G=n,_=r}}}function M(e){var t=e.f,r=(t&p)!==0;if(b!==null&&!D){var n=_!==null&&(_.f&W)!==0;if(!n&&!q?.includes(e)){var i=b.deps;if((b.f&Ue)!==0)e.rv<_e&&(e.rv=_e,w===null&&i!==null&&i[S]===e?S++:w===null?w=[e]:w.includes(e)||w.push(e));else{(b.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[b]:s.includes(b)||s.push(b)}}}if(re){if(K.has(e))return K.get(e);if(r){var o=e,l=o.v;return((o.f&$)===0&&o.reactions!==null||Ht(o))&&(l=Ve(o)),K.set(o,l),l}}else r&&!T?.has(e)&&(o=e,ve(o)&&mt(o),G&&Ae()&&(o.f&N)===0&&Yt(o));if(T?.has(e))return T.get(e);if((e.f&fe)!==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&p)!==0&&(t.f&N)===0&&Yt(t)}}function Ht(e){if(e.v===g)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(K.has(t)||(t.f&p)!==0&&Ht(t))return!0;return!1}function Vt(e){var t=D;try{return D=!0,e()}finally{D=t}}const en=-7169;function E(e,t){e.f=e.f&en|t}const tn=new Set,zt=new Set;let Wt=null;function Ie(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Wt=e;var o=0,l=Wt===e&&e.__root;if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){ye(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=b,h=_;C(null),Z(null);try{for(var d,u=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var A=s["__"+n];A!=null&&(!s.disabled||e.target===s)&&A.call(s,e)}catch(Y){d?u.push(Y):d=Y}if(e.cancelBubble||v===t||v===null)break;s=v}if(d){for(let Y of u)queueMicrotask(()=>{throw Y});throw d}}finally{e.__root=t,delete e.currentTarget,C(c),Z(h)}}}function rn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ke(e,t){var r=_;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function nn(e,t){var r=(t&rr)!==0,n,i=!e.startsWith("<!>");return()=>{if(j)return Ke(m,null),m;n===void 0&&(n=rn(i?e:"<!>"+e),n=Ot(n));var s=r||xt?document.importNode(n,!0):n.cloneNode(!0);return Ke(s,s),s}}function Kt(e,t){if(j){var r=_;((r.f&$e)===0||r.nodes_end===null)&&(r.nodes_end=m),lt();return}e!==null&&e.before(t)}const sn=["touchstart","touchmove"];function on(e){return sn.includes(e)}function Jt(e,t){return Gt(e,t)}function ln(e,t){We(),t.intro=t.intro??!1;const r=t.target,n=j,i=m;try{for(var s=Ot(r);s&&(s.nodeType!==xe||s.data!==Qe);)s=le(s);if(!s)throw ge;Se(!0),ue(s);const o=Gt(e,{...t,anchor:s});return Se(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(
|
|
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&>(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";
|
|
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
|
/*!
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
|
|
10
|
+
*/.svelte-d34b58,
|
|
11
11
|
.svelte-d34b58::before,
|
|
12
12
|
.svelte-d34b58::after {box-sizing:border-box;}
|
|
13
13
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -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
|
|
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"]||{});
|
|
69
69
|
//# sourceMappingURL=main.iife.js.map
|