@revenuecat/purchases-js 0.0.13 → 0.0.15

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,27 +1,27 @@
1
- var vt = Object.defineProperty;
2
- var Mt = (t, e, r) => e in t ? vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var P = (t, e, r) => (Mt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function Pt(t) {
1
+ var Tt = Object.defineProperty;
2
+ var Pt = (t, e, r) => e in t ? Tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var Q = (t, e, r) => (Pt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function Nt(t) {
5
5
  return t != null;
6
6
  }
7
- var Tt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(Tt || {});
8
- const Nt = (t, e) => ({
7
+ var Rt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(Rt || {});
8
+ const Ut = (t, e) => ({
9
9
  identifier: t.identifier,
10
10
  displayName: t.title,
11
11
  currentPrice: t.current_price,
12
12
  normalPeriodDuration: t.normal_period_duration,
13
13
  presentedOfferingIdentifier: e
14
- }), Rt = (t, e, r) => {
14
+ }), Ct = (t, e, r) => {
15
15
  const n = r[e.platform_product_identifier];
16
16
  return n === void 0 ? null : {
17
17
  identifier: e.identifier,
18
- rcBillingProduct: Nt(n, t),
19
- packageType: Ct(e.identifier)
18
+ rcBillingProduct: Ut(n, t),
19
+ packageType: Ot(e.identifier)
20
20
  };
21
- }, Fe = (t, e) => {
21
+ }, Ge = (t, e) => {
22
22
  const r = t.packages.map(
23
- (i) => Rt(t.identifier, i, e)
24
- ).filter(Pt), n = {};
23
+ (i) => Ct(t.identifier, i, e)
24
+ ).filter(Nt), n = {};
25
25
  for (const i of r)
26
26
  i != null && (n[i.identifier] = i);
27
27
  return r.length == 0 ? null : {
@@ -30,16 +30,16 @@ const Nt = (t, e) => ({
30
30
  metadata: t.metadata,
31
31
  packagesById: n,
32
32
  availablePackages: r,
33
- lifetimePackage: n.$rc_lifetime ?? null,
34
- annualPackage: n.$rc_annual ?? null,
35
- sixMonthPackage: n.$rc_six_month ?? null,
36
- threeMonthPackage: n.$rc_three_month ?? null,
37
- twoMonthPackage: n.$rc_two_month ?? null,
38
- monthlyPackage: n.$rc_monthly ?? null,
39
- weeklyPackage: n.$rc_weekly ?? null
33
+ lifetime: n.$rc_lifetime ?? null,
34
+ annual: n.$rc_annual ?? null,
35
+ sixMonth: n.$rc_six_month ?? null,
36
+ threeMonth: n.$rc_three_month ?? null,
37
+ twoMonth: n.$rc_two_month ?? null,
38
+ monthly: n.$rc_monthly ?? null,
39
+ weekly: n.$rc_weekly ?? null
40
40
  };
41
41
  };
42
- function Ct(t) {
42
+ function Ot(t) {
43
43
  switch (t) {
44
44
  case "$rc_lifetime":
45
45
  return "$rc_lifetime";
@@ -61,7 +61,7 @@ function Ct(t) {
61
61
  }
62
62
  function D() {
63
63
  }
64
- function Ut(t, e) {
64
+ function St(t, e) {
65
65
  for (const r in e)
66
66
  t[r] = e[r];
67
67
  return (
@@ -69,52 +69,52 @@ function Ut(t, e) {
69
69
  t
70
70
  );
71
71
  }
72
- function at(t) {
72
+ function ft(t) {
73
73
  return t();
74
74
  }
75
- function Ge() {
75
+ function Ye() {
76
76
  return /* @__PURE__ */ Object.create(null);
77
77
  }
78
- function ge(t) {
79
- t.forEach(at);
78
+ function Ae(t) {
79
+ t.forEach(ft);
80
80
  }
81
- function ie(t) {
81
+ function le(t) {
82
82
  return typeof t == "function";
83
83
  }
84
84
  function R(t, e) {
85
85
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
86
86
  }
87
- let _e;
88
- function x(t, e) {
89
- return t === e ? !0 : (_e || (_e = document.createElement("a")), _e.href = e, t === _e.href);
87
+ let pe;
88
+ function V(t, e) {
89
+ return t === e ? !0 : (pe || (pe = document.createElement("a")), pe.href = e, t === pe.href);
90
90
  }
91
- function Ye(t) {
91
+ function He(t) {
92
92
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
93
93
  }
94
- function Ot(t, e) {
95
- const r = Ye(t.srcset), n = Ye(e || "");
94
+ function Lt(t, e) {
95
+ const r = He(t.srcset), n = He(e || "");
96
96
  return n.length === r.length && n.every(
97
97
  ([i, l], s) => l === r[s][1] && // We need to test both ways because Vite will create an a full URL with
98
98
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
99
99
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
100
100
  // browsers (in contrast to img.src). This means both SSR and DOM code could
101
101
  // contain relative or absolute URLs.
102
- (x(r[s][0], i) || x(i, r[s][0]))
102
+ (V(r[s][0], i) || V(i, r[s][0]))
103
103
  );
104
104
  }
105
- function St(t) {
105
+ function Ft(t) {
106
106
  return Object.keys(t).length === 0;
107
107
  }
108
- function H(t, e, r, n) {
108
+ function K(t, e, r, n) {
109
109
  if (t) {
110
- const i = ut(t, e, r, n);
110
+ const i = dt(t, e, r, n);
111
111
  return t[0](i);
112
112
  }
113
113
  }
114
- function ut(t, e, r, n) {
115
- return t[1] && n ? Ut(r.ctx.slice(), t[1](n(e))) : r.ctx;
114
+ function dt(t, e, r, n) {
115
+ return t[1] && n ? St(r.ctx.slice(), t[1](n(e))) : r.ctx;
116
116
  }
117
- function K(t, e, r, n) {
117
+ function j(t, e, r, n) {
118
118
  if (t[2] && n) {
119
119
  const i = t[2](n(r));
120
120
  if (e.dirty === void 0)
@@ -129,13 +129,13 @@ function K(t, e, r, n) {
129
129
  }
130
130
  return e.dirty;
131
131
  }
132
- function j(t, e, r, n, i, l) {
132
+ function J(t, e, r, n, i, l) {
133
133
  if (i) {
134
- const s = ut(e, r, n, l);
134
+ const s = dt(e, r, n, l);
135
135
  t.p(s, i);
136
136
  }
137
137
  }
138
- function J(t) {
138
+ function x(t) {
139
139
  if (t.ctx.length > 32) {
140
140
  const e = [], r = t.ctx.length / 32;
141
141
  for (let n = 0; n < r; n++)
@@ -144,20 +144,20 @@ function J(t) {
144
144
  }
145
145
  return -1;
146
146
  }
147
- function fe(t) {
147
+ function de(t) {
148
148
  return t ?? "";
149
149
  }
150
- function M(t, e) {
150
+ function T(t, e) {
151
151
  t.appendChild(e);
152
152
  }
153
153
  function S(t, e, r) {
154
- const n = Lt(t);
154
+ const n = Gt(t);
155
155
  if (!n.getElementById(e)) {
156
156
  const i = $("style");
157
- i.id = e, i.textContent = r, Ft(n, i);
157
+ i.id = e, i.textContent = r, Yt(n, i);
158
158
  }
159
159
  }
160
- function Lt(t) {
160
+ function Gt(t) {
161
161
  if (!t)
162
162
  return document;
163
163
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -167,8 +167,8 @@ function Lt(t) {
167
167
  e
168
168
  ) : t.ownerDocument;
169
169
  }
170
- function Ft(t, e) {
171
- return M(
170
+ function Yt(t, e) {
171
+ return T(
172
172
  /** @type {Document} */
173
173
  t.head || t,
174
174
  e
@@ -186,16 +186,16 @@ function $(t) {
186
186
  function L(t) {
187
187
  return document.createTextNode(t);
188
188
  }
189
- function T() {
189
+ function P() {
190
190
  return L(" ");
191
191
  }
192
- function z() {
192
+ function X() {
193
193
  return L("");
194
194
  }
195
- function Ae(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
- function ft(t) {
198
+ function mt(t) {
199
199
  return function(e) {
200
200
  return e.preventDefault(), t.call(this, e);
201
201
  };
@@ -203,55 +203,55 @@ function ft(t) {
203
203
  function h(t, e, r) {
204
204
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
205
205
  }
206
- const Gt = ["width", "height"];
207
- function Yt(t, e) {
206
+ const Ht = ["width", "height"];
207
+ function Kt(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 && Gt.indexOf(n) === -1 ? t[n] = e[n] : h(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 && Ht.indexOf(n) === -1 ? t[n] = e[n] : h(t, n, e[n]);
211
211
  }
212
- function Ht(t, e) {
212
+ function jt(t, e) {
213
213
  Object.keys(e).forEach((r) => {
214
- Kt(t, r, e[r]);
214
+ Jt(t, r, e[r]);
215
215
  });
216
216
  }
217
- function Kt(t, e, r) {
217
+ function Jt(t, e, r) {
218
218
  const n = e.toLowerCase();
219
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 : h(t, e, r);
220
220
  }
221
- function jt(t) {
222
- return /-/.test(t) ? Ht : Yt;
221
+ function xt(t) {
222
+ return /-/.test(t) ? jt : Kt;
223
223
  }
224
- function Jt(t) {
224
+ function Vt(t) {
225
225
  return Array.from(t.childNodes);
226
226
  }
227
- function ne(t, e) {
227
+ function re(t, e) {
228
228
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
229
229
  e);
230
230
  }
231
- function He(t, e) {
231
+ function Ke(t, e) {
232
232
  t.value = e ?? "";
233
233
  }
234
- function xt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
234
+ function qt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
235
235
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
236
236
  }
237
- let de;
238
- function ue(t) {
239
- de = t;
237
+ let me;
238
+ function fe(t) {
239
+ me = t;
240
240
  }
241
- function ye() {
242
- if (!de)
241
+ function De() {
242
+ if (!me)
243
243
  throw new Error("Function called outside component initialization");
244
- return de;
244
+ return me;
245
245
  }
246
- function De(t) {
247
- ye().$$.on_mount.push(t);
246
+ function ve(t) {
247
+ De().$$.on_mount.push(t);
248
248
  }
249
- function Vt() {
250
- const t = ye();
249
+ function Wt() {
250
+ const t = De();
251
251
  return (e, r, { cancelable: n = !1 } = {}) => {
252
252
  const i = t.$$.callbacks[e];
253
253
  if (i) {
254
- const l = xt(
254
+ const l = qt(
255
255
  /** @type {string} */
256
256
  e,
257
257
  r,
@@ -264,94 +264,94 @@ function Vt() {
264
264
  return !0;
265
265
  };
266
266
  }
267
- function qt(t, e) {
268
- return ye().$$.context.set(t, e), e;
267
+ function zt(t, e) {
268
+ return De().$$.context.set(t, e), e;
269
269
  }
270
- function Wt(t) {
271
- return ye().$$.context.get(t);
270
+ function Xt(t) {
271
+ return De().$$.context.get(t);
272
272
  }
273
- function dt(t, e) {
273
+ function gt(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 te = [], ke = [];
278
- let re = [];
279
- const Ce = [], zt = /* @__PURE__ */ Promise.resolve();
280
- let Ue = !1;
281
- function Xt() {
282
- Ue || (Ue = !0, zt.then(mt));
277
+ const ne = [], ke = [];
278
+ let ie = [];
279
+ const Ce = [], Zt = /* @__PURE__ */ Promise.resolve();
280
+ let Oe = !1;
281
+ function en() {
282
+ Oe || (Oe = !0, Zt.then(At));
283
283
  }
284
- function Oe(t) {
285
- re.push(t);
284
+ function Se(t) {
285
+ ie.push(t);
286
286
  }
287
- function Zt(t) {
287
+ function tn(t) {
288
288
  Ce.push(t);
289
289
  }
290
- const Te = /* @__PURE__ */ new Set();
291
- let Z = 0;
292
- function mt() {
293
- if (Z !== 0)
290
+ const Ne = /* @__PURE__ */ new Set();
291
+ let ee = 0;
292
+ function At() {
293
+ if (ee !== 0)
294
294
  return;
295
- const t = de;
295
+ const t = me;
296
296
  do {
297
297
  try {
298
- for (; Z < te.length; ) {
299
- const e = te[Z];
300
- Z++, ue(e), en(e.$$);
298
+ for (; ee < ne.length; ) {
299
+ const e = ne[ee];
300
+ ee++, fe(e), nn(e.$$);
301
301
  }
302
302
  } catch (e) {
303
- throw te.length = 0, Z = 0, e;
303
+ throw ne.length = 0, ee = 0, e;
304
304
  }
305
- for (ue(null), te.length = 0, Z = 0; ke.length; )
305
+ for (fe(null), ne.length = 0, ee = 0; ke.length; )
306
306
  ke.pop()();
307
- for (let e = 0; e < re.length; e += 1) {
308
- const r = re[e];
309
- Te.has(r) || (Te.add(r), r());
307
+ for (let e = 0; e < ie.length; e += 1) {
308
+ const r = ie[e];
309
+ Ne.has(r) || (Ne.add(r), r());
310
310
  }
311
- re.length = 0;
312
- } while (te.length);
311
+ ie.length = 0;
312
+ } while (ne.length);
313
313
  for (; Ce.length; )
314
314
  Ce.pop()();
315
- Ue = !1, Te.clear(), ue(t);
315
+ Oe = !1, Ne.clear(), fe(t);
316
316
  }
317
- function en(t) {
317
+ function nn(t) {
318
318
  if (t.fragment !== null) {
319
- t.update(), ge(t.before_update);
319
+ t.update(), Ae(t.before_update);
320
320
  const e = t.dirty;
321
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Oe);
321
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Se);
322
322
  }
323
323
  }
324
- function tn(t) {
324
+ function rn(t) {
325
325
  const e = [], r = [];
326
- re.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), re = e;
326
+ ie.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ie = e;
327
327
  }
328
- const Ie = /* @__PURE__ */ new Set();
329
- let q;
328
+ const we = /* @__PURE__ */ new Set();
329
+ let W;
330
330
  function F() {
331
- q = {
331
+ W = {
332
332
  r: 0,
333
333
  c: [],
334
- p: q
334
+ p: W
335
335
  // parent group
336
336
  };
337
337
  }
338
338
  function G() {
339
- q.r || ge(q.c), q = q.p;
339
+ W.r || Ae(W.c), W = W.p;
340
340
  }
341
341
  function a(t, e) {
342
- t && t.i && (Ie.delete(t), t.i(e));
342
+ t && t.i && (we.delete(t), t.i(e));
343
343
  }
344
344
  function f(t, e, r, n) {
345
345
  if (t && t.o) {
346
- if (Ie.has(t))
346
+ if (we.has(t))
347
347
  return;
348
- Ie.add(t), q.c.push(() => {
349
- Ie.delete(t), n && (r && t.d(1), n());
348
+ we.add(t), W.c.push(() => {
349
+ we.delete(t), n && (r && t.d(1), n());
350
350
  }), t.o(e);
351
351
  } else
352
352
  n && n();
353
353
  }
354
- function nn(t, e, r) {
354
+ function ln(t, e, r) {
355
355
  const n = t.$$.props[e];
356
356
  n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
357
357
  }
@@ -360,21 +360,21 @@ function b(t) {
360
360
  }
361
361
  function I(t, e, r) {
362
362
  const { fragment: n, after_update: i } = t.$$;
363
- n && n.m(e, r), Oe(() => {
364
- const l = t.$$.on_mount.map(at).filter(ie);
365
- t.$$.on_destroy ? t.$$.on_destroy.push(...l) : ge(l), t.$$.on_mount = [];
366
- }), i.forEach(Oe);
363
+ n && n.m(e, r), Se(() => {
364
+ const l = t.$$.on_mount.map(ft).filter(le);
365
+ t.$$.on_destroy ? t.$$.on_destroy.push(...l) : Ae(l), t.$$.on_mount = [];
366
+ }), i.forEach(Se);
367
367
  }
368
368
  function w(t, e) {
369
369
  const r = t.$$;
370
- r.fragment !== null && (tn(r.after_update), ge(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
370
+ r.fragment !== null && (rn(r.after_update), Ae(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
371
371
  }
372
- function rn(t, e) {
373
- t.$$.dirty[0] === -1 && (te.push(t), Xt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
372
+ function sn(t, e) {
373
+ t.$$.dirty[0] === -1 && (ne.push(t), en(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
374
374
  }
375
- function C(t, e, r, n, i, l, s = null, o = [-1]) {
376
- const c = de;
377
- ue(t);
375
+ function U(t, e, r, n, i, l, s = null, o = [-1]) {
376
+ const c = me;
377
+ fe(t);
378
378
  const u = t.$$ = {
379
379
  fragment: null,
380
380
  ctx: [],
@@ -382,7 +382,7 @@ function C(t, e, r, n, i, l, s = null, o = [-1]) {
382
382
  props: l,
383
383
  update: D,
384
384
  not_equal: i,
385
- bound: Ge(),
385
+ bound: Ye(),
386
386
  // lifecycle
387
387
  on_mount: [],
388
388
  on_destroy: [],
@@ -391,27 +391,27 @@ function C(t, e, r, n, i, l, s = null, o = [-1]) {
391
391
  after_update: [],
392
392
  context: new Map(e.context || (c ? c.$$.context : [])),
393
393
  // everything else
394
- callbacks: Ge(),
394
+ callbacks: Ye(),
395
395
  dirty: o,
396
396
  skip_bound: !1,
397
397
  root: e.target || c.$$.root
398
398
  };
399
399
  s && s(u.root);
400
400
  let _ = !1;
401
- if (u.ctx = r ? r(t, e.props || {}, (m, k, ...B) => {
402
- const E = B.length ? B[0] : k;
403
- return u.ctx && i(u.ctx[m], u.ctx[m] = E) && (!u.skip_bound && u.bound[m] && u.bound[m](E), _ && rn(t, m)), k;
404
- }) : [], u.update(), _ = !0, ge(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
401
+ if (u.ctx = r ? r(t, e.props || {}, (m, B, ...k) => {
402
+ const E = k.length ? k[0] : B;
403
+ return u.ctx && i(u.ctx[m], u.ctx[m] = E) && (!u.skip_bound && u.bound[m] && u.bound[m](E), _ && sn(t, m)), B;
404
+ }) : [], u.update(), _ = !0, Ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
405
405
  if (e.hydrate) {
406
- const m = Jt(e.target);
406
+ const m = Vt(e.target);
407
407
  u.fragment && u.fragment.l(m), m.forEach(g);
408
408
  } else
409
409
  u.fragment && u.fragment.c();
410
- e.intro && a(t.$$.fragment), I(t, e.target, e.anchor), mt();
410
+ e.intro && a(t.$$.fragment), I(t, e.target, e.anchor), At();
411
411
  }
412
- ue(c);
412
+ fe(c);
413
413
  }
414
- class U {
414
+ class C {
415
415
  constructor() {
416
416
  /**
417
417
  * ### PRIVATE API
@@ -420,7 +420,7 @@ class U {
420
420
  *
421
421
  * @type {any}
422
422
  */
423
- P(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
- P(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 (!ie(r))
444
+ if (!le(r))
445
445
  return D;
446
446
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
447
447
  return n.push(r), () => {
@@ -454,15 +454,15 @@ class U {
454
454
  * @returns {void}
455
455
  */
456
456
  $set(e) {
457
- this.$$set && !St(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
457
+ this.$$set && !Ft(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
458
458
  }
459
459
  }
460
- const ln = "4";
461
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ln);
462
- function sn(t) {
460
+ const on = "4";
461
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(on);
462
+ function cn(t) {
463
463
  S(t, "svelte-8uc6s0", "aside.svelte-8uc6s0{color:yellowgreen;font-weight:bold;text-transform:uppercase;padding:0.5rem 0;width:100%;font-size:0.75rem;border-radius:0.5rem}");
464
464
  }
465
- function on(t) {
465
+ function an(t) {
466
466
  let e;
467
467
  return {
468
468
  c() {
@@ -479,20 +479,20 @@ function on(t) {
479
479
  }
480
480
  };
481
481
  }
482
- class cn extends U {
482
+ class un extends C {
483
483
  constructor(e) {
484
- super(), C(this, e, null, on, R, {}, sn);
484
+ super(), U(this, e, null, an, R, {}, cn);
485
485
  }
486
486
  }
487
- function an(t) {
487
+ function fn(t) {
488
488
  S(t, "svelte-ujomz3", ".rcb-modal-section.svelte-ujomz3{padding:0.5rem 0rem;display:flex}.rcb-modal-section.svelte-ujomz3:last-of-type{padding:0}");
489
489
  }
490
- function Ne(t) {
490
+ function Re(t) {
491
491
  let e, r;
492
492
  const n = (
493
493
  /*#slots*/
494
494
  t[2].default
495
- ), i = H(
495
+ ), i = K(
496
496
  n,
497
497
  t,
498
498
  /*$$scope*/
@@ -504,11 +504,11 @@ function Ne(t) {
504
504
  e = $(
505
505
  /*as*/
506
506
  t[0]
507
- ), i && i.c(), jt(
507
+ ), i && i.c(), xt(
508
508
  /*as*/
509
509
  t[0]
510
510
  )(e, {
511
- class: fe("rcb-modal-section") + " svelte-ujomz3"
511
+ class: de("rcb-modal-section") + " svelte-ujomz3"
512
512
  });
513
513
  },
514
514
  m(l, s) {
@@ -516,19 +516,19 @@ function Ne(t) {
516
516
  },
517
517
  p(l, s) {
518
518
  i && i.p && (!r || s & /*$$scope*/
519
- 2) && j(
519
+ 2) && J(
520
520
  i,
521
521
  n,
522
522
  l,
523
523
  /*$$scope*/
524
524
  l[1],
525
- r ? K(
525
+ r ? j(
526
526
  n,
527
527
  /*$$scope*/
528
528
  l[1],
529
529
  s,
530
530
  null
531
- ) : J(
531
+ ) : x(
532
532
  /*$$scope*/
533
533
  l[1]
534
534
  ),
@@ -546,17 +546,17 @@ function Ne(t) {
546
546
  }
547
547
  };
548
548
  }
549
- function un(t) {
549
+ function dn(t) {
550
550
  let e = (
551
551
  /*as*/
552
552
  t[0]
553
553
  ), r, n, i = (
554
554
  /*as*/
555
- t[0] && Ne(t)
555
+ t[0] && Re(t)
556
556
  );
557
557
  return {
558
558
  c() {
559
- i && i.c(), r = z();
559
+ i && i.c(), r = X();
560
560
  },
561
561
  m(l, s) {
562
562
  i && i.m(l, s), A(l, r, s), n = !0;
@@ -567,8 +567,8 @@ function un(t) {
567
567
  e,
568
568
  /*as*/
569
569
  l[0]
570
- ) ? (i.d(1), i = Ne(l), e = /*as*/
571
- l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, s) : (i = Ne(l), e = /*as*/
570
+ ) ? (i.d(1), i = Re(l), e = /*as*/
571
+ l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, s) : (i = Re(l), e = /*as*/
572
572
  l[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
573
573
  l[0]);
574
574
  },
@@ -583,86 +583,86 @@ function un(t) {
583
583
  }
584
584
  };
585
585
  }
586
- function fn(t, e, r) {
586
+ function mn(t, e, r) {
587
587
  let { $$slots: n = {}, $$scope: i } = e, { as: l = "section" } = e;
588
588
  return t.$$set = (s) => {
589
589
  "as" in s && r(0, l = s.as), "$$scope" in s && r(1, i = s.$$scope);
590
590
  }, [l, i, n];
591
591
  }
592
- class V extends U {
592
+ class q extends C {
593
593
  constructor(e) {
594
- super(), C(this, e, fn, un, R, { as: 0 }, an);
594
+ super(), U(this, e, mn, dn, R, { as: 0 }, fn);
595
595
  }
596
596
  }
597
- const dn = {
597
+ const gn = {
598
598
  Y: "year",
599
599
  M: "month",
600
600
  W: "week",
601
601
  D: "day",
602
602
  H: "hour"
603
- }, Ke = (t, e) => {
603
+ }, je = (t, e) => {
604
604
  const r = t / 100;
605
605
  return new Intl.NumberFormat("en-US", {
606
606
  style: "currency",
607
607
  currency: e
608
608
  }).format(r);
609
- }, je = (t) => {
609
+ }, Je = (t) => {
610
610
  const e = t.slice(-1);
611
- return e === "D" ? "daily" : `${dn[e]}ly`;
611
+ return e === "D" ? "daily" : `${gn[e]}ly`;
612
612
  };
613
- function mn(t) {
613
+ function An(t) {
614
614
  S(t, "svelte-1oa6nu8", ".rcb-pricing-info.svelte-1oa6nu8{display:flex;flex-direction:column;height:10rem;justify-content:flex-end}.rcb-product-price.svelte-1oa6nu8{font-size:1.5rem}.rcb-product-duration.svelte-1oa6nu8{opacity:0.6}");
615
615
  }
616
- function gn(t) {
616
+ function _n(t) {
617
617
  let e, r, n = (
618
618
  /*productDetails*/
619
619
  t[0].displayName + ""
620
620
  ), i, l, s, o = (
621
621
  /*productDetails*/
622
622
  t[0].currentPrice.currency + ""
623
- ), c, u = " ", _, m = Ke(
623
+ ), c, u = " ", _, m = je(
624
624
  /*productDetails*/
625
625
  t[0].currentPrice.amount,
626
626
  /*productDetails*/
627
627
  t[0].currentPrice.currency
628
- ) + "", k, B, E, y, v = je(
628
+ ) + "", B, k, E, y, M = Je(
629
629
  /*productDetails*/
630
630
  t[0].normalPeriodDuration
631
631
  ) + "", N;
632
632
  return {
633
633
  c() {
634
- e = $("div"), r = $("span"), i = L(n), l = T(), s = $("span"), c = L(o), _ = L(u), k = L(m), B = T(), E = $("span"), y = L("Billed "), N = L(v), h(s, "class", "rcb-product-price svelte-1oa6nu8"), h(E, "class", "rcb-product-duration svelte-1oa6nu8"), h(e, "class", "rcb-pricing-info svelte-1oa6nu8");
634
+ e = $("div"), r = $("span"), i = L(n), l = P(), s = $("span"), c = L(o), _ = L(u), B = L(m), k = P(), E = $("span"), y = L("Billed "), N = L(M), h(s, "class", "rcb-product-price svelte-1oa6nu8"), h(E, "class", "rcb-product-duration svelte-1oa6nu8"), h(e, "class", "rcb-pricing-info svelte-1oa6nu8");
635
635
  },
636
636
  m(d, p) {
637
- A(d, e, p), M(e, r), M(r, i), M(e, l), M(e, s), M(s, c), M(s, _), M(s, k), M(e, B), M(e, E), M(E, y), M(E, N);
637
+ A(d, e, p), T(e, r), T(r, i), T(e, l), T(e, s), T(s, c), T(s, _), T(s, B), T(e, k), T(e, E), T(E, y), T(E, N);
638
638
  },
639
639
  p(d, p) {
640
640
  p & /*productDetails*/
641
641
  1 && n !== (n = /*productDetails*/
642
- d[0].displayName + "") && ne(i, n), p & /*productDetails*/
642
+ d[0].displayName + "") && re(i, n), p & /*productDetails*/
643
643
  1 && o !== (o = /*productDetails*/
644
- d[0].currentPrice.currency + "") && ne(c, o), p & /*productDetails*/
645
- 1 && m !== (m = Ke(
644
+ d[0].currentPrice.currency + "") && re(c, o), p & /*productDetails*/
645
+ 1 && m !== (m = je(
646
646
  /*productDetails*/
647
647
  d[0].currentPrice.amount,
648
648
  /*productDetails*/
649
649
  d[0].currentPrice.currency
650
- ) + "") && ne(k, m), p & /*productDetails*/
651
- 1 && v !== (v = je(
650
+ ) + "") && re(B, m), p & /*productDetails*/
651
+ 1 && M !== (M = Je(
652
652
  /*productDetails*/
653
653
  d[0].normalPeriodDuration
654
- ) + "") && ne(N, v);
654
+ ) + "") && re(N, M);
655
655
  },
656
656
  d(d) {
657
657
  d && g(e);
658
658
  }
659
659
  };
660
660
  }
661
- function An(t) {
661
+ function pn(t) {
662
662
  let e, r;
663
- return e = new V({
663
+ return e = new q({
664
664
  props: {
665
- $$slots: { default: [gn] },
665
+ $$slots: { default: [_n] },
666
666
  $$scope: { ctx: t }
667
667
  }
668
668
  }), {
@@ -688,23 +688,23 @@ function An(t) {
688
688
  }
689
689
  };
690
690
  }
691
- function _n(t, e, r) {
691
+ function hn(t, e, r) {
692
692
  let { productDetails: n } = e;
693
693
  return t.$$set = (i) => {
694
694
  "productDetails" in i && r(0, n = i.productDetails);
695
695
  }, [n];
696
696
  }
697
- class gt extends U {
697
+ class _t extends C {
698
698
  constructor(e) {
699
- super(), C(this, e, _n, An, R, { productDetails: 0 }, mn);
699
+ super(), U(this, e, hn, pn, R, { productDetails: 0 }, An);
700
700
  }
701
701
  }
702
- const pn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAUTKlxI8EEEhhADcGEI4QFDJQy5ZJmo0OFCFBFkLNzCRQvHghEgKHQi4cEPhhuzdHyYUMQDDxC5kNSSsGLCIA4x5oxZ0GNBDBFKRAxgkmTBgwVpRJhAZWkAohErPKhhVaLJpR8+YFnohEjXrlB2qHgB5SxELD5etHgBxC1DJC9eqOAxxe5CHSxc0HDilyEOGWYLBgQAIfkEBQQAAQAsGAADABcAFwAACJYAS5AIQLCgwYMINXBAyLDhhg0Ntx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29vb6+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/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCH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DEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
703
+ function In(t) {
704
704
  let e, r;
705
705
  return {
706
706
  c() {
707
- e = $("img"), x(e.src, r = pn) || h(e, "src", r), h(e, "alt", "spinner");
707
+ e = $("img"), V(e.src, r = En) || h(e, "src", r), h(e, "alt", "spinner");
708
708
  },
709
709
  m(n, i) {
710
710
  A(n, e, i);
@@ -717,17 +717,17 @@ function hn(t) {
717
717
  }
718
718
  };
719
719
  }
720
- class En extends U {
720
+ class wn extends C {
721
721
  constructor(e) {
722
- super(), C(this, e, null, hn, R, {});
722
+ super(), U(this, e, null, In, R, {});
723
723
  }
724
724
  }
725
- function In(t) {
725
+ function bn(t) {
726
726
  S(t, "svelte-4wmtg7", ".rcb-modal-loader.svelte-4wmtg7{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center}");
727
727
  }
728
- function wn(t) {
728
+ function $n(t) {
729
729
  let e, r, n;
730
- return r = new En({}), {
730
+ return r = new wn({}), {
731
731
  c() {
732
732
  e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-modal-loader svelte-4wmtg7");
733
733
  },
@@ -746,23 +746,23 @@ function wn(t) {
746
746
  }
747
747
  };
748
748
  }
749
- class Qe extends U {
749
+ class Qe extends C {
750
750
  constructor(e) {
751
- super(), C(this, e, null, wn, R, {}, In);
751
+ super(), U(this, e, null, $n, R, {}, bn);
752
752
  }
753
753
  }
754
- var ae = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ae || {}), we = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(we || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(O || {});
754
+ var ue = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ue || {}), be = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(be || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(O || {});
755
755
  class Y extends Error {
756
756
  constructor(e, r, n) {
757
757
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
758
758
  }
759
759
  }
760
- class bn {
760
+ class Bn {
761
761
  constructor(e, r = 10) {
762
- P(this, "operationSessionId", null);
763
- P(this, "backend");
764
- P(this, "maxNumberAttempts");
765
- P(this, "waitMSBetweenAttempts", 1e3);
762
+ Q(this, "operationSessionId", null);
763
+ Q(this, "backend");
764
+ Q(this, "maxNumberAttempts");
765
+ Q(this, "waitMSBetweenAttempts", 1e3);
766
766
  this.backend = e, this.maxNumberAttempts = r;
767
767
  }
768
768
  async startPurchase(e, r, n) {
@@ -793,17 +793,17 @@ class bn {
793
793
  }
794
794
  this.backend.getCheckoutStatus(e).then((s) => {
795
795
  switch (s.operation.status) {
796
- case ae.Started:
797
- case ae.InProgress:
796
+ case ue.Started:
797
+ case ue.InProgress:
798
798
  setTimeout(
799
799
  () => i(l + 1),
800
800
  this.waitMSBetweenAttempts
801
801
  );
802
802
  break;
803
- case ae.Succeeded:
803
+ case ue.Succeeded:
804
804
  this.clearPurchaseInProgress(), r();
805
805
  return;
806
- case ae.Failed:
806
+ case ue.Failed:
807
807
  this.clearPurchaseInProgress(), this.handlePaymentError(
808
808
  s.operation.error,
809
809
  n
@@ -835,7 +835,7 @@ class bn {
835
835
  return;
836
836
  }
837
837
  switch (e.code) {
838
- case we.SetupIntentCreationFailed:
838
+ case be.SetupIntentCreationFailed:
839
839
  r(
840
840
  new Y(
841
841
  0,
@@ -843,7 +843,7 @@ class bn {
843
843
  )
844
844
  );
845
845
  return;
846
- case we.PaymentMethodCreationFailed:
846
+ case be.PaymentMethodCreationFailed:
847
847
  r(
848
848
  new Y(
849
849
  0,
@@ -851,7 +851,7 @@ class bn {
851
851
  )
852
852
  );
853
853
  return;
854
- case we.PaymentChargeFailed:
854
+ case be.PaymentChargeFailed:
855
855
  r(
856
856
  new Y(
857
857
  1,
@@ -862,15 +862,15 @@ class bn {
862
862
  }
863
863
  }
864
864
  }
865
- function $n(t) {
865
+ function kn(t) {
866
866
  S(t, "svelte-igat39", "button.svelte-igat39{border:none;border-radius:3.5rem;font-size:1rem;cursor:pointer;height:3.5rem;color:black;background-color:#dfdfdf}button.intent-primary.svelte-igat39{background-color:#000;color:white;font-size:1rem}");
867
867
  }
868
- function kn(t) {
868
+ function yn(t) {
869
869
  let e, r, n, i, l;
870
870
  const s = (
871
871
  /*#slots*/
872
872
  t[3].default
873
- ), o = H(
873
+ ), o = K(
874
874
  s,
875
875
  t,
876
876
  /*$$scope*/
@@ -879,12 +879,12 @@ function kn(t) {
879
879
  );
880
880
  return {
881
881
  c() {
882
- e = $("button"), o && o.c(), h(e, "class", r = fe(`intent-${/*intent*/
882
+ e = $("button"), o && o.c(), h(e, "class", r = de(`intent-${/*intent*/
883
883
  t[0]}`) + " svelte-igat39"), e.disabled = /*disabled*/
884
884
  t[1];
885
885
  },
886
886
  m(c, u) {
887
- A(c, e, u), o && o.m(e, null), n = !0, i || (l = Ae(
887
+ A(c, e, u), o && o.m(e, null), n = !0, i || (l = _e(
888
888
  e,
889
889
  "click",
890
890
  /*click_handler*/
@@ -893,25 +893,25 @@ function kn(t) {
893
893
  },
894
894
  p(c, [u]) {
895
895
  o && o.p && (!n || u & /*$$scope*/
896
- 4) && j(
896
+ 4) && J(
897
897
  o,
898
898
  s,
899
899
  c,
900
900
  /*$$scope*/
901
901
  c[2],
902
- n ? K(
902
+ n ? j(
903
903
  s,
904
904
  /*$$scope*/
905
905
  c[2],
906
906
  u,
907
907
  null
908
- ) : J(
908
+ ) : x(
909
909
  /*$$scope*/
910
910
  c[2]
911
911
  ),
912
912
  null
913
913
  ), (!n || u & /*intent*/
914
- 1 && r !== (r = fe(`intent-${/*intent*/
914
+ 1 && r !== (r = de(`intent-${/*intent*/
915
915
  c[0]}`) + " svelte-igat39")) && h(e, "class", r), (!n || u & /*disabled*/
916
916
  2) && (e.disabled = /*disabled*/
917
917
  c[1]);
@@ -927,29 +927,29 @@ function kn(t) {
927
927
  }
928
928
  };
929
929
  }
930
- function Bn(t, e, r) {
930
+ function Dn(t, e, r) {
931
931
  let { $$slots: n = {}, $$scope: i } = e, { intent: l = "primary" } = e, { disabled: s = !1 } = e;
932
932
  function o(c) {
933
- dt.call(this, t, c);
933
+ gt.call(this, t, c);
934
934
  }
935
935
  return t.$$set = (c) => {
936
936
  "intent" in c && r(0, l = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
937
937
  }, [l, s, i, n, o];
938
938
  }
939
- class me extends U {
939
+ class ge extends C {
940
940
  constructor(e) {
941
- super(), C(this, e, Bn, kn, R, { intent: 0, disabled: 1 }, $n);
941
+ super(), U(this, e, Dn, yn, R, { intent: 0, disabled: 1 }, kn);
942
942
  }
943
943
  }
944
- function yn(t) {
944
+ function vn(t) {
945
945
  S(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
946
946
  }
947
- function Dn(t) {
947
+ function Qn(t) {
948
948
  let e, r;
949
949
  const n = (
950
950
  /*#slots*/
951
951
  t[1].default
952
- ), i = H(
952
+ ), i = K(
953
953
  n,
954
954
  t,
955
955
  /*$$scope*/
@@ -965,19 +965,19 @@ function Dn(t) {
965
965
  },
966
966
  p(l, [s]) {
967
967
  i && i.p && (!r || s & /*$$scope*/
968
- 1) && j(
968
+ 1) && J(
969
969
  i,
970
970
  n,
971
971
  l,
972
972
  /*$$scope*/
973
973
  l[0],
974
- r ? K(
974
+ r ? j(
975
975
  n,
976
976
  /*$$scope*/
977
977
  l[0],
978
978
  s,
979
979
  null
980
- ) : J(
980
+ ) : x(
981
981
  /*$$scope*/
982
982
  l[0]
983
983
  ),
@@ -995,26 +995,26 @@ function Dn(t) {
995
995
  }
996
996
  };
997
997
  }
998
- function Qn(t, e, r) {
998
+ function Mn(t, e, r) {
999
999
  let { $$slots: n = {}, $$scope: i } = e;
1000
1000
  return t.$$set = (l) => {
1001
1001
  "$$scope" in l && r(0, i = l.$$scope);
1002
1002
  }, [i, n];
1003
1003
  }
1004
- class ve extends U {
1004
+ class Me extends C {
1005
1005
  constructor(e) {
1006
- super(), C(this, e, Qn, Dn, R, {}, yn);
1006
+ super(), U(this, e, Mn, Qn, R, {}, vn);
1007
1007
  }
1008
1008
  }
1009
- const vn = "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";
1010
- function Mn(t) {
1009
+ const Tn = "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";
1010
+ function Pn(t) {
1011
1011
  S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
1012
1012
  }
1013
- function Pn(t) {
1013
+ function Nn(t) {
1014
1014
  let e, r;
1015
1015
  return {
1016
1016
  c() {
1017
- e = $("img"), x(e.src, r = vn) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
1017
+ e = $("img"), V(e.src, r = Tn) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
1018
1018
  },
1019
1019
  m(n, i) {
1020
1020
  A(n, e, i);
@@ -1027,20 +1027,20 @@ function Pn(t) {
1027
1027
  }
1028
1028
  };
1029
1029
  }
1030
- class Tn extends U {
1030
+ class Rn extends C {
1031
1031
  constructor(e) {
1032
- super(), C(this, e, null, Pn, R, {}, Mn);
1032
+ super(), U(this, e, null, Nn, R, {}, Pn);
1033
1033
  }
1034
1034
  }
1035
- function Nn(t) {
1035
+ function Un(t) {
1036
1036
  S(t, "svelte-18njhoa", '.column.svelte-18njhoa{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "0.5rem")}');
1037
1037
  }
1038
- function Rn(t) {
1038
+ function Cn(t) {
1039
1039
  let e, r, n;
1040
1040
  const i = (
1041
1041
  /*#slots*/
1042
1042
  t[2].default
1043
- ), l = H(
1043
+ ), l = K(
1044
1044
  i,
1045
1045
  t,
1046
1046
  /*$$scope*/
@@ -1057,19 +1057,19 @@ function Rn(t) {
1057
1057
  },
1058
1058
  p(s, [o]) {
1059
1059
  l && l.p && (!n || o & /*$$scope*/
1060
- 2) && j(
1060
+ 2) && J(
1061
1061
  l,
1062
1062
  i,
1063
1063
  s,
1064
1064
  /*$$scope*/
1065
1065
  s[1],
1066
- n ? K(
1066
+ n ? j(
1067
1067
  i,
1068
1068
  /*$$scope*/
1069
1069
  s[1],
1070
1070
  o,
1071
1071
  null
1072
- ) : J(
1072
+ ) : x(
1073
1073
  /*$$scope*/
1074
1074
  s[1]
1075
1075
  ),
@@ -1089,30 +1089,30 @@ function Rn(t) {
1089
1089
  }
1090
1090
  };
1091
1091
  }
1092
- function Cn(t, e, r) {
1092
+ function On(t, e, r) {
1093
1093
  let { $$slots: n = {}, $$scope: i } = e, { gutter: l = "0.5rem" } = e;
1094
1094
  return t.$$set = (s) => {
1095
1095
  "gutter" in s && r(0, l = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1096
1096
  }, [l, i, n];
1097
1097
  }
1098
- class X extends U {
1098
+ class Z extends C {
1099
1099
  constructor(e) {
1100
- super(), C(this, e, Cn, Rn, R, { gutter: 0 }, Nn);
1100
+ super(), U(this, e, On, Cn, R, { gutter: 0 }, Un);
1101
1101
  }
1102
1102
  }
1103
- const Un = "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";
1104
- function On(t) {
1103
+ const Sn = "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";
1104
+ function Ln(t) {
1105
1105
  S(t, "svelte-r1ujja", ".close-button.svelte-r1ujja{border:none;cursor:pointer;background-color:transparent}");
1106
1106
  }
1107
- function Sn(t) {
1107
+ function Fn(t) {
1108
1108
  let e, r, n, i, l;
1109
1109
  return {
1110
1110
  c() {
1111
- e = $("button"), r = $("img"), x(r.src, n = Un) || h(r, "src", n), h(r, "alt", "close"), h(e, "class", "close-button svelte-r1ujja"), e.disabled = /*disabled*/
1111
+ e = $("button"), r = $("img"), V(r.src, n = Sn) || h(r, "src", n), h(r, "alt", "close"), h(e, "class", "close-button svelte-r1ujja"), e.disabled = /*disabled*/
1112
1112
  t[0];
1113
1113
  },
1114
1114
  m(s, o) {
1115
- A(s, e, o), M(e, r), i || (l = Ae(
1115
+ A(s, e, o), T(e, r), i || (l = _e(
1116
1116
  e,
1117
1117
  "click",
1118
1118
  /*click_handler*/
@@ -1131,24 +1131,24 @@ function Sn(t) {
1131
1131
  }
1132
1132
  };
1133
1133
  }
1134
- function Ln(t, e, r) {
1134
+ function Gn(t, e, r) {
1135
1135
  let { disabled: n = !1 } = e;
1136
1136
  function i(l) {
1137
- dt.call(this, t, l);
1137
+ gt.call(this, t, l);
1138
1138
  }
1139
1139
  return t.$$set = (l) => {
1140
1140
  "disabled" in l && r(0, n = l.disabled);
1141
1141
  }, [n, i];
1142
1142
  }
1143
- class Fn extends U {
1143
+ class Yn extends C {
1144
1144
  constructor(e) {
1145
- super(), C(this, e, Ln, Sn, R, { disabled: 0 }, On);
1145
+ super(), U(this, e, Gn, Fn, R, { disabled: 0 }, Ln);
1146
1146
  }
1147
1147
  }
1148
- function Gn(t) {
1148
+ function Hn(t) {
1149
1149
  S(t, "svelte-10u48yl", ".rcb-app-icon.svelte-10u48yl{width:2.5rem;height:2.5rem;border-radius:0.75rem;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:1rem}.rcb-app-icon-picture-container.svelte-10u48yl{height:2.5rem}.rcb-app-icon.loading.svelte-10u48yl{background-color:gray}");
1150
1150
  }
1151
- function Yn(t) {
1151
+ function Kn(t) {
1152
1152
  let e;
1153
1153
  return {
1154
1154
  c() {
@@ -1163,22 +1163,22 @@ function Yn(t) {
1163
1163
  }
1164
1164
  };
1165
1165
  }
1166
- function Hn(t) {
1166
+ function jn(t) {
1167
1167
  let e, r, n, i, l, s;
1168
1168
  return {
1169
1169
  c() {
1170
- e = $("picture"), r = $("source"), i = T(), l = $("img"), h(r, "type", "image/webp"), Ot(r, n = /*srcWebp*/
1171
- t[1]) || h(r, "srcset", n), h(l, "class", "rcb-app-icon svelte-10u48yl"), x(l.src, s = /*src*/
1170
+ e = $("picture"), r = $("source"), i = P(), l = $("img"), h(r, "type", "image/webp"), Lt(r, n = /*srcWebp*/
1171
+ t[1]) || h(r, "srcset", n), h(l, "class", "rcb-app-icon svelte-10u48yl"), V(l.src, s = /*src*/
1172
1172
  t[0]) || h(l, "src", s), h(l, "alt", "App icon"), h(e, "class", "rcb-app-icon-picture-container svelte-10u48yl");
1173
1173
  },
1174
1174
  m(o, c) {
1175
- A(o, e, c), M(e, r), M(e, i), M(e, l);
1175
+ A(o, e, c), T(e, r), T(e, i), T(e, l);
1176
1176
  },
1177
1177
  p(o, c) {
1178
1178
  c & /*srcWebp*/
1179
1179
  2 && n !== (n = /*srcWebp*/
1180
1180
  o[1]) && h(r, "srcset", n), c & /*src*/
1181
- 1 && !x(l.src, s = /*src*/
1181
+ 1 && !V(l.src, s = /*src*/
1182
1182
  o[0]) && h(l, "src", s);
1183
1183
  },
1184
1184
  d(o) {
@@ -1186,18 +1186,18 @@ function Hn(t) {
1186
1186
  }
1187
1187
  };
1188
1188
  }
1189
- function Kn(t) {
1189
+ function Jn(t) {
1190
1190
  let e;
1191
1191
  function r(l, s) {
1192
1192
  return (
1193
1193
  /*src*/
1194
- l[0] !== null ? Hn : Yn
1194
+ l[0] !== null ? jn : Kn
1195
1195
  );
1196
1196
  }
1197
1197
  let n = r(t), i = n(t);
1198
1198
  return {
1199
1199
  c() {
1200
- i.c(), e = z();
1200
+ i.c(), e = X();
1201
1201
  },
1202
1202
  m(l, s) {
1203
1203
  i.m(l, s), A(l, e, s);
@@ -1212,24 +1212,24 @@ function Kn(t) {
1212
1212
  }
1213
1213
  };
1214
1214
  }
1215
- function jn(t, e, r) {
1215
+ function xn(t, e, r) {
1216
1216
  let { src: n = null } = e, { srcWebp: i = null } = e;
1217
1217
  return t.$$set = (l) => {
1218
1218
  "src" in l && r(0, n = l.src), "srcWebp" in l && r(1, i = l.srcWebp);
1219
1219
  }, [n, i];
1220
1220
  }
1221
- class At extends U {
1221
+ class pt extends C {
1222
1222
  constructor(e) {
1223
- super(), C(this, e, jn, Kn, R, { src: 0, srcWebp: 1 }, Gn);
1223
+ super(), U(this, e, xn, Jn, R, { src: 0, srcWebp: 1 }, Hn);
1224
1224
  }
1225
1225
  }
1226
- const pe = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1227
- function Jn(t) {
1226
+ const he = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1227
+ function Vn(t) {
1228
1228
  S(t, "svelte-1tdgim9", ".app-title.svelte-1tdgim9{font-weight:500;margin:0.5rem 0;font-size:1rem}.rcb-header-layout__business-info.svelte-1tdgim9{display:flex;align-items:center}");
1229
1229
  }
1230
- function xn(t) {
1230
+ function qn(t) {
1231
1231
  let e, r;
1232
- return e = new At({}), {
1232
+ return e = new pt({}), {
1233
1233
  c() {
1234
1234
  b(e.$$.fragment);
1235
1235
  },
@@ -1248,31 +1248,31 @@ function xn(t) {
1248
1248
  }
1249
1249
  };
1250
1250
  }
1251
- function Vn(t) {
1251
+ function Wn(t) {
1252
1252
  let e, r, n = (
1253
1253
  /*brandingInfo*/
1254
1254
  t[0].seller_company_name + ""
1255
1255
  ), i, l, s = (
1256
1256
  /*brandingInfo*/
1257
1257
  t[0].app_icon_webp !== null && /*brandingInfo*/
1258
- t[0].app_icon !== null && Je(t)
1258
+ t[0].app_icon !== null && xe(t)
1259
1259
  );
1260
1260
  return {
1261
1261
  c() {
1262
- s && s.c(), e = T(), r = $("span"), i = L(n), h(r, "class", "app-title svelte-1tdgim9");
1262
+ s && s.c(), e = P(), r = $("span"), i = L(n), h(r, "class", "app-title svelte-1tdgim9");
1263
1263
  },
1264
1264
  m(o, c) {
1265
- s && s.m(o, c), A(o, e, c), A(o, r, c), M(r, i), l = !0;
1265
+ s && s.m(o, c), A(o, e, c), A(o, r, c), T(r, i), l = !0;
1266
1266
  },
1267
1267
  p(o, c) {
1268
1268
  /*brandingInfo*/
1269
1269
  o[0].app_icon_webp !== null && /*brandingInfo*/
1270
1270
  o[0].app_icon !== null ? s ? (s.p(o, c), c & /*brandingInfo*/
1271
- 1 && a(s, 1)) : (s = Je(o), s.c(), a(s, 1), s.m(e.parentNode, e)) : s && (F(), f(s, 1, 1, () => {
1271
+ 1 && a(s, 1)) : (s = xe(o), s.c(), a(s, 1), s.m(e.parentNode, e)) : s && (F(), f(s, 1, 1, () => {
1272
1272
  s = null;
1273
1273
  }), G()), (!l || c & /*brandingInfo*/
1274
1274
  1) && n !== (n = /*brandingInfo*/
1275
- o[0].seller_company_name + "") && ne(i, n);
1275
+ o[0].seller_company_name + "") && re(i, n);
1276
1276
  },
1277
1277
  i(o) {
1278
1278
  l || (a(s), l = !0);
@@ -1285,15 +1285,15 @@ function Vn(t) {
1285
1285
  }
1286
1286
  };
1287
1287
  }
1288
- function Je(t) {
1288
+ function xe(t) {
1289
1289
  let e, r;
1290
- return e = new At({
1290
+ return e = new pt({
1291
1291
  props: {
1292
- src: pe(
1292
+ src: he(
1293
1293
  /*brandingInfo*/
1294
1294
  t[0].app_icon
1295
1295
  ),
1296
- srcWebp: pe(
1296
+ srcWebp: he(
1297
1297
  /*brandingInfo*/
1298
1298
  t[0].app_icon_webp
1299
1299
  )
@@ -1308,11 +1308,11 @@ function Je(t) {
1308
1308
  p(n, i) {
1309
1309
  const l = {};
1310
1310
  i & /*brandingInfo*/
1311
- 1 && (l.src = pe(
1311
+ 1 && (l.src = he(
1312
1312
  /*brandingInfo*/
1313
1313
  n[0].app_icon
1314
1314
  )), i & /*brandingInfo*/
1315
- 1 && (l.srcWebp = pe(
1315
+ 1 && (l.srcWebp = he(
1316
1316
  /*brandingInfo*/
1317
1317
  n[0].app_icon_webp
1318
1318
  )), e.$set(l);
@@ -1328,9 +1328,9 @@ function Je(t) {
1328
1328
  }
1329
1329
  };
1330
1330
  }
1331
- function qn(t) {
1331
+ function zn(t) {
1332
1332
  let e, r, n, i;
1333
- const l = [Vn, xn], s = [];
1333
+ const l = [Wn, qn], s = [];
1334
1334
  function o(c, u) {
1335
1335
  return (
1336
1336
  /*brandingInfo*/
@@ -1361,38 +1361,38 @@ function qn(t) {
1361
1361
  }
1362
1362
  };
1363
1363
  }
1364
- function Wn(t, e, r) {
1364
+ function Xn(t, e, r) {
1365
1365
  let { brandingInfo: n = null } = e;
1366
1366
  return t.$$set = (i) => {
1367
1367
  "brandingInfo" in i && r(0, n = i.brandingInfo);
1368
1368
  }, [n];
1369
1369
  }
1370
- class _t extends U {
1370
+ class ht extends C {
1371
1371
  constructor(e) {
1372
- super(), C(this, e, Wn, qn, R, { brandingInfo: 0 }, Jn);
1372
+ super(), U(this, e, Xn, zn, R, { brandingInfo: 0 }, Vn);
1373
1373
  }
1374
1374
  }
1375
- function zn(t) {
1375
+ function Zn(t) {
1376
1376
  S(t, "svelte-j03lz1", ".rcb-post-purchase-header-layout.svelte-j03lz1{display:flex;justify-content:space-between;align-items:center;width:100%}");
1377
1377
  }
1378
- function Xn(t) {
1378
+ function er(t) {
1379
1379
  let e, r, n, i, l;
1380
- return r = new _t({
1380
+ return r = new ht({
1381
1381
  props: { brandingInfo: (
1382
1382
  /*brandingInfo*/
1383
1383
  t[0]
1384
1384
  ) }
1385
- }), i = new Fn({}), i.$on("click", function() {
1386
- ie(
1385
+ }), i = new Yn({}), i.$on("click", function() {
1386
+ le(
1387
1387
  /*onClose*/
1388
1388
  t[1]
1389
1389
  ) && t[1].apply(this, arguments);
1390
1390
  }), {
1391
1391
  c() {
1392
- e = $("div"), b(r.$$.fragment), n = T(), b(i.$$.fragment), h(e, "class", "rcb-post-purchase-header-layout svelte-j03lz1");
1392
+ e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-post-purchase-header-layout svelte-j03lz1");
1393
1393
  },
1394
1394
  m(s, o) {
1395
- A(s, e, o), I(r, e, null), M(e, n), I(i, e, null), l = !0;
1395
+ A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
1396
1396
  },
1397
1397
  p(s, o) {
1398
1398
  t = s;
@@ -1412,12 +1412,12 @@ function Xn(t) {
1412
1412
  }
1413
1413
  };
1414
1414
  }
1415
- function Zn(t) {
1415
+ function tr(t) {
1416
1416
  let e, r;
1417
- return e = new V({
1417
+ return e = new q({
1418
1418
  props: {
1419
1419
  as: "header",
1420
- $$slots: { default: [Xn] },
1420
+ $$slots: { default: [er] },
1421
1421
  $$scope: { ctx: t }
1422
1422
  }
1423
1423
  }), {
@@ -1443,21 +1443,21 @@ function Zn(t) {
1443
1443
  }
1444
1444
  };
1445
1445
  }
1446
- function er(t, e, r) {
1446
+ function nr(t, e, r) {
1447
1447
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1448
1448
  return t.$$set = (l) => {
1449
1449
  "brandingInfo" in l && r(0, n = l.brandingInfo), "onClose" in l && r(1, i = l.onClose);
1450
1450
  }, [n, i];
1451
1451
  }
1452
- class pt extends U {
1452
+ class Et extends C {
1453
1453
  constructor(e) {
1454
- super(), C(this, e, er, Zn, R, { brandingInfo: 0, onClose: 1 }, zn);
1454
+ super(), U(this, e, nr, tr, R, { brandingInfo: 0, onClose: 1 }, Zn);
1455
1455
  }
1456
1456
  }
1457
- function tr(t) {
1457
+ function rr(t) {
1458
1458
  S(t, "svelte-ahi052", ".rcb-modal-error.svelte-ahi052{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-ahi052{font-size:24px}.subtitle.svelte-ahi052{font-size:16px}");
1459
1459
  }
1460
- function xe(t) {
1460
+ function Ve(t) {
1461
1461
  let e, r, n, i, l;
1462
1462
  return {
1463
1463
  c() {
@@ -1468,11 +1468,11 @@ function xe(t) {
1468
1468
  t[1]);
1469
1469
  },
1470
1470
  m(s, o) {
1471
- A(s, e, o), A(s, r, o), M(r, n), A(s, l, o);
1471
+ A(s, e, o), A(s, r, o), T(r, n), A(s, l, o);
1472
1472
  },
1473
1473
  p(s, o) {
1474
1474
  o & /*supportEmail*/
1475
- 2 && ne(
1475
+ 2 && re(
1476
1476
  n,
1477
1477
  /*supportEmail*/
1478
1478
  s[1]
@@ -1485,41 +1485,41 @@ function xe(t) {
1485
1485
  }
1486
1486
  };
1487
1487
  }
1488
- function nr(t) {
1488
+ function ir(t) {
1489
1489
  let e, r, n, i = (
1490
1490
  /*getErrorMessage*/
1491
1491
  t[3]() + ""
1492
1492
  ), l, s, o = (
1493
1493
  /*supportEmail*/
1494
- t[1] && xe(t)
1494
+ t[1] && Ve(t)
1495
1495
  );
1496
1496
  return {
1497
1497
  c() {
1498
- e = $("span"), e.textContent = "Something went wrong.", r = T(), n = $("span"), l = L(i), s = T(), o && o.c(), h(e, "class", "title svelte-ahi052"), h(n, "class", "subtitle svelte-ahi052");
1498
+ e = $("span"), e.textContent = "Something went wrong.", r = P(), n = $("span"), l = L(i), s = P(), o && o.c(), h(e, "class", "title svelte-ahi052"), h(n, "class", "subtitle svelte-ahi052");
1499
1499
  },
1500
1500
  m(c, u) {
1501
- A(c, e, u), A(c, r, u), A(c, n, u), M(n, l), M(n, s), o && o.m(n, null);
1501
+ A(c, e, u), A(c, r, u), A(c, n, u), T(n, l), T(n, s), o && o.m(n, null);
1502
1502
  },
1503
1503
  p(c, u) {
1504
1504
  /*supportEmail*/
1505
- c[1] ? o ? o.p(c, u) : (o = xe(c), o.c(), o.m(n, null)) : o && (o.d(1), o = null);
1505
+ c[1] ? o ? o.p(c, u) : (o = Ve(c), o.c(), o.m(n, null)) : o && (o.d(1), o = null);
1506
1506
  },
1507
1507
  d(c) {
1508
1508
  c && (g(e), g(r), g(n)), o && o.d();
1509
1509
  }
1510
1510
  };
1511
1511
  }
1512
- function rr(t) {
1512
+ function lr(t) {
1513
1513
  let e, r, n, i;
1514
- return e = new Tn({}), n = new X({
1514
+ return e = new Rn({}), n = new Z({
1515
1515
  props: {
1516
1516
  gutter: "1rem",
1517
- $$slots: { default: [nr] },
1517
+ $$slots: { default: [ir] },
1518
1518
  $$scope: { ctx: t }
1519
1519
  }
1520
1520
  }), {
1521
1521
  c() {
1522
- b(e.$$.fragment), r = T(), b(n.$$.fragment);
1522
+ b(e.$$.fragment), r = P(), b(n.$$.fragment);
1523
1523
  },
1524
1524
  m(l, s) {
1525
1525
  I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
@@ -1540,12 +1540,12 @@ function rr(t) {
1540
1540
  }
1541
1541
  };
1542
1542
  }
1543
- function ir(t) {
1543
+ function sr(t) {
1544
1544
  let e, r, n;
1545
- return r = new X({
1545
+ return r = new Z({
1546
1546
  props: {
1547
1547
  gutter: "1rem",
1548
- $$slots: { default: [rr] },
1548
+ $$slots: { default: [lr] },
1549
1549
  $$scope: { ctx: t }
1550
1550
  }
1551
1551
  }), {
@@ -1571,7 +1571,7 @@ function ir(t) {
1571
1571
  }
1572
1572
  };
1573
1573
  }
1574
- function lr(t) {
1574
+ function or(t) {
1575
1575
  let e;
1576
1576
  return {
1577
1577
  c() {
@@ -1585,15 +1585,15 @@ function lr(t) {
1585
1585
  }
1586
1586
  };
1587
1587
  }
1588
- function sr(t) {
1588
+ function cr(t) {
1589
1589
  let e, r;
1590
- return e = new me({
1590
+ return e = new ge({
1591
1591
  props: {
1592
- $$slots: { default: [lr] },
1592
+ $$slots: { default: [or] },
1593
1593
  $$scope: { ctx: t }
1594
1594
  }
1595
1595
  }), e.$on("click", function() {
1596
- ie(
1596
+ le(
1597
1597
  /*onContinue*/
1598
1598
  t[2]
1599
1599
  ) && t[2].apply(this, arguments);
@@ -1621,9 +1621,9 @@ function sr(t) {
1621
1621
  }
1622
1622
  };
1623
1623
  }
1624
- function or(t) {
1624
+ function ar(t) {
1625
1625
  let e, r, n, i, l, s;
1626
- return e = new pt({
1626
+ return e = new Et({
1627
1627
  props: {
1628
1628
  brandingInfo: (
1629
1629
  /*brandingInfo*/
@@ -1634,19 +1634,19 @@ function or(t) {
1634
1634
  t[2]
1635
1635
  )
1636
1636
  }
1637
- }), n = new V({
1637
+ }), n = new q({
1638
1638
  props: {
1639
- $$slots: { default: [ir] },
1639
+ $$slots: { default: [sr] },
1640
1640
  $$scope: { ctx: t }
1641
1641
  }
1642
- }), l = new ve({
1642
+ }), l = new Me({
1643
1643
  props: {
1644
- $$slots: { default: [sr] },
1644
+ $$slots: { default: [cr] },
1645
1645
  $$scope: { ctx: t }
1646
1646
  }
1647
1647
  }), {
1648
1648
  c() {
1649
- b(e.$$.fragment), r = T(), b(n.$$.fragment), i = T(), b(l.$$.fragment);
1649
+ b(e.$$.fragment), r = P(), b(n.$$.fragment), i = P(), b(l.$$.fragment);
1650
1650
  },
1651
1651
  m(o, c) {
1652
1652
  I(e, o, c), A(o, r, c), I(n, o, c), A(o, i, c), I(l, o, c), s = !0;
@@ -1676,12 +1676,12 @@ function or(t) {
1676
1676
  }
1677
1677
  };
1678
1678
  }
1679
- function cr(t) {
1679
+ function ur(t) {
1680
1680
  let e, r;
1681
- return e = new X({
1681
+ return e = new Z({
1682
1682
  props: {
1683
1683
  gutter: "2rem",
1684
- $$slots: { default: [or] },
1684
+ $$slots: { default: [ar] },
1685
1685
  $$scope: { ctx: t }
1686
1686
  }
1687
1687
  }), {
@@ -1707,9 +1707,9 @@ function cr(t) {
1707
1707
  }
1708
1708
  };
1709
1709
  }
1710
- function ar(t, e, r) {
1710
+ function fr(t, e, r) {
1711
1711
  let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: l = null } = e, { onContinue: s } = e;
1712
- De(() => {
1712
+ ve(() => {
1713
1713
  console.debug(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
1714
1714
  });
1715
1715
  function o() {
@@ -1733,13 +1733,13 @@ function ar(t, e, r) {
1733
1733
  "brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, l = c.supportEmail), "onContinue" in c && r(2, s = c.onContinue);
1734
1734
  }, [n, l, s, o, i];
1735
1735
  }
1736
- class ur extends U {
1736
+ class dr extends C {
1737
1737
  constructor(e) {
1738
- super(), C(
1738
+ super(), U(
1739
1739
  this,
1740
1740
  e,
1741
- ar,
1742
- cr,
1741
+ fr,
1742
+ ur,
1743
1743
  R,
1744
1744
  {
1745
1745
  brandingInfo: 0,
@@ -1747,19 +1747,19 @@ class ur extends U {
1747
1747
  supportEmail: 1,
1748
1748
  onContinue: 2
1749
1749
  },
1750
- tr
1750
+ rr
1751
1751
  );
1752
1752
  }
1753
1753
  }
1754
- const fr = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
1755
- function dr(t) {
1754
+ const mr = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
1755
+ function gr(t) {
1756
1756
  S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
1757
1757
  }
1758
- function mr(t) {
1758
+ function Ar(t) {
1759
1759
  let e, r;
1760
1760
  return {
1761
1761
  c() {
1762
- e = $("img"), x(e.src, r = fr) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
1762
+ e = $("img"), V(e.src, r = mr) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
1763
1763
  },
1764
1764
  m(n, i) {
1765
1765
  A(n, e, i);
@@ -1772,19 +1772,19 @@ function mr(t) {
1772
1772
  }
1773
1773
  };
1774
1774
  }
1775
- class gr extends U {
1775
+ class _r extends C {
1776
1776
  constructor(e) {
1777
- super(), C(this, e, null, mr, R, {}, dr);
1777
+ super(), U(this, e, null, Ar, R, {}, gr);
1778
1778
  }
1779
1779
  }
1780
- function Ar(t) {
1780
+ function pr(t) {
1781
1781
  S(t, "svelte-1lcsna9", ".rcb-modal-success.svelte-1lcsna9{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-1lcsna9{font-size:24px}.subtitle.svelte-1lcsna9{font-size:16px}");
1782
1782
  }
1783
- function _r(t) {
1783
+ function hr(t) {
1784
1784
  let e, r, n;
1785
1785
  return {
1786
1786
  c() {
1787
- e = $("span"), e.textContent = "Purchase Successful", r = T(), n = $("span"), n.textContent = "Your plan is now active.", h(e, "class", "title svelte-1lcsna9"), h(n, "class", "subtitle svelte-1lcsna9");
1787
+ e = $("span"), e.textContent = "Purchase Successful", r = P(), n = $("span"), n.textContent = "Your plan is now active.", h(e, "class", "title svelte-1lcsna9"), h(n, "class", "subtitle svelte-1lcsna9");
1788
1788
  },
1789
1789
  m(i, l) {
1790
1790
  A(i, e, l), A(i, r, l), A(i, n, l);
@@ -1795,17 +1795,17 @@ function _r(t) {
1795
1795
  }
1796
1796
  };
1797
1797
  }
1798
- function pr(t) {
1798
+ function Er(t) {
1799
1799
  let e, r, n, i;
1800
- return e = new gr({}), n = new X({
1800
+ return e = new _r({}), n = new Z({
1801
1801
  props: {
1802
1802
  gutter: "1rem",
1803
- $$slots: { default: [_r] },
1803
+ $$slots: { default: [hr] },
1804
1804
  $$scope: { ctx: t }
1805
1805
  }
1806
1806
  }), {
1807
1807
  c() {
1808
- b(e.$$.fragment), r = T(), b(n.$$.fragment);
1808
+ b(e.$$.fragment), r = P(), b(n.$$.fragment);
1809
1809
  },
1810
1810
  m(l, s) {
1811
1811
  I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
@@ -1826,12 +1826,12 @@ function pr(t) {
1826
1826
  }
1827
1827
  };
1828
1828
  }
1829
- function hr(t) {
1829
+ function Ir(t) {
1830
1830
  let e, r, n;
1831
- return r = new X({
1831
+ return r = new Z({
1832
1832
  props: {
1833
1833
  gutter: "1rem",
1834
- $$slots: { default: [pr] },
1834
+ $$slots: { default: [Er] },
1835
1835
  $$scope: { ctx: t }
1836
1836
  }
1837
1837
  }), {
@@ -1857,7 +1857,7 @@ function hr(t) {
1857
1857
  }
1858
1858
  };
1859
1859
  }
1860
- function Er(t) {
1860
+ function wr(t) {
1861
1861
  let e;
1862
1862
  return {
1863
1863
  c() {
@@ -1871,15 +1871,15 @@ function Er(t) {
1871
1871
  }
1872
1872
  };
1873
1873
  }
1874
- function Ir(t) {
1874
+ function br(t) {
1875
1875
  let e, r;
1876
- return e = new me({
1876
+ return e = new ge({
1877
1877
  props: {
1878
- $$slots: { default: [Er] },
1878
+ $$slots: { default: [wr] },
1879
1879
  $$scope: { ctx: t }
1880
1880
  }
1881
1881
  }), e.$on("click", function() {
1882
- ie(
1882
+ le(
1883
1883
  /*onContinue*/
1884
1884
  t[1]
1885
1885
  ) && t[1].apply(this, arguments);
@@ -1907,9 +1907,9 @@ function Ir(t) {
1907
1907
  }
1908
1908
  };
1909
1909
  }
1910
- function wr(t) {
1910
+ function $r(t) {
1911
1911
  let e, r, n, i, l, s;
1912
- return e = new pt({
1912
+ return e = new Et({
1913
1913
  props: {
1914
1914
  brandingInfo: (
1915
1915
  /*brandingInfo*/
@@ -1920,19 +1920,19 @@ function wr(t) {
1920
1920
  t[1]
1921
1921
  )
1922
1922
  }
1923
- }), n = new V({
1923
+ }), n = new q({
1924
1924
  props: {
1925
- $$slots: { default: [hr] },
1925
+ $$slots: { default: [Ir] },
1926
1926
  $$scope: { ctx: t }
1927
1927
  }
1928
- }), l = new ve({
1928
+ }), l = new Me({
1929
1929
  props: {
1930
- $$slots: { default: [Ir] },
1930
+ $$slots: { default: [br] },
1931
1931
  $$scope: { ctx: t }
1932
1932
  }
1933
1933
  }), {
1934
1934
  c() {
1935
- b(e.$$.fragment), r = T(), b(n.$$.fragment), i = T(), b(l.$$.fragment);
1935
+ b(e.$$.fragment), r = P(), b(n.$$.fragment), i = P(), b(l.$$.fragment);
1936
1936
  },
1937
1937
  m(o, c) {
1938
1938
  I(e, o, c), A(o, r, c), I(n, o, c), A(o, i, c), I(l, o, c), s = !0;
@@ -1962,12 +1962,12 @@ function wr(t) {
1962
1962
  }
1963
1963
  };
1964
1964
  }
1965
- function br(t) {
1965
+ function Br(t) {
1966
1966
  let e, r;
1967
- return e = new X({
1967
+ return e = new Z({
1968
1968
  props: {
1969
1969
  gutter: "2rem",
1970
- $$slots: { default: [wr] },
1970
+ $$slots: { default: [$r] },
1971
1971
  $$scope: { ctx: t }
1972
1972
  }
1973
1973
  }), {
@@ -1993,30 +1993,30 @@ function br(t) {
1993
1993
  }
1994
1994
  };
1995
1995
  }
1996
- function $r(t, e, r) {
1996
+ function kr(t, e, r) {
1997
1997
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
1998
1998
  return t.$$set = (l) => {
1999
1999
  "brandingInfo" in l && r(0, n = l.brandingInfo), "onContinue" in l && r(1, i = l.onContinue);
2000
2000
  }, [n, i];
2001
2001
  }
2002
- class kr extends U {
2002
+ class yr extends C {
2003
2003
  constructor(e) {
2004
- super(), C(this, e, $r, br, R, { brandingInfo: 0, onContinue: 1 }, Ar);
2004
+ super(), U(this, e, kr, Br, R, { brandingInfo: 0, onContinue: 1 }, pr);
2005
2005
  }
2006
2006
  }
2007
- function Br(t, e, r, n, i = {}) {
2007
+ function Dr(t, e, r, n, i = {}) {
2008
2008
  const l = r.create(e, i);
2009
2009
  return l.mount(t), l.on("change", (s) => n("change", s)), l.on("ready", (s) => n("ready", s)), l.on("focus", (s) => n("focus", s)), l.on("blur", (s) => n("blur", s)), l.on("escape", (s) => n("escape", s)), l.on("click", (s) => n("click", s)), l.on("loaderror", (s) => n("loaderror", s)), l.on("loaderstart", (s) => n("loaderstart", s)), l.on("networkschange", (s) => n("networkschange", s)), l;
2010
2010
  }
2011
- const yr = typeof window > "u";
2012
- function Dr(t) {
2013
- if (!yr)
2011
+ const vr = typeof window > "u";
2012
+ function Qr(t) {
2013
+ if (!vr)
2014
2014
  return t.registerAppInfo({
2015
2015
  name: "svelte-stripe-js",
2016
2016
  url: "https://svelte-stripe-js.vercel.app"
2017
2017
  });
2018
2018
  }
2019
- function Qr(t) {
2019
+ function Mr(t) {
2020
2020
  let e;
2021
2021
  return {
2022
2022
  c() {
@@ -2033,11 +2033,11 @@ function Qr(t) {
2033
2033
  }
2034
2034
  };
2035
2035
  }
2036
- function vr(t, e, r) {
2036
+ function Tr(t, e, r) {
2037
2037
  let n, i;
2038
- const l = Vt(), { elements: s } = Wt("stripe");
2038
+ const l = Wt(), { elements: s } = Xt("stripe");
2039
2039
  let { options: o = void 0 } = e;
2040
- De(() => (n = Br(i, "payment", s, l, o), () => n.destroy()));
2040
+ ve(() => (n = Dr(i, "payment", s, l, o), () => n.destroy()));
2041
2041
  function c() {
2042
2042
  n.blur();
2043
2043
  }
@@ -2050,18 +2050,18 @@ function vr(t, e, r) {
2050
2050
  function m() {
2051
2051
  n.focus();
2052
2052
  }
2053
- function k(B) {
2054
- ke[B ? "unshift" : "push"](() => {
2055
- i = B, r(0, i);
2053
+ function B(k) {
2054
+ ke[k ? "unshift" : "push"](() => {
2055
+ i = k, r(0, i);
2056
2056
  });
2057
2057
  }
2058
- return t.$$set = (B) => {
2059
- "options" in B && r(1, o = B.options);
2060
- }, [i, o, c, u, _, m, k];
2058
+ return t.$$set = (k) => {
2059
+ "options" in k && r(1, o = k.options);
2060
+ }, [i, o, c, u, _, m, B];
2061
2061
  }
2062
- class Mr extends U {
2062
+ class Pr extends C {
2063
2063
  constructor(e) {
2064
- super(), C(this, e, vr, Qr, R, {
2064
+ super(), U(this, e, Tr, Mr, R, {
2065
2065
  options: 1,
2066
2066
  blur: 2,
2067
2067
  clear: 3,
@@ -2082,12 +2082,12 @@ class Mr extends U {
2082
2082
  return this.$$.ctx[5];
2083
2083
  }
2084
2084
  }
2085
- function Ve(t) {
2085
+ function qe(t) {
2086
2086
  let e;
2087
2087
  const r = (
2088
2088
  /*#slots*/
2089
2089
  t[15].default
2090
- ), n = H(
2090
+ ), n = K(
2091
2091
  r,
2092
2092
  t,
2093
2093
  /*$$scope*/
@@ -2103,19 +2103,19 @@ function Ve(t) {
2103
2103
  },
2104
2104
  p(i, l) {
2105
2105
  n && n.p && (!e || l & /*$$scope*/
2106
- 16384) && j(
2106
+ 16384) && J(
2107
2107
  n,
2108
2108
  r,
2109
2109
  i,
2110
2110
  /*$$scope*/
2111
2111
  i[14],
2112
- e ? K(
2112
+ e ? j(
2113
2113
  r,
2114
2114
  /*$$scope*/
2115
2115
  i[14],
2116
2116
  l,
2117
2117
  null
2118
- ) : J(
2118
+ ) : x(
2119
2119
  /*$$scope*/
2120
2120
  i[14]
2121
2121
  ),
@@ -2133,15 +2133,15 @@ function Ve(t) {
2133
2133
  }
2134
2134
  };
2135
2135
  }
2136
- function Pr(t) {
2136
+ function Nr(t) {
2137
2137
  let e, r, n = (
2138
2138
  /*stripe*/
2139
2139
  t[1] && /*elements*/
2140
- t[0] && Ve(t)
2140
+ t[0] && qe(t)
2141
2141
  );
2142
2142
  return {
2143
2143
  c() {
2144
- n && n.c(), e = z();
2144
+ n && n.c(), e = X();
2145
2145
  },
2146
2146
  m(i, l) {
2147
2147
  n && n.m(i, l), A(i, e, l), r = !0;
@@ -2150,7 +2150,7 @@ function Pr(t) {
2150
2150
  /*stripe*/
2151
2151
  i[1] && /*elements*/
2152
2152
  i[0] ? n ? (n.p(i, l), l & /*stripe, elements*/
2153
- 3 && a(n, 1)) : (n = Ve(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
2153
+ 3 && a(n, 1)) : (n = qe(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
2154
2154
  n = null;
2155
2155
  }), G());
2156
2156
  },
@@ -2165,23 +2165,23 @@ function Pr(t) {
2165
2165
  }
2166
2166
  };
2167
2167
  }
2168
- function Tr(t, e, r) {
2169
- let n, { $$slots: i = {}, $$scope: l } = e, { stripe: s } = e, { mode: o = void 0 } = e, { theme: c = "stripe" } = e, { variables: u = {} } = e, { rules: _ = {} } = e, { labels: m = "above" } = e, { loader: k = "auto" } = e, { fonts: B = [] } = e, { locale: E = "auto" } = e, { currency: y = void 0 } = e, { amount: v = void 0 } = e, { clientSecret: N = void 0 } = e, { elements: d = null } = e;
2168
+ function Rr(t, e, r) {
2169
+ let n, { $$slots: i = {}, $$scope: l } = e, { stripe: s } = e, { mode: o = void 0 } = e, { theme: c = "stripe" } = e, { variables: u = {} } = e, { rules: _ = {} } = e, { labels: m = "above" } = e, { loader: B = "auto" } = e, { fonts: k = [] } = e, { locale: E = "auto" } = e, { currency: y = void 0 } = e, { amount: M = void 0 } = e, { clientSecret: N = void 0 } = e, { elements: d = null } = e;
2170
2170
  return t.$$set = (p) => {
2171
- "stripe" in p && r(1, s = p.stripe), "mode" in p && r(2, o = p.mode), "theme" in p && r(3, c = p.theme), "variables" in p && r(4, u = p.variables), "rules" in p && r(5, _ = p.rules), "labels" in p && r(6, m = p.labels), "loader" in p && r(7, k = p.loader), "fonts" in p && r(8, B = p.fonts), "locale" in p && r(9, E = p.locale), "currency" in p && r(10, y = p.currency), "amount" in p && r(11, v = p.amount), "clientSecret" in p && r(12, N = p.clientSecret), "elements" in p && r(0, d = p.elements), "$$scope" in p && r(14, l = p.$$scope);
2171
+ "stripe" in p && r(1, s = p.stripe), "mode" in p && r(2, o = p.mode), "theme" in p && r(3, c = p.theme), "variables" in p && r(4, u = p.variables), "rules" in p && r(5, _ = p.rules), "labels" in p && r(6, m = p.labels), "loader" in p && r(7, B = p.loader), "fonts" in p && r(8, k = p.fonts), "locale" in p && r(9, E = p.locale), "currency" in p && r(10, y = p.currency), "amount" in p && r(11, M = p.amount), "clientSecret" in p && r(12, N = p.clientSecret), "elements" in p && r(0, d = p.elements), "$$scope" in p && r(14, l = p.$$scope);
2172
2172
  }, t.$$.update = () => {
2173
2173
  t.$$.dirty & /*theme, variables, rules, labels*/
2174
2174
  120 && r(13, n = { theme: c, variables: u, rules: _, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2175
2175
  16263 && s && !d && (r(0, d = s.elements({
2176
2176
  mode: o,
2177
2177
  currency: y,
2178
- amount: v,
2178
+ amount: M,
2179
2179
  appearance: n,
2180
2180
  clientSecret: N,
2181
- fonts: B,
2182
- loader: k,
2181
+ fonts: k,
2182
+ loader: B,
2183
2183
  locale: E
2184
- })), Dr(s), qt("stripe", { stripe: s, elements: d })), t.$$.dirty & /*elements, appearance, locale*/
2184
+ })), Qr(s), zt("stripe", { stripe: s, elements: d })), t.$$.dirty & /*elements, appearance, locale*/
2185
2185
  8705 && d && d.update({ appearance: n, locale: E });
2186
2186
  }, [
2187
2187
  d,
@@ -2191,20 +2191,20 @@ function Tr(t, e, r) {
2191
2191
  u,
2192
2192
  _,
2193
2193
  m,
2194
- k,
2195
2194
  B,
2195
+ k,
2196
2196
  E,
2197
2197
  y,
2198
- v,
2198
+ M,
2199
2199
  N,
2200
2200
  n,
2201
2201
  l,
2202
2202
  i
2203
2203
  ];
2204
2204
  }
2205
- class Nr extends U {
2205
+ class Ur extends C {
2206
2206
  constructor(e) {
2207
- super(), C(this, e, Tr, Pr, R, {
2207
+ super(), U(this, e, Rr, Nr, R, {
2208
2208
  stripe: 1,
2209
2209
  mode: 2,
2210
2210
  theme: 3,
@@ -2221,90 +2221,90 @@ class Nr extends U {
2221
2221
  });
2222
2222
  }
2223
2223
  }
2224
- var ht = "https://js.stripe.com/v3", Rr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, qe = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Cr = function() {
2225
- for (var e = document.querySelectorAll('script[src^="'.concat(ht, '"]')), r = 0; r < e.length; r++) {
2224
+ var It = "https://js.stripe.com/v3", Cr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, We = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Or = function() {
2225
+ for (var e = document.querySelectorAll('script[src^="'.concat(It, '"]')), r = 0; r < e.length; r++) {
2226
2226
  var n = e[r];
2227
- if (Rr.test(n.src))
2227
+ if (Cr.test(n.src))
2228
2228
  return n;
2229
2229
  }
2230
2230
  return null;
2231
- }, We = function(e) {
2231
+ }, ze = function(e) {
2232
2232
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
2233
- n.src = "".concat(ht).concat(r);
2233
+ n.src = "".concat(It).concat(r);
2234
2234
  var i = document.head || document.body;
2235
2235
  if (!i)
2236
2236
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
2237
2237
  return i.appendChild(n), n;
2238
- }, Ur = function(e, r) {
2238
+ }, Sr = function(e, r) {
2239
2239
  !e || !e._registerWrapper || e._registerWrapper({
2240
2240
  name: "stripe-js",
2241
2241
  version: "2.3.0",
2242
2242
  startTime: r
2243
2243
  });
2244
- }, oe = null, he = null, Ee = null, Or = function(e) {
2244
+ }, ce = null, Ee = null, Ie = null, Lr = function(e) {
2245
2245
  return function() {
2246
2246
  e(new Error("Failed to load Stripe.js"));
2247
2247
  };
2248
- }, Sr = function(e, r) {
2248
+ }, Fr = function(e, r) {
2249
2249
  return function() {
2250
2250
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2251
2251
  };
2252
- }, Lr = function(e) {
2253
- return oe !== null ? oe : (oe = new Promise(function(r, n) {
2252
+ }, Gr = function(e) {
2253
+ return ce !== null ? ce : (ce = new Promise(function(r, n) {
2254
2254
  if (typeof window > "u" || typeof document > "u") {
2255
2255
  r(null);
2256
2256
  return;
2257
2257
  }
2258
- if (window.Stripe && e && console.warn(qe), window.Stripe) {
2258
+ if (window.Stripe && e && console.warn(We), window.Stripe) {
2259
2259
  r(window.Stripe);
2260
2260
  return;
2261
2261
  }
2262
2262
  try {
2263
- var i = Cr();
2263
+ var i = Or();
2264
2264
  if (i && e)
2265
- console.warn(qe);
2265
+ console.warn(We);
2266
2266
  else if (!i)
2267
- i = We(e);
2268
- else if (i && Ee !== null && he !== null) {
2267
+ i = ze(e);
2268
+ else if (i && Ie !== null && Ee !== null) {
2269
2269
  var l;
2270
- i.removeEventListener("load", Ee), i.removeEventListener("error", he), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = We(e);
2270
+ i.removeEventListener("load", Ie), i.removeEventListener("error", Ee), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = ze(e);
2271
2271
  }
2272
- Ee = Sr(r, n), he = Or(n), i.addEventListener("load", Ee), i.addEventListener("error", he);
2272
+ Ie = Fr(r, n), Ee = Lr(n), i.addEventListener("load", Ie), i.addEventListener("error", Ee);
2273
2273
  } catch (s) {
2274
2274
  n(s);
2275
2275
  return;
2276
2276
  }
2277
- }), oe.catch(function(r) {
2278
- return oe = null, Promise.reject(r);
2277
+ }), ce.catch(function(r) {
2278
+ return ce = null, Promise.reject(r);
2279
2279
  }));
2280
- }, Fr = function(e, r, n) {
2280
+ }, Yr = function(e, r, n) {
2281
2281
  if (e === null)
2282
2282
  return null;
2283
2283
  var i = e.apply(void 0, r);
2284
- return Ur(i, n), i;
2285
- }, ce, Et = !1, It = function() {
2286
- return ce || (ce = Lr(null).catch(function(e) {
2287
- return ce = null, Promise.reject(e);
2288
- }), ce);
2284
+ return Sr(i, n), i;
2285
+ }, ae, wt = !1, bt = function() {
2286
+ return ae || (ae = Gr(null).catch(function(e) {
2287
+ return ae = null, Promise.reject(e);
2288
+ }), ae);
2289
2289
  };
2290
2290
  Promise.resolve().then(function() {
2291
- return It();
2291
+ return bt();
2292
2292
  }).catch(function(t) {
2293
- Et || console.warn(t);
2293
+ wt || console.warn(t);
2294
2294
  });
2295
- var Gr = function() {
2295
+ var Hr = function() {
2296
2296
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2297
2297
  r[n] = arguments[n];
2298
- Et = !0;
2298
+ wt = !0;
2299
2299
  var i = Date.now();
2300
- return It().then(function(l) {
2301
- return Fr(l, r, i);
2300
+ return bt().then(function(l) {
2301
+ return Yr(l, r, i);
2302
2302
  });
2303
2303
  };
2304
- function Yr(t) {
2304
+ function Kr(t) {
2305
2305
  S(t, "svelte-1fwwzeb", ".rcb-stripe-elements-container.svelte-1fwwzeb{width:100%;margin-bottom:1rem}");
2306
2306
  }
2307
- function Hr(t) {
2307
+ function jr(t) {
2308
2308
  let e, r;
2309
2309
  return e = new Qe({}), {
2310
2310
  c() {
@@ -2325,7 +2325,7 @@ function Hr(t) {
2325
2325
  }
2326
2326
  };
2327
2327
  }
2328
- function Kr(t) {
2328
+ function Jr(t) {
2329
2329
  let e, r, n, i, l, s;
2330
2330
  function o(u) {
2331
2331
  t[9](u);
@@ -2340,18 +2340,18 @@ function Kr(t) {
2340
2340
  t[4]
2341
2341
  ),
2342
2342
  loader: "always",
2343
- $$slots: { default: [Xr] },
2343
+ $$slots: { default: [ei] },
2344
2344
  $$scope: { ctx: t }
2345
2345
  };
2346
2346
  return (
2347
2347
  /*elements*/
2348
2348
  t[1] !== void 0 && (c.elements = /*elements*/
2349
- t[1]), r = new Nr({ props: c }), ke.push(() => nn(r, "elements", o)), {
2349
+ t[1]), r = new Ur({ props: c }), ke.push(() => ln(r, "elements", o)), {
2350
2350
  c() {
2351
2351
  e = $("form"), b(r.$$.fragment);
2352
2352
  },
2353
2353
  m(u, _) {
2354
- A(u, e, _), I(r, e, null), i = !0, l || (s = Ae(e, "submit", ft(
2354
+ A(u, e, _), I(r, e, null), i = !0, l || (s = _e(e, "submit", mt(
2355
2355
  /*handleContinue*/
2356
2356
  t[5]
2357
2357
  )), l = !0);
@@ -2363,7 +2363,7 @@ function Kr(t) {
2363
2363
  u[2]), _ & /*$$scope, processing, onClose*/
2364
2364
  2057 && (m.$$scope = { dirty: _, ctx: u }), !n && _ & /*elements*/
2365
2365
  2 && (n = !0, m.elements = /*elements*/
2366
- u[1], Zt(() => n = !1)), r.$set(m);
2366
+ u[1], tn(() => n = !1)), r.$set(m);
2367
2367
  },
2368
2368
  i(u) {
2369
2369
  i || (a(r.$$.fragment, u), i = !0);
@@ -2377,9 +2377,9 @@ function Kr(t) {
2377
2377
  }
2378
2378
  );
2379
2379
  }
2380
- function jr(t) {
2380
+ function xr(t) {
2381
2381
  let e, r, n;
2382
- return r = new Mr({}), {
2382
+ return r = new Pr({}), {
2383
2383
  c() {
2384
2384
  e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-stripe-elements-container svelte-1fwwzeb");
2385
2385
  },
@@ -2398,7 +2398,7 @@ function jr(t) {
2398
2398
  }
2399
2399
  };
2400
2400
  }
2401
- function Jr(t) {
2401
+ function Vr(t) {
2402
2402
  let e;
2403
2403
  return {
2404
2404
  c() {
@@ -2412,7 +2412,7 @@ function Jr(t) {
2412
2412
  }
2413
2413
  };
2414
2414
  }
2415
- function xr(t) {
2415
+ function qr(t) {
2416
2416
  let e;
2417
2417
  return {
2418
2418
  c() {
@@ -2426,18 +2426,18 @@ function xr(t) {
2426
2426
  }
2427
2427
  };
2428
2428
  }
2429
- function Vr(t) {
2429
+ function Wr(t) {
2430
2430
  let e;
2431
2431
  function r(l, s) {
2432
2432
  return (
2433
2433
  /*processing*/
2434
- l[3] ? xr : Jr
2434
+ l[3] ? qr : Vr
2435
2435
  );
2436
2436
  }
2437
2437
  let n = r(t), i = n(t);
2438
2438
  return {
2439
2439
  c() {
2440
- i.c(), e = z();
2440
+ i.c(), e = X();
2441
2441
  },
2442
2442
  m(l, s) {
2443
2443
  i.m(l, s), A(l, e, s);
@@ -2450,7 +2450,7 @@ function Vr(t) {
2450
2450
  }
2451
2451
  };
2452
2452
  }
2453
- function qr(t) {
2453
+ function zr(t) {
2454
2454
  let e;
2455
2455
  return {
2456
2456
  c() {
@@ -2464,35 +2464,35 @@ function qr(t) {
2464
2464
  }
2465
2465
  };
2466
2466
  }
2467
- function Wr(t) {
2467
+ function Xr(t) {
2468
2468
  let e, r, n, i;
2469
- return e = new me({
2469
+ return e = new ge({
2470
2470
  props: {
2471
2471
  disabled: (
2472
2472
  /*processing*/
2473
2473
  t[3]
2474
2474
  ),
2475
- $$slots: { default: [Vr] },
2475
+ $$slots: { default: [Wr] },
2476
2476
  $$scope: { ctx: t }
2477
2477
  }
2478
- }), n = new me({
2478
+ }), n = new ge({
2479
2479
  props: {
2480
2480
  disabled: (
2481
2481
  /*processing*/
2482
2482
  t[3]
2483
2483
  ),
2484
2484
  intent: "secondary",
2485
- $$slots: { default: [qr] },
2485
+ $$slots: { default: [zr] },
2486
2486
  $$scope: { ctx: t }
2487
2487
  }
2488
2488
  }), n.$on("click", function() {
2489
- ie(
2489
+ le(
2490
2490
  /*onClose*/
2491
2491
  t[0]
2492
2492
  ) && t[0].apply(this, arguments);
2493
2493
  }), {
2494
2494
  c() {
2495
- b(e.$$.fragment), r = T(), b(n.$$.fragment);
2495
+ b(e.$$.fragment), r = P(), b(n.$$.fragment);
2496
2496
  },
2497
2497
  m(l, s) {
2498
2498
  I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
@@ -2521,11 +2521,11 @@ function Wr(t) {
2521
2521
  }
2522
2522
  };
2523
2523
  }
2524
- function zr(t) {
2524
+ function Zr(t) {
2525
2525
  let e, r;
2526
- return e = new X({
2526
+ return e = new Z({
2527
2527
  props: {
2528
- $$slots: { default: [Wr] },
2528
+ $$slots: { default: [Xr] },
2529
2529
  $$scope: { ctx: t }
2530
2530
  }
2531
2531
  }), {
@@ -2551,21 +2551,21 @@ function zr(t) {
2551
2551
  }
2552
2552
  };
2553
2553
  }
2554
- function Xr(t) {
2554
+ function ei(t) {
2555
2555
  let e, r, n, i;
2556
- return e = new V({
2556
+ return e = new q({
2557
2557
  props: {
2558
- $$slots: { default: [jr] },
2558
+ $$slots: { default: [xr] },
2559
2559
  $$scope: { ctx: t }
2560
2560
  }
2561
- }), n = new ve({
2561
+ }), n = new Me({
2562
2562
  props: {
2563
- $$slots: { default: [zr] },
2563
+ $$slots: { default: [Zr] },
2564
2564
  $$scope: { ctx: t }
2565
2565
  }
2566
2566
  }), {
2567
2567
  c() {
2568
- b(e.$$.fragment), r = T(), b(n.$$.fragment);
2568
+ b(e.$$.fragment), r = P(), b(n.$$.fragment);
2569
2569
  },
2570
2570
  m(l, s) {
2571
2571
  I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
@@ -2589,9 +2589,9 @@ function Xr(t) {
2589
2589
  }
2590
2590
  };
2591
2591
  }
2592
- function Zr(t) {
2592
+ function ti(t) {
2593
2593
  let e, r, n, i;
2594
- const l = [Kr, Hr], s = [];
2594
+ const l = [Jr, jr], s = [];
2595
2595
  function o(c, u) {
2596
2596
  return (
2597
2597
  /*stripe*/
@@ -2623,17 +2623,17 @@ function Zr(t) {
2623
2623
  }
2624
2624
  };
2625
2625
  }
2626
- function ei(t, e, r) {
2626
+ function ni(t, e, r) {
2627
2627
  let { onClose: n } = e, { onContinue: i } = e, { onError: l } = e, { paymentInfoCollectionMetadata: s } = e;
2628
2628
  const o = s.data.client_secret;
2629
2629
  let c = null, u, _ = !1, m;
2630
- De(async () => {
2630
+ ve(async () => {
2631
2631
  const E = s.data.publishable_api_key, y = s.data.stripe_account_id;
2632
2632
  if (!E || !y)
2633
2633
  throw new Error("Stripe publishable key or account ID not found");
2634
- r(2, c = await Gr(E, { stripeAccount: y }));
2634
+ r(2, c = await Hr(E, { stripeAccount: y }));
2635
2635
  });
2636
- const k = async () => {
2636
+ const B = async () => {
2637
2637
  if (_ || !c || !m)
2638
2638
  return;
2639
2639
  r(3, _ = !0);
@@ -2643,7 +2643,7 @@ function ei(t, e, r) {
2643
2643
  });
2644
2644
  E.error ? (r(3, _ = !1), l(new Y(O.StripeError, E.error.message))) : i();
2645
2645
  };
2646
- function B(E) {
2646
+ function k(E) {
2647
2647
  u = E, r(1, u);
2648
2648
  }
2649
2649
  return t.$$set = (E) => {
@@ -2657,20 +2657,20 @@ function ei(t, e, r) {
2657
2657
  c,
2658
2658
  _,
2659
2659
  o,
2660
- k,
2660
+ B,
2661
2661
  i,
2662
2662
  l,
2663
2663
  s,
2664
- B
2664
+ k
2665
2665
  ];
2666
2666
  }
2667
- class ti extends U {
2667
+ class ri extends C {
2668
2668
  constructor(e) {
2669
- super(), C(
2669
+ super(), U(
2670
2670
  this,
2671
2671
  e,
2672
- ei,
2673
- Zr,
2672
+ ni,
2673
+ ti,
2674
2674
  R,
2675
2675
  {
2676
2676
  onClose: 0,
@@ -2678,14 +2678,14 @@ class ti extends U {
2678
2678
  onError: 7,
2679
2679
  paymentInfoCollectionMetadata: 8
2680
2680
  },
2681
- Yr
2681
+ Kr
2682
2682
  );
2683
2683
  }
2684
2684
  }
2685
- function ni(t) {
2685
+ function ii(t) {
2686
2686
  S(t, "svelte-1xardyz", ".form-container.svelte-1xardyz{display:flex;flex-direction:column;width:100%}.form-label.svelte-1xardyz{margin-top:0.5rem;margin-bottom:0.5rem;display:block}.form-input.svelte-1xardyz{margin-bottom:1rem}.title.svelte-1xardyz{font-size:1.5rem;margin:0;margin-bottom:0.5rem}input.svelte-1xardyz{width:94%;padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem}");
2687
2687
  }
2688
- function ri(t) {
2688
+ function li(t) {
2689
2689
  let e;
2690
2690
  return {
2691
2691
  c() {
@@ -2700,18 +2700,18 @@ function ri(t) {
2700
2700
  }
2701
2701
  };
2702
2702
  }
2703
- function ii(t) {
2703
+ function si(t) {
2704
2704
  let e, r, n, i, l, s, o;
2705
2705
  return {
2706
2706
  c() {
2707
- e = $("div"), r = $("div"), r.innerHTML = '<label for="email">E-mail</label>', n = T(), i = $("div"), l = $("input"), h(r, "class", "form-label svelte-1xardyz"), h(l, "name", "email"), h(l, "placeholder", "john@appleseed.com"), h(l, "class", "svelte-1xardyz"), h(i, "class", "form-input svelte-1xardyz"), h(e, "class", "form-container svelte-1xardyz");
2707
+ e = $("div"), r = $("div"), r.innerHTML = '<label for="email">E-mail</label>', n = P(), i = $("div"), l = $("input"), h(r, "class", "form-label svelte-1xardyz"), h(l, "name", "email"), h(l, "placeholder", "john@appleseed.com"), h(l, "class", "svelte-1xardyz"), h(i, "class", "form-input svelte-1xardyz"), h(e, "class", "form-container svelte-1xardyz");
2708
2708
  },
2709
2709
  m(c, u) {
2710
- A(c, e, u), M(e, r), M(e, n), M(e, i), M(i, l), He(
2710
+ A(c, e, u), T(e, r), T(e, n), T(e, i), T(i, l), Ke(
2711
2711
  l,
2712
2712
  /*email*/
2713
2713
  t[0]
2714
- ), s || (o = Ae(
2714
+ ), s || (o = _e(
2715
2715
  l,
2716
2716
  "input",
2717
2717
  /*input_input_handler*/
@@ -2721,7 +2721,7 @@ function ii(t) {
2721
2721
  p(c, u) {
2722
2722
  u & /*email*/
2723
2723
  1 && l.value !== /*email*/
2724
- c[0] && He(
2724
+ c[0] && Ke(
2725
2725
  l,
2726
2726
  /*email*/
2727
2727
  c[0]
@@ -2732,7 +2732,7 @@ function ii(t) {
2732
2732
  }
2733
2733
  };
2734
2734
  }
2735
- function li(t) {
2735
+ function oi(t) {
2736
2736
  let e;
2737
2737
  return {
2738
2738
  c() {
@@ -2746,11 +2746,11 @@ function li(t) {
2746
2746
  }
2747
2747
  };
2748
2748
  }
2749
- function si(t) {
2749
+ function ci(t) {
2750
2750
  let e, r;
2751
- return e = new me({
2751
+ return e = new ge({
2752
2752
  props: {
2753
- $$slots: { default: [li] },
2753
+ $$slots: { default: [oi] },
2754
2754
  $$scope: { ctx: t }
2755
2755
  }
2756
2756
  }), {
@@ -2776,43 +2776,43 @@ function si(t) {
2776
2776
  }
2777
2777
  };
2778
2778
  }
2779
- function oi(t) {
2779
+ function ai(t) {
2780
2780
  let e, r, n, i, l, s, o, c, u, _;
2781
- return n = new V({
2781
+ return n = new q({
2782
2782
  props: {
2783
- $$slots: { default: [ri] },
2783
+ $$slots: { default: [li] },
2784
2784
  $$scope: { ctx: t }
2785
2785
  }
2786
- }), l = new V({
2786
+ }), l = new q({
2787
2787
  props: {
2788
- $$slots: { default: [ii] },
2788
+ $$slots: { default: [si] },
2789
2789
  $$scope: { ctx: t }
2790
2790
  }
2791
- }), o = new ve({
2791
+ }), o = new Me({
2792
2792
  props: {
2793
- $$slots: { default: [si] },
2793
+ $$slots: { default: [ci] },
2794
2794
  $$scope: { ctx: t }
2795
2795
  }
2796
2796
  }), {
2797
2797
  c() {
2798
- e = $("div"), r = $("form"), b(n.$$.fragment), i = T(), b(l.$$.fragment), s = T(), b(o.$$.fragment);
2798
+ e = $("div"), r = $("form"), b(n.$$.fragment), i = P(), b(l.$$.fragment), s = P(), b(o.$$.fragment);
2799
2799
  },
2800
- m(m, k) {
2801
- A(m, e, k), M(e, r), I(n, r, null), M(r, i), I(l, r, null), M(r, s), I(o, r, null), c = !0, u || (_ = Ae(r, "submit", ft(
2800
+ m(m, B) {
2801
+ A(m, e, B), T(e, r), I(n, r, null), T(r, i), I(l, r, null), T(r, s), I(o, r, null), c = !0, u || (_ = _e(r, "submit", mt(
2802
2802
  /*handleContinue*/
2803
2803
  t[1]
2804
2804
  )), u = !0);
2805
2805
  },
2806
- p(m, [k]) {
2807
- const B = {};
2808
- k & /*$$scope*/
2809
- 16 && (B.$$scope = { dirty: k, ctx: m }), n.$set(B);
2806
+ p(m, [B]) {
2807
+ const k = {};
2808
+ B & /*$$scope*/
2809
+ 16 && (k.$$scope = { dirty: B, ctx: m }), n.$set(k);
2810
2810
  const E = {};
2811
- k & /*$$scope, email*/
2812
- 17 && (E.$$scope = { dirty: k, ctx: m }), l.$set(E);
2811
+ B & /*$$scope, email*/
2812
+ 17 && (E.$$scope = { dirty: B, ctx: m }), l.$set(E);
2813
2813
  const y = {};
2814
- k & /*$$scope*/
2815
- 16 && (y.$$scope = { dirty: k, ctx: m }), o.$set(y);
2814
+ B & /*$$scope*/
2815
+ 16 && (y.$$scope = { dirty: B, ctx: m }), o.$set(y);
2816
2816
  },
2817
2817
  i(m) {
2818
2818
  c || (a(n.$$.fragment, m), a(l.$$.fragment, m), a(o.$$.fragment, m), c = !0);
@@ -2825,7 +2825,7 @@ function oi(t) {
2825
2825
  }
2826
2826
  };
2827
2827
  }
2828
- function ci(t, e, r) {
2828
+ function ui(t, e, r) {
2829
2829
  let n, { onContinue: i } = e;
2830
2830
  const l = async () => {
2831
2831
  i({ email: n });
@@ -2837,17 +2837,17 @@ function ci(t, e, r) {
2837
2837
  "onContinue" in o && r(2, i = o.onContinue);
2838
2838
  }, r(0, n = ""), [n, l, i, s];
2839
2839
  }
2840
- class ai extends U {
2840
+ class fi extends C {
2841
2841
  constructor(e) {
2842
- super(), C(this, e, ci, oi, R, { onContinue: 2 }, ni);
2842
+ super(), U(this, e, ui, ai, R, { onContinue: 2 }, ii);
2843
2843
  }
2844
2844
  }
2845
- const ui = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2846
- function fi(t) {
2845
+ const di = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
2846
+ function mi(t) {
2847
2847
  let e, r;
2848
2848
  return {
2849
2849
  c() {
2850
- e = $("img"), x(e.src, r = ui) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon");
2850
+ e = $("img"), V(e.src, r = di) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon");
2851
2851
  },
2852
2852
  m(n, i) {
2853
2853
  A(n, e, i);
@@ -2860,27 +2860,27 @@ function fi(t) {
2860
2860
  }
2861
2861
  };
2862
2862
  }
2863
- class di extends U {
2863
+ class gi extends C {
2864
2864
  constructor(e) {
2865
- super(), C(this, e, null, fi, R, {});
2865
+ super(), U(this, e, null, mi, R, {});
2866
2866
  }
2867
2867
  }
2868
- function mi(t) {
2868
+ function Ai(t) {
2869
2869
  S(t, "svelte-1ggdgso", ".rcb-header-layout.svelte-1ggdgso{display:flex;justify-content:space-between;align-items:center;width:100%}");
2870
2870
  }
2871
- function gi(t) {
2871
+ function _i(t) {
2872
2872
  let e, r, n, i, l;
2873
- return r = new _t({
2873
+ return r = new ht({
2874
2874
  props: { brandingInfo: (
2875
2875
  /*brandingInfo*/
2876
2876
  t[0]
2877
2877
  ) }
2878
- }), i = new di({}), {
2878
+ }), i = new gi({}), {
2879
2879
  c() {
2880
- e = $("div"), b(r.$$.fragment), n = T(), b(i.$$.fragment), h(e, "class", "rcb-header-layout svelte-1ggdgso");
2880
+ e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-header-layout svelte-1ggdgso");
2881
2881
  },
2882
2882
  m(s, o) {
2883
- A(s, e, o), I(r, e, null), M(e, n), I(i, e, null), l = !0;
2883
+ A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
2884
2884
  },
2885
2885
  p(s, o) {
2886
2886
  const c = {};
@@ -2899,12 +2899,12 @@ function gi(t) {
2899
2899
  }
2900
2900
  };
2901
2901
  }
2902
- function Ai(t) {
2902
+ function pi(t) {
2903
2903
  let e, r;
2904
- return e = new V({
2904
+ return e = new q({
2905
2905
  props: {
2906
2906
  as: "header",
2907
- $$slots: { default: [gi] },
2907
+ $$slots: { default: [_i] },
2908
2908
  $$scope: { ctx: t }
2909
2909
  }
2910
2910
  }), {
@@ -2930,26 +2930,26 @@ function Ai(t) {
2930
2930
  }
2931
2931
  };
2932
2932
  }
2933
- function _i(t, e, r) {
2933
+ function hi(t, e, r) {
2934
2934
  let { brandingInfo: n = null } = e;
2935
2935
  return t.$$set = (i) => {
2936
2936
  "brandingInfo" in i && r(0, n = i.brandingInfo);
2937
2937
  }, [n];
2938
2938
  }
2939
- class pi extends U {
2939
+ class Ei extends C {
2940
2940
  constructor(e) {
2941
- super(), C(this, e, _i, Ai, R, { brandingInfo: 0 }, mi);
2941
+ super(), U(this, e, hi, pi, R, { brandingInfo: 0 }, Ai);
2942
2942
  }
2943
2943
  }
2944
- function hi(t) {
2944
+ function Ii(t) {
2945
2945
  S(t, "svelte-17dhulw", ".rcb-modal-backdrop.svelte-17dhulw{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around}");
2946
2946
  }
2947
- function Ei(t) {
2947
+ function wi(t) {
2948
2948
  let e, r;
2949
2949
  const n = (
2950
2950
  /*#slots*/
2951
2951
  t[1].default
2952
- ), i = H(
2952
+ ), i = K(
2953
2953
  n,
2954
2954
  t,
2955
2955
  /*$$scope*/
@@ -2965,19 +2965,19 @@ function Ei(t) {
2965
2965
  },
2966
2966
  p(l, [s]) {
2967
2967
  i && i.p && (!r || s & /*$$scope*/
2968
- 1) && j(
2968
+ 1) && J(
2969
2969
  i,
2970
2970
  n,
2971
2971
  l,
2972
2972
  /*$$scope*/
2973
2973
  l[0],
2974
- r ? K(
2974
+ r ? j(
2975
2975
  n,
2976
2976
  /*$$scope*/
2977
2977
  l[0],
2978
2978
  s,
2979
2979
  null
2980
- ) : J(
2980
+ ) : x(
2981
2981
  /*$$scope*/
2982
2982
  l[0]
2983
2983
  ),
@@ -2995,26 +2995,26 @@ function Ei(t) {
2995
2995
  }
2996
2996
  };
2997
2997
  }
2998
- function Ii(t, e, r) {
2998
+ function bi(t, e, r) {
2999
2999
  let { $$slots: n = {}, $$scope: i } = e;
3000
3000
  return t.$$set = (l) => {
3001
3001
  "$$scope" in l && r(0, i = l.$$scope);
3002
3002
  }, [i, n];
3003
3003
  }
3004
- class wi extends U {
3004
+ class $i extends C {
3005
3005
  constructor(e) {
3006
- super(), C(this, e, Ii, Ei, R, {}, hi);
3006
+ super(), U(this, e, bi, wi, R, {}, Ii);
3007
3007
  }
3008
3008
  }
3009
- function bi(t) {
3009
+ function Bi(t) {
3010
3010
  S(t, "svelte-m6kocx", ".rcb-modal-main.svelte-m6kocx{box-sizing:border-box;border-radius:0.5rem;background-color:#fff;color:black;max-width:40rem;min-width:30rem;overflow-y:auto;padding:2.5rem}.rcb-modal-dark.svelte-m6kocx{background-color:#000;color:#fff;max-width:30rem;min-width:20rem}@media screen and (max-width: 60rem){.rcb-modal-main.svelte-m6kocx,.rcb-modal-dark.svelte-m6kocx{max-width:40rem;min-width:90vw}}");
3011
3011
  }
3012
- function $i(t) {
3012
+ function ki(t) {
3013
3013
  let e, r, n;
3014
3014
  const i = (
3015
3015
  /*#slots*/
3016
3016
  t[2].default
3017
- ), l = H(
3017
+ ), l = K(
3018
3018
  i,
3019
3019
  t,
3020
3020
  /*$$scope*/
@@ -3023,7 +3023,7 @@ function $i(t) {
3023
3023
  );
3024
3024
  return {
3025
3025
  c() {
3026
- e = $("main"), l && l.c(), h(e, "class", r = fe(`rcb-modal-main ${/*dark*/
3026
+ e = $("main"), l && l.c(), h(e, "class", r = de(`rcb-modal-main ${/*dark*/
3027
3027
  t[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx");
3028
3028
  },
3029
3029
  m(s, o) {
@@ -3031,25 +3031,25 @@ function $i(t) {
3031
3031
  },
3032
3032
  p(s, [o]) {
3033
3033
  l && l.p && (!n || o & /*$$scope*/
3034
- 2) && j(
3034
+ 2) && J(
3035
3035
  l,
3036
3036
  i,
3037
3037
  s,
3038
3038
  /*$$scope*/
3039
3039
  s[1],
3040
- n ? K(
3040
+ n ? j(
3041
3041
  i,
3042
3042
  /*$$scope*/
3043
3043
  s[1],
3044
3044
  o,
3045
3045
  null
3046
- ) : J(
3046
+ ) : x(
3047
3047
  /*$$scope*/
3048
3048
  s[1]
3049
3049
  ),
3050
3050
  null
3051
3051
  ), (!n || o & /*dark*/
3052
- 1 && r !== (r = fe(`rcb-modal-main ${/*dark*/
3052
+ 1 && r !== (r = de(`rcb-modal-main ${/*dark*/
3053
3053
  s[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx")) && h(e, "class", r);
3054
3054
  },
3055
3055
  i(s) {
@@ -3063,23 +3063,23 @@ function $i(t) {
3063
3063
  }
3064
3064
  };
3065
3065
  }
3066
- function ki(t, e, r) {
3066
+ function yi(t, e, r) {
3067
3067
  let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e;
3068
3068
  return t.$$set = (s) => {
3069
3069
  "dark" in s && r(0, l = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3070
3070
  }, [l, i, n];
3071
3071
  }
3072
- class Bi extends U {
3072
+ class Di extends C {
3073
3073
  constructor(e) {
3074
- super(), C(this, e, ki, $i, R, { dark: 0 }, bi);
3074
+ super(), U(this, e, yi, ki, R, { dark: 0 }, Bi);
3075
3075
  }
3076
3076
  }
3077
- function yi(t) {
3077
+ function vi(t) {
3078
3078
  let e;
3079
3079
  const r = (
3080
3080
  /*#slots*/
3081
3081
  t[1].default
3082
- ), n = H(
3082
+ ), n = K(
3083
3083
  r,
3084
3084
  t,
3085
3085
  /*$$scope*/
@@ -3095,19 +3095,19 @@ function yi(t) {
3095
3095
  },
3096
3096
  p(i, l) {
3097
3097
  n && n.p && (!e || l & /*$$scope*/
3098
- 4) && j(
3098
+ 4) && J(
3099
3099
  n,
3100
3100
  r,
3101
3101
  i,
3102
3102
  /*$$scope*/
3103
3103
  i[2],
3104
- e ? K(
3104
+ e ? j(
3105
3105
  r,
3106
3106
  /*$$scope*/
3107
3107
  i[2],
3108
3108
  l,
3109
3109
  null
3110
- ) : J(
3110
+ ) : x(
3111
3111
  /*$$scope*/
3112
3112
  i[2]
3113
3113
  ),
@@ -3125,11 +3125,11 @@ function yi(t) {
3125
3125
  }
3126
3126
  };
3127
3127
  }
3128
- function Di(t) {
3128
+ function Qi(t) {
3129
3129
  let e, r;
3130
- return e = new wi({
3130
+ return e = new $i({
3131
3131
  props: {
3132
- $$slots: { default: [Qi] },
3132
+ $$slots: { default: [Mi] },
3133
3133
  $$scope: { ctx: t }
3134
3134
  }
3135
3135
  }), {
@@ -3155,12 +3155,12 @@ function Di(t) {
3155
3155
  }
3156
3156
  };
3157
3157
  }
3158
- function Qi(t) {
3158
+ function Mi(t) {
3159
3159
  let e;
3160
3160
  const r = (
3161
3161
  /*#slots*/
3162
3162
  t[1].default
3163
- ), n = H(
3163
+ ), n = K(
3164
3164
  r,
3165
3165
  t,
3166
3166
  /*$$scope*/
@@ -3176,19 +3176,19 @@ function Qi(t) {
3176
3176
  },
3177
3177
  p(i, l) {
3178
3178
  n && n.p && (!e || l & /*$$scope*/
3179
- 4) && j(
3179
+ 4) && J(
3180
3180
  n,
3181
3181
  r,
3182
3182
  i,
3183
3183
  /*$$scope*/
3184
3184
  i[2],
3185
- e ? K(
3185
+ e ? j(
3186
3186
  r,
3187
3187
  /*$$scope*/
3188
3188
  i[2],
3189
3189
  l,
3190
3190
  null
3191
- ) : J(
3191
+ ) : x(
3192
3192
  /*$$scope*/
3193
3193
  i[2]
3194
3194
  ),
@@ -3206,9 +3206,9 @@ function Qi(t) {
3206
3206
  }
3207
3207
  };
3208
3208
  }
3209
- function vi(t) {
3209
+ function Ti(t) {
3210
3210
  let e, r, n, i;
3211
- const l = [Di, yi], s = [];
3211
+ const l = [Qi, vi], s = [];
3212
3212
  function o(c, u) {
3213
3213
  return (
3214
3214
  /*condition*/
@@ -3217,7 +3217,7 @@ function vi(t) {
3217
3217
  }
3218
3218
  return e = o(t), r = s[e] = l[e](t), {
3219
3219
  c() {
3220
- r.c(), n = z();
3220
+ r.c(), n = X();
3221
3221
  },
3222
3222
  m(c, u) {
3223
3223
  s[e].m(c, u), A(c, n, u), i = !0;
@@ -3239,20 +3239,20 @@ function vi(t) {
3239
3239
  }
3240
3240
  };
3241
3241
  }
3242
- function Mi(t, e, r) {
3242
+ function Pi(t, e, r) {
3243
3243
  let { $$slots: n = {}, $$scope: i } = e, { condition: l = !1 } = e;
3244
3244
  return t.$$set = (s) => {
3245
3245
  "condition" in s && r(0, l = s.condition), "$$scope" in s && r(2, i = s.$$scope);
3246
3246
  }, [l, n, i];
3247
3247
  }
3248
- class Pi extends U {
3248
+ class Ni extends C {
3249
3249
  constructor(e) {
3250
- super(), C(this, e, Mi, vi, R, { condition: 0 });
3250
+ super(), U(this, e, Pi, Ti, R, { condition: 0 });
3251
3251
  }
3252
3252
  }
3253
- function ze(t) {
3253
+ function Xe(t) {
3254
3254
  let e, r;
3255
- return e = new pi({
3255
+ return e = new Ei({
3256
3256
  props: { brandingInfo: (
3257
3257
  /*brandingInfo*/
3258
3258
  t[2]
@@ -3281,15 +3281,15 @@ function ze(t) {
3281
3281
  }
3282
3282
  };
3283
3283
  }
3284
- function Ti(t) {
3284
+ function Ri(t) {
3285
3285
  let e, r, n = (
3286
3286
  /*showHeader*/
3287
- t[1] && ze(t)
3287
+ t[1] && Xe(t)
3288
3288
  );
3289
3289
  const i = (
3290
3290
  /*#slots*/
3291
3291
  t[3].default
3292
- ), l = H(
3292
+ ), l = K(
3293
3293
  i,
3294
3294
  t,
3295
3295
  /*$$scope*/
@@ -3298,7 +3298,7 @@ function Ti(t) {
3298
3298
  );
3299
3299
  return {
3300
3300
  c() {
3301
- n && n.c(), e = T(), l && l.c();
3301
+ n && n.c(), e = P(), l && l.c();
3302
3302
  },
3303
3303
  m(s, o) {
3304
3304
  n && n.m(s, o), A(s, e, o), l && l.m(s, o), r = !0;
@@ -3306,22 +3306,22 @@ function Ti(t) {
3306
3306
  p(s, o) {
3307
3307
  /*showHeader*/
3308
3308
  s[1] ? n ? (n.p(s, o), o & /*showHeader*/
3309
- 2 && a(n, 1)) : (n = ze(s), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
3309
+ 2 && a(n, 1)) : (n = Xe(s), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
3310
3310
  n = null;
3311
3311
  }), G()), l && l.p && (!r || o & /*$$scope*/
3312
- 16) && j(
3312
+ 16) && J(
3313
3313
  l,
3314
3314
  i,
3315
3315
  s,
3316
3316
  /*$$scope*/
3317
3317
  s[4],
3318
- r ? K(
3318
+ r ? j(
3319
3319
  i,
3320
3320
  /*$$scope*/
3321
3321
  s[4],
3322
3322
  o,
3323
3323
  null
3324
- ) : J(
3324
+ ) : x(
3325
3325
  /*$$scope*/
3326
3326
  s[4]
3327
3327
  ),
@@ -3339,15 +3339,15 @@ function Ti(t) {
3339
3339
  }
3340
3340
  };
3341
3341
  }
3342
- function Ni(t) {
3342
+ function Ui(t) {
3343
3343
  let e, r;
3344
- return e = new Bi({
3344
+ return e = new Di({
3345
3345
  props: {
3346
3346
  dark: (
3347
3347
  /*dark*/
3348
3348
  t[0]
3349
3349
  ),
3350
- $$slots: { default: [Ti] },
3350
+ $$slots: { default: [Ri] },
3351
3351
  $$scope: { ctx: t }
3352
3352
  }
3353
3353
  }), {
@@ -3375,19 +3375,19 @@ function Ni(t) {
3375
3375
  }
3376
3376
  };
3377
3377
  }
3378
- function Ri(t, e, r) {
3378
+ function Ci(t, e, r) {
3379
3379
  let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e, { showHeader: s = !1 } = e, { brandingInfo: o = null } = e;
3380
3380
  return t.$$set = (c) => {
3381
3381
  "dark" in c && r(0, l = c.dark), "showHeader" in c && r(1, s = c.showHeader), "brandingInfo" in c && r(2, o = c.brandingInfo), "$$scope" in c && r(4, i = c.$$scope);
3382
3382
  }, [l, s, o, n, i];
3383
3383
  }
3384
- class wt extends U {
3384
+ class $t extends C {
3385
3385
  constructor(e) {
3386
- super(), C(this, e, Ri, Ni, R, { dark: 0, showHeader: 1, brandingInfo: 2 });
3386
+ super(), U(this, e, Ci, Ui, R, { dark: 0, showHeader: 1, brandingInfo: 2 });
3387
3387
  }
3388
3388
  }
3389
- var Me = /* @__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))(Me || {});
3390
- class be {
3389
+ 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 || {});
3390
+ class $e {
3391
3391
  static getPublicMessage(e) {
3392
3392
  switch (e) {
3393
3393
  case 0:
@@ -3485,7 +3485,7 @@ class be {
3485
3485
  }
3486
3486
  }
3487
3487
  static convertCodeToBackendErrorCode(e) {
3488
- return e in bt ? e : null;
3488
+ return e in Bt ? e : null;
3489
3489
  }
3490
3490
  static convertPurchaseFlowErrorCodeToErrorCode(e) {
3491
3491
  switch (e) {
@@ -3504,26 +3504,26 @@ class be {
3504
3504
  }
3505
3505
  }
3506
3506
  }
3507
- var bt = /* @__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))(bt || {});
3508
- class W extends Error {
3507
+ var Bt = /* @__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))(Bt || {});
3508
+ class z extends Error {
3509
3509
  constructor(r, n, i) {
3510
3510
  super(n);
3511
- P(this, "toString", () => `PurchasesError(code: ${Me[this.errorCode]}, message: ${this.message})`);
3511
+ Q(this, "toString", () => `PurchasesError(code: ${Te[this.errorCode]}, message: ${this.message})`);
3512
3512
  this.errorCode = r, this.underlyingErrorMessage = i;
3513
3513
  }
3514
3514
  /** @internal */
3515
3515
  static getForBackendError(r, n) {
3516
- const i = be.getErrorCodeForBackendErrorCode(r);
3517
- return new W(
3516
+ const i = $e.getErrorCodeForBackendErrorCode(r);
3517
+ return new z(
3518
3518
  i,
3519
- be.getPublicMessage(i),
3519
+ $e.getPublicMessage(i),
3520
3520
  n
3521
3521
  );
3522
3522
  }
3523
3523
  /** @internal */
3524
3524
  static getForPurchasesFlowError(r) {
3525
- return new W(
3526
- be.convertPurchaseFlowErrorCodeToErrorCode(
3525
+ return new z(
3526
+ $e.convertPurchaseFlowErrorCodeToErrorCode(
3527
3527
  r.errorCode
3528
3528
  ),
3529
3529
  r.message,
@@ -3531,157 +3531,162 @@ class W extends Error {
3531
3531
  );
3532
3532
  }
3533
3533
  }
3534
- const Ci = "0.0.10", le = "https://api.revenuecat.com";
3535
- var Be;
3534
+ class Oi extends Error {
3535
+ constructor() {
3536
+ super("Purchases must be configured before calling getInstance");
3537
+ }
3538
+ }
3539
+ const Si = "0.0.10", se = "https://api.revenuecat.com";
3540
+ var ye;
3536
3541
  (function(t) {
3537
3542
  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";
3538
- })(Be || (Be = {}));
3539
- function $t(t) {
3543
+ })(ye || (ye = {}));
3544
+ function kt(t) {
3540
3545
  return t ? t.startsWith("rcb_sb_") : !1;
3541
3546
  }
3542
- async function ee(t, e, r, n) {
3547
+ async function te(t, e, r, n) {
3543
3548
  const i = await fetch(t.url(), {
3544
3549
  method: t.method,
3545
- headers: Si(e, n),
3546
- body: Oi(r)
3550
+ headers: Gi(e, n),
3551
+ body: Fi(r)
3547
3552
  });
3548
- return await Ui(i, t), await i.json();
3553
+ return await Li(i, t), await i.json();
3549
3554
  }
3550
- async function Ui(t, e) {
3555
+ async function Li(t, e) {
3551
3556
  const r = t.status;
3552
- if (r >= Be.INTERNAL_SERVER_ERROR)
3553
- Re(e, r, await t.text());
3554
- else if (r >= Be.BAD_REQUEST) {
3557
+ if (r >= ye.INTERNAL_SERVER_ERROR)
3558
+ Ue(e, r, await t.text());
3559
+ else if (r >= ye.BAD_REQUEST) {
3555
3560
  const n = await t.json(), i = n ? JSON.stringify(n) : null, l = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
3556
3561
  if (l != null) {
3557
- const o = be.convertCodeToBackendErrorCode(l);
3562
+ const o = $e.convertCodeToBackendErrorCode(l);
3558
3563
  if (o == null)
3559
- Re(e, r, i);
3564
+ Ue(e, r, i);
3560
3565
  else
3561
- throw W.getForBackendError(
3566
+ throw z.getForBackendError(
3562
3567
  o,
3563
3568
  s
3564
3569
  );
3565
3570
  } else
3566
- Re(e, r, i);
3571
+ Ue(e, r, i);
3567
3572
  }
3568
3573
  }
3569
- function Re(t, e, r) {
3570
- throw new W(
3571
- Me.UnknownBackendError,
3574
+ function Ue(t, e, r) {
3575
+ throw new z(
3576
+ Te.UnknownBackendError,
3572
3577
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
3573
3578
  );
3574
3579
  }
3575
- function Oi(t) {
3580
+ function Fi(t) {
3576
3581
  return t == null ? null : JSON.stringify(t);
3577
3582
  }
3578
- function Si(t, e) {
3583
+ function Gi(t, e) {
3579
3584
  let r = {
3580
3585
  Authorization: `Bearer ${t}`,
3581
3586
  "Content-Type": "application/json",
3582
3587
  Accept: "application/json",
3583
3588
  "X-Platform": "web",
3584
- "X-Version": Ci,
3585
- "X-Is-Sandbox": `${$t(t)}`
3589
+ "X-Version": Si,
3590
+ "X-Is-Sandbox": `${kt(t)}`
3586
3591
  };
3587
3592
  return e != null && (r = { ...r, ...e }), r;
3588
3593
  }
3589
- const kt = "/v1/subscribers", Pe = "/rcbilling/v1";
3590
- class Li {
3594
+ const yt = "/v1/subscribers", Pe = "/rcbilling/v1";
3595
+ class Yi {
3591
3596
  constructor(e) {
3592
- P(this, "appUserId");
3593
- P(this, "method", "GET");
3594
- P(this, "name", "getOfferings");
3597
+ Q(this, "appUserId");
3598
+ Q(this, "method", "GET");
3599
+ Q(this, "name", "getOfferings");
3595
3600
  this.appUserId = e;
3596
3601
  }
3597
3602
  url() {
3598
- return `${le}${kt}/${this.appUserId}/offerings`;
3603
+ return `${se}${yt}/${this.appUserId}/offerings`;
3599
3604
  }
3600
3605
  }
3601
- class Fi {
3606
+ class Hi {
3602
3607
  constructor() {
3603
- P(this, "method", "POST");
3604
- P(this, "name", "subscribe");
3608
+ Q(this, "method", "POST");
3609
+ Q(this, "name", "subscribe");
3605
3610
  }
3606
3611
  url() {
3607
- return `${le}${Pe}/subscribe`;
3612
+ return `${se}${Pe}/subscribe`;
3608
3613
  }
3609
3614
  }
3610
- class Gi {
3615
+ class Ki {
3611
3616
  constructor(e, r) {
3612
- P(this, "method", "GET");
3613
- P(this, "name", "getProducts");
3614
- P(this, "appUserId");
3615
- P(this, "productIds");
3617
+ Q(this, "method", "GET");
3618
+ Q(this, "name", "getProducts");
3619
+ Q(this, "appUserId");
3620
+ Q(this, "productIds");
3616
3621
  this.appUserId = e, this.productIds = r;
3617
3622
  }
3618
3623
  url() {
3619
- return `${le}${Pe}/subscribers/${this.appUserId}/products?id=${this.productIds.join("&id=")}`;
3624
+ return `${se}${Pe}/subscribers/${this.appUserId}/products?id=${this.productIds.join("&id=")}`;
3620
3625
  }
3621
3626
  }
3622
- class Yi {
3627
+ class ji {
3623
3628
  constructor(e) {
3624
- P(this, "method", "GET");
3625
- P(this, "name", "getCustomerInfo");
3626
- P(this, "appUserId");
3629
+ Q(this, "method", "GET");
3630
+ Q(this, "name", "getCustomerInfo");
3631
+ Q(this, "appUserId");
3627
3632
  this.appUserId = e;
3628
3633
  }
3629
3634
  url() {
3630
- return `${le}${kt}/${this.appUserId}`;
3635
+ return `${se}${yt}/${this.appUserId}`;
3631
3636
  }
3632
3637
  }
3633
- class Hi {
3638
+ class Ji {
3634
3639
  constructor() {
3635
- P(this, "method", "GET");
3636
- P(this, "name", "getBrandingInfo");
3640
+ Q(this, "method", "GET");
3641
+ Q(this, "name", "getBrandingInfo");
3637
3642
  }
3638
3643
  url() {
3639
- return `${le}${Pe}/branding`;
3644
+ return `${se}${Pe}/branding`;
3640
3645
  }
3641
3646
  }
3642
- class Ki {
3647
+ class xi {
3643
3648
  constructor(e) {
3644
- P(this, "method", "GET");
3645
- P(this, "name", "getCheckoutStatus");
3646
- P(this, "operationSessionId");
3649
+ Q(this, "method", "GET");
3650
+ Q(this, "name", "getCheckoutStatus");
3651
+ Q(this, "operationSessionId");
3647
3652
  this.operationSessionId = e;
3648
3653
  }
3649
3654
  url() {
3650
- return `${le}${Pe}/checkout/${this.operationSessionId}`;
3655
+ return `${se}${Pe}/checkout/${this.operationSessionId}`;
3651
3656
  }
3652
3657
  }
3653
- class ji {
3658
+ class Vi {
3654
3659
  constructor(e) {
3655
- P(this, "API_KEY");
3660
+ Q(this, "API_KEY");
3656
3661
  this.API_KEY = e;
3657
3662
  }
3658
3663
  async getOfferings(e) {
3659
- return await ee(
3660
- new Li(e),
3664
+ return await te(
3665
+ new Yi(e),
3661
3666
  this.API_KEY
3662
3667
  );
3663
3668
  }
3664
3669
  async getCustomerInfo(e) {
3665
- return await ee(
3666
- new Yi(e),
3670
+ return await te(
3671
+ new ji(e),
3667
3672
  this.API_KEY
3668
3673
  );
3669
3674
  }
3670
3675
  async getProducts(e, r) {
3671
- return await ee(
3672
- new Gi(e, r),
3676
+ return await te(
3677
+ new Ki(e, r),
3673
3678
  this.API_KEY
3674
3679
  );
3675
3680
  }
3676
3681
  async getBrandingInfo() {
3677
- return await ee(
3678
- new Hi(),
3682
+ return await te(
3683
+ new Ji(),
3679
3684
  this.API_KEY
3680
3685
  );
3681
3686
  }
3682
3687
  async postSubscribe(e, r, n) {
3683
- return await ee(
3684
- new Fi(),
3688
+ return await te(
3689
+ new Hi(),
3685
3690
  this.API_KEY,
3686
3691
  {
3687
3692
  app_user_id: e,
@@ -3691,13 +3696,13 @@ class ji {
3691
3696
  );
3692
3697
  }
3693
3698
  async getCheckoutStatus(e) {
3694
- return await ee(
3695
- new Ki(e),
3699
+ return await te(
3700
+ new xi(e),
3696
3701
  this.API_KEY
3697
3702
  );
3698
3703
  }
3699
3704
  }
3700
- function Ji(t) {
3705
+ function qi(t) {
3701
3706
  S(t, "svelte-ofxzf4", `.rcb-ui-container.svelte-ofxzf4{color-scheme:none;font-family:"PP Object Sans",
3702
3707
  -apple-system,
3703
3708
  BlinkMacSystemFont,
@@ -3713,12 +3718,12 @@ function Ji(t) {
3713
3718
  arial,
3714
3719
  sans-serif}.rcb-ui-layout.svelte-ofxzf4{display:flex;justify-content:center;align-items:flex-start}.rcb-ui-aside.svelte-ofxzf4{margin-right:1rem}@media screen and (max-width: 60rem){.rcb-ui-layout.svelte-ofxzf4{flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.rcb-ui-aside.svelte-ofxzf4{margin-right:0;margin-bottom:1rem}}`);
3715
3720
  }
3716
- function Xe(t) {
3721
+ function Ze(t) {
3717
3722
  let e, r, n, i = (
3718
3723
  /*purchases*/
3719
3724
  t[1].isSandbox()
3720
3725
  ), l;
3721
- r = new wt({
3726
+ r = new $t({
3722
3727
  props: {
3723
3728
  dark: !0,
3724
3729
  showHeader: !0,
@@ -3726,17 +3731,17 @@ function Xe(t) {
3726
3731
  /*brandingInfo*/
3727
3732
  t[3]
3728
3733
  ),
3729
- $$slots: { default: [xi] },
3734
+ $$slots: { default: [Wi] },
3730
3735
  $$scope: { ctx: t }
3731
3736
  }
3732
3737
  });
3733
- let s = i && et();
3738
+ let s = i && tt();
3734
3739
  return {
3735
3740
  c() {
3736
- e = $("div"), b(r.$$.fragment), n = T(), s && s.c(), h(e, "class", "rcb-ui-aside svelte-ofxzf4");
3741
+ e = $("div"), b(r.$$.fragment), n = P(), s && s.c(), h(e, "class", "rcb-ui-aside svelte-ofxzf4");
3737
3742
  },
3738
3743
  m(o, c) {
3739
- A(o, e, c), I(r, e, null), M(e, n), s && s.m(e, null), l = !0;
3744
+ A(o, e, c), I(r, e, null), T(e, n), s && s.m(e, null), l = !0;
3740
3745
  },
3741
3746
  p(o, c) {
3742
3747
  const u = {};
@@ -3746,7 +3751,7 @@ function Xe(t) {
3746
3751
  4194308 && (u.$$scope = { dirty: c, ctx: o }), r.$set(u), c & /*purchases*/
3747
3752
  2 && (i = /*purchases*/
3748
3753
  o[1].isSandbox()), i ? s ? c & /*purchases*/
3749
- 2 && a(s, 1) : (s = et(), s.c(), a(s, 1), s.m(e, null)) : s && (F(), f(s, 1, 1, () => {
3754
+ 2 && a(s, 1) : (s = tt(), s.c(), a(s, 1), s.m(e, null)) : s && (F(), f(s, 1, 1, () => {
3750
3755
  s = null;
3751
3756
  }), G());
3752
3757
  },
@@ -3761,9 +3766,9 @@ function Xe(t) {
3761
3766
  }
3762
3767
  };
3763
3768
  }
3764
- function Ze(t) {
3769
+ function et(t) {
3765
3770
  let e, r;
3766
- return e = new gt({
3771
+ return e = new _t({
3767
3772
  props: {
3768
3773
  productDetails: (
3769
3774
  /*productDetails*/
@@ -3794,14 +3799,14 @@ function Ze(t) {
3794
3799
  }
3795
3800
  };
3796
3801
  }
3797
- function xi(t) {
3802
+ function Wi(t) {
3798
3803
  let e, r, n = (
3799
3804
  /*productDetails*/
3800
- t[2] && Ze(t)
3805
+ t[2] && et(t)
3801
3806
  );
3802
3807
  return {
3803
3808
  c() {
3804
- n && n.c(), e = z();
3809
+ n && n.c(), e = X();
3805
3810
  },
3806
3811
  m(i, l) {
3807
3812
  n && n.m(i, l), A(i, e, l), r = !0;
@@ -3809,7 +3814,7 @@ function xi(t) {
3809
3814
  p(i, l) {
3810
3815
  /*productDetails*/
3811
3816
  i[2] ? n ? (n.p(i, l), l & /*productDetails*/
3812
- 4 && a(n, 1)) : (n = Ze(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
3817
+ 4 && a(n, 1)) : (n = et(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
3813
3818
  n = null;
3814
3819
  }), G());
3815
3820
  },
@@ -3824,9 +3829,9 @@ function xi(t) {
3824
3829
  }
3825
3830
  };
3826
3831
  }
3827
- function et(t) {
3832
+ function tt(t) {
3828
3833
  let e, r;
3829
- return e = new cn({}), {
3834
+ return e = new un({}), {
3830
3835
  c() {
3831
3836
  b(e.$$.fragment);
3832
3837
  },
@@ -3844,9 +3849,9 @@ function et(t) {
3844
3849
  }
3845
3850
  };
3846
3851
  }
3847
- function tt(t) {
3852
+ function nt(t) {
3848
3853
  let e, r;
3849
- return e = new gt({
3854
+ return e = new _t({
3850
3855
  props: {
3851
3856
  productDetails: (
3852
3857
  /*productDetails*/
@@ -3877,7 +3882,7 @@ function tt(t) {
3877
3882
  }
3878
3883
  };
3879
3884
  }
3880
- function nt(t) {
3885
+ function rt(t) {
3881
3886
  let e, r;
3882
3887
  return e = new Qe({}), {
3883
3888
  c() {
@@ -3897,7 +3902,7 @@ function nt(t) {
3897
3902
  }
3898
3903
  };
3899
3904
  }
3900
- function rt(t) {
3905
+ function it(t) {
3901
3906
  let e, r;
3902
3907
  return e = new Qe({}), {
3903
3908
  c() {
@@ -3917,9 +3922,9 @@ function rt(t) {
3917
3922
  }
3918
3923
  };
3919
3924
  }
3920
- function it(t) {
3925
+ function lt(t) {
3921
3926
  let e, r;
3922
- return e = new ai({
3927
+ return e = new fi({
3923
3928
  props: { onContinue: (
3924
3929
  /*handleContinue*/
3925
3930
  t[9]
@@ -3943,9 +3948,9 @@ function it(t) {
3943
3948
  }
3944
3949
  };
3945
3950
  }
3946
- function lt(t) {
3951
+ function st(t) {
3947
3952
  let e, r;
3948
- return e = new ti({
3953
+ return e = new ri({
3949
3954
  props: {
3950
3955
  paymentInfoCollectionMetadata: (
3951
3956
  /*paymentInfoCollectionMetadata*/
@@ -3988,7 +3993,7 @@ function lt(t) {
3988
3993
  }
3989
3994
  };
3990
3995
  }
3991
- function st(t) {
3996
+ function ot(t) {
3992
3997
  let e, r;
3993
3998
  return e = new Qe({}), {
3994
3999
  c() {
@@ -4008,10 +4013,10 @@ function st(t) {
4008
4013
  }
4009
4014
  };
4010
4015
  }
4011
- function ot(t) {
4016
+ function ct(t) {
4012
4017
  var n;
4013
4018
  let e, r;
4014
- return e = new ur({
4019
+ return e = new dr({
4015
4020
  props: {
4016
4021
  brandingInfo: (
4017
4022
  /*brandingInfo*/
@@ -4059,9 +4064,9 @@ function ot(t) {
4059
4064
  }
4060
4065
  };
4061
4066
  }
4062
- function ct(t) {
4067
+ function at(t) {
4063
4068
  let e, r;
4064
- return e = new kr({
4069
+ return e = new yr({
4065
4070
  props: {
4066
4071
  brandingInfo: (
4067
4072
  /*brandingInfo*/
@@ -4096,110 +4101,110 @@ function ct(t) {
4096
4101
  }
4097
4102
  };
4098
4103
  }
4099
- function Vi(t) {
4104
+ function zi(t) {
4100
4105
  let e, r, n, i, l, s, o, c, u, _ = (
4101
4106
  /*state*/
4102
4107
  t[6] === "present-offer" && /*productDetails*/
4103
- t[2] && tt(t)
4108
+ t[2] && nt(t)
4104
4109
  ), m = (
4105
4110
  /*state*/
4106
4111
  t[6] === "present-offer" && !/*productDetails*/
4107
- t[2] && nt()
4108
- ), k = (
4109
- /*state*/
4110
- t[6] === "polling-purchase-status" && rt()
4112
+ t[2] && rt()
4111
4113
  ), B = (
4112
4114
  /*state*/
4113
- t[6] === "needs-auth-info" && it(t)
4115
+ t[6] === "polling-purchase-status" && it()
4116
+ ), k = (
4117
+ /*state*/
4118
+ t[6] === "needs-auth-info" && lt(t)
4114
4119
  ), E = (
4115
4120
  /*state*/
4116
4121
  t[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
4117
- t[4] && lt(t)
4122
+ t[4] && st(t)
4118
4123
  ), y = (
4119
4124
  /*state*/
4120
- t[6] === "loading" && st()
4121
- ), v = (
4125
+ t[6] === "loading" && ot()
4126
+ ), M = (
4122
4127
  /*state*/
4123
- t[6] === "error" && ot(t)
4128
+ t[6] === "error" && ct(t)
4124
4129
  ), N = (
4125
4130
  /*state*/
4126
- t[6] === "success" && ct(t)
4131
+ t[6] === "success" && at(t)
4127
4132
  );
4128
4133
  return {
4129
4134
  c() {
4130
- _ && _.c(), e = T(), m && m.c(), r = T(), k && k.c(), n = T(), B && B.c(), i = T(), E && E.c(), l = T(), y && y.c(), s = T(), v && v.c(), o = T(), N && N.c(), c = z();
4135
+ _ && _.c(), e = P(), m && m.c(), r = P(), B && B.c(), n = P(), k && k.c(), i = P(), E && E.c(), l = P(), y && y.c(), s = P(), M && M.c(), o = P(), N && N.c(), c = X();
4131
4136
  },
4132
4137
  m(d, p) {
4133
- _ && _.m(d, p), A(d, e, p), m && m.m(d, p), A(d, r, p), k && k.m(d, p), A(d, n, p), B && B.m(d, p), A(d, i, p), E && E.m(d, p), A(d, l, p), y && y.m(d, p), A(d, s, p), v && v.m(d, p), A(d, o, p), N && N.m(d, p), A(d, c, p), u = !0;
4138
+ _ && _.m(d, p), A(d, e, p), m && m.m(d, p), A(d, r, p), B && B.m(d, p), A(d, n, p), k && k.m(d, p), A(d, i, p), E && E.m(d, p), A(d, l, p), y && y.m(d, p), A(d, s, p), M && M.m(d, p), A(d, o, p), N && N.m(d, p), A(d, c, p), u = !0;
4134
4139
  },
4135
4140
  p(d, p) {
4136
4141
  /*state*/
4137
4142
  d[6] === "present-offer" && /*productDetails*/
4138
4143
  d[2] ? _ ? (_.p(d, p), p & /*state, productDetails*/
4139
- 68 && a(_, 1)) : (_ = tt(d), _.c(), a(_, 1), _.m(e.parentNode, e)) : _ && (F(), f(_, 1, 1, () => {
4144
+ 68 && a(_, 1)) : (_ = nt(d), _.c(), a(_, 1), _.m(e.parentNode, e)) : _ && (F(), f(_, 1, 1, () => {
4140
4145
  _ = null;
4141
4146
  }), G()), /*state*/
4142
4147
  d[6] === "present-offer" && !/*productDetails*/
4143
4148
  d[2] ? m ? p & /*state, productDetails*/
4144
- 68 && a(m, 1) : (m = nt(), m.c(), a(m, 1), m.m(r.parentNode, r)) : m && (F(), f(m, 1, 1, () => {
4149
+ 68 && a(m, 1) : (m = rt(), m.c(), a(m, 1), m.m(r.parentNode, r)) : m && (F(), f(m, 1, 1, () => {
4145
4150
  m = null;
4146
4151
  }), G()), /*state*/
4147
- d[6] === "polling-purchase-status" ? k ? p & /*state*/
4148
- 64 && a(k, 1) : (k = rt(), k.c(), a(k, 1), k.m(n.parentNode, n)) : k && (F(), f(k, 1, 1, () => {
4149
- k = null;
4150
- }), G()), /*state*/
4151
- d[6] === "needs-auth-info" ? B ? (B.p(d, p), p & /*state*/
4152
- 64 && a(B, 1)) : (B = it(d), B.c(), a(B, 1), B.m(i.parentNode, i)) : B && (F(), f(B, 1, 1, () => {
4152
+ d[6] === "polling-purchase-status" ? B ? p & /*state*/
4153
+ 64 && a(B, 1) : (B = it(), B.c(), a(B, 1), B.m(n.parentNode, n)) : B && (F(), f(B, 1, 1, () => {
4153
4154
  B = null;
4154
4155
  }), G()), /*state*/
4156
+ d[6] === "needs-auth-info" ? k ? (k.p(d, p), p & /*state*/
4157
+ 64 && a(k, 1)) : (k = lt(d), k.c(), a(k, 1), k.m(i.parentNode, i)) : k && (F(), f(k, 1, 1, () => {
4158
+ k = null;
4159
+ }), G()), /*state*/
4155
4160
  d[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
4156
4161
  d[4] ? E ? (E.p(d, p), p & /*state, paymentInfoCollectionMetadata*/
4157
- 80 && a(E, 1)) : (E = lt(d), E.c(), a(E, 1), E.m(l.parentNode, l)) : E && (F(), f(E, 1, 1, () => {
4162
+ 80 && a(E, 1)) : (E = st(d), E.c(), a(E, 1), E.m(l.parentNode, l)) : E && (F(), f(E, 1, 1, () => {
4158
4163
  E = null;
4159
4164
  }), G()), /*state*/
4160
4165
  d[6] === "loading" ? y ? p & /*state*/
4161
- 64 && a(y, 1) : (y = st(), y.c(), a(y, 1), y.m(s.parentNode, s)) : y && (F(), f(y, 1, 1, () => {
4166
+ 64 && a(y, 1) : (y = ot(), y.c(), a(y, 1), y.m(s.parentNode, s)) : y && (F(), f(y, 1, 1, () => {
4162
4167
  y = null;
4163
4168
  }), G()), /*state*/
4164
- d[6] === "error" ? v ? (v.p(d, p), p & /*state*/
4165
- 64 && a(v, 1)) : (v = ot(d), v.c(), a(v, 1), v.m(o.parentNode, o)) : v && (F(), f(v, 1, 1, () => {
4166
- v = null;
4169
+ d[6] === "error" ? M ? (M.p(d, p), p & /*state*/
4170
+ 64 && a(M, 1)) : (M = ct(d), M.c(), a(M, 1), M.m(o.parentNode, o)) : M && (F(), f(M, 1, 1, () => {
4171
+ M = null;
4167
4172
  }), G()), /*state*/
4168
4173
  d[6] === "success" ? N ? (N.p(d, p), p & /*state*/
4169
- 64 && a(N, 1)) : (N = ct(d), N.c(), a(N, 1), N.m(c.parentNode, c)) : N && (F(), f(N, 1, 1, () => {
4174
+ 64 && a(N, 1)) : (N = at(d), N.c(), a(N, 1), N.m(c.parentNode, c)) : N && (F(), f(N, 1, 1, () => {
4170
4175
  N = null;
4171
4176
  }), G());
4172
4177
  },
4173
4178
  i(d) {
4174
- u || (a(_), a(m), a(k), a(B), a(E), a(y), a(v), a(N), u = !0);
4179
+ u || (a(_), a(m), a(B), a(k), a(E), a(y), a(M), a(N), u = !0);
4175
4180
  },
4176
4181
  o(d) {
4177
- f(_), f(m), f(k), f(B), f(E), f(y), f(v), f(N), u = !1;
4182
+ f(_), f(m), f(B), f(k), f(E), f(y), f(M), f(N), u = !1;
4178
4183
  },
4179
4184
  d(d) {
4180
- d && (g(e), g(r), g(n), g(i), g(l), g(s), g(o), g(c)), _ && _.d(d), m && m.d(d), k && k.d(d), B && B.d(d), E && E.d(d), y && y.d(d), v && v.d(d), N && N.d(d);
4185
+ d && (g(e), g(r), g(n), g(i), g(l), g(s), g(o), g(c)), _ && _.d(d), m && m.d(d), B && B.d(d), k && k.d(d), E && E.d(d), y && y.d(d), M && M.d(d), N && N.d(d);
4181
4186
  }
4182
4187
  };
4183
4188
  }
4184
- function qi(t) {
4189
+ function Xi(t) {
4185
4190
  let e, r = (
4186
4191
  /*statesWhereOfferDetailsAreShown*/
4187
4192
  t[7].includes(
4188
4193
  /*state*/
4189
4194
  t[6]
4190
4195
  )
4191
- ), n, i, l, s = r && Xe(t);
4192
- return i = new wt({
4196
+ ), n, i, l, s = r && Ze(t);
4197
+ return i = new $t({
4193
4198
  props: {
4194
- $$slots: { default: [Vi] },
4199
+ $$slots: { default: [zi] },
4195
4200
  $$scope: { ctx: t }
4196
4201
  }
4197
4202
  }), {
4198
4203
  c() {
4199
- e = $("div"), s && s.c(), n = T(), b(i.$$.fragment), h(e, "class", "rcb-ui-layout svelte-ofxzf4");
4204
+ e = $("div"), s && s.c(), n = P(), b(i.$$.fragment), h(e, "class", "rcb-ui-layout svelte-ofxzf4");
4200
4205
  },
4201
4206
  m(o, c) {
4202
- A(o, e, c), s && s.m(e, null), M(e, n), I(i, e, null), l = !0;
4207
+ A(o, e, c), s && s.m(e, null), T(e, n), I(i, e, null), l = !0;
4203
4208
  },
4204
4209
  p(o, c) {
4205
4210
  c & /*state*/
@@ -4208,7 +4213,7 @@ function qi(t) {
4208
4213
  /*state*/
4209
4214
  o[6]
4210
4215
  )), r ? s ? (s.p(o, c), c & /*state*/
4211
- 64 && a(s, 1)) : (s = Xe(o), s.c(), a(s, 1), s.m(e, n)) : s && (F(), f(s, 1, 1, () => {
4216
+ 64 && a(s, 1)) : (s = Ze(o), s.c(), a(s, 1), s.m(e, n)) : s && (F(), f(s, 1, 1, () => {
4212
4217
  s = null;
4213
4218
  }), G());
4214
4219
  const u = {};
@@ -4226,15 +4231,15 @@ function qi(t) {
4226
4231
  }
4227
4232
  };
4228
4233
  }
4229
- function Wi(t) {
4234
+ function Zi(t) {
4230
4235
  let e, r, n;
4231
- return r = new Pi({
4236
+ return r = new Ni({
4232
4237
  props: {
4233
4238
  condition: (
4234
4239
  /*asModal*/
4235
4240
  t[0]
4236
4241
  ),
4237
- $$slots: { default: [qi] },
4242
+ $$slots: { default: [Xi] },
4238
4243
  $$scope: { ctx: t }
4239
4244
  }
4240
4245
  }), {
@@ -4262,52 +4267,52 @@ function Wi(t) {
4262
4267
  }
4263
4268
  };
4264
4269
  }
4265
- function zi(t, e, r) {
4266
- var Le;
4267
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: s } = e, { onFinished: o } = e, { onError: c } = e, { onClose: u } = e, { purchases: _ } = e, { backend: m } = e, { purchaseOperationHelper: k } = e, B = null, E = null, y = null, v = null;
4268
- const N = ((Le = s.rcBillingProduct) == null ? void 0 : Le.identifier) ?? null;
4270
+ function el(t, e, r) {
4271
+ var Fe;
4272
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: s } = e, { onFinished: o } = e, { onError: c } = e, { onClose: u } = e, { purchases: _ } = e, { backend: m } = e, { purchaseOperationHelper: B } = e, k = null, E = null, y = null, M = null;
4273
+ const N = ((Fe = s.rcBillingProduct) == null ? void 0 : Fe.identifier) ?? null;
4269
4274
  let d = "present-offer";
4270
4275
  const p = ["present-offer", "needs-auth-info", "needs-payment-info", "loading"];
4271
- De(async () => {
4272
- if (r(2, B = s.rcBillingProduct), r(3, E = await m.getBrandingInfo()), d === "present-offer") {
4273
- i ? Se() : r(6, d = "needs-auth-info");
4276
+ ve(async () => {
4277
+ if (r(2, k = s.rcBillingProduct), r(3, E = await m.getBrandingInfo()), d === "present-offer") {
4278
+ i ? Le() : r(6, d = "needs-auth-info");
4274
4279
  return;
4275
4280
  }
4276
4281
  });
4277
- const Bt = () => {
4282
+ const Dt = () => {
4278
4283
  u();
4279
- }, Se = () => {
4284
+ }, Le = () => {
4280
4285
  if (N === null) {
4281
- se(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
4286
+ oe(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
4282
4287
  return;
4283
4288
  } else
4284
4289
  r(6, d = "loading");
4285
4290
  if (!i) {
4286
- se(new Y(O.MissingEmailError));
4291
+ oe(new Y(O.MissingEmailError));
4287
4292
  return;
4288
4293
  }
4289
- k.startPurchase(l, N, i).then((Q) => {
4290
- if (Q.next_action === "collect_payment_info") {
4291
- r(6, d = "needs-payment-info"), r(4, y = Q);
4294
+ B.startPurchase(l, N, i).then((v) => {
4295
+ if (v.next_action === "collect_payment_info") {
4296
+ r(6, d = "needs-payment-info"), r(4, y = v);
4292
4297
  return;
4293
4298
  }
4294
- if (Q.next_action === "completed") {
4299
+ if (v.next_action === "completed") {
4295
4300
  r(6, d = "success");
4296
4301
  return;
4297
4302
  }
4298
- }).catch((Q) => {
4299
- se(new Y(O.ErrorSettingUpPurchase, Q.message, Q.underlyingErrorMessage));
4303
+ }).catch((v) => {
4304
+ oe(new Y(O.ErrorSettingUpPurchase, v.message, v.underlyingErrorMessage));
4300
4305
  });
4301
- }, yt = (Q) => {
4306
+ }, vt = (v) => {
4302
4307
  if (d === "needs-auth-info") {
4303
- Q && r(12, i = Q.email), Se();
4308
+ v && r(12, i = v.email), Le();
4304
4309
  return;
4305
4310
  }
4306
4311
  if (d === "needs-payment-info") {
4307
- r(6, d = "polling-purchase-status"), k.pollCurrentPurchaseForCompletion().then(() => {
4312
+ r(6, d = "polling-purchase-status"), B.pollCurrentPurchaseForCompletion().then(() => {
4308
4313
  r(6, d = "success");
4309
- }).catch((Qt) => {
4310
- se(Qt);
4314
+ }).catch((Mt) => {
4315
+ oe(Mt);
4311
4316
  });
4312
4317
  return;
4313
4318
  }
@@ -4316,26 +4321,26 @@ function zi(t, e, r) {
4316
4321
  return;
4317
4322
  }
4318
4323
  r(6, d = "success");
4319
- }, se = (Q) => {
4320
- r(5, v = Q), r(6, d = "error");
4321
- }, Dt = () => {
4322
- c(v ?? new Y(O.UnknownError, "Unknown error without state set."));
4324
+ }, oe = (v) => {
4325
+ r(5, M = v), r(6, d = "error");
4326
+ }, Qt = () => {
4327
+ c(M ?? new Y(O.UnknownError, "Unknown error without state set."));
4323
4328
  };
4324
- return t.$$set = (Q) => {
4325
- "asModal" in Q && r(0, n = Q.asModal), "customerEmail" in Q && r(12, i = Q.customerEmail), "appUserId" in Q && r(13, l = Q.appUserId), "rcPackage" in Q && r(14, s = Q.rcPackage), "onFinished" in Q && r(15, o = Q.onFinished), "onError" in Q && r(16, c = Q.onError), "onClose" in Q && r(17, u = Q.onClose), "purchases" in Q && r(1, _ = Q.purchases), "backend" in Q && r(18, m = Q.backend), "purchaseOperationHelper" in Q && r(19, k = Q.purchaseOperationHelper);
4329
+ return t.$$set = (v) => {
4330
+ "asModal" in v && r(0, n = v.asModal), "customerEmail" in v && r(12, i = v.customerEmail), "appUserId" in v && r(13, l = v.appUserId), "rcPackage" in v && r(14, s = v.rcPackage), "onFinished" in v && r(15, o = v.onFinished), "onError" in v && r(16, c = v.onError), "onClose" in v && r(17, u = v.onClose), "purchases" in v && r(1, _ = v.purchases), "backend" in v && r(18, m = v.backend), "purchaseOperationHelper" in v && r(19, B = v.purchaseOperationHelper);
4326
4331
  }, [
4327
4332
  n,
4328
4333
  _,
4329
- B,
4334
+ k,
4330
4335
  E,
4331
4336
  y,
4332
- v,
4337
+ M,
4333
4338
  d,
4334
4339
  p,
4335
- Bt,
4336
- yt,
4337
- se,
4338
4340
  Dt,
4341
+ vt,
4342
+ oe,
4343
+ Qt,
4339
4344
  i,
4340
4345
  l,
4341
4346
  s,
@@ -4343,16 +4348,16 @@ function zi(t, e, r) {
4343
4348
  c,
4344
4349
  u,
4345
4350
  m,
4346
- k
4351
+ B
4347
4352
  ];
4348
4353
  }
4349
- class Xi extends U {
4354
+ class tl extends C {
4350
4355
  constructor(e) {
4351
- super(), C(
4356
+ super(), U(
4352
4357
  this,
4353
4358
  e,
4354
- zi,
4355
- Wi,
4359
+ el,
4360
+ Zi,
4356
4361
  R,
4357
4362
  {
4358
4363
  asModal: 0,
@@ -4366,36 +4371,36 @@ class Xi extends U {
4366
4371
  backend: 18,
4367
4372
  purchaseOperationHelper: 19
4368
4373
  },
4369
- Ji
4374
+ qi
4370
4375
  );
4371
4376
  }
4372
4377
  }
4373
- function Zi(t) {
4378
+ function nl(t) {
4374
4379
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
4375
4380
  }
4376
- function el(t, e, r) {
4381
+ function rl(t, e, r) {
4377
4382
  return {
4378
4383
  identifier: t,
4379
- isActive: Zi(e),
4380
- willRenew: rl(e, r),
4384
+ isActive: nl(e),
4385
+ willRenew: sl(e, r),
4381
4386
  store: (r == null ? void 0 : r.store) ?? "unknown",
4382
4387
  originalPurchaseDate: new Date(e.purchase_date),
4383
- expirationDate: $e(e.expires_date),
4388
+ expirationDate: Be(e.expires_date),
4384
4389
  productIdentifier: e.product_identifier,
4385
- unsubscribeDetectedAt: $e(
4390
+ unsubscribeDetectedAt: Be(
4386
4391
  r == null ? void 0 : r.unsubscribe_detected_at
4387
4392
  ),
4388
- billingIssueDetectedAt: $e(
4393
+ billingIssueDetectedAt: Be(
4389
4394
  r == null ? void 0 : r.billing_issues_detected_at
4390
4395
  ),
4391
4396
  isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,
4392
4397
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
4393
4398
  };
4394
4399
  }
4395
- function tl(t, e) {
4400
+ function il(t, e) {
4396
4401
  const r = {}, n = {};
4397
4402
  for (const i in t) {
4398
- const l = e[i] ?? null, s = el(
4403
+ const l = e[i] ?? null, s = rl(
4399
4404
  i,
4400
4405
  t[i],
4401
4406
  l
@@ -4407,35 +4412,35 @@ function tl(t, e) {
4407
4412
  active: n
4408
4413
  };
4409
4414
  }
4410
- function $e(t) {
4415
+ function Be(t) {
4411
4416
  return t == null ? null : new Date(t);
4412
4417
  }
4413
- function nl(t) {
4414
- const e = ll(t), r = t.subscriber;
4418
+ function ll(t) {
4419
+ const e = cl(t), r = t.subscriber;
4415
4420
  return {
4416
- entitlements: tl(
4421
+ entitlements: il(
4417
4422
  r.entitlements,
4418
4423
  r.subscriptions
4419
4424
  ),
4420
4425
  allExpirationDatesByProduct: e,
4421
- allPurchaseDatesByProduct: il(t),
4422
- activeSubscriptions: sl(e),
4426
+ allPurchaseDatesByProduct: ol(t),
4427
+ activeSubscriptions: al(e),
4423
4428
  managementURL: r.management_url,
4424
4429
  requestDate: new Date(t.request_date),
4425
4430
  firstSeenDate: new Date(r.first_seen),
4426
- originalPurchaseDate: $e(
4431
+ originalPurchaseDate: Be(
4427
4432
  r.original_purchase_date
4428
4433
  ),
4429
4434
  originalAppUserId: t.subscriber.original_app_user_id
4430
4435
  };
4431
4436
  }
4432
- function rl(t, e) {
4437
+ function sl(t, e) {
4433
4438
  if (e == null)
4434
4439
  return !1;
4435
4440
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, l = e.billing_issues_detected_at != null;
4436
4441
  return !(r || n || i || l);
4437
4442
  }
4438
- function il(t) {
4443
+ function ol(t) {
4439
4444
  const e = {};
4440
4445
  for (const r in t.subscriber.subscriptions) {
4441
4446
  const n = t.subscriber.subscriptions[r];
@@ -4445,7 +4450,7 @@ function il(t) {
4445
4450
  }
4446
4451
  return e;
4447
4452
  }
4448
- function ll(t) {
4453
+ function cl(t) {
4449
4454
  const e = {};
4450
4455
  for (const r in t.subscriber.subscriptions) {
4451
4456
  const n = t.subscriber.subscriptions[r];
@@ -4455,7 +4460,7 @@ function ll(t) {
4455
4460
  }
4456
4461
  return e;
4457
4462
  }
4458
- function sl(t) {
4463
+ function al(t) {
4459
4464
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
4460
4465
  for (const n in t) {
4461
4466
  const i = t[n];
@@ -4463,29 +4468,28 @@ function sl(t) {
4463
4468
  }
4464
4469
  return e;
4465
4470
  }
4466
- class cl {
4467
- /**
4468
- * Constructor for Purchases.
4469
- * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
4470
- */
4471
- constructor(e) {
4471
+ const H = class H {
4472
+ /** @internal */
4473
+ constructor(e, r) {
4474
+ /** @internal */
4475
+ Q(this, "_API_KEY");
4472
4476
  /** @internal */
4473
- P(this, "_API_KEY");
4477
+ Q(this, "_appUserId");
4474
4478
  /** @internal */
4475
- P(this, "backend");
4479
+ Q(this, "backend");
4476
4480
  /** @internal */
4477
- P(this, "purchaseOperationHelper");
4481
+ Q(this, "purchaseOperationHelper");
4478
4482
  /** @internal */
4479
- P(this, "toOfferings", (e, r) => {
4483
+ Q(this, "toOfferings", (e, r) => {
4480
4484
  const n = e.offerings.find(
4481
4485
  (o) => o.identifier === e.current_offering_id
4482
4486
  ) ?? null, i = {};
4483
4487
  r.product_details.forEach((o) => {
4484
4488
  i[o.identifier] = o;
4485
4489
  });
4486
- const l = n == null ? null : Fe(n, i), s = {};
4490
+ const l = n == null ? null : Ge(n, i), s = {};
4487
4491
  return e.offerings.forEach((o) => {
4488
- const c = Fe(o, i);
4492
+ const c = Ge(o, i);
4489
4493
  c != null && (s[o.identifier] = c);
4490
4494
  }), Object.keys(s).length == 0 && console.debug(
4491
4495
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
@@ -4494,15 +4498,42 @@ class cl {
4494
4498
  current: l
4495
4499
  };
4496
4500
  });
4497
- this._API_KEY = e, this.backend = new ji(this._API_KEY), this.purchaseOperationHelper = new bn(this.backend);
4501
+ this._API_KEY = e, this._appUserId = r, this.backend = new Vi(this._API_KEY), this.purchaseOperationHelper = new Bn(this.backend);
4502
+ }
4503
+ /**
4504
+ * Get the singleton instance of Purchases. It's preferred to use the instance
4505
+ * obtained from the {@link Purchases.initializePurchases} method when possible.
4506
+ * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
4507
+ */
4508
+ static getInstance() {
4509
+ if (H.isConfigured())
4510
+ return H.instance;
4511
+ throw new Oi();
4512
+ }
4513
+ /**
4514
+ * Returns whether the Purchases SDK is configured or not.
4515
+ */
4516
+ static isConfigured() {
4517
+ return H.instance !== void 0;
4518
+ }
4519
+ /**
4520
+ * Initializes the Purchases SDK. This should be called as soon as your app
4521
+ * has a unique user id for your user. You should only call this once, and
4522
+ * keep the returned instance around for use throughout your application.
4523
+ * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
4524
+ * @param appUserId - Your unique id for identifying the user.
4525
+ */
4526
+ static initializePurchases(e, r) {
4527
+ return H.instance !== void 0 ? (console.warn(
4528
+ "Purchases is already initialized. Ignoring and returning existing instance."
4529
+ ), H.getInstance()) : (H.instance = new H(e, r), H.getInstance());
4498
4530
  }
4499
4531
  /**
4500
4532
  * Fetch the configured offerings for this user. You can configure these
4501
4533
  * in the RevenueCat dashboard.
4502
- * @param appUserId - Your app's user id in your system.
4503
4534
  */
4504
- async getOfferings(e) {
4505
- const r = await this.backend.getOfferings(e), n = r.offerings.flatMap((l) => l.packages).map((l) => l.platform_product_identifier), i = await this.backend.getProducts(
4535
+ async getOfferings() {
4536
+ const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((l) => l.packages).map((l) => l.platform_product_identifier), i = await this.backend.getProducts(
4506
4537
  e,
4507
4538
  n
4508
4539
  );
@@ -4511,72 +4542,84 @@ class cl {
4511
4542
  /**
4512
4543
  * Convenience method to check whether a user is entitled to a specific
4513
4544
  * entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.
4514
- * @param appUserId - Your app's user id in your system.
4515
4545
  * @param entitlementIdentifier - The entitlement identifier you want to check.
4516
4546
  * @returns Whether the user is entitled to the specified entitlement
4517
4547
  * @throws {@link PurchasesError} if there is an error while fetching the customer info.
4518
4548
  * @see {@link Purchases.getCustomerInfo}
4519
4549
  */
4520
- async isEntitledTo(e, r) {
4521
- const n = await this.getCustomerInfo(e);
4522
- return r in n.entitlements.active;
4550
+ async isEntitledTo(e) {
4551
+ const r = await this.getCustomerInfo();
4552
+ return e in r.entitlements.active;
4523
4553
  }
4524
4554
  /**
4525
4555
  * Method to perform a purchase for a given package. You can obtain the
4526
4556
  * package from {@link Purchases.getOfferings}. This method will present the purchase
4527
4557
  * form on your site, using the given HTML element as the mount point, if
4528
4558
  * provided, or as a modal if not.
4529
- * @param appUserId - Your app's user id in your system.
4530
4559
  * @param rcPackage - The package you want to purchase. Obtained from {@link Purchases.getOfferings}.
4531
4560
  * @param customerEmail - The email of the user. If null, RevenueCat will ask the customer for their email.
4532
4561
  * @param htmlTarget - The HTML element where the billing view should be added. If null, a new div will be created at the root of the page and appended to the body.
4533
4562
  * @returns The customer info after the purchase is completed successfuly.
4534
4563
  * @throws {@link PurchasesError} if there is an error while performing the purchase. If the {@link PurchasesError.errorCode} is {@link ErrorCode.UserCancelledError}, the user cancelled the purchase.
4535
4564
  */
4536
- purchasePackage(e, r, n, i) {
4537
- let l = i ?? document.getElementById("rcb-ui-root");
4538
- if (l === null) {
4565
+ purchasePackage(e, r, n) {
4566
+ let i = n ?? document.getElementById("rcb-ui-root");
4567
+ if (i === null) {
4539
4568
  const c = document.createElement("div");
4540
- c.className = "rcb-ui-root", document.body.appendChild(c), l = c;
4569
+ c.className = "rcb-ui-root", document.body.appendChild(c), i = c;
4541
4570
  }
4542
- if (l === null)
4571
+ if (i === null)
4543
4572
  throw new Error(
4544
4573
  "Could not generate a mount point for the billing widget"
4545
4574
  );
4546
- const s = l, o = !i;
4575
+ const l = i, s = !n, o = this._appUserId;
4547
4576
  return new Promise((c, u) => {
4548
- new Xi({
4549
- target: s,
4577
+ new tl({
4578
+ target: l,
4550
4579
  props: {
4551
- appUserId: e,
4552
- rcPackage: r,
4553
- customerEmail: n,
4580
+ appUserId: o,
4581
+ rcPackage: e,
4582
+ customerEmail: r,
4554
4583
  onFinished: async () => {
4555
- s.innerHTML = "", c({ customerInfo: await this.getCustomerInfo(e) });
4584
+ l.innerHTML = "", c({
4585
+ customerInfo: await this._getCustomerInfoForUserId(o)
4586
+ });
4556
4587
  },
4557
4588
  onClose: () => {
4558
- s.innerHTML = "", u(new W(Me.UserCancelledError));
4589
+ l.innerHTML = "", u(new z(Te.UserCancelledError));
4559
4590
  },
4560
4591
  onError: (_) => {
4561
- s.innerHTML = "", u(W.getForPurchasesFlowError(_));
4592
+ l.innerHTML = "", u(z.getForPurchasesFlowError(_));
4562
4593
  },
4563
4594
  purchases: this,
4564
4595
  backend: this.backend,
4565
4596
  purchaseOperationHelper: this.purchaseOperationHelper,
4566
- asModal: o
4597
+ asModal: s
4567
4598
  }
4568
4599
  });
4569
4600
  });
4570
4601
  }
4571
4602
  /**
4572
4603
  * Gets latest available {@link CustomerInfo}.
4573
- * @param appUserId - Your app's user id in your system.
4574
4604
  * @returns The latest {@link CustomerInfo}.
4575
4605
  * @throws {@link PurchasesError} if there is an error while fetching the customer info.
4576
4606
  */
4577
- async getCustomerInfo(e) {
4578
- const r = await this.backend.getCustomerInfo(e);
4579
- return nl(r);
4607
+ async getCustomerInfo() {
4608
+ return await this._getCustomerInfoForUserId(this._appUserId);
4609
+ }
4610
+ /**
4611
+ * Gets the current app user id.
4612
+ */
4613
+ getAppUserId() {
4614
+ return this._appUserId;
4615
+ }
4616
+ /**
4617
+ * Change the current app user id. Returns the customer info for the new
4618
+ * user id.
4619
+ * @param newAppUserId - The user id to change to.
4620
+ */
4621
+ async changeUser(e) {
4622
+ return this._appUserId = e, await this.getCustomerInfo();
4580
4623
  }
4581
4624
  /** @internal */
4582
4625
  logMissingProductIds(e, r) {
@@ -4597,12 +4640,29 @@ class cl {
4597
4640
  * @returns Whether the SDK is using a sandbox API Key.
4598
4641
  */
4599
4642
  isSandbox() {
4600
- return $t(this._API_KEY);
4643
+ return kt(this._API_KEY);
4601
4644
  }
4602
- }
4645
+ /**
4646
+ * Closes the Purchases instance. You should never have to do this normally.
4647
+ */
4648
+ close() {
4649
+ H.instance === this ? H.instance = void 0 : console.warn(
4650
+ "Trying to close a Purchases instance that is not the current instance. Ignoring."
4651
+ );
4652
+ }
4653
+ /** @internal */
4654
+ async _getCustomerInfoForUserId(e) {
4655
+ const r = await this.backend.getCustomerInfo(e);
4656
+ return ll(r);
4657
+ }
4658
+ };
4659
+ /** @internal */
4660
+ Q(H, "instance");
4661
+ let ut = H;
4603
4662
  export {
4604
- Me as ErrorCode,
4605
- Tt as PackageType,
4606
- cl as Purchases,
4607
- W as PurchasesError
4663
+ Te as ErrorCode,
4664
+ Rt as PackageType,
4665
+ ut as Purchases,
4666
+ z as PurchasesError,
4667
+ Oi as UninitializedPurchasesError
4608
4668
  };