@revenuecat/purchases-js 1.10.0 → 1.11.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.
@@ -10,14 +10,14 @@ var Hn = (e) => [, , , ys((e == null ? void 0 : e[Un("metadata")]) ?? null)], Wn
10
10
  for (var n = 0, i = e[r >> 1], o = i && i.length; n < o; n++) r & 1 ? i[n].call(t) : a = i[n].call(t, a);
11
11
  return a;
12
12
  }, Gn = (e, r, t, a, n, i) => {
13
- var o, s, l, d, p, u = r & 7, _ = !!(r & 8), g = !!(r & 16), m = u > 3 ? e.length + 1 : u ? _ ? 1 : 2 : 0, f = Wn[u + 5], k = u > 3 && (e[m - 1] = []), v = e[m] || (e[m] = []), y = u && (!g && !_ && (n = n.prototype), u < 5 && (u > 3 || !g) && bs(u < 4 ? n : { get [t]() {
13
+ var o, s, l, c, p, u = r & 7, _ = !!(r & 8), g = !!(r & 16), m = u > 3 ? e.length + 1 : u ? _ ? 1 : 2 : 0, f = Wn[u + 5], w = u > 3 && (e[m - 1] = []), v = e[m] || (e[m] = []), y = u && (!g && !_ && (n = n.prototype), u < 5 && (u > 3 || !g) && bs(u < 4 ? n : { get [t]() {
14
14
  return Bn(this, i);
15
15
  }, set [t](I) {
16
16
  return Rn(this, i, I);
17
17
  } }, t));
18
18
  u ? g && u < 4 && Ln(i, (u > 2 ? "set " : u > 1 ? "get " : "") + t) : Ln(n, t);
19
19
  for (var P = a.length - 1; P >= 0; P--)
20
- d = vs(u, t, l = {}, e[3], v), u && (d.static = _, d.private = g, p = d.access = { has: g ? (I) => ks(n, I) : (I) => t in I }, u ^ 3 && (p.get = g ? (I) => (u ^ 1 ? Bn : ws)(I, n, u ^ 4 ? i : y.get) : (I) => I[t]), u > 2 && (p.set = g ? (I, T) => Rn(I, n, T, u ^ 4 ? i : y.set) : (I, T) => I[t] = T)), s = (0, a[P])(u ? u < 4 ? g ? i : y[f] : u > 4 ? void 0 : { get: y.get, set: y.set } : n, d), l._ = 1, u ^ 4 || s === void 0 ? ft(s) && (u > 4 ? k.unshift(s) : u ? g ? i = s : y[f] = s : n = s) : typeof s != "object" || s === null ? ht("Object expected") : (ft(o = s.get) && (y.get = o), ft(o = s.set) && (y.set = o), ft(o = s.init) && k.unshift(o));
20
+ c = vs(u, t, l = {}, e[3], v), u && (c.static = _, c.private = g, p = c.access = { has: g ? (I) => ks(n, I) : (I) => t in I }, u ^ 3 && (p.get = g ? (I) => (u ^ 1 ? Bn : ws)(I, n, u ^ 4 ? i : y.get) : (I) => I[t]), u > 2 && (p.set = g ? (I, E) => Rn(I, n, E, u ^ 4 ? i : y.set) : (I, E) => I[t] = E)), s = (0, a[P])(u ? u < 4 ? g ? i : y[f] : u > 4 ? void 0 : { get: y.get, set: y.set } : n, c), l._ = 1, u ^ 4 || s === void 0 ? ft(s) && (u > 4 ? w.unshift(s) : u ? g ? i = s : y[f] = s : n = s) : typeof s != "object" || s === null ? ht("Object expected") : (ft(o = s.get) && (y.get = o), ft(o = s.set) && (y.set = o), ft(o = s.init) && w.unshift(o));
21
21
  return u || Sa(e, n), y && xa(n, t, y), g ? u ^ 4 ? i : y : n;
22
22
  }, M = (e, r, t) => Vn(e, typeof r != "symbol" ? r + "" : r, t), Ea = (e, r, t) => r.has(e) || ht("Cannot " + t), ks = (e, r) => Object(r) !== r ? ht('Cannot use the "in" operator on this value') : e.has(r), Bn = (e, r, t) => (Ea(e, r, "read from private field"), t ? t.call(e) : r.get(e));
23
23
  var Rn = (e, r, t, a) => (Ea(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t), ws = (e, r, t) => (Ea(e, r, "access private method"), t);
@@ -140,7 +140,7 @@ function Ne(e, r) {
140
140
  };
141
141
  return t;
142
142
  }
143
- function Z(e) {
143
+ function K(e) {
144
144
  return /* @__PURE__ */ Oi(Ne(e));
145
145
  }
146
146
  // @__NO_SIDE_EFFECTS__
@@ -196,45 +196,45 @@ function U(e, r = null, t) {
196
196
  /** @type {any} */
197
197
  e,
198
198
  {
199
- defineProperty(l, d, p) {
199
+ defineProperty(l, c, p) {
200
200
  (!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && tl();
201
- var u = n.get(d);
202
- return u === void 0 ? (u = Ne(p.value), n.set(d, u)) : z(u, U(p.value, s)), !0;
201
+ var u = n.get(c);
202
+ return u === void 0 ? (u = Ne(p.value), n.set(c, u)) : z(u, U(p.value, s)), !0;
203
203
  },
204
- deleteProperty(l, d) {
205
- var p = n.get(d);
204
+ deleteProperty(l, c) {
205
+ var p = n.get(c);
206
206
  if (p === void 0)
207
- d in l && n.set(d, Ne(Te));
207
+ c in l && n.set(c, Ne(Te));
208
208
  else {
209
- if (i && typeof d == "string") {
209
+ if (i && typeof c == "string") {
210
210
  var u = (
211
211
  /** @type {Source<number>} */
212
212
  n.get("length")
213
- ), _ = Number(d);
213
+ ), _ = Number(c);
214
214
  Number.isInteger(_) && _ < u.v && z(u, _);
215
215
  }
216
216
  z(p, Te), Zn(o);
217
217
  }
218
218
  return !0;
219
219
  },
220
- get(l, d, p) {
220
+ get(l, c, p) {
221
221
  var m;
222
- if (d === Er)
222
+ if (c === Er)
223
223
  return e;
224
- var u = n.get(d), _ = d in l;
225
- if (u === void 0 && (!_ || (m = Sr(l, d)) != null && m.writable) && (u = Ne(U(_ ? l[d] : Te, s)), n.set(d, u)), u !== void 0) {
226
- var g = c(u);
224
+ var u = n.get(c), _ = c in l;
225
+ if (u === void 0 && (!_ || (m = Sr(l, c)) != null && m.writable) && (u = Ne(U(_ ? l[c] : Te, s)), n.set(c, u)), u !== void 0) {
226
+ var g = d(u);
227
227
  return g === Te ? void 0 : g;
228
228
  }
229
- return Reflect.get(l, d, p);
229
+ return Reflect.get(l, c, p);
230
230
  },
231
- getOwnPropertyDescriptor(l, d) {
232
- var p = Reflect.getOwnPropertyDescriptor(l, d);
231
+ getOwnPropertyDescriptor(l, c) {
232
+ var p = Reflect.getOwnPropertyDescriptor(l, c);
233
233
  if (p && "value" in p) {
234
- var u = n.get(d);
235
- u && (p.value = c(u));
234
+ var u = n.get(c);
235
+ u && (p.value = d(u));
236
236
  } else if (p === void 0) {
237
- var _ = n.get(d), g = _ == null ? void 0 : _.v;
237
+ var _ = n.get(c), g = _ == null ? void 0 : _.v;
238
238
  if (_ !== void 0 && g !== Te)
239
239
  return {
240
240
  enumerable: !0,
@@ -245,36 +245,36 @@ function U(e, r = null, t) {
245
245
  }
246
246
  return p;
247
247
  },
248
- has(l, d) {
248
+ has(l, c) {
249
249
  var g;
250
- if (d === Er)
250
+ if (c === Er)
251
251
  return !0;
252
- var p = n.get(d), u = p !== void 0 && p.v !== Te || Reflect.has(l, d);
253
- if (p !== void 0 || J !== null && (!u || (g = Sr(l, d)) != null && g.writable)) {
254
- p === void 0 && (p = Ne(u ? U(l[d], s) : Te), n.set(d, p));
255
- var _ = c(p);
252
+ var p = n.get(c), u = p !== void 0 && p.v !== Te || Reflect.has(l, c);
253
+ if (p !== void 0 || J !== null && (!u || (g = Sr(l, c)) != null && g.writable)) {
254
+ p === void 0 && (p = Ne(u ? U(l[c], s) : Te), n.set(c, p));
255
+ var _ = d(p);
256
256
  if (_ === Te)
257
257
  return !1;
258
258
  }
259
259
  return u;
260
260
  },
261
- set(l, d, p, u) {
261
+ set(l, c, p, u) {
262
262
  var P;
263
- var _ = n.get(d), g = d in l;
264
- if (i && d === "length")
263
+ var _ = n.get(c), g = c in l;
264
+ if (i && c === "length")
265
265
  for (var m = p; m < /** @type {Source<number>} */
266
266
  _.v; m += 1) {
267
267
  var f = n.get(m + "");
268
268
  f !== void 0 ? z(f, Te) : m in l && (f = Ne(Te), n.set(m + "", f));
269
269
  }
270
- _ === void 0 ? (!g || (P = Sr(l, d)) != null && P.writable) && (_ = Ne(void 0), z(_, U(p, s)), n.set(d, _)) : (g = _.v !== Te, z(_, U(p, s)));
271
- var k = Reflect.getOwnPropertyDescriptor(l, d);
272
- if (k != null && k.set && k.set.call(u, p), !g) {
273
- if (i && typeof d == "string") {
270
+ _ === void 0 ? (!g || (P = Sr(l, c)) != null && P.writable) && (_ = Ne(void 0), z(_, U(p, s)), n.set(c, _)) : (g = _.v !== Te, z(_, U(p, s)));
271
+ var w = Reflect.getOwnPropertyDescriptor(l, c);
272
+ if (w != null && w.set && w.set.call(u, p), !g) {
273
+ if (i && typeof c == "string") {
274
274
  var v = (
275
275
  /** @type {Source<number>} */
276
276
  n.get("length")
277
- ), y = Number(d);
277
+ ), y = Number(c);
278
278
  Number.isInteger(y) && y >= v.v && z(v, y + 1);
279
279
  }
280
280
  Zn(o);
@@ -282,14 +282,14 @@ function U(e, r = null, t) {
282
282
  return !0;
283
283
  },
284
284
  ownKeys(l) {
285
- c(o);
286
- var d = Reflect.ownKeys(l).filter((_) => {
285
+ d(o);
286
+ var c = Reflect.ownKeys(l).filter((_) => {
287
287
  var g = n.get(_);
288
288
  return g === void 0 || g.v !== Te;
289
289
  });
290
290
  for (var [p, u] of n)
291
- u.v !== Te && !(p in l) && d.push(p);
292
- return d;
291
+ u.v !== Te && !(p in l) && c.push(p);
292
+ return c;
293
293
  },
294
294
  setPrototypeOf() {
295
295
  al();
@@ -345,7 +345,7 @@ function cl(e) {
345
345
  e.textContent = "";
346
346
  }
347
347
  // @__NO_SIDE_EFFECTS__
348
- function E(e) {
348
+ function S(e) {
349
349
  var r = Ze | Dr;
350
350
  J === null ? r |= Hr : J.f |= Mi;
351
351
  var t = de !== null && (de.f & Ze) !== 0 ? (
@@ -372,7 +372,7 @@ function E(e) {
372
372
  }
373
373
  // @__NO_SIDE_EFFECTS__
374
374
  function et(e) {
375
- const r = /* @__PURE__ */ E(e);
375
+ const r = /* @__PURE__ */ S(e);
376
376
  return r.equals = dn, r;
377
377
  }
378
378
  function Ui(e) {
@@ -456,11 +456,11 @@ function ct(e, r, t, a = !0) {
456
456
  } else r !== null && ha(o);
457
457
  var l = t && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & Mi) === 0;
458
458
  if (!l && !n && a && (i !== null && ul(o, i), de !== null && (de.f & Ze) !== 0)) {
459
- var d = (
459
+ var c = (
460
460
  /** @type {Derived} */
461
461
  de
462
462
  );
463
- (d.children ?? (d.children = [])).push(o);
463
+ (c.children ?? (c.children = [])).push(o);
464
464
  }
465
465
  return o;
466
466
  }
@@ -515,7 +515,7 @@ function gl() {
515
515
  ne
516
516
  );
517
517
  fa(() => {
518
- if (c(e.l.r2)) {
518
+ if (d(e.l.r2)) {
519
519
  for (var r of e.l.r1) {
520
520
  var t = r.effect;
521
521
  (t.f & De) !== 0 && Je(t, Mt), dt(t) && Ct(t), r.ran = !1;
@@ -682,7 +682,7 @@ function fn() {
682
682
  return !lt || ne !== null && ne.l === null;
683
683
  }
684
684
  function dt(e) {
685
- var d;
685
+ var c;
686
686
  var r = e.f;
687
687
  if ((r & Dr) !== 0)
688
688
  return !0;
@@ -692,7 +692,7 @@ function dt(e) {
692
692
  var n, i, o = (r & Zt) !== 0, s = a && J !== null && !Lr, l = t.length;
693
693
  if (o || s) {
694
694
  for (n = 0; n < l; n++)
695
- i = t[n], (o || !((d = i == null ? void 0 : i.reactions) != null && d.includes(e))) && (i.reactions ?? (i.reactions = [])).push(e);
695
+ i = t[n], (o || !((c = i == null ? void 0 : i.reactions) != null && c.includes(e))) && (i.reactions ?? (i.reactions = [])).push(e);
696
696
  o && (e.f ^= Zt);
697
697
  }
698
698
  for (n = 0; n < l; n++)
@@ -746,7 +746,7 @@ function ro(e) {
746
746
  xe = /** @type {null | Value[]} */
747
747
  null, je = 0, Tr = null, de = (l & (Ke | At)) === 0 ? e : null, Lr = !rt && (l & Hr) !== 0, dr = null, ne = e.ctx, Va++;
748
748
  try {
749
- var d = (
749
+ var c = (
750
750
  /** @type {Function} */
751
751
  (0, e.fn)()
752
752
  ), p = e.deps;
@@ -761,7 +761,7 @@ function ro(e) {
761
761
  for (u = je; u < p.length; u++)
762
762
  ((_ = p[u]).reactions ?? (_.reactions = [])).push(e);
763
763
  } else p !== null && je < p.length && (Tt(e, je), p.length = je);
764
- return d;
764
+ return c;
765
765
  } finally {
766
766
  xe = r, je = t, Tr = a, de = n, Lr = i, dr = o, ne = s;
767
767
  }
@@ -897,9 +897,9 @@ function to(e, r) {
897
897
  for (; u !== null; ) {
898
898
  if (e === u)
899
899
  break e;
900
- var d = u.next;
901
- if (d !== null) {
902
- t = d;
900
+ var c = u.next;
901
+ if (c !== null) {
902
+ t = c;
903
903
  continue e;
904
904
  }
905
905
  u = u.parent;
@@ -910,7 +910,7 @@ function to(e, r) {
910
910
  for (var p = 0; p < a.length; p++)
911
911
  l = a[p], r.push(l), to(l, r);
912
912
  }
913
- function c(e) {
913
+ function d(e) {
914
914
  var p;
915
915
  var r = e.f, t = (r & Ze) !== 0;
916
916
  if (t && (r & st) !== 0) {
@@ -940,11 +940,11 @@ function c(e) {
940
940
  );
941
941
  s = l, o = l.parent;
942
942
  } else {
943
- var d = (
943
+ var c = (
944
944
  /** @type {Effect} */
945
945
  o
946
946
  );
947
- (p = d.deriveds) != null && p.includes(s) || (d.deriveds ?? (d.deriveds = [])).push(s);
947
+ (p = c.deriveds) != null && p.includes(s) || (c.deriveds ?? (c.deriveds = [])).push(s);
948
948
  break;
949
949
  }
950
950
  return t && (i = /** @type {Derived} */
@@ -1111,10 +1111,10 @@ function yt(e) {
1111
1111
  e.__root = r;
1112
1112
  return;
1113
1113
  }
1114
- var d = n.indexOf(r);
1115
- if (d === -1)
1114
+ var c = n.indexOf(r);
1115
+ if (c === -1)
1116
1116
  return;
1117
- l <= d && (o = l);
1117
+ l <= c && (o = l);
1118
1118
  }
1119
1119
  if (i = /** @type {Element} */
1120
1120
  n[o] || e.target, i !== r) {
@@ -1135,8 +1135,8 @@ function yt(e) {
1135
1135
  if (f !== void 0 && !/** @type {any} */
1136
1136
  i.disabled)
1137
1137
  if (ua(f)) {
1138
- var [k, ...v] = f;
1139
- k.apply(i, [e, ...v]);
1138
+ var [w, ...v] = f;
1139
+ w.apply(i, [e, ...v]);
1140
1140
  } else
1141
1141
  f.call(i, e);
1142
1142
  } catch (P) {
@@ -1258,7 +1258,7 @@ function ql(e, { target: r, anchor: t, props: a = {}, events: n, context: i, int
1258
1258
  }
1259
1259
  };
1260
1260
  l(ln(no)), Ya.add(l);
1261
- var d = void 0, p = _l(() => {
1261
+ var c = void 0, p = _l(() => {
1262
1262
  var u = t ?? r.appendChild(jt());
1263
1263
  return Ve(() => {
1264
1264
  if (i) {
@@ -1269,7 +1269,7 @@ function ql(e, { target: r, anchor: t, props: a = {}, events: n, context: i, int
1269
1269
  );
1270
1270
  _.c = i;
1271
1271
  }
1272
- n && (a.$$events = n), Qt = o, d = e(u, a) || {}, Qt = !0, i && Y();
1272
+ n && (a.$$events = n), Qt = o, c = e(u, a) || {}, Qt = !0, i && Y();
1273
1273
  }), () => {
1274
1274
  var m;
1275
1275
  for (var _ of s) {
@@ -1283,7 +1283,7 @@ function ql(e, { target: r, anchor: t, props: a = {}, events: n, context: i, int
1283
1283
  Ya.delete(l), u !== t && ((m = u.parentNode) == null || m.removeChild(u));
1284
1284
  };
1285
1285
  });
1286
- return Ga.set(d, p), d;
1286
+ return Ga.set(c, p), c;
1287
1287
  }
1288
1288
  let Ga = /* @__PURE__ */ new WeakMap();
1289
1289
  function Da(e, r) {
@@ -1292,7 +1292,7 @@ function Da(e, r) {
1292
1292
  }
1293
1293
  function N(e, r, t = !1) {
1294
1294
  var a = e, n = null, i = null, o = Te, s = t ? Fr : 0, l = !1;
1295
- const d = (u, _ = !0) => {
1295
+ const c = (u, _ = !0) => {
1296
1296
  l = !0, p(_, u);
1297
1297
  }, p = (u, _) => {
1298
1298
  o !== (o = u) && (o ? (n ? Et(n) : _ && (n = Ve(() => _(a))), i && Ur(i, () => {
@@ -1302,7 +1302,7 @@ function N(e, r, t = !1) {
1302
1302
  })));
1303
1303
  };
1304
1304
  zr(() => {
1305
- l = !1, r(d), l || p(null, null);
1305
+ l = !1, r(c), l || p(null, null);
1306
1306
  }, s);
1307
1307
  }
1308
1308
  function it(e, r) {
@@ -1324,8 +1324,8 @@ function Fl(e, r, t, a) {
1324
1324
  ), a.clear(), xr(e, r[0].prev, r[i - 1].next);
1325
1325
  }
1326
1326
  Ji(n, () => {
1327
- for (var d = 0; d < i; d++) {
1328
- var p = r[d];
1327
+ for (var c = 0; c < i; c++) {
1328
+ var p = r[c];
1329
1329
  s || (a.delete(p.k), xr(e, p.prev, p.next)), He(p.e, !s);
1330
1330
  }
1331
1331
  });
@@ -1333,11 +1333,11 @@ function Fl(e, r, t, a) {
1333
1333
  function ot(e, r, t, a, n, i = null) {
1334
1334
  var o = e, s = { flags: r, items: /* @__PURE__ */ new Map(), first: null }, l = (r & qi) !== 0;
1335
1335
  if (l) {
1336
- var d = (
1336
+ var c = (
1337
1337
  /** @type {Element} */
1338
1338
  e
1339
1339
  );
1340
- o = d.appendChild(jt());
1340
+ o = c.appendChild(jt());
1341
1341
  }
1342
1342
  var p = null, u = !1;
1343
1343
  zr(() => {
@@ -1367,18 +1367,18 @@ function ot(e, r, t, a, n, i = null) {
1367
1367
  }
1368
1368
  function zl(e, r, t, a, n, i, o, s) {
1369
1369
  var $, ie, pe, oe;
1370
- var l = (n & xs) !== 0, d = (n & (on | sn)) !== 0, p = e.length, u = r.items, _ = r.first, g = _, m, f = null, k, v = [], y = [], P, I, T, D;
1370
+ var l = (n & xs) !== 0, c = (n & (on | sn)) !== 0, p = e.length, u = r.items, _ = r.first, g = _, m, f = null, w, v = [], y = [], P, I, E, D;
1371
1371
  if (l)
1372
1372
  for (D = 0; D < p; D += 1)
1373
- P = e[D], I = o(P, D), T = u.get(I), T !== void 0 && (($ = T.a) == null || $.measure(), (k ?? (k = /* @__PURE__ */ new Set())).add(T));
1373
+ P = e[D], I = o(P, D), E = u.get(I), E !== void 0 && (($ = E.a) == null || $.measure(), (w ?? (w = /* @__PURE__ */ new Set())).add(E));
1374
1374
  for (D = 0; D < p; D += 1) {
1375
- if (P = e[D], I = o(P, D), T = u.get(I), T === void 0) {
1376
- var R = g ? (
1375
+ if (P = e[D], I = o(P, D), E = u.get(I), E === void 0) {
1376
+ var B = g ? (
1377
1377
  /** @type {TemplateNode} */
1378
1378
  g.e.nodes_start
1379
1379
  ) : t;
1380
1380
  f = Ml(
1381
- R,
1381
+ B,
1382
1382
  r,
1383
1383
  f,
1384
1384
  f === null ? r.first : f.next,
@@ -1390,49 +1390,49 @@ function zl(e, r, t, a, n, i, o, s) {
1390
1390
  ), u.set(I, f), v = [], y = [], g = f.next;
1391
1391
  continue;
1392
1392
  }
1393
- if (d && Al(T, P, D, n), (T.e.f & cr) !== 0 && (Et(T.e), l && ((ie = T.a) == null || ie.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(T))), T !== g) {
1394
- if (m !== void 0 && m.has(T)) {
1393
+ if (c && Al(E, P, D, n), (E.e.f & cr) !== 0 && (Et(E.e), l && ((ie = E.a) == null || ie.unfix(), (w ?? (w = /* @__PURE__ */ new Set())).delete(E))), E !== g) {
1394
+ if (m !== void 0 && m.has(E)) {
1395
1395
  if (v.length < y.length) {
1396
- var w = y[0], h;
1397
- f = w.prev;
1398
- var S = v[0], j = v[v.length - 1];
1396
+ var k = y[0], h;
1397
+ f = k.prev;
1398
+ var T = v[0], j = v[v.length - 1];
1399
1399
  for (h = 0; h < v.length; h += 1)
1400
- ai(v[h], w, t);
1400
+ ai(v[h], k, t);
1401
1401
  for (h = 0; h < y.length; h += 1)
1402
1402
  m.delete(y[h]);
1403
- xr(r, S.prev, j.next), xr(r, f, S), xr(r, j, w), g = w, f = j, D -= 1, v = [], y = [];
1403
+ xr(r, T.prev, j.next), xr(r, f, T), xr(r, j, k), g = k, f = j, D -= 1, v = [], y = [];
1404
1404
  } else
1405
- m.delete(T), ai(T, g, t), xr(r, T.prev, T.next), xr(r, T, f === null ? r.first : f.next), xr(r, f, T), f = T;
1405
+ m.delete(E), ai(E, g, t), xr(r, E.prev, E.next), xr(r, E, f === null ? r.first : f.next), xr(r, f, E), f = E;
1406
1406
  continue;
1407
1407
  }
1408
1408
  for (v = [], y = []; g !== null && g.k !== I; )
1409
1409
  (i || (g.e.f & cr) === 0) && (m ?? (m = /* @__PURE__ */ new Set())).add(g), y.push(g), g = g.next;
1410
1410
  if (g === null)
1411
1411
  continue;
1412
- T = g;
1412
+ E = g;
1413
1413
  }
1414
- v.push(T), f = T, g = T.next;
1414
+ v.push(E), f = E, g = E.next;
1415
1415
  }
1416
1416
  if (g !== null || m !== void 0) {
1417
- for (var O = m === void 0 ? [] : ln(m); g !== null; )
1418
- (i || (g.e.f & cr) === 0) && O.push(g), g = g.next;
1419
- var K = O.length;
1420
- if (K > 0) {
1417
+ for (var R = m === void 0 ? [] : ln(m); g !== null; )
1418
+ (i || (g.e.f & cr) === 0) && R.push(g), g = g.next;
1419
+ var Z = R.length;
1420
+ if (Z > 0) {
1421
1421
  var X = (n & qi) !== 0 && p === 0 ? t : null;
1422
1422
  if (l) {
1423
- for (D = 0; D < K; D += 1)
1424
- (pe = O[D].a) == null || pe.measure();
1425
- for (D = 0; D < K; D += 1)
1426
- (oe = O[D].a) == null || oe.fix();
1423
+ for (D = 0; D < Z; D += 1)
1424
+ (pe = R[D].a) == null || pe.measure();
1425
+ for (D = 0; D < Z; D += 1)
1426
+ (oe = R[D].a) == null || oe.fix();
1427
1427
  }
1428
- Fl(r, O, X, u);
1428
+ Fl(r, R, X, u);
1429
1429
  }
1430
1430
  }
1431
1431
  l && Wr(() => {
1432
1432
  var ge;
1433
- if (k !== void 0)
1434
- for (T of k)
1435
- (ge = T.a) == null || ge.apply();
1433
+ if (w !== void 0)
1434
+ for (E of w)
1435
+ (ge = E.a) == null || ge.apply();
1436
1436
  }), J.first = r.first && r.first.e, J.last = f && f.e;
1437
1437
  }
1438
1438
  function Al(e, r, t, a) {
@@ -1442,7 +1442,7 @@ function Al(e, r, t, a) {
1442
1442
  t
1443
1443
  ) : e.i = t;
1444
1444
  }
1445
- function Ml(e, r, t, a, n, i, o, s, l, d) {
1445
+ function Ml(e, r, t, a, n, i, o, s, l, c) {
1446
1446
  var p = (l & on) !== 0, u = (l & Ss) === 0, _ = p ? u ? /* @__PURE__ */ _a(n) : Ne(n) : n, g = (l & sn) === 0 ? o : Ne(o), m = {
1447
1447
  i: g,
1448
1448
  v: _,
@@ -1483,13 +1483,13 @@ function Yr(e, r, t, a, n) {
1483
1483
  var i = e, o = "", s;
1484
1484
  zr(() => {
1485
1485
  o !== (o = r() ?? "") && (s !== void 0 && (He(s), s = void 0), o !== "" && (s = Ve(() => {
1486
- var l = o + "", d = hn(l);
1486
+ var l = o + "", c = hn(l);
1487
1487
  Vr(
1488
1488
  /** @type {TemplateNode} */
1489
- /* @__PURE__ */ Rr(d),
1489
+ /* @__PURE__ */ Rr(c),
1490
1490
  /** @type {TemplateNode} */
1491
- d.lastChild
1492
- ), i.before(d);
1491
+ c.lastChild
1492
+ ), i.before(c);
1493
1493
  })));
1494
1494
  });
1495
1495
  }
@@ -1514,7 +1514,7 @@ function Nl(e, r, t) {
1514
1514
  }, Fr);
1515
1515
  }
1516
1516
  function $t(e, r, t, a, n, i) {
1517
- var o, s, l = null, d = (
1517
+ var o, s, l = null, c = (
1518
1518
  /** @type {TemplateNode} */
1519
1519
  e
1520
1520
  ), p;
@@ -1531,7 +1531,7 @@ function $t(e, r, t, a, n, i) {
1531
1531
  );
1532
1532
  a(l, g);
1533
1533
  }
1534
- J.nodes_end = l, d.before(l);
1534
+ J.nodes_end = l, c.before(l);
1535
1535
  })), o = u, o && (s = o), ri(!0));
1536
1536
  }, Fr);
1537
1537
  }
@@ -1573,14 +1573,14 @@ function so(e) {
1573
1573
  function Ol(e, r) {
1574
1574
  r ? e.hasAttribute("selected") || e.setAttribute("selected", "") : e.removeAttribute("selected");
1575
1575
  }
1576
- function B(e, r, t, a) {
1576
+ function L(e, r, t, a) {
1577
1577
  var n = e.__attributes ?? (e.__attributes = {});
1578
1578
  n[r] !== (n[r] = t) && (r === "style" && "__styles" in e && (e.__styles = {}), r === "loading" && (e[Ks] = t), t == null ? e.removeAttribute(r) : typeof t != "string" && lo(e).includes(r) ? e[r] = t : e.setAttribute(r, t));
1579
1579
  }
1580
1580
  function ea(e, r, t, a, n = !1, i = !1, o = !1) {
1581
1581
  var s = r || {}, l = e.tagName === "OPTION";
1582
- for (var d in r)
1583
- d in t || (t[d] = null);
1582
+ for (var c in r)
1583
+ c in t || (t[c] = null);
1584
1584
  t.class && (t.class = so(t.class)), a !== void 0 && (t.class = t.class ? t.class + " " + a : a);
1585
1585
  var p = lo(e), u = (
1586
1586
  /** @type {Record<string, unknown>} **/
@@ -1599,22 +1599,22 @@ function ea(e, r, t, a, n = !1, i = !1, o = !1) {
1599
1599
  if (g !== "$$") {
1600
1600
  if (g === "on") {
1601
1601
  const P = {}, I = "$$" + v;
1602
- let T = v.slice(2);
1603
- var m = Os(T);
1604
- if (Ns(T) && (T = T.slice(0, -7), P.capture = !0), !m && _) {
1602
+ let E = v.slice(2);
1603
+ var m = Os(E);
1604
+ if (Ns(E) && (E = E.slice(0, -7), P.capture = !0), !m && _) {
1605
1605
  if (y != null) continue;
1606
- e.removeEventListener(T, s[I], P), s[I] = null;
1606
+ e.removeEventListener(E, s[I], P), s[I] = null;
1607
1607
  }
1608
1608
  if (y != null)
1609
1609
  if (m)
1610
- e[`__${T}`] = y, ya([T]);
1610
+ e[`__${E}`] = y, ya([E]);
1611
1611
  else {
1612
- let D = function(R) {
1613
- s[v].call(this, R);
1612
+ let D = function(B) {
1613
+ s[v].call(this, B);
1614
1614
  };
1615
- s[I] = io(T, e, D, P);
1615
+ s[I] = io(E, e, D, P);
1616
1616
  }
1617
- else m && (e[`__${T}`] = void 0);
1617
+ else m && (e[`__${E}`] = void 0);
1618
1618
  } else if (v === "style" && y != null)
1619
1619
  e.style.cssText = y + "";
1620
1620
  else if (v === "autofocus")
@@ -1634,8 +1634,8 @@ function ea(e, r, t, a, n = !1, i = !1, o = !1) {
1634
1634
  else {
1635
1635
  var f = v;
1636
1636
  n || (f = Bs(f));
1637
- var k = f === "defaultValue" || f === "defaultChecked";
1638
- if (y == null && !i && !k)
1637
+ var w = f === "defaultValue" || f === "defaultChecked";
1638
+ if (y == null && !i && !w)
1639
1639
  if (u[v] = null, f === "value" || f === "checked") {
1640
1640
  let P = (
1641
1641
  /** @type {HTMLInputElement} */
@@ -1650,7 +1650,7 @@ function ea(e, r, t, a, n = !1, i = !1, o = !1) {
1650
1650
  }
1651
1651
  } else
1652
1652
  e.removeAttribute(v);
1653
- else k || p.includes(f) && (i || typeof y != "string") ? e[f] = y : typeof y != "function" && B(e, f, y);
1653
+ else w || p.includes(f) && (i || typeof y != "string") ? e[f] = y : typeof y != "function" && L(e, f, y);
1654
1654
  }
1655
1655
  v === "style" && "__styles" in e && (e.__styles = {});
1656
1656
  }
@@ -1744,12 +1744,12 @@ function ii(e) {
1744
1744
  }
1745
1745
  const Vl = (e) => e;
1746
1746
  function po(e, r, t, a) {
1747
- var n = (e & Fs) !== 0, i = (e & zs) !== 0, o = n && i, s = (e & As) !== 0, l = o ? "both" : n ? "in" : "out", d, p = r.inert, u, _;
1747
+ var n = (e & Fs) !== 0, i = (e & zs) !== 0, o = n && i, s = (e & As) !== 0, l = o ? "both" : n ? "in" : "out", c, p = r.inert, u, _;
1748
1748
  function g() {
1749
1749
  var y = de, P = J;
1750
1750
  We(null), qe(null);
1751
1751
  try {
1752
- return d ?? (d = t()(r, (a == null ? void 0 : a()) ?? /** @type {P} */
1752
+ return c ?? (c = t()(r, (a == null ? void 0 : a()) ?? /** @type {P} */
1753
1753
  {}, {
1754
1754
  direction: l
1755
1755
  }));
@@ -1766,12 +1766,12 @@ function po(e, r, t, a) {
1766
1766
  return;
1767
1767
  }
1768
1768
  i || u == null || u.abort(), Vt(r, "introstart"), u = Xa(r, g(), _, 1, () => {
1769
- Vt(r, "introend"), u == null || u.abort(), u = d = void 0;
1769
+ Vt(r, "introend"), u == null || u.abort(), u = c = void 0;
1770
1770
  });
1771
1771
  },
1772
1772
  out(y) {
1773
1773
  if (!i) {
1774
- y == null || y(), d = void 0;
1774
+ y == null || y(), c = void 0;
1775
1775
  return;
1776
1776
  }
1777
1777
  r.inert = !0, Vt(r, "outrostart"), _ = Xa(r, g(), u, 0, () => {
@@ -1786,17 +1786,17 @@ function po(e, r, t, a) {
1786
1786
  J
1787
1787
  );
1788
1788
  if ((f.transitions ?? (f.transitions = [])).push(m), n && Qt) {
1789
- var k = s;
1790
- if (!k) {
1789
+ var w = s;
1790
+ if (!w) {
1791
1791
  for (var v = (
1792
1792
  /** @type {Effect | null} */
1793
1793
  f.parent
1794
1794
  ); v && (v.f & Fr) !== 0; )
1795
1795
  for (; (v = v.parent) && (v.f & pa) === 0; )
1796
1796
  ;
1797
- k = !v || (v.f & Ai) !== 0;
1797
+ w = !v || (v.f & Ai) !== 0;
1798
1798
  }
1799
- k && ma(() => {
1799
+ w && ma(() => {
1800
1800
  br(() => m.in());
1801
1801
  });
1802
1802
  }
@@ -1807,8 +1807,8 @@ function Xa(e, r, t, a, n) {
1807
1807
  var o, s = !1;
1808
1808
  return Wr(() => {
1809
1809
  if (!s) {
1810
- var k = r({ direction: i ? "in" : "out" });
1811
- o = Xa(e, k, t, a, n);
1810
+ var w = r({ direction: i ? "in" : "out" });
1811
+ o = Xa(e, w, t, a, n);
1812
1812
  }
1813
1813
  }), {
1814
1814
  abort: () => {
@@ -1826,37 +1826,37 @@ function Xa(e, r, t, a, n) {
1826
1826
  reset: le,
1827
1827
  t: () => a
1828
1828
  };
1829
- const { delay: l = 0, css: d, tick: p, easing: u = Vl } = r;
1829
+ const { delay: l = 0, css: c, tick: p, easing: u = Vl } = r;
1830
1830
  var _ = [];
1831
- if (i && t === void 0 && (p && p(0, 1), d)) {
1832
- var g = ii(d(0, 1));
1831
+ if (i && t === void 0 && (p && p(0, 1), c)) {
1832
+ var g = ii(c(0, 1));
1833
1833
  _.push(g, g);
1834
1834
  }
1835
1835
  var m = () => 1 - a, f = e.animate(_, { duration: l });
1836
1836
  return f.onfinish = () => {
1837
- var k = (t == null ? void 0 : t.t()) ?? 1 - a;
1837
+ var w = (t == null ? void 0 : t.t()) ?? 1 - a;
1838
1838
  t == null || t.abort();
1839
- var v = a - k, y = (
1839
+ var v = a - w, y = (
1840
1840
  /** @type {number} */
1841
1841
  r.duration * Math.abs(v)
1842
1842
  ), P = [];
1843
1843
  if (y > 0) {
1844
- if (d)
1845
- for (var I = Math.ceil(y / 16.666666666666668), T = 0; T <= I; T += 1) {
1846
- var D = k + v * u(T / I), R = d(D, 1 - D);
1847
- P.push(ii(R));
1844
+ if (c)
1845
+ for (var I = Math.ceil(y / 16.666666666666668), E = 0; E <= I; E += 1) {
1846
+ var D = w + v * u(E / I), B = c(D, 1 - D);
1847
+ P.push(ii(B));
1848
1848
  }
1849
1849
  m = () => {
1850
- var w = (
1850
+ var k = (
1851
1851
  /** @type {number} */
1852
1852
  /** @type {globalThis.Animation} */
1853
1853
  f.currentTime
1854
1854
  );
1855
- return k + v * u(w / y);
1855
+ return w + v * u(k / y);
1856
1856
  }, p && Rl(() => {
1857
1857
  if (f.playState !== "running") return !1;
1858
- var w = m();
1859
- return p(w, 1 - w), !0;
1858
+ var k = m();
1859
+ return p(k, 1 - k), !0;
1860
1860
  });
1861
1861
  }
1862
1862
  f = e.animate(P, { duration: y, fill: "forwards" }), f.onfinish = () => {
@@ -1904,14 +1904,14 @@ function Qe(e = !1) {
1904
1904
  /** @type {Record<string, any>} */
1905
1905
  {}
1906
1906
  );
1907
- const o = /* @__PURE__ */ E(() => {
1907
+ const o = /* @__PURE__ */ S(() => {
1908
1908
  let s = !1;
1909
1909
  const l = r.s;
1910
- for (const d in l)
1911
- l[d] !== i[d] && (i[d] = l[d], s = !0);
1910
+ for (const c in l)
1911
+ l[c] !== i[c] && (i[c] = l[c], s = !0);
1912
1912
  return s && n++, n;
1913
1913
  });
1914
- a = () => c(o);
1914
+ a = () => d(o);
1915
1915
  }
1916
1916
  t.b.length && pl(() => {
1917
1917
  si(r, a), Ca(t.b);
@@ -1927,7 +1927,7 @@ function Qe(e = !1) {
1927
1927
  }
1928
1928
  function si(e, r) {
1929
1929
  if (e.l.s)
1930
- for (const t of e.l.s) c(t);
1930
+ for (const t of e.l.s) d(t);
1931
1931
  r();
1932
1932
  }
1933
1933
  function go(e, r) {
@@ -1986,7 +1986,7 @@ function ze(e, r, t) {
1986
1986
  n ? a.source.v = i : z(a.source, i);
1987
1987
  }), n = !1;
1988
1988
  }
1989
- return c(a.source);
1989
+ return d(a.source);
1990
1990
  }
1991
1991
  function Ae() {
1992
1992
  const e = {};
@@ -2091,14 +2091,14 @@ function li(e) {
2091
2091
  }
2092
2092
  }
2093
2093
  function V(e, r, t, a) {
2094
- var R;
2095
- var n = (t & Es) !== 0, i = !lt || (t & Ts) !== 0, o = (t & Ds) !== 0, s = (t & qs) !== 0, l = !1, d;
2096
- o ? [d, l] = Yl(() => (
2094
+ var B;
2095
+ var n = (t & Es) !== 0, i = !lt || (t & Ts) !== 0, o = (t & Ds) !== 0, s = (t & qs) !== 0, l = !1, c;
2096
+ o ? [c, l] = Yl(() => (
2097
2097
  /** @type {V} */
2098
2098
  e[r]
2099
- )) : d = /** @type {V} */
2099
+ )) : c = /** @type {V} */
2100
2100
  e[r];
2101
- var p = Er in e || ji in e, u = ((R = Sr(e, r)) == null ? void 0 : R.set) ?? (p && o && r in e ? (w) => e[r] = w : void 0), _ = (
2101
+ var p = Er in e || ji in e, u = ((B = Sr(e, r)) == null ? void 0 : B.set) ?? (p && o && r in e ? (k) => e[r] = k : void 0), _ = (
2102
2102
  /** @type {V} */
2103
2103
  a
2104
2104
  ), g = !0, m = !1, f = () => (m = !0, g && (g = !1, s ? _ = br(
@@ -2106,49 +2106,49 @@ function V(e, r, t, a) {
2106
2106
  a
2107
2107
  ) : _ = /** @type {V} */
2108
2108
  a), _);
2109
- d === void 0 && a !== void 0 && (u && i && rl(), d = f(), u && u(d));
2110
- var k;
2109
+ c === void 0 && a !== void 0 && (u && i && rl(), c = f(), u && u(c));
2110
+ var w;
2111
2111
  if (i)
2112
- k = () => {
2113
- var w = (
2112
+ w = () => {
2113
+ var k = (
2114
2114
  /** @type {V} */
2115
2115
  e[r]
2116
2116
  );
2117
- return w === void 0 ? f() : (g = !0, m = !1, w);
2117
+ return k === void 0 ? f() : (g = !0, m = !1, k);
2118
2118
  };
2119
2119
  else {
2120
2120
  var v = li(
2121
- () => (n ? E : et)(() => (
2121
+ () => (n ? S : et)(() => (
2122
2122
  /** @type {V} */
2123
2123
  e[r]
2124
2124
  ))
2125
2125
  );
2126
- v.f |= Xs, k = () => {
2127
- var w = c(v);
2128
- return w !== void 0 && (_ = /** @type {V} */
2129
- void 0), w === void 0 ? _ : w;
2126
+ v.f |= Xs, w = () => {
2127
+ var k = d(v);
2128
+ return k !== void 0 && (_ = /** @type {V} */
2129
+ void 0), k === void 0 ? _ : k;
2130
2130
  };
2131
2131
  }
2132
2132
  if ((t & Is) === 0)
2133
- return k;
2133
+ return w;
2134
2134
  if (u) {
2135
2135
  var y = e.$$legacy;
2136
- return function(w, h) {
2137
- return arguments.length > 0 ? ((!i || !h || y || l) && u(h ? k() : w), w) : k();
2136
+ return function(k, h) {
2137
+ return arguments.length > 0 ? ((!i || !h || y || l) && u(h ? w() : k), k) : w();
2138
2138
  };
2139
2139
  }
2140
- var P = !1, I = !1, T = /* @__PURE__ */ _a(d), D = li(
2141
- () => /* @__PURE__ */ E(() => {
2142
- var w = k(), h = c(T);
2143
- return P ? (P = !1, I = !0, h) : (I = !1, T.v = w);
2140
+ var P = !1, I = !1, E = /* @__PURE__ */ _a(c), D = li(
2141
+ () => /* @__PURE__ */ S(() => {
2142
+ var k = w(), h = d(E);
2143
+ return P ? (P = !1, I = !0, h) : (I = !1, E.v = k);
2144
2144
  })
2145
2145
  );
2146
- return n || (D.equals = dn), function(w, h) {
2146
+ return n || (D.equals = dn), function(k, h) {
2147
2147
  if (arguments.length > 0) {
2148
- const S = h ? c(D) : i && o ? U(w) : w;
2149
- return D.equals(S) || (P = !0, z(T, S), m && _ !== void 0 && (_ = S), br(() => c(D))), w;
2148
+ const T = h ? d(D) : i && o ? U(k) : k;
2149
+ return D.equals(T) || (P = !0, z(E, T), m && _ !== void 0 && (_ = T), br(() => d(D))), k;
2150
2150
  }
2151
- return c(D);
2151
+ return d(D);
2152
2152
  };
2153
2153
  }
2154
2154
  function ci(e, r) {
@@ -2169,20 +2169,20 @@ function Zl(e, r, t) {
2169
2169
  ), o = !1;
2170
2170
  i.fn = (s) => {
2171
2171
  var l = r.onerror;
2172
- let d = r.failed;
2173
- if (!l && !d || o)
2172
+ let c = r.failed;
2173
+ if (!l && !c || o)
2174
2174
  throw s;
2175
2175
  var p = () => {
2176
2176
  Ur(n), ci(i, () => {
2177
2177
  o = !1, n = Ve(() => t(a)), Ta();
2178
2178
  });
2179
2179
  };
2180
- l == null || l(s, p), n && He(n), d && Wr(() => {
2180
+ l == null || l(s, p), n && He(n), c && Wr(() => {
2181
2181
  ci(i, () => {
2182
2182
  o = !0;
2183
2183
  try {
2184
2184
  n = Ve(() => {
2185
- d(
2185
+ c(
2186
2186
  a,
2187
2187
  () => s,
2188
2188
  () => p
@@ -2524,10 +2524,7 @@ class Ql {
2524
2524
  "No purchase started"
2525
2525
  );
2526
2526
  try {
2527
- return await this.backend.postCheckoutComplete(
2528
- t,
2529
- r
2530
- );
2527
+ return await this.backend.postCheckoutComplete(t, r);
2531
2528
  } catch (a) {
2532
2529
  if (a instanceof me)
2533
2530
  throw ue.fromPurchasesError(
@@ -2563,6 +2560,7 @@ class Ql {
2563
2560
  return;
2564
2561
  }
2565
2562
  this.backend.getCheckoutStatus(r).then((o) => {
2563
+ const s = o.operation.store_transaction_identifier, l = o.operation.product_identifier, c = o.operation.purchase_date ? isNaN(Date.parse(o.operation.purchase_date)) ? null : new Date(o.operation.purchase_date) : null;
2566
2564
  switch (o.operation.status) {
2567
2565
  case bt.Started:
2568
2566
  case bt.InProgress:
@@ -2572,9 +2570,21 @@ class Ql {
2572
2570
  );
2573
2571
  break;
2574
2572
  case bt.Succeeded:
2575
- this.clearPurchaseInProgress(), t({
2573
+ if (this.clearPurchaseInProgress(), !s || !l || !c) {
2574
+ a(
2575
+ new ue(
2576
+ 2,
2577
+ "Missing required fields in operation response."
2578
+ )
2579
+ );
2580
+ return;
2581
+ }
2582
+ t({
2576
2583
  redemptionInfo: Jl(o),
2577
- operationSessionId: r
2584
+ operationSessionId: r,
2585
+ storeTransactionIdentifier: s,
2586
+ productIdentifier: l,
2587
+ purchaseDate: c
2578
2588
  });
2579
2589
  return;
2580
2590
  case bt.Failed:
@@ -5763,7 +5773,7 @@ const Ce = "rcb-ui-translator", tt = "en", $l = {
5763
5773
  "product_info.after": "sau",
5764
5774
  "product_info.intro_price_phase_recurring": "{{introPriceDuration}} với giá {{introPrice}}"
5765
5775
  };
5766
- var L = /* @__PURE__ */ ((e) => (e.PeriodsWeek = "periods.week", e.PeriodsMonth = "periods.month", e.PeriodsYear = "periods.year", e.PeriodsDay = "periods.day", e.PeriodsWeekShort = "periods.weekShort", e.PeriodsMonthShort = "periods.monthShort", e.PeriodsYearShort = "periods.yearShort", e.PeriodsDayShort = "periods.dayShort", e.PeriodsLifetime = "periods.lifetime", e.PeriodsWeekPlural = "periods.weekPlural", e.PeriodsMonthPlural = "periods.monthPlural", e.PeriodsYearPlural = "periods.yearPlural", e.PeriodsDayPlural = "periods.dayPlural", e.PeriodsWeekFrequency = "periods.weekFrequency", e.PeriodsMonthFrequency = "periods.monthFrequency", e.PeriodsYearFrequency = "periods.yearFrequency", e.PeriodsDayFrequency = "periods.dayFrequency", e.PeriodsPerWeekFrequency = "periods.perWeekFrequency", e.PeriodsPerMonthFrequency = "periods.perMonthFrequency", e.PeriodsPerYearFrequency = "periods.perYearFrequency", e.PeriodsPerDayFrequency = "periods.perDayFrequency", e.PeriodsUnknownFrequency = "periods.unknownFrequency", e.PeriodsWeekFrequencyPlural = "periods.weekFrequencyPlural", e.PeriodsMonthFrequencyPlural = "periods.monthFrequencyPlural", e.PeriodsYearFrequencyPlural = "periods.yearFrequencyPlural", e.PeriodsDayFrequencyPlural = "periods.dayFrequencyPlural", e.ProductInfoProductTitle = "product_info.product_title", e.ProductInfoProductDescription = "product_info.product_description", e.ProductInfoProductPrice = "product_info.product_price", e.ProductInfoFreeTrialDuration = "product_info.free_trial_duration", e.ProductInfoPriceAfterFreeTrial = "product_info.price_after_free_trial", e.ProductInfoIntroPricePhasePaidUpfront = "product_info.intro_price_phase_paid_upfront", e.ProductInfoIntroPricePhaseRecurring = "product_info.intro_price_phase_recurring", e.ProductInfoPriceAfterIntroPrice = "product_info.price_after_intro_price", e.ProductInfoAfterTrial = "product_info.after_trial", e.ProductInfoAfter = "product_info.after", e.ProductInfoPriceTotalDueToday = "product_info.total_due_today", e.ProductInfoSubscribeTo = "product_info.subscribe_to", e.ProductInfoRenewalFrequency = "product_info.renewal_frequency", e.ProductInfoContinuesUntilCancelled = "product_info.continues_until_cancelled", e.ProductInfoCancelAnytime = "product_info.cancel_anytime", e.PaymentEntryPagePaymentStepTitle = "payment_entry_page.payment_step_title", e.PaymentEntryPageTermsInfo = "payment_entry_page.terms_info", e.PaymentEntryPageTrialInfo = "payment_entry_page.trial_info", e.PaymentEntryPageButtonPay = "payment_entry_page.button_pay", e.PaymentEntryPageButtonStartTrial = "payment_entry_page.button_start_trial", e.PaymentEntryPageButtonWithPrice = "payment_entry_page.button_with_price", e.PaymentEntryPageButtonPaymentMethod = "payment_entry_page.button_payment_method", e.PaymentEntryPageExpressCheckoutDivider = "payment_entry_page.express_checkout_divider", e.SuccessPagePurchaseSuccessful = "success_page.purchase_successful", e.SuccessPageButtonClose = "success_page.button_close", e.ErrorPageCloseButtonTitle = "error_page.close_button_title", e.ErrorPageIfErrorPersists = "error_page.if_error_persists", e.ErrorPageTroubleAccessing = "error_page.trouble_accessing", e.ErrorPageErrorTitleAlreadySubscribed = "error_page.error_title_already_subscribed", e.ErrorPageErrorTitleAlreadyPurchased = "error_page.error_title_already_purchased", e.ErrorPageErrorTitleOtherErrors = "error_page.error_title_other_errors", e.ErrorPageErrorTitleStripeTaxNotActive = "error_page.error_title_stripe_tax_not_active", e.ErrorPageErrorTitleStripeInvalidTaxOriginAddress = "error_page.error_title_stripe_invalid_tax_origin_address", e.ErrorPageErrorTitleStripeMissingRequiredPermission = "error_page.error_title_stripe_missing_required_permission", e.ErrorPageErrorMessageAlreadySubscribed = "error_page.error_message_already_subscribed", e.ErrorPageErrorMessageAlreadyPurchased = "error_page.error_message_already_purchased", e.ErrorPageErrorMessageMissingEmailError = "error_page.error_message_missing_email_error", e.ErrorPageErrorMessageInvalidEmailError = "error_page.error_message_invalid_email_error", e.ErrorPageErrorMessageNetworkError = "error_page.error_message_network_error", e.ErrorPageErrorMessageErrorChargingPayment = "error_page.error_message_error_charging_payment", e.ErrorPageErrorMessageErrorSettingUpPurchase = "error_page.error_message_error_setting_up_purchase", e.ErrorPageErrorMessageUnknownError = "error_page.error_message_unknown_error", e.ErrorPageErrorMessageInvalidTaxLocation = "error_page.error_message_invalid_tax_location", e.ErrorPageErrorMessageStripeTaxNotActive = "error_page.error_message_stripe_tax_not_active", e.ErrorPageErrorMessageStripeInvalidTaxOriginAddress = "error_page.error_message_stripe_invalid_tax_origin_address", e.ErrorPageErrorMessageStripeMissingRequiredPermission = "error_page.error_message_stripe_missing_required_permission", e.ErrorPageErrorMessageOnlyInSandbox = "error_page.error_only_in_sandbox", e.ErrorButtonTryAgain = "error_page.button_try_again", e.ErrorButtonClose = "error_page.button_close", e.PaywallVariablesPricePerPeriod = "paywall_variables.price_per_period", e.PaywallVariablesSubRelativeDiscount = "paywall_variables.sub_relative_discount", e.PaywallVariablesTotalPriceAndPerMonth = "paywall_variables.total_price_and_per_month", e.PricingDropdownShowDetails = "pricing_dropdown.show_details", e.PricingDropdownHideDetails = "pricing_dropdown.hide_details", e.PricingTotalExcludingTax = "pricing_table.total_excluding_tax", e.PricingTableTrialEnds = "pricing_table.trial_ends", e.PricingTableTotalDueToday = "pricing_table.total_due_today", e.PricingTableTax = "pricing_table.tax", e.PricingTableEnterBillingAddressToCalculate = "pricing_table.enter_billing_address_to_calculate", e.PricingTableEnterStateOrPostalCodeToCalculate = "pricing_table.enter_state_or_postal_code_to_calculate", e.PricingTableEnterPostalCodeToCalculate = "pricing_table.enter_postal_code_to_calculate", e.NavbarHeaderDetails = "navbar_header.details", e.NavbarBackButton = "navbar_header.back_button", e.PriceUpdateTitle = "price_update.title", e.PriceUpdateBaseMessage = "price_update.base_message", e.PriceUpdateTrialMessage = "price_update.trial_message", e.ApplePayFreeTrial = "apple_pay.free_trial", e))(L || {});
5776
+ var O = /* @__PURE__ */ ((e) => (e.PeriodsWeek = "periods.week", e.PeriodsMonth = "periods.month", e.PeriodsYear = "periods.year", e.PeriodsDay = "periods.day", e.PeriodsWeekShort = "periods.weekShort", e.PeriodsMonthShort = "periods.monthShort", e.PeriodsYearShort = "periods.yearShort", e.PeriodsDayShort = "periods.dayShort", e.PeriodsLifetime = "periods.lifetime", e.PeriodsWeekPlural = "periods.weekPlural", e.PeriodsMonthPlural = "periods.monthPlural", e.PeriodsYearPlural = "periods.yearPlural", e.PeriodsDayPlural = "periods.dayPlural", e.PeriodsWeekFrequency = "periods.weekFrequency", e.PeriodsMonthFrequency = "periods.monthFrequency", e.PeriodsYearFrequency = "periods.yearFrequency", e.PeriodsDayFrequency = "periods.dayFrequency", e.PeriodsPerWeekFrequency = "periods.perWeekFrequency", e.PeriodsPerMonthFrequency = "periods.perMonthFrequency", e.PeriodsPerYearFrequency = "periods.perYearFrequency", e.PeriodsPerDayFrequency = "periods.perDayFrequency", e.PeriodsUnknownFrequency = "periods.unknownFrequency", e.PeriodsWeekFrequencyPlural = "periods.weekFrequencyPlural", e.PeriodsMonthFrequencyPlural = "periods.monthFrequencyPlural", e.PeriodsYearFrequencyPlural = "periods.yearFrequencyPlural", e.PeriodsDayFrequencyPlural = "periods.dayFrequencyPlural", e.ProductInfoProductTitle = "product_info.product_title", e.ProductInfoProductDescription = "product_info.product_description", e.ProductInfoProductPrice = "product_info.product_price", e.ProductInfoFreeTrialDuration = "product_info.free_trial_duration", e.ProductInfoPriceAfterFreeTrial = "product_info.price_after_free_trial", e.ProductInfoIntroPricePhasePaidUpfront = "product_info.intro_price_phase_paid_upfront", e.ProductInfoIntroPricePhaseRecurring = "product_info.intro_price_phase_recurring", e.ProductInfoPriceAfterIntroPrice = "product_info.price_after_intro_price", e.ProductInfoAfterTrial = "product_info.after_trial", e.ProductInfoAfter = "product_info.after", e.ProductInfoPriceTotalDueToday = "product_info.total_due_today", e.ProductInfoSubscribeTo = "product_info.subscribe_to", e.ProductInfoRenewalFrequency = "product_info.renewal_frequency", e.ProductInfoContinuesUntilCancelled = "product_info.continues_until_cancelled", e.ProductInfoCancelAnytime = "product_info.cancel_anytime", e.PaymentEntryPagePaymentStepTitle = "payment_entry_page.payment_step_title", e.PaymentEntryPageTermsInfo = "payment_entry_page.terms_info", e.PaymentEntryPageTrialInfo = "payment_entry_page.trial_info", e.PaymentEntryPageButtonPay = "payment_entry_page.button_pay", e.PaymentEntryPageButtonStartTrial = "payment_entry_page.button_start_trial", e.PaymentEntryPageButtonWithPrice = "payment_entry_page.button_with_price", e.PaymentEntryPageButtonPaymentMethod = "payment_entry_page.button_payment_method", e.PaymentEntryPageExpressCheckoutDivider = "payment_entry_page.express_checkout_divider", e.SuccessPagePurchaseSuccessful = "success_page.purchase_successful", e.SuccessPageButtonClose = "success_page.button_close", e.ErrorPageCloseButtonTitle = "error_page.close_button_title", e.ErrorPageIfErrorPersists = "error_page.if_error_persists", e.ErrorPageTroubleAccessing = "error_page.trouble_accessing", e.ErrorPageErrorTitleAlreadySubscribed = "error_page.error_title_already_subscribed", e.ErrorPageErrorTitleAlreadyPurchased = "error_page.error_title_already_purchased", e.ErrorPageErrorTitleOtherErrors = "error_page.error_title_other_errors", e.ErrorPageErrorTitleStripeTaxNotActive = "error_page.error_title_stripe_tax_not_active", e.ErrorPageErrorTitleStripeInvalidTaxOriginAddress = "error_page.error_title_stripe_invalid_tax_origin_address", e.ErrorPageErrorTitleStripeMissingRequiredPermission = "error_page.error_title_stripe_missing_required_permission", e.ErrorPageErrorMessageAlreadySubscribed = "error_page.error_message_already_subscribed", e.ErrorPageErrorMessageAlreadyPurchased = "error_page.error_message_already_purchased", e.ErrorPageErrorMessageMissingEmailError = "error_page.error_message_missing_email_error", e.ErrorPageErrorMessageInvalidEmailError = "error_page.error_message_invalid_email_error", e.ErrorPageErrorMessageNetworkError = "error_page.error_message_network_error", e.ErrorPageErrorMessageErrorChargingPayment = "error_page.error_message_error_charging_payment", e.ErrorPageErrorMessageErrorSettingUpPurchase = "error_page.error_message_error_setting_up_purchase", e.ErrorPageErrorMessageUnknownError = "error_page.error_message_unknown_error", e.ErrorPageErrorMessageInvalidTaxLocation = "error_page.error_message_invalid_tax_location", e.ErrorPageErrorMessageStripeTaxNotActive = "error_page.error_message_stripe_tax_not_active", e.ErrorPageErrorMessageStripeInvalidTaxOriginAddress = "error_page.error_message_stripe_invalid_tax_origin_address", e.ErrorPageErrorMessageStripeMissingRequiredPermission = "error_page.error_message_stripe_missing_required_permission", e.ErrorPageErrorMessageOnlyInSandbox = "error_page.error_only_in_sandbox", e.ErrorButtonTryAgain = "error_page.button_try_again", e.ErrorButtonClose = "error_page.button_close", e.PaywallVariablesPricePerPeriod = "paywall_variables.price_per_period", e.PaywallVariablesSubRelativeDiscount = "paywall_variables.sub_relative_discount", e.PaywallVariablesTotalPriceAndPerMonth = "paywall_variables.total_price_and_per_month", e.PricingDropdownShowDetails = "pricing_dropdown.show_details", e.PricingDropdownHideDetails = "pricing_dropdown.hide_details", e.PricingTotalExcludingTax = "pricing_table.total_excluding_tax", e.PricingTableTrialEnds = "pricing_table.trial_ends", e.PricingTableTotalDueToday = "pricing_table.total_due_today", e.PricingTableTax = "pricing_table.tax", e.PricingTableEnterBillingAddressToCalculate = "pricing_table.enter_billing_address_to_calculate", e.PricingTableEnterStateOrPostalCodeToCalculate = "pricing_table.enter_state_or_postal_code_to_calculate", e.PricingTableEnterPostalCodeToCalculate = "pricing_table.enter_postal_code_to_calculate", e.NavbarHeaderDetails = "navbar_header.details", e.NavbarBackButton = "navbar_header.back_button", e.PriceUpdateTitle = "price_update.title", e.PriceUpdateBaseMessage = "price_update.base_message", e.PriceUpdateTrialMessage = "price_update.trial_message", e.ApplePayFreeTrial = "apple_pay.free_trial", e))(O || {});
5767
5777
  const zc = {
5768
5778
  en: $l,
5769
5779
  es: ec,
@@ -6125,11 +6135,11 @@ function bo(e, r = le) {
6125
6135
  function n(s) {
6126
6136
  if (Ci(e, s) && (e = s, t)) {
6127
6137
  const l = !Zr.length;
6128
- for (const d of a)
6129
- d[1](), Zr.push(d, e);
6138
+ for (const c of a)
6139
+ c[1](), Zr.push(c, e);
6130
6140
  if (l) {
6131
- for (let d = 0; d < Zr.length; d += 2)
6132
- Zr[d][0](Zr[d + 1]);
6141
+ for (let c = 0; c < Zr.length; c += 2)
6142
+ Zr[c][0](Zr[c + 1]);
6133
6143
  Zr.length = 0;
6134
6144
  }
6135
6145
  }
@@ -6141,12 +6151,12 @@ function bo(e, r = le) {
6141
6151
  ));
6142
6152
  }
6143
6153
  function o(s, l = le) {
6144
- const d = [s, l];
6145
- return a.add(d), a.size === 1 && (t = r(n, i) || le), s(
6154
+ const c = [s, l];
6155
+ return a.add(c), a.size === 1 && (t = r(n, i) || le), s(
6146
6156
  /** @type {T} */
6147
6157
  e
6148
6158
  ), () => {
6149
- a.delete(d), a.size === 0 && t && (t(), t = null);
6159
+ a.delete(c), a.size === 0 && t && (t(), t = null);
6150
6160
  };
6151
6161
  }
6152
6162
  return { set: n, update: i, subscribe: o };
@@ -6312,7 +6322,7 @@ function Vc(e) {
6312
6322
  })), r;
6313
6323
  }
6314
6324
  function Hc(e, r = Ue) {
6315
- var l, d;
6325
+ var l, c;
6316
6326
  const { font_size: t, horizontal_alignment: a, font_weight: n, font_name: i, color: o } = e, s = {
6317
6327
  "--text-align": "initial",
6318
6328
  "--font-weight": "initial",
@@ -6327,7 +6337,7 @@ function Hc(e, r = Ue) {
6327
6337
  "--font-weight": ra[n] || ra.regular,
6328
6338
  "--font-size": ta[t] || ta.body_m,
6329
6339
  "--font-family": i || "sans-serif"
6330
- }), o && (((l = o[r]) == null ? void 0 : l.type) === "linear" || ((d = o[r]) == null ? void 0 : d.type) === "radial") && Object.assign(s, {
6340
+ }), o && (((l = o[r]) == null ? void 0 : l.type) === "linear" || ((c = o[r]) == null ? void 0 : c.type) === "radial") && Object.assign(s, {
6331
6341
  "--background-clip": "text",
6332
6342
  "--text-fill-color": "transparent",
6333
6343
  "--background": yr({ colorMap: o, colorMode: r })
@@ -6392,10 +6402,10 @@ const Xc = (e) => {
6392
6402
  return e != null && e.corners && Object.assign(r, na(e.corners)), r;
6393
6403
  };
6394
6404
  function Zc(e) {
6395
- var s, l, d;
6405
+ var s, l, c;
6396
6406
  if (((l = (s = e.color_overlay) == null ? void 0 : s[e.purchaseState.colorMode]) == null ? void 0 : l.type) !== "linear")
6397
6407
  return { x1: "0%", y1: "0%", x2: "0%", y2: "0%" };
6398
- const { color_overlay: r } = e, t = ((d = r == null ? void 0 : r[Ue]) == null ? void 0 : d.degrees) || 0, a = "50%", n = "0%", i = `${Math.round(50 + Math.sin((t + 90) * Math.PI / 90) * 50)}%`, o = `${Math.round(50 - Math.cos((t + 90) * Math.PI / 90) * 50)}%`;
6408
+ const { color_overlay: r } = e, t = ((c = r == null ? void 0 : r[Ue]) == null ? void 0 : c.degrees) || 0, a = "50%", n = "0%", i = `${Math.round(50 + Math.sin((t + 90) * Math.PI / 90) * 50)}%`, o = `${Math.round(50 - Math.cos((t + 90) * Math.PI / 90) * 50)}%`;
6399
6409
  return { x1: a, y1: n, x2: i, y2: o };
6400
6410
  }
6401
6411
  const Po = {
@@ -6429,14 +6439,14 @@ const Po = {
6429
6439
  "--border-start-end-radius": "0px",
6430
6440
  "--shadow": "none",
6431
6441
  "--flex": "0 1 auto"
6432
- }, d = bn(e.overrides, e.componentState), p = Uc(r), u = Hc({ ...e, ...d }, s.colorMode), _ = va({
6442
+ }, c = bn(e.overrides, e.componentState), p = Uc(r), u = Hc({ ...e, ...c }, s.colorMode), _ = va({
6433
6443
  background_color: a,
6434
6444
  color: t,
6435
6445
  margin: i,
6436
6446
  padding: n,
6437
6447
  colorMode: s.colorMode,
6438
- ...d
6439
- }), g = Lt({ ...o, ...d }), m = {
6448
+ ...c
6449
+ }), g = Lt({ ...o, ...c }), m = {
6440
6450
  ...l,
6441
6451
  ..._,
6442
6452
  ...u,
@@ -6547,8 +6557,8 @@ function xo(e, r) {
6547
6557
  o.namespaceURI === St,
6548
6558
  o.nodeName.includes("-")
6549
6559
  ));
6550
- var d = re(), p = G(d);
6551
- fe(p, () => r.children ?? le), b(s, d);
6560
+ var c = re(), p = G(c);
6561
+ fe(p, () => r.children ?? le), b(s, c);
6552
6562
  }), b(e, n), Y();
6553
6563
  }
6554
6564
  var rd = /* @__PURE__ */ q('<span class="rc-pw-text-wrapper svelte-11gzifq"><!></span>');
@@ -6569,7 +6579,7 @@ function ad(e, r) {
6569
6579
  "variableDictionary",
6570
6580
  "background_color",
6571
6581
  "size"
6572
- ]), a = /* @__PURE__ */ E(() => Qc({
6582
+ ]), a = /* @__PURE__ */ S(() => Qc({
6573
6583
  id: r.id,
6574
6584
  labels: r.labels,
6575
6585
  text_lid: r.text_lid,
@@ -6577,33 +6587,33 @@ function ad(e, r) {
6577
6587
  background_color: r.background_color,
6578
6588
  size: r.size,
6579
6589
  ...t
6580
- })), n = /* @__PURE__ */ E(() => c(a).tagToRender), i = /* @__PURE__ */ E(() => c(a).textStyles), o = /* @__PURE__ */ E(() => Jc(t, r.size, r.background_color)), s = /* @__PURE__ */ E(() => yn({
6590
+ })), n = /* @__PURE__ */ S(() => d(a).tagToRender), i = /* @__PURE__ */ S(() => d(a).textStyles), o = /* @__PURE__ */ S(() => Jc(t, r.size, r.background_color)), s = /* @__PURE__ */ S(() => yn({
6581
6591
  text_lid: r.text_lid,
6582
6592
  locale: r.purchaseState.locale,
6583
6593
  defaultLocale: r.purchaseState.defaultLocale,
6584
6594
  labels: r.labels,
6585
6595
  variableDictionary: r.variableDictionary
6586
- })), l = /* @__PURE__ */ E(() => $c(c(s)));
6587
- var d = rd(), p = x(d);
6596
+ })), l = /* @__PURE__ */ S(() => $c(d(s)));
6597
+ var c = rd(), p = x(c);
6588
6598
  xo(p, {
6589
6599
  get styleVariables() {
6590
- return c(i);
6600
+ return d(i);
6591
6601
  },
6592
6602
  get component() {
6593
- return c(n);
6603
+ return d(n);
6594
6604
  },
6595
6605
  get id() {
6596
6606
  return r.id;
6597
6607
  },
6598
6608
  children: (u, _) => {
6599
6609
  var g = re(), m = G(g);
6600
- Yr(m, () => c(l)), b(u, g);
6610
+ Yr(m, () => d(l)), b(u, g);
6601
6611
  },
6602
6612
  $$slots: { default: !0 }
6603
- }), A(() => B(d, "style", c(o))), b(e, d), Y();
6613
+ }), A(() => L(c, "style", d(o))), b(e, c), Y();
6604
6614
  }
6605
6615
  const nd = (e) => {
6606
- const { background_color: r, margin: t, padding: a, spacing: n, size: i, border: o, shape: s, shadow: l, dimension: d, componentState: p, overrides: u, purchaseState: _, zStackChildStyles: g } = e, m = {
6616
+ const { background_color: r, margin: t, padding: a, spacing: n, size: i, border: o, shape: s, shadow: l, dimension: c, componentState: p, overrides: u, purchaseState: _, zStackChildStyles: g } = e, m = {
6607
6617
  "--flex": "0 1 auto",
6608
6618
  "--height": "initial",
6609
6619
  "--width": "initial",
@@ -6641,14 +6651,14 @@ const nd = (e) => {
6641
6651
  shadow: l,
6642
6652
  ...f
6643
6653
  }), Vc({
6644
- ...d,
6654
+ ...c,
6645
6655
  ...f
6646
6656
  }), Lt({ ...i, ...f })), Object.assign(m, g);
6647
- const k = Ge(m, "stack");
6648
- return Oe(k);
6657
+ const w = Ge(m, "stack");
6658
+ return Oe(w);
6649
6659
  };
6650
6660
  function id(e) {
6651
- var n, i, o, s, l, d;
6661
+ var n, i, o, s, l, c;
6652
6662
  const { badge: r } = e;
6653
6663
  if (!r)
6654
6664
  return "";
@@ -6685,7 +6695,7 @@ function id(e) {
6685
6695
  })), r.style === "overlay" && (t["--margin-block-start"] = "0px", t["--margin-block-end"] = "0px", t["--transform"] = Wt(r, 0, -(((n = e.border) == null ? void 0 : n.width) || 0))), r.style === "edge_to_edge")
6686
6696
  if (t["--margin-block-start"] = "0px", t["--margin-block-end"] = "0px", t["--margin-inline-start"] = "0px", t["--margin-inline-end"] = "0px", r.alignment === "top" || r.alignment === "bottom") {
6687
6697
  t["--badge-width"] = `calc(100% + ${(((i = e.border) == null ? void 0 : i.width) || 0) * 2}px)`, t["--z-index"] = "-1";
6688
- const p = Math.max(((s = (o = e.shape) == null ? void 0 : o.corners) == null ? void 0 : s.top_leading) || 0, ((d = (l = e.shape) == null ? void 0 : l.corners) == null ? void 0 : d.top_trailing) || 0);
6698
+ const p = Math.max(((s = (o = e.shape) == null ? void 0 : o.corners) == null ? void 0 : s.top_leading) || 0, ((c = (l = e.shape) == null ? void 0 : l.corners) == null ? void 0 : c.top_trailing) || 0);
6689
6699
  r.alignment === "top" && (t["--padding-block-end"] = `${p + r.padding.bottom}px`, t["--transform"] = Wt(r, p)), r.alignment === "bottom" && (t["--padding-block-start"] = `${p + r.padding.top}px`, t["--transform"] = Wt(r, -p));
6690
6700
  } else
6691
6701
  t["--transform"] = Wt(r), Object.assign(t, od(e));
@@ -6809,7 +6819,7 @@ function Bt(e, r) {
6809
6819
  "variableDictionary",
6810
6820
  "badge",
6811
6821
  "zStackChildStyles"
6812
- ]), a = /* @__PURE__ */ E(() => nd({
6822
+ ]), a = /* @__PURE__ */ S(() => nd({
6813
6823
  id: r.id,
6814
6824
  components: r.components,
6815
6825
  labels: r.labels,
@@ -6817,7 +6827,7 @@ function Bt(e, r) {
6817
6827
  purchaseState: r.purchaseState,
6818
6828
  zStackChildStyles: r.zStackChildStyles,
6819
6829
  ...t
6820
- })), n = /* @__PURE__ */ E(() => id({
6830
+ })), n = /* @__PURE__ */ S(() => id({
6821
6831
  id: r.id,
6822
6832
  components: r.components,
6823
6833
  labels: r.labels,
@@ -6825,14 +6835,14 @@ function Bt(e, r) {
6825
6835
  purchaseState: r.purchaseState,
6826
6836
  badge: r.badge,
6827
6837
  ...t
6828
- })), i = /* @__PURE__ */ E(() => ld({
6838
+ })), i = /* @__PURE__ */ S(() => ld({
6829
6839
  id: r.id,
6830
6840
  components: r.components,
6831
6841
  labels: r.labels,
6832
6842
  onAction: r.onAction,
6833
6843
  purchaseState: r.purchaseState,
6834
6844
  ...t
6835
- })), o = /* @__PURE__ */ E(() => {
6845
+ })), o = /* @__PURE__ */ S(() => {
6836
6846
  var m;
6837
6847
  return yn({
6838
6848
  defaultLocale: r.purchaseState.defaultLocale,
@@ -6841,7 +6851,7 @@ function Bt(e, r) {
6841
6851
  variableDictionary: r.variableDictionary,
6842
6852
  text_lid: (m = r.badge) == null ? void 0 : m.text_lid
6843
6853
  });
6844
- }), s = /* @__PURE__ */ E(() => sd({
6854
+ }), s = /* @__PURE__ */ S(() => sd({
6845
6855
  id: r.id,
6846
6856
  components: r.components,
6847
6857
  labels: r.labels,
@@ -6850,38 +6860,38 @@ function Bt(e, r) {
6850
6860
  variableDictionary: r.variableDictionary,
6851
6861
  badge: r.badge,
6852
6862
  ...t
6853
- })), l = /* @__PURE__ */ E(() => c(s).tagToRender), d = /* @__PURE__ */ E(() => c(s).textStyles);
6863
+ })), l = /* @__PURE__ */ S(() => d(s).tagToRender), c = /* @__PURE__ */ S(() => d(s).textStyles);
6854
6864
  var p = dd(), u = x(p);
6855
6865
  {
6856
6866
  var _ = (m) => {
6857
- var f = cd(), k = x(f);
6858
- xo(k, {
6867
+ var f = cd(), w = x(f);
6868
+ xo(w, {
6859
6869
  get styleVariables() {
6860
- return c(d);
6870
+ return d(c);
6861
6871
  },
6862
6872
  get component() {
6863
- return c(l);
6873
+ return d(l);
6864
6874
  },
6865
6875
  children: (v, y) => {
6866
6876
  var P = se();
6867
- A(() => ae(P, c(o))), b(v, P);
6877
+ A(() => ae(P, d(o))), b(v, P);
6868
6878
  },
6869
6879
  $$slots: { default: !0 }
6870
- }), A(() => B(f, "style", c(n))), b(m, f);
6880
+ }), A(() => L(f, "style", d(n))), b(m, f);
6871
6881
  };
6872
6882
  N(u, (m) => {
6873
6883
  r.badge && m(_);
6874
6884
  });
6875
6885
  }
6876
6886
  var g = C(u, 2);
6877
- ot(g, 21, () => r.components, it, (m, f, k) => {
6887
+ ot(g, 21, () => r.components, it, (m, f, w) => {
6878
6888
  var v = re(), y = G(v);
6879
6889
  {
6880
- var P = (T) => {
6881
- var D = /* @__PURE__ */ E(() => k > 0 ? c(i) : void 0);
6882
- ia(T, {
6890
+ var P = (E) => {
6891
+ var D = /* @__PURE__ */ S(() => w > 0 ? d(i) : void 0);
6892
+ ia(E, {
6883
6893
  get nodeData() {
6884
- return c(f);
6894
+ return d(f);
6885
6895
  },
6886
6896
  get labels() {
6887
6897
  return r.labels;
@@ -6899,13 +6909,13 @@ function Bt(e, r) {
6899
6909
  return r.componentState;
6900
6910
  },
6901
6911
  get zStackChildStyles() {
6902
- return c(D);
6912
+ return d(D);
6903
6913
  }
6904
6914
  });
6905
- }, I = (T) => {
6906
- ia(T, {
6915
+ }, I = (E) => {
6916
+ ia(E, {
6907
6917
  get nodeData() {
6908
- return c(f);
6918
+ return d(f);
6909
6919
  },
6910
6920
  get labels() {
6911
6921
  return r.labels;
@@ -6924,13 +6934,13 @@ function Bt(e, r) {
6924
6934
  }
6925
6935
  });
6926
6936
  };
6927
- N(y, (T) => {
6928
- c(i) ? T(P) : T(I, !1);
6937
+ N(y, (E) => {
6938
+ d(i) ? E(P) : E(I, !1);
6929
6939
  });
6930
6940
  }
6931
6941
  b(m, v);
6932
6942
  }), A(() => {
6933
- B(p, "id", r.id), B(p, "style", c(a));
6943
+ L(p, "id", r.id), L(p, "style", d(a));
6934
6944
  }), b(e, p), Y();
6935
6945
  }
6936
6946
  function pd({ stack: e, zStackChildStyles: r }) {
@@ -6961,7 +6971,7 @@ function gd(e, r) {
6961
6971
  "variableDictionary"
6962
6972
  ]), a = () => {
6963
6973
  r.onAction && r.onAction(r.action);
6964
- }, n = /* @__PURE__ */ E(() => pd({
6974
+ }, n = /* @__PURE__ */ S(() => pd({
6965
6975
  stack: r.stack,
6966
6976
  action: r.action,
6967
6977
  onAction: r.onAction,
@@ -6973,7 +6983,7 @@ function gd(e, r) {
6973
6983
  Eo(e, {
6974
6984
  onclick: a,
6975
6985
  get style() {
6976
- return c(n);
6986
+ return d(n);
6977
6987
  },
6978
6988
  class: "rc-pw-button",
6979
6989
  children: (i, o) => {
@@ -7020,11 +7030,11 @@ function ia(e, r) {
7020
7030
  "purchaseState",
7021
7031
  "variableDictionary",
7022
7032
  "zStackChildStyles"
7023
- ]), s = /* @__PURE__ */ E(() => i(r.nodeData)), l = /* @__PURE__ */ E(() => c(s)[0]), d = /* @__PURE__ */ E(() => c(s)[1]);
7033
+ ]), s = /* @__PURE__ */ S(() => i(r.nodeData)), l = /* @__PURE__ */ S(() => d(s)[0]), c = /* @__PURE__ */ S(() => d(s)[1]);
7024
7034
  var p = re(), u = G(p);
7025
- return Nl(u, () => c(l), (_, g) => {
7035
+ return Nl(u, () => d(l), (_, g) => {
7026
7036
  g(_, vr(
7027
- () => c(d) || {},
7037
+ () => d(c) || {},
7028
7038
  {
7029
7039
  get labels() {
7030
7040
  return r.labels;
@@ -7048,12 +7058,12 @@ function ia(e, r) {
7048
7058
  () => o,
7049
7059
  {
7050
7060
  children: (m, f) => {
7051
- var k = re(), v = G(k);
7061
+ var w = re(), v = G(w);
7052
7062
  ot(v, 17, () => r.nodeData.components, it, (y, P) => {
7053
7063
  ia(y, vr(
7054
7064
  {
7055
7065
  get nodeData() {
7056
- return c(P);
7066
+ return d(P);
7057
7067
  },
7058
7068
  get labels() {
7059
7069
  return r.labels;
@@ -7070,7 +7080,7 @@ function ia(e, r) {
7070
7080
  },
7071
7081
  () => o
7072
7082
  ));
7073
- }), b(m, k);
7083
+ }), b(m, w);
7074
7084
  },
7075
7085
  $$slots: { default: !0 }
7076
7086
  }
@@ -7117,7 +7127,7 @@ function So(e, r) {
7117
7127
  get onAction() {
7118
7128
  return r.onAction;
7119
7129
  }
7120
- })), A(() => B(t, "id", r.id)), b(e, t);
7130
+ })), A(() => L(t, "id", r.id)), b(e, t);
7121
7131
  }
7122
7132
  var bd = /* @__PURE__ */ q('<div class="rc-pw-paywall-background svelte-14bszwq"></div>'), vd = /* @__PURE__ */ q('<div class="rc-pw-paywall-background rc-pw-image-container svelte-14bszwq"><img class="rc-pw-image svelte-14bszwq" alt=""></div>'), kd = /* @__PURE__ */ q('<div class="rc-pw-paywall svelte-14bszwq"><!> <!> <!></div>');
7123
7133
  const wd = {
@@ -7154,19 +7164,19 @@ function Pd(e, r) {
7154
7164
  defaultLocale: r.paywallData.default_locale,
7155
7165
  variablesPerPackage: n(),
7156
7166
  colorMode: r.preferredColorMode || (a() ? "dark" : Ue)
7157
- }), o = Z(U(n()[i.selectedPackageId || ""]));
7167
+ }), o = K(U(n()[i.selectedPackageId || ""]));
7158
7168
  const s = (v, y) => {
7159
7169
  var P;
7160
7170
  (P = r.onRestorePurchasesClicked) == null || P.call(r);
7161
7171
  }, l = (v, y) => {
7162
7172
  var P;
7163
7173
  (P = r.onBackClicked) == null || P.call(r);
7164
- }, d = (v, y) => {
7165
- var I, T;
7174
+ }, c = (v, y) => {
7175
+ var I, E;
7166
7176
  if (v.destination === "customer_center" && ((I = r.onVisitCustomerCenterClicked) == null || I.call(r)), !v.url)
7167
7177
  return;
7168
7178
  const P = yo(v.url.url_lid, i.locale, i.defaultLocale, r.paywallData.components_localizations);
7169
- P && ((T = r.onNavigateToUrlClicked) == null || T.call(r, P));
7179
+ P && ((E = r.onNavigateToUrlClicked) == null || E.call(r, P));
7170
7180
  }, p = (v, y) => {
7171
7181
  i.selectedPackageId = y == null ? void 0 : y.packageId, y != null && y.packageId && z(o, U(n()[y.packageId]));
7172
7182
  }, u = (v, y) => {
@@ -7178,7 +7188,7 @@ function Pd(e, r) {
7178
7188
  p(v, y);
7179
7189
  break;
7180
7190
  case "navigate_to":
7181
- d(v);
7191
+ c(v);
7182
7192
  break;
7183
7193
  case "navigate_back":
7184
7194
  l();
@@ -7190,16 +7200,16 @@ function Pd(e, r) {
7190
7200
  u();
7191
7201
  break;
7192
7202
  }
7193
- }, g = /* @__PURE__ */ E(() => {
7203
+ }, g = /* @__PURE__ */ S(() => {
7194
7204
  var v;
7195
7205
  return md({
7196
7206
  background: (v = r.paywallData.components_config.base) == null ? void 0 : v.background,
7197
7207
  colorMode: i.colorMode
7198
7208
  });
7199
- }), m = /* @__PURE__ */ E(() => fd(r.paywallData, i.colorMode));
7200
- var f = re(), k = G(f);
7209
+ }), m = /* @__PURE__ */ S(() => fd(r.paywallData, i.colorMode));
7210
+ var f = re(), w = G(f);
7201
7211
  Zl(
7202
- k,
7212
+ w,
7203
7213
  {
7204
7214
  get onerror() {
7205
7215
  return r.onError;
@@ -7219,12 +7229,12 @@ function Pd(e, r) {
7219
7229
  return i;
7220
7230
  },
7221
7231
  get variableDictionary() {
7222
- return c(o);
7232
+ return d(o);
7223
7233
  }
7224
7234
  });
7225
7235
  var I = C(P, 2);
7226
7236
  {
7227
- var T = (h) => {
7237
+ var E = (h) => {
7228
7238
  So(h, vr(() => r.paywallData.components_config.base.sticky_footer, {
7229
7239
  get stack() {
7230
7240
  return r.paywallData.components_config.base.sticky_footer.stack;
@@ -7236,41 +7246,41 @@ function Pd(e, r) {
7236
7246
  return i;
7237
7247
  },
7238
7248
  get variableDictionary() {
7239
- return c(o);
7249
+ return d(o);
7240
7250
  },
7241
7251
  onAction: _
7242
7252
  }));
7243
7253
  };
7244
7254
  N(I, (h) => {
7245
- r.paywallData.components_config.base.sticky_footer && h(T);
7255
+ r.paywallData.components_config.base.sticky_footer && h(E);
7246
7256
  });
7247
7257
  }
7248
7258
  var D = C(I, 2);
7249
7259
  {
7250
- var R = (h) => {
7251
- var S = bd();
7252
- A(() => B(S, "style", c(g))), b(h, S);
7253
- }, w = (h) => {
7254
- var S = re(), j = G(S);
7260
+ var B = (h) => {
7261
+ var T = bd();
7262
+ A(() => L(T, "style", d(g))), b(h, T);
7263
+ }, k = (h) => {
7264
+ var T = re(), j = G(T);
7255
7265
  {
7256
- var O = (K) => {
7266
+ var R = (Z) => {
7257
7267
  var X = vd(), $ = x(X);
7258
- A(() => B($, "src", c(m))), b(K, X);
7268
+ A(() => L($, "src", d(m))), b(Z, X);
7259
7269
  };
7260
7270
  N(
7261
7271
  j,
7262
- (K) => {
7272
+ (Z) => {
7263
7273
  var X;
7264
- ((X = r.paywallData.components_config.base.background) == null ? void 0 : X.type) === "image" && K(O);
7274
+ ((X = r.paywallData.components_config.base.background) == null ? void 0 : X.type) === "image" && Z(R);
7265
7275
  },
7266
7276
  !0
7267
7277
  );
7268
7278
  }
7269
- b(h, S);
7279
+ b(h, T);
7270
7280
  };
7271
7281
  N(D, (h) => {
7272
- var S;
7273
- ((S = r.paywallData.components_config.base.background) == null ? void 0 : S.type) === "color" ? h(R) : h(w, !1);
7282
+ var T;
7283
+ ((T = r.paywallData.components_config.base.background) == null ? void 0 : T.type) === "color" ? h(B) : h(k, !1);
7274
7284
  });
7275
7285
  }
7276
7286
  b(v, y);
@@ -7292,7 +7302,7 @@ function Eo(e, r) {
7292
7302
  t.__click = [xd, r];
7293
7303
  var a = x(t);
7294
7304
  fe(a, () => r.children ?? le), A(() => {
7295
- qr(t, so(r.class), "svelte-1wpam0z"), t.disabled = !r.onclick, B(t, "style", r.style);
7305
+ qr(t, so(r.class), "svelte-1wpam0z"), t.disabled = !r.onclick, L(t, "style", r.style);
7296
7306
  }), b(e, t), Y();
7297
7307
  }
7298
7308
  ya(["click"]);
@@ -7344,7 +7354,7 @@ function Dd(e, r) {
7344
7354
  large: { width: "16px", offset: "30px" }
7345
7355
  };
7346
7356
  var n = Td();
7347
- A(() => B(n, "style", `--shadow-offset: ${a[t()].offset ?? ""}; --width: ${a[t()].width ?? ""};`)), b(e, n);
7357
+ A(() => L(n, "style", `--shadow-offset: ${a[t()].offset ?? ""}; --width: ${a[t()].width ?? ""};`)), b(e, n);
7348
7358
  }
7349
7359
  var qd = /* @__PURE__ */ q("<span><!></span>");
7350
7360
  const Fd = {
@@ -7793,17 +7803,17 @@ const eu = {
7793
7803
  };
7794
7804
  function Fo(e, r) {
7795
7805
  W(r, !0), H(e, eu);
7796
- const t = V(r, "intent", 3, "primary"), a = V(r, "disabled", 3, !1), n = V(r, "loading", 3, !1), i = /* @__PURE__ */ E(() => new Qd(r.brandingAppearance)), o = /* @__PURE__ */ E(() => c(i).textStyleVars), s = /* @__PURE__ */ E(() => c(i).spacingStyleVars), l = /* @__PURE__ */ E(() => c(i).productInfoStyleVars), d = /* @__PURE__ */ E(() => c(i).formStyleVars), p = /* @__PURE__ */ E(() => [
7806
+ const t = V(r, "intent", 3, "primary"), a = V(r, "disabled", 3, !1), n = V(r, "loading", 3, !1), i = /* @__PURE__ */ S(() => new Qd(r.brandingAppearance)), o = /* @__PURE__ */ S(() => d(i).textStyleVars), s = /* @__PURE__ */ S(() => d(i).spacingStyleVars), l = /* @__PURE__ */ S(() => d(i).productInfoStyleVars), c = /* @__PURE__ */ S(() => d(i).formStyleVars), p = /* @__PURE__ */ S(() => [
7797
7807
  r.styleOverrides,
7798
- c(o),
7799
- c(s),
7800
- c(l),
7801
- c(d)
7808
+ d(o),
7809
+ d(s),
7810
+ d(l),
7811
+ d(c)
7802
7812
  ].join("; "));
7803
7813
  var u = $d();
7804
7814
  u.__click = function(...f) {
7805
- var k;
7806
- (k = r.onclick) == null || k.apply(this, f);
7815
+ var w;
7816
+ (w = r.onclick) == null || w.apply(this, f);
7807
7817
  };
7808
7818
  var _ = x(u);
7809
7819
  {
@@ -7812,9 +7822,9 @@ function Fo(e, r) {
7812
7822
  }, m = (f) => {
7813
7823
  zd(f, {
7814
7824
  size: "body-base",
7815
- children: (k, v) => {
7825
+ children: (w, v) => {
7816
7826
  var y = re(), P = G(y);
7817
- jl(P, r, "default", {}), b(k, y);
7827
+ jl(P, r, "default", {}), b(w, y);
7818
7828
  },
7819
7829
  $$slots: { default: !0 }
7820
7830
  });
@@ -7824,7 +7834,7 @@ function Fo(e, r) {
7824
7834
  });
7825
7835
  }
7826
7836
  A(() => {
7827
- qr(u, `${`intent-${t()}` ?? ""} svelte-td7xvm`), u.disabled = a(), B(u, "data-testid", r.testId), B(u, "type", r.type), B(u, "style", c(p));
7837
+ qr(u, `${`intent-${t()}` ?? ""} svelte-td7xvm`), u.disabled = a(), L(u, "data-testid", r.testId), L(u, "type", r.type), L(u, "style", d(p));
7828
7838
  }), b(e, u), Y();
7829
7839
  }
7830
7840
  ya(["click"]);
@@ -7842,11 +7852,11 @@ const ru = (e) => {
7842
7852
  "--transform": "initial"
7843
7853
  }, o = bn(t, a);
7844
7854
  Object.assign(i, n), Object.assign(i, Lt({ ...r, ...o })), Object.assign(i, Xc(e.mask_shape));
7845
- const s = Ge(i, "image"), l = Gc(e), d = Zc(e);
7855
+ const s = Ge(i, "image"), l = Gc(e), c = Zc(e);
7846
7856
  return {
7847
7857
  imageStyles: Oe(s),
7848
7858
  maskPath: l,
7849
- linearGradientAngle: d
7859
+ linearGradientAngle: c
7850
7860
  };
7851
7861
  };
7852
7862
  var tu = /* @__PURE__ */ ur('<ellipse cx="50" rx="50"></ellipse>'), au = /* @__PURE__ */ ur("<path></path>"), nu = /* @__PURE__ */ ur("<stop></stop>"), iu = /* @__PURE__ */ ur("<linearGradient></linearGradient>"), ou = /* @__PURE__ */ ur("<stop></stop>"), su = /* @__PURE__ */ ur('<radialGradient cx="50%" cy="50%" r="50%" fx="50%" fy="50%"></radialGradient>'), lu = /* @__PURE__ */ ur('<linearGradient><stop offset="0%"></stop></linearGradient>'), cu = /* @__PURE__ */ q('<img style="display: none;" alt=""> <svg class="rc-pw-image-container svelte-1esrvxg" preserveAspectRatio="xMidYMid slice"><defs><clipPath><!></clipPath><!></defs><image class="rc-pw-image svelte-1esrvxg" x="0" y="0" width="100" preserveAspectRatio="xMidYMid slice"></image><rect class="rc-pw-image-overlay svelte-1esrvxg" x="0" y="0" width="100"></rect></svg>', 1);
@@ -7864,59 +7874,59 @@ function uu(e, r) {
7864
7874
  "source",
7865
7875
  "purchaseState"
7866
7876
  ]);
7867
- let a = Z(0), n;
7877
+ let a = K(0), n;
7868
7878
  function i() {
7869
7879
  n && z(a, n.naturalHeight / n.naturalWidth);
7870
7880
  }
7871
- const o = /* @__PURE__ */ E(() => ru({
7881
+ const o = /* @__PURE__ */ S(() => ru({
7872
7882
  id: r.id,
7873
7883
  colorMode: r.purchaseState.colorMode,
7874
7884
  source: r.source,
7875
7885
  purchaseState: r.purchaseState,
7876
7886
  ...t,
7877
- imageAspectRatio: c(a)
7878
- })), s = /* @__PURE__ */ E(() => c(o).imageStyles), l = /* @__PURE__ */ E(() => c(o).maskPath), d = /* @__PURE__ */ E(() => c(o).linearGradientAngle), p = /* @__PURE__ */ E(() => {
7879
- var h, S;
7880
- const w = r.purchaseState.colorMode;
7881
- return (h = r.source[w]) != null && h.original ? r.source[w].original : (S = r.source[Ue]) == null ? void 0 : S.original;
7887
+ imageAspectRatio: d(a)
7888
+ })), s = /* @__PURE__ */ S(() => d(o).imageStyles), l = /* @__PURE__ */ S(() => d(o).maskPath), c = /* @__PURE__ */ S(() => d(o).linearGradientAngle), p = /* @__PURE__ */ S(() => {
7889
+ var h, T;
7890
+ const k = r.purchaseState.colorMode;
7891
+ return (h = r.source[k]) != null && h.original ? r.source[k].original : (T = r.source[Ue]) == null ? void 0 : T.original;
7882
7892
  });
7883
7893
  var u = cu(), _ = G(u);
7884
- _o(_, (w) => n = w, () => n);
7885
- var g = C(_, 2), m = x(g), f = x(m), k = x(f);
7894
+ _o(_, (k) => n = k, () => n);
7895
+ var g = C(_, 2), m = x(g), f = x(m), w = x(f);
7886
7896
  {
7887
- var v = (w) => {
7897
+ var v = (k) => {
7888
7898
  var h = tu();
7889
7899
  A(() => {
7890
- B(h, "cy", c(a) * 50), B(h, "ry", c(a) * 50);
7891
- }), b(w, h);
7892
- }, y = (w) => {
7900
+ L(h, "cy", d(a) * 50), L(h, "ry", d(a) * 50);
7901
+ }), b(k, h);
7902
+ }, y = (k) => {
7893
7903
  var h = au();
7894
- A(() => B(h, "d", c(l))), b(w, h);
7904
+ A(() => L(h, "d", d(l))), b(k, h);
7895
7905
  };
7896
- N(k, (w) => {
7906
+ N(w, (k) => {
7897
7907
  var h;
7898
- ((h = r.mask_shape) == null ? void 0 : h.type) === "circle" ? w(v) : w(y, !1);
7908
+ ((h = r.mask_shape) == null ? void 0 : h.type) === "circle" ? k(v) : k(y, !1);
7899
7909
  });
7900
7910
  }
7901
7911
  var P = C(f);
7902
7912
  {
7903
- var I = (w) => {
7913
+ var I = (k) => {
7904
7914
  var h = iu();
7905
7915
  ot(h, 21, () => {
7906
- var S, j, O, K;
7907
- return ((j = (S = r.color_overlay) == null ? void 0 : S[r.purchaseState.colorMode]) == null ? void 0 : j.points) || ((K = (O = r.color_overlay) == null ? void 0 : O[Ue]) == null ? void 0 : K.points) || [];
7908
- }, it, (S, j) => {
7909
- var O = nu();
7916
+ var T, j, R, Z;
7917
+ return ((j = (T = r.color_overlay) == null ? void 0 : T[r.purchaseState.colorMode]) == null ? void 0 : j.points) || ((Z = (R = r.color_overlay) == null ? void 0 : R[Ue]) == null ? void 0 : Z.points) || [];
7918
+ }, it, (T, j) => {
7919
+ var R = nu();
7910
7920
  A(() => {
7911
- B(O, "offset", `${c(j).percent}%`), B(O, "style", `stop-color: ${c(j).color}`);
7912
- }), b(S, O);
7921
+ L(R, "offset", `${d(j).percent}%`), L(R, "style", `stop-color: ${d(j).color}`);
7922
+ }), b(T, R);
7913
7923
  }), A(() => {
7914
- B(h, "id", `gradient-${r.id}`), B(h, "x1", c(d).x1), B(h, "y1", c(d).y1), B(h, "x2", c(d).x2), B(h, "y2", c(d).y2);
7915
- }), b(w, h);
7916
- }, T = (w) => {
7917
- var h = re(), S = G(h);
7924
+ L(h, "id", `gradient-${r.id}`), L(h, "x1", d(c).x1), L(h, "y1", d(c).y1), L(h, "x2", d(c).x2), L(h, "y2", d(c).y2);
7925
+ }), b(k, h);
7926
+ }, E = (k) => {
7927
+ var h = re(), T = G(h);
7918
7928
  {
7919
- var j = (K) => {
7929
+ var j = (Z) => {
7920
7930
  var X = su();
7921
7931
  ot(X, 21, () => {
7922
7932
  var $, ie, pe, oe;
@@ -7924,17 +7934,17 @@ function uu(e, r) {
7924
7934
  }, it, ($, ie) => {
7925
7935
  var pe = ou();
7926
7936
  A(() => {
7927
- B(pe, "offset", `${c(ie).percent}%`), B(pe, "style", `stop-color: ${c(ie).color}`);
7937
+ L(pe, "offset", `${d(ie).percent}%`), L(pe, "style", `stop-color: ${d(ie).color}`);
7928
7938
  }), b($, pe);
7929
- }), A(() => B(X, "id", `gradient-${r.id}`)), b(K, X);
7930
- }, O = (K) => {
7939
+ }), A(() => L(X, "id", `gradient-${r.id}`)), b(Z, X);
7940
+ }, R = (Z) => {
7931
7941
  var X = re(), $ = G(X);
7932
7942
  {
7933
7943
  var ie = (pe) => {
7934
7944
  var oe = lu(), ge = x(oe);
7935
7945
  A(() => {
7936
7946
  var Ee, pr, kr;
7937
- B(oe, "id", `gradient-${r.id}`), B(ge, "style", `stop-color: ${((Ee = r.color_overlay[r.purchaseState.colorMode]) == null ? void 0 : Ee.value) || ((kr = (pr = r.color_overlay) == null ? void 0 : pr[Ue]) == null ? void 0 : kr.value)}`);
7947
+ L(oe, "id", `gradient-${r.id}`), L(ge, "style", `stop-color: ${((Ee = r.color_overlay[r.purchaseState.colorMode]) == null ? void 0 : Ee.value) || ((kr = (pr = r.color_overlay) == null ? void 0 : pr[Ue]) == null ? void 0 : kr.value)}`);
7938
7948
  }), b(pe, oe);
7939
7949
  };
7940
7950
  N(
@@ -7946,27 +7956,27 @@ function uu(e, r) {
7946
7956
  !0
7947
7957
  );
7948
7958
  }
7949
- b(K, X);
7959
+ b(Z, X);
7950
7960
  };
7951
7961
  N(
7952
- S,
7953
- (K) => {
7962
+ T,
7963
+ (Z) => {
7954
7964
  var X, $;
7955
- (($ = (X = r.color_overlay) == null ? void 0 : X[r.purchaseState.colorMode]) == null ? void 0 : $.type) === "radial" ? K(j) : K(O, !1);
7965
+ (($ = (X = r.color_overlay) == null ? void 0 : X[r.purchaseState.colorMode]) == null ? void 0 : $.type) === "radial" ? Z(j) : Z(R, !1);
7956
7966
  },
7957
7967
  !0
7958
7968
  );
7959
7969
  }
7960
- b(w, h);
7970
+ b(k, h);
7961
7971
  };
7962
- N(P, (w) => {
7963
- var h, S;
7964
- ((S = (h = r.color_overlay) == null ? void 0 : h[r.purchaseState.colorMode]) == null ? void 0 : S.type) === "linear" ? w(I) : w(T, !1);
7972
+ N(P, (k) => {
7973
+ var h, T;
7974
+ ((T = (h = r.color_overlay) == null ? void 0 : h[r.purchaseState.colorMode]) == null ? void 0 : T.type) === "linear" ? k(I) : k(E, !1);
7965
7975
  });
7966
7976
  }
7967
- var D = C(m), R = C(D);
7977
+ var D = C(m), B = C(D);
7968
7978
  A(() => {
7969
- B(_, "src", c(p)), B(g, "id", `rc-pw-image-container-${r.id}`), B(g, "style", c(s)), B(g, "viewBox", `0 0 100 ${c(a) * 100}`), B(f, "id", `clip-path-${r.id}`), B(D, "href", c(p)), B(D, "height", c(a) * 100), B(D, "clip-path", `url(#clip-path-${r.id})`), B(D, "id", r.id), B(R, "height", c(a) * 100), B(R, "clip-path", `url(#clip-path-${r.id})`), B(R, "fill", `url(#gradient-${r.id})`);
7979
+ L(_, "src", d(p)), L(g, "id", `rc-pw-image-container-${r.id}`), L(g, "style", d(s)), L(g, "viewBox", `0 0 100 ${d(a) * 100}`), L(f, "id", `clip-path-${r.id}`), L(D, "href", d(p)), L(D, "height", d(a) * 100), L(D, "clip-path", `url(#clip-path-${r.id})`), L(D, "id", r.id), L(B, "height", d(a) * 100), L(B, "clip-path", `url(#clip-path-${r.id})`), L(B, "fill", `url(#gradient-${r.id})`);
7970
7980
  }), nt("load", _, i), b(e, u), Y();
7971
7981
  }
7972
7982
  function pu({ stack: e, zStackChildStyles: r }) {
@@ -7996,7 +8006,7 @@ function gu(e, r) {
7996
8006
  "zStackChildStyles"
7997
8007
  ]), a = () => {
7998
8008
  r.onAction && r.onAction({ type: "purchase" });
7999
- }, n = /* @__PURE__ */ E(() => pu({
8009
+ }, n = /* @__PURE__ */ S(() => pu({
8000
8010
  stack: r.stack,
8001
8011
  labels: r.labels,
8002
8012
  onAction: r.onAction,
@@ -8009,7 +8019,7 @@ function gu(e, r) {
8009
8019
  onclick: a,
8010
8020
  class: "rc-pw-purchase-button",
8011
8021
  get style() {
8012
- return c(n);
8022
+ return d(n);
8013
8023
  },
8014
8024
  children: (i, o) => {
8015
8025
  Bt(i, vr(() => r.stack, {
@@ -8037,15 +8047,15 @@ const hu = {
8037
8047
  };
8038
8048
  function yu(e, r) {
8039
8049
  W(r, !0), H(e, hu);
8040
- const t = /* @__PURE__ */ E(() => {
8050
+ const t = /* @__PURE__ */ S(() => {
8041
8051
  var s;
8042
8052
  return ((s = r.purchaseState.variablesPerPackage) == null ? void 0 : s[r.package_id]) || r.variableDictionary;
8043
- }), a = /* @__PURE__ */ E(() => {
8053
+ }), a = /* @__PURE__ */ S(() => {
8044
8054
  var s;
8045
8055
  return {
8046
8056
  selected: ((s = r.purchaseState) == null ? void 0 : s.selectedPackageId) === r.package_id
8047
8057
  };
8048
- }), n = /* @__PURE__ */ E(() => Oe(Ge(r.zStackChildStyles, "package")));
8058
+ }), n = /* @__PURE__ */ S(() => Oe(Ge(r.zStackChildStyles, "package")));
8049
8059
  var i = fu();
8050
8060
  i.__click = [mu, r];
8051
8061
  var o = x(i);
@@ -8060,13 +8070,13 @@ function yu(e, r) {
8060
8070
  return r.purchaseState;
8061
8071
  },
8062
8072
  get componentState() {
8063
- return c(a);
8073
+ return d(a);
8064
8074
  },
8065
8075
  get variableDictionary() {
8066
- return c(t);
8076
+ return d(t);
8067
8077
  }
8068
8078
  })), A(() => {
8069
- B(i, "id", r.id), B(i, "style", c(n)), hr(i, "selected", c(a).selected);
8079
+ L(i, "id", r.id), L(i, "style", d(n)), hr(i, "selected", d(a).selected);
8070
8080
  }), b(e, i), Y();
8071
8081
  }
8072
8082
  ya(["click"]);
@@ -8085,7 +8095,7 @@ function bu(e) {
8085
8095
  return Oe(t);
8086
8096
  }
8087
8097
  function vu(e) {
8088
- var a, n, i, o, s, l, d, p, u, _;
8098
+ var a, n, i, o, s, l, c, p, u, _;
8089
8099
  const r = {
8090
8100
  "--icon-size": `${e.icon.width_and_height}px`,
8091
8101
  "--icon-padding": `${e.icon.padding}px`,
@@ -8111,7 +8121,7 @@ function vu(e) {
8111
8121
  "--connector-top": "0px",
8112
8122
  "--connector-height": `${e.item_spacing}px`
8113
8123
  };
8114
- if (Object.assign(r, ((p = (d = e.icon_background) == null ? void 0 : d.shape) == null ? void 0 : p.type) === "rectangle" ? na((_ = (u = e.icon_background) == null ? void 0 : u.shape) == null ? void 0 : _.corners) : {
8124
+ if (Object.assign(r, ((p = (c = e.icon_background) == null ? void 0 : c.shape) == null ? void 0 : p.type) === "rectangle" ? na((_ = (u = e.icon_background) == null ? void 0 : u.shape) == null ? void 0 : _.corners) : {
8115
8125
  "--border-start-start-radius": "50%",
8116
8126
  "--border-start-end-radius": "50%",
8117
8127
  "--border-end-start-radius": "50%",
@@ -8124,7 +8134,7 @@ function vu(e) {
8124
8134
  return Oe(t);
8125
8135
  }
8126
8136
  function yi(e, r = "title") {
8127
- var l, d, p, u, _;
8137
+ var l, c, p, u, _;
8128
8138
  const t = {
8129
8139
  "--text-color": "inherit",
8130
8140
  "--text-font-size": "initial",
@@ -8140,7 +8150,7 @@ function yi(e, r = "title") {
8140
8150
  "--text-padding-inline-start": "0px"
8141
8151
  }, a = {
8142
8152
  color: ((l = e[r]) == null ? void 0 : l.color) || Po,
8143
- font_size: ((d = e[r]) == null ? void 0 : d.font_size) || "body_m",
8153
+ font_size: ((c = e[r]) == null ? void 0 : c.font_size) || "body_m",
8144
8154
  font_weight: ((p = e[r]) == null ? void 0 : p.font_weight) || "regular",
8145
8155
  horizontal_alignment: ((u = e[r]) == null ? void 0 : u.horizontal_alignment) || "leading"
8146
8156
  }, { tagToRender: n, textStyles: i } = vn({
@@ -8178,50 +8188,50 @@ const wu = {
8178
8188
  };
8179
8189
  function Pu(e, r) {
8180
8190
  W(r, !0), H(e, wu);
8181
- const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy"]), a = /* @__PURE__ */ E(() => vu(t)), n = /* @__PURE__ */ E(() => yi(t, "title")), i = /* @__PURE__ */ E(() => c(n).tagToRender), o = /* @__PURE__ */ E(() => c(n).textStyles), s = /* @__PURE__ */ E(() => c(n).textLabel), l = /* @__PURE__ */ E(() => yi(t, "description")), d = /* @__PURE__ */ E(() => c(l).tagToRender), p = /* @__PURE__ */ E(() => c(l).textStyles), u = /* @__PURE__ */ E(() => c(l).textLabel);
8191
+ const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy"]), a = /* @__PURE__ */ S(() => vu(t)), n = /* @__PURE__ */ S(() => yi(t, "title")), i = /* @__PURE__ */ S(() => d(n).tagToRender), o = /* @__PURE__ */ S(() => d(n).textStyles), s = /* @__PURE__ */ S(() => d(n).textLabel), l = /* @__PURE__ */ S(() => yi(t, "description")), c = /* @__PURE__ */ S(() => d(l).tagToRender), p = /* @__PURE__ */ S(() => d(l).textStyles), u = /* @__PURE__ */ S(() => d(l).textLabel);
8182
8192
  var _ = ku(), g = C(x(_), 2), m = x(g);
8183
- $t(m, () => c(i), !1, (v, y) => {
8193
+ $t(m, () => d(i), !1, (v, y) => {
8184
8194
  let P;
8185
8195
  A(() => P = ea(
8186
8196
  v,
8187
8197
  P,
8188
8198
  {
8189
8199
  class: "rc-pw-timeline-item-content-title",
8190
- style: c(o)
8200
+ style: d(o)
8191
8201
  },
8192
8202
  "svelte-gjmo4g",
8193
8203
  v.namespaceURI === St,
8194
8204
  v.nodeName.includes("-")
8195
8205
  ));
8196
8206
  var I = se();
8197
- A(() => ae(I, c(s))), b(y, I);
8207
+ A(() => ae(I, d(s))), b(y, I);
8198
8208
  });
8199
8209
  var f = C(m, 2);
8200
8210
  {
8201
- var k = (v) => {
8211
+ var w = (v) => {
8202
8212
  var y = re(), P = G(y);
8203
- $t(P, () => c(d), !1, (I, T) => {
8213
+ $t(P, () => d(c), !1, (I, E) => {
8204
8214
  let D;
8205
8215
  A(() => D = ea(
8206
8216
  I,
8207
8217
  D,
8208
8218
  {
8209
8219
  class: "rc-pw-timeline-item-content-description",
8210
- style: c(p)
8220
+ style: d(p)
8211
8221
  },
8212
8222
  "svelte-gjmo4g",
8213
8223
  I.namespaceURI === St,
8214
8224
  I.nodeName.includes("-")
8215
8225
  ));
8216
- var R = se();
8217
- A(() => ae(R, c(u))), b(T, R);
8226
+ var B = se();
8227
+ A(() => ae(B, d(u))), b(E, B);
8218
8228
  }), b(v, y);
8219
8229
  };
8220
8230
  N(f, (v) => {
8221
- c(u) && v(k);
8231
+ d(u) && v(w);
8222
8232
  });
8223
8233
  }
8224
- A(() => B(_, "style", c(a))), b(e, _), Y();
8234
+ A(() => L(_, "style", d(a))), b(e, _), Y();
8225
8235
  }
8226
8236
  var xu = /* @__PURE__ */ q('<div class="rc-pw-timeline-container svelte-12g27vu"></div>');
8227
8237
  const Su = {
@@ -8230,22 +8240,22 @@ const Su = {
8230
8240
  };
8231
8241
  function Eu(e, r) {
8232
8242
  W(r, !0), H(e, Su);
8233
- const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy", "items"]), a = /* @__PURE__ */ E(() => bu({ items: r.items, ...t }));
8243
+ const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy", "items"]), a = /* @__PURE__ */ S(() => bu({ items: r.items, ...t }));
8234
8244
  var n = re(), i = G(n);
8235
8245
  {
8236
8246
  var o = (s) => {
8237
8247
  var l = xu();
8238
- ot(l, 21, () => r.items, it, (d, p, u) => {
8239
- var _ = /* @__PURE__ */ E(() => `${r.id}-${u}`), g = /* @__PURE__ */ E(() => `${r.name}-${u}`);
8240
- Pu(d, vr(() => c(p), {
8248
+ ot(l, 21, () => r.items, it, (c, p, u) => {
8249
+ var _ = /* @__PURE__ */ S(() => `${r.id}-${u}`), g = /* @__PURE__ */ S(() => `${r.name}-${u}`);
8250
+ Pu(c, vr(() => d(p), {
8241
8251
  get labels() {
8242
8252
  return r.labels;
8243
8253
  },
8244
8254
  get id() {
8245
- return c(_);
8255
+ return d(_);
8246
8256
  },
8247
8257
  get name() {
8248
- return c(g);
8258
+ return d(g);
8249
8259
  },
8250
8260
  type: "timeline",
8251
8261
  get purchaseState() {
@@ -8258,7 +8268,7 @@ function Eu(e, r) {
8258
8268
  return r.item_spacing;
8259
8269
  }
8260
8270
  }));
8261
- }), A(() => B(l, "style", c(a))), b(s, l);
8271
+ }), A(() => L(l, "style", d(a))), b(s, l);
8262
8272
  };
8263
8273
  N(i, (s) => {
8264
8274
  r.items.length && s(o);
@@ -8289,8 +8299,8 @@ function Fu(e, r) {
8289
8299
  var n = re(), i = G(n);
8290
8300
  $t(i, t, !1, (o, s) => {
8291
8301
  ea(o, null, { class: "rcb-modal-section" }, "svelte-1bzqb13", o.namespaceURI === St, o.nodeName.includes("-"));
8292
- var l = re(), d = G(l);
8293
- fe(d, () => a() ?? le), b(s, l);
8302
+ var l = re(), c = G(l);
8303
+ fe(c, () => a() ?? le), b(s, l);
8294
8304
  }), b(e, n), Y();
8295
8305
  }
8296
8306
  var zu = /* @__PURE__ */ q("<div><!></div>");
@@ -8385,56 +8395,56 @@ const Hu = {
8385
8395
  function Wu(e, r) {
8386
8396
  W(r, !0), H(e, Hu);
8387
8397
  const t = V(r, "title", 3, null), a = V(r, "icon", 3, null), n = 32;
8388
- let i = Z(null), o = Z(!1), s;
8389
- Ye(() => (c(i) && (s = new ResizeObserver(() => {
8398
+ let i = K(null), o = K(!1), s;
8399
+ Ye(() => (d(i) && (s = new ResizeObserver(() => {
8390
8400
  var p;
8391
- z(o, (((p = c(i)) == null ? void 0 : p.offsetHeight) ?? 0) > n);
8392
- }), s.observe(c(i))), () => {
8401
+ z(o, (((p = d(i)) == null ? void 0 : p.offsetHeight) ?? 0) > n);
8402
+ }), s.observe(d(i))), () => {
8393
8403
  s == null || s.disconnect();
8394
8404
  }));
8395
- var l = Vu(), d = x(l);
8396
- zo(d, {
8405
+ var l = Vu(), c = x(l);
8406
+ zo(c, {
8397
8407
  gap: "medium",
8398
8408
  align: "start",
8399
8409
  children: (p, u) => {
8400
8410
  var _ = Uu(), g = G(_);
8401
8411
  Nu(g, {
8402
- children: (k, v) => {
8412
+ children: (w, v) => {
8403
8413
  var y = Ru(), P = G(y);
8404
8414
  {
8405
- var I = (R) => {
8406
- var w = Lu(), h = x(w);
8407
- fe(h, a), A(() => qr(w, `rcb-modal-message-icon ${(c(o) ? "large" : "small") ?? ""} svelte-w46z5s`)), b(R, w);
8415
+ var I = (B) => {
8416
+ var k = Lu(), h = x(k);
8417
+ fe(h, a), A(() => qr(k, `rcb-modal-message-icon ${(d(o) ? "large" : "small") ?? ""} svelte-w46z5s`)), b(B, k);
8408
8418
  };
8409
- N(P, (R) => {
8410
- a() && R(I);
8419
+ N(P, (B) => {
8420
+ a() && B(I);
8411
8421
  });
8412
8422
  }
8413
- var T = C(P, 2);
8423
+ var E = C(P, 2);
8414
8424
  {
8415
- var D = (R) => {
8416
- var w = Bu(), h = x(w);
8425
+ var D = (B) => {
8426
+ var k = Bu(), h = x(k);
8417
8427
  ee(h, {
8418
8428
  size: "heading-md",
8419
- children: (S, j) => {
8420
- var O = se();
8421
- A(() => ae(O, t())), b(S, O);
8429
+ children: (T, j) => {
8430
+ var R = se();
8431
+ A(() => ae(R, t())), b(T, R);
8422
8432
  },
8423
8433
  $$slots: { default: !0 }
8424
- }), _o(w, (S) => z(i, S), () => c(i)), b(R, w);
8434
+ }), _o(k, (T) => z(i, T), () => d(i)), b(B, k);
8425
8435
  };
8426
- N(T, (R) => {
8427
- t() && R(D);
8436
+ N(E, (B) => {
8437
+ t() && B(D);
8428
8438
  });
8429
8439
  }
8430
- b(k, y);
8440
+ b(w, y);
8431
8441
  },
8432
8442
  $$slots: { default: !0 }
8433
8443
  });
8434
8444
  var m = C(g, 2);
8435
8445
  {
8436
- var f = (k) => {
8437
- ee(k, {
8446
+ var f = (w) => {
8447
+ ee(w, {
8438
8448
  size: "body-small",
8439
8449
  children: (v, y) => {
8440
8450
  var P = re(), I = G(P);
@@ -8443,14 +8453,14 @@ function Wu(e, r) {
8443
8453
  $$slots: { default: !0 }
8444
8454
  });
8445
8455
  };
8446
- N(m, (k) => {
8447
- r.message && k(f);
8456
+ N(m, (w) => {
8457
+ r.message && w(f);
8448
8458
  });
8449
8459
  }
8450
8460
  b(p, _);
8451
8461
  },
8452
8462
  $$slots: { default: !0 }
8453
- }), A(() => B(l, "data-has-title", !!t())), b(e, l), Y();
8463
+ }), A(() => L(l, "data-has-title", !!t())), b(e, l), Y();
8454
8464
  }
8455
8465
  var Yu = /* @__PURE__ */ q('<div class="rcb-modal-message-icon svelte-c8cuu5"><!></div>'), Gu = /* @__PURE__ */ q("<!> <!>", 1), Xu = /* @__PURE__ */ q('<div class="rcb-modal-message svelte-c8cuu5" data-type="success"><!></div>');
8456
8466
  const Zu = {
@@ -8468,24 +8478,24 @@ function Ku(e, r) {
8468
8478
  gap: "large",
8469
8479
  align: "center",
8470
8480
  children: (o, s) => {
8471
- var l = Gu(), d = G(l);
8481
+ var l = Gu(), c = G(l);
8472
8482
  {
8473
8483
  var p = (g) => {
8474
8484
  var m = Yu(), f = x(m);
8475
8485
  fe(f, a), b(g, m);
8476
8486
  };
8477
- N(d, (g) => {
8487
+ N(c, (g) => {
8478
8488
  a() && g(p);
8479
8489
  });
8480
8490
  }
8481
- var u = C(d, 2);
8491
+ var u = C(c, 2);
8482
8492
  {
8483
8493
  var _ = (g) => {
8484
8494
  ee(g, {
8485
8495
  size: "heading-md",
8486
8496
  children: (m, f) => {
8487
- var k = se();
8488
- A(() => ae(k, t())), b(m, k);
8497
+ var w = se();
8498
+ A(() => ae(w, t())), b(m, w);
8489
8499
  },
8490
8500
  $$slots: { default: !0 }
8491
8501
  });
@@ -8497,7 +8507,7 @@ function Ku(e, r) {
8497
8507
  b(o, l);
8498
8508
  },
8499
8509
  $$slots: { default: !0 }
8500
- }), A(() => B(n, "data-has-title", !!t())), b(e, n), Y();
8510
+ }), A(() => L(n, "data-has-title", !!t())), b(e, n), Y();
8501
8511
  }
8502
8512
  const xn = "rcb-ui-events-tracker", Sn = "branding";
8503
8513
  var Ju = /* @__PURE__ */ q('<div class="message-layout svelte-qavr33"><div class="message-layout-content svelte-qavr33"><!></div> <div class="message-layout-footer"><!></div></div>');
@@ -8518,10 +8528,10 @@ function En(e, r) {
8518
8528
  function s() {
8519
8529
  r.onDismiss();
8520
8530
  }
8521
- var l = Ju(), d = x(l), p = x(d);
8531
+ var l = Ju(), c = x(l), p = x(c);
8522
8532
  Fu(p, {
8523
8533
  children: (g, m) => {
8524
- var f = re(), k = G(f);
8534
+ var f = re(), w = G(f);
8525
8535
  {
8526
8536
  var v = (P) => {
8527
8537
  Ku(P, {
@@ -8545,7 +8555,7 @@ function En(e, r) {
8545
8555
  }
8546
8556
  });
8547
8557
  };
8548
- N(k, (P) => {
8558
+ N(w, (P) => {
8549
8559
  r.type === "success" ? P(v) : P(y, !1);
8550
8560
  });
8551
8561
  }
@@ -8553,14 +8563,14 @@ function En(e, r) {
8553
8563
  },
8554
8564
  $$slots: { default: !0 }
8555
8565
  });
8556
- var u = C(d, 2), _ = x(u);
8566
+ var u = C(c, 2), _ = x(u);
8557
8567
  Du(_, {
8558
8568
  children: (g, m) => {
8559
8569
  Fo(g, {
8560
8570
  onclick: s,
8561
8571
  type: "submit",
8562
8572
  brandingAppearance: o,
8563
- children: (f, k) => {
8573
+ children: (f, w) => {
8564
8574
  var v = se();
8565
8575
  A(() => ae(v, a())), b(f, v);
8566
8576
  },
@@ -8572,18 +8582,18 @@ function En(e, r) {
8572
8582
  }
8573
8583
  function Ie(e, r) {
8574
8584
  W(r, !0);
8575
- const t = Ae(), a = () => ze(i, "$translator", t), n = V(r, "key", 3, ""), i = Se(Ce), o = /* @__PURE__ */ E(() => n() ? a().translate(n() || "", r.variables) : void 0);
8585
+ const t = Ae(), a = () => ze(i, "$translator", t), n = V(r, "key", 3, ""), i = Se(Ce), o = /* @__PURE__ */ S(() => n() ? a().translate(n() || "", r.variables) : void 0);
8576
8586
  var s = re(), l = G(s);
8577
8587
  {
8578
- var d = (u) => {
8588
+ var c = (u) => {
8579
8589
  var _ = se();
8580
- A(() => ae(_, c(o))), b(u, _);
8590
+ A(() => ae(_, d(o))), b(u, _);
8581
8591
  }, p = (u) => {
8582
8592
  var _ = re(), g = G(_);
8583
8593
  fe(g, () => r.children ?? le), b(u, _);
8584
8594
  };
8585
8595
  N(l, (u) => {
8586
- c(o) ? u(d) : u(p, !1);
8596
+ d(o) ? u(c) : u(p, !1);
8587
8597
  });
8588
8598
  }
8589
8599
  b(e, s), Y();
@@ -8602,18 +8612,18 @@ function ap(e, r) {
8602
8612
  let o = V(r, "brandingInfo", 8, null), s = V(r, "subscriptionOption", 8, null);
8603
8613
  const l = Se(Ce);
8604
8614
  Jn(
8605
- () => (Ha(o()), a(), L),
8615
+ () => (Ha(o()), a(), O),
8606
8616
  () => {
8607
- var k;
8608
- z(n, o() ? a().translate(L.PaymentEntryPageTermsInfo, { appName: (k = o()) == null ? void 0 : k.app_name }) : null);
8617
+ var w;
8618
+ z(n, o() ? a().translate(O.PaymentEntryPageTermsInfo, { appName: (w = o()) == null ? void 0 : w.app_name }) : null);
8609
8619
  }
8610
8620
  ), Jn(
8611
8621
  () => (Ha(s()), a(), Za),
8612
8622
  () => {
8613
- var k, v, y, P, I, T, D, R, w, h, S, j, O, K, X, $, ie, pe, oe;
8614
- z(i, (v = (k = s()) == null ? void 0 : k.base) != null && v.price && ((P = (y = s()) == null ? void 0 : y.trial) != null && P.period) && ((T = (I = s()) == null ? void 0 : I.base) != null && T.period) && ((w = (R = (D = s()) == null ? void 0 : D.base) == null ? void 0 : R.period) != null && w.unit) ? a().translate(L.PaymentEntryPageTrialInfo, {
8615
- price: Ir((S = (h = s()) == null ? void 0 : h.base) == null ? void 0 : S.price.amountMicros, (O = (j = s()) == null ? void 0 : j.base) == null ? void 0 : O.price.currency, a().locale || a().fallbackLocale),
8616
- perFrequency: a().translatePeriodFrequency((($ = (X = (K = s()) == null ? void 0 : K.base) == null ? void 0 : X.period) == null ? void 0 : $.number) || 1, (oe = (pe = (ie = s()) == null ? void 0 : ie.base) == null ? void 0 : pe.period) == null ? void 0 : oe.unit, { useMultipleWords: !0 }),
8623
+ var w, v, y, P, I, E, D, B, k, h, T, j, R, Z, X, $, ie, pe, oe;
8624
+ z(i, (v = (w = s()) == null ? void 0 : w.base) != null && v.price && ((P = (y = s()) == null ? void 0 : y.trial) != null && P.period) && ((E = (I = s()) == null ? void 0 : I.base) != null && E.period) && ((k = (B = (D = s()) == null ? void 0 : D.base) == null ? void 0 : B.period) != null && k.unit) ? a().translate(O.PaymentEntryPageTrialInfo, {
8625
+ price: Ir((T = (h = s()) == null ? void 0 : h.base) == null ? void 0 : T.price.amountMicros, (R = (j = s()) == null ? void 0 : j.base) == null ? void 0 : R.price.currency, a().locale || a().fallbackLocale),
8626
+ perFrequency: a().translatePeriodFrequency((($ = (X = (Z = s()) == null ? void 0 : Z.base) == null ? void 0 : X.period) == null ? void 0 : $.number) || 1, (oe = (pe = (ie = s()) == null ? void 0 : ie.base) == null ? void 0 : pe.period) == null ? void 0 : oe.unit, { useMultipleWords: !0 }),
8617
8627
  renewalDate: a().translateDate(Za(/* @__PURE__ */ new Date(), s().trial.period || s().base.period, !0), {
8618
8628
  year: "numeric",
8619
8629
  month: "long",
@@ -8622,52 +8632,52 @@ function ap(e, r) {
8622
8632
  }) : null);
8623
8633
  }
8624
8634
  ), gl(), Qe();
8625
- var d = rp(), p = x(d);
8635
+ var c = rp(), p = x(c);
8626
8636
  {
8627
- var u = (k) => {
8637
+ var u = (w) => {
8628
8638
  var v = $u(), y = x(v);
8629
8639
  ee(y, {
8630
8640
  size: "caption-default",
8631
8641
  children: (P, I) => {
8632
- var T = se();
8633
- A(() => ae(T, c(n))), b(P, T);
8642
+ var E = se();
8643
+ A(() => ae(E, d(n))), b(P, E);
8634
8644
  },
8635
8645
  $$slots: { default: !0 }
8636
- }), b(k, v);
8646
+ }), b(w, v);
8637
8647
  };
8638
- N(p, (k) => {
8639
- c(n) && s() && k(u);
8648
+ N(p, (w) => {
8649
+ d(n) && s() && w(u);
8640
8650
  });
8641
8651
  }
8642
8652
  var _ = C(p, 2);
8643
8653
  {
8644
- var g = (k) => {
8654
+ var g = (w) => {
8645
8655
  var v = ep(), y = x(v);
8646
8656
  ee(y, {
8647
8657
  size: "caption-default",
8648
8658
  children: (P, I) => {
8649
- var T = se();
8650
- A(() => ae(T, c(i))), b(P, T);
8659
+ var E = se();
8660
+ A(() => ae(E, d(i))), b(P, E);
8651
8661
  },
8652
8662
  $$slots: { default: !0 }
8653
- }), b(k, v);
8663
+ }), b(w, v);
8654
8664
  };
8655
- N(_, (k) => {
8656
- c(i) && k(g);
8665
+ N(_, (w) => {
8666
+ d(i) && w(g);
8657
8667
  });
8658
8668
  }
8659
8669
  var m = C(_, 2), f = x(m);
8660
8670
  ee(f, {
8661
8671
  size: "caption-default",
8662
- children: (k, v) => {
8663
- Ie(k, {
8672
+ children: (w, v) => {
8673
+ Ie(w, {
8664
8674
  get key() {
8665
- return L.PaymentEntryPagePaymentStepTitle;
8675
+ return O.PaymentEntryPagePaymentStepTitle;
8666
8676
  }
8667
8677
  });
8668
8678
  },
8669
8679
  $$slots: { default: !0 }
8670
- }), b(e, d), Y();
8680
+ }), b(e, c), Y();
8671
8681
  }
8672
8682
  var Fe = /* @__PURE__ */ ((e) => (e.SDKInitialized = "sdk_initialized", e.CheckoutSessionStart = "checkout_session_start", e.CheckoutSessionEnd = "checkout_session_end", e.CheckoutFlowError = "checkout_flow_error", e.CheckoutPaymentTaxCalculation = "checkout_payment_tax_calculation", e.CheckoutPaymentFormImpression = "checkout_payment_form_impression", e.CheckoutPaymentFormError = "checkout_payment_form_error", e.CheckoutPaymentFormDismiss = "checkout_payment_form_dismiss", e.CheckoutPaymentFormSubmit = "checkout_payment_form_submit", e.CheckoutPaymentFormGatewayError = "checkout_payment_form_gateway_error", e.CheckoutPurchaseSuccessfulImpression = "checkout_purchase_successful_impression", e.CheckoutPurchaseSuccessfulDismiss = "checkout_purchase_successful_dismiss", e))(Fe || {}), Tn = /* @__PURE__ */ ((e) => (e.tax_collection_disabled = "tax_collection_disabled", e.invalid_tax_location = "invalid_tax_location", e.rate_limit_exceeded = "rate_limit_exceeded", e.missing_required_permission = "missing_required_permission", e.invalid_origin_address = "invalid_origin_address", e.taxes_not_active = "taxes_not_active", e.unexpected_gateway_error = "unexpected_gateway_error", e))(Tn || {});
8673
8683
  function np({
@@ -8853,9 +8863,9 @@ function Ao(e) {
8853
8863
  fp(t), b(e, r);
8854
8864
  }
8855
8865
  function bp(e, r) {
8856
- var d, p;
8866
+ var c, p;
8857
8867
  W(r, !0);
8858
- const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce), i = Se(Sn), o = /* @__PURE__ */ E(() => r.priceBreakdown ? a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency) : null), s = (p = (d = r.subscriptionOption) == null ? void 0 : d.trial) == null ? void 0 : p.period, l = /* @__PURE__ */ E(() => s ? a().translatePeriod(s.number, s.unit) : null);
8868
+ const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce), i = Se(Sn), o = /* @__PURE__ */ S(() => r.priceBreakdown ? a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency) : null), s = (p = (c = r.subscriptionOption) == null ? void 0 : c.trial) == null ? void 0 : p.period, l = /* @__PURE__ */ S(() => s ? a().translatePeriod(s.number, s.unit) : null);
8859
8869
  Fo(e, {
8860
8870
  get disabled() {
8861
8871
  return r.disabled;
@@ -8866,39 +8876,39 @@ function bp(e, r) {
8866
8876
  var g = re(), m = G(g);
8867
8877
  {
8868
8878
  var f = (v) => {
8869
- var y = /* @__PURE__ */ E(() => ({ trialPeriodLabel: c(l) }));
8879
+ var y = /* @__PURE__ */ S(() => ({ trialPeriodLabel: d(l) }));
8870
8880
  Ie(v, {
8871
8881
  get key() {
8872
- return L.PaymentEntryPageButtonStartTrial;
8882
+ return O.PaymentEntryPageButtonStartTrial;
8873
8883
  },
8874
8884
  get variables() {
8875
- return c(y);
8885
+ return d(y);
8876
8886
  }
8877
8887
  });
8878
- }, k = (v) => {
8888
+ }, w = (v) => {
8879
8889
  var y = re(), P = G(y);
8880
8890
  {
8881
8891
  var I = (D) => {
8882
- var R = /* @__PURE__ */ E(() => ({ formattedPrice: c(o) }));
8892
+ var B = /* @__PURE__ */ S(() => ({ formattedPrice: d(o) }));
8883
8893
  Ie(D, {
8884
8894
  get key() {
8885
- return L.PaymentEntryPageButtonWithPrice;
8895
+ return O.PaymentEntryPageButtonWithPrice;
8886
8896
  },
8887
8897
  get variables() {
8888
- return c(R);
8898
+ return d(B);
8889
8899
  }
8890
8900
  });
8891
- }, T = (D) => {
8901
+ }, E = (D) => {
8892
8902
  Ie(D, {
8893
8903
  get key() {
8894
- return L.PaymentEntryPageButtonPay;
8904
+ return O.PaymentEntryPageButtonPay;
8895
8905
  }
8896
8906
  });
8897
8907
  };
8898
8908
  N(
8899
8909
  P,
8900
8910
  (D) => {
8901
- c(o) ? D(I) : D(T, !1);
8911
+ d(o) ? D(I) : D(E, !1);
8902
8912
  },
8903
8913
  !0
8904
8914
  );
@@ -8907,7 +8917,7 @@ function bp(e, r) {
8907
8917
  };
8908
8918
  N(m, (v) => {
8909
8919
  var y;
8910
- (y = r.subscriptionOption) != null && y.trial ? v(f) : v(k, !1);
8920
+ (y = r.subscriptionOption) != null && y.trial ? v(f) : v(w, !1);
8911
8921
  });
8912
8922
  }
8913
8923
  b(u, g);
@@ -9257,12 +9267,12 @@ const Ip = (e, r, t, a = Dn) => {
9257
9267
  );
9258
9268
  return [r, t].join("; ");
9259
9269
  }, Mp = (e = "", r, t) => Object.entries(r).flatMap(([a, { desktop: n, mobile: i }]) => {
9260
- const o = `normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${sa}`, s = `normal normal ${i.fontWeight} ${i.fontSize}/${i.lineHeight} ${sa}`, l = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${vi}`, d = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${vi}`;
9270
+ const o = `normal normal ${n.fontWeight} ${n.fontSize}/${n.lineHeight} ${sa}`, s = `normal normal ${i.fontWeight} ${i.fontSize}/${i.lineHeight} ${sa}`, l = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${vi}`, c = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${vi}`;
9261
9271
  return [
9262
9272
  `--rc-${e}-${a}-desktop: ${o}`,
9263
9273
  `--rc-${e}-${a}-mobile: ${s}`,
9264
9274
  `--rc-${e}-${a}-branded-desktop: ${t ? l : o}`,
9265
- `--rc-${e}-${a}-branded-mobile: ${t ? d : s}`,
9275
+ `--rc-${e}-${a}-branded-mobile: ${t ? c : s}`,
9266
9276
  `--rc-${e}-${a}-desktop-font-size: ${n.fontSize}`,
9267
9277
  `--rc-${e}-${a}-mobile-font-size: ${i.fontSize}`
9268
9278
  ];
@@ -9386,12 +9396,12 @@ const $r = class $r {
9386
9396
  gatewayErrorCode: void 0,
9387
9397
  message: "Stripe configuration is missing"
9388
9398
  };
9389
- const d = await l(t, {
9399
+ const c = await l(t, {
9390
9400
  stripeAccount: r
9391
- }).catch((k) => {
9392
- throw this.mapInitializationError(k);
9401
+ }).catch((w) => {
9402
+ throw this.mapInitializationError(w);
9393
9403
  });
9394
- if (!d)
9404
+ if (!c)
9395
9405
  throw {
9396
9406
  code: 0,
9397
9407
  gatewayErrorCode: void 0,
@@ -9400,7 +9410,7 @@ const $r = class $r {
9400
9410
  const p = new qt(n == null ? void 0 : n.appearance), u = p.shape, _ = p.formColors, g = p.textStyles, m = rn.bodyBase[s].fontSize || rn.bodyBase.mobile.fontSize;
9401
9411
  let f;
9402
9412
  try {
9403
- f = d.elements({
9413
+ f = c.elements({
9404
9414
  mode: a.mode,
9405
9415
  paymentMethodTypes: a.payment_method_types,
9406
9416
  setupFutureUsage: a.setup_future_usage,
@@ -9449,10 +9459,10 @@ const $r = class $r {
9449
9459
  }
9450
9460
  }
9451
9461
  });
9452
- } catch (k) {
9453
- throw this.mapInitializationError(k);
9462
+ } catch (w) {
9463
+ throw this.mapInitializationError(w);
9454
9464
  }
9455
- return { stripe: d, elements: f };
9465
+ return { stripe: c, elements: f };
9456
9466
  }
9457
9467
  static async updateElementsConfiguration(r, t) {
9458
9468
  r.update({
@@ -9595,14 +9605,14 @@ const $r = class $r {
9595
9605
  const o = $r.microsToMinimumAmountPrice(
9596
9606
  t.totalAmountInMicros,
9597
9607
  t.currency
9598
- ), s = a.trial, l = (_ = a.trial) == null ? void 0 : _.period, d = a.base.period, p = s && l ? $r.nextDateForPeriod(l, /* @__PURE__ */ new Date()) : void 0, u = d ? $r.applePayPeriod(d) : {};
9608
+ ), s = a.trial, l = (_ = a.trial) == null ? void 0 : _.period, c = a.base.period, p = s && l ? $r.nextDateForPeriod(l, /* @__PURE__ */ new Date()) : void 0, u = c ? $r.applePayPeriod(c) : {};
9599
9609
  return {
9600
9610
  applePay: {
9601
9611
  recurringPaymentRequest: {
9602
9612
  paymentDescription: r.title,
9603
9613
  managementURL: i,
9604
9614
  trialBilling: s ? {
9605
- label: n.translate(L.ApplePayFreeTrial),
9615
+ label: n.translate(O.ApplePayFreeTrial),
9606
9616
  amount: 0
9607
9617
  } : void 0,
9608
9618
  regularBilling: {
@@ -9641,7 +9651,7 @@ function Op(e, r) {
9641
9651
  t == null || t.destroy(), t = null;
9642
9652
  });
9643
9653
  var i = Cp();
9644
- B(i, "id", a), b(e, i), Y();
9654
+ L(i, "id", a), b(e, i), Y();
9645
9655
  }
9646
9656
  var Lp = /* @__PURE__ */ q("<div></div>");
9647
9657
  function Bp(e, r) {
@@ -9660,7 +9670,7 @@ function Bp(e, r) {
9660
9670
  t == null || t.destroy(), t = null;
9661
9671
  });
9662
9672
  var i = Lp();
9663
- B(i, "id", a), b(e, i), Y();
9673
+ L(i, "id", a), b(e, i), Y();
9664
9674
  }
9665
9675
  var Rp = /* @__PURE__ */ q('<div class="text-separator svelte-ch0h61"><hr class="line svelte-ch0h61"> <span class="text svelte-ch0h61"><!></span> <hr class="line svelte-ch0h61"></div>');
9666
9676
  const Up = {
@@ -9687,23 +9697,23 @@ var Hp = /* @__PURE__ */ q("<div></div> <!>", 1);
9687
9697
  function Wp(e, r) {
9688
9698
  W(r, !0);
9689
9699
  const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce);
9690
- let i = null, o = Z(!1);
9700
+ let i = null, o = K(!1);
9691
9701
  const s = "express-checkout-element", l = async (f) => {
9692
- const k = {
9702
+ const w = {
9693
9703
  ...r.expressCheckoutOptions ? r.expressCheckoutOptions : {}
9694
9704
  };
9695
- f.resolve(k);
9696
- }, d = async (f) => {
9705
+ f.resolve(w);
9706
+ }, c = async (f) => {
9697
9707
  await r.onError(ke.mapInitializationError(f.error));
9698
9708
  }, p = async (f) => {
9699
- var k;
9700
- r.onSubmit(f.expressPaymentType, ((k = f.billingDetails) == null ? void 0 : k.email) ?? "");
9709
+ var w;
9710
+ r.onSubmit(f.expressPaymentType, ((w = f.billingDetails) == null ? void 0 : w.email) ?? "");
9701
9711
  }, u = async (f) => {
9702
9712
  z(o, !f.availablePaymentMethods), r.onReady();
9703
9713
  };
9704
9714
  Ye(() => {
9705
9715
  try {
9706
- i = ke.createExpressCheckoutElement(r.elements, r.billingAddressRequired, r.expressCheckoutOptions), i.mount(`#${s}`), i.on("ready", u), i.on("confirm", p), i.on("loaderror", d), i.on("click", l);
9716
+ i = ke.createExpressCheckoutElement(r.elements, r.billingAddressRequired, r.expressCheckoutOptions), i.mount(`#${s}`), i.on("ready", u), i.on("confirm", p), i.on("loaderror", c), i.on("click", l);
9707
9717
  } catch (f) {
9708
9718
  r.onError(ke.mapInitializationError(f));
9709
9719
  }
@@ -9713,17 +9723,17 @@ function Wp(e, r) {
9713
9723
  var _ = re(), g = G(_);
9714
9724
  {
9715
9725
  var m = (f) => {
9716
- var k = Hp(), v = G(k);
9717
- B(v, "id", s);
9718
- var y = C(v, 2), P = /* @__PURE__ */ E(() => a().translate(L.PaymentEntryPageExpressCheckoutDivider));
9726
+ var w = Hp(), v = G(w);
9727
+ L(v, "id", s);
9728
+ var y = C(v, 2), P = /* @__PURE__ */ S(() => a().translate(O.PaymentEntryPageExpressCheckoutDivider));
9719
9729
  Vp(y, {
9720
9730
  get text() {
9721
- return c(P);
9731
+ return d(P);
9722
9732
  }
9723
- }), b(f, k);
9733
+ }), b(f, w);
9724
9734
  };
9725
9735
  N(g, (f) => {
9726
- c(o) || f(m);
9736
+ d(o) || f(m);
9727
9737
  });
9728
9738
  }
9729
9739
  b(e, _), Y();
@@ -9741,7 +9751,7 @@ function Xp(e, r) {
9741
9751
  const t = Ae(), a = () => ze(o, "$translator", t);
9742
9752
  let n = V(r, "stripe", 15, null), i = V(r, "elements", 15, null);
9743
9753
  const o = Se(Ce), s = ke.getStripeLocale(a().locale || a().fallbackLocale);
9744
- let l = Z(!1), d = Z(U(r.skipEmail)), p = Z(!1), u = Z(void 0), _ = Z("mobile"), g = Z(void 0);
9754
+ let l = K(!1), c = K(U(r.skipEmail)), p = K(!1), u = K(void 0), _ = K("mobile"), g = K(void 0);
9745
9755
  function m() {
9746
9756
  window.matchMedia && window.matchMedia("(max-width: 767px)").matches ? z(_, "mobile") : z(_, "desktop"), z(u, U({
9747
9757
  // Floating labels size cannot be overriden in Stripe since `!important` is being used.
@@ -9756,52 +9766,52 @@ function Xp(e, r) {
9756
9766
  }));
9757
9767
  }
9758
9768
  function f() {
9759
- clearTimeout(c(g)), z(g, U(setTimeout(
9769
+ clearTimeout(d(g)), z(g, U(setTimeout(
9760
9770
  () => {
9761
9771
  m();
9762
9772
  },
9763
9773
  150
9764
9774
  )));
9765
9775
  }
9766
- const k = (h) => {
9776
+ const w = (h) => {
9767
9777
  r.onError(h), r.onLoadingComplete();
9768
9778
  }, v = async () => {
9769
- c(d) || (z(d, !0), c(d) && c(l) && c(p) && r.onLoadingComplete());
9779
+ d(c) || (z(c, !0), d(c) && d(l) && d(p) && r.onLoadingComplete());
9770
9780
  }, y = async () => {
9771
- c(p) || (z(p, !0), c(d) && c(l) && c(p) && r.onLoadingComplete());
9781
+ d(p) || (z(p, !0), d(c) && d(l) && d(p) && r.onLoadingComplete());
9772
9782
  }, P = async () => {
9773
- c(l) || (z(l, !0), c(d) && c(l) && c(p) && r.onLoadingComplete());
9783
+ d(l) || (z(l, !0), d(c) && d(l) && d(p) && r.onLoadingComplete());
9774
9784
  }, I = async (h) => {
9775
9785
  r.onPaymentInfoChange({
9776
9786
  complete: h.complete,
9777
9787
  paymentMethod: h.complete ? h.value.type : void 0
9778
9788
  });
9779
- }, T = async (h) => {
9789
+ }, E = async (h) => {
9780
9790
  r.onEmailChange(h.complete, h.value.email);
9781
9791
  };
9782
9792
  Ye(() => (window.addEventListener("resize", f), () => {
9783
9793
  window.removeEventListener("resize", f);
9784
9794
  })), Ye(async () => {
9785
- m(), !n() && (i() || !r.stripeAccountId || !r.publishableApiKey || !r.elementsConfiguration || await ke.initializeStripe(r.stripeAccountId, r.publishableApiKey, r.elementsConfiguration, r.brandingInfo, s, c(u), c(_)).then(({
9795
+ m(), !n() && (i() || !r.stripeAccountId || !r.publishableApiKey || !r.elementsConfiguration || await ke.initializeStripe(r.stripeAccountId, r.publishableApiKey, r.elementsConfiguration, r.brandingInfo, s, d(u), d(_)).then(({
9786
9796
  stripe: h,
9787
- elements: S
9797
+ elements: T
9788
9798
  }) => {
9789
- n(h), i(S);
9799
+ n(h), i(T);
9790
9800
  }).catch((h) => {
9791
9801
  r.onError(h);
9792
9802
  }));
9793
9803
  }), at(() => {
9794
9804
  r.elementsConfiguration && i() && ke.updateElementsConfiguration(i(), r.elementsConfiguration);
9795
9805
  });
9796
- var D = re(), R = G(D);
9806
+ var D = re(), B = G(D);
9797
9807
  {
9798
- var w = (h) => {
9799
- var S = Yp(), j = x(S);
9808
+ var k = (h) => {
9809
+ var T = Yp(), j = x(T);
9800
9810
  Wp(j, {
9801
9811
  get elements() {
9802
9812
  return i();
9803
9813
  },
9804
- onError: k,
9814
+ onError: w,
9805
9815
  onReady: y,
9806
9816
  get onSubmit() {
9807
9817
  return r.onExpressCheckoutElementSubmit;
@@ -9813,23 +9823,23 @@ function Xp(e, r) {
9813
9823
  return r.billingAddressRequired;
9814
9824
  }
9815
9825
  });
9816
- var O = C(j, 2);
9826
+ var R = C(j, 2);
9817
9827
  {
9818
- var K = ($) => {
9828
+ var Z = ($) => {
9819
9829
  Bp($, {
9820
9830
  get elements() {
9821
9831
  return i();
9822
9832
  },
9823
9833
  onReady: v,
9824
- onChange: T,
9825
- onError: k
9834
+ onChange: E,
9835
+ onError: w
9826
9836
  });
9827
9837
  };
9828
- N(O, ($) => {
9829
- r.skipEmail || $(K);
9838
+ N(R, ($) => {
9839
+ r.skipEmail || $(Z);
9830
9840
  });
9831
9841
  }
9832
- var X = C(O, 2);
9842
+ var X = C(R, 2);
9833
9843
  Op(X, {
9834
9844
  get elements() {
9835
9845
  return i();
@@ -9839,11 +9849,11 @@ function Xp(e, r) {
9839
9849
  },
9840
9850
  onReady: P,
9841
9851
  onChange: I,
9842
- onError: k
9843
- }), b(h, S);
9852
+ onError: w
9853
+ }), b(h, T);
9844
9854
  };
9845
- N(R, (h) => {
9846
- i() && h(w);
9855
+ N(B, (h) => {
9856
+ i() && h(k);
9847
9857
  });
9848
9858
  }
9849
9859
  b(e, D), Y();
@@ -9882,8 +9892,8 @@ function e_(e, r) {
9882
9892
  },
9883
9893
  $$slots: { default: !0 }
9884
9894
  });
9885
- var l = C(o, 2), d = x(l);
9886
- ee(d, {
9895
+ var l = C(o, 2), c = x(l);
9896
+ ee(c, {
9887
9897
  size: "body-small",
9888
9898
  children: (p, u) => {
9889
9899
  var _ = se();
@@ -9895,16 +9905,16 @@ function e_(e, r) {
9895
9905
  function r_(e, r) {
9896
9906
  W(r, !0);
9897
9907
  const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce);
9898
- var i = /* @__PURE__ */ E(() => a().translate(L.PriceUpdateTitle)), o = /* @__PURE__ */ E(() => {
9908
+ var i = /* @__PURE__ */ S(() => a().translate(O.PriceUpdateTitle)), o = /* @__PURE__ */ S(() => {
9899
9909
  var s;
9900
- return a().translate((s = r.subscriptionOption) != null && s.trial ? L.PriceUpdateTrialMessage : L.PriceUpdateBaseMessage);
9910
+ return a().translate((s = r.subscriptionOption) != null && s.trial ? O.PriceUpdateTrialMessage : O.PriceUpdateBaseMessage);
9901
9911
  });
9902
9912
  e_(e, {
9903
9913
  get title() {
9904
- return c(i);
9914
+ return d(i);
9905
9915
  },
9906
9916
  get message() {
9907
- return c(o);
9917
+ return d(o);
9908
9918
  }
9909
9919
  }), Y();
9910
9920
  }
@@ -9936,25 +9946,25 @@ function i_(e, r) {
9936
9946
  var Nn, Cn, On;
9937
9947
  W(r, !0), H(e, n_);
9938
9948
  const t = Ae(), a = () => ze(i, "$translator", t), n = Se(xn), i = Se(Ce), o = (Nn = r.productDetails.subscriptionOptions) == null ? void 0 : Nn[r.purchaseOption.id], s = Ro(r.productDetails, r.purchaseOption);
9939
- let l = Z(U(((Cn = r.defaultPriceBreakdown) == null ? void 0 : Cn.taxCalculationStatus) ?? ((On = r.brandingInfo) != null && On.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), d = Z(null), p = Z(null), u = Z(U(s.amountMicros)), _ = Z(U(s.amountMicros)), g = /* @__PURE__ */ E(() => r.defaultPriceBreakdown ?? {
9949
+ let l = K(U(((Cn = r.defaultPriceBreakdown) == null ? void 0 : Cn.taxCalculationStatus) ?? ((On = r.brandingInfo) != null && On.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), c = K(null), p = K(null), u = K(U(s.amountMicros)), _ = K(U(s.amountMicros)), g = /* @__PURE__ */ S(() => r.defaultPriceBreakdown ?? {
9940
9950
  currency: s.currency,
9941
- totalAmountInMicros: c(_),
9942
- totalExcludingTaxInMicros: c(u),
9943
- taxCalculationStatus: c(l),
9944
- taxAmountInMicros: c(d),
9945
- taxBreakdown: c(p)
9946
- }), m = Z(U(r.gatewayParams.elements_configuration)), f = Z(null), k = Z(null), v = Z(null), y = Z(U(r.customerEmail ?? void 0)), P = Z(U(!!r.customerEmail)), I = Z(!0), T = Z(!1), D = Z(void 0), R = Z(void 0), w = Z(void 0), h = Z(!1), S = Z(null), j = /* @__PURE__ */ E(() => c(I) || c(h) ? "loading" : c(R) ? "error" : "form"), O = Z("unavailable"), K = /* @__PURE__ */ E(() => !c(h) && c(T) && c(P) && (c(l) === "disabled" || c(l) === "calculated" || c(l) === "miss-match")), X = /* @__PURE__ */ E(() => o && r.managementUrl && c(g) ? ke.buildStripeExpressCheckoutOptionsForSubscription(r.productDetails, c(g), o, a(), r.managementUrl) : void 0);
9951
+ totalAmountInMicros: d(_),
9952
+ totalExcludingTaxInMicros: d(u),
9953
+ taxCalculationStatus: d(l),
9954
+ taxAmountInMicros: d(c),
9955
+ taxBreakdown: d(p)
9956
+ }), m = K(U(r.gatewayParams.elements_configuration)), f = K(null), w = K(null), v = K(null), y = K(U(r.customerEmail ?? void 0)), P = K(U(!!r.customerEmail)), I = K(!0), E = K(!1), D = K(void 0), B = K(void 0), k = K(void 0), h = K(!1), T = K(null), j = /* @__PURE__ */ S(() => d(I) || d(h) ? "loading" : d(B) ? "error" : "form"), R = K("unavailable"), Z = /* @__PURE__ */ S(() => !d(h) && d(E) && d(P) && (d(l) === "disabled" || d(l) === "calculated" || d(l) === "miss-match")), X = /* @__PURE__ */ S(() => o && r.managementUrl && d(g) ? ke.buildStripeExpressCheckoutOptionsForSubscription(r.productDetails, d(g), o, a(), r.managementUrl) : void 0);
9947
9957
  at(() => {
9948
- r.onPriceBreakdownUpdated(c(g));
9958
+ r.onPriceBreakdownUpdated(d(g));
9949
9959
  }), Ye(async () => {
9950
- c(l) === "unavailable" && await $(null).catch(Mr);
9960
+ d(l) === "unavailable" && await $(null).catch(Mr);
9951
9961
  }), Ot(() => {
9952
- c(S) && (c(S).abort(), z(S, null));
9962
+ d(T) && (d(T).abort(), z(T, null));
9953
9963
  });
9954
9964
  async function $(F, te) {
9955
9965
  await r.purchaseOperationHelper.checkoutCalculateTax(F == null ? void 0 : F.countryCode, F == null ? void 0 : F.postalCode, te).then((_e) => {
9956
9966
  const Nr = dp({ taxCalculation: _e, taxCustomerDetails: F });
9957
- n.trackSDKEvent(Nr), te == null || te.throwIfAborted(), _e.failed_reason ? !F && _e.failed_reason === Tn.invalid_tax_location ? z(l, "pending") : z(l, "disabled") : z(l, "calculated"), z(d, U(_e.tax_amount_in_micros)), z(u, U(_e.total_excluding_tax_in_micros)), z(_, U(_e.total_amount_in_micros)), z(p, U(_e.pricing_phases.base.tax_breakdown)), z(m, U(_e.gateway_params.elements_configuration)), z(f, U(F));
9967
+ n.trackSDKEvent(Nr), te == null || te.throwIfAborted(), _e.failed_reason ? !F && _e.failed_reason === Tn.invalid_tax_location ? z(l, "pending") : z(l, "disabled") : z(l, "calculated"), z(c, U(_e.tax_amount_in_micros)), z(u, U(_e.total_excluding_tax_in_micros)), z(_, U(_e.total_amount_in_micros)), z(p, U(_e.pricing_phases.base.tax_breakdown)), z(m, U(_e.gateway_params.elements_configuration)), z(f, U(F));
9958
9968
  });
9959
9969
  }
9960
9970
  function ie() {
@@ -9966,12 +9976,12 @@ function i_(e, r) {
9966
9976
  z(y, U(te)), z(P, U(F)), await pr();
9967
9977
  }
9968
9978
  async function oe({ complete: F, paymentMethod: te }) {
9969
- z(D, U(te)), z(T, U(F)), await pr();
9979
+ z(D, U(te)), z(E, U(F)), await pr();
9970
9980
  }
9971
9981
  async function ge(F) {
9972
- if (F == null || F.preventDefault(), c(h)) return;
9982
+ if (F == null || F.preventDefault(), d(h)) return;
9973
9983
  const te = up({
9974
- selectedPaymentMethod: c(D) ?? null
9984
+ selectedPaymentMethod: d(D) ?? null
9975
9985
  });
9976
9986
  n.trackSDKEvent(te), z(h, !0), await kr() ? r.onContinue() : z(h, !1);
9977
9987
  }
@@ -9979,17 +9989,17 @@ function i_(e, r) {
9979
9989
  z(D, U(F)), z(y, U(r.customerEmail ?? te)), await ge();
9980
9990
  }
9981
9991
  async function pr() {
9982
- c(D) !== "card" || !c(P) || !c(T) || c(h) || c(l) === "disabled" || (c(l) !== "loading" && (z(O, U(c(l))), z(l, "loading")), await Xe(async (F) => {
9992
+ d(D) !== "card" || !d(P) || !d(E) || d(h) || d(l) === "disabled" || (d(l) !== "loading" && (z(R, U(d(l))), z(l, "loading")), await Xe(async (F) => {
9983
9993
  await Le().then(() => F.throwIfAborted()).then(() => _r(F)).then(() => F.throwIfAborted()).catch((te) => {
9984
9994
  F.aborted || Mr(te);
9985
9995
  }).finally(() => {
9986
- c(l) === "loading" && !F.aborted && z(l, U(c(O)));
9996
+ d(l) === "loading" && !F.aborted && z(l, U(d(R)));
9987
9997
  });
9988
9998
  }));
9989
9999
  }
9990
10000
  async function kr() {
9991
10001
  return await Xe(async (F) => {
9992
- const te = c(_);
10002
+ const te = d(_);
9993
10003
  let _e;
9994
10004
  return await Le().then(() => F.throwIfAborted()).then(() => _r(F)).then((Nr) => {
9995
10005
  _e = Nr;
@@ -9997,8 +10007,8 @@ function i_(e, r) {
9997
10007
  });
9998
10008
  }
9999
10009
  async function Xe(F) {
10000
- c(S) && c(S).abort(), z(S, U(new AbortController()));
10001
- const te = c(S).signal;
10010
+ d(T) && d(T).abort(), z(T, U(new AbortController()));
10011
+ const te = d(T).signal;
10002
10012
  try {
10003
10013
  return await F(te);
10004
10014
  } catch (_e) {
@@ -10008,31 +10018,31 @@ function i_(e, r) {
10008
10018
  }
10009
10019
  }
10010
10020
  async function Le() {
10011
- c(v) && await ke.submitElements(c(v));
10021
+ d(v) && await ke.submitElements(d(v));
10012
10022
  }
10013
10023
  async function _r(F) {
10014
10024
  var Cr, mt;
10015
- if (c(l) === "unavailable" || c(l) === "disabled" || !c(v) || !c(k))
10025
+ if (d(l) === "unavailable" || d(l) === "disabled" || !d(v) || !d(w))
10016
10026
  return;
10017
10027
  const {
10018
10028
  customerDetails: te,
10019
10029
  confirmationTokenId: _e
10020
- } = await ke.extractTaxCustomerDetails(c(v), c(k));
10021
- return F == null || F.throwIfAborted(), te.postalCode === ((Cr = c(f)) == null ? void 0 : Cr.postalCode) && te.countryCode === ((mt = c(f)) == null ? void 0 : mt.countryCode) || await $(te, F), _e && c(D) !== "card" ? _e : void 0;
10030
+ } = await ke.extractTaxCustomerDetails(d(v), d(w));
10031
+ return F == null || F.throwIfAborted(), te.postalCode === ((Cr = d(f)) == null ? void 0 : Cr.postalCode) && te.countryCode === ((mt = d(f)) == null ? void 0 : mt.countryCode) || await $(te, F), _e && d(D) !== "card" ? _e : void 0;
10022
10032
  }
10023
10033
  function $e(F) {
10024
10034
  return () => {
10025
- if (c(_) !== F)
10035
+ if (d(_) !== F)
10026
10036
  throw new wi();
10027
10037
  };
10028
10038
  }
10029
10039
  async function wr() {
10030
10040
  var _e;
10031
- const F = await r.purchaseOperationHelper.checkoutComplete(c(y)), te = (_e = F == null ? void 0 : F.gateway_params) == null ? void 0 : _e.client_secret;
10032
- te && z(w, U(te));
10041
+ const F = await r.purchaseOperationHelper.checkoutComplete(d(y)), te = (_e = F == null ? void 0 : F.gateway_params) == null ? void 0 : _e.client_secret;
10042
+ te && z(k, U(te));
10033
10043
  }
10034
10044
  async function gr(F) {
10035
- !c(k) || !c(v) || !c(w) || await ke.confirmElements(c(k), c(v), c(w), F);
10045
+ !d(w) || !d(v) || !d(k) || await ke.confirmElements(d(w), d(v), d(k), F);
10036
10046
  }
10037
10047
  async function Mr(F) {
10038
10048
  if (F instanceof wi)
@@ -10042,7 +10052,7 @@ function i_(e, r) {
10042
10052
  errorCode: F.errorCode.toString(),
10043
10053
  errorMessage: F.message
10044
10054
  });
10045
- n.trackSDKEvent(te), F.errorCode === ce.MissingEmailError ? z(R, U(a().translate(L.ErrorPageErrorMessageInvalidEmailError, { email: c(y) }))) : r.onError(F);
10055
+ n.trackSDKEvent(te), F.errorCode === ce.MissingEmailError ? z(B, U(a().translate(O.ErrorPageErrorMessageInvalidEmailError, { email: d(y) }))) : r.onError(F);
10046
10056
  } else if (F instanceof Gt)
10047
10057
  await pt(F);
10048
10058
  else
@@ -10053,10 +10063,10 @@ function i_(e, r) {
10053
10063
  errorCode: F.gatewayErrorCode ?? "",
10054
10064
  errorMessage: F.message ?? ""
10055
10065
  });
10056
- n.trackSDKEvent(te), F.code === tn.HandledFormError || (F.code === tn.UnhandledFormError ? z(R, U(F.message)) : r.onError(new ue(ce.ErrorSettingUpPurchase, "Failed to initialize payment form", F.message)));
10066
+ n.trackSDKEvent(te), F.code === tn.HandledFormError || (F.code === tn.UnhandledFormError ? z(B, U(F.message)) : r.onError(new ue(ce.ErrorSettingUpPurchase, "Failed to initialize payment form", F.message)));
10057
10067
  }
10058
10068
  const jr = () => {
10059
- z(R, void 0);
10069
+ z(B, void 0);
10060
10070
  };
10061
10071
  var _t = a_(), gt = x(_t);
10062
10072
  {
@@ -10065,18 +10075,18 @@ function i_(e, r) {
10065
10075
  Ao(_e), b(F, te);
10066
10076
  };
10067
10077
  N(gt, (F) => {
10068
- c(j) === "loading" && F(ka);
10078
+ d(j) === "loading" && F(ka);
10069
10079
  });
10070
10080
  }
10071
10081
  var Rt = C(gt, 2);
10072
10082
  {
10073
10083
  var wa = (F) => {
10074
- var te = /* @__PURE__ */ E(() => a().translate(L.ErrorButtonTryAgain));
10084
+ var te = /* @__PURE__ */ S(() => a().translate(O.ErrorButtonTryAgain));
10075
10085
  En(F, {
10076
10086
  title: null,
10077
10087
  type: "error",
10078
10088
  get closeButtonTitle() {
10079
- return c(te);
10089
+ return d(te);
10080
10090
  },
10081
10091
  onDismiss: jr,
10082
10092
  icon: (Cr) => {
@@ -10084,16 +10094,16 @@ function i_(e, r) {
10084
10094
  },
10085
10095
  message: (Cr) => {
10086
10096
  var mt = se();
10087
- A(() => ae(mt, c(R))), b(Cr, mt);
10097
+ A(() => ae(mt, d(B))), b(Cr, mt);
10088
10098
  },
10089
10099
  $$slots: { icon: !0, message: !0 }
10090
10100
  });
10091
10101
  };
10092
10102
  N(Rt, (F) => {
10093
- c(j) === "error" && F(wa);
10103
+ d(j) === "error" && F(wa);
10094
10104
  });
10095
10105
  }
10096
- var Gr = C(Rt, 2), Ut = x(Gr), Pr = x(Ut), ds = x(Pr), us = /* @__PURE__ */ E(() => !!r.customerEmail), ps = /* @__PURE__ */ E(() => c(l) !== "disabled");
10106
+ var Gr = C(Rt, 2), Ut = x(Gr), Pr = x(Ut), ds = x(Pr), us = /* @__PURE__ */ S(() => !!r.customerEmail), ps = /* @__PURE__ */ S(() => d(l) !== "disabled");
10097
10107
  Xp(ds, {
10098
10108
  get stripeAccountId() {
10099
10109
  return r.gatewayParams.stripe_account_id;
@@ -10102,16 +10112,16 @@ function i_(e, r) {
10102
10112
  return r.gatewayParams.publishable_api_key;
10103
10113
  },
10104
10114
  get elementsConfiguration() {
10105
- return c(m);
10115
+ return d(m);
10106
10116
  },
10107
10117
  get brandingInfo() {
10108
10118
  return r.brandingInfo;
10109
10119
  },
10110
10120
  get skipEmail() {
10111
- return c(us);
10121
+ return d(us);
10112
10122
  },
10113
10123
  get billingAddressRequired() {
10114
- return c(ps);
10124
+ return d(ps);
10115
10125
  },
10116
10126
  onLoadingComplete: ie,
10117
10127
  onError: pt,
@@ -10119,16 +10129,16 @@ function i_(e, r) {
10119
10129
  onPaymentInfoChange: oe,
10120
10130
  onExpressCheckoutElementSubmit: Ee,
10121
10131
  get expressCheckoutOptions() {
10122
- return c(X);
10132
+ return d(X);
10123
10133
  },
10124
10134
  get stripe() {
10125
- return c(k);
10135
+ return d(w);
10126
10136
  },
10127
10137
  set stripe(F) {
10128
- z(k, U(F));
10138
+ z(w, U(F));
10129
10139
  },
10130
10140
  get elements() {
10131
- return c(v);
10141
+ return d(v);
10132
10142
  },
10133
10143
  set elements(F) {
10134
10144
  z(v, U(F));
@@ -10136,17 +10146,17 @@ function i_(e, r) {
10136
10146
  });
10137
10147
  var Pa = C(Pr, 2), _s = x(Pa);
10138
10148
  r_(_s, { subscriptionOption: o });
10139
- var Mn = C(Pa, 2), jn = x(Mn), gs = /* @__PURE__ */ E(() => !c(K)), ms = /* @__PURE__ */ E(() => {
10149
+ var Mn = C(Pa, 2), jn = x(Mn), gs = /* @__PURE__ */ S(() => !d(Z)), ms = /* @__PURE__ */ S(() => {
10140
10150
  var F;
10141
- return (F = r.brandingInfo) != null && F.gateway_tax_collection_enabled ? c(g) : void 0;
10151
+ return (F = r.brandingInfo) != null && F.gateway_tax_collection_enabled ? d(g) : void 0;
10142
10152
  });
10143
10153
  bp(jn, {
10144
10154
  get disabled() {
10145
- return c(gs);
10155
+ return d(gs);
10146
10156
  },
10147
10157
  subscriptionOption: o,
10148
10158
  get priceBreakdown() {
10149
- return c(ms);
10159
+ return d(ms);
10150
10160
  }
10151
10161
  });
10152
10162
  var fs = C(jn, 2), hs = x(fs);
@@ -10156,7 +10166,7 @@ function i_(e, r) {
10156
10166
  },
10157
10167
  subscriptionOption: o
10158
10168
  }), A(() => {
10159
- hr(Ut, "invisible", c(j) !== "form"), hr(Pa, "fully-hidden", c(l) !== "miss-match" || c(j) !== "form"), hr(Mn, "fully-hidden", c(j) !== "form");
10169
+ hr(Ut, "invisible", d(j) !== "form"), hr(Pa, "fully-hidden", d(l) !== "miss-match" || d(j) !== "form"), hr(Mn, "fully-hidden", d(j) !== "form");
10160
10170
  }), nt("submit", Gr, ge), b(e, _t), Y();
10161
10171
  }
10162
10172
  function o_(e) {
@@ -10172,12 +10182,12 @@ const Uo = (e) => ({
10172
10182
  const r = e.period_duration, t = e.price ? Uo(e.price) : null, a = r ? mo(r) : null;
10173
10183
  let n = null, i = null, o = null;
10174
10184
  if (t !== null && a !== null) {
10175
- const s = l_(a), l = 1e4, d = Math.round(t.amountMicros * s.toWeek);
10185
+ const s = l_(a), l = 1e4, c = Math.round(t.amountMicros * s.toWeek);
10176
10186
  n = {
10177
- amount: d / l,
10178
- amountMicros: d,
10187
+ amount: c / l,
10188
+ amountMicros: c,
10179
10189
  currency: t.currency,
10180
- formattedPrice: Ir(d, t.currency)
10190
+ formattedPrice: Ir(c, t.currency)
10181
10191
  };
10182
10192
  const p = Math.round(t.amountMicros * s.toMonth);
10183
10193
  i = {
@@ -10223,8 +10233,8 @@ function l_(e) {
10223
10233
  default:
10224
10234
  o = 0, Q.errorLog(`Unknown period unit: ${t}`);
10225
10235
  }
10226
- const s = o > 0 ? a / o : 0, l = o > 0 ? n / o : 0, d = o > 0 ? i / o : 0;
10227
- return { toWeek: s, toMonth: l, toYear: d };
10236
+ const s = o > 0 ? a / o : 0, l = o > 0 ? n / o : 0, c = o > 0 ? i / o : 0;
10237
+ return { toWeek: s, toMonth: l, toYear: c };
10228
10238
  }
10229
10239
  const c_ = (e) => e.base == null ? (Q.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
10230
10240
  id: e.id,
@@ -10284,8 +10294,8 @@ const c_ = (e) => e.base == null ? (Q.debugLog("Missing base phase for subscript
10284
10294
  const a = {};
10285
10295
  if (Object.entries(e.purchase_options).forEach(
10286
10296
  ([s, l]) => {
10287
- const d = c_(l);
10288
- d != null && (a[s] = d);
10297
+ const c = c_(l);
10298
+ c != null && (a[s] = c);
10289
10299
  }
10290
10300
  ), Object.keys(a).length === 0)
10291
10301
  return Q.debugLog(
@@ -10465,12 +10475,12 @@ const M_ = {
10465
10475
  function Ft(e, r) {
10466
10476
  W(r, !0);
10467
10477
  const t = M_[r.name];
10468
- let a = Z(U({}));
10478
+ let a = K(U({}));
10469
10479
  if (r.name.startsWith("chevron")) {
10470
10480
  const n = r.name.split("-")[1];
10471
10481
  z(a, U({ direction: n }));
10472
10482
  }
10473
- t(e, vr(() => c(a))), Y();
10483
+ t(e, vr(() => d(a))), Y();
10474
10484
  }
10475
10485
  var j_ = /* @__PURE__ */ q('<span class="rc-sandbox-only-error svelte-1d8gf9n"><!></span> <br> <br>', 1), N_ = /* @__PURE__ */ q('<!> <a class="svelte-1d8gf9n"> </a>.', 1), C_ = /* @__PURE__ */ q("<!> <!>", 1);
10476
10486
  const O_ = {
@@ -10479,110 +10489,110 @@ const O_ = {
10479
10489
  };
10480
10490
  function L_(e, r) {
10481
10491
  W(r, !0), H(e, O_);
10482
- const t = Ae(), a = () => ze(i, "$translator", t), n = /* @__PURE__ */ E(() => r.lastError ?? new ue(ce.UnknownError, "Unknown error without state set.")), i = Se(Ce), o = /* @__PURE__ */ E(() => c(n).errorCode === ce.StripeTaxNotActive || c(n).errorCode === ce.StripeInvalidTaxOriginAddress || c(n).errorCode === ce.StripeMissingRequiredPermission);
10492
+ const t = Ae(), a = () => ze(i, "$translator", t), n = /* @__PURE__ */ S(() => r.lastError ?? new ue(ce.UnknownError, "Unknown error without state set.")), i = Se(Ce), o = /* @__PURE__ */ S(() => d(n).errorCode === ce.StripeTaxNotActive || d(n).errorCode === ce.StripeInvalidTaxOriginAddress || d(n).errorCode === ce.StripeMissingRequiredPermission);
10483
10493
  Ye(() => {
10484
- Q.errorLog(`Displayed error: ${ce[c(n).errorCode]}. Message: ${c(n).message ?? "None"}. Underlying error: ${c(n).underlyingErrorMessage ?? "None"}`);
10494
+ Q.errorLog(`Displayed error: ${ce[d(n).errorCode]}. Message: ${d(n).message ?? "None"}. Underlying error: ${d(n).underlyingErrorMessage ?? "None"}`);
10485
10495
  });
10486
10496
  function s() {
10487
- return c(n).errorCode === ce.AlreadyPurchasedError ? a().translate(L.ErrorPageCloseButtonTitle, { appName: r.appName ?? "App" }) : c(o) ? a().translate(L.ErrorButtonClose) : a().translate(L.ErrorButtonTryAgain);
10497
+ return d(n).errorCode === ce.AlreadyPurchasedError ? a().translate(O.ErrorPageCloseButtonTitle, { appName: r.appName ?? "App" }) : d(o) ? a().translate(O.ErrorButtonClose) : a().translate(O.ErrorButtonTryAgain);
10488
10498
  }
10489
10499
  function l() {
10490
- switch (c(n).errorCode) {
10500
+ switch (d(n).errorCode) {
10491
10501
  case ce.AlreadyPurchasedError:
10492
- return r.productDetails.productType === Br.Subscription ? a().translate(L.ErrorPageErrorTitleAlreadySubscribed, { productTitle: r.productDetails.title }) : a().translate(L.ErrorPageErrorTitleAlreadyPurchased, { productTitle: r.productDetails.title });
10502
+ return r.productDetails.productType === Br.Subscription ? a().translate(O.ErrorPageErrorTitleAlreadySubscribed, { productTitle: r.productDetails.title }) : a().translate(O.ErrorPageErrorTitleAlreadyPurchased, { productTitle: r.productDetails.title });
10493
10503
  case ce.StripeTaxNotActive:
10494
- return a().translate(L.ErrorPageErrorTitleStripeTaxNotActive);
10504
+ return a().translate(O.ErrorPageErrorTitleStripeTaxNotActive);
10495
10505
  case ce.StripeInvalidTaxOriginAddress:
10496
- return a().translate(L.ErrorPageErrorTitleStripeInvalidTaxOriginAddress);
10506
+ return a().translate(O.ErrorPageErrorTitleStripeInvalidTaxOriginAddress);
10497
10507
  case ce.StripeMissingRequiredPermission:
10498
- return a().translate(L.ErrorPageErrorTitleStripeMissingRequiredPermission);
10508
+ return a().translate(O.ErrorPageErrorTitleStripeMissingRequiredPermission);
10499
10509
  default:
10500
- return a().translate(L.ErrorPageErrorTitleOtherErrors);
10510
+ return a().translate(O.ErrorPageErrorTitleOtherErrors);
10501
10511
  }
10502
10512
  }
10503
- function d() {
10504
- const m = c(n).getErrorCode();
10505
- switch (c(n).errorCode) {
10513
+ function c() {
10514
+ const m = d(n).getErrorCode();
10515
+ switch (d(n).errorCode) {
10506
10516
  case ce.ErrorSettingUpPurchase:
10507
- return a().translate(L.ErrorPageErrorMessageErrorSettingUpPurchase, { errorCode: m });
10517
+ return a().translate(O.ErrorPageErrorMessageErrorSettingUpPurchase, { errorCode: m });
10508
10518
  case ce.ErrorChargingPayment:
10509
- return a().translate(L.ErrorPageErrorMessageErrorChargingPayment, { errorCode: m });
10519
+ return a().translate(O.ErrorPageErrorMessageErrorChargingPayment, { errorCode: m });
10510
10520
  case ce.AlreadyPurchasedError:
10511
- return r.productDetails.productType === Br.Subscription ? a().translate(L.ErrorPageErrorMessageAlreadySubscribed, { errorCode: m }) : a().translate(L.ErrorPageErrorMessageAlreadyPurchased, { errorCode: m });
10521
+ return r.productDetails.productType === Br.Subscription ? a().translate(O.ErrorPageErrorMessageAlreadySubscribed, { errorCode: m }) : a().translate(O.ErrorPageErrorMessageAlreadyPurchased, { errorCode: m });
10512
10522
  case ce.StripeTaxNotActive:
10513
- return a().translate(L.ErrorPageErrorMessageStripeTaxNotActive, { errorCode: m });
10523
+ return a().translate(O.ErrorPageErrorMessageStripeTaxNotActive, { errorCode: m });
10514
10524
  case ce.StripeInvalidTaxOriginAddress:
10515
- return a().translate(L.ErrorPageErrorMessageStripeInvalidTaxOriginAddress, { errorCode: m });
10525
+ return a().translate(O.ErrorPageErrorMessageStripeInvalidTaxOriginAddress, { errorCode: m });
10516
10526
  case ce.StripeMissingRequiredPermission:
10517
- return a().translate(L.ErrorPageErrorMessageStripeMissingRequiredPermission, { errorCode: m });
10527
+ return a().translate(O.ErrorPageErrorMessageStripeMissingRequiredPermission, { errorCode: m });
10518
10528
  case ce.NetworkError:
10519
- return a().translate(L.ErrorPageErrorMessageNetworkError, { errorCode: m });
10529
+ return a().translate(O.ErrorPageErrorMessageNetworkError, { errorCode: m });
10520
10530
  default:
10521
- return a().translate(L.ErrorPageErrorMessageUnknownError, { errorCode: m });
10531
+ return a().translate(O.ErrorPageErrorMessageUnknownError, { errorCode: m });
10522
10532
  }
10523
10533
  }
10524
10534
  function p() {
10525
- return c(n).errorCode === ce.AlreadyPurchasedError ? L.ErrorPageTroubleAccessing : L.ErrorPageIfErrorPersists;
10535
+ return d(n).errorCode === ce.AlreadyPurchasedError ? O.ErrorPageTroubleAccessing : O.ErrorPageIfErrorPersists;
10526
10536
  }
10527
10537
  function u() {
10528
- return c(n).errorCode === ce.AlreadyPurchasedError ? "success" : "error";
10538
+ return d(n).errorCode === ce.AlreadyPurchasedError ? "success" : "error";
10529
10539
  }
10530
- var _ = /* @__PURE__ */ E(l), g = /* @__PURE__ */ E(s);
10540
+ var _ = /* @__PURE__ */ S(l), g = /* @__PURE__ */ S(s);
10531
10541
  En(e, {
10532
10542
  get title() {
10533
- return c(_);
10543
+ return d(_);
10534
10544
  },
10535
10545
  get onDismiss() {
10536
10546
  return r.onDismiss;
10537
10547
  },
10538
10548
  type: "error",
10539
10549
  get closeButtonTitle() {
10540
- return c(g);
10550
+ return d(g);
10541
10551
  },
10542
- icon: (k) => {
10543
- var v = /* @__PURE__ */ E(u);
10544
- Ft(k, {
10552
+ icon: (w) => {
10553
+ var v = /* @__PURE__ */ S(u);
10554
+ Ft(w, {
10545
10555
  get name() {
10546
- return c(v);
10556
+ return d(v);
10547
10557
  }
10548
10558
  });
10549
10559
  },
10550
- message: (k) => {
10560
+ message: (w) => {
10551
10561
  var v = C_(), y = G(v);
10552
10562
  {
10553
- var P = (R) => {
10554
- var w = j_(), h = G(w), S = x(h);
10555
- Ie(S, {
10563
+ var P = (B) => {
10564
+ var k = j_(), h = G(k), T = x(h);
10565
+ Ie(T, {
10556
10566
  get key() {
10557
- return L.ErrorPageErrorMessageOnlyInSandbox;
10567
+ return O.ErrorPageErrorMessageOnlyInSandbox;
10558
10568
  }
10559
- }), b(R, w);
10569
+ }), b(B, k);
10560
10570
  };
10561
- N(y, (R) => {
10562
- c(o) && R(P);
10571
+ N(y, (B) => {
10572
+ d(o) && B(P);
10563
10573
  });
10564
10574
  }
10565
10575
  var I = C(y);
10566
- A(() => ae(I, ` ${d() ?? ""} `));
10567
- var T = C(I);
10576
+ A(() => ae(I, ` ${c() ?? ""} `));
10577
+ var E = C(I);
10568
10578
  {
10569
- var D = (R) => {
10570
- var w = N_(), h = G(w), S = /* @__PURE__ */ E(p);
10579
+ var D = (B) => {
10580
+ var k = N_(), h = G(k), T = /* @__PURE__ */ S(p);
10571
10581
  Ie(h, {
10572
10582
  get key() {
10573
- return c(S);
10583
+ return d(T);
10574
10584
  }
10575
10585
  });
10576
- var j = C(h, 2), O = x(j);
10586
+ var j = C(h, 2), R = x(j);
10577
10587
  A(() => {
10578
- B(j, "href", `mailto:${r.supportEmail ?? ""}`), ae(O, r.supportEmail);
10579
- }), b(R, w);
10588
+ L(j, "href", `mailto:${r.supportEmail ?? ""}`), ae(R, r.supportEmail);
10589
+ }), b(B, k);
10580
10590
  };
10581
- N(T, (R) => {
10582
- !c(o) && r.supportEmail && R(D);
10591
+ N(E, (B) => {
10592
+ !d(o) && r.supportEmail && B(D);
10583
10593
  });
10584
10594
  }
10585
- b(k, v);
10595
+ b(w, v);
10586
10596
  },
10587
10597
  $$slots: { icon: !0, message: !0 }
10588
10598
  }), Y();
@@ -10603,15 +10613,15 @@ function B_(e, r) {
10603
10613
  eventName: Fe.CheckoutPurchaseSuccessfulImpression
10604
10614
  });
10605
10615
  }), Qe();
10606
- var l = /* @__PURE__ */ et(() => a().translate(L.SuccessPagePurchaseSuccessful)), d = /* @__PURE__ */ et(() => a().translate(L.SuccessPageButtonClose));
10616
+ var l = /* @__PURE__ */ et(() => a().translate(O.SuccessPagePurchaseSuccessful)), c = /* @__PURE__ */ et(() => a().translate(O.SuccessPageButtonClose));
10607
10617
  En(e, {
10608
10618
  type: "success",
10609
10619
  get title() {
10610
- return c(l);
10620
+ return d(l);
10611
10621
  },
10612
10622
  onDismiss: s,
10613
10623
  get closeButtonTitle() {
10614
- return c(d);
10624
+ return d(c);
10615
10625
  },
10616
10626
  icon: (u) => {
10617
10627
  Vo(u);
@@ -10642,21 +10652,21 @@ function H_(e, r) {
10642
10652
  n(!n());
10643
10653
  }
10644
10654
  Qe();
10645
- var l = U_(), d = x(l), p = x(d);
10655
+ var l = U_(), c = x(l), p = x(c);
10646
10656
  ee(p, {
10647
10657
  size: "label-default",
10648
10658
  children: (y, P) => {
10649
- var I = re(), T = G(I);
10659
+ var I = re(), E = G(I);
10650
10660
  {
10651
- var D = (w) => {
10661
+ var D = (k) => {
10652
10662
  var h = se();
10653
- A(() => ae(h, a().translate(L.PricingDropdownHideDetails))), b(w, h);
10654
- }, R = (w) => {
10663
+ A(() => ae(h, a().translate(O.PricingDropdownHideDetails))), b(k, h);
10664
+ }, B = (k) => {
10655
10665
  var h = se();
10656
- A(() => ae(h, a().translate(L.PricingDropdownShowDetails))), b(w, h);
10666
+ A(() => ae(h, a().translate(O.PricingDropdownShowDetails))), b(k, h);
10657
10667
  };
10658
- N(T, (w) => {
10659
- n() ? w(D) : w(R, !1);
10668
+ N(E, (k) => {
10669
+ n() ? k(D) : k(B, !1);
10660
10670
  });
10661
10671
  }
10662
10672
  b(y, I);
@@ -10674,10 +10684,10 @@ function H_(e, r) {
10674
10684
  n() ? y(g) : y(m, !1);
10675
10685
  });
10676
10686
  }
10677
- var f = C(d, 2), k = x(f), v = x(k);
10687
+ var f = C(c, 2), w = x(f), v = x(w);
10678
10688
  fe(v, () => i() ?? le), A(() => {
10679
- B(d, "aria-expanded", n()), hr(f, "collapsed", !n());
10680
- }), nt("click", d, s), nt("keydown", d, (y) => y.key === "Enter" || y.key === " " ? s() : null), b(e, l), Y();
10689
+ L(c, "aria-expanded", n()), hr(f, "collapsed", !n());
10690
+ }), nt("click", c, s), nt("keydown", c, (y) => y.key === "Enter" || y.key === " " ? s() : null), b(e, l), Y();
10681
10691
  }
10682
10692
  var W_ = /* @__PURE__ */ q('<div class="rcb-pricing-table-value-loading svelte-erv89n"><!></div>');
10683
10693
  const Y_ = {
@@ -10719,17 +10729,17 @@ function rg(e, r) {
10719
10729
  const t = Ae(), a = () => ze(o, "$translator", t), n = (g) => {
10720
10730
  var m = $_(), f = x(m);
10721
10731
  {
10722
- var k = (w) => {
10723
- var h = J_(), S = G(h), j = x(S), O = x(j);
10724
- ee(O, {
10732
+ var w = (k) => {
10733
+ var h = J_(), T = G(h), j = x(T), R = x(j);
10734
+ ee(R, {
10725
10735
  size: "body-small",
10726
10736
  children: (oe, ge) => {
10727
10737
  var Ee = se();
10728
- A(() => ae(Ee, a().translate(L.PricingTotalExcludingTax))), b(oe, Ee);
10738
+ A(() => ae(Ee, a().translate(O.PricingTotalExcludingTax))), b(oe, Ee);
10729
10739
  },
10730
10740
  $$slots: { default: !0 }
10731
10741
  });
10732
- var K = C(j, 2), X = x(K);
10742
+ var Z = C(j, 2), X = x(Z);
10733
10743
  ee(X, {
10734
10744
  size: "body-small",
10735
10745
  children: (oe, ge) => {
@@ -10738,7 +10748,7 @@ function rg(e, r) {
10738
10748
  },
10739
10749
  $$slots: { default: !0 }
10740
10750
  });
10741
- var $ = C(S, 2);
10751
+ var $ = C(T, 2);
10742
10752
  {
10743
10753
  var ie = (oe) => {
10744
10754
  var ge = X_(), Ee = x(ge), pr = x(Ee);
@@ -10746,7 +10756,7 @@ function rg(e, r) {
10746
10756
  size: "body-small",
10747
10757
  children: (Le, _r) => {
10748
10758
  var $e = se();
10749
- A(() => ae($e, a().translate(L.PricingTableTax))), b(Le, $e);
10759
+ A(() => ae($e, a().translate(O.PricingTableTax))), b(Le, $e);
10750
10760
  },
10751
10761
  $$slots: { default: !0 }
10752
10762
  });
@@ -10769,13 +10779,13 @@ function rg(e, r) {
10769
10779
  {
10770
10780
  var pr = (Xe) => {
10771
10781
  var Le = Z_(), _r = x(Le), $e = x(_r);
10772
- A(() => ae($e, a().translate(L.PricingTableTax)));
10782
+ A(() => ae($e, a().translate(O.PricingTableTax)));
10773
10783
  var wr = C(_r, 2), gr = x(wr);
10774
10784
  ee(gr, {
10775
10785
  size: "body-small",
10776
10786
  children: (Mr, pt) => {
10777
10787
  var jr = se();
10778
- A(() => ae(jr, a().translate(L.PricingTableEnterBillingAddressToCalculate))), b(Mr, jr);
10788
+ A(() => ae(jr, a().translate(O.PricingTableEnterBillingAddressToCalculate))), b(Mr, jr);
10779
10789
  },
10780
10790
  $$slots: { default: !0 }
10781
10791
  }), b(Xe, Le);
@@ -10790,7 +10800,7 @@ function rg(e, r) {
10790
10800
  size: "body-small",
10791
10801
  children: (Gr, Ut) => {
10792
10802
  var Pr = se();
10793
- A(() => ae(Pr, c(jr).display_name)), b(Gr, Pr);
10803
+ A(() => ae(Pr, d(jr).display_name)), b(Gr, Pr);
10794
10804
  },
10795
10805
  $$slots: { default: !0 }
10796
10806
  });
@@ -10799,7 +10809,7 @@ function rg(e, r) {
10799
10809
  size: "body-small",
10800
10810
  children: (Gr, Ut) => {
10801
10811
  var Pr = se();
10802
- A(() => ae(Pr, a().formatPrice(c(jr).tax_amount_in_micros, r.priceBreakdown.currency))), b(Gr, Pr);
10812
+ A(() => ae(Pr, a().formatPrice(d(jr).tax_amount_in_micros, r.priceBreakdown.currency))), b(Gr, Pr);
10803
10813
  },
10804
10814
  $$slots: { default: !0 }
10805
10815
  }), b(pt, _t);
@@ -10829,75 +10839,75 @@ function rg(e, r) {
10829
10839
  r.priceBreakdown.taxCalculationStatus === "loading" ? oe(ie) : oe(pe, !1);
10830
10840
  });
10831
10841
  }
10832
- b(w, h);
10842
+ b(k, h);
10833
10843
  };
10834
- N(f, (w) => {
10835
- c(s) && w(k);
10844
+ N(f, (k) => {
10845
+ d(s) && k(w);
10836
10846
  });
10837
10847
  }
10838
10848
  var v = C(f, 2);
10839
10849
  {
10840
- var y = (w) => {
10841
- var h = Q_(), S = x(h), j = x(S);
10850
+ var y = (k) => {
10851
+ var h = Q_(), T = x(h), j = x(T);
10842
10852
  ee(j, {
10843
10853
  size: "body-small",
10844
10854
  children: (X, $) => {
10845
10855
  var ie = se();
10846
- A(() => ae(ie, a().translate(L.PricingTableTrialEnds, {
10847
- formattedTrialEndDate: a().translateDate(c(i), { dateStyle: "medium" })
10856
+ A(() => ae(ie, a().translate(O.PricingTableTrialEnds, {
10857
+ formattedTrialEndDate: a().translateDate(d(i), { dateStyle: "medium" })
10848
10858
  }))), b(X, ie);
10849
10859
  },
10850
10860
  $$slots: { default: !0 }
10851
10861
  });
10852
- var O = C(S, 2), K = x(O);
10853
- ee(K, {
10862
+ var R = C(T, 2), Z = x(R);
10863
+ ee(Z, {
10854
10864
  size: "body-small",
10855
10865
  children: (X, $) => {
10856
10866
  var ie = se();
10857
10867
  A(() => ae(ie, a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency))), b(X, ie);
10858
10868
  },
10859
10869
  $$slots: { default: !0 }
10860
- }), b(w, h);
10870
+ }), b(k, h);
10861
10871
  };
10862
- N(v, (w) => {
10863
- c(i) && w(y);
10872
+ N(v, (k) => {
10873
+ d(i) && k(y);
10864
10874
  });
10865
10875
  }
10866
- var P = C(v, 2), I = x(P), T = x(I);
10867
- ee(T, {
10876
+ var P = C(v, 2), I = x(P), E = x(I);
10877
+ ee(E, {
10868
10878
  size: "body-small",
10869
- children: (w, h) => {
10870
- var S = se();
10871
- A(() => ae(S, a().translate(L.PricingTableTotalDueToday))), b(w, S);
10879
+ children: (k, h) => {
10880
+ var T = se();
10881
+ A(() => ae(T, a().translate(O.PricingTableTotalDueToday))), b(k, T);
10872
10882
  },
10873
10883
  $$slots: { default: !0 }
10874
10884
  });
10875
- var D = C(I, 2), R = x(D);
10876
- ee(R, {
10885
+ var D = C(I, 2), B = x(D);
10886
+ ee(B, {
10877
10887
  size: "body-small",
10878
- children: (w, h) => {
10879
- var S = re(), j = G(S);
10888
+ children: (k, h) => {
10889
+ var T = re(), j = G(T);
10880
10890
  {
10881
- var O = (X) => {
10891
+ var R = (X) => {
10882
10892
  var $ = se();
10883
10893
  A(() => ae($, a().formatPrice(0, r.priceBreakdown.currency))), b(X, $);
10884
- }, K = (X) => {
10894
+ }, Z = (X) => {
10885
10895
  var $ = se();
10886
10896
  A(() => ae($, a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency))), b(X, $);
10887
10897
  };
10888
10898
  N(j, (X) => {
10889
- c(i) ? X(O) : X(K, !1);
10899
+ d(i) ? X(R) : X(Z, !1);
10890
10900
  });
10891
10901
  }
10892
- b(w, S);
10902
+ b(k, T);
10893
10903
  },
10894
10904
  $$slots: { default: !0 }
10895
10905
  }), b(g, m);
10896
10906
  };
10897
- let i = Z(null);
10907
+ let i = K(null);
10898
10908
  (_ = r.trialPhase) != null && _.period && z(i, U(Za(/* @__PURE__ */ new Date(), r.trialPhase.period, !0)));
10899
- const o = Se(Ce), s = /* @__PURE__ */ E(() => r.priceBreakdown.taxCalculationStatus !== "unavailable" && r.priceBreakdown.taxCalculationStatus !== "disabled" && r.priceBreakdown.taxBreakdown && r.priceBreakdown.taxBreakdown.length > 0);
10900
- var l = re(), d = G(l);
10909
+ const o = Se(Ce), s = /* @__PURE__ */ S(() => r.priceBreakdown.taxCalculationStatus !== "unavailable" && r.priceBreakdown.taxCalculationStatus !== "disabled" && r.priceBreakdown.taxBreakdown && r.priceBreakdown.taxBreakdown.length > 0);
10910
+ var l = re(), c = G(l);
10901
10911
  {
10902
10912
  var p = (g) => {
10903
10913
  H_(g, {
@@ -10909,8 +10919,8 @@ function rg(e, r) {
10909
10919
  }, u = (g) => {
10910
10920
  n(g);
10911
10921
  };
10912
- N(d, (g) => {
10913
- c(s) ? g(p) : g(u, !1);
10922
+ N(c, (g) => {
10923
+ d(s) ? g(p) : g(u, !1);
10914
10924
  });
10915
10925
  }
10916
10926
  b(e, l), Y();
@@ -10934,14 +10944,14 @@ function og(e, r) {
10934
10944
  var g = tg(), m = x(g);
10935
10945
  ee(m, {
10936
10946
  size: "body-base",
10937
- children: (f, k) => {
10947
+ children: (f, w) => {
10938
10948
  var v = /* @__PURE__ */ et(() => ({ productTitle: t().title }));
10939
10949
  Ie(f, {
10940
10950
  get key() {
10941
- return L.ProductInfoSubscribeTo;
10951
+ return O.ProductInfoSubscribeTo;
10942
10952
  },
10943
10953
  get variables() {
10944
- return c(v);
10954
+ return d(v);
10945
10955
  }
10946
10956
  });
10947
10957
  },
@@ -10952,18 +10962,18 @@ function og(e, r) {
10952
10962
  n && _(s);
10953
10963
  });
10954
10964
  }
10955
- var l = C(o, 2), d = x(l);
10956
- ee(d, {
10965
+ var l = C(o, 2), c = x(l);
10966
+ ee(c, {
10957
10967
  size: "heading-lg",
10958
10968
  branded: !0,
10959
10969
  children: (_, g) => {
10960
10970
  var m = /* @__PURE__ */ et(() => ({ productTitle: t().title }));
10961
10971
  Ie(_, {
10962
10972
  get key() {
10963
- return L.ProductInfoProductTitle;
10973
+ return O.ProductInfoProductTitle;
10964
10974
  },
10965
10975
  get variables() {
10966
- return c(m);
10976
+ return d(m);
10967
10977
  }
10968
10978
  });
10969
10979
  },
@@ -10975,16 +10985,16 @@ function og(e, r) {
10975
10985
  var g = ag(), m = x(g);
10976
10986
  ee(m, {
10977
10987
  size: "body-small",
10978
- children: (f, k) => {
10988
+ children: (f, w) => {
10979
10989
  var v = /* @__PURE__ */ et(() => ({
10980
10990
  productDescription: t().description
10981
10991
  }));
10982
10992
  Ie(f, {
10983
10993
  get key() {
10984
- return L.ProductInfoProductDescription;
10994
+ return O.ProductInfoProductDescription;
10985
10995
  },
10986
10996
  get variables() {
10987
- return c(v);
10997
+ return d(v);
10988
10998
  }
10989
10999
  });
10990
11000
  },
@@ -11004,81 +11014,81 @@ const dg = {
11004
11014
  };
11005
11015
  function ug(e, r) {
11006
11016
  W(r, !0), H(e, dg);
11007
- const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce), i = /* @__PURE__ */ E(() => {
11017
+ const t = Ae(), a = () => ze(n, "$translator", t), n = Se(Ce), i = /* @__PURE__ */ S(() => {
11008
11018
  var h;
11009
11019
  return (h = r.introPricePhase) != null && h.period && a().translatePeriod(r.introPricePhase.period.number * r.introPricePhase.cycleCount, r.introPricePhase.period.unit) || "";
11010
- }), o = /* @__PURE__ */ E(() => "heading-lg"), s = /* @__PURE__ */ E(() => {
11020
+ }), o = /* @__PURE__ */ S(() => "heading-lg"), s = /* @__PURE__ */ S(() => {
11011
11021
  var h;
11012
11022
  return (h = r.trialPhase) != null && h.periodDuration ? "heading-md" : "heading-lg";
11013
- }), l = /* @__PURE__ */ E(() => {
11014
- var h, S;
11015
- return (h = r.trialPhase) != null && h.periodDuration || (S = r.introPricePhase) != null && S.periodDuration ? "heading-md" : "heading-lg";
11016
- }), d = /* @__PURE__ */ E(() => {
11023
+ }), l = /* @__PURE__ */ S(() => {
11024
+ var h, T;
11025
+ return (h = r.trialPhase) != null && h.periodDuration || (T = r.introPricePhase) != null && T.periodDuration ? "heading-md" : "heading-lg";
11026
+ }), c = /* @__PURE__ */ S(() => {
11017
11027
  var h;
11018
11028
  return (h = r.trialPhase) == null ? void 0 : h.periodDuration;
11019
- }), p = /* @__PURE__ */ E(() => {
11029
+ }), p = /* @__PURE__ */ S(() => {
11020
11030
  var h;
11021
11031
  return (h = r.introPricePhase) == null ? void 0 : h.periodDuration;
11022
- }), u = /* @__PURE__ */ E(() => {
11023
- var h, S;
11024
- return a().formatPrice(c(p) ? ((S = (h = r.basePhase) == null ? void 0 : h.price) == null ? void 0 : S.amountMicros) ?? 0 : r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency);
11025
- }), _ = /* @__PURE__ */ E(() => a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency));
11032
+ }), u = /* @__PURE__ */ S(() => {
11033
+ var h, T;
11034
+ return a().formatPrice(d(p) ? ((T = (h = r.basePhase) == null ? void 0 : h.price) == null ? void 0 : T.amountMicros) ?? 0 : r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency);
11035
+ }), _ = /* @__PURE__ */ S(() => a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency));
11026
11036
  var g = cg(), m = x(g);
11027
11037
  {
11028
11038
  var f = (h) => {
11029
- var S = sg(), j = x(S);
11039
+ var T = sg(), j = x(T);
11030
11040
  ee(j, {
11031
11041
  get size() {
11032
- return c(o);
11042
+ return d(o);
11033
11043
  },
11034
- children: (O, K) => {
11035
- var X = /* @__PURE__ */ E(() => ({
11044
+ children: (R, Z) => {
11045
+ var X = /* @__PURE__ */ S(() => ({
11036
11046
  trialDuration: Mc(r.trialPhase.periodDuration, a())
11037
11047
  }));
11038
- Ie(O, {
11048
+ Ie(R, {
11039
11049
  get key() {
11040
- return L.ProductInfoFreeTrialDuration;
11050
+ return O.ProductInfoFreeTrialDuration;
11041
11051
  },
11042
11052
  get variables() {
11043
- return c(X);
11053
+ return d(X);
11044
11054
  }
11045
11055
  });
11046
11056
  },
11047
11057
  $$slots: { default: !0 }
11048
- }), b(h, S);
11058
+ }), b(h, T);
11049
11059
  };
11050
11060
  N(m, (h) => {
11051
- var S;
11052
- (S = r.trialPhase) != null && S.periodDuration && h(f);
11061
+ var T;
11062
+ (T = r.trialPhase) != null && T.periodDuration && h(f);
11053
11063
  });
11054
11064
  }
11055
- var k = C(m, 2);
11065
+ var w = C(m, 2);
11056
11066
  {
11057
11067
  var v = (h) => {
11058
- var S = lg(), j = x(S);
11068
+ var T = lg(), j = x(T);
11059
11069
  ee(j, {
11060
11070
  get size() {
11061
- return c(s);
11071
+ return d(s);
11062
11072
  },
11063
11073
  children: (ie, pe) => {
11064
- var oe = /* @__PURE__ */ E(() => r.introPricePhase.cycleCount === 1 ? L.ProductInfoIntroPricePhasePaidUpfront : L.ProductInfoIntroPricePhaseRecurring), ge = /* @__PURE__ */ E(() => ({
11065
- introPriceDuration: c(i),
11066
- introPrice: c(_)
11074
+ var oe = /* @__PURE__ */ S(() => r.introPricePhase.cycleCount === 1 ? O.ProductInfoIntroPricePhasePaidUpfront : O.ProductInfoIntroPricePhaseRecurring), ge = /* @__PURE__ */ S(() => ({
11075
+ introPriceDuration: d(i),
11076
+ introPrice: d(_)
11067
11077
  }));
11068
11078
  Ie(ie, {
11069
11079
  get key() {
11070
- return c(oe);
11080
+ return d(oe);
11071
11081
  },
11072
11082
  get variables() {
11073
- return c(ge);
11083
+ return d(ge);
11074
11084
  }
11075
11085
  });
11076
11086
  },
11077
11087
  $$slots: { default: !0 }
11078
11088
  });
11079
- var O = C(j, 2);
11089
+ var R = C(j, 2);
11080
11090
  {
11081
- var K = (ie) => {
11091
+ var Z = (ie) => {
11082
11092
  ee(ie, {
11083
11093
  size: "body-small",
11084
11094
  children: (pe, oe) => {
@@ -11088,11 +11098,11 @@ function ug(e, r) {
11088
11098
  $$slots: { default: !0 }
11089
11099
  });
11090
11100
  };
11091
- N(O, (ie) => {
11092
- r.introPricePhase.cycleCount > 1 && r.introPricePhase.period && ie(K);
11101
+ N(R, (ie) => {
11102
+ r.introPricePhase.cycleCount > 1 && r.introPricePhase.period && ie(Z);
11093
11103
  });
11094
11104
  }
11095
- var X = C(O, 2);
11105
+ var X = C(R, 2);
11096
11106
  {
11097
11107
  var $ = (ie) => {
11098
11108
  ee(ie, {
@@ -11100,7 +11110,7 @@ function ug(e, r) {
11100
11110
  children: (pe, oe) => {
11101
11111
  Ie(pe, {
11102
11112
  get key() {
11103
- return L.ProductInfoAfterTrial;
11113
+ return O.ProductInfoAfterTrial;
11104
11114
  }
11105
11115
  });
11106
11116
  },
@@ -11108,68 +11118,68 @@ function ug(e, r) {
11108
11118
  });
11109
11119
  };
11110
11120
  N(X, (ie) => {
11111
- c(d) && ie($);
11121
+ d(c) && ie($);
11112
11122
  });
11113
11123
  }
11114
- b(h, S);
11124
+ b(h, T);
11115
11125
  };
11116
- N(k, (h) => {
11117
- var S;
11118
- (S = r.introPricePhase) != null && S.periodDuration && h(v);
11126
+ N(w, (h) => {
11127
+ var T;
11128
+ (T = r.introPricePhase) != null && T.periodDuration && h(v);
11119
11129
  });
11120
11130
  }
11121
- var y = C(k, 2), P = x(y);
11131
+ var y = C(w, 2), P = x(y);
11122
11132
  ee(P, {
11123
11133
  get size() {
11124
- return c(l);
11134
+ return d(l);
11125
11135
  },
11126
- children: (h, S) => {
11136
+ children: (h, T) => {
11127
11137
  var j = se();
11128
- A(() => ae(j, c(u))), b(h, j);
11138
+ A(() => ae(j, d(u))), b(h, j);
11129
11139
  },
11130
11140
  $$slots: { default: !0 }
11131
11141
  });
11132
11142
  var I = C(P, 2);
11133
11143
  {
11134
- var T = (h) => {
11144
+ var E = (h) => {
11135
11145
  ee(h, {
11136
11146
  size: "body-small",
11137
- children: (S, j) => {
11138
- var O = se();
11139
- A(() => ae(O, a().translatePeriodFrequency(r.basePhase.period.number, r.basePhase.period.unit, { useMultipleWords: !0 }))), b(S, O);
11147
+ children: (T, j) => {
11148
+ var R = se();
11149
+ A(() => ae(R, a().translatePeriodFrequency(r.basePhase.period.number, r.basePhase.period.unit, { useMultipleWords: !0 }))), b(T, R);
11140
11150
  },
11141
11151
  $$slots: { default: !0 }
11142
11152
  });
11143
11153
  };
11144
11154
  N(I, (h) => {
11145
- var S;
11146
- (S = r.basePhase) != null && S.period && h(T);
11155
+ var T;
11156
+ (T = r.basePhase) != null && T.period && h(E);
11147
11157
  });
11148
11158
  }
11149
11159
  var D = C(I, 2);
11150
11160
  {
11151
- var R = (h) => {
11161
+ var B = (h) => {
11152
11162
  ee(h, {
11153
11163
  size: "body-small",
11154
- children: (S, j) => {
11155
- Ie(S, {
11164
+ children: (T, j) => {
11165
+ Ie(T, {
11156
11166
  get key() {
11157
- return L.ProductInfoAfter;
11167
+ return O.ProductInfoAfter;
11158
11168
  }
11159
11169
  });
11160
11170
  },
11161
11171
  $$slots: { default: !0 }
11162
11172
  });
11163
- }, w = (h) => {
11164
- var S = re(), j = G(S);
11173
+ }, k = (h) => {
11174
+ var T = re(), j = G(T);
11165
11175
  {
11166
- var O = (K) => {
11167
- ee(K, {
11176
+ var R = (Z) => {
11177
+ ee(Z, {
11168
11178
  size: "body-small",
11169
11179
  children: (X, $) => {
11170
11180
  Ie(X, {
11171
11181
  get key() {
11172
- return L.ProductInfoAfterTrial;
11182
+ return O.ProductInfoAfterTrial;
11173
11183
  }
11174
11184
  });
11175
11185
  },
@@ -11178,16 +11188,16 @@ function ug(e, r) {
11178
11188
  };
11179
11189
  N(
11180
11190
  j,
11181
- (K) => {
11182
- c(d) && K(O);
11191
+ (Z) => {
11192
+ d(c) && Z(R);
11183
11193
  },
11184
11194
  !0
11185
11195
  );
11186
11196
  }
11187
- b(h, S);
11197
+ b(h, T);
11188
11198
  };
11189
11199
  N(D, (h) => {
11190
- c(p) ? h(R) : h(w, !1);
11200
+ d(p) ? h(B) : h(k, !1);
11191
11201
  });
11192
11202
  }
11193
11203
  b(e, g), Y();
@@ -11203,7 +11213,7 @@ const _g = {
11203
11213
  function gg(e, r) {
11204
11214
  H(e, _g);
11205
11215
  let t = V(r, "productDetails", 8), a = V(r, "purchaseOption", 8), n = V(r, "showProductDescription", 8), i = V(r, "priceBreakdown", 8);
11206
- const o = a(), s = o == null ? void 0 : o.base, l = o == null ? void 0 : o.trial, d = o == null ? void 0 : o.introPrice;
11216
+ const o = a(), s = o == null ? void 0 : o.base, l = o == null ? void 0 : o.trial, c = o == null ? void 0 : o.introPrice;
11207
11217
  var p = pg(), u = x(p), _ = x(u);
11208
11218
  og(_, {
11209
11219
  get productDetails() {
@@ -11220,7 +11230,7 @@ function gg(e, r) {
11220
11230
  },
11221
11231
  basePhase: s,
11222
11232
  trialPhase: l,
11223
- introPricePhase: d
11233
+ introPricePhase: c
11224
11234
  });
11225
11235
  var m = C(u, 2);
11226
11236
  rg(m, {
@@ -11250,10 +11260,10 @@ const fg = {
11250
11260
  };
11251
11261
  function hg(e, r) {
11252
11262
  W(r, !0), H(e, fg);
11253
- const t = V(r, "brandingAppearance", 3, void 0), a = V(r, "brandFontConfig", 3, void 0), n = V(r, "isInElement", 3, !1), i = /* @__PURE__ */ E(() => new qt(t()).getTextStyleVars(a())), o = /* @__PURE__ */ E(() => new qt(t()).spacingStyleVars), s = /* @__PURE__ */ E(() => [c(i), c(o)].join("; ")), l = /* @__PURE__ */ E(() => {
11263
+ const t = V(r, "brandingAppearance", 3, void 0), a = V(r, "brandFontConfig", 3, void 0), n = V(r, "isInElement", 3, !1), i = /* @__PURE__ */ S(() => new qt(t()).getTextStyleVars(a())), o = /* @__PURE__ */ S(() => new qt(t()).spacingStyleVars), s = /* @__PURE__ */ S(() => [d(i), d(o)].join("; ")), l = /* @__PURE__ */ S(() => {
11254
11264
  var _;
11255
11265
  return (_ = a()) != null && _.font_url ? vt(a().font_url) : null;
11256
- }), d = async (_) => {
11266
+ }), c = async (_) => {
11257
11267
  try {
11258
11268
  const g = new FontFace(No, `url(${_})`);
11259
11269
  await g.load(), document.fonts.add(g);
@@ -11262,11 +11272,11 @@ function hg(e, r) {
11262
11272
  }
11263
11273
  };
11264
11274
  at(() => {
11265
- c(l) && d(c(l));
11275
+ d(l) && c(d(l));
11266
11276
  });
11267
11277
  var p = mg(), u = x(p);
11268
11278
  fe(u, () => r.children ?? le), A(() => {
11269
- B(p, "style", c(s)), hr(p, "fullscreen", !n()), hr(p, "inside", n());
11279
+ L(p, "style", d(s)), hr(p, "fullscreen", !n()), hr(p, "inside", n());
11270
11280
  }), b(e, p), Y();
11271
11281
  }
11272
11282
  var yg = /* @__PURE__ */ q('<div id="layout-query-container" class="svelte-1x4ow5d"><div class="rcb-ui-layout svelte-1x4ow5d"><!></div></div>');
@@ -11285,7 +11295,7 @@ function vg(e, r) {
11285
11295
  let t = V(r, "style", 8, ""), a = V(r, "children", 8);
11286
11296
  Qe();
11287
11297
  var n = yg(), i = x(n), o = x(i);
11288
- fe(o, () => a() ?? le), A(() => B(i, "style", t())), b(e, n), Y();
11298
+ fe(o, () => a() ?? le), A(() => L(i, "style", t())), b(e, n), Y();
11289
11299
  }
11290
11300
  const kg = (e) => e;
11291
11301
  function wg(e) {
@@ -11310,14 +11320,14 @@ function Pg(e, { delay: r = 0, duration: t = 400, easing: a = kg } = {}) {
11310
11320
  };
11311
11321
  }
11312
11322
  function xg(e, { delay: r = 0, duration: t = 400, easing: a = wg, x: n = 0, y: i = 0, opacity: o = 0 } = {}) {
11313
- const s = getComputedStyle(e), l = +s.opacity, d = s.transform === "none" ? "" : s.transform, p = l * (1 - o), [u, _] = Pi(n), [g, m] = Pi(i);
11323
+ const s = getComputedStyle(e), l = +s.opacity, c = s.transform === "none" ? "" : s.transform, p = l * (1 - o), [u, _] = Pi(n), [g, m] = Pi(i);
11314
11324
  return {
11315
11325
  delay: r,
11316
11326
  duration: t,
11317
11327
  easing: a,
11318
- css: (f, k) => `
11319
- transform: ${d} translate(${(1 - f) * u}${_}, ${(1 - f) * g}${m});
11320
- opacity: ${l - p * k}`
11328
+ css: (f, w) => `
11329
+ transform: ${c} translate(${(1 - f) * u}${_}, ${(1 - f) * g}${m});
11330
+ opacity: ${l - p * w}`
11321
11331
  };
11322
11332
  }
11323
11333
  var Sg = /* @__PURE__ */ q('<div><div class="layout-wrapper svelte-1w6qvx7"><div><!></div></div></div>');
@@ -11354,14 +11364,14 @@ const qg = {
11354
11364
  };
11355
11365
  function Fg(e, r) {
11356
11366
  W(r, !0), H(e, qg);
11357
- const t = V(r, "brandingAppearance", 3, void 0), a = /* @__PURE__ */ E(() => new qt(t()).productInfoStyleVars);
11367
+ const t = V(r, "brandingAppearance", 3, void 0), a = /* @__PURE__ */ S(() => new qt(t()).productInfoStyleVars);
11358
11368
  var n = Dg(), i = x(n);
11359
11369
  Ho(i, {
11360
11370
  location: "navbar",
11361
11371
  children: (o, s) => {
11362
- var l = Ig(), d = G(l), p = x(d);
11372
+ var l = Ig(), c = G(l), p = x(c);
11363
11373
  fe(p, () => r.headerContent ?? le);
11364
- var u = C(d, 2);
11374
+ var u = C(c, 2);
11365
11375
  {
11366
11376
  var _ = (g) => {
11367
11377
  var m = Tg(), f = x(m);
@@ -11374,7 +11384,7 @@ function Fg(e, r) {
11374
11384
  b(o, l);
11375
11385
  },
11376
11386
  $$slots: { default: !0 }
11377
- }), A(() => B(n, "style", c(a))), b(e, n), Y();
11387
+ }), A(() => L(n, "style", d(a))), b(e, n), Y();
11378
11388
  }
11379
11389
  var zg = /* @__PURE__ */ q('<button class="rcb-close-button svelte-nssttr" data-testid="close-button"><!></button>');
11380
11390
  const Ag = {
@@ -11405,13 +11415,13 @@ function Cg(e, r) {
11405
11415
  Qe();
11406
11416
  var o = re(), s = G(o);
11407
11417
  {
11408
- var l = (d) => {
11418
+ var l = (c) => {
11409
11419
  var p = jg(), u = x(p);
11410
11420
  ee(u, {
11411
11421
  size: "caption-default",
11412
11422
  children: (m, f) => {
11413
- var k = Mg();
11414
- b(m, k);
11423
+ var w = Mg();
11424
+ b(m, w);
11415
11425
  },
11416
11426
  $$slots: { default: !0 }
11417
11427
  });
@@ -11423,11 +11433,11 @@ function Cg(e, r) {
11423
11433
  },
11424
11434
  $$slots: { default: !0 }
11425
11435
  }), A(() => {
11426
- B(p, "style", t()), hr(p, "isInElement", a());
11427
- }), po(2, p, () => xg, () => ({ y: -100, duration: 300 })), b(d, p);
11436
+ L(p, "style", t()), hr(p, "isInElement", a());
11437
+ }), po(2, p, () => xg, () => ({ y: -100, duration: 300 })), b(c, p);
11428
11438
  };
11429
- N(s, (d) => {
11430
- c(n) && d(l);
11439
+ N(s, (c) => {
11440
+ d(n) && c(l);
11431
11441
  });
11432
11442
  }
11433
11443
  b(e, o), Y();
@@ -11439,7 +11449,7 @@ const Lg = {
11439
11449
  };
11440
11450
  function Bg(e, r) {
11441
11451
  W(r, !0), H(e, Lg);
11442
- const t = /* @__PURE__ */ E(() => new qt(r.brandingAppearance).formStyleVars);
11452
+ const t = /* @__PURE__ */ S(() => new qt(r.brandingAppearance).formStyleVars);
11443
11453
  var a = Og(), n = x(a);
11444
11454
  Ho(n, {
11445
11455
  location: "main-block",
@@ -11448,28 +11458,28 @@ function Bg(e, r) {
11448
11458
  fe(l, () => r.children ?? le), b(i, s);
11449
11459
  },
11450
11460
  $$slots: { default: !0 }
11451
- }), A(() => B(a, "style", c(t))), b(e, a), Y();
11461
+ }), A(() => L(a, "style", d(t))), b(e, a), Y();
11452
11462
  }
11453
11463
  var Rg = /* @__PURE__ */ q("<!> <!>", 1), Ug = /* @__PURE__ */ q("<!> <!>", 1);
11454
11464
  function Vg(e, r) {
11455
11465
  W(r, !0);
11456
- const t = /* @__PURE__ */ E(() => {
11466
+ const t = /* @__PURE__ */ S(() => {
11457
11467
  var i;
11458
11468
  return Lo((i = r.brandingInfo) == null ? void 0 : i.appearance) ?? "";
11459
11469
  });
11460
- var a = /* @__PURE__ */ E(() => {
11470
+ var a = /* @__PURE__ */ S(() => {
11461
11471
  var i;
11462
11472
  return (i = r.brandingInfo) == null ? void 0 : i.appearance;
11463
- }), n = /* @__PURE__ */ E(() => {
11473
+ }), n = /* @__PURE__ */ S(() => {
11464
11474
  var i;
11465
11475
  return (i = r.brandingInfo) == null ? void 0 : i.brand_font_config;
11466
11476
  });
11467
11477
  hg(e, {
11468
11478
  get brandingAppearance() {
11469
- return c(a);
11479
+ return d(a);
11470
11480
  },
11471
11481
  get brandFontConfig() {
11472
- return c(n);
11482
+ return d(n);
11473
11483
  },
11474
11484
  get isInElement() {
11475
11485
  return r.isInElement;
@@ -11477,10 +11487,10 @@ function Vg(e, r) {
11477
11487
  children: (i, o) => {
11478
11488
  var s = Ug(), l = G(s);
11479
11489
  {
11480
- var d = (u) => {
11490
+ var c = (u) => {
11481
11491
  Cg(u, {
11482
11492
  get style() {
11483
- return c(t);
11493
+ return d(t);
11484
11494
  },
11485
11495
  get isInElement() {
11486
11496
  return r.isInElement;
@@ -11488,25 +11498,25 @@ function Vg(e, r) {
11488
11498
  });
11489
11499
  };
11490
11500
  N(l, (u) => {
11491
- r.isSandbox && u(d);
11501
+ r.isSandbox && u(c);
11492
11502
  });
11493
11503
  }
11494
11504
  var p = C(l, 2);
11495
11505
  vg(p, {
11496
11506
  get style() {
11497
- return c(t);
11507
+ return d(t);
11498
11508
  },
11499
11509
  children: (u, _) => {
11500
11510
  var g = Rg(), m = G(g);
11501
11511
  {
11502
11512
  var f = (y) => {
11503
- var P = /* @__PURE__ */ E(() => {
11513
+ var P = /* @__PURE__ */ S(() => {
11504
11514
  var I;
11505
11515
  return (I = r.brandingInfo) == null ? void 0 : I.appearance;
11506
11516
  });
11507
11517
  Fg(y, {
11508
11518
  get brandingAppearance() {
11509
- return c(P);
11519
+ return d(P);
11510
11520
  },
11511
11521
  get headerContent() {
11512
11522
  return r.navbarHeaderContent;
@@ -11520,17 +11530,17 @@ function Vg(e, r) {
11520
11530
  (r.navbarHeaderContent || r.navbarBodyContent) && y(f);
11521
11531
  });
11522
11532
  }
11523
- var k = C(m, 2), v = /* @__PURE__ */ E(() => {
11533
+ var w = C(m, 2), v = /* @__PURE__ */ S(() => {
11524
11534
  var y;
11525
11535
  return (y = r.brandingInfo) == null ? void 0 : y.appearance;
11526
11536
  });
11527
- Bg(k, {
11537
+ Bg(w, {
11528
11538
  get brandingAppearance() {
11529
- return c(v);
11539
+ return d(v);
11530
11540
  },
11531
11541
  children: (y, P) => {
11532
- var I = re(), T = G(I);
11533
- fe(T, () => r.mainContent ?? le), b(y, I);
11542
+ var I = re(), E = G(I);
11543
+ fe(E, () => r.mainContent ?? le), b(y, I);
11534
11544
  },
11535
11545
  $$slots: { default: !0 }
11536
11546
  }), b(u, g);
@@ -11553,16 +11563,16 @@ function Xg(e, r) {
11553
11563
  var n = (o) => {
11554
11564
  var s = Wg(), l = x(s);
11555
11565
  {
11556
- var d = (u) => {
11566
+ var c = (u) => {
11557
11567
  var _ = Hg();
11558
- A(() => B(_, "srcset", r.srcWebp)), b(u, _);
11568
+ A(() => L(_, "srcset", r.srcWebp)), b(u, _);
11559
11569
  };
11560
11570
  N(l, (u) => {
11561
- r.srcWebp && u(d);
11571
+ r.srcWebp && u(c);
11562
11572
  });
11563
11573
  }
11564
11574
  var p = C(l, 2);
11565
- A(() => B(p, "src", r.src)), b(o, s);
11575
+ A(() => L(p, "src", r.src)), b(o, s);
11566
11576
  }, i = (o) => {
11567
11577
  var s = Yg();
11568
11578
  b(o, s);
@@ -11596,14 +11606,14 @@ function rm(e, r) {
11596
11606
  {
11597
11607
  var n = (o) => {
11598
11608
  var s = Qg();
11599
- A(() => B(s, "srcset", r.srcWebp)), b(o, s);
11609
+ A(() => L(s, "srcset", r.srcWebp)), b(o, s);
11600
11610
  };
11601
11611
  N(a, (o) => {
11602
11612
  r.srcWebp && o(n);
11603
11613
  });
11604
11614
  }
11605
11615
  var i = C(a, 2);
11606
- A(() => B(i, "src", r.src)), b(e, t);
11616
+ A(() => L(i, "src", r.src)), b(e, t);
11607
11617
  }
11608
11618
  var tm = /* @__PURE__ */ q('<div class="rcb-back-wrapper svelte-11zapuq"><!></div>'), am = /* @__PURE__ */ q('<div class="rcb-close-wrapper svelte-11zapuq"><!></div>'), nm = /* @__PURE__ */ q('<div class="rcb-header-wrapper svelte-11zapuq"><!> <div class="rcb-header svelte-11zapuq"><div class="rcb-title svelte-11zapuq"><!> <!></div></div> <!></div>');
11609
11619
  const im = {
@@ -11619,96 +11629,96 @@ const im = {
11619
11629
  };
11620
11630
  function om(e, r) {
11621
11631
  W(r, !0), H(e, im);
11622
- const t = (w) => w == null || w == null || w == "" ? null : w, a = /* @__PURE__ */ E(() => {
11623
- var w;
11624
- return t((w = r.brandingInfo) == null ? void 0 : w.app_icon);
11625
- }), n = /* @__PURE__ */ E(() => {
11626
- var w;
11627
- return t((w = r.brandingInfo) == null ? void 0 : w.app_icon_webp);
11628
- }), i = /* @__PURE__ */ E(() => {
11629
- var w;
11630
- return t((w = r.brandingInfo) == null ? void 0 : w.app_wordmark);
11631
- }), o = /* @__PURE__ */ E(() => {
11632
- var w;
11633
- return t((w = r.brandingInfo) == null ? void 0 : w.app_wordmark_webp);
11634
- }), s = /* @__PURE__ */ E(() => c(a) ? vt(c(a)) : null), l = /* @__PURE__ */ E(() => c(n) ? vt(c(n)) : null), d = /* @__PURE__ */ E(() => c(i) ? vt(c(i)) : null), p = /* @__PURE__ */ E(() => c(o) ? vt(c(o)) : null), u = () => {
11632
+ const t = (k) => k == null || k == null || k == "" ? null : k, a = /* @__PURE__ */ S(() => {
11633
+ var k;
11634
+ return t((k = r.brandingInfo) == null ? void 0 : k.app_icon);
11635
+ }), n = /* @__PURE__ */ S(() => {
11636
+ var k;
11637
+ return t((k = r.brandingInfo) == null ? void 0 : k.app_icon_webp);
11638
+ }), i = /* @__PURE__ */ S(() => {
11639
+ var k;
11640
+ return t((k = r.brandingInfo) == null ? void 0 : k.app_wordmark);
11641
+ }), o = /* @__PURE__ */ S(() => {
11642
+ var k;
11643
+ return t((k = r.brandingInfo) == null ? void 0 : k.app_wordmark_webp);
11644
+ }), s = /* @__PURE__ */ S(() => d(a) ? vt(d(a)) : null), l = /* @__PURE__ */ S(() => d(n) ? vt(d(n)) : null), c = /* @__PURE__ */ S(() => d(i) ? vt(d(i)) : null), p = /* @__PURE__ */ S(() => d(o) ? vt(d(o)) : null), u = () => {
11635
11645
  r.onClose && r.onClose();
11636
11646
  };
11637
11647
  var _ = nm(), g = x(_);
11638
11648
  {
11639
- var m = (w) => {
11640
- var h = tm(), S = x(h);
11641
- Jg(S, { $$events: { click: u } }), b(w, h);
11649
+ var m = (k) => {
11650
+ var h = tm(), T = x(h);
11651
+ Jg(T, { $$events: { click: u } }), b(k, h);
11642
11652
  };
11643
- N(g, (w) => {
11644
- r.showCloseButton && w(m);
11653
+ N(g, (k) => {
11654
+ r.showCloseButton && k(m);
11645
11655
  });
11646
11656
  }
11647
- var f = C(g, 2), k = x(f), v = x(k);
11657
+ var f = C(g, 2), w = x(f), v = x(w);
11648
11658
  {
11649
- var y = (w) => {
11650
- rm(w, {
11659
+ var y = (k) => {
11660
+ rm(k, {
11651
11661
  get src() {
11652
- return c(d);
11662
+ return d(c);
11653
11663
  },
11654
11664
  get srcWebp() {
11655
- return c(p);
11665
+ return d(p);
11656
11666
  }
11657
11667
  });
11658
- }, P = (w) => {
11659
- var h = re(), S = G(h);
11668
+ }, P = (k) => {
11669
+ var h = re(), T = G(h);
11660
11670
  {
11661
- var j = (O) => {
11662
- Xg(O, {
11671
+ var j = (R) => {
11672
+ Xg(R, {
11663
11673
  get src() {
11664
- return c(s);
11674
+ return d(s);
11665
11675
  },
11666
11676
  get srcWebp() {
11667
- return c(l);
11677
+ return d(l);
11668
11678
  }
11669
11679
  });
11670
11680
  };
11671
11681
  N(
11672
- S,
11673
- (O) => {
11674
- c(s) !== null && c(l) !== null && O(j);
11682
+ T,
11683
+ (R) => {
11684
+ d(s) !== null && d(l) !== null && R(j);
11675
11685
  },
11676
11686
  !0
11677
11687
  );
11678
11688
  }
11679
- b(w, h);
11689
+ b(k, h);
11680
11690
  };
11681
- N(v, (w) => {
11682
- c(d) !== null ? w(y) : w(P, !1);
11691
+ N(v, (k) => {
11692
+ d(c) !== null ? k(y) : k(P, !1);
11683
11693
  });
11684
11694
  }
11685
11695
  var I = C(v, 2);
11686
11696
  {
11687
- var T = (w) => {
11688
- ee(w, {
11697
+ var E = (k) => {
11698
+ ee(k, {
11689
11699
  size: "body-base",
11690
- children: (h, S) => {
11700
+ children: (h, T) => {
11691
11701
  var j = se();
11692
11702
  A(() => {
11693
- var O;
11694
- return ae(j, (O = r.brandingInfo) == null ? void 0 : O.app_name);
11703
+ var R;
11704
+ return ae(j, (R = r.brandingInfo) == null ? void 0 : R.app_name);
11695
11705
  }), b(h, j);
11696
11706
  },
11697
11707
  $$slots: { default: !0 }
11698
11708
  });
11699
11709
  };
11700
- N(I, (w) => {
11701
- c(d) === null && w(T);
11710
+ N(I, (k) => {
11711
+ d(c) === null && k(E);
11702
11712
  });
11703
11713
  }
11704
11714
  var D = C(f, 2);
11705
11715
  {
11706
- var R = (w) => {
11707
- var h = am(), S = x(h);
11708
- Wo(S, { $$events: { click: u } }), b(w, h);
11716
+ var B = (k) => {
11717
+ var h = am(), T = x(h);
11718
+ Wo(T, { $$events: { click: u } }), b(k, h);
11709
11719
  };
11710
- N(D, (w) => {
11711
- r.showCloseButton && w(R);
11720
+ N(D, (k) => {
11721
+ r.showCloseButton && k(B);
11712
11722
  });
11713
11723
  }
11714
11724
  A(() => hr(_, "rcb-with-close-button", r.showCloseButton)), b(e, _), Y();
@@ -11717,7 +11727,7 @@ var sm = /* @__PURE__ */ q("<!> <!> <!> <!>", 1);
11717
11727
  function lm(e, r) {
11718
11728
  W(r, !0);
11719
11729
  const t = V(r, "onClose", 3, void 0), a = Ro(r.productDetails, r.purchaseOptionToUse);
11720
- let n = Z(U(r.defaultPriceBreakdown ?? {
11730
+ let n = K(U(r.defaultPriceBreakdown ?? {
11721
11731
  currency: a.currency,
11722
11732
  totalAmountInMicros: a.amountMicros,
11723
11733
  totalExcludingTaxInMicros: a.amountMicros,
@@ -11741,9 +11751,9 @@ function lm(e, r) {
11741
11751
  get onClose() {
11742
11752
  return t();
11743
11753
  },
11744
- navbarHeaderContent: (d) => {
11745
- var p = /* @__PURE__ */ E(() => !r.isInElement && !!t());
11746
- om(d, {
11754
+ navbarHeaderContent: (c) => {
11755
+ var p = /* @__PURE__ */ S(() => !r.isInElement && !!t());
11756
+ om(c, {
11747
11757
  get brandingInfo() {
11748
11758
  return r.brandingInfo;
11749
11759
  },
@@ -11751,16 +11761,16 @@ function lm(e, r) {
11751
11761
  return t();
11752
11762
  },
11753
11763
  get showCloseButton() {
11754
- return c(p);
11764
+ return d(p);
11755
11765
  }
11756
11766
  });
11757
11767
  },
11758
- navbarBodyContent: (d) => {
11759
- var p = /* @__PURE__ */ E(() => {
11768
+ navbarBodyContent: (c) => {
11769
+ var p = /* @__PURE__ */ S(() => {
11760
11770
  var u, _;
11761
11771
  return ((_ = (u = r.brandingInfo) == null ? void 0 : u.appearance) == null ? void 0 : _.show_product_description) ?? !1;
11762
11772
  });
11763
- gg(d, {
11773
+ gg(c, {
11764
11774
  get productDetails() {
11765
11775
  return r.productDetails;
11766
11776
  },
@@ -11768,14 +11778,14 @@ function lm(e, r) {
11768
11778
  return r.purchaseOptionToUse;
11769
11779
  },
11770
11780
  get showProductDescription() {
11771
- return c(p);
11781
+ return d(p);
11772
11782
  },
11773
11783
  get priceBreakdown() {
11774
- return c(n);
11784
+ return d(n);
11775
11785
  }
11776
11786
  });
11777
11787
  },
11778
- mainContent: (d) => {
11788
+ mainContent: (c) => {
11779
11789
  var p = sm(), u = G(p);
11780
11790
  {
11781
11791
  var _ = (P) => {
@@ -11828,11 +11838,11 @@ function lm(e, r) {
11828
11838
  }
11829
11839
  var f = C(g, 2);
11830
11840
  {
11831
- var k = (P) => {
11832
- var I = /* @__PURE__ */ E(() => {
11841
+ var w = (P) => {
11842
+ var I = /* @__PURE__ */ S(() => {
11833
11843
  var D;
11834
11844
  return ((D = r.brandingInfo) == null ? void 0 : D.support_email) ?? null;
11835
- }), T = /* @__PURE__ */ E(() => {
11845
+ }), E = /* @__PURE__ */ S(() => {
11836
11846
  var D;
11837
11847
  return ((D = r.brandingInfo) == null ? void 0 : D.app_name) ?? null;
11838
11848
  });
@@ -11844,18 +11854,18 @@ function lm(e, r) {
11844
11854
  return r.productDetails;
11845
11855
  },
11846
11856
  get supportEmail() {
11847
- return c(I);
11857
+ return d(I);
11848
11858
  },
11849
11859
  get onDismiss() {
11850
11860
  return r.closeWithError;
11851
11861
  },
11852
11862
  get appName() {
11853
- return c(T);
11863
+ return d(E);
11854
11864
  }
11855
11865
  });
11856
11866
  };
11857
11867
  N(f, (P) => {
11858
- r.currentPage === "error" && P(k);
11868
+ r.currentPage === "error" && P(w);
11859
11869
  });
11860
11870
  }
11861
11871
  var v = C(f, 2);
@@ -11871,7 +11881,7 @@ function lm(e, r) {
11871
11881
  r.currentPage === "success" && P(y);
11872
11882
  });
11873
11883
  }
11874
- b(d, p);
11884
+ b(c, p);
11875
11885
  },
11876
11886
  $$slots: {
11877
11887
  navbarHeaderContent: !0,
@@ -11890,69 +11900,68 @@ function dm(e) {
11890
11900
  }
11891
11901
  }
11892
11902
  function um(e, r) {
11893
- var w;
11903
+ var B;
11894
11904
  W(r, !0);
11895
11905
  const t = V(r, "customTranslations", 19, () => ({})), a = V(r, "skipSuccessPage", 3, !1), n = r.customerEmail ? cm(r.customerEmail) : null;
11896
- let i = Z(U(n ? void 0 : r.customerEmail)), o = r.rcPackage.webBillingProduct, s = Z(null);
11906
+ let i = K(U(n ? void 0 : r.customerEmail)), o = r.rcPackage.webBillingProduct, s = K(null);
11897
11907
  const l = r.rcPackage.webBillingProduct.identifier ?? null;
11898
- let d = Z("payment-entry-loading"), p = Z(null), u = Z(null), _ = Z(U({})), g = Z(null), m = Z(null), f = Z(null), k = Z(null), v = new ba(t(), r.selectedLocale, r.defaultLocale);
11899
- var y = bo(v);
11900
- Ia(Ce, y), Ia(Sn, (w = r.brandingInfo) == null ? void 0 : w.appearance), Ye(() => {
11901
- r.isInElement || (z(m, U(document.documentElement.style.height)), z(f, U(document.documentElement.style.overflow)), z(k, U(document.body.style.height)), document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
11908
+ let c = K("payment-entry-loading"), p = K(null), u = K(U({})), _ = K(null), g = K(null), m = K(null), f = K(null), w = new ba(t(), r.selectedLocale, r.defaultLocale), v = bo(w);
11909
+ Ia(Ce, v), Ia(Sn, (B = r.brandingInfo) == null ? void 0 : B.appearance), Ye(() => {
11910
+ r.isInElement || (z(g, U(document.documentElement.style.height)), z(m, U(document.documentElement.style.overflow)), z(f, U(document.body.style.height)), document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
11902
11911
  }), Ot(() => {
11903
11912
  if (!r.isInElement) {
11904
- const h = (S, j, O) => {
11905
- O === "" ? S.style.removeProperty(j) : S.style.setProperty(j, O);
11913
+ const k = (h, T, j) => {
11914
+ j === "" ? h.style.removeProperty(T) : h.style.setProperty(T, j);
11906
11915
  };
11907
- h(document.documentElement, "height", c(m)), h(document.body, "height", c(k)), h(document.documentElement, "overflow", c(f));
11916
+ k(document.documentElement, "height", d(g)), k(document.body, "height", d(f)), k(document.documentElement, "overflow", d(m));
11908
11917
  }
11909
11918
  }), Ia(xn, r.eventsTracker), Ye(async () => {
11910
11919
  if (l === null) {
11911
- I(new ue(ce.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
11920
+ P(new ue(ce.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
11912
11921
  return;
11913
11922
  }
11914
- r.purchaseOperationHelper.checkoutStart(r.appUserId, l, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, c(i), r.metadata).then((h) => {
11915
- z(s, null), z(d, "payment-entry"), z(_, U(h.gateway_params)), z(g, U(h.management_url));
11916
- }).catch((h) => {
11917
- if (h.errorCode === ce.MissingEmailError)
11918
- return z(i, void 0), r.purchaseOperationHelper.checkoutStart(r.appUserId, l, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, c(i), r.metadata).then((S) => {
11919
- z(s, null), z(d, "payment-entry"), z(_, U(S.gateway_params)), z(g, U(S.management_url));
11920
- }).catch((S) => {
11921
- I(S);
11923
+ r.purchaseOperationHelper.checkoutStart(r.appUserId, l, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, d(i), r.metadata).then((k) => {
11924
+ z(s, null), z(c, "payment-entry"), z(u, U(k.gateway_params)), z(_, U(k.management_url));
11925
+ }).catch((k) => {
11926
+ if (k.errorCode === ce.MissingEmailError)
11927
+ return z(i, void 0), r.purchaseOperationHelper.checkoutStart(r.appUserId, l, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, d(i), r.metadata).then((h) => {
11928
+ z(s, null), z(c, "payment-entry"), z(u, U(h.gateway_params)), z(_, U(h.management_url));
11929
+ }).catch((h) => {
11930
+ P(h);
11922
11931
  });
11923
- I(h);
11932
+ P(k);
11924
11933
  });
11925
11934
  });
11926
- const P = () => {
11927
- if (c(d) === "payment-entry") {
11928
- r.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((h) => {
11929
- z(p, U(h.redemptionInfo)), z(u, U(h.operationSessionId)), a() ? r.onFinished(c(u), c(p)) : z(d, "success");
11930
- }).catch((h) => {
11931
- I(h);
11935
+ const y = () => {
11936
+ if (d(c) === "payment-entry") {
11937
+ r.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((k) => {
11938
+ z(p, U(k)), a() ? r.onFinished(k) : z(c, "success");
11939
+ }).catch((k) => {
11940
+ P(k);
11932
11941
  });
11933
11942
  return;
11934
11943
  }
11935
- if (c(d) === "success" || c(d) === "error") {
11936
- r.onFinished(c(u), c(p));
11944
+ if (d(c) === "success" || d(c) === "error") {
11945
+ r.onFinished(d(p));
11937
11946
  return;
11938
11947
  }
11939
- z(d, "success");
11940
- }, I = (h) => {
11941
- const S = np({
11942
- errorCode: h.getErrorCode().toString(),
11943
- errorMessage: h.message
11948
+ z(c, "success");
11949
+ }, P = (k) => {
11950
+ const h = np({
11951
+ errorCode: k.getErrorCode().toString(),
11952
+ errorMessage: k.message
11944
11953
  });
11945
- r.eventsTracker.trackSDKEvent(S), z(s, U(h)), z(d, "error");
11946
- }, T = () => {
11947
- r.onError(c(s) ?? new ue(ce.UnknownError, "Unknown error without state set."));
11954
+ r.eventsTracker.trackSDKEvent(h), z(s, U(k)), z(c, "error");
11955
+ }, I = () => {
11956
+ r.onError(d(s) ?? new ue(ce.UnknownError, "Unknown error without state set."));
11948
11957
  };
11949
- var D = /* @__PURE__ */ E(() => r.purchases.isSandbox()), R = /* @__PURE__ */ E(() => c(i) ?? null);
11958
+ var E = /* @__PURE__ */ S(() => r.purchases.isSandbox()), D = /* @__PURE__ */ S(() => d(i) ?? null);
11950
11959
  lm(e, {
11951
11960
  get isSandbox() {
11952
- return c(D);
11961
+ return d(E);
11953
11962
  },
11954
11963
  get currentPage() {
11955
- return c(d);
11964
+ return d(c);
11956
11965
  },
11957
11966
  get brandingInfo() {
11958
11967
  return r.brandingInfo;
@@ -11962,13 +11971,13 @@ function um(e, r) {
11962
11971
  return r.purchaseOption;
11963
11972
  },
11964
11973
  get lastError() {
11965
- return c(s);
11974
+ return d(s);
11966
11975
  },
11967
11976
  get gatewayParams() {
11968
- return c(_);
11977
+ return d(u);
11969
11978
  },
11970
11979
  get managementUrl() {
11971
- return c(g);
11980
+ return d(_);
11972
11981
  },
11973
11982
  get purchaseOperationHelper() {
11974
11983
  return r.purchaseOperationHelper;
@@ -11977,11 +11986,11 @@ function um(e, r) {
11977
11986
  return r.isInElement;
11978
11987
  },
11979
11988
  get customerEmail() {
11980
- return c(R);
11989
+ return d(D);
11981
11990
  },
11982
- closeWithError: T,
11983
- onContinue: P,
11984
- onError: I,
11991
+ closeWithError: I,
11992
+ onContinue: y,
11993
+ onError: P,
11985
11994
  get onClose() {
11986
11995
  return r.onClose;
11987
11996
  }
@@ -12077,14 +12086,14 @@ function fm(e) {
12077
12086
  const r = ym(e), t = e.subscriber, a = vm(
12078
12087
  t.non_subscriptions
12079
12088
  ), n = Object.entries(e.subscriber.non_subscriptions).flatMap(
12080
- ([s, l]) => l.map((d) => ({
12081
- transactionIdentifier: d.id,
12089
+ ([s, l]) => l.map((c) => ({
12090
+ transactionIdentifier: c.id,
12082
12091
  productIdentifier: s,
12083
12092
  purchaseDate: new Date(
12084
- d.purchase_date || d.original_purchase_date
12093
+ c.purchase_date || c.original_purchase_date
12085
12094
  ),
12086
- storeTransactionId: d.store_transaction_id || null,
12087
- store: d.store
12095
+ storeTransactionId: c.store_transaction_id || null,
12096
+ store: c.store
12088
12097
  }))
12089
12098
  ), i = new Date(e.request_date), o = Object.fromEntries(
12090
12099
  Object.entries(e.subscriber.subscriptions).map(
@@ -12187,7 +12196,7 @@ function vm(e) {
12187
12196
  }
12188
12197
  return r;
12189
12198
  }
12190
- const Xo = "1.10.0", km = "https://api.revenuecat.com", wm = "https://e.revenue.cat";
12199
+ const Xo = "1.11.0", km = "https://api.revenuecat.com", wm = "https://e.revenue.cat";
12191
12200
  var ca;
12192
12201
  (function(e) {
12193
12202
  e[e.CONTINUE = 100] = "CONTINUE", e[e.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", e[e.PROCESSING = 102] = "PROCESSING", e[e.EARLY_HINTS = 103] = "EARLY_HINTS", e[e.OK = 200] = "OK", e[e.CREATED = 201] = "CREATED", e[e.ACCEPTED = 202] = "ACCEPTED", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", e[e.NO_CONTENT = 204] = "NO_CONTENT", e[e.RESET_CONTENT = 205] = "RESET_CONTENT", e[e.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", e[e.MULTI_STATUS = 207] = "MULTI_STATUS", e[e.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", e[e.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", e[e.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", e[e.SEE_OTHER = 303] = "SEE_OTHER", e[e.NOT_MODIFIED = 304] = "NOT_MODIFIED", e[e.USE_PROXY = 305] = "USE_PROXY", e[e.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", e[e.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UNAUTHORIZED = 401] = "UNAUTHORIZED", e[e.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", e[e.FORBIDDEN = 403] = "FORBIDDEN", e[e.NOT_FOUND = 404] = "NOT_FOUND", e[e.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", e[e.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", e[e.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", e[e.CONFLICT = 409] = "CONFLICT", e[e.GONE = 410] = "GONE", e[e.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", e[e.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", e[e.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", e[e.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", e[e.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", e[e.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", e[e.METHOD_FAILURE = 420] = "METHOD_FAILURE", e[e.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", e[e.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", e[e.LOCKED = 423] = "LOCKED", e[e.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", e[e.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", e[e.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", e[e.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", e[e.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", e[e.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", e[e.BAD_GATEWAY = 502] = "BAD_GATEWAY", e[e.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", e[e.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", e[e.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
@@ -12198,19 +12207,19 @@ function da(e) {
12198
12207
  async function mr(e, r, t) {
12199
12208
  const { apiKey: a, body: n, headers: i, httpConfig: o } = r, l = `${(o == null ? void 0 : o.proxyURL) ?? km}${e.urlPath()}`;
12200
12209
  try {
12201
- const d = await fetch(l, {
12210
+ const c = await fetch(l, {
12202
12211
  method: e.method,
12203
12212
  headers: as(a, i, o == null ? void 0 : o.additionalHeaders),
12204
12213
  body: xm(n),
12205
12214
  signal: t
12206
12215
  });
12207
- return await Pm(d, e), await d.json();
12208
- } catch (d) {
12209
- throw d instanceof TypeError ? new me(
12216
+ return await Pm(c, e), await c.json();
12217
+ } catch (c) {
12218
+ throw c instanceof TypeError ? new me(
12210
12219
  ve.NetworkError,
12211
12220
  Pt.getPublicMessage(ve.NetworkError),
12212
- d.message
12213
- ) : d;
12221
+ c.message
12222
+ ) : c;
12214
12223
  }
12215
12224
  }
12216
12225
  async function Pm(e, r) {
@@ -12639,7 +12648,7 @@ function Vm(e) {
12639
12648
  return e.webBillingProduct.defaultPurchaseOption;
12640
12649
  }
12641
12650
  function Si(e, r, t, a = !1) {
12642
- return t.translate(L.PaywallVariablesPricePerPeriod, {
12651
+ return t.translate(O.PaywallVariablesPricePerPeriod, {
12643
12652
  formattedPrice: e,
12644
12653
  period: r.base.period ? t.translatePeriod(
12645
12654
  r.base.period.number,
@@ -12721,7 +12730,7 @@ function Ei({
12721
12730
  break;
12722
12731
  }
12723
12732
  return a.translate(
12724
- L.PaywallVariablesTotalPriceAndPerMonth,
12733
+ O.PaywallVariablesTotalPriceAndPerMonth,
12725
12734
  {
12726
12735
  formattedPrice: a.formatPrice(
12727
12736
  e.amountMicros,
@@ -12820,20 +12829,20 @@ function Xm(e, r, t) {
12820
12829
  noWhitespace: !0,
12821
12830
  short: !0
12822
12831
  }) : void 0;
12823
- const d = a.currentPrice.amountMicros, p = r.webBillingProduct.currentPrice.amountMicros, u = ((p - d) * 100 / p).toFixed(0);
12824
- s.sub_relative_discount = d === p ? "" : t.translate(
12825
- L.PaywallVariablesSubRelativeDiscount,
12832
+ const c = a.currentPrice.amountMicros, p = r.webBillingProduct.currentPrice.amountMicros, u = ((p - c) * 100 / p).toFixed(0);
12833
+ s.sub_relative_discount = c === p ? "" : t.translate(
12834
+ O.PaywallVariablesSubRelativeDiscount,
12826
12835
  {
12827
12836
  discount: u
12828
12837
  }
12829
12838
  );
12830
12839
  }
12831
12840
  return (o === Br.NonConsumable || o === Br.Consumable) && i && (s.price = n, s.price_per_period = n, s.price_per_period_full = n, s.total_price_and_per_month = n, s.sub_price_per_month = n, s.sub_duration = t.translate(
12832
- L.PeriodsLifetime
12841
+ O.PeriodsLifetime
12833
12842
  ), s.sub_duration_in_months = t.translate(
12834
- L.PeriodsLifetime
12843
+ O.PeriodsLifetime
12835
12844
  ), s.sub_period = t.translate(
12836
- L.PeriodsLifetime
12845
+ O.PeriodsLifetime
12837
12846
  ), s.sub_price_per_week = void 0, s.sub_relative_discount = void 0, s.price_per_period_full = n, s.total_price_and_per_month_full = n, s.sub_period_length = void 0, s.sub_period_abbreviated = void 0), s;
12838
12847
  }
12839
12848
  const we = [];
@@ -12887,8 +12896,8 @@ function zn(e, ...r) {
12887
12896
  let t = 0, a = e.replace(
12888
12897
  $m,
12889
12898
  (n, i, o, s) => {
12890
- const l = r[t], d = ef(l, s);
12891
- return i ? n : (t++, d);
12899
+ const l = r[t], c = ef(l, s);
12900
+ return i ? n : (t++, c);
12892
12901
  }
12893
12902
  );
12894
12903
  return t < r.length && (a += ` ${r.slice(t).join(" ")}`), a = a.replace(/%{2,2}/g, "%"), a;
@@ -13309,10 +13318,8 @@ const be = class be {
13309
13318
  }), this._loadingResourcesPromise;
13310
13319
  }
13311
13320
  /** @internal */
13312
- fetchAndCacheBrandingInfo() {
13313
- return this.backend.getBrandingInfo().then((r) => {
13314
- this._brandingInfo = r;
13315
- });
13321
+ async fetchAndCacheBrandingInfo() {
13322
+ this._brandingInfo = await this.backend.getBrandingInfo();
13316
13323
  }
13317
13324
  /** @internal */
13318
13325
  hasLoadedResources() {
@@ -13350,7 +13357,7 @@ const be = class be {
13350
13357
  ), l = (g) => {
13351
13358
  var f;
13352
13359
  const m = i.availablePackages.find(
13353
- (k) => k.identifier === g
13360
+ (w) => w.identifier === g
13354
13361
  );
13355
13362
  if (m === void 0)
13356
13363
  throw new Error(`No package found for ${g}`);
@@ -13361,7 +13368,7 @@ const be = class be {
13361
13368
  selectedLocale: o,
13362
13369
  defaultLocale: ((f = i.paywall_components) == null ? void 0 : f.default_locale) || tt
13363
13370
  });
13364
- }, d = (g) => {
13371
+ }, c = (g) => {
13365
13372
  var m;
13366
13373
  if (r.onNavigateToUrl) {
13367
13374
  r.onNavigateToUrl(g);
@@ -13384,7 +13391,7 @@ const be = class be {
13384
13391
  props: {
13385
13392
  paywallData: i.paywall_components,
13386
13393
  selectedLocale: o,
13387
- onNavigateToUrlClicked: d,
13394
+ onNavigateToUrlClicked: c,
13388
13395
  onVisitCustomerCenterClicked: u,
13389
13396
  onBackClicked: () => {
13390
13397
  if (r.onBack) {
@@ -13395,9 +13402,9 @@ const be = class be {
13395
13402
  },
13396
13403
  onRestorePurchasesClicked: p,
13397
13404
  onPurchaseClicked: (f) => {
13398
- l(f).then((k) => {
13399
- g(k);
13400
- }).catch((k) => m(k));
13405
+ l(f).then((w) => {
13406
+ g(w);
13407
+ }).catch((w) => m(w));
13401
13408
  },
13402
13409
  onError: (f) => m(f),
13403
13410
  variablesPerPackage: _
@@ -13485,16 +13492,16 @@ const be = class be {
13485
13492
  defaultLocale: s = tt,
13486
13493
  skipSuccessPage: l = !1
13487
13494
  } = r;
13488
- let d = n ?? document.getElementById("rcb-ui-root");
13489
- if (d === null) {
13490
- const T = document.createElement("div");
13491
- T.className = "rcb-ui-root", document.body.appendChild(T), d = T;
13495
+ let c = n ?? document.getElementById("rcb-ui-root");
13496
+ if (c === null) {
13497
+ const E = document.createElement("div");
13498
+ E.className = "rcb-ui-root", document.body.appendChild(E), c = E;
13492
13499
  }
13493
- if (d === null)
13500
+ if (c === null)
13494
13501
  throw new Error(
13495
13502
  "Could not generate a mount point for the billing widget"
13496
13503
  );
13497
- const p = d, u = this._appUserId;
13504
+ const p = c, u = this._appUserId;
13498
13505
  Q.debugLog(
13499
13506
  `Presenting purchase form for package ${t.identifier}`
13500
13507
  );
@@ -13505,18 +13512,18 @@ const be = class be {
13505
13512
  customerEmail: i
13506
13513
  });
13507
13514
  this.eventsTracker.trackSDKEvent(m);
13508
- const k = { ...this._flags.autoCollectUTMAsMetadata ? hf() : {}, ...r.metadata || {} };
13515
+ const w = { ...this._flags.autoCollectUTMAsMetadata ? hf() : {}, ...r.metadata || {} };
13509
13516
  let v = null;
13510
13517
  const y = this._brandingInfo;
13511
13518
  y && r.brandingAppearanceOverride && (y.appearance = r.brandingAppearanceOverride);
13512
13519
  const P = n !== void 0;
13513
- return new Promise((T, D) => {
13520
+ return new Promise((E, D) => {
13514
13521
  P || window.history.pushState({ checkoutOpen: !0 }, "");
13515
- const w = this._flags.rcSource && yf.includes(this._flags.rcSource) ? void 0 : () => {
13522
+ const k = this._flags.rcSource && yf.includes(this._flags.rcSource) ? void 0 : () => {
13516
13523
  const j = lp();
13517
- this.eventsTracker.trackSDKEvent(j), window.removeEventListener("popstate", w), v && Da(v), p.innerHTML = "", Q.debugLog("Purchase cancelled by user"), D(new me(ve.UserCancelledError));
13524
+ this.eventsTracker.trackSDKEvent(j), window.removeEventListener("popstate", k), v && Da(v), p.innerHTML = "", Q.debugLog("Purchase cancelled by user"), D(new me(ve.UserCancelledError));
13518
13525
  };
13519
- !P && w && window.addEventListener("popstate", w), v = ti(um, {
13526
+ !P && k && window.addEventListener("popstate", k), v = ti(um, {
13520
13527
  target: p,
13521
13528
  props: {
13522
13529
  isInElement: P,
@@ -13524,33 +13531,38 @@ const be = class be {
13524
13531
  rcPackage: t,
13525
13532
  purchaseOption: g,
13526
13533
  customerEmail: i,
13527
- onFinished: async (j, O) => {
13528
- const K = sp({
13529
- redemptionInfo: O
13534
+ onFinished: async (j) => {
13535
+ const R = sp({
13536
+ redemptionInfo: j.redemptionInfo
13530
13537
  });
13531
- this.eventsTracker.trackSDKEvent(K), Q.debugLog("Purchase finished"), v && Da(v), p.innerHTML = "";
13532
- const X = {
13538
+ this.eventsTracker.trackSDKEvent(R), Q.debugLog("Purchase finished"), v && Da(v), p.innerHTML = "";
13539
+ const Z = {
13533
13540
  customerInfo: await this._getCustomerInfoForUserId(u),
13534
- redemptionInfo: O,
13535
- operationSessionId: j
13541
+ redemptionInfo: j.redemptionInfo,
13542
+ operationSessionId: j.operationSessionId,
13543
+ storeTransaction: {
13544
+ storeTransactionId: j.storeTransactionIdentifier,
13545
+ productIdentifier: t.webBillingProduct.identifier,
13546
+ purchaseDate: j.purchaseDate
13547
+ }
13536
13548
  };
13537
- T(X);
13549
+ E(Z);
13538
13550
  },
13539
- onClose: w,
13551
+ onClose: k,
13540
13552
  onError: (j) => {
13541
- var K;
13542
- const O = cp({
13543
- errorCode: (K = j.errorCode) == null ? void 0 : K.toString(),
13553
+ var Z;
13554
+ const R = cp({
13555
+ errorCode: (Z = j.errorCode) == null ? void 0 : Z.toString(),
13544
13556
  errorMessage: j.message
13545
13557
  });
13546
- this.eventsTracker.trackSDKEvent(O), v && Da(v), p.innerHTML = "", D(me.getForPurchasesFlowError(j));
13558
+ this.eventsTracker.trackSDKEvent(R), v && Da(v), p.innerHTML = "", D(me.getForPurchasesFlowError(j));
13547
13559
  },
13548
13560
  purchases: this,
13549
13561
  eventsTracker: this.eventsTracker,
13550
13562
  brandingInfo: this._brandingInfo,
13551
13563
  purchaseOperationHelper: this.purchaseOperationHelper,
13552
13564
  selectedLocale: _,
13553
- metadata: k,
13565
+ metadata: w,
13554
13566
  defaultLocale: s,
13555
13567
  customTranslations: r.labelsOverride,
13556
13568
  skipSuccessPage: l