@revenuecat/purchases-js 0.11.2 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +1,43 @@
1
- var On = Object.create;
2
- var He = Object.defineProperty;
3
- var Nn = Object.getOwnPropertyDescriptor;
4
- var dt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), _e = (t) => {
1
+ var Un = Object.create;
2
+ var xe = Object.defineProperty;
3
+ var Rn = Object.getOwnPropertyDescriptor;
4
+ var pt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), ge = (t) => {
5
5
  throw TypeError(t);
6
6
  };
7
- var pt = (t, e, n) => e in t ? He(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
8
- var ct = (t, e) => He(t, "name", { value: e, configurable: !0 });
9
- var mt = (t) => [, , , On((t == null ? void 0 : t[dt("metadata")]) ?? null)], _t = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], me = (t) => t !== void 0 && typeof t != "function" ? _e("Function expected") : t, Un = (t, e, n, r, i) => ({ kind: _t[t], name: e, metadata: r, addInitializer: (o) => n._ ? _e("Already initialized") : i.push(me(o || null)) }), xe = (t, e) => pt(e, dt("metadata"), t[3]), gt = (t, e, n, r) => {
7
+ var mt = (t, e, n) => e in t ? xe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
8
+ var ut = (t, e) => xe(t, "name", { value: e, configurable: !0 });
9
+ var _t = (t) => [, , , Un((t == null ? void 0 : t[pt("metadata")]) ?? null)], gt = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], _e = (t) => t !== void 0 && typeof t != "function" ? ge("Function expected") : t, Ln = (t, e, n, r, i) => ({ kind: gt[t], name: e, metadata: r, addInitializer: (o) => n._ ? ge("Already initialized") : i.push(_e(o || null)) }), qe = (t, e) => mt(e, pt("metadata"), t[3]), ht = (t, e, n, r) => {
10
10
  for (var i = 0, o = t[e >> 1], s = o && o.length; i < s; i++) e & 1 ? o[i].call(n) : r = o[i].call(n, r);
11
11
  return r;
12
- }, ht = (t, e, n, r, i, o) => {
13
- var s, l, a, c, f, u = e & 7, m = !!(e & 8), h = !!(e & 16), y = u > 3 ? t.length + 1 : u ? m ? 1 : 2 : 0, T = _t[u + 5], w = u > 3 && (t[y - 1] = []), O = t[y] || (t[y] = []), C = u && (!h && !m && (i = i.prototype), u < 5 && (u > 3 || !h) && Nn(u < 4 ? i : { get [n]() {
14
- return ut(this, o);
12
+ }, bt = (t, e, n, r, i, o) => {
13
+ var s, l, a, c, f, u = e & 7, m = !!(e & 8), h = !!(e & 16), y = u > 3 ? t.length + 1 : u ? m ? 1 : 2 : 0, T = gt[u + 5], w = u > 3 && (t[y - 1] = []), O = t[y] || (t[y] = []), C = u && (!h && !m && (i = i.prototype), u < 5 && (u > 3 || !h) && Rn(u < 4 ? i : { get [n]() {
14
+ return ft(this, o);
15
15
  }, set [n](P) {
16
- return ft(this, o, P);
16
+ return dt(this, o, P);
17
17
  } }, n));
18
- u ? h && u < 4 && ct(o, (u > 2 ? "set " : u > 1 ? "get " : "") + n) : ct(i, n);
18
+ u ? h && u < 4 && ut(o, (u > 2 ? "set " : u > 1 ? "get " : "") + n) : ut(i, n);
19
19
  for (var E = r.length - 1; E >= 0; E--)
20
- c = Un(u, n, a = {}, t[3], O), u && (c.static = m, c.private = h, f = c.access = { has: h ? (P) => Rn(i, P) : (P) => n in P }, u ^ 3 && (f.get = h ? (P) => (u ^ 1 ? ut : Ln)(P, i, u ^ 4 ? o : C.get) : (P) => P[n]), u > 2 && (f.set = h ? (P, B) => ft(P, i, B, u ^ 4 ? o : C.set) : (P, B) => P[n] = B)), l = (0, r[E])(u ? u < 4 ? h ? o : C[T] : u > 4 ? void 0 : { get: C.get, set: C.set } : i, c), a._ = 1, u ^ 4 || l === void 0 ? me(l) && (u > 4 ? w.unshift(l) : u ? h ? o = l : C[T] = l : i = l) : typeof l != "object" || l === null ? _e("Object expected") : (me(s = l.get) && (C.get = s), me(s = l.set) && (C.set = s), me(s = l.init) && w.unshift(s));
21
- return u || xe(t, i), C && He(i, n, C), h ? u ^ 4 ? o : C : i;
22
- }, N = (t, e, n) => pt(t, typeof e != "symbol" ? e + "" : e, n), qe = (t, e, n) => e.has(t) || _e("Cannot " + n), Rn = (t, e) => Object(e) !== e ? _e('Cannot use the "in" operator on this value') : t.has(e), ut = (t, e, n) => (qe(t, e, "read from private field"), n ? n.call(t) : e.get(t));
23
- var ft = (t, e, n, r) => (qe(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Ln = (t, e, n) => (qe(t, e, "access private method"), n);
20
+ c = Ln(u, n, a = {}, t[3], O), u && (c.static = m, c.private = h, f = c.access = { has: h ? (P) => Sn(i, P) : (P) => n in P }, u ^ 3 && (f.get = h ? (P) => (u ^ 1 ? ft : Mn)(P, i, u ^ 4 ? o : C.get) : (P) => P[n]), u > 2 && (f.set = h ? (P, B) => dt(P, i, B, u ^ 4 ? o : C.set) : (P, B) => P[n] = B)), l = (0, r[E])(u ? u < 4 ? h ? o : C[T] : u > 4 ? void 0 : { get: C.get, set: C.set } : i, c), a._ = 1, u ^ 4 || l === void 0 ? _e(l) && (u > 4 ? w.unshift(l) : u ? h ? o = l : C[T] = l : i = l) : typeof l != "object" || l === null ? ge("Object expected") : (_e(s = l.get) && (C.get = s), _e(s = l.set) && (C.set = s), _e(s = l.init) && w.unshift(s));
21
+ return u || qe(t, i), C && xe(i, n, C), h ? u ^ 4 ? o : C : i;
22
+ }, N = (t, e, n) => mt(t, typeof e != "symbol" ? e + "" : e, n), Ge = (t, e, n) => e.has(t) || ge("Cannot " + n), Sn = (t, e) => Object(e) !== e ? ge('Cannot use the "in" operator on this value') : t.has(e), ft = (t, e, n) => (Ge(t, e, "read from private field"), n ? n.call(t) : e.get(t));
23
+ var dt = (t, e, n, r) => (Ge(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Mn = (t, e, n) => (Ge(t, e, "access private method"), n);
24
24
  function A() {
25
25
  }
26
- function Sn(t, e) {
26
+ function Dn(t, e) {
27
27
  for (const n in e) t[n] = e[n];
28
28
  return (
29
29
  /** @type {T & S} */
30
30
  t
31
31
  );
32
32
  }
33
- function Wt(t) {
33
+ function Kt(t) {
34
34
  return t();
35
35
  }
36
- function bt() {
36
+ function wt() {
37
37
  return /* @__PURE__ */ Object.create(null);
38
38
  }
39
- function ve(t) {
40
- t.forEach(Wt);
39
+ function $e(t) {
40
+ t.forEach(Kt);
41
41
  }
42
42
  function fe(t) {
43
43
  return typeof t == "function";
@@ -46,34 +46,34 @@ function S(t, e) {
46
46
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
47
47
  }
48
48
  let Ne;
49
- function Ee(t, e) {
49
+ function Ie(t, e) {
50
50
  return t === e ? !0 : (Ne || (Ne = document.createElement("a")), Ne.href = e, t === Ne.href);
51
51
  }
52
- function wt(t) {
52
+ function yt(t) {
53
53
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
54
54
  }
55
- function Mn(t, e) {
56
- const n = wt(t.srcset), r = wt(e || "");
55
+ function Bn(t, e) {
56
+ const n = yt(t.srcset), r = yt(e || "");
57
57
  return r.length === n.length && r.every(
58
58
  ([i, o], s) => o === n[s][1] && // We need to test both ways because Vite will create an a full URL with
59
59
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
60
60
  // relative URLs inside srcset are not automatically resolved to absolute URLs by
61
61
  // browsers (in contrast to img.src). This means both SSR and DOM code could
62
62
  // contain relative or absolute URLs.
63
- (Ee(n[s][0], i) || Ee(i, n[s][0]))
63
+ (Ie(n[s][0], i) || Ie(i, n[s][0]))
64
64
  );
65
65
  }
66
- function Dn(t) {
66
+ function Cn(t) {
67
67
  return Object.keys(t).length === 0;
68
68
  }
69
69
  function q(t, e, n, r) {
70
70
  if (t) {
71
- const i = Kt(t, e, n, r);
71
+ const i = Qt(t, e, n, r);
72
72
  return t[0](i);
73
73
  }
74
74
  }
75
- function Kt(t, e, n, r) {
76
- return t[1] && r ? Sn(n.ctx.slice(), t[1](r(e))) : n.ctx;
75
+ function Qt(t, e, n, r) {
76
+ return t[1] && r ? Dn(n.ctx.slice(), t[1](r(e))) : n.ctx;
77
77
  }
78
78
  function G(t, e, n, r) {
79
79
  if (t[2] && r) {
@@ -92,7 +92,7 @@ function G(t, e, n, r) {
92
92
  }
93
93
  function V(t, e, n, r, i, o) {
94
94
  if (i) {
95
- const s = Kt(e, n, r, o);
95
+ const s = Qt(e, n, r, o);
96
96
  t.p(s, i);
97
97
  }
98
98
  }
@@ -105,20 +105,20 @@ function Y(t) {
105
105
  }
106
106
  return -1;
107
107
  }
108
- function We(t) {
108
+ function Ke(t) {
109
109
  return t ?? "";
110
110
  }
111
111
  function L(t, e) {
112
112
  t.appendChild(e);
113
113
  }
114
114
  function F(t, e, n) {
115
- const r = Bn(t);
115
+ const r = Fn(t);
116
116
  if (!r.getElementById(e)) {
117
117
  const i = I("style");
118
- i.id = e, i.textContent = n, Cn(r, i);
118
+ i.id = e, i.textContent = n, Hn(r, i);
119
119
  }
120
120
  }
121
- function Bn(t) {
121
+ function Fn(t) {
122
122
  if (!t) return document;
123
123
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
124
124
  return e && /** @type {ShadowRoot} */
@@ -127,7 +127,7 @@ function Bn(t) {
127
127
  e
128
128
  ) : t.ownerDocument;
129
129
  }
130
- function Cn(t, e) {
130
+ function Hn(t, e) {
131
131
  return L(
132
132
  /** @type {Document} */
133
133
  t.head || t,
@@ -143,19 +143,19 @@ function _(t) {
143
143
  function I(t) {
144
144
  return document.createElement(t);
145
145
  }
146
- function H(t) {
146
+ function j(t) {
147
147
  return document.createTextNode(t);
148
148
  }
149
149
  function U() {
150
- return H(" ");
150
+ return j(" ");
151
151
  }
152
152
  function ee() {
153
- return H("");
153
+ return j("");
154
154
  }
155
- function $e(t, e, n, r) {
155
+ function ke(t, e, n, r) {
156
156
  return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
157
157
  }
158
- function Qt(t) {
158
+ function Xt(t) {
159
159
  return function(e) {
160
160
  return e.preventDefault(), t.call(this, e);
161
161
  };
@@ -163,60 +163,60 @@ function Qt(t) {
163
163
  function b(t, e, n) {
164
164
  n == null ? t.removeAttribute(e) : t.getAttribute(e) !== n && t.setAttribute(e, n);
165
165
  }
166
- const Fn = ["width", "height"];
167
- function jn(t, e) {
166
+ const jn = ["width", "height"];
167
+ function xn(t, e) {
168
168
  const n = Object.getOwnPropertyDescriptors(t.__proto__);
169
169
  for (const r in e)
170
- e[r] == null ? t.removeAttribute(r) : r === "style" ? t.style.cssText = e[r] : r === "__value" ? t.value = t[r] = e[r] : n[r] && n[r].set && Fn.indexOf(r) === -1 ? t[r] = e[r] : b(t, r, e[r]);
170
+ e[r] == null ? t.removeAttribute(r) : r === "style" ? t.style.cssText = e[r] : r === "__value" ? t.value = t[r] = e[r] : n[r] && n[r].set && jn.indexOf(r) === -1 ? t[r] = e[r] : b(t, r, e[r]);
171
171
  }
172
- function Hn(t, e) {
172
+ function qn(t, e) {
173
173
  Object.keys(e).forEach((n) => {
174
- xn(t, n, e[n]);
174
+ Gn(t, n, e[n]);
175
175
  });
176
176
  }
177
- function xn(t, e, n) {
177
+ function Gn(t, e, n) {
178
178
  const r = e.toLowerCase();
179
179
  r in t ? t[r] = typeof t[r] == "boolean" && n === "" ? !0 : n : e in t ? t[e] = typeof t[e] == "boolean" && n === "" ? !0 : n : b(t, e, n);
180
180
  }
181
- function qn(t) {
182
- return /-/.test(t) ? Hn : jn;
181
+ function Vn(t) {
182
+ return /-/.test(t) ? qn : xn;
183
183
  }
184
- function Gn(t) {
184
+ function Yn(t) {
185
185
  return Array.from(t.childNodes);
186
186
  }
187
187
  function te(t, e) {
188
188
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
189
189
  e);
190
190
  }
191
- function yt(t, e) {
191
+ function Et(t, e) {
192
192
  t.value = e ?? "";
193
193
  }
194
194
  function ne(t, e, n, r) {
195
195
  n == null ? t.style.removeProperty(e) : t.style.setProperty(e, n, "");
196
196
  }
197
- function Vn(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
197
+ function zn(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
198
198
  return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
199
199
  }
200
- let Ie;
201
- function we(t) {
202
- Ie = t;
200
+ let ve;
201
+ function ye(t) {
202
+ ve = t;
203
203
  }
204
- function ke() {
205
- if (!Ie) throw new Error("Function called outside component initialization");
206
- return Ie;
204
+ function Pe() {
205
+ if (!ve) throw new Error("Function called outside component initialization");
206
+ return ve;
207
207
  }
208
- function Yn(t) {
209
- ke().$$.before_update.push(t);
208
+ function Wn(t) {
209
+ Pe().$$.before_update.push(t);
210
210
  }
211
211
  function Fe(t) {
212
- ke().$$.on_mount.push(t);
212
+ Pe().$$.on_mount.push(t);
213
213
  }
214
- function zn() {
215
- const t = ke();
214
+ function Kn() {
215
+ const t = Pe();
216
216
  return (e, n, { cancelable: r = !1 } = {}) => {
217
217
  const i = t.$$.callbacks[e];
218
218
  if (i) {
219
- const o = Vn(
219
+ const o = zn(
220
220
  /** @type {string} */
221
221
  e,
222
222
  n,
@@ -229,63 +229,63 @@ function zn() {
229
229
  return !0;
230
230
  };
231
231
  }
232
- function Wn(t, e) {
233
- return ke().$$.context.set(t, e), e;
232
+ function Qn(t, e) {
233
+ return Pe().$$.context.set(t, e), e;
234
234
  }
235
- function Kn(t) {
236
- return ke().$$.context.get(t);
235
+ function Xn(t) {
236
+ return Pe().$$.context.get(t);
237
237
  }
238
- function Xt(t, e) {
238
+ function Zt(t, e) {
239
239
  const n = t.$$.callbacks[e.type];
240
240
  n && n.slice().forEach((r) => r.call(this, e));
241
241
  }
242
242
  const ae = [], De = [];
243
243
  let ue = [];
244
- const Ke = [], Qn = /* @__PURE__ */ Promise.resolve();
245
- let Qe = !1;
246
- function Xn() {
247
- Qe || (Qe = !0, Qn.then(Zt));
244
+ const Qe = [], Zn = /* @__PURE__ */ Promise.resolve();
245
+ let Xe = !1;
246
+ function Jn() {
247
+ Xe || (Xe = !0, Zn.then(Jt));
248
248
  }
249
- function Xe(t) {
249
+ function Ze(t) {
250
250
  ue.push(t);
251
251
  }
252
- function Zn(t) {
253
- Ke.push(t);
252
+ function er(t) {
253
+ Qe.push(t);
254
254
  }
255
- const Ge = /* @__PURE__ */ new Set();
255
+ const Ve = /* @__PURE__ */ new Set();
256
256
  let se = 0;
257
- function Zt() {
257
+ function Jt() {
258
258
  if (se !== 0)
259
259
  return;
260
- const t = Ie;
260
+ const t = ve;
261
261
  do {
262
262
  try {
263
263
  for (; se < ae.length; ) {
264
264
  const e = ae[se];
265
- se++, we(e), Jn(e.$$);
265
+ se++, ye(e), tr(e.$$);
266
266
  }
267
267
  } catch (e) {
268
268
  throw ae.length = 0, se = 0, e;
269
269
  }
270
- for (we(null), ae.length = 0, se = 0; De.length; ) De.pop()();
270
+ for (ye(null), ae.length = 0, se = 0; De.length; ) De.pop()();
271
271
  for (let e = 0; e < ue.length; e += 1) {
272
272
  const n = ue[e];
273
- Ge.has(n) || (Ge.add(n), n());
273
+ Ve.has(n) || (Ve.add(n), n());
274
274
  }
275
275
  ue.length = 0;
276
276
  } while (ae.length);
277
- for (; Ke.length; )
278
- Ke.pop()();
279
- Qe = !1, Ge.clear(), we(t);
277
+ for (; Qe.length; )
278
+ Qe.pop()();
279
+ Xe = !1, Ve.clear(), ye(t);
280
280
  }
281
- function Jn(t) {
281
+ function tr(t) {
282
282
  if (t.fragment !== null) {
283
- t.update(), ve(t.before_update);
283
+ t.update(), $e(t.before_update);
284
284
  const e = t.dirty;
285
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Xe);
285
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ze);
286
286
  }
287
287
  }
288
- function er(t) {
288
+ function nr(t) {
289
289
  const e = [], n = [];
290
290
  ue.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ue = e;
291
291
  }
@@ -300,7 +300,7 @@ function z() {
300
300
  };
301
301
  }
302
302
  function W() {
303
- oe.r || ve(oe.c), oe = oe.p;
303
+ oe.r || $e(oe.c), oe = oe.p;
304
304
  }
305
305
  function d(t, e) {
306
306
  t && t.i && (Se.delete(t), t.i(e));
@@ -313,7 +313,7 @@ function p(t, e, n, r) {
313
313
  }), t.o(e);
314
314
  } else r && r();
315
315
  }
316
- function tr(t, e, n) {
316
+ function rr(t, e, n) {
317
317
  const r = t.$$.props[e];
318
318
  r !== void 0 && (t.$$.bound[r] = n, n(t.$$.ctx[r]));
319
319
  }
@@ -322,21 +322,21 @@ function k(t) {
322
322
  }
323
323
  function v(t, e, n) {
324
324
  const { fragment: r, after_update: i } = t.$$;
325
- r && r.m(e, n), Xe(() => {
326
- const o = t.$$.on_mount.map(Wt).filter(fe);
327
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : ve(o), t.$$.on_mount = [];
328
- }), i.forEach(Xe);
325
+ r && r.m(e, n), Ze(() => {
326
+ const o = t.$$.on_mount.map(Kt).filter(fe);
327
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : $e(o), t.$$.on_mount = [];
328
+ }), i.forEach(Ze);
329
329
  }
330
330
  function $(t, e) {
331
331
  const n = t.$$;
332
- n.fragment !== null && (er(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
332
+ n.fragment !== null && (nr(n.after_update), $e(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
333
333
  }
334
- function nr(t, e) {
335
- t.$$.dirty[0] === -1 && (ae.push(t), Xn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
334
+ function ir(t, e) {
335
+ t.$$.dirty[0] === -1 && (ae.push(t), Jn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
336
336
  }
337
337
  function M(t, e, n, r, i, o, s = null, l = [-1]) {
338
- const a = Ie;
339
- we(t);
338
+ const a = ve;
339
+ ye(t);
340
340
  const c = t.$$ = {
341
341
  fragment: null,
342
342
  ctx: [],
@@ -344,7 +344,7 @@ function M(t, e, n, r, i, o, s = null, l = [-1]) {
344
344
  props: o,
345
345
  update: A,
346
346
  not_equal: i,
347
- bound: bt(),
347
+ bound: wt(),
348
348
  // lifecycle
349
349
  on_mount: [],
350
350
  on_destroy: [],
@@ -353,7 +353,7 @@ function M(t, e, n, r, i, o, s = null, l = [-1]) {
353
353
  after_update: [],
354
354
  context: new Map(e.context || (a ? a.$$.context : [])),
355
355
  // everything else
356
- callbacks: bt(),
356
+ callbacks: wt(),
357
357
  dirty: l,
358
358
  skip_bound: !1,
359
359
  root: e.target || a.$$.root
@@ -362,16 +362,16 @@ function M(t, e, n, r, i, o, s = null, l = [-1]) {
362
362
  let f = !1;
363
363
  if (c.ctx = n ? n(t, e.props || {}, (u, m, ...h) => {
364
364
  const y = h.length ? h[0] : m;
365
- return c.ctx && i(c.ctx[u], c.ctx[u] = y) && (!c.skip_bound && c.bound[u] && c.bound[u](y), f && nr(t, u)), m;
366
- }) : [], c.update(), f = !0, ve(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
365
+ return c.ctx && i(c.ctx[u], c.ctx[u] = y) && (!c.skip_bound && c.bound[u] && c.bound[u](y), f && ir(t, u)), m;
366
+ }) : [], c.update(), f = !0, $e(c.before_update), c.fragment = r ? r(c.ctx) : !1, e.target) {
367
367
  if (e.hydrate) {
368
- const u = Gn(e.target);
368
+ const u = Yn(e.target);
369
369
  c.fragment && c.fragment.l(u), u.forEach(_);
370
370
  } else
371
371
  c.fragment && c.fragment.c();
372
- e.intro && d(t.$$.fragment), v(t, e.target, e.anchor), Zt();
372
+ e.intro && d(t.$$.fragment), v(t, e.target, e.anchor), Jt();
373
373
  }
374
- we(a);
374
+ ye(a);
375
375
  }
376
376
  class D {
377
377
  constructor() {
@@ -416,15 +416,15 @@ class D {
416
416
  * @returns {void}
417
417
  */
418
418
  $set(e) {
419
- this.$$set && !Dn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
419
+ this.$$set && !Cn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
420
420
  }
421
421
  }
422
- const rr = "4";
423
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(rr);
424
- function ir(t) {
422
+ const or = "4";
423
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(or);
424
+ function sr(t) {
425
425
  F(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
426
426
  }
427
- function Ve(t) {
427
+ function Ye(t) {
428
428
  let e, n;
429
429
  const r = (
430
430
  /*#slots*/
@@ -441,11 +441,11 @@ function Ve(t) {
441
441
  e = I(
442
442
  /*as*/
443
443
  t[0]
444
- ), i && i.c(), qn(
444
+ ), i && i.c(), Vn(
445
445
  /*as*/
446
446
  t[0]
447
447
  )(e, {
448
- class: We("rcb-modal-section") + " svelte-1bzqb13"
448
+ class: Ke("rcb-modal-section") + " svelte-1bzqb13"
449
449
  });
450
450
  },
451
451
  m(o, s) {
@@ -483,13 +483,13 @@ function Ve(t) {
483
483
  }
484
484
  };
485
485
  }
486
- function or(t) {
486
+ function lr(t) {
487
487
  let e = (
488
488
  /*as*/
489
489
  t[0]
490
490
  ), n, r, i = (
491
491
  /*as*/
492
- t[0] && Ve(t)
492
+ t[0] && Ye(t)
493
493
  );
494
494
  return {
495
495
  c() {
@@ -504,8 +504,8 @@ function or(t) {
504
504
  e,
505
505
  /*as*/
506
506
  o[0]
507
- ) ? (i.d(1), i = Ve(o), e = /*as*/
508
- o[0], i.c(), i.m(n.parentNode, n)) : i.p(o, s) : (i = Ve(o), e = /*as*/
507
+ ) ? (i.d(1), i = Ye(o), e = /*as*/
508
+ o[0], i.c(), i.m(n.parentNode, n)) : i.p(o, s) : (i = Ye(o), e = /*as*/
509
509
  o[0], i.c(), i.m(n.parentNode, n)) : e && (i.d(1), i = null, e = /*as*/
510
510
  o[0]);
511
511
  },
@@ -520,7 +520,7 @@ function or(t) {
520
520
  }
521
521
  };
522
522
  }
523
- function sr(t, e, n) {
523
+ function ar(t, e, n) {
524
524
  let { $$slots: r = {}, $$scope: i } = e, { as: o = "section" } = e;
525
525
  return t.$$set = (s) => {
526
526
  "as" in s && n(0, o = s.as), "$$scope" in s && n(1, i = s.$$scope);
@@ -528,11 +528,11 @@ function sr(t, e, n) {
528
528
  }
529
529
  class de extends D {
530
530
  constructor(e) {
531
- super(), M(this, e, sr, or, S, { as: 0 }, ir);
531
+ super(), M(this, e, ar, lr, S, { as: 0 }, sr);
532
532
  }
533
533
  }
534
534
  var J = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(J || {});
535
- class j {
535
+ class H {
536
536
  static setLogLevel(e) {
537
537
  this.logLevel = e;
538
538
  }
@@ -573,12 +573,12 @@ class j {
573
573
  this.log(e, J.Verbose);
574
574
  }
575
575
  }
576
- N(j, "logLevel", J.Silent);
576
+ N(H, "logLevel", J.Silent);
577
577
  var re = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(re || {});
578
- function et(t) {
578
+ function tt(t) {
579
579
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
580
580
  if (!e || e.length < 3)
581
- return j.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
581
+ return H.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
582
582
  const n = parseInt(e[1]);
583
583
  switch (e[2]) {
584
584
  case "Y":
@@ -606,16 +606,16 @@ function et(t) {
606
606
  /* Day */
607
607
  };
608
608
  default:
609
- return j.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
609
+ return H.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
610
610
  }
611
611
  }
612
- const lr = (t, e, n) => {
612
+ const cr = (t, e, n) => {
613
613
  const r = t / 1e6;
614
614
  return new Intl.NumberFormat(n, {
615
615
  style: "currency",
616
616
  currency: e
617
617
  }).format(r);
618
- }, ar = (t) => {
618
+ }, ur = (t) => {
619
619
  const e = t.number;
620
620
  if (e === 1)
621
621
  switch (t.unit) {
@@ -630,7 +630,7 @@ const lr = (t, e, n) => {
630
630
  }
631
631
  else
632
632
  return `every ${e} ${t.unit}s`;
633
- }, cr = (t) => {
633
+ }, fr = (t) => {
634
634
  const e = t.number;
635
635
  if (e === 1)
636
636
  switch (t.unit) {
@@ -645,67 +645,67 @@ const lr = (t, e, n) => {
645
645
  }
646
646
  else
647
647
  return `${e} ${t.unit}s`;
648
- }, Et = (t) => {
649
- const e = et(t);
650
- return e ? ar(e) : "unknown";
651
- }, ur = (t) => {
652
- const e = et(t);
653
- return e ? cr(e) : "unknown";
648
+ }, It = (t) => {
649
+ const e = tt(t);
650
+ return e ? ur(e) : "unknown";
651
+ }, dr = (t) => {
652
+ const e = tt(t);
653
+ return e ? fr(e) : "unknown";
654
654
  };
655
- function fr(t) {
655
+ function pr(t) {
656
656
  return t != null;
657
657
  }
658
- var dr = /* @__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))(dr || {}), Pe = /* @__PURE__ */ ((t) => (t.Subscription = "subscription", t.Consumable = "consumable", t.NonConsumable = "non_consumable", t))(Pe || {});
659
- const Jt = (t) => ({
658
+ var mr = /* @__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))(mr || {}), Te = /* @__PURE__ */ ((t) => (t.Subscription = "subscription", t.Consumable = "consumable", t.NonConsumable = "non_consumable", t))(Te || {});
659
+ const en = (t) => ({
660
660
  amount: t.amount_micros / 1e4,
661
661
  amountMicros: t.amount_micros,
662
662
  currency: t.currency,
663
- formattedPrice: lr(t.amount_micros, t.currency)
664
- }), It = (t) => {
663
+ formattedPrice: cr(t.amount_micros, t.currency)
664
+ }), vt = (t) => {
665
665
  const e = t.period_duration;
666
666
  return {
667
667
  periodDuration: e,
668
- period: e ? et(e) : null,
668
+ period: e ? tt(e) : null,
669
669
  cycleCount: t.cycle_count,
670
- price: t.price ? Jt(t.price) : null
670
+ price: t.price ? en(t.price) : null
671
671
  };
672
- }, pr = (t) => t.base == null ? (j.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
672
+ }, _r = (t) => t.base == null ? (H.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
673
673
  id: t.id,
674
674
  priceId: t.price_id,
675
- base: It(t.base),
676
- trial: t.trial ? It(t.trial) : null
677
- }, mr = (t) => t.base_price == null ? (j.debugLog(
675
+ base: vt(t.base),
676
+ trial: t.trial ? vt(t.trial) : null
677
+ }, gr = (t) => t.base_price == null ? (H.debugLog(
678
678
  "Missing base price for non-subscription option. Ignoring."
679
679
  ), null) : {
680
680
  id: t.id,
681
681
  priceId: t.price_id,
682
- basePrice: Jt(t.base_price)
683
- }, _r = (t, e) => {
682
+ basePrice: en(t.base_price)
683
+ }, hr = (t, e) => {
684
684
  const n = t.product_type;
685
- return n === "subscription" ? hr(
685
+ return n === "subscription" ? wr(
686
686
  t,
687
687
  e,
688
688
  n
689
- ) : gr(
689
+ ) : br(
690
690
  t,
691
691
  e,
692
692
  n
693
693
  );
694
- }, gr = (t, e, n) => {
694
+ }, br = (t, e, n) => {
695
695
  const r = {};
696
696
  if (Object.entries(t.purchase_options).forEach(
697
697
  ([s, l]) => {
698
- const a = mr(
698
+ const a = gr(
699
699
  l
700
700
  );
701
701
  a != null && (r[s] = a);
702
702
  }
703
703
  ), Object.keys(r).length === 0)
704
- return j.debugLog(
704
+ return H.debugLog(
705
705
  `Product ${t.identifier} has no purchase options. Ignoring.`
706
706
  ), null;
707
707
  const i = t.default_purchase_option_id, o = i && i in t.purchase_options ? r[i] : null;
708
- return o == null ? (j.debugLog(
708
+ return o == null ? (H.debugLog(
709
709
  `Product ${t.identifier} has no default purchase option. Ignoring.`
710
710
  ), null) : {
711
711
  identifier: t.identifier,
@@ -722,24 +722,24 @@ const Jt = (t) => ({
722
722
  subscriptionOptions: {},
723
723
  defaultNonSubscriptionOption: o
724
724
  };
725
- }, hr = (t, e, n) => {
725
+ }, wr = (t, e, n) => {
726
726
  const r = {};
727
727
  if (Object.entries(t.purchase_options).forEach(
728
728
  ([l, a]) => {
729
- const c = pr(a);
729
+ const c = _r(a);
730
730
  c != null && (r[l] = c);
731
731
  }
732
732
  ), Object.keys(r).length === 0)
733
- return j.debugLog(
733
+ return H.debugLog(
734
734
  `Product ${t.identifier} has no subscription options. Ignoring.`
735
735
  ), null;
736
736
  const i = t.default_purchase_option_id, o = i && i in r ? r[i] : null;
737
737
  if (o == null)
738
- return j.debugLog(
738
+ return H.debugLog(
739
739
  `Product ${t.identifier} has no default subscription option. Ignoring.`
740
740
  ), null;
741
741
  const s = o.base.price;
742
- return s == null ? (j.debugLog(
742
+ return s == null ? (H.debugLog(
743
743
  `Product ${t.identifier} default option has no base price. Ignoring.`
744
744
  ), null) : {
745
745
  identifier: t.identifier,
@@ -756,16 +756,16 @@ const Jt = (t) => ({
756
756
  subscriptionOptions: r,
757
757
  defaultNonSubscriptionOption: null
758
758
  };
759
- }, br = (t, e, n) => {
759
+ }, yr = (t, e, n) => {
760
760
  const r = n[e.platform_product_identifier];
761
761
  if (r === void 0) return null;
762
- const i = _r(r, t);
762
+ const i = hr(r, t);
763
763
  return i === null ? null : {
764
764
  identifier: e.identifier,
765
765
  rcBillingProduct: i,
766
- packageType: yr(e.identifier)
766
+ packageType: Ir(e.identifier)
767
767
  };
768
- }, wr = (t, e, n, r) => {
768
+ }, Er = (t, e, n, r) => {
769
769
  const i = {
770
770
  offeringIdentifier: e.identifier,
771
771
  targetingContext: t && r ? {
@@ -774,8 +774,8 @@ const Jt = (t) => ({
774
774
  } : null,
775
775
  placementIdentifier: null
776
776
  }, o = e.packages.map(
777
- (l) => br(i, l, n)
778
- ).filter(fr), s = {};
777
+ (l) => yr(i, l, n)
778
+ ).filter(pr), s = {};
779
779
  for (const l of o)
780
780
  l != null && (s[l.identifier] = l);
781
781
  return o.length == 0 ? null : {
@@ -793,7 +793,7 @@ const Jt = (t) => ({
793
793
  weekly: s.$rc_weekly ?? null
794
794
  };
795
795
  };
796
- function yr(t) {
796
+ function Ir(t) {
797
797
  switch (t) {
798
798
  case "$rc_lifetime":
799
799
  return "$rc_lifetime";
@@ -813,27 +813,27 @@ function yr(t) {
813
813
  return t.startsWith("$rc_") ? "unknown" : "custom";
814
814
  }
815
815
  }
816
- function Er(t) {
816
+ function vr(t) {
817
817
  F(t, "svelte-1mdrqnh", ".rcb-pricing-info.svelte-1mdrqnh{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);font-size:24px;margin:12px 0px}.rcb-product-description.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);margin:0 0 12px 0}.rcb-product-price-after-trial.svelte-1mdrqnh{margin-bottom:12px}.rcb-product-details.svelte-1mdrqnh{color:var(--rc-color-grey-text-light);list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-1mdrqnh{margin-top:48px}}");
818
818
  }
819
- function Ir(t) {
819
+ function $r(t) {
820
820
  var w, O, C;
821
821
  let e, n, r, i, o, s, l, a, c, f, u = (
822
822
  /*subscriptionTrial*/
823
- ((w = t[3]) == null ? void 0 : w.periodDuration) && vr(t)
823
+ ((w = t[3]) == null ? void 0 : w.periodDuration) && kr(t)
824
824
  ), m = !/*subscriptionTrial*/
825
825
  ((O = t[3]) != null && O.periodDuration) && /*subscriptionBasePrice*/
826
- t[4] && $r(t), h = (
826
+ t[4] && Pr(t), h = (
827
827
  /*subscriptionTrial*/
828
828
  t[3] && /*subscriptionBasePrice*/
829
- t[4] && kr(t)
829
+ t[4] && Tr(t)
830
830
  ), y = (
831
831
  /*brandingAppearance*/
832
832
  ((C = t[1]) == null ? void 0 : C.show_product_description) && /*productDetails*/
833
- t[0].description && vt(t)
833
+ t[0].description && $t(t)
834
834
  ), T = (
835
835
  /*productDetails*/
836
- t[0].normalPeriodDuration && $t(t)
836
+ t[0].normalPeriodDuration && kt(t)
837
837
  );
838
838
  return {
839
839
  c() {
@@ -843,30 +843,30 @@ function Ir(t) {
843
843
  g(E, e, P), u && u.m(e, null), L(e, n), m && m.m(e, null), g(E, r, P), h && h.m(E, P), g(E, i, P), y && y.m(E, P), g(E, o, P), g(E, s, P), T && T.m(s, null), L(s, l), L(s, a), L(s, c), L(s, f);
844
844
  },
845
845
  p(E, P) {
846
- var B, Ae, Oe;
846
+ var B, pe, Oe;
847
847
  /*subscriptionTrial*/
848
848
  (B = E[3]) != null && B.periodDuration && u.p(E, P), !/*subscriptionTrial*/
849
- ((Ae = E[3]) != null && Ae.periodDuration) && /*subscriptionBasePrice*/
849
+ ((pe = E[3]) != null && pe.periodDuration) && /*subscriptionBasePrice*/
850
850
  E[4] && m.p(E, P), /*subscriptionTrial*/
851
851
  E[3] && /*subscriptionBasePrice*/
852
852
  E[4] && h.p(E, P), /*brandingAppearance*/
853
853
  (Oe = E[1]) != null && Oe.show_product_description && /*productDetails*/
854
- E[0].description ? y ? y.p(E, P) : (y = vt(E), y.c(), y.m(o.parentNode, o)) : y && (y.d(1), y = null), /*productDetails*/
855
- E[0].normalPeriodDuration ? T ? T.p(E, P) : (T = $t(E), T.c(), T.m(s, l)) : T && (T.d(1), T = null);
854
+ E[0].description ? y ? y.p(E, P) : (y = $t(E), y.c(), y.m(o.parentNode, o)) : y && (y.d(1), y = null), /*productDetails*/
855
+ E[0].normalPeriodDuration ? T ? T.p(E, P) : (T = kt(E), T.c(), T.m(s, l)) : T && (T.d(1), T = null);
856
856
  },
857
857
  d(E) {
858
858
  E && (_(e), _(r), _(i), _(o), _(s)), u && u.d(), m && m.d(), h && h.d(E), y && y.d(E), T && T.d();
859
859
  }
860
860
  };
861
861
  }
862
- function vr(t) {
863
- let e = ur(
862
+ function kr(t) {
863
+ let e = dr(
864
864
  /*subscriptionTrial*/
865
865
  t[3].periodDuration
866
866
  ) + "", n, r;
867
867
  return {
868
868
  c() {
869
- n = H(e), r = H(" free trial");
869
+ n = j(e), r = j(" free trial");
870
870
  },
871
871
  m(i, o) {
872
872
  g(i, n, o), g(i, r, o);
@@ -877,14 +877,14 @@ function vr(t) {
877
877
  }
878
878
  };
879
879
  }
880
- function $r(t) {
880
+ function Pr(t) {
881
881
  let e = (
882
882
  /*subscriptionBasePrice*/
883
883
  t[4].formattedPrice + ""
884
884
  ), n;
885
885
  return {
886
886
  c() {
887
- n = H(e);
887
+ n = j(e);
888
888
  },
889
889
  m(r, i) {
890
890
  g(r, n, i);
@@ -895,7 +895,7 @@ function $r(t) {
895
895
  }
896
896
  };
897
897
  }
898
- function kr(t) {
898
+ function Tr(t) {
899
899
  let e;
900
900
  return {
901
901
  c() {
@@ -913,14 +913,14 @@ function kr(t) {
913
913
  }
914
914
  };
915
915
  }
916
- function vt(t) {
916
+ function $t(t) {
917
917
  let e, n = (
918
918
  /*productDetails*/
919
919
  t[0].description + ""
920
920
  ), r;
921
921
  return {
922
922
  c() {
923
- e = I("span"), r = H(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
923
+ e = I("span"), r = j(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
924
924
  },
925
925
  m(i, o) {
926
926
  g(i, e, o), L(e, r);
@@ -935,21 +935,21 @@ function vt(t) {
935
935
  }
936
936
  };
937
937
  }
938
- function $t(t) {
939
- let e, n, r = Et(
938
+ function kt(t) {
939
+ let e, n, r = It(
940
940
  /*productDetails*/
941
941
  t[0].normalPeriodDuration
942
942
  ) + "", i;
943
943
  return {
944
944
  c() {
945
- e = I("li"), n = H("Renews "), i = H(r);
945
+ e = I("li"), n = j("Renews "), i = j(r);
946
946
  },
947
947
  m(o, s) {
948
948
  g(o, e, s), L(e, n), L(e, i);
949
949
  },
950
950
  p(o, s) {
951
951
  s & /*productDetails*/
952
- 1 && r !== (r = Et(
952
+ 1 && r !== (r = It(
953
953
  /*productDetails*/
954
954
  o[0].normalPeriodDuration
955
955
  ) + "") && te(i, r);
@@ -959,11 +959,11 @@ function $t(t) {
959
959
  }
960
960
  };
961
961
  }
962
- function Pr(t) {
962
+ function Ar(t) {
963
963
  var o;
964
964
  let e, n, r, i = (
965
965
  /*brandingAppearance*/
966
- ((o = t[1]) == null ? void 0 : o.show_product_description) && kt(t)
966
+ ((o = t[1]) == null ? void 0 : o.show_product_description) && Pt(t)
967
967
  );
968
968
  return {
969
969
  c() {
@@ -977,21 +977,21 @@ function Pr(t) {
977
977
  p(s, l) {
978
978
  var a;
979
979
  /*brandingAppearance*/
980
- (a = s[1]) != null && a.show_product_description ? i ? i.p(s, l) : (i = kt(s), i.c(), i.m(r.parentNode, r)) : i && (i.d(1), i = null);
980
+ (a = s[1]) != null && a.show_product_description ? i ? i.p(s, l) : (i = Pt(s), i.c(), i.m(r.parentNode, r)) : i && (i.d(1), i = null);
981
981
  },
982
982
  d(s) {
983
983
  s && (_(e), _(n), _(r)), i && i.d(s);
984
984
  }
985
985
  };
986
986
  }
987
- function kt(t) {
987
+ function Pt(t) {
988
988
  let e, n = (
989
989
  /*productDetails*/
990
990
  t[0].description + ""
991
991
  ), r;
992
992
  return {
993
993
  c() {
994
- e = I("span"), r = H(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
994
+ e = I("span"), r = j(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
995
995
  },
996
996
  m(i, o) {
997
997
  g(i, e, o), L(e, r);
@@ -1006,18 +1006,18 @@ function kt(t) {
1006
1006
  }
1007
1007
  };
1008
1008
  }
1009
- function Tr(t) {
1009
+ function Or(t) {
1010
1010
  let e, n, r = (
1011
1011
  /*productDetails*/
1012
1012
  t[0].title + ""
1013
1013
  ), i, o, s, l = (
1014
1014
  /*isSubscription*/
1015
- t[2] && Ir(t)
1015
+ t[2] && $r(t)
1016
1016
  ), a = !/*isSubscription*/
1017
- t[2] && Pr(t);
1017
+ t[2] && Ar(t);
1018
1018
  return {
1019
1019
  c() {
1020
- e = I("div"), n = I("span"), i = H(r), o = U(), l && l.c(), s = U(), a && a.c(), b(n, "class", "rc-product-title"), b(e, "class", "rcb-pricing-info svelte-1mdrqnh");
1020
+ e = I("div"), n = I("span"), i = j(r), o = U(), l && l.c(), s = U(), a && a.c(), b(n, "class", "rc-product-title"), b(e, "class", "rcb-pricing-info svelte-1mdrqnh");
1021
1021
  },
1022
1022
  m(c, f) {
1023
1023
  g(c, e, f), L(e, n), L(n, i), L(e, o), l && l.m(e, null), L(e, s), a && a.m(e, null);
@@ -1034,11 +1034,11 @@ function Tr(t) {
1034
1034
  }
1035
1035
  };
1036
1036
  }
1037
- function Ar(t) {
1037
+ function Nr(t) {
1038
1038
  let e, n;
1039
1039
  return e = new de({
1040
1040
  props: {
1041
- $$slots: { default: [Tr] },
1041
+ $$slots: { default: [Or] },
1042
1042
  $$scope: { ctx: t }
1043
1043
  }
1044
1044
  }), {
@@ -1064,10 +1064,10 @@ function Ar(t) {
1064
1064
  }
1065
1065
  };
1066
1066
  }
1067
- function Or(t, e, n) {
1067
+ function Ur(t, e, n) {
1068
1068
  var m;
1069
1069
  let { productDetails: r } = e, { purchaseOption: i } = e, { brandingAppearance: o = void 0 } = e;
1070
- const s = r.productType === Pe.Subscription, l = i, a = i, c = l == null ? void 0 : l.trial, f = (m = l == null ? void 0 : l.base) == null ? void 0 : m.price, u = a == null ? void 0 : a.basePrice;
1070
+ const s = r.productType === Te.Subscription, l = i, a = i, c = l == null ? void 0 : l.trial, f = (m = l == null ? void 0 : l.base) == null ? void 0 : m.price, u = a == null ? void 0 : a.basePrice;
1071
1071
  return t.$$set = (h) => {
1072
1072
  "productDetails" in h && n(0, r = h.productDetails), "purchaseOption" in h && n(6, i = h.purchaseOption), "brandingAppearance" in h && n(1, o = h.brandingAppearance);
1073
1073
  }, [
@@ -1080,35 +1080,35 @@ function Or(t, e, n) {
1080
1080
  i
1081
1081
  ];
1082
1082
  }
1083
- class en extends D {
1083
+ class tn extends D {
1084
1084
  constructor(e) {
1085
1085
  super(), M(
1086
1086
  this,
1087
1087
  e,
1088
- Or,
1089
- Ar,
1088
+ Ur,
1089
+ Nr,
1090
1090
  S,
1091
1091
  {
1092
1092
  productDetails: 0,
1093
1093
  purchaseOption: 6,
1094
1094
  brandingAppearance: 1
1095
1095
  },
1096
- Er
1096
+ vr
1097
1097
  );
1098
1098
  }
1099
1099
  }
1100
- const Nr = '<svg width="80" height="80" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" transform="rotate(0 0 0)"><path d="M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 11.5858 20.8358 11.25 21.25 11.25C21.6642 11.25 22 11.5858 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.4142 2 12.75 2.33579 12.75 2.75C12.75 3.16421 12.4142 3.5 12 3.5Z" fill="currentColor"/></svg>';
1101
- function Ur(t) {
1100
+ const Rr = '<svg width="80" height="80" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg" transform="rotate(0 0 0)"><path d="M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 11.5858 20.8358 11.25 21.25 11.25C21.6642 11.25 22 11.5858 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.4142 2 12.75 2.33579 12.75 2.75C12.75 3.16421 12.4142 3.5 12 3.5Z" fill="currentColor"/></svg>';
1101
+ function Lr(t) {
1102
1102
  F(t, "svelte-16h2a8k", "@-webkit-keyframes svelte-16h2a8k-rotating{from{-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes svelte-16h2a8k-rotating{from{-ms-transform:rotate(0deg);-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}div.svelte-16h2a8k{width:80px;height:80px;-webkit-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-moz-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-ms-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;-o-animation:svelte-16h2a8k-rotating 2s ease-in-out infinite;animation:svelte-16h2a8k-rotating 2s ease-in-out infinite}");
1103
1103
  }
1104
- function Rr(t) {
1104
+ function Sr(t) {
1105
1105
  let e;
1106
1106
  return {
1107
1107
  c() {
1108
1108
  e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-16h2a8k");
1109
1109
  },
1110
1110
  m(n, r) {
1111
- g(n, e, r), e.innerHTML = Nr;
1111
+ g(n, e, r), e.innerHTML = Rr;
1112
1112
  },
1113
1113
  p: A,
1114
1114
  i: A,
@@ -1118,17 +1118,17 @@ function Rr(t) {
1118
1118
  }
1119
1119
  };
1120
1120
  }
1121
- class Lr extends D {
1121
+ class Mr extends D {
1122
1122
  constructor(e) {
1123
- super(), M(this, e, null, Rr, S, {}, Ur);
1123
+ super(), M(this, e, null, Sr, S, {}, Lr);
1124
1124
  }
1125
1125
  }
1126
- function Sr(t) {
1126
+ function Dr(t) {
1127
1127
  F(t, "svelte-l57ojl", ".rcb-modal-loader.svelte-l57ojl{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
1128
1128
  }
1129
- function Mr(t) {
1129
+ function Br(t) {
1130
1130
  let e, n, r;
1131
- return n = new Lr({}), {
1131
+ return n = new Mr({}), {
1132
1132
  c() {
1133
1133
  e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-modal-loader svelte-l57ojl");
1134
1134
  },
@@ -1147,13 +1147,13 @@ function Mr(t) {
1147
1147
  }
1148
1148
  };
1149
1149
  }
1150
- class tt extends D {
1150
+ class nt extends D {
1151
1151
  constructor(e) {
1152
- super(), M(this, e, null, Mr, S, {}, Sr);
1152
+ super(), M(this, e, null, Br, S, {}, Dr);
1153
1153
  }
1154
1154
  }
1155
1155
  var X = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t[t.InvalidEmailError = 38] = "InvalidEmailError", t))(X || {});
1156
- class ye {
1156
+ class Ee {
1157
1157
  static getPublicMessage(e) {
1158
1158
  switch (e) {
1159
1159
  case 0:
@@ -1260,7 +1260,7 @@ class ye {
1260
1260
  }
1261
1261
  }
1262
1262
  static convertCodeToBackendErrorCode(e) {
1263
- return e in tn ? e : null;
1263
+ return e in nn ? e : null;
1264
1264
  }
1265
1265
  static convertPurchaseFlowErrorCodeToErrorCode(e) {
1266
1266
  switch (e) {
@@ -1281,7 +1281,7 @@ class ye {
1281
1281
  }
1282
1282
  }
1283
1283
  }
1284
- var tn = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendPaymentGatewayGenericError = 7773] = "BackendPaymentGatewayGenericError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(tn || {});
1284
+ var nn = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendPaymentGatewayGenericError = 7773] = "BackendPaymentGatewayGenericError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(nn || {});
1285
1285
  class Q extends Error {
1286
1286
  constructor(n, r, i, o) {
1287
1287
  super(r);
@@ -1290,10 +1290,10 @@ class Q extends Error {
1290
1290
  }
1291
1291
  /** @internal */
1292
1292
  static getForBackendError(n, r) {
1293
- const i = ye.getErrorCodeForBackendErrorCode(n);
1293
+ const i = Ee.getErrorCodeForBackendErrorCode(n);
1294
1294
  return new Q(
1295
1295
  i,
1296
- ye.getPublicMessage(i),
1296
+ Ee.getPublicMessage(i),
1297
1297
  r,
1298
1298
  { backendErrorCode: n }
1299
1299
  );
@@ -1301,7 +1301,7 @@ class Q extends Error {
1301
1301
  /** @internal */
1302
1302
  static getForPurchasesFlowError(n) {
1303
1303
  return new Q(
1304
- ye.convertPurchaseFlowErrorCodeToErrorCode(
1304
+ Ee.convertPurchaseFlowErrorCodeToErrorCode(
1305
1305
  n.errorCode
1306
1306
  ),
1307
1307
  n.message,
@@ -1309,12 +1309,19 @@ class Q extends Error {
1309
1309
  );
1310
1310
  }
1311
1311
  }
1312
- class Dr extends Error {
1312
+ class Cr extends Error {
1313
1313
  constructor() {
1314
1314
  super("Purchases must be configured before calling getInstance");
1315
1315
  }
1316
1316
  }
1317
- var be = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(be || {}), ce = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t[t.SetupIntentCompletionFailed = 4] = "SetupIntentCompletionFailed", t[t.AlreadyPurchased = 5] = "AlreadyPurchased", t))(ce || {}), K = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadyPurchasedError = 6] = "AlreadyPurchasedError", t))(K || {});
1317
+ var we = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(we || {}), ce = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t[t.SetupIntentCompletionFailed = 4] = "SetupIntentCompletionFailed", t[t.AlreadyPurchased = 5] = "AlreadyPurchased", t))(ce || {});
1318
+ function Fr(t) {
1319
+ var e;
1320
+ return t.operation.redemption_info ? {
1321
+ redeemUrl: ((e = t.operation.redemption_info) == null ? void 0 : e.redeem_url) ?? null
1322
+ } : null;
1323
+ }
1324
+ var K = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadyPurchasedError = 6] = "AlreadyPurchasedError", t))(K || {});
1318
1325
  class x extends Error {
1319
1326
  constructor(e, n, r, i, o) {
1320
1327
  super(n), this.errorCode = e, this.underlyingErrorMessage = r, this.purchasesErrorCode = i, this.extra = o;
@@ -1349,7 +1356,7 @@ class x extends Error {
1349
1356
  case 5:
1350
1357
  return "Email is required to complete the purchase.";
1351
1358
  case 6:
1352
- return (e == null ? void 0 : e.productType) === Pe.Subscription ? "You are already subscribed to this product." : "You have already purchased this product.";
1359
+ return (e == null ? void 0 : e.productType) === Te.Subscription ? "You are already subscribed to this product." : "You have already purchased this product.";
1353
1360
  }
1354
1361
  }
1355
1362
  static fromPurchasesError(e, n) {
@@ -1363,7 +1370,7 @@ class x extends Error {
1363
1370
  );
1364
1371
  }
1365
1372
  }
1366
- class Br {
1373
+ class Hr {
1367
1374
  constructor(e, n = 10) {
1368
1375
  N(this, "operationSessionId", null);
1369
1376
  N(this, "backend");
@@ -1390,7 +1397,7 @@ class Br {
1390
1397
  );
1391
1398
  {
1392
1399
  const l = "Unknown error starting purchase: " + String(s);
1393
- throw j.errorLog(l), new x(
1400
+ throw H.errorLog(l), new x(
1394
1401
  2,
1395
1402
  l
1396
1403
  );
@@ -1404,46 +1411,50 @@ class Br {
1404
1411
  0,
1405
1412
  "No purchase in progress"
1406
1413
  );
1407
- return new Promise((n, r) => {
1408
- const i = (o = 1) => {
1409
- if (o > this.maxNumberAttempts) {
1410
- this.clearPurchaseInProgress(), r(
1411
- new x(
1412
- 2,
1413
- "Max attempts reached trying to get successful purchase status"
1414
- )
1415
- );
1416
- return;
1417
- }
1418
- this.backend.getCheckoutStatus(e).then((s) => {
1419
- switch (s.operation.status) {
1420
- case be.Started:
1421
- case be.InProgress:
1422
- setTimeout(
1423
- () => i(o + 1),
1424
- this.waitMSBetweenAttempts
1425
- );
1426
- break;
1427
- case be.Succeeded:
1428
- this.clearPurchaseInProgress(), n();
1429
- return;
1430
- case be.Failed:
1431
- this.clearPurchaseInProgress(), this.handlePaymentError(
1432
- s.operation.error,
1433
- r
1434
- );
1414
+ return new Promise(
1415
+ (n, r) => {
1416
+ const i = (o = 1) => {
1417
+ if (o > this.maxNumberAttempts) {
1418
+ this.clearPurchaseInProgress(), r(
1419
+ new x(
1420
+ 2,
1421
+ "Max attempts reached trying to get successful purchase status"
1422
+ )
1423
+ );
1424
+ return;
1435
1425
  }
1436
- }).catch((s) => {
1437
- const l = x.fromPurchasesError(
1438
- s,
1439
- 3
1440
- /* NetworkError */
1441
- );
1442
- r(l);
1443
- });
1444
- };
1445
- i();
1446
- });
1426
+ this.backend.getCheckoutStatus(e).then((s) => {
1427
+ switch (s.operation.status) {
1428
+ case we.Started:
1429
+ case we.InProgress:
1430
+ setTimeout(
1431
+ () => i(o + 1),
1432
+ this.waitMSBetweenAttempts
1433
+ );
1434
+ break;
1435
+ case we.Succeeded:
1436
+ this.clearPurchaseInProgress(), n({
1437
+ redemptionInfo: Fr(s)
1438
+ });
1439
+ return;
1440
+ case we.Failed:
1441
+ this.clearPurchaseInProgress(), this.handlePaymentError(
1442
+ s.operation.error,
1443
+ r
1444
+ );
1445
+ }
1446
+ }).catch((s) => {
1447
+ const l = x.fromPurchasesError(
1448
+ s,
1449
+ 3
1450
+ /* NetworkError */
1451
+ );
1452
+ r(l);
1453
+ });
1454
+ };
1455
+ i();
1456
+ }
1457
+ );
1447
1458
  }
1448
1459
  clearPurchaseInProgress() {
1449
1460
  this.operationSessionId = null;
@@ -1510,23 +1521,23 @@ class Br {
1510
1521
  }
1511
1522
  }
1512
1523
  }
1513
- const Cr = `<svg width="96" height="96" viewBox="0 0 124 124" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
1524
+ const jr = `<svg width="96" height="96" viewBox="0 0 124 124" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
1514
1525
  <circle cx="62" cy="62" r="62" fill="currentColor"/>
1515
1526
  <path d="M87.6668 41.504L82.4968 36.334L62.0002 56.8307L41.5035 36.334L36.3335 41.504L56.8302 62.0006L36.3335 82.4973L41.5035 87.6673L62.0002 67.1706L82.4968 87.6673L87.6668 82.4973L67.1702 62.0006L87.6668 41.504Z"
1516
1527
  fill="white"/>
1517
1528
  </svg>
1518
1529
  `;
1519
- function Fr(t) {
1530
+ function xr(t) {
1520
1531
  F(t, "svelte-7wiquz", ".rcb-ui-asset-icon.svelte-7wiquz{width:96px;height:96px;margin:0 auto}");
1521
1532
  }
1522
- function jr(t) {
1533
+ function qr(t) {
1523
1534
  let e;
1524
1535
  return {
1525
1536
  c() {
1526
1537
  e = I("div"), ne(e, "color", "var(--rc-color-error)"), b(e, "class", "rcb-ui-asset-icon svelte-7wiquz");
1527
1538
  },
1528
1539
  m(n, r) {
1529
- g(n, e, r), e.innerHTML = Cr;
1540
+ g(n, e, r), e.innerHTML = jr;
1530
1541
  },
1531
1542
  p: A,
1532
1543
  i: A,
@@ -1536,15 +1547,15 @@ function jr(t) {
1536
1547
  }
1537
1548
  };
1538
1549
  }
1539
- class Hr extends D {
1550
+ class Gr extends D {
1540
1551
  constructor(e) {
1541
- super(), M(this, e, null, jr, S, {}, Fr);
1552
+ super(), M(this, e, null, qr, S, {}, xr);
1542
1553
  }
1543
1554
  }
1544
- function xr(t) {
1555
+ function Vr(t) {
1545
1556
  F(t, "svelte-2xwwo", "button.svelte-2xwwo{border:none;border-radius:var(--rc-shape-input-button-border-radius);font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);-webkit-tap-highlight-color:transparent}button.svelte-2xwwo:focus,button.svelte-2xwwo:active{outline:2px solid var(--rc-color-focus)}button.intent-primary.svelte-2xwwo{background-color:var(--rc-color-primary);color:var(--rc-color-primary-text);font-size:16px}button.svelte-2xwwo:disabled{color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark)}button.intent-primary.svelte-2xwwo:disabled{color:var(--rc-color-grey-text-light);background-color:var(--rc-color-grey-ui-dark)}");
1546
1557
  }
1547
- function qr(t) {
1558
+ function Yr(t) {
1548
1559
  let e, n, r, i, o;
1549
1560
  const s = (
1550
1561
  /*#slots*/
@@ -1558,7 +1569,7 @@ function qr(t) {
1558
1569
  );
1559
1570
  return {
1560
1571
  c() {
1561
- e = I("button"), l && l.c(), b(e, "class", n = We(`intent-${/*intent*/
1572
+ e = I("button"), l && l.c(), b(e, "class", n = Ke(`intent-${/*intent*/
1562
1573
  t[0]}`) + " svelte-2xwwo"), e.disabled = /*disabled*/
1563
1574
  t[1], b(
1564
1575
  e,
@@ -1573,7 +1584,7 @@ function qr(t) {
1573
1584
  );
1574
1585
  },
1575
1586
  m(a, c) {
1576
- g(a, e, c), l && l.m(e, null), r = !0, i || (o = $e(
1587
+ g(a, e, c), l && l.m(e, null), r = !0, i || (o = ke(
1577
1588
  e,
1578
1589
  "click",
1579
1590
  /*click_handler*/
@@ -1600,7 +1611,7 @@ function qr(t) {
1600
1611
  ),
1601
1612
  null
1602
1613
  ), (!r || c & /*intent*/
1603
- 1 && n !== (n = We(`intent-${/*intent*/
1614
+ 1 && n !== (n = Ke(`intent-${/*intent*/
1604
1615
  a[0]}`) + " svelte-2xwwo")) && b(e, "class", n), (!r || c & /*disabled*/
1605
1616
  2) && (e.disabled = /*disabled*/
1606
1617
  a[1]), (!r || c & /*testId*/
@@ -1628,22 +1639,22 @@ function qr(t) {
1628
1639
  }
1629
1640
  };
1630
1641
  }
1631
- function Gr(t, e, n) {
1642
+ function zr(t, e, n) {
1632
1643
  let { $$slots: r = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e, { testId: l = void 0 } = e, { type: a = void 0 } = e;
1633
1644
  function c(f) {
1634
- Xt.call(this, t, f);
1645
+ Zt.call(this, t, f);
1635
1646
  }
1636
1647
  return t.$$set = (f) => {
1637
1648
  "intent" in f && n(0, o = f.intent), "disabled" in f && n(1, s = f.disabled), "testId" in f && n(2, l = f.testId), "type" in f && n(3, a = f.type), "$$scope" in f && n(4, i = f.$$scope);
1638
1649
  }, [o, s, l, a, i, r, c];
1639
1650
  }
1640
- class nt extends D {
1651
+ class rt extends D {
1641
1652
  constructor(e) {
1642
1653
  super(), M(
1643
1654
  this,
1644
1655
  e,
1645
- Gr,
1646
- qr,
1656
+ zr,
1657
+ Yr,
1647
1658
  S,
1648
1659
  {
1649
1660
  intent: 0,
@@ -1651,14 +1662,14 @@ class nt extends D {
1651
1662
  testId: 2,
1652
1663
  type: 3
1653
1664
  },
1654
- xr
1665
+ Vr
1655
1666
  );
1656
1667
  }
1657
1668
  }
1658
- function Vr(t) {
1669
+ function Wr(t) {
1659
1670
  F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1660
1671
  }
1661
- function Yr(t) {
1672
+ function Kr(t) {
1662
1673
  let e, n;
1663
1674
  const r = (
1664
1675
  /*#slots*/
@@ -1709,21 +1720,21 @@ function Yr(t) {
1709
1720
  }
1710
1721
  };
1711
1722
  }
1712
- function zr(t, e, n) {
1723
+ function Qr(t, e, n) {
1713
1724
  let { $$slots: r = {}, $$scope: i } = e;
1714
1725
  return t.$$set = (o) => {
1715
1726
  "$$scope" in o && n(0, i = o.$$scope);
1716
1727
  }, [i, r];
1717
1728
  }
1718
- class rt extends D {
1729
+ class it extends D {
1719
1730
  constructor(e) {
1720
- super(), M(this, e, zr, Yr, S, {}, Vr);
1731
+ super(), M(this, e, Qr, Kr, S, {}, Wr);
1721
1732
  }
1722
1733
  }
1723
- function Wr(t) {
1734
+ function Xr(t) {
1724
1735
  F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1725
1736
  }
1726
- function Kr(t) {
1737
+ function Zr(t) {
1727
1738
  let e, n, r;
1728
1739
  const i = (
1729
1740
  /*#slots*/
@@ -1777,30 +1788,30 @@ function Kr(t) {
1777
1788
  }
1778
1789
  };
1779
1790
  }
1780
- function Qr(t, e, n) {
1791
+ function Jr(t, e, n) {
1781
1792
  let { $$slots: r = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1782
1793
  return t.$$set = (s) => {
1783
1794
  "gutter" in s && n(0, o = s.gutter), "$$scope" in s && n(1, i = s.$$scope);
1784
1795
  }, [o, i, r];
1785
1796
  }
1786
- class Te extends D {
1797
+ class Ae extends D {
1787
1798
  constructor(e) {
1788
- super(), M(this, e, Qr, Kr, S, { gutter: 0 }, Wr);
1799
+ super(), M(this, e, Jr, Zr, S, { gutter: 0 }, Xr);
1789
1800
  }
1790
1801
  }
1791
- const Xr = "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";
1792
- function Zr(t) {
1802
+ const ei = "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";
1803
+ function ti(t) {
1793
1804
  F(t, "svelte-1hv9ta1", ".close-button.svelte-1hv9ta1{border:none;cursor:pointer;background-color:transparent;padding:0px;height:24px;border-radius:50%}.close-button.svelte-1hv9ta1:focus{outline:2px solid var(--rc-color-focus)}");
1794
1805
  }
1795
- function Jr(t) {
1806
+ function ni(t) {
1796
1807
  let e, n, r, i, o;
1797
1808
  return {
1798
1809
  c() {
1799
- e = I("button"), n = I("img"), Ee(n.src, r = Xr) || b(n, "src", r), b(n, "alt", "close"), b(e, "class", "close-button svelte-1hv9ta1"), e.disabled = /*disabled*/
1810
+ e = I("button"), n = I("img"), Ie(n.src, r = ei) || b(n, "src", r), b(n, "alt", "close"), b(e, "class", "close-button svelte-1hv9ta1"), e.disabled = /*disabled*/
1800
1811
  t[0];
1801
1812
  },
1802
1813
  m(s, l) {
1803
- g(s, e, l), L(e, n), i || (o = $e(
1814
+ g(s, e, l), L(e, n), i || (o = ke(
1804
1815
  e,
1805
1816
  "click",
1806
1817
  /*click_handler*/
@@ -1819,24 +1830,24 @@ function Jr(t) {
1819
1830
  }
1820
1831
  };
1821
1832
  }
1822
- function ei(t, e, n) {
1833
+ function ri(t, e, n) {
1823
1834
  let { disabled: r = !1 } = e;
1824
1835
  function i(o) {
1825
- Xt.call(this, t, o);
1836
+ Zt.call(this, t, o);
1826
1837
  }
1827
1838
  return t.$$set = (o) => {
1828
1839
  "disabled" in o && n(0, r = o.disabled);
1829
1840
  }, [r, i];
1830
1841
  }
1831
- class it extends D {
1842
+ class ot extends D {
1832
1843
  constructor(e) {
1833
- super(), M(this, e, ei, Jr, S, { disabled: 0 }, Zr);
1844
+ super(), M(this, e, ri, ni, S, { disabled: 0 }, ti);
1834
1845
  }
1835
1846
  }
1836
- function ti(t) {
1847
+ function ii(t) {
1837
1848
  F(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1838
1849
  }
1839
- function ni(t) {
1850
+ function oi(t) {
1840
1851
  let e;
1841
1852
  return {
1842
1853
  c() {
@@ -1851,12 +1862,12 @@ function ni(t) {
1851
1862
  }
1852
1863
  };
1853
1864
  }
1854
- function ri(t) {
1865
+ function si(t) {
1855
1866
  let e, n, r, i, o, s;
1856
1867
  return {
1857
1868
  c() {
1858
- e = I("picture"), n = I("source"), i = U(), o = I("img"), b(n, "type", "image/webp"), Mn(n, r = /*srcWebp*/
1859
- t[1]) || b(n, "srcset", r), b(o, "class", "rcb-app-icon svelte-44qpq9"), Ee(o.src, s = /*src*/
1869
+ e = I("picture"), n = I("source"), i = U(), o = I("img"), b(n, "type", "image/webp"), Bn(n, r = /*srcWebp*/
1870
+ t[1]) || b(n, "srcset", r), b(o, "class", "rcb-app-icon svelte-44qpq9"), Ie(o.src, s = /*src*/
1860
1871
  t[0]) || b(o, "src", s), b(o, "alt", "App icon"), b(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1861
1872
  },
1862
1873
  m(l, a) {
@@ -1866,7 +1877,7 @@ function ri(t) {
1866
1877
  a & /*srcWebp*/
1867
1878
  2 && r !== (r = /*srcWebp*/
1868
1879
  l[1]) && b(n, "srcset", r), a & /*src*/
1869
- 1 && !Ee(o.src, s = /*src*/
1880
+ 1 && !Ie(o.src, s = /*src*/
1870
1881
  l[0]) && b(o, "src", s);
1871
1882
  },
1872
1883
  d(l) {
@@ -1874,12 +1885,12 @@ function ri(t) {
1874
1885
  }
1875
1886
  };
1876
1887
  }
1877
- function ii(t) {
1888
+ function li(t) {
1878
1889
  let e;
1879
1890
  function n(o, s) {
1880
1891
  return (
1881
1892
  /*src*/
1882
- o[0] !== null ? ri : ni
1893
+ o[0] !== null ? si : oi
1883
1894
  );
1884
1895
  }
1885
1896
  let r = n(t), i = r(t);
@@ -1900,24 +1911,24 @@ function ii(t) {
1900
1911
  }
1901
1912
  };
1902
1913
  }
1903
- function oi(t, e, n) {
1914
+ function ai(t, e, n) {
1904
1915
  let { src: r = null } = e, { srcWebp: i = null } = e;
1905
1916
  return t.$$set = (o) => {
1906
1917
  "src" in o && n(0, r = o.src), "srcWebp" in o && n(1, i = o.srcWebp);
1907
1918
  }, [r, i];
1908
1919
  }
1909
- class nn extends D {
1920
+ class rn extends D {
1910
1921
  constructor(e) {
1911
- super(), M(this, e, oi, ii, S, { src: 0, srcWebp: 1 }, ti);
1922
+ super(), M(this, e, ai, li, S, { src: 0, srcWebp: 1 }, ii);
1912
1923
  }
1913
1924
  }
1914
1925
  const Ue = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1915
- function si(t) {
1926
+ function ci(t) {
1916
1927
  F(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1917
1928
  }
1918
- function li(t) {
1929
+ function ui(t) {
1919
1930
  let e, n;
1920
- return e = new nn({}), {
1931
+ return e = new rn({}), {
1921
1932
  c() {
1922
1933
  k(e.$$.fragment);
1923
1934
  },
@@ -1936,18 +1947,18 @@ function li(t) {
1936
1947
  }
1937
1948
  };
1938
1949
  }
1939
- function ai(t) {
1950
+ function fi(t) {
1940
1951
  let e, n, r = (
1941
1952
  /*brandingInfo*/
1942
1953
  t[0].seller_company_name + ""
1943
1954
  ), i, o, s = (
1944
1955
  /*brandingInfo*/
1945
1956
  t[0].app_icon_webp !== null && /*brandingInfo*/
1946
- t[0].app_icon !== null && Pt(t)
1957
+ t[0].app_icon !== null && Tt(t)
1947
1958
  );
1948
1959
  return {
1949
1960
  c() {
1950
- s && s.c(), e = U(), n = I("span"), i = H(r), b(n, "class", "app-title svelte-10uf5fq");
1961
+ s && s.c(), e = U(), n = I("span"), i = j(r), b(n, "class", "app-title svelte-10uf5fq");
1951
1962
  },
1952
1963
  m(l, a) {
1953
1964
  s && s.m(l, a), g(l, e, a), g(l, n, a), L(n, i), o = !0;
@@ -1956,7 +1967,7 @@ function ai(t) {
1956
1967
  /*brandingInfo*/
1957
1968
  l[0].app_icon_webp !== null && /*brandingInfo*/
1958
1969
  l[0].app_icon !== null ? s ? (s.p(l, a), a & /*brandingInfo*/
1959
- 1 && d(s, 1)) : (s = Pt(l), s.c(), d(s, 1), s.m(e.parentNode, e)) : s && (z(), p(s, 1, 1, () => {
1970
+ 1 && d(s, 1)) : (s = Tt(l), s.c(), d(s, 1), s.m(e.parentNode, e)) : s && (z(), p(s, 1, 1, () => {
1960
1971
  s = null;
1961
1972
  }), W()), (!o || a & /*brandingInfo*/
1962
1973
  1) && r !== (r = /*brandingInfo*/
@@ -1973,9 +1984,9 @@ function ai(t) {
1973
1984
  }
1974
1985
  };
1975
1986
  }
1976
- function Pt(t) {
1987
+ function Tt(t) {
1977
1988
  let e, n;
1978
- return e = new nn({
1989
+ return e = new rn({
1979
1990
  props: {
1980
1991
  src: Ue(
1981
1992
  /*brandingInfo*/
@@ -2016,9 +2027,9 @@ function Pt(t) {
2016
2027
  }
2017
2028
  };
2018
2029
  }
2019
- function ci(t) {
2030
+ function di(t) {
2020
2031
  let e, n, r, i;
2021
- const o = [ai, li], s = [];
2032
+ const o = [fi, ui], s = [];
2022
2033
  function l(a, c) {
2023
2034
  return (
2024
2035
  /*brandingInfo*/
@@ -2049,28 +2060,28 @@ function ci(t) {
2049
2060
  }
2050
2061
  };
2051
2062
  }
2052
- function ui(t, e, n) {
2063
+ function pi(t, e, n) {
2053
2064
  let { brandingInfo: r = null } = e;
2054
2065
  return t.$$set = (i) => {
2055
2066
  "brandingInfo" in i && n(0, r = i.brandingInfo);
2056
2067
  }, [r];
2057
2068
  }
2058
- class rn extends D {
2069
+ class on extends D {
2059
2070
  constructor(e) {
2060
- super(), M(this, e, ui, ci, S, { brandingInfo: 0 }, si);
2071
+ super(), M(this, e, pi, di, S, { brandingInfo: 0 }, ci);
2061
2072
  }
2062
2073
  }
2063
- function fi(t) {
2074
+ function mi(t) {
2064
2075
  F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
2065
2076
  }
2066
- function di(t) {
2077
+ function _i(t) {
2067
2078
  let e, n, r, i, o;
2068
- return n = new rn({
2079
+ return n = new on({
2069
2080
  props: { brandingInfo: (
2070
2081
  /*brandingInfo*/
2071
2082
  t[0]
2072
2083
  ) }
2073
- }), i = new it({}), i.$on("click", function() {
2084
+ }), i = new ot({}), i.$on("click", function() {
2074
2085
  fe(
2075
2086
  /*onClose*/
2076
2087
  t[1]
@@ -2100,12 +2111,12 @@ function di(t) {
2100
2111
  }
2101
2112
  };
2102
2113
  }
2103
- function pi(t) {
2114
+ function gi(t) {
2104
2115
  let e, n;
2105
2116
  return e = new de({
2106
2117
  props: {
2107
2118
  as: "header",
2108
- $$slots: { default: [di] },
2119
+ $$slots: { default: [_i] },
2109
2120
  $$scope: { ctx: t }
2110
2121
  }
2111
2122
  }), {
@@ -2131,22 +2142,22 @@ function pi(t) {
2131
2142
  }
2132
2143
  };
2133
2144
  }
2134
- function mi(t, e, n) {
2145
+ function hi(t, e, n) {
2135
2146
  let { brandingInfo: r = null } = e, { onClose: i } = e;
2136
2147
  return t.$$set = (o) => {
2137
2148
  "brandingInfo" in o && n(0, r = o.brandingInfo), "onClose" in o && n(1, i = o.onClose);
2138
2149
  }, [r, i];
2139
2150
  }
2140
- class _i extends D {
2151
+ class bi extends D {
2141
2152
  constructor(e) {
2142
- super(), M(this, e, mi, pi, S, { brandingInfo: 0, onClose: 1 }, fi);
2153
+ super(), M(this, e, hi, gi, S, { brandingInfo: 0, onClose: 1 }, mi);
2143
2154
  }
2144
2155
  }
2145
- function gi(t) {
2156
+ function wi(t) {
2146
2157
  F(t, "svelte-idou50", ".rcb-modal-message.svelte-idou50{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;margin-bottom:16px;margin-top:16px}.title.svelte-idou50{font-size:24px;line-height:1.25em}.subtitle.svelte-idou50{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
2147
2158
  }
2148
- const hi = (t) => ({}), Tt = (t) => ({});
2149
- function bi(t) {
2159
+ const yi = (t) => ({}), At = (t) => ({});
2160
+ function Ei(t) {
2150
2161
  let e, n, r, i, o;
2151
2162
  const s = (
2152
2163
  /*#slots*/
@@ -2160,7 +2171,7 @@ function bi(t) {
2160
2171
  );
2161
2172
  return {
2162
2173
  c() {
2163
- e = I("span"), n = H(
2174
+ e = I("span"), n = j(
2164
2175
  /*title*/
2165
2176
  t[2]
2166
2177
  ), r = U(), i = I("span"), l && l.c(), b(e, "class", "title svelte-idou50"), b(i, "class", "subtitle svelte-idou50");
@@ -2205,7 +2216,7 @@ function bi(t) {
2205
2216
  }
2206
2217
  };
2207
2218
  }
2208
- function wi(t) {
2219
+ function Ii(t) {
2209
2220
  let e, n, r;
2210
2221
  const i = (
2211
2222
  /*#slots*/
@@ -2215,12 +2226,12 @@ function wi(t) {
2215
2226
  t,
2216
2227
  /*$$scope*/
2217
2228
  t[6],
2218
- Tt
2229
+ At
2219
2230
  );
2220
- return n = new Te({
2231
+ return n = new Ae({
2221
2232
  props: {
2222
2233
  gutter: "16px",
2223
- $$slots: { default: [bi] },
2234
+ $$slots: { default: [Ei] },
2224
2235
  $$scope: { ctx: t }
2225
2236
  }
2226
2237
  }), {
@@ -2243,12 +2254,12 @@ function wi(t) {
2243
2254
  /*$$scope*/
2244
2255
  s[6],
2245
2256
  l,
2246
- hi
2257
+ yi
2247
2258
  ) : Y(
2248
2259
  /*$$scope*/
2249
2260
  s[6]
2250
2261
  ),
2251
- Tt
2262
+ At
2252
2263
  );
2253
2264
  const a = {};
2254
2265
  l & /*$$scope, title*/
@@ -2265,12 +2276,12 @@ function wi(t) {
2265
2276
  }
2266
2277
  };
2267
2278
  }
2268
- function yi(t) {
2279
+ function vi(t) {
2269
2280
  let e, n, r;
2270
- return n = new Te({
2281
+ return n = new Ae({
2271
2282
  props: {
2272
2283
  gutter: "48px",
2273
- $$slots: { default: [wi] },
2284
+ $$slots: { default: [Ii] },
2274
2285
  $$scope: { ctx: t }
2275
2286
  }
2276
2287
  }), {
@@ -2307,11 +2318,11 @@ function yi(t) {
2307
2318
  }
2308
2319
  };
2309
2320
  }
2310
- function Ei(t) {
2321
+ function $i(t) {
2311
2322
  let e;
2312
2323
  return {
2313
2324
  c() {
2314
- e = H(
2325
+ e = j(
2315
2326
  /*closeButtonTitle*/
2316
2327
  t[4]
2317
2328
  );
@@ -2332,12 +2343,12 @@ function Ei(t) {
2332
2343
  }
2333
2344
  };
2334
2345
  }
2335
- function Ii(t) {
2346
+ function ki(t) {
2336
2347
  let e, n;
2337
- return e = new nt({
2348
+ return e = new rt({
2338
2349
  props: {
2339
2350
  type: "submit",
2340
- $$slots: { default: [Ei] },
2351
+ $$slots: { default: [$i] },
2341
2352
  $$scope: { ctx: t }
2342
2353
  }
2343
2354
  }), e.$on("click", function() {
@@ -2369,9 +2380,9 @@ function Ii(t) {
2369
2380
  }
2370
2381
  };
2371
2382
  }
2372
- function vi(t) {
2383
+ function Pi(t) {
2373
2384
  let e, n, r, i, o, s;
2374
- return e = new _i({
2385
+ return e = new bi({
2375
2386
  props: {
2376
2387
  brandingInfo: (
2377
2388
  /*brandingInfo*/
@@ -2384,12 +2395,12 @@ function vi(t) {
2384
2395
  }
2385
2396
  }), r = new de({
2386
2397
  props: {
2387
- $$slots: { default: [yi] },
2398
+ $$slots: { default: [vi] },
2388
2399
  $$scope: { ctx: t }
2389
2400
  }
2390
- }), o = new rt({
2401
+ }), o = new it({
2391
2402
  props: {
2392
- $$slots: { default: [Ii] },
2403
+ $$slots: { default: [ki] },
2393
2404
  $$scope: { ctx: t }
2394
2405
  }
2395
2406
  }), {
@@ -2424,12 +2435,12 @@ function vi(t) {
2424
2435
  }
2425
2436
  };
2426
2437
  }
2427
- function $i(t) {
2438
+ function Ti(t) {
2428
2439
  let e, n;
2429
- return e = new Te({
2440
+ return e = new Ae({
2430
2441
  props: {
2431
2442
  gutter: "32px",
2432
- $$slots: { default: [vi] },
2443
+ $$slots: { default: [Pi] },
2433
2444
  $$scope: { ctx: t }
2434
2445
  }
2435
2446
  }), {
@@ -2455,19 +2466,19 @@ function $i(t) {
2455
2466
  }
2456
2467
  };
2457
2468
  }
2458
- function ki(t, e, n) {
2469
+ function Ai(t, e, n) {
2459
2470
  let { $$slots: r = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: a } = e, { closeButtonTitle: c = "Go back to app" } = e;
2460
2471
  return t.$$set = (f) => {
2461
2472
  "brandingInfo" in f && n(0, o = f.brandingInfo), "onContinue" in f && n(1, s = f.onContinue), "title" in f && n(2, l = f.title), "type" in f && n(3, a = f.type), "closeButtonTitle" in f && n(4, c = f.closeButtonTitle), "$$scope" in f && n(6, i = f.$$scope);
2462
2473
  }, [o, s, l, a, c, r, i];
2463
2474
  }
2464
- class on extends D {
2475
+ class sn extends D {
2465
2476
  constructor(e) {
2466
2477
  super(), M(
2467
2478
  this,
2468
2479
  e,
2469
- ki,
2470
- $i,
2480
+ Ai,
2481
+ Ti,
2471
2482
  S,
2472
2483
  {
2473
2484
  brandingInfo: 0,
@@ -2476,18 +2487,18 @@ class on extends D {
2476
2487
  type: 3,
2477
2488
  closeButtonTitle: 4
2478
2489
  },
2479
- gi
2490
+ wi
2480
2491
  );
2481
2492
  }
2482
2493
  }
2483
- function At(t) {
2494
+ function Ot(t) {
2484
2495
  let e, n, r, i, o, s;
2485
2496
  return {
2486
2497
  c() {
2487
- e = I("br"), n = H("If this error persists, please contact "), r = I("a"), i = H(
2498
+ e = I("br"), n = j("If this error persists, please contact "), r = I("a"), i = j(
2488
2499
  /*supportEmail*/
2489
2500
  t[2]
2490
- ), s = H("."), b(r, "href", o = "mailto:" + /*supportEmail*/
2501
+ ), s = j("."), b(r, "href", o = "mailto:" + /*supportEmail*/
2491
2502
  t[2]);
2492
2503
  },
2493
2504
  m(l, a) {
@@ -2508,7 +2519,7 @@ function At(t) {
2508
2519
  }
2509
2520
  };
2510
2521
  }
2511
- function Pi(t) {
2522
+ function Oi(t) {
2512
2523
  let e = (
2513
2524
  /*lastError*/
2514
2525
  t[1].getPublicErrorMessage(
@@ -2517,11 +2528,11 @@ function Pi(t) {
2517
2528
  ) + ""
2518
2529
  ), n, r, i, o = (
2519
2530
  /*supportEmail*/
2520
- t[2] && At(t)
2531
+ t[2] && Ot(t)
2521
2532
  );
2522
2533
  return {
2523
2534
  c() {
2524
- n = H(e), r = U(), o && o.c(), i = ee();
2535
+ n = j(e), r = U(), o && o.c(), i = ee();
2525
2536
  },
2526
2537
  m(s, l) {
2527
2538
  g(s, n, l), g(s, r, l), o && o.m(s, l), g(s, i, l);
@@ -2533,16 +2544,16 @@ function Pi(t) {
2533
2544
  /*productDetails*/
2534
2545
  s[3]
2535
2546
  ) + "") && te(n, e), /*supportEmail*/
2536
- s[2] ? o ? o.p(s, l) : (o = At(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2547
+ s[2] ? o ? o.p(s, l) : (o = Ot(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2537
2548
  },
2538
2549
  d(s) {
2539
2550
  s && (_(n), _(r), _(i)), o && o.d(s);
2540
2551
  }
2541
2552
  };
2542
2553
  }
2543
- function Ti(t) {
2554
+ function Ni(t) {
2544
2555
  let e, n;
2545
- return e = new Hr({ props: { slot: "icon" } }), {
2556
+ return e = new Gr({ props: { slot: "icon" } }), {
2546
2557
  c() {
2547
2558
  k(e.$$.fragment);
2548
2559
  },
@@ -2561,9 +2572,9 @@ function Ti(t) {
2561
2572
  }
2562
2573
  };
2563
2574
  }
2564
- function Ai(t) {
2575
+ function Ui(t) {
2565
2576
  let e, n;
2566
- return e = new on({
2577
+ return e = new sn({
2567
2578
  props: {
2568
2579
  title: (
2569
2580
  /*getErrorTitle*/
@@ -2580,8 +2591,8 @@ function Ai(t) {
2580
2591
  type: "error",
2581
2592
  closeButtonTitle: "Try Again",
2582
2593
  $$slots: {
2583
- icon: [Ti],
2584
- default: [Pi]
2594
+ icon: [Ni],
2595
+ default: [Oi]
2585
2596
  },
2586
2597
  $$scope: { ctx: t }
2587
2598
  }
@@ -2612,15 +2623,15 @@ function Ai(t) {
2612
2623
  }
2613
2624
  };
2614
2625
  }
2615
- function Oi(t, e, n) {
2626
+ function Ri(t, e, n) {
2616
2627
  let { brandingInfo: r = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { productDetails: s = null } = e, { onContinue: l } = e;
2617
2628
  Fe(() => {
2618
- j.errorLog(`Displayed error: ${K[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2629
+ H.errorLog(`Displayed error: ${K[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2619
2630
  });
2620
2631
  function a() {
2621
2632
  switch (i.errorCode) {
2622
2633
  case K.AlreadyPurchasedError:
2623
- return (s == null ? void 0 : s.productType) === Pe.Subscription ? "Already subscribed" : "Already purchased";
2634
+ return (s == null ? void 0 : s.productType) === Te.Subscription ? "Already subscribed" : "Already purchased";
2624
2635
  default:
2625
2636
  return "Something went wrong";
2626
2637
  }
@@ -2636,9 +2647,9 @@ function Oi(t, e, n) {
2636
2647
  a
2637
2648
  ];
2638
2649
  }
2639
- class Ni extends D {
2650
+ class Li extends D {
2640
2651
  constructor(e) {
2641
- super(), M(this, e, Oi, Ai, S, {
2652
+ super(), M(this, e, Ri, Ui, S, {
2642
2653
  brandingInfo: 0,
2643
2654
  lastError: 1,
2644
2655
  supportEmail: 2,
@@ -2647,23 +2658,23 @@ class Ni extends D {
2647
2658
  });
2648
2659
  }
2649
2660
  }
2650
- const Ui = `<svg width="96" height="96" viewBox="0 0 124 124" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2661
+ const Si = `<svg width="96" height="96" viewBox="0 0 124 124" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2651
2662
  <circle cx="62" cy="62" r="62" fill="currentColor"/>
2652
2663
  <rect x="44.1116" y="56" width="27.5" height="11" transform="rotate(45 44.1116 56)" fill="white"/>
2653
2664
  <rect x="79.1133" y="44.334" width="11" height="44" transform="rotate(45 79.1133 44.334)" fill="white"/>
2654
2665
  </svg>
2655
2666
  `;
2656
- function Ri(t) {
2667
+ function Mi(t) {
2657
2668
  F(t, "svelte-7wiquz", ".rcb-ui-asset-icon.svelte-7wiquz{width:96px;height:96px;margin:0 auto}");
2658
2669
  }
2659
- function Li(t) {
2670
+ function Di(t) {
2660
2671
  let e;
2661
2672
  return {
2662
2673
  c() {
2663
2674
  e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-7wiquz");
2664
2675
  },
2665
2676
  m(n, r) {
2666
- g(n, e, r), e.innerHTML = Ui;
2677
+ g(n, e, r), e.innerHTML = Si;
2667
2678
  },
2668
2679
  p: A,
2669
2680
  i: A,
@@ -2673,16 +2684,16 @@ function Li(t) {
2673
2684
  }
2674
2685
  };
2675
2686
  }
2676
- class Si extends D {
2687
+ class Bi extends D {
2677
2688
  constructor(e) {
2678
- super(), M(this, e, null, Li, S, {}, Ri);
2689
+ super(), M(this, e, null, Di, S, {}, Mi);
2679
2690
  }
2680
2691
  }
2681
- function Mi(t) {
2692
+ function Ci(t) {
2682
2693
  let e;
2683
2694
  return {
2684
2695
  c() {
2685
- e = H("Your plan is now active.");
2696
+ e = j("Your plan is now active.");
2686
2697
  },
2687
2698
  m(n, r) {
2688
2699
  g(n, e, r);
@@ -2692,10 +2703,10 @@ function Mi(t) {
2692
2703
  }
2693
2704
  };
2694
2705
  }
2695
- function Di(t) {
2706
+ function Fi(t) {
2696
2707
  let e, n = (
2697
2708
  /*isSubscription*/
2698
- t[2] && Mi()
2709
+ t[2] && Ci()
2699
2710
  );
2700
2711
  return {
2701
2712
  c() {
@@ -2710,9 +2721,9 @@ function Di(t) {
2710
2721
  }
2711
2722
  };
2712
2723
  }
2713
- function Bi(t) {
2724
+ function Hi(t) {
2714
2725
  let e, n;
2715
- return e = new Si({ props: { slot: "icon" } }), {
2726
+ return e = new Bi({ props: { slot: "icon" } }), {
2716
2727
  c() {
2717
2728
  k(e.$$.fragment);
2718
2729
  },
@@ -2731,9 +2742,9 @@ function Bi(t) {
2731
2742
  }
2732
2743
  };
2733
2744
  }
2734
- function Ci(t) {
2745
+ function ji(t) {
2735
2746
  let e, n;
2736
- return e = new on({
2747
+ return e = new sn({
2737
2748
  props: {
2738
2749
  type: "success",
2739
2750
  title: "Purchase successful",
@@ -2747,8 +2758,8 @@ function Ci(t) {
2747
2758
  ),
2748
2759
  closeButtonTitle: "Close",
2749
2760
  $$slots: {
2750
- icon: [Bi],
2751
- default: [Di]
2761
+ icon: [Hi],
2762
+ default: [Fi]
2752
2763
  },
2753
2764
  $$scope: { ctx: t }
2754
2765
  }
@@ -2779,35 +2790,35 @@ function Ci(t) {
2779
2790
  }
2780
2791
  };
2781
2792
  }
2782
- function Fi(t, e, n) {
2793
+ function xi(t, e, n) {
2783
2794
  let { productDetails: r = null } = e, { brandingInfo: i = null } = e, { onContinue: o } = e;
2784
- const s = (r == null ? void 0 : r.productType) === Pe.Subscription;
2795
+ const s = (r == null ? void 0 : r.productType) === Te.Subscription;
2785
2796
  return t.$$set = (l) => {
2786
2797
  "productDetails" in l && n(3, r = l.productDetails), "brandingInfo" in l && n(0, i = l.brandingInfo), "onContinue" in l && n(1, o = l.onContinue);
2787
2798
  }, [i, o, s, r];
2788
2799
  }
2789
- class ji extends D {
2800
+ class qi extends D {
2790
2801
  constructor(e) {
2791
- super(), M(this, e, Fi, Ci, S, {
2802
+ super(), M(this, e, xi, ji, S, {
2792
2803
  productDetails: 3,
2793
2804
  brandingInfo: 0,
2794
2805
  onContinue: 1
2795
2806
  });
2796
2807
  }
2797
2808
  }
2798
- function Hi(t, e, n, r, i = {}) {
2809
+ function Gi(t, e, n, r, i = {}) {
2799
2810
  const o = n.create(e, i);
2800
2811
  return o.mount(t), o.on("change", (s) => r("change", s)), o.on("ready", (s) => r("ready", s)), o.on("focus", (s) => r("focus", s)), o.on("blur", (s) => r("blur", s)), o.on("escape", (s) => r("escape", s)), o.on("click", (s) => r("click", s)), o.on("loaderror", (s) => r("loaderror", s)), o.on("loaderstart", (s) => r("loaderstart", s)), o.on("networkschange", (s) => r("networkschange", s)), o;
2801
2812
  }
2802
- const xi = typeof window > "u";
2803
- function qi(t) {
2804
- if (!xi)
2813
+ const Vi = typeof window > "u";
2814
+ function Yi(t) {
2815
+ if (!Vi)
2805
2816
  return t.registerAppInfo({
2806
2817
  name: "svelte-stripe-js",
2807
2818
  url: "https://svelte-stripe-js.vercel.app"
2808
2819
  });
2809
2820
  }
2810
- function Gi(t) {
2821
+ function zi(t) {
2811
2822
  let e;
2812
2823
  return {
2813
2824
  c() {
@@ -2824,11 +2835,11 @@ function Gi(t) {
2824
2835
  }
2825
2836
  };
2826
2837
  }
2827
- function Vi(t, e, n) {
2838
+ function Wi(t, e, n) {
2828
2839
  let r, i;
2829
- const o = zn(), { elements: s } = Kn("stripe");
2840
+ const o = Kn(), { elements: s } = Xn("stripe");
2830
2841
  let { options: l = void 0 } = e;
2831
- Fe(() => (r = Hi(i, "payment", s, o, l), () => r.destroy()));
2842
+ Fe(() => (r = Gi(i, "payment", s, o, l), () => r.destroy()));
2832
2843
  function a() {
2833
2844
  r.blur();
2834
2845
  }
@@ -2850,9 +2861,9 @@ function Vi(t, e, n) {
2850
2861
  "options" in h && n(1, l = h.options);
2851
2862
  }, [i, l, a, c, f, u, m];
2852
2863
  }
2853
- class Yi extends D {
2864
+ class Ki extends D {
2854
2865
  constructor(e) {
2855
- super(), M(this, e, Vi, Gi, S, {
2866
+ super(), M(this, e, Wi, zi, S, {
2856
2867
  options: 1,
2857
2868
  blur: 2,
2858
2869
  clear: 3,
@@ -2873,7 +2884,7 @@ class Yi extends D {
2873
2884
  return this.$$.ctx[5];
2874
2885
  }
2875
2886
  }
2876
- function Ot(t) {
2887
+ function Nt(t) {
2877
2888
  let e;
2878
2889
  const n = (
2879
2890
  /*#slots*/
@@ -2924,11 +2935,11 @@ function Ot(t) {
2924
2935
  }
2925
2936
  };
2926
2937
  }
2927
- function zi(t) {
2938
+ function Qi(t) {
2928
2939
  let e, n, r = (
2929
2940
  /*stripe*/
2930
2941
  t[1] && /*elements*/
2931
- t[0] && Ot(t)
2942
+ t[0] && Nt(t)
2932
2943
  );
2933
2944
  return {
2934
2945
  c() {
@@ -2941,7 +2952,7 @@ function zi(t) {
2941
2952
  /*stripe*/
2942
2953
  i[1] && /*elements*/
2943
2954
  i[0] ? r ? (r.p(i, o), o & /*stripe, elements*/
2944
- 3 && d(r, 1)) : (r = Ot(i), r.c(), d(r, 1), r.m(e.parentNode, e)) : r && (z(), p(r, 1, 1, () => {
2955
+ 3 && d(r, 1)) : (r = Nt(i), r.c(), d(r, 1), r.m(e.parentNode, e)) : r && (z(), p(r, 1, 1, () => {
2945
2956
  r = null;
2946
2957
  }), W());
2947
2958
  },
@@ -2956,7 +2967,7 @@ function zi(t) {
2956
2967
  }
2957
2968
  };
2958
2969
  }
2959
- function Wi(t, e, n) {
2970
+ function Xi(t, e, n) {
2960
2971
  let r, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: a = "stripe" } = e, { variables: c = {} } = e, { rules: f = {} } = e, { labels: u = "above" } = e, { loader: m = "auto" } = e, { fonts: h = [] } = e, { locale: y = "auto" } = e, { currency: T = void 0 } = e, { amount: w = void 0 } = e, { clientSecret: O = void 0 } = e, { elements: C = null } = e;
2961
2972
  return t.$$set = (E) => {
2962
2973
  "stripe" in E && n(1, s = E.stripe), "mode" in E && n(2, l = E.mode), "theme" in E && n(3, a = E.theme), "variables" in E && n(4, c = E.variables), "rules" in E && n(5, f = E.rules), "labels" in E && n(6, u = E.labels), "loader" in E && n(7, m = E.loader), "fonts" in E && n(8, h = E.fonts), "locale" in E && n(9, y = E.locale), "currency" in E && n(10, T = E.currency), "amount" in E && n(11, w = E.amount), "clientSecret" in E && n(12, O = E.clientSecret), "elements" in E && n(0, C = E.elements), "$$scope" in E && n(14, o = E.$$scope);
@@ -2972,7 +2983,7 @@ function Wi(t, e, n) {
2972
2983
  fonts: h,
2973
2984
  loader: m,
2974
2985
  locale: y
2975
- })), qi(s), Wn("stripe", { stripe: s, elements: C })), t.$$.dirty & /*elements, appearance, locale*/
2986
+ })), Yi(s), Qn("stripe", { stripe: s, elements: C })), t.$$.dirty & /*elements, appearance, locale*/
2976
2987
  8705 && C && C.update({ appearance: r, locale: y });
2977
2988
  }, [
2978
2989
  C,
@@ -2993,9 +3004,9 @@ function Wi(t, e, n) {
2993
3004
  i
2994
3005
  ];
2995
3006
  }
2996
- class Ki extends D {
3007
+ class Zi extends D {
2997
3008
  constructor(e) {
2998
- super(), M(this, e, Wi, zi, S, {
3009
+ super(), M(this, e, Xi, Qi, S, {
2999
3010
  stripe: 1,
3000
3011
  mode: 2,
3001
3012
  theme: 3,
@@ -3012,90 +3023,90 @@ class Ki extends D {
3012
3023
  });
3013
3024
  }
3014
3025
  }
3015
- var sn = "https://js.stripe.com/v3", Qi = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Nt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Xi = function() {
3016
- for (var e = document.querySelectorAll('script[src^="'.concat(sn, '"]')), n = 0; n < e.length; n++) {
3026
+ var ln = "https://js.stripe.com/v3", Ji = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Ut = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", eo = function() {
3027
+ for (var e = document.querySelectorAll('script[src^="'.concat(ln, '"]')), n = 0; n < e.length; n++) {
3017
3028
  var r = e[n];
3018
- if (Qi.test(r.src))
3029
+ if (Ji.test(r.src))
3019
3030
  return r;
3020
3031
  }
3021
3032
  return null;
3022
- }, Ut = function(e) {
3033
+ }, Rt = function(e) {
3023
3034
  var n = "", r = document.createElement("script");
3024
- r.src = "".concat(sn).concat(n);
3035
+ r.src = "".concat(ln).concat(n);
3025
3036
  var i = document.head || document.body;
3026
3037
  if (!i)
3027
3038
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
3028
3039
  return i.appendChild(r), r;
3029
- }, Zi = function(e, n) {
3040
+ }, to = function(e, n) {
3030
3041
  !e || !e._registerWrapper || e._registerWrapper({
3031
3042
  name: "stripe-js",
3032
3043
  version: "2.4.0",
3033
3044
  startTime: n
3034
3045
  });
3035
- }, ge = null, Re = null, Le = null, Ji = function(e) {
3046
+ }, he = null, Re = null, Le = null, no = function(e) {
3036
3047
  return function() {
3037
3048
  e(new Error("Failed to load Stripe.js"));
3038
3049
  };
3039
- }, eo = function(e, n) {
3050
+ }, ro = function(e, n) {
3040
3051
  return function() {
3041
3052
  window.Stripe ? e(window.Stripe) : n(new Error("Stripe.js not available"));
3042
3053
  };
3043
- }, to = function(e) {
3044
- return ge !== null ? ge : (ge = new Promise(function(n, r) {
3054
+ }, io = function(e) {
3055
+ return he !== null ? he : (he = new Promise(function(n, r) {
3045
3056
  if (typeof window > "u" || typeof document > "u") {
3046
3057
  n(null);
3047
3058
  return;
3048
3059
  }
3049
- if (window.Stripe && e && console.warn(Nt), window.Stripe) {
3060
+ if (window.Stripe && e && console.warn(Ut), window.Stripe) {
3050
3061
  n(window.Stripe);
3051
3062
  return;
3052
3063
  }
3053
3064
  try {
3054
- var i = Xi();
3065
+ var i = eo();
3055
3066
  if (i && e)
3056
- console.warn(Nt);
3067
+ console.warn(Ut);
3057
3068
  else if (!i)
3058
- i = Ut(e);
3069
+ i = Rt(e);
3059
3070
  else if (i && Le !== null && Re !== null) {
3060
3071
  var o;
3061
- i.removeEventListener("load", Le), i.removeEventListener("error", Re), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = Ut(e);
3072
+ i.removeEventListener("load", Le), i.removeEventListener("error", Re), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = Rt(e);
3062
3073
  }
3063
- Le = eo(n, r), Re = Ji(r), i.addEventListener("load", Le), i.addEventListener("error", Re);
3074
+ Le = ro(n, r), Re = no(r), i.addEventListener("load", Le), i.addEventListener("error", Re);
3064
3075
  } catch (s) {
3065
3076
  r(s);
3066
3077
  return;
3067
3078
  }
3068
- }), ge.catch(function(n) {
3069
- return ge = null, Promise.reject(n);
3079
+ }), he.catch(function(n) {
3080
+ return he = null, Promise.reject(n);
3070
3081
  }));
3071
- }, no = function(e, n, r) {
3082
+ }, oo = function(e, n, r) {
3072
3083
  if (e === null)
3073
3084
  return null;
3074
3085
  var i = e.apply(void 0, n);
3075
- return Zi(i, r), i;
3076
- }, he, ln = !1, an = function() {
3077
- return he || (he = to(null).catch(function(e) {
3078
- return he = null, Promise.reject(e);
3079
- }), he);
3086
+ return to(i, r), i;
3087
+ }, be, an = !1, cn = function() {
3088
+ return be || (be = io(null).catch(function(e) {
3089
+ return be = null, Promise.reject(e);
3090
+ }), be);
3080
3091
  };
3081
3092
  Promise.resolve().then(function() {
3082
- return an();
3093
+ return cn();
3083
3094
  }).catch(function(t) {
3084
- ln || console.warn(t);
3095
+ an || console.warn(t);
3085
3096
  });
3086
- var ro = function() {
3097
+ var so = function() {
3087
3098
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
3088
3099
  n[r] = arguments[r];
3089
- ln = !0;
3100
+ an = !0;
3090
3101
  var i = Date.now();
3091
- return an().then(function(o) {
3092
- return no(o, n, i);
3102
+ return cn().then(function(o) {
3103
+ return oo(o, n, i);
3093
3104
  });
3094
3105
  };
3095
- function io(t) {
3106
+ function lo(t) {
3096
3107
  F(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
3097
3108
  }
3098
- function oo(t) {
3109
+ function ao(t) {
3099
3110
  let e, n;
3100
3111
  const r = (
3101
3112
  /*#slots*/
@@ -3146,12 +3157,12 @@ function oo(t) {
3146
3157
  }
3147
3158
  };
3148
3159
  }
3149
- function so(t) {
3160
+ function co(t) {
3150
3161
  let e, n;
3151
3162
  return e = new de({
3152
3163
  props: {
3153
3164
  as: "header",
3154
- $$slots: { default: [oo] },
3165
+ $$slots: { default: [ao] },
3155
3166
  $$scope: { ctx: t }
3156
3167
  }
3157
3168
  }), {
@@ -3177,34 +3188,34 @@ function so(t) {
3177
3188
  }
3178
3189
  };
3179
3190
  }
3180
- function lo(t, e, n) {
3191
+ function uo(t, e, n) {
3181
3192
  let { $$slots: r = {}, $$scope: i } = e;
3182
3193
  return t.$$set = (o) => {
3183
3194
  "$$scope" in o && n(1, i = o.$$scope);
3184
3195
  }, [r, i];
3185
3196
  }
3186
- class ot extends D {
3197
+ class st extends D {
3187
3198
  constructor(e) {
3188
- super(), M(this, e, lo, so, S, {}, io);
3199
+ super(), M(this, e, uo, co, S, {}, lo);
3189
3200
  }
3190
3201
  }
3191
- const ao = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
3202
+ const fo = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
3192
3203
  xmlns="http://www.w3.org/2000/svg">
3193
3204
  <path d="M18 8H17V6C17 3.24 14.76 1 12 1C9.24 1 7 3.24 7 6V8H6C4.9 8 4 8.9 4 10V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V10C20 8.9 19.1 8 18 8ZM12 17C10.9 17 10 16.1 10 15C10 13.9 10.9 13 12 13C13.1 13 14 13.9 14 15C14 16.1 13.1 17 12 17ZM15.1 8H8.9V6C8.9 4.29 10.29 2.9 12 2.9C13.71 2.9 15.1 4.29 15.1 6V8Z"
3194
3205
  fill="currentColor"/>
3195
3206
  </svg>
3196
3207
  `;
3197
- function co(t) {
3208
+ function po(t) {
3198
3209
  F(t, "svelte-1z0jca3", "div.svelte-1z0jca3{height:24px;width:24px}");
3199
3210
  }
3200
- function uo(t) {
3211
+ function mo(t) {
3201
3212
  let e;
3202
3213
  return {
3203
3214
  c() {
3204
3215
  e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-1z0jca3");
3205
3216
  },
3206
3217
  m(n, r) {
3207
- g(n, e, r), e.innerHTML = ao;
3218
+ g(n, e, r), e.innerHTML = fo;
3208
3219
  },
3209
3220
  p: A,
3210
3221
  i: A,
@@ -3214,12 +3225,12 @@ function uo(t) {
3214
3225
  }
3215
3226
  };
3216
3227
  }
3217
- class fo extends D {
3228
+ class _o extends D {
3218
3229
  constructor(e) {
3219
- super(), M(this, e, null, uo, S, {}, co);
3230
+ super(), M(this, e, null, mo, S, {}, po);
3220
3231
  }
3221
3232
  }
3222
- function po(t) {
3233
+ function go(t) {
3223
3234
  F(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
3224
3235
  -20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
3225
3236
  -20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
@@ -3227,7 +3238,7 @@ function po(t) {
3227
3238
  -20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
3228
3239
  -20px 0 #fff2;background:#fff2}}`);
3229
3240
  }
3230
- function mo(t) {
3241
+ function ho(t) {
3231
3242
  let e;
3232
3243
  return {
3233
3244
  c() {
@@ -3244,16 +3255,16 @@ function mo(t) {
3244
3255
  }
3245
3256
  };
3246
3257
  }
3247
- class cn extends D {
3258
+ class un extends D {
3248
3259
  constructor(e) {
3249
- super(), M(this, e, null, mo, S, {}, po);
3260
+ super(), M(this, e, null, ho, S, {}, go);
3250
3261
  }
3251
3262
  }
3252
- const _o = {
3263
+ const bo = {
3253
3264
  error: "#f2545b",
3254
3265
  warning: "#f4e971",
3255
3266
  focus: "#000080",
3256
- accent: "#7676767",
3267
+ accent: "#767676",
3257
3268
  primary: "#000000",
3258
3269
  "primary-text": "#ffffff",
3259
3270
  white: "#ffffff",
@@ -3263,11 +3274,11 @@ const _o = {
3263
3274
  "grey-ui-light": "rgba(0,0,0,0.005)",
3264
3275
  "input-background": "transparent",
3265
3276
  background: "white"
3266
- }, go = {
3277
+ }, wo = {
3267
3278
  error: "#f2545b",
3268
3279
  warning: "#f4e971",
3269
3280
  focus: "#000080",
3270
- accent: "#7676767",
3281
+ accent: "#767676",
3271
3282
  primary: "#ffffff",
3272
3283
  "primary-text": "#000000",
3273
3284
  white: "#ffffff",
@@ -3277,30 +3288,30 @@ const _o = {
3277
3288
  "grey-ui-light": "rgba(255,255,255,0.005)",
3278
3289
  "input-background": "transparent",
3279
3290
  background: "#000000"
3280
- }, un = {
3291
+ }, fn = {
3281
3292
  error: "color_error",
3282
3293
  focus: "color_accent",
3283
3294
  accent: "color_accent",
3284
3295
  primary: "color_buttons_primary"
3285
- }, ho = {
3286
- ...un,
3296
+ }, yo = {
3297
+ ...fn,
3287
3298
  background: "color_form_bg"
3288
- }, bo = {
3289
- ...un,
3299
+ }, Eo = {
3300
+ ...fn,
3290
3301
  background: "color_product_info_bg"
3291
- }, fn = {
3302
+ }, dn = {
3292
3303
  "input-border-radius": "12px",
3293
3304
  "input-button-border-radius": "12px",
3294
3305
  "modal-border-radius": "16px"
3295
- }, wo = {
3306
+ }, Io = {
3296
3307
  "input-border-radius": "0px",
3297
3308
  "input-button-border-radius": "0px",
3298
3309
  "modal-border-radius": "0px"
3299
- }, yo = {
3310
+ }, vo = {
3300
3311
  "input-border-radius": "24px",
3301
3312
  "input-button-border-radius": "56px",
3302
3313
  "modal-border-radius": "16px"
3303
- }, Rt = fn, Lt = (t) => t.length == 7 ? {
3314
+ }, Lt = dn, St = (t) => t.length == 7 ? {
3304
3315
  r: parseInt(t.slice(1, 3), 16),
3305
3316
  g: parseInt(t.slice(3, 5), 16),
3306
3317
  b: parseInt(t.slice(5, 7), 16)
@@ -3308,19 +3319,24 @@ const _o = {
3308
3319
  r: parseInt(t[1], 16),
3309
3320
  g: parseInt(t[2], 16),
3310
3321
  b: parseInt(t[3], 16)
3311
- } : null, dn = ({ r: t, g: e, b: n }) => {
3312
- const r = (o) => (o = o / 255, o <= 0.03928 ? o / 12.92 : Math.pow((o + 0.055) / 1.055, 2.4));
3313
- return 0.2126 * r(t) + 0.7152 * r(e) + 0.0722 * r(n) > 0.179;
3314
- }, Eo = (t) => {
3315
- const e = dn(t) ? "0,0,0" : "255,255,255";
3322
+ } : null, pn = ({
3323
+ r: t,
3324
+ g: e,
3325
+ b: n,
3326
+ luminanceThreshold: r
3327
+ }) => {
3328
+ const i = (s) => (s = s / 255, s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4));
3329
+ return 0.2126 * i(t) + 0.7152 * i(e) + 0.0722 * i(n) > r;
3330
+ }, mn = 0.37, $o = (t, e = mn) => {
3331
+ const n = pn({ ...t, luminanceThreshold: e }) ? "0,0,0" : "255,255,255";
3316
3332
  return {
3317
- "grey-text-dark": `rgba(${e},1.0)`,
3318
- "grey-text-light": `rgba(${e},0.50)`,
3319
- "grey-ui-dark": `rgba(${e},0.125)`,
3320
- "grey-ui-light": `rgba(${e},0.05)`
3333
+ "grey-text-dark": `rgba(${n},1.0)`,
3334
+ "grey-text-light": `rgba(${n},0.50)`,
3335
+ "grey-ui-dark": `rgba(${n},0.125)`,
3336
+ "grey-ui-light": `rgba(${n},0.05)`
3321
3337
  };
3322
- }, Io = (t, e, n) => {
3323
- const r = {
3338
+ }, ko = (t, e, n, r = mn) => {
3339
+ const i = {
3324
3340
  "grey-text-dark": n["grey-text-dark"],
3325
3341
  "grey-text-light": n["grey-text-light"],
3326
3342
  "grey-ui-dark": n["grey-ui-dark"],
@@ -3328,25 +3344,25 @@ const _o = {
3328
3344
  "primary-text": n["primary-text"]
3329
3345
  };
3330
3346
  if (t != null && t.startsWith("#")) {
3331
- const i = Lt(t);
3332
- i !== null && Object.assign(r, Eo(i));
3347
+ const o = St(t);
3348
+ o !== null && Object.assign(i, $o(o));
3333
3349
  }
3334
3350
  if (e != null && e.startsWith("#")) {
3335
- const i = Lt(e);
3336
- i !== null && (r["primary-text"] = dn(i) ? "black" : "white");
3351
+ const o = St(e);
3352
+ o !== null && (i["primary-text"] = pn({ ...o, luminanceThreshold: r }) ? "black" : "white");
3337
3353
  }
3338
- return r;
3339
- }, vo = (t, e) => t || e, $o = (t, e, n) => {
3354
+ return i;
3355
+ }, Po = (t, e) => t || e, To = (t, e, n) => {
3340
3356
  const r = Object.entries(t).map(([i, o]) => [
3341
3357
  i,
3342
- vo(
3358
+ Po(
3343
3359
  n ? n[o] : null,
3344
3360
  e[i]
3345
3361
  )
3346
3362
  ]);
3347
3363
  return Object.fromEntries(r);
3348
- }, pn = (t, e, n) => {
3349
- const r = $o(
3364
+ }, _n = (t, e, n) => {
3365
+ const r = To(
3350
3366
  t,
3351
3367
  e,
3352
3368
  n
@@ -3354,75 +3370,75 @@ const _o = {
3354
3370
  return n ? {
3355
3371
  ...e,
3356
3372
  ...r,
3357
- ...Io(
3373
+ ...ko(
3358
3374
  r.background,
3359
3375
  r.primary,
3360
3376
  e
3361
3377
  )
3362
3378
  } : { ...e };
3363
- }, ko = (t) => pn(
3364
- bo,
3365
- go,
3379
+ }, Ao = (t) => _n(
3380
+ Eo,
3381
+ wo,
3366
3382
  t
3367
- ), mn = (t) => pn(
3368
- ho,
3369
- _o,
3383
+ ), gn = (t) => _n(
3384
+ yo,
3385
+ bo,
3370
3386
  t
3371
- ), st = (t) => {
3387
+ ), lt = (t) => {
3372
3388
  if (!t)
3373
- return Rt;
3389
+ return Lt;
3374
3390
  switch (t.shapes) {
3375
3391
  case "rounded":
3376
- return fn;
3392
+ return dn;
3377
3393
  case "rectangle":
3378
- return wo;
3394
+ return Io;
3379
3395
  case "pill":
3380
- return yo;
3396
+ return vo;
3381
3397
  default:
3382
- return Rt;
3398
+ return Lt;
3383
3399
  }
3384
- }, Be = (t = "", e) => e.map(([n, r]) => `--rc-${t}-${n}: ${r}`).join("; "), _n = (t) => {
3400
+ }, Be = (t = "", e) => e.map(([n, r]) => `--rc-${t}-${n}: ${r}`).join("; "), hn = (t) => {
3385
3401
  const e = Be(
3386
3402
  "color",
3387
- Object.entries(ko(t))
3403
+ Object.entries(Ao(t))
3388
3404
  ), n = Be(
3389
3405
  "shape",
3390
- Object.entries(st(t))
3406
+ Object.entries(lt(t))
3391
3407
  );
3392
3408
  return [e, n].join("; ");
3393
- }, Po = (t) => {
3409
+ }, Oo = (t) => {
3394
3410
  const e = Be(
3395
3411
  "color",
3396
- Object.entries(mn(t))
3412
+ Object.entries(gn(t))
3397
3413
  ), n = Be(
3398
3414
  "shape",
3399
- Object.entries(st(t))
3415
+ Object.entries(lt(t))
3400
3416
  );
3401
3417
  return [e, n].join("; ");
3402
3418
  };
3403
- class lt {
3419
+ class at {
3404
3420
  constructor(e) {
3405
3421
  this.brandingAppearance = e;
3406
3422
  }
3407
3423
  get shape() {
3408
- return st(this.brandingAppearance);
3424
+ return lt(this.brandingAppearance);
3409
3425
  }
3410
3426
  get formColors() {
3411
- return mn(this.brandingAppearance);
3427
+ return gn(this.brandingAppearance);
3412
3428
  }
3413
3429
  get formStyleVars() {
3414
- return Po(this.brandingAppearance);
3430
+ return Oo(this.brandingAppearance);
3415
3431
  }
3416
3432
  get productInfoStyleVars() {
3417
- return _n(this.brandingAppearance);
3433
+ return hn(this.brandingAppearance);
3418
3434
  }
3419
3435
  }
3420
- function To(t) {
3436
+ function No(t) {
3421
3437
  F(t, "svelte-8jsoa8", ".rcb-stripe-elements-container.svelte-8jsoa8{width:100%;min-height:320px;margin-top:32px;margin-bottom:24px}");
3422
3438
  }
3423
- function Ao(t) {
3439
+ function Uo(t) {
3424
3440
  let e, n;
3425
- return e = new tt({}), {
3441
+ return e = new nt({}), {
3426
3442
  c() {
3427
3443
  k(e.$$.fragment);
3428
3444
  },
@@ -3441,11 +3457,11 @@ function Ao(t) {
3441
3457
  }
3442
3458
  };
3443
3459
  }
3444
- function Oo(t) {
3460
+ function Ro(t) {
3445
3461
  let e, n, r, i, o, s, l, a;
3446
- e = new ot({
3462
+ e = new st({
3447
3463
  props: {
3448
- $$slots: { default: [No] },
3464
+ $$slots: { default: [Lo] },
3449
3465
  $$scope: { ctx: t }
3450
3466
  }
3451
3467
  });
@@ -3513,18 +3529,18 @@ function Oo(t) {
3513
3529
  backgroundColor: "transparent"
3514
3530
  }
3515
3531
  },
3516
- $$slots: { default: [Co] },
3532
+ $$slots: { default: [jo] },
3517
3533
  $$scope: { ctx: t }
3518
3534
  };
3519
3535
  return (
3520
3536
  /*elements*/
3521
3537
  t[4] !== void 0 && (f.elements = /*elements*/
3522
- t[4]), i = new Ki({ props: f }), De.push(() => tr(i, "elements", c)), {
3538
+ t[4]), i = new Zi({ props: f }), De.push(() => rr(i, "elements", c)), {
3523
3539
  c() {
3524
3540
  k(e.$$.fragment), n = U(), r = I("form"), k(i.$$.fragment);
3525
3541
  },
3526
3542
  m(u, m) {
3527
- v(e, u, m), g(u, n, m), g(u, r, m), v(i, r, null), s = !0, l || (a = $e(r, "submit", Qt(
3543
+ v(e, u, m), g(u, n, m), g(u, r, m), v(i, r, null), s = !0, l || (a = ke(r, "submit", Xt(
3528
3544
  /*handleContinue*/
3529
3545
  t[7]
3530
3546
  )), l = !0);
@@ -3539,7 +3555,7 @@ function Oo(t) {
3539
3555
  u[5]), m & /*$$scope, processing, productDetails, purchaseOptionToUse*/
3540
3556
  131085 && (y.$$scope = { dirty: m, ctx: u }), !o && m & /*elements*/
3541
3557
  16 && (o = !0, y.elements = /*elements*/
3542
- u[4], Zn(() => o = !1)), i.$set(y);
3558
+ u[4], er(() => o = !1)), i.$set(y);
3543
3559
  },
3544
3560
  i(u) {
3545
3561
  s || (d(e.$$.fragment, u), d(i.$$.fragment, u), s = !0);
@@ -3553,9 +3569,9 @@ function Oo(t) {
3553
3569
  }
3554
3570
  );
3555
3571
  }
3556
- function No(t) {
3572
+ function Lo(t) {
3557
3573
  let e, n, r, i, o, s, l;
3558
- return n = new fo({}), s = new it({}), s.$on("click", function() {
3574
+ return n = new _o({}), s = new ot({}), s.$on("click", function() {
3559
3575
  fe(
3560
3576
  /*onClose*/
3561
3577
  t[1]
@@ -3581,9 +3597,9 @@ function No(t) {
3581
3597
  }
3582
3598
  };
3583
3599
  }
3584
- function Uo(t) {
3600
+ function So(t) {
3585
3601
  let e, n, r;
3586
- return n = new Yi({}), {
3602
+ return n = new Ki({}), {
3587
3603
  c() {
3588
3604
  e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-stripe-elements-container svelte-8jsoa8");
3589
3605
  },
@@ -3602,11 +3618,11 @@ function Uo(t) {
3602
3618
  }
3603
3619
  };
3604
3620
  }
3605
- function Ro(t) {
3621
+ function Mo(t) {
3606
3622
  let e;
3607
3623
  return {
3608
3624
  c() {
3609
- e = H("Pay");
3625
+ e = j("Pay");
3610
3626
  },
3611
3627
  m(n, r) {
3612
3628
  g(n, e, r);
@@ -3618,11 +3634,11 @@ function Ro(t) {
3618
3634
  }
3619
3635
  };
3620
3636
  }
3621
- function Lo(t) {
3637
+ function Do(t) {
3622
3638
  let e;
3623
3639
  return {
3624
3640
  c() {
3625
- e = H("Start Trial");
3641
+ e = j("Start Trial");
3626
3642
  },
3627
3643
  m(n, r) {
3628
3644
  g(n, e, r);
@@ -3634,9 +3650,9 @@ function Lo(t) {
3634
3650
  }
3635
3651
  };
3636
3652
  }
3637
- function So(t) {
3653
+ function Bo(t) {
3638
3654
  let e, n;
3639
- return e = new cn({}), {
3655
+ return e = new un({}), {
3640
3656
  c() {
3641
3657
  k(e.$$.fragment);
3642
3658
  },
@@ -3654,9 +3670,9 @@ function So(t) {
3654
3670
  }
3655
3671
  };
3656
3672
  }
3657
- function Mo(t) {
3673
+ function Co(t) {
3658
3674
  let e, n, r, i;
3659
- const o = [So, Lo, Ro], s = [];
3675
+ const o = [Bo, Do, Mo], s = [];
3660
3676
  function l(a, c) {
3661
3677
  var f, u;
3662
3678
  return (
@@ -3694,16 +3710,16 @@ function Mo(t) {
3694
3710
  }
3695
3711
  };
3696
3712
  }
3697
- function Do(t) {
3713
+ function Fo(t) {
3698
3714
  let e, n;
3699
- return e = new nt({
3715
+ return e = new rt({
3700
3716
  props: {
3701
3717
  disabled: (
3702
3718
  /*processing*/
3703
3719
  t[0]
3704
3720
  ),
3705
3721
  testId: "PayButton",
3706
- $$slots: { default: [Mo] },
3722
+ $$slots: { default: [Co] },
3707
3723
  $$scope: { ctx: t }
3708
3724
  }
3709
3725
  }), {
@@ -3731,11 +3747,11 @@ function Do(t) {
3731
3747
  }
3732
3748
  };
3733
3749
  }
3734
- function Bo(t) {
3750
+ function Ho(t) {
3735
3751
  let e, n;
3736
- return e = new Te({
3752
+ return e = new Ae({
3737
3753
  props: {
3738
- $$slots: { default: [Do] },
3754
+ $$slots: { default: [Fo] },
3739
3755
  $$scope: { ctx: t }
3740
3756
  }
3741
3757
  }), {
@@ -3761,16 +3777,16 @@ function Bo(t) {
3761
3777
  }
3762
3778
  };
3763
3779
  }
3764
- function Co(t) {
3780
+ function jo(t) {
3765
3781
  let e, n, r, i;
3766
3782
  return e = new de({
3767
3783
  props: {
3768
- $$slots: { default: [Uo] },
3784
+ $$slots: { default: [So] },
3769
3785
  $$scope: { ctx: t }
3770
3786
  }
3771
- }), r = new rt({
3787
+ }), r = new it({
3772
3788
  props: {
3773
- $$slots: { default: [Bo] },
3789
+ $$slots: { default: [Ho] },
3774
3790
  $$scope: { ctx: t }
3775
3791
  }
3776
3792
  }), {
@@ -3799,9 +3815,9 @@ function Co(t) {
3799
3815
  }
3800
3816
  };
3801
3817
  }
3802
- function Fo(t) {
3818
+ function xo(t) {
3803
3819
  let e, n, r, i;
3804
- const o = [Oo, Ao], s = [];
3820
+ const o = [Ro, Uo], s = [];
3805
3821
  function l(a, c) {
3806
3822
  return (
3807
3823
  /*stripe*/
@@ -3833,7 +3849,7 @@ function Fo(t) {
3833
3849
  }
3834
3850
  };
3835
3851
  }
3836
- function jo(t, e, n) {
3852
+ function qo(t, e, n) {
3837
3853
  let { onClose: r } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e, { productDetails: a } = e, { purchaseOptionToUse: c } = e, { brandingInfo: f } = e;
3838
3854
  const u = s.data.client_secret;
3839
3855
  let m = null, h, y;
@@ -3841,7 +3857,7 @@ function jo(t, e, n) {
3841
3857
  const P = s.data.publishable_api_key, B = s.data.stripe_account_id;
3842
3858
  if (!P || !B)
3843
3859
  throw new Error("Stripe publishable key or account ID not found");
3844
- n(5, m = await ro(P, { stripeAccount: B }));
3860
+ n(5, m = await so(P, { stripeAccount: B }));
3845
3861
  });
3846
3862
  const T = async () => {
3847
3863
  if (l || !m || !y) return;
@@ -3851,7 +3867,7 @@ function jo(t, e, n) {
3851
3867
  redirect: "if_required"
3852
3868
  });
3853
3869
  P.error ? (n(0, l = !1), o(new x(K.StripeError, P.error.message))) : i();
3854
- }, w = new lt(f == null ? void 0 : f.appearance);
3870
+ }, w = new at(f == null ? void 0 : f.appearance);
3855
3871
  let O = w.shape, C = w.formColors;
3856
3872
  function E(P) {
3857
3873
  h = P, n(4, h);
@@ -3879,13 +3895,13 @@ function jo(t, e, n) {
3879
3895
  E
3880
3896
  ];
3881
3897
  }
3882
- class Ho extends D {
3898
+ class Go extends D {
3883
3899
  constructor(e) {
3884
3900
  super(), M(
3885
3901
  this,
3886
3902
  e,
3887
- jo,
3888
- Fo,
3903
+ qo,
3904
+ xo,
3889
3905
  S,
3890
3906
  {
3891
3907
  onClose: 1,
@@ -3897,25 +3913,25 @@ class Ho extends D {
3897
3913
  purchaseOptionToUse: 3,
3898
3914
  brandingInfo: 13
3899
3915
  },
3900
- To
3916
+ No
3901
3917
  );
3902
3918
  }
3903
3919
  }
3904
- function xo(t) {
3920
+ function Vo(t) {
3905
3921
  return t.trim() === "" ? "You need to provide your email address to continue." : t.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
3906
3922
  }
3907
- function qo(t) {
3923
+ function Yo(t) {
3908
3924
  if (t && !t.match(/^[A-Z]{3}$/)) {
3909
3925
  const e = `Currency code ${t} is not valid. Please provide a valid ISO 4217 currency code.`;
3910
- throw j.errorLog(e), new Q(X.ConfigurationError, e);
3926
+ throw H.errorLog(e), new Q(X.ConfigurationError, e);
3911
3927
  }
3912
3928
  }
3913
- function Go(t) {
3929
+ function zo(t) {
3914
3930
  F(t, "svelte-yf01ty", ".container.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;flex-grow:1}form.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-yf01ty.svelte-yf01ty{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-yf01ty.svelte-yf01ty{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-yf01ty input.svelte-yf01ty{border-color:var(--rc-color-error)}.form-error.svelte-yf01ty.svelte-yf01ty{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-yf01ty.svelte-yf01ty{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:var(--rc-shape-input-border-radius);font-size:16px;height:48px;padding:6px 14px;background:var(--rc-color-input-background);color:inherit}input.svelte-yf01ty.svelte-yf01ty:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3915
3931
  }
3916
- function Vo(t) {
3932
+ function Wo(t) {
3917
3933
  let e, n, r, i;
3918
- return r = new it({}), r.$on("click", function() {
3934
+ return r = new ot({}), r.$on("click", function() {
3919
3935
  fe(
3920
3936
  /*onClose*/
3921
3937
  t[0]
@@ -3941,11 +3957,11 @@ function Vo(t) {
3941
3957
  }
3942
3958
  };
3943
3959
  }
3944
- function St(t) {
3960
+ function Mt(t) {
3945
3961
  let e, n;
3946
3962
  return {
3947
3963
  c() {
3948
- e = I("div"), n = H(
3964
+ e = I("div"), n = j(
3949
3965
  /*error*/
3950
3966
  t[2]
3951
3967
  ), b(e, "class", "form-error svelte-yf01ty");
@@ -3966,10 +3982,10 @@ function St(t) {
3966
3982
  }
3967
3983
  };
3968
3984
  }
3969
- function Yo(t) {
3985
+ function Ko(t) {
3970
3986
  let e, n, r, i, o, s, l, a, c, f = (
3971
3987
  /*error*/
3972
- t[2] && St(t)
3988
+ t[2] && Mt(t)
3973
3989
  );
3974
3990
  return {
3975
3991
  c() {
@@ -3977,11 +3993,11 @@ function Yo(t) {
3977
3993
  t[4] + " svelte-yf01ty"), b(e, "class", "form-container svelte-yf01ty");
3978
3994
  },
3979
3995
  m(u, m) {
3980
- g(u, e, m), L(e, n), L(e, r), L(e, i), L(i, o), yt(
3996
+ g(u, e, m), L(e, n), L(e, r), L(e, i), L(i, o), Et(
3981
3997
  o,
3982
3998
  /*email*/
3983
3999
  t[3]
3984
- ), L(e, l), f && f.m(e, null), a || (c = $e(
4000
+ ), L(e, l), f && f.m(e, null), a || (c = ke(
3985
4001
  o,
3986
4002
  "input",
3987
4003
  /*input_input_handler*/
@@ -3991,25 +4007,25 @@ function Yo(t) {
3991
4007
  p(u, m) {
3992
4008
  m & /*email*/
3993
4009
  8 && o.value !== /*email*/
3994
- u[3] && yt(
4010
+ u[3] && Et(
3995
4011
  o,
3996
4012
  /*email*/
3997
4013
  u[3]
3998
4014
  ), m & /*inputClass*/
3999
4015
  16 && s !== (s = "form-input " + /*inputClass*/
4000
4016
  u[4] + " svelte-yf01ty") && b(i, "class", s), /*error*/
4001
- u[2] ? f ? f.p(u, m) : (f = St(u), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
4017
+ u[2] ? f ? f.p(u, m) : (f = Mt(u), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
4002
4018
  },
4003
4019
  d(u) {
4004
4020
  u && _(e), f && f.d(), a = !1, c();
4005
4021
  }
4006
4022
  };
4007
4023
  }
4008
- function zo(t) {
4024
+ function Qo(t) {
4009
4025
  let e;
4010
4026
  return {
4011
4027
  c() {
4012
- e = H("Continue");
4028
+ e = j("Continue");
4013
4029
  },
4014
4030
  m(n, r) {
4015
4031
  g(n, e, r);
@@ -4021,9 +4037,9 @@ function zo(t) {
4021
4037
  }
4022
4038
  };
4023
4039
  }
4024
- function Wo(t) {
4040
+ function Xo(t) {
4025
4041
  let e, n;
4026
- return e = new cn({}), {
4042
+ return e = new un({}), {
4027
4043
  c() {
4028
4044
  k(e.$$.fragment);
4029
4045
  },
@@ -4041,9 +4057,9 @@ function Wo(t) {
4041
4057
  }
4042
4058
  };
4043
4059
  }
4044
- function Ko(t) {
4060
+ function Zo(t) {
4045
4061
  let e, n, r, i;
4046
- const o = [Wo, zo], s = [];
4062
+ const o = [Xo, Qo], s = [];
4047
4063
  function l(a, c) {
4048
4064
  return (
4049
4065
  /*processing*/
@@ -4074,16 +4090,16 @@ function Ko(t) {
4074
4090
  }
4075
4091
  };
4076
4092
  }
4077
- function Qo(t) {
4093
+ function Jo(t) {
4078
4094
  let e, n;
4079
- return e = new nt({
4095
+ return e = new rt({
4080
4096
  props: {
4081
4097
  disabled: (
4082
4098
  /*processing*/
4083
4099
  t[1]
4084
4100
  ),
4085
4101
  type: "submit",
4086
- $$slots: { default: [Ko] },
4102
+ $$slots: { default: [Zo] },
4087
4103
  $$scope: { ctx: t }
4088
4104
  }
4089
4105
  }), {
@@ -4111,11 +4127,11 @@ function Qo(t) {
4111
4127
  }
4112
4128
  };
4113
4129
  }
4114
- function Xo(t) {
4130
+ function es(t) {
4115
4131
  let e, n;
4116
- return e = new Te({
4132
+ return e = new Ae({
4117
4133
  props: {
4118
- $$slots: { default: [Qo] },
4134
+ $$slots: { default: [Jo] },
4119
4135
  $$scope: { ctx: t }
4120
4136
  }
4121
4137
  }), {
@@ -4141,21 +4157,21 @@ function Xo(t) {
4141
4157
  }
4142
4158
  };
4143
4159
  }
4144
- function Zo(t) {
4160
+ function ts(t) {
4145
4161
  let e, n, r, i, o, s, l, a, c, f;
4146
- return n = new ot({
4162
+ return n = new st({
4147
4163
  props: {
4148
- $$slots: { default: [Vo] },
4164
+ $$slots: { default: [Wo] },
4149
4165
  $$scope: { ctx: t }
4150
4166
  }
4151
4167
  }), o = new de({
4152
4168
  props: {
4153
- $$slots: { default: [Yo] },
4169
+ $$slots: { default: [Ko] },
4154
4170
  $$scope: { ctx: t }
4155
4171
  }
4156
- }), l = new rt({
4172
+ }), l = new it({
4157
4173
  props: {
4158
- $$slots: { default: [Xo] },
4174
+ $$slots: { default: [es] },
4159
4175
  $$scope: { ctx: t }
4160
4176
  }
4161
4177
  }), {
@@ -4163,7 +4179,7 @@ function Zo(t) {
4163
4179
  e = I("div"), k(n.$$.fragment), r = U(), i = I("form"), k(o.$$.fragment), s = U(), k(l.$$.fragment), b(i, "class", "svelte-yf01ty"), b(e, "class", "container svelte-yf01ty");
4164
4180
  },
4165
4181
  m(u, m) {
4166
- g(u, e, m), v(n, e, null), L(e, r), L(e, i), v(o, i, null), L(i, s), v(l, i, null), a = !0, c || (f = $e(i, "submit", Qt(
4182
+ g(u, e, m), v(n, e, null), L(e, r), L(e, i), v(o, i, null), L(i, s), v(l, i, null), a = !0, c || (f = ke(i, "submit", Xt(
4167
4183
  /*handleContinue*/
4168
4184
  t[5]
4169
4185
  )), c = !0);
@@ -4190,13 +4206,13 @@ function Zo(t) {
4190
4206
  }
4191
4207
  };
4192
4208
  }
4193
- function Jo(t, e, n) {
4209
+ function ns(t, e, n) {
4194
4210
  let r, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: a } = e, { lastError: c } = e;
4195
4211
  const f = async () => {
4196
- const m = xo(r);
4212
+ const m = Vo(r);
4197
4213
  m ? n(2, i = m) : s({ email: r });
4198
4214
  };
4199
- Yn(async () => {
4215
+ Wn(async () => {
4200
4216
  n(2, i = (c == null ? void 0 : c.message) ?? "");
4201
4217
  });
4202
4218
  function u() {
@@ -4219,13 +4235,13 @@ function Jo(t, e, n) {
4219
4235
  u
4220
4236
  ];
4221
4237
  }
4222
- class es extends D {
4238
+ class rs extends D {
4223
4239
  constructor(e) {
4224
4240
  super(), M(
4225
4241
  this,
4226
4242
  e,
4227
- Jo,
4228
- Zo,
4243
+ ns,
4244
+ ts,
4229
4245
  S,
4230
4246
  {
4231
4247
  onContinue: 6,
@@ -4233,14 +4249,14 @@ class es extends D {
4233
4249
  processing: 1,
4234
4250
  lastError: 7
4235
4251
  },
4236
- Go
4252
+ zo
4237
4253
  );
4238
4254
  }
4239
4255
  }
4240
- function ts(t) {
4256
+ function is(t) {
4241
4257
  F(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
4242
4258
  }
4243
- function ns(t) {
4259
+ function os(t) {
4244
4260
  let e, n;
4245
4261
  const r = (
4246
4262
  /*#slots*/
@@ -4291,21 +4307,21 @@ function ns(t) {
4291
4307
  }
4292
4308
  };
4293
4309
  }
4294
- function rs(t, e, n) {
4310
+ function ss(t, e, n) {
4295
4311
  let { $$slots: r = {}, $$scope: i } = e;
4296
4312
  return t.$$set = (o) => {
4297
4313
  "$$scope" in o && n(0, i = o.$$scope);
4298
4314
  }, [i, r];
4299
4315
  }
4300
- class is extends D {
4316
+ class ls extends D {
4301
4317
  constructor(e) {
4302
- super(), M(this, e, rs, ns, S, {}, ts);
4318
+ super(), M(this, e, ss, os, S, {}, is);
4303
4319
  }
4304
4320
  }
4305
- function os(t) {
4321
+ function as(t) {
4306
4322
  F(t, "svelte-1fufj5b", ".rcb-modal-container.svelte-1fufj5b{width:100%}.rcb-modal-main.svelte-1fufj5b{box-sizing:border-box;border-radius:var(--rc-shape-modal-border-radius);background-color:var(--rc-color-background);color:var(--rc-color-grey-text-dark);padding:40px;flex-direction:column;display:flex}@media screen and (max-width: 960px){.rcb-modal-container.svelte-1fufj5b{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-1fufj5b{min-width:300px;max-width:640px;padding:32px}}");
4307
4323
  }
4308
- function ss(t) {
4324
+ function cs(t) {
4309
4325
  let e, n, r;
4310
4326
  const i = (
4311
4327
  /*#slots*/
@@ -4367,18 +4383,18 @@ function ss(t) {
4367
4383
  }
4368
4384
  };
4369
4385
  }
4370
- function ls(t, e, n) {
4386
+ function us(t, e, n) {
4371
4387
  let { $$slots: r = {}, $$scope: i } = e, { style: o = "" } = e;
4372
4388
  return t.$$set = (s) => {
4373
4389
  "style" in s && n(0, o = s.style), "$$scope" in s && n(1, i = s.$$scope);
4374
4390
  }, [o, i, r];
4375
4391
  }
4376
- class gn extends D {
4392
+ class bn extends D {
4377
4393
  constructor(e) {
4378
- super(), M(this, e, ls, ss, S, { style: 0 }, os);
4394
+ super(), M(this, e, us, cs, S, { style: 0 }, as);
4379
4395
  }
4380
4396
  }
4381
- function as(t) {
4397
+ function fs(t) {
4382
4398
  let e;
4383
4399
  const n = (
4384
4400
  /*#slots*/
@@ -4429,11 +4445,11 @@ function as(t) {
4429
4445
  }
4430
4446
  };
4431
4447
  }
4432
- function cs(t) {
4448
+ function ds(t) {
4433
4449
  let e, n;
4434
- return e = new is({
4450
+ return e = new ls({
4435
4451
  props: {
4436
- $$slots: { default: [us] },
4452
+ $$slots: { default: [ps] },
4437
4453
  $$scope: { ctx: t }
4438
4454
  }
4439
4455
  }), {
@@ -4459,7 +4475,7 @@ function cs(t) {
4459
4475
  }
4460
4476
  };
4461
4477
  }
4462
- function us(t) {
4478
+ function ps(t) {
4463
4479
  let e;
4464
4480
  const n = (
4465
4481
  /*#slots*/
@@ -4510,9 +4526,9 @@ function us(t) {
4510
4526
  }
4511
4527
  };
4512
4528
  }
4513
- function fs(t) {
4529
+ function ms(t) {
4514
4530
  let e, n, r, i;
4515
- const o = [cs, as], s = [];
4531
+ const o = [ds, fs], s = [];
4516
4532
  function l(a, c) {
4517
4533
  return (
4518
4534
  /*condition*/
@@ -4543,18 +4559,18 @@ function fs(t) {
4543
4559
  }
4544
4560
  };
4545
4561
  }
4546
- function ds(t, e, n) {
4562
+ function _s(t, e, n) {
4547
4563
  let { $$slots: r = {}, $$scope: i } = e, { condition: o = !1 } = e;
4548
4564
  return t.$$set = (s) => {
4549
4565
  "condition" in s && n(0, o = s.condition), "$$scope" in s && n(2, i = s.$$scope);
4550
4566
  }, [o, r, i];
4551
4567
  }
4552
- class ps extends D {
4568
+ class gs extends D {
4553
4569
  constructor(e) {
4554
- super(), M(this, e, ds, fs, S, { condition: 0 });
4570
+ super(), M(this, e, _s, ms, S, { condition: 0 });
4555
4571
  }
4556
4572
  }
4557
- const ms = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
4573
+ const hs = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
4558
4574
  xmlns="http://www.w3.org/2000/svg">
4559
4575
  <g opacity="0.5" clip-path="url(#clip0_344_3390)">
4560
4576
  <path d="M7 18C5.9 18 5.01 18.9 5.01 20C5.01 21.1 5.9 22 7 22C8.1 22 9 21.1 9 20C9 18.9 8.1 18 7 18ZM1 2V4H3L6.6 11.59L5.25 14.04C5.09 14.32 5 14.65 5 15C5 16.1 5.9 17 7 17H19V15H7.42C7.28 15 7.17 14.89 7.17 14.75L7.2 14.63L8.1 13H15.55C16.3 13 16.96 12.59 17.3 11.97L20.88 5.48C20.96 5.34 21 5.17 21 5C21 4.45 20.55 4 20 4H5.21L4.27 2H1ZM17 18C15.9 18 15.01 18.9 15.01 20C15.01 21.1 15.9 22 17 22C18.1 22 19 21.1 19 20C19 18.9 18.1 18 17 18Z"
@@ -4567,14 +4583,14 @@ const ms = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
4567
4583
  </defs>
4568
4584
  </svg>
4569
4585
  `;
4570
- function _s(t) {
4586
+ function bs(t) {
4571
4587
  let e;
4572
4588
  return {
4573
4589
  c() {
4574
4590
  e = I("div"), ne(e, "color", "var(--rc-color-gray-text-dark)");
4575
4591
  },
4576
4592
  m(n, r) {
4577
- g(n, e, r), e.innerHTML = ms;
4593
+ g(n, e, r), e.innerHTML = hs;
4578
4594
  },
4579
4595
  p: A,
4580
4596
  i: A,
@@ -4584,15 +4600,15 @@ function _s(t) {
4584
4600
  }
4585
4601
  };
4586
4602
  }
4587
- class gs extends D {
4603
+ class ws extends D {
4588
4604
  constructor(e) {
4589
- super(), M(this, e, null, _s, S, {});
4605
+ super(), M(this, e, null, bs, S, {});
4590
4606
  }
4591
4607
  }
4592
- function hs(t) {
4608
+ function ys(t) {
4593
4609
  F(t, "svelte-1ny4y2s", "div.svelte-1ny4y2s{background-color:var(--rc-color-warning);color:rgba(0,0,0,1);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4594
4610
  }
4595
- function bs(t) {
4611
+ function Es(t) {
4596
4612
  let e;
4597
4613
  return {
4598
4614
  c() {
@@ -4609,15 +4625,15 @@ function bs(t) {
4609
4625
  }
4610
4626
  };
4611
4627
  }
4612
- class ws extends D {
4628
+ class Is extends D {
4613
4629
  constructor(e) {
4614
- super(), M(this, e, null, bs, S, {}, hs);
4630
+ super(), M(this, e, null, Es, S, {}, ys);
4615
4631
  }
4616
4632
  }
4617
- function ys(t) {
4633
+ function vs(t) {
4618
4634
  F(t, "svelte-1iuls9l", ".rcb-ui-layout.svelte-1iuls9l{width:100vw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1iuls9l{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1iuls9l{overflow-y:scroll;justify-content:flex-start;padding:16px 0}}");
4619
4635
  }
4620
- function Es(t) {
4636
+ function $s(t) {
4621
4637
  let e, n;
4622
4638
  const r = (
4623
4639
  /*#slots*/
@@ -4679,22 +4695,22 @@ function Es(t) {
4679
4695
  }
4680
4696
  };
4681
4697
  }
4682
- function Is(t, e, n) {
4698
+ function ks(t, e, n) {
4683
4699
  let { $$slots: r = {}, $$scope: i } = e, { style: o = "" } = e;
4684
4700
  return t.$$set = (s) => {
4685
4701
  "style" in s && n(0, o = s.style), "$$scope" in s && n(1, i = s.$$scope);
4686
4702
  }, [o, i, r];
4687
4703
  }
4688
- class vs extends D {
4704
+ class Ps extends D {
4689
4705
  constructor(e) {
4690
- super(), M(this, e, Is, Es, S, { style: 0 }, ys);
4706
+ super(), M(this, e, ks, $s, S, { style: 0 }, vs);
4691
4707
  }
4692
4708
  }
4693
- function $s(t) {
4709
+ function Ts(t) {
4694
4710
  F(t, "svelte-1sfb5if", `.rcb-ui-container.svelte-1sfb5if{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4695
4711
  Cantarell, "Open Sans", "Helvetica Neue", sans-serif}`);
4696
4712
  }
4697
- function ks(t) {
4713
+ function As(t) {
4698
4714
  let e, n;
4699
4715
  const r = (
4700
4716
  /*#slots*/
@@ -4756,22 +4772,22 @@ function ks(t) {
4756
4772
  }
4757
4773
  };
4758
4774
  }
4759
- function Ps(t, e, n) {
4775
+ function Os(t, e, n) {
4760
4776
  let { $$slots: r = {}, $$scope: i } = e, { style: o = "" } = e;
4761
4777
  return t.$$set = (s) => {
4762
4778
  "style" in s && n(0, o = s.style), "$$scope" in s && n(1, i = s.$$scope);
4763
4779
  }, [o, i, r];
4764
4780
  }
4765
- class Ts extends D {
4781
+ class Ns extends D {
4766
4782
  constructor(e) {
4767
- super(), M(this, e, Ps, ks, S, { style: 0 }, $s);
4783
+ super(), M(this, e, Os, As, S, { style: 0 }, Ts);
4768
4784
  }
4769
4785
  }
4770
- function As(t) {
4786
+ function Us(t) {
4771
4787
  F(t, "svelte-17dr902", ".rcb-ui-aside.svelte-17dr902{margin-right:16px;flex:320px 1 0;max-width:480px}@media screen and (max-width: 960px){.rcb-ui-aside.svelte-17dr902{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}}");
4772
4788
  }
4773
- const Os = (t) => ({}), Mt = (t) => ({});
4774
- function Ns(t) {
4789
+ const Rs = (t) => ({}), Dt = (t) => ({});
4790
+ function Ls(t) {
4775
4791
  let e, n;
4776
4792
  const r = (
4777
4793
  /*#slots*/
@@ -4781,7 +4797,7 @@ function Ns(t) {
4781
4797
  t,
4782
4798
  /*$$scope*/
4783
4799
  t[3],
4784
- Mt
4800
+ Dt
4785
4801
  ), o = (
4786
4802
  /*#slots*/
4787
4803
  t[2].default
@@ -4812,12 +4828,12 @@ function Ns(t) {
4812
4828
  /*$$scope*/
4813
4829
  l[3],
4814
4830
  a,
4815
- Os
4831
+ Rs
4816
4832
  ) : Y(
4817
4833
  /*$$scope*/
4818
4834
  l[3]
4819
4835
  ),
4820
- Mt
4836
+ Dt
4821
4837
  ), s && s.p && (!n || a & /*$$scope*/
4822
4838
  8) && V(
4823
4839
  s,
@@ -4849,11 +4865,11 @@ function Ns(t) {
4849
4865
  }
4850
4866
  };
4851
4867
  }
4852
- function Us(t) {
4868
+ function Ss(t) {
4853
4869
  let e, n, r;
4854
- return n = new gn({
4870
+ return n = new bn({
4855
4871
  props: {
4856
- $$slots: { default: [Ns] },
4872
+ $$slots: { default: [Ls] },
4857
4873
  $$scope: { ctx: t }
4858
4874
  }
4859
4875
  }), {
@@ -4884,22 +4900,22 @@ function Us(t) {
4884
4900
  }
4885
4901
  };
4886
4902
  }
4887
- function Rs(t, e, n) {
4888
- let { $$slots: r = {}, $$scope: i } = e, { brandingAppearance: o = void 0 } = e, s = new lt(o).productInfoStyleVars;
4903
+ function Ms(t, e, n) {
4904
+ let { $$slots: r = {}, $$scope: i } = e, { brandingAppearance: o = void 0 } = e, s = new at(o).productInfoStyleVars;
4889
4905
  return t.$$set = (l) => {
4890
4906
  "brandingAppearance" in l && n(1, o = l.brandingAppearance), "$$scope" in l && n(3, i = l.$$scope);
4891
4907
  }, [s, o, r, i];
4892
4908
  }
4893
- class Ls extends D {
4909
+ class Ds extends D {
4894
4910
  constructor(e) {
4895
- super(), M(this, e, Rs, Us, S, { brandingAppearance: 1 }, As);
4911
+ super(), M(this, e, Ms, Ss, S, { brandingAppearance: 1 }, Us);
4896
4912
  }
4897
4913
  }
4898
- function Ss(t) {
4914
+ function Bs(t) {
4899
4915
  F(t, "svelte-vpgys", ".rcb-ui-main.svelte-vpgys{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-main.svelte-vpgys{flex:none;max-width:none;min-width:100%}}");
4900
4916
  }
4901
- const Ms = (t) => ({}), Dt = (t) => ({});
4902
- function Ds(t) {
4917
+ const Cs = (t) => ({}), Bt = (t) => ({});
4918
+ function Fs(t) {
4903
4919
  let e, n;
4904
4920
  const r = (
4905
4921
  /*#slots*/
@@ -4909,7 +4925,7 @@ function Ds(t) {
4909
4925
  t,
4910
4926
  /*$$scope*/
4911
4927
  t[3],
4912
- Dt
4928
+ Bt
4913
4929
  ), o = (
4914
4930
  /*#slots*/
4915
4931
  t[2].default
@@ -4940,12 +4956,12 @@ function Ds(t) {
4940
4956
  /*$$scope*/
4941
4957
  l[3],
4942
4958
  a,
4943
- Ms
4959
+ Cs
4944
4960
  ) : Y(
4945
4961
  /*$$scope*/
4946
4962
  l[3]
4947
4963
  ),
4948
- Dt
4964
+ Bt
4949
4965
  ), s && s.p && (!n || a & /*$$scope*/
4950
4966
  8) && V(
4951
4967
  s,
@@ -4977,12 +4993,12 @@ function Ds(t) {
4977
4993
  }
4978
4994
  };
4979
4995
  }
4980
- function Bs(t) {
4996
+ function Hs(t) {
4981
4997
  let e, n, r;
4982
- return n = new gn({
4998
+ return n = new bn({
4983
4999
  props: {
4984
5000
  style: "min-height: 360px;",
4985
- $$slots: { default: [Ds] },
5001
+ $$slots: { default: [Fs] },
4986
5002
  $$scope: { ctx: t }
4987
5003
  }
4988
5004
  }), {
@@ -5013,29 +5029,29 @@ function Bs(t) {
5013
5029
  }
5014
5030
  };
5015
5031
  }
5016
- function Cs(t, e, n) {
5017
- let { $$slots: r = {}, $$scope: i } = e, { brandingAppearance: o = void 0 } = e, s = new lt(o).formStyleVars;
5032
+ function js(t, e, n) {
5033
+ let { $$slots: r = {}, $$scope: i } = e, { brandingAppearance: o = void 0 } = e, s = new at(o).formStyleVars;
5018
5034
  return t.$$set = (l) => {
5019
5035
  "brandingAppearance" in l && n(1, o = l.brandingAppearance), "$$scope" in l && n(3, i = l.$$scope);
5020
5036
  }, [s, o, r, i];
5021
5037
  }
5022
- class Fs extends D {
5038
+ class xs extends D {
5023
5039
  constructor(e) {
5024
- super(), M(this, e, Cs, Bs, S, { brandingAppearance: 1 }, Ss);
5040
+ super(), M(this, e, js, Hs, S, { brandingAppearance: 1 }, Bs);
5025
5041
  }
5026
5042
  }
5027
- function Bt(t) {
5043
+ function Ct(t) {
5028
5044
  var r;
5029
5045
  let e, n;
5030
- return e = new Ls({
5046
+ return e = new Ds({
5031
5047
  props: {
5032
5048
  brandingAppearance: (
5033
5049
  /*brandingInfo*/
5034
5050
  (r = t[1]) == null ? void 0 : r.appearance
5035
5051
  ),
5036
5052
  $$slots: {
5037
- header: [Gs],
5038
- default: [js]
5053
+ header: [zs],
5054
+ default: [qs]
5039
5055
  },
5040
5056
  $$scope: { ctx: t }
5041
5057
  }
@@ -5052,7 +5068,7 @@ function Bt(t) {
5052
5068
  o & /*brandingInfo*/
5053
5069
  2 && (s.brandingAppearance = /*brandingInfo*/
5054
5070
  (l = i[1]) == null ? void 0 : l.appearance), o & /*$$scope, purchases, brandingInfo, productDetails*/
5055
- 33554454 && (s.$$scope = { dirty: o, ctx: i }), e.$set(s);
5071
+ 67108886 && (s.$$scope = { dirty: o, ctx: i }), e.$set(s);
5056
5072
  },
5057
5073
  i(i) {
5058
5074
  n || (d(e.$$.fragment, i), n = !0);
@@ -5065,10 +5081,10 @@ function Bt(t) {
5065
5081
  }
5066
5082
  };
5067
5083
  }
5068
- function Ct(t) {
5084
+ function Ft(t) {
5069
5085
  var r;
5070
5086
  let e, n;
5071
- return e = new en({
5087
+ return e = new tn({
5072
5088
  props: {
5073
5089
  productDetails: (
5074
5090
  /*productDetails*/
@@ -5110,11 +5126,11 @@ function Ct(t) {
5110
5126
  }
5111
5127
  };
5112
5128
  }
5113
- function js(t) {
5129
+ function qs(t) {
5114
5130
  let e, n, r = (
5115
5131
  /*productDetails*/
5116
5132
  t[4] && /*purchaseOptionToUse*/
5117
- t[8] && Ct(t)
5133
+ t[8] && Ft(t)
5118
5134
  );
5119
5135
  return {
5120
5136
  c() {
@@ -5127,7 +5143,7 @@ function js(t) {
5127
5143
  /*productDetails*/
5128
5144
  i[4] && /*purchaseOptionToUse*/
5129
5145
  i[8] ? r ? (r.p(i, o), o & /*productDetails*/
5130
- 16 && d(r, 1)) : (r = Ct(i), r.c(), d(r, 1), r.m(e.parentNode, e)) : r && (z(), p(r, 1, 1, () => {
5146
+ 16 && d(r, 1)) : (r = Ft(i), r.c(), d(r, 1), r.m(e.parentNode, e)) : r && (z(), p(r, 1, 1, () => {
5131
5147
  r = null;
5132
5148
  }), W());
5133
5149
  },
@@ -5142,9 +5158,9 @@ function js(t) {
5142
5158
  }
5143
5159
  };
5144
5160
  }
5145
- function Hs(t) {
5161
+ function Gs(t) {
5146
5162
  let e, n;
5147
- return e = new gs({}), {
5163
+ return e = new ws({}), {
5148
5164
  c() {
5149
5165
  k(e.$$.fragment);
5150
5166
  },
@@ -5162,9 +5178,9 @@ function Hs(t) {
5162
5178
  }
5163
5179
  };
5164
5180
  }
5165
- function xs(t) {
5181
+ function Vs(t) {
5166
5182
  let e, n;
5167
- return e = new ws({}), {
5183
+ return e = new Is({}), {
5168
5184
  c() {
5169
5185
  k(e.$$.fragment);
5170
5186
  },
@@ -5182,15 +5198,15 @@ function xs(t) {
5182
5198
  }
5183
5199
  };
5184
5200
  }
5185
- function qs(t) {
5201
+ function Ys(t) {
5186
5202
  let e, n, r, i, o, s, l;
5187
- e = new rn({
5203
+ e = new on({
5188
5204
  props: { brandingInfo: (
5189
5205
  /*brandingInfo*/
5190
5206
  t[1]
5191
5207
  ) }
5192
5208
  });
5193
- const a = [xs, Hs], c = [];
5209
+ const a = [Vs, Gs], c = [];
5194
5210
  function f(u, m) {
5195
5211
  return m & /*purchases*/
5196
5212
  4 && (r = null), r == null && (r = !!/*purchases*/
@@ -5224,12 +5240,12 @@ function qs(t) {
5224
5240
  }
5225
5241
  };
5226
5242
  }
5227
- function Gs(t) {
5243
+ function zs(t) {
5228
5244
  let e, n;
5229
- return e = new ot({
5245
+ return e = new st({
5230
5246
  props: {
5231
5247
  slot: "header",
5232
- $$slots: { default: [qs] },
5248
+ $$slots: { default: [Ys] },
5233
5249
  $$scope: { ctx: t }
5234
5250
  }
5235
5251
  }), {
@@ -5242,7 +5258,7 @@ function Gs(t) {
5242
5258
  p(r, i) {
5243
5259
  const o = {};
5244
5260
  i & /*$$scope, purchases, brandingInfo*/
5245
- 33554438 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5261
+ 67108870 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5246
5262
  },
5247
5263
  i(r) {
5248
5264
  n || (d(e.$$.fragment, r), n = !0);
@@ -5255,9 +5271,9 @@ function Gs(t) {
5255
5271
  }
5256
5272
  };
5257
5273
  }
5258
- function Ft(t) {
5274
+ function Ht(t) {
5259
5275
  let e, n;
5260
- return e = new en({
5276
+ return e = new tn({
5261
5277
  props: {
5262
5278
  productDetails: (
5263
5279
  /*productDetails*/
@@ -5294,7 +5310,7 @@ function Ft(t) {
5294
5310
  }
5295
5311
  function jt(t) {
5296
5312
  let e, n;
5297
- return e = new tt({}), {
5313
+ return e = new nt({}), {
5298
5314
  c() {
5299
5315
  k(e.$$.fragment);
5300
5316
  },
@@ -5312,9 +5328,9 @@ function jt(t) {
5312
5328
  }
5313
5329
  };
5314
5330
  }
5315
- function Ht(t) {
5331
+ function xt(t) {
5316
5332
  let e, n;
5317
- return e = new es({
5333
+ return e = new rs({
5318
5334
  props: {
5319
5335
  onContinue: (
5320
5336
  /*handleContinue*/
@@ -5359,9 +5375,9 @@ function Ht(t) {
5359
5375
  }
5360
5376
  };
5361
5377
  }
5362
- function xt(t) {
5378
+ function qt(t) {
5363
5379
  let e, n;
5364
- return e = new Ho({
5380
+ return e = new Go({
5365
5381
  props: {
5366
5382
  paymentInfoCollectionMetadata: (
5367
5383
  /*paymentInfoCollectionMetadata*/
@@ -5426,9 +5442,9 @@ function xt(t) {
5426
5442
  }
5427
5443
  };
5428
5444
  }
5429
- function qt(t) {
5445
+ function Gt(t) {
5430
5446
  let e, n;
5431
- return e = new tt({}), {
5447
+ return e = new nt({}), {
5432
5448
  c() {
5433
5449
  k(e.$$.fragment);
5434
5450
  },
@@ -5446,10 +5462,10 @@ function qt(t) {
5446
5462
  }
5447
5463
  };
5448
5464
  }
5449
- function Gt(t) {
5465
+ function Vt(t) {
5450
5466
  var r;
5451
5467
  let e, n;
5452
- return e = new Ni({
5468
+ return e = new Li({
5453
5469
  props: {
5454
5470
  brandingInfo: (
5455
5471
  /*brandingInfo*/
@@ -5503,9 +5519,9 @@ function Gt(t) {
5503
5519
  }
5504
5520
  };
5505
5521
  }
5506
- function Vt(t) {
5522
+ function Yt(t) {
5507
5523
  let e, n;
5508
- return e = new ji({
5524
+ return e = new qi({
5509
5525
  props: {
5510
5526
  productDetails: (
5511
5527
  /*productDetails*/
@@ -5546,12 +5562,12 @@ function Vt(t) {
5546
5562
  }
5547
5563
  };
5548
5564
  }
5549
- function Vs(t) {
5565
+ function Ws(t) {
5550
5566
  let e, n, r, i, o, s, l, a, c = (
5551
5567
  /*state*/
5552
5568
  t[7] === "present-offer" && /*productDetails*/
5553
5569
  t[4] && /*purchaseOptionToUse*/
5554
- t[8] && Ft(t)
5570
+ t[8] && Ht(t)
5555
5571
  ), f = (
5556
5572
  /*state*/
5557
5573
  t[7] === "present-offer" && !/*productDetails*/
@@ -5559,23 +5575,23 @@ function Vs(t) {
5559
5575
  ), u = (
5560
5576
  /*state*/
5561
5577
  (t[7] === "needs-auth-info" || /*state*/
5562
- t[7] === "processing-auth-info") && Ht(t)
5578
+ t[7] === "processing-auth-info") && xt(t)
5563
5579
  ), m = (
5564
5580
  /*paymentInfoCollectionMetadata*/
5565
5581
  t[5] && /*state*/
5566
5582
  (t[7] === "needs-payment-info" || /*state*/
5567
5583
  t[7] === "polling-purchase-status") && /*productDetails*/
5568
5584
  t[4] && /*purchaseOptionToUse*/
5569
- t[8] && xt(t)
5585
+ t[8] && qt(t)
5570
5586
  ), h = (
5571
5587
  /*state*/
5572
- t[7] === "loading" && qt()
5588
+ t[7] === "loading" && Gt()
5573
5589
  ), y = (
5574
5590
  /*state*/
5575
- t[7] === "error" && Gt(t)
5591
+ t[7] === "error" && Vt(t)
5576
5592
  ), T = (
5577
5593
  /*state*/
5578
- t[7] === "success" && Vt(t)
5594
+ t[7] === "success" && Yt(t)
5579
5595
  );
5580
5596
  return {
5581
5597
  c() {
@@ -5589,7 +5605,7 @@ function Vs(t) {
5589
5605
  w[7] === "present-offer" && /*productDetails*/
5590
5606
  w[4] && /*purchaseOptionToUse*/
5591
5607
  w[8] ? c ? (c.p(w, O), O & /*state, productDetails*/
5592
- 144 && d(c, 1)) : (c = Ft(w), c.c(), d(c, 1), c.m(e.parentNode, e)) : c && (z(), p(c, 1, 1, () => {
5608
+ 144 && d(c, 1)) : (c = Ht(w), c.c(), d(c, 1), c.m(e.parentNode, e)) : c && (z(), p(c, 1, 1, () => {
5593
5609
  c = null;
5594
5610
  }), W()), /*state*/
5595
5611
  w[7] === "present-offer" && !/*productDetails*/
@@ -5599,7 +5615,7 @@ function Vs(t) {
5599
5615
  }), W()), /*state*/
5600
5616
  w[7] === "needs-auth-info" || /*state*/
5601
5617
  w[7] === "processing-auth-info" ? u ? (u.p(w, O), O & /*state*/
5602
- 128 && d(u, 1)) : (u = Ht(w), u.c(), d(u, 1), u.m(r.parentNode, r)) : u && (z(), p(u, 1, 1, () => {
5618
+ 128 && d(u, 1)) : (u = xt(w), u.c(), d(u, 1), u.m(r.parentNode, r)) : u && (z(), p(u, 1, 1, () => {
5603
5619
  u = null;
5604
5620
  }), W()), /*paymentInfoCollectionMetadata*/
5605
5621
  w[5] && /*state*/
@@ -5607,19 +5623,19 @@ function Vs(t) {
5607
5623
  w[7] === "polling-purchase-status") && /*productDetails*/
5608
5624
  w[4] && /*purchaseOptionToUse*/
5609
5625
  w[8] ? m ? (m.p(w, O), O & /*paymentInfoCollectionMetadata, state, productDetails*/
5610
- 176 && d(m, 1)) : (m = xt(w), m.c(), d(m, 1), m.m(i.parentNode, i)) : m && (z(), p(m, 1, 1, () => {
5626
+ 176 && d(m, 1)) : (m = qt(w), m.c(), d(m, 1), m.m(i.parentNode, i)) : m && (z(), p(m, 1, 1, () => {
5611
5627
  m = null;
5612
5628
  }), W()), /*state*/
5613
5629
  w[7] === "loading" ? h ? O & /*state*/
5614
- 128 && d(h, 1) : (h = qt(), h.c(), d(h, 1), h.m(o.parentNode, o)) : h && (z(), p(h, 1, 1, () => {
5630
+ 128 && d(h, 1) : (h = Gt(), h.c(), d(h, 1), h.m(o.parentNode, o)) : h && (z(), p(h, 1, 1, () => {
5615
5631
  h = null;
5616
5632
  }), W()), /*state*/
5617
5633
  w[7] === "error" ? y ? (y.p(w, O), O & /*state*/
5618
- 128 && d(y, 1)) : (y = Gt(w), y.c(), d(y, 1), y.m(s.parentNode, s)) : y && (z(), p(y, 1, 1, () => {
5634
+ 128 && d(y, 1)) : (y = Vt(w), y.c(), d(y, 1), y.m(s.parentNode, s)) : y && (z(), p(y, 1, 1, () => {
5619
5635
  y = null;
5620
5636
  }), W()), /*state*/
5621
5637
  w[7] === "success" ? T ? (T.p(w, O), O & /*state*/
5622
- 128 && d(T, 1)) : (T = Vt(w), T.c(), d(T, 1), T.m(l.parentNode, l)) : T && (z(), p(T, 1, 1, () => {
5638
+ 128 && d(T, 1)) : (T = Yt(w), T.c(), d(T, 1), T.m(l.parentNode, l)) : T && (z(), p(T, 1, 1, () => {
5623
5639
  T = null;
5624
5640
  }), W());
5625
5641
  },
@@ -5634,7 +5650,7 @@ function Vs(t) {
5634
5650
  }
5635
5651
  };
5636
5652
  }
5637
- function Ys(t) {
5653
+ function Ks(t) {
5638
5654
  var s;
5639
5655
  let e = (
5640
5656
  /*statesWhereOfferDetailsAreShown*/
@@ -5642,14 +5658,14 @@ function Ys(t) {
5642
5658
  /*state*/
5643
5659
  t[7]
5644
5660
  )
5645
- ), n, r, i, o = e && Bt(t);
5646
- return r = new Fs({
5661
+ ), n, r, i, o = e && Ct(t);
5662
+ return r = new xs({
5647
5663
  props: {
5648
5664
  brandingAppearance: (
5649
5665
  /*brandingInfo*/
5650
5666
  (s = t[1]) == null ? void 0 : s.appearance
5651
5667
  ),
5652
- $$slots: { default: [Vs] },
5668
+ $$slots: { default: [Ws] },
5653
5669
  $$scope: { ctx: t }
5654
5670
  }
5655
5671
  }), {
@@ -5667,14 +5683,14 @@ function Ys(t) {
5667
5683
  /*state*/
5668
5684
  l[7]
5669
5685
  )), e ? o ? (o.p(l, a), a & /*state*/
5670
- 128 && d(o, 1)) : (o = Bt(l), o.c(), d(o, 1), o.m(n.parentNode, n)) : o && (z(), p(o, 1, 1, () => {
5686
+ 128 && d(o, 1)) : (o = Ct(l), o.c(), d(o, 1), o.m(n.parentNode, n)) : o && (z(), p(o, 1, 1, () => {
5671
5687
  o = null;
5672
5688
  }), W());
5673
5689
  const c = {};
5674
5690
  a & /*brandingInfo*/
5675
5691
  2 && (c.brandingAppearance = /*brandingInfo*/
5676
5692
  (f = l[1]) == null ? void 0 : f.appearance), a & /*$$scope, productDetails, brandingInfo, state, lastError, paymentInfoCollectionMetadata*/
5677
- 33554674 && (c.$$scope = { dirty: a, ctx: l }), r.$set(c);
5693
+ 67109106 && (c.$$scope = { dirty: a, ctx: l }), r.$set(c);
5678
5694
  },
5679
5695
  i(l) {
5680
5696
  i || (d(o), d(r.$$.fragment, l), i = !0);
@@ -5687,15 +5703,15 @@ function Ys(t) {
5687
5703
  }
5688
5704
  };
5689
5705
  }
5690
- function zs(t) {
5706
+ function Qs(t) {
5691
5707
  let e, n;
5692
- return e = new vs({
5708
+ return e = new Ps({
5693
5709
  props: {
5694
5710
  style: (
5695
5711
  /*colorVariables*/
5696
5712
  t[3]
5697
5713
  ),
5698
- $$slots: { default: [Ys] },
5714
+ $$slots: { default: [Ks] },
5699
5715
  $$scope: { ctx: t }
5700
5716
  }
5701
5717
  }), {
@@ -5710,7 +5726,7 @@ function zs(t) {
5710
5726
  i & /*colorVariables*/
5711
5727
  8 && (o.style = /*colorVariables*/
5712
5728
  r[3]), i & /*$$scope, brandingInfo, productDetails, state, lastError, paymentInfoCollectionMetadata, purchases*/
5713
- 33554678 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5729
+ 67109110 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5714
5730
  },
5715
5731
  i(r) {
5716
5732
  n || (d(e.$$.fragment, r), n = !0);
@@ -5723,15 +5739,15 @@ function zs(t) {
5723
5739
  }
5724
5740
  };
5725
5741
  }
5726
- function Ws(t) {
5742
+ function Xs(t) {
5727
5743
  let e, n;
5728
- return e = new ps({
5744
+ return e = new gs({
5729
5745
  props: {
5730
5746
  condition: (
5731
5747
  /*asModal*/
5732
5748
  t[0]
5733
5749
  ),
5734
- $$slots: { default: [zs] },
5750
+ $$slots: { default: [Qs] },
5735
5751
  $$scope: { ctx: t }
5736
5752
  }
5737
5753
  }), {
@@ -5746,7 +5762,7 @@ function Ws(t) {
5746
5762
  i & /*asModal*/
5747
5763
  1 && (o.condition = /*asModal*/
5748
5764
  r[0]), i & /*$$scope, colorVariables, brandingInfo, productDetails, state, lastError, paymentInfoCollectionMetadata, purchases*/
5749
- 33554686 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5765
+ 67109118 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5750
5766
  },
5751
5767
  i(r) {
5752
5768
  n || (d(e.$$.fragment, r), n = !0);
@@ -5759,11 +5775,11 @@ function Ws(t) {
5759
5775
  }
5760
5776
  };
5761
5777
  }
5762
- function Ks(t) {
5778
+ function Zs(t) {
5763
5779
  let e, n;
5764
- return e = new Ts({
5780
+ return e = new Ns({
5765
5781
  props: {
5766
- $$slots: { default: [Ws] },
5782
+ $$slots: { default: [Xs] },
5767
5783
  $$scope: { ctx: t }
5768
5784
  }
5769
5785
  }), {
@@ -5776,7 +5792,7 @@ function Ks(t) {
5776
5792
  p(r, [i]) {
5777
5793
  const o = {};
5778
5794
  i & /*$$scope, asModal, colorVariables, brandingInfo, productDetails, state, lastError, paymentInfoCollectionMetadata, purchases*/
5779
- 33554687 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5795
+ 67109119 && (o.$$scope = { dirty: i, ctx: r }), e.$set(o);
5780
5796
  },
5781
5797
  i(r) {
5782
5798
  n || (d(e.$$.fragment, r), n = !0);
@@ -5789,11 +5805,11 @@ function Ks(t) {
5789
5805
  }
5790
5806
  };
5791
5807
  }
5792
- function Qs(t, e, n) {
5808
+ function Js(t, e, n) {
5793
5809
  let { asModal: r = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { brandingInfo: a } = e, { onFinished: c } = e, { onError: f } = e, { onClose: u } = e, { purchases: m } = e, { purchaseOperationHelper: h } = e, y = "", T = null, w = null, O = null;
5794
5810
  const C = s.rcBillingProduct.identifier ?? null, E = s.rcBillingProduct.defaultPurchaseOption, P = l || E;
5795
- let B = "present-offer";
5796
- const Ae = [
5811
+ let B = "present-offer", pe = null;
5812
+ const Oe = [
5797
5813
  "present-offer",
5798
5814
  "needs-auth-info",
5799
5815
  "processing-auth-info",
@@ -5802,20 +5818,20 @@ function Qs(t, e, n) {
5802
5818
  "loading"
5803
5819
  ];
5804
5820
  Fe(async () => {
5805
- if (n(4, T = s.rcBillingProduct), n(3, y = _n(a == null ? void 0 : a.appearance)), B === "present-offer") {
5806
- i ? at() : n(7, B = "needs-auth-info");
5821
+ if (n(4, T = s.rcBillingProduct), n(3, y = hn(a == null ? void 0 : a.appearance)), B === "present-offer") {
5822
+ i ? ct() : n(7, B = "needs-auth-info");
5807
5823
  return;
5808
5824
  }
5809
5825
  });
5810
- const Oe = () => {
5826
+ const An = () => {
5811
5827
  u();
5812
- }, at = () => {
5828
+ }, ct = () => {
5813
5829
  if (C === null) {
5814
- pe(new x(K.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5830
+ me(new x(K.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5815
5831
  return;
5816
5832
  } else B === "present-offer" && n(7, B = "loading");
5817
5833
  if (!i) {
5818
- pe(new x(K.MissingEmailError));
5834
+ me(new x(K.MissingEmailError));
5819
5835
  return;
5820
5836
  }
5821
5837
  h.startPurchase(o, C, P, i, s.rcBillingProduct.presentedOfferingContext).then((R) => {
@@ -5828,33 +5844,33 @@ function Qs(t, e, n) {
5828
5844
  return;
5829
5845
  }
5830
5846
  }).catch((R) => {
5831
- pe(R);
5847
+ me(R);
5832
5848
  });
5833
- }, Pn = (R) => {
5849
+ }, On = (R) => {
5834
5850
  if (B === "needs-auth-info") {
5835
- R && (n(14, i = R.email), n(7, B = "processing-auth-info")), at();
5851
+ R && (n(14, i = R.email), n(7, B = "processing-auth-info")), ct();
5836
5852
  return;
5837
5853
  }
5838
5854
  if (B === "needs-payment-info") {
5839
- n(7, B = "polling-purchase-status"), h.pollCurrentPurchaseForCompletion().then(() => {
5840
- n(7, B = "success");
5841
- }).catch((An) => {
5842
- pe(An);
5855
+ n(7, B = "polling-purchase-status"), h.pollCurrentPurchaseForCompletion().then((je) => {
5856
+ n(7, B = "success"), pe = je.redemptionInfo;
5857
+ }).catch((je) => {
5858
+ me(je);
5843
5859
  });
5844
5860
  return;
5845
5861
  }
5846
5862
  if (B === "success" || B === "error") {
5847
- c();
5863
+ c(pe);
5848
5864
  return;
5849
5865
  }
5850
5866
  n(7, B = "success");
5851
- }, pe = (R) => {
5867
+ }, me = (R) => {
5852
5868
  if (B === "processing-auth-info" && R.isRecoverable()) {
5853
5869
  n(6, O = R), n(7, B = "needs-auth-info");
5854
5870
  return;
5855
5871
  }
5856
5872
  n(6, O = R), n(7, B = "error");
5857
- }, Tn = () => {
5873
+ }, Nn = () => {
5858
5874
  f(O ?? new x(K.UnknownError, "Unknown error without state set."));
5859
5875
  };
5860
5876
  return t.$$set = (R) => {
@@ -5869,11 +5885,11 @@ function Qs(t, e, n) {
5869
5885
  O,
5870
5886
  B,
5871
5887
  P,
5872
- Ae,
5873
5888
  Oe,
5874
- Pn,
5875
- pe,
5876
- Tn,
5889
+ An,
5890
+ On,
5891
+ me,
5892
+ Nn,
5877
5893
  i,
5878
5894
  o,
5879
5895
  s,
@@ -5884,9 +5900,9 @@ function Qs(t, e, n) {
5884
5900
  h
5885
5901
  ];
5886
5902
  }
5887
- class Xs extends D {
5903
+ class el extends D {
5888
5904
  constructor(e) {
5889
- super(), M(this, e, Qs, Ks, S, {
5905
+ super(), M(this, e, Js, Zs, S, {
5890
5906
  asModal: 0,
5891
5907
  customerEmail: 14,
5892
5908
  appUserId: 15,
@@ -5901,19 +5917,19 @@ class Xs extends D {
5901
5917
  });
5902
5918
  }
5903
5919
  }
5904
- function Zs(t) {
5920
+ function tl(t) {
5905
5921
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5906
5922
  }
5907
- function Js(t, e, n, r) {
5923
+ function nl(t, e, n, r) {
5908
5924
  const i = e.product_identifier;
5909
5925
  if (i in n)
5910
- return el(
5926
+ return rl(
5911
5927
  t,
5912
5928
  e,
5913
5929
  n[i]
5914
5930
  );
5915
5931
  if (i in r)
5916
- return tl(
5932
+ return il(
5917
5933
  t,
5918
5934
  e,
5919
5935
  r[i]
@@ -5923,11 +5939,11 @@ function Js(t, e, n, r) {
5923
5939
  "Could not find entitlement product in subscriptions or non-subscriptions."
5924
5940
  );
5925
5941
  }
5926
- function el(t, e, n) {
5942
+ function rl(t, e, n) {
5927
5943
  return {
5928
5944
  identifier: t,
5929
- isActive: Zs(e),
5930
- willRenew: il(e, n),
5945
+ isActive: tl(e),
5946
+ willRenew: ll(e, n),
5931
5947
  store: (n == null ? void 0 : n.store) ?? "unknown",
5932
5948
  latestPurchaseDate: new Date(e.purchase_date),
5933
5949
  originalPurchaseDate: new Date(e.purchase_date),
@@ -5943,7 +5959,7 @@ function el(t, e, n) {
5943
5959
  periodType: (n == null ? void 0 : n.period_type) ?? "normal"
5944
5960
  };
5945
5961
  }
5946
- function tl(t, e, n) {
5962
+ function il(t, e, n) {
5947
5963
  return {
5948
5964
  identifier: t,
5949
5965
  isActive: !0,
@@ -5961,10 +5977,10 @@ function tl(t, e, n) {
5961
5977
  periodType: "normal"
5962
5978
  };
5963
5979
  }
5964
- function nl(t, e, n) {
5980
+ function ol(t, e, n) {
5965
5981
  const r = {}, i = {};
5966
5982
  for (const o in t) {
5967
- const s = Js(
5983
+ const s = nl(
5968
5984
  o,
5969
5985
  t[o],
5970
5986
  e,
@@ -5980,22 +5996,22 @@ function nl(t, e, n) {
5980
5996
  function Me(t) {
5981
5997
  return t == null ? null : new Date(t);
5982
5998
  }
5983
- function rl(t) {
5984
- const e = sl(t), n = t.subscriber, r = al(
5999
+ function sl(t) {
6000
+ const e = cl(t), n = t.subscriber, r = fl(
5985
6001
  n.non_subscriptions
5986
6002
  );
5987
6003
  return {
5988
- entitlements: nl(
6004
+ entitlements: ol(
5989
6005
  n.entitlements,
5990
6006
  n.subscriptions,
5991
6007
  r
5992
6008
  ),
5993
6009
  allExpirationDatesByProduct: e,
5994
- allPurchaseDatesByProduct: ol(
6010
+ allPurchaseDatesByProduct: al(
5995
6011
  t,
5996
6012
  r
5997
6013
  ),
5998
- activeSubscriptions: ll(e),
6014
+ activeSubscriptions: ul(e),
5999
6015
  managementURL: n.management_url,
6000
6016
  requestDate: new Date(t.request_date),
6001
6017
  firstSeenDate: new Date(n.first_seen),
@@ -6005,12 +6021,12 @@ function rl(t) {
6005
6021
  originalAppUserId: t.subscriber.original_app_user_id
6006
6022
  };
6007
6023
  }
6008
- function il(t, e) {
6024
+ function ll(t, e) {
6009
6025
  if (e == null) return !1;
6010
6026
  const n = e.store == "promotional", r = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
6011
6027
  return !(n || r || i || o);
6012
6028
  }
6013
- function ol(t, e) {
6029
+ function al(t, e) {
6014
6030
  const n = {};
6015
6031
  for (const r in t.subscriber.subscriptions) {
6016
6032
  const i = t.subscriber.subscriptions[r];
@@ -6024,7 +6040,7 @@ function ol(t, e) {
6024
6040
  }
6025
6041
  return n;
6026
6042
  }
6027
- function sl(t) {
6043
+ function cl(t) {
6028
6044
  const e = {};
6029
6045
  for (const n in t.subscriber.subscriptions) {
6030
6046
  const r = t.subscriber.subscriptions[n];
@@ -6034,7 +6050,7 @@ function sl(t) {
6034
6050
  }
6035
6051
  return e;
6036
6052
  }
6037
- function ll(t) {
6053
+ function ul(t) {
6038
6054
  const e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Date();
6039
6055
  for (const r in t) {
6040
6056
  const i = t[r];
@@ -6042,7 +6058,7 @@ function ll(t) {
6042
6058
  }
6043
6059
  return e;
6044
6060
  }
6045
- function al(t) {
6061
+ function fl(t) {
6046
6062
  const e = {};
6047
6063
  for (const n in t) {
6048
6064
  if (t[n].length === 0) continue;
@@ -6051,41 +6067,41 @@ function al(t) {
6051
6067
  }
6052
6068
  return e;
6053
6069
  }
6054
- const cl = "0.11.2", ul = "https://api.revenuecat.com";
6070
+ const dl = "0.12.0", pl = "https://api.revenuecat.com";
6055
6071
  var Ce;
6056
6072
  (function(t) {
6057
6073
  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";
6058
6074
  })(Ce || (Ce = {}));
6059
- function Ze(t) {
6075
+ function Je(t) {
6060
6076
  return t ? t.startsWith("rcb_sb_") : !1;
6061
6077
  }
6062
6078
  async function le(t, e) {
6063
- const { apiKey: n, body: r, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? ul}${t.urlPath()}`;
6079
+ const { apiKey: n, body: r, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? pl}${t.urlPath()}`;
6064
6080
  try {
6065
6081
  const a = await fetch(l, {
6066
6082
  method: t.method,
6067
- headers: ml(n, i, o == null ? void 0 : o.additionalHeaders),
6068
- body: dl(r)
6083
+ headers: hl(n, i, o == null ? void 0 : o.additionalHeaders),
6084
+ body: _l(r)
6069
6085
  });
6070
- return await fl(a, t), await a.json();
6086
+ return await ml(a, t), await a.json();
6071
6087
  } catch (a) {
6072
6088
  throw a instanceof TypeError ? new Q(
6073
6089
  X.NetworkError,
6074
- ye.getPublicMessage(X.NetworkError),
6090
+ Ee.getPublicMessage(X.NetworkError),
6075
6091
  a.message
6076
6092
  ) : a;
6077
6093
  }
6078
6094
  }
6079
- async function fl(t, e) {
6095
+ async function ml(t, e) {
6080
6096
  const n = t.status;
6081
6097
  if (n >= Ce.INTERNAL_SERVER_ERROR)
6082
- Ye(e, n, await t.text());
6098
+ ze(e, n, await t.text());
6083
6099
  else if (n >= Ce.BAD_REQUEST) {
6084
6100
  const r = await t.json(), i = r ? JSON.stringify(r) : null, o = r == null ? void 0 : r.code, s = r == null ? void 0 : r.message;
6085
6101
  if (o != null) {
6086
- const l = ye.convertCodeToBackendErrorCode(o);
6102
+ const l = Ee.convertCodeToBackendErrorCode(o);
6087
6103
  if (l == null)
6088
- Ye(
6104
+ ze(
6089
6105
  e,
6090
6106
  n,
6091
6107
  i,
@@ -6097,10 +6113,10 @@ async function fl(t, e) {
6097
6113
  s
6098
6114
  );
6099
6115
  } else
6100
- Ye(e, n, i);
6116
+ ze(e, n, i);
6101
6117
  }
6102
6118
  }
6103
- function Ye(t, e, n, r) {
6119
+ function ze(t, e, n, r) {
6104
6120
  throw new Q(
6105
6121
  X.UnknownBackendError,
6106
6122
  "Unknown backend error.",
@@ -6108,30 +6124,30 @@ function Ye(t, e, n, r) {
6108
6124
  { backendErrorCode: r }
6109
6125
  );
6110
6126
  }
6111
- function dl(t) {
6127
+ function _l(t) {
6112
6128
  return t == null ? null : JSON.stringify(t);
6113
6129
  }
6114
- const hn = "Authorization", bn = "Content-Type", wn = "Accept", yn = "X-Platform", En = "X-Version", In = "X-Is-Sandbox", pl = /* @__PURE__ */ new Set([
6115
- hn,
6116
- bn,
6130
+ const wn = "Authorization", yn = "Content-Type", En = "Accept", In = "X-Platform", vn = "X-Version", $n = "X-Is-Sandbox", gl = /* @__PURE__ */ new Set([
6117
6131
  wn,
6118
6132
  yn,
6119
6133
  En,
6120
- In
6134
+ In,
6135
+ vn,
6136
+ $n
6121
6137
  ]);
6122
- function ml(t, e, n) {
6138
+ function hl(t, e, n) {
6123
6139
  let r = {
6124
- [hn]: `Bearer ${t}`,
6125
- [bn]: "application/json",
6126
- [wn]: "application/json",
6127
- [yn]: "web",
6128
- [En]: cl,
6129
- [In]: `${Ze(t)}`
6140
+ [wn]: `Bearer ${t}`,
6141
+ [yn]: "application/json",
6142
+ [En]: "application/json",
6143
+ [In]: "web",
6144
+ [vn]: dl,
6145
+ [$n]: `${Je(t)}`
6130
6146
  };
6131
6147
  return e && (r = { ...r, ...e }), n && (r = { ...n, ...r }), r;
6132
6148
  }
6133
- const vn = "/v1/subscribers", je = "/rcbilling/v1";
6134
- class _l {
6149
+ const kn = "/v1/subscribers", He = "/rcbilling/v1";
6150
+ class bl {
6135
6151
  constructor(e) {
6136
6152
  N(this, "appUserId");
6137
6153
  N(this, "method", "GET");
@@ -6140,19 +6156,19 @@ class _l {
6140
6156
  }
6141
6157
  urlPath() {
6142
6158
  const e = encodeURIComponent(this.appUserId);
6143
- return `${vn}/${e}/offerings`;
6159
+ return `${kn}/${e}/offerings`;
6144
6160
  }
6145
6161
  }
6146
- class gl {
6162
+ class wl {
6147
6163
  constructor() {
6148
6164
  N(this, "method", "POST");
6149
6165
  N(this, "name", "purchase");
6150
6166
  }
6151
6167
  urlPath() {
6152
- return `${je}/purchase`;
6168
+ return `${He}/purchase`;
6153
6169
  }
6154
6170
  }
6155
- class hl {
6171
+ class yl {
6156
6172
  constructor(e, n, r) {
6157
6173
  N(this, "method", "GET");
6158
6174
  N(this, "name", "getProducts");
@@ -6163,10 +6179,10 @@ class hl {
6163
6179
  }
6164
6180
  urlPath() {
6165
6181
  const e = encodeURIComponent(this.appUserId), n = this.productIds.map(encodeURIComponent).join("&id="), r = this.currency ? `&currency=${this.currency}` : "";
6166
- return `${je}/subscribers/${e}/products?id=${n}${r}`;
6182
+ return `${He}/subscribers/${e}/products?id=${n}${r}`;
6167
6183
  }
6168
6184
  }
6169
- class bl {
6185
+ class El {
6170
6186
  constructor(e) {
6171
6187
  N(this, "method", "GET");
6172
6188
  N(this, "name", "getCustomerInfo");
@@ -6175,19 +6191,19 @@ class bl {
6175
6191
  }
6176
6192
  urlPath() {
6177
6193
  const e = encodeURIComponent(this.appUserId);
6178
- return `${vn}/${e}`;
6194
+ return `${kn}/${e}`;
6179
6195
  }
6180
6196
  }
6181
- class wl {
6197
+ class Il {
6182
6198
  constructor() {
6183
6199
  N(this, "method", "GET");
6184
6200
  N(this, "name", "getBrandingInfo");
6185
6201
  }
6186
6202
  urlPath() {
6187
- return `${je}/branding`;
6203
+ return `${He}/branding`;
6188
6204
  }
6189
6205
  }
6190
- class yl {
6206
+ class vl {
6191
6207
  constructor(e) {
6192
6208
  N(this, "method", "GET");
6193
6209
  N(this, "name", "getCheckoutStatus");
@@ -6195,19 +6211,19 @@ class yl {
6195
6211
  this.operationSessionId = e;
6196
6212
  }
6197
6213
  urlPath() {
6198
- return `${je}/checkout/${this.operationSessionId}`;
6214
+ return `${He}/checkout/${this.operationSessionId}`;
6199
6215
  }
6200
6216
  }
6201
- const Je = {};
6202
- class El {
6203
- constructor(e, n = Je) {
6217
+ const et = {};
6218
+ class $l {
6219
+ constructor(e, n = et) {
6204
6220
  N(this, "API_KEY");
6205
6221
  N(this, "httpConfig");
6206
6222
  this.API_KEY = e, this.httpConfig = n;
6207
6223
  }
6208
6224
  async getOfferings(e) {
6209
6225
  return await le(
6210
- new _l(e),
6226
+ new bl(e),
6211
6227
  {
6212
6228
  apiKey: this.API_KEY,
6213
6229
  httpConfig: this.httpConfig
@@ -6216,7 +6232,7 @@ class El {
6216
6232
  }
6217
6233
  async getCustomerInfo(e) {
6218
6234
  return await le(
6219
- new bl(e),
6235
+ new El(e),
6220
6236
  {
6221
6237
  apiKey: this.API_KEY,
6222
6238
  httpConfig: this.httpConfig
@@ -6225,7 +6241,7 @@ class El {
6225
6241
  }
6226
6242
  async getProducts(e, n, r) {
6227
6243
  return await le(
6228
- new hl(e, n, r),
6244
+ new yl(e, n, r),
6229
6245
  {
6230
6246
  apiKey: this.API_KEY,
6231
6247
  httpConfig: this.httpConfig
@@ -6234,7 +6250,7 @@ class El {
6234
6250
  }
6235
6251
  async getBrandingInfo() {
6236
6252
  return await le(
6237
- new wl(),
6253
+ new Il(),
6238
6254
  {
6239
6255
  apiKey: this.API_KEY,
6240
6256
  httpConfig: this.httpConfig
@@ -6253,7 +6269,7 @@ class El {
6253
6269
  rule_id: i.targetingContext.ruleId,
6254
6270
  revision: i.targetingContext.revision
6255
6271
  }), i.placementIdentifier && (s.presented_placement_identifier = i.placementIdentifier), await le(
6256
- new gl(),
6272
+ new wl(),
6257
6273
  {
6258
6274
  apiKey: this.API_KEY,
6259
6275
  body: s,
@@ -6263,7 +6279,7 @@ class El {
6263
6279
  }
6264
6280
  async getCheckoutStatus(e) {
6265
6281
  return await le(
6266
- new yl(e),
6282
+ new vl(e),
6267
6283
  {
6268
6284
  apiKey: this.API_KEY,
6269
6285
  httpConfig: this.httpConfig
@@ -6271,14 +6287,14 @@ class El {
6271
6287
  );
6272
6288
  }
6273
6289
  }
6274
- function Il(t) {
6290
+ function kl(t) {
6275
6291
  if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
6276
6292
  throw new Q(
6277
6293
  X.InvalidCredentialsError,
6278
6294
  "Invalid API key. Use your RevenueCat Billing API key."
6279
6295
  );
6280
6296
  }
6281
- function vl(t) {
6297
+ function Pl(t) {
6282
6298
  if ((/* @__PURE__ */ new Set([
6283
6299
  "no_user",
6284
6300
  "null",
@@ -6297,31 +6313,31 @@ function vl(t) {
6297
6313
  'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
6298
6314
  );
6299
6315
  }
6300
- function $l(t) {
6316
+ function Tl(t) {
6301
6317
  if (t != null && t.endsWith("/"))
6302
6318
  throw new Q(
6303
6319
  X.ConfigurationError,
6304
6320
  "Invalid proxy URL. The proxy URL should not end with a trailing slash."
6305
6321
  );
6306
6322
  }
6307
- function kl(t) {
6323
+ function Al(t) {
6308
6324
  if (t) {
6309
6325
  for (const e in t)
6310
- if (pl.has(e))
6326
+ if (gl.has(e))
6311
6327
  throw new Q(
6312
6328
  X.ConfigurationError,
6313
6329
  "Invalid additional headers. Some headers are reserved for internal use."
6314
6330
  );
6315
6331
  }
6316
6332
  }
6317
- var $n = /* @__PURE__ */ ((t) => (t.Current = "current", t))($n || {});
6318
- function Pl(t, e) {
6333
+ var Pn = /* @__PURE__ */ ((t) => (t.Current = "current", t))(Pn || {});
6334
+ function Ol(t, e) {
6319
6335
  async function n(...r) {
6320
6336
  return await this.preload(), await t.call(this, ...r);
6321
6337
  }
6322
6338
  return n;
6323
6339
  }
6324
- const kn = (t, e) => ({
6340
+ const Tn = (t, e) => ({
6325
6341
  ...t,
6326
6342
  rcBillingProduct: {
6327
6343
  ...t.rcBillingProduct,
@@ -6330,7 +6346,7 @@ const kn = (t, e) => ({
6330
6346
  placementIdentifier: e
6331
6347
  }
6332
6348
  }
6333
- }), ie = (t, e) => t == null ? null : kn(t, e), Tl = (t, e, n) => {
6349
+ }), ie = (t, e) => t == null ? null : Tn(t, e), Nl = (t, e, n) => {
6334
6350
  const r = t.offering_ids_by_placement ?? null;
6335
6351
  if (r == null)
6336
6352
  return null;
@@ -6348,7 +6364,7 @@ const kn = (t, e) => ({
6348
6364
  const s = Object.fromEntries(
6349
6365
  Object.entries(o.packagesById).map(([l, a]) => [
6350
6366
  l,
6351
- kn(a, n)
6367
+ Tn(a, n)
6352
6368
  ])
6353
6369
  );
6354
6370
  return {
@@ -6379,14 +6395,14 @@ const kn = (t, e) => ({
6379
6395
  )
6380
6396
  };
6381
6397
  };
6382
- function Al(t, e) {
6398
+ function Ul(t, e) {
6383
6399
  const n = {};
6384
6400
  e.product_details.forEach((o) => {
6385
6401
  n[o.identifier] = o;
6386
6402
  });
6387
6403
  const r = {};
6388
6404
  t.offerings.forEach((o) => {
6389
- const s = o.identifier === t.current_offering_id, l = wr(
6405
+ const s = o.identifier === t.current_offering_id, l = Er(
6390
6406
  s,
6391
6407
  o,
6392
6408
  n,
@@ -6395,19 +6411,19 @@ function Al(t, e) {
6395
6411
  l != null && (r[o.identifier] = l);
6396
6412
  });
6397
6413
  const i = t.current_offering_id ? r[t.current_offering_id] ?? null : null;
6398
- return Object.keys(r).length == 0 && j.debugLog(
6414
+ return Object.keys(r).length == 0 && H.debugLog(
6399
6415
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
6400
6416
  ), {
6401
6417
  all: r,
6402
6418
  current: i
6403
6419
  };
6404
6420
  }
6405
- var zt, ze;
6406
- zt = [Pl];
6421
+ var Wt, We;
6422
+ Wt = [Ol];
6407
6423
  const Z = class Z {
6408
6424
  /** @internal */
6409
- constructor(e, n, r = Je) {
6410
- gt(ze, 5, this);
6425
+ constructor(e, n, r = et) {
6426
+ ht(We, 5, this);
6411
6427
  /** @internal */
6412
6428
  N(this, "_API_KEY");
6413
6429
  /** @internal */
@@ -6420,7 +6436,7 @@ const Z = class Z {
6420
6436
  N(this, "backend");
6421
6437
  /** @internal */
6422
6438
  N(this, "purchaseOperationHelper");
6423
- this._API_KEY = e, this._appUserId = n, Ze(e) && j.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new El(this._API_KEY, r), this.purchaseOperationHelper = new Br(this.backend);
6439
+ this._API_KEY = e, this._appUserId = n, Je(e) && H.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new $l(this._API_KEY, r), this.purchaseOperationHelper = new Hr(this.backend);
6424
6440
  }
6425
6441
  /**
6426
6442
  * Set the log level. Logs of the given level and below will be printed
@@ -6429,7 +6445,7 @@ const Z = class Z {
6429
6445
  * @param logLevel - LogLevel to set.
6430
6446
  */
6431
6447
  static setLogLevel(e) {
6432
- j.setLogLevel(e);
6448
+ H.setLogLevel(e);
6433
6449
  }
6434
6450
  /**
6435
6451
  * Get the singleton instance of Purchases. It's preferred to use the instance
@@ -6439,7 +6455,7 @@ const Z = class Z {
6439
6455
  static getSharedInstance() {
6440
6456
  if (Z.isConfigured())
6441
6457
  return Z.instance;
6442
- throw new Dr();
6458
+ throw new Cr();
6443
6459
  }
6444
6460
  /**
6445
6461
  * Returns whether the Purchases SDK is configured or not.
@@ -6456,10 +6472,10 @@ const Z = class Z {
6456
6472
  * @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
6457
6473
  * @throws {@link PurchasesError} if the API key or user id are invalid.
6458
6474
  */
6459
- static configure(e, n, r = Je) {
6460
- return Z.instance !== void 0 && j.warnLog(
6475
+ static configure(e, n, r = et) {
6476
+ return Z.instance !== void 0 && H.warnLog(
6461
6477
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
6462
- ), Il(e), vl(n), $l(r.proxyURL), kl(r.additionalHeaders), Z.instance = new Z(e, n, r), Z.getSharedInstance();
6478
+ ), kl(e), Pl(n), Tl(r.proxyURL), Al(r.additionalHeaders), Z.instance = new Z(e, n, r), Z.getSharedInstance();
6463
6479
  }
6464
6480
  /**
6465
6481
  * Loads and caches some optional data in the Purchases SDK.
@@ -6469,18 +6485,18 @@ const Z = class Z {
6469
6485
  */
6470
6486
  async preload() {
6471
6487
  if (this.hasLoadedResources()) {
6472
- j.verboseLog("Purchases resources are loaded. Skipping.");
6488
+ H.verboseLog("Purchases resources are loaded. Skipping.");
6473
6489
  return;
6474
6490
  }
6475
6491
  if (this._loadingResourcesPromise !== null) {
6476
- j.verboseLog("Purchases resources are loading. Waiting."), await this._loadingResourcesPromise;
6492
+ H.verboseLog("Purchases resources are loading. Waiting."), await this._loadingResourcesPromise;
6477
6493
  return;
6478
6494
  }
6479
6495
  return this._loadingResourcesPromise = this.backend.getBrandingInfo().then((e) => {
6480
6496
  this._brandingInfo = e;
6481
6497
  }).catch((e) => {
6482
6498
  let n = `${e}`;
6483
- e instanceof Q && (n = `${e.message}. ${e.underlyingErrorMessage ? `Underlying error: ${e.underlyingErrorMessage}` : ""}`), j.errorLog(`Error fetching branding info: ${n}`);
6499
+ e instanceof Q && (n = `${e.message}. ${e.underlyingErrorMessage ? `Underlying error: ${e.underlyingErrorMessage}` : ""}`), H.errorLog(`Error fetching branding info: ${n}`);
6484
6500
  }).finally(() => {
6485
6501
  this._loadingResourcesPromise = null;
6486
6502
  }), this._loadingResourcesPromise;
@@ -6494,8 +6510,8 @@ const Z = class Z {
6494
6510
  * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
6495
6511
  */
6496
6512
  async getOfferings(e) {
6497
- qo(e == null ? void 0 : e.currency);
6498
- const n = this._appUserId, r = await this.backend.getOfferings(n), i = (e == null ? void 0 : e.offeringIdentifier) === $n.Current ? r.current_offering_id : e == null ? void 0 : e.offeringIdentifier;
6513
+ Yo(e == null ? void 0 : e.currency);
6514
+ const n = this._appUserId, r = await this.backend.getOfferings(n), i = (e == null ? void 0 : e.offeringIdentifier) === Pn.Current ? r.current_offering_id : e == null ? void 0 : e.offeringIdentifier;
6499
6515
  return i && (r.offerings = r.offerings.filter(
6500
6516
  (o) => o.identifier === i
6501
6517
  )), await this.getAllOfferings(r, n, e);
@@ -6512,7 +6528,7 @@ const Z = class Z {
6512
6528
  r,
6513
6529
  n
6514
6530
  ), s = i.placements ?? null;
6515
- return s == null ? null : Tl(
6531
+ return s == null ? null : Nl(
6516
6532
  s,
6517
6533
  o.all,
6518
6534
  e
@@ -6524,7 +6540,7 @@ const Z = class Z {
6524
6540
  i,
6525
6541
  r == null ? void 0 : r.currency
6526
6542
  );
6527
- return this.logMissingProductIds(i, o.product_details), Al(e, o);
6543
+ return this.logMissingProductIds(i, o.product_details), Ul(e, o);
6528
6544
  }
6529
6545
  /**
6530
6546
  * Convenience method to check whether a user is entitled to a specific
@@ -6569,23 +6585,26 @@ const Z = class Z {
6569
6585
  "Could not generate a mount point for the billing widget"
6570
6586
  );
6571
6587
  const l = s, a = !i, c = this._appUserId;
6572
- return j.debugLog(
6588
+ return H.debugLog(
6573
6589
  `Presenting purchase form for package ${n.identifier}`
6574
6590
  ), new Promise((f, u) => {
6575
- new Xs({
6591
+ new el({
6576
6592
  target: l,
6577
6593
  props: {
6578
6594
  appUserId: c,
6579
6595
  rcPackage: n,
6580
6596
  purchaseOption: r,
6581
6597
  customerEmail: o,
6582
- onFinished: async () => {
6583
- j.debugLog("Purchase finished"), l.innerHTML = "", f({
6584
- customerInfo: await this._getCustomerInfoForUserId(c)
6585
- });
6598
+ onFinished: async (m) => {
6599
+ H.debugLog("Purchase finished"), l.innerHTML = "";
6600
+ const h = {
6601
+ customerInfo: await this._getCustomerInfoForUserId(c),
6602
+ redemptionInfo: m
6603
+ };
6604
+ f(h);
6586
6605
  },
6587
6606
  onClose: () => {
6588
- l.innerHTML = "", j.debugLog("Purchase cancelled by user"), u(new Q(X.UserCancelledError));
6607
+ l.innerHTML = "", H.debugLog("Purchase cancelled by user"), u(new Q(X.UserCancelledError));
6589
6608
  },
6590
6609
  onError: (m) => {
6591
6610
  l.innerHTML = "", u(Q.getForPurchasesFlowError(m));
@@ -6629,7 +6648,7 @@ const Z = class Z {
6629
6648
  const i = [];
6630
6649
  e.forEach((o) => {
6631
6650
  r[o] === void 0 && i.push(o);
6632
- }), i.length > 0 && j.debugLog(
6651
+ }), i.length > 0 && H.debugLog(
6633
6652
  `Could not find product data for product ids:
6634
6653
  ${i.join()}.
6635
6654
  Please check that your product configuration is correct.`
@@ -6639,32 +6658,32 @@ const Z = class Z {
6639
6658
  * @returns Whether the SDK is using a sandbox API Key.
6640
6659
  */
6641
6660
  isSandbox() {
6642
- return Ze(this._API_KEY);
6661
+ return Je(this._API_KEY);
6643
6662
  }
6644
6663
  /**
6645
6664
  * Closes the Purchases instance. You should never have to do this normally.
6646
6665
  */
6647
6666
  close() {
6648
- Z.instance === this ? Z.instance = void 0 : j.warnLog(
6667
+ Z.instance === this ? Z.instance = void 0 : H.warnLog(
6649
6668
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
6650
6669
  );
6651
6670
  }
6652
6671
  /** @internal */
6653
6672
  async _getCustomerInfoForUserId(e) {
6654
6673
  const n = await this.backend.getCustomerInfo(e);
6655
- return rl(n);
6674
+ return sl(n);
6656
6675
  }
6657
6676
  };
6658
- ze = mt(null), ht(ze, 1, "purchase", zt, Z), xe(ze, Z), /** @internal */
6677
+ We = _t(null), bt(We, 1, "purchase", Wt, Z), qe(We, Z), /** @internal */
6659
6678
  N(Z, "instance");
6660
- let Yt = Z;
6679
+ let zt = Z;
6661
6680
  export {
6662
6681
  X as ErrorCode,
6663
6682
  J as LogLevel,
6664
- $n as OfferingKeyword,
6665
- dr as PackageType,
6666
- Pe as ProductType,
6667
- Yt as Purchases,
6683
+ Pn as OfferingKeyword,
6684
+ mr as PackageType,
6685
+ Te as ProductType,
6686
+ zt as Purchases,
6668
6687
  Q as PurchasesError,
6669
- Dr as UninitializedPurchasesError
6688
+ Cr as UninitializedPurchasesError
6670
6689
  };