@revenuecat/purchases-js 0.1.0 → 0.1.1

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.
@@ -61,7 +61,7 @@ function Ht(t) {
61
61
  }
62
62
  function B() {
63
63
  }
64
- function qt(t, e) {
64
+ function Kt(t, e) {
65
65
  for (const r in e)
66
66
  t[r] = e[r];
67
67
  return (
@@ -91,15 +91,15 @@ function X(t, e) {
91
91
  function Ze(t) {
92
92
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
93
93
  }
94
- function Kt(t, e) {
94
+ function qt(t, e) {
95
95
  const r = Ze(t.srcset), n = Ze(e || "");
96
96
  return n.length === r.length && n.every(
97
- ([i, s], o) => s === r[o][1] && // We need to test both ways because Vite will create an a full URL with
97
+ ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
98
98
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
99
99
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
100
100
  // browsers (in contrast to img.src). This means both SSR and DOM code could
101
101
  // contain relative or absolute URLs.
102
- (X(r[o][0], i) || X(i, r[o][0]))
102
+ (X(r[s][0], i) || X(i, r[s][0]))
103
103
  );
104
104
  }
105
105
  function jt(t) {
@@ -112,7 +112,7 @@ function Y(t, e, r, n) {
112
112
  }
113
113
  }
114
114
  function wt(t, e, r, n) {
115
- return t[1] && n ? qt(r.ctx.slice(), t[1](n(e))) : r.ctx;
115
+ return t[1] && n ? Kt(r.ctx.slice(), t[1](n(e))) : r.ctx;
116
116
  }
117
117
  function H(t, e, r, n) {
118
118
  if (t[2] && n) {
@@ -120,22 +120,22 @@ function H(t, e, r, n) {
120
120
  if (e.dirty === void 0)
121
121
  return i;
122
122
  if (typeof i == "object") {
123
- const s = [], o = Math.max(e.dirty.length, i.length);
124
- for (let l = 0; l < o; l += 1)
125
- s[l] = e.dirty[l] | i[l];
126
- return s;
123
+ const o = [], s = Math.max(e.dirty.length, i.length);
124
+ for (let l = 0; l < s; l += 1)
125
+ o[l] = e.dirty[l] | i[l];
126
+ return o;
127
127
  }
128
128
  return e.dirty | i;
129
129
  }
130
130
  return e.dirty;
131
131
  }
132
- function q(t, e, r, n, i, s) {
132
+ function K(t, e, r, n, i, o) {
133
133
  if (i) {
134
- const o = wt(e, r, n, s);
135
- t.p(o, i);
134
+ const s = wt(e, r, n, o);
135
+ t.p(s, i);
136
136
  }
137
137
  }
138
- function K(t) {
138
+ function q(t) {
139
139
  if (t.ctx.length > 32) {
140
140
  const e = [], r = t.ctx.length / 32;
141
141
  for (let n = 0; n < r; n++)
@@ -147,7 +147,7 @@ function K(t) {
147
147
  function Ee(t) {
148
148
  return t ?? "";
149
149
  }
150
- function Q(t, e) {
150
+ function D(t, e) {
151
151
  t.appendChild(e);
152
152
  }
153
153
  function O(t, e, r) {
@@ -168,7 +168,7 @@ function Jt(t) {
168
168
  ) : t.ownerDocument;
169
169
  }
170
170
  function Vt(t, e) {
171
- return Q(
171
+ return D(
172
172
  /** @type {Document} */
173
173
  t.head || t,
174
174
  e
@@ -251,37 +251,37 @@ function rn() {
251
251
  return (e, r, { cancelable: n = !1 } = {}) => {
252
252
  const i = t.$$.callbacks[e];
253
253
  if (i) {
254
- const s = nn(
254
+ const o = nn(
255
255
  /** @type {string} */
256
256
  e,
257
257
  r,
258
258
  { cancelable: n }
259
259
  );
260
- return i.slice().forEach((o) => {
261
- o.call(t, s);
262
- }), !s.defaultPrevented;
260
+ return i.slice().forEach((s) => {
261
+ s.call(t, o);
262
+ }), !o.defaultPrevented;
263
263
  }
264
264
  return !0;
265
265
  };
266
266
  }
267
- function sn(t, e) {
267
+ function on(t, e) {
268
268
  return Ne().$$.context.set(t, e), e;
269
269
  }
270
- function on(t) {
270
+ function sn(t) {
271
271
  return Ne().$$.context.get(t);
272
272
  }
273
273
  function $t(t, e) {
274
274
  const r = t.$$.callbacks[e.type];
275
275
  r && r.slice().forEach((n) => n.call(this, e));
276
276
  }
277
- const oe = [], Re = [];
277
+ const se = [], Re = [];
278
278
  let le = [];
279
279
  const Ye = [], ln = /* @__PURE__ */ Promise.resolve();
280
280
  let He = !1;
281
281
  function cn() {
282
282
  He || (He = !0, ln.then(vt));
283
283
  }
284
- function qe(t) {
284
+ function Ke(t) {
285
285
  le.push(t);
286
286
  }
287
287
  function an(t) {
@@ -295,21 +295,21 @@ function vt() {
295
295
  const t = Ie;
296
296
  do {
297
297
  try {
298
- for (; ie < oe.length; ) {
299
- const e = oe[ie];
298
+ for (; ie < se.length; ) {
299
+ const e = se[ie];
300
300
  ie++, he(e), un(e.$$);
301
301
  }
302
302
  } catch (e) {
303
- throw oe.length = 0, ie = 0, e;
303
+ throw se.length = 0, ie = 0, e;
304
304
  }
305
- for (he(null), oe.length = 0, ie = 0; Re.length; )
305
+ for (he(null), se.length = 0, ie = 0; Re.length; )
306
306
  Re.pop()();
307
307
  for (let e = 0; e < le.length; e += 1) {
308
308
  const r = le[e];
309
309
  xe.has(r) || (xe.add(r), r());
310
310
  }
311
311
  le.length = 0;
312
- } while (oe.length);
312
+ } while (se.length);
313
313
  for (; Ye.length; )
314
314
  Ye.pop()();
315
315
  He = !1, xe.clear(), he(t);
@@ -318,7 +318,7 @@ function un(t) {
318
318
  if (t.fragment !== null) {
319
319
  t.update(), we(t.before_update);
320
320
  const e = t.dirty;
321
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
321
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
322
322
  }
323
323
  }
324
324
  function fn(t) {
@@ -360,26 +360,26 @@ function w(t) {
360
360
  }
361
361
  function I(t, e, r) {
362
362
  const { fragment: n, after_update: i } = t.$$;
363
- n && n.m(e, r), qe(() => {
364
- const s = t.$$.on_mount.map(bt).filter(ce);
365
- t.$$.on_destroy ? t.$$.on_destroy.push(...s) : we(s), t.$$.on_mount = [];
366
- }), i.forEach(qe);
363
+ n && n.m(e, r), Ke(() => {
364
+ const o = t.$$.on_mount.map(bt).filter(ce);
365
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
366
+ }), i.forEach(Ke);
367
367
  }
368
368
  function b(t, e) {
369
369
  const r = t.$$;
370
370
  r.fragment !== null && (fn(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
371
371
  }
372
372
  function mn(t, e) {
373
- t.$$.dirty[0] === -1 && (oe.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
373
+ t.$$.dirty[0] === -1 && (se.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
374
374
  }
375
- function R(t, e, r, n, i, s, o = null, l = [-1]) {
375
+ function R(t, e, r, n, i, o, s = null, l = [-1]) {
376
376
  const c = Ie;
377
377
  he(t);
378
378
  const a = t.$$ = {
379
379
  fragment: null,
380
380
  ctx: [],
381
381
  // state
382
- props: s,
382
+ props: o,
383
383
  update: B,
384
384
  not_equal: i,
385
385
  bound: Xe(),
@@ -396,7 +396,7 @@ function R(t, e, r, n, i, s, o = null, l = [-1]) {
396
396
  skip_bound: !1,
397
397
  root: e.target || c.$$.root
398
398
  };
399
- o && o(a.root);
399
+ s && s(a.root);
400
400
  let f = !1;
401
401
  if (a.ctx = r ? r(t, e.props || {}, (d, E, ...v) => {
402
402
  const _ = v.length ? v[0] : E;
@@ -486,38 +486,38 @@ function Fe(t) {
486
486
  class: Ee("rcb-modal-section") + " svelte-1bzqb13"
487
487
  });
488
488
  },
489
- m(s, o) {
490
- p(s, e, o), i && i.m(e, null), r = !0;
489
+ m(o, s) {
490
+ p(o, e, s), i && i.m(e, null), r = !0;
491
491
  },
492
- p(s, o) {
493
- i && i.p && (!r || o & /*$$scope*/
494
- 2) && q(
492
+ p(o, s) {
493
+ i && i.p && (!r || s & /*$$scope*/
494
+ 2) && K(
495
495
  i,
496
496
  n,
497
- s,
497
+ o,
498
498
  /*$$scope*/
499
- s[1],
499
+ o[1],
500
500
  r ? H(
501
501
  n,
502
502
  /*$$scope*/
503
- s[1],
504
- o,
503
+ o[1],
504
+ s,
505
505
  null
506
- ) : K(
506
+ ) : q(
507
507
  /*$$scope*/
508
- s[1]
508
+ o[1]
509
509
  ),
510
510
  null
511
511
  );
512
512
  },
513
- i(s) {
514
- r || (u(i, s), r = !0);
513
+ i(o) {
514
+ r || (u(i, o), r = !0);
515
515
  },
516
- o(s) {
517
- m(i, s), r = !1;
516
+ o(o) {
517
+ m(i, o), r = !1;
518
518
  },
519
- d(s) {
520
- s && g(e), i && i.d(s);
519
+ d(o) {
520
+ o && g(e), i && i.d(o);
521
521
  }
522
522
  };
523
523
  }
@@ -533,36 +533,36 @@ function An(t) {
533
533
  c() {
534
534
  i && i.c(), r = Z();
535
535
  },
536
- m(s, o) {
537
- i && i.m(s, o), p(s, r, o), n = !0;
536
+ m(o, s) {
537
+ i && i.m(o, s), p(o, r, s), n = !0;
538
538
  },
539
- p(s, [o]) {
539
+ p(o, [s]) {
540
540
  /*as*/
541
- s[0] ? e ? P(
541
+ o[0] ? e ? P(
542
542
  e,
543
543
  /*as*/
544
- s[0]
545
- ) ? (i.d(1), i = Fe(s), e = /*as*/
546
- s[0], i.c(), i.m(r.parentNode, r)) : i.p(s, o) : (i = Fe(s), e = /*as*/
547
- s[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
548
- s[0]);
544
+ o[0]
545
+ ) ? (i.d(1), i = Fe(o), e = /*as*/
546
+ o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Fe(o), e = /*as*/
547
+ o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
548
+ o[0]);
549
549
  },
550
- i(s) {
551
- n || (u(i, s), n = !0);
550
+ i(o) {
551
+ n || (u(i, o), n = !0);
552
552
  },
553
- o(s) {
554
- m(i, s), n = !1;
553
+ o(o) {
554
+ m(i, o), n = !1;
555
555
  },
556
- d(s) {
557
- s && g(r), i && i.d(s);
556
+ d(o) {
557
+ o && g(r), i && i.d(o);
558
558
  }
559
559
  };
560
560
  }
561
561
  function _n(t, e, r) {
562
- let { $$slots: n = {}, $$scope: i } = e, { as: s = "section" } = e;
563
- return t.$$set = (o) => {
564
- "as" in o && r(0, s = o.as), "$$scope" in o && r(1, i = o.$$scope);
565
- }, [s, i, n];
562
+ let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
563
+ return t.$$set = (s) => {
564
+ "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
565
+ }, [o, i, n];
566
566
  }
567
567
  class ae extends U {
568
568
  constructor(e) {
@@ -679,7 +679,7 @@ function In(t) {
679
679
  let e, r, n = (
680
680
  /*productDetails*/
681
681
  t[0].displayName + ""
682
- ), i, s, o, l = (
682
+ ), i, o, s, l = (
683
683
  /*productDetails*/
684
684
  t[0].currentPrice.currency + ""
685
685
  ), c, a = " ", f, d = tt(
@@ -693,10 +693,10 @@ function In(t) {
693
693
  ) + "", F, $, de, ve, re;
694
694
  return {
695
695
  c() {
696
- e = k("div"), r = k("span"), i = N(n), s = T(), o = k("span"), c = N(l), f = N(a), E = N(d), v = T(), _ = k("ul"), M = k("li"), h = N("Billed "), F = N(y), $ = T(), de = k("li"), de.textContent = "Plan continues until cancelled", ve = T(), re = k("li"), re.textContent = "Cancel anytime", A(o, "class", "rcb-product-price svelte-i5dq8q"), A(_, "class", "rcb-product-details svelte-i5dq8q"), A(e, "class", "rcb-pricing-info svelte-i5dq8q");
696
+ e = k("div"), r = k("span"), i = N(n), o = T(), s = k("span"), c = N(l), f = N(a), E = N(d), v = T(), _ = k("ul"), M = k("li"), h = N("Billed "), F = N(y), $ = T(), de = k("li"), de.textContent = "Continues until canceled", ve = T(), re = k("li"), re.textContent = "Cancel anytime", A(s, "class", "rcb-product-price svelte-i5dq8q"), A(_, "class", "rcb-product-details svelte-i5dq8q"), A(e, "class", "rcb-pricing-info svelte-i5dq8q");
697
697
  },
698
698
  m(z, W) {
699
- p(z, e, W), Q(e, r), Q(r, i), Q(e, s), Q(e, o), Q(o, c), Q(o, f), Q(o, E), Q(e, v), Q(e, _), Q(_, M), Q(M, h), Q(M, F), Q(_, $), Q(_, de), Q(_, ve), Q(_, re);
699
+ p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e, _), D(_, M), D(M, h), D(M, F), D(_, $), D(_, de), D(_, ve), D(_, re);
700
700
  },
701
701
  p(z, W) {
702
702
  W & /*productDetails*/
@@ -735,9 +735,9 @@ function bn(t) {
735
735
  I(e, n, i), r = !0;
736
736
  },
737
737
  p(n, [i]) {
738
- const s = {};
738
+ const o = {};
739
739
  i & /*$$scope, productDetails*/
740
- 3 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
740
+ 3 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
741
741
  },
742
742
  i(n) {
743
743
  r || (u(e.$$.fragment, n), r = !0);
@@ -793,8 +793,8 @@ function yn(t) {
793
793
  c() {
794
794
  e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-modal-loader svelte-1mxx341");
795
795
  },
796
- m(i, s) {
797
- p(i, e, s), I(r, e, null), n = !0;
796
+ m(i, o) {
797
+ p(i, e, o), I(r, e, null), n = !0;
798
798
  },
799
799
  p: B,
800
800
  i(i) {
@@ -828,13 +828,13 @@ class Dn {
828
828
  this.backend = e, this.maxNumberAttempts = r;
829
829
  }
830
830
  async startPurchase(e, r, n, i) {
831
- const s = await this.backend.postSubscribe(
831
+ const o = await this.backend.postSubscribe(
832
832
  e,
833
833
  r,
834
834
  n,
835
835
  i
836
836
  );
837
- return this.operationSessionId = s.operation_session_id, s;
837
+ return this.operationSessionId = o.operation_session_id, o;
838
838
  }
839
839
  async pollCurrentPurchaseForCompletion() {
840
840
  const e = this.operationSessionId;
@@ -844,8 +844,8 @@ class Dn {
844
844
  "No purchase in progress"
845
845
  );
846
846
  return new Promise((r, n) => {
847
- const i = (s = 1) => {
848
- if (s > this.maxNumberAttempts) {
847
+ const i = (o = 1) => {
848
+ if (o > this.maxNumberAttempts) {
849
849
  this.clearPurchaseInProgress(), n(
850
850
  new G(
851
851
  2,
@@ -854,12 +854,12 @@ class Dn {
854
854
  );
855
855
  return;
856
856
  }
857
- this.backend.getCheckoutStatus(e).then((o) => {
858
- switch (o.operation.status) {
857
+ this.backend.getCheckoutStatus(e).then((s) => {
858
+ switch (s.operation.status) {
859
859
  case Ae.Started:
860
860
  case Ae.InProgress:
861
861
  setTimeout(
862
- () => i(s + 1),
862
+ () => i(o + 1),
863
863
  this.waitMSBetweenAttempts
864
864
  );
865
865
  break;
@@ -868,15 +868,15 @@ class Dn {
868
868
  return;
869
869
  case Ae.Failed:
870
870
  this.clearPurchaseInProgress(), this.handlePaymentError(
871
- o.operation.error,
871
+ s.operation.error,
872
872
  n
873
873
  );
874
874
  }
875
- }).catch((o) => {
875
+ }).catch((s) => {
876
876
  n(
877
877
  new G(
878
878
  3,
879
- o.message
879
+ s.message
880
880
  )
881
881
  );
882
882
  });
@@ -955,12 +955,12 @@ function Tn(t) {
955
955
  O(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)}");
956
956
  }
957
957
  function Rn(t) {
958
- let e, r, n, i, s;
959
- const o = (
958
+ let e, r, n, i, o;
959
+ const s = (
960
960
  /*#slots*/
961
961
  t[3].default
962
962
  ), l = Y(
963
- o,
963
+ s,
964
964
  t,
965
965
  /*$$scope*/
966
966
  t[2],
@@ -973,7 +973,7 @@ function Rn(t) {
973
973
  t[1];
974
974
  },
975
975
  m(c, a) {
976
- p(c, e, a), l && l.m(e, null), n = !0, i || (s = ke(
976
+ p(c, e, a), l && l.m(e, null), n = !0, i || (o = ke(
977
977
  e,
978
978
  "click",
979
979
  /*click_handler*/
@@ -982,19 +982,19 @@ function Rn(t) {
982
982
  },
983
983
  p(c, [a]) {
984
984
  l && l.p && (!n || a & /*$$scope*/
985
- 4) && q(
985
+ 4) && K(
986
986
  l,
987
- o,
987
+ s,
988
988
  c,
989
989
  /*$$scope*/
990
990
  c[2],
991
991
  n ? H(
992
- o,
992
+ s,
993
993
  /*$$scope*/
994
994
  c[2],
995
995
  a,
996
996
  null
997
- ) : K(
997
+ ) : q(
998
998
  /*$$scope*/
999
999
  c[2]
1000
1000
  ),
@@ -1012,18 +1012,18 @@ function Rn(t) {
1012
1012
  m(l, c), n = !1;
1013
1013
  },
1014
1014
  d(c) {
1015
- c && g(e), l && l.d(c), i = !1, s();
1015
+ c && g(e), l && l.d(c), i = !1, o();
1016
1016
  }
1017
1017
  };
1018
1018
  }
1019
1019
  function Un(t, e, r) {
1020
- let { $$slots: n = {}, $$scope: i } = e, { intent: s = "primary" } = e, { disabled: o = !1 } = e;
1020
+ let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1021
1021
  function l(c) {
1022
1022
  $t.call(this, t, c);
1023
1023
  }
1024
1024
  return t.$$set = (c) => {
1025
- "intent" in c && r(0, s = c.intent), "disabled" in c && r(1, o = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1026
- }, [s, o, i, n, l];
1025
+ "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1026
+ }, [o, s, i, n, l];
1027
1027
  }
1028
1028
  class be extends U {
1029
1029
  constructor(e) {
@@ -1049,45 +1049,45 @@ function Sn(t) {
1049
1049
  c() {
1050
1050
  e = k("footer"), i && i.c(), A(e, "class", "rcb-modal-footer svelte-1f9z0o8");
1051
1051
  },
1052
- m(s, o) {
1053
- p(s, e, o), i && i.m(e, null), r = !0;
1052
+ m(o, s) {
1053
+ p(o, e, s), i && i.m(e, null), r = !0;
1054
1054
  },
1055
- p(s, [o]) {
1056
- i && i.p && (!r || o & /*$$scope*/
1057
- 1) && q(
1055
+ p(o, [s]) {
1056
+ i && i.p && (!r || s & /*$$scope*/
1057
+ 1) && K(
1058
1058
  i,
1059
1059
  n,
1060
- s,
1060
+ o,
1061
1061
  /*$$scope*/
1062
- s[0],
1062
+ o[0],
1063
1063
  r ? H(
1064
1064
  n,
1065
1065
  /*$$scope*/
1066
- s[0],
1067
- o,
1066
+ o[0],
1067
+ s,
1068
1068
  null
1069
- ) : K(
1069
+ ) : q(
1070
1070
  /*$$scope*/
1071
- s[0]
1071
+ o[0]
1072
1072
  ),
1073
1073
  null
1074
1074
  );
1075
1075
  },
1076
- i(s) {
1077
- r || (u(i, s), r = !0);
1076
+ i(o) {
1077
+ r || (u(i, o), r = !0);
1078
1078
  },
1079
- o(s) {
1080
- m(i, s), r = !1;
1079
+ o(o) {
1080
+ m(i, o), r = !1;
1081
1081
  },
1082
- d(s) {
1083
- s && g(e), i && i.d(s);
1082
+ d(o) {
1083
+ o && g(e), i && i.d(o);
1084
1084
  }
1085
1085
  };
1086
1086
  }
1087
1087
  function On(t, e, r) {
1088
1088
  let { $$slots: n = {}, $$scope: i } = e;
1089
- return t.$$set = (s) => {
1090
- "$$scope" in s && r(0, i = s.$$scope);
1089
+ return t.$$set = (o) => {
1090
+ "$$scope" in o && r(0, i = o.$$scope);
1091
1091
  }, [i, n];
1092
1092
  }
1093
1093
  class Je extends U {
@@ -1103,7 +1103,7 @@ function xn(t) {
1103
1103
  const i = (
1104
1104
  /*#slots*/
1105
1105
  t[2].default
1106
- ), s = Y(
1106
+ ), o = Y(
1107
1107
  i,
1108
1108
  t,
1109
1109
  /*$$scope*/
@@ -1112,51 +1112,51 @@ function xn(t) {
1112
1112
  );
1113
1113
  return {
1114
1114
  c() {
1115
- e = k("div"), s && s.c(), A(e, "class", "column svelte-6o8e90"), A(e, "style", r = `--gap:${/*gutter*/
1115
+ e = k("div"), o && o.c(), A(e, "class", "column svelte-6o8e90"), A(e, "style", r = `--gap:${/*gutter*/
1116
1116
  t[0]};`);
1117
1117
  },
1118
- m(o, l) {
1119
- p(o, e, l), s && s.m(e, null), n = !0;
1118
+ m(s, l) {
1119
+ p(s, e, l), o && o.m(e, null), n = !0;
1120
1120
  },
1121
- p(o, [l]) {
1122
- s && s.p && (!n || l & /*$$scope*/
1123
- 2) && q(
1124
- s,
1125
- i,
1121
+ p(s, [l]) {
1122
+ o && o.p && (!n || l & /*$$scope*/
1123
+ 2) && K(
1126
1124
  o,
1125
+ i,
1126
+ s,
1127
1127
  /*$$scope*/
1128
- o[1],
1128
+ s[1],
1129
1129
  n ? H(
1130
1130
  i,
1131
1131
  /*$$scope*/
1132
- o[1],
1132
+ s[1],
1133
1133
  l,
1134
1134
  null
1135
- ) : K(
1135
+ ) : q(
1136
1136
  /*$$scope*/
1137
- o[1]
1137
+ s[1]
1138
1138
  ),
1139
1139
  null
1140
1140
  ), (!n || l & /*gutter*/
1141
1141
  1 && r !== (r = `--gap:${/*gutter*/
1142
- o[0]};`)) && A(e, "style", r);
1142
+ s[0]};`)) && A(e, "style", r);
1143
1143
  },
1144
- i(o) {
1145
- n || (u(s, o), n = !0);
1144
+ i(s) {
1145
+ n || (u(o, s), n = !0);
1146
1146
  },
1147
- o(o) {
1148
- m(s, o), n = !1;
1147
+ o(s) {
1148
+ m(o, s), n = !1;
1149
1149
  },
1150
- d(o) {
1151
- o && g(e), s && s.d(o);
1150
+ d(s) {
1151
+ s && g(e), o && o.d(s);
1152
1152
  }
1153
1153
  };
1154
1154
  }
1155
1155
  function Fn(t, e, r) {
1156
- let { $$slots: n = {}, $$scope: i } = e, { gutter: s = "8px" } = e;
1157
- return t.$$set = (o) => {
1158
- "gutter" in o && r(0, s = o.gutter), "$$scope" in o && r(1, i = o.$$scope);
1159
- }, [s, i, n];
1156
+ let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1157
+ return t.$$set = (s) => {
1158
+ "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1159
+ }, [o, i, n];
1160
1160
  }
1161
1161
  class $e extends U {
1162
1162
  constructor(e) {
@@ -1168,44 +1168,44 @@ function Yn(t) {
1168
1168
  O(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1169
1169
  }
1170
1170
  function Hn(t) {
1171
- let e, r, n, i, s;
1171
+ let e, r, n, i, o;
1172
1172
  return {
1173
1173
  c() {
1174
1174
  e = k("button"), r = k("img"), X(r.src, n = Gn) || A(r, "src", n), A(r, "alt", "close"), A(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1175
1175
  t[0];
1176
1176
  },
1177
- m(o, l) {
1178
- p(o, e, l), Q(e, r), i || (s = ke(
1177
+ m(s, l) {
1178
+ p(s, e, l), D(e, r), i || (o = ke(
1179
1179
  e,
1180
1180
  "click",
1181
1181
  /*click_handler*/
1182
1182
  t[1]
1183
1183
  ), i = !0);
1184
1184
  },
1185
- p(o, [l]) {
1185
+ p(s, [l]) {
1186
1186
  l & /*disabled*/
1187
1187
  1 && (e.disabled = /*disabled*/
1188
- o[0]);
1188
+ s[0]);
1189
1189
  },
1190
1190
  i: B,
1191
1191
  o: B,
1192
- d(o) {
1193
- o && g(e), i = !1, s();
1192
+ d(s) {
1193
+ s && g(e), i = !1, o();
1194
1194
  }
1195
1195
  };
1196
1196
  }
1197
- function qn(t, e, r) {
1197
+ function Kn(t, e, r) {
1198
1198
  let { disabled: n = !1 } = e;
1199
- function i(s) {
1200
- $t.call(this, t, s);
1199
+ function i(o) {
1200
+ $t.call(this, t, o);
1201
1201
  }
1202
- return t.$$set = (s) => {
1203
- "disabled" in s && r(0, n = s.disabled);
1202
+ return t.$$set = (o) => {
1203
+ "disabled" in o && r(0, n = o.disabled);
1204
1204
  }, [n, i];
1205
1205
  }
1206
- class Kn extends U {
1206
+ class qn extends U {
1207
1207
  constructor(e) {
1208
- super(), R(this, e, qn, Hn, P, { disabled: 0 }, Yn);
1208
+ super(), R(this, e, Kn, Hn, P, { disabled: 0 }, Yn);
1209
1209
  }
1210
1210
  }
1211
1211
  function jn(t) {
@@ -1227,22 +1227,22 @@ function Jn(t) {
1227
1227
  };
1228
1228
  }
1229
1229
  function Vn(t) {
1230
- let e, r, n, i, s, o;
1230
+ let e, r, n, i, o, s;
1231
1231
  return {
1232
1232
  c() {
1233
- e = k("picture"), r = k("source"), i = T(), s = k("img"), A(r, "type", "image/webp"), Kt(r, n = /*srcWebp*/
1234
- t[1]) || A(r, "srcset", n), A(s, "class", "rcb-app-icon svelte-44qpq9"), X(s.src, o = /*src*/
1235
- t[0]) || A(s, "src", o), A(s, "alt", "App icon"), A(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1233
+ e = k("picture"), r = k("source"), i = T(), o = k("img"), A(r, "type", "image/webp"), qt(r, n = /*srcWebp*/
1234
+ t[1]) || A(r, "srcset", n), A(o, "class", "rcb-app-icon svelte-44qpq9"), X(o.src, s = /*src*/
1235
+ t[0]) || A(o, "src", s), A(o, "alt", "App icon"), A(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1236
1236
  },
1237
1237
  m(l, c) {
1238
- p(l, e, c), Q(e, r), Q(e, i), Q(e, s);
1238
+ p(l, e, c), D(e, r), D(e, i), D(e, o);
1239
1239
  },
1240
1240
  p(l, c) {
1241
1241
  c & /*srcWebp*/
1242
1242
  2 && n !== (n = /*srcWebp*/
1243
1243
  l[1]) && A(r, "srcset", n), c & /*src*/
1244
- 1 && !X(s.src, o = /*src*/
1245
- l[0]) && A(s, "src", o);
1244
+ 1 && !X(o.src, s = /*src*/
1245
+ l[0]) && A(o, "src", s);
1246
1246
  },
1247
1247
  d(l) {
1248
1248
  l && g(e);
@@ -1251,10 +1251,10 @@ function Vn(t) {
1251
1251
  }
1252
1252
  function Wn(t) {
1253
1253
  let e;
1254
- function r(s, o) {
1254
+ function r(o, s) {
1255
1255
  return (
1256
1256
  /*src*/
1257
- s[0] !== null ? Vn : Jn
1257
+ o[0] !== null ? Vn : Jn
1258
1258
  );
1259
1259
  }
1260
1260
  let n = r(t), i = n(t);
@@ -1262,23 +1262,23 @@ function Wn(t) {
1262
1262
  c() {
1263
1263
  i.c(), e = Z();
1264
1264
  },
1265
- m(s, o) {
1266
- i.m(s, o), p(s, e, o);
1265
+ m(o, s) {
1266
+ i.m(o, s), p(o, e, s);
1267
1267
  },
1268
- p(s, [o]) {
1269
- n === (n = r(s)) && i ? i.p(s, o) : (i.d(1), i = n(s), i && (i.c(), i.m(e.parentNode, e)));
1268
+ p(o, [s]) {
1269
+ n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(e.parentNode, e)));
1270
1270
  },
1271
1271
  i: B,
1272
1272
  o: B,
1273
- d(s) {
1274
- s && g(e), i.d(s);
1273
+ d(o) {
1274
+ o && g(e), i.d(o);
1275
1275
  }
1276
1276
  };
1277
1277
  }
1278
1278
  function zn(t, e, r) {
1279
1279
  let { src: n = null } = e, { srcWebp: i = null } = e;
1280
- return t.$$set = (s) => {
1281
- "src" in s && r(0, n = s.src), "srcWebp" in s && r(1, i = s.srcWebp);
1280
+ return t.$$set = (o) => {
1281
+ "src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
1282
1282
  }, [n, i];
1283
1283
  }
1284
1284
  class yt extends U {
@@ -1315,36 +1315,36 @@ function er(t) {
1315
1315
  let e, r, n = (
1316
1316
  /*brandingInfo*/
1317
1317
  t[0].seller_company_name + ""
1318
- ), i, s, o = (
1318
+ ), i, o, s = (
1319
1319
  /*brandingInfo*/
1320
1320
  t[0].app_icon_webp !== null && /*brandingInfo*/
1321
1321
  t[0].app_icon !== null && rt(t)
1322
1322
  );
1323
1323
  return {
1324
1324
  c() {
1325
- o && o.c(), e = T(), r = k("span"), i = N(n), A(r, "class", "app-title svelte-10uf5fq");
1325
+ s && s.c(), e = T(), r = k("span"), i = N(n), A(r, "class", "app-title svelte-10uf5fq");
1326
1326
  },
1327
1327
  m(l, c) {
1328
- o && o.m(l, c), p(l, e, c), p(l, r, c), Q(r, i), s = !0;
1328
+ s && s.m(l, c), p(l, e, c), p(l, r, c), D(r, i), o = !0;
1329
1329
  },
1330
1330
  p(l, c) {
1331
1331
  /*brandingInfo*/
1332
1332
  l[0].app_icon_webp !== null && /*brandingInfo*/
1333
- l[0].app_icon !== null ? o ? (o.p(l, c), c & /*brandingInfo*/
1334
- 1 && u(o, 1)) : (o = rt(l), o.c(), u(o, 1), o.m(e.parentNode, e)) : o && (L(), m(o, 1, 1, () => {
1335
- o = null;
1336
- }), x()), (!s || c & /*brandingInfo*/
1333
+ l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1334
+ 1 && u(s, 1)) : (s = rt(l), s.c(), u(s, 1), s.m(e.parentNode, e)) : s && (L(), m(s, 1, 1, () => {
1335
+ s = null;
1336
+ }), x()), (!o || c & /*brandingInfo*/
1337
1337
  1) && n !== (n = /*brandingInfo*/
1338
1338
  l[0].seller_company_name + "") && te(i, n);
1339
1339
  },
1340
1340
  i(l) {
1341
- s || (u(o), s = !0);
1341
+ o || (u(s), o = !0);
1342
1342
  },
1343
1343
  o(l) {
1344
- m(o), s = !1;
1344
+ m(s), o = !1;
1345
1345
  },
1346
1346
  d(l) {
1347
- l && (g(e), g(r)), o && o.d(l);
1347
+ l && (g(e), g(r)), s && s.d(l);
1348
1348
  }
1349
1349
  };
1350
1350
  }
@@ -1369,16 +1369,16 @@ function rt(t) {
1369
1369
  I(e, n, i), r = !0;
1370
1370
  },
1371
1371
  p(n, i) {
1372
- const s = {};
1372
+ const o = {};
1373
1373
  i & /*brandingInfo*/
1374
- 1 && (s.src = ye(
1374
+ 1 && (o.src = ye(
1375
1375
  /*brandingInfo*/
1376
1376
  n[0].app_icon
1377
1377
  )), i & /*brandingInfo*/
1378
- 1 && (s.srcWebp = ye(
1378
+ 1 && (o.srcWebp = ye(
1379
1379
  /*brandingInfo*/
1380
1380
  n[0].app_icon_webp
1381
- )), e.$set(s);
1381
+ )), e.$set(o);
1382
1382
  },
1383
1383
  i(n) {
1384
1384
  r || (u(e.$$.fragment, n), r = !0);
@@ -1393,25 +1393,25 @@ function rt(t) {
1393
1393
  }
1394
1394
  function tr(t) {
1395
1395
  let e, r, n, i;
1396
- const s = [er, Zn], o = [];
1396
+ const o = [er, Zn], s = [];
1397
1397
  function l(c, a) {
1398
1398
  return (
1399
1399
  /*brandingInfo*/
1400
1400
  c[0] !== null ? 0 : 1
1401
1401
  );
1402
1402
  }
1403
- return r = l(t), n = o[r] = s[r](t), {
1403
+ return r = l(t), n = s[r] = o[r](t), {
1404
1404
  c() {
1405
1405
  e = k("div"), n.c(), A(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
1406
1406
  },
1407
1407
  m(c, a) {
1408
- p(c, e, a), o[r].m(e, null), i = !0;
1408
+ p(c, e, a), s[r].m(e, null), i = !0;
1409
1409
  },
1410
1410
  p(c, [a]) {
1411
1411
  let f = r;
1412
- r = l(c), r === f ? o[r].p(c, a) : (L(), m(o[f], 1, 1, () => {
1413
- o[f] = null;
1414
- }), x(), n = o[r], n ? n.p(c, a) : (n = o[r] = s[r](c), n.c()), u(n, 1), n.m(e, null));
1412
+ r = l(c), r === f ? s[r].p(c, a) : (L(), m(s[f], 1, 1, () => {
1413
+ s[f] = null;
1414
+ }), x(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), u(n, 1), n.m(e, null));
1415
1415
  },
1416
1416
  i(c) {
1417
1417
  i || (u(n), i = !0);
@@ -1420,7 +1420,7 @@ function tr(t) {
1420
1420
  m(n), i = !1;
1421
1421
  },
1422
1422
  d(c) {
1423
- c && g(e), o[r].d();
1423
+ c && g(e), s[r].d();
1424
1424
  }
1425
1425
  };
1426
1426
  }
@@ -1439,13 +1439,13 @@ function rr(t) {
1439
1439
  O(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1440
1440
  }
1441
1441
  function ir(t) {
1442
- let e, r, n, i, s;
1442
+ let e, r, n, i, o;
1443
1443
  return r = new Dt({
1444
1444
  props: { brandingInfo: (
1445
1445
  /*brandingInfo*/
1446
1446
  t[0]
1447
1447
  ) }
1448
- }), i = new Kn({}), i.$on("click", function() {
1448
+ }), i = new qn({}), i.$on("click", function() {
1449
1449
  ce(
1450
1450
  /*onClose*/
1451
1451
  t[1]
@@ -1454,28 +1454,28 @@ function ir(t) {
1454
1454
  c() {
1455
1455
  e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), A(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1456
1456
  },
1457
- m(o, l) {
1458
- p(o, e, l), I(r, e, null), Q(e, n), I(i, e, null), s = !0;
1457
+ m(s, l) {
1458
+ p(s, e, l), I(r, e, null), D(e, n), I(i, e, null), o = !0;
1459
1459
  },
1460
- p(o, l) {
1461
- t = o;
1460
+ p(s, l) {
1461
+ t = s;
1462
1462
  const c = {};
1463
1463
  l & /*brandingInfo*/
1464
1464
  1 && (c.brandingInfo = /*brandingInfo*/
1465
1465
  t[0]), r.$set(c);
1466
1466
  },
1467
- i(o) {
1468
- s || (u(r.$$.fragment, o), u(i.$$.fragment, o), s = !0);
1467
+ i(s) {
1468
+ o || (u(r.$$.fragment, s), u(i.$$.fragment, s), o = !0);
1469
1469
  },
1470
- o(o) {
1471
- m(r.$$.fragment, o), m(i.$$.fragment, o), s = !1;
1470
+ o(s) {
1471
+ m(r.$$.fragment, s), m(i.$$.fragment, s), o = !1;
1472
1472
  },
1473
- d(o) {
1474
- o && g(e), b(r), b(i);
1473
+ d(s) {
1474
+ s && g(e), b(r), b(i);
1475
1475
  }
1476
1476
  };
1477
1477
  }
1478
- function sr(t) {
1478
+ function or(t) {
1479
1479
  let e, r;
1480
1480
  return e = new ae({
1481
1481
  props: {
@@ -1491,9 +1491,9 @@ function sr(t) {
1491
1491
  I(e, n, i), r = !0;
1492
1492
  },
1493
1493
  p(n, [i]) {
1494
- const s = {};
1494
+ const o = {};
1495
1495
  i & /*$$scope, onClose, brandingInfo*/
1496
- 7 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1496
+ 7 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1497
1497
  },
1498
1498
  i(n) {
1499
1499
  r || (u(e.$$.fragment, n), r = !0);
@@ -1506,15 +1506,15 @@ function sr(t) {
1506
1506
  }
1507
1507
  };
1508
1508
  }
1509
- function or(t, e, r) {
1509
+ function sr(t, e, r) {
1510
1510
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1511
- return t.$$set = (s) => {
1512
- "brandingInfo" in s && r(0, n = s.brandingInfo), "onClose" in s && r(1, i = s.onClose);
1511
+ return t.$$set = (o) => {
1512
+ "brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
1513
1513
  }, [n, i];
1514
1514
  }
1515
1515
  class lr extends U {
1516
1516
  constructor(e) {
1517
- super(), R(this, e, or, sr, P, { brandingInfo: 0, onClose: 1 }, rr);
1517
+ super(), R(this, e, sr, or, P, { brandingInfo: 0, onClose: 1 }, rr);
1518
1518
  }
1519
1519
  }
1520
1520
  function cr(t) {
@@ -1522,12 +1522,12 @@ function cr(t) {
1522
1522
  }
1523
1523
  const ar = (t) => ({}), it = (t) => ({});
1524
1524
  function ur(t) {
1525
- let e, r, n, i, s;
1526
- const o = (
1525
+ let e, r, n, i, o;
1526
+ const s = (
1527
1527
  /*#slots*/
1528
1528
  t[4].default
1529
1529
  ), l = Y(
1530
- o,
1530
+ s,
1531
1531
  t,
1532
1532
  /*$$scope*/
1533
1533
  t[5],
@@ -1541,28 +1541,28 @@ function ur(t) {
1541
1541
  ), n = T(), i = k("span"), l && l.c(), A(e, "class", "title svelte-10pcqja"), A(i, "class", "subtitle svelte-10pcqja");
1542
1542
  },
1543
1543
  m(c, a) {
1544
- p(c, e, a), Q(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), s = !0;
1544
+ p(c, e, a), D(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1545
1545
  },
1546
1546
  p(c, a) {
1547
- (!s || a & /*title*/
1547
+ (!o || a & /*title*/
1548
1548
  4) && te(
1549
1549
  r,
1550
1550
  /*title*/
1551
1551
  c[2]
1552
- ), l && l.p && (!s || a & /*$$scope*/
1553
- 32) && q(
1552
+ ), l && l.p && (!o || a & /*$$scope*/
1553
+ 32) && K(
1554
1554
  l,
1555
- o,
1555
+ s,
1556
1556
  c,
1557
1557
  /*$$scope*/
1558
1558
  c[5],
1559
- s ? H(
1560
- o,
1559
+ o ? H(
1560
+ s,
1561
1561
  /*$$scope*/
1562
1562
  c[5],
1563
1563
  a,
1564
1564
  null
1565
- ) : K(
1565
+ ) : q(
1566
1566
  /*$$scope*/
1567
1567
  c[5]
1568
1568
  ),
@@ -1570,10 +1570,10 @@ function ur(t) {
1570
1570
  );
1571
1571
  },
1572
1572
  i(c) {
1573
- s || (u(l, c), s = !0);
1573
+ o || (u(l, c), o = !0);
1574
1574
  },
1575
1575
  o(c) {
1576
- m(l, c), s = !1;
1576
+ m(l, c), o = !1;
1577
1577
  },
1578
1578
  d(c) {
1579
1579
  c && (g(e), g(n), g(i)), l && l.d(c);
@@ -1585,7 +1585,7 @@ function fr(t) {
1585
1585
  const i = (
1586
1586
  /*#slots*/
1587
1587
  t[4].icon
1588
- ), s = Y(
1588
+ ), o = Y(
1589
1589
  i,
1590
1590
  t,
1591
1591
  /*$$scope*/
@@ -1600,43 +1600,43 @@ function fr(t) {
1600
1600
  }
1601
1601
  }), {
1602
1602
  c() {
1603
- s && s.c(), e = T(), w(r.$$.fragment);
1603
+ o && o.c(), e = T(), w(r.$$.fragment);
1604
1604
  },
1605
- m(o, l) {
1606
- s && s.m(o, l), p(o, e, l), I(r, o, l), n = !0;
1605
+ m(s, l) {
1606
+ o && o.m(s, l), p(s, e, l), I(r, s, l), n = !0;
1607
1607
  },
1608
- p(o, l) {
1609
- s && s.p && (!n || l & /*$$scope*/
1610
- 32) && q(
1611
- s,
1612
- i,
1608
+ p(s, l) {
1609
+ o && o.p && (!n || l & /*$$scope*/
1610
+ 32) && K(
1613
1611
  o,
1612
+ i,
1613
+ s,
1614
1614
  /*$$scope*/
1615
- o[5],
1615
+ s[5],
1616
1616
  n ? H(
1617
1617
  i,
1618
1618
  /*$$scope*/
1619
- o[5],
1619
+ s[5],
1620
1620
  l,
1621
1621
  ar
1622
- ) : K(
1622
+ ) : q(
1623
1623
  /*$$scope*/
1624
- o[5]
1624
+ s[5]
1625
1625
  ),
1626
1626
  it
1627
1627
  );
1628
1628
  const c = {};
1629
1629
  l & /*$$scope, title*/
1630
- 36 && (c.$$scope = { dirty: l, ctx: o }), r.$set(c);
1630
+ 36 && (c.$$scope = { dirty: l, ctx: s }), r.$set(c);
1631
1631
  },
1632
- i(o) {
1633
- n || (u(s, o), u(r.$$.fragment, o), n = !0);
1632
+ i(s) {
1633
+ n || (u(o, s), u(r.$$.fragment, s), n = !0);
1634
1634
  },
1635
- o(o) {
1636
- m(s, o), m(r.$$.fragment, o), n = !1;
1635
+ o(s) {
1636
+ m(o, s), m(r.$$.fragment, s), n = !1;
1637
1637
  },
1638
- d(o) {
1639
- o && g(e), s && s.d(o), b(r, o);
1638
+ d(s) {
1639
+ s && g(e), o && o.d(s), b(r, s);
1640
1640
  }
1641
1641
  };
1642
1642
  }
@@ -1657,13 +1657,13 @@ function dr(t) {
1657
1657
  t[3]
1658
1658
  );
1659
1659
  },
1660
- m(i, s) {
1661
- p(i, e, s), I(r, e, null), n = !0;
1660
+ m(i, o) {
1661
+ p(i, e, o), I(r, e, null), n = !0;
1662
1662
  },
1663
- p(i, s) {
1664
- const o = {};
1665
- s & /*$$scope, title*/
1666
- 36 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o), (!n || s & /*type*/
1663
+ p(i, o) {
1664
+ const s = {};
1665
+ o & /*$$scope, title*/
1666
+ 36 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s), (!n || o & /*type*/
1667
1667
  8) && A(
1668
1668
  e,
1669
1669
  "data-type",
@@ -1717,9 +1717,9 @@ function gr(t) {
1717
1717
  },
1718
1718
  p(n, i) {
1719
1719
  t = n;
1720
- const s = {};
1720
+ const o = {};
1721
1721
  i & /*$$scope*/
1722
- 32 && (s.$$scope = { dirty: i, ctx: t }), e.$set(s);
1722
+ 32 && (o.$$scope = { dirty: i, ctx: t }), e.$set(o);
1723
1723
  },
1724
1724
  i(n) {
1725
1725
  r || (u(e.$$.fragment, n), r = !0);
@@ -1733,7 +1733,7 @@ function gr(t) {
1733
1733
  };
1734
1734
  }
1735
1735
  function pr(t) {
1736
- let e, r, n, i, s, o;
1736
+ let e, r, n, i, o, s;
1737
1737
  return e = new lr({
1738
1738
  props: {
1739
1739
  brandingInfo: (
@@ -1750,17 +1750,17 @@ function pr(t) {
1750
1750
  $$slots: { default: [dr] },
1751
1751
  $$scope: { ctx: t }
1752
1752
  }
1753
- }), s = new Je({
1753
+ }), o = new Je({
1754
1754
  props: {
1755
1755
  $$slots: { default: [gr] },
1756
1756
  $$scope: { ctx: t }
1757
1757
  }
1758
1758
  }), {
1759
1759
  c() {
1760
- w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(s.$$.fragment);
1760
+ w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(o.$$.fragment);
1761
1761
  },
1762
1762
  m(l, c) {
1763
- I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(s, l, c), o = !0;
1763
+ I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(o, l, c), s = !0;
1764
1764
  },
1765
1765
  p(l, c) {
1766
1766
  const a = {};
@@ -1774,16 +1774,16 @@ function pr(t) {
1774
1774
  44 && (f.$$scope = { dirty: c, ctx: l }), n.$set(f);
1775
1775
  const d = {};
1776
1776
  c & /*$$scope, onContinue*/
1777
- 34 && (d.$$scope = { dirty: c, ctx: l }), s.$set(d);
1777
+ 34 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
1778
1778
  },
1779
1779
  i(l) {
1780
- o || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(s.$$.fragment, l), o = !0);
1780
+ s || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(o.$$.fragment, l), s = !0);
1781
1781
  },
1782
1782
  o(l) {
1783
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(s.$$.fragment, l), o = !1;
1783
+ m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
1784
1784
  },
1785
1785
  d(l) {
1786
- l && (g(r), g(i)), b(e, l), b(n, l), b(s, l);
1786
+ l && (g(r), g(i)), b(e, l), b(n, l), b(o, l);
1787
1787
  }
1788
1788
  };
1789
1789
  }
@@ -1803,9 +1803,9 @@ function Ar(t) {
1803
1803
  I(e, n, i), r = !0;
1804
1804
  },
1805
1805
  p(n, [i]) {
1806
- const s = {};
1806
+ const o = {};
1807
1807
  i & /*$$scope, onContinue, type, title, brandingInfo*/
1808
- 47 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1808
+ 47 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1809
1809
  },
1810
1810
  i(n) {
1811
1811
  r || (u(e.$$.fragment, n), r = !0);
@@ -1819,10 +1819,10 @@ function Ar(t) {
1819
1819
  };
1820
1820
  }
1821
1821
  function _r(t, e, r) {
1822
- let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: s = null } = e, { onContinue: o } = e, { title: l } = e, { type: c } = e;
1822
+ let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
1823
1823
  return t.$$set = (a) => {
1824
- "brandingInfo" in a && r(0, s = a.brandingInfo), "onContinue" in a && r(1, o = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
1825
- }, [s, o, l, c, n, i];
1824
+ "brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
1825
+ }, [o, s, l, c, n, i];
1826
1826
  }
1827
1827
  class Qt extends U {
1828
1828
  constructor(e) {
@@ -1842,31 +1842,31 @@ class Qt extends U {
1842
1842
  );
1843
1843
  }
1844
1844
  }
1845
- function st(t) {
1846
- let e, r, n, i, s;
1845
+ function ot(t) {
1846
+ let e, r, n, i, o;
1847
1847
  return {
1848
1848
  c() {
1849
1849
  e = N("If this error persists, please contact "), r = k("a"), n = N(
1850
1850
  /*supportEmail*/
1851
1851
  t[1]
1852
- ), s = N("."), A(r, "href", i = "mailto:" + /*supportEmail*/
1852
+ ), o = N("."), A(r, "href", i = "mailto:" + /*supportEmail*/
1853
1853
  t[1]);
1854
1854
  },
1855
- m(o, l) {
1856
- p(o, e, l), p(o, r, l), Q(r, n), p(o, s, l);
1855
+ m(s, l) {
1856
+ p(s, e, l), p(s, r, l), D(r, n), p(s, o, l);
1857
1857
  },
1858
- p(o, l) {
1858
+ p(s, l) {
1859
1859
  l & /*supportEmail*/
1860
1860
  2 && te(
1861
1861
  n,
1862
1862
  /*supportEmail*/
1863
- o[1]
1863
+ s[1]
1864
1864
  ), l & /*supportEmail*/
1865
1865
  2 && i !== (i = "mailto:" + /*supportEmail*/
1866
- o[1]) && A(r, "href", i);
1866
+ s[1]) && A(r, "href", i);
1867
1867
  },
1868
- d(o) {
1869
- o && (g(e), g(r), g(s));
1868
+ d(s) {
1869
+ s && (g(e), g(r), g(o));
1870
1870
  }
1871
1871
  };
1872
1872
  }
@@ -1874,23 +1874,23 @@ function hr(t) {
1874
1874
  let e = (
1875
1875
  /*getErrorMessage*/
1876
1876
  t[3]() + ""
1877
- ), r, n, i, s = (
1877
+ ), r, n, i, o = (
1878
1878
  /*supportEmail*/
1879
- t[1] && st(t)
1879
+ t[1] && ot(t)
1880
1880
  );
1881
1881
  return {
1882
1882
  c() {
1883
- r = N(e), n = T(), s && s.c(), i = Z();
1883
+ r = N(e), n = T(), o && o.c(), i = Z();
1884
1884
  },
1885
- m(o, l) {
1886
- p(o, r, l), p(o, n, l), s && s.m(o, l), p(o, i, l);
1885
+ m(s, l) {
1886
+ p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
1887
1887
  },
1888
- p(o, l) {
1888
+ p(s, l) {
1889
1889
  /*supportEmail*/
1890
- o[1] ? s ? s.p(o, l) : (s = st(o), s.c(), s.m(i.parentNode, i)) : s && (s.d(1), s = null);
1890
+ s[1] ? o ? o.p(s, l) : (o = ot(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
1891
1891
  },
1892
- d(o) {
1893
- o && (g(r), g(n), g(i)), s && s.d(o);
1892
+ d(s) {
1893
+ s && (g(r), g(n), g(i)), o && o.d(s);
1894
1894
  }
1895
1895
  };
1896
1896
  }
@@ -1943,13 +1943,13 @@ function Ir(t) {
1943
1943
  I(e, n, i), r = !0;
1944
1944
  },
1945
1945
  p(n, [i]) {
1946
- const s = {};
1946
+ const o = {};
1947
1947
  i & /*brandingInfo*/
1948
- 1 && (s.brandingInfo = /*brandingInfo*/
1948
+ 1 && (o.brandingInfo = /*brandingInfo*/
1949
1949
  n[0]), i & /*onContinue*/
1950
- 4 && (s.onContinue = /*onContinue*/
1950
+ 4 && (o.onContinue = /*onContinue*/
1951
1951
  n[2]), i & /*$$scope, supportEmail*/
1952
- 34 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
1952
+ 34 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
1953
1953
  },
1954
1954
  i(n) {
1955
1955
  r || (u(e.$$.fragment, n), r = !0);
@@ -1963,7 +1963,7 @@ function Ir(t) {
1963
1963
  };
1964
1964
  }
1965
1965
  function br(t, e, r) {
1966
- let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: s = null } = e, { onContinue: o } = e;
1966
+ let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
1967
1967
  Se(() => {
1968
1968
  V.errorLog(`Displayed error: ${S[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
1969
1969
  });
@@ -1985,8 +1985,8 @@ function br(t, e, r) {
1985
1985
  return i.message;
1986
1986
  }
1987
1987
  return t.$$set = (c) => {
1988
- "brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, s = c.supportEmail), "onContinue" in c && r(2, o = c.onContinue);
1989
- }, [n, s, o, l, i];
1988
+ "brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, o = c.supportEmail), "onContinue" in c && r(2, s = c.onContinue);
1989
+ }, [n, o, s, l, i];
1990
1990
  }
1991
1991
  class wr extends U {
1992
1992
  constructor(e) {
@@ -2087,13 +2087,13 @@ function Qr(t) {
2087
2087
  I(e, n, i), r = !0;
2088
2088
  },
2089
2089
  p(n, [i]) {
2090
- const s = {};
2090
+ const o = {};
2091
2091
  i & /*brandingInfo*/
2092
- 1 && (s.brandingInfo = /*brandingInfo*/
2092
+ 1 && (o.brandingInfo = /*brandingInfo*/
2093
2093
  n[0]), i & /*onContinue*/
2094
- 2 && (s.onContinue = /*onContinue*/
2094
+ 2 && (o.onContinue = /*onContinue*/
2095
2095
  n[1]), i & /*$$scope*/
2096
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2096
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2097
2097
  },
2098
2098
  i(n) {
2099
2099
  r || (u(e.$$.fragment, n), r = !0);
@@ -2108,8 +2108,8 @@ function Qr(t) {
2108
2108
  }
2109
2109
  function Mr(t, e, r) {
2110
2110
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
2111
- return t.$$set = (s) => {
2112
- "brandingInfo" in s && r(0, n = s.brandingInfo), "onContinue" in s && r(1, i = s.onContinue);
2111
+ return t.$$set = (o) => {
2112
+ "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2113
2113
  }, [n, i];
2114
2114
  }
2115
2115
  class Cr extends U {
@@ -2118,8 +2118,8 @@ class Cr extends U {
2118
2118
  }
2119
2119
  }
2120
2120
  function Pr(t, e, r, n, i = {}) {
2121
- const s = r.create(e, i);
2122
- return s.mount(t), s.on("change", (o) => n("change", o)), s.on("ready", (o) => n("ready", o)), s.on("focus", (o) => n("focus", o)), s.on("blur", (o) => n("blur", o)), s.on("escape", (o) => n("escape", o)), s.on("click", (o) => n("click", o)), s.on("loaderror", (o) => n("loaderror", o)), s.on("loaderstart", (o) => n("loaderstart", o)), s.on("networkschange", (o) => n("networkschange", o)), s;
2121
+ const o = r.create(e, i);
2122
+ return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
2123
2123
  }
2124
2124
  const Tr = typeof window > "u";
2125
2125
  function Rr(t) {
@@ -2148,9 +2148,9 @@ function Ur(t) {
2148
2148
  }
2149
2149
  function Nr(t, e, r) {
2150
2150
  let n, i;
2151
- const s = rn(), { elements: o } = on("stripe");
2151
+ const o = rn(), { elements: s } = sn("stripe");
2152
2152
  let { options: l = void 0 } = e;
2153
- Se(() => (n = Pr(i, "payment", o, s, l), () => n.destroy()));
2153
+ Se(() => (n = Pr(i, "payment", s, o, l), () => n.destroy()));
2154
2154
  function c() {
2155
2155
  n.blur();
2156
2156
  }
@@ -2195,7 +2195,7 @@ class Sr extends U {
2195
2195
  return this.$$.ctx[5];
2196
2196
  }
2197
2197
  }
2198
- function ot(t) {
2198
+ function st(t) {
2199
2199
  let e;
2200
2200
  const r = (
2201
2201
  /*#slots*/
@@ -2211,12 +2211,12 @@ function ot(t) {
2211
2211
  c() {
2212
2212
  n && n.c();
2213
2213
  },
2214
- m(i, s) {
2215
- n && n.m(i, s), e = !0;
2214
+ m(i, o) {
2215
+ n && n.m(i, o), e = !0;
2216
2216
  },
2217
- p(i, s) {
2218
- n && n.p && (!e || s & /*$$scope*/
2219
- 16384) && q(
2217
+ p(i, o) {
2218
+ n && n.p && (!e || o & /*$$scope*/
2219
+ 16384) && K(
2220
2220
  n,
2221
2221
  r,
2222
2222
  i,
@@ -2226,9 +2226,9 @@ function ot(t) {
2226
2226
  r,
2227
2227
  /*$$scope*/
2228
2228
  i[14],
2229
- s,
2229
+ o,
2230
2230
  null
2231
- ) : K(
2231
+ ) : q(
2232
2232
  /*$$scope*/
2233
2233
  i[14]
2234
2234
  ),
@@ -2250,20 +2250,20 @@ function Or(t) {
2250
2250
  let e, r, n = (
2251
2251
  /*stripe*/
2252
2252
  t[1] && /*elements*/
2253
- t[0] && ot(t)
2253
+ t[0] && st(t)
2254
2254
  );
2255
2255
  return {
2256
2256
  c() {
2257
2257
  n && n.c(), e = Z();
2258
2258
  },
2259
- m(i, s) {
2260
- n && n.m(i, s), p(i, e, s), r = !0;
2259
+ m(i, o) {
2260
+ n && n.m(i, o), p(i, e, o), r = !0;
2261
2261
  },
2262
- p(i, [s]) {
2262
+ p(i, [o]) {
2263
2263
  /*stripe*/
2264
2264
  i[1] && /*elements*/
2265
- i[0] ? n ? (n.p(i, s), s & /*stripe, elements*/
2266
- 3 && u(n, 1)) : (n = ot(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
2265
+ i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2266
+ 3 && u(n, 1)) : (n = st(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
2267
2267
  n = null;
2268
2268
  }), x());
2269
2269
  },
@@ -2279,13 +2279,13 @@ function Or(t) {
2279
2279
  };
2280
2280
  }
2281
2281
  function Lr(t, e, r) {
2282
- let n, { $$slots: i = {}, $$scope: s } = e, { stripe: o } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: _ = "auto" } = e, { currency: M = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: F = null } = e;
2282
+ let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: _ = "auto" } = e, { currency: M = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: F = null } = e;
2283
2283
  return t.$$set = ($) => {
2284
- "stripe" in $ && r(1, o = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, _ = $.locale), "currency" in $ && r(10, M = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, y = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, s = $.$$scope);
2284
+ "stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, _ = $.locale), "currency" in $ && r(10, M = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, y = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, o = $.$$scope);
2285
2285
  }, t.$$.update = () => {
2286
2286
  t.$$.dirty & /*theme, variables, rules, labels*/
2287
2287
  120 && r(13, n = { theme: c, variables: a, rules: f, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2288
- 16263 && o && !F && (r(0, F = o.elements({
2288
+ 16263 && s && !F && (r(0, F = s.elements({
2289
2289
  mode: l,
2290
2290
  currency: M,
2291
2291
  amount: h,
@@ -2294,11 +2294,11 @@ function Lr(t, e, r) {
2294
2294
  fonts: v,
2295
2295
  loader: E,
2296
2296
  locale: _
2297
- })), Rr(o), sn("stripe", { stripe: o, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2297
+ })), Rr(s), on("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2298
2298
  8705 && F && F.update({ appearance: n, locale: _ });
2299
2299
  }, [
2300
2300
  F,
2301
- o,
2301
+ s,
2302
2302
  l,
2303
2303
  c,
2304
2304
  a,
@@ -2311,7 +2311,7 @@ function Lr(t, e, r) {
2311
2311
  h,
2312
2312
  y,
2313
2313
  n,
2314
- s,
2314
+ o,
2315
2315
  i
2316
2316
  ];
2317
2317
  }
@@ -2358,11 +2358,11 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2358
2358
  return function() {
2359
2359
  e(new Error("Failed to load Stripe.js"));
2360
2360
  };
2361
- }, qr = function(e, r) {
2361
+ }, Kr = function(e, r) {
2362
2362
  return function() {
2363
2363
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2364
2364
  };
2365
- }, Kr = function(e) {
2365
+ }, qr = function(e) {
2366
2366
  return me !== null ? me : (me = new Promise(function(r, n) {
2367
2367
  if (typeof window > "u" || typeof document > "u") {
2368
2368
  r(null);
@@ -2379,12 +2379,12 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2379
2379
  else if (!i)
2380
2380
  i = ct(e);
2381
2381
  else if (i && Qe !== null && De !== null) {
2382
- var s;
2383
- i.removeEventListener("load", Qe), i.removeEventListener("error", De), (s = i.parentNode) === null || s === void 0 || s.removeChild(i), i = ct(e);
2382
+ var o;
2383
+ i.removeEventListener("load", Qe), i.removeEventListener("error", De), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = ct(e);
2384
2384
  }
2385
- Qe = qr(r, n), De = Hr(n), i.addEventListener("load", Qe), i.addEventListener("error", De);
2386
- } catch (o) {
2387
- n(o);
2385
+ Qe = Kr(r, n), De = Hr(n), i.addEventListener("load", Qe), i.addEventListener("error", De);
2386
+ } catch (s) {
2387
+ n(s);
2388
2388
  return;
2389
2389
  }
2390
2390
  }), me.catch(function(r) {
@@ -2396,7 +2396,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2396
2396
  var i = e.apply(void 0, r);
2397
2397
  return Yr(i, n), i;
2398
2398
  }, ge, Ct = !1, Pt = function() {
2399
- return ge || (ge = Kr(null).catch(function(e) {
2399
+ return ge || (ge = qr(null).catch(function(e) {
2400
2400
  return ge = null, Promise.reject(e);
2401
2401
  }), ge);
2402
2402
  };
@@ -2410,8 +2410,8 @@ var Jr = function() {
2410
2410
  r[n] = arguments[n];
2411
2411
  Ct = !0;
2412
2412
  var i = Date.now();
2413
- return Pt().then(function(s) {
2414
- return jr(s, r, i);
2413
+ return Pt().then(function(o) {
2414
+ return jr(o, r, i);
2415
2415
  });
2416
2416
  };
2417
2417
  function Vr(t) {
@@ -2433,38 +2433,38 @@ function Wr(t) {
2433
2433
  c() {
2434
2434
  e = k("div"), i && i.c(), A(e, "class", "rcb-header-layout svelte-1xe711j");
2435
2435
  },
2436
- m(s, o) {
2437
- p(s, e, o), i && i.m(e, null), r = !0;
2436
+ m(o, s) {
2437
+ p(o, e, s), i && i.m(e, null), r = !0;
2438
2438
  },
2439
- p(s, o) {
2440
- i && i.p && (!r || o & /*$$scope*/
2441
- 2) && q(
2439
+ p(o, s) {
2440
+ i && i.p && (!r || s & /*$$scope*/
2441
+ 2) && K(
2442
2442
  i,
2443
2443
  n,
2444
- s,
2444
+ o,
2445
2445
  /*$$scope*/
2446
- s[1],
2446
+ o[1],
2447
2447
  r ? H(
2448
2448
  n,
2449
2449
  /*$$scope*/
2450
- s[1],
2451
- o,
2450
+ o[1],
2451
+ s,
2452
2452
  null
2453
- ) : K(
2453
+ ) : q(
2454
2454
  /*$$scope*/
2455
- s[1]
2455
+ o[1]
2456
2456
  ),
2457
2457
  null
2458
2458
  );
2459
2459
  },
2460
- i(s) {
2461
- r || (u(i, s), r = !0);
2460
+ i(o) {
2461
+ r || (u(i, o), r = !0);
2462
2462
  },
2463
- o(s) {
2464
- m(i, s), r = !1;
2463
+ o(o) {
2464
+ m(i, o), r = !1;
2465
2465
  },
2466
- d(s) {
2467
- s && g(e), i && i.d(s);
2466
+ d(o) {
2467
+ o && g(e), i && i.d(o);
2468
2468
  }
2469
2469
  };
2470
2470
  }
@@ -2484,9 +2484,9 @@ function zr(t) {
2484
2484
  I(e, n, i), r = !0;
2485
2485
  },
2486
2486
  p(n, [i]) {
2487
- const s = {};
2487
+ const o = {};
2488
2488
  i & /*$$scope*/
2489
- 2 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2489
+ 2 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2490
2490
  },
2491
2491
  i(n) {
2492
2492
  r || (u(e.$$.fragment, n), r = !0);
@@ -2501,8 +2501,8 @@ function zr(t) {
2501
2501
  }
2502
2502
  function Xr(t, e, r) {
2503
2503
  let { $$slots: n = {}, $$scope: i } = e;
2504
- return t.$$set = (s) => {
2505
- "$$scope" in s && r(1, i = s.$$scope);
2504
+ return t.$$set = (o) => {
2505
+ "$$scope" in o && r(1, i = o.$$scope);
2506
2506
  }, [n, i];
2507
2507
  }
2508
2508
  class Ve extends U {
@@ -2575,7 +2575,7 @@ class Tt extends U {
2575
2575
  function ii(t) {
2576
2576
  O(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2577
2577
  }
2578
- function si(t) {
2578
+ function oi(t) {
2579
2579
  let e, r;
2580
2580
  return e = new je({}), {
2581
2581
  c() {
@@ -2596,8 +2596,8 @@ function si(t) {
2596
2596
  }
2597
2597
  };
2598
2598
  }
2599
- function oi(t) {
2600
- let e, r, n, i, s, o;
2599
+ function si(t) {
2600
+ let e, r, n, i, o, s;
2601
2601
  function l(a) {
2602
2602
  t[9](a);
2603
2603
  }
@@ -2648,10 +2648,10 @@ function oi(t) {
2648
2648
  e = k("form"), w(r.$$.fragment);
2649
2649
  },
2650
2650
  m(a, f) {
2651
- p(a, e, f), I(r, e, null), i = !0, s || (o = ke(e, "submit", kt(
2651
+ p(a, e, f), I(r, e, null), i = !0, o || (s = ke(e, "submit", kt(
2652
2652
  /*handleContinue*/
2653
2653
  t[5]
2654
- )), s = !0);
2654
+ )), o = !0);
2655
2655
  },
2656
2656
  p(a, f) {
2657
2657
  const d = {};
@@ -2669,7 +2669,7 @@ function oi(t) {
2669
2669
  m(r.$$.fragment, a), i = !1;
2670
2670
  },
2671
2671
  d(a) {
2672
- a && g(e), b(r), s = !1, o();
2672
+ a && g(e), b(r), o = !1, s();
2673
2673
  }
2674
2674
  }
2675
2675
  );
@@ -2680,18 +2680,18 @@ function li(t) {
2680
2680
  c() {
2681
2681
  e = k("div"), e.textContent = "Secure Checkout", r = T(), w(n.$$.fragment);
2682
2682
  },
2683
- m(s, o) {
2684
- p(s, e, o), p(s, r, o), I(n, s, o), i = !0;
2683
+ m(o, s) {
2684
+ p(o, e, s), p(o, r, s), I(n, o, s), i = !0;
2685
2685
  },
2686
2686
  p: B,
2687
- i(s) {
2688
- i || (u(n.$$.fragment, s), i = !0);
2687
+ i(o) {
2688
+ i || (u(n.$$.fragment, o), i = !0);
2689
2689
  },
2690
- o(s) {
2691
- m(n.$$.fragment, s), i = !1;
2690
+ o(o) {
2691
+ m(n.$$.fragment, o), i = !1;
2692
2692
  },
2693
- d(s) {
2694
- s && (g(e), g(r)), b(n, s);
2693
+ d(o) {
2694
+ o && (g(e), g(r)), b(n, o);
2695
2695
  }
2696
2696
  };
2697
2697
  }
@@ -2701,8 +2701,8 @@ function ci(t) {
2701
2701
  c() {
2702
2702
  e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
2703
2703
  },
2704
- m(i, s) {
2705
- p(i, e, s), I(r, e, null), n = !0;
2704
+ m(i, o) {
2705
+ p(i, e, o), I(r, e, null), n = !0;
2706
2706
  },
2707
2707
  p: B,
2708
2708
  i(i) {
@@ -2754,25 +2754,25 @@ function ui(t) {
2754
2754
  }
2755
2755
  function fi(t) {
2756
2756
  let e, r, n, i;
2757
- const s = [ui, ai], o = [];
2757
+ const o = [ui, ai], s = [];
2758
2758
  function l(c, a) {
2759
2759
  return (
2760
2760
  /*processing*/
2761
2761
  c[0] ? 0 : 1
2762
2762
  );
2763
2763
  }
2764
- return e = l(t), r = o[e] = s[e](t), {
2764
+ return e = l(t), r = s[e] = o[e](t), {
2765
2765
  c() {
2766
2766
  r.c(), n = Z();
2767
2767
  },
2768
2768
  m(c, a) {
2769
- o[e].m(c, a), p(c, n, a), i = !0;
2769
+ s[e].m(c, a), p(c, n, a), i = !0;
2770
2770
  },
2771
2771
  p(c, a) {
2772
2772
  let f = e;
2773
- e = l(c), e !== f && (L(), m(o[f], 1, 1, () => {
2774
- o[f] = null;
2775
- }), x(), r = o[e], r || (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
2773
+ e = l(c), e !== f && (L(), m(s[f], 1, 1, () => {
2774
+ s[f] = null;
2775
+ }), x(), r = s[e], r || (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
2776
2776
  },
2777
2777
  i(c) {
2778
2778
  i || (u(r), i = !0);
@@ -2781,7 +2781,7 @@ function fi(t) {
2781
2781
  m(r), i = !1;
2782
2782
  },
2783
2783
  d(c) {
2784
- c && g(n), o[e].d(c);
2784
+ c && g(n), s[e].d(c);
2785
2785
  }
2786
2786
  };
2787
2787
  }
@@ -2829,30 +2829,30 @@ function mi(t) {
2829
2829
  c() {
2830
2830
  w(e.$$.fragment), r = T(), w(n.$$.fragment);
2831
2831
  },
2832
- m(s, o) {
2833
- I(e, s, o), p(s, r, o), I(n, s, o), i = !0;
2832
+ m(o, s) {
2833
+ I(e, o, s), p(o, r, s), I(n, o, s), i = !0;
2834
2834
  },
2835
- p(s, o) {
2836
- t = s;
2835
+ p(o, s) {
2836
+ t = o;
2837
2837
  const l = {};
2838
- o & /*processing*/
2838
+ s & /*processing*/
2839
2839
  1 && (l.disabled = /*processing*/
2840
- t[0]), o & /*$$scope, processing*/
2841
- 2049 && (l.$$scope = { dirty: o, ctx: t }), e.$set(l);
2840
+ t[0]), s & /*$$scope, processing*/
2841
+ 2049 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
2842
2842
  const c = {};
2843
- o & /*processing*/
2843
+ s & /*processing*/
2844
2844
  1 && (c.disabled = /*processing*/
2845
- t[0]), o & /*$$scope*/
2846
- 2048 && (c.$$scope = { dirty: o, ctx: t }), n.$set(c);
2845
+ t[0]), s & /*$$scope*/
2846
+ 2048 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
2847
2847
  },
2848
- i(s) {
2849
- i || (u(e.$$.fragment, s), u(n.$$.fragment, s), i = !0);
2848
+ i(o) {
2849
+ i || (u(e.$$.fragment, o), u(n.$$.fragment, o), i = !0);
2850
2850
  },
2851
- o(s) {
2852
- m(e.$$.fragment, s), m(n.$$.fragment, s), i = !1;
2851
+ o(o) {
2852
+ m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
2853
2853
  },
2854
- d(s) {
2855
- s && g(r), b(e, s), b(n, s);
2854
+ d(o) {
2855
+ o && g(r), b(e, o), b(n, o);
2856
2856
  }
2857
2857
  };
2858
2858
  }
@@ -2871,9 +2871,9 @@ function gi(t) {
2871
2871
  I(e, n, i), r = !0;
2872
2872
  },
2873
2873
  p(n, i) {
2874
- const s = {};
2874
+ const o = {};
2875
2875
  i & /*$$scope, processing, onClose*/
2876
- 2051 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
2876
+ 2051 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
2877
2877
  },
2878
2878
  i(n) {
2879
2879
  r || (u(e.$$.fragment, n), r = !0);
@@ -2887,7 +2887,7 @@ function gi(t) {
2887
2887
  };
2888
2888
  }
2889
2889
  function pi(t) {
2890
- let e, r, n, i, s, o;
2890
+ let e, r, n, i, o, s;
2891
2891
  return e = new Ve({
2892
2892
  props: {
2893
2893
  $$slots: { default: [li] },
@@ -2898,17 +2898,17 @@ function pi(t) {
2898
2898
  $$slots: { default: [ci] },
2899
2899
  $$scope: { ctx: t }
2900
2900
  }
2901
- }), s = new Je({
2901
+ }), o = new Je({
2902
2902
  props: {
2903
2903
  $$slots: { default: [gi] },
2904
2904
  $$scope: { ctx: t }
2905
2905
  }
2906
2906
  }), {
2907
2907
  c() {
2908
- w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(s.$$.fragment);
2908
+ w(e.$$.fragment), r = T(), w(n.$$.fragment), i = T(), w(o.$$.fragment);
2909
2909
  },
2910
2910
  m(l, c) {
2911
- I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(s, l, c), o = !0;
2911
+ I(e, l, c), p(l, r, c), I(n, l, c), p(l, i, c), I(o, l, c), s = !0;
2912
2912
  },
2913
2913
  p(l, c) {
2914
2914
  const a = {};
@@ -2919,22 +2919,22 @@ function pi(t) {
2919
2919
  2048 && (f.$$scope = { dirty: c, ctx: l }), n.$set(f);
2920
2920
  const d = {};
2921
2921
  c & /*$$scope, processing, onClose*/
2922
- 2051 && (d.$$scope = { dirty: c, ctx: l }), s.$set(d);
2922
+ 2051 && (d.$$scope = { dirty: c, ctx: l }), o.$set(d);
2923
2923
  },
2924
2924
  i(l) {
2925
- o || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(s.$$.fragment, l), o = !0);
2925
+ s || (u(e.$$.fragment, l), u(n.$$.fragment, l), u(o.$$.fragment, l), s = !0);
2926
2926
  },
2927
2927
  o(l) {
2928
- m(e.$$.fragment, l), m(n.$$.fragment, l), m(s.$$.fragment, l), o = !1;
2928
+ m(e.$$.fragment, l), m(n.$$.fragment, l), m(o.$$.fragment, l), s = !1;
2929
2929
  },
2930
2930
  d(l) {
2931
- l && (g(r), g(i)), b(e, l), b(n, l), b(s, l);
2931
+ l && (g(r), g(i)), b(e, l), b(n, l), b(o, l);
2932
2932
  }
2933
2933
  };
2934
2934
  }
2935
2935
  function Ai(t) {
2936
2936
  let e, r, n, i;
2937
- const s = [oi, si], o = [];
2937
+ const o = [si, oi], s = [];
2938
2938
  function l(c, a) {
2939
2939
  return (
2940
2940
  /*stripe*/
@@ -2942,18 +2942,18 @@ function Ai(t) {
2942
2942
  c[4] ? 0 : 1
2943
2943
  );
2944
2944
  }
2945
- return r = l(t), n = o[r] = s[r](t), {
2945
+ return r = l(t), n = s[r] = o[r](t), {
2946
2946
  c() {
2947
2947
  e = k("div"), n.c();
2948
2948
  },
2949
2949
  m(c, a) {
2950
- p(c, e, a), o[r].m(e, null), i = !0;
2950
+ p(c, e, a), s[r].m(e, null), i = !0;
2951
2951
  },
2952
2952
  p(c, [a]) {
2953
2953
  let f = r;
2954
- r = l(c), r === f ? o[r].p(c, a) : (L(), m(o[f], 1, 1, () => {
2955
- o[f] = null;
2956
- }), x(), n = o[r], n ? n.p(c, a) : (n = o[r] = s[r](c), n.c()), u(n, 1), n.m(e, null));
2954
+ r = l(c), r === f ? s[r].p(c, a) : (L(), m(s[f], 1, 1, () => {
2955
+ s[f] = null;
2956
+ }), x(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), u(n, 1), n.m(e, null));
2957
2957
  },
2958
2958
  i(c) {
2959
2959
  i || (u(n), i = !0);
@@ -2962,16 +2962,16 @@ function Ai(t) {
2962
2962
  m(n), i = !1;
2963
2963
  },
2964
2964
  d(c) {
2965
- c && g(e), o[r].d();
2965
+ c && g(e), s[r].d();
2966
2966
  }
2967
2967
  };
2968
2968
  }
2969
2969
  function _i(t, e, r) {
2970
- let { onClose: n } = e, { onContinue: i } = e, { onError: s } = e, { paymentInfoCollectionMetadata: o } = e, { processing: l = !1 } = e;
2971
- const c = o.data.client_secret;
2970
+ let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
2971
+ const c = s.data.client_secret;
2972
2972
  let a = null, f, d;
2973
2973
  Se(async () => {
2974
- const _ = o.data.publishable_api_key, M = o.data.stripe_account_id;
2974
+ const _ = s.data.publishable_api_key, M = s.data.stripe_account_id;
2975
2975
  if (!_ || !M)
2976
2976
  throw new Error("Stripe publishable key or account ID not found");
2977
2977
  r(3, a = await Jr(_, { stripeAccount: M }));
@@ -2984,13 +2984,13 @@ function _i(t, e, r) {
2984
2984
  elements: d,
2985
2985
  redirect: "if_required"
2986
2986
  });
2987
- _.error ? (r(0, l = !1), s(new G(S.StripeError, _.error.message))) : i();
2987
+ _.error ? (r(0, l = !1), o(new G(S.StripeError, _.error.message))) : i();
2988
2988
  };
2989
2989
  function v(_) {
2990
2990
  f = _, r(2, f);
2991
2991
  }
2992
2992
  return t.$$set = (_) => {
2993
- "onClose" in _ && r(1, n = _.onClose), "onContinue" in _ && r(6, i = _.onContinue), "onError" in _ && r(7, s = _.onError), "paymentInfoCollectionMetadata" in _ && r(8, o = _.paymentInfoCollectionMetadata), "processing" in _ && r(0, l = _.processing);
2993
+ "onClose" in _ && r(1, n = _.onClose), "onContinue" in _ && r(6, i = _.onContinue), "onError" in _ && r(7, o = _.onError), "paymentInfoCollectionMetadata" in _ && r(8, s = _.paymentInfoCollectionMetadata), "processing" in _ && r(0, l = _.processing);
2994
2994
  }, t.$$.update = () => {
2995
2995
  t.$$.dirty & /*elements*/
2996
2996
  4 && f && f._elements.length > 0 && (d = f);
@@ -3002,8 +3002,8 @@ function _i(t, e, r) {
3002
3002
  c,
3003
3003
  E,
3004
3004
  i,
3005
- s,
3006
3005
  o,
3006
+ s,
3007
3007
  v
3008
3008
  ];
3009
3009
  }
@@ -3053,7 +3053,7 @@ function at(t) {
3053
3053
  ), A(e, "class", "form-error svelte-favd20");
3054
3054
  },
3055
3055
  m(n, i) {
3056
- p(n, e, i), Q(e, r);
3056
+ p(n, e, i), D(e, r);
3057
3057
  },
3058
3058
  p(n, i) {
3059
3059
  i & /*error*/
@@ -3069,22 +3069,22 @@ function at(t) {
3069
3069
  };
3070
3070
  }
3071
3071
  function bi(t) {
3072
- let e, r, n, i, s, o, l, c, a, f = (
3072
+ let e, r, n, i, o, s, l, c, a, f = (
3073
3073
  /*error*/
3074
3074
  t[2] && at(t)
3075
3075
  );
3076
3076
  return {
3077
3077
  c() {
3078
- e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), s = k("input"), l = T(), f && f.c(), A(r, "class", "form-label svelte-favd20"), A(s, "name", "email"), A(s, "placeholder", "john@appleseed.com"), A(s, "autocapitalize", "off"), A(s, "class", "svelte-favd20"), A(i, "class", o = "form-input " + /*inputClass*/
3078
+ e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), o = k("input"), l = T(), f && f.c(), A(r, "class", "form-label svelte-favd20"), A(o, "name", "email"), A(o, "placeholder", "john@appleseed.com"), A(o, "autocapitalize", "off"), A(o, "class", "svelte-favd20"), A(i, "class", s = "form-input " + /*inputClass*/
3079
3079
  t[4] + " svelte-favd20"), A(e, "class", "form-container svelte-favd20");
3080
3080
  },
3081
3081
  m(d, E) {
3082
- p(d, e, E), Q(e, r), Q(e, n), Q(e, i), Q(i, s), et(
3083
- s,
3082
+ p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o), et(
3083
+ o,
3084
3084
  /*email*/
3085
3085
  t[3]
3086
- ), Q(e, l), f && f.m(e, null), c || (a = ke(
3087
- s,
3086
+ ), D(e, l), f && f.m(e, null), c || (a = ke(
3087
+ o,
3088
3088
  "input",
3089
3089
  /*input_input_handler*/
3090
3090
  t[7]
@@ -3092,14 +3092,14 @@ function bi(t) {
3092
3092
  },
3093
3093
  p(d, E) {
3094
3094
  E & /*email*/
3095
- 8 && s.value !== /*email*/
3095
+ 8 && o.value !== /*email*/
3096
3096
  d[3] && et(
3097
- s,
3097
+ o,
3098
3098
  /*email*/
3099
3099
  d[3]
3100
3100
  ), E & /*inputClass*/
3101
- 16 && o !== (o = "form-input " + /*inputClass*/
3102
- d[4] + " svelte-favd20") && A(i, "class", o), /*error*/
3101
+ 16 && s !== (s = "form-input " + /*inputClass*/
3102
+ d[4] + " svelte-favd20") && A(i, "class", s), /*error*/
3103
3103
  d[2] ? f ? f.p(d, E) : (f = at(d), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
3104
3104
  },
3105
3105
  d(d) {
@@ -3145,25 +3145,25 @@ function ki(t) {
3145
3145
  }
3146
3146
  function $i(t) {
3147
3147
  let e, r, n, i;
3148
- const s = [ki, wi], o = [];
3148
+ const o = [ki, wi], s = [];
3149
3149
  function l(c, a) {
3150
3150
  return (
3151
3151
  /*processing*/
3152
3152
  c[1] ? 0 : 1
3153
3153
  );
3154
3154
  }
3155
- return e = l(t), r = o[e] = s[e](t), {
3155
+ return e = l(t), r = s[e] = o[e](t), {
3156
3156
  c() {
3157
3157
  r.c(), n = Z();
3158
3158
  },
3159
3159
  m(c, a) {
3160
- o[e].m(c, a), p(c, n, a), i = !0;
3160
+ s[e].m(c, a), p(c, n, a), i = !0;
3161
3161
  },
3162
3162
  p(c, a) {
3163
3163
  let f = e;
3164
- e = l(c), e !== f && (L(), m(o[f], 1, 1, () => {
3165
- o[f] = null;
3166
- }), x(), r = o[e], r || (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3164
+ e = l(c), e !== f && (L(), m(s[f], 1, 1, () => {
3165
+ s[f] = null;
3166
+ }), x(), r = s[e], r || (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3167
3167
  },
3168
3168
  i(c) {
3169
3169
  i || (u(r), i = !0);
@@ -3172,7 +3172,7 @@ function $i(t) {
3172
3172
  m(r), i = !1;
3173
3173
  },
3174
3174
  d(c) {
3175
- c && g(n), o[e].d(c);
3175
+ c && g(n), s[e].d(c);
3176
3176
  }
3177
3177
  };
3178
3178
  }
@@ -3220,30 +3220,30 @@ function Bi(t) {
3220
3220
  c() {
3221
3221
  w(e.$$.fragment), r = T(), w(n.$$.fragment);
3222
3222
  },
3223
- m(s, o) {
3224
- I(e, s, o), p(s, r, o), I(n, s, o), i = !0;
3223
+ m(o, s) {
3224
+ I(e, o, s), p(o, r, s), I(n, o, s), i = !0;
3225
3225
  },
3226
- p(s, o) {
3227
- t = s;
3226
+ p(o, s) {
3227
+ t = o;
3228
3228
  const l = {};
3229
- o & /*processing*/
3229
+ s & /*processing*/
3230
3230
  2 && (l.disabled = /*processing*/
3231
- t[1]), o & /*$$scope, processing*/
3232
- 258 && (l.$$scope = { dirty: o, ctx: t }), e.$set(l);
3231
+ t[1]), s & /*$$scope, processing*/
3232
+ 258 && (l.$$scope = { dirty: s, ctx: t }), e.$set(l);
3233
3233
  const c = {};
3234
- o & /*processing*/
3234
+ s & /*processing*/
3235
3235
  2 && (c.disabled = /*processing*/
3236
- t[1]), o & /*$$scope*/
3237
- 256 && (c.$$scope = { dirty: o, ctx: t }), n.$set(c);
3236
+ t[1]), s & /*$$scope*/
3237
+ 256 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
3238
3238
  },
3239
- i(s) {
3240
- i || (u(e.$$.fragment, s), u(n.$$.fragment, s), i = !0);
3239
+ i(o) {
3240
+ i || (u(e.$$.fragment, o), u(n.$$.fragment, o), i = !0);
3241
3241
  },
3242
- o(s) {
3243
- m(e.$$.fragment, s), m(n.$$.fragment, s), i = !1;
3242
+ o(o) {
3243
+ m(e.$$.fragment, o), m(n.$$.fragment, o), i = !1;
3244
3244
  },
3245
- d(s) {
3246
- s && g(r), b(e, s), b(n, s);
3245
+ d(o) {
3246
+ o && g(r), b(e, o), b(n, o);
3247
3247
  }
3248
3248
  };
3249
3249
  }
@@ -3262,9 +3262,9 @@ function yi(t) {
3262
3262
  I(e, n, i), r = !0;
3263
3263
  },
3264
3264
  p(n, i) {
3265
- const s = {};
3265
+ const o = {};
3266
3266
  i & /*$$scope, processing, onClose*/
3267
- 259 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3267
+ 259 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3268
3268
  },
3269
3269
  i(n) {
3270
3270
  r || (u(e.$$.fragment, n), r = !0);
@@ -3278,7 +3278,7 @@ function yi(t) {
3278
3278
  };
3279
3279
  }
3280
3280
  function Di(t) {
3281
- let e, r, n, i, s, o, l, c, a;
3281
+ let e, r, n, i, o, s, l, c, a;
3282
3282
  return r = new Ve({
3283
3283
  props: {
3284
3284
  $$slots: { default: [Ii] },
@@ -3289,17 +3289,17 @@ function Di(t) {
3289
3289
  $$slots: { default: [bi] },
3290
3290
  $$scope: { ctx: t }
3291
3291
  }
3292
- }), o = new Je({
3292
+ }), s = new Je({
3293
3293
  props: {
3294
3294
  $$slots: { default: [yi] },
3295
3295
  $$scope: { ctx: t }
3296
3296
  }
3297
3297
  }), {
3298
3298
  c() {
3299
- e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), s = T(), w(o.$$.fragment), A(e, "class", "svelte-favd20");
3299
+ e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), A(e, "class", "svelte-favd20");
3300
3300
  },
3301
3301
  m(f, d) {
3302
- p(f, e, d), I(r, e, null), Q(e, n), I(i, e, null), Q(e, s), I(o, e, null), l = !0, c || (a = ke(e, "submit", kt(
3302
+ p(f, e, d), I(r, e, null), D(e, n), I(i, e, null), D(e, o), I(s, e, null), l = !0, c || (a = ke(e, "submit", kt(
3303
3303
  /*handleContinue*/
3304
3304
  t[5]
3305
3305
  )), c = !0);
@@ -3313,40 +3313,40 @@ function Di(t) {
3313
3313
  284 && (v.$$scope = { dirty: d, ctx: f }), i.$set(v);
3314
3314
  const _ = {};
3315
3315
  d & /*$$scope, processing, onClose*/
3316
- 259 && (_.$$scope = { dirty: d, ctx: f }), o.$set(_);
3316
+ 259 && (_.$$scope = { dirty: d, ctx: f }), s.$set(_);
3317
3317
  },
3318
3318
  i(f) {
3319
- l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(o.$$.fragment, f), l = !0);
3319
+ l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(s.$$.fragment, f), l = !0);
3320
3320
  },
3321
3321
  o(f) {
3322
- m(r.$$.fragment, f), m(i.$$.fragment, f), m(o.$$.fragment, f), l = !1;
3322
+ m(r.$$.fragment, f), m(i.$$.fragment, f), m(s.$$.fragment, f), l = !1;
3323
3323
  },
3324
3324
  d(f) {
3325
- f && g(e), b(r), b(i), b(o), c = !1, a();
3325
+ f && g(e), b(r), b(i), b(s), c = !1, a();
3326
3326
  }
3327
3327
  };
3328
3328
  }
3329
3329
  function Qi(t, e, r) {
3330
- let n, i, s, { onContinue: o } = e, { onClose: l } = e, { processing: c } = e;
3330
+ let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
3331
3331
  const a = async () => {
3332
- n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : o({ email: n });
3332
+ n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : s({ email: n });
3333
3333
  };
3334
3334
  function f() {
3335
3335
  n = this.value, r(3, n);
3336
3336
  }
3337
3337
  return t.$$set = (d) => {
3338
- "onContinue" in d && r(6, o = d.onContinue), "onClose" in d && r(0, l = d.onClose), "processing" in d && r(1, c = d.processing);
3338
+ "onContinue" in d && r(6, s = d.onContinue), "onClose" in d && r(0, l = d.onClose), "processing" in d && r(1, c = d.processing);
3339
3339
  }, t.$$.update = () => {
3340
3340
  t.$$.dirty & /*error*/
3341
- 4 && r(4, s = i ? "error" : "");
3341
+ 4 && r(4, o = i ? "error" : "");
3342
3342
  }, r(3, n = ""), r(2, i = ""), [
3343
3343
  l,
3344
3344
  c,
3345
3345
  i,
3346
3346
  n,
3347
- s,
3348
- a,
3349
3347
  o,
3348
+ a,
3349
+ s,
3350
3350
  f
3351
3351
  ];
3352
3352
  }
@@ -3374,45 +3374,45 @@ function Pi(t) {
3374
3374
  c() {
3375
3375
  e = k("div"), i && i.c(), A(e, "class", "rcb-modal-backdrop svelte-17tslso");
3376
3376
  },
3377
- m(s, o) {
3378
- p(s, e, o), i && i.m(e, null), r = !0;
3377
+ m(o, s) {
3378
+ p(o, e, s), i && i.m(e, null), r = !0;
3379
3379
  },
3380
- p(s, [o]) {
3381
- i && i.p && (!r || o & /*$$scope*/
3382
- 1) && q(
3380
+ p(o, [s]) {
3381
+ i && i.p && (!r || s & /*$$scope*/
3382
+ 1) && K(
3383
3383
  i,
3384
3384
  n,
3385
- s,
3385
+ o,
3386
3386
  /*$$scope*/
3387
- s[0],
3387
+ o[0],
3388
3388
  r ? H(
3389
3389
  n,
3390
3390
  /*$$scope*/
3391
- s[0],
3392
- o,
3391
+ o[0],
3392
+ s,
3393
3393
  null
3394
- ) : K(
3394
+ ) : q(
3395
3395
  /*$$scope*/
3396
- s[0]
3396
+ o[0]
3397
3397
  ),
3398
3398
  null
3399
3399
  );
3400
3400
  },
3401
- i(s) {
3402
- r || (u(i, s), r = !0);
3401
+ i(o) {
3402
+ r || (u(i, o), r = !0);
3403
3403
  },
3404
- o(s) {
3405
- m(i, s), r = !1;
3404
+ o(o) {
3405
+ m(i, o), r = !1;
3406
3406
  },
3407
- d(s) {
3408
- s && g(e), i && i.d(s);
3407
+ d(o) {
3408
+ o && g(e), i && i.d(o);
3409
3409
  }
3410
3410
  };
3411
3411
  }
3412
3412
  function Ti(t, e, r) {
3413
3413
  let { $$slots: n = {}, $$scope: i } = e;
3414
- return t.$$set = (s) => {
3415
- "$$scope" in s && r(0, i = s.$$scope);
3414
+ return t.$$set = (o) => {
3415
+ "$$scope" in o && r(0, i = o.$$scope);
3416
3416
  }, [i, n];
3417
3417
  }
3418
3418
  class Ri extends U {
@@ -3421,15 +3421,15 @@ class Ri extends U {
3421
3421
  }
3422
3422
  }
3423
3423
  function Ui(t) {
3424
- O(t, "svelte-t8k92q", ".rcb-modal-main.svelte-t8k92q{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);max-width:640px;min-width:480px;min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-t8k92q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);max-width:480px;min-width:320px;min-height:0px}@media screen and (max-width: 960px){.rcb-modal-main.svelte-t8k92q,.rcb-modal-dark.svelte-t8k92q{min-width:300px;max-width:640px;width:calc(100% - 32px);padding:32px}}");
3424
+ O(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}}");
3425
3425
  }
3426
3426
  function Ni(t) {
3427
- let e, r, n;
3428
- const i = (
3427
+ let e, r, n, i;
3428
+ const o = (
3429
3429
  /*#slots*/
3430
3430
  t[2].default
3431
3431
  ), s = Y(
3432
- i,
3432
+ o,
3433
3433
  t,
3434
3434
  /*$$scope*/
3435
3435
  t[1],
@@ -3437,51 +3437,51 @@ function Ni(t) {
3437
3437
  );
3438
3438
  return {
3439
3439
  c() {
3440
- e = k("main"), s && s.c(), A(e, "class", r = Ee(`rcb-modal-main ${/*dark*/
3441
- t[0] ? "rcb-modal-dark" : ""}`) + " svelte-t8k92q");
3440
+ e = k("div"), r = k("main"), s && s.c(), A(r, "class", n = Ee(`rcb-modal-main ${/*dark*/
3441
+ t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), A(e, "class", "rcb-modal-container svelte-ioxu5d");
3442
3442
  },
3443
- m(o, l) {
3444
- p(o, e, l), s && s.m(e, null), n = !0;
3443
+ m(l, c) {
3444
+ p(l, e, c), D(e, r), s && s.m(r, null), i = !0;
3445
3445
  },
3446
- p(o, [l]) {
3447
- s && s.p && (!n || l & /*$$scope*/
3448
- 2) && q(
3446
+ p(l, [c]) {
3447
+ s && s.p && (!i || c & /*$$scope*/
3448
+ 2) && K(
3449
3449
  s,
3450
- i,
3451
3450
  o,
3451
+ l,
3452
3452
  /*$$scope*/
3453
- o[1],
3454
- n ? H(
3455
- i,
3453
+ l[1],
3454
+ i ? H(
3455
+ o,
3456
3456
  /*$$scope*/
3457
- o[1],
3458
- l,
3457
+ l[1],
3458
+ c,
3459
3459
  null
3460
- ) : K(
3460
+ ) : q(
3461
3461
  /*$$scope*/
3462
- o[1]
3462
+ l[1]
3463
3463
  ),
3464
3464
  null
3465
- ), (!n || l & /*dark*/
3466
- 1 && r !== (r = Ee(`rcb-modal-main ${/*dark*/
3467
- o[0] ? "rcb-modal-dark" : ""}`) + " svelte-t8k92q")) && A(e, "class", r);
3465
+ ), (!i || c & /*dark*/
3466
+ 1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
3467
+ l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && A(r, "class", n);
3468
3468
  },
3469
- i(o) {
3470
- n || (u(s, o), n = !0);
3469
+ i(l) {
3470
+ i || (u(s, l), i = !0);
3471
3471
  },
3472
- o(o) {
3473
- m(s, o), n = !1;
3472
+ o(l) {
3473
+ m(s, l), i = !1;
3474
3474
  },
3475
- d(o) {
3476
- o && g(e), s && s.d(o);
3475
+ d(l) {
3476
+ l && g(e), s && s.d(l);
3477
3477
  }
3478
3478
  };
3479
3479
  }
3480
3480
  function Si(t, e, r) {
3481
- let { $$slots: n = {}, $$scope: i } = e, { dark: s = !1 } = e;
3482
- return t.$$set = (o) => {
3483
- "dark" in o && r(0, s = o.dark), "$$scope" in o && r(1, i = o.$$scope);
3484
- }, [s, i, n];
3481
+ let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3482
+ return t.$$set = (s) => {
3483
+ "dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3484
+ }, [o, i, n];
3485
3485
  }
3486
3486
  class Oi extends U {
3487
3487
  constructor(e) {
@@ -3504,12 +3504,12 @@ function Li(t) {
3504
3504
  c() {
3505
3505
  n && n.c();
3506
3506
  },
3507
- m(i, s) {
3508
- n && n.m(i, s), e = !0;
3507
+ m(i, o) {
3508
+ n && n.m(i, o), e = !0;
3509
3509
  },
3510
- p(i, s) {
3511
- n && n.p && (!e || s & /*$$scope*/
3512
- 4) && q(
3510
+ p(i, o) {
3511
+ n && n.p && (!e || o & /*$$scope*/
3512
+ 4) && K(
3513
3513
  n,
3514
3514
  r,
3515
3515
  i,
@@ -3519,9 +3519,9 @@ function Li(t) {
3519
3519
  r,
3520
3520
  /*$$scope*/
3521
3521
  i[2],
3522
- s,
3522
+ o,
3523
3523
  null
3524
- ) : K(
3524
+ ) : q(
3525
3525
  /*$$scope*/
3526
3526
  i[2]
3527
3527
  ),
@@ -3554,9 +3554,9 @@ function xi(t) {
3554
3554
  I(e, n, i), r = !0;
3555
3555
  },
3556
3556
  p(n, i) {
3557
- const s = {};
3557
+ const o = {};
3558
3558
  i & /*$$scope*/
3559
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3559
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3560
3560
  },
3561
3561
  i(n) {
3562
3562
  r || (u(e.$$.fragment, n), r = !0);
@@ -3585,12 +3585,12 @@ function Fi(t) {
3585
3585
  c() {
3586
3586
  n && n.c();
3587
3587
  },
3588
- m(i, s) {
3589
- n && n.m(i, s), e = !0;
3588
+ m(i, o) {
3589
+ n && n.m(i, o), e = !0;
3590
3590
  },
3591
- p(i, s) {
3592
- n && n.p && (!e || s & /*$$scope*/
3593
- 4) && q(
3591
+ p(i, o) {
3592
+ n && n.p && (!e || o & /*$$scope*/
3593
+ 4) && K(
3594
3594
  n,
3595
3595
  r,
3596
3596
  i,
@@ -3600,9 +3600,9 @@ function Fi(t) {
3600
3600
  r,
3601
3601
  /*$$scope*/
3602
3602
  i[2],
3603
- s,
3603
+ o,
3604
3604
  null
3605
- ) : K(
3605
+ ) : q(
3606
3606
  /*$$scope*/
3607
3607
  i[2]
3608
3608
  ),
@@ -3622,25 +3622,25 @@ function Fi(t) {
3622
3622
  }
3623
3623
  function Gi(t) {
3624
3624
  let e, r, n, i;
3625
- const s = [xi, Li], o = [];
3625
+ const o = [xi, Li], s = [];
3626
3626
  function l(c, a) {
3627
3627
  return (
3628
3628
  /*condition*/
3629
3629
  c[0] ? 0 : 1
3630
3630
  );
3631
3631
  }
3632
- return e = l(t), r = o[e] = s[e](t), {
3632
+ return e = l(t), r = s[e] = o[e](t), {
3633
3633
  c() {
3634
3634
  r.c(), n = Z();
3635
3635
  },
3636
3636
  m(c, a) {
3637
- o[e].m(c, a), p(c, n, a), i = !0;
3637
+ s[e].m(c, a), p(c, n, a), i = !0;
3638
3638
  },
3639
3639
  p(c, [a]) {
3640
3640
  let f = e;
3641
- e = l(c), e === f ? o[e].p(c, a) : (L(), m(o[f], 1, 1, () => {
3642
- o[f] = null;
3643
- }), x(), r = o[e], r ? r.p(c, a) : (r = o[e] = s[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3641
+ e = l(c), e === f ? s[e].p(c, a) : (L(), m(s[f], 1, 1, () => {
3642
+ s[f] = null;
3643
+ }), x(), r = s[e], r ? r.p(c, a) : (r = s[e] = o[e](c), r.c()), u(r, 1), r.m(n.parentNode, n));
3644
3644
  },
3645
3645
  i(c) {
3646
3646
  i || (u(r), i = !0);
@@ -3649,23 +3649,23 @@ function Gi(t) {
3649
3649
  m(r), i = !1;
3650
3650
  },
3651
3651
  d(c) {
3652
- c && g(n), o[e].d(c);
3652
+ c && g(n), s[e].d(c);
3653
3653
  }
3654
3654
  };
3655
3655
  }
3656
3656
  function Yi(t, e, r) {
3657
- let { $$slots: n = {}, $$scope: i } = e, { condition: s = !1 } = e;
3658
- return t.$$set = (o) => {
3659
- "condition" in o && r(0, s = o.condition), "$$scope" in o && r(2, i = o.$$scope);
3660
- }, [s, n, i];
3657
+ let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
3658
+ return t.$$set = (s) => {
3659
+ "condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
3660
+ }, [o, n, i];
3661
3661
  }
3662
3662
  class Hi extends U {
3663
3663
  constructor(e) {
3664
3664
  super(), R(this, e, Yi, Gi, P, { condition: 0 });
3665
3665
  }
3666
3666
  }
3667
- const qi = (t) => ({}), ut = (t) => ({});
3668
- function Ki(t) {
3667
+ const Ki = (t) => ({}), ut = (t) => ({});
3668
+ function qi(t) {
3669
3669
  let e, r;
3670
3670
  const n = (
3671
3671
  /*#slots*/
@@ -3676,11 +3676,11 @@ function Ki(t) {
3676
3676
  /*$$scope*/
3677
3677
  t[2],
3678
3678
  ut
3679
- ), s = (
3679
+ ), o = (
3680
3680
  /*#slots*/
3681
3681
  t[1].default
3682
- ), o = Y(
3683
- s,
3682
+ ), s = Y(
3683
+ o,
3684
3684
  t,
3685
3685
  /*$$scope*/
3686
3686
  t[2],
@@ -3688,14 +3688,14 @@ function Ki(t) {
3688
3688
  );
3689
3689
  return {
3690
3690
  c() {
3691
- i && i.c(), e = T(), o && o.c();
3691
+ i && i.c(), e = T(), s && s.c();
3692
3692
  },
3693
3693
  m(l, c) {
3694
- i && i.m(l, c), p(l, e, c), o && o.m(l, c), r = !0;
3694
+ i && i.m(l, c), p(l, e, c), s && s.m(l, c), r = !0;
3695
3695
  },
3696
3696
  p(l, c) {
3697
3697
  i && i.p && (!r || c & /*$$scope*/
3698
- 4) && q(
3698
+ 4) && K(
3699
3699
  i,
3700
3700
  n,
3701
3701
  l,
@@ -3706,26 +3706,26 @@ function Ki(t) {
3706
3706
  /*$$scope*/
3707
3707
  l[2],
3708
3708
  c,
3709
- qi
3710
- ) : K(
3709
+ Ki
3710
+ ) : q(
3711
3711
  /*$$scope*/
3712
3712
  l[2]
3713
3713
  ),
3714
3714
  ut
3715
- ), o && o.p && (!r || c & /*$$scope*/
3716
- 4) && q(
3717
- o,
3715
+ ), s && s.p && (!r || c & /*$$scope*/
3716
+ 4) && K(
3718
3717
  s,
3718
+ o,
3719
3719
  l,
3720
3720
  /*$$scope*/
3721
3721
  l[2],
3722
3722
  r ? H(
3723
- s,
3723
+ o,
3724
3724
  /*$$scope*/
3725
3725
  l[2],
3726
3726
  c,
3727
3727
  null
3728
- ) : K(
3728
+ ) : q(
3729
3729
  /*$$scope*/
3730
3730
  l[2]
3731
3731
  ),
@@ -3733,13 +3733,13 @@ function Ki(t) {
3733
3733
  );
3734
3734
  },
3735
3735
  i(l) {
3736
- r || (u(i, l), u(o, l), r = !0);
3736
+ r || (u(i, l), u(s, l), r = !0);
3737
3737
  },
3738
3738
  o(l) {
3739
- m(i, l), m(o, l), r = !1;
3739
+ m(i, l), m(s, l), r = !1;
3740
3740
  },
3741
3741
  d(l) {
3742
- l && g(e), i && i.d(l), o && o.d(l);
3742
+ l && g(e), i && i.d(l), s && s.d(l);
3743
3743
  }
3744
3744
  };
3745
3745
  }
@@ -3751,7 +3751,7 @@ function ji(t) {
3751
3751
  /*dark*/
3752
3752
  t[0]
3753
3753
  ),
3754
- $$slots: { default: [Ki] },
3754
+ $$slots: { default: [qi] },
3755
3755
  $$scope: { ctx: t }
3756
3756
  }
3757
3757
  }), {
@@ -3762,11 +3762,11 @@ function ji(t) {
3762
3762
  I(e, n, i), r = !0;
3763
3763
  },
3764
3764
  p(n, [i]) {
3765
- const s = {};
3765
+ const o = {};
3766
3766
  i & /*dark*/
3767
- 1 && (s.dark = /*dark*/
3767
+ 1 && (o.dark = /*dark*/
3768
3768
  n[0]), i & /*$$scope*/
3769
- 4 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
3769
+ 4 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
3770
3770
  },
3771
3771
  i(n) {
3772
3772
  r || (u(e.$$.fragment, n), r = !0);
@@ -3780,10 +3780,10 @@ function ji(t) {
3780
3780
  };
3781
3781
  }
3782
3782
  function Ji(t, e, r) {
3783
- let { $$slots: n = {}, $$scope: i } = e, { dark: s = !1 } = e;
3784
- return t.$$set = (o) => {
3785
- "dark" in o && r(0, s = o.dark), "$$scope" in o && r(2, i = o.$$scope);
3786
- }, [s, n, i];
3783
+ let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3784
+ return t.$$set = (s) => {
3785
+ "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
3786
+ }, [o, n, i];
3787
3787
  }
3788
3788
  class Rt extends U {
3789
3789
  constructor(e) {
@@ -3940,15 +3940,15 @@ class Vi extends Error {
3940
3940
  super("Purchases must be configured before calling getInstance");
3941
3941
  }
3942
3942
  }
3943
- const Wi = "0.1.0", fe = "https://api.revenuecat.com";
3943
+ const Wi = "0.1.1", fe = "https://api.revenuecat.com";
3944
3944
  var Ue;
3945
3945
  (function(t) {
3946
3946
  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";
3947
3947
  })(Ue || (Ue = {}));
3948
- function Ke(t) {
3948
+ function qe(t) {
3949
3949
  return t ? t.startsWith("rcb_sb_") : !1;
3950
3950
  }
3951
- async function se(t, e, r, n) {
3951
+ async function oe(t, e, r, n) {
3952
3952
  const i = await fetch(t.url(), {
3953
3953
  method: t.method,
3954
3954
  headers: Zi(e, n),
@@ -3961,15 +3961,15 @@ async function zi(t, e) {
3961
3961
  if (r >= Ue.INTERNAL_SERVER_ERROR)
3962
3962
  Ge(e, r, await t.text());
3963
3963
  else if (r >= Ue.BAD_REQUEST) {
3964
- const n = await t.json(), i = n ? JSON.stringify(n) : null, s = n == null ? void 0 : n.code, o = n == null ? void 0 : n.message;
3965
- if (s != null) {
3966
- const l = Pe.convertCodeToBackendErrorCode(s);
3964
+ 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;
3965
+ if (o != null) {
3966
+ const l = Pe.convertCodeToBackendErrorCode(o);
3967
3967
  if (l == null)
3968
3968
  Ge(e, r, i);
3969
3969
  else
3970
3970
  throw ee.getForBackendError(
3971
3971
  l,
3972
- o
3972
+ s
3973
3973
  );
3974
3974
  } else
3975
3975
  Ge(e, r, i);
@@ -3991,12 +3991,12 @@ function Zi(t, e) {
3991
3991
  Accept: "application/json",
3992
3992
  "X-Platform": "web",
3993
3993
  "X-Version": Wi,
3994
- "X-Is-Sandbox": `${Ke(t)}`
3994
+ "X-Is-Sandbox": `${qe(t)}`
3995
3995
  };
3996
3996
  return e != null && (r = { ...r, ...e }), r;
3997
3997
  }
3998
3998
  const Nt = "/v1/subscribers", Oe = "/rcbilling/v1";
3999
- class es {
3999
+ class eo {
4000
4000
  constructor(e) {
4001
4001
  C(this, "appUserId");
4002
4002
  C(this, "method", "GET");
@@ -4008,7 +4008,7 @@ class es {
4008
4008
  return `${fe}${Nt}/${e}/offerings`;
4009
4009
  }
4010
4010
  }
4011
- class ts {
4011
+ class to {
4012
4012
  constructor() {
4013
4013
  C(this, "method", "POST");
4014
4014
  C(this, "name", "subscribe");
@@ -4017,7 +4017,7 @@ class ts {
4017
4017
  return `${fe}${Oe}/subscribe`;
4018
4018
  }
4019
4019
  }
4020
- class ns {
4020
+ class no {
4021
4021
  constructor(e, r) {
4022
4022
  C(this, "method", "GET");
4023
4023
  C(this, "name", "getProducts");
@@ -4030,7 +4030,7 @@ class ns {
4030
4030
  return `${fe}${Oe}/subscribers/${e}/products?id=${r}`;
4031
4031
  }
4032
4032
  }
4033
- class rs {
4033
+ class ro {
4034
4034
  constructor(e) {
4035
4035
  C(this, "method", "GET");
4036
4036
  C(this, "name", "getCustomerInfo");
@@ -4042,7 +4042,7 @@ class rs {
4042
4042
  return `${fe}${Nt}/${e}`;
4043
4043
  }
4044
4044
  }
4045
- class is {
4045
+ class io {
4046
4046
  constructor() {
4047
4047
  C(this, "method", "GET");
4048
4048
  C(this, "name", "getBrandingInfo");
@@ -4051,7 +4051,7 @@ class is {
4051
4051
  return `${fe}${Oe}/branding`;
4052
4052
  }
4053
4053
  }
4054
- class ss {
4054
+ class oo {
4055
4055
  constructor(e) {
4056
4056
  C(this, "method", "GET");
4057
4057
  C(this, "name", "getCheckoutStatus");
@@ -4062,38 +4062,38 @@ class ss {
4062
4062
  return `${fe}${Oe}/checkout/${this.operationSessionId}`;
4063
4063
  }
4064
4064
  }
4065
- class os {
4065
+ class so {
4066
4066
  constructor(e) {
4067
4067
  C(this, "API_KEY");
4068
4068
  this.API_KEY = e;
4069
4069
  }
4070
4070
  async getOfferings(e) {
4071
- return await se(
4072
- new es(e),
4071
+ return await oe(
4072
+ new eo(e),
4073
4073
  this.API_KEY
4074
4074
  );
4075
4075
  }
4076
4076
  async getCustomerInfo(e) {
4077
- return await se(
4078
- new rs(e),
4077
+ return await oe(
4078
+ new ro(e),
4079
4079
  this.API_KEY
4080
4080
  );
4081
4081
  }
4082
4082
  async getProducts(e, r) {
4083
- return await se(
4084
- new ns(e, r),
4083
+ return await oe(
4084
+ new no(e, r),
4085
4085
  this.API_KEY
4086
4086
  );
4087
4087
  }
4088
4088
  async getBrandingInfo() {
4089
- return await se(
4090
- new is(),
4089
+ return await oe(
4090
+ new io(),
4091
4091
  this.API_KEY
4092
4092
  );
4093
4093
  }
4094
4094
  async postSubscribe(e, r, n, i) {
4095
- return await se(
4096
- new ts(),
4095
+ return await oe(
4096
+ new to(),
4097
4097
  this.API_KEY,
4098
4098
  {
4099
4099
  app_user_id: e,
@@ -4104,18 +4104,18 @@ class os {
4104
4104
  );
4105
4105
  }
4106
4106
  async getCheckoutStatus(e) {
4107
- return await se(
4108
- new ss(e),
4107
+ return await oe(
4108
+ new oo(e),
4109
4109
  this.API_KEY
4110
4110
  );
4111
4111
  }
4112
4112
  }
4113
- const ls = "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";
4114
- function cs(t) {
4113
+ const lo = "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";
4114
+ function co(t) {
4115
4115
  let e, r;
4116
4116
  return {
4117
4117
  c() {
4118
- e = k("img"), X(e.src, r = ls) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
4118
+ e = k("img"), X(e.src, r = lo) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
4119
4119
  },
4120
4120
  m(n, i) {
4121
4121
  p(n, e, i);
@@ -4128,15 +4128,15 @@ function cs(t) {
4128
4128
  }
4129
4129
  };
4130
4130
  }
4131
- class as extends U {
4131
+ class ao extends U {
4132
4132
  constructor(e) {
4133
- super(), R(this, e, null, cs, P, {});
4133
+ super(), R(this, e, null, co, P, {});
4134
4134
  }
4135
4135
  }
4136
- function us(t) {
4136
+ function uo(t) {
4137
4137
  O(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}");
4138
4138
  }
4139
- function fs(t) {
4139
+ function fo(t) {
4140
4140
  let e;
4141
4141
  return {
4142
4142
  c() {
@@ -4153,14 +4153,14 @@ function fs(t) {
4153
4153
  }
4154
4154
  };
4155
4155
  }
4156
- class ds extends U {
4156
+ class mo extends U {
4157
4157
  constructor(e) {
4158
- super(), R(this, e, null, fs, P, {}, us);
4158
+ super(), R(this, e, null, fo, P, {}, uo);
4159
4159
  }
4160
4160
  }
4161
- function ms(t) {
4162
- O(t, "svelte-159ts4k", `.rcb-ui-container.svelte-159ts4k{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4163
- Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-159ts4k{width:100vw;width:100dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative}.rcb-ui-aside.svelte-159ts4k{margin-right:16px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-159ts4k{flex-direction:column;align-items:center;justify-content:center;height:100%}.rcb-ui-aside.svelte-159ts4k{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-159ts4k{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4161
+ function go(t) {
4162
+ O(t, "svelte-13pdaik", `.rcb-ui-container.svelte-13pdaik{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4163
+ Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-13pdaik{width:100vw;width:100dvw;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-13pdaik{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-13pdaik{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-13pdaik{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-13pdaik{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-13pdaik{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-13pdaik{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4164
4164
  }
4165
4165
  function ft(t) {
4166
4166
  let e, r, n;
@@ -4168,22 +4168,22 @@ function ft(t) {
4168
4168
  props: {
4169
4169
  dark: !0,
4170
4170
  $$slots: {
4171
- header: [hs],
4172
- default: [gs]
4171
+ header: [Eo],
4172
+ default: [po]
4173
4173
  },
4174
4174
  $$scope: { ctx: t }
4175
4175
  }
4176
4176
  }), {
4177
4177
  c() {
4178
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-aside svelte-159ts4k");
4178
+ e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-aside svelte-13pdaik");
4179
4179
  },
4180
- m(i, s) {
4181
- p(i, e, s), I(r, e, null), n = !0;
4180
+ m(i, o) {
4181
+ p(i, e, o), I(r, e, null), n = !0;
4182
4182
  },
4183
- p(i, s) {
4184
- const o = {};
4185
- s & /*$$scope, purchases, brandingInfo, productDetails*/
4186
- 8388622 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o);
4183
+ p(i, o) {
4184
+ const s = {};
4185
+ o & /*$$scope, purchases, brandingInfo, productDetails*/
4186
+ 8388622 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s);
4187
4187
  },
4188
4188
  i(i) {
4189
4189
  n || (u(r.$$.fragment, i), n = !0);
@@ -4213,10 +4213,10 @@ function dt(t) {
4213
4213
  I(e, n, i), r = !0;
4214
4214
  },
4215
4215
  p(n, i) {
4216
- const s = {};
4216
+ const o = {};
4217
4217
  i & /*productDetails*/
4218
- 4 && (s.productDetails = /*productDetails*/
4219
- n[2]), e.$set(s);
4218
+ 4 && (o.productDetails = /*productDetails*/
4219
+ n[2]), e.$set(o);
4220
4220
  },
4221
4221
  i(n) {
4222
4222
  r || (u(e.$$.fragment, n), r = !0);
@@ -4229,7 +4229,7 @@ function dt(t) {
4229
4229
  }
4230
4230
  };
4231
4231
  }
4232
- function gs(t) {
4232
+ function po(t) {
4233
4233
  let e, r, n = (
4234
4234
  /*productDetails*/
4235
4235
  t[2] && dt(t)
@@ -4238,12 +4238,12 @@ function gs(t) {
4238
4238
  c() {
4239
4239
  n && n.c(), e = Z();
4240
4240
  },
4241
- m(i, s) {
4242
- n && n.m(i, s), p(i, e, s), r = !0;
4241
+ m(i, o) {
4242
+ n && n.m(i, o), p(i, e, o), r = !0;
4243
4243
  },
4244
- p(i, s) {
4244
+ p(i, o) {
4245
4245
  /*productDetails*/
4246
- i[2] ? n ? (n.p(i, s), s & /*productDetails*/
4246
+ i[2] ? n ? (n.p(i, o), o & /*productDetails*/
4247
4247
  4 && u(n, 1)) : (n = dt(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (L(), m(n, 1, 1, () => {
4248
4248
  n = null;
4249
4249
  }), x());
@@ -4259,9 +4259,9 @@ function gs(t) {
4259
4259
  }
4260
4260
  };
4261
4261
  }
4262
- function ps(t) {
4262
+ function Ao(t) {
4263
4263
  let e, r;
4264
- return e = new as({}), {
4264
+ return e = new ao({}), {
4265
4265
  c() {
4266
4266
  w(e.$$.fragment);
4267
4267
  },
@@ -4279,9 +4279,9 @@ function ps(t) {
4279
4279
  }
4280
4280
  };
4281
4281
  }
4282
- function As(t) {
4282
+ function _o(t) {
4283
4283
  let e, r;
4284
- return e = new ds({}), {
4284
+ return e = new mo({}), {
4285
4285
  c() {
4286
4286
  w(e.$$.fragment);
4287
4287
  },
@@ -4299,26 +4299,26 @@ function As(t) {
4299
4299
  }
4300
4300
  };
4301
4301
  }
4302
- function _s(t) {
4303
- let e, r, n, i, s, o, l;
4302
+ function ho(t) {
4303
+ let e, r, n, i, o, s, l;
4304
4304
  e = new Dt({
4305
4305
  props: { brandingInfo: (
4306
4306
  /*brandingInfo*/
4307
4307
  t[3]
4308
4308
  ) }
4309
4309
  });
4310
- const c = [As, ps], a = [];
4310
+ const c = [_o, Ao], a = [];
4311
4311
  function f(d, E) {
4312
4312
  return E & /*purchases*/
4313
4313
  2 && (n = null), n == null && (n = !!/*purchases*/
4314
4314
  d[1].isSandbox()), n ? 0 : 1;
4315
4315
  }
4316
- return i = f(t, -1), s = a[i] = c[i](t), {
4316
+ return i = f(t, -1), o = a[i] = c[i](t), {
4317
4317
  c() {
4318
- w(e.$$.fragment), r = T(), s.c(), o = Z();
4318
+ w(e.$$.fragment), r = T(), o.c(), s = Z();
4319
4319
  },
4320
4320
  m(d, E) {
4321
- I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, o, E), l = !0;
4321
+ I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, s, E), l = !0;
4322
4322
  },
4323
4323
  p(d, E) {
4324
4324
  const v = {};
@@ -4328,25 +4328,25 @@ function _s(t) {
4328
4328
  let _ = i;
4329
4329
  i = f(d, E), i !== _ && (L(), m(a[_], 1, 1, () => {
4330
4330
  a[_] = null;
4331
- }), x(), s = a[i], s || (s = a[i] = c[i](d), s.c()), u(s, 1), s.m(o.parentNode, o));
4331
+ }), x(), o = a[i], o || (o = a[i] = c[i](d), o.c()), u(o, 1), o.m(s.parentNode, s));
4332
4332
  },
4333
4333
  i(d) {
4334
- l || (u(e.$$.fragment, d), u(s), l = !0);
4334
+ l || (u(e.$$.fragment, d), u(o), l = !0);
4335
4335
  },
4336
4336
  o(d) {
4337
- m(e.$$.fragment, d), m(s), l = !1;
4337
+ m(e.$$.fragment, d), m(o), l = !1;
4338
4338
  },
4339
4339
  d(d) {
4340
- d && (g(r), g(o)), b(e, d), a[i].d(d);
4340
+ d && (g(r), g(s)), b(e, d), a[i].d(d);
4341
4341
  }
4342
4342
  };
4343
4343
  }
4344
- function hs(t) {
4344
+ function Eo(t) {
4345
4345
  let e, r;
4346
4346
  return e = new Ve({
4347
4347
  props: {
4348
4348
  slot: "header",
4349
- $$slots: { default: [_s] },
4349
+ $$slots: { default: [ho] },
4350
4350
  $$scope: { ctx: t }
4351
4351
  }
4352
4352
  }), {
@@ -4357,9 +4357,9 @@ function hs(t) {
4357
4357
  I(e, n, i), r = !0;
4358
4358
  },
4359
4359
  p(n, i) {
4360
- const s = {};
4360
+ const o = {};
4361
4361
  i & /*$$scope, purchases, brandingInfo*/
4362
- 8388618 && (s.$$scope = { dirty: i, ctx: n }), e.$set(s);
4362
+ 8388618 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
4363
4363
  },
4364
4364
  i(n) {
4365
4365
  r || (u(e.$$.fragment, n), r = !0);
@@ -4389,10 +4389,10 @@ function mt(t) {
4389
4389
  I(e, n, i), r = !0;
4390
4390
  },
4391
4391
  p(n, i) {
4392
- const s = {};
4392
+ const o = {};
4393
4393
  i & /*productDetails*/
4394
- 4 && (s.productDetails = /*productDetails*/
4395
- n[2]), e.$set(s);
4394
+ 4 && (o.productDetails = /*productDetails*/
4395
+ n[2]), e.$set(o);
4396
4396
  },
4397
4397
  i(n) {
4398
4398
  r || (u(e.$$.fragment, n), r = !0);
@@ -4450,10 +4450,10 @@ function pt(t) {
4450
4450
  I(e, n, i), r = !0;
4451
4451
  },
4452
4452
  p(n, i) {
4453
- const s = {};
4453
+ const o = {};
4454
4454
  i & /*state*/
4455
- 64 && (s.processing = /*state*/
4456
- n[6] === "processing-auth-info"), e.$set(s);
4455
+ 64 && (o.processing = /*state*/
4456
+ n[6] === "processing-auth-info"), e.$set(o);
4457
4457
  },
4458
4458
  i(n) {
4459
4459
  r || (u(e.$$.fragment, n), r = !0);
@@ -4499,12 +4499,12 @@ function At(t) {
4499
4499
  I(e, n, i), r = !0;
4500
4500
  },
4501
4501
  p(n, i) {
4502
- const s = {};
4502
+ const o = {};
4503
4503
  i & /*paymentInfoCollectionMetadata*/
4504
- 16 && (s.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
4504
+ 16 && (o.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
4505
4505
  n[4]), i & /*state*/
4506
- 64 && (s.processing = /*state*/
4507
- n[6] === "polling-purchase-status"), e.$set(s);
4506
+ 64 && (o.processing = /*state*/
4507
+ n[6] === "polling-purchase-status"), e.$set(o);
4508
4508
  },
4509
4509
  i(n) {
4510
4510
  r || (u(e.$$.fragment, n), r = !0);
@@ -4563,19 +4563,19 @@ function ht(t) {
4563
4563
  c() {
4564
4564
  w(e.$$.fragment);
4565
4565
  },
4566
- m(i, s) {
4567
- I(e, i, s), r = !0;
4566
+ m(i, o) {
4567
+ I(e, i, o), r = !0;
4568
4568
  },
4569
- p(i, s) {
4569
+ p(i, o) {
4570
4570
  var l;
4571
- const o = {};
4572
- s & /*brandingInfo*/
4573
- 8 && (o.brandingInfo = /*brandingInfo*/
4574
- i[3]), s & /*lastError*/
4575
- 32 && (o.lastError = /*lastError*/
4576
- i[5] ?? new G(S.UnknownError, "Unknown error without state set.")), s & /*brandingInfo*/
4577
- 8 && (o.supportEmail = /*brandingInfo*/
4578
- (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(o);
4571
+ const s = {};
4572
+ o & /*brandingInfo*/
4573
+ 8 && (s.brandingInfo = /*brandingInfo*/
4574
+ i[3]), o & /*lastError*/
4575
+ 32 && (s.lastError = /*lastError*/
4576
+ i[5] ?? new G(S.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4577
+ 8 && (s.supportEmail = /*brandingInfo*/
4578
+ (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(s);
4579
4579
  },
4580
4580
  i(i) {
4581
4581
  r || (u(e.$$.fragment, i), r = !0);
@@ -4609,10 +4609,10 @@ function Et(t) {
4609
4609
  I(e, n, i), r = !0;
4610
4610
  },
4611
4611
  p(n, i) {
4612
- const s = {};
4612
+ const o = {};
4613
4613
  i & /*brandingInfo*/
4614
- 8 && (s.brandingInfo = /*brandingInfo*/
4615
- n[3]), e.$set(s);
4614
+ 8 && (o.brandingInfo = /*brandingInfo*/
4615
+ n[3]), e.$set(o);
4616
4616
  },
4617
4617
  i(n) {
4618
4618
  r || (u(e.$$.fragment, n), r = !0);
@@ -4625,8 +4625,8 @@ function Et(t) {
4625
4625
  }
4626
4626
  };
4627
4627
  }
4628
- function Es(t) {
4629
- let e, r, n, i, s, o, l, c, a = (
4628
+ function Io(t) {
4629
+ let e, r, n, i, o, s, l, c, a = (
4630
4630
  /*state*/
4631
4631
  t[6] === "present-offer" && /*productDetails*/
4632
4632
  t[2] && mt(t)
@@ -4655,10 +4655,10 @@ function Es(t) {
4655
4655
  );
4656
4656
  return {
4657
4657
  c() {
4658
- a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), s = T(), _ && _.c(), o = T(), M && M.c(), l = Z();
4658
+ a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(), _ && _.c(), s = T(), M && M.c(), l = Z();
4659
4659
  },
4660
4660
  m(h, y) {
4661
- a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, s, y), _ && _.m(h, y), p(h, o, y), M && M.m(h, y), p(h, l, y), c = !0;
4661
+ a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, o, y), _ && _.m(h, y), p(h, s, y), M && M.m(h, y), p(h, l, y), c = !0;
4662
4662
  },
4663
4663
  p(h, y) {
4664
4664
  /*state*/
@@ -4684,11 +4684,11 @@ function Es(t) {
4684
4684
  E = null;
4685
4685
  }), x()), /*state*/
4686
4686
  h[6] === "loading" ? v ? y & /*state*/
4687
- 64 && u(v, 1) : (v = _t(), v.c(), u(v, 1), v.m(s.parentNode, s)) : v && (L(), m(v, 1, 1, () => {
4687
+ 64 && u(v, 1) : (v = _t(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
4688
4688
  v = null;
4689
4689
  }), x()), /*state*/
4690
4690
  h[6] === "error" ? _ ? (_.p(h, y), y & /*state*/
4691
- 64 && u(_, 1)) : (_ = ht(h), _.c(), u(_, 1), _.m(o.parentNode, o)) : _ && (L(), m(_, 1, 1, () => {
4691
+ 64 && u(_, 1)) : (_ = ht(h), _.c(), u(_, 1), _.m(s.parentNode, s)) : _ && (L(), m(_, 1, 1, () => {
4692
4692
  _ = null;
4693
4693
  }), x()), /*state*/
4694
4694
  h[6] === "success" ? M ? (M.p(h, y), y & /*state*/
@@ -4703,61 +4703,61 @@ function Es(t) {
4703
4703
  m(a), m(f), m(d), m(E), m(v), m(_), m(M), c = !1;
4704
4704
  },
4705
4705
  d(h) {
4706
- h && (g(e), g(r), g(n), g(i), g(s), g(o), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), _ && _.d(h), M && M.d(h);
4706
+ h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), _ && _.d(h), M && M.d(h);
4707
4707
  }
4708
4708
  };
4709
4709
  }
4710
- function Is(t) {
4710
+ function bo(t) {
4711
4711
  let e, r = (
4712
4712
  /*statesWhereOfferDetailsAreShown*/
4713
4713
  t[8].includes(
4714
4714
  /*state*/
4715
4715
  t[6]
4716
4716
  )
4717
- ), n, i, s, o = r && ft(t);
4718
- return i = new Rt({
4717
+ ), n, i, o, s, l = r && ft(t);
4718
+ return o = new Rt({
4719
4719
  props: {
4720
- $$slots: { default: [Es] },
4720
+ $$slots: { default: [Io] },
4721
4721
  $$scope: { ctx: t }
4722
4722
  }
4723
4723
  }), {
4724
4724
  c() {
4725
- e = k("div"), o && o.c(), n = T(), w(i.$$.fragment), A(e, "class", "rcb-ui-layout svelte-159ts4k"), A(
4725
+ e = k("div"), l && l.c(), n = T(), i = k("div"), w(o.$$.fragment), A(i, "class", "rcb-ui-main svelte-13pdaik"), A(e, "class", "rcb-ui-layout svelte-13pdaik"), A(
4726
4726
  e,
4727
4727
  "style",
4728
4728
  /*colorVariables*/
4729
4729
  t[7]
4730
4730
  );
4731
4731
  },
4732
- m(l, c) {
4733
- p(l, e, c), o && o.m(e, null), Q(e, n), I(i, e, null), s = !0;
4732
+ m(c, a) {
4733
+ p(c, e, a), l && l.m(e, null), D(e, n), D(e, i), I(o, i, null), s = !0;
4734
4734
  },
4735
- p(l, c) {
4736
- c & /*state*/
4735
+ p(c, a) {
4736
+ a & /*state*/
4737
4737
  64 && (r = /*statesWhereOfferDetailsAreShown*/
4738
- l[8].includes(
4738
+ c[8].includes(
4739
4739
  /*state*/
4740
- l[6]
4741
- )), r ? o ? (o.p(l, c), c & /*state*/
4742
- 64 && u(o, 1)) : (o = ft(l), o.c(), u(o, 1), o.m(e, n)) : o && (L(), m(o, 1, 1, () => {
4743
- o = null;
4740
+ c[6]
4741
+ )), r ? l ? (l.p(c, a), a & /*state*/
4742
+ 64 && u(l, 1)) : (l = ft(c), l.c(), u(l, 1), l.m(e, n)) : l && (L(), m(l, 1, 1, () => {
4743
+ l = null;
4744
4744
  }), x());
4745
- const a = {};
4746
- c & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails*/
4747
- 8388732 && (a.$$scope = { dirty: c, ctx: l }), i.$set(a);
4745
+ const f = {};
4746
+ a & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails*/
4747
+ 8388732 && (f.$$scope = { dirty: a, ctx: c }), o.$set(f);
4748
4748
  },
4749
- i(l) {
4750
- s || (u(o), u(i.$$.fragment, l), s = !0);
4749
+ i(c) {
4750
+ s || (u(l), u(o.$$.fragment, c), s = !0);
4751
4751
  },
4752
- o(l) {
4753
- m(o), m(i.$$.fragment, l), s = !1;
4752
+ o(c) {
4753
+ m(l), m(o.$$.fragment, c), s = !1;
4754
4754
  },
4755
- d(l) {
4756
- l && g(e), o && o.d(), b(i);
4755
+ d(c) {
4756
+ c && g(e), l && l.d(), b(o);
4757
4757
  }
4758
4758
  };
4759
4759
  }
4760
- function bs(t) {
4760
+ function wo(t) {
4761
4761
  let e, r, n;
4762
4762
  return r = new Hi({
4763
4763
  props: {
@@ -4765,22 +4765,22 @@ function bs(t) {
4765
4765
  /*asModal*/
4766
4766
  t[0]
4767
4767
  ),
4768
- $$slots: { default: [Is] },
4768
+ $$slots: { default: [bo] },
4769
4769
  $$scope: { ctx: t }
4770
4770
  }
4771
4771
  }), {
4772
4772
  c() {
4773
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-container svelte-159ts4k");
4773
+ e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-container svelte-13pdaik");
4774
4774
  },
4775
- m(i, s) {
4776
- p(i, e, s), I(r, e, null), n = !0;
4775
+ m(i, o) {
4776
+ p(i, e, o), I(r, e, null), n = !0;
4777
4777
  },
4778
- p(i, [s]) {
4779
- const o = {};
4780
- s & /*asModal*/
4781
- 1 && (o.condition = /*asModal*/
4782
- i[0]), s & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchases*/
4783
- 8388734 && (o.$$scope = { dirty: s, ctx: i }), r.$set(o);
4778
+ p(i, [o]) {
4779
+ const s = {};
4780
+ o & /*asModal*/
4781
+ 1 && (s.condition = /*asModal*/
4782
+ i[0]), o & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchases*/
4783
+ 8388734 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s);
4784
4784
  },
4785
4785
  i(i) {
4786
4786
  n || (u(r.$$.fragment, i), n = !0);
@@ -4793,12 +4793,12 @@ function bs(t) {
4793
4793
  }
4794
4794
  };
4795
4795
  }
4796
- function ws(t, e, r) {
4796
+ function ko(t, e, r) {
4797
4797
  var We;
4798
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: s } = e, { rcPackage: o } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
4799
- const v = Object.entries(_e).map(([D, Le]) => `--rc-color-${D}: ${Le}`).join("; ");
4798
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
4799
+ const v = Object.entries(_e).map(([Q, Le]) => `--rc-color-${Q}: ${Le}`).join("; ");
4800
4800
  let _ = null, M = null, h = null, y = null;
4801
- const F = ((We = o.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
4801
+ const F = ((We = s.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
4802
4802
  let $ = "present-offer";
4803
4803
  const de = [
4804
4804
  "present-offer",
@@ -4809,7 +4809,7 @@ function ws(t, e, r) {
4809
4809
  "loading"
4810
4810
  ];
4811
4811
  Se(async () => {
4812
- if (r(2, _ = o.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
4812
+ if (r(2, _ = s.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
4813
4813
  i ? re() : r(6, $ = "needs-auth-info");
4814
4814
  return;
4815
4815
  }
@@ -4826,21 +4826,21 @@ function ws(t, e, r) {
4826
4826
  W(new G(S.MissingEmailError));
4827
4827
  return;
4828
4828
  }
4829
- E.startPurchase(s, F, i, o.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
4830
- if (D.next_action === "collect_payment_info") {
4831
- r(6, $ = "needs-payment-info"), r(4, h = D);
4829
+ E.startPurchase(o, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((Q) => {
4830
+ if (Q.next_action === "collect_payment_info") {
4831
+ r(6, $ = "needs-payment-info"), r(4, h = Q);
4832
4832
  return;
4833
4833
  }
4834
- if (D.next_action === "completed") {
4834
+ if (Q.next_action === "completed") {
4835
4835
  r(6, $ = "success");
4836
4836
  return;
4837
4837
  }
4838
- }).catch((D) => {
4839
- W(new G(S.ErrorSettingUpPurchase, D.message, D.underlyingErrorMessage));
4838
+ }).catch((Q) => {
4839
+ W(new G(S.ErrorSettingUpPurchase, Q.message, Q.underlyingErrorMessage));
4840
4840
  });
4841
- }, z = (D) => {
4841
+ }, z = (Q) => {
4842
4842
  if ($ === "needs-auth-info") {
4843
- D && (r(13, i = D.email), r(6, $ = "processing-auth-info")), re();
4843
+ Q && (r(13, i = Q.email), r(6, $ = "processing-auth-info")), re();
4844
4844
  return;
4845
4845
  }
4846
4846
  if ($ === "needs-payment-info") {
@@ -4856,13 +4856,13 @@ function ws(t, e, r) {
4856
4856
  return;
4857
4857
  }
4858
4858
  r(6, $ = "success");
4859
- }, W = (D) => {
4860
- r(5, y = D), r(6, $ = "error");
4859
+ }, W = (Q) => {
4860
+ r(5, y = Q), r(6, $ = "error");
4861
4861
  }, St = () => {
4862
4862
  c(y ?? new G(S.UnknownError, "Unknown error without state set."));
4863
4863
  };
4864
- return t.$$set = (D) => {
4865
- "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(13, i = D.customerEmail), "appUserId" in D && r(14, s = D.appUserId), "rcPackage" in D && r(15, o = D.rcPackage), "onFinished" in D && r(16, l = D.onFinished), "onError" in D && r(17, c = D.onError), "onClose" in D && r(18, a = D.onClose), "purchases" in D && r(1, f = D.purchases), "backend" in D && r(19, d = D.backend), "purchaseOperationHelper" in D && r(20, E = D.purchaseOperationHelper);
4864
+ return t.$$set = (Q) => {
4865
+ "asModal" in Q && r(0, n = Q.asModal), "customerEmail" in Q && r(13, i = Q.customerEmail), "appUserId" in Q && r(14, o = Q.appUserId), "rcPackage" in Q && r(15, s = Q.rcPackage), "onFinished" in Q && r(16, l = Q.onFinished), "onError" in Q && r(17, c = Q.onError), "onClose" in Q && r(18, a = Q.onClose), "purchases" in Q && r(1, f = Q.purchases), "backend" in Q && r(19, d = Q.backend), "purchaseOperationHelper" in Q && r(20, E = Q.purchaseOperationHelper);
4866
4866
  }, [
4867
4867
  n,
4868
4868
  f,
@@ -4878,8 +4878,8 @@ function ws(t, e, r) {
4878
4878
  W,
4879
4879
  St,
4880
4880
  i,
4881
- s,
4882
4881
  o,
4882
+ s,
4883
4883
  l,
4884
4884
  c,
4885
4885
  a,
@@ -4887,13 +4887,13 @@ function ws(t, e, r) {
4887
4887
  E
4888
4888
  ];
4889
4889
  }
4890
- class ks extends U {
4890
+ class $o extends U {
4891
4891
  constructor(e) {
4892
4892
  super(), R(
4893
4893
  this,
4894
4894
  e,
4895
- ws,
4896
- bs,
4895
+ ko,
4896
+ wo,
4897
4897
  P,
4898
4898
  {
4899
4899
  asModal: 0,
@@ -4907,18 +4907,18 @@ class ks extends U {
4907
4907
  backend: 19,
4908
4908
  purchaseOperationHelper: 20
4909
4909
  },
4910
- ms
4910
+ go
4911
4911
  );
4912
4912
  }
4913
4913
  }
4914
- function $s(t) {
4914
+ function vo(t) {
4915
4915
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
4916
4916
  }
4917
- function vs(t, e, r) {
4917
+ function Bo(t, e, r) {
4918
4918
  return {
4919
4919
  identifier: t,
4920
- isActive: $s(e),
4921
- willRenew: Ds(e, r),
4920
+ isActive: vo(e),
4921
+ willRenew: Qo(e, r),
4922
4922
  store: (r == null ? void 0 : r.store) ?? "unknown",
4923
4923
  originalPurchaseDate: new Date(e.purchase_date),
4924
4924
  expirationDate: Te(e.expires_date),
@@ -4933,15 +4933,15 @@ function vs(t, e, r) {
4933
4933
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
4934
4934
  };
4935
4935
  }
4936
- function Bs(t, e) {
4936
+ function yo(t, e) {
4937
4937
  const r = {}, n = {};
4938
4938
  for (const i in t) {
4939
- const s = e[i] ?? null, o = vs(
4939
+ const o = e[i] ?? null, s = Bo(
4940
4940
  i,
4941
4941
  t[i],
4942
- s
4942
+ o
4943
4943
  );
4944
- r[i] = o, o.isActive && (n[i] = o);
4944
+ r[i] = s, s.isActive && (n[i] = s);
4945
4945
  }
4946
4946
  return {
4947
4947
  all: r,
@@ -4951,16 +4951,16 @@ function Bs(t, e) {
4951
4951
  function Te(t) {
4952
4952
  return t == null ? null : new Date(t);
4953
4953
  }
4954
- function ys(t) {
4955
- const e = Ms(t), r = t.subscriber;
4954
+ function Do(t) {
4955
+ const e = Co(t), r = t.subscriber;
4956
4956
  return {
4957
- entitlements: Bs(
4957
+ entitlements: yo(
4958
4958
  r.entitlements,
4959
4959
  r.subscriptions
4960
4960
  ),
4961
4961
  allExpirationDatesByProduct: e,
4962
- allPurchaseDatesByProduct: Qs(t),
4963
- activeSubscriptions: Cs(e),
4962
+ allPurchaseDatesByProduct: Mo(t),
4963
+ activeSubscriptions: Po(e),
4964
4964
  managementURL: r.management_url,
4965
4965
  requestDate: new Date(t.request_date),
4966
4966
  firstSeenDate: new Date(r.first_seen),
@@ -4970,13 +4970,13 @@ function ys(t) {
4970
4970
  originalAppUserId: t.subscriber.original_app_user_id
4971
4971
  };
4972
4972
  }
4973
- function Ds(t, e) {
4973
+ function Qo(t, e) {
4974
4974
  if (e == null)
4975
4975
  return !1;
4976
- const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, s = e.billing_issues_detected_at != null;
4977
- return !(r || n || i || s);
4976
+ const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
4977
+ return !(r || n || i || o);
4978
4978
  }
4979
- function Qs(t) {
4979
+ function Mo(t) {
4980
4980
  const e = {};
4981
4981
  for (const r in t.subscriber.subscriptions) {
4982
4982
  const n = t.subscriber.subscriptions[r];
@@ -4986,7 +4986,7 @@ function Qs(t) {
4986
4986
  }
4987
4987
  return e;
4988
4988
  }
4989
- function Ms(t) {
4989
+ function Co(t) {
4990
4990
  const e = {};
4991
4991
  for (const r in t.subscriber.subscriptions) {
4992
4992
  const n = t.subscriber.subscriptions[r];
@@ -4996,7 +4996,7 @@ function Ms(t) {
4996
4996
  }
4997
4997
  return e;
4998
4998
  }
4999
- function Cs(t) {
4999
+ function Po(t) {
5000
5000
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5001
5001
  for (const n in t) {
5002
5002
  const i = t[n];
@@ -5004,14 +5004,14 @@ function Cs(t) {
5004
5004
  }
5005
5005
  return e;
5006
5006
  }
5007
- function Ps(t) {
5007
+ function To(t) {
5008
5008
  if (!t.startsWith("rcb_"))
5009
5009
  throw new ee(
5010
5010
  ue.InvalidCredentialsError,
5011
5011
  "Invalid API key. Use your RevenueCat Billing API key."
5012
5012
  );
5013
5013
  }
5014
- function Ts(t) {
5014
+ function Ro(t) {
5015
5015
  if ((/* @__PURE__ */ new Set([
5016
5016
  "no_user",
5017
5017
  "null",
@@ -5049,18 +5049,18 @@ const J = class J {
5049
5049
  r.product_details.forEach((l) => {
5050
5050
  i[l.identifier] = l;
5051
5051
  });
5052
- const s = n == null ? null : ze(n, i), o = {};
5052
+ const o = n == null ? null : ze(n, i), s = {};
5053
5053
  return e.offerings.forEach((l) => {
5054
5054
  const c = ze(l, i);
5055
- c != null && (o[l.identifier] = c);
5056
- }), Object.keys(o).length == 0 && V.debugLog(
5055
+ c != null && (s[l.identifier] = c);
5056
+ }), Object.keys(s).length == 0 && V.debugLog(
5057
5057
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
5058
5058
  ), {
5059
- all: o,
5060
- current: s
5059
+ all: s,
5060
+ current: o
5061
5061
  };
5062
5062
  });
5063
- this._API_KEY = e, this._appUserId = r, Ke(e) && V.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new os(this._API_KEY), this.purchaseOperationHelper = new Dn(this.backend);
5063
+ this._API_KEY = e, this._appUserId = r, qe(e) && V.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new so(this._API_KEY), this.purchaseOperationHelper = new Dn(this.backend);
5064
5064
  }
5065
5065
  /**
5066
5066
  * Set the log level. Logs of the given level and below will be printed
@@ -5098,14 +5098,14 @@ const J = class J {
5098
5098
  static configure(e, r) {
5099
5099
  return J.instance !== void 0 ? (V.warnLog(
5100
5100
  "Purchases is already initialized. Ignoring and returning existing instance."
5101
- ), J.getSharedInstance()) : (Ps(e), Ts(r), J.instance = new J(e, r), J.getSharedInstance());
5101
+ ), J.getSharedInstance()) : (To(e), Ro(r), J.instance = new J(e, r), J.getSharedInstance());
5102
5102
  }
5103
5103
  /**
5104
5104
  * Fetch the configured offerings for this user. You can configure these
5105
5105
  * in the RevenueCat dashboard.
5106
5106
  */
5107
5107
  async getOfferings() {
5108
- const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((s) => s.packages).map((s) => s.platform_product_identifier), i = await this.backend.getProducts(
5108
+ const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((o) => o.packages).map((o) => o.platform_product_identifier), i = await this.backend.getProducts(
5109
5109
  e,
5110
5110
  n
5111
5111
  );
@@ -5144,31 +5144,31 @@ const J = class J {
5144
5144
  throw new Error(
5145
5145
  "Could not generate a mount point for the billing widget"
5146
5146
  );
5147
- const s = i, o = !n, l = this._appUserId;
5147
+ const o = i, s = !n, l = this._appUserId;
5148
5148
  return V.debugLog(
5149
5149
  `Presenting purchase form for package ${e.identifier}`
5150
5150
  ), new Promise((c, a) => {
5151
- new ks({
5152
- target: s,
5151
+ new $o({
5152
+ target: o,
5153
5153
  props: {
5154
5154
  appUserId: l,
5155
5155
  rcPackage: e,
5156
5156
  customerEmail: r,
5157
5157
  onFinished: async () => {
5158
- V.debugLog("Purchase finished"), s.innerHTML = "", c({
5158
+ V.debugLog("Purchase finished"), o.innerHTML = "", c({
5159
5159
  customerInfo: await this._getCustomerInfoForUserId(l)
5160
5160
  });
5161
5161
  },
5162
5162
  onClose: () => {
5163
- s.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new ee(ue.UserCancelledError));
5163
+ o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new ee(ue.UserCancelledError));
5164
5164
  },
5165
5165
  onError: (f) => {
5166
- s.innerHTML = "", a(ee.getForPurchasesFlowError(f));
5166
+ o.innerHTML = "", a(ee.getForPurchasesFlowError(f));
5167
5167
  },
5168
5168
  purchases: this,
5169
5169
  backend: this.backend,
5170
5170
  purchaseOperationHelper: this.purchaseOperationHelper,
5171
- asModal: o
5171
+ asModal: s
5172
5172
  }
5173
5173
  });
5174
5174
  });
@@ -5199,11 +5199,11 @@ const J = class J {
5199
5199
  logMissingProductIds(e, r) {
5200
5200
  const n = {};
5201
5201
  r.forEach(
5202
- (s) => n[s.identifier] = s
5202
+ (o) => n[o.identifier] = o
5203
5203
  );
5204
5204
  const i = [];
5205
- e.forEach((s) => {
5206
- n[s] === void 0 && i.push(s);
5205
+ e.forEach((o) => {
5206
+ n[o] === void 0 && i.push(o);
5207
5207
  }), i.length > 0 && V.debugLog(
5208
5208
  `Could not find product data for product ids:
5209
5209
  ${i.join()}.
@@ -5214,7 +5214,7 @@ const J = class J {
5214
5214
  * @returns Whether the SDK is using a sandbox API Key.
5215
5215
  */
5216
5216
  isSandbox() {
5217
- return Ke(this._API_KEY);
5217
+ return qe(this._API_KEY);
5218
5218
  }
5219
5219
  /**
5220
5220
  * Closes the Purchases instance. You should never have to do this normally.
@@ -5227,7 +5227,7 @@ const J = class J {
5227
5227
  /** @internal */
5228
5228
  async _getCustomerInfoForUserId(e) {
5229
5229
  const r = await this.backend.getCustomerInfo(e);
5230
- return ys(r);
5230
+ return Do(r);
5231
5231
  }
5232
5232
  };
5233
5233
  /** @internal */