@revenuecat/purchases-js 0.3.3 → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  var Kt = Object.defineProperty;
2
2
  var qt = (t, e, r) => e in t ? Kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var Q = (t, e, r) => (qt(t, typeof e != "symbol" ? e + "" : e, r), r);
3
+ var P = (t, e, r) => (qt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
4
  function jt(t) {
5
5
  return t != null;
6
6
  }
@@ -46,7 +46,7 @@ class G {
46
46
  this.log(e, W.Verbose);
47
47
  }
48
48
  }
49
- Q(G, "logLevel", W.Silent);
49
+ P(G, "logLevel", W.Silent);
50
50
  var ne = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(ne || {});
51
51
  function Je(t) {
52
52
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
@@ -239,7 +239,7 @@ function Bt(t) {
239
239
  function ot() {
240
240
  return /* @__PURE__ */ Object.create(null);
241
241
  }
242
- function we(t) {
242
+ function Ie(t) {
243
243
  t.forEach(Bt);
244
244
  }
245
245
  function ce(t) {
@@ -249,7 +249,7 @@ function T(t, e) {
249
249
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
250
250
  }
251
251
  let De;
252
- function Z(t, e) {
252
+ function ee(t, e) {
253
253
  return t === e ? !0 : (De || (De = document.createElement("a")), De.href = e, t === De.href);
254
254
  }
255
255
  function st(t) {
@@ -263,7 +263,7 @@ function on(t, e) {
263
263
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
264
264
  // browsers (in contrast to img.src). This means both SSR and DOM code could
265
265
  // contain relative or absolute URLs.
266
- (Z(r[s][0], i) || Z(i, r[s][0]))
266
+ (ee(r[s][0], i) || ee(i, r[s][0]))
267
267
  );
268
268
  }
269
269
  function sn(t) {
@@ -308,10 +308,10 @@ function V(t) {
308
308
  }
309
309
  return -1;
310
310
  }
311
- function Ee(t) {
311
+ function Ae(t) {
312
312
  return t ?? "";
313
313
  }
314
- function C(t, e) {
314
+ function M(t, e) {
315
315
  t.appendChild(e);
316
316
  }
317
317
  function x(t, e, r) {
@@ -332,7 +332,7 @@ function ln(t) {
332
332
  ) : t.ownerDocument;
333
333
  }
334
334
  function cn(t, e) {
335
- return C(
335
+ return M(
336
336
  /** @type {Document} */
337
337
  t.head || t,
338
338
  e
@@ -350,16 +350,16 @@ function k(t) {
350
350
  function L(t) {
351
351
  return document.createTextNode(t);
352
352
  }
353
- function P() {
353
+ function Q() {
354
354
  return L(" ");
355
355
  }
356
356
  function te() {
357
357
  return L("");
358
358
  }
359
- function ke(t, e, r, n) {
359
+ function we(t, e, r, n) {
360
360
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
361
361
  }
362
- function Mt(t) {
362
+ function Ct(t) {
363
363
  return function(e) {
364
364
  return e.preventDefault(), t.call(this, e);
365
365
  };
@@ -398,20 +398,23 @@ function lt(t, e) {
398
398
  function pn(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
399
399
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
400
400
  }
401
- let be;
402
- function Ae(t) {
403
- be = t;
401
+ let Ee;
402
+ function _e(t) {
403
+ Ee = t;
404
404
  }
405
- function Se() {
406
- if (!be)
405
+ function ke() {
406
+ if (!Ee)
407
407
  throw new Error("Function called outside component initialization");
408
- return be;
408
+ return Ee;
409
409
  }
410
- function Oe(t) {
411
- Se().$$.on_mount.push(t);
410
+ function _n(t) {
411
+ ke().$$.before_update.push(t);
412
412
  }
413
- function _n() {
414
- const t = Se();
413
+ function Se(t) {
414
+ ke().$$.on_mount.push(t);
415
+ }
416
+ function hn() {
417
+ const t = ke();
415
418
  return (e, r, { cancelable: n = !1 } = {}) => {
416
419
  const i = t.$$.callbacks[e];
417
420
  if (i) {
@@ -429,67 +432,67 @@ function _n() {
429
432
  };
430
433
  }
431
434
  function An(t, e) {
432
- return Se().$$.context.set(t, e), e;
435
+ return ke().$$.context.set(t, e), e;
433
436
  }
434
- function hn(t) {
435
- return Se().$$.context.get(t);
437
+ function En(t) {
438
+ return ke().$$.context.get(t);
436
439
  }
437
- function Ct(t, e) {
440
+ function Pt(t, e) {
438
441
  const r = t.$$.callbacks[e.type];
439
442
  r && r.slice().forEach((n) => n.call(this, e));
440
443
  }
441
444
  const se = [], Ue = [];
442
445
  let le = [];
443
- const He = [], En = /* @__PURE__ */ Promise.resolve();
444
- let Ke = !1;
445
- function bn() {
446
- Ke || (Ke = !0, En.then(Qt));
446
+ const Ye = [], bn = /* @__PURE__ */ Promise.resolve();
447
+ let He = !1;
448
+ function In() {
449
+ He || (He = !0, bn.then(Mt));
447
450
  }
448
- function qe(t) {
451
+ function Ke(t) {
449
452
  le.push(t);
450
453
  }
451
- function In(t) {
452
- He.push(t);
454
+ function wn(t) {
455
+ Ye.push(t);
453
456
  }
454
- const Fe = /* @__PURE__ */ new Set();
457
+ const xe = /* @__PURE__ */ new Set();
455
458
  let ie = 0;
456
- function Qt() {
459
+ function Mt() {
457
460
  if (ie !== 0)
458
461
  return;
459
- const t = be;
462
+ const t = Ee;
460
463
  do {
461
464
  try {
462
465
  for (; ie < se.length; ) {
463
466
  const e = se[ie];
464
- ie++, Ae(e), wn(e.$$);
467
+ ie++, _e(e), kn(e.$$);
465
468
  }
466
469
  } catch (e) {
467
470
  throw se.length = 0, ie = 0, e;
468
471
  }
469
- for (Ae(null), se.length = 0, ie = 0; Ue.length; )
472
+ for (_e(null), se.length = 0, ie = 0; Ue.length; )
470
473
  Ue.pop()();
471
474
  for (let e = 0; e < le.length; e += 1) {
472
475
  const r = le[e];
473
- Fe.has(r) || (Fe.add(r), r());
476
+ xe.has(r) || (xe.add(r), r());
474
477
  }
475
478
  le.length = 0;
476
479
  } while (se.length);
477
- for (; He.length; )
478
- He.pop()();
479
- Ke = !1, Fe.clear(), Ae(t);
480
+ for (; Ye.length; )
481
+ Ye.pop()();
482
+ He = !1, xe.clear(), _e(t);
480
483
  }
481
- function wn(t) {
484
+ function kn(t) {
482
485
  if (t.fragment !== null) {
483
- t.update(), we(t.before_update);
486
+ t.update(), Ie(t.before_update);
484
487
  const e = t.dirty;
485
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
488
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
486
489
  }
487
490
  }
488
- function kn(t) {
491
+ function yn(t) {
489
492
  const e = [], r = [];
490
493
  le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
491
494
  }
492
- const Pe = /* @__PURE__ */ new Set();
495
+ const Qe = /* @__PURE__ */ new Set();
493
496
  let re;
494
497
  function H() {
495
498
  re = {
@@ -500,22 +503,22 @@ function H() {
500
503
  };
501
504
  }
502
505
  function K() {
503
- re.r || we(re.c), re = re.p;
506
+ re.r || Ie(re.c), re = re.p;
504
507
  }
505
508
  function f(t, e) {
506
- t && t.i && (Pe.delete(t), t.i(e));
509
+ t && t.i && (Qe.delete(t), t.i(e));
507
510
  }
508
- function m(t, e, r, n) {
511
+ function d(t, e, r, n) {
509
512
  if (t && t.o) {
510
- if (Pe.has(t))
513
+ if (Qe.has(t))
511
514
  return;
512
- Pe.add(t), re.c.push(() => {
513
- Pe.delete(t), n && (r && t.d(1), n());
515
+ Qe.add(t), re.c.push(() => {
516
+ Qe.delete(t), n && (r && t.d(1), n());
514
517
  }), t.o(e);
515
518
  } else
516
519
  n && n();
517
520
  }
518
- function $n(t, e, r) {
521
+ function vn(t, e, r) {
519
522
  const n = t.$$.props[e];
520
523
  n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
521
524
  }
@@ -524,21 +527,21 @@ function w(t) {
524
527
  }
525
528
  function b(t, e, r) {
526
529
  const { fragment: n, after_update: i } = t.$$;
527
- n && n.m(e, r), qe(() => {
530
+ n && n.m(e, r), Ke(() => {
528
531
  const o = t.$$.on_mount.map(Bt).filter(ce);
529
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
530
- }), i.forEach(qe);
532
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Ie(o), t.$$.on_mount = [];
533
+ }), i.forEach(Ke);
531
534
  }
532
535
  function I(t, e) {
533
536
  const r = t.$$;
534
- r.fragment !== null && (kn(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
537
+ r.fragment !== null && (yn(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
535
538
  }
536
- function vn(t, e) {
537
- t.$$.dirty[0] === -1 && (se.push(t), bn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
539
+ function $n(t, e) {
540
+ t.$$.dirty[0] === -1 && (se.push(t), In(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
538
541
  }
539
542
  function N(t, e, r, n, i, o, s = null, l = [-1]) {
540
- const c = be;
541
- Ae(t);
543
+ const c = Ee;
544
+ _e(t);
542
545
  const a = t.$$ = {
543
546
  fragment: null,
544
547
  ctx: [],
@@ -562,18 +565,18 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
562
565
  };
563
566
  s && s(a.root);
564
567
  let u = !1;
565
- if (a.ctx = r ? r(t, e.props || {}, (d, h, ...$) => {
566
- const E = $.length ? $[0] : h;
567
- return a.ctx && i(a.ctx[d], a.ctx[d] = E) && (!a.skip_bound && a.bound[d] && a.bound[d](E), u && vn(t, d)), h;
568
- }) : [], a.update(), u = !0, we(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
568
+ if (a.ctx = r ? r(t, e.props || {}, (m, h, ...y) => {
569
+ const E = y.length ? y[0] : h;
570
+ return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && $n(t, m)), h;
571
+ }) : [], a.update(), u = !0, Ie(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
569
572
  if (e.hydrate) {
570
- const d = gn(e.target);
571
- a.fragment && a.fragment.l(d), d.forEach(g);
573
+ const m = gn(e.target);
574
+ a.fragment && a.fragment.l(m), m.forEach(g);
572
575
  } else
573
576
  a.fragment && a.fragment.c();
574
- e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Qt();
577
+ e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Mt();
575
578
  }
576
- Ae(c);
579
+ _e(c);
577
580
  }
578
581
  class U {
579
582
  constructor() {
@@ -584,7 +587,7 @@ class U {
584
587
  *
585
588
  * @type {any}
586
589
  */
587
- Q(this, "$$");
590
+ P(this, "$$");
588
591
  /**
589
592
  * ### PRIVATE API
590
593
  *
@@ -592,7 +595,7 @@ class U {
592
595
  *
593
596
  * @type {any}
594
597
  */
595
- Q(this, "$$set");
598
+ P(this, "$$set");
596
599
  }
597
600
  /** @returns {void} */
598
601
  $destroy() {
@@ -621,12 +624,12 @@ class U {
621
624
  this.$$set && !sn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
622
625
  }
623
626
  }
624
- const yn = "4";
625
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
626
- function Bn(t) {
627
+ const Bn = "4";
628
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
629
+ function Dn(t) {
627
630
  x(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
628
631
  }
629
- function Ge(t) {
632
+ function Fe(t) {
630
633
  let e, r;
631
634
  const n = (
632
635
  /*#slots*/
@@ -647,7 +650,7 @@ function Ge(t) {
647
650
  /*as*/
648
651
  t[0]
649
652
  )(e, {
650
- class: Ee("rcb-modal-section") + " svelte-1bzqb13"
653
+ class: Ae("rcb-modal-section") + " svelte-1bzqb13"
651
654
  });
652
655
  },
653
656
  m(o, s) {
@@ -678,20 +681,20 @@ function Ge(t) {
678
681
  r || (f(i, o), r = !0);
679
682
  },
680
683
  o(o) {
681
- m(i, o), r = !1;
684
+ d(i, o), r = !1;
682
685
  },
683
686
  d(o) {
684
687
  o && g(e), i && i.d(o);
685
688
  }
686
689
  };
687
690
  }
688
- function Dn(t) {
691
+ function Cn(t) {
689
692
  let e = (
690
693
  /*as*/
691
694
  t[0]
692
695
  ), r, n, i = (
693
696
  /*as*/
694
- t[0] && Ge(t)
697
+ t[0] && Fe(t)
695
698
  );
696
699
  return {
697
700
  c() {
@@ -706,8 +709,8 @@ function Dn(t) {
706
709
  e,
707
710
  /*as*/
708
711
  o[0]
709
- ) ? (i.d(1), i = Ge(o), e = /*as*/
710
- o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Ge(o), e = /*as*/
712
+ ) ? (i.d(1), i = Fe(o), e = /*as*/
713
+ o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Fe(o), e = /*as*/
711
714
  o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
712
715
  o[0]);
713
716
  },
@@ -715,14 +718,14 @@ function Dn(t) {
715
718
  n || (f(i, o), n = !0);
716
719
  },
717
720
  o(o) {
718
- m(i, o), n = !1;
721
+ d(i, o), n = !1;
719
722
  },
720
723
  d(o) {
721
724
  o && g(r), i && i.d(o);
722
725
  }
723
726
  };
724
727
  }
725
- function Mn(t, e, r) {
728
+ function Pn(t, e, r) {
726
729
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
727
730
  return t.$$set = (s) => {
728
731
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
@@ -730,10 +733,10 @@ function Mn(t, e, r) {
730
733
  }
731
734
  class ue extends U {
732
735
  constructor(e) {
733
- super(), N(this, e, Mn, Dn, T, { as: 0 }, Bn);
736
+ super(), N(this, e, Pn, Cn, T, { as: 0 }, Dn);
734
737
  }
735
738
  }
736
- function Cn(t) {
739
+ function Mn(t) {
737
740
  x(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
738
741
  }
739
742
  function Qn(t) {
@@ -754,7 +757,7 @@ function Qn(t) {
754
757
  }
755
758
  };
756
759
  }
757
- function Pn(t) {
760
+ function Tn(t) {
758
761
  let e = (
759
762
  /*basePrice*/
760
763
  (t[2].currency || "") + ""
@@ -766,7 +769,7 @@ function Pn(t) {
766
769
  ) + "", o;
767
770
  return {
768
771
  c() {
769
- r = L(e), n = P(), o = L(i);
772
+ r = L(e), n = Q(), o = L(i);
770
773
  },
771
774
  m(s, l) {
772
775
  p(s, r, l), p(s, n, l), p(s, o, l);
@@ -777,7 +780,7 @@ function Pn(t) {
777
780
  }
778
781
  };
779
782
  }
780
- function Tn(t) {
783
+ function Nn(t) {
781
784
  let e;
782
785
  return {
783
786
  c() {
@@ -810,7 +813,7 @@ function ct(t) {
810
813
  e = k("li"), r = L("Renews "), i = L(n);
811
814
  },
812
815
  m(o, s) {
813
- p(o, e, s), C(e, r), C(e, i);
816
+ p(o, e, s), M(e, r), M(e, i);
814
817
  },
815
818
  p(o, s) {
816
819
  s & /*productDetails*/
@@ -824,53 +827,53 @@ function ct(t) {
824
827
  }
825
828
  };
826
829
  }
827
- function Nn(t) {
828
- var M, ve;
830
+ function Un(t) {
831
+ var C, ve;
829
832
  let e, r, n = (
830
833
  /*productDetails*/
831
834
  t[0].displayName + ""
832
- ), i, o, s, l, c, a, u, d, h, $, E, B = (
835
+ ), i, o, s, l, c, a, u, m, h, y, E, B = (
833
836
  /*trial*/
834
- ((M = t[1]) == null ? void 0 : M.periodDuration) && Qn(t)
837
+ ((C = t[1]) == null ? void 0 : C.periodDuration) && Qn(t)
835
838
  ), A = !/*trial*/
836
839
  ((ve = t[1]) != null && ve.periodDuration) && /*basePrice*/
837
- t[2] && Pn(t), y = (
840
+ t[2] && Tn(t), $ = (
838
841
  /*trial*/
839
842
  t[1] && /*basePrice*/
840
- t[2] && Tn(t)
843
+ t[2] && Nn(t)
841
844
  ), R = (
842
845
  /*productDetails*/
843
846
  t[0].normalPeriodDuration && ct(t)
844
847
  );
845
848
  return {
846
849
  c() {
847
- e = k("div"), r = k("span"), i = L(n), o = P(), s = k("span"), B && B.c(), l = P(), A && A.c(), c = P(), y && y.c(), a = P(), u = k("ul"), R && R.c(), d = P(), h = k("li"), h.textContent = "Continues until canceled", $ = P(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
850
+ e = k("div"), r = k("span"), i = L(n), o = Q(), s = k("span"), B && B.c(), l = Q(), A && A.c(), c = Q(), $ && $.c(), a = Q(), u = k("ul"), R && R.c(), m = Q(), h = k("li"), h.textContent = "Continues until canceled", y = Q(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
848
851
  },
849
852
  m(F, S) {
850
- p(F, e, S), C(e, r), C(r, i), C(e, o), C(e, s), B && B.m(s, null), C(s, l), A && A.m(s, null), C(e, c), y && y.m(e, null), C(e, a), C(e, u), R && R.m(u, null), C(u, d), C(u, h), C(u, $), C(u, E);
853
+ p(F, e, S), M(e, r), M(r, i), M(e, o), M(e, s), B && B.m(s, null), M(s, l), A && A.m(s, null), M(e, c), $ && $.m(e, null), M(e, a), M(e, u), R && R.m(u, null), M(u, m), M(u, h), M(u, y), M(u, E);
851
854
  },
852
855
  p(F, S) {
853
- var ye, Be;
856
+ var $e, Be;
854
857
  S & /*productDetails*/
855
858
  1 && n !== (n = /*productDetails*/
856
859
  F[0].displayName + "") && ae(i, n), /*trial*/
857
- (ye = F[1]) != null && ye.periodDuration && B.p(F, S), !/*trial*/
860
+ ($e = F[1]) != null && $e.periodDuration && B.p(F, S), !/*trial*/
858
861
  ((Be = F[1]) != null && Be.periodDuration) && /*basePrice*/
859
862
  F[2] && A.p(F, S), /*trial*/
860
863
  F[1] && /*basePrice*/
861
- F[2] && y.p(F, S), /*productDetails*/
862
- F[0].normalPeriodDuration ? R ? R.p(F, S) : (R = ct(F), R.c(), R.m(u, d)) : R && (R.d(1), R = null);
864
+ F[2] && $.p(F, S), /*productDetails*/
865
+ F[0].normalPeriodDuration ? R ? R.p(F, S) : (R = ct(F), R.c(), R.m(u, m)) : R && (R.d(1), R = null);
863
866
  },
864
867
  d(F) {
865
- F && g(e), B && B.d(), A && A.d(), y && y.d(), R && R.d();
868
+ F && g(e), B && B.d(), A && A.d(), $ && $.d(), R && R.d();
866
869
  }
867
870
  };
868
871
  }
869
- function Un(t) {
872
+ function Rn(t) {
870
873
  let e, r;
871
874
  return e = new ue({
872
875
  props: {
873
- $$slots: { default: [Nn] },
876
+ $$slots: { default: [Un] },
874
877
  $$scope: { ctx: t }
875
878
  }
876
879
  }), {
@@ -889,14 +892,14 @@ function Un(t) {
889
892
  r || (f(e.$$.fragment, n), r = !0);
890
893
  },
891
894
  o(n) {
892
- m(e.$$.fragment, n), r = !1;
895
+ d(e.$$.fragment, n), r = !1;
893
896
  },
894
897
  d(n) {
895
898
  I(e, n);
896
899
  }
897
900
  };
898
901
  }
899
- function Rn(t, e, r) {
902
+ function Sn(t, e, r) {
900
903
  var c;
901
904
  let { productDetails: n } = e, { purchaseOption: i } = e;
902
905
  const o = i, s = o == null ? void 0 : o.trial, l = (c = o == null ? void 0 : o.base) == null ? void 0 : c.price;
@@ -904,17 +907,17 @@ function Rn(t, e, r) {
904
907
  "productDetails" in a && r(0, n = a.productDetails), "purchaseOption" in a && r(3, i = a.purchaseOption);
905
908
  }, [n, s, l, i];
906
909
  }
907
- class Pt extends U {
910
+ class Qt extends U {
908
911
  constructor(e) {
909
- super(), N(this, e, Rn, Un, T, { productDetails: 0, purchaseOption: 3 }, Cn);
912
+ super(), N(this, e, Sn, Rn, T, { productDetails: 0, purchaseOption: 3 }, Mn);
910
913
  }
911
914
  }
912
- const Sn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAk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IkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
913
- function On(t) {
915
+ const On = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAUTKlxI8EEEhhADcGEI4QFDJQy5ZJmo0OFCFBFkLNzCRQvHghEgKHQi4cEPhhuzdHyYUMQDDxC5kNSSsGLCIA4x5oxZ0GNBDBFKRAxgkmTBgwVpRJhAZWkAohErPKhhVaL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BGjQMKlyo4sXCgUIetmDxMAAJABsWrnD4UAaAAUkUumhRMcACAQ4UNiwpRAAAGwYnlgyAAQACgxtnPiEAoERBhDMDjBBAoCINHw8ZNHjI5EGEDUyCFtSyIoJVE1KkEnwCIsIDCjK0EgSSAQIED2IHYqkxQUTat3Djyp1b0UbDjXdhBqUxcWTfhHQDCx5MuCIXLVy2vOWShTEXsVsOJz6stbHlx1ojI1b8tvHbgAAAIfkEBQQAAQAsAwADABcAFwAACJQAAwgcSLCgwRIkDCpcqIHDwoFHHm7Y8DCACgMJFWroUBGHgQNMFE6sGGDCAQsaHVY8csAAD4MjSX4w8MDgRpIBoCQwsKIgQpwBUBxIULEHkYcUUC580tDEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
916
+ function Ln(t) {
914
917
  let e, r;
915
918
  return {
916
919
  c() {
917
- e = k("img"), Z(e.src, r = Sn) || _(e, "src", r), _(e, "alt", "spinner");
920
+ e = k("img"), ee(e.src, r = On) || _(e, "src", r), _(e, "alt", "spinner");
918
921
  },
919
922
  m(n, i) {
920
923
  p(n, e, i);
@@ -927,17 +930,17 @@ function On(t) {
927
930
  }
928
931
  };
929
932
  }
930
- class Ln extends U {
933
+ class xn extends U {
931
934
  constructor(e) {
932
- super(), N(this, e, null, On, T, {});
935
+ super(), N(this, e, null, Ln, T, {});
933
936
  }
934
937
  }
935
- function xn(t) {
938
+ function Fn(t) {
936
939
  x(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
937
940
  }
938
- function Fn(t) {
941
+ function Gn(t) {
939
942
  let e, r, n;
940
- return r = new Ln({}), {
943
+ return r = new xn({}), {
941
944
  c() {
942
945
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
943
946
  },
@@ -949,7 +952,7 @@ function Fn(t) {
949
952
  n || (f(r.$$.fragment, i), n = !0);
950
953
  },
951
954
  o(i) {
952
- m(r.$$.fragment, i), n = !1;
955
+ d(r.$$.fragment, i), n = !1;
953
956
  },
954
957
  d(i) {
955
958
  i && g(e), I(r);
@@ -958,10 +961,10 @@ function Fn(t) {
958
961
  }
959
962
  class We extends U {
960
963
  constructor(e) {
961
- super(), N(this, e, null, Fn, T, {}, xn);
964
+ super(), N(this, e, null, Gn, T, {}, Fn);
962
965
  }
963
966
  }
964
- var ee = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(ee || {});
967
+ var Z = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t[t.InvalidEmailError = 38] = "InvalidEmailError", t))(Z || {});
965
968
  class he {
966
969
  static getPublicMessage(e) {
967
970
  switch (e) {
@@ -1019,6 +1022,8 @@ class he {
1019
1022
  return "There was a problem related to the customer info.";
1020
1023
  case 36:
1021
1024
  return "Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.";
1025
+ case 38:
1026
+ return "Email is not valid. Please provide a valid email address.";
1022
1027
  }
1023
1028
  }
1024
1029
  static getErrorCodeForBackendErrorCode(e) {
@@ -1060,6 +1065,9 @@ class he {
1060
1065
  return 12;
1061
1066
  case 7662:
1062
1067
  return 24;
1068
+ case 7012:
1069
+ case 7834:
1070
+ return 38;
1063
1071
  }
1064
1072
  }
1065
1073
  static convertCodeToBackendErrorCode(e) {
@@ -1084,17 +1092,17 @@ class he {
1084
1092
  }
1085
1093
  }
1086
1094
  }
1087
- var Tt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t))(Tt || {});
1088
- class X extends Error {
1095
+ var Tt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(Tt || {});
1096
+ class z extends Error {
1089
1097
  constructor(r, n, i) {
1090
1098
  super(n);
1091
- Q(this, "toString", () => `PurchasesError(code: ${ee[this.errorCode]}, message: ${this.message})`);
1099
+ P(this, "toString", () => `PurchasesError(code: ${Z[this.errorCode]}, message: ${this.message})`);
1092
1100
  this.errorCode = r, this.underlyingErrorMessage = i;
1093
1101
  }
1094
1102
  /** @internal */
1095
1103
  static getForBackendError(r, n) {
1096
1104
  const i = he.getErrorCodeForBackendErrorCode(r);
1097
- return new X(
1105
+ return new z(
1098
1106
  i,
1099
1107
  he.getPublicMessage(i),
1100
1108
  n
@@ -1102,7 +1110,7 @@ class X extends Error {
1102
1110
  }
1103
1111
  /** @internal */
1104
1112
  static getForPurchasesFlowError(r) {
1105
- return new X(
1113
+ return new z(
1106
1114
  he.convertPurchaseFlowErrorCodeToErrorCode(
1107
1115
  r.errorCode
1108
1116
  ),
@@ -1111,31 +1119,31 @@ class X extends Error {
1111
1119
  );
1112
1120
  }
1113
1121
  }
1114
- class Gn extends Error {
1122
+ class Yn extends Error {
1115
1123
  constructor() {
1116
1124
  super("Purchases must be configured before calling getInstance");
1117
1125
  }
1118
1126
  }
1119
- var pe = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(pe || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
1127
+ var ge = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ge || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
1120
1128
  class Y extends Error {
1121
1129
  constructor(e, r, n) {
1122
1130
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
1123
1131
  }
1124
1132
  static fromPurchasesError(e, r) {
1125
1133
  let n;
1126
- return e.errorCode === ee.ProductAlreadyPurchasedError ? n = 6 : n = r, new Y(
1134
+ return e.errorCode === Z.ProductAlreadyPurchasedError ? n = 6 : e.errorCode === Z.InvalidEmailError ? n = 5 : n = r, new Y(
1127
1135
  n,
1128
1136
  e.message,
1129
1137
  e.underlyingErrorMessage
1130
1138
  );
1131
1139
  }
1132
1140
  }
1133
- class Yn {
1141
+ class Hn {
1134
1142
  constructor(e, r = 10) {
1135
- Q(this, "operationSessionId", null);
1136
- Q(this, "backend");
1137
- Q(this, "maxNumberAttempts");
1138
- Q(this, "waitMSBetweenAttempts", 1e3);
1143
+ P(this, "operationSessionId", null);
1144
+ P(this, "backend");
1145
+ P(this, "maxNumberAttempts");
1146
+ P(this, "waitMSBetweenAttempts", 1e3);
1139
1147
  this.backend = e, this.maxNumberAttempts = r;
1140
1148
  }
1141
1149
  async startPurchase(e, r, n, i, o) {
@@ -1149,7 +1157,7 @@ class Yn {
1149
1157
  );
1150
1158
  return this.operationSessionId = s.operation_session_id, s;
1151
1159
  } catch (s) {
1152
- if (s instanceof X)
1160
+ if (s instanceof z)
1153
1161
  throw Y.fromPurchasesError(
1154
1162
  s,
1155
1163
  0
@@ -1184,17 +1192,17 @@ class Yn {
1184
1192
  }
1185
1193
  this.backend.getCheckoutStatus(e).then((s) => {
1186
1194
  switch (s.operation.status) {
1187
- case pe.Started:
1188
- case pe.InProgress:
1195
+ case ge.Started:
1196
+ case ge.InProgress:
1189
1197
  setTimeout(
1190
1198
  () => i(o + 1),
1191
1199
  this.waitMSBetweenAttempts
1192
1200
  );
1193
1201
  break;
1194
- case pe.Succeeded:
1202
+ case ge.Succeeded:
1195
1203
  this.clearPurchaseInProgress(), r();
1196
1204
  return;
1197
- case pe.Failed:
1205
+ case ge.Failed:
1198
1206
  this.clearPurchaseInProgress(), this.handlePaymentError(
1199
1207
  s.operation.error,
1200
1208
  n
@@ -1253,15 +1261,15 @@ class Yn {
1253
1261
  }
1254
1262
  }
1255
1263
  }
1256
- const Hn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
1257
- function Kn(t) {
1264
+ const Kn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
1265
+ function qn(t) {
1258
1266
  x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1259
1267
  }
1260
- function qn(t) {
1268
+ function jn(t) {
1261
1269
  let e, r;
1262
1270
  return {
1263
1271
  c() {
1264
- e = k("img"), Z(e.src, r = Hn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1272
+ e = k("img"), ee(e.src, r = Kn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1265
1273
  },
1266
1274
  m(n, i) {
1267
1275
  p(n, e, i);
@@ -1274,15 +1282,15 @@ function qn(t) {
1274
1282
  }
1275
1283
  };
1276
1284
  }
1277
- class jn extends U {
1285
+ class Jn extends U {
1278
1286
  constructor(e) {
1279
- super(), N(this, e, null, qn, T, {}, Kn);
1287
+ super(), N(this, e, null, jn, T, {}, qn);
1280
1288
  }
1281
1289
  }
1282
- function Jn(t) {
1290
+ function Vn(t) {
1283
1291
  x(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
1284
1292
  }
1285
- function Vn(t) {
1293
+ function Wn(t) {
1286
1294
  let e, r, n, i, o;
1287
1295
  const s = (
1288
1296
  /*#slots*/
@@ -1296,12 +1304,12 @@ function Vn(t) {
1296
1304
  );
1297
1305
  return {
1298
1306
  c() {
1299
- e = k("button"), l && l.c(), _(e, "class", r = Ee(`intent-${/*intent*/
1307
+ e = k("button"), l && l.c(), _(e, "class", r = Ae(`intent-${/*intent*/
1300
1308
  t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
1301
1309
  t[1];
1302
1310
  },
1303
1311
  m(c, a) {
1304
- p(c, e, a), l && l.m(e, null), n = !0, i || (o = ke(
1312
+ p(c, e, a), l && l.m(e, null), n = !0, i || (o = we(
1305
1313
  e,
1306
1314
  "click",
1307
1315
  /*click_handler*/
@@ -1328,7 +1336,7 @@ function Vn(t) {
1328
1336
  ),
1329
1337
  null
1330
1338
  ), (!n || a & /*intent*/
1331
- 1 && r !== (r = Ee(`intent-${/*intent*/
1339
+ 1 && r !== (r = Ae(`intent-${/*intent*/
1332
1340
  c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
1333
1341
  2) && (e.disabled = /*disabled*/
1334
1342
  c[1]);
@@ -1337,31 +1345,31 @@ function Vn(t) {
1337
1345
  n || (f(l, c), n = !0);
1338
1346
  },
1339
1347
  o(c) {
1340
- m(l, c), n = !1;
1348
+ d(l, c), n = !1;
1341
1349
  },
1342
1350
  d(c) {
1343
1351
  c && g(e), l && l.d(c), i = !1, o();
1344
1352
  }
1345
1353
  };
1346
1354
  }
1347
- function Wn(t, e, r) {
1355
+ function zn(t, e, r) {
1348
1356
  let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1349
1357
  function l(c) {
1350
- Ct.call(this, t, c);
1358
+ Pt.call(this, t, c);
1351
1359
  }
1352
1360
  return t.$$set = (c) => {
1353
1361
  "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1354
1362
  }, [o, s, i, n, l];
1355
1363
  }
1356
- class Ie extends U {
1364
+ class be extends U {
1357
1365
  constructor(e) {
1358
- super(), N(this, e, Wn, Vn, T, { intent: 0, disabled: 1 }, Jn);
1366
+ super(), N(this, e, zn, Wn, T, { intent: 0, disabled: 1 }, Vn);
1359
1367
  }
1360
1368
  }
1361
- function zn(t) {
1369
+ function Xn(t) {
1362
1370
  x(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1363
1371
  }
1364
- function Xn(t) {
1372
+ function Zn(t) {
1365
1373
  let e, r;
1366
1374
  const n = (
1367
1375
  /*#slots*/
@@ -1405,14 +1413,14 @@ function Xn(t) {
1405
1413
  r || (f(i, o), r = !0);
1406
1414
  },
1407
1415
  o(o) {
1408
- m(i, o), r = !1;
1416
+ d(i, o), r = !1;
1409
1417
  },
1410
1418
  d(o) {
1411
1419
  o && g(e), i && i.d(o);
1412
1420
  }
1413
1421
  };
1414
1422
  }
1415
- function Zn(t, e, r) {
1423
+ function er(t, e, r) {
1416
1424
  let { $$slots: n = {}, $$scope: i } = e;
1417
1425
  return t.$$set = (o) => {
1418
1426
  "$$scope" in o && r(0, i = o.$$scope);
@@ -1420,13 +1428,13 @@ function Zn(t, e, r) {
1420
1428
  }
1421
1429
  class ze extends U {
1422
1430
  constructor(e) {
1423
- super(), N(this, e, Zn, Xn, T, {}, zn);
1431
+ super(), N(this, e, er, Zn, T, {}, Xn);
1424
1432
  }
1425
1433
  }
1426
- function er(t) {
1434
+ function tr(t) {
1427
1435
  x(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1428
1436
  }
1429
- function tr(t) {
1437
+ function nr(t) {
1430
1438
  let e, r, n;
1431
1439
  const i = (
1432
1440
  /*#slots*/
@@ -1473,37 +1481,37 @@ function tr(t) {
1473
1481
  n || (f(o, s), n = !0);
1474
1482
  },
1475
1483
  o(s) {
1476
- m(o, s), n = !1;
1484
+ d(o, s), n = !1;
1477
1485
  },
1478
1486
  d(s) {
1479
1487
  s && g(e), o && o.d(s);
1480
1488
  }
1481
1489
  };
1482
1490
  }
1483
- function nr(t, e, r) {
1491
+ function rr(t, e, r) {
1484
1492
  let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1485
1493
  return t.$$set = (s) => {
1486
1494
  "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1487
1495
  }, [o, i, n];
1488
1496
  }
1489
- class $e extends U {
1497
+ class ye extends U {
1490
1498
  constructor(e) {
1491
- super(), N(this, e, nr, tr, T, { gutter: 0 }, er);
1499
+ super(), N(this, e, rr, nr, T, { gutter: 0 }, tr);
1492
1500
  }
1493
1501
  }
1494
- const rr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
1495
- function ir(t) {
1502
+ const ir = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
1503
+ function or(t) {
1496
1504
  x(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1497
1505
  }
1498
- function or(t) {
1506
+ function sr(t) {
1499
1507
  let e, r, n, i, o;
1500
1508
  return {
1501
1509
  c() {
1502
- e = k("button"), r = k("img"), Z(r.src, n = rr) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1510
+ e = k("button"), r = k("img"), ee(r.src, n = ir) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1503
1511
  t[0];
1504
1512
  },
1505
1513
  m(s, l) {
1506
- p(s, e, l), C(e, r), i || (o = ke(
1514
+ p(s, e, l), M(e, r), i || (o = we(
1507
1515
  e,
1508
1516
  "click",
1509
1517
  /*click_handler*/
@@ -1522,24 +1530,24 @@ function or(t) {
1522
1530
  }
1523
1531
  };
1524
1532
  }
1525
- function sr(t, e, r) {
1533
+ function lr(t, e, r) {
1526
1534
  let { disabled: n = !1 } = e;
1527
1535
  function i(o) {
1528
- Ct.call(this, t, o);
1536
+ Pt.call(this, t, o);
1529
1537
  }
1530
1538
  return t.$$set = (o) => {
1531
1539
  "disabled" in o && r(0, n = o.disabled);
1532
1540
  }, [n, i];
1533
1541
  }
1534
- class lr extends U {
1542
+ class cr extends U {
1535
1543
  constructor(e) {
1536
- super(), N(this, e, sr, or, T, { disabled: 0 }, ir);
1544
+ super(), N(this, e, lr, sr, T, { disabled: 0 }, or);
1537
1545
  }
1538
1546
  }
1539
- function cr(t) {
1547
+ function ar(t) {
1540
1548
  x(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1541
1549
  }
1542
- function ar(t) {
1550
+ function ur(t) {
1543
1551
  let e;
1544
1552
  return {
1545
1553
  c() {
@@ -1554,22 +1562,22 @@ function ar(t) {
1554
1562
  }
1555
1563
  };
1556
1564
  }
1557
- function ur(t) {
1565
+ function fr(t) {
1558
1566
  let e, r, n, i, o, s;
1559
1567
  return {
1560
1568
  c() {
1561
- e = k("picture"), r = k("source"), i = P(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1562
- t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), Z(o.src, s = /*src*/
1569
+ e = k("picture"), r = k("source"), i = Q(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1570
+ t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), ee(o.src, s = /*src*/
1563
1571
  t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1564
1572
  },
1565
1573
  m(l, c) {
1566
- p(l, e, c), C(e, r), C(e, i), C(e, o);
1574
+ p(l, e, c), M(e, r), M(e, i), M(e, o);
1567
1575
  },
1568
1576
  p(l, c) {
1569
1577
  c & /*srcWebp*/
1570
1578
  2 && n !== (n = /*srcWebp*/
1571
1579
  l[1]) && _(r, "srcset", n), c & /*src*/
1572
- 1 && !Z(o.src, s = /*src*/
1580
+ 1 && !ee(o.src, s = /*src*/
1573
1581
  l[0]) && _(o, "src", s);
1574
1582
  },
1575
1583
  d(l) {
@@ -1577,12 +1585,12 @@ function ur(t) {
1577
1585
  }
1578
1586
  };
1579
1587
  }
1580
- function fr(t) {
1588
+ function dr(t) {
1581
1589
  let e;
1582
1590
  function r(o, s) {
1583
1591
  return (
1584
1592
  /*src*/
1585
- o[0] !== null ? ur : ar
1593
+ o[0] !== null ? fr : ur
1586
1594
  );
1587
1595
  }
1588
1596
  let n = r(t), i = n(t);
@@ -1603,7 +1611,7 @@ function fr(t) {
1603
1611
  }
1604
1612
  };
1605
1613
  }
1606
- function dr(t, e, r) {
1614
+ function mr(t, e, r) {
1607
1615
  let { src: n = null } = e, { srcWebp: i = null } = e;
1608
1616
  return t.$$set = (o) => {
1609
1617
  "src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
@@ -1611,14 +1619,14 @@ function dr(t, e, r) {
1611
1619
  }
1612
1620
  class Nt extends U {
1613
1621
  constructor(e) {
1614
- super(), N(this, e, dr, fr, T, { src: 0, srcWebp: 1 }, cr);
1622
+ super(), N(this, e, mr, dr, T, { src: 0, srcWebp: 1 }, ar);
1615
1623
  }
1616
1624
  }
1617
- const Me = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1618
- function mr(t) {
1625
+ const Ce = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1626
+ function gr(t) {
1619
1627
  x(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1620
1628
  }
1621
- function gr(t) {
1629
+ function pr(t) {
1622
1630
  let e, r;
1623
1631
  return e = new Nt({}), {
1624
1632
  c() {
@@ -1632,14 +1640,14 @@ function gr(t) {
1632
1640
  r || (f(e.$$.fragment, n), r = !0);
1633
1641
  },
1634
1642
  o(n) {
1635
- m(e.$$.fragment, n), r = !1;
1643
+ d(e.$$.fragment, n), r = !1;
1636
1644
  },
1637
1645
  d(n) {
1638
1646
  I(e, n);
1639
1647
  }
1640
1648
  };
1641
1649
  }
1642
- function pr(t) {
1650
+ function _r(t) {
1643
1651
  let e, r, n = (
1644
1652
  /*brandingInfo*/
1645
1653
  t[0].seller_company_name + ""
@@ -1650,16 +1658,16 @@ function pr(t) {
1650
1658
  );
1651
1659
  return {
1652
1660
  c() {
1653
- s && s.c(), e = P(), r = k("span"), i = L(n), _(r, "class", "app-title svelte-10uf5fq");
1661
+ s && s.c(), e = Q(), r = k("span"), i = L(n), _(r, "class", "app-title svelte-10uf5fq");
1654
1662
  },
1655
1663
  m(l, c) {
1656
- s && s.m(l, c), p(l, e, c), p(l, r, c), C(r, i), o = !0;
1664
+ s && s.m(l, c), p(l, e, c), p(l, r, c), M(r, i), o = !0;
1657
1665
  },
1658
1666
  p(l, c) {
1659
1667
  /*brandingInfo*/
1660
1668
  l[0].app_icon_webp !== null && /*brandingInfo*/
1661
1669
  l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1662
- 1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), m(s, 1, 1, () => {
1670
+ 1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), d(s, 1, 1, () => {
1663
1671
  s = null;
1664
1672
  }), K()), (!o || c & /*brandingInfo*/
1665
1673
  1) && n !== (n = /*brandingInfo*/
@@ -1669,7 +1677,7 @@ function pr(t) {
1669
1677
  o || (f(s), o = !0);
1670
1678
  },
1671
1679
  o(l) {
1672
- m(s), o = !1;
1680
+ d(s), o = !1;
1673
1681
  },
1674
1682
  d(l) {
1675
1683
  l && (g(e), g(r)), s && s.d(l);
@@ -1680,11 +1688,11 @@ function at(t) {
1680
1688
  let e, r;
1681
1689
  return e = new Nt({
1682
1690
  props: {
1683
- src: Me(
1691
+ src: Ce(
1684
1692
  /*brandingInfo*/
1685
1693
  t[0].app_icon
1686
1694
  ),
1687
- srcWebp: Me(
1695
+ srcWebp: Ce(
1688
1696
  /*brandingInfo*/
1689
1697
  t[0].app_icon_webp
1690
1698
  )
@@ -1699,11 +1707,11 @@ function at(t) {
1699
1707
  p(n, i) {
1700
1708
  const o = {};
1701
1709
  i & /*brandingInfo*/
1702
- 1 && (o.src = Me(
1710
+ 1 && (o.src = Ce(
1703
1711
  /*brandingInfo*/
1704
1712
  n[0].app_icon
1705
1713
  )), i & /*brandingInfo*/
1706
- 1 && (o.srcWebp = Me(
1714
+ 1 && (o.srcWebp = Ce(
1707
1715
  /*brandingInfo*/
1708
1716
  n[0].app_icon_webp
1709
1717
  )), e.$set(o);
@@ -1712,16 +1720,16 @@ function at(t) {
1712
1720
  r || (f(e.$$.fragment, n), r = !0);
1713
1721
  },
1714
1722
  o(n) {
1715
- m(e.$$.fragment, n), r = !1;
1723
+ d(e.$$.fragment, n), r = !1;
1716
1724
  },
1717
1725
  d(n) {
1718
1726
  I(e, n);
1719
1727
  }
1720
1728
  };
1721
1729
  }
1722
- function _r(t) {
1730
+ function hr(t) {
1723
1731
  let e, r, n, i;
1724
- const o = [pr, gr], s = [];
1732
+ const o = [_r, pr], s = [];
1725
1733
  function l(c, a) {
1726
1734
  return (
1727
1735
  /*brandingInfo*/
@@ -1737,7 +1745,7 @@ function _r(t) {
1737
1745
  },
1738
1746
  p(c, [a]) {
1739
1747
  let u = r;
1740
- r = l(c), r === u ? s[r].p(c, a) : (H(), m(s[u], 1, 1, () => {
1748
+ r = l(c), r === u ? s[r].p(c, a) : (H(), d(s[u], 1, 1, () => {
1741
1749
  s[u] = null;
1742
1750
  }), K(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), f(n, 1), n.m(e, null));
1743
1751
  },
@@ -1745,7 +1753,7 @@ function _r(t) {
1745
1753
  i || (f(n), i = !0);
1746
1754
  },
1747
1755
  o(c) {
1748
- m(n), i = !1;
1756
+ d(n), i = !1;
1749
1757
  },
1750
1758
  d(c) {
1751
1759
  c && g(e), s[r].d();
@@ -1760,30 +1768,30 @@ function Ar(t, e, r) {
1760
1768
  }
1761
1769
  class Ut extends U {
1762
1770
  constructor(e) {
1763
- super(), N(this, e, Ar, _r, T, { brandingInfo: 0 }, mr);
1771
+ super(), N(this, e, Ar, hr, T, { brandingInfo: 0 }, gr);
1764
1772
  }
1765
1773
  }
1766
- function hr(t) {
1774
+ function Er(t) {
1767
1775
  x(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1768
1776
  }
1769
- function Er(t) {
1777
+ function br(t) {
1770
1778
  let e, r, n, i, o;
1771
1779
  return r = new Ut({
1772
1780
  props: { brandingInfo: (
1773
1781
  /*brandingInfo*/
1774
1782
  t[0]
1775
1783
  ) }
1776
- }), i = new lr({}), i.$on("click", function() {
1784
+ }), i = new cr({}), i.$on("click", function() {
1777
1785
  ce(
1778
1786
  /*onClose*/
1779
1787
  t[1]
1780
1788
  ) && t[1].apply(this, arguments);
1781
1789
  }), {
1782
1790
  c() {
1783
- e = k("div"), w(r.$$.fragment), n = P(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1791
+ e = k("div"), w(r.$$.fragment), n = Q(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1784
1792
  },
1785
1793
  m(s, l) {
1786
- p(s, e, l), b(r, e, null), C(e, n), b(i, e, null), o = !0;
1794
+ p(s, e, l), b(r, e, null), M(e, n), b(i, e, null), o = !0;
1787
1795
  },
1788
1796
  p(s, l) {
1789
1797
  t = s;
@@ -1796,19 +1804,19 @@ function Er(t) {
1796
1804
  o || (f(r.$$.fragment, s), f(i.$$.fragment, s), o = !0);
1797
1805
  },
1798
1806
  o(s) {
1799
- m(r.$$.fragment, s), m(i.$$.fragment, s), o = !1;
1807
+ d(r.$$.fragment, s), d(i.$$.fragment, s), o = !1;
1800
1808
  },
1801
1809
  d(s) {
1802
1810
  s && g(e), I(r), I(i);
1803
1811
  }
1804
1812
  };
1805
1813
  }
1806
- function br(t) {
1814
+ function Ir(t) {
1807
1815
  let e, r;
1808
1816
  return e = new ue({
1809
1817
  props: {
1810
1818
  as: "header",
1811
- $$slots: { default: [Er] },
1819
+ $$slots: { default: [br] },
1812
1820
  $$scope: { ctx: t }
1813
1821
  }
1814
1822
  }), {
@@ -1827,29 +1835,29 @@ function br(t) {
1827
1835
  r || (f(e.$$.fragment, n), r = !0);
1828
1836
  },
1829
1837
  o(n) {
1830
- m(e.$$.fragment, n), r = !1;
1838
+ d(e.$$.fragment, n), r = !1;
1831
1839
  },
1832
1840
  d(n) {
1833
1841
  I(e, n);
1834
1842
  }
1835
1843
  };
1836
1844
  }
1837
- function Ir(t, e, r) {
1845
+ function wr(t, e, r) {
1838
1846
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1839
1847
  return t.$$set = (o) => {
1840
1848
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
1841
1849
  }, [n, i];
1842
1850
  }
1843
- class wr extends U {
1851
+ class kr extends U {
1844
1852
  constructor(e) {
1845
- super(), N(this, e, Ir, br, T, { brandingInfo: 0, onClose: 1 }, hr);
1853
+ super(), N(this, e, wr, Ir, T, { brandingInfo: 0, onClose: 1 }, Er);
1846
1854
  }
1847
1855
  }
1848
- function kr(t) {
1856
+ function yr(t) {
1849
1857
  x(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1850
1858
  }
1851
- const $r = (t) => ({}), ut = (t) => ({});
1852
- function vr(t) {
1859
+ const vr = (t) => ({}), ut = (t) => ({});
1860
+ function $r(t) {
1853
1861
  let e, r, n, i, o;
1854
1862
  const s = (
1855
1863
  /*#slots*/
@@ -1866,10 +1874,10 @@ function vr(t) {
1866
1874
  e = k("span"), r = L(
1867
1875
  /*title*/
1868
1876
  t[2]
1869
- ), n = P(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1877
+ ), n = Q(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1870
1878
  },
1871
1879
  m(c, a) {
1872
- p(c, e, a), C(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1880
+ p(c, e, a), M(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1873
1881
  },
1874
1882
  p(c, a) {
1875
1883
  (!o || a & /*title*/
@@ -1901,14 +1909,14 @@ function vr(t) {
1901
1909
  o || (f(l, c), o = !0);
1902
1910
  },
1903
1911
  o(c) {
1904
- m(l, c), o = !1;
1912
+ d(l, c), o = !1;
1905
1913
  },
1906
1914
  d(c) {
1907
1915
  c && (g(e), g(n), g(i)), l && l.d(c);
1908
1916
  }
1909
1917
  };
1910
1918
  }
1911
- function yr(t) {
1919
+ function Br(t) {
1912
1920
  let e, r, n;
1913
1921
  const i = (
1914
1922
  /*#slots*/
@@ -1920,15 +1928,15 @@ function yr(t) {
1920
1928
  t[5],
1921
1929
  ut
1922
1930
  );
1923
- return r = new $e({
1931
+ return r = new ye({
1924
1932
  props: {
1925
1933
  gutter: "16px",
1926
- $$slots: { default: [vr] },
1934
+ $$slots: { default: [$r] },
1927
1935
  $$scope: { ctx: t }
1928
1936
  }
1929
1937
  }), {
1930
1938
  c() {
1931
- o && o.c(), e = P(), w(r.$$.fragment);
1939
+ o && o.c(), e = Q(), w(r.$$.fragment);
1932
1940
  },
1933
1941
  m(s, l) {
1934
1942
  o && o.m(s, l), p(s, e, l), b(r, s, l), n = !0;
@@ -1946,7 +1954,7 @@ function yr(t) {
1946
1954
  /*$$scope*/
1947
1955
  s[5],
1948
1956
  l,
1949
- $r
1957
+ vr
1950
1958
  ) : V(
1951
1959
  /*$$scope*/
1952
1960
  s[5]
@@ -1961,19 +1969,19 @@ function yr(t) {
1961
1969
  n || (f(o, s), f(r.$$.fragment, s), n = !0);
1962
1970
  },
1963
1971
  o(s) {
1964
- m(o, s), m(r.$$.fragment, s), n = !1;
1972
+ d(o, s), d(r.$$.fragment, s), n = !1;
1965
1973
  },
1966
1974
  d(s) {
1967
1975
  s && g(e), o && o.d(s), I(r, s);
1968
1976
  }
1969
1977
  };
1970
1978
  }
1971
- function Br(t) {
1979
+ function Dr(t) {
1972
1980
  let e, r, n;
1973
- return r = new $e({
1981
+ return r = new ye({
1974
1982
  props: {
1975
1983
  gutter: "16px",
1976
- $$slots: { default: [yr] },
1984
+ $$slots: { default: [Br] },
1977
1985
  $$scope: { ctx: t }
1978
1986
  }
1979
1987
  }), {
@@ -2003,14 +2011,14 @@ function Br(t) {
2003
2011
  n || (f(r.$$.fragment, i), n = !0);
2004
2012
  },
2005
2013
  o(i) {
2006
- m(r.$$.fragment, i), n = !1;
2014
+ d(r.$$.fragment, i), n = !1;
2007
2015
  },
2008
2016
  d(i) {
2009
2017
  i && g(e), I(r);
2010
2018
  }
2011
2019
  };
2012
2020
  }
2013
- function Dr(t) {
2021
+ function Cr(t) {
2014
2022
  let e;
2015
2023
  return {
2016
2024
  c() {
@@ -2024,11 +2032,11 @@ function Dr(t) {
2024
2032
  }
2025
2033
  };
2026
2034
  }
2027
- function Mr(t) {
2035
+ function Pr(t) {
2028
2036
  let e, r;
2029
- return e = new Ie({
2037
+ return e = new be({
2030
2038
  props: {
2031
- $$slots: { default: [Dr] },
2039
+ $$slots: { default: [Cr] },
2032
2040
  $$scope: { ctx: t }
2033
2041
  }
2034
2042
  }), e.$on("click", function() {
@@ -2053,16 +2061,16 @@ function Mr(t) {
2053
2061
  r || (f(e.$$.fragment, n), r = !0);
2054
2062
  },
2055
2063
  o(n) {
2056
- m(e.$$.fragment, n), r = !1;
2064
+ d(e.$$.fragment, n), r = !1;
2057
2065
  },
2058
2066
  d(n) {
2059
2067
  I(e, n);
2060
2068
  }
2061
2069
  };
2062
2070
  }
2063
- function Cr(t) {
2071
+ function Mr(t) {
2064
2072
  let e, r, n, i, o, s;
2065
- return e = new wr({
2073
+ return e = new kr({
2066
2074
  props: {
2067
2075
  brandingInfo: (
2068
2076
  /*brandingInfo*/
@@ -2075,17 +2083,17 @@ function Cr(t) {
2075
2083
  }
2076
2084
  }), n = new ue({
2077
2085
  props: {
2078
- $$slots: { default: [Br] },
2086
+ $$slots: { default: [Dr] },
2079
2087
  $$scope: { ctx: t }
2080
2088
  }
2081
2089
  }), o = new ze({
2082
2090
  props: {
2083
- $$slots: { default: [Mr] },
2091
+ $$slots: { default: [Pr] },
2084
2092
  $$scope: { ctx: t }
2085
2093
  }
2086
2094
  }), {
2087
2095
  c() {
2088
- w(e.$$.fragment), r = P(), w(n.$$.fragment), i = P(), w(o.$$.fragment);
2096
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
2089
2097
  },
2090
2098
  m(l, c) {
2091
2099
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -2100,15 +2108,15 @@ function Cr(t) {
2100
2108
  const u = {};
2101
2109
  c & /*$$scope, type, title*/
2102
2110
  44 && (u.$$scope = { dirty: c, ctx: l }), n.$set(u);
2103
- const d = {};
2111
+ const m = {};
2104
2112
  c & /*$$scope, onContinue*/
2105
- 34 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
2113
+ 34 && (m.$$scope = { dirty: c, ctx: l }), o.$set(m);
2106
2114
  },
2107
2115
  i(l) {
2108
2116
  s || (f(e.$$.fragment, l), f(n.$$.fragment, l), f(o.$$.fragment, l), s = !0);
2109
2117
  },
2110
2118
  o(l) {
2111
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
2119
+ d(e.$$.fragment, l), d(n.$$.fragment, l), d(o.$$.fragment, l), s = !1;
2112
2120
  },
2113
2121
  d(l) {
2114
2122
  l && (g(r), g(i)), I(e, l), I(n, l), I(o, l);
@@ -2117,10 +2125,10 @@ function Cr(t) {
2117
2125
  }
2118
2126
  function Qr(t) {
2119
2127
  let e, r;
2120
- return e = new $e({
2128
+ return e = new ye({
2121
2129
  props: {
2122
2130
  gutter: "32px",
2123
- $$slots: { default: [Cr] },
2131
+ $$slots: { default: [Mr] },
2124
2132
  $$scope: { ctx: t }
2125
2133
  }
2126
2134
  }), {
@@ -2139,14 +2147,14 @@ function Qr(t) {
2139
2147
  r || (f(e.$$.fragment, n), r = !0);
2140
2148
  },
2141
2149
  o(n) {
2142
- m(e.$$.fragment, n), r = !1;
2150
+ d(e.$$.fragment, n), r = !1;
2143
2151
  },
2144
2152
  d(n) {
2145
2153
  I(e, n);
2146
2154
  }
2147
2155
  };
2148
2156
  }
2149
- function Pr(t, e, r) {
2157
+ function Tr(t, e, r) {
2150
2158
  let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
2151
2159
  return t.$$set = (a) => {
2152
2160
  "brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
@@ -2157,7 +2165,7 @@ class Rt extends U {
2157
2165
  super(), N(
2158
2166
  this,
2159
2167
  e,
2160
- Pr,
2168
+ Tr,
2161
2169
  Qr,
2162
2170
  T,
2163
2171
  {
@@ -2166,7 +2174,7 @@ class Rt extends U {
2166
2174
  title: 2,
2167
2175
  type: 3
2168
2176
  },
2169
- kr
2177
+ yr
2170
2178
  );
2171
2179
  }
2172
2180
  }
@@ -2181,7 +2189,7 @@ function ft(t) {
2181
2189
  t[1]);
2182
2190
  },
2183
2191
  m(s, l) {
2184
- p(s, e, l), p(s, r, l), C(r, n), p(s, o, l);
2192
+ p(s, e, l), p(s, r, l), M(r, n), p(s, o, l);
2185
2193
  },
2186
2194
  p(s, l) {
2187
2195
  l & /*supportEmail*/
@@ -2198,7 +2206,7 @@ function ft(t) {
2198
2206
  }
2199
2207
  };
2200
2208
  }
2201
- function Tr(t) {
2209
+ function Nr(t) {
2202
2210
  let e = (
2203
2211
  /*getErrorMessage*/
2204
2212
  t[3]() + ""
@@ -2208,7 +2216,7 @@ function Tr(t) {
2208
2216
  );
2209
2217
  return {
2210
2218
  c() {
2211
- r = L(e), n = P(), o && o.c(), i = te();
2219
+ r = L(e), n = Q(), o && o.c(), i = te();
2212
2220
  },
2213
2221
  m(s, l) {
2214
2222
  p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
@@ -2222,9 +2230,9 @@ function Tr(t) {
2222
2230
  }
2223
2231
  };
2224
2232
  }
2225
- function Nr(t) {
2233
+ function Ur(t) {
2226
2234
  let e, r;
2227
- return e = new jn({ props: { slot: "icon" } }), {
2235
+ return e = new Jn({ props: { slot: "icon" } }), {
2228
2236
  c() {
2229
2237
  w(e.$$.fragment);
2230
2238
  },
@@ -2236,14 +2244,14 @@ function Nr(t) {
2236
2244
  r || (f(e.$$.fragment, n), r = !0);
2237
2245
  },
2238
2246
  o(n) {
2239
- m(e.$$.fragment, n), r = !1;
2247
+ d(e.$$.fragment, n), r = !1;
2240
2248
  },
2241
2249
  d(n) {
2242
2250
  I(e, n);
2243
2251
  }
2244
2252
  };
2245
2253
  }
2246
- function Ur(t) {
2254
+ function Rr(t) {
2247
2255
  let e, r;
2248
2256
  return e = new Rt({
2249
2257
  props: {
@@ -2261,8 +2269,8 @@ function Ur(t) {
2261
2269
  ),
2262
2270
  type: "error",
2263
2271
  $$slots: {
2264
- icon: [Nr],
2265
- default: [Tr]
2272
+ icon: [Ur],
2273
+ default: [Nr]
2266
2274
  },
2267
2275
  $$scope: { ctx: t }
2268
2276
  }
@@ -2286,16 +2294,16 @@ function Ur(t) {
2286
2294
  r || (f(e.$$.fragment, n), r = !0);
2287
2295
  },
2288
2296
  o(n) {
2289
- m(e.$$.fragment, n), r = !1;
2297
+ d(e.$$.fragment, n), r = !1;
2290
2298
  },
2291
2299
  d(n) {
2292
2300
  I(e, n);
2293
2301
  }
2294
2302
  };
2295
2303
  }
2296
- function Rr(t, e, r) {
2304
+ function Sr(t, e, r) {
2297
2305
  let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
2298
- Oe(() => {
2306
+ Se(() => {
2299
2307
  G.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2300
2308
  });
2301
2309
  function l() {
@@ -2336,9 +2344,9 @@ function Rr(t, e, r) {
2336
2344
  i
2337
2345
  ];
2338
2346
  }
2339
- class Sr extends U {
2347
+ class Or extends U {
2340
2348
  constructor(e) {
2341
- super(), N(this, e, Rr, Ur, T, {
2349
+ super(), N(this, e, Sr, Rr, T, {
2342
2350
  brandingInfo: 0,
2343
2351
  lastError: 5,
2344
2352
  supportEmail: 1,
@@ -2346,15 +2354,15 @@ class Sr extends U {
2346
2354
  });
2347
2355
  }
2348
2356
  }
2349
- const Or = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
2350
- function Lr(t) {
2357
+ const Lr = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
2358
+ function xr(t) {
2351
2359
  x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2352
2360
  }
2353
- function xr(t) {
2361
+ function Fr(t) {
2354
2362
  let e, r;
2355
2363
  return {
2356
2364
  c() {
2357
- e = k("img"), Z(e.src, r = Or) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2365
+ e = k("img"), ee(e.src, r = Lr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2358
2366
  },
2359
2367
  m(n, i) {
2360
2368
  p(n, e, i);
@@ -2367,12 +2375,12 @@ function xr(t) {
2367
2375
  }
2368
2376
  };
2369
2377
  }
2370
- class Fr extends U {
2378
+ class Gr extends U {
2371
2379
  constructor(e) {
2372
- super(), N(this, e, null, xr, T, {}, Lr);
2380
+ super(), N(this, e, null, Fr, T, {}, xr);
2373
2381
  }
2374
2382
  }
2375
- function Gr(t) {
2383
+ function Yr(t) {
2376
2384
  let e;
2377
2385
  return {
2378
2386
  c() {
@@ -2386,9 +2394,9 @@ function Gr(t) {
2386
2394
  }
2387
2395
  };
2388
2396
  }
2389
- function Yr(t) {
2397
+ function Hr(t) {
2390
2398
  let e, r;
2391
- return e = new Fr({ props: { slot: "icon" } }), {
2399
+ return e = new Gr({ props: { slot: "icon" } }), {
2392
2400
  c() {
2393
2401
  w(e.$$.fragment);
2394
2402
  },
@@ -2400,14 +2408,14 @@ function Yr(t) {
2400
2408
  r || (f(e.$$.fragment, n), r = !0);
2401
2409
  },
2402
2410
  o(n) {
2403
- m(e.$$.fragment, n), r = !1;
2411
+ d(e.$$.fragment, n), r = !1;
2404
2412
  },
2405
2413
  d(n) {
2406
2414
  I(e, n);
2407
2415
  }
2408
2416
  };
2409
2417
  }
2410
- function Hr(t) {
2418
+ function Kr(t) {
2411
2419
  let e, r;
2412
2420
  return e = new Rt({
2413
2421
  props: {
@@ -2422,8 +2430,8 @@ function Hr(t) {
2422
2430
  t[1]
2423
2431
  ),
2424
2432
  $$slots: {
2425
- icon: [Yr],
2426
- default: [Gr]
2433
+ icon: [Hr],
2434
+ default: [Yr]
2427
2435
  },
2428
2436
  $$scope: { ctx: t }
2429
2437
  }
@@ -2447,37 +2455,37 @@ function Hr(t) {
2447
2455
  r || (f(e.$$.fragment, n), r = !0);
2448
2456
  },
2449
2457
  o(n) {
2450
- m(e.$$.fragment, n), r = !1;
2458
+ d(e.$$.fragment, n), r = !1;
2451
2459
  },
2452
2460
  d(n) {
2453
2461
  I(e, n);
2454
2462
  }
2455
2463
  };
2456
2464
  }
2457
- function Kr(t, e, r) {
2465
+ function qr(t, e, r) {
2458
2466
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
2459
2467
  return t.$$set = (o) => {
2460
2468
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2461
2469
  }, [n, i];
2462
2470
  }
2463
- class qr extends U {
2471
+ class jr extends U {
2464
2472
  constructor(e) {
2465
- super(), N(this, e, Kr, Hr, T, { brandingInfo: 0, onContinue: 1 });
2473
+ super(), N(this, e, qr, Kr, T, { brandingInfo: 0, onContinue: 1 });
2466
2474
  }
2467
2475
  }
2468
- function jr(t, e, r, n, i = {}) {
2476
+ function Jr(t, e, r, n, i = {}) {
2469
2477
  const o = r.create(e, i);
2470
2478
  return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
2471
2479
  }
2472
- const Jr = typeof window > "u";
2473
- function Vr(t) {
2474
- if (!Jr)
2480
+ const Vr = typeof window > "u";
2481
+ function Wr(t) {
2482
+ if (!Vr)
2475
2483
  return t.registerAppInfo({
2476
2484
  name: "svelte-stripe-js",
2477
2485
  url: "https://svelte-stripe-js.vercel.app"
2478
2486
  });
2479
2487
  }
2480
- function Wr(t) {
2488
+ function zr(t) {
2481
2489
  let e;
2482
2490
  return {
2483
2491
  c() {
@@ -2494,11 +2502,11 @@ function Wr(t) {
2494
2502
  }
2495
2503
  };
2496
2504
  }
2497
- function zr(t, e, r) {
2505
+ function Xr(t, e, r) {
2498
2506
  let n, i;
2499
- const o = _n(), { elements: s } = hn("stripe");
2507
+ const o = hn(), { elements: s } = En("stripe");
2500
2508
  let { options: l = void 0 } = e;
2501
- Oe(() => (n = jr(i, "payment", s, o, l), () => n.destroy()));
2509
+ Se(() => (n = Jr(i, "payment", s, o, l), () => n.destroy()));
2502
2510
  function c() {
2503
2511
  n.blur();
2504
2512
  }
@@ -2508,21 +2516,21 @@ function zr(t, e, r) {
2508
2516
  function u() {
2509
2517
  n.destroy();
2510
2518
  }
2511
- function d() {
2519
+ function m() {
2512
2520
  n.focus();
2513
2521
  }
2514
- function h($) {
2515
- Ue[$ ? "unshift" : "push"](() => {
2516
- i = $, r(0, i);
2522
+ function h(y) {
2523
+ Ue[y ? "unshift" : "push"](() => {
2524
+ i = y, r(0, i);
2517
2525
  });
2518
2526
  }
2519
- return t.$$set = ($) => {
2520
- "options" in $ && r(1, l = $.options);
2521
- }, [i, l, c, a, u, d, h];
2527
+ return t.$$set = (y) => {
2528
+ "options" in y && r(1, l = y.options);
2529
+ }, [i, l, c, a, u, m, h];
2522
2530
  }
2523
- class Xr extends U {
2531
+ class Zr extends U {
2524
2532
  constructor(e) {
2525
- super(), N(this, e, zr, Wr, T, {
2533
+ super(), N(this, e, Xr, zr, T, {
2526
2534
  options: 1,
2527
2535
  blur: 2,
2528
2536
  clear: 3,
@@ -2587,14 +2595,14 @@ function dt(t) {
2587
2595
  e || (f(n, i), e = !0);
2588
2596
  },
2589
2597
  o(i) {
2590
- m(n, i), e = !1;
2598
+ d(n, i), e = !1;
2591
2599
  },
2592
2600
  d(i) {
2593
2601
  n && n.d(i);
2594
2602
  }
2595
2603
  };
2596
2604
  }
2597
- function Zr(t) {
2605
+ function ei(t) {
2598
2606
  let e, r, n = (
2599
2607
  /*stripe*/
2600
2608
  t[1] && /*elements*/
@@ -2611,7 +2619,7 @@ function Zr(t) {
2611
2619
  /*stripe*/
2612
2620
  i[1] && /*elements*/
2613
2621
  i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2614
- 3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), m(n, 1, 1, () => {
2622
+ 3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
2615
2623
  n = null;
2616
2624
  }), K());
2617
2625
  },
@@ -2619,30 +2627,30 @@ function Zr(t) {
2619
2627
  r || (f(n), r = !0);
2620
2628
  },
2621
2629
  o(i) {
2622
- m(n), r = !1;
2630
+ d(n), r = !1;
2623
2631
  },
2624
2632
  d(i) {
2625
2633
  i && g(e), n && n.d(i);
2626
2634
  }
2627
2635
  };
2628
2636
  }
2629
- function ei(t, e, r) {
2630
- let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: d = "above" } = e, { loader: h = "auto" } = e, { fonts: $ = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: R = null } = e;
2631
- return t.$$set = (M) => {
2632
- "stripe" in M && r(1, s = M.stripe), "mode" in M && r(2, l = M.mode), "theme" in M && r(3, c = M.theme), "variables" in M && r(4, a = M.variables), "rules" in M && r(5, u = M.rules), "labels" in M && r(6, d = M.labels), "loader" in M && r(7, h = M.loader), "fonts" in M && r(8, $ = M.fonts), "locale" in M && r(9, E = M.locale), "currency" in M && r(10, B = M.currency), "amount" in M && r(11, A = M.amount), "clientSecret" in M && r(12, y = M.clientSecret), "elements" in M && r(0, R = M.elements), "$$scope" in M && r(14, o = M.$$scope);
2637
+ function ti(t, e, r) {
2638
+ let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: m = "above" } = e, { loader: h = "auto" } = e, { fonts: y = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: $ = void 0 } = e, { elements: R = null } = e;
2639
+ return t.$$set = (C) => {
2640
+ "stripe" in C && r(1, s = C.stripe), "mode" in C && r(2, l = C.mode), "theme" in C && r(3, c = C.theme), "variables" in C && r(4, a = C.variables), "rules" in C && r(5, u = C.rules), "labels" in C && r(6, m = C.labels), "loader" in C && r(7, h = C.loader), "fonts" in C && r(8, y = C.fonts), "locale" in C && r(9, E = C.locale), "currency" in C && r(10, B = C.currency), "amount" in C && r(11, A = C.amount), "clientSecret" in C && r(12, $ = C.clientSecret), "elements" in C && r(0, R = C.elements), "$$scope" in C && r(14, o = C.$$scope);
2633
2641
  }, t.$$.update = () => {
2634
2642
  t.$$.dirty & /*theme, variables, rules, labels*/
2635
- 120 && r(13, n = { theme: c, variables: a, rules: u, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2643
+ 120 && r(13, n = { theme: c, variables: a, rules: u, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2636
2644
  16263 && s && !R && (r(0, R = s.elements({
2637
2645
  mode: l,
2638
2646
  currency: B,
2639
2647
  amount: A,
2640
2648
  appearance: n,
2641
- clientSecret: y,
2642
- fonts: $,
2649
+ clientSecret: $,
2650
+ fonts: y,
2643
2651
  loader: h,
2644
2652
  locale: E
2645
- })), Vr(s), An("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2653
+ })), Wr(s), An("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2646
2654
  8705 && R && R.update({ appearance: n, locale: E });
2647
2655
  }, [
2648
2656
  R,
@@ -2651,21 +2659,21 @@ function ei(t, e, r) {
2651
2659
  c,
2652
2660
  a,
2653
2661
  u,
2654
- d,
2662
+ m,
2655
2663
  h,
2656
- $,
2664
+ y,
2657
2665
  E,
2658
2666
  B,
2659
2667
  A,
2660
- y,
2668
+ $,
2661
2669
  n,
2662
2670
  o,
2663
2671
  i
2664
2672
  ];
2665
2673
  }
2666
- class ti extends U {
2674
+ class ni extends U {
2667
2675
  constructor(e) {
2668
- super(), N(this, e, ei, Zr, T, {
2676
+ super(), N(this, e, ti, ei, T, {
2669
2677
  stripe: 1,
2670
2678
  mode: 2,
2671
2679
  theme: 3,
@@ -2682,10 +2690,10 @@ class ti extends U {
2682
2690
  });
2683
2691
  }
2684
2692
  }
2685
- var St = "https://js.stripe.com/v3", ni = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ri = function() {
2693
+ var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ii = function() {
2686
2694
  for (var e = document.querySelectorAll('script[src^="'.concat(St, '"]')), r = 0; r < e.length; r++) {
2687
2695
  var n = e[r];
2688
- if (ni.test(n.src))
2696
+ if (ri.test(n.src))
2689
2697
  return n;
2690
2698
  }
2691
2699
  return null;
@@ -2696,22 +2704,22 @@ var St = "https://js.stripe.com/v3", ni = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2696
2704
  if (!i)
2697
2705
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
2698
2706
  return i.appendChild(n), n;
2699
- }, ii = function(e, r) {
2707
+ }, oi = function(e, r) {
2700
2708
  !e || !e._registerWrapper || e._registerWrapper({
2701
2709
  name: "stripe-js",
2702
2710
  version: "2.4.0",
2703
2711
  startTime: r
2704
2712
  });
2705
- }, me = null, Ce = null, Qe = null, oi = function(e) {
2713
+ }, de = null, Pe = null, Me = null, si = function(e) {
2706
2714
  return function() {
2707
2715
  e(new Error("Failed to load Stripe.js"));
2708
2716
  };
2709
- }, si = function(e, r) {
2717
+ }, li = function(e, r) {
2710
2718
  return function() {
2711
2719
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2712
2720
  };
2713
- }, li = function(e) {
2714
- return me !== null ? me : (me = new Promise(function(r, n) {
2721
+ }, ci = function(e) {
2722
+ return de !== null ? de : (de = new Promise(function(r, n) {
2715
2723
  if (typeof window > "u" || typeof document > "u") {
2716
2724
  r(null);
2717
2725
  return;
@@ -2721,51 +2729,51 @@ var St = "https://js.stripe.com/v3", ni = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2721
2729
  return;
2722
2730
  }
2723
2731
  try {
2724
- var i = ri();
2732
+ var i = ii();
2725
2733
  if (i && e)
2726
2734
  console.warn(mt);
2727
2735
  else if (!i)
2728
2736
  i = gt(e);
2729
- else if (i && Qe !== null && Ce !== null) {
2737
+ else if (i && Me !== null && Pe !== null) {
2730
2738
  var o;
2731
- i.removeEventListener("load", Qe), i.removeEventListener("error", Ce), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
2739
+ i.removeEventListener("load", Me), i.removeEventListener("error", Pe), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
2732
2740
  }
2733
- Qe = si(r, n), Ce = oi(n), i.addEventListener("load", Qe), i.addEventListener("error", Ce);
2741
+ Me = li(r, n), Pe = si(n), i.addEventListener("load", Me), i.addEventListener("error", Pe);
2734
2742
  } catch (s) {
2735
2743
  n(s);
2736
2744
  return;
2737
2745
  }
2738
- }), me.catch(function(r) {
2739
- return me = null, Promise.reject(r);
2746
+ }), de.catch(function(r) {
2747
+ return de = null, Promise.reject(r);
2740
2748
  }));
2741
- }, ci = function(e, r, n) {
2749
+ }, ai = function(e, r, n) {
2742
2750
  if (e === null)
2743
2751
  return null;
2744
2752
  var i = e.apply(void 0, r);
2745
- return ii(i, n), i;
2746
- }, ge, Ot = !1, Lt = function() {
2747
- return ge || (ge = li(null).catch(function(e) {
2748
- return ge = null, Promise.reject(e);
2749
- }), ge);
2753
+ return oi(i, n), i;
2754
+ }, me, Ot = !1, Lt = function() {
2755
+ return me || (me = ci(null).catch(function(e) {
2756
+ return me = null, Promise.reject(e);
2757
+ }), me);
2750
2758
  };
2751
2759
  Promise.resolve().then(function() {
2752
2760
  return Lt();
2753
2761
  }).catch(function(t) {
2754
2762
  Ot || console.warn(t);
2755
2763
  });
2756
- var ai = function() {
2764
+ var ui = function() {
2757
2765
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2758
2766
  r[n] = arguments[n];
2759
2767
  Ot = !0;
2760
2768
  var i = Date.now();
2761
2769
  return Lt().then(function(o) {
2762
- return ci(o, r, i);
2770
+ return ai(o, r, i);
2763
2771
  });
2764
2772
  };
2765
- function ui(t) {
2773
+ function fi(t) {
2766
2774
  x(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2767
2775
  }
2768
- function fi(t) {
2776
+ function di(t) {
2769
2777
  let e, r;
2770
2778
  const n = (
2771
2779
  /*#slots*/
@@ -2809,19 +2817,19 @@ function fi(t) {
2809
2817
  r || (f(i, o), r = !0);
2810
2818
  },
2811
2819
  o(o) {
2812
- m(i, o), r = !1;
2820
+ d(i, o), r = !1;
2813
2821
  },
2814
2822
  d(o) {
2815
2823
  o && g(e), i && i.d(o);
2816
2824
  }
2817
2825
  };
2818
2826
  }
2819
- function di(t) {
2827
+ function mi(t) {
2820
2828
  let e, r;
2821
2829
  return e = new ue({
2822
2830
  props: {
2823
2831
  as: "header",
2824
- $$slots: { default: [fi] },
2832
+ $$slots: { default: [di] },
2825
2833
  $$scope: { ctx: t }
2826
2834
  }
2827
2835
  }), {
@@ -2840,14 +2848,14 @@ function di(t) {
2840
2848
  r || (f(e.$$.fragment, n), r = !0);
2841
2849
  },
2842
2850
  o(n) {
2843
- m(e.$$.fragment, n), r = !1;
2851
+ d(e.$$.fragment, n), r = !1;
2844
2852
  },
2845
2853
  d(n) {
2846
2854
  I(e, n);
2847
2855
  }
2848
2856
  };
2849
2857
  }
2850
- function mi(t, e, r) {
2858
+ function gi(t, e, r) {
2851
2859
  let { $$slots: n = {}, $$scope: i } = e;
2852
2860
  return t.$$set = (o) => {
2853
2861
  "$$scope" in o && r(1, i = o.$$scope);
@@ -2855,15 +2863,15 @@ function mi(t, e, r) {
2855
2863
  }
2856
2864
  class Xe extends U {
2857
2865
  constructor(e) {
2858
- super(), N(this, e, mi, di, T, {}, ui);
2866
+ super(), N(this, e, gi, mi, T, {}, fi);
2859
2867
  }
2860
2868
  }
2861
- const gi = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
2862
- function pi(t) {
2869
+ const pi = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
2870
+ function _i(t) {
2863
2871
  let e, r;
2864
2872
  return {
2865
2873
  c() {
2866
- e = k("img"), Z(e.src, r = gi) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2874
+ e = k("img"), ee(e.src, r = pi) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2867
2875
  },
2868
2876
  m(n, i) {
2869
2877
  p(n, e, i);
@@ -2876,12 +2884,12 @@ function pi(t) {
2876
2884
  }
2877
2885
  };
2878
2886
  }
2879
- class _i extends U {
2887
+ class hi extends U {
2880
2888
  constructor(e) {
2881
- super(), N(this, e, null, pi, T, {});
2889
+ super(), N(this, e, null, _i, T, {});
2882
2890
  }
2883
2891
  }
2884
- const _e = {
2892
+ const pe = {
2885
2893
  error: "#f2545b",
2886
2894
  warning: "#f4e971",
2887
2895
  focus: "#000080",
@@ -2898,7 +2906,7 @@ function Ai(t) {
2898
2906
  -20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
2899
2907
  -20px 0 #fff2;background:#fff2}}`);
2900
2908
  }
2901
- function hi(t) {
2909
+ function Ei(t) {
2902
2910
  let e;
2903
2911
  return {
2904
2912
  c() {
@@ -2917,13 +2925,13 @@ function hi(t) {
2917
2925
  }
2918
2926
  class xt extends U {
2919
2927
  constructor(e) {
2920
- super(), N(this, e, null, hi, T, {}, Ai);
2928
+ super(), N(this, e, null, Ei, T, {}, Ai);
2921
2929
  }
2922
2930
  }
2923
- function Ei(t) {
2931
+ function bi(t) {
2924
2932
  x(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2925
2933
  }
2926
- function bi(t) {
2934
+ function Ii(t) {
2927
2935
  let e, r;
2928
2936
  return e = new We({}), {
2929
2937
  c() {
@@ -2937,14 +2945,14 @@ function bi(t) {
2937
2945
  r || (f(e.$$.fragment, n), r = !0);
2938
2946
  },
2939
2947
  o(n) {
2940
- m(e.$$.fragment, n), r = !1;
2948
+ d(e.$$.fragment, n), r = !1;
2941
2949
  },
2942
2950
  d(n) {
2943
2951
  I(e, n);
2944
2952
  }
2945
2953
  };
2946
2954
  }
2947
- function Ii(t) {
2955
+ function wi(t) {
2948
2956
  let e, r, n, i, o, s;
2949
2957
  function l(a) {
2950
2958
  t[9](a);
@@ -2965,17 +2973,17 @@ function Ii(t) {
2965
2973
  fontSizeBase: "16px",
2966
2974
  fontSizeSm: "16px",
2967
2975
  spacingGridRow: "16px",
2968
- colorText: _e["grey-text-dark"],
2976
+ colorText: pe["grey-text-dark"],
2969
2977
  focusBoxShadow: "none",
2970
- colorDanger: _e.error
2978
+ colorDanger: pe.error
2971
2979
  },
2972
2980
  rules: {
2973
2981
  ".Input": {
2974
2982
  boxShadow: "none",
2975
- border: `2px solid ${_e["grey-ui-dark"]}`
2983
+ border: `2px solid ${pe["grey-ui-dark"]}`
2976
2984
  },
2977
2985
  ".Input:focus": {
2978
- border: `2px solid ${_e.focus}`,
2986
+ border: `2px solid ${pe.focus}`,
2979
2987
  outline: "none"
2980
2988
  },
2981
2989
  ".Label": {
@@ -2985,36 +2993,36 @@ function Ii(t) {
2985
2993
  },
2986
2994
  ".Input--invalid": { boxShadow: "none" }
2987
2995
  },
2988
- $$slots: { default: [Ci] },
2996
+ $$slots: { default: [Mi] },
2989
2997
  $$scope: { ctx: t }
2990
2998
  };
2991
2999
  return (
2992
3000
  /*elements*/
2993
3001
  t[2] !== void 0 && (c.elements = /*elements*/
2994
- t[2]), r = new ti({ props: c }), Ue.push(() => $n(r, "elements", l)), {
3002
+ t[2]), r = new ni({ props: c }), Ue.push(() => vn(r, "elements", l)), {
2995
3003
  c() {
2996
3004
  e = k("form"), w(r.$$.fragment);
2997
3005
  },
2998
3006
  m(a, u) {
2999
- p(a, e, u), b(r, e, null), i = !0, o || (s = ke(e, "submit", Mt(
3007
+ p(a, e, u), b(r, e, null), i = !0, o || (s = we(e, "submit", Ct(
3000
3008
  /*handleContinue*/
3001
3009
  t[5]
3002
3010
  )), o = !0);
3003
3011
  },
3004
3012
  p(a, u) {
3005
- const d = {};
3013
+ const m = {};
3006
3014
  u & /*stripe*/
3007
- 8 && (d.stripe = /*stripe*/
3015
+ 8 && (m.stripe = /*stripe*/
3008
3016
  a[3]), u & /*$$scope, processing, onClose*/
3009
- 2051 && (d.$$scope = { dirty: u, ctx: a }), !n && u & /*elements*/
3010
- 4 && (n = !0, d.elements = /*elements*/
3011
- a[2], In(() => n = !1)), r.$set(d);
3017
+ 2051 && (m.$$scope = { dirty: u, ctx: a }), !n && u & /*elements*/
3018
+ 4 && (n = !0, m.elements = /*elements*/
3019
+ a[2], wn(() => n = !1)), r.$set(m);
3012
3020
  },
3013
3021
  i(a) {
3014
3022
  i || (f(r.$$.fragment, a), i = !0);
3015
3023
  },
3016
3024
  o(a) {
3017
- m(r.$$.fragment, a), i = !1;
3025
+ d(r.$$.fragment, a), i = !1;
3018
3026
  },
3019
3027
  d(a) {
3020
3028
  a && g(e), I(r), o = !1, s();
@@ -3022,11 +3030,11 @@ function Ii(t) {
3022
3030
  }
3023
3031
  );
3024
3032
  }
3025
- function wi(t) {
3033
+ function ki(t) {
3026
3034
  let e, r, n, i;
3027
- return n = new _i({}), {
3035
+ return n = new hi({}), {
3028
3036
  c() {
3029
- e = k("div"), e.textContent = "Secure Checkout", r = P(), w(n.$$.fragment);
3037
+ e = k("div"), e.textContent = "Secure Checkout", r = Q(), w(n.$$.fragment);
3030
3038
  },
3031
3039
  m(o, s) {
3032
3040
  p(o, e, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3036,16 +3044,16 @@ function wi(t) {
3036
3044
  i || (f(n.$$.fragment, o), i = !0);
3037
3045
  },
3038
3046
  o(o) {
3039
- m(n.$$.fragment, o), i = !1;
3047
+ d(n.$$.fragment, o), i = !1;
3040
3048
  },
3041
3049
  d(o) {
3042
3050
  o && (g(e), g(r)), I(n, o);
3043
3051
  }
3044
3052
  };
3045
3053
  }
3046
- function ki(t) {
3054
+ function yi(t) {
3047
3055
  let e, r, n;
3048
- return r = new Xr({}), {
3056
+ return r = new Zr({}), {
3049
3057
  c() {
3050
3058
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
3051
3059
  },
@@ -3057,14 +3065,14 @@ function ki(t) {
3057
3065
  n || (f(r.$$.fragment, i), n = !0);
3058
3066
  },
3059
3067
  o(i) {
3060
- m(r.$$.fragment, i), n = !1;
3068
+ d(r.$$.fragment, i), n = !1;
3061
3069
  },
3062
3070
  d(i) {
3063
3071
  i && g(e), I(r);
3064
3072
  }
3065
3073
  };
3066
3074
  }
3067
- function $i(t) {
3075
+ function vi(t) {
3068
3076
  let e;
3069
3077
  return {
3070
3078
  c() {
@@ -3080,7 +3088,7 @@ function $i(t) {
3080
3088
  }
3081
3089
  };
3082
3090
  }
3083
- function vi(t) {
3091
+ function $i(t) {
3084
3092
  let e, r;
3085
3093
  return e = new xt({}), {
3086
3094
  c() {
@@ -3093,16 +3101,16 @@ function vi(t) {
3093
3101
  r || (f(e.$$.fragment, n), r = !0);
3094
3102
  },
3095
3103
  o(n) {
3096
- m(e.$$.fragment, n), r = !1;
3104
+ d(e.$$.fragment, n), r = !1;
3097
3105
  },
3098
3106
  d(n) {
3099
3107
  I(e, n);
3100
3108
  }
3101
3109
  };
3102
3110
  }
3103
- function yi(t) {
3111
+ function Bi(t) {
3104
3112
  let e, r, n, i;
3105
- const o = [vi, $i], s = [];
3113
+ const o = [$i, vi], s = [];
3106
3114
  function l(c, a) {
3107
3115
  return (
3108
3116
  /*processing*/
@@ -3118,7 +3126,7 @@ function yi(t) {
3118
3126
  },
3119
3127
  p(c, a) {
3120
3128
  let u = e;
3121
- e = l(c), e !== u && (H(), m(s[u], 1, 1, () => {
3129
+ e = l(c), e !== u && (H(), d(s[u], 1, 1, () => {
3122
3130
  s[u] = null;
3123
3131
  }), K(), r = s[e], r || (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
3124
3132
  },
@@ -3126,14 +3134,14 @@ function yi(t) {
3126
3134
  i || (f(r), i = !0);
3127
3135
  },
3128
3136
  o(c) {
3129
- m(r), i = !1;
3137
+ d(r), i = !1;
3130
3138
  },
3131
3139
  d(c) {
3132
3140
  c && g(n), s[e].d(c);
3133
3141
  }
3134
3142
  };
3135
3143
  }
3136
- function Bi(t) {
3144
+ function Di(t) {
3137
3145
  let e;
3138
3146
  return {
3139
3147
  c() {
@@ -3147,25 +3155,25 @@ function Bi(t) {
3147
3155
  }
3148
3156
  };
3149
3157
  }
3150
- function Di(t) {
3158
+ function Ci(t) {
3151
3159
  let e, r, n, i;
3152
- return e = new Ie({
3160
+ return e = new be({
3153
3161
  props: {
3154
3162
  disabled: (
3155
3163
  /*processing*/
3156
3164
  t[0]
3157
3165
  ),
3158
- $$slots: { default: [yi] },
3166
+ $$slots: { default: [Bi] },
3159
3167
  $$scope: { ctx: t }
3160
3168
  }
3161
- }), n = new Ie({
3169
+ }), n = new be({
3162
3170
  props: {
3163
3171
  disabled: (
3164
3172
  /*processing*/
3165
3173
  t[0]
3166
3174
  ),
3167
3175
  intent: "secondary",
3168
- $$slots: { default: [Bi] },
3176
+ $$slots: { default: [Di] },
3169
3177
  $$scope: { ctx: t }
3170
3178
  }
3171
3179
  }), n.$on("click", function() {
@@ -3175,7 +3183,7 @@ function Di(t) {
3175
3183
  ) && t[1].apply(this, arguments);
3176
3184
  }), {
3177
3185
  c() {
3178
- w(e.$$.fragment), r = P(), w(n.$$.fragment);
3186
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3179
3187
  },
3180
3188
  m(o, s) {
3181
3189
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3197,18 +3205,18 @@ function Di(t) {
3197
3205
  i || (f(e.$$.fragment, o), f(n.$$.fragment, o), i = !0);
3198
3206
  },
3199
3207
  o(o) {
3200
- m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
3208
+ d(e.$$.fragment, o), d(n.$$.fragment, o), i = !1;
3201
3209
  },
3202
3210
  d(o) {
3203
3211
  o && g(r), I(e, o), I(n, o);
3204
3212
  }
3205
3213
  };
3206
3214
  }
3207
- function Mi(t) {
3215
+ function Pi(t) {
3208
3216
  let e, r;
3209
- return e = new $e({
3217
+ return e = new ye({
3210
3218
  props: {
3211
- $$slots: { default: [Di] },
3219
+ $$slots: { default: [Ci] },
3212
3220
  $$scope: { ctx: t }
3213
3221
  }
3214
3222
  }), {
@@ -3227,33 +3235,33 @@ function Mi(t) {
3227
3235
  r || (f(e.$$.fragment, n), r = !0);
3228
3236
  },
3229
3237
  o(n) {
3230
- m(e.$$.fragment, n), r = !1;
3238
+ d(e.$$.fragment, n), r = !1;
3231
3239
  },
3232
3240
  d(n) {
3233
3241
  I(e, n);
3234
3242
  }
3235
3243
  };
3236
3244
  }
3237
- function Ci(t) {
3245
+ function Mi(t) {
3238
3246
  let e, r, n, i, o, s;
3239
3247
  return e = new Xe({
3240
3248
  props: {
3241
- $$slots: { default: [wi] },
3249
+ $$slots: { default: [ki] },
3242
3250
  $$scope: { ctx: t }
3243
3251
  }
3244
3252
  }), n = new ue({
3245
3253
  props: {
3246
- $$slots: { default: [ki] },
3254
+ $$slots: { default: [yi] },
3247
3255
  $$scope: { ctx: t }
3248
3256
  }
3249
3257
  }), o = new ze({
3250
3258
  props: {
3251
- $$slots: { default: [Mi] },
3259
+ $$slots: { default: [Pi] },
3252
3260
  $$scope: { ctx: t }
3253
3261
  }
3254
3262
  }), {
3255
3263
  c() {
3256
- w(e.$$.fragment), r = P(), w(n.$$.fragment), i = P(), w(o.$$.fragment);
3264
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
3257
3265
  },
3258
3266
  m(l, c) {
3259
3267
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -3265,15 +3273,15 @@ function Ci(t) {
3265
3273
  const u = {};
3266
3274
  c & /*$$scope*/
3267
3275
  2048 && (u.$$scope = { dirty: c, ctx: l }), n.$set(u);
3268
- const d = {};
3276
+ const m = {};
3269
3277
  c & /*$$scope, processing, onClose*/
3270
- 2051 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
3278
+ 2051 && (m.$$scope = { dirty: c, ctx: l }), o.$set(m);
3271
3279
  },
3272
3280
  i(l) {
3273
3281
  s || (f(e.$$.fragment, l), f(n.$$.fragment, l), f(o.$$.fragment, l), s = !0);
3274
3282
  },
3275
3283
  o(l) {
3276
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
3284
+ d(e.$$.fragment, l), d(n.$$.fragment, l), d(o.$$.fragment, l), s = !1;
3277
3285
  },
3278
3286
  d(l) {
3279
3287
  l && (g(r), g(i)), I(e, l), I(n, l), I(o, l);
@@ -3282,7 +3290,7 @@ function Ci(t) {
3282
3290
  }
3283
3291
  function Qi(t) {
3284
3292
  let e, r, n, i;
3285
- const o = [Ii, bi], s = [];
3293
+ const o = [wi, Ii], s = [];
3286
3294
  function l(c, a) {
3287
3295
  return (
3288
3296
  /*stripe*/
@@ -3299,7 +3307,7 @@ function Qi(t) {
3299
3307
  },
3300
3308
  p(c, [a]) {
3301
3309
  let u = r;
3302
- r = l(c), r === u ? s[r].p(c, a) : (H(), m(s[u], 1, 1, () => {
3310
+ r = l(c), r === u ? s[r].p(c, a) : (H(), d(s[u], 1, 1, () => {
3303
3311
  s[u] = null;
3304
3312
  }), K(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), f(n, 1), n.m(e, null));
3305
3313
  },
@@ -3307,41 +3315,41 @@ function Qi(t) {
3307
3315
  i || (f(n), i = !0);
3308
3316
  },
3309
3317
  o(c) {
3310
- m(n), i = !1;
3318
+ d(n), i = !1;
3311
3319
  },
3312
3320
  d(c) {
3313
3321
  c && g(e), s[r].d();
3314
3322
  }
3315
3323
  };
3316
3324
  }
3317
- function Pi(t, e, r) {
3325
+ function Ti(t, e, r) {
3318
3326
  let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
3319
3327
  const c = s.data.client_secret;
3320
- let a = null, u, d;
3321
- Oe(async () => {
3328
+ let a = null, u, m;
3329
+ Se(async () => {
3322
3330
  const E = s.data.publishable_api_key, B = s.data.stripe_account_id;
3323
3331
  if (!E || !B)
3324
3332
  throw new Error("Stripe publishable key or account ID not found");
3325
- r(3, a = await ai(E, { stripeAccount: B }));
3333
+ r(3, a = await ui(E, { stripeAccount: B }));
3326
3334
  });
3327
3335
  const h = async () => {
3328
- if (l || !a || !d)
3336
+ if (l || !a || !m)
3329
3337
  return;
3330
3338
  r(0, l = !0);
3331
3339
  const E = await a.confirmSetup({
3332
- elements: d,
3340
+ elements: m,
3333
3341
  redirect: "if_required"
3334
3342
  });
3335
3343
  E.error ? (r(0, l = !1), o(new Y(O.StripeError, E.error.message))) : i();
3336
3344
  };
3337
- function $(E) {
3345
+ function y(E) {
3338
3346
  u = E, r(2, u);
3339
3347
  }
3340
3348
  return t.$$set = (E) => {
3341
3349
  "onClose" in E && r(1, n = E.onClose), "onContinue" in E && r(6, i = E.onContinue), "onError" in E && r(7, o = E.onError), "paymentInfoCollectionMetadata" in E && r(8, s = E.paymentInfoCollectionMetadata), "processing" in E && r(0, l = E.processing);
3342
3350
  }, t.$$.update = () => {
3343
3351
  t.$$.dirty & /*elements*/
3344
- 4 && u && u._elements.length > 0 && (d = u);
3352
+ 4 && u && u._elements.length > 0 && (m = u);
3345
3353
  }, [
3346
3354
  l,
3347
3355
  n,
@@ -3352,15 +3360,15 @@ function Pi(t, e, r) {
3352
3360
  i,
3353
3361
  o,
3354
3362
  s,
3355
- $
3363
+ y
3356
3364
  ];
3357
3365
  }
3358
- class Ti extends U {
3366
+ class Ni extends U {
3359
3367
  constructor(e) {
3360
3368
  super(), N(
3361
3369
  this,
3362
3370
  e,
3363
- Pi,
3371
+ Ti,
3364
3372
  Qi,
3365
3373
  T,
3366
3374
  {
@@ -3370,17 +3378,17 @@ class Ti extends U {
3370
3378
  paymentInfoCollectionMetadata: 8,
3371
3379
  processing: 0
3372
3380
  },
3373
- Ei
3381
+ bi
3374
3382
  );
3375
3383
  }
3376
3384
  }
3377
- function Ni(t) {
3385
+ function Ui(t) {
3378
3386
  return t.trim() === "" ? "You need to provide your email address to continue." : t.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
3379
3387
  }
3380
- function Ui(t) {
3388
+ function Ri(t) {
3381
3389
  x(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3382
3390
  }
3383
- function Ri(t) {
3391
+ function Si(t) {
3384
3392
  let e;
3385
3393
  return {
3386
3394
  c() {
@@ -3404,7 +3412,7 @@ function pt(t) {
3404
3412
  ), _(e, "class", "form-error svelte-favd20");
3405
3413
  },
3406
3414
  m(n, i) {
3407
- p(n, e, i), C(e, r);
3415
+ p(n, e, i), M(e, r);
3408
3416
  },
3409
3417
  p(n, i) {
3410
3418
  i & /*error*/
@@ -3419,46 +3427,46 @@ function pt(t) {
3419
3427
  }
3420
3428
  };
3421
3429
  }
3422
- function Si(t) {
3430
+ function Oi(t) {
3423
3431
  let e, r, n, i, o, s, l, c, a, u = (
3424
3432
  /*error*/
3425
3433
  t[2] && pt(t)
3426
3434
  );
3427
3435
  return {
3428
3436
  c() {
3429
- e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = P(), i = k("div"), o = k("input"), l = P(), u && u.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3437
+ e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = Q(), i = k("div"), o = k("input"), l = Q(), u && u.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3430
3438
  t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3431
3439
  },
3432
- m(d, h) {
3433
- p(d, e, h), C(e, r), C(e, n), C(e, i), C(i, o), lt(
3440
+ m(m, h) {
3441
+ p(m, e, h), M(e, r), M(e, n), M(e, i), M(i, o), lt(
3434
3442
  o,
3435
3443
  /*email*/
3436
3444
  t[3]
3437
- ), C(e, l), u && u.m(e, null), c || (a = ke(
3445
+ ), M(e, l), u && u.m(e, null), c || (a = we(
3438
3446
  o,
3439
3447
  "input",
3440
3448
  /*input_input_handler*/
3441
- t[7]
3449
+ t[8]
3442
3450
  ), c = !0);
3443
3451
  },
3444
- p(d, h) {
3452
+ p(m, h) {
3445
3453
  h & /*email*/
3446
3454
  8 && o.value !== /*email*/
3447
- d[3] && lt(
3455
+ m[3] && lt(
3448
3456
  o,
3449
3457
  /*email*/
3450
- d[3]
3458
+ m[3]
3451
3459
  ), h & /*inputClass*/
3452
3460
  16 && s !== (s = "form-input " + /*inputClass*/
3453
- d[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3454
- d[2] ? u ? u.p(d, h) : (u = pt(d), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3461
+ m[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3462
+ m[2] ? u ? u.p(m, h) : (u = pt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3455
3463
  },
3456
- d(d) {
3457
- d && g(e), u && u.d(), c = !1, a();
3464
+ d(m) {
3465
+ m && g(e), u && u.d(), c = !1, a();
3458
3466
  }
3459
3467
  };
3460
3468
  }
3461
- function Oi(t) {
3469
+ function Li(t) {
3462
3470
  let e;
3463
3471
  return {
3464
3472
  c() {
@@ -3474,7 +3482,7 @@ function Oi(t) {
3474
3482
  }
3475
3483
  };
3476
3484
  }
3477
- function Li(t) {
3485
+ function xi(t) {
3478
3486
  let e, r;
3479
3487
  return e = new xt({}), {
3480
3488
  c() {
@@ -3487,16 +3495,16 @@ function Li(t) {
3487
3495
  r || (f(e.$$.fragment, n), r = !0);
3488
3496
  },
3489
3497
  o(n) {
3490
- m(e.$$.fragment, n), r = !1;
3498
+ d(e.$$.fragment, n), r = !1;
3491
3499
  },
3492
3500
  d(n) {
3493
3501
  I(e, n);
3494
3502
  }
3495
3503
  };
3496
3504
  }
3497
- function xi(t) {
3505
+ function Fi(t) {
3498
3506
  let e, r, n, i;
3499
- const o = [Li, Oi], s = [];
3507
+ const o = [xi, Li], s = [];
3500
3508
  function l(c, a) {
3501
3509
  return (
3502
3510
  /*processing*/
@@ -3512,7 +3520,7 @@ function xi(t) {
3512
3520
  },
3513
3521
  p(c, a) {
3514
3522
  let u = e;
3515
- e = l(c), e !== u && (H(), m(s[u], 1, 1, () => {
3523
+ e = l(c), e !== u && (H(), d(s[u], 1, 1, () => {
3516
3524
  s[u] = null;
3517
3525
  }), K(), r = s[e], r || (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
3518
3526
  },
@@ -3520,14 +3528,14 @@ function xi(t) {
3520
3528
  i || (f(r), i = !0);
3521
3529
  },
3522
3530
  o(c) {
3523
- m(r), i = !1;
3531
+ d(r), i = !1;
3524
3532
  },
3525
3533
  d(c) {
3526
3534
  c && g(n), s[e].d(c);
3527
3535
  }
3528
3536
  };
3529
3537
  }
3530
- function Fi(t) {
3538
+ function Gi(t) {
3531
3539
  let e;
3532
3540
  return {
3533
3541
  c() {
@@ -3541,25 +3549,25 @@ function Fi(t) {
3541
3549
  }
3542
3550
  };
3543
3551
  }
3544
- function Gi(t) {
3552
+ function Yi(t) {
3545
3553
  let e, r, n, i;
3546
- return e = new Ie({
3554
+ return e = new be({
3547
3555
  props: {
3548
3556
  disabled: (
3549
3557
  /*processing*/
3550
3558
  t[1]
3551
3559
  ),
3552
- $$slots: { default: [xi] },
3560
+ $$slots: { default: [Fi] },
3553
3561
  $$scope: { ctx: t }
3554
3562
  }
3555
- }), n = new Ie({
3563
+ }), n = new be({
3556
3564
  props: {
3557
3565
  intent: "secondary",
3558
3566
  disabled: (
3559
3567
  /*processing*/
3560
3568
  t[1]
3561
3569
  ),
3562
- $$slots: { default: [Fi] },
3570
+ $$slots: { default: [Gi] },
3563
3571
  $$scope: { ctx: t }
3564
3572
  }
3565
3573
  }), n.$on("click", function() {
@@ -3569,7 +3577,7 @@ function Gi(t) {
3569
3577
  ) && t[0].apply(this, arguments);
3570
3578
  }), {
3571
3579
  c() {
3572
- w(e.$$.fragment), r = P(), w(n.$$.fragment);
3580
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3573
3581
  },
3574
3582
  m(o, s) {
3575
3583
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3580,29 +3588,29 @@ function Gi(t) {
3580
3588
  s & /*processing*/
3581
3589
  2 && (l.disabled = /*processing*/
3582
3590
  t[1]), s & /*$$scope, processing*/
3583
- 258 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
3591
+ 514 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
3584
3592
  const c = {};
3585
3593
  s & /*processing*/
3586
3594
  2 && (c.disabled = /*processing*/
3587
3595
  t[1]), s & /*$$scope*/
3588
- 256 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
3596
+ 512 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
3589
3597
  },
3590
3598
  i(o) {
3591
3599
  i || (f(e.$$.fragment, o), f(n.$$.fragment, o), i = !0);
3592
3600
  },
3593
3601
  o(o) {
3594
- m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
3602
+ d(e.$$.fragment, o), d(n.$$.fragment, o), i = !1;
3595
3603
  },
3596
3604
  d(o) {
3597
3605
  o && g(r), I(e, o), I(n, o);
3598
3606
  }
3599
3607
  };
3600
3608
  }
3601
- function Yi(t) {
3609
+ function Hi(t) {
3602
3610
  let e, r;
3603
- return e = new $e({
3611
+ return e = new ye({
3604
3612
  props: {
3605
- $$slots: { default: [Gi] },
3613
+ $$slots: { default: [Yi] },
3606
3614
  $$scope: { ctx: t }
3607
3615
  }
3608
3616
  }), {
@@ -3615,79 +3623,82 @@ function Yi(t) {
3615
3623
  p(n, i) {
3616
3624
  const o = {};
3617
3625
  i & /*$$scope, processing, onClose*/
3618
- 259 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3626
+ 515 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3619
3627
  },
3620
3628
  i(n) {
3621
3629
  r || (f(e.$$.fragment, n), r = !0);
3622
3630
  },
3623
3631
  o(n) {
3624
- m(e.$$.fragment, n), r = !1;
3632
+ d(e.$$.fragment, n), r = !1;
3625
3633
  },
3626
3634
  d(n) {
3627
3635
  I(e, n);
3628
3636
  }
3629
3637
  };
3630
3638
  }
3631
- function Hi(t) {
3639
+ function Ki(t) {
3632
3640
  let e, r, n, i, o, s, l, c, a;
3633
3641
  return r = new Xe({
3634
3642
  props: {
3635
- $$slots: { default: [Ri] },
3643
+ $$slots: { default: [Si] },
3636
3644
  $$scope: { ctx: t }
3637
3645
  }
3638
3646
  }), i = new ue({
3639
3647
  props: {
3640
- $$slots: { default: [Si] },
3648
+ $$slots: { default: [Oi] },
3641
3649
  $$scope: { ctx: t }
3642
3650
  }
3643
3651
  }), s = new ze({
3644
3652
  props: {
3645
- $$slots: { default: [Yi] },
3653
+ $$slots: { default: [Hi] },
3646
3654
  $$scope: { ctx: t }
3647
3655
  }
3648
3656
  }), {
3649
3657
  c() {
3650
- e = k("form"), w(r.$$.fragment), n = P(), w(i.$$.fragment), o = P(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3658
+ e = k("form"), w(r.$$.fragment), n = Q(), w(i.$$.fragment), o = Q(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3651
3659
  },
3652
- m(u, d) {
3653
- p(u, e, d), b(r, e, null), C(e, n), b(i, e, null), C(e, o), b(s, e, null), l = !0, c || (a = ke(e, "submit", Mt(
3660
+ m(u, m) {
3661
+ p(u, e, m), b(r, e, null), M(e, n), b(i, e, null), M(e, o), b(s, e, null), l = !0, c || (a = we(e, "submit", Ct(
3654
3662
  /*handleContinue*/
3655
3663
  t[5]
3656
3664
  )), c = !0);
3657
3665
  },
3658
- p(u, [d]) {
3666
+ p(u, [m]) {
3659
3667
  const h = {};
3660
- d & /*$$scope*/
3661
- 256 && (h.$$scope = { dirty: d, ctx: u }), r.$set(h);
3662
- const $ = {};
3663
- d & /*$$scope, error, inputClass, email*/
3664
- 284 && ($.$$scope = { dirty: d, ctx: u }), i.$set($);
3668
+ m & /*$$scope*/
3669
+ 512 && (h.$$scope = { dirty: m, ctx: u }), r.$set(h);
3670
+ const y = {};
3671
+ m & /*$$scope, error, inputClass, email*/
3672
+ 540 && (y.$$scope = { dirty: m, ctx: u }), i.$set(y);
3665
3673
  const E = {};
3666
- d & /*$$scope, processing, onClose*/
3667
- 259 && (E.$$scope = { dirty: d, ctx: u }), s.$set(E);
3674
+ m & /*$$scope, processing, onClose*/
3675
+ 515 && (E.$$scope = { dirty: m, ctx: u }), s.$set(E);
3668
3676
  },
3669
3677
  i(u) {
3670
3678
  l || (f(r.$$.fragment, u), f(i.$$.fragment, u), f(s.$$.fragment, u), l = !0);
3671
3679
  },
3672
3680
  o(u) {
3673
- m(r.$$.fragment, u), m(i.$$.fragment, u), m(s.$$.fragment, u), l = !1;
3681
+ d(r.$$.fragment, u), d(i.$$.fragment, u), d(s.$$.fragment, u), l = !1;
3674
3682
  },
3675
3683
  d(u) {
3676
3684
  u && g(e), I(r), I(i), I(s), c = !1, a();
3677
3685
  }
3678
3686
  };
3679
3687
  }
3680
- function Ki(t, e, r) {
3681
- let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
3682
- const a = async () => {
3683
- const d = Ni(n);
3684
- d ? r(2, i = d) : s({ email: n });
3688
+ function qi(t, e, r) {
3689
+ let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e, { lastError: a } = e;
3690
+ const u = async () => {
3691
+ const h = Ui(n);
3692
+ h ? r(2, i = h) : s({ email: n });
3685
3693
  };
3686
- function u() {
3694
+ _n(async () => {
3695
+ r(2, i = (a == null ? void 0 : a.message) ?? "");
3696
+ });
3697
+ function m() {
3687
3698
  n = this.value, r(3, n);
3688
3699
  }
3689
- return t.$$set = (d) => {
3690
- "onContinue" in d && r(6, s = d.onContinue), "onClose" in d && r(0, l = d.onClose), "processing" in d && r(1, c = d.processing);
3700
+ return t.$$set = (h) => {
3701
+ "onContinue" in h && r(6, s = h.onContinue), "onClose" in h && r(0, l = h.onClose), "processing" in h && r(1, c = h.processing), "lastError" in h && r(7, a = h.lastError);
3691
3702
  }, t.$$.update = () => {
3692
3703
  t.$$.dirty & /*error*/
3693
3704
  4 && r(4, o = i ? "error" : "");
@@ -3697,20 +3708,34 @@ function Ki(t, e, r) {
3697
3708
  i,
3698
3709
  n,
3699
3710
  o,
3700
- a,
3711
+ u,
3701
3712
  s,
3702
- u
3713
+ a,
3714
+ m
3703
3715
  ];
3704
3716
  }
3705
- class qi extends U {
3717
+ class ji extends U {
3706
3718
  constructor(e) {
3707
- super(), N(this, e, Ki, Hi, T, { onContinue: 6, onClose: 0, processing: 1 }, Ui);
3719
+ super(), N(
3720
+ this,
3721
+ e,
3722
+ qi,
3723
+ Ki,
3724
+ T,
3725
+ {
3726
+ onContinue: 6,
3727
+ onClose: 0,
3728
+ processing: 1,
3729
+ lastError: 7
3730
+ },
3731
+ Ri
3732
+ );
3708
3733
  }
3709
3734
  }
3710
- function ji(t) {
3735
+ function Ji(t) {
3711
3736
  x(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3712
3737
  }
3713
- function Ji(t) {
3738
+ function Vi(t) {
3714
3739
  let e, r;
3715
3740
  const n = (
3716
3741
  /*#slots*/
@@ -3754,28 +3779,28 @@ function Ji(t) {
3754
3779
  r || (f(i, o), r = !0);
3755
3780
  },
3756
3781
  o(o) {
3757
- m(i, o), r = !1;
3782
+ d(i, o), r = !1;
3758
3783
  },
3759
3784
  d(o) {
3760
3785
  o && g(e), i && i.d(o);
3761
3786
  }
3762
3787
  };
3763
3788
  }
3764
- function Vi(t, e, r) {
3789
+ function Wi(t, e, r) {
3765
3790
  let { $$slots: n = {}, $$scope: i } = e;
3766
3791
  return t.$$set = (o) => {
3767
3792
  "$$scope" in o && r(0, i = o.$$scope);
3768
3793
  }, [i, n];
3769
3794
  }
3770
- class Wi extends U {
3795
+ class zi extends U {
3771
3796
  constructor(e) {
3772
- super(), N(this, e, Vi, Ji, T, {}, ji);
3797
+ super(), N(this, e, Wi, Vi, T, {}, Ji);
3773
3798
  }
3774
3799
  }
3775
- function zi(t) {
3800
+ function Xi(t) {
3776
3801
  x(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
3777
3802
  }
3778
- function Xi(t) {
3803
+ function Zi(t) {
3779
3804
  let e, r, n, i;
3780
3805
  const o = (
3781
3806
  /*#slots*/
@@ -3789,11 +3814,11 @@ function Xi(t) {
3789
3814
  );
3790
3815
  return {
3791
3816
  c() {
3792
- e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ee(`rcb-modal-main ${/*dark*/
3817
+ e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ae(`rcb-modal-main ${/*dark*/
3793
3818
  t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3794
3819
  },
3795
3820
  m(l, c) {
3796
- p(l, e, c), C(e, r), s && s.m(r, null), i = !0;
3821
+ p(l, e, c), M(e, r), s && s.m(r, null), i = !0;
3797
3822
  },
3798
3823
  p(l, [c]) {
3799
3824
  s && s.p && (!i || c & /*$$scope*/
@@ -3815,32 +3840,32 @@ function Xi(t) {
3815
3840
  ),
3816
3841
  null
3817
3842
  ), (!i || c & /*dark*/
3818
- 1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
3843
+ 1 && n !== (n = Ae(`rcb-modal-main ${/*dark*/
3819
3844
  l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3820
3845
  },
3821
3846
  i(l) {
3822
3847
  i || (f(s, l), i = !0);
3823
3848
  },
3824
3849
  o(l) {
3825
- m(s, l), i = !1;
3850
+ d(s, l), i = !1;
3826
3851
  },
3827
3852
  d(l) {
3828
3853
  l && g(e), s && s.d(l);
3829
3854
  }
3830
3855
  };
3831
3856
  }
3832
- function Zi(t, e, r) {
3857
+ function eo(t, e, r) {
3833
3858
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3834
3859
  return t.$$set = (s) => {
3835
3860
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3836
3861
  }, [o, i, n];
3837
3862
  }
3838
- class eo extends U {
3863
+ class to extends U {
3839
3864
  constructor(e) {
3840
- super(), N(this, e, Zi, Xi, T, { dark: 0 }, zi);
3865
+ super(), N(this, e, eo, Zi, T, { dark: 0 }, Xi);
3841
3866
  }
3842
3867
  }
3843
- function to(t) {
3868
+ function no(t) {
3844
3869
  let e;
3845
3870
  const r = (
3846
3871
  /*#slots*/
@@ -3884,18 +3909,18 @@ function to(t) {
3884
3909
  e || (f(n, i), e = !0);
3885
3910
  },
3886
3911
  o(i) {
3887
- m(n, i), e = !1;
3912
+ d(n, i), e = !1;
3888
3913
  },
3889
3914
  d(i) {
3890
3915
  n && n.d(i);
3891
3916
  }
3892
3917
  };
3893
3918
  }
3894
- function no(t) {
3919
+ function ro(t) {
3895
3920
  let e, r;
3896
- return e = new Wi({
3921
+ return e = new zi({
3897
3922
  props: {
3898
- $$slots: { default: [ro] },
3923
+ $$slots: { default: [io] },
3899
3924
  $$scope: { ctx: t }
3900
3925
  }
3901
3926
  }), {
@@ -3914,14 +3939,14 @@ function no(t) {
3914
3939
  r || (f(e.$$.fragment, n), r = !0);
3915
3940
  },
3916
3941
  o(n) {
3917
- m(e.$$.fragment, n), r = !1;
3942
+ d(e.$$.fragment, n), r = !1;
3918
3943
  },
3919
3944
  d(n) {
3920
3945
  I(e, n);
3921
3946
  }
3922
3947
  };
3923
3948
  }
3924
- function ro(t) {
3949
+ function io(t) {
3925
3950
  let e;
3926
3951
  const r = (
3927
3952
  /*#slots*/
@@ -3965,16 +3990,16 @@ function ro(t) {
3965
3990
  e || (f(n, i), e = !0);
3966
3991
  },
3967
3992
  o(i) {
3968
- m(n, i), e = !1;
3993
+ d(n, i), e = !1;
3969
3994
  },
3970
3995
  d(i) {
3971
3996
  n && n.d(i);
3972
3997
  }
3973
3998
  };
3974
3999
  }
3975
- function io(t) {
4000
+ function oo(t) {
3976
4001
  let e, r, n, i;
3977
- const o = [no, to], s = [];
4002
+ const o = [ro, no], s = [];
3978
4003
  function l(c, a) {
3979
4004
  return (
3980
4005
  /*condition*/
@@ -3990,7 +4015,7 @@ function io(t) {
3990
4015
  },
3991
4016
  p(c, [a]) {
3992
4017
  let u = e;
3993
- e = l(c), e === u ? s[e].p(c, a) : (H(), m(s[u], 1, 1, () => {
4018
+ e = l(c), e === u ? s[e].p(c, a) : (H(), d(s[u], 1, 1, () => {
3994
4019
  s[u] = null;
3995
4020
  }), K(), r = s[e], r ? r.p(c, a) : (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
3996
4021
  },
@@ -3998,26 +4023,26 @@ function io(t) {
3998
4023
  i || (f(r), i = !0);
3999
4024
  },
4000
4025
  o(c) {
4001
- m(r), i = !1;
4026
+ d(r), i = !1;
4002
4027
  },
4003
4028
  d(c) {
4004
4029
  c && g(n), s[e].d(c);
4005
4030
  }
4006
4031
  };
4007
4032
  }
4008
- function oo(t, e, r) {
4033
+ function so(t, e, r) {
4009
4034
  let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
4010
4035
  return t.$$set = (s) => {
4011
4036
  "condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
4012
4037
  }, [o, n, i];
4013
4038
  }
4014
- class so extends U {
4039
+ class lo extends U {
4015
4040
  constructor(e) {
4016
- super(), N(this, e, oo, io, T, { condition: 0 });
4041
+ super(), N(this, e, so, oo, T, { condition: 0 });
4017
4042
  }
4018
4043
  }
4019
- const lo = (t) => ({}), _t = (t) => ({});
4020
- function co(t) {
4044
+ const co = (t) => ({}), _t = (t) => ({});
4045
+ function ao(t) {
4021
4046
  let e, r;
4022
4047
  const n = (
4023
4048
  /*#slots*/
@@ -4040,7 +4065,7 @@ function co(t) {
4040
4065
  );
4041
4066
  return {
4042
4067
  c() {
4043
- i && i.c(), e = P(), s && s.c();
4068
+ i && i.c(), e = Q(), s && s.c();
4044
4069
  },
4045
4070
  m(l, c) {
4046
4071
  i && i.m(l, c), p(l, e, c), s && s.m(l, c), r = !0;
@@ -4058,7 +4083,7 @@ function co(t) {
4058
4083
  /*$$scope*/
4059
4084
  l[2],
4060
4085
  c,
4061
- lo
4086
+ co
4062
4087
  ) : V(
4063
4088
  /*$$scope*/
4064
4089
  l[2]
@@ -4088,22 +4113,22 @@ function co(t) {
4088
4113
  r || (f(i, l), f(s, l), r = !0);
4089
4114
  },
4090
4115
  o(l) {
4091
- m(i, l), m(s, l), r = !1;
4116
+ d(i, l), d(s, l), r = !1;
4092
4117
  },
4093
4118
  d(l) {
4094
4119
  l && g(e), i && i.d(l), s && s.d(l);
4095
4120
  }
4096
4121
  };
4097
4122
  }
4098
- function ao(t) {
4123
+ function uo(t) {
4099
4124
  let e, r;
4100
- return e = new eo({
4125
+ return e = new to({
4101
4126
  props: {
4102
4127
  dark: (
4103
4128
  /*dark*/
4104
4129
  t[0]
4105
4130
  ),
4106
- $$slots: { default: [co] },
4131
+ $$slots: { default: [ao] },
4107
4132
  $$scope: { ctx: t }
4108
4133
  }
4109
4134
  }), {
@@ -4124,14 +4149,14 @@ function ao(t) {
4124
4149
  r || (f(e.$$.fragment, n), r = !0);
4125
4150
  },
4126
4151
  o(n) {
4127
- m(e.$$.fragment, n), r = !1;
4152
+ d(e.$$.fragment, n), r = !1;
4128
4153
  },
4129
4154
  d(n) {
4130
4155
  I(e, n);
4131
4156
  }
4132
4157
  };
4133
4158
  }
4134
- function uo(t, e, r) {
4159
+ function fo(t, e, r) {
4135
4160
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
4136
4161
  return t.$$set = (s) => {
4137
4162
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
@@ -4139,166 +4164,181 @@ function uo(t, e, r) {
4139
4164
  }
4140
4165
  class Ft extends U {
4141
4166
  constructor(e) {
4142
- super(), N(this, e, uo, ao, T, { dark: 0 });
4167
+ super(), N(this, e, fo, uo, T, { dark: 0 });
4143
4168
  }
4144
4169
  }
4145
- const fo = "0.3.3", fe = "https://api.revenuecat.com";
4170
+ const mo = "0.4.0", go = "https://api.revenuecat.com";
4146
4171
  var Re;
4147
4172
  (function(t) {
4148
4173
  t[t.CONTINUE = 100] = "CONTINUE", t[t.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", t[t.PROCESSING = 102] = "PROCESSING", t[t.EARLY_HINTS = 103] = "EARLY_HINTS", t[t.OK = 200] = "OK", t[t.CREATED = 201] = "CREATED", t[t.ACCEPTED = 202] = "ACCEPTED", t[t.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", t[t.NO_CONTENT = 204] = "NO_CONTENT", t[t.RESET_CONTENT = 205] = "RESET_CONTENT", t[t.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", t[t.MULTI_STATUS = 207] = "MULTI_STATUS", t[t.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", t[t.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", t[t.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", t[t.SEE_OTHER = 303] = "SEE_OTHER", t[t.NOT_MODIFIED = 304] = "NOT_MODIFIED", t[t.USE_PROXY = 305] = "USE_PROXY", t[t.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", t[t.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", t[t.BAD_REQUEST = 400] = "BAD_REQUEST", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", t[t.FORBIDDEN = 403] = "FORBIDDEN", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", t[t.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", t[t.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", t[t.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", t[t.CONFLICT = 409] = "CONFLICT", t[t.GONE = 410] = "GONE", t[t.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t[t.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", t[t.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", t[t.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", t[t.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", t[t.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", t[t.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", t[t.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", t[t.METHOD_FAILURE = 420] = "METHOD_FAILURE", t[t.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", t[t.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", t[t.LOCKED = 423] = "LOCKED", t[t.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", t[t.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", t[t.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", t[t.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", t[t.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", t[t.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", t[t.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", t[t.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", t[t.BAD_GATEWAY = 502] = "BAD_GATEWAY", t[t.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", t[t.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", t[t.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", t[t.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", t[t.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
4149
4174
  })(Re || (Re = {}));
4150
- function je(t) {
4175
+ function qe(t) {
4151
4176
  return t ? t.startsWith("rcb_sb_") : !1;
4152
4177
  }
4153
- async function oe(t, e, r, n) {
4178
+ async function oe(t, e) {
4179
+ const { apiKey: r, body: n, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? go}${t.urlPath()}`;
4154
4180
  try {
4155
- const i = await fetch(t.url(), {
4181
+ const c = await fetch(l, {
4156
4182
  method: t.method,
4157
- headers: po(e, n),
4158
- body: go(r)
4183
+ headers: ho(r, i, o == null ? void 0 : o.additionalHeaders),
4184
+ body: _o(n)
4159
4185
  });
4160
- return await mo(i, t), await i.json();
4161
- } catch (i) {
4162
- throw i instanceof TypeError ? new X(
4163
- ee.NetworkError,
4164
- he.getPublicMessage(ee.NetworkError),
4165
- i.message
4166
- ) : i;
4186
+ return await po(c, t), await c.json();
4187
+ } catch (c) {
4188
+ throw c instanceof TypeError ? new z(
4189
+ Z.NetworkError,
4190
+ he.getPublicMessage(Z.NetworkError),
4191
+ c.message
4192
+ ) : c;
4167
4193
  }
4168
4194
  }
4169
- async function mo(t, e) {
4195
+ async function po(t, e) {
4170
4196
  const r = t.status;
4171
4197
  if (r >= Re.INTERNAL_SERVER_ERROR)
4172
- Ye(e, r, await t.text());
4198
+ Ge(e, r, await t.text());
4173
4199
  else if (r >= Re.BAD_REQUEST) {
4174
4200
  const n = await t.json(), i = n ? JSON.stringify(n) : null, o = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
4175
4201
  if (o != null) {
4176
4202
  const l = he.convertCodeToBackendErrorCode(o);
4177
4203
  if (l == null)
4178
- Ye(e, r, i);
4204
+ Ge(e, r, i);
4179
4205
  else
4180
- throw X.getForBackendError(
4206
+ throw z.getForBackendError(
4181
4207
  l,
4182
4208
  s
4183
4209
  );
4184
4210
  } else
4185
- Ye(e, r, i);
4211
+ Ge(e, r, i);
4186
4212
  }
4187
4213
  }
4188
- function Ye(t, e, r) {
4189
- throw new X(
4190
- ee.UnknownBackendError,
4214
+ function Ge(t, e, r) {
4215
+ throw new z(
4216
+ Z.UnknownBackendError,
4191
4217
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
4192
4218
  );
4193
4219
  }
4194
- function go(t) {
4220
+ function _o(t) {
4195
4221
  return t == null ? null : JSON.stringify(t);
4196
4222
  }
4197
- function po(t, e) {
4198
- let r = {
4223
+ function ho(t, e, r) {
4224
+ let n = {
4199
4225
  Authorization: `Bearer ${t}`,
4200
4226
  "Content-Type": "application/json",
4201
4227
  Accept: "application/json",
4202
4228
  "X-Platform": "web",
4203
- "X-Version": fo,
4204
- "X-Is-Sandbox": `${je(t)}`
4229
+ "X-Version": mo,
4230
+ "X-Is-Sandbox": `${qe(t)}`
4205
4231
  };
4206
- return e != null && (r = { ...r, ...e }), r;
4232
+ return e && (n = { ...n, ...e }), r && (n = { ...r, ...n }), n;
4207
4233
  }
4208
- const Gt = "/v1/subscribers", Le = "/rcbilling/v1";
4209
- class _o {
4234
+ const Gt = "/v1/subscribers", Oe = "/rcbilling/v1";
4235
+ class Ao {
4210
4236
  constructor(e) {
4211
- Q(this, "appUserId");
4212
- Q(this, "method", "GET");
4213
- Q(this, "name", "getOfferings");
4237
+ P(this, "appUserId");
4238
+ P(this, "method", "GET");
4239
+ P(this, "name", "getOfferings");
4214
4240
  this.appUserId = e;
4215
4241
  }
4216
- url() {
4242
+ urlPath() {
4217
4243
  const e = encodeURIComponent(this.appUserId);
4218
- return `${fe}${Gt}/${e}/offerings`;
4244
+ return `${Gt}/${e}/offerings`;
4219
4245
  }
4220
4246
  }
4221
- class Ao {
4247
+ class Eo {
4222
4248
  constructor() {
4223
- Q(this, "method", "POST");
4224
- Q(this, "name", "subscribe");
4249
+ P(this, "method", "POST");
4250
+ P(this, "name", "subscribe");
4225
4251
  }
4226
- url() {
4227
- return `${fe}${Le}/subscribe`;
4252
+ urlPath() {
4253
+ return `${Oe}/subscribe`;
4228
4254
  }
4229
4255
  }
4230
- class ho {
4256
+ class bo {
4231
4257
  constructor(e, r) {
4232
- Q(this, "method", "GET");
4233
- Q(this, "name", "getProducts");
4234
- Q(this, "appUserId");
4235
- Q(this, "productIds");
4258
+ P(this, "method", "GET");
4259
+ P(this, "name", "getProducts");
4260
+ P(this, "appUserId");
4261
+ P(this, "productIds");
4236
4262
  this.appUserId = e, this.productIds = r;
4237
4263
  }
4238
- url() {
4264
+ urlPath() {
4239
4265
  const e = encodeURIComponent(this.appUserId), r = this.productIds.map(encodeURIComponent).join("&id=");
4240
- return `${fe}${Le}/subscribers/${e}/products?id=${r}`;
4266
+ return `${Oe}/subscribers/${e}/products?id=${r}`;
4241
4267
  }
4242
4268
  }
4243
- class Eo {
4269
+ class Io {
4244
4270
  constructor(e) {
4245
- Q(this, "method", "GET");
4246
- Q(this, "name", "getCustomerInfo");
4247
- Q(this, "appUserId");
4271
+ P(this, "method", "GET");
4272
+ P(this, "name", "getCustomerInfo");
4273
+ P(this, "appUserId");
4248
4274
  this.appUserId = e;
4249
4275
  }
4250
- url() {
4276
+ urlPath() {
4251
4277
  const e = encodeURIComponent(this.appUserId);
4252
- return `${fe}${Gt}/${e}`;
4278
+ return `${Gt}/${e}`;
4253
4279
  }
4254
4280
  }
4255
- class bo {
4281
+ class wo {
4256
4282
  constructor() {
4257
- Q(this, "method", "GET");
4258
- Q(this, "name", "getBrandingInfo");
4283
+ P(this, "method", "GET");
4284
+ P(this, "name", "getBrandingInfo");
4259
4285
  }
4260
- url() {
4261
- return `${fe}${Le}/branding`;
4286
+ urlPath() {
4287
+ return `${Oe}/branding`;
4262
4288
  }
4263
4289
  }
4264
- class Io {
4290
+ class ko {
4265
4291
  constructor(e) {
4266
- Q(this, "method", "GET");
4267
- Q(this, "name", "getCheckoutStatus");
4268
- Q(this, "operationSessionId");
4292
+ P(this, "method", "GET");
4293
+ P(this, "name", "getCheckoutStatus");
4294
+ P(this, "operationSessionId");
4269
4295
  this.operationSessionId = e;
4270
4296
  }
4271
- url() {
4272
- return `${fe}${Le}/checkout/${this.operationSessionId}`;
4297
+ urlPath() {
4298
+ return `${Oe}/checkout/${this.operationSessionId}`;
4273
4299
  }
4274
4300
  }
4275
- class wo {
4276
- constructor(e) {
4277
- Q(this, "API_KEY");
4278
- this.API_KEY = e;
4301
+ const je = {};
4302
+ class yo {
4303
+ constructor(e, r = je) {
4304
+ P(this, "API_KEY");
4305
+ P(this, "httpConfig");
4306
+ this.API_KEY = e, this.httpConfig = r;
4279
4307
  }
4280
4308
  async getOfferings(e) {
4281
4309
  return await oe(
4282
- new _o(e),
4283
- this.API_KEY
4310
+ new Ao(e),
4311
+ {
4312
+ apiKey: this.API_KEY,
4313
+ httpConfig: this.httpConfig
4314
+ }
4284
4315
  );
4285
4316
  }
4286
4317
  async getCustomerInfo(e) {
4287
4318
  return await oe(
4288
- new Eo(e),
4289
- this.API_KEY
4319
+ new Io(e),
4320
+ {
4321
+ apiKey: this.API_KEY,
4322
+ httpConfig: this.httpConfig
4323
+ }
4290
4324
  );
4291
4325
  }
4292
4326
  async getProducts(e, r) {
4293
4327
  return await oe(
4294
- new ho(e, r),
4295
- this.API_KEY
4328
+ new bo(e, r),
4329
+ {
4330
+ apiKey: this.API_KEY,
4331
+ httpConfig: this.httpConfig
4332
+ }
4296
4333
  );
4297
4334
  }
4298
4335
  async getBrandingInfo() {
4299
4336
  return await oe(
4300
- new bo(),
4301
- this.API_KEY
4337
+ new wo(),
4338
+ {
4339
+ apiKey: this.API_KEY,
4340
+ httpConfig: this.httpConfig
4341
+ }
4302
4342
  );
4303
4343
  }
4304
4344
  async postSubscribe(e, r, n, i, o) {
@@ -4309,24 +4349,30 @@ class wo {
4309
4349
  presented_offering_identifier: i
4310
4350
  };
4311
4351
  return o && o !== "base_option" && (s.offer_id = o), await oe(
4312
- new Ao(),
4313
- this.API_KEY,
4314
- s
4352
+ new Eo(),
4353
+ {
4354
+ apiKey: this.API_KEY,
4355
+ body: s,
4356
+ httpConfig: this.httpConfig
4357
+ }
4315
4358
  );
4316
4359
  }
4317
4360
  async getCheckoutStatus(e) {
4318
4361
  return await oe(
4319
- new Io(e),
4320
- this.API_KEY
4362
+ new ko(e),
4363
+ {
4364
+ apiKey: this.API_KEY,
4365
+ httpConfig: this.httpConfig
4366
+ }
4321
4367
  );
4322
4368
  }
4323
4369
  }
4324
- const ko = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
4370
+ const vo = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
4325
4371
  function $o(t) {
4326
4372
  let e, r;
4327
4373
  return {
4328
4374
  c() {
4329
- e = k("img"), Z(e.src, r = ko) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4375
+ e = k("img"), ee(e.src, r = vo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4330
4376
  },
4331
4377
  m(n, i) {
4332
4378
  p(n, e, i);
@@ -4339,15 +4385,15 @@ function $o(t) {
4339
4385
  }
4340
4386
  };
4341
4387
  }
4342
- class vo extends U {
4388
+ class Bo extends U {
4343
4389
  constructor(e) {
4344
4390
  super(), N(this, e, null, $o, T, {});
4345
4391
  }
4346
4392
  }
4347
- function yo(t) {
4393
+ function Do(t) {
4348
4394
  x(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4349
4395
  }
4350
- function Bo(t) {
4396
+ function Co(t) {
4351
4397
  let e;
4352
4398
  return {
4353
4399
  c() {
@@ -4364,23 +4410,23 @@ function Bo(t) {
4364
4410
  }
4365
4411
  };
4366
4412
  }
4367
- class Do extends U {
4413
+ class Po extends U {
4368
4414
  constructor(e) {
4369
- super(), N(this, e, null, Bo, T, {}, yo);
4415
+ super(), N(this, e, null, Co, T, {}, Do);
4370
4416
  }
4371
4417
  }
4372
4418
  function Mo(t) {
4373
4419
  x(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4374
4420
  Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-1qect5g{width:100vw;width:100 dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-1qect5g{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-1qect5g{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1qect5g{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-1qect5g{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-1qect5g{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1qect5g{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4375
4421
  }
4376
- function At(t) {
4422
+ function ht(t) {
4377
4423
  let e, r, n;
4378
4424
  return r = new Ft({
4379
4425
  props: {
4380
4426
  dark: !0,
4381
4427
  $$slots: {
4382
- header: [No],
4383
- default: [Co]
4428
+ header: [Ro],
4429
+ default: [Qo]
4384
4430
  },
4385
4431
  $$scope: { ctx: t }
4386
4432
  }
@@ -4400,16 +4446,16 @@ function At(t) {
4400
4446
  n || (f(r.$$.fragment, i), n = !0);
4401
4447
  },
4402
4448
  o(i) {
4403
- m(r.$$.fragment, i), n = !1;
4449
+ d(r.$$.fragment, i), n = !1;
4404
4450
  },
4405
4451
  d(i) {
4406
4452
  i && g(e), I(r);
4407
4453
  }
4408
4454
  };
4409
4455
  }
4410
- function ht(t) {
4456
+ function At(t) {
4411
4457
  let e, r;
4412
- return e = new Pt({
4458
+ return e = new Qt({
4413
4459
  props: {
4414
4460
  productDetails: (
4415
4461
  /*productDetails*/
@@ -4437,18 +4483,18 @@ function ht(t) {
4437
4483
  r || (f(e.$$.fragment, n), r = !0);
4438
4484
  },
4439
4485
  o(n) {
4440
- m(e.$$.fragment, n), r = !1;
4486
+ d(e.$$.fragment, n), r = !1;
4441
4487
  },
4442
4488
  d(n) {
4443
4489
  I(e, n);
4444
4490
  }
4445
4491
  };
4446
4492
  }
4447
- function Co(t) {
4493
+ function Qo(t) {
4448
4494
  let e, r, n = (
4449
4495
  /*productDetails*/
4450
4496
  t[2] && /*purchaseOptionToUse*/
4451
- t[8] && ht(t)
4497
+ t[8] && At(t)
4452
4498
  );
4453
4499
  return {
4454
4500
  c() {
@@ -4461,7 +4507,7 @@ function Co(t) {
4461
4507
  /*productDetails*/
4462
4508
  i[2] && /*purchaseOptionToUse*/
4463
4509
  i[8] ? n ? (n.p(i, o), o & /*productDetails*/
4464
- 4 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), m(n, 1, 1, () => {
4510
+ 4 && f(n, 1)) : (n = At(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
4465
4511
  n = null;
4466
4512
  }), K());
4467
4513
  },
@@ -4469,16 +4515,16 @@ function Co(t) {
4469
4515
  r || (f(n), r = !0);
4470
4516
  },
4471
4517
  o(i) {
4472
- m(n), r = !1;
4518
+ d(n), r = !1;
4473
4519
  },
4474
4520
  d(i) {
4475
4521
  i && g(e), n && n.d(i);
4476
4522
  }
4477
4523
  };
4478
4524
  }
4479
- function Qo(t) {
4525
+ function To(t) {
4480
4526
  let e, r;
4481
- return e = new vo({}), {
4527
+ return e = new Bo({}), {
4482
4528
  c() {
4483
4529
  w(e.$$.fragment);
4484
4530
  },
@@ -4489,16 +4535,16 @@ function Qo(t) {
4489
4535
  r || (f(e.$$.fragment, n), r = !0);
4490
4536
  },
4491
4537
  o(n) {
4492
- m(e.$$.fragment, n), r = !1;
4538
+ d(e.$$.fragment, n), r = !1;
4493
4539
  },
4494
4540
  d(n) {
4495
4541
  I(e, n);
4496
4542
  }
4497
4543
  };
4498
4544
  }
4499
- function Po(t) {
4545
+ function No(t) {
4500
4546
  let e, r;
4501
- return e = new Do({}), {
4547
+ return e = new Po({}), {
4502
4548
  c() {
4503
4549
  w(e.$$.fragment);
4504
4550
  },
@@ -4509,14 +4555,14 @@ function Po(t) {
4509
4555
  r || (f(e.$$.fragment, n), r = !0);
4510
4556
  },
4511
4557
  o(n) {
4512
- m(e.$$.fragment, n), r = !1;
4558
+ d(e.$$.fragment, n), r = !1;
4513
4559
  },
4514
4560
  d(n) {
4515
4561
  I(e, n);
4516
4562
  }
4517
4563
  };
4518
4564
  }
4519
- function To(t) {
4565
+ function Uo(t) {
4520
4566
  let e, r, n, i, o, s, l;
4521
4567
  e = new Ut({
4522
4568
  props: { brandingInfo: (
@@ -4524,46 +4570,46 @@ function To(t) {
4524
4570
  t[3]
4525
4571
  ) }
4526
4572
  });
4527
- const c = [Po, Qo], a = [];
4528
- function u(d, h) {
4573
+ const c = [No, To], a = [];
4574
+ function u(m, h) {
4529
4575
  return h & /*purchases*/
4530
4576
  2 && (n = null), n == null && (n = !!/*purchases*/
4531
- d[1].isSandbox()), n ? 0 : 1;
4577
+ m[1].isSandbox()), n ? 0 : 1;
4532
4578
  }
4533
4579
  return i = u(t, -1), o = a[i] = c[i](t), {
4534
4580
  c() {
4535
- w(e.$$.fragment), r = P(), o.c(), s = te();
4581
+ w(e.$$.fragment), r = Q(), o.c(), s = te();
4536
4582
  },
4537
- m(d, h) {
4538
- b(e, d, h), p(d, r, h), a[i].m(d, h), p(d, s, h), l = !0;
4583
+ m(m, h) {
4584
+ b(e, m, h), p(m, r, h), a[i].m(m, h), p(m, s, h), l = !0;
4539
4585
  },
4540
- p(d, h) {
4541
- const $ = {};
4586
+ p(m, h) {
4587
+ const y = {};
4542
4588
  h & /*brandingInfo*/
4543
- 8 && ($.brandingInfo = /*brandingInfo*/
4544
- d[3]), e.$set($);
4589
+ 8 && (y.brandingInfo = /*brandingInfo*/
4590
+ m[3]), e.$set(y);
4545
4591
  let E = i;
4546
- i = u(d, h), i !== E && (H(), m(a[E], 1, 1, () => {
4592
+ i = u(m, h), i !== E && (H(), d(a[E], 1, 1, () => {
4547
4593
  a[E] = null;
4548
- }), K(), o = a[i], o || (o = a[i] = c[i](d), o.c()), f(o, 1), o.m(s.parentNode, s));
4594
+ }), K(), o = a[i], o || (o = a[i] = c[i](m), o.c()), f(o, 1), o.m(s.parentNode, s));
4549
4595
  },
4550
- i(d) {
4551
- l || (f(e.$$.fragment, d), f(o), l = !0);
4596
+ i(m) {
4597
+ l || (f(e.$$.fragment, m), f(o), l = !0);
4552
4598
  },
4553
- o(d) {
4554
- m(e.$$.fragment, d), m(o), l = !1;
4599
+ o(m) {
4600
+ d(e.$$.fragment, m), d(o), l = !1;
4555
4601
  },
4556
- d(d) {
4557
- d && (g(r), g(s)), I(e, d), a[i].d(d);
4602
+ d(m) {
4603
+ m && (g(r), g(s)), I(e, m), a[i].d(m);
4558
4604
  }
4559
4605
  };
4560
4606
  }
4561
- function No(t) {
4607
+ function Ro(t) {
4562
4608
  let e, r;
4563
4609
  return e = new Xe({
4564
4610
  props: {
4565
4611
  slot: "header",
4566
- $$slots: { default: [To] },
4612
+ $$slots: { default: [Uo] },
4567
4613
  $$scope: { ctx: t }
4568
4614
  }
4569
4615
  }), {
@@ -4582,7 +4628,7 @@ function No(t) {
4582
4628
  r || (f(e.$$.fragment, n), r = !0);
4583
4629
  },
4584
4630
  o(n) {
4585
- m(e.$$.fragment, n), r = !1;
4631
+ d(e.$$.fragment, n), r = !1;
4586
4632
  },
4587
4633
  d(n) {
4588
4634
  I(e, n);
@@ -4591,7 +4637,7 @@ function No(t) {
4591
4637
  }
4592
4638
  function Et(t) {
4593
4639
  let e, r;
4594
- return e = new Pt({
4640
+ return e = new Qt({
4595
4641
  props: {
4596
4642
  productDetails: (
4597
4643
  /*productDetails*/
@@ -4619,7 +4665,7 @@ function Et(t) {
4619
4665
  r || (f(e.$$.fragment, n), r = !0);
4620
4666
  },
4621
4667
  o(n) {
4622
- m(e.$$.fragment, n), r = !1;
4668
+ d(e.$$.fragment, n), r = !1;
4623
4669
  },
4624
4670
  d(n) {
4625
4671
  I(e, n);
@@ -4639,7 +4685,7 @@ function bt(t) {
4639
4685
  r || (f(e.$$.fragment, n), r = !0);
4640
4686
  },
4641
4687
  o(n) {
4642
- m(e.$$.fragment, n), r = !1;
4688
+ d(e.$$.fragment, n), r = !1;
4643
4689
  },
4644
4690
  d(n) {
4645
4691
  I(e, n);
@@ -4648,7 +4694,7 @@ function bt(t) {
4648
4694
  }
4649
4695
  function It(t) {
4650
4696
  let e, r;
4651
- return e = new qi({
4697
+ return e = new ji({
4652
4698
  props: {
4653
4699
  onContinue: (
4654
4700
  /*handleContinue*/
@@ -4661,6 +4707,10 @@ function It(t) {
4661
4707
  processing: (
4662
4708
  /*state*/
4663
4709
  t[6] === "processing-auth-info"
4710
+ ),
4711
+ lastError: (
4712
+ /*lastError*/
4713
+ t[5]
4664
4714
  )
4665
4715
  }
4666
4716
  }), {
@@ -4674,13 +4724,15 @@ function It(t) {
4674
4724
  const o = {};
4675
4725
  i & /*state*/
4676
4726
  64 && (o.processing = /*state*/
4677
- n[6] === "processing-auth-info"), e.$set(o);
4727
+ n[6] === "processing-auth-info"), i & /*lastError*/
4728
+ 32 && (o.lastError = /*lastError*/
4729
+ n[5]), e.$set(o);
4678
4730
  },
4679
4731
  i(n) {
4680
4732
  r || (f(e.$$.fragment, n), r = !0);
4681
4733
  },
4682
4734
  o(n) {
4683
- m(e.$$.fragment, n), r = !1;
4735
+ d(e.$$.fragment, n), r = !1;
4684
4736
  },
4685
4737
  d(n) {
4686
4738
  I(e, n);
@@ -4689,7 +4741,7 @@ function It(t) {
4689
4741
  }
4690
4742
  function wt(t) {
4691
4743
  let e, r;
4692
- return e = new Ti({
4744
+ return e = new Ni({
4693
4745
  props: {
4694
4746
  paymentInfoCollectionMetadata: (
4695
4747
  /*paymentInfoCollectionMetadata*/
@@ -4731,7 +4783,7 @@ function wt(t) {
4731
4783
  r || (f(e.$$.fragment, n), r = !0);
4732
4784
  },
4733
4785
  o(n) {
4734
- m(e.$$.fragment, n), r = !1;
4786
+ d(e.$$.fragment, n), r = !1;
4735
4787
  },
4736
4788
  d(n) {
4737
4789
  I(e, n);
@@ -4751,17 +4803,17 @@ function kt(t) {
4751
4803
  r || (f(e.$$.fragment, n), r = !0);
4752
4804
  },
4753
4805
  o(n) {
4754
- m(e.$$.fragment, n), r = !1;
4806
+ d(e.$$.fragment, n), r = !1;
4755
4807
  },
4756
4808
  d(n) {
4757
4809
  I(e, n);
4758
4810
  }
4759
4811
  };
4760
4812
  }
4761
- function $t(t) {
4813
+ function yt(t) {
4762
4814
  var n;
4763
4815
  let e, r;
4764
- return e = new Sr({
4816
+ return e = new Or({
4765
4817
  props: {
4766
4818
  brandingInfo: (
4767
4819
  /*brandingInfo*/
@@ -4802,7 +4854,7 @@ function $t(t) {
4802
4854
  r || (f(e.$$.fragment, i), r = !0);
4803
4855
  },
4804
4856
  o(i) {
4805
- m(e.$$.fragment, i), r = !1;
4857
+ d(e.$$.fragment, i), r = !1;
4806
4858
  },
4807
4859
  d(i) {
4808
4860
  I(e, i);
@@ -4811,7 +4863,7 @@ function $t(t) {
4811
4863
  }
4812
4864
  function vt(t) {
4813
4865
  let e, r;
4814
- return e = new qr({
4866
+ return e = new jr({
4815
4867
  props: {
4816
4868
  brandingInfo: (
4817
4869
  /*brandingInfo*/
@@ -4839,14 +4891,14 @@ function vt(t) {
4839
4891
  r || (f(e.$$.fragment, n), r = !0);
4840
4892
  },
4841
4893
  o(n) {
4842
- m(e.$$.fragment, n), r = !1;
4894
+ d(e.$$.fragment, n), r = !1;
4843
4895
  },
4844
4896
  d(n) {
4845
4897
  I(e, n);
4846
4898
  }
4847
4899
  };
4848
4900
  }
4849
- function Uo(t) {
4901
+ function So(t) {
4850
4902
  let e, r, n, i, o, s, l, c, a = (
4851
4903
  /*state*/
4852
4904
  t[6] === "present-offer" && /*productDetails*/
@@ -4856,7 +4908,7 @@ function Uo(t) {
4856
4908
  /*state*/
4857
4909
  t[6] === "present-offer" && !/*productDetails*/
4858
4910
  t[2] && bt()
4859
- ), d = (
4911
+ ), m = (
4860
4912
  /*state*/
4861
4913
  (t[6] === "needs-auth-info" || /*state*/
4862
4914
  t[6] === "processing-auth-info") && It(t)
@@ -4865,87 +4917,87 @@ function Uo(t) {
4865
4917
  t[4] && /*state*/
4866
4918
  (t[6] === "needs-payment-info" || /*state*/
4867
4919
  t[6] === "polling-purchase-status") && wt(t)
4868
- ), $ = (
4920
+ ), y = (
4869
4921
  /*state*/
4870
4922
  t[6] === "loading" && kt()
4871
4923
  ), E = (
4872
4924
  /*state*/
4873
- t[6] === "error" && $t(t)
4925
+ t[6] === "error" && yt(t)
4874
4926
  ), B = (
4875
4927
  /*state*/
4876
4928
  t[6] === "success" && vt(t)
4877
4929
  );
4878
4930
  return {
4879
4931
  c() {
4880
- a && a.c(), e = P(), u && u.c(), r = P(), d && d.c(), n = P(), h && h.c(), i = P(), $ && $.c(), o = P(), E && E.c(), s = P(), B && B.c(), l = te();
4932
+ a && a.c(), e = Q(), u && u.c(), r = Q(), m && m.c(), n = Q(), h && h.c(), i = Q(), y && y.c(), o = Q(), E && E.c(), s = Q(), B && B.c(), l = te();
4881
4933
  },
4882
- m(A, y) {
4883
- a && a.m(A, y), p(A, e, y), u && u.m(A, y), p(A, r, y), d && d.m(A, y), p(A, n, y), h && h.m(A, y), p(A, i, y), $ && $.m(A, y), p(A, o, y), E && E.m(A, y), p(A, s, y), B && B.m(A, y), p(A, l, y), c = !0;
4934
+ m(A, $) {
4935
+ a && a.m(A, $), p(A, e, $), u && u.m(A, $), p(A, r, $), m && m.m(A, $), p(A, n, $), h && h.m(A, $), p(A, i, $), y && y.m(A, $), p(A, o, $), E && E.m(A, $), p(A, s, $), B && B.m(A, $), p(A, l, $), c = !0;
4884
4936
  },
4885
- p(A, y) {
4937
+ p(A, $) {
4886
4938
  /*state*/
4887
4939
  A[6] === "present-offer" && /*productDetails*/
4888
4940
  A[2] && /*purchaseOptionToUse*/
4889
- A[8] ? a ? (a.p(A, y), y & /*state, productDetails*/
4890
- 68 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), m(a, 1, 1, () => {
4941
+ A[8] ? a ? (a.p(A, $), $ & /*state, productDetails*/
4942
+ 68 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4891
4943
  a = null;
4892
4944
  }), K()), /*state*/
4893
4945
  A[6] === "present-offer" && !/*productDetails*/
4894
- A[2] ? u ? y & /*state, productDetails*/
4895
- 68 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), m(u, 1, 1, () => {
4946
+ A[2] ? u ? $ & /*state, productDetails*/
4947
+ 68 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4896
4948
  u = null;
4897
4949
  }), K()), /*state*/
4898
4950
  A[6] === "needs-auth-info" || /*state*/
4899
- A[6] === "processing-auth-info" ? d ? (d.p(A, y), y & /*state*/
4900
- 64 && f(d, 1)) : (d = It(A), d.c(), f(d, 1), d.m(n.parentNode, n)) : d && (H(), m(d, 1, 1, () => {
4901
- d = null;
4951
+ A[6] === "processing-auth-info" ? m ? (m.p(A, $), $ & /*state*/
4952
+ 64 && f(m, 1)) : (m = It(A), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4953
+ m = null;
4902
4954
  }), K()), /*paymentInfoCollectionMetadata*/
4903
4955
  A[4] && /*state*/
4904
4956
  (A[6] === "needs-payment-info" || /*state*/
4905
- A[6] === "polling-purchase-status") ? h ? (h.p(A, y), y & /*paymentInfoCollectionMetadata, state*/
4906
- 80 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), m(h, 1, 1, () => {
4957
+ A[6] === "polling-purchase-status") ? h ? (h.p(A, $), $ & /*paymentInfoCollectionMetadata, state*/
4958
+ 80 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), d(h, 1, 1, () => {
4907
4959
  h = null;
4908
4960
  }), K()), /*state*/
4909
- A[6] === "loading" ? $ ? y & /*state*/
4910
- 64 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (H(), m($, 1, 1, () => {
4911
- $ = null;
4961
+ A[6] === "loading" ? y ? $ & /*state*/
4962
+ 64 && f(y, 1) : (y = kt(), y.c(), f(y, 1), y.m(o.parentNode, o)) : y && (H(), d(y, 1, 1, () => {
4963
+ y = null;
4912
4964
  }), K()), /*state*/
4913
- A[6] === "error" ? E ? (E.p(A, y), y & /*state*/
4914
- 64 && f(E, 1)) : (E = $t(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), m(E, 1, 1, () => {
4965
+ A[6] === "error" ? E ? (E.p(A, $), $ & /*state*/
4966
+ 64 && f(E, 1)) : (E = yt(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(E, 1, 1, () => {
4915
4967
  E = null;
4916
4968
  }), K()), /*state*/
4917
- A[6] === "success" ? B ? (B.p(A, y), y & /*state*/
4918
- 64 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), m(B, 1, 1, () => {
4969
+ A[6] === "success" ? B ? (B.p(A, $), $ & /*state*/
4970
+ 64 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(B, 1, 1, () => {
4919
4971
  B = null;
4920
4972
  }), K());
4921
4973
  },
4922
4974
  i(A) {
4923
- c || (f(a), f(u), f(d), f(h), f($), f(E), f(B), c = !0);
4975
+ c || (f(a), f(u), f(m), f(h), f(y), f(E), f(B), c = !0);
4924
4976
  },
4925
4977
  o(A) {
4926
- m(a), m(u), m(d), m(h), m($), m(E), m(B), c = !1;
4978
+ d(a), d(u), d(m), d(h), d(y), d(E), d(B), c = !1;
4927
4979
  },
4928
4980
  d(A) {
4929
- A && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(A), u && u.d(A), d && d.d(A), h && h.d(A), $ && $.d(A), E && E.d(A), B && B.d(A);
4981
+ A && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(A), u && u.d(A), m && m.d(A), h && h.d(A), y && y.d(A), E && E.d(A), B && B.d(A);
4930
4982
  }
4931
4983
  };
4932
4984
  }
4933
- function Ro(t) {
4985
+ function Oo(t) {
4934
4986
  let e, r = (
4935
4987
  /*statesWhereOfferDetailsAreShown*/
4936
4988
  t[9].includes(
4937
4989
  /*state*/
4938
4990
  t[6]
4939
4991
  )
4940
- ), n, i, o, s, l = r && At(t);
4992
+ ), n, i, o, s, l = r && ht(t);
4941
4993
  return o = new Ft({
4942
4994
  props: {
4943
- $$slots: { default: [Uo] },
4995
+ $$slots: { default: [So] },
4944
4996
  $$scope: { ctx: t }
4945
4997
  }
4946
4998
  }), {
4947
4999
  c() {
4948
- e = k("div"), l && l.c(), n = P(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-1qect5g"), _(e, "class", "rcb-ui-layout svelte-1qect5g"), _(
5000
+ e = k("div"), l && l.c(), n = Q(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-1qect5g"), _(e, "class", "rcb-ui-layout svelte-1qect5g"), _(
4949
5001
  e,
4950
5002
  "style",
4951
5003
  /*colorVariables*/
@@ -4953,7 +5005,7 @@ function Ro(t) {
4953
5005
  );
4954
5006
  },
4955
5007
  m(c, a) {
4956
- p(c, e, a), l && l.m(e, null), C(e, n), C(e, i), b(o, i, null), s = !0;
5008
+ p(c, e, a), l && l.m(e, null), M(e, n), M(e, i), b(o, i, null), s = !0;
4957
5009
  },
4958
5010
  p(c, a) {
4959
5011
  a & /*state*/
@@ -4962,7 +5014,7 @@ function Ro(t) {
4962
5014
  /*state*/
4963
5015
  c[6]
4964
5016
  )), r ? l ? (l.p(c, a), a & /*state*/
4965
- 64 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), m(l, 1, 1, () => {
5017
+ 64 && f(l, 1)) : (l = ht(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(l, 1, 1, () => {
4966
5018
  l = null;
4967
5019
  }), K());
4968
5020
  const u = {};
@@ -4973,22 +5025,22 @@ function Ro(t) {
4973
5025
  s || (f(l), f(o.$$.fragment, c), s = !0);
4974
5026
  },
4975
5027
  o(c) {
4976
- m(l), m(o.$$.fragment, c), s = !1;
5028
+ d(l), d(o.$$.fragment, c), s = !1;
4977
5029
  },
4978
5030
  d(c) {
4979
5031
  c && g(e), l && l.d(), I(o);
4980
5032
  }
4981
5033
  };
4982
5034
  }
4983
- function So(t) {
5035
+ function Lo(t) {
4984
5036
  let e, r, n;
4985
- return r = new so({
5037
+ return r = new lo({
4986
5038
  props: {
4987
5039
  condition: (
4988
5040
  /*asModal*/
4989
5041
  t[0]
4990
5042
  ),
4991
- $$slots: { default: [Ro] },
5043
+ $$slots: { default: [Oo] },
4992
5044
  $$scope: { ctx: t }
4993
5045
  }
4994
5046
  }), {
@@ -5009,21 +5061,21 @@ function So(t) {
5009
5061
  n || (f(r.$$.fragment, i), n = !0);
5010
5062
  },
5011
5063
  o(i) {
5012
- m(r.$$.fragment, i), n = !1;
5064
+ d(r.$$.fragment, i), n = !1;
5013
5065
  },
5014
5066
  d(i) {
5015
5067
  i && g(e), I(r);
5016
5068
  }
5017
5069
  };
5018
5070
  }
5019
- function Oo(t, e, r) {
5071
+ function xo(t, e, r) {
5020
5072
  var et, tt;
5021
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: d } = e, { backend: h } = e, { purchaseOperationHelper: $ } = e;
5022
- const E = Object.entries(_e).map(([D, xe]) => `--rc-color-${D}: ${xe}`).join("; ");
5023
- let B = null, A = null, y = null, R = null;
5024
- const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, F = l || ve;
5073
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: m } = e, { backend: h } = e, { purchaseOperationHelper: y } = e;
5074
+ const E = Object.entries(pe).map(([D, Le]) => `--rc-color-${D}: ${Le}`).join("; ");
5075
+ let B = null, A = null, $ = null, R = null;
5076
+ const C = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, F = l || ve;
5025
5077
  let S = "present-offer";
5026
- const ye = [
5078
+ const $e = [
5027
5079
  "present-offer",
5028
5080
  "needs-auth-info",
5029
5081
  "processing-auth-info",
@@ -5031,7 +5083,7 @@ function Oo(t, e, r) {
5031
5083
  "polling-purchase-status",
5032
5084
  "loading"
5033
5085
  ];
5034
- Oe(async () => {
5086
+ Se(async () => {
5035
5087
  if (r(2, B = s.rcBillingProduct), r(3, A = await h.getBrandingInfo()), S === "present-offer") {
5036
5088
  i ? Ze() : r(6, S = "needs-auth-info");
5037
5089
  return;
@@ -5040,26 +5092,26 @@ function Oo(t, e, r) {
5040
5092
  const Be = () => {
5041
5093
  u();
5042
5094
  }, Ze = () => {
5043
- if (M === null) {
5044
- de(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5095
+ if (C === null) {
5096
+ fe(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5045
5097
  return;
5046
5098
  } else
5047
5099
  S === "present-offer" && r(6, S = "loading");
5048
5100
  if (!i) {
5049
- de(new Y(O.MissingEmailError));
5101
+ fe(new Y(O.MissingEmailError));
5050
5102
  return;
5051
5103
  }
5052
- $.startPurchase(o, M, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5104
+ y.startPurchase(o, C, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5053
5105
  if (D.next_action === "collect_payment_info") {
5054
- r(6, S = "needs-payment-info"), r(4, y = D);
5106
+ r(5, R = null), r(6, S = "needs-payment-info"), r(4, $ = D);
5055
5107
  return;
5056
5108
  }
5057
5109
  if (D.next_action === "completed") {
5058
- r(6, S = "success");
5110
+ r(5, R = null), r(6, S = "success");
5059
5111
  return;
5060
5112
  }
5061
5113
  }).catch((D) => {
5062
- de(D);
5114
+ fe(D);
5063
5115
  });
5064
5116
  }, Yt = (D) => {
5065
5117
  if (S === "needs-auth-info") {
@@ -5067,10 +5119,10 @@ function Oo(t, e, r) {
5067
5119
  return;
5068
5120
  }
5069
5121
  if (S === "needs-payment-info") {
5070
- r(6, S = "polling-purchase-status"), $.pollCurrentPurchaseForCompletion().then(() => {
5122
+ r(6, S = "polling-purchase-status"), y.pollCurrentPurchaseForCompletion().then(() => {
5071
5123
  r(6, S = "success");
5072
- }).catch((xe) => {
5073
- de(xe);
5124
+ }).catch((Le) => {
5125
+ fe(Le);
5074
5126
  });
5075
5127
  return;
5076
5128
  }
@@ -5079,27 +5131,31 @@ function Oo(t, e, r) {
5079
5131
  return;
5080
5132
  }
5081
5133
  r(6, S = "success");
5082
- }, de = (D) => {
5134
+ }, fe = (D) => {
5135
+ if (S === "processing-auth-info") {
5136
+ r(5, R = D), r(6, S = "needs-auth-info");
5137
+ return;
5138
+ }
5083
5139
  r(5, R = D), r(6, S = "error");
5084
5140
  }, Ht = () => {
5085
5141
  a(R ?? new Y(O.UnknownError, "Unknown error without state set."));
5086
5142
  };
5087
5143
  return t.$$set = (D) => {
5088
- "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(17, l = D.purchaseOption), "onFinished" in D && r(18, c = D.onFinished), "onError" in D && r(19, a = D.onError), "onClose" in D && r(20, u = D.onClose), "purchases" in D && r(1, d = D.purchases), "backend" in D && r(21, h = D.backend), "purchaseOperationHelper" in D && r(22, $ = D.purchaseOperationHelper);
5144
+ "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(17, l = D.purchaseOption), "onFinished" in D && r(18, c = D.onFinished), "onError" in D && r(19, a = D.onError), "onClose" in D && r(20, u = D.onClose), "purchases" in D && r(1, m = D.purchases), "backend" in D && r(21, h = D.backend), "purchaseOperationHelper" in D && r(22, y = D.purchaseOperationHelper);
5089
5145
  }, [
5090
5146
  n,
5091
- d,
5147
+ m,
5092
5148
  B,
5093
5149
  A,
5094
- y,
5150
+ $,
5095
5151
  R,
5096
5152
  S,
5097
5153
  E,
5098
5154
  F,
5099
- ye,
5155
+ $e,
5100
5156
  Be,
5101
5157
  Yt,
5102
- de,
5158
+ fe,
5103
5159
  Ht,
5104
5160
  i,
5105
5161
  o,
@@ -5109,16 +5165,16 @@ function Oo(t, e, r) {
5109
5165
  a,
5110
5166
  u,
5111
5167
  h,
5112
- $
5168
+ y
5113
5169
  ];
5114
5170
  }
5115
- class Lo extends U {
5171
+ class Fo extends U {
5116
5172
  constructor(e) {
5117
5173
  super(), N(
5118
5174
  this,
5119
5175
  e,
5120
- Oo,
5121
- So,
5176
+ xo,
5177
+ Lo,
5122
5178
  T,
5123
5179
  {
5124
5180
  asModal: 0,
@@ -5137,33 +5193,33 @@ class Lo extends U {
5137
5193
  );
5138
5194
  }
5139
5195
  }
5140
- function xo(t) {
5196
+ function Go(t) {
5141
5197
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5142
5198
  }
5143
- function Fo(t, e, r, n) {
5199
+ function Yo(t, e, r, n) {
5144
5200
  const i = e.product_identifier;
5145
5201
  if (i in r)
5146
- return Go(
5202
+ return Ho(
5147
5203
  t,
5148
5204
  e,
5149
5205
  r[i]
5150
5206
  );
5151
5207
  if (i in n)
5152
- return Yo(
5208
+ return Ko(
5153
5209
  t,
5154
5210
  e,
5155
5211
  n[i]
5156
5212
  );
5157
- throw new X(
5158
- ee.CustomerInfoError,
5213
+ throw new z(
5214
+ Z.CustomerInfoError,
5159
5215
  "Could not find entitlement product in subscriptions or non-subscriptions."
5160
5216
  );
5161
5217
  }
5162
- function Go(t, e, r) {
5218
+ function Ho(t, e, r) {
5163
5219
  return {
5164
5220
  identifier: t,
5165
- isActive: xo(e),
5166
- willRenew: qo(e, r),
5221
+ isActive: Go(e),
5222
+ willRenew: Jo(e, r),
5167
5223
  store: (r == null ? void 0 : r.store) ?? "unknown",
5168
5224
  latestPurchaseDate: new Date(e.purchase_date),
5169
5225
  originalPurchaseDate: new Date(e.purchase_date),
@@ -5179,7 +5235,7 @@ function Go(t, e, r) {
5179
5235
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
5180
5236
  };
5181
5237
  }
5182
- function Yo(t, e, r) {
5238
+ function Ko(t, e, r) {
5183
5239
  return {
5184
5240
  identifier: t,
5185
5241
  isActive: !0,
@@ -5197,10 +5253,10 @@ function Yo(t, e, r) {
5197
5253
  periodType: "normal"
5198
5254
  };
5199
5255
  }
5200
- function Ho(t, e, r) {
5256
+ function qo(t, e, r) {
5201
5257
  const n = {}, i = {};
5202
5258
  for (const o in t) {
5203
- const s = Fo(
5259
+ const s = Yo(
5204
5260
  o,
5205
5261
  t[o],
5206
5262
  e,
@@ -5216,22 +5272,22 @@ function Ho(t, e, r) {
5216
5272
  function Ne(t) {
5217
5273
  return t == null ? null : new Date(t);
5218
5274
  }
5219
- function Ko(t) {
5220
- const e = Jo(t), r = t.subscriber, n = Wo(
5275
+ function jo(t) {
5276
+ const e = Wo(t), r = t.subscriber, n = Xo(
5221
5277
  r.non_subscriptions
5222
5278
  );
5223
5279
  return {
5224
- entitlements: Ho(
5280
+ entitlements: qo(
5225
5281
  r.entitlements,
5226
5282
  r.subscriptions,
5227
5283
  n
5228
5284
  ),
5229
5285
  allExpirationDatesByProduct: e,
5230
- allPurchaseDatesByProduct: jo(
5286
+ allPurchaseDatesByProduct: Vo(
5231
5287
  t,
5232
5288
  n
5233
5289
  ),
5234
- activeSubscriptions: Vo(e),
5290
+ activeSubscriptions: zo(e),
5235
5291
  managementURL: r.management_url,
5236
5292
  requestDate: new Date(t.request_date),
5237
5293
  firstSeenDate: new Date(r.first_seen),
@@ -5241,13 +5297,13 @@ function Ko(t) {
5241
5297
  originalAppUserId: t.subscriber.original_app_user_id
5242
5298
  };
5243
5299
  }
5244
- function qo(t, e) {
5300
+ function Jo(t, e) {
5245
5301
  if (e == null)
5246
5302
  return !1;
5247
5303
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
5248
5304
  return !(r || n || i || o);
5249
5305
  }
5250
- function jo(t, e) {
5306
+ function Vo(t, e) {
5251
5307
  const r = {};
5252
5308
  for (const n in t.subscriber.subscriptions) {
5253
5309
  const i = t.subscriber.subscriptions[n];
@@ -5261,7 +5317,7 @@ function jo(t, e) {
5261
5317
  }
5262
5318
  return r;
5263
5319
  }
5264
- function Jo(t) {
5320
+ function Wo(t) {
5265
5321
  const e = {};
5266
5322
  for (const r in t.subscriber.subscriptions) {
5267
5323
  const n = t.subscriber.subscriptions[r];
@@ -5271,7 +5327,7 @@ function Jo(t) {
5271
5327
  }
5272
5328
  return e;
5273
5329
  }
5274
- function Vo(t) {
5330
+ function zo(t) {
5275
5331
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5276
5332
  for (const n in t) {
5277
5333
  const i = t[n];
@@ -5279,7 +5335,7 @@ function Vo(t) {
5279
5335
  }
5280
5336
  return e;
5281
5337
  }
5282
- function Wo(t) {
5338
+ function Xo(t) {
5283
5339
  const e = {};
5284
5340
  for (const r in t) {
5285
5341
  if (t[r].length === 0)
@@ -5289,14 +5345,14 @@ function Wo(t) {
5289
5345
  }
5290
5346
  return e;
5291
5347
  }
5292
- function zo(t) {
5348
+ function Zo(t) {
5293
5349
  if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
5294
- throw new X(
5295
- ee.InvalidCredentialsError,
5350
+ throw new z(
5351
+ Z.InvalidCredentialsError,
5296
5352
  "Invalid API key. Use your RevenueCat Billing API key."
5297
5353
  );
5298
5354
  }
5299
- function Xo(t) {
5355
+ function es(t) {
5300
5356
  if ((/* @__PURE__ */ new Set([
5301
5357
  "no_user",
5302
5358
  "null",
@@ -5310,24 +5366,31 @@ function Xo(t) {
5310
5366
  "undefined",
5311
5367
  "unknown"
5312
5368
  ])).has(t) || t.includes("/"))
5313
- throw new X(
5314
- ee.InvalidAppUserIdError,
5369
+ throw new z(
5370
+ Z.InvalidAppUserIdError,
5315
5371
  'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
5316
5372
  );
5317
5373
  }
5318
- const z = class z {
5374
+ function ts(t) {
5375
+ if (t != null && t.endsWith("/"))
5376
+ throw new z(
5377
+ Z.ConfigurationError,
5378
+ "Invalid proxy URL. The proxy URL should not end with a trailing slash."
5379
+ );
5380
+ }
5381
+ const X = class X {
5319
5382
  /** @internal */
5320
- constructor(e, r) {
5383
+ constructor(e, r, n = je) {
5321
5384
  /** @internal */
5322
- Q(this, "_API_KEY");
5385
+ P(this, "_API_KEY");
5323
5386
  /** @internal */
5324
- Q(this, "_appUserId");
5387
+ P(this, "_appUserId");
5325
5388
  /** @internal */
5326
- Q(this, "backend");
5389
+ P(this, "backend");
5327
5390
  /** @internal */
5328
- Q(this, "purchaseOperationHelper");
5391
+ P(this, "purchaseOperationHelper");
5329
5392
  /** @internal */
5330
- Q(this, "toOfferings", (e, r) => {
5393
+ P(this, "toOfferings", (e, r) => {
5331
5394
  const n = e.offerings.find(
5332
5395
  (l) => l.identifier === e.current_offering_id
5333
5396
  ) ?? null, i = {};
@@ -5345,7 +5408,7 @@ const z = class z {
5345
5408
  current: o
5346
5409
  };
5347
5410
  });
5348
- this._API_KEY = e, this._appUserId = r, je(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new wo(this._API_KEY), this.purchaseOperationHelper = new Yn(this.backend);
5411
+ this._API_KEY = e, this._appUserId = r, qe(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new yo(this._API_KEY, n), this.purchaseOperationHelper = new Hn(this.backend);
5349
5412
  }
5350
5413
  /**
5351
5414
  * Set the log level. Logs of the given level and below will be printed
@@ -5362,15 +5425,15 @@ const z = class z {
5362
5425
  * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
5363
5426
  */
5364
5427
  static getSharedInstance() {
5365
- if (z.isConfigured())
5366
- return z.instance;
5367
- throw new Gn();
5428
+ if (X.isConfigured())
5429
+ return X.instance;
5430
+ throw new Yn();
5368
5431
  }
5369
5432
  /**
5370
5433
  * Returns whether the Purchases SDK is configured or not.
5371
5434
  */
5372
5435
  static isConfigured() {
5373
- return z.instance !== void 0;
5436
+ return X.instance !== void 0;
5374
5437
  }
5375
5438
  /**
5376
5439
  * Configures the Purchases SDK. This should be called as soon as your app
@@ -5378,12 +5441,13 @@ const z = class z {
5378
5441
  * keep the returned instance around for use throughout your application.
5379
5442
  * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
5380
5443
  * @param appUserId - Your unique id for identifying the user.
5444
+ * @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
5381
5445
  * @throws {@link PurchasesError} if the API key or user id are invalid.
5382
5446
  */
5383
- static configure(e, r) {
5384
- return z.instance !== void 0 && G.warnLog(
5447
+ static configure(e, r, n = je) {
5448
+ return X.instance !== void 0 && G.warnLog(
5385
5449
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
5386
- ), zo(e), Xo(r), z.instance = new z(e, r), z.getSharedInstance();
5450
+ ), Zo(e), es(r), ts(n.proxyURL), X.instance = new X(e, r, n), X.getSharedInstance();
5387
5451
  }
5388
5452
  /**
5389
5453
  * Fetch the configured offerings for this user. You can configure these
@@ -5450,8 +5514,8 @@ const z = class z {
5450
5514
  const l = s, c = !i, a = this._appUserId;
5451
5515
  return G.debugLog(
5452
5516
  `Presenting purchase form for package ${r.identifier}`
5453
- ), new Promise((u, d) => {
5454
- new Lo({
5517
+ ), new Promise((u, m) => {
5518
+ new Fo({
5455
5519
  target: l,
5456
5520
  props: {
5457
5521
  appUserId: a,
@@ -5464,10 +5528,10 @@ const z = class z {
5464
5528
  });
5465
5529
  },
5466
5530
  onClose: () => {
5467
- l.innerHTML = "", G.debugLog("Purchase cancelled by user"), d(new X(ee.UserCancelledError));
5531
+ l.innerHTML = "", G.debugLog("Purchase cancelled by user"), m(new z(Z.UserCancelledError));
5468
5532
  },
5469
5533
  onError: (h) => {
5470
- l.innerHTML = "", d(X.getForPurchasesFlowError(h));
5534
+ l.innerHTML = "", m(z.getForPurchasesFlowError(h));
5471
5535
  },
5472
5536
  purchases: this,
5473
5537
  backend: this.backend,
@@ -5518,30 +5582,30 @@ const z = class z {
5518
5582
  * @returns Whether the SDK is using a sandbox API Key.
5519
5583
  */
5520
5584
  isSandbox() {
5521
- return je(this._API_KEY);
5585
+ return qe(this._API_KEY);
5522
5586
  }
5523
5587
  /**
5524
5588
  * Closes the Purchases instance. You should never have to do this normally.
5525
5589
  */
5526
5590
  close() {
5527
- z.instance === this ? z.instance = void 0 : G.warnLog(
5591
+ X.instance === this ? X.instance = void 0 : G.warnLog(
5528
5592
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
5529
5593
  );
5530
5594
  }
5531
5595
  /** @internal */
5532
5596
  async _getCustomerInfoForUserId(e) {
5533
5597
  const r = await this.backend.getCustomerInfo(e);
5534
- return Ko(r);
5598
+ return jo(r);
5535
5599
  }
5536
5600
  };
5537
5601
  /** @internal */
5538
- Q(z, "instance");
5539
- let yt = z;
5602
+ P(X, "instance");
5603
+ let $t = X;
5540
5604
  export {
5541
- ee as ErrorCode,
5605
+ Z as ErrorCode,
5542
5606
  W as LogLevel,
5543
5607
  zt as PackageType,
5544
- yt as Purchases,
5545
- X as PurchasesError,
5546
- Gn as UninitializedPurchasesError
5608
+ $t as Purchases,
5609
+ z as PurchasesError,
5610
+ Yn as UninitializedPurchasesError
5547
5611
  };