@revenuecat/purchases-js 0.3.4 → 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.
@@ -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) {
@@ -248,9 +248,9 @@ function ce(t) {
248
248
  function T(t, e) {
249
249
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
250
250
  }
251
- let Me;
251
+ let De;
252
252
  function ee(t, e) {
253
- return t === e ? !0 : (Me || (Me = document.createElement("a")), Me.href = e, t === Me.href);
253
+ return t === e ? !0 : (De || (De = document.createElement("a")), De.href = e, t === De.href);
254
254
  }
255
255
  function st(t) {
256
256
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
@@ -308,13 +308,13 @@ 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 Q(t, e) {
314
+ function M(t, e) {
315
315
  t.appendChild(e);
316
316
  }
317
- function F(t, e, r) {
317
+ function x(t, e, r) {
318
318
  const n = ln(t);
319
319
  if (!n.getElementById(e)) {
320
320
  const i = k("style");
@@ -332,7 +332,7 @@ function ln(t) {
332
332
  ) : t.ownerDocument;
333
333
  }
334
334
  function cn(t, e) {
335
- return Q(
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 C() {
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,23 +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 $e() {
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
410
  function _n(t) {
411
- $e().$$.before_update.push(t);
411
+ ke().$$.before_update.push(t);
412
412
  }
413
- function Oe(t) {
414
- $e().$$.on_mount.push(t);
413
+ function Se(t) {
414
+ ke().$$.on_mount.push(t);
415
415
  }
416
- function An() {
417
- const t = $e();
416
+ function hn() {
417
+ const t = ke();
418
418
  return (e, r, { cancelable: n = !1 } = {}) => {
419
419
  const i = t.$$.callbacks[e];
420
420
  if (i) {
@@ -431,68 +431,68 @@ function An() {
431
431
  return !0;
432
432
  };
433
433
  }
434
- function hn(t, e) {
435
- return $e().$$.context.set(t, e), e;
434
+ function An(t, e) {
435
+ return ke().$$.context.set(t, e), e;
436
436
  }
437
437
  function En(t) {
438
- return $e().$$.context.get(t);
438
+ return ke().$$.context.get(t);
439
439
  }
440
- function Qt(t, e) {
440
+ function Pt(t, e) {
441
441
  const r = t.$$.callbacks[e.type];
442
442
  r && r.slice().forEach((n) => n.call(this, e));
443
443
  }
444
- const se = [], Re = [];
444
+ const se = [], Ue = [];
445
445
  let le = [];
446
- const He = [], bn = /* @__PURE__ */ Promise.resolve();
447
- let Ke = !1;
446
+ const Ye = [], bn = /* @__PURE__ */ Promise.resolve();
447
+ let He = !1;
448
448
  function In() {
449
- Ke || (Ke = !0, bn.then(Pt));
449
+ He || (He = !0, bn.then(Mt));
450
450
  }
451
- function qe(t) {
451
+ function Ke(t) {
452
452
  le.push(t);
453
453
  }
454
454
  function wn(t) {
455
- He.push(t);
455
+ Ye.push(t);
456
456
  }
457
457
  const xe = /* @__PURE__ */ new Set();
458
458
  let ie = 0;
459
- function Pt() {
459
+ function Mt() {
460
460
  if (ie !== 0)
461
461
  return;
462
- const t = be;
462
+ const t = Ee;
463
463
  do {
464
464
  try {
465
465
  for (; ie < se.length; ) {
466
466
  const e = se[ie];
467
- ie++, Ae(e), kn(e.$$);
467
+ ie++, _e(e), kn(e.$$);
468
468
  }
469
469
  } catch (e) {
470
470
  throw se.length = 0, ie = 0, e;
471
471
  }
472
- for (Ae(null), se.length = 0, ie = 0; Re.length; )
473
- Re.pop()();
472
+ for (_e(null), se.length = 0, ie = 0; Ue.length; )
473
+ Ue.pop()();
474
474
  for (let e = 0; e < le.length; e += 1) {
475
475
  const r = le[e];
476
476
  xe.has(r) || (xe.add(r), r());
477
477
  }
478
478
  le.length = 0;
479
479
  } while (se.length);
480
- for (; He.length; )
481
- He.pop()();
482
- Ke = !1, xe.clear(), Ae(t);
480
+ for (; Ye.length; )
481
+ Ye.pop()();
482
+ He = !1, xe.clear(), _e(t);
483
483
  }
484
484
  function kn(t) {
485
485
  if (t.fragment !== null) {
486
- t.update(), we(t.before_update);
486
+ t.update(), Ie(t.before_update);
487
487
  const e = t.dirty;
488
- 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);
489
489
  }
490
490
  }
491
- function $n(t) {
491
+ function yn(t) {
492
492
  const e = [], r = [];
493
493
  le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
494
494
  }
495
- const Te = /* @__PURE__ */ new Set();
495
+ const Qe = /* @__PURE__ */ new Set();
496
496
  let re;
497
497
  function H() {
498
498
  re = {
@@ -503,17 +503,17 @@ function H() {
503
503
  };
504
504
  }
505
505
  function K() {
506
- re.r || we(re.c), re = re.p;
506
+ re.r || Ie(re.c), re = re.p;
507
507
  }
508
508
  function f(t, e) {
509
- t && t.i && (Te.delete(t), t.i(e));
509
+ t && t.i && (Qe.delete(t), t.i(e));
510
510
  }
511
511
  function d(t, e, r, n) {
512
512
  if (t && t.o) {
513
- if (Te.has(t))
513
+ if (Qe.has(t))
514
514
  return;
515
- Te.add(t), re.c.push(() => {
516
- Te.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());
517
517
  }), t.o(e);
518
518
  } else
519
519
  n && n();
@@ -527,21 +527,21 @@ function w(t) {
527
527
  }
528
528
  function b(t, e, r) {
529
529
  const { fragment: n, after_update: i } = t.$$;
530
- n && n.m(e, r), qe(() => {
530
+ n && n.m(e, r), Ke(() => {
531
531
  const o = t.$$.on_mount.map(Bt).filter(ce);
532
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
533
- }), i.forEach(qe);
532
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Ie(o), t.$$.on_mount = [];
533
+ }), i.forEach(Ke);
534
534
  }
535
535
  function I(t, e) {
536
536
  const r = t.$$;
537
- r.fragment !== null && ($n(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 = []);
538
538
  }
539
- function yn(t, e) {
539
+ function $n(t, e) {
540
540
  t.$$.dirty[0] === -1 && (se.push(t), In(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
541
541
  }
542
542
  function N(t, e, r, n, i, o, s = null, l = [-1]) {
543
- const c = be;
544
- Ae(t);
543
+ const c = Ee;
544
+ _e(t);
545
545
  const a = t.$$ = {
546
546
  fragment: null,
547
547
  ctx: [],
@@ -565,18 +565,18 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
565
565
  };
566
566
  s && s(a.root);
567
567
  let u = !1;
568
- if (a.ctx = r ? r(t, e.props || {}, (m, A, ...$) => {
569
- const E = $.length ? $[0] : A;
570
- return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && yn(t, m)), A;
571
- }) : [], 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) {
572
572
  if (e.hydrate) {
573
573
  const m = gn(e.target);
574
574
  a.fragment && a.fragment.l(m), m.forEach(g);
575
575
  } else
576
576
  a.fragment && a.fragment.c();
577
- e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Pt();
577
+ e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Mt();
578
578
  }
579
- Ae(c);
579
+ _e(c);
580
580
  }
581
581
  class U {
582
582
  constructor() {
@@ -627,9 +627,9 @@ class U {
627
627
  const Bn = "4";
628
628
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
629
629
  function Dn(t) {
630
- F(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}");
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}");
631
631
  }
632
- function Ge(t) {
632
+ function Fe(t) {
633
633
  let e, r;
634
634
  const n = (
635
635
  /*#slots*/
@@ -650,7 +650,7 @@ function Ge(t) {
650
650
  /*as*/
651
651
  t[0]
652
652
  )(e, {
653
- class: Ee("rcb-modal-section") + " svelte-1bzqb13"
653
+ class: Ae("rcb-modal-section") + " svelte-1bzqb13"
654
654
  });
655
655
  },
656
656
  m(o, s) {
@@ -688,13 +688,13 @@ function Ge(t) {
688
688
  }
689
689
  };
690
690
  }
691
- function Mn(t) {
691
+ function Cn(t) {
692
692
  let e = (
693
693
  /*as*/
694
694
  t[0]
695
695
  ), r, n, i = (
696
696
  /*as*/
697
- t[0] && Ge(t)
697
+ t[0] && Fe(t)
698
698
  );
699
699
  return {
700
700
  c() {
@@ -709,8 +709,8 @@ function Mn(t) {
709
709
  e,
710
710
  /*as*/
711
711
  o[0]
712
- ) ? (i.d(1), i = Ge(o), e = /*as*/
713
- 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*/
714
714
  o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
715
715
  o[0]);
716
716
  },
@@ -725,7 +725,7 @@ function Mn(t) {
725
725
  }
726
726
  };
727
727
  }
728
- function Qn(t, e, r) {
728
+ function Pn(t, e, r) {
729
729
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
730
730
  return t.$$set = (s) => {
731
731
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
@@ -733,13 +733,13 @@ function Qn(t, e, r) {
733
733
  }
734
734
  class ue extends U {
735
735
  constructor(e) {
736
- super(), N(this, e, Qn, Mn, T, { as: 0 }, Dn);
736
+ super(), N(this, e, Pn, Cn, T, { as: 0 }, Dn);
737
737
  }
738
738
  }
739
- function Pn(t) {
740
- F(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}}");
739
+ function Mn(t) {
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}}");
741
741
  }
742
- function Cn(t) {
742
+ function Qn(t) {
743
743
  let e = Wt(
744
744
  /*trial*/
745
745
  t[1].periodDuration
@@ -769,7 +769,7 @@ function Tn(t) {
769
769
  ) + "", o;
770
770
  return {
771
771
  c() {
772
- r = L(e), n = C(), o = L(i);
772
+ r = L(e), n = Q(), o = L(i);
773
773
  },
774
774
  m(s, l) {
775
775
  p(s, r, l), p(s, n, l), p(s, o, l);
@@ -813,7 +813,7 @@ function ct(t) {
813
813
  e = k("li"), r = L("Renews "), i = L(n);
814
814
  },
815
815
  m(o, s) {
816
- p(o, e, s), Q(e, r), Q(e, i);
816
+ p(o, e, s), M(e, r), M(e, i);
817
817
  },
818
818
  p(o, s) {
819
819
  s & /*productDetails*/
@@ -828,16 +828,16 @@ function ct(t) {
828
828
  };
829
829
  }
830
830
  function Un(t) {
831
- var M, ye;
831
+ var C, ve;
832
832
  let e, r, n = (
833
833
  /*productDetails*/
834
834
  t[0].displayName + ""
835
- ), i, o, s, l, c, a, u, m, A, $, E, B = (
835
+ ), i, o, s, l, c, a, u, m, h, y, E, B = (
836
836
  /*trial*/
837
- ((M = t[1]) == null ? void 0 : M.periodDuration) && Cn(t)
838
- ), h = !/*trial*/
839
- ((ye = t[1]) != null && ye.periodDuration) && /*basePrice*/
840
- t[2] && Tn(t), y = (
837
+ ((C = t[1]) == null ? void 0 : C.periodDuration) && Qn(t)
838
+ ), A = !/*trial*/
839
+ ((ve = t[1]) != null && ve.periodDuration) && /*basePrice*/
840
+ t[2] && Tn(t), $ = (
841
841
  /*trial*/
842
842
  t[1] && /*basePrice*/
843
843
  t[2] && Nn(t)
@@ -847,25 +847,25 @@ function Un(t) {
847
847
  );
848
848
  return {
849
849
  c() {
850
- e = k("div"), r = k("span"), i = L(n), o = C(), s = k("span"), B && B.c(), l = C(), h && h.c(), c = C(), y && y.c(), a = C(), u = k("ul"), R && R.c(), m = C(), A = k("li"), A.textContent = "Continues until canceled", $ = C(), 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");
851
851
  },
852
- m(x, S) {
853
- p(x, e, S), Q(e, r), Q(r, i), Q(e, o), Q(e, s), B && B.m(s, null), Q(s, l), h && h.m(s, null), Q(e, c), y && y.m(e, null), Q(e, a), Q(e, u), R && R.m(u, null), Q(u, m), Q(u, A), Q(u, $), Q(u, E);
852
+ m(F, S) {
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);
854
854
  },
855
- p(x, S) {
856
- var Be, De;
855
+ p(F, S) {
856
+ var $e, Be;
857
857
  S & /*productDetails*/
858
858
  1 && n !== (n = /*productDetails*/
859
- x[0].displayName + "") && ae(i, n), /*trial*/
860
- (Be = x[1]) != null && Be.periodDuration && B.p(x, S), !/*trial*/
861
- ((De = x[1]) != null && De.periodDuration) && /*basePrice*/
862
- x[2] && h.p(x, S), /*trial*/
863
- x[1] && /*basePrice*/
864
- x[2] && y.p(x, S), /*productDetails*/
865
- x[0].normalPeriodDuration ? R ? R.p(x, S) : (R = ct(x), R.c(), R.m(u, m)) : R && (R.d(1), R = null);
859
+ F[0].displayName + "") && ae(i, n), /*trial*/
860
+ ($e = F[1]) != null && $e.periodDuration && B.p(F, S), !/*trial*/
861
+ ((Be = F[1]) != null && Be.periodDuration) && /*basePrice*/
862
+ F[2] && A.p(F, S), /*trial*/
863
+ F[1] && /*basePrice*/
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);
866
866
  },
867
- d(x) {
868
- x && g(e), B && B.d(), h && h.d(), y && y.d(), R && R.d();
867
+ d(F) {
868
+ F && g(e), B && B.d(), A && A.d(), $ && $.d(), R && R.d();
869
869
  }
870
870
  };
871
871
  }
@@ -907,9 +907,9 @@ function Sn(t, e, r) {
907
907
  "productDetails" in a && r(0, n = a.productDetails), "purchaseOption" in a && r(3, i = a.purchaseOption);
908
908
  }, [n, s, l, i];
909
909
  }
910
- class Ct extends U {
910
+ class Qt extends U {
911
911
  constructor(e) {
912
- super(), N(this, e, Sn, Rn, T, { productDetails: 0, purchaseOption: 3 }, Pn);
912
+ super(), N(this, e, Sn, Rn, T, { productDetails: 0, purchaseOption: 3 }, Mn);
913
913
  }
914
914
  }
915
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+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69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";
@@ -930,17 +930,17 @@ function Ln(t) {
930
930
  }
931
931
  };
932
932
  }
933
- class Fn extends U {
933
+ class xn extends U {
934
934
  constructor(e) {
935
935
  super(), N(this, e, null, Ln, T, {});
936
936
  }
937
937
  }
938
- function xn(t) {
939
- F(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
938
+ function Fn(t) {
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}");
940
940
  }
941
941
  function Gn(t) {
942
942
  let e, r, n;
943
- return r = new Fn({}), {
943
+ return r = new xn({}), {
944
944
  c() {
945
945
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
946
946
  },
@@ -961,7 +961,7 @@ function Gn(t) {
961
961
  }
962
962
  class We extends U {
963
963
  constructor(e) {
964
- super(), N(this, e, null, Gn, T, {}, xn);
964
+ super(), N(this, e, null, Gn, T, {}, Fn);
965
965
  }
966
966
  }
967
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 || {});
@@ -1093,7 +1093,7 @@ class he {
1093
1093
  }
1094
1094
  }
1095
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 X extends Error {
1096
+ class z extends Error {
1097
1097
  constructor(r, n, i) {
1098
1098
  super(n);
1099
1099
  P(this, "toString", () => `PurchasesError(code: ${Z[this.errorCode]}, message: ${this.message})`);
@@ -1102,7 +1102,7 @@ class X extends Error {
1102
1102
  /** @internal */
1103
1103
  static getForBackendError(r, n) {
1104
1104
  const i = he.getErrorCodeForBackendErrorCode(r);
1105
- return new X(
1105
+ return new z(
1106
1106
  i,
1107
1107
  he.getPublicMessage(i),
1108
1108
  n
@@ -1110,7 +1110,7 @@ class X extends Error {
1110
1110
  }
1111
1111
  /** @internal */
1112
1112
  static getForPurchasesFlowError(r) {
1113
- return new X(
1113
+ return new z(
1114
1114
  he.convertPurchaseFlowErrorCodeToErrorCode(
1115
1115
  r.errorCode
1116
1116
  ),
@@ -1124,7 +1124,7 @@ class Yn extends Error {
1124
1124
  super("Purchases must be configured before calling getInstance");
1125
1125
  }
1126
1126
  }
1127
- var pe = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(pe || {}), Ne = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Ne || {}), 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 || {});
1128
1128
  class Y extends Error {
1129
1129
  constructor(e, r, n) {
1130
1130
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
@@ -1157,7 +1157,7 @@ class Hn {
1157
1157
  );
1158
1158
  return this.operationSessionId = s.operation_session_id, s;
1159
1159
  } catch (s) {
1160
- if (s instanceof X)
1160
+ if (s instanceof z)
1161
1161
  throw Y.fromPurchasesError(
1162
1162
  s,
1163
1163
  0
@@ -1192,17 +1192,17 @@ class Hn {
1192
1192
  }
1193
1193
  this.backend.getCheckoutStatus(e).then((s) => {
1194
1194
  switch (s.operation.status) {
1195
- case pe.Started:
1196
- case pe.InProgress:
1195
+ case ge.Started:
1196
+ case ge.InProgress:
1197
1197
  setTimeout(
1198
1198
  () => i(o + 1),
1199
1199
  this.waitMSBetweenAttempts
1200
1200
  );
1201
1201
  break;
1202
- case pe.Succeeded:
1202
+ case ge.Succeeded:
1203
1203
  this.clearPurchaseInProgress(), r();
1204
1204
  return;
1205
- case pe.Failed:
1205
+ case ge.Failed:
1206
1206
  this.clearPurchaseInProgress(), this.handlePaymentError(
1207
1207
  s.operation.error,
1208
1208
  n
@@ -1234,7 +1234,7 @@ class Hn {
1234
1234
  return;
1235
1235
  }
1236
1236
  switch (e.code) {
1237
- case Ne.SetupIntentCreationFailed:
1237
+ case Te.SetupIntentCreationFailed:
1238
1238
  r(
1239
1239
  new Y(
1240
1240
  0,
@@ -1242,7 +1242,7 @@ class Hn {
1242
1242
  )
1243
1243
  );
1244
1244
  return;
1245
- case Ne.PaymentMethodCreationFailed:
1245
+ case Te.PaymentMethodCreationFailed:
1246
1246
  r(
1247
1247
  new Y(
1248
1248
  0,
@@ -1250,7 +1250,7 @@ class Hn {
1250
1250
  )
1251
1251
  );
1252
1252
  return;
1253
- case Ne.PaymentChargeFailed:
1253
+ case Te.PaymentChargeFailed:
1254
1254
  r(
1255
1255
  new Y(
1256
1256
  1,
@@ -1263,7 +1263,7 @@ class Hn {
1263
1263
  }
1264
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
1265
  function qn(t) {
1266
- F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1266
+ x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1267
1267
  }
1268
1268
  function jn(t) {
1269
1269
  let e, r;
@@ -1288,7 +1288,7 @@ class Jn extends U {
1288
1288
  }
1289
1289
  }
1290
1290
  function Vn(t) {
1291
- F(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)}");
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)}");
1292
1292
  }
1293
1293
  function Wn(t) {
1294
1294
  let e, r, n, i, o;
@@ -1304,12 +1304,12 @@ function Wn(t) {
1304
1304
  );
1305
1305
  return {
1306
1306
  c() {
1307
- 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*/
1308
1308
  t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
1309
1309
  t[1];
1310
1310
  },
1311
1311
  m(c, a) {
1312
- 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(
1313
1313
  e,
1314
1314
  "click",
1315
1315
  /*click_handler*/
@@ -1336,7 +1336,7 @@ function Wn(t) {
1336
1336
  ),
1337
1337
  null
1338
1338
  ), (!n || a & /*intent*/
1339
- 1 && r !== (r = Ee(`intent-${/*intent*/
1339
+ 1 && r !== (r = Ae(`intent-${/*intent*/
1340
1340
  c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
1341
1341
  2) && (e.disabled = /*disabled*/
1342
1342
  c[1]);
@@ -1355,19 +1355,19 @@ function Wn(t) {
1355
1355
  function zn(t, e, r) {
1356
1356
  let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1357
1357
  function l(c) {
1358
- Qt.call(this, t, c);
1358
+ Pt.call(this, t, c);
1359
1359
  }
1360
1360
  return t.$$set = (c) => {
1361
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);
1362
1362
  }, [o, s, i, n, l];
1363
1363
  }
1364
- class Ie extends U {
1364
+ class be extends U {
1365
1365
  constructor(e) {
1366
1366
  super(), N(this, e, zn, Wn, T, { intent: 0, disabled: 1 }, Vn);
1367
1367
  }
1368
1368
  }
1369
1369
  function Xn(t) {
1370
- F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1370
+ x(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1371
1371
  }
1372
1372
  function Zn(t) {
1373
1373
  let e, r;
@@ -1432,7 +1432,7 @@ class ze extends U {
1432
1432
  }
1433
1433
  }
1434
1434
  function tr(t) {
1435
- F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1435
+ x(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1436
1436
  }
1437
1437
  function nr(t) {
1438
1438
  let e, r, n;
@@ -1494,14 +1494,14 @@ function rr(t, e, r) {
1494
1494
  "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1495
1495
  }, [o, i, n];
1496
1496
  }
1497
- class ve extends U {
1497
+ class ye extends U {
1498
1498
  constructor(e) {
1499
1499
  super(), N(this, e, rr, nr, T, { gutter: 0 }, tr);
1500
1500
  }
1501
1501
  }
1502
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
1503
  function or(t) {
1504
- F(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1504
+ x(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1505
1505
  }
1506
1506
  function sr(t) {
1507
1507
  let e, r, n, i, o;
@@ -1511,7 +1511,7 @@ function sr(t) {
1511
1511
  t[0];
1512
1512
  },
1513
1513
  m(s, l) {
1514
- p(s, e, l), Q(e, r), i || (o = ke(
1514
+ p(s, e, l), M(e, r), i || (o = we(
1515
1515
  e,
1516
1516
  "click",
1517
1517
  /*click_handler*/
@@ -1533,7 +1533,7 @@ function sr(t) {
1533
1533
  function lr(t, e, r) {
1534
1534
  let { disabled: n = !1 } = e;
1535
1535
  function i(o) {
1536
- Qt.call(this, t, o);
1536
+ Pt.call(this, t, o);
1537
1537
  }
1538
1538
  return t.$$set = (o) => {
1539
1539
  "disabled" in o && r(0, n = o.disabled);
@@ -1545,7 +1545,7 @@ class cr extends U {
1545
1545
  }
1546
1546
  }
1547
1547
  function ar(t) {
1548
- F(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}");
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}");
1549
1549
  }
1550
1550
  function ur(t) {
1551
1551
  let e;
@@ -1566,12 +1566,12 @@ function fr(t) {
1566
1566
  let e, r, n, i, o, s;
1567
1567
  return {
1568
1568
  c() {
1569
- e = k("picture"), r = k("source"), i = C(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1569
+ e = k("picture"), r = k("source"), i = Q(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1570
1570
  t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), ee(o.src, s = /*src*/
1571
1571
  t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1572
1572
  },
1573
1573
  m(l, c) {
1574
- p(l, e, c), Q(e, r), Q(e, i), Q(e, o);
1574
+ p(l, e, c), M(e, r), M(e, i), M(e, o);
1575
1575
  },
1576
1576
  p(l, c) {
1577
1577
  c & /*srcWebp*/
@@ -1622,9 +1622,9 @@ class Nt extends U {
1622
1622
  super(), N(this, e, mr, dr, T, { src: 0, srcWebp: 1 }, ar);
1623
1623
  }
1624
1624
  }
1625
- const Qe = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1625
+ const Ce = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1626
1626
  function gr(t) {
1627
- F(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}");
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}");
1628
1628
  }
1629
1629
  function pr(t) {
1630
1630
  let e, r;
@@ -1658,10 +1658,10 @@ function _r(t) {
1658
1658
  );
1659
1659
  return {
1660
1660
  c() {
1661
- s && s.c(), e = C(), 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");
1662
1662
  },
1663
1663
  m(l, c) {
1664
- s && s.m(l, c), p(l, e, c), p(l, r, c), Q(r, i), o = !0;
1664
+ s && s.m(l, c), p(l, e, c), p(l, r, c), M(r, i), o = !0;
1665
1665
  },
1666
1666
  p(l, c) {
1667
1667
  /*brandingInfo*/
@@ -1688,11 +1688,11 @@ function at(t) {
1688
1688
  let e, r;
1689
1689
  return e = new Nt({
1690
1690
  props: {
1691
- src: Qe(
1691
+ src: Ce(
1692
1692
  /*brandingInfo*/
1693
1693
  t[0].app_icon
1694
1694
  ),
1695
- srcWebp: Qe(
1695
+ srcWebp: Ce(
1696
1696
  /*brandingInfo*/
1697
1697
  t[0].app_icon_webp
1698
1698
  )
@@ -1707,11 +1707,11 @@ function at(t) {
1707
1707
  p(n, i) {
1708
1708
  const o = {};
1709
1709
  i & /*brandingInfo*/
1710
- 1 && (o.src = Qe(
1710
+ 1 && (o.src = Ce(
1711
1711
  /*brandingInfo*/
1712
1712
  n[0].app_icon
1713
1713
  )), i & /*brandingInfo*/
1714
- 1 && (o.srcWebp = Qe(
1714
+ 1 && (o.srcWebp = Ce(
1715
1715
  /*brandingInfo*/
1716
1716
  n[0].app_icon_webp
1717
1717
  )), e.$set(o);
@@ -1727,7 +1727,7 @@ function at(t) {
1727
1727
  }
1728
1728
  };
1729
1729
  }
1730
- function Ar(t) {
1730
+ function hr(t) {
1731
1731
  let e, r, n, i;
1732
1732
  const o = [_r, pr], s = [];
1733
1733
  function l(c, a) {
@@ -1760,7 +1760,7 @@ function Ar(t) {
1760
1760
  }
1761
1761
  };
1762
1762
  }
1763
- function hr(t, e, r) {
1763
+ function Ar(t, e, r) {
1764
1764
  let { brandingInfo: n = null } = e;
1765
1765
  return t.$$set = (i) => {
1766
1766
  "brandingInfo" in i && r(0, n = i.brandingInfo);
@@ -1768,11 +1768,11 @@ function hr(t, e, r) {
1768
1768
  }
1769
1769
  class Ut extends U {
1770
1770
  constructor(e) {
1771
- super(), N(this, e, hr, Ar, T, { brandingInfo: 0 }, gr);
1771
+ super(), N(this, e, Ar, hr, T, { brandingInfo: 0 }, gr);
1772
1772
  }
1773
1773
  }
1774
1774
  function Er(t) {
1775
- F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
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}");
1776
1776
  }
1777
1777
  function br(t) {
1778
1778
  let e, r, n, i, o;
@@ -1788,10 +1788,10 @@ function br(t) {
1788
1788
  ) && t[1].apply(this, arguments);
1789
1789
  }), {
1790
1790
  c() {
1791
- e = k("div"), w(r.$$.fragment), n = C(), 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");
1792
1792
  },
1793
1793
  m(s, l) {
1794
- p(s, e, l), b(r, e, null), Q(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;
1795
1795
  },
1796
1796
  p(s, l) {
1797
1797
  t = s;
@@ -1853,11 +1853,11 @@ class kr extends U {
1853
1853
  super(), N(this, e, wr, Ir, T, { brandingInfo: 0, onClose: 1 }, Er);
1854
1854
  }
1855
1855
  }
1856
- function $r(t) {
1857
- F(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}");
1856
+ function yr(t) {
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}");
1858
1858
  }
1859
1859
  const vr = (t) => ({}), ut = (t) => ({});
1860
- function yr(t) {
1860
+ function $r(t) {
1861
1861
  let e, r, n, i, o;
1862
1862
  const s = (
1863
1863
  /*#slots*/
@@ -1874,10 +1874,10 @@ function yr(t) {
1874
1874
  e = k("span"), r = L(
1875
1875
  /*title*/
1876
1876
  t[2]
1877
- ), n = C(), 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");
1878
1878
  },
1879
1879
  m(c, a) {
1880
- p(c, e, a), Q(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;
1881
1881
  },
1882
1882
  p(c, a) {
1883
1883
  (!o || a & /*title*/
@@ -1928,15 +1928,15 @@ function Br(t) {
1928
1928
  t[5],
1929
1929
  ut
1930
1930
  );
1931
- return r = new ve({
1931
+ return r = new ye({
1932
1932
  props: {
1933
1933
  gutter: "16px",
1934
- $$slots: { default: [yr] },
1934
+ $$slots: { default: [$r] },
1935
1935
  $$scope: { ctx: t }
1936
1936
  }
1937
1937
  }), {
1938
1938
  c() {
1939
- o && o.c(), e = C(), w(r.$$.fragment);
1939
+ o && o.c(), e = Q(), w(r.$$.fragment);
1940
1940
  },
1941
1941
  m(s, l) {
1942
1942
  o && o.m(s, l), p(s, e, l), b(r, s, l), n = !0;
@@ -1978,7 +1978,7 @@ function Br(t) {
1978
1978
  }
1979
1979
  function Dr(t) {
1980
1980
  let e, r, n;
1981
- return r = new ve({
1981
+ return r = new ye({
1982
1982
  props: {
1983
1983
  gutter: "16px",
1984
1984
  $$slots: { default: [Br] },
@@ -2018,7 +2018,7 @@ function Dr(t) {
2018
2018
  }
2019
2019
  };
2020
2020
  }
2021
- function Mr(t) {
2021
+ function Cr(t) {
2022
2022
  let e;
2023
2023
  return {
2024
2024
  c() {
@@ -2032,11 +2032,11 @@ function Mr(t) {
2032
2032
  }
2033
2033
  };
2034
2034
  }
2035
- function Qr(t) {
2035
+ function Pr(t) {
2036
2036
  let e, r;
2037
- return e = new Ie({
2037
+ return e = new be({
2038
2038
  props: {
2039
- $$slots: { default: [Mr] },
2039
+ $$slots: { default: [Cr] },
2040
2040
  $$scope: { ctx: t }
2041
2041
  }
2042
2042
  }), e.$on("click", function() {
@@ -2068,7 +2068,7 @@ function Qr(t) {
2068
2068
  }
2069
2069
  };
2070
2070
  }
2071
- function Pr(t) {
2071
+ function Mr(t) {
2072
2072
  let e, r, n, i, o, s;
2073
2073
  return e = new kr({
2074
2074
  props: {
@@ -2088,12 +2088,12 @@ function Pr(t) {
2088
2088
  }
2089
2089
  }), o = new ze({
2090
2090
  props: {
2091
- $$slots: { default: [Qr] },
2091
+ $$slots: { default: [Pr] },
2092
2092
  $$scope: { ctx: t }
2093
2093
  }
2094
2094
  }), {
2095
2095
  c() {
2096
- w(e.$$.fragment), r = C(), w(n.$$.fragment), i = C(), w(o.$$.fragment);
2096
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
2097
2097
  },
2098
2098
  m(l, c) {
2099
2099
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -2123,12 +2123,12 @@ function Pr(t) {
2123
2123
  }
2124
2124
  };
2125
2125
  }
2126
- function Cr(t) {
2126
+ function Qr(t) {
2127
2127
  let e, r;
2128
- return e = new ve({
2128
+ return e = new ye({
2129
2129
  props: {
2130
2130
  gutter: "32px",
2131
- $$slots: { default: [Pr] },
2131
+ $$slots: { default: [Mr] },
2132
2132
  $$scope: { ctx: t }
2133
2133
  }
2134
2134
  }), {
@@ -2166,7 +2166,7 @@ class Rt extends U {
2166
2166
  this,
2167
2167
  e,
2168
2168
  Tr,
2169
- Cr,
2169
+ Qr,
2170
2170
  T,
2171
2171
  {
2172
2172
  brandingInfo: 0,
@@ -2174,7 +2174,7 @@ class Rt extends U {
2174
2174
  title: 2,
2175
2175
  type: 3
2176
2176
  },
2177
- $r
2177
+ yr
2178
2178
  );
2179
2179
  }
2180
2180
  }
@@ -2189,7 +2189,7 @@ function ft(t) {
2189
2189
  t[1]);
2190
2190
  },
2191
2191
  m(s, l) {
2192
- p(s, e, l), p(s, r, l), Q(r, n), p(s, o, l);
2192
+ p(s, e, l), p(s, r, l), M(r, n), p(s, o, l);
2193
2193
  },
2194
2194
  p(s, l) {
2195
2195
  l & /*supportEmail*/
@@ -2216,7 +2216,7 @@ function Nr(t) {
2216
2216
  );
2217
2217
  return {
2218
2218
  c() {
2219
- r = L(e), n = C(), o && o.c(), i = te();
2219
+ r = L(e), n = Q(), o && o.c(), i = te();
2220
2220
  },
2221
2221
  m(s, l) {
2222
2222
  p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
@@ -2303,7 +2303,7 @@ function Rr(t) {
2303
2303
  }
2304
2304
  function Sr(t, e, r) {
2305
2305
  let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
2306
- Oe(() => {
2306
+ Se(() => {
2307
2307
  G.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2308
2308
  });
2309
2309
  function l() {
@@ -2355,10 +2355,10 @@ class Or extends U {
2355
2355
  }
2356
2356
  }
2357
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 Fr(t) {
2359
- F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2360
- }
2361
2358
  function xr(t) {
2359
+ x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2360
+ }
2361
+ function Fr(t) {
2362
2362
  let e, r;
2363
2363
  return {
2364
2364
  c() {
@@ -2377,7 +2377,7 @@ function xr(t) {
2377
2377
  }
2378
2378
  class Gr extends U {
2379
2379
  constructor(e) {
2380
- super(), N(this, e, null, xr, T, {}, Fr);
2380
+ super(), N(this, e, null, Fr, T, {}, xr);
2381
2381
  }
2382
2382
  }
2383
2383
  function Yr(t) {
@@ -2504,9 +2504,9 @@ function zr(t) {
2504
2504
  }
2505
2505
  function Xr(t, e, r) {
2506
2506
  let n, i;
2507
- const o = An(), { elements: s } = En("stripe");
2507
+ const o = hn(), { elements: s } = En("stripe");
2508
2508
  let { options: l = void 0 } = e;
2509
- Oe(() => (n = Jr(i, "payment", s, o, l), () => n.destroy()));
2509
+ Se(() => (n = Jr(i, "payment", s, o, l), () => n.destroy()));
2510
2510
  function c() {
2511
2511
  n.blur();
2512
2512
  }
@@ -2519,14 +2519,14 @@ function Xr(t, e, r) {
2519
2519
  function m() {
2520
2520
  n.focus();
2521
2521
  }
2522
- function A($) {
2523
- Re[$ ? "unshift" : "push"](() => {
2524
- i = $, r(0, i);
2522
+ function h(y) {
2523
+ Ue[y ? "unshift" : "push"](() => {
2524
+ i = y, r(0, i);
2525
2525
  });
2526
2526
  }
2527
- return t.$$set = ($) => {
2528
- "options" in $ && r(1, l = $.options);
2529
- }, [i, l, c, a, u, m, A];
2527
+ return t.$$set = (y) => {
2528
+ "options" in y && r(1, l = y.options);
2529
+ }, [i, l, c, a, u, m, h];
2530
2530
  }
2531
2531
  class Zr extends U {
2532
2532
  constructor(e) {
@@ -2635,22 +2635,22 @@ function ei(t) {
2635
2635
  };
2636
2636
  }
2637
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: A = "auto" } = e, { fonts: $ = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: R = null } = e;
2639
- return t.$$set = (M) => {
2640
- "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, m = M.labels), "loader" in M && r(7, A = 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, h = 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);
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);
2641
2641
  }, t.$$.update = () => {
2642
2642
  t.$$.dirty & /*theme, variables, rules, labels*/
2643
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*/
2644
2644
  16263 && s && !R && (r(0, R = s.elements({
2645
2645
  mode: l,
2646
2646
  currency: B,
2647
- amount: h,
2647
+ amount: A,
2648
2648
  appearance: n,
2649
- clientSecret: y,
2650
- fonts: $,
2651
- loader: A,
2649
+ clientSecret: $,
2650
+ fonts: y,
2651
+ loader: h,
2652
2652
  locale: E
2653
- })), Wr(s), hn("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2653
+ })), Wr(s), An("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2654
2654
  8705 && R && R.update({ appearance: n, locale: E });
2655
2655
  }, [
2656
2656
  R,
@@ -2660,12 +2660,12 @@ function ti(t, e, r) {
2660
2660
  a,
2661
2661
  u,
2662
2662
  m,
2663
- A,
2664
- $,
2665
- E,
2666
- B,
2667
2663
  h,
2668
2664
  y,
2665
+ E,
2666
+ B,
2667
+ A,
2668
+ $,
2669
2669
  n,
2670
2670
  o,
2671
2671
  i
@@ -2710,7 +2710,7 @@ var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2710
2710
  version: "2.4.0",
2711
2711
  startTime: r
2712
2712
  });
2713
- }, me = null, Pe = null, Ce = null, si = function(e) {
2713
+ }, de = null, Pe = null, Me = null, si = function(e) {
2714
2714
  return function() {
2715
2715
  e(new Error("Failed to load Stripe.js"));
2716
2716
  };
@@ -2719,7 +2719,7 @@ var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2719
2719
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2720
2720
  };
2721
2721
  }, ci = function(e) {
2722
- return me !== null ? me : (me = new Promise(function(r, n) {
2722
+ return de !== null ? de : (de = new Promise(function(r, n) {
2723
2723
  if (typeof window > "u" || typeof document > "u") {
2724
2724
  r(null);
2725
2725
  return;
@@ -2734,27 +2734,27 @@ var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2734
2734
  console.warn(mt);
2735
2735
  else if (!i)
2736
2736
  i = gt(e);
2737
- else if (i && Ce !== null && Pe !== null) {
2737
+ else if (i && Me !== null && Pe !== null) {
2738
2738
  var o;
2739
- i.removeEventListener("load", Ce), i.removeEventListener("error", Pe), (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);
2740
2740
  }
2741
- Ce = li(r, n), Pe = si(n), i.addEventListener("load", Ce), i.addEventListener("error", Pe);
2741
+ Me = li(r, n), Pe = si(n), i.addEventListener("load", Me), i.addEventListener("error", Pe);
2742
2742
  } catch (s) {
2743
2743
  n(s);
2744
2744
  return;
2745
2745
  }
2746
- }), me.catch(function(r) {
2747
- return me = null, Promise.reject(r);
2746
+ }), de.catch(function(r) {
2747
+ return de = null, Promise.reject(r);
2748
2748
  }));
2749
2749
  }, ai = function(e, r, n) {
2750
2750
  if (e === null)
2751
2751
  return null;
2752
2752
  var i = e.apply(void 0, r);
2753
2753
  return oi(i, n), i;
2754
- }, ge, Ot = !1, Lt = function() {
2755
- return ge || (ge = ci(null).catch(function(e) {
2756
- return ge = null, Promise.reject(e);
2757
- }), ge);
2754
+ }, me, Ot = !1, Lt = function() {
2755
+ return me || (me = ci(null).catch(function(e) {
2756
+ return me = null, Promise.reject(e);
2757
+ }), me);
2758
2758
  };
2759
2759
  Promise.resolve().then(function() {
2760
2760
  return Lt();
@@ -2771,7 +2771,7 @@ var ui = function() {
2771
2771
  });
2772
2772
  };
2773
2773
  function fi(t) {
2774
- F(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}");
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}");
2775
2775
  }
2776
2776
  function di(t) {
2777
2777
  let e, r;
@@ -2884,12 +2884,12 @@ function _i(t) {
2884
2884
  }
2885
2885
  };
2886
2886
  }
2887
- class Ai extends U {
2887
+ class hi extends U {
2888
2888
  constructor(e) {
2889
2889
  super(), N(this, e, null, _i, T, {});
2890
2890
  }
2891
2891
  }
2892
- const _e = {
2892
+ const pe = {
2893
2893
  error: "#f2545b",
2894
2894
  warning: "#f4e971",
2895
2895
  focus: "#000080",
@@ -2898,8 +2898,8 @@ const _e = {
2898
2898
  "grey-ui-dark": "#dfdfdf",
2899
2899
  white: "#ffffff"
2900
2900
  };
2901
- function hi(t) {
2902
- F(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2901
+ function Ai(t) {
2902
+ x(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2903
2903
  -20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
2904
2904
  -20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
2905
2905
  -20px 0 #fff2;background:#ffff}75%{box-shadow:20px 0 #ffff,
@@ -2923,13 +2923,13 @@ function Ei(t) {
2923
2923
  }
2924
2924
  };
2925
2925
  }
2926
- class Ft extends U {
2926
+ class xt extends U {
2927
2927
  constructor(e) {
2928
- super(), N(this, e, null, Ei, T, {}, hi);
2928
+ super(), N(this, e, null, Ei, T, {}, Ai);
2929
2929
  }
2930
2930
  }
2931
2931
  function bi(t) {
2932
- F(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2932
+ x(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2933
2933
  }
2934
2934
  function Ii(t) {
2935
2935
  let e, r;
@@ -2973,17 +2973,17 @@ function wi(t) {
2973
2973
  fontSizeBase: "16px",
2974
2974
  fontSizeSm: "16px",
2975
2975
  spacingGridRow: "16px",
2976
- colorText: _e["grey-text-dark"],
2976
+ colorText: pe["grey-text-dark"],
2977
2977
  focusBoxShadow: "none",
2978
- colorDanger: _e.error
2978
+ colorDanger: pe.error
2979
2979
  },
2980
2980
  rules: {
2981
2981
  ".Input": {
2982
2982
  boxShadow: "none",
2983
- border: `2px solid ${_e["grey-ui-dark"]}`
2983
+ border: `2px solid ${pe["grey-ui-dark"]}`
2984
2984
  },
2985
2985
  ".Input:focus": {
2986
- border: `2px solid ${_e.focus}`,
2986
+ border: `2px solid ${pe.focus}`,
2987
2987
  outline: "none"
2988
2988
  },
2989
2989
  ".Label": {
@@ -2993,18 +2993,18 @@ function wi(t) {
2993
2993
  },
2994
2994
  ".Input--invalid": { boxShadow: "none" }
2995
2995
  },
2996
- $$slots: { default: [Pi] },
2996
+ $$slots: { default: [Mi] },
2997
2997
  $$scope: { ctx: t }
2998
2998
  };
2999
2999
  return (
3000
3000
  /*elements*/
3001
3001
  t[2] !== void 0 && (c.elements = /*elements*/
3002
- t[2]), r = new ni({ props: c }), Re.push(() => vn(r, "elements", l)), {
3002
+ t[2]), r = new ni({ props: c }), Ue.push(() => vn(r, "elements", l)), {
3003
3003
  c() {
3004
3004
  e = k("form"), w(r.$$.fragment);
3005
3005
  },
3006
3006
  m(a, u) {
3007
- 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(
3008
3008
  /*handleContinue*/
3009
3009
  t[5]
3010
3010
  )), o = !0);
@@ -3032,9 +3032,9 @@ function wi(t) {
3032
3032
  }
3033
3033
  function ki(t) {
3034
3034
  let e, r, n, i;
3035
- return n = new Ai({}), {
3035
+ return n = new hi({}), {
3036
3036
  c() {
3037
- e = k("div"), e.textContent = "Secure Checkout", r = C(), w(n.$$.fragment);
3037
+ e = k("div"), e.textContent = "Secure Checkout", r = Q(), w(n.$$.fragment);
3038
3038
  },
3039
3039
  m(o, s) {
3040
3040
  p(o, e, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3051,7 +3051,7 @@ function ki(t) {
3051
3051
  }
3052
3052
  };
3053
3053
  }
3054
- function $i(t) {
3054
+ function yi(t) {
3055
3055
  let e, r, n;
3056
3056
  return r = new Zr({}), {
3057
3057
  c() {
@@ -3088,9 +3088,9 @@ function vi(t) {
3088
3088
  }
3089
3089
  };
3090
3090
  }
3091
- function yi(t) {
3091
+ function $i(t) {
3092
3092
  let e, r;
3093
- return e = new Ft({}), {
3093
+ return e = new xt({}), {
3094
3094
  c() {
3095
3095
  w(e.$$.fragment);
3096
3096
  },
@@ -3110,7 +3110,7 @@ function yi(t) {
3110
3110
  }
3111
3111
  function Bi(t) {
3112
3112
  let e, r, n, i;
3113
- const o = [yi, vi], s = [];
3113
+ const o = [$i, vi], s = [];
3114
3114
  function l(c, a) {
3115
3115
  return (
3116
3116
  /*processing*/
@@ -3155,9 +3155,9 @@ function Di(t) {
3155
3155
  }
3156
3156
  };
3157
3157
  }
3158
- function Mi(t) {
3158
+ function Ci(t) {
3159
3159
  let e, r, n, i;
3160
- return e = new Ie({
3160
+ return e = new be({
3161
3161
  props: {
3162
3162
  disabled: (
3163
3163
  /*processing*/
@@ -3166,7 +3166,7 @@ function Mi(t) {
3166
3166
  $$slots: { default: [Bi] },
3167
3167
  $$scope: { ctx: t }
3168
3168
  }
3169
- }), n = new Ie({
3169
+ }), n = new be({
3170
3170
  props: {
3171
3171
  disabled: (
3172
3172
  /*processing*/
@@ -3183,7 +3183,7 @@ function Mi(t) {
3183
3183
  ) && t[1].apply(this, arguments);
3184
3184
  }), {
3185
3185
  c() {
3186
- w(e.$$.fragment), r = C(), w(n.$$.fragment);
3186
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3187
3187
  },
3188
3188
  m(o, s) {
3189
3189
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3212,11 +3212,11 @@ function Mi(t) {
3212
3212
  }
3213
3213
  };
3214
3214
  }
3215
- function Qi(t) {
3215
+ function Pi(t) {
3216
3216
  let e, r;
3217
- return e = new ve({
3217
+ return e = new ye({
3218
3218
  props: {
3219
- $$slots: { default: [Mi] },
3219
+ $$slots: { default: [Ci] },
3220
3220
  $$scope: { ctx: t }
3221
3221
  }
3222
3222
  }), {
@@ -3242,7 +3242,7 @@ function Qi(t) {
3242
3242
  }
3243
3243
  };
3244
3244
  }
3245
- function Pi(t) {
3245
+ function Mi(t) {
3246
3246
  let e, r, n, i, o, s;
3247
3247
  return e = new Xe({
3248
3248
  props: {
@@ -3251,17 +3251,17 @@ function Pi(t) {
3251
3251
  }
3252
3252
  }), n = new ue({
3253
3253
  props: {
3254
- $$slots: { default: [$i] },
3254
+ $$slots: { default: [yi] },
3255
3255
  $$scope: { ctx: t }
3256
3256
  }
3257
3257
  }), o = new ze({
3258
3258
  props: {
3259
- $$slots: { default: [Qi] },
3259
+ $$slots: { default: [Pi] },
3260
3260
  $$scope: { ctx: t }
3261
3261
  }
3262
3262
  }), {
3263
3263
  c() {
3264
- w(e.$$.fragment), r = C(), w(n.$$.fragment), i = C(), w(o.$$.fragment);
3264
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
3265
3265
  },
3266
3266
  m(l, c) {
3267
3267
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -3288,7 +3288,7 @@ function Pi(t) {
3288
3288
  }
3289
3289
  };
3290
3290
  }
3291
- function Ci(t) {
3291
+ function Qi(t) {
3292
3292
  let e, r, n, i;
3293
3293
  const o = [wi, Ii], s = [];
3294
3294
  function l(c, a) {
@@ -3326,13 +3326,13 @@ function Ti(t, e, r) {
3326
3326
  let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
3327
3327
  const c = s.data.client_secret;
3328
3328
  let a = null, u, m;
3329
- Oe(async () => {
3329
+ Se(async () => {
3330
3330
  const E = s.data.publishable_api_key, B = s.data.stripe_account_id;
3331
3331
  if (!E || !B)
3332
3332
  throw new Error("Stripe publishable key or account ID not found");
3333
3333
  r(3, a = await ui(E, { stripeAccount: B }));
3334
3334
  });
3335
- const A = async () => {
3335
+ const h = async () => {
3336
3336
  if (l || !a || !m)
3337
3337
  return;
3338
3338
  r(0, l = !0);
@@ -3342,7 +3342,7 @@ function Ti(t, e, r) {
3342
3342
  });
3343
3343
  E.error ? (r(0, l = !1), o(new Y(O.StripeError, E.error.message))) : i();
3344
3344
  };
3345
- function $(E) {
3345
+ function y(E) {
3346
3346
  u = E, r(2, u);
3347
3347
  }
3348
3348
  return t.$$set = (E) => {
@@ -3356,11 +3356,11 @@ function Ti(t, e, r) {
3356
3356
  u,
3357
3357
  a,
3358
3358
  c,
3359
- A,
3359
+ h,
3360
3360
  i,
3361
3361
  o,
3362
3362
  s,
3363
- $
3363
+ y
3364
3364
  ];
3365
3365
  }
3366
3366
  class Ni extends U {
@@ -3369,7 +3369,7 @@ class Ni extends U {
3369
3369
  this,
3370
3370
  e,
3371
3371
  Ti,
3372
- Ci,
3372
+ Qi,
3373
3373
  T,
3374
3374
  {
3375
3375
  onClose: 1,
@@ -3386,7 +3386,7 @@ function Ui(t) {
3386
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.";
3387
3387
  }
3388
3388
  function Ri(t) {
3389
- F(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)}");
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)}");
3390
3390
  }
3391
3391
  function Si(t) {
3392
3392
  let e;
@@ -3412,7 +3412,7 @@ function pt(t) {
3412
3412
  ), _(e, "class", "form-error svelte-favd20");
3413
3413
  },
3414
3414
  m(n, i) {
3415
- p(n, e, i), Q(e, r);
3415
+ p(n, e, i), M(e, r);
3416
3416
  },
3417
3417
  p(n, i) {
3418
3418
  i & /*error*/
@@ -3434,32 +3434,32 @@ function Oi(t) {
3434
3434
  );
3435
3435
  return {
3436
3436
  c() {
3437
- e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = C(), i = k("div"), o = k("input"), l = C(), 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*/
3438
3438
  t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3439
3439
  },
3440
- m(m, A) {
3441
- p(m, e, A), Q(e, r), Q(e, n), Q(e, i), Q(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(
3442
3442
  o,
3443
3443
  /*email*/
3444
3444
  t[3]
3445
- ), Q(e, l), u && u.m(e, null), c || (a = ke(
3445
+ ), M(e, l), u && u.m(e, null), c || (a = we(
3446
3446
  o,
3447
3447
  "input",
3448
3448
  /*input_input_handler*/
3449
3449
  t[8]
3450
3450
  ), c = !0);
3451
3451
  },
3452
- p(m, A) {
3453
- A & /*email*/
3452
+ p(m, h) {
3453
+ h & /*email*/
3454
3454
  8 && o.value !== /*email*/
3455
3455
  m[3] && lt(
3456
3456
  o,
3457
3457
  /*email*/
3458
3458
  m[3]
3459
- ), A & /*inputClass*/
3459
+ ), h & /*inputClass*/
3460
3460
  16 && s !== (s = "form-input " + /*inputClass*/
3461
3461
  m[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3462
- m[2] ? u ? u.p(m, A) : (u = pt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3462
+ m[2] ? u ? u.p(m, h) : (u = pt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3463
3463
  },
3464
3464
  d(m) {
3465
3465
  m && g(e), u && u.d(), c = !1, a();
@@ -3482,9 +3482,9 @@ function Li(t) {
3482
3482
  }
3483
3483
  };
3484
3484
  }
3485
- function Fi(t) {
3485
+ function xi(t) {
3486
3486
  let e, r;
3487
- return e = new Ft({}), {
3487
+ return e = new xt({}), {
3488
3488
  c() {
3489
3489
  w(e.$$.fragment);
3490
3490
  },
@@ -3502,9 +3502,9 @@ function Fi(t) {
3502
3502
  }
3503
3503
  };
3504
3504
  }
3505
- function xi(t) {
3505
+ function Fi(t) {
3506
3506
  let e, r, n, i;
3507
- const o = [Fi, Li], s = [];
3507
+ const o = [xi, Li], s = [];
3508
3508
  function l(c, a) {
3509
3509
  return (
3510
3510
  /*processing*/
@@ -3551,16 +3551,16 @@ function Gi(t) {
3551
3551
  }
3552
3552
  function Yi(t) {
3553
3553
  let e, r, n, i;
3554
- return e = new Ie({
3554
+ return e = new be({
3555
3555
  props: {
3556
3556
  disabled: (
3557
3557
  /*processing*/
3558
3558
  t[1]
3559
3559
  ),
3560
- $$slots: { default: [xi] },
3560
+ $$slots: { default: [Fi] },
3561
3561
  $$scope: { ctx: t }
3562
3562
  }
3563
- }), n = new Ie({
3563
+ }), n = new be({
3564
3564
  props: {
3565
3565
  intent: "secondary",
3566
3566
  disabled: (
@@ -3577,7 +3577,7 @@ function Yi(t) {
3577
3577
  ) && t[0].apply(this, arguments);
3578
3578
  }), {
3579
3579
  c() {
3580
- w(e.$$.fragment), r = C(), w(n.$$.fragment);
3580
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3581
3581
  },
3582
3582
  m(o, s) {
3583
3583
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3608,7 +3608,7 @@ function Yi(t) {
3608
3608
  }
3609
3609
  function Hi(t) {
3610
3610
  let e, r;
3611
- return e = new ve({
3611
+ return e = new ye({
3612
3612
  props: {
3613
3613
  $$slots: { default: [Yi] },
3614
3614
  $$scope: { ctx: t }
@@ -3655,21 +3655,21 @@ function Ki(t) {
3655
3655
  }
3656
3656
  }), {
3657
3657
  c() {
3658
- e = k("form"), w(r.$$.fragment), n = C(), w(i.$$.fragment), o = C(), 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");
3659
3659
  },
3660
3660
  m(u, m) {
3661
- p(u, e, m), b(r, e, null), Q(e, n), b(i, e, null), Q(e, o), b(s, e, null), l = !0, c || (a = ke(e, "submit", Mt(
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(
3662
3662
  /*handleContinue*/
3663
3663
  t[5]
3664
3664
  )), c = !0);
3665
3665
  },
3666
3666
  p(u, [m]) {
3667
- const A = {};
3667
+ const h = {};
3668
3668
  m & /*$$scope*/
3669
- 512 && (A.$$scope = { dirty: m, ctx: u }), r.$set(A);
3670
- const $ = {};
3669
+ 512 && (h.$$scope = { dirty: m, ctx: u }), r.$set(h);
3670
+ const y = {};
3671
3671
  m & /*$$scope, error, inputClass, email*/
3672
- 540 && ($.$$scope = { dirty: m, ctx: u }), i.$set($);
3672
+ 540 && (y.$$scope = { dirty: m, ctx: u }), i.$set(y);
3673
3673
  const E = {};
3674
3674
  m & /*$$scope, processing, onClose*/
3675
3675
  515 && (E.$$scope = { dirty: m, ctx: u }), s.$set(E);
@@ -3688,8 +3688,8 @@ function Ki(t) {
3688
3688
  function qi(t, e, r) {
3689
3689
  let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e, { lastError: a } = e;
3690
3690
  const u = async () => {
3691
- const A = Ui(n);
3692
- A ? r(2, i = A) : s({ email: n });
3691
+ const h = Ui(n);
3692
+ h ? r(2, i = h) : s({ email: n });
3693
3693
  };
3694
3694
  _n(async () => {
3695
3695
  r(2, i = (a == null ? void 0 : a.message) ?? "");
@@ -3697,8 +3697,8 @@ function qi(t, e, r) {
3697
3697
  function m() {
3698
3698
  n = this.value, r(3, n);
3699
3699
  }
3700
- return t.$$set = (A) => {
3701
- "onContinue" in A && r(6, s = A.onContinue), "onClose" in A && r(0, l = A.onClose), "processing" in A && r(1, c = A.processing), "lastError" in A && r(7, a = A.lastError);
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);
3702
3702
  }, t.$$.update = () => {
3703
3703
  t.$$.dirty & /*error*/
3704
3704
  4 && r(4, o = i ? "error" : "");
@@ -3733,7 +3733,7 @@ class ji extends U {
3733
3733
  }
3734
3734
  }
3735
3735
  function Ji(t) {
3736
- F(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}");
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}");
3737
3737
  }
3738
3738
  function Vi(t) {
3739
3739
  let e, r;
@@ -3798,7 +3798,7 @@ class zi extends U {
3798
3798
  }
3799
3799
  }
3800
3800
  function Xi(t) {
3801
- F(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}}");
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}}");
3802
3802
  }
3803
3803
  function Zi(t) {
3804
3804
  let e, r, n, i;
@@ -3814,11 +3814,11 @@ function Zi(t) {
3814
3814
  );
3815
3815
  return {
3816
3816
  c() {
3817
- 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*/
3818
3818
  t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3819
3819
  },
3820
3820
  m(l, c) {
3821
- p(l, e, c), Q(e, r), s && s.m(r, null), i = !0;
3821
+ p(l, e, c), M(e, r), s && s.m(r, null), i = !0;
3822
3822
  },
3823
3823
  p(l, [c]) {
3824
3824
  s && s.p && (!i || c & /*$$scope*/
@@ -3840,7 +3840,7 @@ function Zi(t) {
3840
3840
  ),
3841
3841
  null
3842
3842
  ), (!i || c & /*dark*/
3843
- 1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
3843
+ 1 && n !== (n = Ae(`rcb-modal-main ${/*dark*/
3844
3844
  l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3845
3845
  },
3846
3846
  i(l) {
@@ -4065,7 +4065,7 @@ function ao(t) {
4065
4065
  );
4066
4066
  return {
4067
4067
  c() {
4068
- i && i.c(), e = C(), s && s.c();
4068
+ i && i.c(), e = Q(), s && s.c();
4069
4069
  },
4070
4070
  m(l, c) {
4071
4071
  i && i.m(l, c), p(l, e, c), s && s.m(l, c), r = !0;
@@ -4162,75 +4162,76 @@ function fo(t, e, r) {
4162
4162
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
4163
4163
  }, [o, n, i];
4164
4164
  }
4165
- class xt extends U {
4165
+ class Ft extends U {
4166
4166
  constructor(e) {
4167
4167
  super(), N(this, e, fo, uo, T, { dark: 0 });
4168
4168
  }
4169
4169
  }
4170
- const mo = "0.3.4", fe = "https://api.revenuecat.com";
4171
- var Se;
4170
+ const mo = "0.4.0", go = "https://api.revenuecat.com";
4171
+ var Re;
4172
4172
  (function(t) {
4173
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";
4174
- })(Se || (Se = {}));
4175
- function je(t) {
4174
+ })(Re || (Re = {}));
4175
+ function qe(t) {
4176
4176
  return t ? t.startsWith("rcb_sb_") : !1;
4177
4177
  }
4178
- 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()}`;
4179
4180
  try {
4180
- const i = await fetch(t.url(), {
4181
+ const c = await fetch(l, {
4181
4182
  method: t.method,
4182
- headers: _o(e, n),
4183
- body: po(r)
4183
+ headers: ho(r, i, o == null ? void 0 : o.additionalHeaders),
4184
+ body: _o(n)
4184
4185
  });
4185
- return await go(i, t), await i.json();
4186
- } catch (i) {
4187
- throw i instanceof TypeError ? new X(
4186
+ return await po(c, t), await c.json();
4187
+ } catch (c) {
4188
+ throw c instanceof TypeError ? new z(
4188
4189
  Z.NetworkError,
4189
4190
  he.getPublicMessage(Z.NetworkError),
4190
- i.message
4191
- ) : i;
4191
+ c.message
4192
+ ) : c;
4192
4193
  }
4193
4194
  }
4194
- async function go(t, e) {
4195
+ async function po(t, e) {
4195
4196
  const r = t.status;
4196
- if (r >= Se.INTERNAL_SERVER_ERROR)
4197
- Ye(e, r, await t.text());
4198
- else if (r >= Se.BAD_REQUEST) {
4197
+ if (r >= Re.INTERNAL_SERVER_ERROR)
4198
+ Ge(e, r, await t.text());
4199
+ else if (r >= Re.BAD_REQUEST) {
4199
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;
4200
4201
  if (o != null) {
4201
4202
  const l = he.convertCodeToBackendErrorCode(o);
4202
4203
  if (l == null)
4203
- Ye(e, r, i);
4204
+ Ge(e, r, i);
4204
4205
  else
4205
- throw X.getForBackendError(
4206
+ throw z.getForBackendError(
4206
4207
  l,
4207
4208
  s
4208
4209
  );
4209
4210
  } else
4210
- Ye(e, r, i);
4211
+ Ge(e, r, i);
4211
4212
  }
4212
4213
  }
4213
- function Ye(t, e, r) {
4214
- throw new X(
4214
+ function Ge(t, e, r) {
4215
+ throw new z(
4215
4216
  Z.UnknownBackendError,
4216
4217
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
4217
4218
  );
4218
4219
  }
4219
- function po(t) {
4220
+ function _o(t) {
4220
4221
  return t == null ? null : JSON.stringify(t);
4221
4222
  }
4222
- function _o(t, e) {
4223
- let r = {
4223
+ function ho(t, e, r) {
4224
+ let n = {
4224
4225
  Authorization: `Bearer ${t}`,
4225
4226
  "Content-Type": "application/json",
4226
4227
  Accept: "application/json",
4227
4228
  "X-Platform": "web",
4228
4229
  "X-Version": mo,
4229
- "X-Is-Sandbox": `${je(t)}`
4230
+ "X-Is-Sandbox": `${qe(t)}`
4230
4231
  };
4231
- return e != null && (r = { ...r, ...e }), r;
4232
+ return e && (n = { ...n, ...e }), r && (n = { ...r, ...n }), n;
4232
4233
  }
4233
- const Gt = "/v1/subscribers", Le = "/rcbilling/v1";
4234
+ const Gt = "/v1/subscribers", Oe = "/rcbilling/v1";
4234
4235
  class Ao {
4235
4236
  constructor(e) {
4236
4237
  P(this, "appUserId");
@@ -4238,21 +4239,21 @@ class Ao {
4238
4239
  P(this, "name", "getOfferings");
4239
4240
  this.appUserId = e;
4240
4241
  }
4241
- url() {
4242
+ urlPath() {
4242
4243
  const e = encodeURIComponent(this.appUserId);
4243
- return `${fe}${Gt}/${e}/offerings`;
4244
+ return `${Gt}/${e}/offerings`;
4244
4245
  }
4245
4246
  }
4246
- class ho {
4247
+ class Eo {
4247
4248
  constructor() {
4248
4249
  P(this, "method", "POST");
4249
4250
  P(this, "name", "subscribe");
4250
4251
  }
4251
- url() {
4252
- return `${fe}${Le}/subscribe`;
4252
+ urlPath() {
4253
+ return `${Oe}/subscribe`;
4253
4254
  }
4254
4255
  }
4255
- class Eo {
4256
+ class bo {
4256
4257
  constructor(e, r) {
4257
4258
  P(this, "method", "GET");
4258
4259
  P(this, "name", "getProducts");
@@ -4260,70 +4261,84 @@ class Eo {
4260
4261
  P(this, "productIds");
4261
4262
  this.appUserId = e, this.productIds = r;
4262
4263
  }
4263
- url() {
4264
+ urlPath() {
4264
4265
  const e = encodeURIComponent(this.appUserId), r = this.productIds.map(encodeURIComponent).join("&id=");
4265
- return `${fe}${Le}/subscribers/${e}/products?id=${r}`;
4266
+ return `${Oe}/subscribers/${e}/products?id=${r}`;
4266
4267
  }
4267
4268
  }
4268
- class bo {
4269
+ class Io {
4269
4270
  constructor(e) {
4270
4271
  P(this, "method", "GET");
4271
4272
  P(this, "name", "getCustomerInfo");
4272
4273
  P(this, "appUserId");
4273
4274
  this.appUserId = e;
4274
4275
  }
4275
- url() {
4276
+ urlPath() {
4276
4277
  const e = encodeURIComponent(this.appUserId);
4277
- return `${fe}${Gt}/${e}`;
4278
+ return `${Gt}/${e}`;
4278
4279
  }
4279
4280
  }
4280
- class Io {
4281
+ class wo {
4281
4282
  constructor() {
4282
4283
  P(this, "method", "GET");
4283
4284
  P(this, "name", "getBrandingInfo");
4284
4285
  }
4285
- url() {
4286
- return `${fe}${Le}/branding`;
4286
+ urlPath() {
4287
+ return `${Oe}/branding`;
4287
4288
  }
4288
4289
  }
4289
- class wo {
4290
+ class ko {
4290
4291
  constructor(e) {
4291
4292
  P(this, "method", "GET");
4292
4293
  P(this, "name", "getCheckoutStatus");
4293
4294
  P(this, "operationSessionId");
4294
4295
  this.operationSessionId = e;
4295
4296
  }
4296
- url() {
4297
- return `${fe}${Le}/checkout/${this.operationSessionId}`;
4297
+ urlPath() {
4298
+ return `${Oe}/checkout/${this.operationSessionId}`;
4298
4299
  }
4299
4300
  }
4300
- class ko {
4301
- constructor(e) {
4301
+ const je = {};
4302
+ class yo {
4303
+ constructor(e, r = je) {
4302
4304
  P(this, "API_KEY");
4303
- this.API_KEY = e;
4305
+ P(this, "httpConfig");
4306
+ this.API_KEY = e, this.httpConfig = r;
4304
4307
  }
4305
4308
  async getOfferings(e) {
4306
4309
  return await oe(
4307
4310
  new Ao(e),
4308
- this.API_KEY
4311
+ {
4312
+ apiKey: this.API_KEY,
4313
+ httpConfig: this.httpConfig
4314
+ }
4309
4315
  );
4310
4316
  }
4311
4317
  async getCustomerInfo(e) {
4312
4318
  return await oe(
4313
- new bo(e),
4314
- this.API_KEY
4319
+ new Io(e),
4320
+ {
4321
+ apiKey: this.API_KEY,
4322
+ httpConfig: this.httpConfig
4323
+ }
4315
4324
  );
4316
4325
  }
4317
4326
  async getProducts(e, r) {
4318
4327
  return await oe(
4319
- new Eo(e, r),
4320
- this.API_KEY
4328
+ new bo(e, r),
4329
+ {
4330
+ apiKey: this.API_KEY,
4331
+ httpConfig: this.httpConfig
4332
+ }
4321
4333
  );
4322
4334
  }
4323
4335
  async getBrandingInfo() {
4324
4336
  return await oe(
4325
- new Io(),
4326
- this.API_KEY
4337
+ new wo(),
4338
+ {
4339
+ apiKey: this.API_KEY,
4340
+ httpConfig: this.httpConfig
4341
+ }
4327
4342
  );
4328
4343
  }
4329
4344
  async postSubscribe(e, r, n, i, o) {
@@ -4334,24 +4349,30 @@ class ko {
4334
4349
  presented_offering_identifier: i
4335
4350
  };
4336
4351
  return o && o !== "base_option" && (s.offer_id = o), await oe(
4337
- new ho(),
4338
- this.API_KEY,
4339
- s
4352
+ new Eo(),
4353
+ {
4354
+ apiKey: this.API_KEY,
4355
+ body: s,
4356
+ httpConfig: this.httpConfig
4357
+ }
4340
4358
  );
4341
4359
  }
4342
4360
  async getCheckoutStatus(e) {
4343
4361
  return await oe(
4344
- new wo(e),
4345
- this.API_KEY
4362
+ new ko(e),
4363
+ {
4364
+ apiKey: this.API_KEY,
4365
+ httpConfig: this.httpConfig
4366
+ }
4346
4367
  );
4347
4368
  }
4348
4369
  }
4349
- const $o = "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";
4350
- function vo(t) {
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";
4371
+ function $o(t) {
4351
4372
  let e, r;
4352
4373
  return {
4353
4374
  c() {
4354
- e = k("img"), ee(e.src, r = $o) || _(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");
4355
4376
  },
4356
4377
  m(n, i) {
4357
4378
  p(n, e, i);
@@ -4364,15 +4385,15 @@ function vo(t) {
4364
4385
  }
4365
4386
  };
4366
4387
  }
4367
- class yo extends U {
4388
+ class Bo extends U {
4368
4389
  constructor(e) {
4369
- super(), N(this, e, null, vo, T, {});
4390
+ super(), N(this, e, null, $o, T, {});
4370
4391
  }
4371
4392
  }
4372
- function Bo(t) {
4373
- F(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}");
4374
- }
4375
4393
  function Do(t) {
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}");
4395
+ }
4396
+ function Co(t) {
4376
4397
  let e;
4377
4398
  return {
4378
4399
  c() {
@@ -4389,23 +4410,23 @@ function Do(t) {
4389
4410
  }
4390
4411
  };
4391
4412
  }
4392
- class Mo extends U {
4413
+ class Po extends U {
4393
4414
  constructor(e) {
4394
- super(), N(this, e, null, Do, T, {}, Bo);
4415
+ super(), N(this, e, null, Co, T, {}, Do);
4395
4416
  }
4396
4417
  }
4397
- function Qo(t) {
4398
- F(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,
4418
+ function Mo(t) {
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,
4399
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}}`);
4400
4421
  }
4401
- function At(t) {
4422
+ function ht(t) {
4402
4423
  let e, r, n;
4403
- return r = new xt({
4424
+ return r = new Ft({
4404
4425
  props: {
4405
4426
  dark: !0,
4406
4427
  $$slots: {
4407
- header: [Uo],
4408
- default: [Po]
4428
+ header: [Ro],
4429
+ default: [Qo]
4409
4430
  },
4410
4431
  $$scope: { ctx: t }
4411
4432
  }
@@ -4432,9 +4453,9 @@ function At(t) {
4432
4453
  }
4433
4454
  };
4434
4455
  }
4435
- function ht(t) {
4456
+ function At(t) {
4436
4457
  let e, r;
4437
- return e = new Ct({
4458
+ return e = new Qt({
4438
4459
  props: {
4439
4460
  productDetails: (
4440
4461
  /*productDetails*/
@@ -4469,11 +4490,11 @@ function ht(t) {
4469
4490
  }
4470
4491
  };
4471
4492
  }
4472
- function Po(t) {
4493
+ function Qo(t) {
4473
4494
  let e, r, n = (
4474
4495
  /*productDetails*/
4475
4496
  t[2] && /*purchaseOptionToUse*/
4476
- t[8] && ht(t)
4497
+ t[8] && At(t)
4477
4498
  );
4478
4499
  return {
4479
4500
  c() {
@@ -4486,7 +4507,7 @@ function Po(t) {
4486
4507
  /*productDetails*/
4487
4508
  i[2] && /*purchaseOptionToUse*/
4488
4509
  i[8] ? n ? (n.p(i, o), o & /*productDetails*/
4489
- 4 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(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, () => {
4490
4511
  n = null;
4491
4512
  }), K());
4492
4513
  },
@@ -4501,9 +4522,9 @@ function Po(t) {
4501
4522
  }
4502
4523
  };
4503
4524
  }
4504
- function Co(t) {
4525
+ function To(t) {
4505
4526
  let e, r;
4506
- return e = new yo({}), {
4527
+ return e = new Bo({}), {
4507
4528
  c() {
4508
4529
  w(e.$$.fragment);
4509
4530
  },
@@ -4521,9 +4542,9 @@ function Co(t) {
4521
4542
  }
4522
4543
  };
4523
4544
  }
4524
- function To(t) {
4545
+ function No(t) {
4525
4546
  let e, r;
4526
- return e = new Mo({}), {
4547
+ return e = new Po({}), {
4527
4548
  c() {
4528
4549
  w(e.$$.fragment);
4529
4550
  },
@@ -4541,7 +4562,7 @@ function To(t) {
4541
4562
  }
4542
4563
  };
4543
4564
  }
4544
- function No(t) {
4565
+ function Uo(t) {
4545
4566
  let e, r, n, i, o, s, l;
4546
4567
  e = new Ut({
4547
4568
  props: { brandingInfo: (
@@ -4549,26 +4570,26 @@ function No(t) {
4549
4570
  t[3]
4550
4571
  ) }
4551
4572
  });
4552
- const c = [To, Co], a = [];
4553
- function u(m, A) {
4554
- return A & /*purchases*/
4573
+ const c = [No, To], a = [];
4574
+ function u(m, h) {
4575
+ return h & /*purchases*/
4555
4576
  2 && (n = null), n == null && (n = !!/*purchases*/
4556
4577
  m[1].isSandbox()), n ? 0 : 1;
4557
4578
  }
4558
4579
  return i = u(t, -1), o = a[i] = c[i](t), {
4559
4580
  c() {
4560
- w(e.$$.fragment), r = C(), o.c(), s = te();
4581
+ w(e.$$.fragment), r = Q(), o.c(), s = te();
4561
4582
  },
4562
- m(m, A) {
4563
- b(e, m, A), p(m, r, A), a[i].m(m, A), p(m, s, A), 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;
4564
4585
  },
4565
- p(m, A) {
4566
- const $ = {};
4567
- A & /*brandingInfo*/
4568
- 8 && ($.brandingInfo = /*brandingInfo*/
4569
- m[3]), e.$set($);
4586
+ p(m, h) {
4587
+ const y = {};
4588
+ h & /*brandingInfo*/
4589
+ 8 && (y.brandingInfo = /*brandingInfo*/
4590
+ m[3]), e.$set(y);
4570
4591
  let E = i;
4571
- i = u(m, A), i !== E && (H(), d(a[E], 1, 1, () => {
4592
+ i = u(m, h), i !== E && (H(), d(a[E], 1, 1, () => {
4572
4593
  a[E] = null;
4573
4594
  }), K(), o = a[i], o || (o = a[i] = c[i](m), o.c()), f(o, 1), o.m(s.parentNode, s));
4574
4595
  },
@@ -4583,12 +4604,12 @@ function No(t) {
4583
4604
  }
4584
4605
  };
4585
4606
  }
4586
- function Uo(t) {
4607
+ function Ro(t) {
4587
4608
  let e, r;
4588
4609
  return e = new Xe({
4589
4610
  props: {
4590
4611
  slot: "header",
4591
- $$slots: { default: [No] },
4612
+ $$slots: { default: [Uo] },
4592
4613
  $$scope: { ctx: t }
4593
4614
  }
4594
4615
  }), {
@@ -4616,7 +4637,7 @@ function Uo(t) {
4616
4637
  }
4617
4638
  function Et(t) {
4618
4639
  let e, r;
4619
- return e = new Ct({
4640
+ return e = new Qt({
4620
4641
  props: {
4621
4642
  productDetails: (
4622
4643
  /*productDetails*/
@@ -4789,7 +4810,7 @@ function kt(t) {
4789
4810
  }
4790
4811
  };
4791
4812
  }
4792
- function $t(t) {
4813
+ function yt(t) {
4793
4814
  var n;
4794
4815
  let e, r;
4795
4816
  return e = new Or({
@@ -4877,7 +4898,7 @@ function vt(t) {
4877
4898
  }
4878
4899
  };
4879
4900
  }
4880
- function Ro(t) {
4901
+ function So(t) {
4881
4902
  let e, r, n, i, o, s, l, c, a = (
4882
4903
  /*state*/
4883
4904
  t[6] === "present-offer" && /*productDetails*/
@@ -4891,92 +4912,92 @@ function Ro(t) {
4891
4912
  /*state*/
4892
4913
  (t[6] === "needs-auth-info" || /*state*/
4893
4914
  t[6] === "processing-auth-info") && It(t)
4894
- ), A = (
4915
+ ), h = (
4895
4916
  /*paymentInfoCollectionMetadata*/
4896
4917
  t[4] && /*state*/
4897
4918
  (t[6] === "needs-payment-info" || /*state*/
4898
4919
  t[6] === "polling-purchase-status") && wt(t)
4899
- ), $ = (
4920
+ ), y = (
4900
4921
  /*state*/
4901
4922
  t[6] === "loading" && kt()
4902
4923
  ), E = (
4903
4924
  /*state*/
4904
- t[6] === "error" && $t(t)
4925
+ t[6] === "error" && yt(t)
4905
4926
  ), B = (
4906
4927
  /*state*/
4907
4928
  t[6] === "success" && vt(t)
4908
4929
  );
4909
4930
  return {
4910
4931
  c() {
4911
- a && a.c(), e = C(), u && u.c(), r = C(), m && m.c(), n = C(), A && A.c(), i = C(), $ && $.c(), o = C(), E && E.c(), s = C(), 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();
4912
4933
  },
4913
- m(h, y) {
4914
- a && a.m(h, y), p(h, e, y), u && u.m(h, y), p(h, r, y), m && m.m(h, y), p(h, n, y), A && A.m(h, y), p(h, i, y), $ && $.m(h, y), p(h, o, y), E && E.m(h, y), p(h, s, y), B && B.m(h, y), p(h, 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;
4915
4936
  },
4916
- p(h, y) {
4937
+ p(A, $) {
4917
4938
  /*state*/
4918
- h[6] === "present-offer" && /*productDetails*/
4919
- h[2] && /*purchaseOptionToUse*/
4920
- h[8] ? a ? (a.p(h, y), y & /*state, productDetails*/
4921
- 68 && f(a, 1)) : (a = Et(h), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4939
+ A[6] === "present-offer" && /*productDetails*/
4940
+ A[2] && /*purchaseOptionToUse*/
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, () => {
4922
4943
  a = null;
4923
4944
  }), K()), /*state*/
4924
- h[6] === "present-offer" && !/*productDetails*/
4925
- h[2] ? u ? y & /*state, productDetails*/
4945
+ A[6] === "present-offer" && !/*productDetails*/
4946
+ A[2] ? u ? $ & /*state, productDetails*/
4926
4947
  68 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4927
4948
  u = null;
4928
4949
  }), K()), /*state*/
4929
- h[6] === "needs-auth-info" || /*state*/
4930
- h[6] === "processing-auth-info" ? m ? (m.p(h, y), y & /*state*/
4931
- 64 && f(m, 1)) : (m = It(h), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4950
+ A[6] === "needs-auth-info" || /*state*/
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, () => {
4932
4953
  m = null;
4933
4954
  }), K()), /*paymentInfoCollectionMetadata*/
4934
- h[4] && /*state*/
4935
- (h[6] === "needs-payment-info" || /*state*/
4936
- h[6] === "polling-purchase-status") ? A ? (A.p(h, y), y & /*paymentInfoCollectionMetadata, state*/
4937
- 80 && f(A, 1)) : (A = wt(h), A.c(), f(A, 1), A.m(i.parentNode, i)) : A && (H(), d(A, 1, 1, () => {
4938
- A = null;
4955
+ A[4] && /*state*/
4956
+ (A[6] === "needs-payment-info" || /*state*/
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, () => {
4959
+ h = null;
4939
4960
  }), K()), /*state*/
4940
- h[6] === "loading" ? $ ? y & /*state*/
4941
- 64 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (H(), d($, 1, 1, () => {
4942
- $ = 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;
4943
4964
  }), K()), /*state*/
4944
- h[6] === "error" ? E ? (E.p(h, y), y & /*state*/
4945
- 64 && f(E, 1)) : (E = $t(h), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(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, () => {
4946
4967
  E = null;
4947
4968
  }), K()), /*state*/
4948
- h[6] === "success" ? B ? (B.p(h, y), y & /*state*/
4949
- 64 && f(B, 1)) : (B = vt(h), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(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, () => {
4950
4971
  B = null;
4951
4972
  }), K());
4952
4973
  },
4953
- i(h) {
4954
- c || (f(a), f(u), f(m), f(A), f($), f(E), f(B), c = !0);
4974
+ i(A) {
4975
+ c || (f(a), f(u), f(m), f(h), f(y), f(E), f(B), c = !0);
4955
4976
  },
4956
- o(h) {
4957
- d(a), d(u), d(m), d(A), d($), d(E), d(B), c = !1;
4977
+ o(A) {
4978
+ d(a), d(u), d(m), d(h), d(y), d(E), d(B), c = !1;
4958
4979
  },
4959
- d(h) {
4960
- h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), u && u.d(h), m && m.d(h), A && A.d(h), $ && $.d(h), E && E.d(h), B && B.d(h);
4980
+ 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);
4961
4982
  }
4962
4983
  };
4963
4984
  }
4964
- function So(t) {
4985
+ function Oo(t) {
4965
4986
  let e, r = (
4966
4987
  /*statesWhereOfferDetailsAreShown*/
4967
4988
  t[9].includes(
4968
4989
  /*state*/
4969
4990
  t[6]
4970
4991
  )
4971
- ), n, i, o, s, l = r && At(t);
4972
- return o = new xt({
4992
+ ), n, i, o, s, l = r && ht(t);
4993
+ return o = new Ft({
4973
4994
  props: {
4974
- $$slots: { default: [Ro] },
4995
+ $$slots: { default: [So] },
4975
4996
  $$scope: { ctx: t }
4976
4997
  }
4977
4998
  }), {
4978
4999
  c() {
4979
- e = k("div"), l && l.c(), n = C(), 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"), _(
4980
5001
  e,
4981
5002
  "style",
4982
5003
  /*colorVariables*/
@@ -4984,7 +5005,7 @@ function So(t) {
4984
5005
  );
4985
5006
  },
4986
5007
  m(c, a) {
4987
- p(c, e, a), l && l.m(e, null), Q(e, n), Q(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;
4988
5009
  },
4989
5010
  p(c, a) {
4990
5011
  a & /*state*/
@@ -4993,7 +5014,7 @@ function So(t) {
4993
5014
  /*state*/
4994
5015
  c[6]
4995
5016
  )), r ? l ? (l.p(c, a), a & /*state*/
4996
- 64 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(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, () => {
4997
5018
  l = null;
4998
5019
  }), K());
4999
5020
  const u = {};
@@ -5011,7 +5032,7 @@ function So(t) {
5011
5032
  }
5012
5033
  };
5013
5034
  }
5014
- function Oo(t) {
5035
+ function Lo(t) {
5015
5036
  let e, r, n;
5016
5037
  return r = new lo({
5017
5038
  props: {
@@ -5019,7 +5040,7 @@ function Oo(t) {
5019
5040
  /*asModal*/
5020
5041
  t[0]
5021
5042
  ),
5022
- $$slots: { default: [So] },
5043
+ $$slots: { default: [Oo] },
5023
5044
  $$scope: { ctx: t }
5024
5045
  }
5025
5046
  }), {
@@ -5047,14 +5068,14 @@ function Oo(t) {
5047
5068
  }
5048
5069
  };
5049
5070
  }
5050
- function Lo(t, e, r) {
5071
+ function xo(t, e, r) {
5051
5072
  var et, tt;
5052
- 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: A } = e, { purchaseOperationHelper: $ } = e;
5053
- const E = Object.entries(_e).map(([D, Fe]) => `--rc-color-${D}: ${Fe}`).join("; ");
5054
- let B = null, h = null, y = null, R = null;
5055
- const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ye = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, x = l || ye;
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;
5056
5077
  let S = "present-offer";
5057
- const Be = [
5078
+ const $e = [
5058
5079
  "present-offer",
5059
5080
  "needs-auth-info",
5060
5081
  "processing-auth-info",
@@ -5062,27 +5083,27 @@ function Lo(t, e, r) {
5062
5083
  "polling-purchase-status",
5063
5084
  "loading"
5064
5085
  ];
5065
- Oe(async () => {
5066
- if (r(2, B = s.rcBillingProduct), r(3, h = await A.getBrandingInfo()), S === "present-offer") {
5086
+ Se(async () => {
5087
+ if (r(2, B = s.rcBillingProduct), r(3, A = await h.getBrandingInfo()), S === "present-offer") {
5067
5088
  i ? Ze() : r(6, S = "needs-auth-info");
5068
5089
  return;
5069
5090
  }
5070
5091
  });
5071
- const De = () => {
5092
+ const Be = () => {
5072
5093
  u();
5073
5094
  }, Ze = () => {
5074
- if (M === null) {
5075
- 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."));
5076
5097
  return;
5077
5098
  } else
5078
5099
  S === "present-offer" && r(6, S = "loading");
5079
5100
  if (!i) {
5080
- de(new Y(O.MissingEmailError));
5101
+ fe(new Y(O.MissingEmailError));
5081
5102
  return;
5082
5103
  }
5083
- $.startPurchase(o, M, x, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5104
+ y.startPurchase(o, C, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5084
5105
  if (D.next_action === "collect_payment_info") {
5085
- r(5, R = null), r(6, S = "needs-payment-info"), r(4, y = D);
5106
+ r(5, R = null), r(6, S = "needs-payment-info"), r(4, $ = D);
5086
5107
  return;
5087
5108
  }
5088
5109
  if (D.next_action === "completed") {
@@ -5090,7 +5111,7 @@ function Lo(t, e, r) {
5090
5111
  return;
5091
5112
  }
5092
5113
  }).catch((D) => {
5093
- de(D);
5114
+ fe(D);
5094
5115
  });
5095
5116
  }, Yt = (D) => {
5096
5117
  if (S === "needs-auth-info") {
@@ -5098,10 +5119,10 @@ function Lo(t, e, r) {
5098
5119
  return;
5099
5120
  }
5100
5121
  if (S === "needs-payment-info") {
5101
- r(6, S = "polling-purchase-status"), $.pollCurrentPurchaseForCompletion().then(() => {
5122
+ r(6, S = "polling-purchase-status"), y.pollCurrentPurchaseForCompletion().then(() => {
5102
5123
  r(6, S = "success");
5103
- }).catch((Fe) => {
5104
- de(Fe);
5124
+ }).catch((Le) => {
5125
+ fe(Le);
5105
5126
  });
5106
5127
  return;
5107
5128
  }
@@ -5110,7 +5131,7 @@ function Lo(t, e, r) {
5110
5131
  return;
5111
5132
  }
5112
5133
  r(6, S = "success");
5113
- }, de = (D) => {
5134
+ }, fe = (D) => {
5114
5135
  if (S === "processing-auth-info") {
5115
5136
  r(5, R = D), r(6, S = "needs-auth-info");
5116
5137
  return;
@@ -5120,21 +5141,21 @@ function Lo(t, e, r) {
5120
5141
  a(R ?? new Y(O.UnknownError, "Unknown error without state set."));
5121
5142
  };
5122
5143
  return t.$$set = (D) => {
5123
- "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, A = 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);
5124
5145
  }, [
5125
5146
  n,
5126
5147
  m,
5127
5148
  B,
5128
- h,
5129
- y,
5149
+ A,
5150
+ $,
5130
5151
  R,
5131
5152
  S,
5132
5153
  E,
5133
- x,
5154
+ F,
5155
+ $e,
5134
5156
  Be,
5135
- De,
5136
5157
  Yt,
5137
- de,
5158
+ fe,
5138
5159
  Ht,
5139
5160
  i,
5140
5161
  o,
@@ -5143,8 +5164,8 @@ function Lo(t, e, r) {
5143
5164
  c,
5144
5165
  a,
5145
5166
  u,
5146
- A,
5147
- $
5167
+ h,
5168
+ y
5148
5169
  ];
5149
5170
  }
5150
5171
  class Fo extends U {
@@ -5152,8 +5173,8 @@ class Fo extends U {
5152
5173
  super(), N(
5153
5174
  this,
5154
5175
  e,
5176
+ xo,
5155
5177
  Lo,
5156
- Oo,
5157
5178
  T,
5158
5179
  {
5159
5180
  asModal: 0,
@@ -5168,53 +5189,53 @@ class Fo extends U {
5168
5189
  backend: 21,
5169
5190
  purchaseOperationHelper: 22
5170
5191
  },
5171
- Qo
5192
+ Mo
5172
5193
  );
5173
5194
  }
5174
5195
  }
5175
- function xo(t) {
5196
+ function Go(t) {
5176
5197
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5177
5198
  }
5178
- function Go(t, e, r, n) {
5199
+ function Yo(t, e, r, n) {
5179
5200
  const i = e.product_identifier;
5180
5201
  if (i in r)
5181
- return Yo(
5202
+ return Ho(
5182
5203
  t,
5183
5204
  e,
5184
5205
  r[i]
5185
5206
  );
5186
5207
  if (i in n)
5187
- return Ho(
5208
+ return Ko(
5188
5209
  t,
5189
5210
  e,
5190
5211
  n[i]
5191
5212
  );
5192
- throw new X(
5213
+ throw new z(
5193
5214
  Z.CustomerInfoError,
5194
5215
  "Could not find entitlement product in subscriptions or non-subscriptions."
5195
5216
  );
5196
5217
  }
5197
- function Yo(t, e, r) {
5218
+ function Ho(t, e, r) {
5198
5219
  return {
5199
5220
  identifier: t,
5200
- isActive: xo(e),
5201
- willRenew: jo(e, r),
5221
+ isActive: Go(e),
5222
+ willRenew: Jo(e, r),
5202
5223
  store: (r == null ? void 0 : r.store) ?? "unknown",
5203
5224
  latestPurchaseDate: new Date(e.purchase_date),
5204
5225
  originalPurchaseDate: new Date(e.purchase_date),
5205
- expirationDate: Ue(e.expires_date),
5226
+ expirationDate: Ne(e.expires_date),
5206
5227
  productIdentifier: e.product_identifier,
5207
- unsubscribeDetectedAt: Ue(
5228
+ unsubscribeDetectedAt: Ne(
5208
5229
  r == null ? void 0 : r.unsubscribe_detected_at
5209
5230
  ),
5210
- billingIssueDetectedAt: Ue(
5231
+ billingIssueDetectedAt: Ne(
5211
5232
  r == null ? void 0 : r.billing_issues_detected_at
5212
5233
  ),
5213
5234
  isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,
5214
5235
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
5215
5236
  };
5216
5237
  }
5217
- function Ho(t, e, r) {
5238
+ function Ko(t, e, r) {
5218
5239
  return {
5219
5240
  identifier: t,
5220
5241
  isActive: !0,
@@ -5232,10 +5253,10 @@ function Ho(t, e, r) {
5232
5253
  periodType: "normal"
5233
5254
  };
5234
5255
  }
5235
- function Ko(t, e, r) {
5256
+ function qo(t, e, r) {
5236
5257
  const n = {}, i = {};
5237
5258
  for (const o in t) {
5238
- const s = Go(
5259
+ const s = Yo(
5239
5260
  o,
5240
5261
  t[o],
5241
5262
  e,
@@ -5248,41 +5269,41 @@ function Ko(t, e, r) {
5248
5269
  active: i
5249
5270
  };
5250
5271
  }
5251
- function Ue(t) {
5272
+ function Ne(t) {
5252
5273
  return t == null ? null : new Date(t);
5253
5274
  }
5254
- function qo(t) {
5255
- const e = Vo(t), r = t.subscriber, n = zo(
5275
+ function jo(t) {
5276
+ const e = Wo(t), r = t.subscriber, n = Xo(
5256
5277
  r.non_subscriptions
5257
5278
  );
5258
5279
  return {
5259
- entitlements: Ko(
5280
+ entitlements: qo(
5260
5281
  r.entitlements,
5261
5282
  r.subscriptions,
5262
5283
  n
5263
5284
  ),
5264
5285
  allExpirationDatesByProduct: e,
5265
- allPurchaseDatesByProduct: Jo(
5286
+ allPurchaseDatesByProduct: Vo(
5266
5287
  t,
5267
5288
  n
5268
5289
  ),
5269
- activeSubscriptions: Wo(e),
5290
+ activeSubscriptions: zo(e),
5270
5291
  managementURL: r.management_url,
5271
5292
  requestDate: new Date(t.request_date),
5272
5293
  firstSeenDate: new Date(r.first_seen),
5273
- originalPurchaseDate: Ue(
5294
+ originalPurchaseDate: Ne(
5274
5295
  r.original_purchase_date
5275
5296
  ),
5276
5297
  originalAppUserId: t.subscriber.original_app_user_id
5277
5298
  };
5278
5299
  }
5279
- function jo(t, e) {
5300
+ function Jo(t, e) {
5280
5301
  if (e == null)
5281
5302
  return !1;
5282
5303
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
5283
5304
  return !(r || n || i || o);
5284
5305
  }
5285
- function Jo(t, e) {
5306
+ function Vo(t, e) {
5286
5307
  const r = {};
5287
5308
  for (const n in t.subscriber.subscriptions) {
5288
5309
  const i = t.subscriber.subscriptions[n];
@@ -5296,7 +5317,7 @@ function Jo(t, e) {
5296
5317
  }
5297
5318
  return r;
5298
5319
  }
5299
- function Vo(t) {
5320
+ function Wo(t) {
5300
5321
  const e = {};
5301
5322
  for (const r in t.subscriber.subscriptions) {
5302
5323
  const n = t.subscriber.subscriptions[r];
@@ -5306,7 +5327,7 @@ function Vo(t) {
5306
5327
  }
5307
5328
  return e;
5308
5329
  }
5309
- function Wo(t) {
5330
+ function zo(t) {
5310
5331
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5311
5332
  for (const n in t) {
5312
5333
  const i = t[n];
@@ -5314,7 +5335,7 @@ function Wo(t) {
5314
5335
  }
5315
5336
  return e;
5316
5337
  }
5317
- function zo(t) {
5338
+ function Xo(t) {
5318
5339
  const e = {};
5319
5340
  for (const r in t) {
5320
5341
  if (t[r].length === 0)
@@ -5324,14 +5345,14 @@ function zo(t) {
5324
5345
  }
5325
5346
  return e;
5326
5347
  }
5327
- function Xo(t) {
5348
+ function Zo(t) {
5328
5349
  if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
5329
- throw new X(
5350
+ throw new z(
5330
5351
  Z.InvalidCredentialsError,
5331
5352
  "Invalid API key. Use your RevenueCat Billing API key."
5332
5353
  );
5333
5354
  }
5334
- function Zo(t) {
5355
+ function es(t) {
5335
5356
  if ((/* @__PURE__ */ new Set([
5336
5357
  "no_user",
5337
5358
  "null",
@@ -5345,14 +5366,21 @@ function Zo(t) {
5345
5366
  "undefined",
5346
5367
  "unknown"
5347
5368
  ])).has(t) || t.includes("/"))
5348
- throw new X(
5369
+ throw new z(
5349
5370
  Z.InvalidAppUserIdError,
5350
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.'
5351
5372
  );
5352
5373
  }
5353
- 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 {
5354
5382
  /** @internal */
5355
- constructor(e, r) {
5383
+ constructor(e, r, n = je) {
5356
5384
  /** @internal */
5357
5385
  P(this, "_API_KEY");
5358
5386
  /** @internal */
@@ -5380,7 +5408,7 @@ const z = class z {
5380
5408
  current: o
5381
5409
  };
5382
5410
  });
5383
- this._API_KEY = e, this._appUserId = r, je(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new ko(this._API_KEY), this.purchaseOperationHelper = new Hn(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);
5384
5412
  }
5385
5413
  /**
5386
5414
  * Set the log level. Logs of the given level and below will be printed
@@ -5397,15 +5425,15 @@ const z = class z {
5397
5425
  * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
5398
5426
  */
5399
5427
  static getSharedInstance() {
5400
- if (z.isConfigured())
5401
- return z.instance;
5428
+ if (X.isConfigured())
5429
+ return X.instance;
5402
5430
  throw new Yn();
5403
5431
  }
5404
5432
  /**
5405
5433
  * Returns whether the Purchases SDK is configured or not.
5406
5434
  */
5407
5435
  static isConfigured() {
5408
- return z.instance !== void 0;
5436
+ return X.instance !== void 0;
5409
5437
  }
5410
5438
  /**
5411
5439
  * Configures the Purchases SDK. This should be called as soon as your app
@@ -5413,12 +5441,13 @@ const z = class z {
5413
5441
  * keep the returned instance around for use throughout your application.
5414
5442
  * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
5415
5443
  * @param appUserId - Your unique id for identifying the user.
5444
+ * @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
5416
5445
  * @throws {@link PurchasesError} if the API key or user id are invalid.
5417
5446
  */
5418
- static configure(e, r) {
5419
- return z.instance !== void 0 && G.warnLog(
5447
+ static configure(e, r, n = je) {
5448
+ return X.instance !== void 0 && G.warnLog(
5420
5449
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
5421
- ), Xo(e), Zo(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();
5422
5451
  }
5423
5452
  /**
5424
5453
  * Fetch the configured offerings for this user. You can configure these
@@ -5499,10 +5528,10 @@ const z = class z {
5499
5528
  });
5500
5529
  },
5501
5530
  onClose: () => {
5502
- l.innerHTML = "", G.debugLog("Purchase cancelled by user"), m(new X(Z.UserCancelledError));
5531
+ l.innerHTML = "", G.debugLog("Purchase cancelled by user"), m(new z(Z.UserCancelledError));
5503
5532
  },
5504
- onError: (A) => {
5505
- l.innerHTML = "", m(X.getForPurchasesFlowError(A));
5533
+ onError: (h) => {
5534
+ l.innerHTML = "", m(z.getForPurchasesFlowError(h));
5506
5535
  },
5507
5536
  purchases: this,
5508
5537
  backend: this.backend,
@@ -5553,30 +5582,30 @@ const z = class z {
5553
5582
  * @returns Whether the SDK is using a sandbox API Key.
5554
5583
  */
5555
5584
  isSandbox() {
5556
- return je(this._API_KEY);
5585
+ return qe(this._API_KEY);
5557
5586
  }
5558
5587
  /**
5559
5588
  * Closes the Purchases instance. You should never have to do this normally.
5560
5589
  */
5561
5590
  close() {
5562
- z.instance === this ? z.instance = void 0 : G.warnLog(
5591
+ X.instance === this ? X.instance = void 0 : G.warnLog(
5563
5592
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
5564
5593
  );
5565
5594
  }
5566
5595
  /** @internal */
5567
5596
  async _getCustomerInfoForUserId(e) {
5568
5597
  const r = await this.backend.getCustomerInfo(e);
5569
- return qo(r);
5598
+ return jo(r);
5570
5599
  }
5571
5600
  };
5572
5601
  /** @internal */
5573
- P(z, "instance");
5574
- let yt = z;
5602
+ P(X, "instance");
5603
+ let $t = X;
5575
5604
  export {
5576
5605
  Z as ErrorCode,
5577
5606
  W as LogLevel,
5578
5607
  zt as PackageType,
5579
- yt as Purchases,
5580
- X as PurchasesError,
5608
+ $t as Purchases,
5609
+ z as PurchasesError,
5581
5610
  Yn as UninitializedPurchasesError
5582
5611
  };