@revenuecat/purchases-js 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var Ot = Object.defineProperty;
2
2
  var Lt = (t, e, r) => e in t ? Ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var C = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
3
+ var Q = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
4
  function xt(t) {
5
5
  return t != null;
6
6
  }
@@ -75,18 +75,18 @@ function bt(t) {
75
75
  function Xe() {
76
76
  return /* @__PURE__ */ Object.create(null);
77
77
  }
78
- function we(t) {
78
+ function ke(t) {
79
79
  t.forEach(bt);
80
80
  }
81
- function ce(t) {
81
+ function ae(t) {
82
82
  return typeof t == "function";
83
83
  }
84
84
  function P(t, e) {
85
85
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
86
86
  }
87
- let Be;
88
- function X(t, e) {
89
- return t === e ? !0 : (Be || (Be = document.createElement("a")), Be.href = e, t === Be.href);
87
+ let ye;
88
+ function Z(t, e) {
89
+ return t === e ? !0 : (ye || (ye = document.createElement("a")), ye.href = e, t === ye.href);
90
90
  }
91
91
  function Ze(t) {
92
92
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
@@ -99,7 +99,7 @@ function qt(t, e) {
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[s][0], i) || X(i, r[s][0]))
102
+ (Z(r[s][0], i) || Z(i, r[s][0]))
103
103
  );
104
104
  }
105
105
  function jt(t) {
@@ -144,7 +144,7 @@ function q(t) {
144
144
  }
145
145
  return -1;
146
146
  }
147
- function Ee(t) {
147
+ function Ie(t) {
148
148
  return t ?? "";
149
149
  }
150
150
  function D(t, e) {
@@ -183,16 +183,16 @@ function g(t) {
183
183
  function k(t) {
184
184
  return document.createElement(t);
185
185
  }
186
- function N(t) {
186
+ function R(t) {
187
187
  return document.createTextNode(t);
188
188
  }
189
189
  function T() {
190
- return N(" ");
190
+ return R(" ");
191
191
  }
192
- function Z() {
193
- return N("");
192
+ function ee() {
193
+ return R("");
194
194
  }
195
- function ke(t, e, r, n) {
195
+ function $e(t, e, r, n) {
196
196
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
197
197
  }
198
198
  function kt(t) {
@@ -200,14 +200,14 @@ function kt(t) {
200
200
  return e.preventDefault(), t.call(this, e);
201
201
  };
202
202
  }
203
- function A(t, e, r) {
203
+ function _(t, e, r) {
204
204
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
205
205
  }
206
206
  const Wt = ["width", "height"];
207
207
  function zt(t, e) {
208
208
  const r = Object.getOwnPropertyDescriptors(t.__proto__);
209
209
  for (const n in e)
210
- e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] : A(t, n, e[n]);
210
+ e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
211
211
  }
212
212
  function Xt(t, e) {
213
213
  Object.keys(e).forEach((r) => {
@@ -216,7 +216,7 @@ function Xt(t, e) {
216
216
  }
217
217
  function Zt(t, e, r) {
218
218
  const n = e.toLowerCase();
219
- n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : A(t, e, r);
219
+ n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : _(t, e, r);
220
220
  }
221
221
  function en(t) {
222
222
  return /-/.test(t) ? Xt : zt;
@@ -224,7 +224,7 @@ function en(t) {
224
224
  function tn(t) {
225
225
  return Array.from(t.childNodes);
226
226
  }
227
- function te(t, e) {
227
+ function ne(t, e) {
228
228
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
229
229
  e);
230
230
  }
@@ -234,20 +234,20 @@ function et(t, e) {
234
234
  function nn(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
235
235
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
236
236
  }
237
- let Ie;
237
+ let be;
238
238
  function he(t) {
239
- Ie = t;
239
+ be = t;
240
240
  }
241
- function Ne() {
242
- if (!Ie)
241
+ function Re() {
242
+ if (!be)
243
243
  throw new Error("Function called outside component initialization");
244
- return Ie;
244
+ return be;
245
245
  }
246
246
  function Se(t) {
247
- Ne().$$.on_mount.push(t);
247
+ Re().$$.on_mount.push(t);
248
248
  }
249
249
  function rn() {
250
- const t = Ne();
250
+ const t = Re();
251
251
  return (e, r, { cancelable: n = !1 } = {}) => {
252
252
  const i = t.$$.callbacks[e];
253
253
  if (i) {
@@ -265,88 +265,88 @@ function rn() {
265
265
  };
266
266
  }
267
267
  function on(t, e) {
268
- return Ne().$$.context.set(t, e), e;
268
+ return Re().$$.context.set(t, e), e;
269
269
  }
270
270
  function sn(t) {
271
- return Ne().$$.context.get(t);
271
+ return Re().$$.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 se = [], Re = [];
278
- let le = [];
277
+ const le = [], Ne = [];
278
+ let ce = [];
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
284
  function Ke(t) {
285
- le.push(t);
285
+ ce.push(t);
286
286
  }
287
287
  function an(t) {
288
288
  Ye.push(t);
289
289
  }
290
290
  const xe = /* @__PURE__ */ new Set();
291
- let ie = 0;
291
+ let oe = 0;
292
292
  function vt() {
293
- if (ie !== 0)
293
+ if (oe !== 0)
294
294
  return;
295
- const t = Ie;
295
+ const t = be;
296
296
  do {
297
297
  try {
298
- for (; ie < se.length; ) {
299
- const e = se[ie];
300
- ie++, he(e), un(e.$$);
298
+ for (; oe < le.length; ) {
299
+ const e = le[oe];
300
+ oe++, he(e), un(e.$$);
301
301
  }
302
302
  } catch (e) {
303
- throw se.length = 0, ie = 0, e;
303
+ throw le.length = 0, oe = 0, e;
304
304
  }
305
- for (he(null), se.length = 0, ie = 0; Re.length; )
306
- Re.pop()();
307
- for (let e = 0; e < le.length; e += 1) {
308
- const r = le[e];
305
+ for (he(null), le.length = 0, oe = 0; Ne.length; )
306
+ Ne.pop()();
307
+ for (let e = 0; e < ce.length; e += 1) {
308
+ const r = ce[e];
309
309
  xe.has(r) || (xe.add(r), r());
310
310
  }
311
- le.length = 0;
312
- } while (se.length);
311
+ ce.length = 0;
312
+ } while (le.length);
313
313
  for (; Ye.length; )
314
314
  Ye.pop()();
315
315
  He = !1, xe.clear(), he(t);
316
316
  }
317
317
  function un(t) {
318
318
  if (t.fragment !== null) {
319
- t.update(), we(t.before_update);
319
+ t.update(), ke(t.before_update);
320
320
  const e = t.dirty;
321
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) {
325
325
  const e = [], r = [];
326
- le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
326
+ ce.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ce = e;
327
327
  }
328
- const Me = /* @__PURE__ */ new Set();
329
- let ne;
328
+ const Qe = /* @__PURE__ */ new Set();
329
+ let re;
330
330
  function L() {
331
- ne = {
331
+ re = {
332
332
  r: 0,
333
333
  c: [],
334
- p: ne
334
+ p: re
335
335
  // parent group
336
336
  };
337
337
  }
338
338
  function x() {
339
- ne.r || we(ne.c), ne = ne.p;
339
+ re.r || ke(re.c), re = re.p;
340
340
  }
341
341
  function u(t, e) {
342
- t && t.i && (Me.delete(t), t.i(e));
342
+ t && t.i && (Qe.delete(t), t.i(e));
343
343
  }
344
344
  function m(t, e, r, n) {
345
345
  if (t && t.o) {
346
- if (Me.has(t))
346
+ if (Qe.has(t))
347
347
  return;
348
- Me.add(t), ne.c.push(() => {
349
- Me.delete(t), n && (r && t.d(1), n());
348
+ Qe.add(t), re.c.push(() => {
349
+ Qe.delete(t), n && (r && t.d(1), n());
350
350
  }), t.o(e);
351
351
  } else
352
352
  n && n();
@@ -361,19 +361,19 @@ function w(t) {
361
361
  function I(t, e, r) {
362
362
  const { fragment: n, after_update: i } = t.$$;
363
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 = [];
364
+ const o = t.$$.on_mount.map(bt).filter(ae);
365
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : ke(o), t.$$.on_mount = [];
366
366
  }), i.forEach(Ke);
367
367
  }
368
368
  function b(t, e) {
369
369
  const r = t.$$;
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 = []);
370
+ r.fragment !== null && (fn(r.after_update), ke(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 && (se.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
373
+ t.$$.dirty[0] === -1 && (le.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, o, s = null, l = [-1]) {
376
- const c = Ie;
375
+ function N(t, e, r, n, i, o, s = null, l = [-1]) {
376
+ const c = be;
377
377
  he(t);
378
378
  const a = t.$$ = {
379
379
  fragment: null,
@@ -399,9 +399,9 @@ function R(t, e, r, n, i, o, s = null, l = [-1]) {
399
399
  s && s(a.root);
400
400
  let f = !1;
401
401
  if (a.ctx = r ? r(t, e.props || {}, (d, E, ...v) => {
402
- const _ = v.length ? v[0] : E;
403
- return a.ctx && i(a.ctx[d], a.ctx[d] = _) && (!a.skip_bound && a.bound[d] && a.bound[d](_), f && mn(t, d)), E;
404
- }) : [], a.update(), f = !0, we(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
402
+ const A = v.length ? v[0] : E;
403
+ return a.ctx && i(a.ctx[d], a.ctx[d] = A) && (!a.skip_bound && a.bound[d] && a.bound[d](A), f && mn(t, d)), E;
404
+ }) : [], a.update(), f = !0, ke(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
405
405
  if (e.hydrate) {
406
406
  const d = tn(e.target);
407
407
  a.fragment && a.fragment.l(d), d.forEach(g);
@@ -420,7 +420,7 @@ class U {
420
420
  *
421
421
  * @type {any}
422
422
  */
423
- C(this, "$$");
423
+ Q(this, "$$");
424
424
  /**
425
425
  * ### PRIVATE API
426
426
  *
@@ -428,7 +428,7 @@ class U {
428
428
  *
429
429
  * @type {any}
430
430
  */
431
- C(this, "$$set");
431
+ Q(this, "$$set");
432
432
  }
433
433
  /** @returns {void} */
434
434
  $destroy() {
@@ -441,7 +441,7 @@ class U {
441
441
  * @returns {() => void}
442
442
  */
443
443
  $on(e, r) {
444
- if (!ce(r))
444
+ if (!ae(r))
445
445
  return B;
446
446
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
447
447
  return n.push(r), () => {
@@ -483,7 +483,7 @@ function Fe(t) {
483
483
  /*as*/
484
484
  t[0]
485
485
  )(e, {
486
- class: Ee("rcb-modal-section") + " svelte-1bzqb13"
486
+ class: Ie("rcb-modal-section") + " svelte-1bzqb13"
487
487
  });
488
488
  },
489
489
  m(o, s) {
@@ -521,7 +521,7 @@ function Fe(t) {
521
521
  }
522
522
  };
523
523
  }
524
- function An(t) {
524
+ function _n(t) {
525
525
  let e = (
526
526
  /*as*/
527
527
  t[0]
@@ -531,7 +531,7 @@ function An(t) {
531
531
  );
532
532
  return {
533
533
  c() {
534
- i && i.c(), r = Z();
534
+ i && i.c(), r = ee();
535
535
  },
536
536
  m(o, s) {
537
537
  i && i.m(o, s), p(o, r, s), n = !0;
@@ -558,15 +558,15 @@ function An(t) {
558
558
  }
559
559
  };
560
560
  }
561
- function _n(t, e, r) {
561
+ function An(t, e, r) {
562
562
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
563
563
  return t.$$set = (s) => {
564
564
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
565
565
  }, [o, i, n];
566
566
  }
567
- class ae extends U {
567
+ class ue extends U {
568
568
  constructor(e) {
569
- super(), R(this, e, _n, An, P, { as: 0 }, pn);
569
+ super(), N(this, e, An, _n, P, { as: 0 }, pn);
570
570
  }
571
571
  }
572
572
  var j = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(j || {});
@@ -611,7 +611,7 @@ class V {
611
611
  this.log(e, j.Verbose);
612
612
  }
613
613
  }
614
- C(V, "logLevel", j.Silent);
614
+ Q(V, "logLevel", j.Silent);
615
615
  var pe = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(pe || {});
616
616
  function hn(t) {
617
617
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
@@ -687,33 +687,33 @@ function In(t) {
687
687
  t[0].currentPrice.amount,
688
688
  /*productDetails*/
689
689
  t[0].currentPrice.currency
690
- ) + "", E, v, _, M, h, y = nt(
690
+ ) + "", E, v, A, M, h, y = nt(
691
691
  /*productDetails*/
692
692
  t[0].normalPeriodDuration
693
- ) + "", F, $, de, ve, re;
693
+ ) + "", F, $, de, Be, ie;
694
694
  return {
695
695
  c() {
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");
696
+ e = k("div"), r = k("span"), i = R(n), o = T(), s = k("span"), c = R(l), f = R(a), E = R(d), v = T(), A = k("ul"), M = k("li"), h = R("Billed "), F = R(y), $ = T(), de = k("li"), de.textContent = "Continues until canceled", Be = T(), ie = k("li"), ie.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-i5dq8q"), _(A, "class", "rcb-product-details svelte-i5dq8q"), _(e, "class", "rcb-pricing-info svelte-i5dq8q");
697
697
  },
698
698
  m(z, W) {
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);
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, A), D(A, M), D(M, h), D(M, F), D(A, $), D(A, de), D(A, Be), D(A, ie);
700
700
  },
701
701
  p(z, W) {
702
702
  W & /*productDetails*/
703
703
  1 && n !== (n = /*productDetails*/
704
- z[0].displayName + "") && te(i, n), W & /*productDetails*/
704
+ z[0].displayName + "") && ne(i, n), W & /*productDetails*/
705
705
  1 && l !== (l = /*productDetails*/
706
- z[0].currentPrice.currency + "") && te(c, l), W & /*productDetails*/
706
+ z[0].currentPrice.currency + "") && ne(c, l), W & /*productDetails*/
707
707
  1 && d !== (d = tt(
708
708
  /*productDetails*/
709
709
  z[0].currentPrice.amount,
710
710
  /*productDetails*/
711
711
  z[0].currentPrice.currency
712
- ) + "") && te(E, d), W & /*productDetails*/
712
+ ) + "") && ne(E, d), W & /*productDetails*/
713
713
  1 && y !== (y = nt(
714
714
  /*productDetails*/
715
715
  z[0].normalPeriodDuration
716
- ) + "") && te(F, y);
716
+ ) + "") && ne(F, y);
717
717
  },
718
718
  d(z) {
719
719
  z && g(e);
@@ -722,7 +722,7 @@ function In(t) {
722
722
  }
723
723
  function bn(t) {
724
724
  let e, r;
725
- return e = new ae({
725
+ return e = new ue({
726
726
  props: {
727
727
  $$slots: { default: [In] },
728
728
  $$scope: { ctx: t }
@@ -758,7 +758,7 @@ function wn(t, e, r) {
758
758
  }
759
759
  class Bt extends U {
760
760
  constructor(e) {
761
- super(), R(this, e, wn, bn, P, { productDetails: 0 }, En);
761
+ super(), N(this, e, wn, bn, P, { productDetails: 0 }, En);
762
762
  }
763
763
  }
764
764
  const kn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQA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xa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
@@ -766,7 +766,7 @@ function $n(t) {
766
766
  let e, r;
767
767
  return {
768
768
  c() {
769
- e = k("img"), X(e.src, r = kn) || A(e, "src", r), A(e, "alt", "spinner");
769
+ e = k("img"), Z(e.src, r = kn) || _(e, "src", r), _(e, "alt", "spinner");
770
770
  },
771
771
  m(n, i) {
772
772
  p(n, e, i);
@@ -781,7 +781,7 @@ function $n(t) {
781
781
  }
782
782
  class vn extends U {
783
783
  constructor(e) {
784
- super(), R(this, e, null, $n, P, {});
784
+ super(), N(this, e, null, $n, P, {});
785
785
  }
786
786
  }
787
787
  function Bn(t) {
@@ -791,7 +791,7 @@ function yn(t) {
791
791
  let e, r, n;
792
792
  return r = new vn({}), {
793
793
  c() {
794
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-modal-loader svelte-1mxx341");
794
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
795
795
  },
796
796
  m(i, o) {
797
797
  p(i, e, o), I(r, e, null), n = !0;
@@ -810,10 +810,10 @@ function yn(t) {
810
810
  }
811
811
  class je extends U {
812
812
  constructor(e) {
813
- super(), R(this, e, null, yn, P, {}, Bn);
813
+ super(), N(this, e, null, yn, P, {}, Bn);
814
814
  }
815
815
  }
816
- var Ae = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(Ae || {}), Ce = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Ce || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
816
+ var _e = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(_e || {}), Pe = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Pe || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
817
817
  class G extends Error {
818
818
  constructor(e, r, n) {
819
819
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
@@ -821,10 +821,10 @@ class G extends Error {
821
821
  }
822
822
  class Dn {
823
823
  constructor(e, r = 10) {
824
- C(this, "operationSessionId", null);
825
- C(this, "backend");
826
- C(this, "maxNumberAttempts");
827
- C(this, "waitMSBetweenAttempts", 1e3);
824
+ Q(this, "operationSessionId", null);
825
+ Q(this, "backend");
826
+ Q(this, "maxNumberAttempts");
827
+ Q(this, "waitMSBetweenAttempts", 1e3);
828
828
  this.backend = e, this.maxNumberAttempts = r;
829
829
  }
830
830
  async startPurchase(e, r, n, i) {
@@ -856,17 +856,17 @@ class Dn {
856
856
  }
857
857
  this.backend.getCheckoutStatus(e).then((s) => {
858
858
  switch (s.operation.status) {
859
- case Ae.Started:
860
- case Ae.InProgress:
859
+ case _e.Started:
860
+ case _e.InProgress:
861
861
  setTimeout(
862
862
  () => i(o + 1),
863
863
  this.waitMSBetweenAttempts
864
864
  );
865
865
  break;
866
- case Ae.Succeeded:
866
+ case _e.Succeeded:
867
867
  this.clearPurchaseInProgress(), r();
868
868
  return;
869
- case Ae.Failed:
869
+ case _e.Failed:
870
870
  this.clearPurchaseInProgress(), this.handlePaymentError(
871
871
  s.operation.error,
872
872
  n
@@ -898,7 +898,7 @@ class Dn {
898
898
  return;
899
899
  }
900
900
  switch (e.code) {
901
- case Ce.SetupIntentCreationFailed:
901
+ case Pe.SetupIntentCreationFailed:
902
902
  r(
903
903
  new G(
904
904
  0,
@@ -906,7 +906,7 @@ class Dn {
906
906
  )
907
907
  );
908
908
  return;
909
- case Ce.PaymentMethodCreationFailed:
909
+ case Pe.PaymentMethodCreationFailed:
910
910
  r(
911
911
  new G(
912
912
  0,
@@ -914,7 +914,7 @@ class Dn {
914
914
  )
915
915
  );
916
916
  return;
917
- case Ce.PaymentChargeFailed:
917
+ case Pe.PaymentChargeFailed:
918
918
  r(
919
919
  new G(
920
920
  1,
@@ -925,15 +925,15 @@ class Dn {
925
925
  }
926
926
  }
927
927
  }
928
- const Qn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
928
+ const Cn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
929
929
  function Mn(t) {
930
930
  O(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
931
931
  }
932
- function Cn(t) {
932
+ function Qn(t) {
933
933
  let e, r;
934
934
  return {
935
935
  c() {
936
- e = k("img"), X(e.src, r = Qn) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon svelte-1609h93");
936
+ e = k("img"), Z(e.src, r = Cn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
937
937
  },
938
938
  m(n, i) {
939
939
  p(n, e, i);
@@ -948,13 +948,13 @@ function Cn(t) {
948
948
  }
949
949
  class Pn extends U {
950
950
  constructor(e) {
951
- super(), R(this, e, null, Cn, P, {}, Mn);
951
+ super(), N(this, e, null, Qn, P, {}, Mn);
952
952
  }
953
953
  }
954
954
  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
- function Rn(t) {
957
+ function Nn(t) {
958
958
  let e, r, n, i, o;
959
959
  const s = (
960
960
  /*#slots*/
@@ -968,12 +968,12 @@ function Rn(t) {
968
968
  );
969
969
  return {
970
970
  c() {
971
- e = k("button"), l && l.c(), A(e, "class", r = Ee(`intent-${/*intent*/
971
+ e = k("button"), l && l.c(), _(e, "class", r = Ie(`intent-${/*intent*/
972
972
  t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
973
973
  t[1];
974
974
  },
975
975
  m(c, a) {
976
- p(c, e, a), l && l.m(e, null), n = !0, i || (o = ke(
976
+ p(c, e, a), l && l.m(e, null), n = !0, i || (o = $e(
977
977
  e,
978
978
  "click",
979
979
  /*click_handler*/
@@ -1000,8 +1000,8 @@ function Rn(t) {
1000
1000
  ),
1001
1001
  null
1002
1002
  ), (!n || a & /*intent*/
1003
- 1 && r !== (r = Ee(`intent-${/*intent*/
1004
- c[0]}`) + " svelte-1rmxk7q")) && A(e, "class", r), (!n || a & /*disabled*/
1003
+ 1 && r !== (r = Ie(`intent-${/*intent*/
1004
+ c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
1005
1005
  2) && (e.disabled = /*disabled*/
1006
1006
  c[1]);
1007
1007
  },
@@ -1025,12 +1025,12 @@ function Un(t, e, r) {
1025
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
1026
  }, [o, s, i, n, l];
1027
1027
  }
1028
- class be extends U {
1028
+ class we extends U {
1029
1029
  constructor(e) {
1030
- super(), R(this, e, Un, Rn, P, { intent: 0, disabled: 1 }, Tn);
1030
+ super(), N(this, e, Un, Nn, P, { intent: 0, disabled: 1 }, Tn);
1031
1031
  }
1032
1032
  }
1033
- function Nn(t) {
1033
+ function Rn(t) {
1034
1034
  O(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1035
1035
  }
1036
1036
  function Sn(t) {
@@ -1047,7 +1047,7 @@ function Sn(t) {
1047
1047
  );
1048
1048
  return {
1049
1049
  c() {
1050
- e = k("footer"), i && i.c(), A(e, "class", "rcb-modal-footer svelte-1f9z0o8");
1050
+ e = k("footer"), i && i.c(), _(e, "class", "rcb-modal-footer svelte-1f9z0o8");
1051
1051
  },
1052
1052
  m(o, s) {
1053
1053
  p(o, e, s), i && i.m(e, null), r = !0;
@@ -1092,7 +1092,7 @@ function On(t, e, r) {
1092
1092
  }
1093
1093
  class Je extends U {
1094
1094
  constructor(e) {
1095
- super(), R(this, e, On, Sn, P, {}, Nn);
1095
+ super(), N(this, e, On, Sn, P, {}, Rn);
1096
1096
  }
1097
1097
  }
1098
1098
  function Ln(t) {
@@ -1112,7 +1112,7 @@ function xn(t) {
1112
1112
  );
1113
1113
  return {
1114
1114
  c() {
1115
- e = k("div"), o && o.c(), A(e, "class", "column svelte-6o8e90"), A(e, "style", r = `--gap:${/*gutter*/
1115
+ e = k("div"), o && o.c(), _(e, "class", "column svelte-6o8e90"), _(e, "style", r = `--gap:${/*gutter*/
1116
1116
  t[0]};`);
1117
1117
  },
1118
1118
  m(s, l) {
@@ -1139,7 +1139,7 @@ function xn(t) {
1139
1139
  null
1140
1140
  ), (!n || l & /*gutter*/
1141
1141
  1 && r !== (r = `--gap:${/*gutter*/
1142
- s[0]};`)) && A(e, "style", r);
1142
+ s[0]};`)) && _(e, "style", r);
1143
1143
  },
1144
1144
  i(s) {
1145
1145
  n || (u(o, s), n = !0);
@@ -1158,9 +1158,9 @@ function Fn(t, e, r) {
1158
1158
  "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1159
1159
  }, [o, i, n];
1160
1160
  }
1161
- class $e extends U {
1161
+ class ve extends U {
1162
1162
  constructor(e) {
1163
- super(), R(this, e, Fn, xn, P, { gutter: 0 }, Ln);
1163
+ super(), N(this, e, Fn, xn, P, { gutter: 0 }, Ln);
1164
1164
  }
1165
1165
  }
1166
1166
  const Gn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
@@ -1171,11 +1171,11 @@ function Hn(t) {
1171
1171
  let e, r, n, i, o;
1172
1172
  return {
1173
1173
  c() {
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*/
1174
+ e = k("button"), r = k("img"), Z(r.src, n = Gn) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1175
1175
  t[0];
1176
1176
  },
1177
1177
  m(s, l) {
1178
- p(s, e, l), D(e, r), i || (o = ke(
1178
+ p(s, e, l), D(e, r), i || (o = $e(
1179
1179
  e,
1180
1180
  "click",
1181
1181
  /*click_handler*/
@@ -1205,7 +1205,7 @@ function Kn(t, e, r) {
1205
1205
  }
1206
1206
  class qn extends U {
1207
1207
  constructor(e) {
1208
- super(), R(this, e, Kn, Hn, P, { disabled: 0 }, Yn);
1208
+ super(), N(this, e, Kn, Hn, P, { disabled: 0 }, Yn);
1209
1209
  }
1210
1210
  }
1211
1211
  function jn(t) {
@@ -1215,7 +1215,7 @@ function Jn(t) {
1215
1215
  let e;
1216
1216
  return {
1217
1217
  c() {
1218
- e = k("div"), A(e, "class", "rcb-app-icon loading svelte-44qpq9");
1218
+ e = k("div"), _(e, "class", "rcb-app-icon loading svelte-44qpq9");
1219
1219
  },
1220
1220
  m(r, n) {
1221
1221
  p(r, e, n);
@@ -1230,9 +1230,9 @@ function Vn(t) {
1230
1230
  let e, r, n, i, o, s;
1231
1231
  return {
1232
1232
  c() {
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");
1233
+ e = k("picture"), r = k("source"), i = T(), o = k("img"), _(r, "type", "image/webp"), qt(r, n = /*srcWebp*/
1234
+ t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), Z(o.src, s = /*src*/
1235
+ t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1236
1236
  },
1237
1237
  m(l, c) {
1238
1238
  p(l, e, c), D(e, r), D(e, i), D(e, o);
@@ -1240,9 +1240,9 @@ function Vn(t) {
1240
1240
  p(l, c) {
1241
1241
  c & /*srcWebp*/
1242
1242
  2 && n !== (n = /*srcWebp*/
1243
- l[1]) && A(r, "srcset", n), c & /*src*/
1244
- 1 && !X(o.src, s = /*src*/
1245
- l[0]) && A(o, "src", s);
1243
+ l[1]) && _(r, "srcset", n), c & /*src*/
1244
+ 1 && !Z(o.src, s = /*src*/
1245
+ l[0]) && _(o, "src", s);
1246
1246
  },
1247
1247
  d(l) {
1248
1248
  l && g(e);
@@ -1260,7 +1260,7 @@ function Wn(t) {
1260
1260
  let n = r(t), i = n(t);
1261
1261
  return {
1262
1262
  c() {
1263
- i.c(), e = Z();
1263
+ i.c(), e = ee();
1264
1264
  },
1265
1265
  m(o, s) {
1266
1266
  i.m(o, s), p(o, e, s);
@@ -1283,10 +1283,10 @@ function zn(t, e, r) {
1283
1283
  }
1284
1284
  class yt extends U {
1285
1285
  constructor(e) {
1286
- super(), R(this, e, zn, Wn, P, { src: 0, srcWebp: 1 }, jn);
1286
+ super(), N(this, e, zn, Wn, P, { src: 0, srcWebp: 1 }, jn);
1287
1287
  }
1288
1288
  }
1289
- const ye = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1289
+ const De = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1290
1290
  function Xn(t) {
1291
1291
  O(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1292
1292
  }
@@ -1322,7 +1322,7 @@ function er(t) {
1322
1322
  );
1323
1323
  return {
1324
1324
  c() {
1325
- s && s.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 = R(n), _(r, "class", "app-title svelte-10uf5fq");
1326
1326
  },
1327
1327
  m(l, c) {
1328
1328
  s && s.m(l, c), p(l, e, c), p(l, r, c), D(r, i), o = !0;
@@ -1335,7 +1335,7 @@ function er(t) {
1335
1335
  s = null;
1336
1336
  }), x()), (!o || c & /*brandingInfo*/
1337
1337
  1) && n !== (n = /*brandingInfo*/
1338
- l[0].seller_company_name + "") && te(i, n);
1338
+ l[0].seller_company_name + "") && ne(i, n);
1339
1339
  },
1340
1340
  i(l) {
1341
1341
  o || (u(s), o = !0);
@@ -1352,11 +1352,11 @@ function rt(t) {
1352
1352
  let e, r;
1353
1353
  return e = new yt({
1354
1354
  props: {
1355
- src: ye(
1355
+ src: De(
1356
1356
  /*brandingInfo*/
1357
1357
  t[0].app_icon
1358
1358
  ),
1359
- srcWebp: ye(
1359
+ srcWebp: De(
1360
1360
  /*brandingInfo*/
1361
1361
  t[0].app_icon_webp
1362
1362
  )
@@ -1371,11 +1371,11 @@ function rt(t) {
1371
1371
  p(n, i) {
1372
1372
  const o = {};
1373
1373
  i & /*brandingInfo*/
1374
- 1 && (o.src = ye(
1374
+ 1 && (o.src = De(
1375
1375
  /*brandingInfo*/
1376
1376
  n[0].app_icon
1377
1377
  )), i & /*brandingInfo*/
1378
- 1 && (o.srcWebp = ye(
1378
+ 1 && (o.srcWebp = De(
1379
1379
  /*brandingInfo*/
1380
1380
  n[0].app_icon_webp
1381
1381
  )), e.$set(o);
@@ -1402,7 +1402,7 @@ function tr(t) {
1402
1402
  }
1403
1403
  return r = l(t), n = s[r] = o[r](t), {
1404
1404
  c() {
1405
- e = k("div"), n.c(), A(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
1405
+ e = k("div"), n.c(), _(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
1406
1406
  },
1407
1407
  m(c, a) {
1408
1408
  p(c, e, a), s[r].m(e, null), i = !0;
@@ -1432,7 +1432,7 @@ function nr(t, e, r) {
1432
1432
  }
1433
1433
  class Dt extends U {
1434
1434
  constructor(e) {
1435
- super(), R(this, e, nr, tr, P, { brandingInfo: 0 }, Xn);
1435
+ super(), N(this, e, nr, tr, P, { brandingInfo: 0 }, Xn);
1436
1436
  }
1437
1437
  }
1438
1438
  function rr(t) {
@@ -1446,13 +1446,13 @@ function ir(t) {
1446
1446
  t[0]
1447
1447
  ) }
1448
1448
  }), i = new qn({}), i.$on("click", function() {
1449
- ce(
1449
+ ae(
1450
1450
  /*onClose*/
1451
1451
  t[1]
1452
1452
  ) && t[1].apply(this, arguments);
1453
1453
  }), {
1454
1454
  c() {
1455
- e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), A(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1455
+ e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1456
1456
  },
1457
1457
  m(s, l) {
1458
1458
  p(s, e, l), I(r, e, null), D(e, n), I(i, e, null), o = !0;
@@ -1477,7 +1477,7 @@ function ir(t) {
1477
1477
  }
1478
1478
  function or(t) {
1479
1479
  let e, r;
1480
- return e = new ae({
1480
+ return e = new ue({
1481
1481
  props: {
1482
1482
  as: "header",
1483
1483
  $$slots: { default: [ir] },
@@ -1514,7 +1514,7 @@ function sr(t, e, r) {
1514
1514
  }
1515
1515
  class lr extends U {
1516
1516
  constructor(e) {
1517
- super(), R(this, e, sr, or, P, { brandingInfo: 0, onClose: 1 }, rr);
1517
+ super(), N(this, e, sr, or, P, { brandingInfo: 0, onClose: 1 }, rr);
1518
1518
  }
1519
1519
  }
1520
1520
  function cr(t) {
@@ -1535,17 +1535,17 @@ function ur(t) {
1535
1535
  );
1536
1536
  return {
1537
1537
  c() {
1538
- e = k("span"), r = N(
1538
+ e = k("span"), r = R(
1539
1539
  /*title*/
1540
1540
  t[2]
1541
- ), n = T(), i = k("span"), l && l.c(), A(e, "class", "title svelte-10pcqja"), A(i, "class", "subtitle svelte-10pcqja");
1541
+ ), n = T(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1542
1542
  },
1543
1543
  m(c, a) {
1544
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
1547
  (!o || a & /*title*/
1548
- 4) && te(
1548
+ 4) && ne(
1549
1549
  r,
1550
1550
  /*title*/
1551
1551
  c[2]
@@ -1592,7 +1592,7 @@ function fr(t) {
1592
1592
  t[5],
1593
1593
  it
1594
1594
  );
1595
- return r = new $e({
1595
+ return r = new ve({
1596
1596
  props: {
1597
1597
  gutter: "16px",
1598
1598
  $$slots: { default: [ur] },
@@ -1642,7 +1642,7 @@ function fr(t) {
1642
1642
  }
1643
1643
  function dr(t) {
1644
1644
  let e, r, n;
1645
- return r = new $e({
1645
+ return r = new ve({
1646
1646
  props: {
1647
1647
  gutter: "16px",
1648
1648
  $$slots: { default: [fr] },
@@ -1650,7 +1650,7 @@ function dr(t) {
1650
1650
  }
1651
1651
  }), {
1652
1652
  c() {
1653
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-modal-message svelte-10pcqja"), A(
1653
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-message svelte-10pcqja"), _(
1654
1654
  e,
1655
1655
  "data-type",
1656
1656
  /*type*/
@@ -1664,7 +1664,7 @@ function dr(t) {
1664
1664
  const s = {};
1665
1665
  o & /*$$scope, title*/
1666
1666
  36 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s), (!n || o & /*type*/
1667
- 8) && A(
1667
+ 8) && _(
1668
1668
  e,
1669
1669
  "data-type",
1670
1670
  /*type*/
@@ -1686,7 +1686,7 @@ function mr(t) {
1686
1686
  let e;
1687
1687
  return {
1688
1688
  c() {
1689
- e = N("Go back to app");
1689
+ e = R("Go back to app");
1690
1690
  },
1691
1691
  m(r, n) {
1692
1692
  p(r, e, n);
@@ -1698,13 +1698,13 @@ function mr(t) {
1698
1698
  }
1699
1699
  function gr(t) {
1700
1700
  let e, r;
1701
- return e = new be({
1701
+ return e = new we({
1702
1702
  props: {
1703
1703
  $$slots: { default: [mr] },
1704
1704
  $$scope: { ctx: t }
1705
1705
  }
1706
1706
  }), e.$on("click", function() {
1707
- ce(
1707
+ ae(
1708
1708
  /*onContinue*/
1709
1709
  t[1]
1710
1710
  ) && t[1].apply(this, arguments);
@@ -1745,7 +1745,7 @@ function pr(t) {
1745
1745
  t[1]
1746
1746
  )
1747
1747
  }
1748
- }), n = new ae({
1748
+ }), n = new ue({
1749
1749
  props: {
1750
1750
  $$slots: { default: [dr] },
1751
1751
  $$scope: { ctx: t }
@@ -1787,9 +1787,9 @@ function pr(t) {
1787
1787
  }
1788
1788
  };
1789
1789
  }
1790
- function Ar(t) {
1790
+ function _r(t) {
1791
1791
  let e, r;
1792
- return e = new $e({
1792
+ return e = new ve({
1793
1793
  props: {
1794
1794
  gutter: "32px",
1795
1795
  $$slots: { default: [pr] },
@@ -1818,19 +1818,19 @@ function Ar(t) {
1818
1818
  }
1819
1819
  };
1820
1820
  }
1821
- function _r(t, e, r) {
1821
+ function Ar(t, e, r) {
1822
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
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
1825
  }, [o, s, l, c, n, i];
1826
1826
  }
1827
- class Qt extends U {
1827
+ class Ct extends U {
1828
1828
  constructor(e) {
1829
- super(), R(
1829
+ super(), N(
1830
1830
  this,
1831
1831
  e,
1832
- _r,
1833
1832
  Ar,
1833
+ _r,
1834
1834
  P,
1835
1835
  {
1836
1836
  brandingInfo: 0,
@@ -1846,10 +1846,10 @@ function ot(t) {
1846
1846
  let e, r, n, i, o;
1847
1847
  return {
1848
1848
  c() {
1849
- e = N("If this error persists, please contact "), r = k("a"), n = N(
1849
+ e = R("If this error persists, please contact "), r = k("a"), n = R(
1850
1850
  /*supportEmail*/
1851
1851
  t[1]
1852
- ), o = N("."), A(r, "href", i = "mailto:" + /*supportEmail*/
1852
+ ), o = R("."), _(r, "href", i = "mailto:" + /*supportEmail*/
1853
1853
  t[1]);
1854
1854
  },
1855
1855
  m(s, l) {
@@ -1857,13 +1857,13 @@ function ot(t) {
1857
1857
  },
1858
1858
  p(s, l) {
1859
1859
  l & /*supportEmail*/
1860
- 2 && te(
1860
+ 2 && ne(
1861
1861
  n,
1862
1862
  /*supportEmail*/
1863
1863
  s[1]
1864
1864
  ), l & /*supportEmail*/
1865
1865
  2 && i !== (i = "mailto:" + /*supportEmail*/
1866
- s[1]) && A(r, "href", i);
1866
+ s[1]) && _(r, "href", i);
1867
1867
  },
1868
1868
  d(s) {
1869
1869
  s && (g(e), g(r), g(o));
@@ -1880,7 +1880,7 @@ function hr(t) {
1880
1880
  );
1881
1881
  return {
1882
1882
  c() {
1883
- r = N(e), n = T(), o && o.c(), i = Z();
1883
+ r = R(e), n = T(), o && o.c(), i = ee();
1884
1884
  },
1885
1885
  m(s, l) {
1886
1886
  p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
@@ -1917,7 +1917,7 @@ function Er(t) {
1917
1917
  }
1918
1918
  function Ir(t) {
1919
1919
  let e, r;
1920
- return e = new Qt({
1920
+ return e = new Ct({
1921
1921
  props: {
1922
1922
  title: "Something went wrong",
1923
1923
  brandingInfo: (
@@ -1990,7 +1990,7 @@ function br(t, e, r) {
1990
1990
  }
1991
1991
  class wr extends U {
1992
1992
  constructor(e) {
1993
- super(), R(this, e, br, Ir, P, {
1993
+ super(), N(this, e, br, Ir, P, {
1994
1994
  brandingInfo: 0,
1995
1995
  lastError: 4,
1996
1996
  supportEmail: 1,
@@ -2006,7 +2006,7 @@ function vr(t) {
2006
2006
  let e, r;
2007
2007
  return {
2008
2008
  c() {
2009
- e = k("img"), X(e.src, r = kr) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2009
+ e = k("img"), Z(e.src, r = kr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2010
2010
  },
2011
2011
  m(n, i) {
2012
2012
  p(n, e, i);
@@ -2021,14 +2021,14 @@ function vr(t) {
2021
2021
  }
2022
2022
  class Br extends U {
2023
2023
  constructor(e) {
2024
- super(), R(this, e, null, vr, P, {}, $r);
2024
+ super(), N(this, e, null, vr, P, {}, $r);
2025
2025
  }
2026
2026
  }
2027
2027
  function yr(t) {
2028
2028
  let e;
2029
2029
  return {
2030
2030
  c() {
2031
- e = N("Your plan is now active.");
2031
+ e = R("Your plan is now active.");
2032
2032
  },
2033
2033
  m(r, n) {
2034
2034
  p(r, e, n);
@@ -2059,9 +2059,9 @@ function Dr(t) {
2059
2059
  }
2060
2060
  };
2061
2061
  }
2062
- function Qr(t) {
2062
+ function Cr(t) {
2063
2063
  let e, r;
2064
- return e = new Qt({
2064
+ return e = new Ct({
2065
2065
  props: {
2066
2066
  type: "success",
2067
2067
  title: "Purchase successful",
@@ -2112,9 +2112,9 @@ function Mr(t, e, r) {
2112
2112
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2113
2113
  }, [n, i];
2114
2114
  }
2115
- class Cr extends U {
2115
+ class Qr extends U {
2116
2116
  constructor(e) {
2117
- super(), R(this, e, Mr, Qr, P, { brandingInfo: 0, onContinue: 1 });
2117
+ super(), N(this, e, Mr, Cr, P, { brandingInfo: 0, onContinue: 1 });
2118
2118
  }
2119
2119
  }
2120
2120
  function Pr(t, e, r, n, i = {}) {
@@ -2122,7 +2122,7 @@ function Pr(t, e, r, n, i = {}) {
2122
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
- function Rr(t) {
2125
+ function Nr(t) {
2126
2126
  if (!Tr)
2127
2127
  return t.registerAppInfo({
2128
2128
  name: "svelte-stripe-js",
@@ -2146,7 +2146,7 @@ function Ur(t) {
2146
2146
  }
2147
2147
  };
2148
2148
  }
2149
- function Nr(t, e, r) {
2149
+ function Rr(t, e, r) {
2150
2150
  let n, i;
2151
2151
  const o = rn(), { elements: s } = sn("stripe");
2152
2152
  let { options: l = void 0 } = e;
@@ -2164,7 +2164,7 @@ function Nr(t, e, r) {
2164
2164
  n.focus();
2165
2165
  }
2166
2166
  function E(v) {
2167
- Re[v ? "unshift" : "push"](() => {
2167
+ Ne[v ? "unshift" : "push"](() => {
2168
2168
  i = v, r(0, i);
2169
2169
  });
2170
2170
  }
@@ -2174,7 +2174,7 @@ function Nr(t, e, r) {
2174
2174
  }
2175
2175
  class Sr extends U {
2176
2176
  constructor(e) {
2177
- super(), R(this, e, Nr, Ur, P, {
2177
+ super(), N(this, e, Rr, Ur, P, {
2178
2178
  options: 1,
2179
2179
  blur: 2,
2180
2180
  clear: 3,
@@ -2254,7 +2254,7 @@ function Or(t) {
2254
2254
  );
2255
2255
  return {
2256
2256
  c() {
2257
- n && n.c(), e = Z();
2257
+ n && n.c(), e = ee();
2258
2258
  },
2259
2259
  m(i, o) {
2260
2260
  n && n.m(i, o), p(i, e, o), r = !0;
@@ -2279,9 +2279,9 @@ function Or(t) {
2279
2279
  };
2280
2280
  }
2281
2281
  function Lr(t, e, r) {
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;
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: A = "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, 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);
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, A = $.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*/
@@ -2293,9 +2293,9 @@ function Lr(t, e, r) {
2293
2293
  clientSecret: y,
2294
2294
  fonts: v,
2295
2295
  loader: E,
2296
- locale: _
2297
- })), Rr(s), on("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2298
- 8705 && F && F.update({ appearance: n, locale: _ });
2296
+ locale: A
2297
+ })), Nr(s), on("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
2298
+ 8705 && F && F.update({ appearance: n, locale: A });
2299
2299
  }, [
2300
2300
  F,
2301
2301
  s,
@@ -2306,7 +2306,7 @@ function Lr(t, e, r) {
2306
2306
  d,
2307
2307
  E,
2308
2308
  v,
2309
- _,
2309
+ A,
2310
2310
  M,
2311
2311
  h,
2312
2312
  y,
@@ -2317,7 +2317,7 @@ function Lr(t, e, r) {
2317
2317
  }
2318
2318
  class xr extends U {
2319
2319
  constructor(e) {
2320
- super(), R(this, e, Lr, Or, P, {
2320
+ super(), N(this, e, Lr, Or, P, {
2321
2321
  stripe: 1,
2322
2322
  mode: 2,
2323
2323
  theme: 3,
@@ -2351,10 +2351,10 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2351
2351
  }, Yr = function(e, r) {
2352
2352
  !e || !e._registerWrapper || e._registerWrapper({
2353
2353
  name: "stripe-js",
2354
- version: "2.3.0",
2354
+ version: "2.4.0",
2355
2355
  startTime: r
2356
2356
  });
2357
- }, me = null, De = null, Qe = null, Hr = function(e) {
2357
+ }, me = null, Ce = null, Me = null, Hr = function(e) {
2358
2358
  return function() {
2359
2359
  e(new Error("Failed to load Stripe.js"));
2360
2360
  };
@@ -2378,11 +2378,11 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2378
2378
  console.warn(lt);
2379
2379
  else if (!i)
2380
2380
  i = ct(e);
2381
- else if (i && Qe !== null && De !== null) {
2381
+ else if (i && Me !== null && Ce !== null) {
2382
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);
2383
+ i.removeEventListener("load", Me), i.removeEventListener("error", Ce), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = ct(e);
2384
2384
  }
2385
- Qe = Kr(r, n), De = Hr(n), i.addEventListener("load", Qe), i.addEventListener("error", De);
2385
+ Me = Kr(r, n), Ce = Hr(n), i.addEventListener("load", Me), i.addEventListener("error", Ce);
2386
2386
  } catch (s) {
2387
2387
  n(s);
2388
2388
  return;
@@ -2395,7 +2395,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2395
2395
  return null;
2396
2396
  var i = e.apply(void 0, r);
2397
2397
  return Yr(i, n), i;
2398
- }, ge, Ct = !1, Pt = function() {
2398
+ }, ge, Qt = !1, Pt = function() {
2399
2399
  return ge || (ge = qr(null).catch(function(e) {
2400
2400
  return ge = null, Promise.reject(e);
2401
2401
  }), ge);
@@ -2403,12 +2403,12 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2403
2403
  Promise.resolve().then(function() {
2404
2404
  return Pt();
2405
2405
  }).catch(function(t) {
2406
- Ct || console.warn(t);
2406
+ Qt || console.warn(t);
2407
2407
  });
2408
2408
  var Jr = function() {
2409
2409
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2410
2410
  r[n] = arguments[n];
2411
- Ct = !0;
2411
+ Qt = !0;
2412
2412
  var i = Date.now();
2413
2413
  return Pt().then(function(o) {
2414
2414
  return jr(o, r, i);
@@ -2431,7 +2431,7 @@ function Wr(t) {
2431
2431
  );
2432
2432
  return {
2433
2433
  c() {
2434
- e = k("div"), i && i.c(), A(e, "class", "rcb-header-layout svelte-1xe711j");
2434
+ e = k("div"), i && i.c(), _(e, "class", "rcb-header-layout svelte-1xe711j");
2435
2435
  },
2436
2436
  m(o, s) {
2437
2437
  p(o, e, s), i && i.m(e, null), r = !0;
@@ -2470,7 +2470,7 @@ function Wr(t) {
2470
2470
  }
2471
2471
  function zr(t) {
2472
2472
  let e, r;
2473
- return e = new ae({
2473
+ return e = new ue({
2474
2474
  props: {
2475
2475
  as: "header",
2476
2476
  $$slots: { default: [Wr] },
@@ -2507,7 +2507,7 @@ function Xr(t, e, r) {
2507
2507
  }
2508
2508
  class Ve extends U {
2509
2509
  constructor(e) {
2510
- super(), R(this, e, Xr, zr, P, {}, Vr);
2510
+ super(), N(this, e, Xr, zr, P, {}, Vr);
2511
2511
  }
2512
2512
  }
2513
2513
  const Zr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
@@ -2515,7 +2515,7 @@ function ei(t) {
2515
2515
  let e, r;
2516
2516
  return {
2517
2517
  c() {
2518
- e = k("img"), X(e.src, r = Zr) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
2518
+ e = k("img"), Z(e.src, r = Zr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2519
2519
  },
2520
2520
  m(n, i) {
2521
2521
  p(n, e, i);
@@ -2530,10 +2530,10 @@ function ei(t) {
2530
2530
  }
2531
2531
  class ti extends U {
2532
2532
  constructor(e) {
2533
- super(), R(this, e, null, ei, P, {});
2533
+ super(), N(this, e, null, ei, P, {});
2534
2534
  }
2535
2535
  }
2536
- const _e = {
2536
+ const Ae = {
2537
2537
  error: "#f2545b",
2538
2538
  warning: "#f4e971",
2539
2539
  focus: "#000080",
@@ -2554,7 +2554,7 @@ function ri(t) {
2554
2554
  let e;
2555
2555
  return {
2556
2556
  c() {
2557
- e = k("div"), A(e, "class", "processing svelte-rjmul6");
2557
+ e = k("div"), _(e, "class", "processing svelte-rjmul6");
2558
2558
  },
2559
2559
  m(r, n) {
2560
2560
  p(r, e, n);
@@ -2569,7 +2569,7 @@ function ri(t) {
2569
2569
  }
2570
2570
  class Tt extends U {
2571
2571
  constructor(e) {
2572
- super(), R(this, e, null, ri, P, {}, ni);
2572
+ super(), N(this, e, null, ri, P, {}, ni);
2573
2573
  }
2574
2574
  }
2575
2575
  function ii(t) {
@@ -2617,17 +2617,17 @@ function si(t) {
2617
2617
  fontSizeBase: "16px",
2618
2618
  fontSizeSm: "16px",
2619
2619
  spacingGridRow: "16px",
2620
- colorText: _e["grey-text-dark"],
2620
+ colorText: Ae["grey-text-dark"],
2621
2621
  focusBoxShadow: "none",
2622
- colorDanger: _e.error
2622
+ colorDanger: Ae.error
2623
2623
  },
2624
2624
  rules: {
2625
2625
  ".Input": {
2626
2626
  boxShadow: "none",
2627
- border: `2px solid ${_e["grey-ui-dark"]}`
2627
+ border: `2px solid ${Ae["grey-ui-dark"]}`
2628
2628
  },
2629
2629
  ".Input:focus": {
2630
- border: `2px solid ${_e.focus}`,
2630
+ border: `2px solid ${Ae.focus}`,
2631
2631
  outline: "none"
2632
2632
  },
2633
2633
  ".Label": {
@@ -2643,12 +2643,12 @@ function si(t) {
2643
2643
  return (
2644
2644
  /*elements*/
2645
2645
  t[2] !== void 0 && (c.elements = /*elements*/
2646
- t[2]), r = new xr({ props: c }), Re.push(() => dn(r, "elements", l)), {
2646
+ t[2]), r = new xr({ props: c }), Ne.push(() => dn(r, "elements", l)), {
2647
2647
  c() {
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, o || (s = ke(e, "submit", kt(
2651
+ p(a, e, f), I(r, e, null), i = !0, o || (s = $e(e, "submit", kt(
2652
2652
  /*handleContinue*/
2653
2653
  t[5]
2654
2654
  )), o = !0);
@@ -2699,7 +2699,7 @@ function ci(t) {
2699
2699
  let e, r, n;
2700
2700
  return r = new Sr({}), {
2701
2701
  c() {
2702
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
2702
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
2703
2703
  },
2704
2704
  m(i, o) {
2705
2705
  p(i, e, o), I(r, e, null), n = !0;
@@ -2720,7 +2720,7 @@ function ai(t) {
2720
2720
  let e;
2721
2721
  return {
2722
2722
  c() {
2723
- e = N("Pay");
2723
+ e = R("Pay");
2724
2724
  },
2725
2725
  m(r, n) {
2726
2726
  p(r, e, n);
@@ -2763,7 +2763,7 @@ function fi(t) {
2763
2763
  }
2764
2764
  return e = l(t), r = s[e] = o[e](t), {
2765
2765
  c() {
2766
- r.c(), n = Z();
2766
+ r.c(), n = ee();
2767
2767
  },
2768
2768
  m(c, a) {
2769
2769
  s[e].m(c, a), p(c, n, a), i = !0;
@@ -2789,7 +2789,7 @@ function di(t) {
2789
2789
  let e;
2790
2790
  return {
2791
2791
  c() {
2792
- e = N("Close");
2792
+ e = R("Close");
2793
2793
  },
2794
2794
  m(r, n) {
2795
2795
  p(r, e, n);
@@ -2801,7 +2801,7 @@ function di(t) {
2801
2801
  }
2802
2802
  function mi(t) {
2803
2803
  let e, r, n, i;
2804
- return e = new be({
2804
+ return e = new we({
2805
2805
  props: {
2806
2806
  disabled: (
2807
2807
  /*processing*/
@@ -2810,7 +2810,7 @@ function mi(t) {
2810
2810
  $$slots: { default: [fi] },
2811
2811
  $$scope: { ctx: t }
2812
2812
  }
2813
- }), n = new be({
2813
+ }), n = new we({
2814
2814
  props: {
2815
2815
  disabled: (
2816
2816
  /*processing*/
@@ -2821,7 +2821,7 @@ function mi(t) {
2821
2821
  $$scope: { ctx: t }
2822
2822
  }
2823
2823
  }), n.$on("click", function() {
2824
- ce(
2824
+ ae(
2825
2825
  /*onClose*/
2826
2826
  t[1]
2827
2827
  ) && t[1].apply(this, arguments);
@@ -2858,7 +2858,7 @@ function mi(t) {
2858
2858
  }
2859
2859
  function gi(t) {
2860
2860
  let e, r;
2861
- return e = new $e({
2861
+ return e = new ve({
2862
2862
  props: {
2863
2863
  $$slots: { default: [mi] },
2864
2864
  $$scope: { ctx: t }
@@ -2893,7 +2893,7 @@ function pi(t) {
2893
2893
  $$slots: { default: [li] },
2894
2894
  $$scope: { ctx: t }
2895
2895
  }
2896
- }), n = new ae({
2896
+ }), n = new ue({
2897
2897
  props: {
2898
2898
  $$slots: { default: [ci] },
2899
2899
  $$scope: { ctx: t }
@@ -2932,7 +2932,7 @@ function pi(t) {
2932
2932
  }
2933
2933
  };
2934
2934
  }
2935
- function Ai(t) {
2935
+ function _i(t) {
2936
2936
  let e, r, n, i;
2937
2937
  const o = [si, oi], s = [];
2938
2938
  function l(c, a) {
@@ -2966,31 +2966,31 @@ function Ai(t) {
2966
2966
  }
2967
2967
  };
2968
2968
  }
2969
- function _i(t, e, r) {
2969
+ function Ai(t, e, r) {
2970
2970
  let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
2971
2971
  const c = s.data.client_secret;
2972
2972
  let a = null, f, d;
2973
2973
  Se(async () => {
2974
- const _ = s.data.publishable_api_key, M = s.data.stripe_account_id;
2975
- if (!_ || !M)
2974
+ const A = s.data.publishable_api_key, M = s.data.stripe_account_id;
2975
+ if (!A || !M)
2976
2976
  throw new Error("Stripe publishable key or account ID not found");
2977
- r(3, a = await Jr(_, { stripeAccount: M }));
2977
+ r(3, a = await Jr(A, { stripeAccount: M }));
2978
2978
  });
2979
2979
  const E = async () => {
2980
2980
  if (l || !a || !d)
2981
2981
  return;
2982
2982
  r(0, l = !0);
2983
- const _ = await a.confirmSetup({
2983
+ const A = await a.confirmSetup({
2984
2984
  elements: d,
2985
2985
  redirect: "if_required"
2986
2986
  });
2987
- _.error ? (r(0, l = !1), o(new G(S.StripeError, _.error.message))) : i();
2987
+ A.error ? (r(0, l = !1), o(new G(S.StripeError, A.error.message))) : i();
2988
2988
  };
2989
- function v(_) {
2990
- f = _, r(2, f);
2989
+ function v(A) {
2990
+ f = A, r(2, f);
2991
2991
  }
2992
- return t.$$set = (_) => {
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);
2992
+ return t.$$set = (A) => {
2993
+ "onClose" in A && r(1, n = A.onClose), "onContinue" in A && r(6, i = A.onContinue), "onError" in A && r(7, o = A.onError), "paymentInfoCollectionMetadata" in A && r(8, s = A.paymentInfoCollectionMetadata), "processing" in A && r(0, l = A.processing);
2994
2994
  }, t.$$.update = () => {
2995
2995
  t.$$.dirty & /*elements*/
2996
2996
  4 && f && f._elements.length > 0 && (d = f);
@@ -3009,11 +3009,11 @@ function _i(t, e, r) {
3009
3009
  }
3010
3010
  class hi extends U {
3011
3011
  constructor(e) {
3012
- super(), R(
3012
+ super(), N(
3013
3013
  this,
3014
3014
  e,
3015
- _i,
3016
3015
  Ai,
3016
+ _i,
3017
3017
  P,
3018
3018
  {
3019
3019
  onClose: 1,
@@ -3033,7 +3033,7 @@ function Ii(t) {
3033
3033
  let e;
3034
3034
  return {
3035
3035
  c() {
3036
- e = N("Billing email address");
3036
+ e = R("Billing email address");
3037
3037
  },
3038
3038
  m(r, n) {
3039
3039
  p(r, e, n);
@@ -3047,17 +3047,17 @@ function at(t) {
3047
3047
  let e, r;
3048
3048
  return {
3049
3049
  c() {
3050
- e = k("div"), r = N(
3050
+ e = k("div"), r = R(
3051
3051
  /*error*/
3052
3052
  t[2]
3053
- ), A(e, "class", "form-error svelte-favd20");
3053
+ ), _(e, "class", "form-error svelte-favd20");
3054
3054
  },
3055
3055
  m(n, i) {
3056
3056
  p(n, e, i), D(e, r);
3057
3057
  },
3058
3058
  p(n, i) {
3059
3059
  i & /*error*/
3060
- 4 && te(
3060
+ 4 && ne(
3061
3061
  r,
3062
3062
  /*error*/
3063
3063
  n[2]
@@ -3075,15 +3075,15 @@ function bi(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"), 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
- t[4] + " svelte-favd20"), A(e, "class", "form-container svelte-favd20");
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(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3079
+ t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3080
3080
  },
3081
3081
  m(d, E) {
3082
3082
  p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o), et(
3083
3083
  o,
3084
3084
  /*email*/
3085
3085
  t[3]
3086
- ), D(e, l), f && f.m(e, null), c || (a = ke(
3086
+ ), D(e, l), f && f.m(e, null), c || (a = $e(
3087
3087
  o,
3088
3088
  "input",
3089
3089
  /*input_input_handler*/
@@ -3099,7 +3099,7 @@ function bi(t) {
3099
3099
  d[3]
3100
3100
  ), E & /*inputClass*/
3101
3101
  16 && s !== (s = "form-input " + /*inputClass*/
3102
- d[4] + " svelte-favd20") && A(i, "class", s), /*error*/
3102
+ d[4] + " svelte-favd20") && _(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) {
@@ -3111,7 +3111,7 @@ function wi(t) {
3111
3111
  let e;
3112
3112
  return {
3113
3113
  c() {
3114
- e = N("Continue");
3114
+ e = R("Continue");
3115
3115
  },
3116
3116
  m(r, n) {
3117
3117
  p(r, e, n);
@@ -3154,7 +3154,7 @@ function $i(t) {
3154
3154
  }
3155
3155
  return e = l(t), r = s[e] = o[e](t), {
3156
3156
  c() {
3157
- r.c(), n = Z();
3157
+ r.c(), n = ee();
3158
3158
  },
3159
3159
  m(c, a) {
3160
3160
  s[e].m(c, a), p(c, n, a), i = !0;
@@ -3180,7 +3180,7 @@ function vi(t) {
3180
3180
  let e;
3181
3181
  return {
3182
3182
  c() {
3183
- e = N("Close");
3183
+ e = R("Close");
3184
3184
  },
3185
3185
  m(r, n) {
3186
3186
  p(r, e, n);
@@ -3192,7 +3192,7 @@ function vi(t) {
3192
3192
  }
3193
3193
  function Bi(t) {
3194
3194
  let e, r, n, i;
3195
- return e = new be({
3195
+ return e = new we({
3196
3196
  props: {
3197
3197
  disabled: (
3198
3198
  /*processing*/
@@ -3201,7 +3201,7 @@ function Bi(t) {
3201
3201
  $$slots: { default: [$i] },
3202
3202
  $$scope: { ctx: t }
3203
3203
  }
3204
- }), n = new be({
3204
+ }), n = new we({
3205
3205
  props: {
3206
3206
  intent: "secondary",
3207
3207
  disabled: (
@@ -3212,7 +3212,7 @@ function Bi(t) {
3212
3212
  $$scope: { ctx: t }
3213
3213
  }
3214
3214
  }), n.$on("click", function() {
3215
- ce(
3215
+ ae(
3216
3216
  /*onClose*/
3217
3217
  t[0]
3218
3218
  ) && t[0].apply(this, arguments);
@@ -3249,7 +3249,7 @@ function Bi(t) {
3249
3249
  }
3250
3250
  function yi(t) {
3251
3251
  let e, r;
3252
- return e = new $e({
3252
+ return e = new ve({
3253
3253
  props: {
3254
3254
  $$slots: { default: [Bi] },
3255
3255
  $$scope: { ctx: t }
@@ -3284,7 +3284,7 @@ function Di(t) {
3284
3284
  $$slots: { default: [Ii] },
3285
3285
  $$scope: { ctx: t }
3286
3286
  }
3287
- }), i = new ae({
3287
+ }), i = new ue({
3288
3288
  props: {
3289
3289
  $$slots: { default: [bi] },
3290
3290
  $$scope: { ctx: t }
@@ -3296,10 +3296,10 @@ function Di(t) {
3296
3296
  }
3297
3297
  }), {
3298
3298
  c() {
3299
- e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), A(e, "class", "svelte-favd20");
3299
+ e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3300
3300
  },
3301
3301
  m(f, d) {
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(
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 = $e(e, "submit", kt(
3303
3303
  /*handleContinue*/
3304
3304
  t[5]
3305
3305
  )), c = !0);
@@ -3311,9 +3311,9 @@ function Di(t) {
3311
3311
  const v = {};
3312
3312
  d & /*$$scope, error, inputClass, email*/
3313
3313
  284 && (v.$$scope = { dirty: d, ctx: f }), i.$set(v);
3314
- const _ = {};
3314
+ const A = {};
3315
3315
  d & /*$$scope, processing, onClose*/
3316
- 259 && (_.$$scope = { dirty: d, ctx: f }), s.$set(_);
3316
+ 259 && (A.$$scope = { dirty: d, ctx: f }), s.$set(A);
3317
3317
  },
3318
3318
  i(f) {
3319
3319
  l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(s.$$.fragment, f), l = !0);
@@ -3326,7 +3326,7 @@ function Di(t) {
3326
3326
  }
3327
3327
  };
3328
3328
  }
3329
- function Qi(t, e, r) {
3329
+ function Ci(t, e, r) {
3330
3330
  let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
3331
3331
  const a = async () => {
3332
3332
  n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : s({ email: n });
@@ -3352,10 +3352,10 @@ function Qi(t, e, r) {
3352
3352
  }
3353
3353
  class Mi extends U {
3354
3354
  constructor(e) {
3355
- super(), R(this, e, Qi, Di, P, { onContinue: 6, onClose: 0, processing: 1 }, Ei);
3355
+ super(), N(this, e, Ci, Di, P, { onContinue: 6, onClose: 0, processing: 1 }, Ei);
3356
3356
  }
3357
3357
  }
3358
- function Ci(t) {
3358
+ function Qi(t) {
3359
3359
  O(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3360
3360
  }
3361
3361
  function Pi(t) {
@@ -3372,7 +3372,7 @@ function Pi(t) {
3372
3372
  );
3373
3373
  return {
3374
3374
  c() {
3375
- e = k("div"), i && i.c(), A(e, "class", "rcb-modal-backdrop svelte-17tslso");
3375
+ e = k("div"), i && i.c(), _(e, "class", "rcb-modal-backdrop svelte-17tslso");
3376
3376
  },
3377
3377
  m(o, s) {
3378
3378
  p(o, e, s), i && i.m(e, null), r = !0;
@@ -3415,15 +3415,15 @@ function Ti(t, e, r) {
3415
3415
  "$$scope" in o && r(0, i = o.$$scope);
3416
3416
  }, [i, n];
3417
3417
  }
3418
- class Ri extends U {
3418
+ class Ni extends U {
3419
3419
  constructor(e) {
3420
- super(), R(this, e, Ti, Pi, P, {}, Ci);
3420
+ super(), N(this, e, Ti, Pi, P, {}, Qi);
3421
3421
  }
3422
3422
  }
3423
3423
  function Ui(t) {
3424
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
- function Ni(t) {
3426
+ function Ri(t) {
3427
3427
  let e, r, n, i;
3428
3428
  const o = (
3429
3429
  /*#slots*/
@@ -3437,8 +3437,8 @@ function Ni(t) {
3437
3437
  );
3438
3438
  return {
3439
3439
  c() {
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");
3440
+ e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ie(`rcb-modal-main ${/*dark*/
3441
+ t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3442
3442
  },
3443
3443
  m(l, c) {
3444
3444
  p(l, e, c), D(e, r), s && s.m(r, null), i = !0;
@@ -3463,8 +3463,8 @@ function Ni(t) {
3463
3463
  ),
3464
3464
  null
3465
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);
3466
+ 1 && n !== (n = Ie(`rcb-modal-main ${/*dark*/
3467
+ l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3468
3468
  },
3469
3469
  i(l) {
3470
3470
  i || (u(s, l), i = !0);
@@ -3485,7 +3485,7 @@ function Si(t, e, r) {
3485
3485
  }
3486
3486
  class Oi extends U {
3487
3487
  constructor(e) {
3488
- super(), R(this, e, Si, Ni, P, { dark: 0 }, Ui);
3488
+ super(), N(this, e, Si, Ri, P, { dark: 0 }, Ui);
3489
3489
  }
3490
3490
  }
3491
3491
  function Li(t) {
@@ -3541,7 +3541,7 @@ function Li(t) {
3541
3541
  }
3542
3542
  function xi(t) {
3543
3543
  let e, r;
3544
- return e = new Ri({
3544
+ return e = new Ni({
3545
3545
  props: {
3546
3546
  $$slots: { default: [Fi] },
3547
3547
  $$scope: { ctx: t }
@@ -3631,7 +3631,7 @@ function Gi(t) {
3631
3631
  }
3632
3632
  return e = l(t), r = s[e] = o[e](t), {
3633
3633
  c() {
3634
- r.c(), n = Z();
3634
+ r.c(), n = ee();
3635
3635
  },
3636
3636
  m(c, a) {
3637
3637
  s[e].m(c, a), p(c, n, a), i = !0;
@@ -3661,7 +3661,7 @@ function Yi(t, e, r) {
3661
3661
  }
3662
3662
  class Hi extends U {
3663
3663
  constructor(e) {
3664
- super(), R(this, e, Yi, Gi, P, { condition: 0 });
3664
+ super(), N(this, e, Yi, Gi, P, { condition: 0 });
3665
3665
  }
3666
3666
  }
3667
3667
  const Ki = (t) => ({}), ut = (t) => ({});
@@ -3785,13 +3785,13 @@ function Ji(t, e, r) {
3785
3785
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
3786
3786
  }, [o, n, i];
3787
3787
  }
3788
- class Rt extends U {
3788
+ class Nt extends U {
3789
3789
  constructor(e) {
3790
- super(), R(this, e, Ji, ji, P, { dark: 0 });
3790
+ super(), N(this, e, Ji, ji, P, { dark: 0 });
3791
3791
  }
3792
3792
  }
3793
- var ue = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(ue || {});
3794
- class Pe {
3793
+ var te = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(te || {});
3794
+ class Ee {
3795
3795
  static getPublicMessage(e) {
3796
3796
  switch (e) {
3797
3797
  case 0:
@@ -3909,25 +3909,25 @@ class Pe {
3909
3909
  }
3910
3910
  }
3911
3911
  var Ut = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Ut || {});
3912
- class ee extends Error {
3912
+ class X extends Error {
3913
3913
  constructor(r, n, i) {
3914
3914
  super(n);
3915
- C(this, "toString", () => `PurchasesError(code: ${ue[this.errorCode]}, message: ${this.message})`);
3915
+ Q(this, "toString", () => `PurchasesError(code: ${te[this.errorCode]}, message: ${this.message})`);
3916
3916
  this.errorCode = r, this.underlyingErrorMessage = i;
3917
3917
  }
3918
3918
  /** @internal */
3919
3919
  static getForBackendError(r, n) {
3920
- const i = Pe.getErrorCodeForBackendErrorCode(r);
3921
- return new ee(
3920
+ const i = Ee.getErrorCodeForBackendErrorCode(r);
3921
+ return new X(
3922
3922
  i,
3923
- Pe.getPublicMessage(i),
3923
+ Ee.getPublicMessage(i),
3924
3924
  n
3925
3925
  );
3926
3926
  }
3927
3927
  /** @internal */
3928
3928
  static getForPurchasesFlowError(r) {
3929
- return new ee(
3930
- Pe.convertPurchaseFlowErrorCodeToErrorCode(
3929
+ return new X(
3930
+ Ee.convertPurchaseFlowErrorCodeToErrorCode(
3931
3931
  r.errorCode
3932
3932
  ),
3933
3933
  r.message,
@@ -3940,7 +3940,7 @@ class Vi extends Error {
3940
3940
  super("Purchases must be configured before calling getInstance");
3941
3941
  }
3942
3942
  }
3943
- const Wi = "0.1.1", fe = "https://api.revenuecat.com";
3943
+ const Wi = "0.1.3", 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";
@@ -3948,13 +3948,21 @@ var Ue;
3948
3948
  function qe(t) {
3949
3949
  return t ? t.startsWith("rcb_sb_") : !1;
3950
3950
  }
3951
- async function oe(t, e, r, n) {
3952
- const i = await fetch(t.url(), {
3953
- method: t.method,
3954
- headers: Zi(e, n),
3955
- body: Xi(r)
3956
- });
3957
- return await zi(i, t), await i.json();
3951
+ async function se(t, e, r, n) {
3952
+ try {
3953
+ const i = await fetch(t.url(), {
3954
+ method: t.method,
3955
+ headers: Zi(e, n),
3956
+ body: Xi(r)
3957
+ });
3958
+ return await zi(i, t), await i.json();
3959
+ } catch (i) {
3960
+ throw i instanceof TypeError ? new X(
3961
+ te.NetworkError,
3962
+ Ee.getPublicMessage(te.NetworkError),
3963
+ i.message
3964
+ ) : i;
3965
+ }
3958
3966
  }
3959
3967
  async function zi(t, e) {
3960
3968
  const r = t.status;
@@ -3963,11 +3971,11 @@ async function zi(t, e) {
3963
3971
  else if (r >= Ue.BAD_REQUEST) {
3964
3972
  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
3973
  if (o != null) {
3966
- const l = Pe.convertCodeToBackendErrorCode(o);
3974
+ const l = Ee.convertCodeToBackendErrorCode(o);
3967
3975
  if (l == null)
3968
3976
  Ge(e, r, i);
3969
3977
  else
3970
- throw ee.getForBackendError(
3978
+ throw X.getForBackendError(
3971
3979
  l,
3972
3980
  s
3973
3981
  );
@@ -3976,8 +3984,8 @@ async function zi(t, e) {
3976
3984
  }
3977
3985
  }
3978
3986
  function Ge(t, e, r) {
3979
- throw new ee(
3980
- ue.UnknownBackendError,
3987
+ throw new X(
3988
+ te.UnknownBackendError,
3981
3989
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
3982
3990
  );
3983
3991
  }
@@ -3995,23 +4003,23 @@ function Zi(t, e) {
3995
4003
  };
3996
4004
  return e != null && (r = { ...r, ...e }), r;
3997
4005
  }
3998
- const Nt = "/v1/subscribers", Oe = "/rcbilling/v1";
4006
+ const Rt = "/v1/subscribers", Oe = "/rcbilling/v1";
3999
4007
  class eo {
4000
4008
  constructor(e) {
4001
- C(this, "appUserId");
4002
- C(this, "method", "GET");
4003
- C(this, "name", "getOfferings");
4009
+ Q(this, "appUserId");
4010
+ Q(this, "method", "GET");
4011
+ Q(this, "name", "getOfferings");
4004
4012
  this.appUserId = e;
4005
4013
  }
4006
4014
  url() {
4007
4015
  const e = encodeURIComponent(this.appUserId);
4008
- return `${fe}${Nt}/${e}/offerings`;
4016
+ return `${fe}${Rt}/${e}/offerings`;
4009
4017
  }
4010
4018
  }
4011
4019
  class to {
4012
4020
  constructor() {
4013
- C(this, "method", "POST");
4014
- C(this, "name", "subscribe");
4021
+ Q(this, "method", "POST");
4022
+ Q(this, "name", "subscribe");
4015
4023
  }
4016
4024
  url() {
4017
4025
  return `${fe}${Oe}/subscribe`;
@@ -4019,10 +4027,10 @@ class to {
4019
4027
  }
4020
4028
  class no {
4021
4029
  constructor(e, r) {
4022
- C(this, "method", "GET");
4023
- C(this, "name", "getProducts");
4024
- C(this, "appUserId");
4025
- C(this, "productIds");
4030
+ Q(this, "method", "GET");
4031
+ Q(this, "name", "getProducts");
4032
+ Q(this, "appUserId");
4033
+ Q(this, "productIds");
4026
4034
  this.appUserId = e, this.productIds = r;
4027
4035
  }
4028
4036
  url() {
@@ -4032,20 +4040,20 @@ class no {
4032
4040
  }
4033
4041
  class ro {
4034
4042
  constructor(e) {
4035
- C(this, "method", "GET");
4036
- C(this, "name", "getCustomerInfo");
4037
- C(this, "appUserId");
4043
+ Q(this, "method", "GET");
4044
+ Q(this, "name", "getCustomerInfo");
4045
+ Q(this, "appUserId");
4038
4046
  this.appUserId = e;
4039
4047
  }
4040
4048
  url() {
4041
4049
  const e = encodeURIComponent(this.appUserId);
4042
- return `${fe}${Nt}/${e}`;
4050
+ return `${fe}${Rt}/${e}`;
4043
4051
  }
4044
4052
  }
4045
4053
  class io {
4046
4054
  constructor() {
4047
- C(this, "method", "GET");
4048
- C(this, "name", "getBrandingInfo");
4055
+ Q(this, "method", "GET");
4056
+ Q(this, "name", "getBrandingInfo");
4049
4057
  }
4050
4058
  url() {
4051
4059
  return `${fe}${Oe}/branding`;
@@ -4053,9 +4061,9 @@ class io {
4053
4061
  }
4054
4062
  class oo {
4055
4063
  constructor(e) {
4056
- C(this, "method", "GET");
4057
- C(this, "name", "getCheckoutStatus");
4058
- C(this, "operationSessionId");
4064
+ Q(this, "method", "GET");
4065
+ Q(this, "name", "getCheckoutStatus");
4066
+ Q(this, "operationSessionId");
4059
4067
  this.operationSessionId = e;
4060
4068
  }
4061
4069
  url() {
@@ -4064,35 +4072,35 @@ class oo {
4064
4072
  }
4065
4073
  class so {
4066
4074
  constructor(e) {
4067
- C(this, "API_KEY");
4075
+ Q(this, "API_KEY");
4068
4076
  this.API_KEY = e;
4069
4077
  }
4070
4078
  async getOfferings(e) {
4071
- return await oe(
4079
+ return await se(
4072
4080
  new eo(e),
4073
4081
  this.API_KEY
4074
4082
  );
4075
4083
  }
4076
4084
  async getCustomerInfo(e) {
4077
- return await oe(
4085
+ return await se(
4078
4086
  new ro(e),
4079
4087
  this.API_KEY
4080
4088
  );
4081
4089
  }
4082
4090
  async getProducts(e, r) {
4083
- return await oe(
4091
+ return await se(
4084
4092
  new no(e, r),
4085
4093
  this.API_KEY
4086
4094
  );
4087
4095
  }
4088
4096
  async getBrandingInfo() {
4089
- return await oe(
4097
+ return await se(
4090
4098
  new io(),
4091
4099
  this.API_KEY
4092
4100
  );
4093
4101
  }
4094
4102
  async postSubscribe(e, r, n, i) {
4095
- return await oe(
4103
+ return await se(
4096
4104
  new to(),
4097
4105
  this.API_KEY,
4098
4106
  {
@@ -4104,7 +4112,7 @@ class so {
4104
4112
  );
4105
4113
  }
4106
4114
  async getCheckoutStatus(e) {
4107
- return await oe(
4115
+ return await se(
4108
4116
  new oo(e),
4109
4117
  this.API_KEY
4110
4118
  );
@@ -4115,7 +4123,7 @@ function co(t) {
4115
4123
  let e, r;
4116
4124
  return {
4117
4125
  c() {
4118
- e = k("img"), X(e.src, r = lo) || A(e, "src", r), A(e, "alt", "icon"), A(e, "class", "rcb-ui-asset-icon");
4126
+ e = k("img"), Z(e.src, r = lo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4119
4127
  },
4120
4128
  m(n, i) {
4121
4129
  p(n, e, i);
@@ -4130,7 +4138,7 @@ function co(t) {
4130
4138
  }
4131
4139
  class ao extends U {
4132
4140
  constructor(e) {
4133
- super(), R(this, e, null, co, P, {});
4141
+ super(), N(this, e, null, co, P, {});
4134
4142
  }
4135
4143
  }
4136
4144
  function uo(t) {
@@ -4140,7 +4148,7 @@ function fo(t) {
4140
4148
  let e;
4141
4149
  return {
4142
4150
  c() {
4143
- e = k("div"), e.textContent = "Sandbox", A(e, "class", "svelte-1rhrjxe");
4151
+ e = k("div"), e.textContent = "Sandbox", _(e, "class", "svelte-1rhrjxe");
4144
4152
  },
4145
4153
  m(r, n) {
4146
4154
  p(r, e, n);
@@ -4155,7 +4163,7 @@ function fo(t) {
4155
4163
  }
4156
4164
  class mo extends U {
4157
4165
  constructor(e) {
4158
- super(), R(this, e, null, fo, P, {}, uo);
4166
+ super(), N(this, e, null, fo, P, {}, uo);
4159
4167
  }
4160
4168
  }
4161
4169
  function go(t) {
@@ -4164,7 +4172,7 @@ function go(t) {
4164
4172
  }
4165
4173
  function ft(t) {
4166
4174
  let e, r, n;
4167
- return r = new Rt({
4175
+ return r = new Nt({
4168
4176
  props: {
4169
4177
  dark: !0,
4170
4178
  $$slots: {
@@ -4175,7 +4183,7 @@ function ft(t) {
4175
4183
  }
4176
4184
  }), {
4177
4185
  c() {
4178
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-aside svelte-13pdaik");
4186
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-aside svelte-13pdaik");
4179
4187
  },
4180
4188
  m(i, o) {
4181
4189
  p(i, e, o), I(r, e, null), n = !0;
@@ -4236,7 +4244,7 @@ function po(t) {
4236
4244
  );
4237
4245
  return {
4238
4246
  c() {
4239
- n && n.c(), e = Z();
4247
+ n && n.c(), e = ee();
4240
4248
  },
4241
4249
  m(i, o) {
4242
4250
  n && n.m(i, o), p(i, e, o), r = !0;
@@ -4259,7 +4267,7 @@ function po(t) {
4259
4267
  }
4260
4268
  };
4261
4269
  }
4262
- function Ao(t) {
4270
+ function _o(t) {
4263
4271
  let e, r;
4264
4272
  return e = new ao({}), {
4265
4273
  c() {
@@ -4279,7 +4287,7 @@ function Ao(t) {
4279
4287
  }
4280
4288
  };
4281
4289
  }
4282
- function _o(t) {
4290
+ function Ao(t) {
4283
4291
  let e, r;
4284
4292
  return e = new mo({}), {
4285
4293
  c() {
@@ -4307,7 +4315,7 @@ function ho(t) {
4307
4315
  t[3]
4308
4316
  ) }
4309
4317
  });
4310
- const c = [_o, Ao], a = [];
4318
+ const c = [Ao, _o], a = [];
4311
4319
  function f(d, E) {
4312
4320
  return E & /*purchases*/
4313
4321
  2 && (n = null), n == null && (n = !!/*purchases*/
@@ -4315,7 +4323,7 @@ function ho(t) {
4315
4323
  }
4316
4324
  return i = f(t, -1), o = a[i] = c[i](t), {
4317
4325
  c() {
4318
- w(e.$$.fragment), r = T(), o.c(), s = Z();
4326
+ w(e.$$.fragment), r = T(), o.c(), s = ee();
4319
4327
  },
4320
4328
  m(d, E) {
4321
4329
  I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, s, E), l = !0;
@@ -4325,9 +4333,9 @@ function ho(t) {
4325
4333
  E & /*brandingInfo*/
4326
4334
  8 && (v.brandingInfo = /*brandingInfo*/
4327
4335
  d[3]), e.$set(v);
4328
- let _ = i;
4329
- i = f(d, E), i !== _ && (L(), m(a[_], 1, 1, () => {
4330
- a[_] = null;
4336
+ let A = i;
4337
+ i = f(d, E), i !== A && (L(), m(a[A], 1, 1, () => {
4338
+ a[A] = null;
4331
4339
  }), x(), o = a[i], o || (o = a[i] = c[i](d), o.c()), u(o, 1), o.m(s.parentNode, s));
4332
4340
  },
4333
4341
  i(d) {
@@ -4466,7 +4474,7 @@ function pt(t) {
4466
4474
  }
4467
4475
  };
4468
4476
  }
4469
- function At(t) {
4477
+ function _t(t) {
4470
4478
  let e, r;
4471
4479
  return e = new hi({
4472
4480
  props: {
@@ -4517,7 +4525,7 @@ function At(t) {
4517
4525
  }
4518
4526
  };
4519
4527
  }
4520
- function _t(t) {
4528
+ function At(t) {
4521
4529
  let e, r;
4522
4530
  return e = new je({}), {
4523
4531
  c() {
@@ -4590,7 +4598,7 @@ function ht(t) {
4590
4598
  }
4591
4599
  function Et(t) {
4592
4600
  let e, r;
4593
- return e = new Cr({
4601
+ return e = new Qr({
4594
4602
  props: {
4595
4603
  brandingInfo: (
4596
4604
  /*brandingInfo*/
@@ -4642,11 +4650,11 @@ function Io(t) {
4642
4650
  /*paymentInfoCollectionMetadata*/
4643
4651
  t[4] && /*state*/
4644
4652
  (t[6] === "needs-payment-info" || /*state*/
4645
- t[6] === "polling-purchase-status") && At(t)
4653
+ t[6] === "polling-purchase-status") && _t(t)
4646
4654
  ), v = (
4647
4655
  /*state*/
4648
- t[6] === "loading" && _t()
4649
- ), _ = (
4656
+ t[6] === "loading" && At()
4657
+ ), A = (
4650
4658
  /*state*/
4651
4659
  t[6] === "error" && ht(t)
4652
4660
  ), M = (
@@ -4655,10 +4663,10 @@ function Io(t) {
4655
4663
  );
4656
4664
  return {
4657
4665
  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(), o = T(), _ && _.c(), s = T(), M && M.c(), l = Z();
4666
+ 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(), A && A.c(), s = T(), M && M.c(), l = ee();
4659
4667
  },
4660
4668
  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, o, y), _ && _.m(h, y), p(h, s, y), M && M.m(h, y), p(h, l, y), c = !0;
4669
+ 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), A && A.m(h, y), p(h, s, y), M && M.m(h, y), p(h, l, y), c = !0;
4662
4670
  },
4663
4671
  p(h, y) {
4664
4672
  /*state*/
@@ -4680,16 +4688,16 @@ function Io(t) {
4680
4688
  h[4] && /*state*/
4681
4689
  (h[6] === "needs-payment-info" || /*state*/
4682
4690
  h[6] === "polling-purchase-status") ? E ? (E.p(h, y), y & /*paymentInfoCollectionMetadata, state*/
4683
- 80 && u(E, 1)) : (E = At(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
4691
+ 80 && u(E, 1)) : (E = _t(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
4684
4692
  E = null;
4685
4693
  }), x()), /*state*/
4686
4694
  h[6] === "loading" ? v ? y & /*state*/
4687
- 64 && u(v, 1) : (v = _t(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
4695
+ 64 && u(v, 1) : (v = At(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
4688
4696
  v = null;
4689
4697
  }), x()), /*state*/
4690
- h[6] === "error" ? _ ? (_.p(h, y), y & /*state*/
4691
- 64 && u(_, 1)) : (_ = ht(h), _.c(), u(_, 1), _.m(s.parentNode, s)) : _ && (L(), m(_, 1, 1, () => {
4692
- _ = null;
4698
+ h[6] === "error" ? A ? (A.p(h, y), y & /*state*/
4699
+ 64 && u(A, 1)) : (A = ht(h), A.c(), u(A, 1), A.m(s.parentNode, s)) : A && (L(), m(A, 1, 1, () => {
4700
+ A = null;
4693
4701
  }), x()), /*state*/
4694
4702
  h[6] === "success" ? M ? (M.p(h, y), y & /*state*/
4695
4703
  64 && u(M, 1)) : (M = Et(h), M.c(), u(M, 1), M.m(l.parentNode, l)) : M && (L(), m(M, 1, 1, () => {
@@ -4697,13 +4705,13 @@ function Io(t) {
4697
4705
  }), x());
4698
4706
  },
4699
4707
  i(h) {
4700
- c || (u(a), u(f), u(d), u(E), u(v), u(_), u(M), c = !0);
4708
+ c || (u(a), u(f), u(d), u(E), u(v), u(A), u(M), c = !0);
4701
4709
  },
4702
4710
  o(h) {
4703
- m(a), m(f), m(d), m(E), m(v), m(_), m(M), c = !1;
4711
+ m(a), m(f), m(d), m(E), m(v), m(A), m(M), c = !1;
4704
4712
  },
4705
4713
  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);
4714
+ 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), A && A.d(h), M && M.d(h);
4707
4715
  }
4708
4716
  };
4709
4717
  }
@@ -4715,14 +4723,14 @@ function bo(t) {
4715
4723
  t[6]
4716
4724
  )
4717
4725
  ), n, i, o, s, l = r && ft(t);
4718
- return o = new Rt({
4726
+ return o = new Nt({
4719
4727
  props: {
4720
4728
  $$slots: { default: [Io] },
4721
4729
  $$scope: { ctx: t }
4722
4730
  }
4723
4731
  }), {
4724
4732
  c() {
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(
4733
+ e = k("div"), l && l.c(), n = T(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-13pdaik"), _(e, "class", "rcb-ui-layout svelte-13pdaik"), _(
4726
4734
  e,
4727
4735
  "style",
4728
4736
  /*colorVariables*/
@@ -4770,7 +4778,7 @@ function wo(t) {
4770
4778
  }
4771
4779
  }), {
4772
4780
  c() {
4773
- e = k("div"), w(r.$$.fragment), A(e, "class", "rcb-ui-container svelte-13pdaik");
4781
+ e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-container svelte-13pdaik");
4774
4782
  },
4775
4783
  m(i, o) {
4776
4784
  p(i, e, o), I(r, e, null), n = !0;
@@ -4796,8 +4804,8 @@ function wo(t) {
4796
4804
  function ko(t, e, r) {
4797
4805
  var We;
4798
4806
  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
- let _ = null, M = null, h = null, y = null;
4807
+ const v = Object.entries(Ae).map(([C, Le]) => `--rc-color-${C}: ${Le}`).join("; ");
4808
+ let A = null, M = null, h = null, y = null;
4801
4809
  const F = ((We = s.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
4802
4810
  let $ = "present-offer";
4803
4811
  const de = [
@@ -4809,14 +4817,14 @@ function ko(t, e, r) {
4809
4817
  "loading"
4810
4818
  ];
4811
4819
  Se(async () => {
4812
- if (r(2, _ = s.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
4813
- i ? re() : r(6, $ = "needs-auth-info");
4820
+ if (r(2, A = s.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
4821
+ i ? ie() : r(6, $ = "needs-auth-info");
4814
4822
  return;
4815
4823
  }
4816
4824
  });
4817
- const ve = () => {
4825
+ const Be = () => {
4818
4826
  a();
4819
- }, re = () => {
4827
+ }, ie = () => {
4820
4828
  if (F === null) {
4821
4829
  W(new G(S.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
4822
4830
  return;
@@ -4826,21 +4834,21 @@ function ko(t, e, r) {
4826
4834
  W(new G(S.MissingEmailError));
4827
4835
  return;
4828
4836
  }
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);
4837
+ E.startPurchase(o, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((C) => {
4838
+ if (C.next_action === "collect_payment_info") {
4839
+ r(6, $ = "needs-payment-info"), r(4, h = C);
4832
4840
  return;
4833
4841
  }
4834
- if (Q.next_action === "completed") {
4842
+ if (C.next_action === "completed") {
4835
4843
  r(6, $ = "success");
4836
4844
  return;
4837
4845
  }
4838
- }).catch((Q) => {
4839
- W(new G(S.ErrorSettingUpPurchase, Q.message, Q.underlyingErrorMessage));
4846
+ }).catch((C) => {
4847
+ W(new G(S.ErrorSettingUpPurchase, C.message, C.underlyingErrorMessage));
4840
4848
  });
4841
- }, z = (Q) => {
4849
+ }, z = (C) => {
4842
4850
  if ($ === "needs-auth-info") {
4843
- Q && (r(13, i = Q.email), r(6, $ = "processing-auth-info")), re();
4851
+ C && (r(13, i = C.email), r(6, $ = "processing-auth-info")), ie();
4844
4852
  return;
4845
4853
  }
4846
4854
  if ($ === "needs-payment-info") {
@@ -4856,24 +4864,24 @@ function ko(t, e, r) {
4856
4864
  return;
4857
4865
  }
4858
4866
  r(6, $ = "success");
4859
- }, W = (Q) => {
4860
- r(5, y = Q), r(6, $ = "error");
4867
+ }, W = (C) => {
4868
+ r(5, y = C), r(6, $ = "error");
4861
4869
  }, St = () => {
4862
4870
  c(y ?? new G(S.UnknownError, "Unknown error without state set."));
4863
4871
  };
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);
4872
+ return t.$$set = (C) => {
4873
+ "asModal" in C && r(0, n = C.asModal), "customerEmail" in C && r(13, i = C.customerEmail), "appUserId" in C && r(14, o = C.appUserId), "rcPackage" in C && r(15, s = C.rcPackage), "onFinished" in C && r(16, l = C.onFinished), "onError" in C && r(17, c = C.onError), "onClose" in C && r(18, a = C.onClose), "purchases" in C && r(1, f = C.purchases), "backend" in C && r(19, d = C.backend), "purchaseOperationHelper" in C && r(20, E = C.purchaseOperationHelper);
4866
4874
  }, [
4867
4875
  n,
4868
4876
  f,
4869
- _,
4877
+ A,
4870
4878
  M,
4871
4879
  h,
4872
4880
  y,
4873
4881
  $,
4874
4882
  v,
4875
4883
  de,
4876
- ve,
4884
+ Be,
4877
4885
  z,
4878
4886
  W,
4879
4887
  St,
@@ -4889,7 +4897,7 @@ function ko(t, e, r) {
4889
4897
  }
4890
4898
  class $o extends U {
4891
4899
  constructor(e) {
4892
- super(), R(
4900
+ super(), N(
4893
4901
  this,
4894
4902
  e,
4895
4903
  ko,
@@ -4914,12 +4922,32 @@ class $o extends U {
4914
4922
  function vo(t) {
4915
4923
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
4916
4924
  }
4917
- function Bo(t, e, r) {
4925
+ function Bo(t, e, r, n) {
4926
+ const i = e.product_identifier;
4927
+ if (i in r)
4928
+ return yo(
4929
+ t,
4930
+ e,
4931
+ r[i]
4932
+ );
4933
+ if (i in n)
4934
+ return Do(
4935
+ t,
4936
+ e,
4937
+ n[i]
4938
+ );
4939
+ throw new X(
4940
+ te.CustomerInfoError,
4941
+ "Could not find entitlement product in subscriptions or non-subscriptions."
4942
+ );
4943
+ }
4944
+ function yo(t, e, r) {
4918
4945
  return {
4919
4946
  identifier: t,
4920
4947
  isActive: vo(e),
4921
4948
  willRenew: Qo(e, r),
4922
4949
  store: (r == null ? void 0 : r.store) ?? "unknown",
4950
+ latestPurchaseDate: new Date(e.purchase_date),
4923
4951
  originalPurchaseDate: new Date(e.purchase_date),
4924
4952
  expirationDate: Te(e.expires_date),
4925
4953
  productIdentifier: e.product_identifier,
@@ -4933,34 +4961,59 @@ function Bo(t, e, r) {
4933
4961
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
4934
4962
  };
4935
4963
  }
4936
- function yo(t, e) {
4937
- const r = {}, n = {};
4938
- for (const i in t) {
4939
- const o = e[i] ?? null, s = Bo(
4940
- i,
4941
- t[i],
4942
- o
4964
+ function Do(t, e, r) {
4965
+ return {
4966
+ identifier: t,
4967
+ isActive: !0,
4968
+ willRenew: !1,
4969
+ store: r.store,
4970
+ latestPurchaseDate: new Date(e.purchase_date),
4971
+ originalPurchaseDate: new Date(
4972
+ r.original_purchase_date
4973
+ ),
4974
+ expirationDate: null,
4975
+ productIdentifier: e.product_identifier,
4976
+ unsubscribeDetectedAt: null,
4977
+ billingIssueDetectedAt: null,
4978
+ isSandbox: r.is_sandbox,
4979
+ periodType: "normal"
4980
+ };
4981
+ }
4982
+ function Co(t, e, r) {
4983
+ const n = {}, i = {};
4984
+ for (const o in t) {
4985
+ const s = Bo(
4986
+ o,
4987
+ t[o],
4988
+ e,
4989
+ r
4943
4990
  );
4944
- r[i] = s, s.isActive && (n[i] = s);
4991
+ n[o] = s, s.isActive && (i[o] = s);
4945
4992
  }
4946
4993
  return {
4947
- all: r,
4948
- active: n
4994
+ all: n,
4995
+ active: i
4949
4996
  };
4950
4997
  }
4951
4998
  function Te(t) {
4952
4999
  return t == null ? null : new Date(t);
4953
5000
  }
4954
- function Do(t) {
4955
- const e = Co(t), r = t.subscriber;
5001
+ function Mo(t) {
5002
+ const e = To(t), r = t.subscriber, n = Uo(
5003
+ r.non_subscriptions
5004
+ );
4956
5005
  return {
4957
- entitlements: yo(
5006
+ entitlements: Co(
4958
5007
  r.entitlements,
4959
- r.subscriptions
5008
+ r.subscriptions,
5009
+ n
4960
5010
  ),
4961
5011
  allExpirationDatesByProduct: e,
4962
- allPurchaseDatesByProduct: Mo(t),
4963
- activeSubscriptions: Po(e),
5012
+ allPurchaseDatesByProduct: Po(
5013
+ t,
5014
+ n
5015
+ ),
5016
+ activeSubscriptions: No(e),
4964
5017
  managementURL: r.management_url,
4965
5018
  requestDate: new Date(t.request_date),
4966
5019
  firstSeenDate: new Date(r.first_seen),
@@ -4976,17 +5029,21 @@ function Qo(t, e) {
4976
5029
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
4977
5030
  return !(r || n || i || o);
4978
5031
  }
4979
- function Mo(t) {
4980
- const e = {};
4981
- for (const r in t.subscriber.subscriptions) {
4982
- const n = t.subscriber.subscriptions[r];
4983
- e[r] = new Date(
4984
- n.purchase_date
5032
+ function Po(t, e) {
5033
+ const r = {};
5034
+ for (const n in t.subscriber.subscriptions) {
5035
+ const i = t.subscriber.subscriptions[n];
5036
+ r[n] = new Date(
5037
+ i.purchase_date
4985
5038
  );
4986
5039
  }
4987
- return e;
5040
+ for (const n in e) {
5041
+ const i = e[n].purchase_date;
5042
+ i == null ? r[n] = null : r[n] = new Date(i);
5043
+ }
5044
+ return r;
4988
5045
  }
4989
- function Co(t) {
5046
+ function To(t) {
4990
5047
  const e = {};
4991
5048
  for (const r in t.subscriber.subscriptions) {
4992
5049
  const n = t.subscriber.subscriptions[r];
@@ -4996,7 +5053,7 @@ function Co(t) {
4996
5053
  }
4997
5054
  return e;
4998
5055
  }
4999
- function Po(t) {
5056
+ function No(t) {
5000
5057
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5001
5058
  for (const n in t) {
5002
5059
  const i = t[n];
@@ -5004,14 +5061,24 @@ function Po(t) {
5004
5061
  }
5005
5062
  return e;
5006
5063
  }
5007
- function To(t) {
5064
+ function Uo(t) {
5065
+ const e = {};
5066
+ for (const r in t) {
5067
+ if (t[r].length === 0)
5068
+ continue;
5069
+ const n = t[r].length;
5070
+ e[r] = t[r][n - 1];
5071
+ }
5072
+ return e;
5073
+ }
5074
+ function Ro(t) {
5008
5075
  if (!t.startsWith("rcb_"))
5009
- throw new ee(
5010
- ue.InvalidCredentialsError,
5076
+ throw new X(
5077
+ te.InvalidCredentialsError,
5011
5078
  "Invalid API key. Use your RevenueCat Billing API key."
5012
5079
  );
5013
5080
  }
5014
- function Ro(t) {
5081
+ function So(t) {
5015
5082
  if ((/* @__PURE__ */ new Set([
5016
5083
  "no_user",
5017
5084
  "null",
@@ -5025,8 +5092,8 @@ function Ro(t) {
5025
5092
  "undefined",
5026
5093
  "unknown"
5027
5094
  ])).has(t) || t.includes("/"))
5028
- throw new ee(
5029
- ue.InvalidAppUserIdError,
5095
+ throw new X(
5096
+ te.InvalidAppUserIdError,
5030
5097
  'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
5031
5098
  );
5032
5099
  }
@@ -5034,15 +5101,15 @@ const J = class J {
5034
5101
  /** @internal */
5035
5102
  constructor(e, r) {
5036
5103
  /** @internal */
5037
- C(this, "_API_KEY");
5104
+ Q(this, "_API_KEY");
5038
5105
  /** @internal */
5039
- C(this, "_appUserId");
5106
+ Q(this, "_appUserId");
5040
5107
  /** @internal */
5041
- C(this, "backend");
5108
+ Q(this, "backend");
5042
5109
  /** @internal */
5043
- C(this, "purchaseOperationHelper");
5110
+ Q(this, "purchaseOperationHelper");
5044
5111
  /** @internal */
5045
- C(this, "toOfferings", (e, r) => {
5112
+ Q(this, "toOfferings", (e, r) => {
5046
5113
  const n = e.offerings.find(
5047
5114
  (l) => l.identifier === e.current_offering_id
5048
5115
  ) ?? null, i = {};
@@ -5098,7 +5165,7 @@ const J = class J {
5098
5165
  static configure(e, r) {
5099
5166
  return J.instance !== void 0 ? (V.warnLog(
5100
5167
  "Purchases is already initialized. Ignoring and returning existing instance."
5101
- ), J.getSharedInstance()) : (To(e), Ro(r), J.instance = new J(e, r), J.getSharedInstance());
5168
+ ), J.getSharedInstance()) : (Ro(e), So(r), J.instance = new J(e, r), J.getSharedInstance());
5102
5169
  }
5103
5170
  /**
5104
5171
  * Fetch the configured offerings for this user. You can configure these
@@ -5160,10 +5227,10 @@ const J = class J {
5160
5227
  });
5161
5228
  },
5162
5229
  onClose: () => {
5163
- o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new ee(ue.UserCancelledError));
5230
+ o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new X(te.UserCancelledError));
5164
5231
  },
5165
5232
  onError: (f) => {
5166
- o.innerHTML = "", a(ee.getForPurchasesFlowError(f));
5233
+ o.innerHTML = "", a(X.getForPurchasesFlowError(f));
5167
5234
  },
5168
5235
  purchases: this,
5169
5236
  backend: this.backend,
@@ -5227,17 +5294,17 @@ const J = class J {
5227
5294
  /** @internal */
5228
5295
  async _getCustomerInfoForUserId(e) {
5229
5296
  const r = await this.backend.getCustomerInfo(e);
5230
- return Do(r);
5297
+ return Mo(r);
5231
5298
  }
5232
5299
  };
5233
5300
  /** @internal */
5234
- C(J, "instance");
5301
+ Q(J, "instance");
5235
5302
  let It = J;
5236
5303
  export {
5237
- ue as ErrorCode,
5304
+ te as ErrorCode,
5238
5305
  j as LogLevel,
5239
5306
  Ft as PackageType,
5240
5307
  It as Purchases,
5241
- ee as PurchasesError,
5308
+ X as PurchasesError,
5242
5309
  Vi as UninitializedPurchasesError
5243
5310
  };